@sellmate/design-system 1.0.67 → 1.0.69

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 (426) hide show
  1. package/dist/cjs/{component.textinput-C4SsDjA1.js → component.textinput-BpXDeZPD.js} +3 -2
  2. package/dist/cjs/design-system.cjs.js +2 -2
  3. package/dist/cjs/{index-BpT5VmKY.js → index-B2QvhbC3.js} +1 -1
  4. package/dist/cjs/index.cjs.js +36 -41
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/modal-stack-DucFLON7.js +112 -0
  7. package/dist/cjs/sd-action-modal.cjs.entry.js +2 -2
  8. package/dist/cjs/sd-badge.cjs.entry.js +2 -2
  9. package/dist/cjs/sd-barcode-input.cjs.entry.js +4 -3
  10. package/dist/cjs/sd-button-v2_2.cjs.entry.js +3 -3
  11. package/dist/cjs/sd-button_4.cjs.entry.js +35 -18
  12. package/dist/cjs/sd-calendar.cjs.entry.js +1 -1
  13. package/dist/cjs/sd-card.cjs.entry.js +2 -2
  14. package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
  15. package/dist/cjs/sd-chip.cjs.entry.js +312 -0
  16. package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
  17. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +4 -4
  18. package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
  19. package/dist/cjs/sd-date-picker-calendar.cjs.entry.js +2 -2
  20. package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +3 -3
  21. package/dist/cjs/sd-date-picker.cjs.entry.js +4 -3
  22. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +2 -2
  23. package/dist/cjs/sd-date-range-picker.cjs.entry.js +4 -3
  24. package/dist/cjs/sd-dropdown-button.cjs.entry.js +8 -19
  25. package/dist/cjs/sd-file-picker.cjs.entry.js +5 -4
  26. package/dist/cjs/sd-form.cjs.entry.js +1 -1
  27. package/dist/cjs/sd-ghost-button.cjs.entry.js +6 -6
  28. package/dist/cjs/sd-guide.cjs.entry.js +167 -34
  29. package/dist/cjs/sd-input_2.cjs.entry.js +8 -7
  30. package/dist/cjs/sd-loading-container.cjs.entry.js +4 -4
  31. package/dist/cjs/sd-modal-container.cjs.entry.js +126 -155
  32. package/dist/cjs/sd-number-input.cjs.entry.js +5 -4
  33. package/dist/cjs/sd-pagination_2.cjs.entry.js +117 -42
  34. package/dist/cjs/sd-popover.cjs.entry.js +4 -4
  35. package/dist/cjs/sd-portal.cjs.entry.js +4 -4
  36. package/dist/cjs/sd-progress.cjs.entry.js +3 -3
  37. package/dist/cjs/sd-radio-button.cjs.entry.js +2 -2
  38. package/dist/cjs/sd-radio-group.cjs.entry.js +2 -2
  39. package/dist/cjs/sd-radio.cjs.entry.js +2 -2
  40. package/dist/cjs/sd-select-dropdown_2.cjs.entry.js +4 -4
  41. package/dist/cjs/sd-select-group.cjs.entry.js +3 -2
  42. package/dist/cjs/sd-select-multiple-group.cjs.entry.js +2 -2
  43. package/dist/cjs/sd-select-multiple.cjs.entry.js +2 -2
  44. package/dist/cjs/sd-select-option-group.cjs.entry.js +4 -4
  45. package/dist/cjs/sd-select-v2-list-item_4.cjs.entry.js +12 -16
  46. package/dist/cjs/sd-select.cjs.entry.js +3 -2
  47. package/dist/cjs/sd-switch.cjs.entry.js +2 -2
  48. package/dist/cjs/sd-table.cjs.entry.js +6 -6
  49. package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
  50. package/dist/cjs/sd-tag.cjs.entry.js +3 -3
  51. package/dist/cjs/sd-tbody.cjs.entry.js +2 -2
  52. package/dist/cjs/sd-td.cjs.entry.js +2 -2
  53. package/dist/cjs/sd-text-link.cjs.entry.js +4 -4
  54. package/dist/cjs/sd-textarea.cjs.entry.js +4 -3
  55. package/dist/cjs/sd-thead.cjs.entry.js +4 -4
  56. package/dist/cjs/sd-toast-container.cjs.entry.js +3 -3
  57. package/dist/cjs/sd-toast.cjs.entry.js +3 -3
  58. package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
  59. package/dist/cjs/sd-tr.cjs.entry.js +3 -3
  60. package/dist/cjs/system-C89o3A9Z.js +16 -0
  61. package/dist/cjs/table-test.cjs.entry.js +2 -2
  62. package/dist/cjs/{tooltipArrow-C9i0ZsG_.js → tooltipArrow-Xkv-p1bY.js} +1 -1
  63. package/dist/collection/collection-manifest.json +2 -1
  64. package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
  65. package/dist/collection/components/sd-badge/sd-badge.js +1 -1
  66. package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +29 -1
  67. package/dist/collection/components/sd-button-v2/sd-button-v2.js +2 -2
  68. package/dist/collection/components/sd-card/sd-card.js +1 -1
  69. package/dist/collection/components/sd-chip/sd-chip.config.js +37 -0
  70. package/dist/collection/components/sd-chip/sd-chip.css +56 -0
  71. package/dist/collection/components/sd-chip/sd-chip.js +544 -0
  72. package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
  73. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
  74. package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +1 -1
  75. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
  76. package/dist/collection/components/sd-date-picker/sd-date-picker.js +30 -2
  77. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
  78. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +30 -2
  79. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +3 -3
  80. package/dist/collection/components/sd-field/sd-field.config.js +5 -0
  81. package/dist/collection/components/sd-field/sd-field.css +4 -0
  82. package/dist/collection/components/sd-field/sd-field.js +39 -5
  83. package/dist/collection/components/sd-file-picker/sd-file-picker.css +1 -1
  84. package/dist/collection/components/sd-file-picker/sd-file-picker.js +30 -2
  85. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +12 -8
  86. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +5 -5
  87. package/dist/collection/components/sd-guide/sd-guide.config.js +48 -0
  88. package/dist/collection/components/sd-guide/sd-guide.css +58 -29
  89. package/dist/collection/components/sd-guide/sd-guide.js +69 -40
  90. package/dist/collection/components/sd-input/sd-input.js +30 -2
  91. package/dist/collection/components/sd-loading-container/sd-loading-container.config.js +1 -1
  92. package/dist/collection/components/sd-loading-container/sd-loading-container.css +1 -1
  93. package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
  94. package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
  95. package/dist/collection/components/sd-modal-container/sd-modal-container.css +11 -10
  96. package/dist/collection/components/sd-modal-container/sd-modal-container.js +150 -164
  97. package/dist/collection/components/sd-number-input/sd-number-input.js +31 -3
  98. package/dist/collection/components/sd-pagination/sd-pagination.config.js +25 -0
  99. package/dist/collection/components/sd-pagination/sd-pagination.css +69 -53
  100. package/dist/collection/components/sd-pagination/sd-pagination.js +53 -37
  101. package/dist/collection/components/sd-popover/sd-popover.js +2 -2
  102. package/dist/collection/components/sd-portal/sd-portal.js +4 -4
  103. package/dist/collection/components/sd-progress/sd-progress.js +2 -2
  104. package/dist/collection/components/sd-radio/sd-radio.js +1 -1
  105. package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
  106. package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
  107. package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
  108. package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
  109. package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
  110. package/dist/collection/components/sd-select/sd-select.js +29 -1
  111. package/dist/collection/components/sd-select-group/sd-select-group.js +29 -1
  112. package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
  113. package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +1 -1
  114. package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
  115. package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js +2 -2
  116. package/dist/collection/components/sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.js +4 -4
  117. package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.css +5 -5
  118. package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +2 -2
  119. package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js +2 -2
  120. package/dist/collection/components/sd-select-v2/sd-select-v2.config.js +0 -1
  121. package/dist/collection/components/sd-select-v2/sd-select-v2.js +31 -3
  122. package/dist/collection/components/sd-switch/sd-switch.js +1 -1
  123. package/dist/collection/components/sd-table/sd-table.js +5 -5
  124. package/dist/collection/components/sd-table/sd-table.stories.helpers.js +146 -0
  125. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +1 -1
  126. package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
  127. package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
  128. package/dist/collection/components/sd-table/sd-tr/sd-tr.js +2 -2
  129. package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
  130. package/dist/collection/components/sd-tag/sd-tag.js +2 -2
  131. package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
  132. package/dist/collection/components/sd-textarea/sd-textarea.js +29 -1
  133. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  134. package/dist/collection/components/sd-toast-container/sd-toast-container.config.js +1 -1
  135. package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
  136. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  137. package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
  138. package/dist/collection/components/table-test/table-test.js +1 -1
  139. package/dist/collection/utils/modal-stack.js +109 -0
  140. package/dist/collection/utils/modal.js +17 -23
  141. package/dist/components/index.js +1 -1
  142. package/dist/components/{p-DHh_uT9m.js → p-B1j9ZWLJ.js} +1 -1
  143. package/dist/components/{p-DPJPXCqf.js → p-BBluw-CU.js} +1 -1
  144. package/dist/components/{p-D74FHxKd.js → p-BFd54Imz.js} +1 -1
  145. package/dist/components/{p-IbLrnrk8.js → p-BJshZele.js} +1 -1
  146. package/dist/components/p-BaHpEtbz.js +1 -0
  147. package/dist/components/{p-DZJZLfsh.js → p-BlqLear7.js} +1 -1
  148. package/dist/components/{p-CJwbBrt5.js → p-ByhWX2NK.js} +1 -1
  149. package/dist/components/{p-ByYIyCZY.js → p-BylHC3lv.js} +1 -1
  150. package/dist/components/p-C-txBx-h.js +1 -0
  151. package/dist/components/p-C0VkfKIA.js +1 -0
  152. package/dist/components/p-C4uWhzoG.js +1 -0
  153. package/dist/components/p-CEnwrYaY.js +1 -0
  154. package/dist/components/{p-DDOw5GBw.js → p-CLZ8NObl.js} +1 -1
  155. package/dist/components/{p-tZWFjQm2.js → p-COM91Bya.js} +1 -1
  156. package/dist/components/{p-BH4I7hqf.js → p-CS62OEXf.js} +1 -1
  157. package/dist/components/{p-iWu6aGXE.js → p-CX0V7awA.js} +1 -1
  158. package/dist/components/{p-DlsWuYWL.js → p-Cb1M05mf.js} +1 -1
  159. package/dist/{design-system/p-CRTx3YEe.js → components/p-Cj4NAUzE.js} +1 -1
  160. package/dist/components/{p-1iOCtFn5.js → p-CsPyZohK.js} +1 -1
  161. package/dist/components/{p-DhkPKN1J.js → p-CsVPC3FD.js} +1 -1
  162. package/dist/components/{p-tvysh3yO.js → p-Csfk-CtX.js} +1 -1
  163. package/dist/components/{p-DqYRbHxW.js → p-CtrDZYN5.js} +1 -1
  164. package/dist/components/p-D21iKAp7.js +1 -0
  165. package/dist/components/{p-cNJ6VOYI.js → p-D6C4-apu.js} +1 -1
  166. package/dist/components/p-D99-lhhk.js +1 -0
  167. package/dist/components/{p-V6yl4lMM.js → p-DGPGMB_Z.js} +1 -1
  168. package/dist/components/{p-CymMpTU-.js → p-DIro-Wat.js} +1 -1
  169. package/dist/components/{p-BstWg2vS.js → p-DPCj-bFr.js} +1 -1
  170. package/dist/components/p-DRVnqiWc.js +1 -0
  171. package/dist/components/p-D_lyw4rN.js +1 -0
  172. package/dist/components/{p-DL69hClF.js → p-Diis5oCN.js} +1 -1
  173. package/dist/components/{p-BRRvU4ZQ.js → p-DlkxQ9Jn.js} +1 -1
  174. package/dist/components/{p-Ds4UCVE1.js → p-DoSEK0_q.js} +1 -1
  175. package/dist/components/p-DukibDDA.js +1 -0
  176. package/dist/components/{p-hN9rpxkR.js → p-T5BGXHZg.js} +1 -1
  177. package/dist/components/{p-BF4hokOY.js → p-YgnF5oje.js} +1 -1
  178. package/dist/components/{p-CX2EDIQM.js → p-z9MoRjYX.js} +1 -1
  179. package/dist/components/sd-action-modal.js +1 -1
  180. package/dist/components/sd-badge.js +1 -1
  181. package/dist/components/sd-barcode-input.js +1 -1
  182. package/dist/components/sd-button-v2.js +1 -1
  183. package/dist/components/sd-button.js +1 -1
  184. package/dist/components/sd-calendar.js +1 -1
  185. package/dist/components/sd-card.js +1 -1
  186. package/dist/components/sd-checkbox.js +1 -1
  187. package/dist/components/sd-chip.d.ts +11 -0
  188. package/dist/components/sd-chip.js +1 -0
  189. package/dist/components/sd-circle-progress.js +1 -1
  190. package/dist/components/sd-confirm-modal.js +1 -1
  191. package/dist/components/sd-date-box.js +1 -1
  192. package/dist/components/sd-date-picker-calendar.js +1 -1
  193. package/dist/components/sd-date-picker-trigger.js +1 -1
  194. package/dist/components/sd-date-picker.js +1 -1
  195. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  196. package/dist/components/sd-date-range-picker.js +1 -1
  197. package/dist/components/sd-dropdown-button.js +1 -1
  198. package/dist/components/sd-field.js +1 -1
  199. package/dist/components/sd-file-picker.js +1 -1
  200. package/dist/components/sd-floating-portal.js +1 -1
  201. package/dist/components/sd-form.js +1 -1
  202. package/dist/components/sd-ghost-button.js +1 -1
  203. package/dist/components/sd-guide.js +1 -1
  204. package/dist/components/sd-icon.js +1 -1
  205. package/dist/components/sd-input.js +1 -1
  206. package/dist/components/sd-loading-container.js +1 -1
  207. package/dist/components/sd-loading-modal.js +1 -1
  208. package/dist/components/sd-modal-container.js +1 -1
  209. package/dist/components/sd-number-input.js +1 -1
  210. package/dist/components/sd-pagination.js +1 -1
  211. package/dist/components/sd-popover.js +1 -1
  212. package/dist/components/sd-portal.js +1 -1
  213. package/dist/components/sd-progress.js +1 -1
  214. package/dist/components/sd-radio-button.js +1 -1
  215. package/dist/components/sd-radio-group.js +1 -1
  216. package/dist/components/sd-radio.js +1 -1
  217. package/dist/components/sd-select-dropdown.js +1 -1
  218. package/dist/components/sd-select-group.js +1 -1
  219. package/dist/components/sd-select-multiple-group.js +1 -1
  220. package/dist/components/sd-select-multiple.js +1 -1
  221. package/dist/components/sd-select-option-group.js +1 -1
  222. package/dist/components/sd-select-option.js +1 -1
  223. package/dist/components/sd-select-search-input.js +1 -1
  224. package/dist/components/sd-select-v2-list-item-search.js +1 -1
  225. package/dist/components/sd-select-v2-list-item.js +1 -1
  226. package/dist/components/sd-select-v2-listbox.js +1 -1
  227. package/dist/components/sd-select-v2-trigger.js +1 -1
  228. package/dist/components/sd-select-v2.js +1 -1
  229. package/dist/components/sd-select.js +1 -1
  230. package/dist/components/sd-switch.js +1 -1
  231. package/dist/components/sd-table.js +1 -1
  232. package/dist/components/sd-tabs.js +1 -1
  233. package/dist/components/sd-tag.js +1 -1
  234. package/dist/components/sd-tbody.js +1 -1
  235. package/dist/components/sd-td.js +1 -1
  236. package/dist/components/sd-text-link.js +1 -1
  237. package/dist/components/sd-textarea.js +1 -1
  238. package/dist/components/sd-thead.js +1 -1
  239. package/dist/components/sd-toast-container.js +1 -1
  240. package/dist/components/sd-toast.js +1 -1
  241. package/dist/components/sd-toggle.js +1 -1
  242. package/dist/components/sd-tooltip.js +1 -1
  243. package/dist/components/sd-tr.js +1 -1
  244. package/dist/components/table-test.js +1 -1
  245. package/dist/design-system/design-system.css +1 -1
  246. package/dist/design-system/design-system.esm.js +1 -1
  247. package/dist/design-system/index.esm.js +1 -1
  248. package/dist/design-system/{p-c44ba991.entry.js → p-002e10ac.entry.js} +1 -1
  249. package/dist/design-system/p-01ac7743.entry.js +1 -0
  250. package/dist/design-system/p-06080355.entry.js +1 -0
  251. package/dist/design-system/p-0929f910.entry.js +1 -0
  252. package/dist/design-system/{p-b2b5b2d3.entry.js → p-0b216b11.entry.js} +1 -1
  253. package/dist/design-system/{p-5b2486c9.entry.js → p-0bffdbf4.entry.js} +1 -1
  254. package/dist/design-system/{p-5224553e.entry.js → p-0d485537.entry.js} +1 -1
  255. package/dist/design-system/p-1389a68e.entry.js +1 -0
  256. package/dist/design-system/{p-aebf903f.entry.js → p-1a455448.entry.js} +1 -1
  257. package/dist/design-system/{p-10763304.entry.js → p-1b8e63a6.entry.js} +1 -1
  258. package/dist/design-system/{p-525aefd5.entry.js → p-23c31074.entry.js} +1 -1
  259. package/dist/design-system/{p-87a23bd0.entry.js → p-2a4b6bc7.entry.js} +1 -1
  260. package/dist/design-system/{p-fa1072f7.entry.js → p-308c2a72.entry.js} +1 -1
  261. package/dist/design-system/p-35b29182.entry.js +1 -0
  262. package/dist/design-system/{p-9e0b944f.entry.js → p-449e58ee.entry.js} +1 -1
  263. package/dist/design-system/{p-73383b2f.entry.js → p-48f1f9ff.entry.js} +1 -1
  264. package/dist/design-system/{p-504fdb4e.entry.js → p-4d434794.entry.js} +1 -1
  265. package/dist/design-system/p-4de3b6b1.entry.js +1 -0
  266. package/dist/design-system/p-4f9f25a1.entry.js +1 -0
  267. package/dist/design-system/p-5442b4b4.entry.js +1 -0
  268. package/dist/design-system/{p-40371bf6.entry.js → p-59aa62ff.entry.js} +1 -1
  269. package/dist/design-system/{p-7b433296.entry.js → p-5a0b0a1b.entry.js} +1 -1
  270. package/dist/design-system/p-609b3748.entry.js +1 -0
  271. package/dist/design-system/p-60ece09d.entry.js +1 -0
  272. package/dist/design-system/{p-10ed0768.entry.js → p-641c2f3d.entry.js} +1 -1
  273. package/dist/design-system/{p-2841d5e1.entry.js → p-64a56a4e.entry.js} +1 -1
  274. package/dist/design-system/{p-dff0060e.entry.js → p-6b2f6efb.entry.js} +1 -1
  275. package/dist/design-system/{p-e1202ad3.entry.js → p-6b478f5c.entry.js} +1 -1
  276. package/dist/design-system/{p-337267a7.entry.js → p-6ef2d08f.entry.js} +1 -1
  277. package/dist/design-system/{p-51fcc29f.entry.js → p-703eee55.entry.js} +1 -1
  278. package/dist/design-system/p-71897864.entry.js +1 -0
  279. package/dist/design-system/p-731429da.entry.js +1 -0
  280. package/dist/design-system/p-75c5e31b.entry.js +1 -0
  281. package/dist/design-system/{p-768efd5a.entry.js → p-7dd8beba.entry.js} +1 -1
  282. package/dist/design-system/{p-348eff76.entry.js → p-7ef0c428.entry.js} +1 -1
  283. package/dist/design-system/p-87222184.entry.js +1 -0
  284. package/dist/design-system/p-8cd1b533.entry.js +1 -0
  285. package/dist/design-system/{p-f9559741.entry.js → p-92a52f89.entry.js} +1 -1
  286. package/dist/design-system/{p-19257b97.entry.js → p-95d96917.entry.js} +1 -1
  287. package/dist/design-system/p-9dd7befe.entry.js +1 -0
  288. package/dist/design-system/{p-fb7e8c54.entry.js → p-9ecde011.entry.js} +1 -1
  289. package/dist/design-system/{p-b4e56b67.entry.js → p-9f0fe1f6.entry.js} +1 -1
  290. package/dist/design-system/p-BGyJgVXm.js +2 -0
  291. package/dist/design-system/{p-CJwbBrt5.js → p-ByhWX2NK.js} +1 -1
  292. package/dist/design-system/p-C-txBx-h.js +1 -0
  293. package/dist/design-system/p-C4tHYnB4.js +1 -0
  294. package/dist/design-system/p-DRVnqiWc.js +1 -0
  295. package/dist/design-system/p-a7ef7465.entry.js +1 -0
  296. package/dist/design-system/p-ac9f7551.entry.js +1 -0
  297. package/dist/design-system/{p-513d85e1.entry.js → p-ade9319d.entry.js} +1 -1
  298. package/dist/design-system/{p-671a9ca8.entry.js → p-aeadfb9c.entry.js} +1 -1
  299. package/dist/design-system/p-b3d959b0.entry.js +1 -0
  300. package/dist/design-system/{p-b6e7b8c8.entry.js → p-cdedac3c.entry.js} +1 -1
  301. package/dist/design-system/{p-5982bcd0.entry.js → p-d43772c0.entry.js} +1 -1
  302. package/dist/design-system/p-d668fd71.entry.js +1 -0
  303. package/dist/design-system/{p-c6d2f909.entry.js → p-dfa716e0.entry.js} +1 -1
  304. package/dist/design-system/{p-a66529a5.entry.js → p-e1288299.entry.js} +1 -1
  305. package/dist/design-system/p-e3a1e677.entry.js +1 -0
  306. package/dist/design-system/{p-e385cbf4.entry.js → p-fa888a37.entry.js} +1 -1
  307. package/dist/esm/{component.textinput-CJwbBrt5.js → component.textinput-ByhWX2NK.js} +3 -2
  308. package/dist/esm/design-system.js +3 -3
  309. package/dist/esm/{index-Dcpqhs6V.js → index-BGyJgVXm.js} +1 -1
  310. package/dist/esm/index.js +36 -41
  311. package/dist/esm/loader.js +3 -3
  312. package/dist/esm/modal-stack-DRVnqiWc.js +105 -0
  313. package/dist/esm/sd-action-modal.entry.js +2 -2
  314. package/dist/esm/sd-badge.entry.js +2 -2
  315. package/dist/esm/sd-barcode-input.entry.js +4 -3
  316. package/dist/esm/sd-button-v2_2.entry.js +3 -3
  317. package/dist/esm/sd-button_4.entry.js +35 -18
  318. package/dist/esm/sd-calendar.entry.js +1 -1
  319. package/dist/esm/sd-card.entry.js +2 -2
  320. package/dist/esm/sd-checkbox.entry.js +1 -1
  321. package/dist/esm/sd-chip.entry.js +310 -0
  322. package/dist/esm/sd-circle-progress.entry.js +2 -2
  323. package/dist/esm/sd-confirm-modal_2.entry.js +4 -4
  324. package/dist/esm/sd-date-box.entry.js +1 -1
  325. package/dist/esm/sd-date-picker-calendar.entry.js +2 -2
  326. package/dist/esm/sd-date-picker-trigger.entry.js +3 -3
  327. package/dist/esm/sd-date-picker.entry.js +4 -3
  328. package/dist/esm/sd-date-range-picker-calendar.entry.js +2 -2
  329. package/dist/esm/sd-date-range-picker.entry.js +4 -3
  330. package/dist/esm/sd-dropdown-button.entry.js +5 -16
  331. package/dist/esm/sd-file-picker.entry.js +5 -4
  332. package/dist/esm/sd-form.entry.js +1 -1
  333. package/dist/esm/sd-ghost-button.entry.js +6 -6
  334. package/dist/esm/sd-guide.entry.js +167 -34
  335. package/dist/esm/sd-input_2.entry.js +8 -7
  336. package/dist/esm/sd-loading-container.entry.js +4 -4
  337. package/dist/esm/sd-modal-container.entry.js +126 -155
  338. package/dist/esm/sd-number-input.entry.js +5 -4
  339. package/dist/esm/sd-pagination_2.entry.js +117 -42
  340. package/dist/esm/sd-popover.entry.js +4 -4
  341. package/dist/esm/sd-portal.entry.js +4 -4
  342. package/dist/esm/sd-progress.entry.js +3 -3
  343. package/dist/esm/sd-radio-button.entry.js +2 -2
  344. package/dist/esm/sd-radio-group.entry.js +2 -2
  345. package/dist/esm/sd-radio.entry.js +2 -2
  346. package/dist/esm/sd-select-dropdown_2.entry.js +4 -4
  347. package/dist/esm/sd-select-group.entry.js +3 -2
  348. package/dist/esm/sd-select-multiple-group.entry.js +2 -2
  349. package/dist/esm/sd-select-multiple.entry.js +2 -2
  350. package/dist/esm/sd-select-option-group.entry.js +4 -4
  351. package/dist/esm/sd-select-v2-list-item_4.entry.js +12 -16
  352. package/dist/esm/sd-select.entry.js +3 -2
  353. package/dist/esm/sd-switch.entry.js +2 -2
  354. package/dist/esm/sd-table.entry.js +6 -6
  355. package/dist/esm/sd-tabs.entry.js +2 -2
  356. package/dist/esm/sd-tag.entry.js +3 -3
  357. package/dist/esm/sd-tbody.entry.js +2 -2
  358. package/dist/esm/sd-td.entry.js +2 -2
  359. package/dist/esm/sd-text-link.entry.js +4 -4
  360. package/dist/esm/sd-textarea.entry.js +4 -3
  361. package/dist/esm/sd-thead.entry.js +4 -4
  362. package/dist/esm/sd-toast-container.entry.js +3 -3
  363. package/dist/esm/sd-toast.entry.js +3 -3
  364. package/dist/esm/sd-toggle.entry.js +2 -2
  365. package/dist/esm/sd-tr.entry.js +3 -3
  366. package/dist/esm/system-C-txBx-h.js +14 -0
  367. package/dist/esm/table-test.entry.js +2 -2
  368. package/dist/esm/{tooltipArrow-fP-ISMAm.js → tooltipArrow-BAjP9_Hx.js} +1 -1
  369. package/dist/types/components/sd-barcode-input/sd-barcode-input.d.ts +2 -0
  370. package/dist/types/components/sd-chip/sd-chip.config.d.ts +36 -0
  371. package/dist/types/components/sd-chip/sd-chip.d.ts +47 -0
  372. package/dist/types/components/sd-date-picker/sd-date-picker.d.ts +2 -0
  373. package/dist/types/components/sd-date-range-picker/sd-date-range-picker.d.ts +2 -0
  374. package/dist/types/components/sd-field/sd-field.config.d.ts +2 -0
  375. package/dist/types/components/sd-field/sd-field.d.ts +2 -1
  376. package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +2 -0
  377. package/dist/types/components/sd-guide/sd-guide.config.d.ts +44 -0
  378. package/dist/types/components/sd-guide/sd-guide.d.ts +3 -4
  379. package/dist/types/components/sd-input/sd-input.d.ts +2 -0
  380. package/dist/types/components/sd-loading-container/sd-loading-container.config.d.ts +1 -1
  381. package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +12 -16
  382. package/dist/types/components/sd-number-input/sd-number-input.d.ts +2 -0
  383. package/dist/types/components/sd-pagination/sd-pagination.config.d.ts +23 -0
  384. package/dist/types/components/sd-pagination/sd-pagination.d.ts +3 -3
  385. package/dist/types/components/sd-select/sd-select.d.ts +2 -0
  386. package/dist/types/components/sd-select-group/sd-select-group.d.ts +2 -0
  387. package/dist/types/components/sd-select-v2/sd-select-v2.config.d.ts +0 -1
  388. package/dist/types/components/sd-select-v2/sd-select-v2.d.ts +2 -0
  389. package/dist/types/components/sd-table/sd-table.stories.helpers.d.ts +29 -0
  390. package/dist/types/components/sd-textarea/sd-textarea.d.ts +2 -0
  391. package/dist/types/components/sd-toast-container/sd-toast-container.config.d.ts +1 -1
  392. package/dist/types/components.d.ts +226 -18
  393. package/dist/types/utils/modal-stack.d.ts +17 -0
  394. package/hydrate/index.js +1000 -358
  395. package/hydrate/index.mjs +1000 -358
  396. package/package.json +1 -1
  397. package/dist/components/p-B_7ozne7.js +0 -1
  398. package/dist/components/p-BsPBl6g5.js +0 -1
  399. package/dist/components/p-BuSniZ67.js +0 -1
  400. package/dist/components/p-C02KLCcO.js +0 -1
  401. package/dist/components/p-CCHce_Dt.js +0 -1
  402. package/dist/components/p-CkMs7IA8.js +0 -1
  403. package/dist/components/p-DLeCo2gh.js +0 -1
  404. package/dist/components/p-DNVUhw5A.js +0 -1
  405. package/dist/components/p-UR2Cf2Sm.js +0 -1
  406. package/dist/design-system/p-1645da95.entry.js +0 -1
  407. package/dist/design-system/p-244d2d6e.entry.js +0 -1
  408. package/dist/design-system/p-298d9b57.entry.js +0 -1
  409. package/dist/design-system/p-2edd355b.entry.js +0 -1
  410. package/dist/design-system/p-3b8595de.entry.js +0 -1
  411. package/dist/design-system/p-3bbf23b4.entry.js +0 -1
  412. package/dist/design-system/p-4c55ba79.entry.js +0 -1
  413. package/dist/design-system/p-6e9d6063.entry.js +0 -1
  414. package/dist/design-system/p-6eb3462d.entry.js +0 -1
  415. package/dist/design-system/p-7cf63a80.entry.js +0 -1
  416. package/dist/design-system/p-7fe09661.entry.js +0 -1
  417. package/dist/design-system/p-87b2c270.entry.js +0 -1
  418. package/dist/design-system/p-9925857c.entry.js +0 -1
  419. package/dist/design-system/p-9cb3be8c.entry.js +0 -1
  420. package/dist/design-system/p-Dcpqhs6V.js +0 -2
  421. package/dist/design-system/p-b56ae914.entry.js +0 -1
  422. package/dist/design-system/p-d263d476.entry.js +0 -1
  423. package/dist/design-system/p-e1c17466.entry.js +0 -1
  424. package/dist/design-system/p-e232fb11.entry.js +0 -1
  425. package/dist/design-system/p-e474fa8c.entry.js +0 -1
  426. package/dist/design-system/p-e9d36c02.entry.js +0 -1
