@bridge-ui/vue 0.0.6 → 0.0.8
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/ai/AGENTS.md +31 -0
- package/ai/README.md +35 -0
- package/ai/guidelines/core.md +44 -0
- package/ai/llms.txt +38 -0
- package/ai/skills/bridge-ui-components/SKILL.md +37 -0
- package/ai/skills/bridge-ui-forms/SKILL.md +38 -0
- package/ai/skills/bridge-ui-overlays/SKILL.md +37 -0
- package/ai/skills/bridge-ui-setup/SKILL.md +38 -0
- package/bin/__tests__/ai.test.ts +319 -0
- package/bin/ai.mjs +469 -0
- package/dist/Actions/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Actions/Snackbar/BridgeSnackbarHost.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Actions/Snackbar/createBridgeSnackbarApi.js +17 -17
- package/dist/Adapters/I18n/index.d.ts +1 -1
- package/dist/Adapters/I18n/index.js +2 -2
- package/dist/Adapters/I18n/useI18nAdapter.d.ts +7 -3
- package/dist/Adapters/I18n/useI18nAdapter.js +12 -7
- package/dist/Adapters/Icon/useIconAdapter.d.ts +1 -1
- package/dist/Adapters/index.d.ts +1 -1
- package/dist/Adapters/index.js +3 -3
- package/dist/Components/Alert/composables/useAlert.js +17 -17
- package/dist/Components/Autocomplete/Autocomplete.js +5 -0
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +40 -0
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +197 -0
- package/dist/Components/Autocomplete/AutocompleteOption.js +5 -0
- package/dist/Components/Autocomplete/AutocompleteOption.vue.d.ts +4 -0
- package/dist/Components/Autocomplete/AutocompleteOption.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/Components/Autocomplete/autocomplete.types.d.ts +285 -0
- package/dist/Components/Autocomplete/autocompleteInjectionKey.d.ts +7 -0
- package/dist/Components/Autocomplete/autocompleteInjectionKey.js +4 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +763 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +386 -0
- package/dist/Components/Autocomplete/index.d.ts +4 -0
- package/dist/Components/Autocomplete/index.js +4 -0
- package/dist/Components/Avatar/composables/useAvatar.d.ts +1 -1
- package/dist/Components/Avatar/composables/useAvatar.js +13 -13
- package/dist/Components/Badge/composables/useBadge.js +8 -8
- package/dist/Components/BaseField/BaseField.js +5 -0
- package/dist/Components/BaseField/BaseField.vue.d.ts +15 -0
- package/dist/Components/BaseField/BaseField.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/Components/BaseField/BaseFieldLabel.js +5 -0
- package/dist/Components/BaseField/BaseFieldLabel.vue.d.ts +7 -0
- package/dist/Components/BaseField/BaseFieldLabel.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/Components/BaseField/baseField.types.d.ts +222 -0
- package/dist/Components/BaseField/composables/useBaseField.d.ts +55 -0
- package/dist/Components/BaseField/composables/useBaseField.js +131 -0
- package/dist/Components/BaseField/index.d.ts +4 -0
- package/dist/Components/BaseField/index.js +3 -0
- package/dist/Components/Button/composables/useButton.d.ts +1 -1
- package/dist/Components/Button/composables/useButton.js +14 -14
- package/dist/Components/Card/composables/useCard.js +27 -27
- package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Checkbox/composables/useCheckbox.d.ts +3 -3
- package/dist/Components/Checkbox/composables/useCheckbox.js +9 -9
- package/dist/Components/Chip/Chip.vue.d.ts +1 -1
- package/dist/Components/Chip/composables/useChip.d.ts +1 -1
- package/dist/Components/Chip/composables/useChip.js +6 -6
- package/dist/Components/Divider/composables/useDivider.js +5 -5
- package/dist/Components/Drawer/Drawer.vue.d.ts +2 -2
- package/dist/Components/Drawer/composables/useDrawer.d.ts +1 -1
- package/dist/Components/Drawer/composables/useDrawer.js +23 -23
- package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/FormControl/composables/useFormControl.d.ts +13 -4
- package/dist/Components/FormControl/composables/useFormControl.js +63 -59
- package/dist/Components/FormControl/formControl.types.d.ts +6 -6
- package/dist/Components/FormControl/index.d.ts +1 -1
- package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/composables/useFormField.d.ts +7 -3
- package/dist/Components/FormField/composables/useFormField.js +29 -29
- package/dist/Components/FormField/formField.types.d.ts +14 -14
- package/dist/Components/Icon/composables/useIcon.js +5 -5
- package/dist/Components/Label/composables/useLabel.js +5 -5
- package/dist/Components/Link/composables/useLink.js +9 -9
- package/dist/Components/List/composables/useList.js +6 -6
- package/dist/Components/ListItem/ListItem.vue.d.ts +1 -1
- package/dist/Components/ListItem/composables/useListItem.d.ts +1 -1
- package/dist/Components/ListItem/composables/useListItem.js +20 -20
- package/dist/Components/ListSection/composables/useListSection.js +8 -8
- package/dist/Components/Listbox/Listbox.vue.d.ts +3 -3
- package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +29 -28
- package/dist/Components/Listbox/composables/useListbox.d.ts +10 -1
- package/dist/Components/Listbox/composables/useListbox.js +23 -23
- package/dist/Components/Listbox/index.d.ts +1 -0
- package/dist/Components/Listbox/index.js +3 -3
- package/dist/Components/Listbox/listbox.types.d.ts +6 -0
- package/dist/Components/Menu/Menu.vue.d.ts +2 -2
- package/dist/Components/Menu/composables/useMenu.js +43 -43
- package/dist/Components/Modal/Modal.vue.d.ts +2 -2
- package/dist/Components/Modal/composables/useModal.d.ts +1 -1
- package/dist/Components/Modal/composables/useModal.js +18 -18
- package/dist/Components/NumberField/NumberField.vue.d.ts +2 -2
- package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +34 -34
- package/dist/Components/NumberField/composables/useNumberField.d.ts +4 -4
- package/dist/Components/NumberField/composables/useNumberField.js +13 -10
- package/dist/Components/OtpField/OtpField.js +5 -0
- package/dist/Components/OtpField/OtpField.vue.d.ts +31 -0
- package/dist/Components/OtpField/OtpField.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/Components/OtpField/composables/useOtpField.d.ts +287 -0
- package/dist/Components/OtpField/composables/useOtpField.js +154 -0
- package/dist/Components/OtpField/index.d.ts +4 -0
- package/dist/Components/OtpField/index.js +3 -0
- package/dist/Components/OtpField/otpField.types.d.ts +120 -0
- package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +23 -23
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +4 -4
- package/dist/Components/PasswordField/composables/usePasswordField.js +6 -3
- package/dist/Components/Progress/composables/useProgress.js +11 -11
- package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Radio/composables/useRadio.d.ts +3 -3
- package/dist/Components/Radio/composables/useRadio.js +9 -9
- package/dist/Components/Select/Select.vue.d.ts +5 -5
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +16 -13
- package/dist/Components/Select/composables/useSelect.d.ts +5 -4
- package/dist/Components/Select/composables/useSelect.js +167 -163
- package/dist/Components/Skeleton/composables/useSkeleton.js +5 -5
- package/dist/Components/Slider/Slider.js +5 -0
- package/dist/Components/Slider/Slider.vue.d.ts +25 -0
- package/dist/Components/Slider/Slider.vue_vue_type_script_setup_true_lang.js +113 -0
- package/dist/Components/Slider/composables/useSlider.d.ts +482 -0
- package/dist/Components/Slider/composables/useSlider.js +287 -0
- package/dist/Components/Slider/index.d.ts +4 -0
- package/dist/Components/Slider/index.js +3 -0
- package/dist/Components/Slider/slider.types.d.ts +169 -0
- package/dist/Components/Snackbar/Snackbar.vue.d.ts +2 -2
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +54 -54
- package/dist/Components/Snackbar/composables/useSnackbar.js +115 -115
- package/dist/Components/Spinner/composables/useSpinner.js +11 -11
- package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Switch/composables/useSwitch.d.ts +3 -3
- package/dist/Components/Switch/composables/useSwitch.js +9 -9
- package/dist/Components/Tab/composables/useTab.js +11 -11
- package/dist/Components/TabList/composables/useTabList.js +7 -7
- package/dist/Components/TabPanel/composables/useTabPanel.js +7 -7
- package/dist/Components/Tabs/Tabs.vue.d.ts +2 -2
- package/dist/Components/Tabs/composables/useTabs.js +22 -22
- package/dist/Components/TextField/TextField.vue.d.ts +1 -1
- package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/TextField/composables/useTextField.d.ts +4 -4
- package/dist/Components/TextField/composables/useTextField.js +2 -2
- package/dist/Components/Textarea/Textarea.vue.d.ts +1 -1
- package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/Textarea/composables/useTextarea.d.ts +4 -4
- package/dist/Components/Textarea/composables/useTextarea.js +10 -9
- package/dist/Components/Tooltip/composables/useTooltip.js +17 -17
- package/dist/Provider/bridgeUITypes.d.ts +4 -1
- package/dist/Provider/createBridgeUIApi.js +13 -1
- package/dist/Utils/index.d.ts +3 -3
- package/dist/Utils/index.js +11 -8
- package/dist/Utils/useBreakpoint.js +7 -7
- package/dist/augments.d.ts +29 -17
- package/dist/index.d.ts +11 -3
- package/dist/index.js +88 -80
- package/docs/README.md +56 -0
- package/docs/components/Alert.md +96 -0
- package/docs/components/Autocomplete.md +198 -0
- package/docs/components/Avatar.md +60 -0
- package/docs/components/Badge.md +47 -0
- package/docs/components/BaseField.md +126 -0
- package/docs/components/BridgeUIProvider.md +151 -0
- package/docs/components/Button.md +93 -0
- package/docs/components/Card.md +287 -0
- package/docs/components/Checkbox.md +87 -0
- package/docs/components/Divider.md +56 -0
- package/docs/components/Drawer.md +137 -0
- package/docs/components/FormControl.md +66 -0
- package/docs/components/FormField.md +71 -0
- package/docs/components/I18n.md +125 -0
- package/docs/components/Icon.md +88 -0
- package/docs/components/Label.md +31 -0
- package/docs/components/Link.md +71 -0
- package/docs/components/List.md +167 -0
- package/docs/components/Menu.md +97 -0
- package/docs/components/Modal.md +154 -0
- package/docs/components/NumberField.md +80 -0
- package/docs/components/OtpField.md +133 -0
- package/docs/components/PasswordField.md +82 -0
- package/docs/components/Progress.md +68 -0
- package/docs/components/Radio.md +91 -0
- package/docs/components/Select.md +181 -0
- package/docs/components/Skeleton.md +38 -0
- package/docs/components/Slider.md +140 -0
- package/docs/components/Snackbar.md +99 -0
- package/docs/components/Spinner.md +61 -0
- package/docs/components/Switch.md +72 -0
- package/docs/components/Tabs.md +207 -0
- package/docs/components/TextField.md +72 -0
- package/docs/components/Textarea.md +80 -0
- package/docs/components/Tooltip.md +125 -0
- package/docs/components/useBreakpoint.md +100 -0
- package/docs/components/useDialogAction.md +97 -0
- package/docs/components/useDrawerAction.md +75 -0
- package/docs/components/useModalAction.md +75 -0
- package/docs/components/useSnackbarAction.md +85 -0
- package/docs/examples/i18n-dictionary.ts +48 -0
- package/docs/examples/i18n-vue-i18n.ts +34 -0
- package/docs/examples/icon-fontawesome.ts +112 -0
- package/docs/examples/icon-heroicons.ts +57 -0
- package/docs/examples/icon-lucide.ts +57 -0
- package/docs/examples/icon-phosphor.ts +57 -0
- package/docs/examples/icon-tabler.ts +57 -0
- package/package.json +13 -5
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { HTMLAttributes, Slot } from 'vue';
|
|
2
|
+
import { BaseFieldInvalidated, BaseFieldSize, MergeHtmlProps, MergeProps } from '@bridge-ui/core';
|
|
3
|
+
import { UseBaseFieldReturn } from './composables/useBaseField';
|
|
4
|
+
import { LabelProps } from '../Label/label.types';
|
|
5
|
+
export interface BaseFieldSizeOverrides {}
|
|
6
|
+
export interface BaseFieldClasses {
|
|
7
|
+
/**
|
|
8
|
+
* Classes merged onto the corner label in the header row.
|
|
9
|
+
*/
|
|
10
|
+
corner?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Classes merged onto the helper text below the control group.
|
|
13
|
+
*/
|
|
14
|
+
description?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Classes merged onto the inline-end adornment slot wrapper.
|
|
17
|
+
*/
|
|
18
|
+
end?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Classes merged onto the error message below the control group.
|
|
21
|
+
*/
|
|
22
|
+
errorMessage?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Classes merged onto the control group wrapper.
|
|
25
|
+
*/
|
|
26
|
+
group?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Classes merged onto the label + corner header row.
|
|
29
|
+
*/
|
|
30
|
+
header?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Classes merged onto the primary label.
|
|
33
|
+
*/
|
|
34
|
+
label?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Classes merged onto the required asterisk.
|
|
37
|
+
*/
|
|
38
|
+
required?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Classes merged onto the root wrapper.
|
|
41
|
+
*/
|
|
42
|
+
root?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Classes merged onto the inline-start adornment slot wrapper.
|
|
45
|
+
*/
|
|
46
|
+
start?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface BaseFieldCustomProps {
|
|
49
|
+
/**
|
|
50
|
+
* Props forwarded to the corner label element.
|
|
51
|
+
*/
|
|
52
|
+
corner?: HTMLAttributes;
|
|
53
|
+
/**
|
|
54
|
+
* Props forwarded to the helper text below the control group.
|
|
55
|
+
*/
|
|
56
|
+
description?: HTMLAttributes;
|
|
57
|
+
/**
|
|
58
|
+
* Props forwarded to the inline-end adornment slot wrapper.
|
|
59
|
+
*/
|
|
60
|
+
end?: HTMLAttributes;
|
|
61
|
+
/**
|
|
62
|
+
* Props forwarded to the error message element.
|
|
63
|
+
*/
|
|
64
|
+
errorMessage?: HTMLAttributes;
|
|
65
|
+
/**
|
|
66
|
+
* Props forwarded to the control group wrapper.
|
|
67
|
+
*/
|
|
68
|
+
group?: HTMLAttributes;
|
|
69
|
+
/**
|
|
70
|
+
* Props forwarded to the label + corner header row.
|
|
71
|
+
*/
|
|
72
|
+
header?: HTMLAttributes;
|
|
73
|
+
/**
|
|
74
|
+
* Error-state message colors (`errorMessage`). Label colors come from `Label`
|
|
75
|
+
* when `error` is set.
|
|
76
|
+
*
|
|
77
|
+
* @default undefined
|
|
78
|
+
*/
|
|
79
|
+
invalidated?: Partial<BaseFieldInvalidated>;
|
|
80
|
+
/**
|
|
81
|
+
* Props forwarded to the primary `Label` (content stays owned by `BaseField`).
|
|
82
|
+
*
|
|
83
|
+
* @default undefined
|
|
84
|
+
*/
|
|
85
|
+
label?: Partial<Omit<LabelProps, "children">>;
|
|
86
|
+
/**
|
|
87
|
+
* Props forwarded to the root wrapper.
|
|
88
|
+
*/
|
|
89
|
+
root?: HTMLAttributes;
|
|
90
|
+
/**
|
|
91
|
+
* Props forwarded to the inline-start adornment slot wrapper.
|
|
92
|
+
*/
|
|
93
|
+
start?: HTMLAttributes;
|
|
94
|
+
}
|
|
95
|
+
export interface BaseFieldOwnProps {
|
|
96
|
+
/**
|
|
97
|
+
* Classes for the field chrome and control group layout.
|
|
98
|
+
*
|
|
99
|
+
* @default undefined
|
|
100
|
+
*/
|
|
101
|
+
classes?: BaseFieldClasses;
|
|
102
|
+
/**
|
|
103
|
+
* Associates labels and helper text with the control group. When omitted, an
|
|
104
|
+
* id is generated automatically.
|
|
105
|
+
*
|
|
106
|
+
* @default undefined
|
|
107
|
+
*/
|
|
108
|
+
controlId?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Secondary label text at the inline end of the header row.
|
|
111
|
+
*
|
|
112
|
+
* @default undefined
|
|
113
|
+
*/
|
|
114
|
+
corner?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Extra props for internal parts (`root`, `group`, `label`, …).
|
|
117
|
+
*
|
|
118
|
+
* @default undefined
|
|
119
|
+
*/
|
|
120
|
+
customProps?: BaseFieldCustomProps;
|
|
121
|
+
/**
|
|
122
|
+
* Helper text below the control group (hidden when the field is invalid).
|
|
123
|
+
*
|
|
124
|
+
* @default undefined
|
|
125
|
+
*/
|
|
126
|
+
description?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Whether the field control is disabled.
|
|
129
|
+
*
|
|
130
|
+
* @default false
|
|
131
|
+
*/
|
|
132
|
+
disabled?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* When `true`, applies invalid styling on the label and control group.
|
|
135
|
+
*
|
|
136
|
+
* @default false
|
|
137
|
+
*/
|
|
138
|
+
error?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Error message below the control group. Shown only when set (or via
|
|
141
|
+
* `errorMessage` slot).
|
|
142
|
+
*
|
|
143
|
+
* @default undefined
|
|
144
|
+
*/
|
|
145
|
+
errorMessage?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Pre-composed field chrome API from a parent composable. Used by
|
|
148
|
+
* `<BaseField :field="…" />`; not set on OtpField, Slider, or similar
|
|
149
|
+
* wrappers.
|
|
150
|
+
*
|
|
151
|
+
* @default undefined
|
|
152
|
+
*/
|
|
153
|
+
field?: UseBaseFieldReturn;
|
|
154
|
+
/**
|
|
155
|
+
* When `true`, does not reserve space below the group for error messages.
|
|
156
|
+
*
|
|
157
|
+
* @default false
|
|
158
|
+
*/
|
|
159
|
+
hideErrorMessage?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* The primary label text above the control group.
|
|
162
|
+
*
|
|
163
|
+
* @default undefined
|
|
164
|
+
*/
|
|
165
|
+
label?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Whether the field control is read-only.
|
|
168
|
+
*
|
|
169
|
+
* @default false
|
|
170
|
+
*/
|
|
171
|
+
readonly?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* Shows a red asterisk on the label.
|
|
174
|
+
*
|
|
175
|
+
* @default false
|
|
176
|
+
*/
|
|
177
|
+
required?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Label typography and control group gap scale.
|
|
180
|
+
*
|
|
181
|
+
* @default "md"
|
|
182
|
+
*/
|
|
183
|
+
size?: MergeProps<BaseFieldSize, BaseFieldSizeOverrides>;
|
|
184
|
+
/**
|
|
185
|
+
* Chrome slots (`label`, `corner`, `description`, `errorMessage`, …) and the
|
|
186
|
+
* control.
|
|
187
|
+
*
|
|
188
|
+
* @default undefined
|
|
189
|
+
*/
|
|
190
|
+
slots?: BaseFieldSlots;
|
|
191
|
+
}
|
|
192
|
+
export interface BaseFieldSlots {
|
|
193
|
+
/**
|
|
194
|
+
* Secondary header text at the inline end.
|
|
195
|
+
*/
|
|
196
|
+
corner?: Slot;
|
|
197
|
+
/**
|
|
198
|
+
* The form control (input, pin group, slider track, …).
|
|
199
|
+
*/
|
|
200
|
+
default?: Slot<undefined>;
|
|
201
|
+
/**
|
|
202
|
+
* Helper text below the control group.
|
|
203
|
+
*/
|
|
204
|
+
description?: Slot;
|
|
205
|
+
/**
|
|
206
|
+
* Inline-end slot beside the control group (e.g. a button or timer).
|
|
207
|
+
*/
|
|
208
|
+
end?: Slot;
|
|
209
|
+
/**
|
|
210
|
+
* Error message below the control group.
|
|
211
|
+
*/
|
|
212
|
+
errorMessage?: Slot;
|
|
213
|
+
/**
|
|
214
|
+
* Primary label content.
|
|
215
|
+
*/
|
|
216
|
+
label?: Slot;
|
|
217
|
+
/**
|
|
218
|
+
* Inline-start slot beside the control group (e.g. an icon or button).
|
|
219
|
+
*/
|
|
220
|
+
start?: Slot;
|
|
221
|
+
}
|
|
222
|
+
export type BaseFieldProps = MergeHtmlProps<BaseFieldOwnProps, Omit<HTMLAttributes, "color">>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { HTMLAttributes, MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core';
|
|
3
|
+
import { BaseFieldClasses, BaseFieldOwnProps } from '../baseField.types';
|
|
4
|
+
import { LabelProps } from '../../Label/label.types';
|
|
5
|
+
export type BaseFieldOptions = {
|
|
6
|
+
/**
|
|
7
|
+
* Public registry key that owns BaseField chrome defaults/tokens.
|
|
8
|
+
*/
|
|
9
|
+
componentName?: "Slider" | "OtpField";
|
|
10
|
+
/**
|
|
11
|
+
* Resolve `Label` `for` from `controlId`. Defaults to the control id itself.
|
|
12
|
+
*/
|
|
13
|
+
labelHtmlFor?: (controlId: string) => string;
|
|
14
|
+
};
|
|
15
|
+
export declare const baseFieldBridgeKeys: readonly ["size", "error", "label", "corner", "classes", "disabled", "readonly", "required", "controlId", "customProps", "description", "errorMessage", "hideErrorMessage"];
|
|
16
|
+
type BaseFieldLibDefaults = LibDefaultsShape<Omit<BaseFieldOwnProps, "field">, "size" | "error" | "hideErrorMessage">;
|
|
17
|
+
type BaseFieldMerged = MergeLibDefaults<Omit<BaseFieldOwnProps, "field">, BaseFieldLibDefaults>;
|
|
18
|
+
/**
|
|
19
|
+
* Composes shared vertical field chrome: label, corner, start/end slots,
|
|
20
|
+
* description, and error message.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useBaseField(props: MaybeRefOrGetter<Omit<BaseFieldOwnProps, "field">>, libDefaults?: BaseFieldLibDefaults, options?: BaseFieldOptions): {
|
|
23
|
+
slots: Readonly<{
|
|
24
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
merged: import('vue').ComputedRef<BaseFieldMerged>;
|
|
27
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", HTMLAttributes | undefined, {
|
|
28
|
+
slots?: import('../baseField.types').BaseFieldSlots | undefined;
|
|
29
|
+
class: string;
|
|
30
|
+
}>>;
|
|
31
|
+
errorBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", HTMLAttributes | undefined, {}>>;
|
|
32
|
+
groupBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", HTMLAttributes | undefined, {
|
|
33
|
+
role: string;
|
|
34
|
+
id: string;
|
|
35
|
+
"aria-describedby": string | undefined;
|
|
36
|
+
"aria-disabled": true | undefined;
|
|
37
|
+
"aria-invalid": true | undefined;
|
|
38
|
+
}>>;
|
|
39
|
+
controlId: import('vue').ComputedRef<string>;
|
|
40
|
+
headerBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", HTMLAttributes | undefined, {}>>;
|
|
41
|
+
cornerBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", HTMLAttributes | undefined, {}>>;
|
|
42
|
+
isDisabled: import('vue').ComputedRef<boolean>;
|
|
43
|
+
isReadonly: import('vue').ComputedRef<boolean>;
|
|
44
|
+
sizeClasses: import('vue').ComputedRef<import('@bridge-ui/core').BaseFieldSizeItem | undefined>;
|
|
45
|
+
endSlotBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", HTMLAttributes | undefined, {}>>;
|
|
46
|
+
invalidated: import('vue').ComputedRef<boolean>;
|
|
47
|
+
startSlotBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", HTMLAttributes | undefined, {}>>;
|
|
48
|
+
mergedClasses: import('vue').ComputedRef<Partial<BaseFieldClasses>>;
|
|
49
|
+
ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
|
|
50
|
+
fieldLabelProps: import('vue').ComputedRef<LabelProps>;
|
|
51
|
+
descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", HTMLAttributes | undefined, {}>>;
|
|
52
|
+
showErrorMessageContent: import('vue').ComputedRef<boolean>;
|
|
53
|
+
};
|
|
54
|
+
export type UseBaseFieldReturn = ReturnType<typeof useBaseField>;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { hasSlotOrProp as e } from "../../../Utils/slotOrProp.js";
|
|
2
|
+
import { mergeNestedComponentProps as t, mergePartBind as n, useBridgeUIComponent as r, useBridgeUIMergedRegistryClasses as i } from "../../../Utils/index.js";
|
|
3
|
+
import { computed as a, toValue as o, useAttrs as s, useId as c, useSlots as l } from "vue";
|
|
4
|
+
import { cn as u, mergeBridgeUILayeredClasses as d, splitComponentProps as f } from "@bridge-ui/core";
|
|
5
|
+
import { get as p, omit as m } from "es-toolkit/compat";
|
|
6
|
+
import { invalidatedProps as h, sizeProps as g } from "@bridge-ui/core/Tokens/BaseField";
|
|
7
|
+
//#region src/Components/BaseField/composables/useBaseField.ts
|
|
8
|
+
var _ = [
|
|
9
|
+
"size",
|
|
10
|
+
"error",
|
|
11
|
+
"label",
|
|
12
|
+
"corner",
|
|
13
|
+
"classes",
|
|
14
|
+
"disabled",
|
|
15
|
+
"readonly",
|
|
16
|
+
"required",
|
|
17
|
+
"controlId",
|
|
18
|
+
"customProps",
|
|
19
|
+
"description",
|
|
20
|
+
"errorMessage",
|
|
21
|
+
"hideErrorMessage"
|
|
22
|
+
];
|
|
23
|
+
function v(v, y = {
|
|
24
|
+
size: "md",
|
|
25
|
+
error: !1,
|
|
26
|
+
hideErrorMessage: !1
|
|
27
|
+
}, b = {}) {
|
|
28
|
+
let x = s(), S = l(), C = c(), w = a(() => f({
|
|
29
|
+
bridgeKeys: _,
|
|
30
|
+
props: {
|
|
31
|
+
...x,
|
|
32
|
+
...o(v)
|
|
33
|
+
}
|
|
34
|
+
})), { merged: T, entry: E } = r({
|
|
35
|
+
libDefaults: y,
|
|
36
|
+
componentName: b.componentName,
|
|
37
|
+
props: () => w.value.componentProps
|
|
38
|
+
}), D = i({
|
|
39
|
+
entry: E,
|
|
40
|
+
props: () => w.value.componentProps
|
|
41
|
+
}), O = a(() => T.value.customProps), k = a(() => T.value.error === !0), A = a(() => !!T.value.disabled), j = a(() => !!T.value.readonly), M = a(() => T.value.controlId ?? w.value.inheritedAttrs.id ?? C), N = a(() => p(d(g, p(E.value, [
|
|
42
|
+
"tokens",
|
|
43
|
+
"baseField",
|
|
44
|
+
"size"
|
|
45
|
+
])), T.value.size ?? "md")), P = a(() => d(h, p(E.value, [
|
|
46
|
+
"tokens",
|
|
47
|
+
"baseField",
|
|
48
|
+
"invalidated"
|
|
49
|
+
]), T.value.customProps?.invalidated)), F = a(() => k.value ? P.value : void 0), I = a(() => !T.value.hideErrorMessage), L = a(() => k.value && e(S, "errorMessage", T.value.errorMessage)), R = a(() => {
|
|
50
|
+
let t = [];
|
|
51
|
+
return !k.value && e(S, "description", T.value.description) && t.push(`${M.value}-description`), k.value && !T.value.hideErrorMessage && e(S, "errorMessage", T.value.errorMessage) && t.push(`${M.value}-error`), t.length > 0 ? t.join(" ") : void 0;
|
|
52
|
+
}), z = a(() => n(O.value?.root, {
|
|
53
|
+
class: u(w.value.inheritedAttrs.class),
|
|
54
|
+
...m(w.value.inheritedAttrs, ["class", "id"])
|
|
55
|
+
}, u({
|
|
56
|
+
"group w-full relative": !0,
|
|
57
|
+
"aria-disabled:pointer-events-none aria-disabled:select-none aria-disabled:opacity-60": !0,
|
|
58
|
+
"aria-readonly:pointer-events-none aria-readonly:select-none": !0,
|
|
59
|
+
[D.value.root ?? ""]: !0
|
|
60
|
+
}))), B = a(() => n(O.value?.header, {}, u({
|
|
61
|
+
"flex w-full gap-x-2 mb-1.5": !0,
|
|
62
|
+
"justify-between items-end": e(S, "label", T.value.label),
|
|
63
|
+
"justify-end": !e(S, "label", T.value.label),
|
|
64
|
+
[D.value.header ?? ""]: !0
|
|
65
|
+
}))), V = a(() => n(O.value?.corner, {}, u({
|
|
66
|
+
"text-gray-500 dark:text-gray-400": !0,
|
|
67
|
+
[N.value?.text ?? ""]: !0,
|
|
68
|
+
[D.value.corner ?? ""]: !0
|
|
69
|
+
}))), H = a(() => n(O.value?.group, {
|
|
70
|
+
role: "group",
|
|
71
|
+
id: M.value,
|
|
72
|
+
"aria-describedby": R.value,
|
|
73
|
+
"aria-disabled": A.value || void 0,
|
|
74
|
+
"aria-invalid": k.value || void 0
|
|
75
|
+
}, u({
|
|
76
|
+
"flex flex-wrap items-center": !0,
|
|
77
|
+
[N.value?.group ?? ""]: !0,
|
|
78
|
+
[D.value.group ?? ""]: !0
|
|
79
|
+
}))), U = a(() => n(O.value?.start, {}, u({
|
|
80
|
+
"group/start wrapper-start-slot shrink-0 flex items-center [&>*]:min-h-0": !0,
|
|
81
|
+
[D.value.start ?? ""]: !0
|
|
82
|
+
}))), W = a(() => n(O.value?.end, {}, u({
|
|
83
|
+
"group/end wrapper-end-slot shrink-0 flex items-center [&>*]:min-h-0": !0,
|
|
84
|
+
[D.value.end ?? ""]: !0
|
|
85
|
+
}))), G = a(() => n(O.value?.description, {}, u({
|
|
86
|
+
"mt-2 text-gray-500 dark:text-gray-400": !0,
|
|
87
|
+
[N.value?.text ?? ""]: !0,
|
|
88
|
+
[D.value.description ?? ""]: !0
|
|
89
|
+
})));
|
|
90
|
+
return {
|
|
91
|
+
slots: S,
|
|
92
|
+
merged: T,
|
|
93
|
+
rootBind: z,
|
|
94
|
+
errorBind: a(() => n(O.value?.errorMessage, {}, u({
|
|
95
|
+
"mt-2": !0,
|
|
96
|
+
"min-h-[1lh]": I.value,
|
|
97
|
+
[F.value?.errorMessage ?? ""]: !0,
|
|
98
|
+
[N.value?.text ?? ""]: !0,
|
|
99
|
+
[D.value.errorMessage ?? ""]: !0
|
|
100
|
+
}))),
|
|
101
|
+
groupBind: H,
|
|
102
|
+
controlId: M,
|
|
103
|
+
headerBind: B,
|
|
104
|
+
cornerBind: V,
|
|
105
|
+
isDisabled: A,
|
|
106
|
+
isReadonly: j,
|
|
107
|
+
sizeClasses: N,
|
|
108
|
+
endSlotBind: W,
|
|
109
|
+
invalidated: k,
|
|
110
|
+
startSlotBind: U,
|
|
111
|
+
mergedClasses: D,
|
|
112
|
+
ariaDescribedBy: R,
|
|
113
|
+
fieldLabelProps: a(() => {
|
|
114
|
+
let e = b.labelHtmlFor ?? ((e) => e);
|
|
115
|
+
return t(O.value?.label, {
|
|
116
|
+
size: T.value.size,
|
|
117
|
+
error: k.value,
|
|
118
|
+
required: T.value.required,
|
|
119
|
+
for: e(M.value),
|
|
120
|
+
classes: {
|
|
121
|
+
required: D.value.required,
|
|
122
|
+
root: u({ [D.value.label ?? ""]: !0 })
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}),
|
|
126
|
+
descriptionBind: G,
|
|
127
|
+
showErrorMessageContent: L
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
export { _ as baseFieldBridgeKeys, v as useBaseField };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { BaseFieldClasses, BaseFieldCustomProps, BaseFieldOwnProps, BaseFieldProps, BaseFieldSizeOverrides, BaseFieldSlots, } from './baseField.types';
|
|
2
|
+
export { default as BaseField } from './BaseField.vue';
|
|
3
|
+
export { baseFieldBridgeKeys, useBaseField, } from './composables/useBaseField';
|
|
4
|
+
export type { BaseFieldOptions, UseBaseFieldReturn, } from './composables/useBaseField';
|
|
@@ -7,7 +7,7 @@ export declare function useButton(props: ButtonOwnProps, libDefaults: ButtonLibD
|
|
|
7
7
|
merged: import('vue').ComputedRef<ButtonMerged>;
|
|
8
8
|
isMini: import('vue').ComputedRef<boolean>;
|
|
9
9
|
iconBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
|
|
10
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Omit<ButtonProps, "color" | "href" | "icon" | "size" | "classes" | "customProps" | "full" | "rounded" | "variant" | "text" | "
|
|
10
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Omit<ButtonProps, "color" | "href" | "icon" | "size" | "classes" | "customProps" | "full" | "rounded" | "variant" | "text" | "disabled" | "endIcon" | "startIcon" | "as" | "loading" | "density">>>;
|
|
11
11
|
rootHref: import('vue').ComputedRef<string | undefined>;
|
|
12
12
|
rootType: import('vue').ComputedRef<"button" | undefined>;
|
|
13
13
|
endIconBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
|
|
2
2
|
import { computed as r, useAttrs as i } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { cn as a, mergeBridgeUILayeredClasses as o, splitComponentProps as s } from "@bridge-ui/core";
|
|
4
|
+
import { get as c, includes as l, isNil as u } from "es-toolkit/compat";
|
|
5
5
|
import { densityProps as d, roundedProps as f, variantProps as p } from "@bridge-ui/core/Tokens/Button";
|
|
6
6
|
//#region src/Components/Button/composables/useButton.ts
|
|
7
7
|
var m = [
|
|
@@ -23,7 +23,7 @@ var m = [
|
|
|
23
23
|
"customProps"
|
|
24
24
|
];
|
|
25
25
|
function h(h, g) {
|
|
26
|
-
let _ = i(), v = r(() =>
|
|
26
|
+
let _ = i(), v = r(() => s({
|
|
27
27
|
bridgeKeys: m,
|
|
28
28
|
props: {
|
|
29
29
|
..._,
|
|
@@ -40,22 +40,22 @@ function h(h, g) {
|
|
|
40
40
|
if (!(!w.value || D.value || !y.value.href)) return y.value.href;
|
|
41
41
|
}), M = r(() => {
|
|
42
42
|
if (!T.value) return;
|
|
43
|
-
let e =
|
|
44
|
-
return
|
|
43
|
+
let e = c(v.value.inheritedAttrs, "type");
|
|
44
|
+
return l([
|
|
45
45
|
"submit",
|
|
46
46
|
"reset",
|
|
47
47
|
"button"
|
|
48
48
|
], e) ? e : "button";
|
|
49
|
-
}), N = r(() =>
|
|
49
|
+
}), N = r(() => c(o(d, b.value?.tokens?.density), [y.value.density, y.value.size])), P = r(() => u(v.value.componentProps.variant) ? E.value ? "flat" : y.value.variant : v.value.componentProps.variant), F = r(() => c(o(p, b.value?.tokens?.variant), [P.value, y.value.color])), I = r(() => c(o(f, b.value?.tokens?.rounded), y.value.rounded));
|
|
50
50
|
return {
|
|
51
51
|
tag: C,
|
|
52
52
|
merged: y,
|
|
53
53
|
isMini: E,
|
|
54
|
-
iconBind: r(() => e(x.value?.icon, {},
|
|
54
|
+
iconBind: r(() => e(x.value?.icon, {}, a({
|
|
55
55
|
"shrink-0": !0,
|
|
56
56
|
[S.value.icon ?? ""]: !0
|
|
57
57
|
}))),
|
|
58
|
-
rootBind: r(() => e(x.value?.root, v.value.inheritedAttrs,
|
|
58
|
+
rootBind: r(() => e(x.value?.root, v.value.inheritedAttrs, a({
|
|
59
59
|
"inline-flex items-center justify-center": !0,
|
|
60
60
|
"cursor-pointer outline-none outline-hidden": !0,
|
|
61
61
|
"shrink-0": E.value,
|
|
@@ -64,9 +64,9 @@ function h(h, g) {
|
|
|
64
64
|
"w-full": !E.value && y.value.full,
|
|
65
65
|
"w-fit": !E.value && !y.value.full,
|
|
66
66
|
"group hover:shadow-xs": !E.value,
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
67
|
+
[c(F.value, "base") ?? ""]: !0,
|
|
68
|
+
[c(F.value, "hover") ?? ""]: !0,
|
|
69
|
+
[c(F.value, "focus") ?? ""]: !0,
|
|
70
70
|
"transition-all ease-in-out duration-200": !0,
|
|
71
71
|
"focus:ring-2": !0,
|
|
72
72
|
"focus:ring-offset-background-white dark:focus:ring-offset-background-dark": !0,
|
|
@@ -76,19 +76,19 @@ function h(h, g) {
|
|
|
76
76
|
}))),
|
|
77
77
|
rootHref: j,
|
|
78
78
|
rootType: M,
|
|
79
|
-
endIconBind: r(() => e(x.value?.endIcon, {},
|
|
79
|
+
endIconBind: r(() => e(x.value?.endIcon, {}, a({
|
|
80
80
|
"shrink-0": !0,
|
|
81
81
|
[S.value.endIcon ?? ""]: !0
|
|
82
82
|
}))),
|
|
83
83
|
endSlotBind: r(() => e(x.value?.end, {}, "inline-flex shrink-0 items-center")),
|
|
84
84
|
rootAriaBusy: k,
|
|
85
85
|
rootDisabled: O,
|
|
86
|
-
startIconBind: r(() => e(x.value?.startIcon, {},
|
|
86
|
+
startIconBind: r(() => e(x.value?.startIcon, {}, a({
|
|
87
87
|
"shrink-0": !0,
|
|
88
88
|
[S.value.startIcon ?? ""]: !0
|
|
89
89
|
}))),
|
|
90
90
|
startSlotBind: r(() => e(x.value?.start, {}, "inline-flex shrink-0 items-center")),
|
|
91
|
-
loadingIconBind: r(() => e(x.value?.loading, {},
|
|
91
|
+
loadingIconBind: r(() => e(x.value?.loading, {}, a({
|
|
92
92
|
"shrink-0 animate-spin": !0,
|
|
93
93
|
[S.value.loading ?? ""]: !0
|
|
94
94
|
}))),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { hasNamedSlot as e } from "../../../Utils/slotOrProp.js";
|
|
2
2
|
import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
|
|
3
3
|
import { computed as i, useAttrs as a, useSlots as o } from "vue";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { cn as s, mergeBridgeUILayeredClasses as c, splitComponentProps as l } from "@bridge-ui/core";
|
|
5
|
+
import { get as u } from "es-toolkit/compat";
|
|
6
6
|
import { paddingProps as d, roundedProps as f, shadowProps as p, variantProps as m } from "@bridge-ui/core/Tokens/Card";
|
|
7
7
|
//#region src/Components/Card/composables/useCard.ts
|
|
8
8
|
var h = [
|
|
@@ -16,7 +16,7 @@ var h = [
|
|
|
16
16
|
"customProps"
|
|
17
17
|
];
|
|
18
18
|
function g(g, _) {
|
|
19
|
-
let v = a(), y = o(), b = i(() =>
|
|
19
|
+
let v = a(), y = o(), b = i(() => l({
|
|
20
20
|
bridgeKeys: h,
|
|
21
21
|
props: {
|
|
22
22
|
...v,
|
|
@@ -32,44 +32,44 @@ function g(g, _) {
|
|
|
32
32
|
}), T = i(() => {
|
|
33
33
|
let e = y.default?.();
|
|
34
34
|
return !!(e && e.length > 0);
|
|
35
|
-
}), E = i(() => e(y, "footer")), D = i(() =>
|
|
36
|
-
if (x.value.variant === "elevated") return
|
|
37
|
-
}), A = i(() =>
|
|
35
|
+
}), E = i(() => e(y, "footer")), D = i(() => u(c(m, S.value?.tokens?.variant), x.value.variant)), O = i(() => x.value.borderless ? !1 : !!u(D.value, "border")), k = i(() => {
|
|
36
|
+
if (x.value.variant === "elevated") return u(c(p, S.value?.tokens?.shadow), x.value.shadow);
|
|
37
|
+
}), A = i(() => u(c(d, S.value?.tokens?.padding), x.value.padding)), j = i(() => u(c(f, S.value?.tokens?.rounded), x.value.rounded)), M = i(() => t(C.value?.body, {}, s({
|
|
38
38
|
grow: !0,
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
}))), N = i(() => t(C.value?.footer, {},
|
|
39
|
+
[u(A.value, "body") ?? ""]: !0,
|
|
40
|
+
[u(D.value, "text") ?? ""]: !0,
|
|
41
|
+
[u(w.value, "body") ?? ""]: !0
|
|
42
|
+
}))), N = i(() => t(C.value?.footer, {}, s({
|
|
43
43
|
"border-t": O.value,
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
}))), P = i(() => t(C.value?.header, {},
|
|
44
|
+
[u(A.value, "footer") ?? ""]: !0,
|
|
45
|
+
[u(D.value, "border") ?? ""]: O.value,
|
|
46
|
+
[u(D.value, "footer") ?? ""]: !0,
|
|
47
|
+
[u(j.value, "footer") ?? ""]: !0,
|
|
48
|
+
[u(w.value, "footer") ?? ""]: !0
|
|
49
|
+
}))), P = i(() => t(C.value?.header, {}, s({
|
|
50
50
|
"flex items-center justify-between": !0,
|
|
51
51
|
"border-b": O.value,
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
[
|
|
52
|
+
[u(A.value, "header") ?? ""]: !0,
|
|
53
|
+
[u(D.value, "border") ?? ""]: O.value,
|
|
54
|
+
[u(j.value, "header") ?? ""]: !0,
|
|
55
|
+
[u(w.value, "header") ?? ""]: !0
|
|
56
56
|
})));
|
|
57
57
|
return {
|
|
58
58
|
slots: y,
|
|
59
59
|
merged: x,
|
|
60
60
|
bodyBind: M,
|
|
61
|
-
rootBind: i(() => t(C.value?.root, b.value.inheritedAttrs,
|
|
61
|
+
rootBind: i(() => t(C.value?.root, b.value.inheritedAttrs, s({
|
|
62
62
|
"flex w-full flex-col": !0,
|
|
63
63
|
[k.value ?? ""]: !0,
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
64
|
+
[u(j.value, "root") ?? ""]: !0,
|
|
65
|
+
[u(D.value, "root") ?? ""]: !0,
|
|
66
|
+
[u(w.value, "root") ?? ""]: !0
|
|
67
67
|
}))),
|
|
68
68
|
hasFooter: E,
|
|
69
|
-
titleBind: i(() => t(C.value?.title, {},
|
|
69
|
+
titleBind: i(() => t(C.value?.title, {}, s({
|
|
70
70
|
"text-base font-medium whitespace-normal": !0,
|
|
71
|
-
[
|
|
72
|
-
[
|
|
71
|
+
[u(D.value, "text") ?? ""]: !0,
|
|
72
|
+
[u(w.value, "title") ?? ""]: !0
|
|
73
73
|
}))),
|
|
74
74
|
footerBind: N,
|
|
75
75
|
headerBind: P,
|
|
@@ -25,10 +25,10 @@ var C = ["for"], w = ["checked"], T = {
|
|
|
25
25
|
endLabel: {},
|
|
26
26
|
error: { type: Boolean },
|
|
27
27
|
errorMessage: {},
|
|
28
|
+
hideErrorMessage: { type: Boolean },
|
|
28
29
|
readonly: { type: Boolean },
|
|
29
30
|
required: { type: Boolean },
|
|
30
|
-
startLabel: {}
|
|
31
|
-
withoutErrorMessage: { type: Boolean }
|
|
31
|
+
startLabel: {}
|
|
32
32
|
}, {
|
|
33
33
|
modelValue: {
|
|
34
34
|
type: Boolean,
|
|
@@ -235,13 +235,13 @@ export declare function useCheckbox(props: MaybeRefOrGetter<CheckboxOwnProps>, l
|
|
|
235
235
|
slots: Readonly<{
|
|
236
236
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
237
237
|
}>;
|
|
238
|
-
merged: import('vue').ComputedRef<Omit<import('../../FormControl').FormControlOwnProps, "error" | "size" | "
|
|
238
|
+
merged: import('vue').ComputedRef<Omit<import('../../FormControl').FormControlOwnProps, "error" | "size" | "hideErrorMessage"> & {
|
|
239
239
|
error: NonNullable<boolean | undefined>;
|
|
240
240
|
size: NonNullable<keyof import('@bridge-ui/core').LabelSize | undefined>;
|
|
241
|
-
|
|
241
|
+
hideErrorMessage: NonNullable<boolean | undefined>;
|
|
242
242
|
}>;
|
|
243
243
|
rowBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
244
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<Omit<import('../../FormControl').FormControlOwnProps, "field">, "error" | "size" | "classes" | "customProps" | "disabled" | "required" | "
|
|
244
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<Omit<import('../../FormControl').FormControlOwnProps, "field">, "error" | "size" | "classes" | "customProps" | "disabled" | "required" | "description" | "errorMessage" | "controlId" | "hideErrorMessage" | "readonly" | "endLabel" | "startLabel">>>>;
|
|
245
245
|
controlId: import('vue').ComputedRef<string>;
|
|
246
246
|
isDisabled: import('vue').ComputedRef<boolean>;
|
|
247
247
|
isReadonly: import('vue').ComputedRef<boolean>;
|