nuance-ui 0.2.35 → 0.3.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.
Files changed (75) hide show
  1. package/dist/module.d.mts +3 -0
  2. package/dist/module.d.ts +3 -0
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +5 -3
  5. package/dist/runtime/app-config.d.ts +4 -0
  6. package/dist/runtime/components/accordion.d.vue.ts +79 -0
  7. package/dist/runtime/components/accordion.vue +44 -0
  8. package/dist/runtime/components/accordion.vue.d.ts +79 -0
  9. package/dist/runtime/components/action-icon/action-icon.d.vue.ts +11 -1
  10. package/dist/runtime/components/action-icon/action-icon.module.css +1 -1
  11. package/dist/runtime/components/action-icon/action-icon.vue +20 -5
  12. package/dist/runtime/components/action-icon/action-icon.vue.d.ts +11 -1
  13. package/dist/runtime/components/button/button.d.vue.ts +8 -0
  14. package/dist/runtime/components/button/button.module.css +1 -1
  15. package/dist/runtime/components/button/button.vue +17 -4
  16. package/dist/runtime/components/button/button.vue.d.ts +8 -0
  17. package/dist/runtime/components/collapsible/collapsible-content.d.vue.ts +18 -0
  18. package/dist/runtime/components/collapsible/collapsible-content.vue +76 -0
  19. package/dist/runtime/components/collapsible/collapsible-content.vue.d.ts +18 -0
  20. package/dist/runtime/components/collapsible/collapsible-root.d.vue.ts +42 -0
  21. package/dist/runtime/components/collapsible/collapsible-root.vue +41 -0
  22. package/dist/runtime/components/collapsible/collapsible-root.vue.d.ts +42 -0
  23. package/dist/runtime/components/collapsible/collapsible-trigger.d.vue.ts +13 -0
  24. package/dist/runtime/components/collapsible/collapsible-trigger.vue +20 -0
  25. package/dist/runtime/components/collapsible/collapsible-trigger.vue.d.ts +13 -0
  26. package/dist/runtime/components/collapsible/index.d.ts +3 -0
  27. package/dist/runtime/components/collapsible/index.js +1 -0
  28. package/dist/runtime/components/dialog/ui/dialog-close-button.d.vue.ts +2 -2
  29. package/dist/runtime/components/dialog/ui/dialog-close-button.vue +14 -11
  30. package/dist/runtime/components/dialog/ui/dialog-close-button.vue.d.ts +2 -2
  31. package/dist/runtime/components/dialog/ui/dialog-footer.d.vue.ts +2 -2
  32. package/dist/runtime/components/dialog/ui/dialog-footer.vue +3 -5
  33. package/dist/runtime/components/dialog/ui/dialog-footer.vue.d.ts +2 -2
  34. package/dist/runtime/components/dialog/ui/dialog-header.d.vue.ts +2 -2
  35. package/dist/runtime/components/dialog/ui/dialog-header.vue +3 -5
  36. package/dist/runtime/components/dialog/ui/dialog-header.vue.d.ts +2 -2
  37. package/dist/runtime/components/dialog/ui/dialog-root.d.vue.ts +2 -2
  38. package/dist/runtime/components/dialog/ui/dialog-root.vue +23 -25
  39. package/dist/runtime/components/dialog/ui/dialog-root.vue.d.ts +2 -2
  40. package/dist/runtime/components/dialog/ui/dialog-section.d.vue.ts +2 -2
  41. package/dist/runtime/components/dialog/ui/dialog-section.vue +3 -5
  42. package/dist/runtime/components/dialog/ui/dialog-section.vue.d.ts +2 -2
  43. package/dist/runtime/components/dialog/ui/dialog-title.d.vue.ts +2 -2
  44. package/dist/runtime/components/dialog/ui/dialog-title.vue +3 -5
  45. package/dist/runtime/components/dialog/ui/dialog-title.vue.d.ts +2 -2
  46. package/dist/runtime/components/drawer/drawer-close-button.vue +5 -0
  47. package/dist/runtime/components/files/file-upload-button.vue +4 -0
  48. package/dist/runtime/components/files/file-upload-icon.vue +5 -0
  49. package/dist/runtime/components/index.d.ts +2 -0
  50. package/dist/runtime/components/index.js +1 -0
  51. package/dist/runtime/components/link/lib.d.ts +2 -2
  52. package/dist/runtime/components/link/link-button.vue +4 -0
  53. package/dist/runtime/components/modal/modal-close-button.vue +5 -0
  54. package/dist/runtime/components/nav-link/nav-icon-link.d.vue.ts +5 -11
  55. package/dist/runtime/components/nav-link/nav-icon-link.vue +12 -8
  56. package/dist/runtime/components/nav-link/nav-icon-link.vue.d.ts +5 -11
  57. package/dist/runtime/components/scroll-area.vue +2 -1
  58. package/dist/runtime/components/select.d.vue.ts +2 -2
  59. package/dist/runtime/components/select.vue.d.ts +2 -2
  60. package/dist/runtime/components/table/ui/table-sortable-header.vue +4 -0
  61. package/dist/runtime/components/table/ui/table.vue +1 -1
  62. package/dist/runtime/components/tabs/tabs-root.d.vue.ts +1 -1
  63. package/dist/runtime/components/tabs/tabs-root.vue.d.ts +1 -1
  64. package/dist/runtime/components/theme-toggle.vue +5 -0
  65. package/dist/runtime/components/transition.d.vue.ts +10 -0
  66. package/dist/runtime/components/transition.vue +14 -3
  67. package/dist/runtime/components/transition.vue.d.ts +10 -0
  68. package/dist/runtime/composables/use-config.d.ts +1 -0
  69. package/dist/runtime/composables/use-config.js +2 -1
  70. package/dist/runtime/modals/modals-provider.vue +8 -10
  71. package/dist/runtime/utils/const/active-variants.d.ts +11 -0
  72. package/dist/runtime/utils/const/active-variants.js +9 -0
  73. package/dist/runtime/utils/const/index.d.ts +1 -0
  74. package/dist/runtime/utils/const/index.js +1 -0
  75. package/package.json +4 -4
