@sellmate/design-system 1.1.0 → 1.2.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 (345) hide show
  1. package/dist/cjs/{component.table-B7brIpIQ.js → component.table-CMqGfEui.js} +11 -1
  2. package/dist/cjs/design-system.cjs.js +2 -2
  3. package/dist/cjs/{index-BlxrCRYi.js → index-Cw-78mnC.js} +1 -1
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
  7. package/dist/cjs/sd-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
  9. package/dist/cjs/sd-button_2.cjs.entry.js +10 -9
  10. package/dist/cjs/sd-calendar.cjs.entry.js +1 -1
  11. package/dist/cjs/sd-card.cjs.entry.js +1 -1
  12. package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
  13. package/dist/cjs/sd-chip.cjs.entry.js +4 -4
  14. package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
  15. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +1 -1
  16. package/dist/cjs/sd-date-box.cjs.entry.js +8 -3
  17. package/dist/cjs/sd-date-picker-calendar_2.cjs.entry.js +13 -8
  18. package/dist/cjs/sd-date-picker_7.cjs.entry.js +22 -17
  19. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +13 -13
  20. package/dist/cjs/sd-dropdown-button.cjs.entry.js +7 -3
  21. package/dist/cjs/sd-field_3.cjs.entry.js +31 -30
  22. package/dist/cjs/sd-form.cjs.entry.js +5 -5
  23. package/dist/cjs/sd-ghost-button.cjs.entry.js +4 -4
  24. package/dist/cjs/sd-guide.cjs.entry.js +5 -5
  25. package/dist/cjs/sd-key-value-table.cjs.entry.js +10 -10
  26. package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
  27. package/dist/cjs/sd-loading-container.cjs.entry.js +1 -1
  28. package/dist/cjs/sd-modal-container.cjs.entry.js +3 -3
  29. package/dist/cjs/sd-pagination_4.cjs.entry.js +113 -40
  30. package/dist/cjs/sd-popover.cjs.entry.js +6 -6
  31. package/dist/cjs/sd-popup.cjs.entry.js +1 -1
  32. package/dist/cjs/sd-portal.cjs.entry.js +3 -3
  33. package/dist/cjs/sd-radio-button.cjs.entry.js +7 -4
  34. package/dist/cjs/sd-radio.cjs.entry.js +1 -1
  35. package/dist/cjs/sd-select-list-item_2.cjs.entry.js +15 -11
  36. package/dist/cjs/sd-select_3.cjs.entry.js +20 -15
  37. package/dist/cjs/sd-switch.cjs.entry.js +1 -1
  38. package/dist/cjs/sd-table.cjs.entry.js +170 -47
  39. package/dist/cjs/{sd-table.config-CDyioyE2.js → sd-table.config-BIpldZtw.js} +13 -2
  40. package/dist/cjs/sd-tabs.cjs.entry.js +8 -3
  41. package/dist/cjs/sd-tag.cjs.entry.js +10 -10
  42. package/dist/cjs/sd-td.cjs.entry.js +52 -10
  43. package/dist/cjs/sd-text-link.cjs.entry.js +9 -4
  44. package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
  45. package/dist/cjs/sd-toast.cjs.entry.js +3 -3
  46. package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
  47. package/dist/cjs/{tooltipArrow-N6nQ1QT-.js → tooltipArrow-BjSFKIUq.js} +1 -1
  48. package/dist/collection/components/sd-button/sd-button.js +9 -8
  49. package/dist/collection/components/sd-chip/sd-chip.js +4 -4
  50. package/dist/collection/components/sd-date-box/sd-date-box.js +7 -2
  51. package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +4 -4
  52. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +8 -3
  53. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +12 -12
  54. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +3 -3
  55. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +6 -2
  56. package/dist/collection/components/sd-field/sd-field.js +23 -22
  57. package/dist/collection/components/sd-file-picker/sd-file-picker.js +7 -2
  58. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +4 -4
  59. package/dist/collection/components/sd-form/sd-form.js +4 -4
  60. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +3 -3
  61. package/dist/collection/components/sd-guide/sd-guide.js +4 -4
  62. package/dist/collection/components/sd-input/sd-input.js +3 -3
  63. package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +8 -8
  64. package/dist/collection/components/sd-modal-container/sd-modal-container.js +2 -2
  65. package/dist/collection/components/sd-number-input/sd-number-input.js +6 -6
  66. package/dist/collection/components/sd-popover/sd-popover.js +4 -4
  67. package/dist/collection/components/sd-portal/sd-portal.js +2 -2
  68. package/dist/collection/components/sd-radio-button/sd-radio-button.js +6 -3
  69. package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
  70. package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +7 -3
  71. package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +7 -7
  72. package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +5 -5
  73. package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +9 -4
  74. package/dist/collection/components/sd-select/sd-select.js +5 -5
  75. package/dist/collection/components/sd-table/sd-table.config.js +4 -0
  76. package/dist/collection/components/sd-table/sd-table.css +22 -3
  77. package/dist/collection/components/sd-table/sd-table.js +197 -50
  78. package/dist/collection/components/sd-table/sd-table.stories.helpers.js +2 -3
  79. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +5 -5
  80. package/dist/collection/components/sd-table/sd-td/sd-td.js +111 -9
  81. package/dist/collection/components/sd-table/sd-thead/sd-thead.js +30 -16
  82. package/dist/collection/components/sd-table/sd-tr/sd-tr.css +20 -1
  83. package/dist/collection/components/sd-table/sd-tr/sd-tr.js +97 -18
  84. package/dist/collection/components/sd-tabs/sd-tabs.js +7 -2
  85. package/dist/collection/components/sd-tag/sd-tag.config.js +3 -3
  86. package/dist/collection/components/sd-tag/sd-tag.js +6 -3
  87. package/dist/collection/components/sd-text-link/sd-text-link.js +8 -3
  88. package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
  89. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  90. package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
  91. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  92. package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
  93. package/dist/collection/utils/modal.js +1 -1
  94. package/dist/components/index.js +1 -1
  95. package/dist/components/p-2wB9cing.js +1 -0
  96. package/dist/components/p-B-sK7I83.js +1 -0
  97. package/dist/components/p-B3D43x7F.js +1 -0
  98. package/dist/components/p-B7mpdnNl.js +1 -0
  99. package/dist/components/{p-DG45uNxd.js → p-BAcmO7w0.js} +1 -1
  100. package/dist/components/p-BL0ZcHK8.js +1 -0
  101. package/dist/components/p-BXCyVrle.js +1 -0
  102. package/dist/components/p-BY1LGlfc.js +1 -0
  103. package/dist/components/p-BjkROjjt.js +1 -0
  104. package/dist/components/p-Bm3W_eBv.js +1 -0
  105. package/dist/components/p-BnfUIhUj.js +1 -0
  106. package/dist/components/{p-D5TRyquv.js → p-BorUSgEK.js} +1 -1
  107. package/dist/components/{p-BfkuCNCI.js → p-BsM-fwYd.js} +1 -1
  108. package/dist/components/p-C5CH-s6a.js +1 -0
  109. package/dist/components/p-C7WLft_0.js +1 -0
  110. package/dist/components/{p-CGBnxqG2.js → p-CK9ciBIR.js} +1 -1
  111. package/dist/components/{p-BeK8amzx.js → p-CQI40kiY.js} +1 -1
  112. package/dist/components/{p-Dr1AMbBj.js → p-CRL7TjSB.js} +1 -1
  113. package/dist/components/p-CdOHomUp.js +1 -0
  114. package/dist/components/p-Ch5Yu1qd.js +1 -0
  115. package/dist/components/{p-D8WAP9T3.js → p-Cktiasfd.js} +1 -1
  116. package/dist/components/p-CsVAx6KV.js +1 -0
  117. package/dist/components/p-D0Jiw-Zk.js +1 -0
  118. package/dist/components/p-D5F7wCNo.js +1 -0
  119. package/dist/components/p-DBFgk0rX.js +1 -0
  120. package/dist/components/p-DFLCjX1a.js +1 -0
  121. package/dist/components/p-DL1ac1QS.js +1 -0
  122. package/dist/components/p-DeQcDHpn.js +1 -0
  123. package/dist/components/p-DfK4DiDI.js +1 -0
  124. package/dist/components/p-DhTcn6jX.js +1 -0
  125. package/dist/components/p-Dl8TIEQu.js +1 -0
  126. package/dist/components/{p--t9jBTYS.js → p-DyAnn9ea.js} +1 -1
  127. package/dist/components/p-Jts7ueOa.js +1 -0
  128. package/dist/components/{p-B1MabGRR.js → p-arZfxxPn.js} +1 -1
  129. package/dist/components/p-mmdt-WnS.js +1 -0
  130. package/dist/components/p-nOCYbyW4.js +1 -0
  131. package/dist/components/{p-MQTl8fGT.js → p-teN3CfOr.js} +1 -1
  132. package/dist/components/{p-ofkgu5aS.js → p-u8teDaMa.js} +1 -1
  133. package/dist/components/{p-BPsOJlCP.js → p-wCNRlKLa.js} +1 -1
  134. package/dist/components/sd-action-modal.js +1 -1
  135. package/dist/components/sd-badge.js +1 -1
  136. package/dist/components/sd-barcode-input.js +1 -1
  137. package/dist/components/sd-button.js +1 -1
  138. package/dist/components/sd-calendar.js +1 -1
  139. package/dist/components/sd-card.js +1 -1
  140. package/dist/components/sd-checkbox.js +1 -1
  141. package/dist/components/sd-chip.js +1 -1
  142. package/dist/components/sd-circle-progress.js +1 -1
  143. package/dist/components/sd-confirm-modal.js +1 -1
  144. package/dist/components/sd-date-box.js +1 -1
  145. package/dist/components/sd-date-picker-calendar.js +1 -1
  146. package/dist/components/sd-date-picker-trigger.js +1 -1
  147. package/dist/components/sd-date-picker.js +1 -1
  148. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  149. package/dist/components/sd-date-range-picker.js +1 -1
  150. package/dist/components/sd-dropdown-button.js +1 -1
  151. package/dist/components/sd-field.js +1 -1
  152. package/dist/components/sd-file-picker.js +1 -1
  153. package/dist/components/sd-floating-portal.js +1 -1
  154. package/dist/components/sd-form.js +1 -1
  155. package/dist/components/sd-ghost-button.js +1 -1
  156. package/dist/components/sd-guide.js +1 -1
  157. package/dist/components/sd-icon.js +1 -1
  158. package/dist/components/sd-input.js +1 -1
  159. package/dist/components/sd-key-value-table.js +1 -1
  160. package/dist/components/sd-linear-progress.js +1 -1
  161. package/dist/components/sd-loading-container.js +1 -1
  162. package/dist/components/sd-loading-modal.js +1 -1
  163. package/dist/components/sd-modal-container.js +1 -1
  164. package/dist/components/sd-number-input.js +1 -1
  165. package/dist/components/sd-pagination.js +1 -1
  166. package/dist/components/sd-popover.js +1 -1
  167. package/dist/components/sd-popup.js +1 -1
  168. package/dist/components/sd-portal.js +1 -1
  169. package/dist/components/sd-radio-button.js +1 -1
  170. package/dist/components/sd-radio-group.js +1 -1
  171. package/dist/components/sd-radio.js +1 -1
  172. package/dist/components/sd-select-list-item-search.js +1 -1
  173. package/dist/components/sd-select-list-item.js +1 -1
  174. package/dist/components/sd-select-listbox.js +1 -1
  175. package/dist/components/sd-select-trigger.js +1 -1
  176. package/dist/components/sd-select.js +1 -1
  177. package/dist/components/sd-switch.js +1 -1
  178. package/dist/components/sd-table.js +1 -1
  179. package/dist/components/sd-tabs.js +1 -1
  180. package/dist/components/sd-tag.js +1 -1
  181. package/dist/components/sd-tbody.js +1 -1
  182. package/dist/components/sd-td.js +1 -1
  183. package/dist/components/sd-text-link.js +1 -1
  184. package/dist/components/sd-textarea.js +1 -1
  185. package/dist/components/sd-thead.js +1 -1
  186. package/dist/components/sd-toast-container.js +1 -1
  187. package/dist/components/sd-toast.js +1 -1
  188. package/dist/components/sd-toggle.js +1 -1
  189. package/dist/components/sd-tooltip.js +1 -1
  190. package/dist/components/sd-tr.js +1 -1
  191. package/dist/design-system/design-system.css +1 -1
  192. package/dist/design-system/design-system.esm.js +1 -1
  193. package/dist/design-system/index.esm.js +1 -1
  194. package/dist/design-system/{p-b96c694c.entry.js → p-04fdb4b1.entry.js} +1 -1
  195. package/dist/design-system/p-05611ff7.entry.js +1 -0
  196. package/dist/design-system/p-0U6dRjlq.js +2 -0
  197. package/dist/design-system/{p-cd8e4dd6.entry.js → p-0fe603a4.entry.js} +1 -1
  198. package/dist/design-system/p-100f5887.entry.js +1 -0
  199. package/dist/design-system/p-18c5ae1a.entry.js +1 -0
  200. package/dist/design-system/p-1baa05ae.entry.js +1 -0
  201. package/dist/design-system/p-2a1ef965.entry.js +1 -0
  202. package/dist/design-system/p-2c63404f.entry.js +1 -0
  203. package/dist/design-system/{p-feeb0cc5.entry.js → p-435ae69e.entry.js} +1 -1
  204. package/dist/design-system/{p-cbda9194.entry.js → p-43e97572.entry.js} +1 -1
  205. package/dist/design-system/{p-e1c0a3c9.entry.js → p-44d05570.entry.js} +1 -1
  206. package/dist/design-system/{p-328fae12.entry.js → p-501fae20.entry.js} +1 -1
  207. package/dist/design-system/{p-b6ca4461.entry.js → p-5705e6d6.entry.js} +1 -1
  208. package/dist/design-system/p-5cbaf1db.entry.js +1 -0
  209. package/dist/design-system/p-5ed0becf.entry.js +1 -0
  210. package/dist/design-system/p-5f1c39b8.entry.js +1 -0
  211. package/dist/design-system/p-66af0ba0.entry.js +1 -0
  212. package/dist/design-system/{p-a942dfbe.entry.js → p-77690440.entry.js} +1 -1
  213. package/dist/design-system/p-78cc0289.entry.js +1 -0
  214. package/dist/design-system/{p-b04b22c6.entry.js → p-790165f8.entry.js} +1 -1
  215. package/dist/design-system/p-80466582.entry.js +1 -0
  216. package/dist/design-system/{p-c0f60b00.entry.js → p-857c44e8.entry.js} +1 -1
  217. package/dist/design-system/{p-4e2953eb.entry.js → p-87c868c3.entry.js} +1 -1
  218. package/dist/design-system/{p-f60cc7be.entry.js → p-8db7d8f2.entry.js} +1 -1
  219. package/dist/design-system/{p-18466728.entry.js → p-8ee990bd.entry.js} +1 -1
  220. package/dist/design-system/p-8f22106e.entry.js +1 -0
  221. package/dist/design-system/p-BnfUIhUj.js +1 -0
  222. package/dist/{components/p-CT3dfy3K.js → design-system/p-C29HUShl.js} +1 -1
  223. package/dist/design-system/p-a6545130.entry.js +1 -0
  224. package/dist/design-system/p-ae2d45a2.entry.js +1 -0
  225. package/dist/design-system/{p-f3cfff78.entry.js → p-aeccfb2b.entry.js} +1 -1
  226. package/dist/design-system/{p-20a50702.entry.js → p-b0aad445.entry.js} +1 -1
  227. package/dist/design-system/p-b3c144ff.entry.js +1 -0
  228. package/dist/design-system/{p-b1bb0d72.entry.js → p-caee95b0.entry.js} +1 -1
  229. package/dist/design-system/p-d30c823e.entry.js +1 -0
  230. package/dist/design-system/{p-f5576a0d.entry.js → p-d3212544.entry.js} +1 -1
  231. package/dist/design-system/p-d8c41313.entry.js +1 -0
  232. package/dist/design-system/{p-7882e388.entry.js → p-de8bb9ba.entry.js} +1 -1
  233. package/dist/design-system/{p-29ed11e5.entry.js → p-e2334c1c.entry.js} +1 -1
  234. package/dist/design-system/{p-d78fbe16.entry.js → p-f4d73a0c.entry.js} +1 -1
  235. package/dist/design-system/p-fc973500.entry.js +1 -0
  236. package/dist/design-system/p-fe0a5368.entry.js +1 -0
  237. package/dist/design-system/p-mmdt-WnS.js +1 -0
  238. package/dist/esm/{component.table-BQ6at17Y.js → component.table-BnfUIhUj.js} +11 -1
  239. package/dist/esm/design-system.js +3 -3
  240. package/dist/esm/{index-CLCoul8o.js → index-0U6dRjlq.js} +1 -1
  241. package/dist/esm/index.js +1 -1
  242. package/dist/esm/loader.js +3 -3
  243. package/dist/esm/sd-action-modal.entry.js +1 -1
  244. package/dist/esm/sd-badge.entry.js +1 -1
  245. package/dist/esm/sd-barcode-input.entry.js +1 -1
  246. package/dist/esm/sd-button_2.entry.js +10 -9
  247. package/dist/esm/sd-calendar.entry.js +1 -1
  248. package/dist/esm/sd-card.entry.js +1 -1
  249. package/dist/esm/sd-checkbox.entry.js +1 -1
  250. package/dist/esm/sd-chip.entry.js +4 -4
  251. package/dist/esm/sd-circle-progress.entry.js +1 -1
  252. package/dist/esm/sd-confirm-modal_2.entry.js +1 -1
  253. package/dist/esm/sd-date-box.entry.js +8 -3
  254. package/dist/esm/sd-date-picker-calendar_2.entry.js +13 -8
  255. package/dist/esm/sd-date-picker_7.entry.js +22 -17
  256. package/dist/esm/sd-date-range-picker-calendar.entry.js +13 -13
  257. package/dist/esm/sd-dropdown-button.entry.js +7 -3
  258. package/dist/esm/sd-field_3.entry.js +31 -30
  259. package/dist/esm/sd-form.entry.js +5 -5
  260. package/dist/esm/sd-ghost-button.entry.js +4 -4
  261. package/dist/esm/sd-guide.entry.js +5 -5
  262. package/dist/esm/sd-key-value-table.entry.js +10 -10
  263. package/dist/esm/sd-linear-progress.entry.js +1 -1
  264. package/dist/esm/sd-loading-container.entry.js +1 -1
  265. package/dist/esm/sd-modal-container.entry.js +3 -3
  266. package/dist/esm/sd-pagination_4.entry.js +113 -40
  267. package/dist/esm/sd-popover.entry.js +6 -6
  268. package/dist/esm/sd-popup.entry.js +1 -1
  269. package/dist/esm/sd-portal.entry.js +3 -3
  270. package/dist/esm/sd-radio-button.entry.js +7 -4
  271. package/dist/esm/sd-radio.entry.js +1 -1
  272. package/dist/esm/sd-select-list-item_2.entry.js +15 -11
  273. package/dist/esm/sd-select_3.entry.js +20 -15
  274. package/dist/esm/sd-switch.entry.js +1 -1
  275. package/dist/esm/{sd-table.config-0Te8GLCI.js → sd-table.config-B-VgXXT7.js} +13 -3
  276. package/dist/esm/sd-table.entry.js +170 -47
  277. package/dist/esm/sd-tabs.entry.js +8 -3
  278. package/dist/esm/sd-tag.entry.js +10 -10
  279. package/dist/esm/sd-td.entry.js +52 -10
  280. package/dist/esm/sd-text-link.entry.js +9 -4
  281. package/dist/esm/sd-toast-container.entry.js +2 -2
  282. package/dist/esm/sd-toast.entry.js +3 -3
  283. package/dist/esm/sd-toggle.entry.js +2 -2
  284. package/dist/esm/{tooltipArrow-Bc-yw2nt.js → tooltipArrow-O5LOsHae.js} +1 -1
  285. package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +3 -2
  286. package/dist/types/components/sd-table/constants.d.ts +2 -0
  287. package/dist/types/components/sd-table/sd-table.config.d.ts +4 -0
  288. package/dist/types/components/sd-table/sd-table.d.ts +19 -15
  289. package/dist/types/components/sd-table/sd-td/sd-td.d.ts +6 -0
  290. package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +7 -0
  291. package/dist/types/components/sd-tag/sd-tag.d.ts +1 -0
  292. package/dist/types/components.d.ts +41 -8
  293. package/hydrate/index.js +552 -244
  294. package/hydrate/index.mjs +552 -244
  295. package/package.json +1 -1
  296. package/dist/components/p-At6nBeyO.js +0 -1
  297. package/dist/components/p-B73VhbYi.js +0 -1
  298. package/dist/components/p-BDQQllAo.js +0 -1
  299. package/dist/components/p-BDr27lvk.js +0 -1
  300. package/dist/components/p-BQ6at17Y.js +0 -1
  301. package/dist/components/p-BW_sBt7X.js +0 -1
  302. package/dist/components/p-BX3TJuQY.js +0 -1
  303. package/dist/components/p-Bm_T3qE0.js +0 -1
  304. package/dist/components/p-BnzK4uU4.js +0 -1
  305. package/dist/components/p-BqkJ0rZv.js +0 -1
  306. package/dist/components/p-C4PmGpW8.js +0 -1
  307. package/dist/components/p-C9CszVFl.js +0 -1
  308. package/dist/components/p-CGQWERwE.js +0 -1
  309. package/dist/components/p-CZmKBmKx.js +0 -1
  310. package/dist/components/p-CnarDyZi.js +0 -1
  311. package/dist/components/p-Cr2ghUra.js +0 -1
  312. package/dist/components/p-Cspm6LxP.js +0 -1
  313. package/dist/components/p-Cx3jXw9J.js +0 -1
  314. package/dist/components/p-DG-4Ifco.js +0 -1
  315. package/dist/components/p-DfXAgw0E.js +0 -1
  316. package/dist/components/p-MMkRcTBd.js +0 -1
  317. package/dist/components/p-ZstG0XdT.js +0 -1
  318. package/dist/components/p-h7eBUL4i.js +0 -1
  319. package/dist/components/p-lyB7zSp-.js +0 -1
  320. package/dist/components/p-oIM6jNZe.js +0 -1
  321. package/dist/components/p-oKHZl8yu.js +0 -1
  322. package/dist/design-system/p-02289728.entry.js +0 -1
  323. package/dist/design-system/p-17d66d85.entry.js +0 -1
  324. package/dist/design-system/p-1bb86d69.entry.js +0 -1
  325. package/dist/design-system/p-21874054.entry.js +0 -1
  326. package/dist/design-system/p-282cbefa.entry.js +0 -1
  327. package/dist/design-system/p-35dce399.entry.js +0 -1
  328. package/dist/design-system/p-39ff56b4.entry.js +0 -1
  329. package/dist/design-system/p-3cb712a6.entry.js +0 -1
  330. package/dist/design-system/p-7610153d.entry.js +0 -1
  331. package/dist/design-system/p-7722ddeb.entry.js +0 -1
  332. package/dist/design-system/p-7bfa0cf9.entry.js +0 -1
  333. package/dist/design-system/p-824ecfb5.entry.js +0 -1
  334. package/dist/design-system/p-9a04b341.entry.js +0 -1
  335. package/dist/design-system/p-BQ6at17Y.js +0 -1
  336. package/dist/design-system/p-CGQWERwE.js +0 -1
  337. package/dist/design-system/p-CLCoul8o.js +0 -2
  338. package/dist/design-system/p-Dmf0PYdM.js +0 -1
  339. package/dist/design-system/p-a7a0ca14.entry.js +0 -1
  340. package/dist/design-system/p-baed13e4.entry.js +0 -1
  341. package/dist/design-system/p-bd45e65d.entry.js +0 -1
  342. package/dist/design-system/p-bf4156d8.entry.js +0 -1
  343. package/dist/design-system/p-c228c2c7.entry.js +0 -1
  344. package/dist/design-system/p-cf382479.entry.js +0 -1
  345. package/dist/design-system/p-d0de34fd.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
 
