@stacksjs/components 0.2.865 → 0.2.868
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AppearancePicker-61r20jpp.stx +351 -0
- package/dist/{Button-sebyqeva.stx → Button-pg8mzsq3.stx} +249 -0
- package/dist/Checkbox-52mhrzkz.stx +417 -0
- package/dist/ColorSwatches-ecfxphjy.stx +287 -0
- package/dist/{NumberInput-axcfj9y8.stx → NumberInput-e2afxyh3.stx} +303 -0
- package/dist/{PasswordInput-8m3109tp.stx → PasswordInput-n2ven456.stx} +315 -0
- package/dist/RadioGroup-ps9kn22f.stx +329 -0
- package/dist/RadioGroupOption-6hyy1bvb.stx +246 -0
- package/dist/{SegmentedControl-fr69q4gb.stx → SegmentedControl-7q0t8c9s.stx} +170 -1
- package/dist/{Select-1cnqbcmg.stx → Select-ygzchedx.stx} +266 -0
- package/dist/SettingsGroup-dkae46k5.stx +200 -0
- package/dist/SettingsPane-jbd1gbdt.stx +50 -0
- package/dist/SettingsPaneHeader-f0cvkqs7.stx +188 -0
- package/dist/SettingsRow-4cxbsf1q.stx +424 -0
- package/dist/SettingsSidebarGroup-p2ygv5yy.stx +108 -0
- package/dist/SettingsSidebarItem-x8fsn3w5.stx +228 -0
- package/dist/SettingsWindow-mm490ymt.stx +537 -0
- package/dist/Slider-j59dgw1c.stx +377 -0
- package/dist/Switch-ga9ap8n8.stx +374 -0
- package/dist/{TextInput-tsvfwxmg.stx → TextInput-tyqzz3jy.stx} +325 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +35 -24
- package/dist/preview-frame/preview-frame.js +58 -2
- package/dist/settings/settings.js +757 -0
- package/dist/ui/appearance-picker/AppearancePicker.d.ts +12 -0
- package/dist/ui/appearance-picker/index.d.ts +16 -0
- package/dist/ui/button/Button.d.ts +24 -1
- package/dist/ui/button/index.d.ts +1 -0
- package/dist/ui/checkbox/Checkbox.d.ts +9 -1
- package/dist/ui/checkbox/index.d.ts +1 -0
- package/dist/ui/color-swatches/ColorSwatches.d.ts +26 -0
- package/dist/ui/color-swatches/index.d.ts +18 -0
- package/dist/ui/input/NumberInput.d.ts +11 -1
- package/dist/ui/input/PasswordInput.d.ts +9 -1
- package/dist/ui/input/TextInput.d.ts +12 -1
- package/dist/ui/input/index.d.ts +7 -3
- package/dist/ui/preview-frame/core.d.ts +22 -0
- package/dist/ui/preview-frame/view.d.ts +9 -0
- package/dist/ui/radio-group/RadioGroup.d.ts +14 -2
- package/dist/ui/radio-group/RadioGroupOption.d.ts +6 -1
- package/dist/ui/radio-group/index.d.ts +2 -0
- package/dist/ui/segmented-control/SegmentedControl.d.ts +9 -1
- package/dist/ui/segmented-control/index.d.ts +1 -0
- package/dist/ui/select/Select.d.ts +10 -1
- package/dist/ui/select/index.d.ts +1 -0
- package/dist/ui/settings/SettingsGroup.d.ts +30 -0
- package/dist/ui/settings/SettingsPane.d.ts +19 -0
- package/dist/ui/settings/SettingsPaneHeader.d.ts +20 -0
- package/dist/ui/settings/SettingsRow.d.ts +53 -0
- package/dist/ui/settings/SettingsSidebarGroup.d.ts +11 -0
- package/dist/ui/settings/SettingsSidebarItem.d.ts +22 -0
- package/dist/ui/settings/SettingsWindow.d.ts +22 -0
- package/dist/ui/settings/core.d.ts +146 -0
- package/dist/ui/settings/index.d.ts +73 -0
- package/dist/ui/settings/settings.d.ts +8 -0
- package/dist/ui/settings/view.d.ts +36 -0
- package/dist/ui/slider/Slider.d.ts +24 -0
- package/dist/ui/slider/core.d.ts +33 -0
- package/dist/ui/slider/index.d.ts +20 -0
- package/dist/ui/switch/Switch.d.ts +10 -1
- package/dist/ui/switch/index.d.ts +2 -1
- package/dist/utils/mac-theme.d.ts +24 -0
- package/package.json +8 -3
- package/src/index.ts +6 -0
- package/src/ui/appearance-picker/AppearancePicker.stx +351 -0
- package/src/ui/appearance-picker/README.md +61 -0
- package/src/ui/appearance-picker/index.ts +22 -0
- package/src/ui/button/Button.stx +249 -0
- package/src/ui/button/README.md +21 -0
- package/src/ui/button/index.ts +8 -0
- package/src/ui/checkbox/Checkbox.stx +275 -0
- package/src/ui/checkbox/index.ts +2 -0
- package/src/ui/color-swatches/ColorSwatches.stx +287 -0
- package/src/ui/color-swatches/README.md +66 -0
- package/src/ui/color-swatches/index.ts +25 -0
- package/src/ui/input/NumberInput.stx +303 -0
- package/src/ui/input/PasswordInput.stx +315 -0
- package/src/ui/input/TextInput.stx +325 -0
- package/src/ui/input/index.ts +9 -3
- package/src/ui/preview-frame/README.md +16 -14
- package/src/ui/preview-frame/core.ts +50 -0
- package/src/ui/preview-frame/index.ts +4 -4
- package/src/ui/preview-frame/view.ts +61 -4
- package/src/ui/radio-group/README.md +17 -0
- package/src/ui/radio-group/RadioGroup.stx +184 -6
- package/src/ui/radio-group/RadioGroupOption.stx +178 -2
- package/src/ui/radio-group/index.ts +4 -0
- package/src/ui/segmented-control/SegmentedControl.stx +170 -1
- package/src/ui/segmented-control/index.ts +2 -0
- package/src/ui/select/README.md +12 -0
- package/src/ui/select/Select.stx +266 -0
- package/src/ui/select/index.ts +2 -0
- package/src/ui/settings/README.md +221 -0
- package/src/ui/settings/SettingsGroup.stx +200 -0
- package/src/ui/settings/SettingsPane.stx +50 -0
- package/src/ui/settings/SettingsPaneHeader.stx +188 -0
- package/src/ui/settings/SettingsRow.stx +424 -0
- package/src/ui/settings/SettingsSidebarGroup.stx +108 -0
- package/src/ui/settings/SettingsSidebarItem.stx +228 -0
- package/src/ui/settings/SettingsWindow.stx +537 -0
- package/src/ui/settings/core.ts +359 -0
- package/src/ui/settings/index.ts +111 -0
- package/src/ui/settings/settings.ts +8 -0
- package/src/ui/settings/view.ts +740 -0
- package/src/ui/slider/README.md +91 -0
- package/src/ui/slider/Slider.stx +377 -0
- package/src/ui/slider/core.ts +120 -0
- package/src/ui/slider/index.ts +34 -0
- package/src/ui/switch/README.md +11 -0
- package/src/ui/switch/Switch.stx +217 -0
- package/src/ui/switch/index.ts +4 -1
- package/src/utils/mac-theme.ts +95 -0
- package/dist/Checkbox-80myyzzm.stx +0 -142
- package/dist/RadioGroup-smqcqgds.stx +0 -151
- package/dist/RadioGroupOption-twcw1b2a.stx +0 -70
- package/dist/Switch-s8yf2rvm.stx +0 -157
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DefineComponent } from '@stacksjs/stx';
|
|
2
|
+
declare const __dtsx_component__: __DtsxStxComponentType;
|
|
3
|
+
export declare const value: unknown;
|
|
4
|
+
export declare const options: boolean;
|
|
5
|
+
export declare const label: unknown;
|
|
6
|
+
export declare const disabled: ReturnType<typeof $bool>;
|
|
7
|
+
export declare const pickerId: unknown;
|
|
8
|
+
export declare const className: unknown;
|
|
9
|
+
/** @defaultValue `['light', 'dark', 'auto']` */
|
|
10
|
+
declare const MODES: string[];
|
|
11
|
+
declare type __DtsxStxComponentType = DefineComponent<{ value?: unknown, options?: unknown, label?: string, disabled?: unknown, id?: string, className?: string }> & { readonly __stxEmits?: ["change"], readonly __stxExposed?: { value: unknown } }
|
|
12
|
+
export default __dtsx_component__;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** A choice to offer, renamed. A bare mode keeps its English name. */
|
|
2
|
+
export declare interface AppearanceOption {
|
|
3
|
+
value: AppearanceChoice
|
|
4
|
+
label?: string
|
|
5
|
+
}
|
|
6
|
+
export declare interface AppearancePickerProps {
|
|
7
|
+
value?: AppearanceChoice
|
|
8
|
+
options?: Array<AppearanceOption | AppearanceChoice>
|
|
9
|
+
label?: string
|
|
10
|
+
disabled?: boolean
|
|
11
|
+
id?: string
|
|
12
|
+
className?: string
|
|
13
|
+
onChange?: (value: AppearanceChoice) => void
|
|
14
|
+
}
|
|
15
|
+
export type AppearanceChoice = 'light' | 'dark' | 'auto';
|
|
16
|
+
export { default as AppearancePicker } from './AppearancePicker';
|
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import type { DefineComponent } from '@stacksjs/stx';
|
|
2
2
|
declare const __dtsx_component__: __DtsxStxComponentType;
|
|
3
3
|
export declare const variant: unknown;
|
|
4
|
+
/*
|
|
5
|
+
* `appearance="mac"` draws the push button a Mac draws: 22px tall, a capsule,
|
|
6
|
+
* 13px words on a raised face. `variant` already says what a button is FOR
|
|
7
|
+
* here, so the look has a prop of its own, and `variant` keeps meaning intent:
|
|
8
|
+
* `primary` is the accent-filled default button, `danger` the destructive one
|
|
9
|
+
* (red words on the plain face), `ghost` a button with no face until it is
|
|
10
|
+
* pointed at, and anything else, including no variant at all, the plain push
|
|
11
|
+
* button, because on a Mac most buttons are that. It has one size, so `size`
|
|
12
|
+
* is not read. The <button>, its events and its states are the ones below;
|
|
13
|
+
* only the classes change, to `stx-mac-button`, which this file's <style>
|
|
14
|
+
* block draws from the `--stx-mac-*` tokens.
|
|
15
|
+
*/
|
|
16
|
+
export declare const mac: boolean;
|
|
17
|
+
/** @defaultValue `{ primary: 'primary', danger: 'destructive', ghost: 'plain' }` */
|
|
18
|
+
declare const macIntents: {
|
|
19
|
+
/** @defaultValue 'primary' */
|
|
20
|
+
primary: string;
|
|
21
|
+
/** @defaultValue 'destructive' */
|
|
22
|
+
danger: string;
|
|
23
|
+
/** @defaultValue 'plain' */
|
|
24
|
+
ghost: string
|
|
25
|
+
};
|
|
26
|
+
export declare const macIntent: unknown;
|
|
4
27
|
export declare const size: unknown;
|
|
5
28
|
export declare const disabled: ReturnType<typeof $bool>;
|
|
6
29
|
export declare const loading: ReturnType<typeof $bool>;
|
|
@@ -170,5 +193,5 @@ export declare const nativeButtonClasses: unknown;
|
|
|
170
193
|
export declare const nativeTextClasses: string;
|
|
171
194
|
export declare const legacyNativeTint: boolean;
|
|
172
195
|
export declare const nativeTintClass: unknown;
|
|
173
|
-
declare type __DtsxStxComponentType = DefineComponent<{ variant?: string, size?: string, disabled?: unknown, loading?: unknown, type?: string, fullWidth?: unknown, symbol?: string, iconOnly?: unknown, label?: unknown, title?: string, ariaLabel?: unknown, "aria-label"?: string, leftIcon?: string, rightIcon?: string, className?: string }>;
|
|
196
|
+
declare type __DtsxStxComponentType = DefineComponent<{ variant?: string, appearance?: unknown, size?: string, disabled?: unknown, loading?: unknown, type?: string, fullWidth?: unknown, symbol?: string, iconOnly?: unknown, label?: unknown, title?: string, ariaLabel?: unknown, "aria-label"?: string, leftIcon?: string, rightIcon?: string, className?: string }>;
|
|
174
197
|
export default __dtsx_component__;
|
|
@@ -32,6 +32,7 @@ export declare const buttonPropSchema: PropSchema;
|
|
|
32
32
|
export declare const validateButtonProps: (props: Record<string, any>) => ValidationResult;
|
|
33
33
|
export declare interface ButtonProps {
|
|
34
34
|
variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger'
|
|
35
|
+
appearance?: 'mac'
|
|
35
36
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
36
37
|
disabled?: boolean
|
|
37
38
|
loading?: boolean
|
|
@@ -14,6 +14,14 @@ export declare const className: unknown;
|
|
|
14
14
|
// WebKit's native switch retains checkbox form, label and keyboard semantics.
|
|
15
15
|
// Other engines keep their ordinary checkbox until they implement `switch`.
|
|
16
16
|
export declare const switchAppearance: boolean;
|
|
17
|
+
/*
|
|
18
|
+
* `variant="mac"` draws the checkbox a Mac draws: a 14px box with 4px corners,
|
|
19
|
+
* sunk into the page when off and filled with the accent when on. It is the
|
|
20
|
+
* same <input type="checkbox">, so the form value, the label and the keyboard
|
|
21
|
+
* are the browser's own; only the classes change, to `stx-mac-checkbox`,
|
|
22
|
+
* which this file's <style> block draws from the `--stx-mac-*` tokens.
|
|
23
|
+
*/
|
|
24
|
+
export declare const mac: boolean;
|
|
17
25
|
/*
|
|
18
26
|
* The two halves of the validity state, exported so the CLIENT can swap them
|
|
19
27
|
* (stacksjs/stx#2047). Toggled per class rather than as a whole string,
|
|
@@ -56,5 +64,5 @@ export declare const form: unknown;
|
|
|
56
64
|
// Reactive prop binding so the parent can drive `checked` via signals.
|
|
57
65
|
// See stacksjs/stx#1704.
|
|
58
66
|
declare const isChecked: unknown;
|
|
59
|
-
declare type __DtsxStxComponentType = DefineComponent<{ checked?: unknown, disabled?: unknown, indeterminate?: unknown, size?: string, label?: string, description?: string, error?: unknown, required?: unknown, value?: string, name?: string, className?: string, appearance?: unknown, id?: string, autocomplete?: unknown, autoComplete?: string, form?: string }> & { readonly __stxEmits?: ["change"], readonly __stxExposed?: { isChecked: typeof isChecked } }
|
|
67
|
+
declare type __DtsxStxComponentType = DefineComponent<{ checked?: unknown, disabled?: unknown, indeterminate?: unknown, size?: string, label?: string, description?: string, error?: unknown, required?: unknown, value?: string, name?: string, className?: string, appearance?: unknown, variant?: unknown, id?: string, autocomplete?: unknown, autoComplete?: string, form?: string }> & { readonly __stxEmits?: ["change"], readonly __stxExposed?: { isChecked: typeof isChecked } }
|
|
60
68
|
export default __dtsx_component__;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { DefineComponent } from '@stacksjs/stx';
|
|
2
|
+
declare const __dtsx_component__: __DtsxStxComponentType;
|
|
3
|
+
/*
|
|
4
|
+
* <ColorSwatches>: a row of colour dots to pick one from, as System Settings
|
|
5
|
+
* draws its accent colours. The chosen dot has a ring around it and its name
|
|
6
|
+
* written underneath.
|
|
7
|
+
*
|
|
8
|
+
* <ColorSwatches v-model:value="accent" label="Accent colour" :options="[
|
|
9
|
+
* { value: 'multi', label: 'Multicolour', color: 'conic-gradient(red, orange, yellow, green, blue, purple, red)' },
|
|
10
|
+
* { value: 'blue', label: 'Blue', color: '#007aff' },
|
|
11
|
+
* ]" />
|
|
12
|
+
*
|
|
13
|
+
* `color` is any CSS colour or gradient. The dots are a radio group: one tab
|
|
14
|
+
* stop, the arrow keys move the choice, Home and End go to the ends.
|
|
15
|
+
* `change` is emitted with the new value.
|
|
16
|
+
*/
|
|
17
|
+
export declare const value: boolean;
|
|
18
|
+
export declare const options: unknown;
|
|
19
|
+
export declare const label: unknown;
|
|
20
|
+
export declare const disabled: ReturnType<typeof $bool>;
|
|
21
|
+
/* The chosen dot's name under it. Without it the row is only as tall as a dot. */
|
|
22
|
+
export declare const caption: unknown;
|
|
23
|
+
export declare const swatchesId: unknown;
|
|
24
|
+
export declare const className: unknown;
|
|
25
|
+
declare type __DtsxStxComponentType = DefineComponent<{ value?: unknown, options?: unknown, label?: string, disabled?: unknown, caption?: unknown, id?: string, className?: string }> & { readonly __stxEmits?: ["change"], readonly __stxExposed?: { value: unknown } }
|
|
26
|
+
export default __dtsx_component__;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** One colour to choose. A bare string is a colour named after itself. */
|
|
2
|
+
export declare interface ColorSwatchOption {
|
|
3
|
+
value: string
|
|
4
|
+
color: string
|
|
5
|
+
label?: string
|
|
6
|
+
disabled?: boolean
|
|
7
|
+
}
|
|
8
|
+
export declare interface ColorSwatchesProps {
|
|
9
|
+
value?: string
|
|
10
|
+
options: Array<ColorSwatchOption | string>
|
|
11
|
+
label?: string
|
|
12
|
+
disabled?: boolean
|
|
13
|
+
caption?: boolean
|
|
14
|
+
id?: string
|
|
15
|
+
className?: string
|
|
16
|
+
onChange?: (value: string) => void
|
|
17
|
+
}
|
|
18
|
+
export { default as ColorSwatches } from './ColorSwatches';
|
|
@@ -38,6 +38,16 @@ export declare const step: unknown;
|
|
|
38
38
|
export declare const showControls: unknown;
|
|
39
39
|
export declare const className: unknown;
|
|
40
40
|
export declare const inputClassName: unknown;
|
|
41
|
+
/*
|
|
42
|
+
* `variant="mac"` draws the stepper a Mac draws: a narrow field with its
|
|
43
|
+
* digits against the right edge, and beside it a 15x22 capsule holding an up
|
|
44
|
+
* and a down chevron. The field is the same <input type="number">, so the
|
|
45
|
+
* arrow keys step it as the browser does, and the two buttons are the ones
|
|
46
|
+
* the default look has. Only the classes change, to `stx-mac-stepper`, which
|
|
47
|
+
* this file's <style> block draws from the `--stx-mac-*` tokens. `size` is
|
|
48
|
+
* not read; the field is as wide as `--stx-mac-stepper-width` (56px unset).
|
|
49
|
+
*/
|
|
50
|
+
export declare const mac: boolean;
|
|
41
51
|
/*
|
|
42
52
|
* Padding decides the height here too, with no `h-*` to override it: an app
|
|
43
53
|
* passing its own `py-1.5` got the padding it asked for and the height it did
|
|
@@ -79,5 +89,5 @@ export declare const autocomplete: unknown;
|
|
|
79
89
|
export declare const form: unknown;
|
|
80
90
|
export declare const inputMode: unknown;
|
|
81
91
|
export declare const enterKeyHint: unknown;
|
|
82
|
-
declare type __DtsxStxComponentType = DefineComponent<{ value?: string, placeholder?: string, disabled?: unknown, readonly?: unknown, size?: string, error?: unknown, label?: string, id?: string, helperText?: string, required?: unknown, min?: unknown, max?: unknown, step?: unknown, showControls?: unknown, className?: string, inputClassName?: string, name?: string, autocomplete?: unknown, autoComplete?: string, form?: string, inputMode?: unknown, inputmode?: string, enterKeyHint?: unknown, enterkeyhint?: string }> & { readonly __stxExposed?: { value: unknown, increment: typeof increment, decrement: typeof decrement } }
|
|
92
|
+
declare type __DtsxStxComponentType = DefineComponent<{ value?: string, placeholder?: string, disabled?: unknown, readonly?: unknown, size?: string, error?: unknown, label?: string, id?: string, helperText?: string, required?: unknown, min?: unknown, max?: unknown, step?: unknown, showControls?: unknown, className?: string, inputClassName?: string, variant?: unknown, name?: string, autocomplete?: unknown, autoComplete?: string, form?: string, inputMode?: unknown, inputmode?: string, enterKeyHint?: unknown, enterkeyhint?: string }> & { readonly __stxExposed?: { value: unknown, increment: typeof increment, decrement: typeof decrement } }
|
|
83
93
|
export default __dtsx_component__;
|
|
@@ -29,6 +29,14 @@ export declare const required: ReturnType<typeof $bool>;
|
|
|
29
29
|
export declare const showStrength: ReturnType<typeof $bool>;
|
|
30
30
|
export declare const className: unknown;
|
|
31
31
|
export declare const inputClassName: unknown;
|
|
32
|
+
/*
|
|
33
|
+
* `variant="mac"` draws the secure field a Mac draws: TextInput's Mac field
|
|
34
|
+
* (24px, 6px corners, a raised face inside a hairline) with the reveal button
|
|
35
|
+
* inside its trailing edge. Same <input>, same attributes and events; only
|
|
36
|
+
* the classes change, to `stx-mac-field`, which this file's <style> block
|
|
37
|
+
* draws from the `--stx-mac-*` tokens. `size` is not read.
|
|
38
|
+
*/
|
|
39
|
+
export declare const mac: boolean;
|
|
32
40
|
/*
|
|
33
41
|
* Padding decides the height here too, with no `h-*` to override it: an app
|
|
34
42
|
* passing its own `py-1.5` got the padding it asked for and the height it did
|
|
@@ -90,5 +98,5 @@ export declare const nativeAutocomplete: unknown;
|
|
|
90
98
|
export declare const nativeFieldClasses: unknown;
|
|
91
99
|
export declare const nativeLabelClasses: 'mb-1.5 px-4 text-[13px] uppercase text-[#6d6d72] dark:text-[#8d8d93]';
|
|
92
100
|
export declare const nativeHelperClasses: string;
|
|
93
|
-
declare type __DtsxStxComponentType = DefineComponent<{ value?: string, placeholder?: string, disabled?: unknown, readonly?: unknown, size?: string, error?: unknown, label?: string, id?: string, helperText?: string, required?: unknown, showStrength?: unknown, className?: string, inputClassName?: string, name?: string, autocomplete?: unknown, autoComplete?: string, form?: string, inputMode?: unknown, inputmode?: string, enterKeyHint?: unknown, enterkeyhint?: string }> & { readonly __stxExposed?: { value: unknown } }
|
|
101
|
+
declare type __DtsxStxComponentType = DefineComponent<{ value?: string, placeholder?: string, disabled?: unknown, readonly?: unknown, size?: string, error?: unknown, label?: string, id?: string, helperText?: string, required?: unknown, showStrength?: unknown, className?: string, inputClassName?: string, variant?: unknown, name?: string, autocomplete?: unknown, autoComplete?: string, form?: string, inputMode?: unknown, inputmode?: string, enterKeyHint?: unknown, enterkeyhint?: string }> & { readonly __stxExposed?: { value: unknown } }
|
|
94
102
|
export default __dtsx_component__;
|
|
@@ -16,6 +16,17 @@ export declare const maxLength: unknown;
|
|
|
16
16
|
export declare const showCount: ReturnType<typeof $bool>;
|
|
17
17
|
export declare const className: unknown;
|
|
18
18
|
export declare const inputClassName: unknown;
|
|
19
|
+
/*
|
|
20
|
+
* `variant="mac"` draws the text field a Mac draws: 24px tall with 6px
|
|
21
|
+
* corners, a raised face inside a hairline, 13px text, and the accent's ring
|
|
22
|
+
* while it has the keyboard. It is the same <input> with the same attributes
|
|
23
|
+
* and events; only the classes change, to `stx-mac-field`, which this file's
|
|
24
|
+
* <style> block draws from the `--stx-mac-*` tokens. It has one size, so
|
|
25
|
+
* `size` is not read, and it is as wide as `--stx-mac-field-width` (the
|
|
26
|
+
* whole of its container when that is unset).
|
|
27
|
+
*/
|
|
28
|
+
export declare const mac: boolean;
|
|
29
|
+
export declare const macFieldClasses: unknown;
|
|
19
30
|
/*
|
|
20
31
|
* Padding decides the height here too, with no `h-*` to override it: an app
|
|
21
32
|
* passing its own `py-1.5` got the padding it asked for and the height it did
|
|
@@ -152,5 +163,5 @@ export declare const autofocus: ReturnType<typeof $bool>;
|
|
|
152
163
|
export declare const nativeFieldClasses: unknown;
|
|
153
164
|
export declare const nativeLabelClasses: 'mb-1.5 px-4 text-[13px] uppercase text-[#6d6d72] dark:text-[#8d8d93]';
|
|
154
165
|
export declare const nativeHelperClasses: string;
|
|
155
|
-
declare type __DtsxStxComponentType = DefineComponent<{ value?: string, placeholder?: string, disabled?: unknown, readonly?: unknown, size?: string, error?: unknown, label?: string, helperText?: string, required?: unknown, leftIcon?: string, rightIcon?: string, clearable?: unknown, maxLength?: unknown, maxlength?: unknown, showCount?: unknown, className?: string, inputClassName?: string, id?: string, name?: string, autocomplete?: unknown, autoComplete?: string, form?: string, inputMode?: unknown, inputmode?: string, enterKeyHint?: unknown, enterkeyhint?: string, type?: unknown, min?: unknown, max?: unknown, step?: unknown, pattern?: unknown, minLength?: unknown, minlength?: unknown, htmlSize?: unknown, list?: unknown, autofocus?: unknown }> & { readonly __stxEmits?: ["input", "clear", "focus", "blur", "submit", "submit-editing"], readonly __stxExposed?: { value: unknown, clear: unknown } }
|
|
166
|
+
declare type __DtsxStxComponentType = DefineComponent<{ value?: string, placeholder?: string, disabled?: unknown, readonly?: unknown, size?: string, error?: unknown, label?: string, helperText?: string, required?: unknown, leftIcon?: string, rightIcon?: string, clearable?: unknown, maxLength?: unknown, maxlength?: unknown, showCount?: unknown, className?: string, inputClassName?: string, variant?: unknown, id?: string, name?: string, autocomplete?: unknown, autoComplete?: string, form?: string, inputMode?: unknown, inputmode?: string, enterKeyHint?: unknown, enterkeyhint?: string, type?: unknown, min?: unknown, max?: unknown, step?: unknown, pattern?: unknown, minLength?: unknown, minlength?: unknown, htmlSize?: unknown, list?: unknown, autofocus?: unknown }> & { readonly __stxEmits?: ["input", "clear", "focus", "blur", "submit", "submit-editing"], readonly __stxExposed?: { value: unknown, clear: unknown } }
|
|
156
167
|
export default __dtsx_component__;
|
package/dist/ui/input/index.d.ts
CHANGED
|
@@ -53,7 +53,11 @@ export declare interface BaseInputProps {
|
|
|
53
53
|
className?: string
|
|
54
54
|
inputClassName?: string
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
/** The Mac look, which TextInput, PasswordInput and NumberInput draw; `size` is not read under it. */
|
|
57
|
+
export declare interface MacFieldLookProps {
|
|
58
|
+
variant?: 'mac'
|
|
59
|
+
}
|
|
60
|
+
export declare interface TextInputProps extends BaseInputProps, MacFieldLookProps {
|
|
57
61
|
type?: TextInputType
|
|
58
62
|
leftIcon?: string
|
|
59
63
|
rightIcon?: string
|
|
@@ -74,11 +78,11 @@ export declare interface TextInputProps extends BaseInputProps {
|
|
|
74
78
|
export declare interface EmailInputProps extends Omit<BaseInputProps, 'placeholder'> {
|
|
75
79
|
placeholder?: string
|
|
76
80
|
}
|
|
77
|
-
export declare interface PasswordInputProps extends Omit<BaseInputProps, 'placeholder'
|
|
81
|
+
export declare interface PasswordInputProps extends Omit<BaseInputProps, 'placeholder'>, MacFieldLookProps {
|
|
78
82
|
placeholder?: string
|
|
79
83
|
showStrength?: boolean
|
|
80
84
|
}
|
|
81
|
-
export declare interface NumberInputProps extends BaseInputProps {
|
|
85
|
+
export declare interface NumberInputProps extends BaseInputProps, MacFieldLookProps {
|
|
82
86
|
min?: number
|
|
83
87
|
max?: number
|
|
84
88
|
step?: number
|
|
@@ -23,6 +23,27 @@ export declare function normalizeScheme(value: unknown): PreviewScheme;
|
|
|
23
23
|
export declare function sandboxValue(options?: SandboxOptions): string;
|
|
24
24
|
/** Whether a sandbox value keeps the page away from the host. */
|
|
25
25
|
export declare function isIsolatingSandbox(value: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* A document that answers for one colour scheme whatever the system prefers.
|
|
28
|
+
*
|
|
29
|
+
* Chromium hands a frame's `color-scheme` to its page; WebKit does not, so in
|
|
30
|
+
* Safari and in a Craft window the page keeps the system's scheme and a
|
|
31
|
+
* preview asked for `light` on a dark Mac was drawn dark (stacksjs/stx#2186).
|
|
32
|
+
* Nothing set on the frame from outside reaches a sandboxed page there, so the
|
|
33
|
+
* scheme is written into the page instead:
|
|
34
|
+
*
|
|
35
|
+
* - every `(prefers-color-scheme: …)` in a style sheet, a `media` attribute or
|
|
36
|
+
* a script is replaced by a condition that is always true or always false,
|
|
37
|
+
* so the page's own rules, and a `matchMedia` it calls, answer for the
|
|
38
|
+
* scheme asked for;
|
|
39
|
+
* - the root is given that `color-scheme`, so the canvas, form controls,
|
|
40
|
+
* system colours and `light-dark()` follow it too.
|
|
41
|
+
*
|
|
42
|
+
* Text is left alone: a page that shows the words "prefers-color-scheme" to
|
|
43
|
+
* its reader keeps them. A style sheet the page loads from elsewhere is not
|
|
44
|
+
* rewritten, since only the markup is in hand.
|
|
45
|
+
*/
|
|
46
|
+
export declare function forceColorScheme(html: string, scheme: 'light' | 'dark'): string;
|
|
26
47
|
/**
|
|
27
48
|
* The document the frame is given.
|
|
28
49
|
*
|
|
@@ -69,6 +90,7 @@ export declare interface SandboxOptions {
|
|
|
69
90
|
}
|
|
70
91
|
export declare interface DocumentOptions {
|
|
71
92
|
title?: string
|
|
93
|
+
forceScheme?: 'light' | 'dark'
|
|
72
94
|
}
|
|
73
95
|
/**
|
|
74
96
|
* What a preview is made of, before there is a frame. No DOM.
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import type { PreviewScheme, ViewportName } from './core';
|
|
2
|
+
/**
|
|
3
|
+
* Whether this engine hands a frame's `color-scheme` to the page inside it.
|
|
4
|
+
*
|
|
5
|
+
* Asked of the engine once, with a frame of this page's own origin drawn in
|
|
6
|
+
* the scheme the system does not prefer: its page either reports that scheme
|
|
7
|
+
* (Chromium) or the system's (WebKit). An environment with no layout to ask,
|
|
8
|
+
* a DOM emulator, is taken at its word and left alone.
|
|
9
|
+
*/
|
|
10
|
+
export declare function framePassesColorScheme(): boolean;
|
|
2
11
|
export declare interface PreviewFrameOptions {
|
|
3
12
|
html?: string
|
|
4
13
|
viewport?: ViewportName | string
|
|
@@ -24,9 +24,21 @@ export declare const as: unknown;
|
|
|
24
24
|
*/
|
|
25
25
|
export declare const options: unknown;
|
|
26
26
|
export declare const hasPropOptions: boolean;
|
|
27
|
+
/*
|
|
28
|
+
* `variant="mac"` draws the radio buttons a Mac draws: a 15px circle beside
|
|
29
|
+
* each label, sunk when off and the accent around a white dot when on, 22px
|
|
30
|
+
* from one row to the next. The roles, the values and the keys are the ones
|
|
31
|
+
* below; only the classes change, to `stx-mac-radio`, which this file's
|
|
32
|
+
* <style> block draws from the `--stx-mac-*` tokens. An option written as a
|
|
33
|
+
* <RadioGroupOption> child takes `variant="mac"` itself.
|
|
34
|
+
*/
|
|
35
|
+
export declare const mac: boolean;
|
|
27
36
|
declare const optionBaseClasses: 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel';
|
|
28
37
|
export declare const optionClasses: unknown;
|
|
29
|
-
export declare const optionDisabledClasses:
|
|
38
|
+
export declare const optionDisabledClasses: unknown;
|
|
39
|
+
export declare const optionTextClasses: unknown;
|
|
40
|
+
export declare const optionLabelClasses: unknown;
|
|
41
|
+
export declare const optionDescriptionClasses: unknown;
|
|
30
42
|
export declare const groupClasses: unknown;
|
|
31
43
|
export declare const radioGroupInstanceId: unknown;
|
|
32
44
|
/*
|
|
@@ -43,5 +55,5 @@ export declare const radioGroupInstanceId: unknown;
|
|
|
43
55
|
*/
|
|
44
56
|
declare const initialValue: {};
|
|
45
57
|
declare const selected: ReturnType<typeof state>;
|
|
46
|
-
declare type __DtsxStxComponentType = DefineComponent<{ value?: unknown, className?: string, as?: string, options?: unknown }> & { readonly __stxExposed?: { selected: typeof selected, selectValue: typeof selectValue } }
|
|
58
|
+
declare type __DtsxStxComponentType = DefineComponent<{ value?: unknown, className?: string, as?: string, options?: unknown, variant?: unknown }> & { readonly __stxExposed?: { selected: typeof selected, selectValue: typeof selectValue } }
|
|
47
59
|
export default __dtsx_component__;
|
|
@@ -4,7 +4,12 @@ export declare const value: unknown;
|
|
|
4
4
|
export declare const disabled: ReturnType<typeof $bool>;
|
|
5
5
|
export declare const className: unknown;
|
|
6
6
|
export declare const as: unknown;
|
|
7
|
+
/*
|
|
8
|
+
* `variant="mac"`: the radio button a Mac draws, a 15px circle beside the
|
|
9
|
+
* words. See RadioGroup, which takes the same prop for the group.
|
|
10
|
+
*/
|
|
11
|
+
export declare const mac: boolean;
|
|
7
12
|
export declare const optionClasses: unknown;
|
|
8
13
|
export declare const valueJson: unknown;
|
|
9
|
-
declare type __DtsxStxComponentType = DefineComponent<{ value?: unknown, disabled?: unknown, className?: string, as?: string }>;
|
|
14
|
+
declare type __DtsxStxComponentType = DefineComponent<{ value?: unknown, disabled?: unknown, className?: string, as?: string, variant?: unknown }>;
|
|
10
15
|
export default __dtsx_component__;
|
|
@@ -3,6 +3,7 @@ export declare interface RadioGroupProps {
|
|
|
3
3
|
onChange?: (value: any) => void
|
|
4
4
|
className?: string
|
|
5
5
|
as?: string
|
|
6
|
+
variant?: 'mac'
|
|
6
7
|
}
|
|
7
8
|
export declare interface RadioGroupLabelProps {
|
|
8
9
|
className?: string
|
|
@@ -11,6 +12,7 @@ export declare interface RadioGroupLabelProps {
|
|
|
11
12
|
export declare interface RadioGroupOptionProps {
|
|
12
13
|
value: any
|
|
13
14
|
disabled?: boolean
|
|
15
|
+
variant?: 'mac'
|
|
14
16
|
className?: string
|
|
15
17
|
as?: string
|
|
16
18
|
currentValue?: any
|
|
@@ -42,6 +42,14 @@ export declare const disabled: ReturnType<typeof $bool>;
|
|
|
42
42
|
export declare const size: boolean;
|
|
43
43
|
export declare const testID: unknown;
|
|
44
44
|
export declare const className: unknown;
|
|
45
|
+
/*
|
|
46
|
+
* `variant="mac"` draws the segmented control a Mac draws: a 24px capsule
|
|
47
|
+
* track with the chosen segment raised in it. The buttons, `aria-pressed` and
|
|
48
|
+
* the events are the ones below; only the classes change, to
|
|
49
|
+
* `stx-mac-segmented`, which this file's <style> block draws from the
|
|
50
|
+
* `--stx-mac-*` tokens. It has one size, so `size` is not read.
|
|
51
|
+
*/
|
|
52
|
+
export declare const mac: boolean;
|
|
45
53
|
/**
|
|
46
54
|
* @defaultValue
|
|
47
55
|
* ```ts
|
|
@@ -86,5 +94,5 @@ export declare const segmentOff: unknown;
|
|
|
86
94
|
export declare const labelOn: unknown;
|
|
87
95
|
export declare const labelOff: unknown;
|
|
88
96
|
declare const selected: ReturnType<typeof useModel>;
|
|
89
|
-
declare type __DtsxStxComponentType = DefineComponent<{ value?: string, options?: unknown[], label?: string, stretch?: unknown, disabled?: unknown, size?: unknown, testID?: string, className?: string }> & { readonly __stxEmits?: ["change"], readonly __stxExposed?: { selected: typeof selected } }
|
|
97
|
+
declare type __DtsxStxComponentType = DefineComponent<{ value?: string, options?: unknown[], label?: string, stretch?: unknown, disabled?: unknown, size?: unknown, testID?: string, className?: string, variant?: unknown }> & { readonly __stxEmits?: ["change"], readonly __stxExposed?: { selected: typeof selected } }
|
|
90
98
|
export default __dtsx_component__;
|
|
@@ -25,6 +25,15 @@ export declare const label: unknown;
|
|
|
25
25
|
export declare const helperText: unknown;
|
|
26
26
|
export declare const required: ReturnType<typeof $bool>;
|
|
27
27
|
export declare const className: unknown;
|
|
28
|
+
/*
|
|
29
|
+
* `variant="mac"` draws the pop-up button a Mac draws: the chosen value as
|
|
30
|
+
* plain text, right-aligned, and a 20px disc holding an up and a down
|
|
31
|
+
* chevron. It is still the <select> below, so the menu it opens, the keys
|
|
32
|
+
* that work in it and the value it submits are the platform's own (on a Mac
|
|
33
|
+
* that menu is the system's). Only the classes change, to `stx-mac-popup`,
|
|
34
|
+
* which this file's <style> block draws from the `--stx-mac-*` tokens.
|
|
35
|
+
*/
|
|
36
|
+
export declare const mac: boolean;
|
|
28
37
|
/*
|
|
29
38
|
* Padding decides the height here too, with no `h-*` to override it: an app
|
|
30
39
|
* passing its own `py-1.5` got the padding it asked for and the height it did
|
|
@@ -89,5 +98,5 @@ export declare const helperId: string;
|
|
|
89
98
|
export declare const name: unknown;
|
|
90
99
|
export declare const autocomplete: unknown;
|
|
91
100
|
export declare const form: unknown;
|
|
92
|
-
declare type __DtsxStxComponentType = DefineComponent<{ value?: string, options?: unknown, placeholder?: string, disabled?: unknown, size?: string, error?: unknown, label?: string, helperText?: string, required?: unknown, className?: string, id?: string, name?: string, autocomplete?: unknown, autoComplete?: string, form?: string }> & { readonly __stxExposed?: { value: unknown, options: unknown } }
|
|
101
|
+
declare type __DtsxStxComponentType = DefineComponent<{ value?: string, options?: unknown, placeholder?: string, disabled?: unknown, size?: string, error?: unknown, label?: string, helperText?: string, required?: unknown, className?: string, variant?: unknown, id?: string, name?: string, autocomplete?: unknown, autoComplete?: string, form?: string }> & { readonly __stxExposed?: { value: unknown, options: unknown } }
|
|
93
102
|
export default __dtsx_component__;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { DefineComponent } from '@stacksjs/stx';
|
|
2
|
+
declare const __dtsx_component__: __DtsxStxComponentType;
|
|
3
|
+
/*
|
|
4
|
+
* <SettingsGroup>: the rounded inset card a Settings pane is made of, with an
|
|
5
|
+
* optional heading above it and a footnote below.
|
|
6
|
+
*
|
|
7
|
+
* <SettingsGroup header="Windows" footer="Applies to new windows.">
|
|
8
|
+
* <SettingsRow label="Sidebar icon size">...</SettingsRow>
|
|
9
|
+
* <SettingsRow label="Tint window background">...</SettingsRow>
|
|
10
|
+
* </SettingsGroup>
|
|
11
|
+
*
|
|
12
|
+
* The rows are whatever is inside. Each `[data-settings-row]` after the first
|
|
13
|
+
* draws a hairline above itself, inset on both sides, so the card has rules
|
|
14
|
+
* between rows and none at its edges. The rule is found with a sibling
|
|
15
|
+
* selector that looks through the `display: contents` wrapper stx puts
|
|
16
|
+
* around every component, which is why the card does not need to know how
|
|
17
|
+
* many rows it has or which is last.
|
|
18
|
+
*
|
|
19
|
+
* `footer` is text, or a named slot when the footnote carries a link:
|
|
20
|
+
*
|
|
21
|
+
* <template #footer>Read the <a href="/privacy">privacy notes</a>.</template>
|
|
22
|
+
*/
|
|
23
|
+
export declare const header: unknown;
|
|
24
|
+
export declare const footer: unknown;
|
|
25
|
+
export declare const hasFooterSlot: unknown;
|
|
26
|
+
export declare const groupId: unknown;
|
|
27
|
+
export declare const headerId: string;
|
|
28
|
+
export declare const className: unknown;
|
|
29
|
+
declare type __DtsxStxComponentType = DefineComponent<{ header?: string, footer?: string, id?: string, className?: string }>;
|
|
30
|
+
export default __dtsx_component__;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DefineComponent } from '@stacksjs/stx';
|
|
2
|
+
declare const __dtsx_component__: __DtsxStxComponentType;
|
|
3
|
+
/*
|
|
4
|
+
* <SettingsPane>: one screen of a Settings window. Its `id` is the id its
|
|
5
|
+
* sidebar item carries; a pane with a `parent` is a sub-pane, reached by a
|
|
6
|
+
* navigation row and not from the sidebar.
|
|
7
|
+
*
|
|
8
|
+
* Every pane is in the page from the start and all but one are hidden. The
|
|
9
|
+
* shell shows the open one; `active` leaves this one showing before it has.
|
|
10
|
+
*/
|
|
11
|
+
export declare const paneId: unknown;
|
|
12
|
+
export declare const title: unknown;
|
|
13
|
+
export declare const keywords: unknown;
|
|
14
|
+
export declare const parent: unknown;
|
|
15
|
+
export declare const active: ReturnType<typeof $bool>;
|
|
16
|
+
export declare const role: unknown;
|
|
17
|
+
export declare const className: unknown;
|
|
18
|
+
declare type __DtsxStxComponentType = DefineComponent<{ id?: string, title?: unknown, keywords?: string, parent?: string, active?: unknown, className?: string }>;
|
|
19
|
+
export default __dtsx_component__;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DefineComponent } from '@stacksjs/stx';
|
|
2
|
+
declare const __dtsx_component__: __DtsxStxComponentType;
|
|
3
|
+
/*
|
|
4
|
+
* <SettingsPaneHeader>: the card at the top of a pane that says what the pane
|
|
5
|
+
* is. A large icon tile, the pane's name, and a sentence about it.
|
|
6
|
+
*
|
|
7
|
+
* <SettingsPaneHeader icon="i-f7-gear-alt-fill" tone="grey" title="General"
|
|
8
|
+
* description="Manage your overall setup and preferences." />
|
|
9
|
+
*
|
|
10
|
+
* Anything in the slot goes under the description: a link, a button.
|
|
11
|
+
* @defaultValue `['grey', 'blue', 'red', 'orange', 'yellow', 'green', 'indigo', 'purple', 'pink', 'ink']`
|
|
12
|
+
*/
|
|
13
|
+
declare const TONES: string[];
|
|
14
|
+
export declare const icon: unknown;
|
|
15
|
+
export declare const tone: unknown;
|
|
16
|
+
export declare const title: unknown;
|
|
17
|
+
export declare const description: unknown;
|
|
18
|
+
export declare const className: unknown;
|
|
19
|
+
declare type __DtsxStxComponentType = DefineComponent<{ icon?: string, tone?: unknown, title?: string, description?: string, className?: string }>;
|
|
20
|
+
export default __dtsx_component__;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { DefineComponent } from '@stacksjs/stx';
|
|
2
|
+
/** Name the slot's first control after the row, unless it has a name. */
|
|
3
|
+
declare function nameControl(): unknown;
|
|
4
|
+
declare const __dtsx_component__: __DtsxStxComponentType;
|
|
5
|
+
/*
|
|
6
|
+
* <SettingsRow>: one setting in a <SettingsGroup>. Its name at the leading
|
|
7
|
+
* edge, a description under it, and the control (whatever is in the slot) at
|
|
8
|
+
* the trailing edge.
|
|
9
|
+
*
|
|
10
|
+
* <SettingsRow label="Tint window background" setting="tint" keywords="wallpaper colour">
|
|
11
|
+
* <Switch variant="mac" v-model:checked="tint" />
|
|
12
|
+
* </SettingsRow>
|
|
13
|
+
*
|
|
14
|
+
* The row is how the window's search finds a setting, so it carries
|
|
15
|
+
* `data-settings-row`, `data-setting`, `data-label` and `data-keywords`, and
|
|
16
|
+
* it draws the wash the window asks for by setting `data-highlight` on it.
|
|
17
|
+
*
|
|
18
|
+
* The label names the control. Its id is `<row id>-label` (also on the row as
|
|
19
|
+
* `data-label-id`), for a control that wants `aria-labelledby` itself, and
|
|
20
|
+
* when the first control in the slot has no accessible name the row gives it
|
|
21
|
+
* that one, with the description as `aria-describedby`.
|
|
22
|
+
*
|
|
23
|
+
* `to="<pane id>"` makes it a navigation row: a chevron, an optional `value`
|
|
24
|
+
* beside it, and `data-navigate` for the window, which is what opens the pane.
|
|
25
|
+
* The row only draws it.
|
|
26
|
+
*
|
|
27
|
+
* `multiline` lets the words wrap and puts the control at the top;
|
|
28
|
+
* `layout="stacked"` puts the control under the label at full width;
|
|
29
|
+
* `destructive` paints the label as a destructive action. `icon` is an
|
|
30
|
+
* Iconify class on a tile of `tone`.
|
|
31
|
+
* @defaultValue `['grey', 'blue', 'red', 'orange', 'yellow', 'green', 'indigo', 'purple', 'pink', 'ink']`
|
|
32
|
+
*/
|
|
33
|
+
declare const TONES: string[];
|
|
34
|
+
export declare const label: unknown;
|
|
35
|
+
export declare const description: unknown;
|
|
36
|
+
export declare const icon: unknown;
|
|
37
|
+
export declare const tone: unknown;
|
|
38
|
+
export declare const setting: unknown;
|
|
39
|
+
export declare const keywords: unknown;
|
|
40
|
+
export declare const to: unknown;
|
|
41
|
+
export declare const navigates: boolean;
|
|
42
|
+
export declare const value: unknown;
|
|
43
|
+
export declare const multiline: ReturnType<typeof $bool>;
|
|
44
|
+
export declare const destructive: ReturnType<typeof $bool>;
|
|
45
|
+
export declare const disabled: ReturnType<typeof $bool>;
|
|
46
|
+
export declare const layout: boolean;
|
|
47
|
+
declare const settingSlug: unknown;
|
|
48
|
+
export declare const rowId: unknown;
|
|
49
|
+
export declare const labelId: string;
|
|
50
|
+
export declare const descriptionId: string;
|
|
51
|
+
export declare const className: unknown;
|
|
52
|
+
declare type __DtsxStxComponentType = DefineComponent<{ label?: string, description?: string, icon?: string, tone?: unknown, setting?: string, keywords?: string, to?: string, value?: string, multiline?: unknown, destructive?: unknown, disabled?: unknown, layout?: unknown, id?: unknown, className?: string }> & { readonly __stxExposed?: { labelId: typeof labelId, descriptionId: typeof descriptionId, nameControl: typeof nameControl } }
|
|
53
|
+
export default __dtsx_component__;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DefineComponent } from '@stacksjs/stx';
|
|
2
|
+
declare const __dtsx_component__: __DtsxStxComponentType;
|
|
3
|
+
/*
|
|
4
|
+
* <SettingsSidebarGroup>: a run of sidebar items, set a little apart from the
|
|
5
|
+
* next. System Settings gives its groups no headings; `label` is there for
|
|
6
|
+
* the window that needs one.
|
|
7
|
+
*/
|
|
8
|
+
export declare const label: unknown;
|
|
9
|
+
export declare const className: unknown;
|
|
10
|
+
declare type __DtsxStxComponentType = DefineComponent<{ label?: string, className?: string }>;
|
|
11
|
+
export default __dtsx_component__;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DefineComponent } from '@stacksjs/stx';
|
|
2
|
+
declare const __dtsx_component__: __DtsxStxComponentType;
|
|
3
|
+
/*
|
|
4
|
+
* <SettingsSidebarItem>: one row of the sidebar, opening the pane whose id it
|
|
5
|
+
* carries. The icon is an Iconify class, drawn white on a rounded tile in one
|
|
6
|
+
* of System Settings' tile colours.
|
|
7
|
+
*
|
|
8
|
+
* It only draws. The shell selects it, gives it its place in the tab order
|
|
9
|
+
* and links it to its pane.
|
|
10
|
+
* @defaultValue `['grey', 'blue', 'red', 'orange', 'yellow', 'green', 'indigo', 'purple', 'pink', 'ink']`
|
|
11
|
+
*/
|
|
12
|
+
declare const TONES: string[];
|
|
13
|
+
export declare const paneId: unknown;
|
|
14
|
+
export declare const label: unknown;
|
|
15
|
+
export declare const icon: unknown;
|
|
16
|
+
export declare const tone: unknown;
|
|
17
|
+
export declare const badge: boolean;
|
|
18
|
+
/* Words a search should find this item by, beyond its label. */
|
|
19
|
+
export declare const keywords: unknown;
|
|
20
|
+
export declare const className: unknown;
|
|
21
|
+
declare type __DtsxStxComponentType = DefineComponent<{ id?: string, label?: string, icon?: string, tone?: unknown, badge?: boolean, keywords?: string, className?: string }>;
|
|
22
|
+
export default __dtsx_component__;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DefineComponent } from '@stacksjs/stx';
|
|
2
|
+
declare const __dtsx_component__: __DtsxStxComponentType;
|
|
3
|
+
export declare const title: unknown;
|
|
4
|
+
export declare const pane: unknown;
|
|
5
|
+
export declare const searchable: unknown;
|
|
6
|
+
export declare const searchPlaceholder: unknown;
|
|
7
|
+
export declare const storageKey: unknown;
|
|
8
|
+
/*
|
|
9
|
+
* `window` is a window that is all Settings: it fills the viewport and leaves
|
|
10
|
+
* room for the traffic lights. `sheet` is the same two columns inside a page.
|
|
11
|
+
*/
|
|
12
|
+
export declare const presentation: boolean;
|
|
13
|
+
/* A window that is all Settings hears its shortcuts anywhere in the document; a sheet only inside itself. */
|
|
14
|
+
export declare const globalKeys: boolean;
|
|
15
|
+
export declare const className: unknown;
|
|
16
|
+
export declare const settingsId: unknown;
|
|
17
|
+
/* Left out, both come from the stylesheet: the token width, and a height by presentation. */
|
|
18
|
+
declare const sidebarWidth: unknown;
|
|
19
|
+
declare const height: unknown;
|
|
20
|
+
export declare const rootStyle: unknown;
|
|
21
|
+
declare type __DtsxStxComponentType = DefineComponent<{ title?: string, pane?: string, searchable?: unknown, searchPlaceholder?: string, storageKey?: string, presentation?: unknown, className?: string, id?: string, sidebarWidth?: unknown, height?: string }> & { readonly __stxEmits?: ["pane", "search", "navigate"] }
|
|
22
|
+
export default __dtsx_component__;
|