@@ -1,33 +1,24 @@
1
1
  import { h } from "@stencil/core";
2
+ import { isTopInteractiveModal, registerModal, requestCloseForModal, setModalInteractive, unregisterModal, } from "../../utils/modal-stack";
2
3
  let modalIdCounter = 0;
3
4
  const ANIMATION_DURATION = 350;
4
5
  export class SdModalContainer {
5
6
  el;
6
- entries = [];
7
+ autoRemove = false;
8
+ entry;
7
9
  isVisible = false;
8
- isBackdropVisible = false;
9
- contentRef;
10
- containerDismissTimerId;
11
- previousBodyOverflow = null;
12
- bodyScrollLocked = false;
13
- handleKeydown(e) {
14
- if (e.key === 'Escape') {
15
- const top = this.getTopEntry();
16
- if (!top)
17
- return;
18
- if (top.persistent) {
19
- this.shakeModal(top.modalEl);
20
- return;
21
- }
22
- this.dispatchClose(top.modalEl);
23
- }
24
- }
10
+ backdropVisible = false;
11
+ layerRef;
25
12
  async open(options, modalRef) {
26
13
  const id = `modal-${++modalIdCounter}`;
27
14
  const modalEl = this.createConfirmModal(id, options);
28
15
  this.attachModalEventListeners(id, modalEl);
29
- this.registerEntry(id, modalEl, modalRef, {
16
+ this.mountEntry({
17
+ id,
18
+ modalEl,
19
+ modalRef,
30
20
  persistent: !!options.persistent,
21
+ closing: false,
31
22
  });
32
23
  return id;
33
24
  }
@@ -35,8 +26,12 @@ export class SdModalContainer {
35
26
  const id = `modal-${++modalIdCounter}`;
36
27
  const modalEl = this.createLoadingModal(id, options);
37
28
  this.attachLoadingModalEventListeners(id, modalEl);
38
- this.registerEntry(id, modalEl, modalRef, {
29
+ this.mountEntry({
30
+ id,
31
+ modalEl,
32
+ modalRef,
39
33
  persistent: !!options.persistent,
34
+ closing: false,
40
35
  });
41
36
  return id;
42
37
  }
@@ -45,70 +40,118 @@ export class SdModalContainer {
45
40
  element.setAttribute('data-modal-id', id);
46
41
  element.classList.add('sd-modal-container__modal');
47
42
  this.attachModalEventListeners(id, element);
48
- this.registerEntry(id, element, modalRef, {
43
+ this.mountEntry({
44
+ id,
45
+ modalEl: element,
46
+ modalRef,
49
47
  persistent: !!options.persistent,
48
+ closing: false,
50
49
  });
51
50
  return id;
52
51
  }
53
- attachModalEventListeners(id, modalEl) {
54
- modalEl.addEventListener('sdOk', () => this.requestDismiss(id, 'confirm'));
55
- modalEl.addEventListener('sdCancel', () => this.requestDismiss(id, 'cancel'));
56
- modalEl.addEventListener('sdClose', () => this.requestDismiss(id, 'close'));
57
- }
58
- attachLoadingModalEventListeners(id, modalEl) {
59
- modalEl.addEventListener('sdClick', () => {
60
- const entry = (this.entries ?? []).find(item => item.id === id);
61
- entry?.modalRef._triggerClick?.();
62
- });
63
- }
64
- dispatchClose(modalEl) {
65
- modalEl.dispatchEvent(new CustomEvent('sdClose'));
66
- }
67
- registerEntry(id, modalEl, modalRef, meta) {
68
- if (this.containerDismissTimerId) {
69
- clearTimeout(this.containerDismissTimerId);
70
- this.containerDismissTimerId = undefined;
71
- }
72
- this.entries = [
73
- ...(this.entries ?? []),
74
- {
75
- id,
76
- modalEl,
77
- modalRef,
78
- persistent: meta.persistent,
79
- closing: false,
80
- },
81
- ];
82
- this.isVisible = true;
83
- this.setBodyScrollLock(true);
84
- requestAnimationFrame(() => {
85
- if (!this.contentRef)
86
- return;
87
- this.contentRef.appendChild(modalEl);
88
- this.waitForModalReady(modalEl).then(() => {
89
- requestAnimationFrame(() => {
90
- const currentEntry = (this.entries ?? []).find(item => item.id === id);
91
- if (!currentEntry || currentEntry.closing || !modalEl.isConnected)
92
- return;
93
- this.isBackdropVisible = true;
94
- modalEl.classList.add('sd-modal-container__modal--visible');
95
- });
52
+ componentDidRender() {
53
+ if (!this.entry || this.entry.closing || !this.layerRef)
54
+ return;
55
+ if (this.entry.modalEl.isConnected)
56
+ return;
57
+ const { id, modalEl } = this.entry;
58
+ this.layerRef.appendChild(modalEl);
59
+ this.waitForModalReady(modalEl).then(() => {
60
+ requestAnimationFrame(() => {
61
+ if (!this.entry || this.entry.id !== id || this.entry.closing || !modalEl.isConnected)
62
+ return;
63
+ this.backdropVisible = true;
64
+ modalEl.classList.add('sd-modal-container__modal--visible');
96
65
  });
97
66
  });
98
67
  }
68
+ disconnectedCallback() {
69
+ if (this.entry?.dismissTimerId)
70
+ clearTimeout(this.entry.dismissTimerId);
71
+ if (this.entry)
72
+ unregisterModal(this.entry.id);
73
+ }
99
74
  async dismissById(id, reason) {
100
- this.requestDismiss(id, reason);
75
+ if (this.entry?.id !== id)
76
+ return;
77
+ this.requestDismiss(reason);
101
78
  }
102
79
  async update(id, props) {
103
- const entry = (this.entries ?? []).find(e => e.id === id);
104
- if (!entry || entry.closing)
80
+ if (!this.entry || this.entry.id !== id || this.entry.closing)
105
81
  return;
106
- const tag = entry.modalEl.tagName.toLowerCase();
82
+ const tag = this.entry.modalEl.tagName.toLowerCase();
107
83
  if (tag === 'sd-loading-modal') {
108
- this.applyLoadingProps(entry.modalEl, props);
84
+ this.applyLoadingProps(this.entry.modalEl, props);
85
+ return;
109
86
  }
110
- else {
111
- this.applyProps(entry.modalEl, props);
87
+ this.applyProps(this.entry.modalEl, props);
88
+ }
89
+ mountEntry(entry) {
90
+ if (this.entry) {
91
+ throw new Error('[sd-modal-container] This instance already manages an active modal.');
92
+ }
93
+ this.entry = entry;
94
+ this.backdropVisible = false;
95
+ this.isVisible = true;
96
+ registerModal({
97
+ id: entry.id,
98
+ persistent: entry.persistent,
99
+ requestClose: () => this.dispatchClose(),
100
+ shake: () => this.shakeModal(entry.modalEl),
101
+ setZIndex: zIndex => {
102
+ this.el.style.setProperty('--sd-modal-container-z-index', String(zIndex));
103
+ },
104
+ });
105
+ }
106
+ attachModalEventListeners(_id, modalEl) {
107
+ modalEl.addEventListener('sdOk', () => this.requestDismiss('confirm'));
108
+ modalEl.addEventListener('sdCancel', () => this.requestDismiss('cancel'));
109
+ modalEl.addEventListener('sdClose', () => this.requestDismiss('close'));
110
+ }
111
+ attachLoadingModalEventListeners(_id, modalEl) {
112
+ modalEl.addEventListener('sdClick', () => {
113
+ this.entry?.modalRef._triggerClick?.();
114
+ });
115
+ }
116
+ dispatchClose() {
117
+ this.entry?.modalEl.dispatchEvent(new CustomEvent('sdClose'));
118
+ }
119
+ requestDismiss(reason) {
120
+ const currentEntry = this.entry;
121
+ if (!currentEntry || currentEntry.closing)
122
+ return;
123
+ currentEntry.modalEl.classList.remove('sd-modal-container__modal--visible');
124
+ const dismissTimerId = setTimeout(() => {
125
+ this.finalizeDismiss(currentEntry.id);
126
+ }, ANIMATION_DURATION);
127
+ setModalInteractive(currentEntry.id, false);
128
+ this.entry = {
129
+ ...currentEntry,
130
+ closing: true,
131
+ dismissTimerId,
132
+ };
133
+ this.backdropVisible = false;
134
+ if (reason === 'confirm')
135
+ currentEntry.modalRef._triggerOk();
136
+ else if (reason === 'cancel')
137
+ currentEntry.modalRef._triggerCancel();
138
+ else if (reason === 'close')
139
+ currentEntry.modalRef._triggerClose();
140
+ }
141
+ finalizeDismiss(id) {
142
+ const currentEntry = this.entry;
143
+ if (!currentEntry || currentEntry.id !== id)
144
+ return;
145
+ if (currentEntry.dismissTimerId)
146
+ clearTimeout(currentEntry.dismissTimerId);
147
+ currentEntry.modalEl.remove();
148
+ unregisterModal(id);
149
+ currentEntry.modalRef._triggerDismissed();
150
+ this.entry = undefined;
151
+ this.backdropVisible = false;
152
+ this.isVisible = false;
153
+ if (this.autoRemove) {
154
+ this.el.remove();
112
155
  }
113
156
  }
114
157
  createConfirmModal(id, options) {
@@ -131,12 +174,10 @@ export class SdModalContainer {
131
174
  if (this.hasOwnProp(options, 'message'))
132
175
  this.setAttr(el, 'message', options.message);
133
176
  if (this.hasOwnProp(options, 'useButton')) {
134
- if (options.useButton) {
177
+ if (options.useButton)
135
178
  el.setAttribute('use-button', '');
136
- }
137
- else {
179
+ else
138
180
  el.removeAttribute('use-button');
139
- }
140
181
  }
141
182
  if (this.hasOwnProp(options, 'buttonLabel')) {
142
183
  this.setAttr(el, 'button-label', options.buttonLabel);
@@ -178,14 +219,9 @@ export class SdModalContainer {
178
219
  el.tagContents = options.tagContents;
179
220
  }
180
221
  handleBackdropClick = () => {
181
- const top = this.getTopEntry();
182
- if (!top)
183
- return;
184
- if (top.persistent) {
185
- this.shakeModal(top.modalEl);
222
+ if (!this.entry || !isTopInteractiveModal(this.entry.id))
186
223
  return;
187
- }
188
- this.dispatchClose(top.modalEl);
224
+ requestCloseForModal(this.entry.id);
189
225
  };
190
226
  shakeModal(modalEl) {
191
227
  const cls = 'sd-modal-container__modal--shake';
@@ -195,73 +231,6 @@ export class SdModalContainer {
195
231
  modalEl.classList.add(cls);
196
232
  });
197
233
  }
198
- disconnectedCallback() {
199
- (this.entries ?? []).forEach(entry => {
200
- if (entry.dismissTimerId)
201
- clearTimeout(entry.dismissTimerId);
202
- });
203
- if (this.containerDismissTimerId)
204
- clearTimeout(this.containerDismissTimerId);
205
- this.setBodyScrollLock(false);
206
- }
207
- setBodyScrollLock(lock) {
208
- if (typeof document === 'undefined')
209
- return;
210
- if (lock === this.bodyScrollLocked)
211
- return;
212
- if (lock) {
213
- this.previousBodyOverflow = document.body.style.overflow || '';
214
- document.body.style.overflow = 'hidden';
215
- }
216
- else {
217
- document.body.style.overflow = this.previousBodyOverflow ?? '';
218
- this.previousBodyOverflow = null;
219
- }
220
- this.bodyScrollLocked = lock;
221
- }
222
- getTopEntry() {
223
- return [...(this.entries ?? [])].reverse().find(entry => !entry.closing);
224
- }
225
- requestDismiss(id, reason) {
226
- const entry = (this.entries ?? []).find(item => item.id === id);
227
- if (!entry || entry.closing)
228
- return;
229
- entry.modalEl.classList.remove('sd-modal-container__modal--visible');
230
- const remainingActive = (this.entries ?? []).filter(item => item.id !== id && !item.closing);
231
- if (remainingActive.length === 0) {
232
- this.isBackdropVisible = false;
233
- }
234
- const dismissTimerId = setTimeout(() => {
235
- this.finalizeDismiss(id);
236
- }, ANIMATION_DURATION);
237
- this.entries = (this.entries ?? []).map(item => item.id === id ? { ...item, closing: true, dismissTimerId } : item);
238
- if (reason === 'confirm')
239
- entry.modalRef._triggerOk();
240
- else if (reason === 'cancel')
241
- entry.modalRef._triggerCancel();
242
- else if (reason === 'close')
243
- entry.modalRef._triggerClose();
244
- }
245
- finalizeDismiss(id) {
246
- const entry = (this.entries ?? []).find(item => item.id === id);
247
- if (!entry)
248
- return;
249
- if (entry.dismissTimerId)
250
- clearTimeout(entry.dismissTimerId);
251
- entry.modalEl.remove();
252
- const nextEntries = (this.entries ?? []).filter(item => item.id !== id);
253
- this.entries = nextEntries;
254
- if (nextEntries.length === 0) {
255
- this.setBodyScrollLock(false);
256
- this.containerDismissTimerId = setTimeout(() => {
257
- if ((this.entries ?? []).length === 0) {
258
- this.isVisible = false;
259
- }
260
- this.containerDismissTimerId = undefined;
261
- }, ANIMATION_DURATION);
262
- }
263
- entry.modalRef._triggerDismissed();
264
- }
265
234
  waitForModalReady(modalEl) {
266
235
  const componentOnReady = modalEl.componentOnReady;
267
236
  if (typeof componentOnReady === 'function') {
@@ -282,12 +251,14 @@ export class SdModalContainer {
282
251
  el.setAttribute(name, value);
283
252
  }
284
253
  render() {
285
- if (!this.isVisible)
254
+ if (!this.isVisible || !this.entry)
286
255
  return null;
287
- return (h("div", { class: "sd-modal-container" }, h("div", { class: {
256
+ return (h("div", { class: "sd-modal-container" }, h("div", { class: "sd-modal-container__layer", "data-modal-id": this.entry.id, ref: el => {
257
+ this.layerRef = el;
258
+ } }, h("div", { class: {
288
259
  'sd-modal-container__backdrop': true,
289
- 'sd-modal-container__backdrop--visible': this.isBackdropVisible,
290
- }, onClick: this.handleBackdropClick }), h("div", { class: "sd-modal-container__content", ref: el => { this.contentRef = el; } })));
260
+ 'sd-modal-container__backdrop--visible': this.backdropVisible,
261
+ }, onClick: this.handleBackdropClick }))));
291
262
  }
292
263
  static get is() { return "sd-modal-container"; }
293
264
  static get originalStyleUrls() {
@@ -300,11 +271,35 @@ export class SdModalContainer {
300
271
  "$": ["sd-modal-container.css"]
301
272
  };
302
273
  }
274
+ static get properties() {
275
+ return {
276
+ "autoRemove": {
277
+ "type": "boolean",
278
+ "mutable": false,
279
+ "complexType": {
280
+ "original": "boolean",
281
+ "resolved": "boolean",
282
+ "references": {}
283
+ },
284
+ "required": false,
285
+ "optional": false,
286
+ "docs": {
287
+ "tags": [],
288
+ "text": ""
289
+ },
290
+ "getter": false,
291
+ "setter": false,
292
+ "reflect": false,
293
+ "attribute": "auto-remove",
294
+ "defaultValue": "false"
295
+ }
296
+ };
297
+ }
303
298
  static get states() {
304
299
  return {
305
- "entries": {},
300
+ "entry": {},
306
301
  "isVisible": {},
307
- "isBackdropVisible": {}
302
+ "backdropVisible": {}
308
303
  };
309
304
  }
310
305
  static get methods() {
@@ -497,13 +492,4 @@ export class SdModalContainer {
497
492
  };
498
493
  }
499
494
  static get elementRef() { return "el"; }
500
- static get listeners() {
501
- return [{
502
- "name": "keydown",
503
- "method": "handleKeydown",
504
- "target": "window",
505
- "capture": false,
506
- "passive": false
507
- }];
508
- }
509
495
  }
@@ -13,6 +13,7 @@ export class SdNumberInput {
13
13
  label;
14
14
  labelWidth = '';
15
15
  addonLabel = '';
16
+ addonAlign = 'start';
16
17
  placeholder = '입력해 주세요.';
17
18
  disabled = false;
18
19
  width;
@@ -271,12 +272,12 @@ export class SdNumberInput {
271
272
  '--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
272
273
  '--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
273
274
  };
274
- return (h("sd-field", { key: 'f81b01b27960130cbf6b37a29fc0ddc11750768e', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '0f9b5a0b966c7d51d5913c61a585ff789fa4973f', class: "sd-number-input__content" }, this.useButton && (h("button", { key: 'b037ee3062253bf229f9639dd04c7475657fabb6', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '39a9f73a15008a481e758e663e027cd4f6454146', name: "minus", size: iconSize, color: this.isDecrementDisabled()
275
+ return (h("sd-field", { key: 'a9512622774c930c8b70b3d739a405e2434f22a7', 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, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'f068ab7a042a97dfac7aaf160508757306dddc14', class: "sd-number-input__content" }, this.useButton && (h("button", { key: '37341e813e7902f07c2731c708e1aadc53411653', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '740b2715518534b0ece5aa3b3f6dfd0dfafd6368', name: "minus", size: iconSize, color: this.isDecrementDisabled()
275
276
  ? NUMBER_INPUT_STEPPER.icon.disabled
276
- : NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '050334ce25bb767e7f11dca886d4aeecaa1ed3dc', class: "sd-number-input__prefix" }, this.inputPrefix)), h("input", { key: 'a72697d136eeee52ef23fee6ee2017b6dd37e54c', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
277
+ : NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '9b16f311a1408dfc84124ec938a98b13635f6dc6', class: "sd-number-input__prefix" }, this.inputPrefix)), h("input", { key: '572e2a8a1d7283e3568a85ba6c1bd506c3ec4453', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
277
278
  textAlign: this.useButton ? 'center' : 'right',
278
279
  ...this.inputStyle,
279
- } }), this.inputSuffix && (h("span", { key: '845202622b3377add18782d96d0af0c49caf95ec', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (h("button", { key: '208c976c1b755bec0cd7efb5ceacb3e07dce3a7d', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: 'fe9848c8f044d01378dc183a80d3f81eb56a67f9', name: "add", size: iconSize, color: this.isIncrementDisabled()
280
+ } }), this.inputSuffix && (h("span", { key: '13a07217ee34c793669b061c240062805a40db60', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (h("button", { key: 'c3557737be6cc5dc6c5ab171bcc078cf564fb2b0', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '530cf50331768df5be16639e46ce3f7f438ffe02', name: "add", size: iconSize, color: this.isIncrementDisabled()
280
281
  ? NUMBER_INPUT_STEPPER.icon.disabled
281
282
  : NUMBER_INPUT_STEPPER.icon.default }))))));
282
283
  }
@@ -499,6 +500,33 @@ export class SdNumberInput {
499
500
  "attribute": "addon-label",
500
501
  "defaultValue": "''"
501
502
  },
503
+ "addonAlign": {
504
+ "type": "string",
505
+ "mutable": false,
506
+ "complexType": {
507
+ "original": "FieldAddonAlign",
508
+ "resolved": "\"center\" | \"end\" | \"start\"",
509
+ "references": {
510
+ "FieldAddonAlign": {
511
+ "location": "import",
512
+ "path": "../sd-field/sd-field.config",
513
+ "id": "src/components/sd-field/sd-field.config.ts::FieldAddonAlign",
514
+ "referenceLocation": "FieldAddonAlign"
515
+ }
516
+ }
517
+ },
518
+ "required": false,
519
+ "optional": false,
520
+ "docs": {
521
+ "tags": [],
522
+ "text": ""
523
+ },
524
+ "getter": false,
525
+ "setter": false,
526
+ "reflect": false,
527
+ "attribute": "addon-align",
528
+ "defaultValue": "'start'"
529
+ },
502
530
  "placeholder": {
503
531
  "type": "string",
504
532
  "mutable": false,
@@ -0,0 +1,25 @@
1
+ import paginationTokens from "../../tokens/generated/component.pagination.json";
2
+ export const PAGINATION_LAYOUT = {
3
+ height: `${paginationTokens.pagination.height}px`,
4
+ paddingX: `${paginationTokens.pagination.paddingX}px`,
5
+ radius: `${paginationTokens.pagination.radius}px`,
6
+ gap: `${paginationTokens.pagination.gap}px`,
7
+ moveGap: `${paginationTokens.pagination.move.gap}px`,
8
+ iconSize: Number(paginationTokens.pagination.icon),
9
+ };
10
+ export const PAGINATION_TYPOGRAPHY = {
11
+ fontFamily: paginationTokens.pagination.typography.default.fontFamily,
12
+ fontSize: `${paginationTokens.pagination.typography.default.fontSize}px`,
13
+ lineHeight: `${paginationTokens.pagination.typography.default.lineHeight}px`,
14
+ fontWeightDefault: paginationTokens.pagination.typography.default.fontWeight,
15
+ fontWeightSelected: paginationTokens.pagination.typography.selected.fontWeight,
16
+ };
17
+ export const PAGINATION_COLORS = {
18
+ contentDefault: paginationTokens.pagination.item.content.default,
19
+ contentHover: paginationTokens.pagination.item.content.hover,
20
+ contentSelected: paginationTokens.pagination.item.content.selected,
21
+ bgHover: paginationTokens.pagination.item.bg.hover,
22
+ bgSelected: paginationTokens.pagination.item.bg.selected,
23
+ // TODO: 토큰 반영 후 교체 — nav 화살표 색상은 현재 토큰에 없음
24
+ iconDefault: '#888888',
25
+ };
@@ -1,74 +1,90 @@
1
+ sd-pagination {
2
+ display: inline-flex;
3
+ }
4
+
1
5
  .sd-pagination {
2
- display: flex;
3
- flex-flow: row nowrap;
6
+ display: inline-flex;
4
7
  align-items: center;
5
- justify-content: center;
6
- gap: 8px;
7
- color: #555555;
8
- width: 100%;
9
- font-size: 12px;
8
+ gap: var(--sd-pagination-gap);
9
+ font-family: var(--sd-pagination-font-family);
10
10
  }
11
- .sd-pagination .prepend-btns {
12
- display: flex;
13
- flex-flow: row nowrap;
11
+ .sd-pagination__group {
12
+ display: inline-flex;
14
13
  align-items: center;
15
- gap: 8px;
16
- width: 60px;
14
+ gap: var(--sd-pagination-move-gap);
15
+ min-width: calc(var(--sd-pagination-height) * 2 + var(--sd-pagination-move-gap));
17
16
  }
18
- .sd-pagination .prepend-btns button {
19
- width: 26px;
20
- height: 26px;
21
- border: 0;
22
- background: none;
17
+ .sd-pagination__group--prev {
18
+ justify-content: flex-end;
23
19
  }
24
- .sd-pagination .prepend-btns button:hover {
25
- border: 1px solid #006AC1;
26
- border-radius: 14px;
20
+ .sd-pagination__group--next {
21
+ justify-content: flex-start;
27
22
  }
28
- .sd-pagination .append-btns {
29
- display: flex;
30
- flex-flow: row nowrap;
23
+ .sd-pagination__numbers {
24
+ display: inline-flex;
31
25
  align-items: center;
32
- gap: 8px;
33
- width: 60px;
26
+ gap: var(--sd-pagination-move-gap);
34
27
  }
35
- .sd-pagination .append-btns button {
36
- width: 26px;
37
- height: 26px;
28
+ .sd-pagination__nav {
29
+ display: inline-flex;
30
+ align-items: center;
31
+ justify-content: center;
32
+ width: var(--sd-pagination-height);
33
+ height: var(--sd-pagination-height);
34
+ padding: 0;
35
+ background: transparent;
38
36
  border: 0;
39
- background: none;
37
+ border-radius: var(--sd-pagination-radius);
38
+ cursor: pointer;
39
+ outline: none;
40
40
  }
41
- .sd-pagination .append-btns button:hover {
42
- border: 1px solid #006AC1;
43
- border-radius: 14px;
41
+ .sd-pagination__nav:hover {
42
+ background-color: var(--sd-pagination-bg-hover);
44
43
  }
45
- .sd-pagination .pagination-btn {
46
- display: flex;
44
+ .sd-pagination__item {
45
+ display: inline-flex;
47
46
  align-items: center;
48
47
  justify-content: center;
49
- border-radius: 14px;
50
- outline: none;
51
- border: none;
48
+ width: var(--sd-pagination-item-width);
49
+ height: var(--sd-pagination-height);
50
+ padding: 0 var(--sd-pagination-padding-x);
51
+ background: transparent;
52
+ border: 0;
53
+ border-radius: var(--sd-pagination-radius);
54
+ color: var(--sd-pagination-content);
55
+ font-size: var(--sd-pagination-font-size);
56
+ font-weight: var(--sd-pagination-font-weight-default);
57
+ line-height: var(--sd-pagination-line-height);
52
58
  cursor: pointer;
53
- height: 26px;
54
- color: #555555;
55
- width: var(--pagination-btn-width, 26px);
59
+ outline: none;
60
+ box-sizing: border-box;
61
+ }
62
+ .sd-pagination__item:hover {
63
+ background-color: var(--sd-pagination-bg-hover);
64
+ color: var(--sd-pagination-content-hover);
56
65
  }
57
- .sd-pagination .pagination-btn--selected {
58
- background-color: #006AC1;
59
- color: white;
66
+ .sd-pagination__item--selected {
67
+ background-color: var(--sd-pagination-bg-selected);
68
+ color: var(--sd-pagination-content-selected);
69
+ font-weight: var(--sd-pagination-font-weight-selected);
70
+ cursor: default;
60
71
  }
61
- .sd-pagination .pagination-btn:hover {
62
- border: 1px solid #006AC1;
72
+ .sd-pagination__item--selected:hover {
73
+ background-color: var(--sd-pagination-bg-selected);
74
+ color: var(--sd-pagination-content-selected);
63
75
  }
64
- .sd-pagination--simple .pagination-info {
65
- line-height: 26px;
66
- display: flex;
67
- flex-flow: row nowrap;
76
+ .sd-pagination__info {
77
+ display: inline-flex;
68
78
  align-items: center;
69
- gap: 8px;
79
+ gap: var(--sd-pagination-move-gap);
80
+ height: var(--sd-pagination-height);
81
+ padding: 0 var(--sd-pagination-padding-x);
82
+ color: var(--sd-pagination-content);
83
+ font-size: var(--sd-pagination-font-size);
84
+ font-weight: var(--sd-pagination-font-weight-default);
85
+ line-height: var(--sd-pagination-line-height);
70
86
  }
71
- .sd-pagination--simple .pagination-info .current-page,
72
- .sd-pagination--simple .pagination-info .last-page {
73
- padding: 0 2px;
87
+ .sd-pagination__current {
88
+ color: var(--sd-pagination-content-selected);
89
+ font-weight: var(--sd-pagination-font-weight-selected);
74
90
  }