@kernel4632/kima 0.12.2 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/dist/THIRD_PARTY_NOTICES.txt +100 -1712
  2. package/dist/components/containment/list-item.ce.vue_vue_type_style_index_0_scoped_fd20973a_lang.css +1 -0
  3. package/dist/components/containment/snackbar.ce.vue_vue_type_style_index_0_scoped_3c62e4c7_lang.css +1 -0
  4. package/dist/components/core/badge.ce.vue_vue_type_style_index_0_scoped_9ccfbe76_lang.css +1 -0
  5. package/dist/components/core/button.ce.vue_vue_type_style_index_0_scoped_1c004601_lang.css +1 -0
  6. package/dist/components/core/checkbox.ce.vue_vue_type_style_index_0_scoped_cc2716e6_lang.css +1 -0
  7. package/dist/components/core/combobox.ce.vue_vue_type_style_index_0_scoped_ba7220f2_lang.css +1 -0
  8. package/dist/components/core/dialog.ce.vue_vue_type_style_index_0_scoped_09f96946_lang.css +1 -0
  9. package/dist/components/core/divider.ce.vue_vue_type_style_index_0_scoped_a401c826_lang.css +1 -0
  10. package/dist/components/core/fab-menu.ce.vue_vue_type_style_index_0_scoped_7c25d968_lang.css +1 -0
  11. package/dist/components/core/fab.ce.vue_vue_type_style_index_0_scoped_4e1de7c1_lang.css +1 -0
  12. package/dist/components/core/icon.ce.vue_vue_type_style_index_0_scoped_76c47d5b_lang.css +1 -0
  13. package/dist/components/core/loading-indicator.ce.vue_vue_type_style_index_0_scoped_6c314bb6_lang.css +1 -0
  14. package/dist/components/core/menu.ce.vue_vue_type_style_index_0_scoped_16ed5f4d_lang.css +1 -0
  15. package/dist/components/core/morph-field.ce.vue_vue_type_style_index_0_scoped_ac757a01_lang.css +1 -0
  16. package/dist/components/core/progress.ce.vue_vue_type_style_index_0_scoped_2c836bfd_lang.css +1 -0
  17. package/dist/components/core/select.ce.vue_vue_type_style_index_0_scoped_bf4d9de4_lang.css +1 -0
  18. package/dist/components/core/shape.ce.vue_vue_type_style_index_0_scoped_5db1cc46_lang.css +1 -0
  19. package/dist/components/core/slider.ce.vue_vue_type_style_index_0_scoped_3cadd726_lang.css +1 -0
  20. package/dist/components/core/split-button.ce.vue_vue_type_style_index_0_scoped_a8ef75a5_lang.css +1 -0
  21. package/dist/components/core/switch.ce.vue_vue_type_style_index_0_scoped_5b126252_lang.css +1 -0
  22. package/dist/components/core/tabs.ce.vue_vue_type_style_index_0_scoped_f0ece5c6_lang.css +1 -0
  23. package/dist/components/core/text-field.ce.vue_vue_type_style_index_0_scoped_89a58b79_lang.css +1 -0
  24. package/dist/components/core/tooltip.ce.vue_vue_type_style_index_0_scoped_4fd8d52e_lang.css +1 -0
  25. package/dist/components/core/tree.ce.vue_vue_type_style_index_0_scoped_d1e95486_lang.css +1 -0
  26. package/dist/components/data/table.ce.vue_vue_type_style_index_0_scoped_de17ceaa_lang.css +1 -0
  27. package/dist/components/display/image.ce.vue_vue_type_style_index_0_scoped_08ac96f2_lang.css +1 -0
  28. package/dist/components/display/image.ce.vue_vue_type_style_index_1_lang.css +1 -0
  29. package/dist/components/display/skeleton.ce.vue_vue_type_style_index_0_scoped_841c5f0b_lang.css +1 -0
  30. package/dist/components/input/radio-group.ce.vue_vue_type_style_index_0_scoped_554d6257_lang.css +1 -0
  31. package/dist/components/input/textarea.ce.vue_vue_type_style_index_0_scoped_f6be6515_lang.css +1 -0
  32. package/dist/components/interaction/popover.ce.vue_vue_type_style_index_0_scoped_4e67e579_lang.css +1 -0
  33. package/dist/components/navigation/breadcrumb-item.ce.vue_vue_type_style_index_0_scoped_4c179b2f_lang.css +1 -0
  34. package/dist/components/navigation/breadcrumb-item.ce.vue_vue_type_style_index_1_lang.css +1 -0
  35. package/dist/components/navigation/breadcrumb.ce.vue_vue_type_style_index_0_scoped_f0e04345_lang.css +1 -0
  36. package/dist/components/navigation/collapsible.ce.vue_vue_type_style_index_0_scoped_eda74ecc_lang.css +1 -0
  37. package/dist/components/navigation/nav-item.ce.vue_vue_type_style_index_0_scoped_9f22b45d_lang.css +1 -0
  38. package/dist/kima-elements-core.js +38352 -33892
  39. package/dist/kima-elements.js +47432 -116752
  40. package/dist/kima.js +36 -139
  41. package/dist/style.css +37 -237
  42. package/dist/styles/_tokens.css +1 -1
  43. package/dist/styles/badge.css +1 -1
  44. package/dist/styles/breadcrumb-item.css +4 -0
  45. package/dist/styles/breadcrumb.css +1 -2
  46. package/dist/styles/button.css +1 -1
  47. package/dist/styles/checkbox.css +2 -2
  48. package/dist/styles/collapsible.css +2 -2
  49. package/dist/styles/combobox.css +2 -2
  50. package/dist/styles/core.css +36 -43
  51. package/dist/styles/dialog.css +3 -3
  52. package/dist/styles/divider.css +1 -1
  53. package/dist/styles/fab-menu.css +3 -0
  54. package/dist/styles/fab.css +2 -0
  55. package/dist/styles/icon.css +1 -1
  56. package/dist/styles/image.css +3 -3
  57. package/dist/styles/list-item.css +2 -0
  58. package/dist/styles/loading-indicator.css +2 -0
  59. package/dist/styles/menu.css +2 -2
  60. package/dist/styles/morph-field.css +3 -0
  61. package/dist/styles/nav-item.css +3 -0
  62. package/dist/styles/popover.css +2 -2
  63. package/dist/styles/progress.css +1 -1
  64. package/dist/styles/radio-group.css +2 -2
  65. package/dist/styles/select.css +2 -2
  66. package/dist/styles/shape.css +2 -0
  67. package/dist/styles/skeleton.css +1 -1
  68. package/dist/styles/slider.css +1 -1
  69. package/dist/styles/snackbar.css +3 -0
  70. package/dist/styles/split-button.css +3 -0
  71. package/dist/styles/switch.css +1 -2
  72. package/dist/styles/table.css +2 -2
  73. package/dist/styles/tabs.css +1 -1
  74. package/dist/styles/text-field.css +2 -2
  75. package/dist/styles/textarea.css +1 -2
  76. package/dist/styles/tooltip.css +1 -1
  77. package/dist/styles/tree.css +2 -2
  78. package/dist/vue/components/containment/list-item.ce.js +73 -0
  79. package/dist/vue/components/containment/snackbar.ce.js +203 -0
  80. package/dist/vue/components/core/badge.ce.js +40 -27
  81. package/dist/vue/components/core/button.ce.js +51 -28
  82. package/dist/vue/components/core/checkbox.ce.js +65 -50
  83. package/dist/vue/components/core/combobox.ce.js +287 -227
  84. package/dist/vue/components/core/dialog.ce.js +52 -41
  85. package/dist/vue/components/core/divider.ce.js +1 -1
  86. package/dist/vue/components/core/fab-menu.ce.js +112 -0
  87. package/dist/vue/components/core/fab.ce.js +63 -0
  88. package/dist/vue/components/core/icon.ce.js +2 -3
  89. package/dist/vue/components/core/loading-indicator.ce.js +86 -0
  90. package/dist/vue/components/core/menu.ce.js +140 -103
  91. package/dist/vue/components/core/morph-field.ce.js +139 -0
  92. package/dist/vue/components/core/progress.ce.js +787 -24
  93. package/dist/vue/components/core/select.ce.js +260 -219
  94. package/dist/vue/components/core/shape.ce.js +19 -0
  95. package/dist/vue/components/core/slider.ce.js +389 -77
  96. package/dist/vue/components/core/split-button.ce.js +156 -0
  97. package/dist/vue/components/core/switch.ce.js +59 -65
  98. package/dist/vue/components/core/tabs.ce.js +91 -84
  99. package/dist/vue/components/core/text-field.ce.js +67 -95
  100. package/dist/vue/components/core/tooltip.ce.js +95 -96
  101. package/dist/vue/components/core/tree.ce.js +128 -200
  102. package/dist/vue/components/data/table.ce.js +249 -227
  103. package/dist/vue/components/display/image.ce.js +65 -121
  104. package/dist/vue/components/display/skeleton.ce.js +46 -33
  105. package/dist/vue/components/input/radio-group.ce.js +119 -53
  106. package/dist/vue/components/input/textarea.ce.js +124 -109
  107. package/dist/vue/components/interaction/popover.ce.js +78 -45
  108. package/dist/vue/components/navigation/breadcrumb-item.ce.js +197 -0
  109. package/dist/vue/components/navigation/breadcrumb.ce.js +71 -40
  110. package/dist/vue/components/navigation/collapsible.ce.js +45 -34
  111. package/dist/vue/components/navigation/nav-item.ce.js +79 -0
  112. package/dist/vue/internal/menu-items.js +51 -70
  113. package/dist/vue/utils/content-motion.js +36 -47
  114. package/dist/vue/utils/interaction.js +19 -68
  115. package/dist/vue/utils/loading-shapes.js +11 -0
  116. package/dist/vue/utils/motion.js +36 -40
  117. package/dist/vue/utils/navigation.js +1 -19
  118. package/dist/vue/utils/popup-manager.js +52 -0
  119. package/dist/vue/utils/popup-motion.js +18 -0
  120. package/dist/vue/utils/radius.js +81 -0
  121. package/dist/vue/utils/ripple.js +7 -7
  122. package/dist/vue/utils/shell.js +9 -24
  123. package/dist/vue/utils/snackbar-stack.js +57 -0
  124. package/package.json +2 -20
  125. package/dist/components/advanced-input/calendar.ce.vue_vue_type_style_index_0_scoped_43a5d854_lang.css +0 -1
  126. package/dist/components/advanced-input/date-range-picker.ce.vue_vue_type_style_index_0_scoped_8bcd6e19_lang.css +0 -1
  127. package/dist/components/advanced-input/editable.ce.vue_vue_type_style_index_0_scoped_82c96de0_lang.css +0 -1
  128. package/dist/components/advanced-input/mention.ce.vue_vue_type_style_index_0_scoped_e6d9ff72_lang.css +0 -1
  129. package/dist/components/advanced-input/range-slider.ce.vue_vue_type_style_index_0_scoped_cceb9717_lang.css +0 -1
  130. package/dist/components/advanced-input/time-range-picker.ce.vue_vue_type_style_index_0_scoped_52265737_lang.css +0 -1
  131. package/dist/components/advanced-input/transfer.ce.vue_vue_type_style_index_0_scoped_d1dddadf_lang.css +0 -1
  132. package/dist/components/content/chart.ce.vue_vue_type_style_index_0_scoped_b8556b1a_lang.css +0 -1
  133. package/dist/components/content/code-editor.ce.vue_vue_type_style_index_0_scoped_233308e5_lang.css +0 -1
  134. package/dist/components/content/equation.ce.vue_vue_type_style_index_0_scoped_e8f29ba6_lang.css +0 -1
  135. package/dist/components/content/heatmap.ce.vue_vue_type_style_index_0_scoped_c69a9531_lang.css +0 -1
  136. package/dist/components/content/rich-text-editor.ce.vue_vue_type_style_index_0_scoped_82e3193e_lang.css +0 -1
  137. package/dist/components/core/badge.ce.vue_vue_type_style_index_0_scoped_9dba943c_lang.css +0 -1
  138. package/dist/components/core/button-group.ce.vue_vue_type_style_index_0_scoped_8a4a723b_lang.css +0 -1
  139. package/dist/components/core/button.ce.vue_vue_type_style_index_0_scoped_ba403858_lang.css +0 -1
  140. package/dist/components/core/card.ce.vue_vue_type_style_index_0_scoped_6c915f03_lang.css +0 -1
  141. package/dist/components/core/cascader.ce.vue_vue_type_style_index_0_scoped_0ed26222_lang.css +0 -1
  142. package/dist/components/core/checkbox.ce.vue_vue_type_style_index_0_scoped_7c9707de_lang.css +0 -1
  143. package/dist/components/core/code-block.ce.vue_vue_type_style_index_0_scoped_7e6342e8_lang.css +0 -1
  144. package/dist/components/core/combobox.ce.vue_vue_type_style_index_0_scoped_6980ff65_lang.css +0 -1
  145. package/dist/components/core/date-picker.ce.vue_vue_type_style_index_0_scoped_f55122f3_lang.css +0 -1
  146. package/dist/components/core/dialog.ce.vue_vue_type_style_index_0_scoped_1b9a185c_lang.css +0 -1
  147. package/dist/components/core/divider.ce.vue_vue_type_style_index_0_scoped_5402a5d3_lang.css +0 -1
  148. package/dist/components/core/drawer.ce.vue_vue_type_style_index_0_scoped_13f2f783_lang.css +0 -1
  149. package/dist/components/core/empty-state.ce.vue_vue_type_style_index_0_scoped_6fcab7b8_lang.css +0 -1
  150. package/dist/components/core/icon-button.ce.vue_vue_type_style_index_0_scoped_a18b4478_lang.css +0 -1
  151. package/dist/components/core/icon.ce.vue_vue_type_style_index_0_scoped_5c94f2ca_lang.css +0 -1
  152. package/dist/components/core/layout.ce.vue_vue_type_style_index_0_scoped_c0d57820_lang.css +0 -1
  153. package/dist/components/core/menu.ce.vue_vue_type_style_index_0_scoped_597751c9_lang.css +0 -1
  154. package/dist/components/core/notification.ce.vue_vue_type_style_index_0_scoped_2f39bef8_lang.css +0 -1
  155. package/dist/components/core/pagination.ce.vue_vue_type_style_index_0_scoped_d62e7dea_lang.css +0 -1
  156. package/dist/components/core/progress.ce.vue_vue_type_style_index_0_scoped_84d44589_lang.css +0 -1
  157. package/dist/components/core/select.ce.vue_vue_type_style_index_0_scoped_f1632b10_lang.css +0 -1
  158. package/dist/components/core/slider.ce.vue_vue_type_style_index_0_scoped_746583af_lang.css +0 -1
  159. package/dist/components/core/switch.ce.vue_vue_type_style_index_0_scoped_2bcc172e_lang.css +0 -1
  160. package/dist/components/core/tabs.ce.vue_vue_type_style_index_0_scoped_0d322299_lang.css +0 -1
  161. package/dist/components/core/text-field.ce.vue_vue_type_style_index_0_scoped_f22e5c02_lang.css +0 -1
  162. package/dist/components/core/time-picker.ce.vue_vue_type_style_index_0_scoped_afd1d777_lang.css +0 -1
  163. package/dist/components/core/tooltip.ce.vue_vue_type_style_index_0_scoped_2c931a6a_lang.css +0 -1
  164. package/dist/components/core/tree.ce.vue_vue_type_style_index_0_scoped_5401eef6_lang.css +0 -1
  165. package/dist/components/core/virtual-scroll.ce.vue_vue_type_style_index_0_scoped_8f7f579b_lang.css +0 -1
  166. package/dist/components/data/copy-button.ce.vue_vue_type_style_index_0_scoped_701ad4fb_lang.css +0 -1
  167. package/dist/components/data/image-preview.ce.vue_vue_type_style_index_0_scoped_17e80131_lang.css +0 -1
  168. package/dist/components/data/infinite-scroll.ce.vue_vue_type_style_index_0_scoped_5f784d27_lang.css +0 -1
  169. package/dist/components/data/long-text.ce.vue_vue_type_style_index_0_scoped_6bad870b_lang.css +0 -1
  170. package/dist/components/data/relative-time.ce.vue_vue_type_style_index_0_scoped_903b71ea_lang.css +0 -1
  171. package/dist/components/data/ring-progress.ce.vue_vue_type_style_index_0_scoped_15220fc3_lang.css +0 -1
  172. package/dist/components/data/table.ce.vue_vue_type_style_index_0_scoped_6c1cc7d1_lang.css +0 -1
  173. package/dist/components/data/virtual-table.ce.vue_vue_type_style_index_0_scoped_bc80a44c_lang.css +0 -1
  174. package/dist/components/data/virtual-tree.ce.vue_vue_type_style_index_0_scoped_5d8790bf_lang.css +0 -1
  175. package/dist/components/display/alert.ce.vue_vue_type_style_index_0_scoped_d31c4df3_lang.css +0 -1
  176. package/dist/components/display/avatar-group.ce.vue_vue_type_style_index_0_scoped_9545415b_lang.css +0 -1
  177. package/dist/components/display/avatar.ce.vue_vue_type_style_index_0_scoped_eb8fc9ea_lang.css +0 -1
  178. package/dist/components/display/blockquote.ce.vue_vue_type_style_index_0_scoped_e56b05b8_lang.css +0 -1
  179. package/dist/components/display/countdown.ce.vue_vue_type_style_index_0_scoped_7f10ca60_lang.css +0 -1
  180. package/dist/components/display/descriptions.ce.vue_vue_type_style_index_0_scoped_501a9489_lang.css +0 -1
  181. package/dist/components/display/highlight.ce.vue_vue_type_style_index_0_scoped_f876f7db_lang.css +0 -1
  182. package/dist/components/display/image.ce.vue_vue_type_style_index_0_scoped_d16b864e_lang.css +0 -1
  183. package/dist/components/display/list.ce.vue_vue_type_style_index_0_scoped_1b1702a6_lang.css +0 -1
  184. package/dist/components/display/result.ce.vue_vue_type_style_index_0_scoped_f08cf21f_lang.css +0 -1
  185. package/dist/components/display/skeleton.ce.vue_vue_type_style_index_0_scoped_92807af5_lang.css +0 -1
  186. package/dist/components/display/spinner.ce.vue_vue_type_style_index_0_scoped_d7ff1dc3_lang.css +0 -1
  187. package/dist/components/display/statistic.ce.vue_vue_type_style_index_0_scoped_cc8448a6_lang.css +0 -1
  188. package/dist/components/display/timeline.ce.vue_vue_type_style_index_0_scoped_3cffd2b4_lang.css +0 -1
  189. package/dist/components/form-completion/angle-slider.ce.vue_vue_type_style_index_0_scoped_924c5f0d_lang.css +0 -1
  190. package/dist/components/form-completion/color-picker.ce.vue_vue_type_style_index_0_scoped_04812c30_lang.css +0 -1
  191. package/dist/components/form-completion/date-field.ce.vue_vue_type_style_index_0_scoped_7c8a7c79_lang.css +0 -1
  192. package/dist/components/form-completion/dynamic-input.ce.vue_vue_type_style_index_0_scoped_6a5bc26a_lang.css +0 -1
  193. package/dist/components/form-completion/form.ce.vue_vue_type_style_index_0_scoped_f8f70e6f_lang.css +0 -1
  194. package/dist/components/form-completion/json-input.ce.vue_vue_type_style_index_0_scoped_15a17728_lang.css +0 -1
  195. package/dist/components/form-completion/masked-input.ce.vue_vue_type_style_index_0_scoped_f96e752a_lang.css +0 -1
  196. package/dist/components/form-completion/period-picker.ce.vue_vue_type_style_index_0_scoped_28cc9011_lang.css +0 -1
  197. package/dist/components/form-completion/time-field.ce.vue_vue_type_style_index_0_scoped_b6533524_lang.css +0 -1
  198. package/dist/components/form-completion/upload-manager.ce.vue_vue_type_style_index_0_scoped_fe810c3a_lang.css +0 -1
  199. package/dist/components/foundation/banner.ce.vue_vue_type_style_index_0_scoped_57ba332a_lang.css +0 -1
  200. package/dist/components/foundation/error-state.ce.vue_vue_type_style_index_0_scoped_20c2aa5d_lang.css +0 -1
  201. package/dist/components/foundation/field-group.ce.vue_vue_type_style_index_0_scoped_144ed12e_lang.css +0 -1
  202. package/dist/components/foundation/flex.ce.vue_vue_type_style_index_0_scoped_317459cf_lang.css +0 -1
  203. package/dist/components/foundation/grid.ce.vue_vue_type_style_index_0_scoped_c1ea1f88_lang.css +0 -1
  204. package/dist/components/foundation/input-group.ce.vue_vue_type_style_index_0_scoped_5729e4c1_lang.css +0 -1
  205. package/dist/components/foundation/page-header.ce.vue_vue_type_style_index_0_scoped_819de002_lang.css +0 -1
  206. package/dist/components/foundation/time-display.ce.vue_vue_type_style_index_0_scoped_31f1f739_lang.css +0 -1
  207. package/dist/components/foundation/typography.ce.vue_vue_type_style_index_0_scoped_d92fa782_lang.css +0 -1
  208. package/dist/components/input/checkbox-group.ce.vue_vue_type_style_index_0_scoped_f017d36a_lang.css +0 -1
  209. package/dist/components/input/field.ce.vue_vue_type_style_index_0_scoped_a01eded5_lang.css +0 -1
  210. package/dist/components/input/file-upload.ce.vue_vue_type_style_index_0_scoped_8fd77a68_lang.css +0 -1
  211. package/dist/components/input/number-field.ce.vue_vue_type_style_index_0_scoped_9eb508b4_lang.css +0 -1
  212. package/dist/components/input/pin-input.ce.vue_vue_type_style_index_0_scoped_0d93e989_lang.css +0 -1
  213. package/dist/components/input/radio-group.ce.vue_vue_type_style_index_0_scoped_fe3edf34_lang.css +0 -1
  214. package/dist/components/input/rating.ce.vue_vue_type_style_index_0_scoped_23c50b69_lang.css +0 -1
  215. package/dist/components/input/tags-input.ce.vue_vue_type_style_index_0_scoped_b46618b2_lang.css +0 -1
  216. package/dist/components/input/textarea.ce.vue_vue_type_style_index_0_scoped_60d0751b_lang.css +0 -1
  217. package/dist/components/input/toggle.ce.vue_vue_type_style_index_0_scoped_a289ae32_lang.css +0 -1
  218. package/dist/components/interaction/chip.ce.vue_vue_type_style_index_0_scoped_541c9ed1_lang.css +0 -1
  219. package/dist/components/interaction/command.ce.vue_vue_type_style_index_0_scoped_11d4f240_lang.css +0 -1
  220. package/dist/components/interaction/context-menu.ce.vue_vue_type_style_index_0_scoped_35d2336c_lang.css +0 -1
  221. package/dist/components/interaction/hover-card.ce.vue_vue_type_style_index_0_scoped_0517aad7_lang.css +0 -1
  222. package/dist/components/interaction/loading-overlay.ce.vue_vue_type_style_index_0_scoped_8dd7d4aa_lang.css +0 -1
  223. package/dist/components/interaction/menubar.ce.vue_vue_type_style_index_0_scoped_c4c69411_lang.css +0 -1
  224. package/dist/components/interaction/multi-select.ce.vue_vue_type_style_index_0_scoped_0b8ec686_lang.css +0 -1
  225. package/dist/components/interaction/popconfirm.ce.vue_vue_type_style_index_0_scoped_fae7c69d_lang.css +0 -1
  226. package/dist/components/interaction/popover.ce.vue_vue_type_style_index_0_scoped_be7411d6_lang.css +0 -1
  227. package/dist/components/interaction/tree-select.ce.vue_vue_type_style_index_0_scoped_46d37539_lang.css +0 -1
  228. package/dist/components/navigation/accordion.ce.vue_vue_type_style_index_0_scoped_19d76e75_lang.css +0 -1
  229. package/dist/components/navigation/anchor.ce.vue_vue_type_style_index_0_scoped_b3311001_lang.css +0 -1
  230. package/dist/components/navigation/back-top.ce.vue_vue_type_style_index_0_scoped_231687a3_lang.css +0 -1
  231. package/dist/components/navigation/breadcrumb.ce.vue_vue_type_style_index_0_scoped_2a2cd6e2_lang.css +0 -1
  232. package/dist/components/navigation/carousel.ce.vue_vue_type_style_index_0_scoped_f2081ae5_lang.css +0 -1
  233. package/dist/components/navigation/collapsible.ce.vue_vue_type_style_index_0_scoped_f3cd40e5_lang.css +0 -1
  234. package/dist/components/navigation/link.ce.vue_vue_type_style_index_0_scoped_24e2c032_lang.css +0 -1
  235. package/dist/components/navigation/navigation-menu.ce.vue_vue_type_style_index_0_scoped_5a0a5b21_lang.css +0 -1
  236. package/dist/components/navigation/overflow-list.ce.vue_vue_type_style_index_0_scoped_b6fec7f9_lang.css +0 -1
  237. package/dist/components/navigation/scroll-area.ce.vue_vue_type_style_index_0_scoped_78178cc3_lang.css +0 -1
  238. package/dist/components/navigation/splitter.ce.vue_vue_type_style_index_0_scoped_0fbcfa40_lang.css +0 -1
  239. package/dist/components/navigation/stepper.ce.vue_vue_type_style_index_0_scoped_1c703cd8_lang.css +0 -1
  240. package/dist/components/navigation/toolbar.ce.vue_vue_type_style_index_0_scoped_327b9928_lang.css +0 -1
  241. package/dist/components/navigation/visually-hidden.ce.vue_vue_type_style_index_0_scoped_2cc27184_lang.css +0 -1
  242. package/dist/components/shell/app-shell.ce.vue_vue_type_style_index_0_scoped_37292ba0_lang.css +0 -1
  243. package/dist/components/shell/config-provider.ce.vue_vue_type_style_index_0_scoped_d9085095_lang.css +0 -1
  244. package/dist/components/shell/marquee.ce.vue_vue_type_style_index_0_scoped_ac73236c_lang.css +0 -1
  245. package/dist/components/shell/masonry.ce.vue_vue_type_style_index_0_scoped_2fe32054_lang.css +0 -1
  246. package/dist/components/shell/sidebar.ce.vue_vue_type_style_index_0_scoped_f50127b6_lang.css +0 -1
  247. package/dist/components/utility/affix.ce.vue_vue_type_style_index_0_scoped_f21e108b_lang.css +0 -1
  248. package/dist/components/utility/alert-dialog.ce.vue_vue_type_style_index_0_scoped_6136c7fb_lang.css +0 -1
  249. package/dist/components/utility/animated-number.ce.vue_vue_type_style_index_0_scoped_23564574_lang.css +0 -1
  250. package/dist/components/utility/float-button.ce.vue_vue_type_style_index_0_scoped_1edb2eb1_lang.css +0 -1
  251. package/dist/components/utility/listbox.ce.vue_vue_type_style_index_0_scoped_8eab8b73_lang.css +0 -1
  252. package/dist/components/utility/loading-bar.ce.vue_vue_type_style_index_0_scoped_4109ea9a_lang.css +0 -1
  253. package/dist/components/utility/log-viewer.ce.vue_vue_type_style_index_0_scoped_f5be4658_lang.css +0 -1
  254. package/dist/components/utility/notification-queue.ce.vue_vue_type_style_index_0_scoped_75bf46e7_lang.css +0 -1
  255. package/dist/components/utility/progress-group.ce.vue_vue_type_style_index_0_scoped_d4453504_lang.css +0 -1
  256. package/dist/components/utility/qr-code.ce.vue_vue_type_style_index_0_scoped_3ef776fe_lang.css +0 -1
  257. package/dist/components/utility/tag-group.ce.vue_vue_type_style_index_0_scoped_de9894bd_lang.css +0 -1
  258. package/dist/components/utility/tour.ce.vue_vue_type_style_index_0_scoped_b5823fc3_lang.css +0 -1
  259. package/dist/components/utility/virtual-select.ce.vue_vue_type_style_index_0_scoped_d1821f4c_lang.css +0 -1
  260. package/dist/components/utility/watermark.ce.vue_vue_type_style_index_0_scoped_62e7022f_lang.css +0 -1
  261. package/dist/kima-theme.js +0 -1589
  262. package/dist/styles/accordion.css +0 -4
  263. package/dist/styles/affix.css +0 -2
  264. package/dist/styles/alert-dialog.css +0 -5
  265. package/dist/styles/alert.css +0 -4
  266. package/dist/styles/anchor.css +0 -3
  267. package/dist/styles/angle-slider.css +0 -2
  268. package/dist/styles/animated-number.css +0 -2
  269. package/dist/styles/app-shell.css +0 -6
  270. package/dist/styles/avatar-group.css +0 -4
  271. package/dist/styles/avatar.css +0 -3
  272. package/dist/styles/back-top.css +0 -3
  273. package/dist/styles/banner.css +0 -4
  274. package/dist/styles/blockquote.css +0 -3
  275. package/dist/styles/button-group.css +0 -3
  276. package/dist/styles/calendar.css +0 -2
  277. package/dist/styles/card.css +0 -2
  278. package/dist/styles/carousel.css +0 -5
  279. package/dist/styles/cascader.css +0 -3
  280. package/dist/styles/chart.css +0 -3
  281. package/dist/styles/checkbox-group.css +0 -3
  282. package/dist/styles/chip.css +0 -5
  283. package/dist/styles/code-block.css +0 -5
  284. package/dist/styles/code-editor.css +0 -5
  285. package/dist/styles/color-picker.css +0 -2
  286. package/dist/styles/command.css +0 -5
  287. package/dist/styles/config-provider.css +0 -2
  288. package/dist/styles/context-menu.css +0 -3
  289. package/dist/styles/copy-button.css +0 -3
  290. package/dist/styles/countdown.css +0 -2
  291. package/dist/styles/date-field.css +0 -2
  292. package/dist/styles/date-picker.css +0 -3
  293. package/dist/styles/date-range-picker.css +0 -4
  294. package/dist/styles/descriptions.css +0 -2
  295. package/dist/styles/drawer.css +0 -3
  296. package/dist/styles/dynamic-input.css +0 -6
  297. package/dist/styles/editable.css +0 -3
  298. package/dist/styles/empty-state.css +0 -2
  299. package/dist/styles/equation.css +0 -2
  300. package/dist/styles/error-state.css +0 -4
  301. package/dist/styles/field-group.css +0 -2
  302. package/dist/styles/field.css +0 -2
  303. package/dist/styles/file-upload.css +0 -5
  304. package/dist/styles/flex.css +0 -2
  305. package/dist/styles/float-button.css +0 -4
  306. package/dist/styles/form.css +0 -2
  307. package/dist/styles/grid.css +0 -2
  308. package/dist/styles/heatmap.css +0 -3
  309. package/dist/styles/highlight.css +0 -2
  310. package/dist/styles/hover-card.css +0 -3
  311. package/dist/styles/icon-button.css +0 -3
  312. package/dist/styles/image-preview.css +0 -6
  313. package/dist/styles/infinite-scroll.css +0 -4
  314. package/dist/styles/input-group.css +0 -2
  315. package/dist/styles/json-input.css +0 -3
  316. package/dist/styles/layout.css +0 -2
  317. package/dist/styles/link.css +0 -2
  318. package/dist/styles/list.css +0 -2
  319. package/dist/styles/listbox.css +0 -3
  320. package/dist/styles/loading-bar.css +0 -2
  321. package/dist/styles/loading-overlay.css +0 -3
  322. package/dist/styles/log-viewer.css +0 -6
  323. package/dist/styles/long-text.css +0 -3
  324. package/dist/styles/marquee.css +0 -3
  325. package/dist/styles/masked-input.css +0 -2
  326. package/dist/styles/masonry.css +0 -2
  327. package/dist/styles/mention.css +0 -2
  328. package/dist/styles/menubar.css +0 -4
  329. package/dist/styles/multi-select.css +0 -6
  330. package/dist/styles/navigation-menu.css +0 -5
  331. package/dist/styles/notification-queue.css +0 -4
  332. package/dist/styles/notification.css +0 -3
  333. package/dist/styles/number-field.css +0 -3
  334. package/dist/styles/overflow-list.css +0 -3
  335. package/dist/styles/page-header.css +0 -2
  336. package/dist/styles/pagination.css +0 -3
  337. package/dist/styles/period-picker.css +0 -2
  338. package/dist/styles/pin-input.css +0 -2
  339. package/dist/styles/popconfirm.css +0 -4
  340. package/dist/styles/progress-group.css +0 -3
  341. package/dist/styles/qr-code.css +0 -2
  342. package/dist/styles/range-slider.css +0 -2
  343. package/dist/styles/rating.css +0 -4
  344. package/dist/styles/relative-time.css +0 -2
  345. package/dist/styles/result.css +0 -3
  346. package/dist/styles/rich-text-editor.css +0 -6
  347. package/dist/styles/ring-progress.css +0 -2
  348. package/dist/styles/scroll-area.css +0 -2
  349. package/dist/styles/sidebar.css +0 -9
  350. package/dist/styles/spinner.css +0 -2
  351. package/dist/styles/splitter.css +0 -2
  352. package/dist/styles/statistic.css +0 -2
  353. package/dist/styles/stepper.css +0 -3
  354. package/dist/styles/tag-group.css +0 -6
  355. package/dist/styles/tags-input.css +0 -3
  356. package/dist/styles/time-display.css +0 -2
  357. package/dist/styles/time-field.css +0 -2
  358. package/dist/styles/time-picker.css +0 -3
  359. package/dist/styles/time-range-picker.css +0 -2
  360. package/dist/styles/timeline.css +0 -3
  361. package/dist/styles/toggle.css +0 -2
  362. package/dist/styles/toolbar.css +0 -2
  363. package/dist/styles/tour.css +0 -3
  364. package/dist/styles/transfer.css +0 -3
  365. package/dist/styles/tree-select.css +0 -6
  366. package/dist/styles/typography.css +0 -2
  367. package/dist/styles/upload-manager.css +0 -7
  368. package/dist/styles/virtual-scroll.css +0 -2
  369. package/dist/styles/virtual-select.css +0 -2
  370. package/dist/styles/virtual-table.css +0 -4
  371. package/dist/styles/virtual-tree.css +0 -3
  372. package/dist/styles/visually-hidden.css +0 -2
  373. package/dist/styles/watermark.css +0 -2
  374. package/dist/vue/components/advanced-input/calendar.ce.js +0 -216
  375. package/dist/vue/components/advanced-input/date-range-picker.ce.js +0 -224
  376. package/dist/vue/components/advanced-input/editable.ce.js +0 -161
  377. package/dist/vue/components/advanced-input/mention.ce.js +0 -181
  378. package/dist/vue/components/advanced-input/range-slider.ce.js +0 -111
  379. package/dist/vue/components/advanced-input/time-range-picker.ce.js +0 -120
  380. package/dist/vue/components/advanced-input/transfer.ce.js +0 -192
  381. package/dist/vue/components/content/chart.ce.js +0 -282
  382. package/dist/vue/components/content/code-editor.ce.js +0 -314
  383. package/dist/vue/components/content/equation.ce.js +0 -69
  384. package/dist/vue/components/content/heatmap.ce.js +0 -148
  385. package/dist/vue/components/content/rich-text-editor.ce.js +0 -346
  386. package/dist/vue/components/core/button-group.ce.js +0 -142
  387. package/dist/vue/components/core/card.ce.js +0 -73
  388. package/dist/vue/components/core/cascader.ce.js +0 -329
  389. package/dist/vue/components/core/code-block.ce.js +0 -131
  390. package/dist/vue/components/core/date-picker.ce.js +0 -433
  391. package/dist/vue/components/core/drawer.ce.js +0 -234
  392. package/dist/vue/components/core/empty-state.ce.js +0 -58
  393. package/dist/vue/components/core/icon-button.ce.js +0 -93
  394. package/dist/vue/components/core/layout.ce.js +0 -68
  395. package/dist/vue/components/core/notification.ce.js +0 -189
  396. package/dist/vue/components/core/pagination.ce.js +0 -158
  397. package/dist/vue/components/core/time-picker.ce.js +0 -486
  398. package/dist/vue/components/core/virtual-scroll.ce.js +0 -176
  399. package/dist/vue/components/data/copy-button.ce.js +0 -75
  400. package/dist/vue/components/data/image-preview.ce.js +0 -226
  401. package/dist/vue/components/data/infinite-scroll.ce.js +0 -126
  402. package/dist/vue/components/data/long-text.ce.js +0 -70
  403. package/dist/vue/components/data/relative-time.ce.js +0 -77
  404. package/dist/vue/components/data/ring-progress.ce.js +0 -87
  405. package/dist/vue/components/data/virtual-table.ce.js +0 -178
  406. package/dist/vue/components/data/virtual-tree.ce.js +0 -213
  407. package/dist/vue/components/display/alert.ce.js +0 -101
  408. package/dist/vue/components/display/avatar-group.ce.js +0 -65
  409. package/dist/vue/components/display/avatar.ce.js +0 -84
  410. package/dist/vue/components/display/blockquote.ce.js +0 -44
  411. package/dist/vue/components/display/countdown.ce.js +0 -77
  412. package/dist/vue/components/display/descriptions.ce.js +0 -43
  413. package/dist/vue/components/display/highlight.ce.js +0 -48
  414. package/dist/vue/components/display/list.ce.js +0 -73
  415. package/dist/vue/components/display/result.ce.js +0 -57
  416. package/dist/vue/components/display/spinner.ce.js +0 -42
  417. package/dist/vue/components/display/statistic.ce.js +0 -71
  418. package/dist/vue/components/display/timeline.ce.js +0 -60
  419. package/dist/vue/components/form-completion/angle-slider.ce.js +0 -103
  420. package/dist/vue/components/form-completion/color-picker.ce.js +0 -286
  421. package/dist/vue/components/form-completion/date-field.ce.js +0 -131
  422. package/dist/vue/components/form-completion/dynamic-input.ce.js +0 -171
  423. package/dist/vue/components/form-completion/form.ce.js +0 -248
  424. package/dist/vue/components/form-completion/json-input.ce.js +0 -114
  425. package/dist/vue/components/form-completion/masked-input.ce.js +0 -88
  426. package/dist/vue/components/form-completion/period-picker.ce.js +0 -147
  427. package/dist/vue/components/form-completion/time-field.ce.js +0 -120
  428. package/dist/vue/components/form-completion/upload-manager.ce.js +0 -232
  429. package/dist/vue/components/foundation/banner.ce.js +0 -106
  430. package/dist/vue/components/foundation/error-state.ce.js +0 -108
  431. package/dist/vue/components/foundation/field-group.ce.js +0 -146
  432. package/dist/vue/components/foundation/flex.ce.js +0 -60
  433. package/dist/vue/components/foundation/grid.ce.js +0 -52
  434. package/dist/vue/components/foundation/input-group.ce.js +0 -34
  435. package/dist/vue/components/foundation/page-header.ce.js +0 -55
  436. package/dist/vue/components/foundation/time-display.ce.js +0 -129
  437. package/dist/vue/components/foundation/typography.ce.js +0 -71
  438. package/dist/vue/components/input/checkbox-group.ce.js +0 -93
  439. package/dist/vue/components/input/field.ce.js +0 -76
  440. package/dist/vue/components/input/file-upload.ce.js +0 -154
  441. package/dist/vue/components/input/number-field.ce.js +0 -103
  442. package/dist/vue/components/input/pin-input.ce.js +0 -112
  443. package/dist/vue/components/input/rating.ce.js +0 -115
  444. package/dist/vue/components/input/tags-input.ce.js +0 -159
  445. package/dist/vue/components/input/toggle.ce.js +0 -58
  446. package/dist/vue/components/interaction/chip.ce.js +0 -95
  447. package/dist/vue/components/interaction/command.ce.js +0 -161
  448. package/dist/vue/components/interaction/context-menu.ce.js +0 -113
  449. package/dist/vue/components/interaction/hover-card.ce.js +0 -92
  450. package/dist/vue/components/interaction/loading-overlay.ce.js +0 -70
  451. package/dist/vue/components/interaction/menubar.ce.js +0 -134
  452. package/dist/vue/components/interaction/multi-select.ce.js +0 -271
  453. package/dist/vue/components/interaction/popconfirm.ce.js +0 -95
  454. package/dist/vue/components/interaction/tree-select.ce.js +0 -195
  455. package/dist/vue/components/navigation/accordion.ce.js +0 -114
  456. package/dist/vue/components/navigation/anchor.ce.js +0 -125
  457. package/dist/vue/components/navigation/back-top.ce.js +0 -67
  458. package/dist/vue/components/navigation/carousel.ce.js +0 -128
  459. package/dist/vue/components/navigation/link.ce.js +0 -62
  460. package/dist/vue/components/navigation/navigation-menu.ce.js +0 -91
  461. package/dist/vue/components/navigation/overflow-list.ce.js +0 -67
  462. package/dist/vue/components/navigation/scroll-area.ce.js +0 -47
  463. package/dist/vue/components/navigation/splitter.ce.js +0 -131
  464. package/dist/vue/components/navigation/stepper.ce.js +0 -74
  465. package/dist/vue/components/navigation/toolbar.ce.js +0 -93
  466. package/dist/vue/components/navigation/visually-hidden.ce.js +0 -16
  467. package/dist/vue/components/shell/app-shell.ce.js +0 -98
  468. package/dist/vue/components/shell/config-provider.ce.js +0 -110
  469. package/dist/vue/components/shell/marquee.ce.js +0 -92
  470. package/dist/vue/components/shell/masonry.ce.js +0 -50
  471. package/dist/vue/components/shell/sidebar.ce.js +0 -136
  472. package/dist/vue/components/utility/affix.ce.js +0 -64
  473. package/dist/vue/components/utility/alert-dialog.ce.js +0 -124
  474. package/dist/vue/components/utility/animated-number.ce.js +0 -66
  475. package/dist/vue/components/utility/float-button.ce.js +0 -104
  476. package/dist/vue/components/utility/listbox.ce.js +0 -102
  477. package/dist/vue/components/utility/loading-bar.ce.js +0 -85
  478. package/dist/vue/components/utility/log-viewer.ce.js +0 -141
  479. package/dist/vue/components/utility/notification-queue.ce.js +0 -122
  480. package/dist/vue/components/utility/progress-group.ce.js +0 -63
  481. package/dist/vue/components/utility/qr-code.ce.js +0 -62
  482. package/dist/vue/components/utility/tag-group.ce.js +0 -127
  483. package/dist/vue/components/utility/tour.ce.js +0 -214
  484. package/dist/vue/components/utility/virtual-select.ce.js +0 -207
  485. package/dist/vue/components/utility/watermark.ce.js +0 -44
  486. package/dist/vue/internal/navigation-items.js +0 -110
  487. package/dist/vue/utils/code-highlight.js +0 -142
  488. package/dist/vue/utils/collection.js +0 -15
  489. package/dist/vue/utils/config.js +0 -47
  490. package/dist/vue/utils/content.js +0 -83
  491. package/dist/vue/utils/display-status.js +0 -31
  492. package/dist/vue/utils/foundation.js +0 -65
  493. package/dist/vue/utils/local-date.js +0 -48
  494. package/dist/vue/utils/notifications.js +0 -60
  495. package/dist/vue/utils/qr.js +0 -20
  496. package/dist/vue/utils/scoped-slots.js +0 -22
  497. package/dist/vue/utils/theme.js +0 -56
  498. package/dist/vue/utils/utility-choice.js +0 -56
