@nuxt/ui 2.16.0 → 2.18.0
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/module.d.mts +3 -1985
- package/dist/module.d.ts +3 -1985
- package/dist/module.json +6 -2
- package/dist/module.mjs +6 -71
- package/dist/runtime/components/data/Table.vue +54 -19
- package/dist/runtime/components/data/Table.vue.d.ts +247 -48
- package/dist/runtime/components/elements/Accordion.vue +1 -2
- package/dist/runtime/components/elements/Accordion.vue.d.ts +140 -14
- package/dist/runtime/components/elements/Alert.vue +12 -10
- package/dist/runtime/components/elements/Alert.vue.d.ts +107 -24
- package/dist/runtime/components/elements/Avatar.vue +1 -1
- package/dist/runtime/components/elements/Avatar.vue.d.ts +153 -32
- package/dist/runtime/components/elements/AvatarGroup.d.ts +17 -8
- package/dist/runtime/components/elements/{AvatarGroup.mjs → AvatarGroup.js} +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +55 -18
- package/dist/runtime/components/elements/Button.vue +1 -2
- package/dist/runtime/components/elements/Button.vue.d.ts +259 -96
- package/dist/runtime/components/elements/ButtonGroup.d.ts +110 -6
- package/dist/runtime/components/elements/{ButtonGroup.mjs → ButtonGroup.js} +3 -3
- package/dist/runtime/components/elements/Carousel.vue.d.ts +75 -20
- package/dist/runtime/components/elements/Chip.vue.d.ts +97 -25
- package/dist/runtime/components/elements/Dropdown.vue +4 -9
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +135 -16
- package/dist/runtime/components/elements/Kbd.vue.d.ts +45 -10
- package/dist/runtime/components/elements/Link.vue.d.ts +73 -73
- package/dist/runtime/components/elements/Meter.vue +1 -1
- package/dist/runtime/components/elements/Meter.vue.d.ts +178 -22
- package/dist/runtime/components/elements/MeterGroup.d.ts +70 -13
- package/dist/runtime/components/elements/{MeterGroup.mjs → MeterGroup.js} +3 -3
- package/dist/runtime/components/elements/Progress.vue +7 -2
- package/dist/runtime/components/elements/Progress.vue.d.ts +187 -31
- package/dist/runtime/components/forms/Checkbox.vue +5 -3
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +76 -35
- package/dist/runtime/components/forms/Form.vue +9 -13
- package/dist/runtime/components/forms/Form.vue.d.ts +14 -18
- package/dist/runtime/components/forms/FormGroup.vue +1 -1
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +80 -27
- package/dist/runtime/components/forms/Input.vue +3 -3
- package/dist/runtime/components/forms/Input.vue.d.ts +276 -59
- package/dist/runtime/components/forms/InputMenu.vue +12 -10
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +434 -84
- package/dist/runtime/components/forms/Radio.vue +5 -3
- package/dist/runtime/components/forms/Radio.vue.d.ts +74 -35
- package/dist/runtime/components/forms/RadioGroup.vue +11 -3
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +85 -27
- package/dist/runtime/components/forms/Range.vue.d.ts +155 -26
- package/dist/runtime/components/forms/Select.vue +4 -4
- package/dist/runtime/components/forms/Select.vue.d.ts +273 -50
- package/dist/runtime/components/forms/SelectMenu.vue +51 -26
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +451 -86
- package/dist/runtime/components/forms/Textarea.vue.d.ts +263 -48
- package/dist/runtime/components/forms/Toggle.vue +1 -1
- package/dist/runtime/components/forms/Toggle.vue.d.ts +153 -26
- package/dist/runtime/components/layout/Card.vue.d.ts +55 -5
- package/dist/runtime/components/layout/Container.vue.d.ts +19 -5
- package/dist/runtime/components/layout/Divider.vue +1 -2
- package/dist/runtime/components/layout/Divider.vue.d.ts +121 -16
- package/dist/runtime/components/layout/Skeleton.vue +5 -1
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +27 -4
- package/dist/runtime/components/navigation/Breadcrumb.vue +2 -3
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +52 -9
- package/dist/runtime/components/navigation/CommandPalette.vue +11 -5
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +198 -40
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +5 -7
- package/dist/runtime/components/navigation/HorizontalNavigation.vue +1 -4
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +64 -9
- package/dist/runtime/components/navigation/Pagination.vue +2 -4
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +84 -12
- package/dist/runtime/components/navigation/Tabs.vue +15 -1
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +95 -15
- package/dist/runtime/components/navigation/VerticalNavigation.vue +1 -5
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +78 -9
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +71 -8
- package/dist/runtime/components/overlays/Modal.vue.d.ts +85 -11
- package/dist/runtime/components/overlays/Notification.vue +5 -6
- package/dist/runtime/components/overlays/Notification.vue.d.ts +130 -29
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +31 -16
- package/dist/runtime/components/overlays/Popover.vue +3 -6
- package/dist/runtime/components/overlays/Popover.vue.d.ts +110 -15
- package/dist/runtime/components/overlays/Slideover.vue +43 -6
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +87 -14
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +90 -15
- package/dist/runtime/composables/{defineShortcuts.mjs → defineShortcuts.js} +1 -1
- package/dist/runtime/composables/{useButtonGroup.mjs → useButtonGroup.js} +8 -9
- package/dist/runtime/composables/{useCarouselScroll.mjs → useCarouselScroll.js} +2 -0
- package/dist/runtime/composables/useCopyToClipboard.d.ts +1 -1
- package/dist/runtime/composables/{useCopyToClipboard.mjs → useCopyToClipboard.js} +1 -1
- package/dist/runtime/composables/useFormGroup.d.ts +5 -5
- package/dist/runtime/composables/useFormGroup.js +49 -0
- package/dist/runtime/composables/useModal.d.ts +3 -3
- package/dist/runtime/composables/{useModal.mjs → useModal.js} +2 -4
- package/dist/runtime/composables/usePopper.d.ts +91 -55
- package/dist/runtime/composables/useShortcuts.d.ts +4 -4
- package/dist/runtime/composables/useSlideover.d.ts +3 -3
- package/dist/runtime/composables/{useSlideover.mjs → useSlideover.js} +2 -4
- package/dist/runtime/composables/useTimer.d.ts +1 -1
- package/dist/runtime/composables/useToast.d.ts +11 -11
- package/dist/runtime/composables/useUI.d.ts +1 -1
- package/dist/runtime/composables/{useUI.mjs → useUI.js} +1 -1
- package/dist/runtime/plugins/colors.d.ts +1 -1
- package/dist/runtime/plugins/{colors.mjs → colors.js} +1 -1
- package/dist/runtime/plugins/modals.d.ts +1 -1
- package/dist/runtime/plugins/{modals.mjs → modals.js} +1 -1
- package/dist/runtime/plugins/slideovers.d.ts +1 -1
- package/dist/runtime/plugins/{slideovers.mjs → slideovers.js} +1 -1
- package/dist/runtime/types/accordion.d.ts +6 -7
- package/dist/runtime/types/accordion.js +0 -0
- package/dist/runtime/types/alert.d.ts +8 -10
- package/dist/runtime/types/alert.js +0 -0
- package/dist/runtime/types/avatar.d.ts +13 -15
- package/dist/runtime/types/avatar.js +0 -0
- package/dist/runtime/types/badge.d.ts +11 -13
- package/dist/runtime/types/badge.js +0 -0
- package/dist/runtime/types/breadcrumb.d.ts +6 -8
- package/dist/runtime/types/breadcrumb.js +0 -0
- package/dist/runtime/types/button.d.ts +27 -29
- package/dist/runtime/types/button.js +0 -0
- package/dist/runtime/types/chip.d.ts +11 -13
- package/dist/runtime/types/chip.js +0 -0
- package/dist/runtime/types/clipboard.d.ts +7 -1
- package/dist/runtime/types/clipboard.js +0 -0
- package/dist/runtime/types/command-palette.d.ts +23 -24
- package/dist/runtime/types/command-palette.js +0 -0
- package/dist/runtime/types/component.d.ts +17 -14
- package/dist/runtime/types/component.js +0 -0
- package/dist/runtime/types/divider.d.ts +2 -3
- package/dist/runtime/types/divider.js +0 -0
- package/dist/runtime/types/dropdown.d.ts +12 -13
- package/dist/runtime/types/dropdown.js +0 -0
- package/dist/runtime/types/form-group.d.ts +4 -5
- package/dist/runtime/types/form-group.js +0 -0
- package/dist/runtime/types/form.d.ts +29 -28
- package/dist/runtime/types/form.js +0 -0
- package/dist/runtime/types/horizontal-navigation.d.ts +10 -11
- package/dist/runtime/types/horizontal-navigation.js +0 -0
- package/dist/runtime/types/index.d.ts +31 -31
- package/dist/runtime/types/index.js +31 -0
- package/dist/runtime/types/input.d.ts +7 -8
- package/dist/runtime/types/input.js +0 -0
- package/dist/runtime/types/kbd.d.ts +4 -5
- package/dist/runtime/types/kbd.js +0 -0
- package/dist/runtime/types/link.d.ts +9 -10
- package/dist/runtime/types/link.js +0 -0
- package/dist/runtime/types/meter.d.ts +4 -5
- package/dist/runtime/types/meter.js +0 -0
- package/dist/runtime/types/modal.d.ts +13 -15
- package/dist/runtime/types/modal.js +0 -0
- package/dist/runtime/types/notification.d.ts +17 -20
- package/dist/runtime/types/notification.js +0 -0
- package/dist/runtime/types/popper.d.ts +13 -15
- package/dist/runtime/types/popper.js +0 -0
- package/dist/runtime/types/progress.d.ts +5 -6
- package/dist/runtime/types/progress.js +0 -0
- package/dist/runtime/types/range.d.ts +6 -7
- package/dist/runtime/types/range.js +0 -0
- package/dist/runtime/types/select.d.ts +7 -8
- package/dist/runtime/types/select.js +0 -0
- package/dist/runtime/types/slideover.d.ts +10 -12
- package/dist/runtime/types/slideover.js +0 -0
- package/dist/runtime/types/tabs.d.ts +6 -5
- package/dist/runtime/types/tabs.js +0 -0
- package/dist/runtime/types/textarea.d.ts +7 -8
- package/dist/runtime/types/textarea.js +0 -0
- package/dist/runtime/types/toggle.d.ts +6 -7
- package/dist/runtime/types/toggle.js +0 -0
- package/dist/runtime/types/tooltip.d.ts +5 -5
- package/dist/runtime/types/tooltip.js +0 -0
- package/dist/runtime/types/utils.d.ts +15 -27
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/types/vertical-navigation.d.ts +10 -11
- package/dist/runtime/types/vertical-navigation.js +0 -0
- package/dist/runtime/ui.config/data/table.d.ts +10 -0
- package/dist/runtime/ui.config/data/{table.mjs → table.js} +10 -0
- package/dist/runtime/ui.config/elements/accordion.d.ts +1 -0
- package/dist/runtime/ui.config/elements/{accordion.mjs → accordion.js} +3 -2
- package/dist/runtime/ui.config/elements/alert.d.ts +2 -2
- package/dist/runtime/ui.config/elements/avatar.d.ts +2 -2
- package/dist/runtime/ui.config/elements/{carousel.mjs → carousel.js} +1 -1
- package/dist/runtime/ui.config/elements/{dropdown.mjs → dropdown.js} +1 -1
- package/dist/runtime/ui.config/forms/{inputMenu.mjs → inputMenu.js} +1 -1
- package/dist/runtime/ui.config/forms/{select.mjs → select.js} +1 -1
- package/dist/runtime/ui.config/forms/{selectMenu.mjs → selectMenu.js} +2 -2
- package/dist/runtime/ui.config/forms/{textarea.mjs → textarea.js} +1 -1
- package/dist/runtime/ui.config/forms/toggle.d.ts +2 -2
- package/dist/runtime/ui.config/index.d.ts +43 -43
- package/dist/runtime/ui.config/index.js +43 -0
- package/dist/runtime/ui.config/navigation/{breadcrumb.mjs → breadcrumb.js} +2 -2
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +1 -1
- package/dist/runtime/ui.config/navigation/tabs.d.ts +1 -0
- package/dist/runtime/ui.config/navigation/{tabs.mjs → tabs.js} +2 -1
- package/dist/runtime/ui.config/overlays/{contextMenu.mjs → contextMenu.js} +1 -1
- package/dist/runtime/ui.config/overlays/{modal.mjs → modal.js} +2 -2
- package/dist/runtime/ui.config/overlays/notification.d.ts +1 -1
- package/dist/runtime/ui.config/overlays/{popover.mjs → popover.js} +1 -1
- package/dist/runtime/ui.config/overlays/slideover.d.ts +3 -0
- package/dist/runtime/ui.config/overlays/{slideover.mjs → slideover.js} +6 -3
- package/dist/runtime/ui.config/overlays/{tooltip.mjs → tooltip.js} +1 -1
- package/dist/runtime/utils/colors.d.ts +2 -2
- package/dist/runtime/utils/{colors.mjs → colors.js} +1 -1
- package/dist/runtime/utils/index.d.ts +4 -4
- package/dist/runtime/utils/{index.mjs → index.js} +2 -2
- package/dist/runtime/utils/link.d.ts +26 -24
- package/dist/runtime/utils/{link.mjs → link.js} +1 -1
- package/dist/types.d.mts +1 -16
- package/dist/types.d.ts +1 -16
- package/package.json +29 -27
- package/dist/runtime/components/elements/Icon.vue +0 -29
- package/dist/runtime/components/elements/Icon.vue.d.ts +0 -24
- package/dist/runtime/composables/useFormGroup.mjs +0 -45
- package/dist/runtime/ui.config/index.mjs +0 -43
- /package/dist/runtime/composables/{usePopper.mjs → usePopper.js} +0 -0
- /package/dist/runtime/composables/{useShortcuts.mjs → useShortcuts.js} +0 -0
- /package/dist/runtime/composables/{useTimer.mjs → useTimer.js} +0 -0
- /package/dist/runtime/composables/{useToast.mjs → useToast.js} +0 -0
- /package/dist/runtime/ui.config/elements/{alert.mjs → alert.js} +0 -0
- /package/dist/runtime/ui.config/elements/{avatar.mjs → avatar.js} +0 -0
- /package/dist/runtime/ui.config/elements/{avatarGroup.mjs → avatarGroup.js} +0 -0
- /package/dist/runtime/ui.config/elements/{badge.mjs → badge.js} +0 -0
- /package/dist/runtime/ui.config/elements/{button.mjs → button.js} +0 -0
- /package/dist/runtime/ui.config/elements/{buttonGroup.mjs → buttonGroup.js} +0 -0
- /package/dist/runtime/ui.config/elements/{chip.mjs → chip.js} +0 -0
- /package/dist/runtime/ui.config/elements/{kbd.mjs → kbd.js} +0 -0
- /package/dist/runtime/ui.config/elements/{meter.mjs → meter.js} +0 -0
- /package/dist/runtime/ui.config/elements/{meterGroup.mjs → meterGroup.js} +0 -0
- /package/dist/runtime/ui.config/elements/{progress.mjs → progress.js} +0 -0
- /package/dist/runtime/ui.config/forms/{checkbox.mjs → checkbox.js} +0 -0
- /package/dist/runtime/ui.config/forms/{formGroup.mjs → formGroup.js} +0 -0
- /package/dist/runtime/ui.config/forms/{input.mjs → input.js} +0 -0
- /package/dist/runtime/ui.config/forms/{radio.mjs → radio.js} +0 -0
- /package/dist/runtime/ui.config/forms/{radioGroup.mjs → radioGroup.js} +0 -0
- /package/dist/runtime/ui.config/forms/{range.mjs → range.js} +0 -0
- /package/dist/runtime/ui.config/forms/{toggle.mjs → toggle.js} +0 -0
- /package/dist/runtime/ui.config/layout/{card.mjs → card.js} +0 -0
- /package/dist/runtime/ui.config/layout/{container.mjs → container.js} +0 -0
- /package/dist/runtime/ui.config/layout/{divider.mjs → divider.js} +0 -0
- /package/dist/runtime/ui.config/layout/{skeleton.mjs → skeleton.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{commandPalette.mjs → commandPalette.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{horizontalNavigation.mjs → horizontalNavigation.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{pagination.mjs → pagination.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{verticalNavigation.mjs → verticalNavigation.js} +0 -0
- /package/dist/runtime/ui.config/overlays/{notification.mjs → notification.js} +0 -0
- /package/dist/runtime/ui.config/overlays/{notifications.mjs → notifications.js} +0 -0
- /package/dist/runtime/ui.config/{popper.mjs → popper.js} +0 -0
- /package/dist/runtime/utils/{lodash.mjs → lodash.js} +0 -0
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import type { Component } from 'vue'
|
|
2
|
-
|
|
1
|
+
import type { Component } from 'vue';
|
|
3
2
|
export interface Slideover {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
ui?: any;
|
|
4
|
+
side?: 'right' | 'left';
|
|
5
|
+
transition?: boolean;
|
|
6
|
+
appear?: boolean;
|
|
7
|
+
overlay?: boolean;
|
|
8
|
+
preventClose?: boolean;
|
|
9
|
+
modelValue?: boolean;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
export interface SlideoverState {
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
component: Component | string;
|
|
13
|
+
props: Slideover;
|
|
16
14
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { textarea } from '../ui.config'
|
|
2
|
-
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
3
|
-
import colors from '#ui-colors'
|
|
4
|
-
import type { AppConfig } from 'nuxt/schema'
|
|
5
|
-
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type TextareaVariant = keyof typeof textarea.variant | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'variant']> | NestedKeyOf<typeof textarea.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'textarea', 'color']>>
|
|
1
|
+
import { textarea } from '../ui.config.js';
|
|
2
|
+
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.';
|
|
3
|
+
import colors from '#ui-colors';
|
|
4
|
+
import type { AppConfig } from 'nuxt/schema';
|
|
5
|
+
export type TextareaSize = keyof typeof textarea.size | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'size']>;
|
|
6
|
+
export type TextareaColor = keyof typeof textarea.color | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'color']> | typeof colors[number];
|
|
7
|
+
export type TextareaVariant = keyof typeof textarea.variant | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'variant']> | NestedKeyOf<typeof textarea.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'textarea', 'color']>>;
|
|
File without changes
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { toggle } from '../ui.config'
|
|
2
|
-
import type { ExtractDeepKey } from '.'
|
|
3
|
-
import type { AppConfig } from 'nuxt/schema'
|
|
4
|
-
import colors from '#ui-colors'
|
|
5
|
-
|
|
6
|
-
export type
|
|
7
|
-
export type ToggleColor = typeof colors[number]
|
|
1
|
+
import { toggle } from '../ui.config.js';
|
|
2
|
+
import type { ExtractDeepKey } from '.';
|
|
3
|
+
import type { AppConfig } from 'nuxt/schema';
|
|
4
|
+
import colors from '#ui-colors';
|
|
5
|
+
export type ToggleSize = keyof typeof toggle.size | ExtractDeepKey<AppConfig, ['ui', 'toggle', 'size']>;
|
|
6
|
+
export type ToggleColor = typeof colors[number];
|
|
File without changes
|
|
File without changes
|
|
@@ -1,28 +1,16 @@
|
|
|
1
|
-
export type Strategy = 'merge' | 'override'
|
|
2
|
-
|
|
1
|
+
export type Strategy = 'merge' | 'override';
|
|
2
|
+
export interface TightMap<O = any> {
|
|
3
|
+
[key: string]: TightMap | O;
|
|
4
|
+
}
|
|
5
|
+
export type DeepPartial<T, O = any> = {
|
|
6
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P], O> : T[P];
|
|
7
|
+
} & {
|
|
8
|
+
[key: string]: O | TightMap<O>;
|
|
9
|
+
};
|
|
3
10
|
export type NestedKeyOf<ObjectType extends Record<string, any>> = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
[P in keyof T]: DeepPartial<T[P]> | { [key: string]: string | object }
|
|
11
|
-
}>
|
|
12
|
-
|
|
13
|
-
type DeepKey<T, Keys extends string[]> =
|
|
14
|
-
Keys extends [infer First, ...infer Rest]
|
|
15
|
-
? First extends keyof T
|
|
16
|
-
? Rest extends string[]
|
|
17
|
-
? DeepKey<T[First], Rest>
|
|
18
|
-
: never
|
|
19
|
-
: never
|
|
20
|
-
: T
|
|
21
|
-
|
|
22
|
-
export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
|
|
23
|
-
? Result extends Record<string, any> ? keyof Result : never
|
|
24
|
-
: never
|
|
25
|
-
|
|
26
|
-
export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
|
|
27
|
-
? Result extends Record<string, any> ? Result : never
|
|
28
|
-
: never
|
|
11
|
+
[Key in keyof ObjectType]: ObjectType[Key] extends Record<string, any> ? NestedKeyOf<ObjectType[Key]> : Key;
|
|
12
|
+
}[keyof ObjectType];
|
|
13
|
+
type DeepKey<T, Keys extends string[]> = Keys extends [infer First, ...infer Rest] ? First extends keyof T ? Rest extends string[] ? DeepKey<T[First], Rest> : never : never : T;
|
|
14
|
+
export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result ? Result extends Record<string, any> ? keyof Result : never : never;
|
|
15
|
+
export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result ? Result extends Record<string, any> ? Result : never : never;
|
|
16
|
+
export {};
|
|
File without changes
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import type { Link } from './link'
|
|
2
|
-
import type { Avatar } from './avatar'
|
|
3
|
-
import type { Badge } from './badge'
|
|
4
|
-
|
|
1
|
+
import type { Link } from './link.js';
|
|
2
|
+
import type { Avatar } from './avatar.js';
|
|
3
|
+
import type { Badge } from './badge.js';
|
|
5
4
|
export interface VerticalNavigationLink extends Link {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
label: string;
|
|
6
|
+
labelClass?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
iconClass?: string;
|
|
9
|
+
avatar?: Avatar;
|
|
10
|
+
click?: Function;
|
|
11
|
+
badge?: string | number | Badge;
|
|
13
12
|
}
|
|
File without changes
|
|
@@ -37,6 +37,9 @@ declare const _default: {
|
|
|
37
37
|
label: string;
|
|
38
38
|
icon: string;
|
|
39
39
|
};
|
|
40
|
+
expand: {
|
|
41
|
+
icon: string;
|
|
42
|
+
};
|
|
40
43
|
progress: {
|
|
41
44
|
wrapper: string;
|
|
42
45
|
};
|
|
@@ -51,6 +54,13 @@ declare const _default: {
|
|
|
51
54
|
variant: "ghost";
|
|
52
55
|
class: string;
|
|
53
56
|
};
|
|
57
|
+
expandButton: {
|
|
58
|
+
icon: string;
|
|
59
|
+
color: "gray";
|
|
60
|
+
variant: "ghost";
|
|
61
|
+
size: "xs";
|
|
62
|
+
class: string;
|
|
63
|
+
};
|
|
54
64
|
checkbox: {
|
|
55
65
|
color: "primary";
|
|
56
66
|
};
|
|
@@ -37,6 +37,9 @@ export default {
|
|
|
37
37
|
label: "text-sm text-center text-gray-900 dark:text-white",
|
|
38
38
|
icon: "w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"
|
|
39
39
|
},
|
|
40
|
+
expand: {
|
|
41
|
+
icon: "transform transition-transform duration-200"
|
|
42
|
+
},
|
|
40
43
|
progress: {
|
|
41
44
|
wrapper: "absolute inset-x-0 -bottom-[0.5px] p-0"
|
|
42
45
|
},
|
|
@@ -51,6 +54,13 @@ export default {
|
|
|
51
54
|
variant: "ghost",
|
|
52
55
|
class: "-m-1.5"
|
|
53
56
|
},
|
|
57
|
+
expandButton: {
|
|
58
|
+
icon: "i-heroicons-chevron-down",
|
|
59
|
+
color: "gray",
|
|
60
|
+
variant: "ghost",
|
|
61
|
+
size: "xs",
|
|
62
|
+
class: "-my-1.5 align-middle"
|
|
63
|
+
},
|
|
54
64
|
checkbox: {
|
|
55
65
|
color: "primary"
|
|
56
66
|
},
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
size: "text-sm",
|
|
7
7
|
color: "text-gray-500 dark:text-gray-400",
|
|
8
8
|
padding: "pt-1.5 pb-3",
|
|
9
|
-
icon: "ms-auto transform transition-transform duration-200"
|
|
9
|
+
icon: "ms-auto transform transition-transform duration-200 flex-shrink-0"
|
|
10
10
|
},
|
|
11
11
|
transition: {
|
|
12
12
|
enterActiveClass: "overflow-hidden transition-[height] duration-200 ease-out",
|
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
openIcon: "i-heroicons-chevron-down-20-solid",
|
|
17
17
|
closeIcon: "",
|
|
18
18
|
class: "mb-1.5 w-full",
|
|
19
|
-
variant: "soft"
|
|
19
|
+
variant: "soft",
|
|
20
|
+
truncate: true
|
|
20
21
|
}
|
|
21
22
|
};
|
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
wrapper: "absolute flex items-center justify-center gap-3 bottom-4 inset-x-0",
|
|
10
10
|
base: "rounded-full h-3 w-3",
|
|
11
11
|
active: "bg-primary-500 dark:bg-primary-400",
|
|
12
|
-
inactive: "bg-gray-100 dark:bg-gray-800
|
|
12
|
+
inactive: "bg-gray-100 dark:bg-gray-800"
|
|
13
13
|
},
|
|
14
14
|
default: {
|
|
15
15
|
prevButton: {
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
export { default as table } from './data/table';
|
|
2
|
-
export { default as avatar } from './elements/avatar';
|
|
3
|
-
export { default as avatarGroup } from './elements/avatarGroup';
|
|
4
|
-
export { default as badge } from './elements/badge';
|
|
5
|
-
export { default as button } from './elements/button';
|
|
6
|
-
export { default as buttonGroup } from './elements/buttonGroup';
|
|
7
|
-
export { default as chip } from './elements/chip';
|
|
8
|
-
export { default as dropdown } from './elements/dropdown';
|
|
9
|
-
export { default as accordion } from './elements/accordion';
|
|
10
|
-
export { default as alert } from './elements/alert';
|
|
11
|
-
export { default as kbd } from './elements/kbd';
|
|
12
|
-
export { default as progress } from './elements/progress';
|
|
13
|
-
export { default as meter } from './elements/meter';
|
|
14
|
-
export { default as meterGroup } from './elements/meterGroup';
|
|
15
|
-
export { default as carousel } from './elements/carousel';
|
|
16
|
-
export { default as input } from './forms/input';
|
|
17
|
-
export { default as inputMenu } from './forms/inputMenu';
|
|
18
|
-
export { default as formGroup } from './forms/formGroup';
|
|
19
|
-
export { default as textarea } from './forms/textarea';
|
|
20
|
-
export { default as select } from './forms/select';
|
|
21
|
-
export { default as selectMenu } from './forms/selectMenu';
|
|
22
|
-
export { default as radioGroup } from './forms/radioGroup';
|
|
23
|
-
export { default as radio } from './forms/radio';
|
|
24
|
-
export { default as checkbox } from './forms/checkbox';
|
|
25
|
-
export { default as toggle } from './forms/toggle';
|
|
26
|
-
export { default as range } from './forms/range';
|
|
27
|
-
export { default as card } from './layout/card';
|
|
28
|
-
export { default as container } from './layout/container';
|
|
29
|
-
export { default as skeleton } from './layout/skeleton';
|
|
30
|
-
export { default as divider } from './layout/divider';
|
|
31
|
-
export { default as verticalNavigation } from './navigation/verticalNavigation';
|
|
32
|
-
export { default as horizontalNavigation } from './navigation/horizontalNavigation';
|
|
33
|
-
export { default as commandPalette } from './navigation/commandPalette';
|
|
34
|
-
export { default as pagination } from './navigation/pagination';
|
|
35
|
-
export { default as tabs } from './navigation/tabs';
|
|
36
|
-
export { default as breadcrumb } from './navigation/breadcrumb';
|
|
37
|
-
export { default as modal } from './overlays/modal';
|
|
38
|
-
export { default as slideover } from './overlays/slideover';
|
|
39
|
-
export { default as tooltip } from './overlays/tooltip';
|
|
40
|
-
export { default as popover } from './overlays/popover';
|
|
41
|
-
export { default as contextMenu } from './overlays/contextMenu';
|
|
42
|
-
export { default as notification } from './overlays/notification';
|
|
43
|
-
export { default as notifications } from './overlays/notifications';
|
|
1
|
+
export { default as table } from './data/table.js';
|
|
2
|
+
export { default as avatar } from './elements/avatar.js';
|
|
3
|
+
export { default as avatarGroup } from './elements/avatarGroup.js';
|
|
4
|
+
export { default as badge } from './elements/badge.js';
|
|
5
|
+
export { default as button } from './elements/button.js';
|
|
6
|
+
export { default as buttonGroup } from './elements/buttonGroup.js';
|
|
7
|
+
export { default as chip } from './elements/chip.js';
|
|
8
|
+
export { default as dropdown } from './elements/dropdown.js';
|
|
9
|
+
export { default as accordion } from './elements/accordion.js';
|
|
10
|
+
export { default as alert } from './elements/alert.js';
|
|
11
|
+
export { default as kbd } from './elements/kbd.js';
|
|
12
|
+
export { default as progress } from './elements/progress.js';
|
|
13
|
+
export { default as meter } from './elements/meter.js';
|
|
14
|
+
export { default as meterGroup } from './elements/meterGroup.js';
|
|
15
|
+
export { default as carousel } from './elements/carousel.js';
|
|
16
|
+
export { default as input } from './forms/input.js';
|
|
17
|
+
export { default as inputMenu } from './forms/inputMenu.js';
|
|
18
|
+
export { default as formGroup } from './forms/formGroup.js';
|
|
19
|
+
export { default as textarea } from './forms/textarea.js';
|
|
20
|
+
export { default as select } from './forms/select.js';
|
|
21
|
+
export { default as selectMenu } from './forms/selectMenu.js';
|
|
22
|
+
export { default as radioGroup } from './forms/radioGroup.js';
|
|
23
|
+
export { default as radio } from './forms/radio.js';
|
|
24
|
+
export { default as checkbox } from './forms/checkbox.js';
|
|
25
|
+
export { default as toggle } from './forms/toggle.js';
|
|
26
|
+
export { default as range } from './forms/range.js';
|
|
27
|
+
export { default as card } from './layout/card.js';
|
|
28
|
+
export { default as container } from './layout/container.js';
|
|
29
|
+
export { default as skeleton } from './layout/skeleton.js';
|
|
30
|
+
export { default as divider } from './layout/divider.js';
|
|
31
|
+
export { default as verticalNavigation } from './navigation/verticalNavigation.js';
|
|
32
|
+
export { default as horizontalNavigation } from './navigation/horizontalNavigation.js';
|
|
33
|
+
export { default as commandPalette } from './navigation/commandPalette.js';
|
|
34
|
+
export { default as pagination } from './navigation/pagination.js';
|
|
35
|
+
export { default as tabs } from './navigation/tabs.js';
|
|
36
|
+
export { default as breadcrumb } from './navigation/breadcrumb.js';
|
|
37
|
+
export { default as modal } from './overlays/modal.js';
|
|
38
|
+
export { default as slideover } from './overlays/slideover.js';
|
|
39
|
+
export { default as tooltip } from './overlays/tooltip.js';
|
|
40
|
+
export { default as popover } from './overlays/popover.js';
|
|
41
|
+
export { default as contextMenu } from './overlays/contextMenu.js';
|
|
42
|
+
export { default as notification } from './overlays/notification.js';
|
|
43
|
+
export { default as notifications } from './overlays/notifications.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export { default as table } from "./data/table.js";
|
|
2
|
+
export { default as avatar } from "./elements/avatar.js";
|
|
3
|
+
export { default as avatarGroup } from "./elements/avatarGroup.js";
|
|
4
|
+
export { default as badge } from "./elements/badge.js";
|
|
5
|
+
export { default as button } from "./elements/button.js";
|
|
6
|
+
export { default as buttonGroup } from "./elements/buttonGroup.js";
|
|
7
|
+
export { default as chip } from "./elements/chip.js";
|
|
8
|
+
export { default as dropdown } from "./elements/dropdown.js";
|
|
9
|
+
export { default as accordion } from "./elements/accordion.js";
|
|
10
|
+
export { default as alert } from "./elements/alert.js";
|
|
11
|
+
export { default as kbd } from "./elements/kbd.js";
|
|
12
|
+
export { default as progress } from "./elements/progress.js";
|
|
13
|
+
export { default as meter } from "./elements/meter.js";
|
|
14
|
+
export { default as meterGroup } from "./elements/meterGroup.js";
|
|
15
|
+
export { default as carousel } from "./elements/carousel.js";
|
|
16
|
+
export { default as input } from "./forms/input.js";
|
|
17
|
+
export { default as inputMenu } from "./forms/inputMenu.js";
|
|
18
|
+
export { default as formGroup } from "./forms/formGroup.js";
|
|
19
|
+
export { default as textarea } from "./forms/textarea.js";
|
|
20
|
+
export { default as select } from "./forms/select.js";
|
|
21
|
+
export { default as selectMenu } from "./forms/selectMenu.js";
|
|
22
|
+
export { default as radioGroup } from "./forms/radioGroup.js";
|
|
23
|
+
export { default as radio } from "./forms/radio.js";
|
|
24
|
+
export { default as checkbox } from "./forms/checkbox.js";
|
|
25
|
+
export { default as toggle } from "./forms/toggle.js";
|
|
26
|
+
export { default as range } from "./forms/range.js";
|
|
27
|
+
export { default as card } from "./layout/card.js";
|
|
28
|
+
export { default as container } from "./layout/container.js";
|
|
29
|
+
export { default as skeleton } from "./layout/skeleton.js";
|
|
30
|
+
export { default as divider } from "./layout/divider.js";
|
|
31
|
+
export { default as verticalNavigation } from "./navigation/verticalNavigation.js";
|
|
32
|
+
export { default as horizontalNavigation } from "./navigation/horizontalNavigation.js";
|
|
33
|
+
export { default as commandPalette } from "./navigation/commandPalette.js";
|
|
34
|
+
export { default as pagination } from "./navigation/pagination.js";
|
|
35
|
+
export { default as tabs } from "./navigation/tabs.js";
|
|
36
|
+
export { default as breadcrumb } from "./navigation/breadcrumb.js";
|
|
37
|
+
export { default as modal } from "./overlays/modal.js";
|
|
38
|
+
export { default as slideover } from "./overlays/slideover.js";
|
|
39
|
+
export { default as tooltip } from "./overlays/tooltip.js";
|
|
40
|
+
export { default as popover } from "./overlays/popover.js";
|
|
41
|
+
export { default as contextMenu } from "./overlays/contextMenu.js";
|
|
42
|
+
export { default as notification } from "./overlays/notification.js";
|
|
43
|
+
export { default as notifications } from "./overlays/notifications.js";
|
|
@@ -10,11 +10,11 @@ export default {
|
|
|
10
10
|
inactive: ""
|
|
11
11
|
},
|
|
12
12
|
divider: {
|
|
13
|
-
base: "flex-shrink-0 w-5 h-5"
|
|
13
|
+
base: "flex-shrink-0 w-5 h-5 rtl:rotate-180"
|
|
14
14
|
},
|
|
15
15
|
active: "text-primary-500 dark:text-primary-400",
|
|
16
16
|
inactive: " hover:text-gray-700 dark:hover:text-gray-200",
|
|
17
17
|
default: {
|
|
18
|
-
divider: "i-heroicons-chevron-right-20-solid
|
|
18
|
+
divider: "i-heroicons-chevron-right-20-solid"
|
|
19
19
|
}
|
|
20
20
|
};
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
overlay: {
|
|
9
9
|
base: "fixed inset-0 transition-opacity",
|
|
10
10
|
background: "bg-gray-200/75 dark:bg-gray-800/75",
|
|
11
|
-
// Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
|
|
11
|
+
// Syntax for `<TransitionRoot>` component https://headlessui.com/v1/vue/transition#basic-example
|
|
12
12
|
transition: {
|
|
13
13
|
enter: "ease-out duration-300",
|
|
14
14
|
enterFrom: "opacity-0",
|
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
width: "w-full sm:max-w-lg",
|
|
26
26
|
height: "",
|
|
27
27
|
fullscreen: "w-screen h-screen",
|
|
28
|
-
// Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
|
|
28
|
+
// Syntax for `<TransitionRoot>` component https://headlessui.com/v1/vue/transition#basic-example
|
|
29
29
|
transition: {
|
|
30
30
|
enter: "ease-out duration-300",
|
|
31
31
|
enterFrom: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -19,10 +19,13 @@ declare const _default: {
|
|
|
19
19
|
padding: string;
|
|
20
20
|
shadow: string;
|
|
21
21
|
width: string;
|
|
22
|
+
height: string;
|
|
22
23
|
translate: {
|
|
23
24
|
base: string;
|
|
24
25
|
left: string;
|
|
25
26
|
right: string;
|
|
27
|
+
top: string;
|
|
28
|
+
bottom: string;
|
|
26
29
|
};
|
|
27
30
|
transition: {
|
|
28
31
|
enter: string;
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
overlay: {
|
|
4
4
|
base: "fixed inset-0 transition-opacity",
|
|
5
5
|
background: "bg-gray-200/75 dark:bg-gray-800/75",
|
|
6
|
-
// Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
|
|
6
|
+
// Syntax for `<TransitionRoot>` component https://headlessui.com/v1/vue/transition#basic-example
|
|
7
7
|
transition: {
|
|
8
8
|
enter: "ease-in-out duration-500",
|
|
9
9
|
enterFrom: "opacity-0",
|
|
@@ -20,12 +20,15 @@ export default {
|
|
|
20
20
|
padding: "",
|
|
21
21
|
shadow: "shadow-xl",
|
|
22
22
|
width: "w-screen max-w-md",
|
|
23
|
+
height: "h-screen max-h-96",
|
|
23
24
|
translate: {
|
|
24
25
|
base: "translate-x-0",
|
|
25
26
|
left: "-translate-x-full rtl:translate-x-full",
|
|
26
|
-
right: "translate-x-full rtl:-translate-x-full"
|
|
27
|
+
right: "translate-x-full rtl:-translate-x-full",
|
|
28
|
+
top: "-translate-y-full",
|
|
29
|
+
bottom: "translate-y-full"
|
|
27
30
|
},
|
|
28
|
-
// Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
|
|
31
|
+
// Syntax for `<TransitionRoot>` component https://headlessui.com/v1/vue/transition#basic-example
|
|
29
32
|
transition: {
|
|
30
33
|
enter: "transform transition ease-in-out duration-300",
|
|
31
34
|
leave: "transform transition ease-in-out duration-200"
|
|
@@ -2,8 +2,8 @@ import type { Config as TWConfig } from 'tailwindcss';
|
|
|
2
2
|
import defaultColors from 'tailwindcss/colors.js';
|
|
3
3
|
type ColorConfig = Exclude<TWConfig['theme']['colors'], Function>;
|
|
4
4
|
export declare const excludeColors: (colors: ColorConfig | typeof defaultColors) => string[];
|
|
5
|
-
export declare const setGlobalColors: (theme: TWConfig[
|
|
6
|
-
export declare const generateSafelist: (colors: string[], globalColors: string[]) =>
|
|
5
|
+
export declare const setGlobalColors: (theme: TWConfig["theme"]) => string[];
|
|
6
|
+
export declare const generateSafelist: (colors: string[], globalColors: string[]) => import("tailwindcss/types/config").SafelistConfig[];
|
|
7
7
|
type SafelistFn = Exclude<NonNullable<Extract<TWConfig['content'], {
|
|
8
8
|
extract?: unknown;
|
|
9
9
|
}>['extract']>, Record<string, unknown>>;
|