@poppy-ui/vue 0.6.0-rc.1 → 0.6.0-rc.2

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 (279) hide show
  1. package/dist/components/actions/button/Button.d.ts +4 -1
  2. package/dist/components/actions/button/Button.d.ts.map +1 -1
  3. package/dist/components/actions/button/button.props.d.ts +1 -2
  4. package/dist/components/actions/button/button.props.d.ts.map +1 -1
  5. package/dist/components/actions/dropdown/Dropdown.d.ts +7 -7
  6. package/dist/components/actions/dropdown/Dropdown.d.ts.map +1 -1
  7. package/dist/components/actions/dropdown/dropdown.props.d.ts +1 -2
  8. package/dist/components/actions/dropdown/dropdown.props.d.ts.map +1 -1
  9. package/dist/components/actions/modal/Modal.d.ts +5 -2
  10. package/dist/components/actions/modal/Modal.d.ts.map +1 -1
  11. package/dist/components/actions/modal/modal.props.d.ts +2 -3
  12. package/dist/components/actions/modal/modal.props.d.ts.map +1 -1
  13. package/dist/components/actions/public.es.js +120 -116
  14. package/dist/components/actions/public.es.js.map +1 -1
  15. package/dist/components/actions/public.umd.js +1 -1
  16. package/dist/components/actions/public.umd.js.map +1 -1
  17. package/dist/components/actions/swap/Swap.d.ts.map +1 -1
  18. package/dist/components/actions/swap/swap.props.d.ts +1 -2
  19. package/dist/components/actions/swap/swap.props.d.ts.map +1 -1
  20. package/dist/components/data/checkbox/Checkbox.d.ts +6 -1
  21. package/dist/components/data/checkbox/Checkbox.d.ts.map +1 -1
  22. package/dist/components/data/checkbox/checkbox.props.d.ts +12 -3
  23. package/dist/components/data/checkbox/checkbox.props.d.ts.map +1 -1
  24. package/dist/components/data/field-set/FieldSet.d.ts +21 -0
  25. package/dist/components/data/field-set/FieldSet.d.ts.map +1 -0
  26. package/dist/components/data/field-set/field-set.props.d.ts +20 -0
  27. package/dist/components/data/field-set/field-set.props.d.ts.map +1 -0
  28. package/dist/components/data/form/Form.d.ts.map +1 -1
  29. package/dist/components/data/form/form.context.d.ts +4 -0
  30. package/dist/components/data/form/form.context.d.ts.map +1 -1
  31. package/dist/components/data/form/form.props.d.ts +2 -2
  32. package/dist/components/data/form/form.props.d.ts.map +1 -1
  33. package/dist/components/data/form-field/FormField.d.ts +4 -2
  34. package/dist/components/data/form-field/FormField.d.ts.map +1 -1
  35. package/dist/components/data/form-field/form-field.context.d.ts +16 -0
  36. package/dist/components/data/form-field/form-field.context.d.ts.map +1 -1
  37. package/dist/components/data/form-field/form-field.props.d.ts +10 -3
  38. package/dist/components/data/form-field/form-field.props.d.ts.map +1 -1
  39. package/dist/components/data/input/Input.d.ts +6 -19
  40. package/dist/components/data/input/Input.d.ts.map +1 -1
  41. package/dist/components/data/input/input.props.d.ts +12 -7
  42. package/dist/components/data/input/input.props.d.ts.map +1 -1
  43. package/dist/components/data/public.d.ts +2 -0
  44. package/dist/components/data/public.d.ts.map +1 -1
  45. package/dist/components/data/public.es.js +949 -692
  46. package/dist/components/data/public.es.js.map +1 -1
  47. package/dist/components/data/public.umd.js +1 -1
  48. package/dist/components/data/public.umd.js.map +1 -1
  49. package/dist/components/data/radio/Radio.d.ts +6 -1
  50. package/dist/components/data/radio/Radio.d.ts.map +1 -1
  51. package/dist/components/data/radio/radio.props.d.ts +7 -1
  52. package/dist/components/data/radio/radio.props.d.ts.map +1 -1
  53. package/dist/components/data/radio-group/RadioGroup.d.ts +28 -0
  54. package/dist/components/data/radio-group/RadioGroup.d.ts.map +1 -0
  55. package/dist/components/data/radio-group/radio-group.context.d.ts +13 -0
  56. package/dist/components/data/radio-group/radio-group.context.d.ts.map +1 -0
  57. package/dist/components/data/radio-group/radio-group.props.d.ts +12 -0
  58. package/dist/components/data/radio-group/radio-group.props.d.ts.map +1 -0
  59. package/dist/components/data/rating/Rating.d.ts +4 -1
  60. package/dist/components/data/rating/Rating.d.ts.map +1 -1
  61. package/dist/components/data/rating/rating.props.d.ts +2 -3
  62. package/dist/components/data/rating/rating.props.d.ts.map +1 -1
  63. package/dist/components/data/select/Select.d.ts +4 -0
  64. package/dist/components/data/select/Select.d.ts.map +1 -1
  65. package/dist/components/data/slider/Slider.d.ts +4 -1
  66. package/dist/components/data/slider/Slider.d.ts.map +1 -1
  67. package/dist/components/data/slider/slider.props.d.ts +1 -2
  68. package/dist/components/data/slider/slider.props.d.ts.map +1 -1
  69. package/dist/components/data/textarea/Textarea.d.ts +8 -30
  70. package/dist/components/data/textarea/Textarea.d.ts.map +1 -1
  71. package/dist/components/data/textarea/textarea.props.d.ts +6 -8
  72. package/dist/components/data/textarea/textarea.props.d.ts.map +1 -1
  73. package/dist/components/data/toggle/Toggle.d.ts +6 -3
  74. package/dist/components/data/toggle/Toggle.d.ts.map +1 -1
  75. package/dist/components/data/toggle/toggle.props.d.ts +11 -1
  76. package/dist/components/data/toggle/toggle.props.d.ts.map +1 -1
  77. package/dist/components/display/avatar/Avatar.d.ts.map +1 -1
  78. package/dist/components/display/avatar/avatar.props.d.ts +2 -3
  79. package/dist/components/display/avatar/avatar.props.d.ts.map +1 -1
  80. package/dist/components/display/card/Card.d.ts.map +1 -1
  81. package/dist/components/display/card/card.props.d.ts +2 -3
  82. package/dist/components/display/card/card.props.d.ts.map +1 -1
  83. package/dist/components/display/carousel/Carousel.d.ts.map +1 -1
  84. package/dist/components/display/carousel/carousel.props.d.ts +3 -4
  85. package/dist/components/display/carousel/carousel.props.d.ts.map +1 -1
  86. package/dist/components/display/countdown/Countdown.d.ts +1 -1
  87. package/dist/components/display/countdown/Countdown.d.ts.map +1 -1
  88. package/dist/components/display/countdown/countdown.context.d.ts +2 -0
  89. package/dist/components/display/countdown/countdown.context.d.ts.map +1 -0
  90. package/dist/components/display/countdown/countdown.props.d.ts +10 -8
  91. package/dist/components/display/countdown/countdown.props.d.ts.map +1 -1
  92. package/dist/components/display/public.es.js +1 -1
  93. package/dist/components/display/public.umd.js +1 -1
  94. package/dist/components/feedback/progress/Progress.d.ts.map +1 -1
  95. package/dist/components/feedback/progress/progress.props.d.ts +1 -2
  96. package/dist/components/feedback/progress/progress.props.d.ts.map +1 -1
  97. package/dist/components/feedback/public.es.js +40 -41
  98. package/dist/components/feedback/public.es.js.map +1 -1
  99. package/dist/components/feedback/public.umd.js +1 -1
  100. package/dist/components/feedback/public.umd.js.map +1 -1
  101. package/dist/components/layout/drawer/Drawer.d.ts +5 -5
  102. package/dist/components/layout/drawer/Drawer.d.ts.map +1 -1
  103. package/dist/components/layout/drawer/drawer.props.d.ts +1 -2
  104. package/dist/components/layout/drawer/drawer.props.d.ts.map +1 -1
  105. package/dist/components/layout/indicator/Indicator.d.ts.map +1 -1
  106. package/dist/components/layout/indicator/indicator.props.d.ts +1 -2
  107. package/dist/components/layout/indicator/indicator.props.d.ts.map +1 -1
  108. package/dist/components/layout/mask/Mask.d.ts.map +1 -1
  109. package/dist/components/layout/mask/mask.props.d.ts +1 -2
  110. package/dist/components/layout/mask/mask.props.d.ts.map +1 -1
  111. package/dist/components/layout/public.es.js +78 -79
  112. package/dist/components/layout/public.es.js.map +1 -1
  113. package/dist/components/layout/public.umd.js +1 -1
  114. package/dist/components/layout/public.umd.js.map +1 -1
  115. package/dist/components/media/img/Img.d.ts +15 -0
  116. package/dist/components/media/img/Img.d.ts.map +1 -0
  117. package/dist/components/media/img/img.context.d.ts +2 -0
  118. package/dist/components/media/img/img.context.d.ts.map +1 -0
  119. package/dist/components/media/img/img.props.d.ts +76 -0
  120. package/dist/components/media/img/img.props.d.ts.map +1 -0
  121. package/dist/components/media/img/img.types.d.ts +33 -0
  122. package/dist/components/media/img/img.types.d.ts.map +1 -0
  123. package/dist/components/media/public.d.ts +2 -0
  124. package/dist/components/media/public.d.ts.map +1 -0
  125. package/dist/components/media/public.es.js +143 -0
  126. package/dist/components/media/public.es.js.map +1 -0
  127. package/dist/components/media/public.types.d.ts +3 -0
  128. package/dist/components/media/public.types.d.ts.map +1 -0
  129. package/dist/components/media/public.umd.js +2 -0
  130. package/dist/components/media/public.umd.js.map +1 -0
  131. package/dist/components/navigation/link/Link.d.ts.map +1 -1
  132. package/dist/components/navigation/link/link.props.d.ts +1 -2
  133. package/dist/components/navigation/link/link.props.d.ts.map +1 -1
  134. package/dist/components/navigation/menu/MenuItem.d.ts.map +1 -1
  135. package/dist/components/navigation/menu/menu.props.d.ts +4 -5
  136. package/dist/components/navigation/menu/menu.props.d.ts.map +1 -1
  137. package/dist/components/navigation/public.es.js +1 -1
  138. package/dist/components/navigation/public.umd.js +1 -1
  139. package/dist/components/navigation/tab/Tab.d.ts +4 -1
  140. package/dist/components/navigation/tab/Tab.d.ts.map +1 -1
  141. package/dist/components/navigation/tab/tab.props.d.ts +2 -3
  142. package/dist/components/navigation/tab/tab.props.d.ts.map +1 -1
  143. package/dist/composables/public.es.js +1 -1
  144. package/dist/composables/public.umd.js +1 -1
  145. package/dist/composables/use-form-field.d.ts.map +1 -1
  146. package/dist/config/config.type.d.ts +4 -0
  147. package/dist/config/config.type.d.ts.map +1 -1
  148. package/dist/public-1PFjXgZ6.cjs +2 -0
  149. package/dist/public-1PFjXgZ6.cjs.map +1 -0
  150. package/dist/public-D_MhbTxP.cjs +2 -0
  151. package/dist/public-D_MhbTxP.cjs.map +1 -0
  152. package/dist/public-Dqelew6J.js +615 -0
  153. package/dist/public-Dqelew6J.js.map +1 -0
  154. package/dist/public-H9TCdoJr.js +296 -0
  155. package/dist/public-H9TCdoJr.js.map +1 -0
  156. package/dist/public.d.ts +1 -0
  157. package/dist/public.d.ts.map +1 -1
  158. package/dist/public.es.js.map +1 -1
  159. package/dist/public.umd.js.map +1 -1
  160. package/dist/style.css +1 -1
  161. package/dist/types/utils.type.d.ts +0 -1
  162. package/dist/types/utils.type.d.ts.map +1 -1
  163. package/dist/use-select-counter-CgQha-_T.cjs +2 -0
  164. package/dist/use-select-counter-CgQha-_T.cjs.map +1 -0
  165. package/dist/{use-select-counter-D8ecaYEi.js → use-select-counter-D_-Qwz61.js} +37 -31
  166. package/dist/use-select-counter-D_-Qwz61.js.map +1 -0
  167. package/package.json +7 -1
  168. package/src/components/actions/button/Button.story.vue +2 -5
  169. package/src/components/actions/button/Button.vue +11 -4
  170. package/src/components/actions/button/button.props.ts +1 -12
  171. package/src/components/actions/dropdown/Dropdown.story.vue +19 -19
  172. package/src/components/actions/dropdown/Dropdown.vue +15 -16
  173. package/src/components/actions/dropdown/dropdown.props.ts +1 -9
  174. package/src/components/actions/modal/Modal.story.vue +18 -17
  175. package/src/components/actions/modal/Modal.vue +18 -16
  176. package/src/components/actions/modal/modal.props.ts +2 -7
  177. package/src/components/actions/swap/Swap.story.vue +1 -1
  178. package/src/components/actions/swap/Swap.vue +3 -4
  179. package/src/components/actions/swap/swap.props.ts +1 -4
  180. package/src/components/data/checkbox/Checkbox.story.vue +71 -21
  181. package/src/components/data/checkbox/Checkbox.vue +54 -34
  182. package/src/components/data/checkbox/checkbox.props.ts +12 -8
  183. package/src/components/data/field-set/FieldSet.story.vue +163 -0
  184. package/src/components/data/field-set/FieldSet.vue +22 -0
  185. package/src/components/data/field-set/field-set.props.ts +21 -0
  186. package/src/components/data/form/Form.story.vue +1 -1
  187. package/src/components/data/form/Form.vue +21 -8
  188. package/src/components/data/form/form.context.ts +6 -0
  189. package/src/components/data/form/form.props.ts +2 -2
  190. package/src/components/data/form-field/FormField.vue +84 -41
  191. package/src/components/data/form-field/form-field.context.ts +20 -0
  192. package/src/components/data/form-field/form-field.props.ts +11 -3
  193. package/src/components/data/input/Input.story.vue +103 -46
  194. package/src/components/data/input/Input.vue +117 -80
  195. package/src/components/data/input/input.props.ts +12 -8
  196. package/src/components/data/public.ts +2 -0
  197. package/src/components/data/radio/Radio.story.vue +97 -27
  198. package/src/components/data/radio/Radio.vue +86 -39
  199. package/src/components/data/radio/radio.props.ts +8 -1
  200. package/src/components/data/radio-group/RadioGroup.story.vue +155 -0
  201. package/src/components/data/radio-group/RadioGroup.vue +65 -0
  202. package/src/components/data/radio-group/radio-group.context.ts +14 -0
  203. package/src/components/data/radio-group/radio-group.props.ts +12 -0
  204. package/src/components/data/rating/Rating.story.vue +3 -3
  205. package/src/components/data/rating/Rating.vue +18 -6
  206. package/src/components/data/rating/rating.props.ts +2 -10
  207. package/src/components/data/select/Select.story.vue +21 -14
  208. package/src/components/data/select/Select.vue +44 -31
  209. package/src/components/data/slider/Slider.vue +30 -0
  210. package/src/components/data/slider/slider.props.ts +1 -16
  211. package/src/components/data/textarea/Textarea.story.vue +35 -35
  212. package/src/components/data/textarea/Textarea.vue +76 -87
  213. package/src/components/data/textarea/textarea.props.ts +7 -11
  214. package/src/components/data/toggle/Toggle.story.vue +66 -17
  215. package/src/components/data/toggle/Toggle.vue +53 -32
  216. package/src/components/data/toggle/toggle.props.ts +11 -1
  217. package/src/components/display/avatar/Avatar.story.vue +2 -2
  218. package/src/components/display/avatar/Avatar.vue +2 -3
  219. package/src/components/display/avatar/avatar.props.ts +2 -8
  220. package/src/components/display/card/Card.story.vue +2 -2
  221. package/src/components/display/card/Card.vue +2 -3
  222. package/src/components/display/card/card.props.ts +2 -7
  223. package/src/components/display/carousel/Carousel.story.vue +4 -4
  224. package/src/components/display/carousel/Carousel.vue +3 -4
  225. package/src/components/display/carousel/carousel.props.ts +3 -11
  226. package/src/components/display/countdown/Countdown.story.vue +4 -3
  227. package/src/components/display/countdown/Countdown.vue +4 -1
  228. package/src/components/display/countdown/countdown.context.ts +3 -0
  229. package/src/components/display/countdown/countdown.props.ts +11 -9
  230. package/src/components/feedback/progress/Progress.story.vue +1 -1
  231. package/src/components/feedback/progress/Progress.vue +1 -2
  232. package/src/components/feedback/progress/progress.props.ts +1 -6
  233. package/src/components/layout/drawer/Drawer.story.vue +22 -22
  234. package/src/components/layout/drawer/Drawer.vue +12 -15
  235. package/src/components/layout/drawer/drawer.props.ts +1 -7
  236. package/src/components/layout/indicator/Indicator.story.vue +5 -5
  237. package/src/components/layout/indicator/Indicator.vue +1 -2
  238. package/src/components/layout/indicator/indicator.props.ts +1 -5
  239. package/src/components/layout/mask/Mask.story.vue +1 -1
  240. package/src/components/layout/mask/Mask.vue +1 -2
  241. package/src/components/layout/mask/mask.props.ts +1 -5
  242. package/src/components/media/img/Img.story.vue +214 -0
  243. package/src/components/media/img/Img.vue +189 -0
  244. package/src/components/media/img/img.context.ts +3 -0
  245. package/src/components/media/img/img.props.ts +88 -0
  246. package/src/components/media/img/img.types.ts +35 -0
  247. package/src/components/media/public.ts +1 -0
  248. package/src/components/media/public.types.ts +3 -0
  249. package/src/components/navigation/link/Link.story.vue +1 -1
  250. package/src/components/navigation/link/Link.vue +1 -2
  251. package/src/components/navigation/link/link.props.ts +1 -5
  252. package/src/components/navigation/menu/Menu.story.vue +4 -4
  253. package/src/components/navigation/menu/MenuItem.vue +4 -5
  254. package/src/components/navigation/menu/menu.props.ts +4 -15
  255. package/src/components/navigation/tab/Tab.story.vue +8 -8
  256. package/src/components/navigation/tab/Tab.vue +13 -6
  257. package/src/components/navigation/tab/tab.props.ts +2 -14
  258. package/src/composables/use-form-field.ts +16 -1
  259. package/src/config/config.type.ts +6 -0
  260. package/src/public.ts +1 -0
  261. package/src/types/utils.type.ts +0 -2
  262. package/dist/is-true-B9ixxcRp.js +0 -8
  263. package/dist/is-true-B9ixxcRp.js.map +0 -1
  264. package/dist/is-true-D7MXJ1b7.cjs +0 -2
  265. package/dist/is-true-D7MXJ1b7.cjs.map +0 -1
  266. package/dist/public-BMG6LJJ8.cjs +0 -2
  267. package/dist/public-BMG6LJJ8.cjs.map +0 -1
  268. package/dist/public-D5oNKqE5.js +0 -293
  269. package/dist/public-D5oNKqE5.js.map +0 -1
  270. package/dist/public-DBWGO13i.js +0 -616
  271. package/dist/public-DBWGO13i.js.map +0 -1
  272. package/dist/public-xug_FQFy.cjs +0 -2
  273. package/dist/public-xug_FQFy.cjs.map +0 -1
  274. package/dist/use-select-counter-BynHkRks.cjs +0 -2
  275. package/dist/use-select-counter-BynHkRks.cjs.map +0 -1
  276. package/dist/use-select-counter-D8ecaYEi.js.map +0 -1
  277. package/dist/utils/is-true.d.ts +0 -3
  278. package/dist/utils/is-true.d.ts.map +0 -1
  279. package/src/utils/is-true.ts +0 -12