@@ -0,0 +1,76 @@
1
+ <script>
2
+
3
+ </script>
4
+
5
+ <script setup>
6
+ import { unrefElement, useEventListener } from "@vueuse/core";
7
+ import { computed, onMounted, ref, shallowRef, useTemplateRef, watch } from "vue";
8
+ import Box from "../box.vue";
9
+ import { useCollapsibleState } from "./collapsible-root.vue";
10
+ const props = defineProps({
11
+ forceMount: { type: Boolean, required: false },
12
+ is: { type: null, required: false },
13
+ mod: { type: [Object, Array, null], required: false }
14
+ });
15
+ const ctx = useCollapsibleState();
16
+ const el = useTemplateRef("el");
17
+ const width = ref(0);
18
+ const height = ref(0);
19
+ const isMountAnimationPrevented = ref(ctx.open.value);
20
+ const savedStyle = shallowRef();
21
+ watch(() => ctx.open.value, () => {
22
+ const node = unrefElement(el);
23
+ if (!node)
24
+ return;
25
+ if (!savedStyle.value) {
26
+ savedStyle.value = {
27
+ transitionDuration: node.style.transitionDuration,
28
+ animationName: node.style.animationName
29
+ };
30
+ }
31
+ node.style.transitionDuration = "0s";
32
+ node.style.animationName = "none";
33
+ height.value = node.scrollHeight;
34
+ width.value = node.scrollWidth;
35
+ if (!isMountAnimationPrevented.value) {
36
+ requestAnimationFrame(() => {
37
+ node.style.transitionDuration = savedStyle.value.transitionDuration;
38
+ node.style.animationName = savedStyle.value.animationName;
39
+ });
40
+ }
41
+ }, { immediate: true, flush: "post" });
42
+ onMounted(() => {
43
+ requestAnimationFrame(() => {
44
+ isMountAnimationPrevented.value = false;
45
+ });
46
+ });
47
+ const isPresent = computed(() => props.forceMount || ctx.open.value);
48
+ const dataState = computed(() => {
49
+ if (isMountAnimationPrevented.value)
50
+ return void 0;
51
+ return ctx.open.value ? "open" : "closed";
52
+ });
53
+ useEventListener(el, "beforematch", () => {
54
+ requestAnimationFrame(() => ctx.onOpenToggle());
55
+ });
56
+ </script>
57
+
58
+ <template>
59
+ <Box
60
+ v-if='ctx.unmountOnHide.value ? isPresent : true'
61
+ v-bind='$attrs'
62
+ :id='ctx.contentId'
63
+ ref='el'
64
+ :hidden='isPresent ? void 0 : ctx.unmountOnHide.value ? void 0 : "until-found"'
65
+ :mod='[{
66
+ disabled: ctx.disabled,
67
+ state: dataState
68
+ }, mod]'
69
+ :style='{
70
+ "--collapsible-content-height": `${height}px`,
71
+ "--collapsible-content-width": `${width}px`
72
+ }'
73
+ >
74
+ <slot />
75
+ </Box>
76
+ </template>
@@ -0,0 +1,18 @@
1
+ import type { BoxProps } from '../box.vue.js';
2
+ export interface CollapsibleContentProps extends BoxProps {
3
+ /**
4
+ * Used to force mounting when more control is needed. Useful when
5
+ * controlling animation with Vue animation libraries.
6
+ */
7
+ forceMount?: boolean;
8
+ }
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CollapsibleContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
12
+ default?: (props: {}) => any;
13
+ }>;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,42 @@
1
+ import type { Ref } from 'vue';
2
+ import type { BoxProps } from '../box.vue.js';
3
+ export interface CollapsibleRootProps extends BoxProps {
4
+ /**
5
+ * The open state of the collapsible when it is initially rendered.
6
+ * Use when you do not need to control its open state.
7
+ */
8
+ defaultOpen?: boolean;
9
+ /** When `true`, prevents the user from interacting with the collapsible. */
10
+ disabled?: boolean;
11
+ /** When `true`, the element will be unmounted on closed state. */
12
+ unmountOnHide?: boolean;
13
+ }
14
+ interface CollapsibleRootContext {
15
+ contentId: string;
16
+ disabled?: Ref<boolean>;
17
+ open: Ref<boolean>;
18
+ unmountOnHide: Ref<boolean>;
19
+ onOpenToggle: () => void;
20
+ }
21
+ export declare const useCollapsibleState: () => CollapsibleRootContext;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleRootProps & {
25
+ open?: boolean;
26
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ "update:open": (value: boolean) => any;
28
+ }, string, import("vue").PublicProps, Readonly<CollapsibleRootProps & {
29
+ open?: boolean;
30
+ }> & Readonly<{
31
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
32
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
33
+ default?: (props: {
34
+ /** Current open state */
35
+ open: boolean;
36
+ }) => any;
37
+ }>;
38
+ type __VLS_WithSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,41 @@
1
+ <script>
2
+ import { toRefs } from "vue";
3
+ import { createStrictInjection } from "#imports";
4
+ import Box from "../box.vue";
5
+ const injectionKey = /* @__PURE__ */ Symbol("collapsible-ctx");
6
+ const [useProvide, useInject] = createStrictInjection((state) => state, {
7
+ name: "CollapsibleRoot",
8
+ injectionKey
9
+ });
10
+ export const useCollapsibleState = useInject;
11
+ </script>
12
+
13
+ <script setup>
14
+ const props = defineProps({
15
+ defaultOpen: { type: Boolean, required: false },
16
+ disabled: { type: Boolean, required: false },
17
+ unmountOnHide: { type: Boolean, required: false },
18
+ is: { type: null, required: false },
19
+ mod: { type: [Object, Array, null], required: false }
20
+ });
21
+ defineSlots();
22
+ const open = defineModel("open", { type: Boolean, ...{ default: false } });
23
+ const { disabled, unmountOnHide } = toRefs(props);
24
+ useProvide({
25
+ contentId: "",
26
+ disabled,
27
+ open,
28
+ unmountOnHide,
29
+ onOpenToggle: () => {
30
+ if (disabled.value)
31
+ return;
32
+ open.value = !open.value;
33
+ }
34
+ });
35
+ </script>
36
+
37
+ <template>
38
+ <Box :mod='[{ disabled, open: open ? "open" : "closed" }, mod]'>
39
+ <slot :open='open' />
40
+ </Box>
41
+ </template>
@@ -0,0 +1,42 @@
1
+ import type { Ref } from 'vue';
2
+ import type { BoxProps } from '../box.vue.js';
3
+ export interface CollapsibleRootProps extends BoxProps {
4
+ /**
5
+ * The open state of the collapsible when it is initially rendered.
6
+ * Use when you do not need to control its open state.
7
+ */
8
+ defaultOpen?: boolean;
9
+ /** When `true`, prevents the user from interacting with the collapsible. */
10
+ disabled?: boolean;
11
+ /** When `true`, the element will be unmounted on closed state. */
12
+ unmountOnHide?: boolean;
13
+ }
14
+ interface CollapsibleRootContext {
15
+ contentId: string;
16
+ disabled?: Ref<boolean>;
17
+ open: Ref<boolean>;
18
+ unmountOnHide: Ref<boolean>;
19
+ onOpenToggle: () => void;
20
+ }
21
+ export declare const useCollapsibleState: () => CollapsibleRootContext;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleRootProps & {
25
+ open?: boolean;
26
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ "update:open": (value: boolean) => any;
28
+ }, string, import("vue").PublicProps, Readonly<CollapsibleRootProps & {
29
+ open?: boolean;
30
+ }> & Readonly<{
31
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
32
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
33
+ default?: (props: {
34
+ /** Current open state */
35
+ open: boolean;
36
+ }) => any;
37
+ }>;
38
+ type __VLS_WithSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_10: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_10) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,20 @@
1
+ <script setup>
2
+ import Renderless from "../renderless/renderless.vue";
3
+ import { useCollapsibleState } from "./collapsible-root.vue";
4
+ const ctx = useCollapsibleState();
5
+ </script>
6
+
7
+ <template>
8
+ <Renderless
9
+ :mod='{
10
+ disabled: ctx.disabled?.value,
11
+ state: ctx.open.value ? "open" : "closed"
12
+ }'
13
+ :aria-controls='ctx.contentId'
14
+ :aria-expanded='ctx.open.value'
15
+ :disabled='ctx.disabled?.value'
16
+ @click='ctx.onOpenToggle()'
17
+ >
18
+ <slot />
19
+ </Renderless>
20
+ </template>
@@ -0,0 +1,13 @@
1
+ declare var __VLS_10: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_10) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,3 @@
1
+ export type * from './collapsible-content.vue';
2
+ export { type CollapsibleRootProps, useCollapsibleState } from './collapsible-root.vue.js';
3
+ export type * from './collapsible-trigger.vue';
@@ -0,0 +1 @@
1
+ export { useCollapsibleState } from "./collapsible-root.vue";
@@ -1,7 +1,7 @@
1
1
  import type { ActionIconProps } from '../../action-icon/index.js';
