@sellmate/design-system 1.0.66 → 1.0.68

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 (408) 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-nsQP24mV.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 +3 -3
  10. package/dist/cjs/sd-button-v2_2.cjs.entry.js +3 -3
  11. package/dist/cjs/sd-button_4.cjs.entry.js +22 -17
  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 +5 -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 +3 -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 +1 -1
  24. package/dist/cjs/sd-dropdown-button.cjs.entry.js +8 -19
  25. package/dist/cjs/sd-file-picker.cjs.entry.js +3 -3
  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 +7 -7
  30. package/dist/cjs/sd-loading-container.cjs.entry.js +4 -4
  31. package/dist/cjs/sd-modal-container.cjs.entry.js +130 -151
  32. package/dist/cjs/sd-number-input.cjs.entry.js +4 -4
  33. package/dist/cjs/sd-pagination_2.cjs.entry.js +116 -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 +3 -3
  39. package/dist/cjs/sd-radio.cjs.entry.js +18 -27
  40. package/dist/cjs/sd-select-dropdown_2.cjs.entry.js +4 -4
  41. package/dist/cjs/sd-select-group.cjs.entry.js +2 -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 +29 -24
  46. package/dist/cjs/sd-select.cjs.entry.js +2 -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 +3 -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-DhevfDPX.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 +1 -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 +2 -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-dropdown-button/sd-dropdown-button.js +3 -3
  79. package/dist/collection/components/sd-field/sd-field.js +4 -4
  80. package/dist/collection/components/sd-file-picker/sd-file-picker.css +1 -1
  81. package/dist/collection/components/sd-file-picker/sd-file-picker.js +1 -1
  82. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +12 -8
  83. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +5 -5
  84. package/dist/collection/components/sd-guide/sd-guide.config.js +48 -0
  85. package/dist/collection/components/sd-guide/sd-guide.css +58 -29
  86. package/dist/collection/components/sd-guide/sd-guide.js +69 -40
  87. package/dist/collection/components/sd-input/sd-input.js +2 -2
  88. package/dist/collection/components/sd-loading-container/sd-loading-container.config.js +1 -1
  89. package/dist/collection/components/sd-loading-container/sd-loading-container.css +1 -1
  90. package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
  91. package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +22 -1
  92. package/dist/collection/components/sd-modal-container/sd-modal-container.css +11 -10
  93. package/dist/collection/components/sd-modal-container/sd-modal-container.js +154 -160
  94. package/dist/collection/components/sd-number-input/sd-number-input.js +3 -3
  95. package/dist/collection/components/sd-pagination/sd-pagination.config.js +25 -0
  96. package/dist/collection/components/sd-pagination/sd-pagination.css +69 -53
  97. package/dist/collection/components/sd-pagination/sd-pagination.js +53 -37
  98. package/dist/collection/components/sd-popover/sd-popover.js +2 -2
  99. package/dist/collection/components/sd-portal/sd-portal.js +4 -4
  100. package/dist/collection/components/sd-progress/sd-progress.js +2 -2
  101. package/dist/collection/components/sd-radio/sd-radio.config.js +6 -5
  102. package/dist/collection/components/sd-radio/sd-radio.css +2 -2
  103. package/dist/collection/components/sd-radio/sd-radio.js +2 -1
  104. package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
  105. package/dist/collection/components/sd-radio-group/sd-radio-group.css +2 -2
  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 +1 -1
  111. package/dist/collection/components/sd-select-group/sd-select-group.js +1 -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.css +2 -2
  116. package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js +4 -2
  117. package/dist/collection/components/sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.js +4 -4
  118. package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.css +5 -5
  119. package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +2 -2
  120. package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js +2 -2
  121. package/dist/collection/components/sd-select-v2/sd-select-v2.config.js +5 -4
  122. package/dist/collection/components/sd-select-v2/sd-select-v2.js +3 -3
  123. package/dist/collection/components/sd-switch/sd-switch.js +1 -1
  124. package/dist/collection/components/sd-table/sd-table.js +5 -5
  125. package/dist/collection/components/sd-table/sd-table.stories.helpers.js +146 -0
  126. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +1 -1
  127. package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
  128. package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
  129. package/dist/collection/components/sd-table/sd-tr/sd-tr.js +2 -2
  130. package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
  131. package/dist/collection/components/sd-tag/sd-tag.js +2 -2
  132. package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
  133. package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
  134. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  135. package/dist/collection/components/sd-toast-container/sd-toast-container.config.js +1 -1
  136. package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
  137. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  138. package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
  139. package/dist/collection/components/table-test/table-test.js +1 -1
  140. package/dist/collection/utils/modal-stack.js +109 -0
  141. package/dist/collection/utils/modal.js +17 -23
  142. package/dist/components/index.js +1 -1
  143. package/dist/components/p-B1j9ZWLJ.js +1 -0
  144. package/dist/components/p-BBluw-CU.js +1 -0
  145. package/dist/components/{p-D9FDutsj.js → p-BFd54Imz.js} +1 -1
  146. package/dist/components/{p-BH3z_vB9.js → p-BPXQ6DXz.js} +1 -1
  147. package/dist/components/p-BaHpEtbz.js +1 -0
  148. package/dist/components/{p-B6RvTdqt.js → p-BlqLear7.js} +1 -1
  149. package/dist/components/{p-CJwbBrt5.js → p-ByhWX2NK.js} +1 -1
  150. package/dist/components/{p-puZ1xlrr.js → p-BylHC3lv.js} +1 -1
  151. package/dist/components/p-C-txBx-h.js +1 -0
  152. package/dist/components/p-C0VkfKIA.js +1 -0
  153. package/dist/components/p-C4uWhzoG.js +1 -0
  154. package/dist/components/{p-CAeSM6Ov.js → p-CEeNVTzW.js} +1 -1
  155. package/dist/components/{p-6cueWz-l.js → p-CLZ8NObl.js} +1 -1
  156. package/dist/components/{p-DRY8HJ-T.js → p-COM91Bya.js} +1 -1
  157. package/dist/components/p-CS62OEXf.js +1 -0
  158. package/dist/components/{p-CGXwtYAv.js → p-CX0V7awA.js} +1 -1
  159. package/dist/components/{p-C2r48NLP.js → p-Cb1M05mf.js} +1 -1
  160. package/dist/components/{p-Cpu_hXwN.js → p-Cj4NAUzE.js} +1 -1
  161. package/dist/components/{p-B6OgnOKC.js → p-CsPyZohK.js} +1 -1
  162. package/dist/components/{p-Bh548Ckv.js → p-CsVPC3FD.js} +1 -1
  163. package/dist/components/{p-BLC3AWW8.js → p-Csfk-CtX.js} +1 -1
  164. package/dist/components/{p-CRl8Anfr.js → p-CtrDZYN5.js} +1 -1
  165. package/dist/components/p-D21iKAp7.js +1 -0
  166. package/dist/components/{p-TMuoVuhE.js → p-D6C4-apu.js} +1 -1
  167. package/dist/components/{p-Cr_74QR7.js → p-DGPGMB_Z.js} +1 -1
  168. package/dist/components/{p-h6zSUtA2.js → p-DIro-Wat.js} +1 -1
  169. package/dist/components/{p-AKpbKrkW.js → p-DPCj-bFr.js} +1 -1
  170. package/dist/components/{p-fcZvjHk_.js → p-DQLyH3dr.js} +1 -1
  171. package/dist/components/p-DRVnqiWc.js +1 -0
  172. package/dist/components/{p-HsTw_qYU.js → p-DWW5xr6r.js} +1 -1
  173. package/dist/components/p-D_lyw4rN.js +1 -0
  174. package/dist/components/{p-DXtyg5eK.js → p-Diis5oCN.js} +1 -1
  175. package/dist/components/{p-BdsI1E5l.js → p-DlkxQ9Jn.js} +1 -1
  176. package/dist/components/{p-Cpg2hVm3.js → p-N_EbEY8s.js} +1 -1
  177. package/dist/components/{p-CpclstHV.js → p-T5BGXHZg.js} +1 -1
  178. package/dist/components/{p-CGssy8eb.js → p-YgnF5oje.js} +1 -1
  179. package/dist/components/{p-Cc7ZBscb.js → p-z9MoRjYX.js} +1 -1
  180. package/dist/components/sd-action-modal.js +1 -1
  181. package/dist/components/sd-badge.js +1 -1
  182. package/dist/components/sd-barcode-input.js +1 -1
  183. package/dist/components/sd-button-v2.js +1 -1
  184. package/dist/components/sd-button.js +1 -1
  185. package/dist/components/sd-calendar.js +1 -1
  186. package/dist/components/sd-card.js +1 -1
  187. package/dist/components/sd-checkbox.js +1 -1
  188. package/dist/components/sd-chip.d.ts +11 -0
  189. package/dist/components/sd-chip.js +1 -0
  190. package/dist/components/sd-circle-progress.js +1 -1
  191. package/dist/components/sd-confirm-modal.js +1 -1
  192. package/dist/components/sd-date-box.js +1 -1
  193. package/dist/components/sd-date-picker-calendar.js +1 -1
  194. package/dist/components/sd-date-picker-trigger.js +1 -1
  195. package/dist/components/sd-date-picker.js +1 -1
  196. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  197. package/dist/components/sd-date-range-picker.js +1 -1
  198. package/dist/components/sd-dropdown-button.js +1 -1
  199. package/dist/components/sd-field.js +1 -1
  200. package/dist/components/sd-file-picker.js +1 -1
  201. package/dist/components/sd-floating-portal.js +1 -1
  202. package/dist/components/sd-form.js +1 -1
  203. package/dist/components/sd-ghost-button.js +1 -1
  204. package/dist/components/sd-guide.js +1 -1
  205. package/dist/components/sd-icon.js +1 -1
  206. package/dist/components/sd-input.js +1 -1
  207. package/dist/components/sd-loading-container.js +1 -1
  208. package/dist/components/sd-loading-modal.js +1 -1
  209. package/dist/components/sd-modal-container.js +1 -1
  210. package/dist/components/sd-number-input.js +1 -1
  211. package/dist/components/sd-pagination.js +1 -1
  212. package/dist/components/sd-popover.js +1 -1
  213. package/dist/components/sd-portal.js +1 -1
  214. package/dist/components/sd-progress.js +1 -1
  215. package/dist/components/sd-radio-button.js +1 -1
  216. package/dist/components/sd-radio-group.js +1 -1
  217. package/dist/components/sd-radio.js +1 -1
  218. package/dist/components/sd-select-dropdown.js +1 -1
  219. package/dist/components/sd-select-group.js +1 -1
  220. package/dist/components/sd-select-multiple-group.js +1 -1
  221. package/dist/components/sd-select-multiple.js +1 -1
  222. package/dist/components/sd-select-option-group.js +1 -1
  223. package/dist/components/sd-select-option.js +1 -1
  224. package/dist/components/sd-select-search-input.js +1 -1
  225. package/dist/components/sd-select-v2-list-item-search.js +1 -1
  226. package/dist/components/sd-select-v2-list-item.js +1 -1
  227. package/dist/components/sd-select-v2-listbox.js +1 -1
  228. package/dist/components/sd-select-v2-trigger.js +1 -1
  229. package/dist/components/sd-select-v2.js +1 -1
  230. package/dist/components/sd-select.js +1 -1
  231. package/dist/components/sd-switch.js +1 -1
  232. package/dist/components/sd-table.js +1 -1
  233. package/dist/components/sd-tabs.js +1 -1
  234. package/dist/components/sd-tag.js +1 -1
  235. package/dist/components/sd-tbody.js +1 -1
  236. package/dist/components/sd-td.js +1 -1
  237. package/dist/components/sd-text-link.js +1 -1
  238. package/dist/components/sd-textarea.js +1 -1
  239. package/dist/components/sd-thead.js +1 -1
  240. package/dist/components/sd-toast-container.js +1 -1
  241. package/dist/components/sd-toast.js +1 -1
  242. package/dist/components/sd-toggle.js +1 -1
  243. package/dist/components/sd-tooltip.js +1 -1
  244. package/dist/components/sd-tr.js +1 -1
  245. package/dist/components/table-test.js +1 -1
  246. package/dist/design-system/design-system.css +1 -1
  247. package/dist/design-system/design-system.esm.js +1 -1
  248. package/dist/design-system/index.esm.js +1 -1
  249. package/dist/design-system/{p-e5f71ec0.entry.js → p-002e10ac.entry.js} +1 -1
  250. package/dist/design-system/p-01ac7743.entry.js +1 -0
  251. package/dist/design-system/{p-f3d082c8.entry.js → p-07736d67.entry.js} +1 -1
  252. package/dist/design-system/p-0929f910.entry.js +1 -0
  253. package/dist/design-system/{p-867ec4ee.entry.js → p-0b216b11.entry.js} +1 -1
  254. package/dist/design-system/{p-4dcadde3.entry.js → p-0bffdbf4.entry.js} +1 -1
  255. package/dist/design-system/{p-05ce3449.entry.js → p-0c98676e.entry.js} +1 -1
  256. package/dist/design-system/{p-9dd3c6a7.entry.js → p-0d485537.entry.js} +1 -1
  257. package/dist/design-system/{p-ed61fe19.entry.js → p-16eae7ae.entry.js} +1 -1
  258. package/dist/design-system/{p-03099a57.entry.js → p-1a455448.entry.js} +1 -1
  259. package/dist/design-system/{p-3d341993.entry.js → p-1b8e63a6.entry.js} +1 -1
  260. package/dist/design-system/p-23c31074.entry.js +1 -0
  261. package/dist/design-system/{p-96b14db1.entry.js → p-23ff6bee.entry.js} +1 -1
  262. package/dist/design-system/{p-8d2328ae.entry.js → p-2a4b6bc7.entry.js} +1 -1
  263. package/dist/design-system/{p-b81e0493.entry.js → p-2a663b3b.entry.js} +1 -1
  264. package/dist/design-system/{p-53bc77f8.entry.js → p-308c2a72.entry.js} +1 -1
  265. package/dist/design-system/{p-010e4f47.entry.js → p-33713805.entry.js} +1 -1
  266. package/dist/design-system/p-35b29182.entry.js +1 -0
  267. package/dist/design-system/{p-2ae97b1c.entry.js → p-449e58ee.entry.js} +1 -1
  268. package/dist/design-system/{p-5a63febd.entry.js → p-48f1f9ff.entry.js} +1 -1
  269. package/dist/design-system/{p-a27718c1.entry.js → p-4d434794.entry.js} +1 -1
  270. package/dist/design-system/p-4de3b6b1.entry.js +1 -0
  271. package/dist/design-system/p-4f9f25a1.entry.js +1 -0
  272. package/dist/design-system/{p-84a329fb.entry.js → p-59aa62ff.entry.js} +1 -1
  273. package/dist/design-system/{p-363da5ff.entry.js → p-5a0b0a1b.entry.js} +1 -1
  274. package/dist/design-system/p-60ece09d.entry.js +1 -0
  275. package/dist/design-system/{p-b1fe12f8.entry.js → p-641c2f3d.entry.js} +1 -1
  276. package/dist/design-system/{p-04be87a4.entry.js → p-64a56a4e.entry.js} +1 -1
  277. package/dist/design-system/{p-b60ae063.entry.js → p-6b2f6efb.entry.js} +1 -1
  278. package/dist/design-system/{p-fd296c73.entry.js → p-6b478f5c.entry.js} +1 -1
  279. package/dist/design-system/{p-d8eb17a8.entry.js → p-6ca6dfaf.entry.js} +1 -1
  280. package/dist/design-system/{p-d04551be.entry.js → p-6ef2d08f.entry.js} +1 -1
  281. package/dist/design-system/{p-c4e68815.entry.js → p-703eee55.entry.js} +1 -1
  282. package/dist/design-system/p-75c5e31b.entry.js +1 -0
  283. package/dist/design-system/p-7dd8beba.entry.js +1 -0
  284. package/dist/design-system/{p-73acee07.entry.js → p-7ef0c428.entry.js} +1 -1
  285. package/dist/design-system/{p-6644c4a0.entry.js → p-8281dc36.entry.js} +1 -1
  286. package/dist/design-system/p-87222184.entry.js +1 -0
  287. package/dist/design-system/{p-a129711d.entry.js → p-8cd1b533.entry.js} +1 -1
  288. package/dist/design-system/{p-40495e05.entry.js → p-92a52f89.entry.js} +1 -1
  289. package/dist/design-system/{p-4a53d7b0.entry.js → p-95d96917.entry.js} +1 -1
  290. package/dist/design-system/{p-e33389b8.entry.js → p-9ecde011.entry.js} +1 -1
  291. package/dist/design-system/{p-e78faea6.entry.js → p-9f0fe1f6.entry.js} +1 -1
  292. package/dist/design-system/p-BGyJgVXm.js +2 -0
  293. package/dist/design-system/{p-CJwbBrt5.js → p-ByhWX2NK.js} +1 -1
  294. package/dist/design-system/p-C-txBx-h.js +1 -0
  295. package/dist/design-system/{p-COK6PVLC.js → p-C4tHYnB4.js} +1 -1
  296. package/dist/design-system/p-DRVnqiWc.js +1 -0
  297. package/dist/design-system/{p-3f79f1d1.entry.js → p-ade9319d.entry.js} +1 -1
  298. package/dist/design-system/{p-4128c17f.entry.js → p-aeadfb9c.entry.js} +1 -1
  299. package/dist/design-system/{p-b3279f07.entry.js → p-ca6b4d4a.entry.js} +1 -1
  300. package/dist/design-system/{p-0fbb6d92.entry.js → p-cdedac3c.entry.js} +1 -1
  301. package/dist/design-system/{p-09ba9dbc.entry.js → p-d43772c0.entry.js} +1 -1
  302. package/dist/design-system/{p-e0f9e5b5.entry.js → p-dfa716e0.entry.js} +1 -1
  303. package/dist/design-system/{p-d040ec6f.entry.js → p-e1288299.entry.js} +1 -1
  304. package/dist/design-system/{p-a983560d.entry.js → p-e1b307ee.entry.js} +1 -1
  305. package/dist/design-system/p-e3a1e677.entry.js +1 -0
  306. package/dist/design-system/p-ebc72b3f.entry.js +1 -0
  307. package/dist/design-system/{p-6c71d7b7.entry.js → p-fa888a37.entry.js} +1 -1
  308. package/dist/esm/{component.textinput-CJwbBrt5.js → component.textinput-ByhWX2NK.js} +3 -2
  309. package/dist/esm/design-system.js +3 -3
  310. package/dist/esm/{index-BqHL8W3c.js → index-BGyJgVXm.js} +1 -1
  311. package/dist/esm/index.js +36 -41
  312. package/dist/esm/loader.js +3 -3
  313. package/dist/esm/modal-stack-DRVnqiWc.js +105 -0
  314. package/dist/esm/sd-action-modal.entry.js +2 -2
  315. package/dist/esm/sd-badge.entry.js +2 -2
  316. package/dist/esm/sd-barcode-input.entry.js +3 -3
  317. package/dist/esm/sd-button-v2_2.entry.js +3 -3
  318. package/dist/esm/sd-button_4.entry.js +22 -17
  319. package/dist/esm/sd-calendar.entry.js +1 -1
  320. package/dist/esm/sd-card.entry.js +2 -2
  321. package/dist/esm/sd-checkbox.entry.js +1 -1
  322. package/dist/esm/sd-chip.entry.js +310 -0
  323. package/dist/esm/sd-circle-progress.entry.js +2 -2
  324. package/dist/esm/sd-confirm-modal_2.entry.js +5 -4
  325. package/dist/esm/sd-date-box.entry.js +1 -1
  326. package/dist/esm/sd-date-picker-calendar.entry.js +2 -2
  327. package/dist/esm/sd-date-picker-trigger.entry.js +3 -3
  328. package/dist/esm/sd-date-picker.entry.js +3 -3
  329. package/dist/esm/sd-date-range-picker-calendar.entry.js +2 -2
  330. package/dist/esm/sd-date-range-picker.entry.js +1 -1
  331. package/dist/esm/sd-dropdown-button.entry.js +5 -16
  332. package/dist/esm/sd-file-picker.entry.js +3 -3
  333. package/dist/esm/sd-form.entry.js +1 -1
  334. package/dist/esm/sd-ghost-button.entry.js +6 -6
  335. package/dist/esm/sd-guide.entry.js +167 -34
  336. package/dist/esm/sd-input_2.entry.js +7 -7
  337. package/dist/esm/sd-loading-container.entry.js +4 -4
  338. package/dist/esm/sd-modal-container.entry.js +130 -151
  339. package/dist/esm/sd-number-input.entry.js +4 -4
  340. package/dist/esm/sd-pagination_2.entry.js +116 -42
  341. package/dist/esm/sd-popover.entry.js +4 -4
  342. package/dist/esm/sd-portal.entry.js +4 -4
  343. package/dist/esm/sd-progress.entry.js +3 -3
  344. package/dist/esm/sd-radio-button.entry.js +2 -2
  345. package/dist/esm/sd-radio-group.entry.js +3 -3
  346. package/dist/esm/sd-radio.entry.js +18 -27
  347. package/dist/esm/sd-select-dropdown_2.entry.js +4 -4
  348. package/dist/esm/sd-select-group.entry.js +2 -2
  349. package/dist/esm/sd-select-multiple-group.entry.js +2 -2
  350. package/dist/esm/sd-select-multiple.entry.js +2 -2
  351. package/dist/esm/sd-select-option-group.entry.js +4 -4
  352. package/dist/esm/sd-select-v2-list-item_4.entry.js +29 -24
  353. package/dist/esm/sd-select.entry.js +2 -2
  354. package/dist/esm/sd-switch.entry.js +2 -2
  355. package/dist/esm/sd-table.entry.js +6 -6
  356. package/dist/esm/sd-tabs.entry.js +2 -2
  357. package/dist/esm/sd-tag.entry.js +3 -3
  358. package/dist/esm/sd-tbody.entry.js +2 -2
  359. package/dist/esm/sd-td.entry.js +2 -2
  360. package/dist/esm/sd-text-link.entry.js +4 -4
  361. package/dist/esm/sd-textarea.entry.js +3 -3
  362. package/dist/esm/sd-thead.entry.js +4 -4
  363. package/dist/esm/sd-toast-container.entry.js +3 -3
  364. package/dist/esm/sd-toast.entry.js +3 -3
  365. package/dist/esm/sd-toggle.entry.js +2 -2
  366. package/dist/esm/sd-tr.entry.js +3 -3
  367. package/dist/esm/system-C-txBx-h.js +14 -0
  368. package/dist/esm/table-test.entry.js +2 -2
  369. package/dist/esm/{tooltipArrow-BcsrQx1U.js → tooltipArrow-BAjP9_Hx.js} +1 -1
  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-guide/sd-guide.config.d.ts +44 -0
  373. package/dist/types/components/sd-guide/sd-guide.d.ts +3 -4
  374. package/dist/types/components/sd-loading-container/sd-loading-container.config.d.ts +1 -1
  375. package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +1 -0
  376. package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +1 -0
  377. package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +12 -16
  378. package/dist/types/components/sd-pagination/sd-pagination.config.d.ts +23 -0
  379. package/dist/types/components/sd-pagination/sd-pagination.d.ts +3 -3
  380. package/dist/types/components/sd-radio/sd-radio.config.d.ts +1 -0
  381. package/dist/types/components/sd-select-v2/sd-select-v2.config.d.ts +2 -1
  382. package/dist/types/components/sd-table/sd-table.stories.helpers.d.ts +29 -0
  383. package/dist/types/components/sd-toast-container/sd-toast-container.config.d.ts +1 -1
  384. package/dist/types/components.d.ts +134 -16
  385. package/dist/types/utils/modal-stack.d.ts +17 -0
  386. package/hydrate/index.js +1004 -385
  387. package/hydrate/index.mjs +1004 -385
  388. package/package.json +1 -1
  389. package/dist/components/p-6LkBUj0w.js +0 -1
  390. package/dist/components/p-B1S4ybd6.js +0 -1
  391. package/dist/components/p-CU095QAR.js +0 -1
  392. package/dist/components/p-DBnszF5F.js +0 -1
  393. package/dist/components/p-DpsDTjcN.js +0 -1
  394. package/dist/components/p-DuYi4aqj.js +0 -1
  395. package/dist/components/p-VXLJLI30.js +0 -1
  396. package/dist/components/p-kZ5N_lFC.js +0 -1
  397. package/dist/design-system/p-12a03c88.entry.js +0 -1
  398. package/dist/design-system/p-15cda79c.entry.js +0 -1
  399. package/dist/design-system/p-2f64dd95.entry.js +0 -1
  400. package/dist/design-system/p-33e4ce64.entry.js +0 -1
  401. package/dist/design-system/p-7e09fdd5.entry.js +0 -1
  402. package/dist/design-system/p-8acf3b67.entry.js +0 -1
  403. package/dist/design-system/p-BqHL8W3c.js +0 -2
  404. package/dist/design-system/p-ae1800c0.entry.js +0 -1
  405. package/dist/design-system/p-b6e02544.entry.js +0 -1
  406. package/dist/design-system/p-cf1156cb.entry.js +0 -1
  407. package/dist/design-system/p-e1fdd540.entry.js +0 -1
  408. package/dist/design-system/p-f9b9204d.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) {
@@ -130,6 +173,12 @@ export class SdModalContainer {
130
173
  this.setAttr(el, 'state', options.state);
131
174
  if (this.hasOwnProp(options, 'message'))
132
175
  this.setAttr(el, 'message', options.message);
176
+ if (this.hasOwnProp(options, 'useButton')) {
177
+ if (options.useButton)
178
+ el.setAttribute('use-button', '');
179
+ else
180
+ el.removeAttribute('use-button');
181
+ }
133
182
  if (this.hasOwnProp(options, 'buttonLabel')) {
134
183
  this.setAttr(el, 'button-label', options.buttonLabel);
135
184
  }
@@ -170,14 +219,9 @@ export class SdModalContainer {
170
219
  el.tagContents = options.tagContents;
171
220
  }
172
221
  handleBackdropClick = () => {
173
- const top = this.getTopEntry();
174
- if (!top)
175
- return;
176
- if (top.persistent) {
177
- this.shakeModal(top.modalEl);
222
+ if (!this.entry || !isTopInteractiveModal(this.entry.id))
178
223
  return;
179
- }
180
- this.dispatchClose(top.modalEl);
224
+ requestCloseForModal(this.entry.id);
181
225
  };
182
226
  shakeModal(modalEl) {
183
227
  const cls = 'sd-modal-container__modal--shake';
@@ -187,73 +231,6 @@ export class SdModalContainer {
187
231
  modalEl.classList.add(cls);
188
232
  });
189
233
  }
190
- disconnectedCallback() {
191
- (this.entries ?? []).forEach(entry => {
192
- if (entry.dismissTimerId)
193
- clearTimeout(entry.dismissTimerId);
194
- });
195
- if (this.containerDismissTimerId)
196
- clearTimeout(this.containerDismissTimerId);
197
- this.setBodyScrollLock(false);
198
- }
199
- setBodyScrollLock(lock) {
200
- if (typeof document === 'undefined')
201
- return;
202
- if (lock === this.bodyScrollLocked)
203
- return;
204
- if (lock) {
205
- this.previousBodyOverflow = document.body.style.overflow || '';
206
- document.body.style.overflow = 'hidden';
207
- }
208
- else {
209
- document.body.style.overflow = this.previousBodyOverflow ?? '';
210
- this.previousBodyOverflow = null;
211
- }
212
- this.bodyScrollLocked = lock;
213
- }
214
- getTopEntry() {
215
- return [...(this.entries ?? [])].reverse().find(entry => !entry.closing);
216
- }
217
- requestDismiss(id, reason) {
218
- const entry = (this.entries ?? []).find(item => item.id === id);
219
- if (!entry || entry.closing)
220
- return;
221
- entry.modalEl.classList.remove('sd-modal-container__modal--visible');
222
- const remainingActive = (this.entries ?? []).filter(item => item.id !== id && !item.closing);
223
- if (remainingActive.length === 0) {
224
- this.isBackdropVisible = false;
225
- }
226
- const dismissTimerId = setTimeout(() => {
227
- this.finalizeDismiss(id);
228
- }, ANIMATION_DURATION);
229
- this.entries = (this.entries ?? []).map(item => item.id === id ? { ...item, closing: true, dismissTimerId } : item);
230
- if (reason === 'confirm')
231
- entry.modalRef._triggerOk();
232
- else if (reason === 'cancel')
233
- entry.modalRef._triggerCancel();
234
- else if (reason === 'close')
235
- entry.modalRef._triggerClose();
236
- }
237
- finalizeDismiss(id) {
238
- const entry = (this.entries ?? []).find(item => item.id === id);
239
- if (!entry)
240
- return;
241
- if (entry.dismissTimerId)
242
- clearTimeout(entry.dismissTimerId);
243
- entry.modalEl.remove();
244
- const nextEntries = (this.entries ?? []).filter(item => item.id !== id);
245
- this.entries = nextEntries;
246
- if (nextEntries.length === 0) {
247
- this.setBodyScrollLock(false);
248
- this.containerDismissTimerId = setTimeout(() => {
249
- if ((this.entries ?? []).length === 0) {
250
- this.isVisible = false;
251
- }
252
- this.containerDismissTimerId = undefined;
253
- }, ANIMATION_DURATION);
254
- }
255
- entry.modalRef._triggerDismissed();
256
- }
257
234
  waitForModalReady(modalEl) {
258
235
  const componentOnReady = modalEl.componentOnReady;
259
236
  if (typeof componentOnReady === 'function') {
@@ -274,12 +251,14 @@ export class SdModalContainer {
274
251
  el.setAttribute(name, value);
275
252
  }
276
253
  render() {
277
- if (!this.isVisible)
254
+ if (!this.isVisible || !this.entry)
278
255
  return null;
279
- 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: {
280
259
  'sd-modal-container__backdrop': true,
281
- 'sd-modal-container__backdrop--visible': this.isBackdropVisible,
282
- }, 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 }))));
283
262
  }
