-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2c7a7c
commit 96c044b
Showing
11 changed files
with
103 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,9 @@ | ||
.controls\-heading { | ||
@apply border-b border-system-separator p-2 text-system-text-secondary font-semibold; | ||
} | ||
|
||
.control\-field { | ||
@apply p-2 flex space-x-2; | ||
} | ||
|
||
.control\-field label { | ||
@apply w-1/3 text-right; | ||
} | ||
|
||
.control\-field input, .control\-field select { | ||
@apply text-system-text-control bg-system-background-control w-2/3; | ||
} | ||
|
||
.control\-field select { | ||
@apply macos:rounded; | ||
} | ||
|
||
input::-webkit-outer-spin-button, | ||
input::-webkit-inner-spin-button { | ||
-webkit-appearance: none; | ||
margin: 0; | ||
} | ||
} | ||
|
||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<label class="macos:col-span-2 macos:col-start-2 macos:text-right">{{ label }}</label> | ||
<input class="macos:col-span-5 macos:col-end-9 macos:px-2 macos:py-1 macos:rounded macos:text-system-text-control macos:bg-system-background-control" :value="modelValue" @input="$emit('update:modelValue', $event.target.value)" v-bind="$attrs"> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent, PropType } from 'vue' | ||
type Value = string | number | ||
export default defineComponent({ | ||
name: 'Control', | ||
props: { | ||
label: { | ||
type: String, | ||
required: true | ||
}, | ||
modelValue: { | ||
type: Object as PropType<Value>, | ||
required: true | ||
} | ||
}, | ||
emits: ['update:modelValue'] | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<fieldset> | ||
<legend class="macos:ml-2">{{ label }}</legend> | ||
|
||
<div class="p-2 space-y-2 macos:border macos:rounded macos:border-system-separator macos:bg-system-background-window"> | ||
<div class="macos:grid macos:items-baseline macos:grid-cols-9 macos:gap-2"> | ||
<slot></slot> | ||
</div> | ||
</div> | ||
</fieldset> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue' | ||
export default defineComponent({ | ||
name: 'Controls', | ||
props: { | ||
label: { | ||
type: String, | ||
required: true | ||
} | ||
} | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters