@scalar/components 0.12.76 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) 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.test.d.ts +2 -0
  4. package/dist/components/ScalarButton/ScalarButton.test.d.ts.map +1 -0
  5. package/dist/components/ScalarButton/ScalarButton.vue.d.ts.map +1 -1
  6. package/dist/components/ScalarButton/ScalarButton.vue.js +29 -32
  7. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.test.d.ts +2 -0
  8. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.test.d.ts.map +1 -0
  9. package/dist/components/ScalarCombobox/ScalarCombobox.stories.d.ts +30 -5
  10. package/dist/components/ScalarCombobox/ScalarCombobox.stories.d.ts.map +1 -1
  11. package/dist/components/ScalarCombobox/ScalarCombobox.test.d.ts +2 -0
  12. package/dist/components/ScalarCombobox/ScalarCombobox.test.d.ts.map +1 -0
  13. package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts +24 -7
  14. package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts.map +1 -1
  15. package/dist/components/ScalarCombobox/ScalarCombobox.vue.js +34 -18
  16. package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts +16 -82
  17. package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts.map +1 -1
  18. package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.js +23 -22
  19. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts +7 -2
  20. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts.map +1 -1
  21. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.js +23 -28
  22. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +25 -1
  23. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
  24. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +58 -56
  25. package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts +5 -11
  26. package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts.map +1 -1
  27. package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.js +43 -43
  28. package/dist/components/ScalarCombobox/types.d.ts +4 -2
  29. package/dist/components/ScalarCombobox/types.d.ts.map +1 -1
  30. package/dist/components/ScalarCombobox/types.js +8 -3
  31. package/dist/components/ScalarContextMenu/ScalarContextMenu.test.d.ts +2 -0
  32. package/dist/components/ScalarContextMenu/ScalarContextMenu.test.d.ts.map +1 -0
  33. package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts +73 -105
  34. package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts.map +1 -1
  35. package/dist/components/ScalarDropdown/ScalarDropdown.test.d.ts +2 -0
  36. package/dist/components/ScalarDropdown/ScalarDropdown.test.d.ts.map +1 -0
  37. package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts +40 -22
  38. package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts.map +1 -1
  39. package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +32 -42
  40. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts +35 -0
  41. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts.map +1 -0
  42. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.js +7 -0
  43. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue2.js +37 -0
  44. package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts +17 -1
  45. package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts.map +1 -1
  46. package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.js +7 -6
  47. package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue2.js +4 -0
  48. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts +18 -15
  49. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts.map +1 -1
  50. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.js +2 -2
  51. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue2.js +19 -29
  52. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts +32 -0
  53. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts.map +1 -0
  54. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.js +28 -0
  55. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue2.js +4 -0
  56. package/dist/components/ScalarDropdown/index.d.ts +2 -0
  57. package/dist/components/ScalarDropdown/index.d.ts.map +1 -1
  58. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.stories.d.ts +6 -0
  59. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.stories.d.ts.map +1 -0
  60. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.test.d.ts +2 -0
  61. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.test.d.ts.map +1 -0
  62. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.d.ts +18 -0
  63. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.d.ts.map +1 -0
  64. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.js +23 -0
  65. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue2.js +4 -0
  66. package/dist/components/ScalarErrorBoundary/index.d.ts +2 -0
  67. package/dist/components/ScalarErrorBoundary/index.d.ts.map +1 -0
  68. package/dist/components/ScalarFloating/ScalarFloating.stories.d.ts +4 -0
  69. package/dist/components/ScalarFloating/ScalarFloating.stories.d.ts.map +1 -1
  70. package/dist/components/ScalarFloating/ScalarFloating.test.d.ts +2 -0
  71. package/dist/components/ScalarFloating/ScalarFloating.test.d.ts.map +1 -0
  72. package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts +5 -4
  73. package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts.map +1 -1
  74. package/dist/components/ScalarFloating/ScalarFloating.vue.js +32 -29
  75. package/dist/components/ScalarFloating/index.d.ts +1 -1
  76. package/dist/components/ScalarFloating/index.d.ts.map +1 -1
  77. package/dist/components/ScalarFloating/types.d.ts +15 -7
  78. package/dist/components/ScalarFloating/types.d.ts.map +1 -1
  79. package/dist/components/ScalarFloating/useResizeWithTarget.d.ts +3 -0
  80. package/dist/components/ScalarFloating/useResizeWithTarget.d.ts.map +1 -1
  81. package/dist/components/ScalarFloating/useResizeWithTarget.test.d.ts +2 -0
  82. package/dist/components/ScalarFloating/useResizeWithTarget.test.d.ts.map +1 -0
  83. package/dist/components/ScalarHeaderButton/ScalarHeaderButton.test.d.ts +2 -0
  84. package/dist/components/ScalarHeaderButton/ScalarHeaderButton.test.d.ts.map +1 -0
  85. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +9 -8
  86. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts.map +1 -1
  87. package/dist/components/ScalarIcon/ScalarIcon.test.d.ts +2 -0
  88. package/dist/components/ScalarIcon/ScalarIcon.test.d.ts.map +1 -0
  89. package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts +1 -1
  90. package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts.map +1 -1
  91. package/dist/components/ScalarIcon/ScalarIcon.vue.js +2 -2
  92. package/dist/components/ScalarIcon/ScalarIcon.vue2.js +18 -15
  93. package/dist/components/ScalarIcon/icons/Add.svg.js +2 -2
  94. package/dist/components/ScalarIcon/icons/ChevronDown.svg.js +1 -1
  95. package/dist/components/ScalarIcon/icons/ChevronRight.svg.js +1 -1
  96. package/dist/components/ScalarIcon/icons/ChevronUp.svg.js +1 -1
  97. package/dist/components/ScalarIcon/icons/Hide.svg.js +10 -9
  98. package/dist/components/ScalarIcon/icons/Show.svg.js +7 -8
  99. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +13 -10
  100. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts.map +1 -1
  101. package/dist/components/ScalarIconButton/ScalarIconButton.test.d.ts +2 -0
  102. package/dist/components/ScalarIconButton/ScalarIconButton.test.d.ts.map +1 -0
  103. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +3 -3
  104. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts.map +1 -1
  105. package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +19 -21
  106. package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts +52 -25
  107. package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts.map +1 -1
  108. package/dist/components/ScalarListbox/ScalarListbox.test.d.ts +2 -0
  109. package/dist/components/ScalarListbox/ScalarListbox.test.d.ts.map +1 -0
  110. package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts +41 -22
  111. package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts.map +1 -1
  112. package/dist/components/ScalarListbox/ScalarListbox.vue.js +46 -85
  113. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts +8 -0
  114. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts.map +1 -0
  115. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.js +26 -0
  116. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue2.js +4 -0
  117. package/dist/components/ScalarListbox/ScalarListboxItem.vue.d.ts +8 -0
  118. package/dist/components/ScalarListbox/ScalarListboxItem.vue.d.ts.map +1 -0
  119. package/dist/components/ScalarListbox/ScalarListboxItem.vue.js +53 -0
  120. package/dist/components/ScalarListbox/ScalarListboxItem.vue2.js +4 -0
  121. package/dist/components/ScalarListbox/index.d.ts +3 -1
  122. package/dist/components/ScalarListbox/index.d.ts.map +1 -1
  123. package/dist/components/ScalarListbox/types.d.ts +1 -0
  124. package/dist/components/ScalarListbox/types.d.ts.map +1 -1
  125. package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts +32 -10
  126. package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts.map +1 -1
  127. package/dist/components/ScalarLoading/ScalarLoading.test.d.ts +2 -0
  128. package/dist/components/ScalarLoading/ScalarLoading.test.d.ts.map +1 -0
  129. package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts +4 -4
  130. package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts.map +1 -1
  131. package/dist/components/ScalarLoading/ScalarLoading.vue.js +3 -3
  132. package/dist/components/ScalarLoading/ScalarLoading.vue2.js +29 -30
  133. package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts +133 -108
  134. package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts.map +1 -1
  135. package/dist/components/ScalarMenu/ScalarMenu.test.d.ts +2 -0
  136. package/dist/components/ScalarMenu/ScalarMenu.test.d.ts.map +1 -0
  137. package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts +34 -18
  138. package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts.map +1 -1
  139. package/dist/components/ScalarMenu/ScalarMenu.vue.js +22 -20
  140. package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts +2 -2
  141. package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts.map +1 -1
  142. package/dist/components/ScalarMenu/ScalarMenuButton.vue.js +26 -19
  143. package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts.map +1 -1
  144. package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +17 -10
  145. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts +2 -2
  146. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
  147. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.js +22 -16
  148. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts +1 -1
  149. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts.map +1 -1
  150. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.js +25 -22
  151. package/dist/components/ScalarMenu/ScalarMenuResources.vue.d.ts +1 -1
  152. package/dist/components/ScalarMenu/ScalarMenuResources.vue.js +3 -3
  153. package/dist/components/ScalarMenu/ScalarMenuSection.vue.d.ts +2 -2
  154. package/dist/components/ScalarMenu/ScalarMenuSection.vue.d.ts.map +1 -1
  155. package/dist/components/ScalarMenu/ScalarMenuSection.vue.js +18 -15
  156. package/dist/components/ScalarMenu/ScalarMenuSection.vue2.js +4 -0
  157. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts +1 -1
  158. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts.map +1 -1
  159. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +23 -22
  160. package/dist/components/ScalarModal/ScalarModal.stories.d.ts +9 -9
  161. package/dist/components/ScalarModal/ScalarModal.test.d.ts +2 -0
  162. package/dist/components/ScalarModal/ScalarModal.test.d.ts.map +1 -0
  163. package/dist/components/ScalarModal/ScalarModal.vue.d.ts +5 -5
  164. package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts +20 -116
  165. package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts.map +1 -1
  166. package/dist/components/ScalarPopover/ScalarPopover.test.d.ts +2 -0
  167. package/dist/components/ScalarPopover/ScalarPopover.test.d.ts.map +1 -0
  168. package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts +4 -11
  169. package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts.map +1 -1
  170. package/dist/components/ScalarPopover/ScalarPopover.vue.js +23 -24
  171. package/dist/components/ScalarPopover/index.d.ts +1 -0
  172. package/dist/components/ScalarPopover/index.d.ts.map +1 -1
  173. package/dist/components/ScalarPopover/types.d.ts +15 -0
  174. package/dist/components/ScalarPopover/types.d.ts.map +1 -0
  175. package/dist/components/ScalarSearchInput/ScalarSearchInput.stories.d.ts +6 -1
  176. package/dist/components/ScalarSearchInput/ScalarSearchInput.stories.d.ts.map +1 -1
  177. package/dist/components/ScalarSearchInput/ScalarSearchInput.test.d.ts +2 -0
  178. package/dist/components/ScalarSearchInput/ScalarSearchInput.test.d.ts.map +1 -0
  179. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +3 -3
  180. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue2.js +10 -10
  181. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
  182. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +31 -35
  183. package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts.map +1 -1
  184. package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.js +12 -18
  185. package/dist/components/ScalarSearchResults/ScalarSearchResults.test.d.ts +2 -0
  186. package/dist/components/ScalarSearchResults/ScalarSearchResults.test.d.ts.map +1 -0
  187. package/dist/components/ScalarTextField/ScalarTextField.test.d.ts +2 -0
  188. package/dist/components/ScalarTextField/ScalarTextField.test.d.ts.map +1 -0
  189. package/dist/components/ScalarToggle/ScalarToggle.stories.d.ts +26 -39
  190. package/dist/components/ScalarToggle/ScalarToggle.stories.d.ts.map +1 -1
  191. package/dist/components/ScalarToggle/ScalarToggle.test.d.ts +2 -0
  192. package/dist/components/ScalarToggle/ScalarToggle.test.d.ts.map +1 -0
  193. package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts +3 -5
  194. package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts.map +1 -1
  195. package/dist/components/ScalarToggle/ScalarToggle.vue.js +24 -35
  196. package/dist/components/ScalarTooltip/ScalarTooltip.test.d.ts +2 -0
  197. package/dist/components/ScalarTooltip/ScalarTooltip.test.d.ts.map +1 -0
  198. package/dist/components/ScalarVirtualText/ScalarVirtualText.test.d.ts +2 -0
  199. package/dist/components/ScalarVirtualText/ScalarVirtualText.test.d.ts.map +1 -0
  200. package/dist/cva.js +7 -7
  201. package/dist/cva.test.d.ts +2 -0
  202. package/dist/cva.test.d.ts.map +1 -0
  203. package/dist/hooks/useBindCx.d.ts +51 -0
  204. package/dist/hooks/useBindCx.d.ts.map +1 -0
  205. package/dist/hooks/useBindCx.js +34 -0
  206. package/dist/hooks/useBindCx.stories.d.ts +430 -0
  207. package/dist/hooks/useBindCx.stories.d.ts.map +1 -0
  208. package/dist/hooks/useBindCx.test.d.ts +2 -0
  209. package/dist/hooks/useBindCx.test.d.ts.map +1 -0
  210. package/dist/index.d.ts +4 -1
  211. package/dist/index.d.ts.map +1 -1
  212. package/dist/index.js +85 -68
  213. package/dist/style.css +1 -1
  214. package/package.json +6 -6
  215. package/dist/components/ScalarButton/ScalarButton.spec.d.ts +0 -2
  216. package/dist/components/ScalarButton/ScalarButton.spec.d.ts.map +0 -1
  217. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.spec.d.ts +0 -2
  218. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.spec.d.ts.map +0 -1
  219. package/dist/components/ScalarCombobox/ScalarCombobox.spec.d.ts +0 -2
  220. package/dist/components/ScalarCombobox/ScalarCombobox.spec.d.ts.map +0 -1
  221. package/dist/components/ScalarContextMenu/ScalarContextMenu.spec.d.ts +0 -2
  222. package/dist/components/ScalarContextMenu/ScalarContextMenu.spec.d.ts.map +0 -1
  223. package/dist/components/ScalarDropdown/ScalarDropdown.spec.d.ts +0 -2
  224. package/dist/components/ScalarDropdown/ScalarDropdown.spec.d.ts.map +0 -1
  225. package/dist/components/ScalarFloating/ScalarFloating.spec.d.ts +0 -2
  226. package/dist/components/ScalarFloating/ScalarFloating.spec.d.ts.map +0 -1
  227. package/dist/components/ScalarFloating/useResizeWithTarget.spec.d.ts +0 -2
  228. package/dist/components/ScalarFloating/useResizeWithTarget.spec.d.ts.map +0 -1
  229. package/dist/components/ScalarHeaderButton/ScalarHeaderButton.spec.d.ts +0 -2
  230. package/dist/components/ScalarHeaderButton/ScalarHeaderButton.spec.d.ts.map +0 -1
  231. package/dist/components/ScalarIcon/ScalarIcon.spec.d.ts +0 -2
  232. package/dist/components/ScalarIcon/ScalarIcon.spec.d.ts.map +0 -1
  233. package/dist/components/ScalarIconButton/ScalarIconButton.spec.d.ts +0 -2
  234. package/dist/components/ScalarIconButton/ScalarIconButton.spec.d.ts.map +0 -1
  235. package/dist/components/ScalarListbox/ScalarListbox.spec.d.ts +0 -2
  236. package/dist/components/ScalarListbox/ScalarListbox.spec.d.ts.map +0 -1
  237. package/dist/components/ScalarLoading/ScalarLoading.spec.d.ts +0 -2
  238. package/dist/components/ScalarLoading/ScalarLoading.spec.d.ts.map +0 -1
  239. package/dist/components/ScalarMenu/ScalarMenu.spec.d.ts +0 -2
  240. package/dist/components/ScalarMenu/ScalarMenu.spec.d.ts.map +0 -1
  241. package/dist/components/ScalarModal/ScalarModal.spec.d.ts +0 -2
  242. package/dist/components/ScalarModal/ScalarModal.spec.d.ts.map +0 -1
  243. package/dist/components/ScalarPopover/ScalarPopover.spec.d.ts +0 -2
  244. package/dist/components/ScalarPopover/ScalarPopover.spec.d.ts.map +0 -1
  245. package/dist/components/ScalarSearchInput/ScalarSearchInput.spec.d.ts +0 -2
  246. package/dist/components/ScalarSearchInput/ScalarSearchInput.spec.d.ts.map +0 -1
  247. package/dist/components/ScalarSearchResults/ScalarSearchResults.spec.d.ts +0 -2
  248. package/dist/components/ScalarSearchResults/ScalarSearchResults.spec.d.ts.map +0 -1
  249. package/dist/components/ScalarTextField/ScalarTextField.spec.d.ts +0 -2
  250. package/dist/components/ScalarTextField/ScalarTextField.spec.d.ts.map +0 -1
  251. package/dist/components/ScalarToggle/ScalarToggle.spec.d.ts +0 -2
  252. package/dist/components/ScalarToggle/ScalarToggle.spec.d.ts.map +0 -1
  253. package/dist/components/ScalarTooltip/ScalarTooltip.spec.d.ts +0 -2
  254. package/dist/components/ScalarTooltip/ScalarTooltip.spec.d.ts.map +0 -1
  255. package/dist/components/ScalarVirtualText/ScalarVirtualText.spec.d.ts +0 -2
  256. package/dist/components/ScalarVirtualText/ScalarVirtualText.spec.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarPopover.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/ScalarPopover.test.ts"],"names":[],"mappings":""}
