@bitrix24/b24ui-nuxt 0.7.2 → 1.0.1
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/.nuxt/b24ui/accordion.ts +3 -3
- package/.nuxt/b24ui/advice.ts +6 -5
- package/.nuxt/b24ui/alert.ts +102 -49
- package/.nuxt/b24ui/avatar-group.ts +10 -10
- package/.nuxt/b24ui/avatar.ts +18 -18
- package/.nuxt/b24ui/badge.ts +167 -176
- package/.nuxt/b24ui/button-group.ts +3 -1
- package/.nuxt/b24ui/button.ts +179 -170
- package/.nuxt/b24ui/calendar.ts +48 -28
- package/.nuxt/b24ui/checkbox.ts +82 -85
- package/.nuxt/b24ui/chip.ts +121 -32
- package/.nuxt/b24ui/container.ts +1 -1
- package/.nuxt/b24ui/content/table-wrapper.ts +11 -11
- package/.nuxt/b24ui/countdown.ts +11 -11
- package/.nuxt/b24ui/description-list.ts +6 -6
- package/.nuxt/b24ui/dropdown-menu.ts +111 -183
- package/.nuxt/b24ui/form-field.ts +19 -19
- package/.nuxt/b24ui/index.ts +0 -1
- package/.nuxt/b24ui/input-menu.ts +294 -357
- package/.nuxt/b24ui/input-number.ts +111 -259
- package/.nuxt/b24ui/input.ts +136 -259
- package/.nuxt/b24ui/kbd.ts +15 -13
- package/.nuxt/b24ui/link.ts +5 -5
- package/.nuxt/b24ui/modal.ts +14 -12
- package/.nuxt/b24ui/navbar-divider.ts +1 -1
- package/.nuxt/b24ui/navbar-section.ts +1 -1
- package/.nuxt/b24ui/navbar.ts +1 -1
- package/.nuxt/b24ui/navigation-menu.ts +70 -754
- package/.nuxt/b24ui/popover.ts +2 -2
- package/.nuxt/b24ui/progress.ts +58 -68
- package/.nuxt/b24ui/prose/a.ts +1 -1
- package/.nuxt/b24ui/prose/blockquote.ts +1 -1
- package/.nuxt/b24ui/prose/code.ts +45 -9
- package/.nuxt/b24ui/prose/h1.ts +21 -2
- package/.nuxt/b24ui/prose/h2.ts +21 -12
- package/.nuxt/b24ui/prose/h3.ts +21 -12
- package/.nuxt/b24ui/prose/h4.ts +21 -12
- package/.nuxt/b24ui/prose/h5.ts +21 -12
- package/.nuxt/b24ui/prose/h6.ts +21 -12
- package/.nuxt/b24ui/prose/hr.ts +1 -1
- package/.nuxt/b24ui/prose/ol.ts +1 -1
- package/.nuxt/b24ui/prose/p.ts +26 -1
- package/.nuxt/b24ui/prose/thead.ts +1 -1
- package/.nuxt/b24ui/prose/ul.ts +1 -1
- package/.nuxt/b24ui/radio-group.ts +115 -155
- package/.nuxt/b24ui/range.ts +38 -26
- package/.nuxt/b24ui/select-menu.ts +251 -306
- package/.nuxt/b24ui/select.ts +246 -301
- package/.nuxt/b24ui/separator.ts +40 -85
- package/.nuxt/b24ui/sidebar-header.ts +1 -1
- package/.nuxt/b24ui/sidebar-heading.ts +1 -1
- package/.nuxt/b24ui/sidebar-layout.ts +130 -19
- package/.nuxt/b24ui/sidebar-section.ts +1 -1
- package/.nuxt/b24ui/skeleton.ts +19 -1
- package/.nuxt/b24ui/slideover.ts +35 -34
- package/.nuxt/b24ui/switch.ts +59 -48
- package/.nuxt/b24ui/tabs.ts +26 -239
- package/.nuxt/b24ui/textarea.ts +50 -236
- package/.nuxt/b24ui/toast.ts +38 -30
- package/.nuxt/b24ui/toaster.ts +1 -1
- package/.nuxt/b24ui/tooltip.ts +5 -5
- package/cli/templates.mjs +2 -1
- package/dist/meta.d.mts +18759 -5002
- package/dist/meta.mjs +18759 -5002
- package/dist/module.d.mts +1 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +3 -5
- package/dist/runtime/air-design-tokens/001_b24_global.css +1 -0
- package/dist/runtime/air-design-tokens/002_b24_context_utility.css +0 -0
- package/dist/runtime/air-design-tokens/003_b24_context_light.css +1 -0
- package/dist/runtime/air-design-tokens/004_b24_context_dark.css +1 -0
- package/dist/runtime/air-design-tokens/005_b24_context_edge-light.css +1 -0
- package/dist/runtime/air-design-tokens/006_b24_context_edge-dark.css +1 -0
- package/dist/runtime/air-design-tokens/007_b24_global.css +1 -0
- package/dist/runtime/air-design-tokens/008_ui_global.css +1 -0
- package/dist/runtime/air-design-tokens/009_b24_tools.css +1 -0
- package/dist/runtime/air-design-tokens/components/badge-counter.css +1 -0
- package/dist/runtime/air-design-tokens/components/button.css +1 -0
- package/dist/runtime/air-design-tokens/components/navigation-menu.css +1 -0
- package/dist/runtime/air-design-tokens/components/popup.css +1 -0
- package/dist/runtime/air-design-tokens/components/scrollbar.css +2 -0
- package/dist/runtime/air-design-tokens/index.css +1 -0
- package/dist/runtime/components/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/Advice.vue +1 -13
- package/dist/runtime/components/Advice.vue.d.ts +1 -1
- package/dist/runtime/components/Alert.vue +6 -4
- package/dist/runtime/components/Alert.vue.d.ts +11 -4
- package/dist/runtime/components/App.vue.d.ts +1 -1
- package/dist/runtime/components/Avatar.vue.d.ts +1 -1
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue +7 -11
- package/dist/runtime/components/Badge.vue.d.ts +6 -8
- package/dist/runtime/components/Button.vue +18 -15
- package/dist/runtime/components/Button.vue.d.ts +5 -7
- package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue +8 -8
- package/dist/runtime/components/Calendar.vue.d.ts +14 -8
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -2
- package/dist/runtime/components/Chip.vue +28 -7
- package/dist/runtime/components/Chip.vue.d.ts +22 -2
- package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/Container.vue.d.ts +1 -1
- package/dist/runtime/components/Countdown.vue.d.ts +5 -3
- package/dist/runtime/components/DescriptionList.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenu.vue +20 -9
- package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -5
- package/dist/runtime/components/DropdownMenuContent.vue +29 -7
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +14 -6
- package/dist/runtime/components/Form.vue +3 -3
- package/dist/runtime/components/Form.vue.d.ts +6 -5
- package/dist/runtime/components/FormField.vue +2 -2
- package/dist/runtime/components/FormField.vue.d.ts +4 -4
- package/dist/runtime/components/Input.vue +8 -4
- package/dist/runtime/components/Input.vue.d.ts +9 -8
- package/dist/runtime/components/InputMenu.vue +44 -18
- package/dist/runtime/components/InputMenu.vue.d.ts +17 -223
- package/dist/runtime/components/InputNumber.vue +14 -11
- package/dist/runtime/components/InputNumber.vue.d.ts +13 -87
- package/dist/runtime/components/Kbd.vue +6 -3
- package/dist/runtime/components/Kbd.vue.d.ts +7 -3
- package/dist/runtime/components/Link.vue +6 -5
- package/dist/runtime/components/Link.vue.d.ts +1 -3
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/components/Modal.vue +37 -33
- package/dist/runtime/components/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/ModalDialogClose.vue.d.ts +1 -1
- package/dist/runtime/components/Navbar.vue.d.ts +1 -1
- package/dist/runtime/components/NavbarDivider.vue.d.ts +1 -1
- package/dist/runtime/components/NavbarSection.vue.d.ts +1 -1
- package/dist/runtime/components/NavbarSpacer.vue.d.ts +1 -1
- package/dist/runtime/components/NavigationMenu.vue +95 -84
- package/dist/runtime/components/NavigationMenu.vue.d.ts +31 -33
- package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
- package/dist/runtime/components/Popover.vue +8 -2
- package/dist/runtime/components/Popover.vue.d.ts +9 -3
- package/dist/runtime/components/Progress.vue.d.ts +3 -3
- package/dist/runtime/components/RadioGroup.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue.d.ts +6 -5
- package/dist/runtime/components/Range.vue.d.ts +6 -6
- package/dist/runtime/components/Select.vue +25 -11
- package/dist/runtime/components/Select.vue.d.ts +7 -7
- package/dist/runtime/components/SelectMenu.vue +38 -19
- package/dist/runtime/components/SelectMenu.vue.d.ts +11 -10
- package/dist/runtime/components/Separator.vue +4 -4
- package/dist/runtime/components/Separator.vue.d.ts +6 -3
- package/dist/runtime/components/Sidebar.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarBody.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarFooter.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarHeader.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarHeading.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarLayout.vue +148 -63
- package/dist/runtime/components/SidebarLayout.vue.d.ts +61 -8
- package/dist/runtime/components/SidebarSection.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarSpacer.vue.d.ts +4 -1
- package/dist/runtime/components/Skeleton.vue +7 -3
- package/dist/runtime/components/Skeleton.vue.d.ts +12 -1
- package/dist/runtime/components/Slideover.vue +120 -43
- package/dist/runtime/components/Slideover.vue.d.ts +22 -9
- package/dist/runtime/components/Switch.vue.d.ts +2 -2
- package/dist/runtime/components/Tabs.vue +11 -3
- package/dist/runtime/components/Tabs.vue.d.ts +8 -7
- package/dist/runtime/components/Textarea.vue +8 -4
- package/dist/runtime/components/Textarea.vue.d.ts +8 -7
- package/dist/runtime/components/Toast.vue +16 -8
- package/dist/runtime/components/Toast.vue.d.ts +16 -15
- package/dist/runtime/components/Toaster.vue.d.ts +2 -2
- package/dist/runtime/components/Tooltip.vue +9 -5
- package/dist/runtime/components/Tooltip.vue.d.ts +7 -1
- package/dist/runtime/components/content/TableWrapper.vue.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.js +5 -3
- package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
- package/dist/runtime/composables/useButtonGroup.d.ts +1 -1
- package/dist/runtime/composables/useComponentIcons.d.ts +1 -1
- package/dist/runtime/composables/useFormField.d.ts +4 -7
- package/dist/runtime/composables/useFormField.js +6 -3
- package/dist/runtime/composables/useKbd.d.ts +1 -1
- package/dist/runtime/composables/useLocale.js +2 -2
- package/dist/runtime/composables/useOverlay.d.ts +29 -2
- package/dist/runtime/composables/useOverlay.js +8 -7
- package/dist/runtime/composables/usePortal.d.ts +1 -1
- package/dist/runtime/composables/useSidebarLayout.d.ts +20 -0
- package/dist/runtime/composables/useSidebarLayout.js +16 -0
- package/dist/runtime/dictionary/icons.js +7 -7
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/inertia/components/Link.vue +3 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/inertia/stubs.d.ts +1 -0
- package/dist/runtime/inertia/stubs.js +4 -2
- package/dist/runtime/locale/ar.js +6 -0
- package/dist/runtime/locale/br.js +6 -0
- package/dist/runtime/locale/de.js +6 -0
- package/dist/runtime/locale/en.js +6 -0
- package/dist/runtime/locale/fr.js +6 -0
- package/dist/runtime/locale/id.js +6 -0
- package/dist/runtime/locale/it.js +6 -0
- package/dist/runtime/locale/ja.js +6 -0
- package/dist/runtime/locale/kz.js +6 -0
- package/dist/runtime/locale/la.js +6 -0
- package/dist/runtime/locale/ms.js +6 -0
- package/dist/runtime/locale/pl.js +6 -0
- package/dist/runtime/locale/ru.js +6 -0
- package/dist/runtime/locale/sc.js +6 -0
- package/dist/runtime/locale/tc.js +6 -0
- package/dist/runtime/locale/th.js +6 -0
- package/dist/runtime/locale/tr.js +6 -0
- package/dist/runtime/locale/ua.js +6 -0
- package/dist/runtime/locale/vn.js +6 -0
- package/dist/runtime/plugins/ui-version.d.ts +5 -0
- package/dist/runtime/plugins/ui-version.js +8 -0
- package/dist/runtime/prose/A.vue.d.ts +4 -1
- package/dist/runtime/prose/Blockquote.vue.d.ts +4 -1
- package/dist/runtime/prose/Code.vue.d.ts +4 -1
- package/dist/runtime/prose/Em.vue.d.ts +4 -1
- package/dist/runtime/prose/H1.vue +4 -1
- package/dist/runtime/prose/H1.vue.d.ts +7 -1
- package/dist/runtime/prose/H2.vue +4 -1
- package/dist/runtime/prose/H2.vue.d.ts +7 -1
- package/dist/runtime/prose/H3.vue +4 -1
- package/dist/runtime/prose/H3.vue.d.ts +7 -1
- package/dist/runtime/prose/H4.vue +4 -1
- package/dist/runtime/prose/H4.vue.d.ts +7 -1
- package/dist/runtime/prose/H5.vue +4 -1
- package/dist/runtime/prose/H5.vue.d.ts +7 -1
- package/dist/runtime/prose/H6.vue +4 -1
- package/dist/runtime/prose/H6.vue.d.ts +7 -1
- package/dist/runtime/prose/Hr.vue.d.ts +1 -1
- package/dist/runtime/prose/Img.vue.d.ts +1 -1
- package/dist/runtime/prose/Li.vue.d.ts +4 -1
- package/dist/runtime/prose/Ol.vue.d.ts +4 -1
- package/dist/runtime/prose/P.vue +6 -1
- package/dist/runtime/prose/P.vue.d.ts +12 -1
- package/dist/runtime/prose/Pre.vue.d.ts +4 -1
- package/dist/runtime/prose/Strong.vue.d.ts +4 -1
- package/dist/runtime/prose/Table.vue.d.ts +5 -2
- package/dist/runtime/prose/Tbody.vue.d.ts +4 -1
- package/dist/runtime/prose/Td.vue.d.ts +4 -1
- package/dist/runtime/prose/Th.vue.d.ts +4 -1
- package/dist/runtime/prose/Thead.vue.d.ts +4 -1
- package/dist/runtime/prose/Tr.vue.d.ts +4 -1
- package/dist/runtime/prose/Ul.vue.d.ts +4 -1
- package/dist/runtime/types/index.d.ts +0 -1
- package/dist/runtime/types/index.js +0 -1
- package/dist/runtime/types/locale.d.ts +6 -0
- package/dist/runtime/utils/index.d.ts +6 -0
- package/dist/runtime/utils/index.js +27 -0
- package/dist/runtime/utils/tv.js +66 -1
- package/dist/runtime/vue/components/Link.vue +3 -0
- package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/stubs.d.ts +1 -0
- package/dist/runtime/vue/stubs.js +3 -1
- package/dist/shared/b24ui-nuxt.dLc5H7ID.mjs +6100 -0
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +40 -28
- package/.nuxt/b24ui/stacked-layout.ts +0 -34
- package/dist/runtime/air-design-tokens.css +0 -1
- package/dist/runtime/components/StackedLayout.vue +0 -117
- package/dist/runtime/components/StackedLayout.vue.d.ts +0 -44
- package/dist/shared/b24ui-nuxt.CxsFEY3M.mjs +0 -7895
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { NumberFieldRootProps } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/b24ui/input-number';
|
|
4
|
-
import type { ButtonProps, IconComponent } from '../types';
|
|
4
|
+
import type { ButtonProps, BadgeProps, IconComponent } from '../types';
|
|
5
5
|
import type { ComponentConfig } from '../types/utils';
|
|
6
6
|
type InputNumber = ComponentConfig<typeof theme, AppConfig, 'inputNumber'>;
|
|
7
|
-
export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'stepSnapping' | 'step' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange' | 'invertWheelChange'> {
|
|
7
|
+
export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'stepSnapping' | 'step' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange' | 'invertWheelChange' | 'readonly'> {
|
|
8
8
|
/**
|
|
9
9
|
* The element or component this component should render as.
|
|
10
10
|
* @defaultValue 'div'
|
|
@@ -15,7 +15,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
|
|
|
15
15
|
*/
|
|
16
16
|
placeholder?: string;
|
|
17
17
|
/**
|
|
18
|
-
* @defaultValue 'primary'
|
|
18
|
+
* @defaultValue 'air-primary'
|
|
19
19
|
*/
|
|
20
20
|
color?: InputNumber['variants']['color'];
|
|
21
21
|
/**
|
|
@@ -44,9 +44,9 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
|
|
|
44
44
|
rounded?: boolean;
|
|
45
45
|
tag?: string;
|
|
46
46
|
/**
|
|
47
|
-
* @defaultValue 'primary'
|
|
47
|
+
* @defaultValue 'air-primary'
|
|
48
48
|
*/
|
|
49
|
-
tagColor?:
|
|
49
|
+
tagColor?: BadgeProps['color'];
|
|
50
50
|
/**
|
|
51
51
|
* Highlight the ring color like a focus state
|
|
52
52
|
* @defaultValue false
|
|
@@ -59,7 +59,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
|
|
|
59
59
|
orientation?: 'vertical' | 'horizontal';
|
|
60
60
|
/**
|
|
61
61
|
* Configure the increment button. The `size` is inherited.
|
|
62
|
-
* @defaultValue { color: '
|
|
62
|
+
* @defaultValue { color: 'air-tertiary-no-accent' }
|
|
63
63
|
*/
|
|
64
64
|
increment?: ButtonProps;
|
|
65
65
|
/**
|
|
@@ -72,7 +72,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
|
|
|
72
72
|
incrementDisabled?: boolean;
|
|
73
73
|
/**
|
|
74
74
|
* Configure the decrement button. The `size` is inherited.
|
|
75
|
-
* @defaultValue { color: '
|
|
75
|
+
* @defaultValue { color: 'air-tertiary-no-accent' }
|
|
76
76
|
*/
|
|
77
77
|
decrement?: ButtonProps;
|
|
78
78
|
/**
|
|
@@ -100,9 +100,9 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
|
|
|
100
100
|
b24ui?: InputNumber['slots'];
|
|
101
101
|
}
|
|
102
102
|
export interface InputNumberEmits {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
'update:modelValue': [payload: number];
|
|
104
|
+
'blur': [event: FocusEvent];
|
|
105
|
+
'change': [payload: Event];
|
|
106
106
|
}
|
|
107
107
|
export interface InputNumberSlots {
|
|
108
108
|
increment(props?: {}): any;
|
|
@@ -121,43 +121,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumbe
|
|
|
121
121
|
};
|
|
122
122
|
$refs: {
|
|
123
123
|
[x: string]: unknown;
|
|
124
|
-
} & {
|
|
125
|
-
primitiveElement: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
126
|
-
asChild: {
|
|
127
|
-
type: BooleanConstructor;
|
|
128
|
-
default: boolean;
|
|
129
|
-
};
|
|
130
|
-
as: {
|
|
131
|
-
type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
|
|
132
|
-
default: string;
|
|
133
|
-
};
|
|
134
|
-
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
135
|
-
[key: string]: any;
|
|
136
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
137
|
-
asChild: boolean;
|
|
138
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
139
|
-
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
140
|
-
P: {};
|
|
141
|
-
B: {};
|
|
142
|
-
D: {};
|
|
143
|
-
C: {};
|
|
144
|
-
M: {};
|
|
145
|
-
Defaults: {};
|
|
146
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
147
|
-
asChild: {
|
|
148
|
-
type: BooleanConstructor;
|
|
149
|
-
default: boolean;
|
|
150
|
-
};
|
|
151
|
-
as: {
|
|
152
|
-
type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
|
|
153
|
-
default: string;
|
|
154
|
-
};
|
|
155
|
-
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
156
|
-
[key: string]: any;
|
|
157
|
-
}>, {}, {}, {}, {
|
|
158
|
-
asChild: boolean;
|
|
159
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
160
|
-
}> | null;
|
|
161
124
|
};
|
|
162
125
|
$slots: Readonly<{
|
|
163
126
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
@@ -193,7 +156,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumbe
|
|
|
193
156
|
as: import("reka-ui").AsTag | import("vue").Component;
|
|
194
157
|
}> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
195
158
|
$slots: {
|
|
196
|
-
default
|
|
159
|
+
default?: (props: {}) => any;
|
|
197
160
|
};
|
|
198
161
|
}) | null, ({
|
|
199
162
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -207,43 +170,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumbe
|
|
|
207
170
|
};
|
|
208
171
|
$refs: {
|
|
209
172
|
[x: string]: unknown;
|
|
210
|
-
} & {
|
|
211
|
-
primitiveElement: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
212
|
-
asChild: {
|
|
213
|
-
type: BooleanConstructor;
|
|
214
|
-
default: boolean;
|
|
215
|
-
};
|
|
216
|
-
as: {
|
|
217
|
-
type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
|
|
218
|
-
default: string;
|
|
219
|
-
};
|
|
220
|
-
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
221
|
-
[key: string]: any;
|
|
222
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
223
|
-
asChild: boolean;
|
|
224
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
225
|
-
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
226
|
-
P: {};
|
|
227
|
-
B: {};
|
|
228
|
-
D: {};
|
|
229
|
-
C: {};
|
|
230
|
-
M: {};
|
|
231
|
-
Defaults: {};
|
|
232
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
233
|
-
asChild: {
|
|
234
|
-
type: BooleanConstructor;
|
|
235
|
-
default: boolean;
|
|
236
|
-
};
|
|
237
|
-
as: {
|
|
238
|
-
type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
|
|
239
|
-
default: string;
|
|
240
|
-
};
|
|
241
|
-
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
242
|
-
[key: string]: any;
|
|
243
|
-
}>, {}, {}, {}, {
|
|
244
|
-
asChild: boolean;
|
|
245
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
246
|
-
}> | null;
|
|
247
173
|
};
|
|
248
174
|
$slots: Readonly<{
|
|
249
175
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
@@ -279,10 +205,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumbe
|
|
|
279
205
|
as: import("reka-ui").AsTag | import("vue").Component;
|
|
280
206
|
}> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
281
207
|
$slots: {
|
|
282
|
-
default
|
|
208
|
+
default?: (props: {}) => any;
|
|
283
209
|
};
|
|
284
210
|
}) | null>;
|
|
285
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
211
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
286
212
|
blur: (event: FocusEvent) => any;
|
|
287
213
|
change: (payload: Event) => any;
|
|
288
214
|
"update:modelValue": (payload: number) => any;
|
|
@@ -11,18 +11,21 @@ import { tv } from "../utils/tv";
|
|
|
11
11
|
const props = defineProps({
|
|
12
12
|
as: { type: null, required: false, default: "kbd" },
|
|
13
13
|
value: { type: null, required: false },
|
|
14
|
-
|
|
14
|
+
accent: { type: null, required: false, default: "default" },
|
|
15
15
|
size: { type: null, required: false },
|
|
16
16
|
class: { type: null, required: false }
|
|
17
17
|
});
|
|
18
18
|
defineSlots();
|
|
19
19
|
const { getKbdKey } = useKbd();
|
|
20
20
|
const appConfig = useAppConfig();
|
|
21
|
-
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.kbd || {} })
|
|
21
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.kbd || {} })({
|
|
22
|
+
accent: props.accent,
|
|
23
|
+
size: props.size
|
|
24
|
+
}));
|
|
22
25
|
</script>
|
|
23
26
|
|
|
24
27
|
<template>
|
|
25
|
-
<Primitive :as="as" :class="b24ui({
|
|
28
|
+
<Primitive :as="as" :class="b24ui.base({ class: props.class })">
|
|
26
29
|
<slot>
|
|
27
30
|
{{ getKbdKey(value) }}
|
|
28
31
|
</slot>
|
|
@@ -3,6 +3,9 @@ import theme from '#build/b24ui/kbd';
|
|
|
3
3
|
import type { KbdKey } from '../composables/useKbd';
|
|
4
4
|
import type { ComponentConfig } from '../types/utils';
|
|
5
5
|
type Kbd = ComponentConfig<typeof theme, AppConfig, 'kbd'>;
|
|
6
|
+
/**
|
|
7
|
+
* @remove depth
|
|
8
|
+
*/
|
|
6
9
|
export interface KbdProps {
|
|
7
10
|
/**
|
|
8
11
|
* The element or component this component should render as.
|
|
@@ -11,9 +14,9 @@ export interface KbdProps {
|
|
|
11
14
|
as?: any;
|
|
12
15
|
value?: KbdKey | string;
|
|
13
16
|
/**
|
|
14
|
-
* @defaultValue '
|
|
17
|
+
* @defaultValue 'default'
|
|
15
18
|
*/
|
|
16
|
-
|
|
19
|
+
accent?: Kbd['variants']['accent'];
|
|
17
20
|
/**
|
|
18
21
|
* @defaultValue 'md'
|
|
19
22
|
*/
|
|
@@ -23,7 +26,8 @@ export interface KbdProps {
|
|
|
23
26
|
export interface KbdSlots {
|
|
24
27
|
default(props?: {}): any;
|
|
25
28
|
}
|
|
26
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<KbdProps,
|
|
29
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<KbdProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KbdProps> & Readonly<{}>, {
|
|
30
|
+
accent: Kbd["variants"]["accent"];
|
|
27
31
|
as: any;
|
|
28
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, KbdSlots>;
|
|
29
33
|
export default _default;
|
|
@@ -4,11 +4,12 @@ import theme from "#build/b24ui/link";
|
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
|
-
import { defu } from "defu";
|
|
8
7
|
import { isEqual } from "ohash/utils";
|
|
9
8
|
import { useForwardProps } from "reka-ui";
|
|
9
|
+
import { defu } from "defu";
|
|
10
10
|
import { reactiveOmit } from "@vueuse/core";
|
|
11
11
|
import { useRoute, useAppConfig } from "#imports";
|
|
12
|
+
import { mergeClasses } from "../utils";
|
|
12
13
|
import { tv } from "../utils/tv";
|
|
13
14
|
import { isPartiallyEqual } from "../utils/link";
|
|
14
15
|
import B24LinkBase from "./LinkBase.vue";
|
|
@@ -21,7 +22,7 @@ const props = defineProps({
|
|
|
21
22
|
exact: { type: Boolean, required: false },
|
|
22
23
|
exactQuery: { type: [Boolean, String], required: false },
|
|
23
24
|
exactHash: { type: Boolean, required: false },
|
|
24
|
-
inactiveClass: { type: String, required: false
|
|
25
|
+
inactiveClass: { type: String, required: false },
|
|
25
26
|
custom: { type: Boolean, required: false },
|
|
26
27
|
isAction: { type: Boolean, required: false, default: false },
|
|
27
28
|
raw: { type: Boolean, required: false },
|
|
@@ -36,7 +37,7 @@ const props = defineProps({
|
|
|
36
37
|
prefetch: { type: Boolean, required: false },
|
|
37
38
|
prefetchOn: { type: [String, Object], required: false },
|
|
38
39
|
noPrefetch: { type: Boolean, required: false },
|
|
39
|
-
activeClass: { type: String, required: false
|
|
40
|
+
activeClass: { type: String, required: false },
|
|
40
41
|
exactActiveClass: { type: String, required: false },
|
|
41
42
|
ariaCurrentValue: { type: String, required: false, default: "page" },
|
|
42
43
|
viewTransition: { type: Boolean, required: false },
|
|
@@ -51,8 +52,8 @@ const b24ui = computed(() => tv({
|
|
|
51
52
|
...defu({
|
|
52
53
|
variants: {
|
|
53
54
|
active: {
|
|
54
|
-
true: props.activeClass,
|
|
55
|
-
false: props.inactiveClass
|
|
55
|
+
true: mergeClasses(appConfig.b24ui?.link?.variants?.active?.true, props.activeClass),
|
|
56
|
+
false: mergeClasses(appConfig.b24ui?.link?.variants?.active?.false, props.inactiveClass)
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
}, appConfig.b24ui?.link || {})
|
|
@@ -79,13 +79,11 @@ export interface LinkSlots {
|
|
|
79
79
|
active: boolean;
|
|
80
80
|
}): any;
|
|
81
81
|
}
|
|
82
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps,
|
|
82
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
83
83
|
as: any;
|
|
84
84
|
type: "reset" | "submit" | "button";
|
|
85
|
-
activeClass: string;
|
|
86
85
|
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
87
86
|
active: boolean;
|
|
88
|
-
inactiveClass: string;
|
|
89
87
|
isAction: boolean;
|
|
90
88
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
91
89
|
export default _default;
|
|
@@ -11,7 +11,7 @@ export interface LinkBaseProps {
|
|
|
11
11
|
active?: boolean;
|
|
12
12
|
isExternal?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps,
|
|
14
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
|
|
15
15
|
as: string;
|
|
16
16
|
type: string;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -92,44 +92,48 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.modal |
|
|
|
92
92
|
</VisuallyHidden>
|
|
93
93
|
|
|
94
94
|
<slot name="content" :close="close">
|
|
95
|
-
<div
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
<div
|
|
96
|
+
v-if="!!slots.header || (title || !!slots.title) || (description || !!slots.description) || (props.close || !!slots.close) || !!slots.body"
|
|
97
|
+
:class="b24ui.contentWrapper({ class: props.b24ui?.contentWrapper })"
|
|
98
|
+
>
|
|
99
|
+
<div v-if="!!slots.header || (title || !!slots.title) || (description || !!slots.description) || (props.close || !!slots.close)" :class="b24ui.header({ class: props.b24ui?.header })">
|
|
100
|
+
<slot name="header" :close="close">
|
|
101
|
+
<div :class="b24ui.wrapper({ class: props.b24ui?.wrapper })">
|
|
102
|
+
<DialogTitle v-if="title || !!slots.title" :class="b24ui.title({ class: props.b24ui?.title })">
|
|
103
|
+
<slot name="title">
|
|
104
|
+
{{ title }}
|
|
105
|
+
</slot>
|
|
106
|
+
</DialogTitle>
|
|
103
107
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
<DialogDescription v-if="description || !!slots.description" :class="b24ui.description({ class: props.b24ui?.description })">
|
|
109
|
+
<slot name="description">
|
|
110
|
+
{{ description }}
|
|
111
|
+
</slot>
|
|
112
|
+
</DialogDescription>
|
|
113
|
+
</div>
|
|
110
114
|
|
|
111
|
-
|
|
115
|
+
<slot name="actions" />
|
|
112
116
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
117
|
+
<DialogClose v-if="props.close || !!slots.close" as-child>
|
|
118
|
+
<slot name="close" :close="close" :b24ui="b24ui">
|
|
119
|
+
<B24Button
|
|
120
|
+
v-if="props.close"
|
|
121
|
+
:icon="closeIcon || icons.close"
|
|
122
|
+
size="md"
|
|
123
|
+
color="air-tertiary-no-accent"
|
|
124
|
+
:aria-label="t('modal.close')"
|
|
125
|
+
v-bind="typeof props.close === 'object' ? props.close : {}"
|
|
126
|
+
:class="b24ui.close({ class: props.b24ui?.close })"
|
|
127
|
+
/>
|
|
128
|
+
</slot>
|
|
129
|
+
</DialogClose>
|
|
130
|
+
</slot>
|
|
131
|
+
</div>
|
|
128
132
|
|
|
129
|
-
|
|
130
|
-
|
|
133
|
+
<div v-if="!!slots.body" :class="b24ui.body({ class: props.b24ui?.body, scrollbarThin: Boolean(props.scrollbarThin) })">
|
|
134
|
+
<slot name="body" :close="close" />
|
|
135
|
+
</div>
|
|
131
136
|
</div>
|
|
132
|
-
|
|
133
137
|
<div v-if="!!slots.footer" :class="b24ui.footer({ class: props.b24ui?.footer })">
|
|
134
138
|
<slot name="footer" :close="close" />
|
|
135
139
|
</div>
|
|
@@ -92,7 +92,7 @@ export interface ModalSlots {
|
|
|
92
92
|
close: () => void;
|
|
93
93
|
}): any;
|
|
94
94
|
}
|
|
95
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps,
|
|
95
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
96
96
|
"update:open": (value: boolean) => any;
|
|
97
97
|
"after:leave": () => any;
|
|
98
98
|
"after:enter": () => any;
|
|
@@ -104,11 +104,11 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps
|
|
|
104
104
|
"onClose:prevent"?: (() => any) | undefined;
|
|
105
105
|
}>, {
|
|
106
106
|
close: boolean | Partial<ButtonProps>;
|
|
107
|
+
transition: boolean;
|
|
107
108
|
modal: boolean;
|
|
108
109
|
portal: boolean | string | HTMLElement;
|
|
109
110
|
overlay: boolean;
|
|
110
111
|
overlayBlur: Modal["variants"]["overlayBlur"];
|
|
111
|
-
transition: boolean;
|
|
112
112
|
dismissible: boolean;
|
|
113
113
|
scrollbarThin: boolean;
|
|
114
114
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ModalSlots>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface ModalDialogCloseSlots {
|
|
2
2
|
default(props: {}): any;
|
|
3
3
|
}
|
|
4
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{},
|
|
4
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, ModalDialogCloseSlots>;
|
|
5
5
|
export default _default;
|
|
6
6
|
type __VLS_WithSlots<T, S> = T & {
|
|
7
7
|
new (): {
|
|
@@ -14,7 +14,7 @@ export interface NavbarProps {
|
|
|
14
14
|
export interface NavbarSlots {
|
|
15
15
|
default(props?: {}): any;
|
|
16
16
|
}
|
|
17
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarProps,
|
|
17
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarProps> & Readonly<{}>, {
|
|
18
18
|
as: any;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, NavbarSlots>;
|
|
20
20
|
export default _default;
|
|
@@ -14,7 +14,7 @@ export interface NavbarDividerProps {
|
|
|
14
14
|
export interface NavbarDividerSlots {
|
|
15
15
|
default(props?: {}): any;
|
|
16
16
|
}
|
|
17
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarDividerProps,
|
|
17
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarDividerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarDividerProps> & Readonly<{}>, {
|
|
18
18
|
as: any;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, NavbarDividerSlots>;
|
|
20
20
|
export default _default;
|
|
@@ -14,7 +14,7 @@ export interface NavbarSectionProps {
|
|
|
14
14
|
export interface NavbarSectionSlots {
|
|
15
15
|
default(props?: {}): any;
|
|
16
16
|
}
|
|
17
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarSectionProps,
|
|
17
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarSectionProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarSectionProps> & Readonly<{}>, {
|
|
18
18
|
as: any;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, NavbarSectionSlots>;
|
|
20
20
|
export default _default;
|
|
@@ -14,7 +14,7 @@ export interface NavbarSpacerProps {
|
|
|
14
14
|
export interface NavbarSpacerSlots {
|
|
15
15
|
default(props?: {}): any;
|
|
16
16
|
}
|
|
17
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarSpacerProps,
|
|
17
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarSpacerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarSpacerProps> & Readonly<{}>, {
|
|
18
18
|
as: any;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, NavbarSpacerSlots>;
|
|
20
20
|
export default _default;
|