284
263
  static get is() { return "sd-modal-container"; }
285
264
  static get originalStyleUrls() {
@@ -292,11 +271,35 @@ export class SdModalContainer {
292
271
  "$": ["sd-modal-container.css"]
293
272
  };
294
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
+ }
295
298
  static get states() {
296
299
  return {
297
- "entries": {},
300
+ "entry": {},
298
301
  "isVisible": {},
299
- "isBackdropVisible": {}
302
+ "backdropVisible": {}
300
303
  };
301
304
  }
302
305
  static get methods() {
@@ -489,13 +492,4 @@ export class SdModalContainer {
489
492
  };
490
493
  }
491
494
  static get elementRef() { return "el"; }
492
- static get listeners() {
493
- return [{
494
- "name": "keydown",
495
- "method": "handleKeydown",
496
- "target": "window",
497
- "capture": false,
498
- "passive": false
499
- }];
500
- }
501
495
  }
@@ -271,12 +271,12 @@ export class SdNumberInput {
271
271
  '--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
272
272
  '--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
273
273
  };
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()
274
+ return (h("sd-field", { key: 'edb2eaf473ba53fa340e39a350624e0a9e8b566e', 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: '408b984ca5c7f3edaf0afe4c56fab2901824b2de', class: "sd-number-input__content" }, this.useButton && (h("button", { key: 'da29f621914cbb7cac4c83f55056f52ef918f7c7', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: 'a60c99bd949c2791608d269bc478b490dd4335e0', name: "minus", size: iconSize, color: this.isDecrementDisabled()
275
275
  ? 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: {
276
+ : NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '3eae6cb2d277f3f830f7cb122b72cdcdedf57e10', class: "sd-number-input__prefix" }, this.inputPrefix)), h("input", { key: '19e42ab159a9df7721ca6ea5505d3a0aca2517c4', 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
277
  textAlign: this.useButton ? 'center' : 'right',
278
278
  ...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()
279
+ } }), this.inputSuffix && (h("span", { key: '5f9dc1e294a081cede120d9466d70910a9b1d6bb', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (h("button", { key: '50d96dd2556071480b17210b8db307ab4082c92b', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '1821a77886ac9dc169c8e2697282e813a334df35', name: "add", size: iconSize, color: this.isIncrementDisabled()
280
280
  ? NUMBER_INPUT_STEPPER.icon.disabled
281
281
  : NUMBER_INPUT_STEPPER.icon.default }))))));
282
282
  }
@@ -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
  }