5
5
  const tab = {
6
6
  main: {
@@ -188,9 +188,14 @@ const SdTabs = class {
188
188
  };
189
189
  }
190
190
  render() {
191
- return (index.h("div", { key: '9578cc6d422a304312f9ebc78622264d20d1fb45', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index$1) => {
191
+ return (index.h("div", { key: 'dd4377850ef052d22b6eb790b7766a3521a41c1c', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index$1) => {
192
192
  const badgeName = this.getBadgeName(tab);
193
- return (index.h("div", { key: `tab-${index$1}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab) }, index.h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge !== undefined && tab.badge !== null && tab.badge !== '' && (index.h("sd-tag", { name: badgeName, label: tab.badge.toString() }))));
193
+ return (index.h("div", { key: `tab-${index$1}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
194
+ if (e.key === 'Enter' || e.key === ' ') {
195
+ e.preventDefault();
196
+ this.handleTabClick(tab);
197
+ }
198
+ } }, index.h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge !== undefined && tab.badge !== null && tab.badge !== '' && (index.h("sd-tag", { name: badgeName, label: tab.badge.toString() }))));
194
199
  })));
195
200
  }
196
201
  static get watchers() { return {
@@ -1,13 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
 
5
5
  const tag = {
6
6
  xs: {
7
7
  height: "20",
8
8
  paddingX: "8",
9
9
  gap: "4",
10
- icon: "12",
11
10
  typography: {
12
11
  fontSize: "11",
13
12
  fontWeight: "500",
@@ -18,7 +17,6 @@ const tag = {
18
17
  height: "24",
19
18
  paddingX: "8",
20
19
  gap: "4",
21
- icon: "16",
22
20
  typography: {
23
21
  fontSize: "12",
24
22
  fontWeight: "700",
@@ -30,7 +28,6 @@ const tag = {
30
28
  height: "28",
31
29
  paddingX: "12",
32
30
  gap: "6",
33
- icon: "16",
34
31
  typography: {
35
32
  fontSize: "14",
36
33
  fontWeight: "700",
@@ -136,7 +133,7 @@ const SQUARE_SIZE_CONFIG = {
136
133
  fontSize: `${tagTokens.tag.xs.typography.fontSize}px`,
137
134
  fontWeight: tagTokens.tag.xs.typography.fontWeight,
138
135
  lineHeight: `${tagTokens.tag.xs.typography.lineHeight}px`,
139
- iconSize: Number(tagTokens.tag.xs.icon),
136
+ iconSize: 12,
140
137
  radius: `${tagTokens.tag.xs.radius}px`,
141
138
  },
142
139
  sm: {
@@ -146,7 +143,7 @@ const SQUARE_SIZE_CONFIG = {
146
143
  fontSize: `${tagTokens.tag.sm.typography.fontSize}px`,
147
144
  fontWeight: tagTokens.tag.sm.typography.fontWeight,
148
145
  lineHeight: `${tagTokens.tag.sm.typography.lineHeight}px`,
149
- iconSize: Number(tagTokens.tag.sm.icon),
146
+ iconSize: 16,
150
147
  radius: `${tagTokens.tag.sm.radius}px`,
151
148
  },
152
149
  md: {
@@ -156,7 +153,7 @@ const SQUARE_SIZE_CONFIG = {
156
153
  fontSize: `${tagTokens.tag.md.typography.fontSize}px`,
157
154
  fontWeight: tagTokens.tag.md.typography.fontWeight,
158
155
  lineHeight: `${tagTokens.tag.md.typography.lineHeight}px`,
159
- iconSize: Number(tagTokens.tag.md.icon),
156
+ iconSize: 16,
160
157
  radius: `${tagTokens.tag.md.radius}px`,
161
158
  },
162
159
  };
@@ -190,6 +187,9 @@ const SdTag = class {
190
187
  label = '';
191
188
  icon;
192
189
  isLeft = true;
190
+ componentWillLoad() {
191
+ this.name = this.name ?? 'square_sm_grey';
192
+ }
193
193
  get resolvedName() {
194
194
  if (!isTagName(this.name)) {
195
195
  throw new Error(`Invalid sd-tag name: "${this.name}"`);
@@ -200,14 +200,14 @@ const SdTag = class {
200
200
  return TAG_CONFIG[this.resolvedName];
201
201
  }
202
202
  renderIcon(color, size) {
203
- if (!this.icon)
203
+ if (this.icon == null)
204
204
  return null;
205
205
  return index.h("sd-icon", { class: "sd-tag__icon", name: this.icon, size: size, color: color });
206
206
  }
207
207
  render() {
208
208
  const config = this.resolvedConfig;
209
209
  const iconNode = this.renderIcon(config.icon, config.iconSize);
210
- return (index.h("span", { key: 'a52a06f79f448427ff3fe2a40c43d23a64e8ed62', class: "sd-tag", style: {
210
+ return (index.h("span", { key: 'bcf16350c162da2907ddf4ac53924d016a2457dd', class: "sd-tag", style: {
211
211
  '--sd-tag-background': config.background,
212
212
  '--sd-tag-content': config.content,
213
213
  '--sd-tag-height': config.height,
@@ -217,7 +217,7 @@ const SdTag = class {
217
217
  '--sd-tag-font-weight': config.fontWeight,
218
218
  '--sd-tag-line-height': config.lineHeight,
219
219
  '--sd-tag-radius': config.radius,
220
- }, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '8e737f385a32109ab58fe4da036dbf594079f217', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
220
+ }, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '248f9d8df1ff10af3c533580203cac1f816d8000', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
221
221
  }
222
222
  };
223
223
  SdTag.style = sdTagCss();
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
  var constants = require('./constants-DJRV1upE.js');
5
5
 
6
6
  const sdTdCss = () => `sd-td *{box-sizing:border-box}sd-td{display:contents}sd-td.align-left{text-align:left}sd-td.align-center{text-align:center}sd-td.align-right{text-align:right}`;
@@ -19,6 +19,10 @@ const SdTd = class {
19
19
  // <sd-td> 호스트는 display:contents라 호스트의 class는 시각 효과가 없기 때문에,
20
20
  // 이 prop을 통해 sd-table 레지스트리에 등록 → sd-tr가 td 렌더 시 합쳐 사용한다.
21
21
  sdClass;
22
+ dividerLeft = false;
23
+ dividerRight = false;
24
+ // true이면 이 셀이 속한 행 전체가 dense를 무시하고 default 레이아웃으로 동작한다.
25
+ useFrame = false;
22
26
  handleFieldChange(_newField, oldField) {
23
27
  this.syncSlotName();
24
28
  this.syncSpanRegistration();
@@ -35,10 +39,18 @@ const SdTd = class {
35
39
  handleSdClassChange() {
36
40
  this.syncCellClassRegistration();
37
41
  }
42
+ handleDividerChange() {
43
+ this.syncCellClassRegistration();
44
+ }
45
+ handleUseFieldChange() {
46
+ this.syncUseFieldRegistration();
47
+ this.requestParentTrUpdate();
48
+ }
38
49
  componentWillLoad() {
39
50
  this.syncSlotName();
40
51
  this.syncSpanRegistration();
41
52
  this.syncCellClassRegistration();
53
+ this.syncUseFieldRegistration();
42
54
  // slot 타이밍 엇갈림 대응: 부모 sd-tr forceUpdate로 슬롯 재매칭
43
55
  const parentTr = this.el.parentElement;
44
56
  if (parentTr?.tagName?.toLowerCase() === 'sd-tr') {
@@ -49,6 +61,7 @@ const SdTd = class {
49
61
  this.syncSlotName();
50
62
  this.syncSpanRegistration();
51
63
  this.syncCellClassRegistration();
64
+ this.syncUseFieldRegistration();
52
65
  }
53
66
  // React StrictMode에서는 disconnect/reconnect 사이클이 일어나면서
54
67
  // 동일 인스턴스의 componentWillLoad는 더 이상 호출되지 않는다.
@@ -56,12 +69,14 @@ const SdTd = class {
56
69
  connectedCallback() {
57
70
  this.syncSpanRegistration();
58
71
  this.syncCellClassRegistration();
72
+ this.syncUseFieldRegistration();
59
73
  }
60
74
  disconnectedCallback() {
61
75
  const table = this.findTable();
62
- if (table && this.field && this.rowKey != null) {
76
+ if (table != null && this.field !== '' && this.rowKey != null) {
63
77
  table.unregisterSpanSync?.(String(this.rowKey), this.field);
64
78
  table.unregisterCellClassSync?.(String(this.rowKey), this.field);
79
+ table.unregisterUseFrameSync?.(String(this.rowKey), this.field);
65
80
  this.requestParentTrUpdate();
66
81
  }
67
82
  }
@@ -82,7 +97,7 @@ const SdTd = class {
82
97
  }
83
98
  syncSpanRegistration() {
84
99
  const table = this.findTable();
85
- if (!table?.registerSpanSync || !this.field || this.rowKey == null)
100
+ if (table?.registerSpanSync == null || this.field === '' || this.rowKey == null)
86
101
  return;
87
102
  const rs = Math.max(1, Math.floor(Number(this.rowspan) || 1));
88
103
  const cs = Math.max(1, Math.floor(Number(this.colspan) || 1));
@@ -96,27 +111,45 @@ const SdTd = class {
96
111
  return;
97
112
  const oldField = prevField ?? this.field;
98
113
  const oldRowKey = prevRowKey ?? (this.rowKey != null ? String(this.rowKey) : undefined);
99
- if (oldField && oldRowKey != null) {
114
+ if (oldField !== '' && oldRowKey != null) {
100
115
  table.unregisterCellClassSync?.(oldRowKey, oldField);
101
116
  }
102
- if (!table.registerCellClassSync || !this.field || this.rowKey == null)
117
+ if (!table.registerCellClassSync || this.field === '' || this.rowKey == null)
103
118
  return;
104
- table.registerCellClassSync(String(this.rowKey), this.field, this.sdClass);
119
+ const combinedClass = [
120
+ this.sdClass,
121
+ this.dividerLeft && 'td--divider-left',
122
+ this.dividerRight && 'td--divider-right',
123
+ ]
124
+ .filter(Boolean)
125
+ .join(' ') || undefined;
126
+ table.registerCellClassSync(String(this.rowKey), this.field, combinedClass);
105
127
  this.requestParentTrUpdate();
106
128
  }
129
+ syncUseFieldRegistration() {
130
+ const table = this.findTable();
131
+ if (!table || this.field === '' || this.rowKey == null)
132
+ return;
133
+ if (this.useFrame) {
134
+ table.registerUseFrameSync?.(String(this.rowKey), this.field);
135
+ }
136
+ else {
137
+ table.unregisterUseFrameSync?.(String(this.rowKey), this.field);
138
+ }
139
+ }
107
140
  syncSlotName() {
108
141
  const table = this.el.closest('sd-table');
109
142
  const fromMethod = table?.getTableIdSync?.();
110
143
  const fromAttr = table?.getAttribute(constants.TABLE_ID_ATTR);
111
- const tableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
112
- (fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
144
+ const tableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
145
+ (fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
113
146
  '';
114
- if (this.field && this.rowKey !== undefined && tableId) {
147
+ if (this.field !== '' && this.rowKey !== undefined && tableId !== '') {
115
148
  this.el.setAttribute('slot', `${tableId}-${this.field}-${this.rowKey}`);
116
149
  }
117
150
  }
118
151
  render() {
119
- return (index.h(index.Host, { key: 'a8b4cb79a6b40119087fcba358a5c8daadb70fe8', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: '959b53537662f22e6bb5fe8d775530c11cbdff3b' })));
152
+ return (index.h(index.Host, { key: 'ececfaf265a550ee38c5c2cc2ddd2875352deb10', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: 'c4a43f9affc1938d882e63e91ac90d570efffa37' })));
120
153
  }
121
154
  static get watchers() { return {
122
155
  "field": [{
@@ -133,6 +166,15 @@ const SdTd = class {
133
166
  }],
134
167
  "sdClass": [{
135
168
  "handleSdClassChange": 0
169
+ }],
170
+ "dividerLeft": [{
171
+ "handleDividerChange": 0
172
+ }],
173
+ "dividerRight": [{
174
+ "handleDividerChange": 0
175
+ }],
176
+ "useFrame": [{
177
+ "handleUseFieldChange": 0
136
178
  }]
137
179
  }; }
138
180
  };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
 
5
5
  const textLink = {
6
6
  gap: "4",
@@ -76,16 +76,21 @@ const SdTextLink = class {
76
76
  '--sd-text-link-text-decoration': typo.textDecoration,
77
77
  ...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
78
78
  };
79
- return (index.h("span", { key: '8b02293383e914a0d2c9ac4c9fa2bf4d6bd56d97', class: {
79
+ return (index.h("span", { key: '284a073ec6aca3ad91bffe084c3b84813df58772', role: "button", tabindex: this.disabled ? -1 : 0, class: {
80
80
  'sd-text-link': true,
81
81
  'sd-text-link--disabled': this.disabled,
82
- }, style: cssVars, onClick: this.handleClick }, this.icon && (index.h("sd-icon", { key: '1f10b5c49d53009a68550e22167b0ce58c29d555', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), index.h("span", { key: 'a5b528b595d036c079818fab432171e39a4c1a4e', class: labelClassName }, this.label), this.useArrow && (index.h("span", { key: 'fd1559e836bc3a6089043e5f4d9de12d364ab61f', class: "sd-text-link__arrow", style: {
82
+ }, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
83
+ if (e.key === 'Enter' || e.key === ' ') {
84
+ e.preventDefault();
85
+ this.handleClick();
86
+ }
87
+ } }, this.icon && (index.h("sd-icon", { key: '1e2021703a766769aa647f418fb4b287039d58a5', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), index.h("span", { key: 'a25f207b8bf5bc2c221f0b370159b61ba2f27040', class: labelClassName }, this.label), this.useArrow && (index.h("span", { key: 'f273671ee796224bada0d2d27fc58ff893c433e7', class: "sd-text-link__arrow", style: {
83
88
  width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
84
89
  height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
85
90
  display: 'inline-flex',
86
91
  alignItems: 'center',
87
92
  justifyContent: 'center',
88
- } }, index.h("sd-icon", { key: '3af56ca5845d6d544c786142ae5842aca0720808', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
93
+ } }, index.h("sd-icon", { key: '2e499bf0c1cd57d1ffb90999daa1c38d0cf43df8', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
89
94
  }
90
95
  };
91
96
  SdTextLink.style = sdTextLinkCss();
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
 
5
5
  const DEFAULT_DURATION = 4000;
6
6
  const DEFAULT_MAX_VISIBLE = 3;
@@ -234,7 +234,7 @@ const SdToastContainer = class {
234
234
  const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
235
235
  const indexMap = new Map();
236
236
  activeToasts.forEach((t, i) => indexMap.set(t.id, i));
237
- return (index.h("div", { key: 'b734ca5768953e095f98a7f8312f6fdd7a24ae30', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
237
+ return (index.h("div", { key: '4cf4413f350c2a1adc475c567d874252b1786e91', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
238
238
  this.expanded = true;
239
239
  this.pauseTimers();
240
240
  }, onMouseLeave: () => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
 
5
5
  const toast = {
6
6
  icon: "16",
@@ -84,12 +84,12 @@ const SdToast = class {
84
84
  const linkColor = typeConfig.linkColor ?? typeConfig.content;
85
85
  const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
86
86
  const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
87
- return (index.h("div", { key: '26f82a1da683136f605ddcc5c6c6a45266ae3158', style: {
87
+ return (index.h("div", { key: 'edab2d1d8ac8222a988d38279f1a002281454f51', style: {
88
88
  '--sd-toast-bg': typeConfig.bg,
89
89
  '--sd-toast-text': typeConfig.content,
90
90
  '--sd-toast-icon': iconColor,
91
91
  '--sd-toast-link': linkColor,
92
- } }, index.h("div", { key: 'd2ed3c831b86e2ddee804f8ce770642ea698f7ce', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: 'a6dba347a064420c2747963da35ad0d50406f426', class: "sd-toast__icon" }, index.h("sd-icon", { key: 'a05871f3711ae89050f11bdeb92d27b6c06354ba', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: '11901cf0531ac2b658d2278ba27021f9714340d7', class: "sd-toast__content" }, index.h("span", { key: '5edf234270283818732a5dbfaf581a27c8c084e6', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '518207a380b2d30c160a2a76649222655ec821cf', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: 'ed4847317cc9e0765a5964ab7ed245a37dce45ee', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: '74a8f5d6c2392bdb7c59d754d72ed591fa68bf62', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
92
+ } }, index.h("div", { key: '8dd98dd58cdf003ce031e5ae96b749a037333ce1', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: '2b78cbc4fe96cc00d444fb49956da1fe245993ef', class: "sd-toast__icon" }, index.h("sd-icon", { key: '679852c9a19046ce1d2c9a0cdb4346f6e23c77fb', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: '2798bd2392e9fc3c4c0375d894572da13d3d7e25', class: "sd-toast__content" }, index.h("span", { key: '76ab798742baa63b21bda60867cbeb5aa20f7957', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '6eb61ca5737f9af06ad63cfcef671e46ecc8de47', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: '6c1ad7d494c7cc218b1058fec1ed3e42af0c83fc', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: '32dd9adcc951a3a852bf20540376bd4d7ced7526', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
93
93
  }
94
94
  };
95
95
  SdToast.style = sdToastCss();
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
 
5
5
  const toggle = {
6
6
  height: "28",
@@ -120,7 +120,7 @@ const SdToggle = class {
120
120
  '--sd-toggle-content-select': TOGGLE_COLORS.content.select,
121
121
  '--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
122
122
  };
123
- return (index.h("label", { key: '958d824b5c502a578e1bb7a8fb0d30d59c2d8eda', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, index.h("input", { key: '81d5dc8ff0f9ca7e8a219f3c0e7bcce3a4ffc875', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
123
+ return (index.h("label", { key: '0b8273ed8f8efae70de32b92671bbd1353e877dc', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, index.h("input", { key: '2ec9909142463f8ba556ad885cb7f97bedad6b31', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
124
124
  }
125
125
  };
126
126
  SdToggle.style = sdToggleCss();
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
 
5
5
  const TooltipArrow = (props) => (index.h("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, index.h("path", { d: "M8.83205 10.7519C8.43623 11.3457 7.56377 11.3457 7.16795 10.7519L1.04907e-06 -1.39876e-06L16 0L8.83205 10.7519Z", fill: "currentColor" })));
6
6
 
@@ -20,10 +20,11 @@ export class SdButton {
20
20
  this.click.emit(event);
21
21
  };
22
22
  get resolvedName() {
23
- if (!isButtonName(this.name)) {
24
- throw new Error(`Invalid sd-button name: "${this.name}"`);
23
+ const name = this.name || 'primary_sm';
24
+ if (!isButtonName(name)) {
25
+ throw new Error(`Invalid sd-button name: "${name}"`);
25
26
  }
26
- return this.name;
27
+ return name;
27
28
  }
28
29
  get resolvedConfig() {
29
30
  const name = this.resolvedName;
@@ -49,8 +50,8 @@ export class SdButton {
49
50
  this.warnIfMissingAriaLabel();
50
51
  }
51
52
  warnIfMissingAriaLabel() {
52
- const iconOnly = !this.label && (isValidIcon(this.icon) || isValidIcon(this.rightIcon));
53
- const missingAriaLabel = iconOnly && !this.ariaLabel.trim();
53
+ const iconOnly = this.label === '' && (isValidIcon(this.icon) || isValidIcon(this.rightIcon));
54
+ const missingAriaLabel = iconOnly && this.ariaLabel.trim() === '';
54
55
  if (!missingAriaLabel) {
55
56
  this.hasWarnedMissingAriaLabel = false;
56
57
  return;
@@ -67,14 +68,14 @@ export class SdButton {
67
68
  const validIcon = isValidIcon(this.icon) ? this.icon : undefined;
68
69
  const validRightIcon = isValidIcon(this.rightIcon) ? this.rightIcon : undefined;
69
70
  const iconOnly = !hasLabel && Boolean(validIcon) !== Boolean(validRightIcon);
70
- const accessibleName = iconOnly && this.ariaLabel.trim() ? this.ariaLabel : undefined;
71
- return (h("button", { key: '3f228e1e1bd80106c60aacab606c48622864045d', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type ?? 'button', disabled: this.disabled, "aria-label": accessibleName, style: {
71
+ const accessibleName = iconOnly && this.ariaLabel.trim() !== '' ? this.ariaLabel : undefined;
72
+ return (h("button", { key: 'c9f4491915f6ba4fdbf54df19b008bd32edbf925', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type ?? 'button', disabled: this.disabled, "aria-label": accessibleName, style: {
72
73
  '--sd-button-bg': config.color,
73
74
  '--sd-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
74
75
  '--sd-button-border': PRESET_BORDER_COLORS[preset],
75
76
  '--sd-button-content': PRESET_CONTENT_COLORS[preset],
76
77
  '--sd-button-accent': BUTTON_FOCUS_RING_COLOR,
77
- }, onClick: this.handleClick }, h("span", { key: '03803b4bf493ee2a03197437d40daba083f337fe', class: "sd-button__content" }, validIcon && (h("sd-icon", { key: '7e6b2c31136c90a0da3f174be15c04f3da405ed6', class: "sd-button__icon", name: validIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })), this.label && h("span", { key: '32f11f40391d214d80090653ab3c4387f7359bbb', class: "sd-button__label" }, this.label), validRightIcon && (h("sd-icon", { key: 'a577a5074d02f04898308a593a13803abfca2510', class: "sd-button__icon sd-button__icon--right", name: validRightIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })))));
78
+ }, onClick: this.handleClick }, h("span", { key: '44fc95645e6eea6aecee9978887f4309d9d31342', class: "sd-button__content" }, validIcon && (h("sd-icon", { key: 'ae1d9a3e8eb40ed0aecac0e70af1341ac90767c8', class: "sd-button__icon", name: validIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })), this.label && h("span", { key: 'ab7bbf916c3b0432db6313050d7facfe919794de', class: "sd-button__label" }, this.label), validRightIcon && (h("sd-icon", { key: 'a533ef5439abe1729ccfacc9f8e44263b56434e5', class: "sd-button__icon sd-button__icon--right", name: validRightIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })))));
78
79
  }
79
80
  static get is() { return "sd-button"; }
80
81
  static get originalStyleUrls() {
@@ -1,4 +1,4 @@
1
- import { h } from "@stencil/core";
1
+ import { h, } from "@stencil/core";
2
2
  import { CHIP_COLORS, CHIP_LAYOUT, CHIP_TYPOGRAPHY } from "./sd-chip.config";
3
3
  export class SdChip {
4
4
  el;
@@ -167,7 +167,7 @@ export class SdChip {
167
167
  });
168
168
  }
169
169
  unregisterFromForm() {
170
- if (!this.name)
170
+ if (this.name === '')
171
171
  return;
172
172
  const formEl = this.el.closest('sd-form');
173
173
  formEl?.componentOnReady().then(form => {
@@ -205,12 +205,12 @@ export class SdChip {
205
205
  '--sd-chip-font-weight': typography.fontWeight,
206
206
  '--sd-chip-line-height': typography.lineHeight,
207
207
  };
208
- return (h("span", { key: '62732b07b821a995f2a9a32d433417a575b9e228', class: {
208
+ return (h("span", { key: '0addb8566b639d05921b9320b99abab7f1d67899', class: {
209
209
  'sd-chip': true,
210
210
  [`sd-chip--${state}`]: true,
211
211
  'sd-chip--disabled': this.disabled,
212
212
  'sd-chip--editable': !this.disabled,
213
- }, role: this.disabled ? undefined : 'button', tabIndex: this.disabled || this.isEditing ? -1 : 0, "aria-disabled": this.disabled ? 'true' : undefined, style: cssVars, onClick: this.handleChipClick, onKeyDown: this.handleChipKeyDown }, this.isEditing ? (h("span", { key: "chip-input", ref: el => (this.inputEl = el), class: "sd-chip__input", contentEditable: !this.disabled, "data-placeholder": this.placeholder, spellcheck: false, onInput: this.handleInputChange, onKeyDown: this.handleInputKeyDown, onBlur: this.handleInputBlur, onPaste: this.handlePaste, onClick: event => event.stopPropagation() })) : ([
213
+ }, role: this.disabled ? undefined : 'button', tabIndex: this.disabled || this.isEditing ? -1 : 0, "aria-disabled": this.disabled ? 'true' : undefined, style: cssVars, onClick: this.handleChipClick, onKeyDown: this.handleChipKeyDown }, this.isEditing ? (h("span", { key: "chip-input", ref: el => (this.inputEl = el), class: "sd-chip__input", role: "textbox", tabindex: this.disabled ? -1 : 0, contentEditable: !this.disabled, "data-placeholder": this.placeholder, spellcheck: false, onInput: this.handleInputChange, onKeyDown: this.handleInputKeyDown, onBlur: this.handleInputBlur, onPaste: this.handlePaste, onClick: event => event.stopPropagation() })) : ([
214
214
  h("span", { key: "chip-label", class: "sd-chip__label" }, this.internalValue),
215
215
  !this.disabled && (h("sd-ghost-button", { key: "chip-remove", class: "sd-chip__remove", icon: "close", size: "xxs", ariaLabel: "remove", onClick: this.handleRemoveClick })),
216
216
  ])));
@@ -23,7 +23,7 @@ export class SdDateBox {
23
23
  this.mouseOver?.emit(this.date);
24
24
  }
25
25
  render() {
26
- return (h("div", { key: '5d1e92d90bbb12e3baaf9deaeafb6777d0540106', role: "button", tabindex: this.disabled ? -1 : 0, class: {
26
+ return (h("div", { key: 'ce4341db137de36e872a0e166bd89c33ac1ba91b', role: "button", tabindex: this.disabled ? -1 : 0, class: {
27
27
  'sd-date-box': true,
28
28
  'sd-hoverable': !this.disabled || !this.selected || this.type === '',
29
29
  'sd-date-box--disabled': this.disabled,
@@ -34,7 +34,12 @@ export class SdDateBox {
34
34
  'sd-date-box--in-range': this.inRange,
35
35
  'sd-date-box--type-start': this.type === 'start',
36
36
  'sd-date-box--type-end': this.type === 'end',
37
- }, onClick: () => this.handleClickDate(), onMouseOver: () => this.handleHoverDate() }, h("div", { key: 'a35272c78379828e61151435157e2324938752b4', class: "sd-date-box__content" }, h("div", { key: '21177c5b59e8a85b08275e4ce97f386f8af7f082', class: "sd-date-box__label" }, this.date))));
37
+ }, onClick: () => this.handleClickDate(), onKeyDown: e => {
38
+ if (e.key === 'Enter' || e.key === ' ') {
39
+ e.preventDefault();
40
+ this.handleClickDate();
41
+ }
42
+ }, onMouseOver: () => this.handleHoverDate(), onFocus: () => this.handleHoverDate() }, h("div", { key: 'e641ed011f8e7e55cc589f566163899b26503717', class: "sd-date-box__content" }, h("div", { key: 'e15a5fce460757d5cf486ec0678c2e604beab4db', class: "sd-date-box__label" }, this.date))));
38
43
  }
39
44
  static get is() { return "sd-date-box"; }
40
45
  static get encapsulation() { return "scoped"; }
@@ -92,9 +92,9 @@ export class SdDatePickerCalendar {
92
92
  if (!this.selectable)
93
93
  return false;
94
94
  const [start, end] = this.selectable;
95
- if (start && date < start)
95
+ if (start !== '' && date < start)
96
96
  return true;
97
- if (end && date > end)
97
+ if (end !== '' && date > end)
98
98
  return true;
99
99
  return false;
100
100
  }
@@ -133,8 +133,8 @@ export class SdDatePickerCalendar {
133
133
  '--calendar-day-font-weight': CALENDAR_LAYOUT.day.fontWeight,
134
134
  '--calendar-day-bold-font-weight': CALENDAR_LAYOUT.day.boldFontWeight,
135
135
  };
136
- return (h("div", { key: '164ebac9053c7d170e8c9fe5b312f89f555b880b', class: "sd-date-picker-calendar", style: cssVars }, h("div", { key: '4b4ce2b19c633f42d20a4815efc8ab893ab199d3', class: "sd-date-picker-calendar__header" }, h("div", { key: '731609bd38d9678662932b8269f239364da2b2af', class: "sd-date-picker-calendar__nav-group" }, h("sd-ghost-button", { key: '946627e4ac37737231a6392fdb1648f38b2985fa', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), h("span", { key: 'e140d80eed2c814feb68eab6cfe1fa71fd3d8f81', class: "sd-date-picker-calendar__label" }, this.currentYear), h("sd-ghost-button", { key: '3890011556b23216f24c76774127a0028e809597', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), h("span", { key: '64c817732b5d1bb85a74d1ea8f3f4e558758ef57', class: "sd-date-picker-calendar__divider", "aria-hidden": "true" }), h("div", { key: '2659907e152e99bb82f7d4d4fa73f7eb1c108960', class: "sd-date-picker-calendar__nav-group sd-date-picker-calendar__nav-group-month" }, h("sd-ghost-button", { key: '6d3a7c08a61d983ff1e4bc09e41e036dfcd24b70', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), h("span", { key: '7a3fddc6eb0420b963524daac26ef6d95e5d8126', class: "sd-date-picker-calendar__label sd-date-picker-calendar__label-month" }, this.currentMonth, "\uC6D4"), h("sd-ghost-button", { key: '0c265077f27039214d70d1cc31baa4fc24da0132', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), h("div", { key: '0d9ae82e475e0380b760e134e534871a492a51a0', class: "sd-date-picker-calendar__week" }, WEEK_LABELS.map(label => (h("span", { key: label, class: "sd-date-picker-calendar__week-cell" }, label)))), h("div", { key: '7d42127cd66f6646d49013cebe49cee709f401e9', class: "sd-date-picker-calendar__grid" }, this.cells.map(cell => {
137
- const isSelected = cell.inCurrentMonth && !!this.value && this.value === cell.date;
136
+ return (h("div", { key: '5fca5d51cbe5005cde3468c10f39397831371762', class: "sd-date-picker-calendar", style: cssVars }, h("div", { key: '5b6a101b463b455bfc70f9b92665fe308f45773d', class: "sd-date-picker-calendar__header" }, h("div", { key: '3fe7a4e416c632640371f9b3cb12baf72c7eab06', class: "sd-date-picker-calendar__nav-group" }, h("sd-ghost-button", { key: '1c71cf45dae23308ff901f08b606f0cfcdc7e5b4', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), h("span", { key: 'aa9863d2cac5eb5d00a0d72570b216206b669f37', class: "sd-date-picker-calendar__label" }, this.currentYear), h("sd-ghost-button", { key: '941118e0c3cd37ed5decb2e91cfa738221f74958', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), h("span", { key: 'e630c7269a617deeaa38cace0e2a91affb558688', class: "sd-date-picker-calendar__divider", "aria-hidden": "true" }), h("div", { key: '45cfc135eeb6bf834cef92c1e36f2def4d7c2058', class: "sd-date-picker-calendar__nav-group sd-date-picker-calendar__nav-group-month" }, h("sd-ghost-button", { key: '98483c6626ea13cdb78be806feaa1748d60b6a1a', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), h("span", { key: '9e6097a040679203117436966c246f00b94f5ff2', class: "sd-date-picker-calendar__label sd-date-picker-calendar__label-month" }, this.currentMonth, "\uC6D4"), h("sd-ghost-button", { key: '0ab7ccdae8678bb909aca74f4189a4426e51ec0b', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), h("div", { key: '07763d55d00fd6c6b3523bbbb2e994a177a5b81c', class: "sd-date-picker-calendar__week" }, WEEK_LABELS.map(label => (h("span", { key: label, class: "sd-date-picker-calendar__week-cell" }, label)))), h("div", { key: '0304efaa140a8dba320e0e6791ef886bc77ac57b', class: "sd-date-picker-calendar__grid" }, this.cells.map(cell => {
137
+ const isSelected = cell.inCurrentMonth && this.value !== '' && this.value === cell.date;
138
138
  const isToday = cell.inCurrentMonth && today === cell.date;
139
139
  const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
140
140
  return (h("button", { type: "button", key: cell.date, class: {
@@ -13,7 +13,7 @@ export class SdDatePickerTrigger {
13
13
  };
14
14
  render() {
15
15
  const sizeTokens = DATEPICKER_SIZE_MAP[this.size] ?? DATEPICKER_SIZE_MAP.sm;
16
- const hasValue = !!this.displayText;
16
+ const hasValue = this.displayText !== '';
17
17
  const textMinWidth = this.size === 'md' ? 104 : 80;
18
18
  const cssVars = {
19
19
  '--trigger-padding-x': `${sizeTokens.paddingX}px`,
@@ -33,10 +33,15 @@ export class SdDatePickerTrigger {
33
33
  ? DATEPICKER_COLORS.icon.disabled
34
34
  : DATEPICKER_COLORS.icon.default,
35
35
  };
36
- return (h("div", { key: '449ce38199b5a3d29d88353b9375bc45eceeae89', class: {
36
+ return (h("div", { key: 'df53dd75ead71167d7089daab5718c7ff1c990ae', role: "button", tabindex: this.disabled ? -1 : 0, class: {
37
37
  'sd-date-picker-trigger': true,
38
38
  'sd-date-picker-trigger--disabled': this.disabled,
39
- }, style: cssVars, onClick: this.handleClick }, h("sd-icon", { key: 'cc88f44660297a2fb72dfc9e4bc2387a84d55f58', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), h("span", { key: '515419e015bf396b0ddba48615238e028ccc4a6d', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
39
+ }, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
40
+ if (e.key === 'Enter' || e.key === ' ') {
41
+ e.preventDefault();
42
+ this.handleClick();
43
+ }
44
+ } }, h("sd-icon", { key: '76f41c99e1695eaa191cbc81ae057e65cb78e955', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), h("span", { key: '4e1a4b2b41737f05dc1a4e642d317f5fc93bf9b2', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
40
45
  }
41
46
  static get is() { return "sd-date-picker-trigger"; }
42
47
  static get originalStyleUrls() {
@@ -111,12 +111,12 @@ export class SdDateRangePickerCalendar {
111
111
  isDisabled(date) {
112
112
  if (this.selectable) {
113
113
  const [start, end] = this.selectable;
114
- if (start && date < start)
114
+ if (start != null && start !== '' && date < start)
115
115
  return true;
116
- if (end && date > end)
116
+ if (end != null && end !== '' && date > end)
117
117
  return true;
118
118
  }
119
- if (this.maxRange && this.pendingStart) {
119
+ if (this.maxRange != null && this.maxRange > 0 && this.pendingStart !== '') {
120
120
  const min = addDays(this.pendingStart, -this.maxRange);
121
121
  const max = addDays(this.pendingStart, this.maxRange);
122
122
  if (date < min || date > max)
@@ -129,8 +129,8 @@ export class SdDateRangePickerCalendar {
129
129
  return;
130
130
  if (this.isDisabled(cell.date))
131
131
  return;
132
- const hasCompleteRange = !!this.displayValue && !!this.displayValue[0] && !!this.displayValue[1];
133
- if (!this.pendingStart || hasCompleteRange || cell.date < this.pendingStart) {
132
+ const hasCompleteRange = this.displayValue != null && this.displayValue[0] !== '' && this.displayValue[1] !== '';
133
+ if (this.pendingStart === '' || hasCompleteRange || cell.date < this.pendingStart) {
134
134
  this.pendingStart = cell.date;
135
135
  this.displayValue = null;
136
136
  this.hoverDate = '';
@@ -145,7 +145,7 @@ export class SdDateRangePickerCalendar {
145
145
  handleDayHover(cell) {
146
146
  if (!cell.inCurrentMonth)
147
147
  return;
148
- if (this.pendingStart) {
148
+ if (this.pendingStart !== '') {
149
149
  this.hoverDate = cell.date;
150
150
  }
151
151
  }
@@ -153,18 +153,18 @@ export class SdDateRangePickerCalendar {
153
153
  if (!inCurrentMonth) {
154
154
  return { inRange: false, isRangeStart: false, isRangeEnd: false, isSelectedEdge: false };
155
155
  }
156
- if (this.pendingStart) {
156
+ if (this.pendingStart !== '') {
157
157
  const isStart = date === this.pendingStart;
158
- const previewEnd = this.hoverDate && this.hoverDate >= this.pendingStart ? this.hoverDate : '';
159
- const inPreview = !!previewEnd && date > this.pendingStart && date <= previewEnd;
158
+ const previewEnd = this.hoverDate !== '' && this.hoverDate >= this.pendingStart ? this.hoverDate : '';
159
+ const inPreview = previewEnd !== '' && date > this.pendingStart && date <= previewEnd;
160
160
  return {
161
161
  inRange: inPreview,
162
162
  isRangeStart: isStart,
163
- isRangeEnd: !!previewEnd && date === previewEnd,
163
+ isRangeEnd: previewEnd !== '' && date === previewEnd,
164
164
  isSelectedEdge: isStart,
165
165
  };
166
166
  }
167
- if (this.displayValue && this.displayValue[0] && this.displayValue[1]) {
167
+ if (this.displayValue != null && this.displayValue[0] !== '' && this.displayValue[1] !== '') {
168
168
  const [start, end] = this.displayValue;
169
169
  const isStart = date === start;
170
170
  const isEnd = date === end;
@@ -239,7 +239,7 @@ export class SdDateRangePickerCalendar {
239
239
  '--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
240
240
  '--range-divider': RANGE_LAYOUT.divider,
241
241
  };
242
- return (h(Fragment, { key: '1c32908b35f51dd5a9fa2817ffb81cf60e721b40' }, h("div", { key: 'd5dea22d401dbcde38a7677a46a3003543499aaf', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), h("div", { key: '678611077abc979433250e7d5013f14aa15e5090', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), h("span", { key: '1c8a77eceedfdb52d7bab44fb9b9018bfe5ccd91', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
242
+ return (h(Fragment, { key: '71f25effececd0b83d9b33201230dc615ba87a30' }, h("div", { key: 'f075474fb0be9f8e8562a013532b3cdbaadee069', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), h("div", { key: '4dfa1d65b971f7d80f0799482c8ce41522200a94', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), h("span", { key: '20149f97a5115115cc49894383ca7f989ba2b904', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
243
243
  }
244
244
  static get is() { return "sd-date-range-picker-calendar"; }
245
245
  static get originalStyleUrls() {
@@ -81,7 +81,7 @@ export class SdDateRangePicker {
81
81
  this.viewChange.emit(e.detail);
82
82
  };
83
83
  get displayText() {
84
- if (!this.value || !this.value[0] || !this.value[1])
84
+ if (this.value == null || this.value[0] === '' || this.value[1] === '')
85
85
  return '';
86
86
  return `${this.value[0]} ~ ${this.value[1]}`;
87
87
  }
@@ -98,9 +98,9 @@ export class SdDateRangePicker {
98
98
  '--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
99
99
  '--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
100
100
  };
101
- return (h("sd-field", { key: 'e44e9a2cf5c610c20c419215bd3b14494cea2980', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '29951ae2a98d2a44c2b01a735291dd2ec6d7e5a2', class: "sd-date-range-picker", ref: el => {
101
+ return (h("sd-field", { key: '1c335b82235bc829f26b06d01c967d81268fc348', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '495f6e88d01bc6f19e57e04152e84bff2d0415d4', class: "sd-date-range-picker", ref: el => {
102
102
  this.triggerRef = el;
103
- } }, h("sd-date-picker-trigger", { key: '37d379cf054838e5005b00812401a8d7c6d4daa9', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '1fbc3c2a16c845486e942b0a71ff799a9d1a98c6', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-date-range-picker-calendar", { key: '6e53bfaa550c93e6b2c08a2311bc415f359bc2da', value: this.value, selectable: this.selectable, maxRange: this.maxRange, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
103
+ } }, h("sd-date-picker-trigger", { key: '59c2d6ecdd7724e361ac4f6222d34d9ceca7ffd3', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '5ba7ab62c1205823fba496e984f4819dbb89064d', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-date-range-picker-calendar", { key: 'e6f84d99a4ceebee972900fd56593c18497cba9d', value: this.value, selectable: this.selectable, maxRange: this.maxRange, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
104
104
  }
105
105
  static get is() { return "sd-date-range-picker"; }
106
106
  static get originalStyleUrls() {