@@ -1,20 +1,13 @@
1
- import { type FloatingOptions } from '../ScalarFloating';
2
- type __VLS_Props = Omit<FloatingOptions, 'middleware'>;
1
+ import { type ScalarFloatingOptions } from '../ScalarFloating';
2
+ import type { Slots } from './types';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
5
- slots: {
6
- default?(_: {
7
- open: any;
8
- }): any;
9
- popover?(_: {
10
- close: () => any;
11
- }): any;
12
- };
5
+ slots: Readonly<Slots> & Slots;
13
6
  refs: {};
14
7
  rootEl: any;
15
8
  };
16
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_component: import("vue").DefineComponent<ScalarFloatingOptions, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
11
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
12
  export default _default;
20
13
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/ScalarPopover.vue"],"names":[],"mappings":"AAyCA,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,mBAAmB,CAAA;AAKxE,KAAK,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;AAUvD,iBAAS,cAAc;WA4FT,OAAO,IAA6B;;;;YATpB,GAAG;;;YACH,GAAG;;;;EAahC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/ScalarPopover.vue"],"names":[],"mappings":"AA2CA,OAAO,EAAkB,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAC9E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAiBpC,iBAAS,cAAc;WAoFT,OAAO,IAA6B;;;;EAKjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,sTAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,52 +1,51 @@
1
- import { defineComponent as d, openBlock as m, createBlock as u, unref as o, withCtx as t, createVNode as r, mergeProps as p, renderSlot as a, createElementVNode as c } from "vue";
2
- import { Popover as g, PopoverPanel as v, PopoverButton as B } from "@headlessui/vue";
3
- import P from "../ScalarFloating/ScalarFloating.vue.js";
4
- const O = /* @__PURE__ */ d({
1
+ import { defineComponent as f, openBlock as m, createBlock as u, unref as e, withCtx as t, createVNode as r, normalizeProps as c, guardReactiveProps as _, mergeProps as g, renderSlot as s, createElementVNode as v } from "vue";
2
+ import { Popover as P, PopoverPanel as B, PopoverButton as b } from "@headlessui/vue";
3
+ import { useBindCx as x } from "../../hooks/useBindCx.js";
4
+ import y from "../ScalarFloating/ScalarFloating.vue.js";
5
+ const S = /* @__PURE__ */ f({
5
6
  inheritAttrs: !1,
6
7
  __name: "ScalarPopover",
7
8
  props: {
8
9
  placement: {},
9
10
  resize: { type: Boolean },
10
- targetRef: {},
11
- isOpen: { type: Boolean },
11
+ target: {},
12
+ middleware: {},
12
13
  teleport: { type: [Boolean, String] }
13
14
  },
14
- setup(_) {
15
- return (e, l) => (m(), u(o(g), { as: "template" }, {
16
- default: t(({ open: s }) => [
17
- r(o(P), p(e.$props, {
18
- isOpen: s ?? e.isOpen,
19
- teleport: e.teleport
20
- }), {
15
+ setup($) {
16
+ const { cx: p } = x();
17
+ return (o, l) => (m(), u(e(P), { as: "template" }, {
18
+ default: t(({ open: a }) => [
19
+ r(e(y), c(_(o.$props)), {
21
20
  floating: t(({ width: n, height: i }) => [
22
- r(o(v), p({
23
- class: "relative flex flex-col p-0.75",
21
+ r(e(B), g({
24
22
  style: { width: n, height: i }
25
- }, e.$attrs), {
26
- default: t(({ close: f }) => [
27
- a(e.$slots, "popover", {
28
- close: () => f()
23
+ }, e(p)("relative flex flex-col p-0.75")), {
24
+ default: t(({ close: d }) => [
25
+ s(o.$slots, "popover", {
26
+ close: () => d(),
27
+ open: a
29
28
  }),
30
- l[0] || (l[0] = c("div", { class: "absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted" }, null, -1))
29
+ l[0] || (l[0] = v("div", { class: "absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted" }, null, -1))
31
30
  ]),
32
31
  _: 2
33
32
  }, 1040, ["style"])
34
33
  ]),
35
34
  default: t(() => [
36
- r(o(B), { as: "template" }, {
35
+ r(e(b), { as: "template" }, {
37
36
  default: t(() => [
38
- a(e.$slots, "default", { open: s })
37
+ s(o.$slots, "default", { open: a })
39
38
  ]),
40
39
  _: 2
41
40
  }, 1024)
42
41
  ]),
43
42
  _: 2
44
- }, 1040, ["isOpen", "teleport"])
43
+ }, 1040)
45
44
  ]),
46
45
  _: 3
47
46
  }));
48
47
  }
49
48
  });
50
49
  export {
51
- O as default
50
+ S as default
52
51
  };
@@ -1,2 +1,3 @@
1
1
  export { default as ScalarPopover } from './ScalarPopover.vue.js';
2
+ export type { Slots as ScalarPopoverSlots } from './types';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAE9D,YAAY,EAAE,KAAK,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { Slot } from 'vue';
2
+ export type Slots = {
3
+ default(props: {
4
+ /** Whether or not the popover is open */
5
+ open: boolean;
6
+ }): Slot;
7
+ /** The popover contents */
8
+ popover(props: {
9
+ /** Whether or not the popover is open */
10
+ open: boolean;
11
+ /** A callback to close the popover */
12
+ close: () => void;
13
+ }): Slot;
14
+ };
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE/B,MAAM,MAAM,KAAK,GAAG;IAClB,OAAO,CAAC,KAAK,EAAE;QACb,yCAAyC;QACzC,IAAI,EAAE,OAAO,CAAA;KACd,GAAG,IAAI,CAAA;IACR,2BAA2B;IAC3B,OAAO,CAAC,KAAK,EAAE;QACb,yCAAyC;QACzC,IAAI,EAAE,OAAO,CAAA;QACb,sCAAsC;QACtC,KAAK,EAAE,MAAM,IAAI,CAAA;KAClB,GAAG,IAAI,CAAA;CACT,CAAA"}
@@ -19,7 +19,11 @@ declare const meta: {
19
19
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
20
20
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  tags: string[];
22
- argTypes: {};
22
+ argTypes: {
23
+ class: {
24
+ control: "text";
25
+ };
26
+ };
23
27
  render: (args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
24
28
  loading?: import("../ScalarLoading").LoadingState;
25
29
  modelValue?: string;
@@ -86,4 +90,5 @@ export default meta;
86
90
  type Story = StoryObj<typeof meta>;
87
91
  export declare const Base: Story;
88
92
  export declare const Loading: Story;
93
+ export declare const CustomClasses: Story;
89
94
  //# sourceMappingURL=ScalarSearchInput.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSearchInput.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchInput/ScalarSearchInput.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAMrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYgC,CAAA;AAE1C,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAA"}
1
+ {"version":3,"file":"ScalarSearchInput.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchInput/ScalarSearchInput.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAMrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcgC,CAAA;AAE1C,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarSearchInput.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarSearchInput.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchInput/ScalarSearchInput.test.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
- import a from "./ScalarSearchInput.vue2.js";
1
+ import o from "./ScalarSearchInput.vue2.js";
2
2
  /* empty css */
3
- import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ o(a, [["__scopeId", "data-v-52e35a1d"]]);
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-5b435217"]]);
5
5
  export {
6
6
  c as default
7
7
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as b, ref as h, computed as g, useAttrs as k, openBlock as s, createElementBlock as v, normalizeClass as i, unref as a, createBlock as o, createCommentVNode as u, createElementVNode as S, mergeProps as V } from "vue";
2
2
  import { cva as y, cx as c } from "../../cva.js";
3
3
  import C from "../ScalarIcon/ScalarIcon.vue.js";
4
- import N from "../ScalarLoading/ScalarLoading.vue.js";
5
- import z from "../ScalarIconButton/ScalarIconButton.vue.js";
6
- const B = ["aria-label", "value"], q = /* @__PURE__ */ b({
4
+ import z from "../ScalarLoading/ScalarLoading.vue.js";
5
+ import B from "../ScalarIconButton/ScalarIconButton.vue.js";
6
+ const I = ["aria-label", "value"], q = /* @__PURE__ */ b({
7
7
  inheritAttrs: !1,
8
8
  __name: "ScalarSearchInput",
9
9
  props: {
@@ -13,14 +13,14 @@ const B = ["aria-label", "value"], q = /* @__PURE__ */ b({
13
13
  label: {}
14
14
  },
15
15
  emits: ["update:modelValue"],
16
- setup(I, { expose: d, emit: m }) {
16
+ setup(E, { expose: d, emit: m }) {
17
17
  const t = m, r = h(null);
18
18
  function p(e) {
19
19
  t("update:modelValue", e.target.value);
20
20
  }
21
21
  const n = g(() => {
22
22
  const { class: e, ...l } = k();
23
- return { className: e || "", rest: l };
23
+ return { class: e || "", rest: l };
24
24
  }), f = y({
25
25
  base: "search-background flex items-center rounded border text-sm font-medium has-[:focus-visible]:bg-b-1 has-[:focus-visible]:outline",
26
26
  variants: {
@@ -40,7 +40,7 @@ const B = ["aria-label", "value"], q = /* @__PURE__ */ b({
40
40
  (e = r.value) == null || e.blur();
41
41
  }
42
42
  }), (e, l) => (s(), v("label", {
43
- class: i(a(c)(a(f)({ sidebar: e.sidebar }), n.value.className))
43
+ class: i(a(c)(a(f)({ sidebar: e.sidebar }), n.value.class))
44
44
  }, [
45
45
  e.sidebar ? (s(), o(a(C), {
46
46
  key: 0,
@@ -63,19 +63,19 @@ const B = ["aria-label", "value"], q = /* @__PURE__ */ b({
63
63
  type: "search",
64
64
  value: e.modelValue,
65
65
  onInput: p
66
- }), null, 16, B),
67
- e.loading && e.loading.isLoading ? (s(), o(a(N), {
66
+ }), null, 16, I),
67
+ e.loading && e.loading.isLoading ? (s(), o(a(z), {
68
68
  key: 1,
69
69
  class: "mr-3 self-center",
70
70
  loadingState: e.loading,
71
71
  size: "md"
72
- }, null, 8, ["loadingState"])) : e.modelValue ? (s(), o(a(z), {
72
+ }, null, 8, ["loadingState"])) : e.modelValue ? (s(), o(a(B), {
73
73
  key: 2,
74
74
  class: i(a(c)("p-0", e.sidebar ? "h-4 w-4" : "h-5 w-5")),
75
75
  icon: "Close",
76
76
  label: "Clear Search",
77
77
  thickness: e.sidebar ? "1.75" : "1.5",
78
- onClick: l[0] || (l[0] = (E) => t("update:modelValue", ""))
78
+ onClick: l[0] || (l[0] = (N) => t("update:modelValue", ""))
79
79
  }, null, 8, ["class", "thickness"])) : u("", !0)
80
80
  ], 2));
81
81
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSearchResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultItem.vue"],"names":[],"mappings":"AAwEA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,eAAe,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAgBF,iBAAS,cAAc;WAkGT,OAAO,IAA6B;;sBAXxB,GAAG;yBACA,GAAG;uBACL,GAAG;6BACG,GAAG;;;;EAanC;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarSearchResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultItem.vue"],"names":[],"mappings":"AA6DA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,eAAe,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAWF,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;sBAXxB,GAAG;yBACA,GAAG;uBACL,GAAG;6BACG,GAAG;;;;EAanC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,67 +1,63 @@
1
- import { defineComponent as i, computed as d, useAttrs as m, openBlock as t, createElementBlock as n, createElementVNode as s, mergeProps as u, unref as a, renderSlot as r, createBlock as p, createCommentVNode as l } from "vue";
2
- import { cx as f } from "../../cva.js";
3
- import v from "../ScalarIcon/ScalarIcon.vue.js";
1
+ import { defineComponent as a, openBlock as t, createElementBlock as s, createElementVNode as o, normalizeProps as d, guardReactiveProps as m, unref as l, renderSlot as n, createBlock as p, createCommentVNode as r } from "vue";
2
+ import { useBindCx as u } from "../../hooks/useBindCx.js";
3
+ import f from "../ScalarIcon/ScalarIcon.vue.js";
4
4
  const h = {
5
5
  class: "contents",
6
6
  role: "option"
7
- }, _ = {
7
+ }, v = {
8
8
  key: 0,
9
9
  class: "flex h-fit items-center text-sm font-medium text-c-3 group-hover:text-c-1"
10
- }, x = { class: "flex min-w-0 flex-1 flex-col gap-0.75" }, g = { class: "flex items-center gap-1" }, k = { class: "flex-1 truncate text-sm font-medium" }, y = {
10
+ }, x = { class: "flex min-w-0 flex-1 flex-col gap-0.75" }, _ = { class: "flex items-center gap-1" }, g = { class: "flex-1 truncate text-sm font-medium" }, k = {
11
11
  key: 0,
12
12
  class: "text-sm text-c-2"
13
- }, $ = {
13
+ }, y = {
14
14
  key: 0,
15
15
  class: "truncate text-sm text-c-2"
16
- }, A = /* @__PURE__ */ i({
16
+ }, C = /* @__PURE__ */ a({
17
17
  inheritAttrs: !1,
18
18
  __name: "ScalarSearchResultItem",
19
19
  props: {
20
20
  icon: {},
21
21
  active: { type: Boolean }
22
22
  },
23
- setup(N) {
24
- const c = d(() => {
25
- const { class: e, ...o } = m();
26
- return { className: e || "", rest: o };
27
- });
28
- return (e, o) => (t(), n("li", h, [
29
- s("a", u(c.value.rest, {
30
- class: a(f)(
23
+ setup($) {
24
+ const { cx: c } = u();
25
+ return (e, i) => (t(), s("li", h, [
26
+ o("a", d(m(
27
+ l(c)(
31
28
  "group flex cursor-pointer gap-2.5 rounded px-3 py-1.5 no-underline hover:bg-b-2",
32
29
  {
33
30
  "bg-b-2": e.active
34
- },
35
- c.value.className
31
+ }
36
32
  )
37
- }), [
38
- e.icon ? (t(), n("div", _, [
39
- r(e.$slots, "icon", {}, () => [
40
- e.icon ? (t(), p(a(v), {
33
+ )), [
34
+ e.icon ? (t(), s("div", v, [
35
+ n(e.$slots, "icon", {}, () => [
36
+ e.icon ? (t(), p(l(f), {
41
37
  key: 0,
42
38
  icon: e.icon,
43
39
  size: "sm"
44
- }, null, 8, ["icon"])) : l("", !0)
40
+ }, null, 8, ["icon"])) : r("", !0)
45
41
  ]),
46
- o[0] || (o[0] = s("span", null, " ", -1))
47
- ])) : l("", !0),
48
- s("div", x, [
49
- s("div", g, [
50
- s("div", k, [
51
- r(e.$slots, "default")
42
+ i[0] || (i[0] = o("span", null, " ", -1))
43
+ ])) : r("", !0),
44
+ o("div", x, [
45
+ o("div", _, [
46
+ o("div", g, [
47
+ n(e.$slots, "default")
52
48
  ]),
53
- e.$slots.addon ? (t(), n("div", y, [
54
- r(e.$slots, "addon")
55
- ])) : l("", !0)
49
+ e.$slots.addon ? (t(), s("div", k, [
50
+ n(e.$slots, "addon")
51
+ ])) : r("", !0)
56
52
  ]),
57
- e.$slots.description ? (t(), n("div", $, [
58
- r(e.$slots, "description")
59
- ])) : l("", !0)
53
+ e.$slots.description ? (t(), s("div", y, [
54
+ n(e.$slots, "description")
55
+ ])) : r("", !0)
60
56
  ])
61
57
  ], 16)
62
58
  ]));
63
59
  }
64
60
  });
65
61
  export {
66
- A as default
62
+ C as default
67
63
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSearchResultList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultList.vue"],"names":[],"mappings":"AAyCA,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAgBF,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;2BATnB,GAAG;yBACL,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarSearchResultList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultList.vue"],"names":[],"mappings":"AA+BA,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAWF,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;2BATnB,GAAG;yBACL,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,30 +1,24 @@
1
- import { defineComponent as r, computed as a, useAttrs as n, openBlock as c, createElementBlock as m, mergeProps as u, unref as p, renderSlot as o, createElementVNode as s, createCommentVNode as f } from "vue";
2
- import { cx as d } from "../../cva.js";
3
- const v = /* @__PURE__ */ r({
1
+ import { defineComponent as r, openBlock as n, createElementBlock as a, mergeProps as m, unref as u, renderSlot as s, createElementVNode as t, createCommentVNode as f } from "vue";
2
+ import { useBindCx as p } from "../../hooks/useBindCx.js";
3
+ const x = /* @__PURE__ */ r({
4
4
  inheritAttrs: !1,
5
5
  __name: "ScalarSearchResultList",
6
6
  props: {
7
7
  noResults: { type: Boolean }
8
8
  },
9
- setup(i) {
10
- const l = a(() => {
11
- const { class: e, ...t } = n();
12
- return { className: e || "", rest: t };
13
- });
14
- return (e, t) => (c(), m("ul", u(l.value.rest, {
15
- class: p(d)("flex flex-col", l.value.className),
16
- role: "listbox"
17
- }), [
18
- e.noResults ? o(e.$slots, "noResults", { key: 0 }, () => [
19
- t[0] || (t[0] = s("div", { class: "flex flex-col items-center gap-2 px-3 py-4" }, [
20
- s("div", { class: "rotate-90 text-lg font-bold" }, ":("),
21
- s("div", { class: "text-sm font-medium text-c-2" }, "No results found")
9
+ setup(c) {
10
+ const { cx: l } = p();
11
+ return (e, o) => (n(), a("ul", m({ role: "listbox" }, u(l)("flex flex-col")), [
12
+ e.noResults ? s(e.$slots, "noResults", { key: 0 }, () => [
13
+ o[0] || (o[0] = t("div", { class: "flex flex-col items-center gap-2 px-3 py-4" }, [
14
+ t("div", { class: "rotate-90 text-lg font-bold" }, ":("),
15
+ t("div", { class: "text-sm font-medium text-c-2" }, "No results found")
22
16
  ], -1))
23
17
  ]) : f("", !0),
24
- o(e.$slots, "default")
18
+ s(e.$slots, "default")
25
19
  ], 16));
26
20
  }
27
21
  });
28
22
  export {
29
- v as default
23
+ x as default
30
24
  };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarSearchResults.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarSearchResults.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResults.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarTextField.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarTextField.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTextField/ScalarTextField.test.ts"],"names":[],"mappings":""}
@@ -1,86 +1,73 @@
1
1
  import type { StoryObj } from '@storybook/vue3';
2
2
  declare const meta: {
3
3
  component: import("vue").DefineComponent<{
4
- modelValue: boolean;
4
+ modelValue?: boolean;
5
5
  disabled?: boolean;
6
- id?: string;
7
- ariaLabel?: string;
8
- ariaLabelledBy?: string;
6
+ label?: string;
9
7
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
8
  "update:modelValue": (value: boolean) => any;
11
9
  }, string, import("vue").PublicProps, Readonly<{
12
- modelValue: boolean;
10
+ modelValue?: boolean;
13
11
  disabled?: boolean;
14
- id?: string;
15
- ariaLabel?: string;
16
- ariaLabelledBy?: string;
12
+ label?: string;
17
13
  }> & Readonly<{
18
14
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
19
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>;
20
16
  tags: string[];
17
+ args: {
18
+ modelValue: false;
19
+ };
21
20
  argTypes: {
22
- modelValue: {
23
- control: "boolean";
21
+ label: {
22
+ control: "text";
24
23
  };
25
24
  disabled: {
26
25
  control: "boolean";
27
26
  };
28
27
  };
29
28
  render: (args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
30
- modelValue: boolean;
29
+ modelValue?: boolean;
31
30
  disabled?: boolean;
32
- id?: string;
33
- ariaLabel?: string;
34
- ariaLabelledBy?: string;
31
+ label?: string;
35
32
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
36
33
  "update:modelValue": (value: boolean) => any;
37
34
  }, string, import("vue").PublicProps, Readonly<{
38
- modelValue: boolean;
35
+ modelValue?: boolean;
39
36
  disabled?: boolean;
40
- id?: string;
41
- ariaLabel?: string;
42
- ariaLabelledBy?: string;
37
+ label?: string;
43
38
  }> & Readonly<{
44
39
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
45
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>>) => {
40
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>>) => {
46
41
  components: {
47
42
  ScalarToggle: import("vue").DefineComponent<{
48
- modelValue: boolean;
43
+ modelValue?: boolean;
49
44
  disabled?: boolean;
50
- id?: string;
51
- ariaLabel?: string;
52
- ariaLabelledBy?: string;
45
+ label?: string;
53
46
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
54
47
  "update:modelValue": (value: boolean) => any;
55
48
  }, string, import("vue").PublicProps, Readonly<{
56
- modelValue: boolean;
49
+ modelValue?: boolean;
57
50
  disabled?: boolean;
58
- id?: string;
59
- ariaLabel?: string;
60
- ariaLabelledBy?: string;
51
+ label?: string;
61
52
  }> & Readonly<{
62
53
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
63
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
54
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>;
64
55
  };
65
56
  setup(this: void): {
66
57
  args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
67
- modelValue: boolean;
58
+ modelValue?: boolean;
68
59
  disabled?: boolean;
69
- id?: string;
70
- ariaLabel?: string;
71
- ariaLabelledBy?: string;
60
+ label?: string;
72
61
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
73
62
  "update:modelValue": (value: boolean) => any;
74
63
  }, string, import("vue").PublicProps, Readonly<{
75
- modelValue: boolean;
64
+ modelValue?: boolean;
76
65
  disabled?: boolean;
77
- id?: string;
78
- ariaLabel?: string;
79
- ariaLabelledBy?: string;
66
+ label?: string;
80
67
  }> & Readonly<{
81
68
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
82
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>>;
83
- model: import("vue").Ref<boolean, boolean>;
69
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>>;
70
+ model: import("vue").Ref<boolean | undefined, boolean | undefined>;
84
71
  };
85
72
  template: string;
86
73
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarToggle.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarToggle/ScalarToggle.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe2B,CAAA;AAErC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAElB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAA"}
1
+ {"version":3,"file":"ScalarToggle.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarToggle/ScalarToggle.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB2B,CAAA;AAErC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAwC,CAAA;AAE3D,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarToggle.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarToggle.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarToggle/ScalarToggle.test.ts"],"names":[],"mappings":""}
@@ -1,14 +1,12 @@
1
1
  type __VLS_Props = {
2
- modelValue: boolean;
2
+ modelValue?: boolean;
3
3
  disabled?: boolean;
4
- id?: string;
5
- ariaLabel?: string;
6
- ariaLabelledBy?: string;
4
+ label?: string;
7
5
  };
8
6
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
7
  "update:modelValue": (value: boolean) => any;
10
8
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
9
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>;
13
11
  export default _default;
14
12
  //# sourceMappingURL=ScalarToggle.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarToggle/ScalarToggle.vue"],"names":[],"mappings":"AA0DA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAC;;;;;;AA8FF,wBAQG"}
1
+ {"version":3,"file":"ScalarToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarToggle/ScalarToggle.vue"],"names":[],"mappings":"AAkDA,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;AAgGF,wBAQG"}