2
- declare var __VLS_16: {};
2
+ declare var __VLS_10: {};
3
3
  type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_16) => any;
4
+ default?: (props: typeof __VLS_10) => any;
5
5
  };
6
6
  declare const __VLS_base: import("vue").DefineComponent<ActionIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ActionIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
7
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -9,6 +9,7 @@ const {
9
9
  ...props
10
10
  } = defineProps({
11
11
  size: { type: null, required: false },
12
+ iconSize: { type: [Number, String], required: false },
12
13
  gradient: { type: Object, required: false },
13
14
  color: { type: null, required: false },
14
15
  radius: { type: [String, Number, Object], required: false },
@@ -17,6 +18,10 @@ const {
17
18
  disabled: { type: Boolean, required: false },
18
19
  mod: { type: [Object, Array, null], required: false },
19
20
  variant: { type: String, required: false },
21
+ active: { type: Boolean, required: false },
22
+ activeMode: { type: String, required: false },
23
+ activeVariant: { type: String, required: false },
24
+ activeColor: { type: null, required: false },
20
25
  classes: { type: Object, required: false }
21
26
  });
22
27
  const close = useDialogState();
@@ -25,15 +30,13 @@ const resolvedIcon = computed(() => icon ?? icons.close);
25
30
  </script>
26
31
 
27
32
  <template>
28
- <ClientOnly>
29
- <ActionIcon
30
- :icon='resolvedIcon'
31
- :variant
32
- tabindex='0'
33
- v-bind='props'
34
- @click='close'
35
- >
36
- <slot />
37
- </ActionIcon>
38
- </ClientOnly>
33
+ <ActionIcon
34
+ :icon='resolvedIcon'
35
+ :variant
36
+ tabindex='0'
37
+ v-bind='props'
38
+ @click='close'
39
+ >
40
+ <slot />
41
+ </ActionIcon>
39
42
  </template>
@@ -1,7 +1,7 @@
1
1
  import type { ActionIconProps } from '../../action-icon/index.js';
2
- declare var __VLS_16: {};
2
+ declare var __VLS_10: {};
3
3
  type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_16) => any;