@@ -1,7 +1,10 @@
1
1
  import { ButtonProps } from './button.props';
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
4
- declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<ButtonProps, {
5
+ $el: Readonly<import('vue').ShallowRef<any, any>>;
6
+ focus: () => any;
7
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
8
  click: (event: MouseEvent) => any;
6
9
  }, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
7
10
  onClick?: ((event: MouseEvent) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/Button.vue"],"names":[],"mappings":"AAiHA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;wBAsC5B,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;;;;cA+HJ,CAAC,KAAK,IAAiB,KAAK,GAAG;;cAC/B,CAAC,KAAK,IAAiB,KAAK,GAAG;EAUzC,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/Button.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;wBAsC5B,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;;;;;;;cAwIJ,CAAC,KAAK,IAAiB,KAAK,GAAG;;cAC/B,CAAC,KAAK,IAAiB,KAAK,GAAG;EAazC,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,4 +1,3 @@
1
- import { Booleanish } from '../../../types/utils.type';
2
1
  import { ButtonHTMLAttributes } from 'vue';
3
2
  import { RouteLocationRaw } from 'vue-router';
4
3
  import { ButtonBehavior, ButtonColor, ButtonShape, ButtonSize, ButtonVariant } from './button.types';
@@ -48,7 +47,7 @@ export interface ButtonProps extends ButtonConfigurableProps, NativeButton {
48
47
  * When `true`, displays a loading spinner and disables the button.
49
48
  * Supports both `boolean` and string-based `true`/`false`.
50
49
  */
51
- loading?: Booleanish;
50
+ loading?: boolean;
52
51
  /**
53
52
  * If provided, the component renders as a `RouterLink`.
54
53
  * Can be a string path or a RouteLocation object.
@@ -1 +1 @@
1
- {"version":3,"file":"button.props.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEzG,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAA;IAEzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB;AAED;;GAEG;AACH,UAAU,YAAY;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAA;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAA;IAE3C;;OAEG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAA;CACpC;AAED,MAAM,WAAW,WAAY,SAAQ,uBAAuB,EAAE,YAAY;IACxE;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,CAAA;IAEpB;;;OAGG;IACH,EAAE,CAAC,EAAE,gBAAgB,CAAA;CACtB"}
1
+ {"version":3,"file":"button.props.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACzG,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB;AACD;;GAEG;AACH,UAAU,YAAY;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAA;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAA;IAC3C;;OAEG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAA;CACpC;AACD,MAAM,WAAW,WAAY,SAAQ,uBAAuB,EAAE,YAAY;IACxE;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,EAAE,CAAC,EAAE,gBAAgB,CAAA;CACtB"}
@@ -2,16 +2,16 @@ import { DropdownProps } from './dropdown.props';
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
4
4
  declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<DropdownProps, {
5
- show: () => void;
6
- hide: () => void;
5
+ open: () => void;
6
+ close: () => void;
7
7
  toggle: () => void;
8
- $ref: Readonly<import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>>;
8
+ $el: Readonly<import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>>;
9
9
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
- hide: () => any;
11
- show: () => any;
10
+ open: () => any;
11
+ close: () => any;
12
12
  }, string, import('vue').PublicProps, Readonly<DropdownProps> & Readonly<{
13
- onHide?: (() => any) | undefined;
14
- onShow?: (() => any) | undefined;
13
+ onOpen?: (() => any) | undefined;
14
+ onClose?: (() => any) | undefined;
15
15
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
16
16
  trigger?: (props: {}) => any;
17
17
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/dropdown/Dropdown.vue"],"names":[],"mappings":"AAmOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;wBAchC,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;;;;;;;;;;;cAoPJ,CAAC,KAAK,IAAgB,KAAK,GAAG;;cAC9B,CAAC,KAAK,IAAgB,KAAK,GAAG;EAaxC,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/dropdown/Dropdown.vue"],"names":[],"mappings":"AAkOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;wBAchC,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;;;;;;;;;;;cAmPJ,CAAC,KAAK,IAAgB,KAAK,GAAG;;cAC9B,CAAC,KAAK,IAAgB,KAAK,GAAG;EAaxC,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,4 +1,3 @@
1
- import { Booleanish } from '../../../types/utils.type';
2
1
  import { ClassValue } from 'vue';
3
2
  import { DropdownAlign, DropdownSide, DropdownTriggerAction } from './dropdown.types';
4
3
  export interface DropdownConfigurableProps {
@@ -44,7 +43,7 @@ export interface DropdownProps extends DropdownConfigurableProps {
44
43
  *
45
44
  * @default false
46
45
  */
47
- open?: Booleanish;
46
+ open?: boolean;
48
47
  /**
49
48
  * CSS class to apply to the trigger element.
50
49
  *
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.props.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/dropdown/dropdown.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAE1F,MAAM,WAAW,yBAAyB;IACxC;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,aAAa,CAAA;IAErB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,YAAY,CAAA;IAEnB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,qBAAqB,CAAA;IAErC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,aAAc,SAAQ,yBAAyB;IAC9D;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,UAAU,CAAA;IAEzB;;;;OAIG;IACH,YAAY,CAAC,EAAE,UAAU,CAAA;CAC1B"}
1
+ {"version":3,"file":"dropdown.props.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/dropdown/dropdown.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAC1F,MAAM,WAAW,yBAAyB;IACxC;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,qBAAqB,CAAA;IACrC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AACD,MAAM,WAAW,aAAc,SAAQ,yBAAyB;IAC9D;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;;;OAIG;IACH,YAAY,CAAC,EAAE,UAAU,CAAA;IACzB;;;;OAIG;IACH,YAAY,CAAC,EAAE,UAAU,CAAA;CAC1B"}
@@ -10,9 +10,11 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<ModalP
10
10
  */
11
11
  modelValue?: boolean;
12
12
  }, {
13
- present: () => void;
14
- dismiss: () => void;
13
+ $el: Readonly<import('vue').ShallowRef<HTMLDialogElement | null, HTMLDialogElement | null>>;
14
+ open: () => void;
15
+ close: () => void;
15
16
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ open: () => any;
16
18
  close: () => any;
17
19
  "update:modelValue": (value: boolean) => any;
18
20
  }, string, import('vue').PublicProps, Readonly<ModalProps & {
@@ -24,6 +26,7 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<ModalP
24
26
  */
25
27
  modelValue?: boolean;
26
28
  }> & Readonly<{
29
+ onOpen?: (() => any) | undefined;
27
30
  onClose?: (() => any) | undefined;
28
31
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
29
32
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/modal/Modal.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;wBAU1B,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;IA2ElB;;;;;OAKG;iBACU,OAAO;;;;;;;;IANpB;;;;;OAKG;iBACU,OAAO;;;;;cA+DN,CAAC,KAAK,IAAgB,KAAK,GAAG;;cAC9B,CAAC,KAAK,IAAgB,KAAK,GAAG;EAaxC,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/modal/Modal.vue"],"names":[],"mappings":"AAgHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;wBAU1B,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;IA8ElB;;;;;OAKG;iBACU,OAAO;;;;;;;;;;IANpB;;;;;OAKG;iBACU,OAAO;;;;;;cA8DN,CAAC,KAAK,IAAgB,KAAK,GAAG;;cAC9B,CAAC,KAAK,IAAgB,KAAK,GAAG;EAaxC,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,4 +1,3 @@
1
- import { Booleanish } from '../../../types/utils.type';
2
1
  import { ModalPlacement } from './modal.types';
3
2
  export interface ModalConfigurableProps {
4
3
  /**
@@ -17,7 +16,7 @@ export interface ModalConfigurableProps {
17
16
  *
18
17
  * @default false
19
18
  */
20
- closeOnBackdrop?: Booleanish;
19
+ closeOnBackdrop?: boolean;
21
20
  /**
22
21
  * When `true`, the modal content is rendered even while the modal is closed.
23
22
  * Useful to preserve internal component state between open/close cycles.
@@ -25,7 +24,7 @@ export interface ModalConfigurableProps {
25
24
  *
26
25
  * @default false
27
26
  */
28
- loadContentWhenClose?: Booleanish;
27
+ loadContentWhenClose?: boolean;
29
28
  }
30
29
  export interface ModalProps extends ModalConfigurableProps {
31
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"modal.props.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/modal/modal.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAE1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,UAAU,CAAA;IAE5B;;;;;;OAMG;IACH,oBAAoB,CAAC,EAAE,UAAU,CAAA;CAClC;AAED,MAAM,WAAW,UAAW,SAAQ,sBAAsB;CAAG"}
1
+ {"version":3,"file":"modal.props.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/modal/modal.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnD,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;;;OAMG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AACD,MAAM,WAAW,UAAW,SAAQ,sBAAsB;CAAG"}
@@ -1,13 +1,12 @@
1
1
  import { t as e } from "../../symbol-CziS7Pho.js";
2
2
  import { n as t } from "../../use-component-config-CaJQbJOW.js";
3
3
  import { n, t as r } from "../../build-class.util-Cp-ZBFgO.js";
4
- import { t as i } from "../../is-true-B9ixxcRp.js";
5
- import { t as a } from "../../_plugin-vue_export-helper-B3ysoDQm.js";
6
- import { t as o } from "../../ClassWrapper-DdnnHfAj.js";
7
- import { Fragment as s, Teleport as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, guardReactiveProps as g, mergeModels as _, mergeProps as v, normalizeClass as y, normalizeProps as b, openBlock as x, renderSlot as S, resolveDynamicComponent as C, shallowRef as w, unref as T, useAttrs as E, useCssVars as D, useId as O, useModel as k, useTemplateRef as A, watch as j, withCtx as M, withKeys as N, withModifiers as P } from "vue";
8
- import { RouterLink as F } from "vue-router";
4
+ import { t as i } from "../../_plugin-vue_export-helper-B3ysoDQm.js";
5
+ import { t as a } from "../../ClassWrapper-DdnnHfAj.js";
6
+ import { Fragment as o, Teleport as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeModels as g, mergeProps as _, normalizeClass as v, normalizeProps as y, openBlock as b, renderSlot as x, resolveDynamicComponent as S, shallowRef as C, unref as w, useAttrs as T, useCssVars as E, useId as D, useModel as O, useTemplateRef as k, watch as A, withCtx as j, withKeys as M, withModifiers as N } from "vue";
7
+ import { RouterLink as P } from "vue-router";
9
8
  //#region src/components/actions/button/button.context.ts
10
- var I = e("button"), L = {
9
+ var F = e("button"), I = {
11
10
  neutral: "btn-neutral",
12
11
  primary: "btn-primary",
13
12
  secondary: "btn-secondary",
@@ -16,31 +15,31 @@ var I = e("button"), L = {
16
15
  success: "btn-success",
17
16
  warning: "btn-warning",
18
17
  error: "btn-error"
19
- }, R = {
18
+ }, L = {
20
19
  solid: "btn-solid",
21
20
  outline: "btn-outline",
22
21
  dash: "btn-dash",
23
22
  soft: "btn-soft",
24
23
  ghost: "btn-ghost",
25
24
  link: "btn-link"
26
- }, z = {
25
+ }, R = {
27
26
  xs: "btn-xs",
28
27
  sm: "btn-sm",
29
28
  md: "btn-md",
30
29
  lg: "btn-lg",
31
30
  xl: "btn-xl"
32
- }, B = {
31
+ }, z = {
33
32
  wide: "btn-wide",
34
33
  block: "btn-block",
35
34
  square: "btn-square",
36
35
  circle: "btn-circle"
37
- }, V = {
36
+ }, B = {
38
37
  active: "btn-active",
39
38
  disabled: "btn-disabled"
40
- }, H = /* @__PURE__ */ h({
39
+ }, V = /* @__PURE__ */ m({
41
40
  __name: "Button",
42
41
  props: {
43
- loading: { type: [Boolean, String] },
42
+ loading: { type: Boolean },
44
43
  to: {},
45
44
  color: {},
46
45
  variant: {},
@@ -52,31 +51,35 @@ var I = e("button"), L = {
52
51
  form: {}
53
52
  },
54
53
  emits: ["click"],
55
- setup(e) {
56
- let a = e, o = t(I, a, { type: "button" }), { class: s, ...c } = E(), f = l(() => a.to ? F : "button"), m = l(() => a.disabled ? V.disabled : ""), h = l(() => a.behavior === "disabled" || i(a.disabled) ? {
54
+ setup(e, { expose: i }) {
55
+ let a = e, o = t(F, a, { type: "button" }), { class: s, ...d } = T(), p = c(() => a.to ? P : "button"), m = c(() => a.disabled ? B.disabled : ""), h = c(() => a.behavior === "disabled" || a.disabled ? {
57
56
  disabled: !0,
58
57
  "aria-disabled": !0,
59
58
  tabIndex: -1
60
- } : {});
61
- return (e, t) => (x(), u(C(f.value), v({
62
- type: T(o).type,
63
- class: ["btn", T(r)([
64
- T(n)(L, T(o).color),
65
- T(n)(R, T(o).variant),
66
- T(n)(z, T(o).size),
67
- T(n)(B, T(o).shape),
68
- T(n)(V, T(o).behavior),
59
+ } : {}), g = k("button-el");
60
+ return i({
61
+ $el: g,
62
+ focus: () => g.value?.focus()
63
+ }), (e, t) => (b(), l(S(p.value), _({
64
+ ref: "button-el",
65
+ type: w(o).type,
66
+ class: ["btn", w(r)([
67
+ w(n)(I, w(o).color),
68
+ w(n)(L, w(o).variant),
69
+ w(n)(R, w(o).size),
70
+ w(n)(z, w(o).shape),
71
+ w(n)(B, w(o).behavior),
69
72
  m.value,
70
- T(s)
73
+ w(s)
71
74
  ])]
72
75
  }, {
73
- ...c,
76
+ ...d,
74
77
  ...h.value
75
78
  }, {
76
- to: T(o).to,
79
+ to: w(o).to,
77
80
  onClick: t[0] ||= (t) => e.$emit("click", t)
78
81
  }), {
79
- default: M(() => [T(i)(T(o).loading) ? S(e.$slots, "loading", { key: 0 }, () => [t[1] ||= p("span", { class: "loading loading-spinner" }, null, -1)]) : d("", !0), S(e.$slots, "default")]),
82
+ default: j(() => [w(o).loading ? x(e.$slots, "loading", { key: 0 }, () => [t[1] ||= f("span", { class: "loading loading-spinner" }, null, -1)]) : u("", !0), x(e.$slots, "default")]),
80
83
  _: 3
81
84
  }, 16, [
82
85
  "type",
@@ -84,19 +87,19 @@ var I = e("button"), L = {
84
87
  "to"
85
88
  ]));
86
89
  }
87
- }), U = e("dropdown"), W = {
90
+ }), H = e("dropdown"), U = {
88
91
  center: "dropdown-center",
89
92
  end: "dropdown-end",
90
93
  start: "dropdown-start"
91
- }, G = {
94
+ }, W = {
92
95
  bottom: "dropdown-bottom",
93
96
  top: "dropdown-top",
94
97
  left: "dropdown-left",
95
98
  right: "dropdown-right"
96
- }, K = /*#__PURE__*/ a(/* @__PURE__ */ h({
99
+ }, G = /*#__PURE__*/ i(/* @__PURE__ */ m({
97
100
  __name: "Dropdown",
98
101
  props: {
99
- open: { type: [Boolean, String] },
102
+ open: { type: Boolean },
100
103
  triggerClass: { type: [
101
104
  Boolean,
102
105
  null,
@@ -116,128 +119,128 @@ var I = e("button"), L = {
116
119
  triggerAction: {},
117
120
  debounce: {}
118
121
  },
119
- emits: ["show", "hide"],
122
+ emits: ["open", "close"],
120
123
  setup(e, { expose: i, emit: a }) {
121
- D((e) => ({ v4930e95e: d }));
122
- let o = A("popover-el"), s = O(), l = `dropdown-${s}`, d = `--anchor-${s}`, m = a, h = t(U, e, {
124
+ E((e) => ({ d3d75078: p }));
125
+ let o = k("popover-el"), c = D(), u = `dropdown-${c}`, p = `--anchor-${c}`, m = a, g = t(H, e, {
123
126
  align: "start",
124
127
  side: "bottom",
125
128
  triggerAction: "click",
126
129
  open: !1,
127
130
  debounce: 500
128
- }), { class: _, ...v } = E();
131
+ }), { class: _, ...S } = T();
129
132
  function C() {
130
133
  o.value?.showPopover();
131
134
  }
132
- function w() {
135
+ function O() {
133
136
  o.value?.hidePopover();
134
137
  }
135
- function k() {
138
+ function A() {
136
139
  let e = o.value;
137
- e && (e.matches(":popover-open") ? w() : C());
140
+ e && (e.matches(":popover-open") ? O() : C());
138
141
  }
139
142
  let j;
140
143
  function M() {
141
- if (!(h.value.triggerAction !== "click" && h.value.triggerAction !== "hover")) {
142
- if (j === "click" && h.value.triggerAction === "hover") {
143
- w();
144
+ if (!(g.value.triggerAction !== "click" && g.value.triggerAction !== "hover")) {
145
+ if (j === "click" && g.value.triggerAction === "hover") {
146
+ O();
144
147
  return;
145
148
  }
146
- if (h.value.triggerAction === "hover") {
149
+ if (g.value.triggerAction === "hover") {
147
150
  j = "click", C();
148
151
  return;
149
152
  }
150
- j = "click", k();
153
+ j = "click", A();
151
154
  }
152
155
  }
153
156
  let N;
154
157
  function P() {
155
- h.value.triggerAction === "hover" && (j = "hover", clearTimeout(N), C());
158
+ g.value.triggerAction === "hover" && (j = "hover", clearTimeout(N), C());
156
159
  }
157
160
  function F() {
158
- h.value.triggerAction === "hover" && (clearTimeout(N), N = setTimeout(() => {
159
- j === "hover" && w();
160
- }, h.value.debounce));
161
+ g.value.triggerAction === "hover" && (clearTimeout(N), N = setTimeout(() => {
162
+ j === "hover" && O();
163
+ }, g.value.debounce));
161
164
  }
162
165
  function I(e) {
163
- h.value.triggerAction === "context-menu" && (e.preventDefault(), j = "context-menu", k());
166
+ g.value.triggerAction === "context-menu" && (e.preventDefault(), j = "context-menu", A());
164
167
  }
165
168
  function L(e) {
166
169
  [
167
170
  "Enter",
168
171
  " ",
169
172
  "Escape"
170
- ].includes(e.key) && (e.preventDefault(), e.key === "Escape" ? w() : k());
173
+ ].includes(e.key) && (e.preventDefault(), e.key === "Escape" ? O() : A());
171
174
  }
172
175
  function R(e) {
173
- e.newState === "open" ? m("show") : m("hide");
176
+ e.newState === "open" ? m("open") : m("close");
174
177
  }
175
178
  return i({
176
- show: C,
177
- hide: w,
178
- toggle: k,
179
- $ref: o
180
- }), (e, t) => (x(), f("div", b(g(v)), [p("button", {
181
- class: y(["dropdown-trigger", T(h).triggerClass]),
179
+ open: C,
180
+ close: O,
181
+ toggle: A,
182
+ $el: o
183
+ }), (e, t) => (b(), d("div", y(h(S)), [f("button", {
184
+ class: v(["dropdown-trigger", w(g).triggerClass]),
182
185
  onClick: M,
183
186
  onMouseenter: P,
184
187
  onMouseleave: F,
185
188
  onContextmenu: I,
186
189
  onKeyup: L
187
- }, [S(e.$slots, "trigger", {}, void 0, !0)], 34), (x(), u(c, { to: "body" }, [p("div", {
190
+ }, [x(e.$slots, "trigger", {}, void 0, !0)], 34), (b(), l(s, { to: "body" }, [f("div", {
188
191
  ref: "popover-el",
189
192
  popover: "",
190
- id: l,
191
- class: y(["dropdown", T(r)([
192
- T(n)(G, T(h).side),
193
- T(n)(W, T(h).align),
194
- T(_),
195
- T(h).contentClass
193
+ id: u,
194
+ class: v(["dropdown", w(r)([
195
+ w(n)(W, w(g).side),
196
+ w(n)(U, w(g).align),
197
+ w(_),
198
+ w(g).contentClass
196
199
  ])]),
197
200
  onMouseenter: P,
198
201
  onMouseleave: F,
199
202
  onBeforetoggle: R
200
- }, [S(e.$slots, "default", {}, void 0, !0)], 34)]))], 16));
203
+ }, [x(e.$slots, "default", {}, void 0, !0)], 34)]))], 16));
201
204
  }
202
- }), [["__scopeId", "data-v-64ff22da"]]), q = e("fab"), J = {
205
+ }), [["__scopeId", "data-v-44ca398b"]]), K = e("fab"), q = {
203
206
  key: 0,
204
207
  class: "fab-close"
205
- }, Y = {
208
+ }, J = {
206
209
  key: 1,
207
210
  class: "fab-main-action"
208
- }, X = { flower: "fab-flower" }, Z = /* @__PURE__ */ h({
211
+ }, Y = { flower: "fab-flower" }, X = /* @__PURE__ */ m({
209
212
  __name: "Fab",
210
213
  props: { mode: {} },
211
214
  setup(e) {
212
- let r = t(q, e);
213
- return (e, t) => (x(), f("div", { class: y(["fab", T(n)(X, T(r).mode)]) }, [
214
- e.$slots.close ? (x(), f("div", J, [S(e.$slots, "close")])) : d("", !0),
215
- e.$slots.mainAction ? (x(), f("div", Y, [S(e.$slots, "main-action")])) : d("", !0),
216
- S(e.$slots, "default")
215
+ let r = t(K, e);
216
+ return (e, t) => (b(), d("div", { class: v(["fab", w(n)(Y, w(r).mode)]) }, [
217
+ e.$slots.close ? (b(), d("div", q, [x(e.$slots, "close")])) : u("", !0),
218
+ e.$slots.mainAction ? (b(), d("div", J, [x(e.$slots, "main-action")])) : u("", !0),
219
+ x(e.$slots, "default")
217
220
  ], 2));
218
221
  }
219
- }), Q = e("modal"), $ = {
222
+ }), Z = e("modal"), Q = {
220
223
  key: 0,
221
224
  class: "modal-box"
222
- }, ee = {
225
+ }, $ = {
223
226
  key: 0,
224
227
  class: "modal-action"
225
- }, te = {
228
+ }, ee = {
226
229
  key: 1,
227
230
  method: "dialog",
228
231
  class: "modal-backdrop"
229
- }, ne = {
232
+ }, te = {
230
233
  top: "modal-top",
231
234
  middle: "modal-middle",
232
235
  bottom: "modal-bottom",
233
236
  start: "modal-start",
234
237
  end: "modal-end"
235
- }, re = /* @__PURE__ */ h({
238
+ }, ne = /* @__PURE__ */ m({
236
239
  __name: "Modal",
237
- props: /*@__PURE__*/ _({
240
+ props: /*@__PURE__*/ g({
238
241
  placement: {},
239
- closeOnBackdrop: { type: [Boolean, String] },
240
- loadContentWhenClose: { type: [Boolean, String] }
242
+ closeOnBackdrop: { type: Boolean },
243
+ loadContentWhenClose: { type: Boolean }
241
244
  }, {
242
245
  modelValue: {
243
246
  type: Boolean,
@@ -245,45 +248,46 @@ var I = e("button"), L = {
245
248
  },
246
249
  modelModifiers: {}
247
250
  }),
248
- emits: /*@__PURE__*/ _(["close"], ["update:modelValue"]),
251
+ emits: /*@__PURE__*/ g(["open", "close"], ["update:modelValue"]),
249
252
  setup(e, { expose: n, emit: r }) {
250
- let a = A("dialog-el"), o = k(e, "modelValue"), s = t(Q, e, {
253
+ let i = k("dialog-el"), a = O(e, "modelValue"), o = t(Z, e, {
251
254
  placement: void 0,
252
255
  closeOnBackdrop: !1,
253
256
  loadContentWhenClose: !1
254
- }), c = r, u = w(!1);
255
- j(o, (e) => {
256
- e && (u.value = !0);
257
+ }), s = r, l = C(!1);
258
+ A(a, (e) => {
259
+ e && (l.value = !0);
257
260
  });
258
- let m = l(() => i(s.value.loadContentWhenClose) ? !0 : o.value || u.value);
259
- j(o, (e) => {
260
- a.value && (e ? a.value.showModal() : a.value.close());
261
+ let p = c(() => o.value.loadContentWhenClose ? !0 : a.value || l.value);
262
+ A(a, (e) => {
263
+ i.value && (e ? (i.value.showModal(), s("open")) : i.value.close());
261
264
  }, { immediate: !0 });
265
+ function m() {
266
+ a.value = !0;
267
+ }
262
268
  function h() {
263
- o.value = !0;
269
+ a.value = !1;
264
270
  }
265
271
  function g() {
266
- o.value = !1;
267
- }
268
- function _() {
269
- o.value = !1, c("close");
272
+ a.value = !1, s("close");
270
273
  }
271
274
  return n({
272
- present: h,
273
- dismiss: g
274
- }), (e, t) => (x(), f("dialog", {
275
+ $el: i,
276
+ open: m,
277
+ close: h
278
+ }), (e, t) => (b(), d("dialog", {
275
279
  ref: "dialog-el",
276
- class: y(["modal", [T(s).placement && ne[T(s).placement]]]),
277
- onClose: _
278
- }, [m.value ? (x(), f("div", $, [S(e.$slots, "default"), e.$slots.actions ? (x(), f("div", ee, [S(e.$slots, "actions")])) : d("", !0)])) : d("", !0), T(i)(T(s).closeOnBackdrop) ? d("", !0) : (x(), f("form", te, [...t[0] ||= [p("button", null, "close", -1)]]))], 34));
280
+ class: v(["modal", [w(o).placement && te[w(o).placement]]]),
281
+ onClose: g
282
+ }, [p.value ? (b(), d("div", Q, [x(e.$slots, "default"), e.$slots.actions ? (b(), d("div", $, [x(e.$slots, "actions")])) : u("", !0)])) : u("", !0), w(o).closeOnBackdrop ? u("", !0) : (b(), d("form", ee, [...t[0] ||= [f("button", null, "close", -1)]]))], 34));
279
283
  }
280
- }), ie = e("swap"), ae = ["onKeydown"], oe = {
284
+ }), re = e("swap"), ie = ["onKeydown"], ae = {
281
285
  flip: "swap-flip",
282
286
  rotate: "swap-rotate"
283
- }, se = /* @__PURE__ */ h({
287
+ }, oe = /* @__PURE__ */ m({
284
288
  __name: "Swap",
285
- props: /*@__PURE__*/ _({
286
- indeterminate: { type: [Boolean, String] },
289
+ props: /*@__PURE__*/ g({
290
+ indeterminate: { type: Boolean },
287
291
  variant: {}
288
292
  }, {
289
293
  modelValue: {
@@ -294,26 +298,26 @@ var I = e("button"), L = {
294
298
  }),
295
299
  emits: ["update:modelValue"],
296
300
  setup(e) {
297
- let r = k(e, "modelValue"), a = e, c = t(ie, a, {});
298
- function l() {
299
- i(a.indeterminate) || (r.value = !r.value);
301
+ let r = O(e, "modelValue"), i = e, s = t(re, i, {});
302
+ function c() {
303
+ i.indeterminate || (r.value = !r.value);
300
304
  }
301
- return (t, a) => (x(), f("div", {
302
- class: y(["swap", [T(n)(oe, T(c).variant), T(i)(e.indeterminate) ? "swap-indeterminate" : r.value && "swap-active"]]),
305
+ return (t, i) => (b(), d("div", {
306
+ class: v(["swap", [w(n)(ae, w(s).variant), e.indeterminate ? "swap-indeterminate" : r.value && "swap-active"]]),
303
307
  role: "button",
304
308
  tabindex: "0",
305
- onClick: l,
306
- onKeydown: N(P(l, ["prevent"]), ["enter", "space"])
307
- }, [T(i)(e.indeterminate) && t.$slots.indeterminate ? S(t.$slots, "indeterminate", { key: 0 }) : (x(), f(s, { key: 1 }, [m(o, { class: "swap-on" }, {
308
- default: M(() => [S(t.$slots, "on")]),
309
+ onClick: c,
310
+ onKeydown: M(N(c, ["prevent"]), ["enter", "space"])
311
+ }, [e.indeterminate && t.$slots.indeterminate ? x(t.$slots, "indeterminate", { key: 0 }) : (b(), d(o, { key: 1 }, [p(a, { class: "swap-on" }, {
312
+ default: j(() => [x(t.$slots, "on")]),
309
313
  _: 3
310
- }), m(o, { class: "swap-off" }, {
311
- default: M(() => [S(t.$slots, "off")]),
314
+ }), p(a, { class: "swap-off" }, {
315
+ default: j(() => [x(t.$slots, "off")]),
312
316
  _: 3
313
- })], 64))], 42, ae));
317
+ })], 64))], 42, ie));
314
318
  }
315
319
  });
316
320
  //#endregion
317
- export { H as Button, K as Dropdown, Z as Fab, re as Modal, se as Swap };
321
+ export { V as Button, G as Dropdown, X as Fab, ne as Modal, oe as Swap };
318
322
 
319
323
  //# sourceMappingURL=public.es.js.map