@scalar/components 0.12.76 → 0.13.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 (164) hide show
  1. package/dist/components/ScalarButton/ScalarButton.stories.d.ts +3 -0
  2. package/dist/components/ScalarButton/ScalarButton.stories.d.ts.map +1 -1
  3. package/dist/components/ScalarButton/ScalarButton.vue.d.ts.map +1 -1
  4. package/dist/components/ScalarButton/ScalarButton.vue.js +29 -32
  5. package/dist/components/ScalarCombobox/ScalarCombobox.stories.d.ts +30 -5
  6. package/dist/components/ScalarCombobox/ScalarCombobox.stories.d.ts.map +1 -1
  7. package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts +24 -7
  8. package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts.map +1 -1
  9. package/dist/components/ScalarCombobox/ScalarCombobox.vue.js +34 -18
  10. package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts +16 -82
  11. package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts.map +1 -1
  12. package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.js +23 -22
  13. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts +7 -2
  14. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts.map +1 -1
  15. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.js +23 -28
  16. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +25 -1
  17. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
  18. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +58 -56
  19. package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts +5 -11
  20. package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts.map +1 -1
  21. package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.js +43 -43
  22. package/dist/components/ScalarCombobox/types.d.ts +4 -2
  23. package/dist/components/ScalarCombobox/types.d.ts.map +1 -1
  24. package/dist/components/ScalarCombobox/types.js +8 -3
  25. package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts +73 -105
  26. package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts.map +1 -1
  27. package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts +40 -22
  28. package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts.map +1 -1
  29. package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +32 -42
  30. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts +35 -0
  31. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts.map +1 -0
  32. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.js +7 -0
  33. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue2.js +37 -0
  34. package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts +17 -1
  35. package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts.map +1 -1
  36. package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.js +7 -6
  37. package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue2.js +4 -0
  38. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts +18 -15
  39. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts.map +1 -1
  40. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.js +2 -2
  41. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue2.js +19 -29
  42. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts +32 -0
  43. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts.map +1 -0
  44. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.js +28 -0
  45. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue2.js +4 -0
  46. package/dist/components/ScalarDropdown/index.d.ts +2 -0
  47. package/dist/components/ScalarDropdown/index.d.ts.map +1 -1
  48. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.spec.d.ts +2 -0
  49. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.spec.d.ts.map +1 -0
  50. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.stories.d.ts +6 -0
  51. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.stories.d.ts.map +1 -0
  52. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.d.ts +18 -0
  53. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.d.ts.map +1 -0
  54. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.js +23 -0
  55. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue2.js +4 -0
  56. package/dist/components/ScalarErrorBoundary/index.d.ts +2 -0
  57. package/dist/components/ScalarErrorBoundary/index.d.ts.map +1 -0
  58. package/dist/components/ScalarFloating/ScalarFloating.stories.d.ts +4 -0
  59. package/dist/components/ScalarFloating/ScalarFloating.stories.d.ts.map +1 -1
  60. package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts +5 -4
  61. package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts.map +1 -1
  62. package/dist/components/ScalarFloating/ScalarFloating.vue.js +32 -29
  63. package/dist/components/ScalarFloating/index.d.ts +1 -1
  64. package/dist/components/ScalarFloating/index.d.ts.map +1 -1
  65. package/dist/components/ScalarFloating/types.d.ts +15 -7
  66. package/dist/components/ScalarFloating/types.d.ts.map +1 -1
  67. package/dist/components/ScalarFloating/useResizeWithTarget.d.ts +3 -0
  68. package/dist/components/ScalarFloating/useResizeWithTarget.d.ts.map +1 -1
  69. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +1 -0
  70. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts.map +1 -1
  71. package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts.map +1 -1
  72. package/dist/components/ScalarIcon/ScalarIcon.vue.js +2 -2
  73. package/dist/components/ScalarIcon/ScalarIcon.vue2.js +18 -15
  74. package/dist/components/ScalarIcon/icons/Hide.svg.js +10 -9
  75. package/dist/components/ScalarIcon/icons/Show.svg.js +7 -8
  76. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +10 -7
  77. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts.map +1 -1
  78. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +1 -1
  79. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts.map +1 -1
  80. package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +19 -21
  81. package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts +52 -25
  82. package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts.map +1 -1
  83. package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts +41 -22
  84. package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts.map +1 -1
  85. package/dist/components/ScalarListbox/ScalarListbox.vue.js +46 -85
  86. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts +8 -0
  87. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts.map +1 -0
  88. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.js +26 -0
  89. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue2.js +4 -0
  90. package/dist/components/ScalarListbox/ScalarListboxItem.vue.d.ts +8 -0
  91. package/dist/components/ScalarListbox/ScalarListboxItem.vue.d.ts.map +1 -0
  92. package/dist/components/ScalarListbox/ScalarListboxItem.vue.js +53 -0
  93. package/dist/components/ScalarListbox/ScalarListboxItem.vue2.js +4 -0
  94. package/dist/components/ScalarListbox/index.d.ts +3 -1
  95. package/dist/components/ScalarListbox/index.d.ts.map +1 -1
  96. package/dist/components/ScalarListbox/types.d.ts +1 -0
  97. package/dist/components/ScalarListbox/types.d.ts.map +1 -1
  98. package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts +28 -6
  99. package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts.map +1 -1
  100. package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts +2 -2
  101. package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts.map +1 -1
  102. package/dist/components/ScalarLoading/ScalarLoading.vue.js +3 -3
  103. package/dist/components/ScalarLoading/ScalarLoading.vue2.js +29 -30
  104. package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts +133 -108
  105. package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts.map +1 -1
  106. package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts +34 -18
  107. package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts.map +1 -1
  108. package/dist/components/ScalarMenu/ScalarMenu.vue.js +22 -20
  109. package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts +2 -2
  110. package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts.map +1 -1
  111. package/dist/components/ScalarMenu/ScalarMenuButton.vue.js +25 -17
  112. package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts.map +1 -1
  113. package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +17 -10
  114. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts +2 -2
  115. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
  116. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.js +22 -16
  117. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts +1 -1
  118. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts.map +1 -1
  119. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.js +25 -22
  120. package/dist/components/ScalarMenu/ScalarMenuResources.vue.d.ts +1 -1
  121. package/dist/components/ScalarMenu/ScalarMenuResources.vue.js +3 -3
  122. package/dist/components/ScalarMenu/ScalarMenuSection.vue.d.ts +2 -2
  123. package/dist/components/ScalarMenu/ScalarMenuSection.vue.d.ts.map +1 -1
  124. package/dist/components/ScalarMenu/ScalarMenuSection.vue.js +18 -15
  125. package/dist/components/ScalarMenu/ScalarMenuSection.vue2.js +4 -0
  126. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts +1 -1
  127. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts.map +1 -1
  128. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +18 -16
  129. package/dist/components/ScalarModal/ScalarModal.stories.d.ts +3 -3
  130. package/dist/components/ScalarModal/ScalarModal.vue.d.ts +2 -2
  131. package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts +20 -116
  132. package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts.map +1 -1
  133. package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts +4 -11
  134. package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts.map +1 -1
  135. package/dist/components/ScalarPopover/ScalarPopover.vue.js +23 -24
  136. package/dist/components/ScalarPopover/index.d.ts +1 -0
  137. package/dist/components/ScalarPopover/index.d.ts.map +1 -1
  138. package/dist/components/ScalarPopover/types.d.ts +15 -0
  139. package/dist/components/ScalarPopover/types.d.ts.map +1 -0
  140. package/dist/components/ScalarSearchInput/ScalarSearchInput.stories.d.ts +6 -1
  141. package/dist/components/ScalarSearchInput/ScalarSearchInput.stories.d.ts.map +1 -1
  142. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +3 -3
  143. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue2.js +10 -10
  144. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
  145. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +31 -35
  146. package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts.map +1 -1
  147. package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.js +12 -18
  148. package/dist/components/ScalarToggle/ScalarToggle.stories.d.ts +26 -39
  149. package/dist/components/ScalarToggle/ScalarToggle.stories.d.ts.map +1 -1
  150. package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts +3 -5
  151. package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts.map +1 -1
  152. package/dist/components/ScalarToggle/ScalarToggle.vue.js +24 -35
  153. package/dist/hooks/useBindCx.d.ts +51 -0
  154. package/dist/hooks/useBindCx.d.ts.map +1 -0
  155. package/dist/hooks/useBindCx.js +34 -0
  156. package/dist/hooks/useBindCx.stories.d.ts +430 -0
  157. package/dist/hooks/useBindCx.stories.d.ts.map +1 -0
  158. package/dist/hooks/useBindCx.test.d.ts +2 -0
  159. package/dist/hooks/useBindCx.test.d.ts.map +1 -0
  160. package/dist/index.d.ts +3 -1
  161. package/dist/index.d.ts.map +1 -1
  162. package/dist/index.js +80 -68
  163. package/dist/style.css +1 -1
  164. package/package.json +3 -3