4
+ default?: (props: typeof __VLS_10) => any;
5
5
  };
6
6
  declare const __VLS_base: import("vue").DefineComponent<ActionIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ActionIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
7
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,9 +1,9 @@
1
1
  import type { BoxProps } from '../../box.vue.js';
2
2
  export interface DialogFooterProps extends BoxProps {
3
3
  }
4
- declare var __VLS_14: {};
4
+ declare var __VLS_8: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_14) => any;
6
+ default?: (props: typeof __VLS_8) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<DialogFooterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogFooterProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -8,9 +8,7 @@ const { is = "footer", mod } = defineProps({
8
8
  </script>
9
9
 
10
10
  <template>
11
- <ClientOnly>
12
- <Box :is :mod :class='css.footer'>
13
- <slot />
14
- </Box>
15
- </ClientOnly>
11
+ <Box :is :mod :class='css.footer'>
12
+ <slot />
13
+ </Box>
16
14
  </template>
@@ -1,9 +1,9 @@
1
1
  import type { BoxProps } from '../../box.vue.js';
2
2
  export interface DialogFooterProps extends BoxProps {
3
3
  }
4
- declare var __VLS_14: {};
4
+ declare var __VLS_8: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_14) => any;
6
+ default?: (props: typeof __VLS_8) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<DialogFooterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogFooterProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,9 +1,9 @@
1
1
  import type { BoxProps } from '../../box.vue.js';
2
2
  export interface DialogHeaderProps extends BoxProps {
3
3
  }
4
- declare var __VLS_14: {};
4
+ declare var __VLS_8: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_14) => any;
6
+ default?: (props: typeof __VLS_8) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<DialogHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -8,9 +8,7 @@ const { is = "header", mod } = defineProps({
8
8
  </script>
9
9
 
10
10
  <template>
11
- <ClientOnly>
12
- <Box :is :mod :class='css.header'>
13
- <slot />
14
- </Box>
15
- </ClientOnly>
11
+ <Box :is :mod :class='css.header'>
12
+ <slot />
13
+ </Box>
16
14
  </template>
@@ -1,9 +1,9 @@
1
1
  import type { BoxProps } from '../../box.vue.js';
2
2
  export interface DialogHeaderProps extends BoxProps {
3
3
  }
4
- declare var __VLS_14: {};
4
+ declare var __VLS_8: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_14) => any;
6
+ default?: (props: typeof __VLS_8) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<DialogHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -36,9 +36,9 @@ type __VLS_ModelProps = {
36
36
  'open'?: DialogModel['open'];
37
37
  };
38
38
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
39
- declare var __VLS_38: {};
39
+ declare var __VLS_31: {};
40
40
  type __VLS_Slots = {} & {
41
- default?: (props: typeof __VLS_38) => any;
41
+ default?: (props: typeof __VLS_31) => any;
42
42
  };
43
43
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
44
  close: () => any;
@@ -71,29 +71,27 @@ const style = computed(() => ({
71
71
  </script>
72
72
 
73
73
  <template>
74
- <ClientOnly>
75
- <Teleport :disabled='!withinPortal' :to='portalTarget'>
76
- <Box
77
- is='dialog'
78
- ref='dialogRef'
79
- :class='[css.root, classes?.root]'
80
- :mod='[{ "without-overlay": withoutOverlay }, mod]'
81
- :style
82
- @click='overlayClick'
83
- @close='$emit("close")'
84
- @cancel.prevent='opened = false'
85
- >
86
- <NTransition :name='transition'>
87
- <Box
88
- is='section'
89
- v-if='opened'
90
- :class='[css.content, classes?.content]'
91
- v-bind='$attrs'
92
- >
93
- <slot />
94
- </Box>
95
- </NTransition>
96
- </Box>
97
- </Teleport>
98
- </ClientOnly>
74
+ <Teleport :disabled='!withinPortal' :to='portalTarget'>
75
+ <Box
76
+ is='dialog'
77
+ ref='dialogRef'
78
+ :class='[css.root, classes?.root]'
79
+ :mod='[{ "without-overlay": withoutOverlay }, mod]'
80
+ :style
81
+ @click='overlayClick'
82
+ @close='$emit("close")'
83
+ @cancel.prevent='opened = false'
84
+ >
85
+ <NTransition :name='transition'>
86
+ <Box
87
+ is='section'
88
+ v-if='opened'
89
+ :class='[css.content, classes?.content]'
90
+ v-bind='$attrs'
91
+ >
92
+ <slot />
93
+ </Box>
94
+ </NTransition>
95
+ </Box>
96
+ </Teleport>
99
97
  </template>
@@ -36,9 +36,9 @@ type __VLS_ModelProps = {
36
36
  'open'?: DialogModel['open'];
37
37
  };
38
38
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
39
- declare var __VLS_38: {};
39
+ declare var __VLS_31: {};
40
40
  type __VLS_Slots = {} & {
41
- default?: (props: typeof __VLS_38) => any;
41
+ default?: (props: typeof __VLS_31) => any;
42
42
  };
43
43
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
44
  close: () => any;
@@ -2,9 +2,9 @@ import type { BoxProps } from '../../box.vue.js';
2
2
  export interface DialogSectionProps extends BoxProps {
3
3
  bordered?: boolean;
4
4
  }
5
- declare var __VLS_14: {};
5
+ declare var __VLS_8: {};
6
6
  type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_14) => any;
7
+ default?: (props: typeof __VLS_8) => any;
8
8
  };
9
9
  declare const __VLS_base: import("vue").DefineComponent<DialogSectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogSectionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -9,9 +9,7 @@ const { is = "section", bordered, mod } = defineProps({
9
9
  </script>
10
10
 
11
11
  <template>
12
- <ClientOnly>
13
- <Box :is :mod='[{ bordered }, mod]' :class='css.section'>
14
- <slot />
15
- </Box>
16
- </ClientOnly>
12
+ <Box :is :mod='[{ bordered }, mod]' :class='css.section'>
13
+ <slot />
14
+ </Box>
17
15
  </template>
@@ -2,9 +2,9 @@ import type { BoxProps } from '../../box.vue.js';
2
2
  export interface DialogSectionProps extends BoxProps {
3
3
  bordered?: boolean;
4
4
  }
5
- declare var __VLS_14: {};
5
+ declare var __VLS_8: {};
6
6
  type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_14) => any;
7
+ default?: (props: typeof __VLS_8) => any;
8
8
  };
9
9
  declare const __VLS_base: import("vue").DefineComponent<DialogSectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogSectionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,9 +1,9 @@
1
1
  import type { TitleProps } from '../../title.vue.js';
2
2
  export interface DialogTitleProps extends TitleProps {
3
3
  }
4
- declare var __VLS_14: {};
4
+ declare var __VLS_8: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_14) => any;
6
+ default?: (props: typeof __VLS_8) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<DialogTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,9 +21,7 @@ const { size = "md", lh = "1", ...props } = defineProps({
21
21
  </script>
22
22
 
23
23
  <template>
24
- <ClientOnly>
25
- <Title :class='css.title' :lh :size v-bind='props'>
26
- <slot />
27
- </Title>
28
- </ClientOnly>
24
+ <Title :class='css.title' :lh :size v-bind='props'>
25
+ <slot />
26
+ </Title>
29
27
  </template>
@@ -1,9 +1,9 @@
1
1
  import type { TitleProps } from '../../title.vue.js';
2
2
  export interface DialogTitleProps extends TitleProps {
3
3
  }
4
- declare var __VLS_14: {};
4
+ declare var __VLS_8: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_14) => any;
6
+ default?: (props: typeof __VLS_8) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<DialogTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -2,6 +2,7 @@
2
2
  import DialogCloseButton from "../dialog/ui/dialog-close-button.vue";
3
3
  const props = defineProps({
4
4
  size: { type: null, required: false },
5
+ iconSize: { type: [Number, String], required: false },
5
6
  gradient: { type: Object, required: false },
6
7
  color: { type: null, required: false },
7
8
  radius: { type: [String, Number, Object], required: false },
@@ -10,6 +11,10 @@ const props = defineProps({
10
11
  disabled: { type: Boolean, required: false },
11
12
  mod: { type: [Object, Array, null], required: false },
12
13
  variant: { type: String, required: false },
14
+ active: { type: Boolean, required: false },
15
+ activeMode: { type: String, required: false },
16
+ activeVariant: { type: String, required: false },
17
+ activeColor: { type: null, required: false },
13
18
  classes: { type: Object, required: false }
14
19
  });
15
20
  </script>
@@ -28,6 +28,10 @@ const {
28
28
  leftSectionProps: { type: Object, required: false },
29
29
  rightSectionProps: { type: Object, required: false },
30
30
  variant: { type: String, required: false },
31
+ active: { type: Boolean, required: false },
32
+ activeMode: { type: String, required: false },
33
+ activeVariant: { type: String, required: false },
34
+ activeColor: { type: null, required: false },
31
35
  classes: { type: Object, required: false },
32
36
  is: { type: null, required: false },
33
37
  mod: { type: [Object, Array, null], required: false },
@@ -16,6 +16,7 @@ const {
16
16
  reset: { type: null, required: false },
17
17
  directory: { type: null, required: false },
18
18
  size: { type: null, required: false },
19
+ iconSize: { type: [Number, String], required: false },
19
20
  gradient: { type: Object, required: false },
20
21
  color: { type: null, required: false },
21
22
  radius: { type: [String, Number, Object], required: false },
@@ -24,6 +25,10 @@ const {
24
25
  disabled: { type: Boolean, required: false },
25
26
  mod: { type: [Object, Array, null], required: false },
26
27
  variant: { type: String, required: false },
28
+ active: { type: Boolean, required: false },
29
+ activeMode: { type: String, required: false },
30
+ activeVariant: { type: String, required: false },
31
+ activeColor: { type: null, required: false },
27
32
  classes: { type: Object, required: false },
28
33
  capture: { type: null, required: false },
29
34
  initialFiles: { type: null, required: false },