bonkers-ui 1.0.65 → 1.0.67

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 (87) hide show
  1. package/LICENCE +21 -0
  2. package/_utils/debounce.d.ts +2 -0
  3. package/_utils/debounce.d.ts.map +1 -0
  4. package/_utils/debounce.js +12 -0
  5. package/_utils/debounce.js.map +1 -0
  6. package/bonkers-ui.umd.js +3 -3
  7. package/bonkers-ui.umd.js.map +1 -1
  8. package/components/ui-alert/index.d.ts +7 -6
  9. package/components/ui-alert/ui-alert.vue.d.ts +5 -4
  10. package/components/ui-badge/index.d.ts +7 -6
  11. package/components/ui-badge/ui-badge.vue.d.ts +5 -4
  12. package/components/ui-ber-rank/_types.d.ts +2 -1
  13. package/components/ui-ber-rank/index.d.ts +4 -3
  14. package/components/ui-ber-rank/ui-ber-rank.vue.d.ts +3 -2
  15. package/components/ui-button/index.d.ts +7 -6
  16. package/components/ui-button/ui-button.vue.d.ts +4 -3
  17. package/components/ui-card-cta/index.d.ts +6 -5
  18. package/components/ui-card-cta/ui-card-cta.vue.d.ts +4 -3
  19. package/components/ui-card-result/index.d.ts +6 -5
  20. package/components/ui-card-result/ui-card-result.vue.d.ts +2 -2
  21. package/components/ui-card-simple/index.d.ts +5 -4
  22. package/components/ui-card-simple/ui-card-simple.vue.d.ts +1 -1
  23. package/components/ui-checkbox/index.d.ts +6 -5
  24. package/components/ui-checkbox/ui-checkbox.vue.d.ts +4 -3
  25. package/components/ui-dropdown/index.d.ts +7 -6
  26. package/components/ui-dropdown/ui-dropdown.vue.d.ts +5 -4
  27. package/components/ui-dropdown/ui-dropdown.vue.d.ts.map +1 -1
  28. package/components/ui-dropdown/ui-dropdown.vue.js +45 -43
  29. package/components/ui-dropdown/ui-dropdown.vue.js.map +1 -1
  30. package/components/ui-icon/index.d.ts +6 -5
  31. package/components/ui-icon/ui-icon.vue.d.ts +4 -3
  32. package/components/ui-icon-wrapper/index.d.ts +7 -6
  33. package/components/ui-icon-wrapper/ui-icon-wrapper.vue.d.ts +4 -3
  34. package/components/ui-input/index.d.ts +7 -6
  35. package/components/ui-input/ui-input.vue.d.ts +4 -3
  36. package/components/ui-input-range/index.d.ts +3 -2
  37. package/components/ui-input-range/ui-input-range.vue.d.ts +1 -1
  38. package/components/ui-list-item/index.d.ts +7 -6
  39. package/components/ui-list-item/ui-list-item.vue.d.ts +5 -4
  40. package/components/ui-modal/index.d.ts +7 -6
  41. package/components/ui-modal/ui-backdrop/index.d.ts +5 -4
  42. package/components/ui-modal/ui-backdrop/ui-backdrop.vue.d.ts +1 -1
  43. package/components/ui-modal/ui-modal.vue.d.ts +4 -3
  44. package/components/ui-notification-badge/index.d.ts +7 -6
  45. package/components/ui-notification-badge/ui-notification-badge.vue.d.ts +4 -3
  46. package/components/ui-order-card/index.d.ts +6 -5
  47. package/components/ui-order-card/ui-order-card.vue.d.ts +5 -4
  48. package/components/ui-plain-radio/index.d.ts +6 -5
  49. package/components/ui-plain-radio/ui-plain-radio.vue.d.ts +2 -2
  50. package/components/ui-progress/index.d.ts +3 -2
  51. package/components/ui-progress/ui-progress.vue.d.ts +1 -1
  52. package/components/ui-radio/index.d.ts +6 -5
  53. package/components/ui-radio/ui-radio.vue.d.ts +4 -3
  54. package/components/ui-radio-compact/index.d.ts +6 -5
  55. package/components/ui-radio-compact/ui-radio-compact.vue.d.ts +2 -2
  56. package/components/ui-radio-fancy/index.d.ts +6 -5
  57. package/components/ui-radio-fancy/ui-radio-fancy.vue.d.ts +5 -4
  58. package/components/ui-result-card-range/index.d.ts +6 -5
  59. package/components/ui-result-card-range/ui-result-card-range.vue.d.ts +4 -3
  60. package/components/ui-ripple/index.d.ts +5 -4
  61. package/components/ui-ripple/ui-ripple.vue.d.ts +1 -1
  62. package/components/ui-select/index.d.ts +6 -5
  63. package/components/ui-select/ui-select.vue.d.ts +2 -2
  64. package/components/ui-skeleton/index.d.ts +3 -2
  65. package/components/ui-skeleton/ui-skeleton.vue.d.ts +3 -2
  66. package/components/ui-snackbar/index.d.ts +7 -6
  67. package/components/ui-snackbar/ui-snackbar.vue.d.ts +4 -3
  68. package/components/ui-table/index.d.ts +10 -9
  69. package/components/ui-table/ui-table-cell/index.d.ts +6 -5
  70. package/components/ui-table/ui-table-cell/ui-table-cell.vue.d.ts +4 -3
  71. package/components/ui-table/ui-table-row/index.d.ts +7 -6
  72. package/components/ui-table/ui-table-row/ui-table-row.vue.d.ts +4 -3
  73. package/components/ui-table/ui-table.vue.d.ts +4 -3
  74. package/components/ui-tabs/index.d.ts +3 -2
  75. package/components/ui-tabs/ui-tabs.vue.d.ts +1 -1
  76. package/components/ui-toggle/index.d.ts +6 -5
  77. package/components/ui-toggle/ui-toggle.vue.d.ts +2 -2
  78. package/components/ui-typography/index.d.ts +8 -7
  79. package/components/ui-typography/ui-typography.vue.d.ts +6 -5
  80. package/components/ui-verification-input/index.d.ts +6 -5
  81. package/components/ui-verification-input/ui-verification-input.vue.d.ts +2 -2
  82. package/index.d.ts +37 -36
  83. package/package.json +36 -35
  84. package/types.d.ts +20 -20
  85. package/postcss.config.js +0 -8
  86. package/tsconfig.json +0 -60
  87. package/tsconfig.node.json +0 -12