@@ -0,0 +1,53 @@
1
+ import { defineComponent as l, openBlock as s, createBlock as p, unref as t, withCtx as c, createElementVNode as a, normalizeClass as n, createVNode as m, normalizeStyle as d, toDisplayString as b } from "vue";
2
+ import { ListboxOption as u } from "@headlessui/vue";
3
+ import { cva as f, cx as y } from "../../cva.js";
4
+ import v from "./ScalarListboxCheckbox.vue.js";
5
+ const C = /* @__PURE__ */ l({
6
+ __name: "ScalarListboxItem",
7
+ props: {
8
+ option: {},
9
+ style: {}
10
+ },
11
+ setup(g) {
12
+ const r = f({
13
+ base: [
14
+ // Layout
15
+ "group/item",
16
+ "flex min-w-0 items-center gap-1.5 rounded px-2 py-1.5 text-left",
17
+ "first-of-type:mt-0.75 last-of-type:mb-0.75",
18
+ // Text / background style
19
+ "truncate bg-transparent text-c-1",
20
+ // Interaction
21
+ "cursor-pointer hover:bg-b-2"
22
+ ],
23
+ variants: {
24
+ selected: { true: "text-c-1" },
25
+ active: { true: "bg-b-2" },
26
+ disabled: { true: "pointer-events-none opacity-50" }
27
+ }
28
+ });
29
+ return (e, x) => (s(), p(t(u), {
30
+ as: "template",
31
+ disabled: e.option.disabled,
32
+ value: e.option
33
+ }, {
34
+ default: c(({ active: i, selected: o }) => [
35
+ a("li", {
36
+ class: n(t(y)(t(r)({ active: i, selected: o, disabled: e.option.disabled })))
37
+ }, [
38
+ m(v, {
39
+ selected: o,
40
+ style: d(e.style)
41
+ }, null, 8, ["selected", "style"]),
42
+ a("span", {
43
+ class: n(["inline-block min-w-0 flex-1 truncate", e.option.color ? e.option.color : "text-c-1"])
44
+ }, b(e.option.label), 3)
45
+ ], 2)
46
+ ]),
47
+ _: 1
48
+ }, 8, ["disabled", "value"]));
49
+ }
50
+ });
51
+ export {
52
+ C as default
53
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ScalarListboxItem.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,3 +1,5 @@
1
1
  export { default as ScalarListbox } from './ScalarListbox.vue.js';
2
- export type { Option as ScalarListboxOption } from './types';
2
+ export { default as ScalarListboxItem } from './ScalarListboxItem.vue.js';
3
+ export { default as ScalarListboxCheckbox } from './ScalarListboxCheckbox.vue.js';
4
+ export type { Option as ScalarListboxOption, OptionStyle as ScalarListboxOptionStyle, } from './types';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAE9D,YAAY,EAAE,MAAM,IAAI,mBAAmB,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAE9E,YAAY,EACV,MAAM,IAAI,mBAAmB,EAC7B,WAAW,IAAI,wBAAwB,GACxC,MAAM,SAAS,CAAA"}
@@ -4,4 +4,5 @@ export type Option = {
4
4
  disabled?: boolean;
5
5
  [x: string]: any;
6
6
  };
7
+ export type OptionStyle = 'radio' | 'checkbox';
7
8
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CACjB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,UAAU,CAAA"}
@@ -4,15 +4,29 @@ import type { StoryObj } from '@storybook/vue3';
4
4
  */
5
5
  declare const meta: {
6
6
  component: import("vue").DefineComponent<{
7
- loadingState: import("./ScalarLoading.vue.js").LoadingState;
7
+ loadingState?: import("./ScalarLoading.vue.js").LoadingState;
8
8
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
9
9
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
10
- loadingState: import("./ScalarLoading.vue.js").LoadingState;
10
+ loadingState?: import("./ScalarLoading.vue.js").LoadingState;
11
11
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
12
12
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  tags: string[];
14
- argTypes: {};
15
- render: () => {
14
+ argTypes: {
15
+ class: {
16
+ control: "text";
17
+ };
18
+ size: {
19
+ control: "select";
20
+ options: string[];
21
+ };
22
+ };
23
+ render: (args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
24
+ loadingState?: import("./ScalarLoading.vue.js").LoadingState;
25
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
26
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
27
+ loadingState?: import("./ScalarLoading.vue.js").LoadingState;
28
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
29
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>) => {
16
30
  components: {
17
31
  ScalarButton: {
18
32
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
@@ -70,14 +84,21 @@ declare const meta: {
70
84
  };
71
85
  });
72
86
  ScalarLoading: import("vue").DefineComponent<{
73
- loadingState: import("./ScalarLoading.vue.js").LoadingState;
87
+ loadingState?: import("./ScalarLoading.vue.js").LoadingState;
74
88
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
75
89
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
76
- loadingState: import("./ScalarLoading.vue.js").LoadingState;
90
+ loadingState?: import("./ScalarLoading.vue.js").LoadingState;
77
91
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
78
92
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
79
93
  };
80
94
  setup(this: void): {
95
+ args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
96
+ loadingState?: import("./ScalarLoading.vue.js").LoadingState;
97
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
98
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
99
+ loadingState?: import("./ScalarLoading.vue.js").LoadingState;
100
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
101
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
81
102
  loadingState: {
82
103
  isValid: boolean;
83
104
  isInvalid: boolean;
@@ -95,4 +116,5 @@ declare const meta: {
95
116
  export default meta;
96
117
  type Story = StoryObj<typeof meta>;
97
118
  export declare const Base: Story;
119
+ export declare const CustomClasses: Story;
98
120
  //# sourceMappingURL=ScalarLoading.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarLoading.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/ScalarLoading.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD;;GAEG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAiB,CAAA"}
1
+ {"version":3,"file":"ScalarLoading.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/ScalarLoading.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD;;GAEG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAgC,CAAA;AAEnD,eAAO,MAAM,aAAa,EAAE,KAA8C,CAAA"}
@@ -15,10 +15,10 @@ export declare function useLoadingState(): {
15
15
  clear: (time?: number) => Promise<unknown>;
16
16
  };
17
17
  declare const _default: import("vue").DefineComponent<{
18
- loadingState: LoadingState;
18
+ loadingState?: LoadingState;
19
19
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
20
20
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
21
- loadingState: LoadingState;
21
+ loadingState?: LoadingState;
22
22
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
23
23
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarLoading.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/ScalarLoading.vue"],"names":[],"mappings":"AA2OA,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAE7D;;;;GAIG;AACH,wBAAgB,eAAe;;;;;;sCAWE,OAAO;wCAWJ,OAAO;;EAuB1C;;kBAOe,YAAY;;;kBAAZ,YAAY;;;AAL5B,wBAsIK"}
1
+ {"version":3,"file":"ScalarLoading.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/ScalarLoading.vue"],"names":[],"mappings":"AAgPA,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAE7D;;;;GAIG;AACH,wBAAgB,eAAe;;;;;;sCAWE,OAAO;wCAWJ,OAAO;;EAuB1C;;mBAOgB,YAAY;;;mBAAZ,YAAY;;;AAL7B,wBAyIK"}
@@ -1,9 +1,9 @@
1
1
  import o from "./ScalarLoading.vue2.js";
2
- import { useLoadingState as i } from "./ScalarLoading.vue2.js";
2
+ import { useLoadingState as d } from "./ScalarLoading.vue2.js";
3
3
  /* empty css */
4
4
  import a from "../../_virtual/_plugin-vue_export-helper.js";
5
- const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-5a129980"]]);
5
+ const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-ca661d68"]]);
6
6
  export {
7
7
  m as default,
8
- i as useLoadingState
8
+ d as useLoadingState
9
9
  };
@@ -1,11 +1,12 @@
1
- import { defineComponent as d, openBlock as e, createElementBlock as l, normalizeClass as n, unref as o, createStaticVNode as h, createElementVNode as v, createCommentVNode as r, reactive as g } from "vue";
2
- import { cva as m, cx as p } from "../../cva.js";
3
- const u = {
1
+ import { defineComponent as m, openBlock as t, createElementBlock as l, normalizeProps as c, mergeProps as h, unref as n, normalizeClass as o, createStaticVNode as p, createElementVNode as g, createCommentVNode as d, reactive as v } from "vue";
2
+ import { cva as u } from "../../cva.js";
3
+ import { useBindCx as f } from "../../hooks/useBindCx.js";
4
+ const z = {
4
5
  key: 0,
5
6
  class: "circular-loader"
6
7
  };
7
- function w() {
8
- return g({
8
+ function S() {
9
+ return v({
9
10
  isValid: !1,
10
11
  isInvalid: !1,
11
12
  isLoading: !1,
@@ -15,37 +16,38 @@ function w() {
15
16
  stopLoading() {
16
17
  this.isLoading = !1;
17
18
  },
18
- validate(i = 800, s) {
19
+ validate(e = 800, s) {
19
20
  this.isInvalid = !1, this.isValid = !0;
20
- const a = s ? i - 300 : i;
21
+ const i = s ? e - 300 : e;
21
22
  return new Promise(
22
- (t) => setTimeout(s ? () => this.clear().then(() => t(!0)) : () => t(!0), a)
23
+ (a) => setTimeout(s ? () => this.clear().then(() => a(!0)) : () => a(!0), i)
23
24
  );
24
25
  },
25
- invalidate(i = 1100, s) {
26
+ invalidate(e = 1100, s) {
26
27
  this.isValid = !1, this.isInvalid = !0;
27
- const a = s ? i - 300 : i;
28
+ const i = s ? e - 300 : e;
28
29
  return new Promise(
29
- (t) => setTimeout(s ? () => this.clear().then(() => t(!0)) : () => t(!0), a)
30
+ (a) => setTimeout(s ? () => this.clear().then(() => a(!0)) : () => a(!0), i)
30
31
  );
31
32
  },
32
- clear(i = 300) {
33
+ clear(e = 300) {
33
34
  return this.isValid = !1, this.isInvalid = !1, this.isLoading = !1, new Promise((s) => {
34
35
  setTimeout(() => {
35
36
  s(!0);
36
- }, i);
37
+ }, e);
37
38
  });
38
39
  }
39
40
  });
40
41
  }
41
- const z = /* @__PURE__ */ d({
42
+ const V = /* @__PURE__ */ m({
43
+ inheritAttrs: !1,
42
44
  __name: "ScalarLoading",
43
45
  props: {
44
46
  loadingState: {},
45
47
  size: {}
46
48
  },
47
- setup(i) {
48
- const s = m({
49
+ setup(e) {
50
+ const { cx: s } = f(), i = u({
49
51
  variants: {
50
52
  size: {
51
53
  xs: "size-3",
@@ -62,12 +64,9 @@ const z = /* @__PURE__ */ d({
62
64
  size: "full"
63
65
  }
64
66
  });
65
- return (a, t) => a.loadingState ? (e(), l("div", {
66
- key: 0,
67
- class: n(o(p)("loader-wrapper", o(s)({ size: a.size })))
68
- }, [
69
- (e(), l("svg", {
70
- class: n(["svg-loader", {
67
+ return (a, r) => a.loadingState ? (t(), l("div", c(h({ key: 0 }, n(s)("loader-wrapper", n(i)({ size: a.size })))), [
68
+ (t(), l("svg", {
69
+ class: o(["svg-loader", {
71
70
  "icon-is-valid": a.loadingState.isValid,
72
71
  "icon-is-invalid": a.loadingState.isInvalid
73
72
  }]),
@@ -75,10 +74,10 @@ const z = /* @__PURE__ */ d({
75
74
  xmlns: "http://www.w3.org/2000/svg",
76
75
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
77
76
  }, [
78
- t[0] || (t[0] = h('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-5a129980></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-5a129980></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-5a129980></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-5a129980></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-5a129980></path>', 5)),
79
- a.loadingState.isLoading ? (e(), l("g", u, [
80
- v("circle", {
81
- class: n(["loader-path", {
77
+ r[0] || (r[0] = p('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-ca661d68></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-ca661d68></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-ca661d68></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-ca661d68></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-ca661d68></path>', 5)),
78
+ a.loadingState.isLoading ? (t(), l("g", z, [
79
+ g("circle", {
80
+ class: o(["loader-path", {
82
81
  "loader-path-off": a.loadingState.isValid || a.loadingState.isInvalid
83
82
  }]),
84
83
  cx: "50",
@@ -87,12 +86,12 @@ const z = /* @__PURE__ */ d({
87
86
  r: "20",
88
87
  "stroke-width": "2"
89
88
  }, null, 2)
90
- ])) : r("", !0)
89
+ ])) : d("", !0)
91
90
  ], 2))
92
- ], 2)) : r("", !0);
91
+ ], 16)) : d("", !0);
93
92
  }
94
93
  });
95
94
  export {
96
- z as default,
97
- w as useLoadingState
95
+ V as default,
96
+ S as useLoadingState
98
97
  };
@@ -1,164 +1,188 @@
1
1
  import type { StoryObj } from '@storybook/vue3';
2
2
  declare const meta: {
3
3
  component: {
4
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
5
- placement?: import("@floating-ui/vue").Placement | undefined;
6
- teleport?: (boolean | string) | undefined;
7
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
4
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
8
5
  P: {};
9
6
  B: {};
10
7
  D: {};
11
8
  C: {};
12
9
  M: {};
13
10
  Defaults: {};
14
- }, Readonly<{
15
- placement?: import("@floating-ui/vue").Placement | undefined;
16
- teleport?: (boolean | string) | undefined;
17
- }> & Readonly<{}>, {}, {}, {}, {}, {}>;
11
+ }, Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, {}>;
18
12
  __isFragment?: never;
19
13
  __isTeleport?: never;
20
14
  __isSuspense?: never;
21
- } & import("vue").ComponentOptionsBase<Readonly<{
22
- placement?: import("@floating-ui/vue").Placement | undefined;
23
- teleport?: (boolean | string) | undefined;
24
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
25
- $slots: {
26
- button?(_: {
27
- open: any;
28
- }): any;
29
- logo?(_: {}): any;
30
- label?(_: {}): any;
31
- products?(_: {
32
- close: () => any;
33
- }): any;
34
- profile?(_: {
35
- close: () => any;
36
- }): any;
37
- sections?(_: {
38
- close: () => any;
39
- }): any;
15
+ } & import("vue").ComponentOptionsBase<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
16
+ $slots: Readonly<{
17
+ button?: (p: {
18
+ open: boolean;
19
+ }) => any;
20
+ logo?: () => any;
21
+ label?: () => any;
22
+ products?: (p: {
23
+ close: () => void;
24
+ }) => any;
25
+ profile?: (p: {
26
+ close: () => void;
27
+ }) => any;
28
+ sections?: (p: {
29
+ close: () => void;
30
+ }) => any;
31
+ }> & {
32
+ button?: (p: {
33
+ open: boolean;
34
+ }) => any;
35
+ logo?: () => any;
36
+ label?: () => any;
37
+ products?: (p: {
38
+ close: () => void;
39
+ }) => any;
40
+ profile?: (p: {
41
+ close: () => void;
42
+ }) => any;
43
+ sections?: (p: {
44
+ close: () => void;
45
+ }) => any;
40
46
  };
41
47
  });
42
48
  tags: string[];
43
49
  argTypes: {};
44
50
  render: (args: import("@storybook/vue3").ComponentPropsAndSlots<{
45
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
46
- placement?: import("@floating-ui/vue").Placement | undefined;
47
- teleport?: (boolean | string) | undefined;
48
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
51
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
49
52
  P: {};
50
53
  B: {};
51
54
  D: {};
52
55
  C: {};
53
56
  M: {};
54
57
  Defaults: {};
55
- }, Readonly<{
56
- placement?: import("@floating-ui/vue").Placement | undefined;
57
- teleport?: (boolean | string) | undefined;
58
- }> & Readonly<{}>, {}, {}, {}, {}, {}>;
58
+ }, Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, {}>;
59
59
  __isFragment?: never;
60
60
  __isTeleport?: never;
61
61
  __isSuspense?: never;
62
- } & import("vue").ComponentOptionsBase<Readonly<{
63
- placement?: import("@floating-ui/vue").Placement | undefined;
64
- teleport?: (boolean | string) | undefined;
65
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
66
- $slots: {
67
- button?(_: {
68
- open: any;
69
- }): any;
70
- logo?(_: {}): any;
71
- label?(_: {}): any;
72
- products?(_: {
73
- close: () => any;
74
- }): any;
75
- profile?(_: {
76
- close: () => any;
77
- }): any;
78
- sections?(_: {
79
- close: () => any;
80
- }): any;
62
+ } & import("vue").ComponentOptionsBase<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
63
+ $slots: Readonly<{
64
+ button?: (p: {
65
+ open: boolean;
66
+ }) => any;
67
+ logo?: () => any;
68
+ label?: () => any;
69
+ products?: (p: {
70
+ close: () => void;
71
+ }) => any;
72
+ profile?: (p: {
73
+ close: () => void;
74
+ }) => any;
75
+ sections?: (p: {
76
+ close: () => void;
77
+ }) => any;
78
+ }> & {
79
+ button?: (p: {
80
+ open: boolean;
81
+ }) => any;
82
+ logo?: () => any;
83
+ label?: () => any;
84
+ products?: (p: {
85
+ close: () => void;
86
+ }) => any;
87
+ profile?: (p: {
88
+ close: () => void;
89
+ }) => any;
90
+ sections?: (p: {
91
+ close: () => void;
92
+ }) => any;
81
93
  };
82
94
  })>) => {
83
95
  components: {
84
96
  ScalarMenu: {
85
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
86
- placement?: import("@floating-ui/vue").Placement | undefined;
87
- teleport?: (boolean | string) | undefined;
88
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
97
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
89
98
  P: {};
90
99
  B: {};
91
100
  D: {};
92
101
  C: {};
93
102
  M: {};
94
103
  Defaults: {};
95
- }, Readonly<{
96
- placement?: import("@floating-ui/vue").Placement | undefined;
97
- teleport?: (boolean | string) | undefined;
98
- }> & Readonly<{}>, {}, {}, {}, {}, {}>;
104
+ }, Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, {}>;
99
105
  __isFragment?: never;
100
106
  __isTeleport?: never;
101
107
  __isSuspense?: never;
102
- } & import("vue").ComponentOptionsBase<Readonly<{
103
- placement?: import("@floating-ui/vue").Placement | undefined;
104
- teleport?: (boolean | string) | undefined;
105
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
106
- $slots: {
107
- button?(_: {
108
- open: any;
109
- }): any;
110
- logo?(_: {}): any;
111
- label?(_: {}): any;
112
- products?(_: {
113
- close: () => any;
114
- }): any;
115
- profile?(_: {
116
- close: () => any;
117
- }): any;
118
- sections?(_: {
119
- close: () => any;
120
- }): any;
108
+ } & import("vue").ComponentOptionsBase<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
109
+ $slots: Readonly<{
110
+ button?: (p: {
111
+ open: boolean;
112
+ }) => any;
113
+ logo?: () => any;
114
+ label?: () => any;
115
+ products?: (p: {
116
+ close: () => void;
117
+ }) => any;
118
+ profile?: (p: {
119
+ close: () => void;
120
+ }) => any;
121
+ sections?: (p: {
122
+ close: () => void;
123
+ }) => any;
124
+ }> & {
125
+ button?: (p: {
126
+ open: boolean;
127
+ }) => any;
128
+ logo?: () => any;
129
+ label?: () => any;
130
+ products?: (p: {
131
+ close: () => void;
132
+ }) => any;
133
+ profile?: (p: {
134
+ close: () => void;
135
+ }) => any;
136
+ sections?: (p: {
137
+ close: () => void;
138
+ }) => any;
121
139
  };
122
140
  });
123
141
  };
124
142
  setup(this: void): {
125
143
  args: import("@storybook/vue3").ComponentPropsAndSlots<{
126
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
127
- placement?: import("@floating-ui/vue").Placement | undefined;
128
- teleport?: (boolean | string) | undefined;
129
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
144
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
130
145
  P: {};
131
146
  B: {};
132
147
  D: {};
133
148
  C: {};
134
149
  M: {};
135
150
  Defaults: {};
136
- }, Readonly<{
137
- placement?: import("@floating-ui/vue").Placement | undefined;
138
- teleport?: (boolean | string) | undefined;
139
- }> & Readonly<{}>, {}, {}, {}, {}, {}>;
151
+ }, Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, {}>;
140
152
  __isFragment?: never;
141
153
  __isTeleport?: never;
142
154
  __isSuspense?: never;
143
- } & import("vue").ComponentOptionsBase<Readonly<{
144
- placement?: import("@floating-ui/vue").Placement | undefined;
145
- teleport?: (boolean | string) | undefined;
146
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
147
- $slots: {
148
- button?(_: {
149
- open: any;
150
- }): any;
151
- logo?(_: {}): any;
152
- label?(_: {}): any;
153
- products?(_: {
154
- close: () => any;
155
- }): any;
156
- profile?(_: {
157
- close: () => any;
158
- }): any;
159
- sections?(_: {
160
- close: () => any;
161
- }): any;
155
+ } & import("vue").ComponentOptionsBase<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
156
+ $slots: Readonly<{
157
+ button?: (p: {
158
+ open: boolean;
159
+ }) => any;
160
+ logo?: () => any;
161
+ label?: () => any;
162
+ products?: (p: {
163
+ close: () => void;
164
+ }) => any;
165
+ profile?: (p: {
166
+ close: () => void;
167
+ }) => any;
168
+ sections?: (p: {
169
+ close: () => void;
170
+ }) => any;
171
+ }> & {
172
+ button?: (p: {
173
+ open: boolean;
174
+ }) => any;
175
+ logo?: () => any;
176
+ label?: () => any;
177
+ products?: (p: {
178
+ close: () => void;
179
+ }) => any;
180
+ profile?: (p: {
181
+ close: () => void;
182
+ }) => any;
183
+ sections?: (p: {
184
+ close: () => void;
185
+ }) => any;
162
186
  };
163
187
  })>;
164
188
  };
@@ -169,5 +193,6 @@ export default meta;
169
193
  type Story = StoryObj<typeof meta>;
170
194
  export declare const Base: Story;
171
195
  export declare const TeamPicker: Story;
196
+ export declare const CustomLogo: Story;
172
197
  export declare const CustomButton: Story;
173
198
  //# sourceMappingURL=ScalarMenu.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarMenu.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenu.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAarD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWyB,CAAA;AAEnC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,UAAU,EAAE,KA8BxB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAqB1B,CAAA"}
1
+ {"version":3,"file":"ScalarMenu.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenu.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAarD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWyB,CAAA;AAEnC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,UAAU,EAAE,KA8BxB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAoBxB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAqB1B,CAAA"}