@@ -1,21 +1,14 @@
1
1
  import { useNativeSlots as e } from "../../utils/native-slots.js";
2
- import { useRipple as t } from "../../utils/ripple.js";
2
+ import { useNormalizedRadius as t } from "../../utils/radius.js";
3
3
  import n from "../../_virtual/_plugin-vue_export-helper.js";
4
- import r from "./icon.ce.js";
5
4
  /* empty css */
6
- import { computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, mergeProps as l, normalizeClass as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderSlot as h, unref as g, useAttrs as _, watch as v, withModifiers as y } from "vue";
7
- import { Tick02Icon as b } from "@hugeicons/core-free-icons";
5
+ import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, mergeProps as c, normalizeClass as l, openBlock as u, ref as d, renderSlot as f, unref as p, useAttrs as m, withCtx as h } from "vue";
6
+ import { SwitchRoot as g, SwitchThumb as _ } from "reka-ui";
8
7
  // src/components/core/switch.ce.vue
9
- var x = [
10
- "checked",
11
- "disabled",
12
- "required",
13
- "name",
14
- "value"
15
- ], S = { class: "kima-switch__track" }, C = { class: "kima-switch__thumb" }, w = {
8
+ var v = {
16
9
  key: 0,
17
10
  class: "kima-switch__label"
18
- }, T = /*#__PURE__*/ n(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
11
+ }, y = /*#__PURE__*/ n(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
19
12
  __name: "switch.ce",
20
13
  props: {
21
14
  modelValue: {
@@ -37,64 +30,65 @@ var x = [
37
30
  value: {
38
31
  type: String,
39
32
  default: "on"
33
+ },
34
+ radius: {
35
+ type: [String, Number],
36
+ default: null
40
37
  }
41
38
  },
42
39
  emits: ["update:modelValue", "change"],
43
- setup(n, { emit: T }) {
44
- let E = n, D = T, O = _(), k = m(null), A = m(null), j = m(null), { hasNativeSlot: M, isCustomElement: N } = e(k), P = i(() => N ? {
45
- ...O,
40
+ setup(n, { emit: y }) {
41
+ let b = n, x = y, S = m(), { hasNativeSlot: C, isCustomElement: w } = e(null), T = r(() => w ? {
42
+ ...S,
46
43
  id: void 0
47
- } : O), F = m(E.modelValue || O.checked === "" || O.checked === !0), I, L;
48
- t(A), v(() => E.modelValue, (e) => {
49
- F.value = e;
50
- });
51
- function R(e) {
52
- F.value = e.target.checked, D("update:modelValue", F.value), D("change", F.value);
44
+ } : S), E = d(null);
45
+ function D(e) {
46
+ E.value = e?.$el ?? e ?? null;
53
47
  }
54
- function z(e) {
55
- e.target === j.value.form && queueMicrotask(() => {
56
- if (e.defaultPrevented || !j.value) return;
57
- let t = F.value !== I;
58
- F.value = I, j.value.checked = I, t && D("update:modelValue", I);
59
- });
48
+ let { radiusAttrs: O, radiusStyle: k } = t(E, () => b.radius), A = r(() => ({
49
+ ...T.value,
50
+ ...O.value
51
+ }));
52
+ function j(e) {
53
+ x("update:modelValue", e), x("change", e);
60
54
  }
61
- return f(() => {
62
- I = F.value, j.value.defaultChecked = I, L = j.value.ownerDocument, L.addEventListener("reset", z, !0);
63
- }), d(() => L.removeEventListener("reset", z, !0)), (e, t) => (p(), o("label", {
64
- ref_key: "root",
65
- ref: k,
66
- class: u(["kima-switch", {
67
- "kima-switch--checked": F.value,
68
- "kima-switch--disabled": n.disabled
69
- }])
70
- }, [
71
- s("input", l({
72
- ref_key: "input",
73
- ref: j
74
- }, P.value, {
75
- class: "kima-switch__input",
76
- type: "checkbox",
77
- role: "switch",
78
- checked: F.value,
79
- disabled: n.disabled,
80
- required: n.required,
81
- name: n.name,
82
- value: n.value,
83
- onInput: t[0] ||= y(() => {}, ["stop"]),
84
- onChange: y(R, ["stop"])
85
- }), null, 16, x),
86
- s("span", {
87
- ref_key: "control",
88
- ref: A,
89
- class: "kima-switch__control",
55
+ return (e, t) => (u(), a("label", { class: l(["kima-switch", { "kima-switch--disabled": n.disabled }]) }, [s(p(g), c({ ref: D }, A.value, {
56
+ class: "kima-switch__track",
57
+ style: [p(S).style, p(k)],
58
+ "model-value": n.modelValue,
59
+ disabled: n.disabled,
60
+ required: n.required,
61
+ name: n.name,
62
+ value: n.value,
63
+ "aria-label": p(S)["aria-label"] || p(S).ariaLabel || void 0,
64
+ "onUpdate:modelValue": j
65
+ }), {
66
+ default: h(() => [t[1] ||= o("span", {
67
+ class: "kima-switch__touch",
68
+ "aria-hidden": "true"
69
+ }, null, -1), s(p(_), {
70
+ class: "kima-switch__handle",
90
71
  "aria-hidden": "true"
91
- }, [s("span", S, [s("span", C, [c(r, {
92
- class: "kima-switch__check",
93
- icon: g(b),
94
- size: 16
95
- }, null, 8, ["icon"])])])], 512),
96
- e.$slots.default || g(M)("default") ? (p(), o("span", w, [h(e.$slots, "default", {}, void 0, !0)])) : a("", !0)
97
- ], 2));
72
+ }, {
73
+ default: h(() => [...t[0] ||= [o("span", {
74
+ class: "kima-switch__state-layer",
75
+ "aria-hidden": "true"
76
+ }, null, -1), o("span", {
77
+ class: "kima-switch__base",
78
+ "aria-hidden": "true"
79
+ }, null, -1)]]),
80
+ _: 1
81
+ })]),
82
+ _: 1
83
+ }, 16, [
84
+ "style",
85
+ "model-value",
86
+ "disabled",
87
+ "required",
88
+ "name",
89
+ "value",
90
+ "aria-label"
91
+ ]), e.$slots.default || p(C)("default") ? (u(), a("span", v, [f(e.$slots, "default", {}, void 0, !0)])) : i("", !0)], 2));
98
92
  }
99
- }), [["__scopeId", "data-v-2bcc172e"]]);
100
- export { T as default };
93
+ }), [["__scopeId", "data-v-5b126252"]]);
94
+ export { y as default };
@@ -1,8 +1,9 @@
1
- import e from "../../_virtual/_plugin-vue_export-helper.js";
2
- import { presenceTransition as t } from "../../utils/motion.js";
3
- import { useContentMotion as n } from "../../utils/content-motion.js";
1
+ import { useNormalizedRadius as e } from "../../utils/radius.js";
2
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
3
+ import { presenceTransition as n } from "../../utils/motion.js";
4
+ import { useContentMotion as r } from "../../utils/content-motion.js";
4
5
  /* empty css */
5
- import { Fragment as r, Transition as i, computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, mergeProps as u, nextTick as d, normalizeClass as f, normalizeStyle as p, onBeforeUnmount as m, onMounted as h, openBlock as g, ref as _, renderList as v, renderSlot as y, shallowRef as b, toDisplayString as x, unref as S, useId as C, vShow as w, watch as T, withCtx as E, withDirectives as D } from "vue";
6
+ import { Fragment as i, Transition as a, computed as o, createBlock as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, renderList as y, renderSlot as b, shallowRef as x, toDisplayString as S, unref as C, useId as w, vShow as T, watch as E, withCtx as ee, withDirectives as D } from "vue";
6
7
  // src/components/core/tabs.ce.vue
7
8
  var O = ["aria-orientation"], k = [
8
9
  "id",
@@ -19,7 +20,7 @@ var O = ["aria-orientation"], k = [
19
20
  "inert",
20
21
  "aria-hidden",
21
22
  "tabindex"
22
- ], j = /*#__PURE__*/ e({
23
+ ], j = /*#__PURE__*/ t({
23
24
  __name: "tabs.ce",
24
25
  props: {
25
26
  modelValue: {
@@ -39,155 +40,161 @@ var O = ["aria-orientation"], k = [
39
40
  orientation: {
40
41
  type: String,
41
42
  default: "horizontal"
43
+ },
44
+ radius: {
45
+ type: [String, Number],
46
+ default: null
42
47
  }
43
48
  },
44
49
  emits: ["update:modelValue", "change"],
45
- setup(e, { emit: j }) {
46
- let M = e, N = j, P = _([]), F = _(null), I = _(null), L = _({ opacity: 0 }), R = _(!1), z, B;
47
- function V() {
48
- let e = P.value[G.value];
50
+ setup(t, { emit: j }) {
51
+ let M = t, N = j, P = v([]), F = v(null), I = v(null), { radiusAttrs: L, radiusStyle: R } = e(F, () => M.radius), z = v({ opacity: 0 }), B = v(!1), V, H;
52
+ function U() {
53
+ let e = P.value[q.value];
49
54
  if (!F.value || !e) {
50
- L.value = { opacity: 0 };
55
+ z.value = { opacity: 0 };
51
56
  return;
52
57
  }
53
- let t = W.value === "vertical";
54
- L.value = {
58
+ let t = K.value === "vertical";
59
+ z.value = {
55
60
  opacity: 1,
56
61
  width: t ? "var(--kima-tabs-indicator-height)" : `${Math.min(40, e.offsetWidth)}px`,
57
62
  height: t ? "24px" : "var(--kima-tabs-indicator-height)",
58
63
  transform: t ? `translate(${e.offsetLeft + e.offsetWidth}px, ${e.offsetTop + e.offsetHeight / 2}px) translate(-100%, -50%)` : `translate(${e.offsetLeft + e.offsetWidth / 2}px, ${e.offsetTop + e.offsetHeight}px) translate(-50%, -100%)`
59
64
  };
60
- for (let e of P.value) e && z?.observe(e);
65
+ for (let e of P.value) e && V?.observe(e);
61
66
  }
62
- h(() => {
67
+ g(() => {
63
68
  let e = F.value.ownerDocument.defaultView;
64
- e.ResizeObserver && (z = new e.ResizeObserver(V), z.observe(F.value)), V(), B = e.requestAnimationFrame(() => {
65
- R.value = !0;
69
+ e.ResizeObserver && (V = new e.ResizeObserver(U), V.observe(F.value)), U(), H = e.requestAnimationFrame(() => {
70
+ B.value = !0;
66
71
  });
67
- }), m(() => {
68
- z?.disconnect(), F.value?.ownerDocument.defaultView.cancelAnimationFrame(B);
72
+ }), h(() => {
73
+ V?.disconnect(), F.value?.ownerDocument.defaultView.cancelAnimationFrame(H);
69
74
  });
70
- let H = b(M.modelValue), U = `kima-tabs-${C()}`, W = a(() => M.orientation === "vertical" ? "vertical" : "horizontal"), G = a(() => {
71
- let e = M.items.findIndex((e) => Object.is(K(e), H.value) && !J(e));
72
- return e >= 0 ? e : M.items.findIndex((e) => !J(e));
75
+ let W = x(M.modelValue), G = `kima-tabs-${w()}`, K = o(() => M.orientation === "vertical" ? "vertical" : "horizontal"), q = o(() => {
76
+ let e = M.items.findIndex((e) => Object.is(J(e), W.value) && !X(e));
77
+ return e >= 0 ? e : M.items.findIndex((e) => !X(e));
73
78
  });
74
- n(I, () => G.value, { opacity: !1 });
75
- function K(e) {
79
+ r(I, () => q.value, { opacity: !1 });
80
+ function J(e) {
76
81
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "value") ? e.value : e;
77
82
  }
78
- function q(e) {
83
+ function Y(e) {
79
84
  return String(e && typeof e == "object" ? e.label ?? e.text ?? e.title ?? e.value ?? "" : e ?? "");
80
85
  }
81
- function J(e) {
86
+ function X(e) {
82
87
  return !!(e && typeof e == "object" && e.disabled);
83
88
  }
84
- function Y(e) {
85
- if (J(e)) return;
86
- let t = K(e);
87
- Object.is(t, H.value) || (H.value = t, N("update:modelValue", t), N("change", t));
89
+ function Z(e) {
90
+ if (X(e)) return;
91
+ let t = J(e);
92
+ Object.is(t, W.value) || (W.value = t, N("update:modelValue", t), N("change", t));
88
93
  }
89
- function X(e, t) {
94
+ function Q(e, t) {
90
95
  let n = M.items.length;
91
96
  if (!n) return -1;
92
97
  let r = e;
93
98
  for (let e = 0; e < n; e += 1) {
94
- if (r >= 0 && r < n && !J(M.items[r])) return r;
99
+ if (r >= 0 && r < n && !X(M.items[r])) return r;
95
100
  r = (r + t + n) % n;
96
101
  }
97
102
  return -1;
98
103
  }
99
- function Z(e) {
104
+ function $(e) {
100
105
  if (e < 0) return;
101
106
  let t = M.items[e];
102
- d(() => P.value[e]?.focus()), Y(t);
107
+ f(() => P.value[e]?.focus()), Z(t);
103
108
  }
104
- function Q(e, t) {
109
+ function te(e, t) {
105
110
  if (t.isComposing) return;
106
- let n = W.value === "horizontal", r = n && F.value && getComputedStyle(F.value).direction === "rtl", i = n ? t.key === (r ? "ArrowLeft" : "ArrowRight") : t.key === "ArrowDown", a = n ? t.key === (r ? "ArrowRight" : "ArrowLeft") : t.key === "ArrowUp";
111
+ let n = K.value === "horizontal", r = n && F.value && getComputedStyle(F.value).direction === "rtl", i = n ? t.key === (r ? "ArrowLeft" : "ArrowRight") : t.key === "ArrowDown", a = n ? t.key === (r ? "ArrowRight" : "ArrowLeft") : t.key === "ArrowUp";
107
112
  if (t.key === "Home") {
108
- t.preventDefault(), Z(X(0, 1));
113
+ t.preventDefault(), $(Q(0, 1));
109
114
  return;
110
115
  }
111
116
  if (t.key === "End") {
112
- t.preventDefault(), Z(X(M.items.length - 1, -1));
117
+ t.preventDefault(), $(Q(M.items.length - 1, -1));
113
118
  return;
114
119
  }
115
120
  if (t.key === "Enter" || t.key === " ") {
116
- t.preventDefault(), Y(M.items[e]);
121
+ t.preventDefault(), Z(M.items[e]);
117
122
  return;
118
123
  }
119
124
  if (!i && !a) return;
120
125
  t.preventDefault();
121
126
  let o = i ? 1 : -1;
122
- Z(X((e + o + M.items.length) % M.items.length, o));
127
+ $(Q((e + o + M.items.length) % M.items.length, o));
123
128
  }
124
- return T(() => M.modelValue, (e) => {
125
- H.value = e;
126
- }), T(() => [
127
- G.value,
128
- W.value,
129
+ return E(() => M.modelValue, (e) => {
130
+ W.value = e;
131
+ }), E(() => [
132
+ q.value,
133
+ K.value,
129
134
  M.items
130
- ], () => d(V), {
135
+ ], () => f(U), {
131
136
  deep: !0,
132
137
  flush: "post"
133
- }), (n, a) => (g(), s("div", { class: f(["kima-tabs", `kima-tabs--${W.value}`]) }, [c("div", {
138
+ }), (e, r) => (_(), c("div", { class: p(["kima-tabs", `kima-tabs--${K.value}`]) }, [l("div", d({
134
139
  ref_key: "tabList",
135
- ref: F,
140
+ ref: F
141
+ }, C(L), {
142
+ style: C(R),
136
143
  class: "kima-tabs__list",
137
144
  role: "tablist",
138
- "aria-orientation": W.value
139
- }, [c("span", {
140
- class: f(["kima-tabs__marker", { "kima-tabs__marker--ready": R.value }]),
141
- style: p(L.value),
145
+ "aria-orientation": K.value
146
+ }), [l("span", {
147
+ class: p(["kima-tabs__marker", { "kima-tabs__marker--ready": B.value }]),
148
+ style: m(z.value),
142
149
  "aria-hidden": "true"
143
- }, null, 6), (g(!0), s(r, null, v(e.items, (e, t) => (g(), s("button", {
144
- id: `${U}-tab-${t}`,
145
- key: K(e) ?? t,
150
+ }, null, 6), (_(!0), c(i, null, y(t.items, (t, n) => (_(), c("button", {
151
+ id: `${G}-tab-${n}`,
152
+ key: J(t) ?? n,
146
153
  ref_for: !0,
147
154
  ref: (e) => {
148
- P.value[t] = e;
155
+ P.value[n] = e;
149
156
  },
150
157
  class: "kima-tabs__tab",
151
158
  type: "button",
152
159
  role: "tab",
153
- "aria-selected": t === G.value,
154
- "aria-controls": `${U}-panel-${t}`,
155
- "aria-disabled": J(e) || void 0,
156
- disabled: J(e),
157
- tabindex: t === G.value ? 0 : -1,
158
- onClick: (t) => Y(e),
159
- onKeydown: (e) => Q(t, e)
160
- }, [y(n.$slots, "tab", {
161
- item: e,
162
- index: t,
163
- selected: t === G.value
164
- }, () => [l(x(q(e)), 1)], !0)], 40, k))), 128))], 8, O), c("div", {
160
+ "aria-selected": n === q.value,
161
+ "aria-controls": `${G}-panel-${n}`,
162
+ "aria-disabled": X(t) || void 0,
163
+ disabled: X(t),
164
+ tabindex: n === q.value ? 0 : -1,
165
+ onClick: (e) => Z(t),
166
+ onKeydown: (e) => te(n, e)
167
+ }, [b(e.$slots, "tab", {
168
+ item: t,
169
+ index: n,
170
+ selected: n === q.value
171
+ }, () => [u(S(Y(t)), 1)], !0)], 40, k))), 128))], 16, O), l("div", {
165
172
  ref_key: "panels",
166
173
  ref: I,
167
174
  class: "kima-tabs__panels"
168
- }, [(g(!0), s(r, null, v(e.items, (e, r) => (g(), o(i, u({
169
- key: K(e) ?? r,
175
+ }, [(_(!0), c(i, null, y(t.items, (t, r) => (_(), s(a, d({
176
+ key: J(t) ?? r,
170
177
  name: "kima-content"
171
- }, { ref_for: !0 }, S(t)), {
172
- default: E(() => [D(c("section", {
173
- id: `${U}-panel-${r}`,
178
+ }, { ref_for: !0 }, C(n)), {
179
+ default: ee(() => [D(l("section", {
180
+ id: `${G}-panel-${r}`,
174
181
  class: "kima-tabs__panel",
175
182
  role: "tabpanel",
176
- "aria-labelledby": `${U}-tab-${r}`,
177
- inert: r !== G.value,
178
- "aria-hidden": r !== G.value || void 0,
179
- tabindex: r === G.value ? 0 : -1
180
- }, [y(n.$slots, "panel", {
181
- item: e,
183
+ "aria-labelledby": `${G}-tab-${r}`,
184
+ inert: r !== q.value,
185
+ "aria-hidden": r !== q.value || void 0,
186
+ tabindex: r === q.value ? 0 : -1
187
+ }, [b(e.$slots, "panel", {
188
+ item: t,
182
189
  index: r,
183
- value: K(e)
184
- }, () => [y(n.$slots, "default", {
185
- item: e,
190
+ value: J(t)
191
+ }, () => [b(e.$slots, "default", {
192
+ item: t,
186
193
  index: r,
187
- value: K(e)
188
- }, void 0, !0)], !0)], 8, A), [[w, r === G.value]])]),
194
+ value: J(t)
195
+ }, void 0, !0)], !0)], 8, A), [[T, r === q.value]])]),
189
196
  _: 2
190
197
  }, 1040))), 128))], 512)], 2));
191
198
  }
192
- }, [["__scopeId", "data-v-0d322299"]]);
199
+ }, [["__scopeId", "data-v-f0ece5c6"]]);
193
200
  export { j as default };
@@ -1,13 +1,14 @@
1
- import { useRipple as e } from "../../utils/ripple.js";
1
+ import { useNormalizedRadius as e } from "../../utils/radius.js";
2
2
  import t from "../../_virtual/_plugin-vue_export-helper.js";
3
3
  import n from "./icon.ce.js";
4
- import { collapseTransition as r, presenceTransition as i } from "../../utils/motion.js";
4
+ import { useRipple as r } from "../../utils/ripple.js";
5
+ import { collapseTransition as ee, presenceTransition as i } from "../../utils/motion.js";
5
6
  import { useContentMotion as a } from "../../utils/content-motion.js";
6
7
  /* empty css */
7
- import { Transition as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, isRef as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x, toDisplayString as S, unref as C, useAttrs as ee, useId as te, vShow as w, watch as T, withCtx as E, withDirectives as D, withModifiers as O } from "vue";
8
- import { Cancel01Icon as k, ViewIcon as A, ViewOffIcon as j } from "@hugeicons/core-free-icons";
8
+ import { Transition as o, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, isRef as f, mergeProps as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, toDisplayString as b, unref as x, useAttrs as S, useId as C, vShow as w, watch as T, withCtx as E, withDirectives as D, withModifiers as O } from "vue";
9
+ import { ViewIcon as te, ViewOffIcon as ne } from "@hugeicons/core-free-icons";
9
10
  // src/components/core/text-field.ce.vue
10
- var M = ["aria-disabled"], ne = [
11
+ var re = ["aria-disabled"], ie = [
11
12
  "name",
12
13
  "type",
13
14
  "value",
@@ -19,10 +20,10 @@ var M = ["aria-disabled"], ne = [
19
20
  "aria-describedby",
20
21
  "aria-invalid",
21
22
  "aria-required"
22
- ], re = {
23
+ ], k = {
23
24
  key: 0,
24
25
  class: "kima-text-field__actions"
25
- }, ie = ["aria-label", "disabled"], ae = ["disabled"], oe = ["disabled"], se = ["inert", "aria-hidden"], ce = ["id", "role"], N = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
26
+ }, A = ["aria-label", "disabled"], j = ["inert", "aria-hidden"], M = ["id", "role"], N = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
26
27
  __name: "text-field.ce",
27
28
  props: {
28
29
  label: {
@@ -53,143 +54,114 @@ var M = ["aria-disabled"], ne = [
53
54
  type: String,
54
55
  default: ""
55
56
  },
56
- clearable: Boolean
57
+ radius: {
58
+ type: [String, Number],
59
+ default: null
60
+ }
57
61
  },
58
62
  emits: ["update:modelValue", "change"],
59
63
  setup(t, { expose: N, emit: P }) {
60
- let F = t, I = P, L = ee(), R = te(), z = x(null), B = x(null);
61
- e(B);
62
- let V = x(!1), H = x(F.modelValue), U = !1, W, G, K = `kima-text-field-${R}-hint`, q = `kima-text-field-${R}-error`, J = s(() => F.error.length > 0), Y = s(() => F.clearable && H.value.length > 0 && !F.readonly), le = s(() => F.type === "password" && V.value ? "text" : F.type);
63
- function ue() {
64
+ let F = t, I = P, L = S(), R = C(), z = y(null), B = y(null), { radiusAttrs: V, radiusStyle: H } = e(B, () => F.radius);
65
+ r(B);
66
+ let U = y(!1), W = y(F.modelValue), G = !1, K, q, J = `kima-text-field-${R}-hint`, Y = `kima-text-field-${R}-error`, X = s(() => F.error.length > 0), ae = s(() => F.type === "password" && U.value ? "text" : F.type);
67
+ function oe() {
64
68
  let e = [];
65
- return F.error ? e.push(q) : F.hint && e.push(K), L["aria-describedby"] && e.push(L["aria-describedby"]), e.length > 0 ? e.join(" ") : void 0;
69
+ return F.error ? e.push(Y) : F.hint && e.push(J), L["aria-describedby"] && e.push(L["aria-describedby"]), e.length > 0 ? e.join(" ") : void 0;
66
70
  }
67
- function de() {
71
+ function se() {
68
72
  return L["aria-label"] || L.ariaLabel || F.label || F.placeholder || void 0;
69
73
  }
70
- function fe() {
74
+ function ce() {
71
75
  let e = { ...L };
72
76
  return delete e.id, delete e.class, delete e.style, delete e["aria-describedby"], delete e["aria-label"], delete e.ariaLabel, e;
73
77
  }
74
78
  T(() => F.modelValue, (e) => {
75
- e !== H.value && (H.value = e);
79
+ e !== W.value && (W.value = e);
76
80
  });
77
- function X(e) {
78
- U || e.isComposing || e.target.value === H.value || (H.value = e.target.value, I("update:modelValue", H.value));
79
- }
80
- function pe() {
81
- I("change", H.value);
81
+ function Z(e) {
82
+ G || e.isComposing || e.target.value === W.value || (W.value = e.target.value, I("update:modelValue", W.value));
82
83
  }
83
- function Z() {
84
- F.disabled || F.readonly || !H.value || (H.value = "", I("update:modelValue", H.value), I("change", H.value), h(() => z.value?.focus()));
84
+ function le() {
85
+ I("change", W.value);
85
86
  }
86
- function me() {
87
+ function ue() {
87
88
  z.value?.focus();
88
89
  }
89
- N({ focus: me });
90
+ N({ focus: ue });
90
91
  function Q(e) {
91
92
  e.target === z.value.form && queueMicrotask(() => {
92
93
  if (e.defaultPrevented || !z.value) return;
93
- U = !1;
94
- let t = H.value !== W;
95
- H.value = W, z.value.value = W, t && I("update:modelValue", W);
94
+ G = !1;
95
+ let t = W.value !== K;
96
+ W.value = K, z.value.value = K, t && I("update:modelValue", K);
96
97
  });
97
98
  }
98
- let $ = x(null);
99
- return a($, () => [F.error || F.hint, !!F.error]), y(() => {
100
- W = H.value, z.value.defaultValue = W, G = z.value.ownerDocument, G.addEventListener("reset", Q, !0);
101
- }), v(() => G.removeEventListener("reset", Q, !0)), (e, a) => (b(), u("div", {
102
- class: g(["kima-text-field", [{
103
- "kima-text-field--error": J.value,
99
+ let $ = y(null);
100
+ return a($, () => [F.error || F.hint, !!F.error]), _(() => {
101
+ K = W.value, z.value.defaultValue = K, q = z.value.ownerDocument, q.addEventListener("reset", Q, !0);
102
+ }), g(() => q.removeEventListener("reset", Q, !0)), (e, r) => (v(), l("div", {
103
+ class: m(["kima-text-field", [{
104
+ "kima-text-field--error": X.value,
104
105
  "kima-text-field--disabled": t.disabled,
105
106
  "kima-text-field--readonly": t.readonly
106
- }, C(L).class]]),
107
- style: _(C(L).style)
108
- }, [d("div", {
107
+ }, x(L).class]]),
108
+ style: h(x(L).style)
109
+ }, [u("div", p({
109
110
  ref_key: "control",
110
- ref: B,
111
+ ref: B
112
+ }, x(V), {
113
+ style: x(H),
111
114
  class: "kima-text-field__control",
112
115
  "aria-disabled": t.disabled || void 0
113
- }, [d("input", m({
116
+ }), [u("input", p({
114
117
  ref_key: "input",
115
118
  ref: z
116
- }, fe(), {
119
+ }, ce(), {
117
120
  name: t.name,
118
- type: le.value,
119
- value: H.value,
121
+ type: ae.value,
122
+ value: W.value,
120
123
  required: t.required,
121
124
  disabled: t.disabled,
122
125
  readonly: t.readonly,
123
126
  placeholder: t.placeholder,
124
- "aria-label": de(),
125
- "aria-describedby": ue(),
126
- "aria-invalid": J.value || void 0,
127
+ "aria-label": se(),
128
+ "aria-describedby": oe(),
129
+ "aria-invalid": X.value || void 0,
127
130
  "aria-required": t.required || void 0,
128
- onInput: O(X, ["stop"]),
129
- onCompositionstart: a[0] ||= (e) => p(U) ? U.value = !0 : U = !0,
130
- onCompositionend: a[1] ||= (e) => {
131
- p(U) ? U.value = !1 : U = !1, X(e);
131
+ onInput: O(Z, ["stop"]),
132
+ onCompositionstart: r[0] ||= (e) => f(G) ? G.value = !0 : G = !0,
133
+ onCompositionend: r[1] ||= (e) => {
134
+ f(G) ? G.value = !1 : G = !1, Z(e);
132
135
  },
133
- onChange: O(pe, ["stop"])
134
- }), null, 16, ne), t.type === "password" ? (b(), u("div", re, [d("button", {
136
+ onChange: O(le, ["stop"])
137
+ }), null, 16, ie), t.type === "password" ? (v(), l("div", k, [u("button", {
135
138
  class: "kima-text-field__action",
136
139
  type: "button",
137
- "aria-label": V.value ? "隐藏密码" : "显示密码",
140
+ "aria-label": U.value ? "隐藏密码" : "显示密码",
138
141
  disabled: t.disabled,
139
- onClick: a[2] ||= (e) => V.value = !V.value
140
- }, [f(n, {
141
- icon: V.value ? C(j) : C(A),
142
+ onClick: r[2] ||= (e) => U.value = !U.value
143
+ }, [d(n, {
144
+ icon: U.value ? x(ne) : x(te),
142
145
  size: 18,
143
146
  color: "currentColor"
144
- }, null, 8, ["icon"])], 8, ie), f(o, m({ name: "kima-fade" }, C(i)), {
145
- default: E(() => [Y.value ? (b(), u("button", {
146
- key: 0,
147
- class: "kima-text-field__action",
148
- type: "button",
149
- "aria-label": "清除内容",
150
- disabled: t.disabled,
151
- onClick: Z
152
- }, [f(n, {
153
- icon: C(k),
154
- size: 18,
155
- color: "currentColor"
156
- }, null, 8, ["icon"])], 8, ae)) : l("", !0)]),
157
- _: 1
158
- }, 16)])) : (b(), c(o, m({
159
- key: 1,
160
- name: "kima-fade"
161
- }, C(i)), {
162
- default: E(() => [Y.value ? (b(), u("button", {
163
- key: 0,
164
- class: "kima-text-field__action kima-text-field__action--clear",
165
- type: "button",
166
- "aria-label": "清除内容",
167
- disabled: t.disabled,
168
- onClick: Z
169
- }, [f(n, {
170
- icon: C(k),
171
- size: 18,
172
- color: "currentColor"
173
- }, null, 8, ["icon"])], 8, oe)) : l("", !0)]),
174
- _: 1
175
- }, 16))], 8, M), f(o, m({ css: !1 }, {
176
- ...C(r),
177
- ...C(i)
147
+ }, null, 8, ["icon"])], 8, A)])) : c("", !0)], 16, re), d(o, p({ css: !1 }, {
148
+ ...x(ee),
149
+ ...x(i)
178
150
  }), {
179
- default: E(() => [D(d("div", {
151
+ default: E(() => [D(u("div", {
180
152
  ref_key: "messageWrap",
181
153
  ref: $,
182
154
  class: "kima-text-field__message-wrap",
183
155
  inert: !(t.error || t.hint),
184
156
  "aria-hidden": !(t.error || t.hint) || void 0
185
- }, [t.error || t.hint ? (b(), u("p", {
157
+ }, [t.error || t.hint ? (v(), l("p", {
186
158
  key: `${t.error ? "error" : "hint"}:${t.error || t.hint}`,
187
- class: g(["kima-text-field__message", { "kima-text-field__message--error": !!t.error }]),
188
- id: t.error ? q : K,
159
+ class: m(["kima-text-field__message", { "kima-text-field__message--error": !!t.error }]),
160
+ id: t.error ? Y : J,
189
161
  role: t.error ? "alert" : void 0
190
- }, S(t.error || t.hint), 11, ce)) : l("", !0)], 8, se), [[w, t.error || t.hint]])]),
162
+ }, b(t.error || t.hint), 11, M)) : c("", !0)], 8, j), [[w, t.error || t.hint]])]),
191
163
  _: 1
192
164
  }, 16)], 6));
193
165
  }
194
- }), [["__scopeId", "data-v-f22e5c02"]]);
166
+ }), [["__scopeId", "data-v-89a58b79"]]);
195
167
  export { N as default };