@@ -1,13 +1,14 @@
1
1
  import { TIconName } from '../ui-icon';
2
2
  import { EBadgeSize, EBadgeKind } from './_typings';
3
3
  import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
4
- import UiBadge from "./ui-badge.vue";
4
+ import { default as UiBadge } from './ui-badge.vue';
5
+
5
6
  export { UiBadge };
6
7
  /**
7
8
  * @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
8
9
  */
9
10
  declare const deprecatedDefault: {
10
- new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
11
+ new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
11
12
  size: {
12
13
  type: PropType<EBadgeSize>;
13
14
  };
@@ -17,7 +18,7 @@ declare const deprecatedDefault: {
17
18
  icon: {
18
19
  type: PropType<TIconName>;
19
20
  };
20
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
21
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
21
22
  size: {
22
23
  type: PropType<EBadgeSize>;
23
24
  };
@@ -34,7 +35,7 @@ declare const deprecatedDefault: {
34
35
  C: {};
35
36
  M: {};
36
37
  Defaults: {};
37
- }, Readonly<ExtractPropTypes<{
38
+ }, Readonly< ExtractPropTypes<{
38
39
  size: {
39
40
  type: PropType<EBadgeSize>;
40
41
  };
@@ -48,7 +49,7 @@ declare const deprecatedDefault: {
48
49
  __isFragment?: undefined;
49
50
  __isTeleport?: undefined;
50
51
  __isSuspense?: undefined;
51
- } & ComponentOptionsBase<Readonly<ExtractPropTypes<{
52
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
52
53
  size: {
53
54
  type: PropType<EBadgeSize>;
54
55
  };
@@ -64,5 +65,5 @@ declare const deprecatedDefault: {
64
65
  };
65
66
  });
66
67
  export default deprecatedDefault;
67
- export { EBadgeKind, EBadgeSize } from "./_typings";
68
+ export { EBadgeKind, EBadgeSize } from './_typings';
68
69
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,12 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { EBadgeKind, EBadgeSize } from "./_typings";
3
- import { type TIconName } from "../ui-icon";
4
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ import { TIconName } from '../ui-icon';
3
+ import { EBadgeKind, EBadgeSize } from './_typings';
4
+
5
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<{
5
6
  size?: EBadgeSize | undefined;
6
7
  kind?: EBadgeKind | undefined;
7
8
  icon?: TIconName | undefined;
8
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
10
  size?: EBadgeSize | undefined;
10
11
  kind?: EBadgeKind | undefined;
11
12
  icon?: TIconName | undefined;
@@ -1,4 +1,5 @@
1
- import { EColors } from "../../_types/colors";
1
+ import { EColors } from '../../_types/colors';
2
+
2
3
  type Ran<T extends number> = number extends T ? number : _Range<T, []>;
3
4
  type _Range<T extends number, R extends unknown[]> = R["length"] extends T ? R[number] : _Range<T, [R["length"], ...R]>;
4
5
  export type TBerPropNumber = Ran<typeof berRankDictionary.length>;
@@ -1,8 +1,9 @@
1
1
  import { EBerSize } from './_types';
2
2
  import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
- import UiBerRank from "./ui-ber-rank.vue";
3
+ import { default as UiBerRank } from './ui-ber-rank.vue';
4
+
4
5
  export { UiBerRank };
5
- export { EBerSize } from "./_types";
6
+ export { EBerSize } from './_types';
6
7
  /**
7
8
  * @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
8
9
  */
@@ -15,7 +16,7 @@ declare const deprecatedDefault: DefineComponent<{
15
16
  type: PropType<number | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15">;
16
17
  required: true;
17
18
  };
18
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
19
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
19
20
  size: {
20
21
  type: PropType<EBerSize>;
21
22
  default: EBerSize;
@@ -1,11 +1,12 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { type TBerPropNumber, type TBerPropString, EBerSize } from "./_types";
2
+ import { TBerPropNumber, TBerPropString, EBerSize } from './_types';
3
+
3
4
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
5
  rank: TBerPropNumber | TBerPropString | number;
5
6
  size?: EBerSize | undefined;
6
7
  }>, {
7
8
  size: EBerSize;
8
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
10
  rank: TBerPropNumber | TBerPropString | number;
10
11
  size?: EBerSize | undefined;
11
12
  }>, {
@@ -1,13 +1,14 @@
1
1
  import { EButtonSizes, EButtonTypes } from './_typings';
2
2
  import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
3
- import UiButton from "./ui-button.vue";
3
+ import { default as UiButton } from './ui-button.vue';
4
+
4
5
  export { UiButton };
5
- export { EButtonSizes, EButtonTypes } from "./_typings";
6
+ export { EButtonSizes, EButtonTypes } from './_typings';
6
7
  /**
7
8
  * @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
8
9
  */
9
10
  declare const deprecatedDefault: {
10
- new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
11
+ new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
11
12
  size: {
12
13
  type: PropType<EButtonSizes>;
13
14
  default: EButtonSizes;
@@ -24,7 +25,7 @@ declare const deprecatedDefault: {
24
25
  type: PropType<boolean>;
25
26
  default: boolean;
26
27
  };
27
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
28
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
28
29
  size: {
29
30
  type: PropType<EButtonSizes>;
30
31
  default: EButtonSizes;
@@ -53,7 +54,7 @@ declare const deprecatedDefault: {
53
54
  C: {};
54
55
  M: {};
55
56
  Defaults: {};
56
- }, Readonly<ExtractPropTypes<{
57
+ }, Readonly< ExtractPropTypes<{
57
58
  size: {
58
59
  type: PropType<EButtonSizes>;
59
60
  default: EButtonSizes;
@@ -79,7 +80,7 @@ declare const deprecatedDefault: {
79
80
  __isFragment?: undefined;
80
81
  __isTeleport?: undefined;
81
82
  __isSuspense?: undefined;
82
- } & ComponentOptionsBase<Readonly<ExtractPropTypes<{
83
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
83
84
  size: {
84
85
  type: PropType<EButtonSizes>;
85
86
  default: EButtonSizes;
@@ -1,17 +1,18 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { EButtonSizes, EButtonTypes } from "./_typings";
2
+ import { EButtonSizes, EButtonTypes } from './_typings';
3
+
3
4
  type TProps = {
4
5
  kind?: EButtonTypes;
5
6
  size?: EButtonSizes;
6
7
  fullWidth?: boolean;
7
8
  disabled?: boolean;
8
9
  };
9
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TProps>, {
10
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TProps>, {
10
11
  kind: EButtonTypes;
11
12
  size: EButtonSizes;
12
13
  fullWidth: boolean;
13
14
  disabled: boolean;
14
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TProps>, {
15
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TProps>, {
15
16
  kind: EButtonTypes;
16
17
  size: EButtonSizes;
17
18
  fullWidth: boolean;
@@ -1,12 +1,13 @@
1
1
  import { TIconName } from '../ui-icon';
2
2
  import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
3
- import UiCardCta from "./ui-card-cta.vue";
3
+ import { default as UiCardCta } from './ui-card-cta.vue';
4
+
4
5
  export { UiCardCta };
5
6
  /**
6
7
  * @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
7
8
  */
8
9
  declare const deprecatedDefault: {
9
- new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
10
+ new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
10
11
  invertOrder: {
11
12
  type: PropType<boolean>;
12
13
  };
@@ -22,7 +23,7 @@ declare const deprecatedDefault: {
22
23
  description: {
23
24
  type: PropType<string>;
24
25
  };
25
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
26
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
26
27
  invertOrder: {
27
28
  type: PropType<boolean>;
28
29
  };
@@ -45,7 +46,7 @@ declare const deprecatedDefault: {
45
46
  C: {};
46
47
  M: {};
47
48
  Defaults: {};
48
- }, Readonly<ExtractPropTypes<{
49
+ }, Readonly< ExtractPropTypes<{
49
50
  invertOrder: {
50
51
  type: PropType<boolean>;
51
52
  };
@@ -65,7 +66,7 @@ declare const deprecatedDefault: {
65
66
  __isFragment?: undefined;
66
67
  __isTeleport?: undefined;
67
68
  __isSuspense?: undefined;
68
- } & ComponentOptionsBase<Readonly<ExtractPropTypes<{
69
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
69
70
  invertOrder: {
70
71
  type: PropType<boolean>;
71
72
  };
@@ -1,12 +1,13 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import type { TIconName } from "../ui-icon";
3
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ import { TIconName } from '../ui-icon';
3
+
4
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
5
  invertOrder?: boolean | undefined;
5
6
  disabled?: boolean | undefined;
6
7
  iconName?: TIconName | undefined;
7
8
  title?: string | undefined;
8
9
  description?: string | undefined;
9
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
10
11
  invertOrder?: boolean | undefined;
11
12
  disabled?: boolean | undefined;
12
13
  iconName?: TIconName | undefined;
@@ -1,11 +1,12 @@
1
1
  import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
2
- import UiCardResult from "./ui-card-result.vue";
2
+ import { default as UiCardResult } from './ui-card-result.vue';
3
+
3
4
  export { UiCardResult };
4
5
  /**
5
6
  * @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
6
7
  */
7
8
  declare const deprecatedDefault: {
8
- new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
9
+ new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
9
10
  header: {
10
11
  type: PropType<string>;
11
12
  };
@@ -21,7 +22,7 @@ declare const deprecatedDefault: {
21
22
  exclusiveBottomClickAction: {
22
23
  type: PropType<() => void>;
23
24
  };
24
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
25
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
25
26
  header: {
26
27
  type: PropType<string>;
27
28
  };
@@ -44,7 +45,7 @@ declare const deprecatedDefault: {
44
45
  C: {};
45
46
  M: {};
46
47
  Defaults: {};
47
- }, Readonly<ExtractPropTypes<{
48
+ }, Readonly< ExtractPropTypes<{
48
49
  header: {
49
50
  type: PropType<string>;
50
51
  };
@@ -64,7 +65,7 @@ declare const deprecatedDefault: {
64
65
  __isFragment?: undefined;
65
66
  __isTeleport?: undefined;
66
67
  __isSuspense?: undefined;
67
- } & ComponentOptionsBase<Readonly<ExtractPropTypes<{
68
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
68
69
  header: {
69
70
  type: PropType<string>;
70
71
  };
@@ -1,11 +1,11 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  header?: string | undefined;
4
4
  exclusiveText?: string | undefined;
5
5
  exclusiveTextBottom?: string | undefined;
6
6
  exclusiveClickAction?: (() => void) | undefined;
7
7
  exclusiveBottomClickAction?: (() => void) | undefined;
8
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
9
  header?: string | undefined;
10
10
  exclusiveText?: string | undefined;
11
11
  exclusiveTextBottom?: string | undefined;
@@ -1,22 +1,23 @@
1
1
  import { CreateComponentPublicInstance, ExtractPropTypes, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
2
- import UiCardSimple from "./ui-card-simple.vue";
2
+ import { default as UiCardSimple } from './ui-card-simple.vue';
3
+
3
4
  export { UiCardSimple };
4
5
  /**
5
6
  * @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
6
7
  */
7
8
  declare const deprecatedDefault: {
8
- new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{}>>, {}, true, {}, {}, {
9
+ new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{}>>, {}, true, {}, {}, {
9
10
  P: {};
10
11
  B: {};
11
12
  D: {};
12
13
  C: {};
13
14
  M: {};
14
15
  Defaults: {};
15
- }, Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, {}>;
16
+ }, Readonly< ExtractPropTypes<{}>>, {}, {}, {}, {}, {}>;
16
17
  __isFragment?: undefined;
17
18
  __isTeleport?: undefined;
18
19
  __isSuspense?: undefined;
19
- } & ComponentOptionsBase<Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
20
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
20
21
  $slots: {
21
22
  title?(_: {}): any;
22
23
  default?(_: {}): any;
@@ -1,5 +1,5 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>, {
2
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>, {
3
3
  title?(_: {}): any;
4
4
  default?(_: {}): any;
5
5
  footerSubtitle?(_: {}): any;
@@ -1,12 +1,13 @@
1
1
  import { EJustify } from '../../types';
2
2
  import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
3
- import UiCheckbox from "./ui-checkbox.vue";
3
+ import { default as UiCheckbox } from './ui-checkbox.vue';
4
+
4
5
  export { UiCheckbox };
5
6
  /**
6
7
  * @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
7
8
  */
8
9
  declare const deprecatedDefault: {
9
- new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
10
+ new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
10
11
  modelValue: {
11
12
  type: PropType<boolean | unknown[]>;
12
13
  required: true;
@@ -27,7 +28,7 @@ declare const deprecatedDefault: {
27
28
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
28
29
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
29
30
  "update:modelValue": (...args: any[]) => void;
30
- }, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
31
+ }, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
31
32
  modelValue: {
32
33
  type: PropType<boolean | unknown[]>;
33
34
  required: true;
@@ -53,7 +54,7 @@ declare const deprecatedDefault: {
53
54
  C: {};
54
55
  M: {};
55
56
  Defaults: {};
56
- }, Readonly<ExtractPropTypes<{
57
+ }, Readonly< ExtractPropTypes<{
57
58
  modelValue: {
58
59
  type: PropType<boolean | unknown[]>;
59
60
  required: true;
@@ -76,7 +77,7 @@ declare const deprecatedDefault: {
76
77
  __isFragment?: undefined;
77
78
  __isTeleport?: undefined;
78
79
  __isSuspense?: undefined;
79
- } & ComponentOptionsBase<Readonly<ExtractPropTypes<{
80
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
80
81
  modelValue: {
81
82
  type: PropType<boolean | unknown[]>;
82
83
  required: true;
@@ -1,6 +1,7 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { EJustify } from "../../_types/align";
3
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ import { EJustify } from '../../_types/align';
3
+
4
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
5
  modelValue: boolean | unknown[];
5
6
  justify?: EJustify | undefined;
6
7
  invertOrder?: boolean | undefined;
@@ -8,7 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsT
8
9
  value?: string | undefined;
9
10
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
11
  "update:modelValue": (...args: any[]) => void;
11
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
13
  modelValue: boolean | unknown[];
13
14
  justify?: EJustify | undefined;
14
15
  invertOrder?: boolean | undefined;
@@ -1,14 +1,15 @@
1
1
  import { TIconName } from '../ui-icon/_typings.ts';
2
2
  import { EDropdownKinds } from './_typings.ts';
3
3
  import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
4
- import UiDropdown from "./ui-dropdown.vue";
4
+ import { default as UiDropdown } from './ui-dropdown.vue';
5
+
5
6
  export { UiDropdown };
6
- export { EDropdownKinds } from "./_typings.ts";
7
+ export { EDropdownKinds } from './_typings.ts';
7
8
  /**
8
9
  * @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
9
10
  */
10
11
  declare const deprecatedDefault: {
11
- new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
12
+ new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
12
13
  header: {
13
14
  type: PropType<string>;
14
15
  };
@@ -26,7 +27,7 @@ declare const deprecatedDefault: {
26
27
  active: {
27
28
  type: PropType<boolean>;
28
29
  };
29
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
30
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
30
31
  header: {
31
32
  type: PropType<string>;
32
33
  };
@@ -53,7 +54,7 @@ declare const deprecatedDefault: {
53
54
  C: {};
54
55
  M: {};
55
56
  Defaults: {};
56
- }, Readonly<ExtractPropTypes<{
57
+ }, Readonly< ExtractPropTypes<{
57
58
  header: {
58
59
  type: PropType<string>;
59
60
  };
@@ -77,7 +78,7 @@ declare const deprecatedDefault: {
77
78
  __isFragment?: undefined;
78
79
  __isTeleport?: undefined;
79
80
  __isSuspense?: undefined;
80
- } & ComponentOptionsBase<Readonly<ExtractPropTypes<{
81
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
81
82
  header: {
82
83
  type: PropType<string>;
83
84
  };
@@ -1,7 +1,8 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { type TIconName } from "../ui-icon";
3
- import { EDropdownKinds } from "./_typings";
4
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ import { EDropdownKinds } from './_typings';
3
+ import { TIconName } from '../ui-icon';
4
+
5
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
6
  header?: string | undefined;
6
7
  iconName: TIconName;
7
8
  subText?: string | undefined;
@@ -9,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
9
10
  active?: boolean | undefined;
10
11
  }>, {
11
12
  kind: EDropdownKinds;
12
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
14
  header?: string | undefined;
14
15
  iconName: TIconName;
15
16
  subText?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"ui-dropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-dropdown/ui-dropdown.vue"],"names":[],"mappings":"AA6DA;AAIC,OAAe,EAAE,KAAK,SAAS,EAAS,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;AA6M7C,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"ui-dropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-dropdown/ui-dropdown.vue"],"names":[],"mappings":"AA2DA;AAIC,OAAe,EAAE,KAAK,SAAS,EAAS,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;AA0M7C,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,10 +1,11 @@
1
- import { defineComponent as f, ref as a, onMounted as v, openBlock as h, createElementBlock as g, normalizeClass as r, unref as o, createElementVNode as d, createVNode as p, withCtx as y, createTextVNode as u, toDisplayString as c, normalizeStyle as b, renderSlot as E } from "vue";
2
- import D from "../ui-typography/index.js";
3
- import k from "../ui-icon/index.js";
1
+ import { defineComponent as f, ref as i, onMounted as v, openBlock as h, createElementBlock as b, normalizeClass as t, unref as r, createElementVNode as s, createVNode as l, withCtx as g, createTextVNode as p, toDisplayString as u, normalizeStyle as y, renderSlot as E } from "vue";
2
+ import z from "../ui-typography/index.js";
3
+ import D from "../ui-icon/index.js";
4
4
  import { EDropdownKinds as n } from "./_typings.js";
5
- import { ETypographySizes as T, ETextWeight as w } from "../ui-typography/_typings.js";
6
- import { ESize as z } from "../../_types/sizing.js";
7
- const U = /* @__PURE__ */ f({
5
+ import { debounce as k } from "../../_utils/debounce.js";
6
+ import { ETypographySizes as w, ETextWeight as S } from "../ui-typography/_typings.js";
7
+ import { ESize as T } from "../../_types/sizing.js";
8
+ const V = /* @__PURE__ */ f({
8
9
  __name: "ui-dropdown",
9
10
  props: {
10
11
  header: {},
@@ -13,62 +14,63 @@ const U = /* @__PURE__ */ f({
13
14
  kind: { default: n.DEFAULT },
14
15
  active: { type: Boolean }
15
16
  },
16
- setup(m) {
17
- const i = a(null), l = a(0), t = a(m.active);
17
+ setup(c) {
18
+ const o = i(c.active), a = i(), d = i("0");
19
+ function m() {
20
+ o.value = !o.value;
21
+ }
18
22
  return v(() => {
19
- if (i.value) {
20
- const { height: e } = i.value.getBoundingClientRect();
21
- l.value = e;
22
- }
23
- }), (e, s) => (h(), g("div", {
24
- class: r(["bg-white", {
25
- "rounded-lg border border-secondary-alt-300": e.kind === o(n).DEFAULT
23
+ a.value && new ResizeObserver(k(() => {
24
+ d.value = getComputedStyle(a.value).height;
25
+ }, 50)).observe(a.value);
26
+ }), (e, C) => (h(), b("div", {
27
+ class: t(["h-auto bg-white", {
28
+ "rounded-lg border border-secondary-alt-300": e.kind === r(n).DEFAULT
26
29
  }])
27
30
  }, [
28
- d("div", {
29
- class: r(["flex items-center justify-between px-md py-sm", {
30
- "rounded-lg border border-secondary": e.kind === o(n).SECONDARY
31
+ s("div", {
32
+ class: t(["flex items-center justify-between px-md py-sm", {
33
+ "rounded-lg border border-secondary": e.kind === r(n).SECONDARY
31
34
  }]),
32
- onClick: s[0] || (s[0] = (C) => t.value = !t.value)
35
+ onClick: m
33
36
  }, [
34
- p(o(D), {
37
+ l(r(z), {
35
38
  "line-height": "",
36
- size: o(T).LG,
37
- weight: o(w).SEMI_BOLD
39
+ size: r(w).LG,
40
+ weight: r(S).SEMI_BOLD
38
41
  }, {
39
- default: y(() => [
40
- u(c(e.header), 1)
42
+ default: g(() => [
43
+ p(u(e.header), 1)
41
44
  ]),
42
45
  _: 1
43
46
  }, 8, ["size", "weight"]),
44
- p(o(k), {
45
- class: r(["item-icon duration-200", {
46
- "rotate-180": t.value,
47
- "rotate-0": !t.value
47
+ l(r(D), {
48
+ class: t(["item-icon duration-200", {
49
+ "rotate-180": o.value,
50
+ "rotate-0": !o.value
48
51
  }]),
49
52
  "icon-name": e.iconName,
50
- size: o(z).SM
53
+ size: r(T).SM
51
54
  }, null, 8, ["class", "icon-name", "size"])
52
55
  ], 2),
53
- d("div", {
54
- class: r(["overflow-hidden duration-300", {
55
- "border border-transparent border-t-secondary-alt-300": e.kind === o(n).DEFAULT,
56
- "!h-0 opacity-0": !t.value,
57
- "h-auto opacity-100": t.value
56
+ s("div", {
57
+ class: t(["overflow-hidden duration-300 ease-in-out", {
58
+ "border border-transparent border-t-secondary-alt-300": e.kind === r(n).DEFAULT,
59
+ "!h-0 !border-transparent": !o.value
58
60
  }]),
59
- style: b({
60
- height: l.value + "px"
61
+ style: y({
62
+ height: d.value
61
63
  })
62
64
  }, [
63
- d("div", {
64
- ref_key: "contentRef",
65
- ref: i,
66
- class: r(["box-border pt-sm", {
67
- "p-sm": e.kind === o(n).DEFAULT
65
+ s("div", {
66
+ ref_key: "contentWrapper",
67
+ ref: a,
68
+ class: t(["box-border pt-sm", {
69
+ "p-sm": e.kind === r(n).DEFAULT
68
70
  }])
69
71
  }, [
70
72
  E(e.$slots, "default", {}, () => [
71
- u(c(e.subText), 1)
73
+ p(u(e.subText), 1)
72
74
  ])
73
75
  ], 2)
74
76
  ], 6)
@@ -76,6 +78,6 @@ const U = /* @__PURE__ */ f({
76
78
  }
77
79
  });
78
80
  export {
79
- U as default
81
+ V as default
80
82
  };
81
83
  //# sourceMappingURL=ui-dropdown.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-dropdown.vue.js","sources":["../../../src/components/ui-dropdown/ui-dropdown.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"bg-white\"\n\t\t:class=\"{\n\t\t\t'rounded-lg border border-secondary-alt-300': kind === EDropdownKinds.DEFAULT\n\t\t}\"\n\t>\n\t\t<div\n\t\t\tclass=\"flex items-center justify-between px-md py-sm\"\n\t\t\t:class=\"{\n\t\t\t\t'rounded-lg border border-secondary': kind === EDropdownKinds.SECONDARY\n\t\t\t}\"\n\t\t\t@click=\"isOpen = !isOpen\"\n\t\t>\n\t\t\t<ui-typography\n\t\t\t\tline-height\n\t\t\t\t:size=\"ETypographySizes.LG\"\n\t\t\t\t:weight=\"ETextWeight.SEMI_BOLD \"\n\t\t\t>\n\t\t\t\t{{ header }}\n\t\t\t</ui-typography>\n\n\t\t\t<ui-icon\n\t\t\t\tclass=\"item-icon duration-200\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'rotate-180': isOpen,\n\t\t\t\t\t'rotate-0': !isOpen\n\t\t\t\t}\"\n\t\t\t\t:icon-name=\"iconName\"\n\t\t\t\t:size=\"ESize.SM\"\n\t\t\t/>\n\t\t</div>\n\n\t\t<div\n\t\t\tclass=\"overflow-hidden duration-300\"\n\t\t\t:style=\"{\n\t\t\t\theight: accordionHeight + 'px'\n\t\t\t}\"\n\t\t\t:class=\"{\n\t\t\t\t'border border-transparent border-t-secondary-alt-300':\n\t\t\t\t\tkind === EDropdownKinds.DEFAULT,\n\t\t\t\t'!h-0 opacity-0': !isOpen,\n\t\t\t\t'h-auto opacity-100': isOpen\n\n\t\t\t}\"\n\t\t>\n\t\t\t<div\n\t\t\t\tref=\"contentRef\"\n\t\t\t\tclass=\"box-border pt-sm\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'p-sm': kind === EDropdownKinds.DEFAULT\n\n\t\t\t\t}\"\n\t\t\t>\n\t\t\t\t<slot>\n\t\t\t\t\t{{ subText }}\n\t\t\t\t</slot>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { onMounted, ref } from \"vue\";\n\timport UiTypography, { ETypographySizes, ETextWeight } from \"../ui-typography\";\n\timport UiIcon, { type TIconName, ESize } from \"../ui-icon\";\n\timport { EDropdownKinds } from \"./_typings\";\n\n\tconst contentRef = ref<null | HTMLDivElement>(null);\n\tconst accordionHeight = ref(0);\n\n\tconst props = withDefaults(defineProps<{\n\t\theader?: string;\n\t\ticonName: TIconName;\n\t\tsubText?: string;\n\t\tkind?: EDropdownKinds;\n\t\tactive?: boolean;\n\n\t}>(), {\n\t\tkind: EDropdownKinds.DEFAULT,\n\t});\n\n\tconst isOpen = ref(props.active);\n\n\tonMounted(()=>{\n\t\tif (contentRef.value) {\n\t\t\tconst { height } = contentRef.value.getBoundingClientRect();\n\t\t\taccordionHeight.value = height;\n\t\t}\n\t});\n\n</script>\n"],"names":["contentRef","ref","accordionHeight","isOpen","__props","onMounted","height"],"mappings":";;;;;;;;;;;;;;;;AAoEO,UAAAA,IAAaC,EAA2B,IAAI,GAC5CC,IAAkBD,EAAI,CAAC,GAavBE,IAASF,EAXDG,EAWW,MAAM;AAE/B,WAAAC,EAAU,MAAI;AACb,UAAIL,EAAW,OAAO;AACrB,cAAM,EAAE,QAAAM,EAAW,IAAAN,EAAW,MAAM,sBAAsB;AAC1D,QAAAE,EAAgB,QAAQI;AAAA,MACzB;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ui-dropdown.vue.js","sources":["../../../src/components/ui-dropdown/ui-dropdown.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"h-auto bg-white\"\n\t\t:class=\"{\n\t\t\t'rounded-lg border border-secondary-alt-300': kind === EDropdownKinds.DEFAULT\n\t\t}\"\n\t>\n\t\t<div\n\t\t\tclass=\"flex items-center justify-between px-md py-sm\"\n\t\t\t:class=\"{\n\t\t\t\t'rounded-lg border border-secondary': kind === EDropdownKinds.SECONDARY\n\t\t\t}\"\n\t\t\t@click=\"toggleAccordion\"\n\t\t>\n\t\t\t<ui-typography\n\t\t\t\tline-height\n\t\t\t\t:size=\"ETypographySizes.LG\"\n\t\t\t\t:weight=\"ETextWeight.SEMI_BOLD \"\n\t\t\t>\n\t\t\t\t{{ header }}\n\t\t\t</ui-typography>\n\n\t\t\t<ui-icon\n\t\t\t\tclass=\"item-icon duration-200\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'rotate-180': isOpen,\n\t\t\t\t\t'rotate-0': !isOpen\n\t\t\t\t}\"\n\t\t\t\t:icon-name=\"iconName\"\n\t\t\t\t:size=\"ESize.SM\"\n\t\t\t/>\n\t\t</div>\n\n\t\t<div\n\t\t\tclass=\"overflow-hidden duration-300 ease-in-out\"\n\t\t\t:style=\"{\n\t\t\t\theight\n\t\t\t}\"\n\t\t\t:class=\"{\n\t\t\t\t'border border-transparent border-t-secondary-alt-300':\n\t\t\t\t\tkind === EDropdownKinds.DEFAULT,\n\t\t\t\t'!h-0 !border-transparent': !isOpen\n\t\t\t}\"\n\t\t>\n\t\t\t<div\n\t\t\t\tref=\"contentWrapper\"\n\n\t\t\t\tclass=\"box-border pt-sm\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'p-sm': kind === EDropdownKinds.DEFAULT\n\t\t\t\t}\"\n\t\t\t>\n\t\t\t\t<slot>\n\t\t\t\t\t{{ subText }}\n\t\t\t\t</slot>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { onMounted, ref } from \"vue\";\n\timport UiTypography, { ETypographySizes, ETextWeight } from \"../ui-typography\";\n\timport UiIcon, { type TIconName, ESize } from \"../ui-icon\";\n\timport { EDropdownKinds } from \"./_typings\";\n\timport { debounce } from \"../../_utils/debounce\";\n\n\tconst props = withDefaults(defineProps<{\n\t\theader?: string;\n\t\ticonName: TIconName;\n\t\tsubText?: string;\n\t\tkind?: EDropdownKinds;\n\t\tactive?: boolean;\n\t}>(), {\n\t\tkind: EDropdownKinds.DEFAULT,\n\t});\n\n\tconst isOpen = ref(props.active);\n\tconst contentWrapper = ref<HTMLElement>();\n\tconst height = ref(\"0\");\n\n\tfunction toggleAccordion() {\n\t\tisOpen.value = !isOpen.value;\n\t}\n\n\tonMounted(()=>{\n\t\tif (contentWrapper.value) {\n\t\t\tconst resizeObserver = new ResizeObserver(debounce(() => {\n\t\t\t\theight.value = getComputedStyle(contentWrapper.value as HTMLElement).height;\n\t\t\t}, 50));\n\n\t\t\tresizeObserver.observe(contentWrapper.value);\n\t\t}\n\t});\n\n</script>\n"],"names":["isOpen","ref","__props","contentWrapper","height","toggleAccordion","onMounted","debounce"],"mappings":";;;;;;;;;;;;;;;;;AA6EO,UAAAA,IAASC,EAVDC,EAUW,MAAM,GACzBC,IAAiBF,KACjBG,IAASH,EAAI,GAAG;AAEtB,aAASI,IAAkB;AACnB,MAAAL,EAAA,QAAQ,CAACA,EAAO;AAAA,IACxB;AAEA,WAAAM,EAAU,MAAI;AACb,MAAIH,EAAe,SACK,IAAI,eAAeI,EAAS,MAAM;AACxD,QAAAH,EAAO,QAAQ,iBAAiBD,EAAe,KAAoB,EAAE;AAAA,MAAA,GACnE,EAAE,CAAC,EAES,QAAQA,EAAe,KAAK;AAAA,IAC5C,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}