@drivenets/design-system 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/components/ds-alert-banner/ds-alert-banner.d.cts +5 -5
  3. package/dist/components/ds-alert-banner/ds-alert-banner.d.cts.map +1 -1
  4. package/dist/components/ds-alert-banner/ds-alert-banner.d.ts +5 -5
  5. package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts.map +1 -1
  6. package/dist/components/ds-button/ds-button.d.cts +2 -2
  7. package/dist/components/ds-button/ds-button.d.ts +2 -2
  8. package/dist/components/ds-button/ds-button.d.ts.map +1 -1
  9. package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.cjs +23 -24
  10. package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js +23 -24
  11. package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js.map +1 -1
  12. package/dist/components/ds-button/versions/ds-button-new/ds-button-new.cjs +24 -25
  13. package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js +24 -25
  14. package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js.map +1 -1
  15. package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.cjs +1 -0
  16. package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js +1 -0
  17. package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js.map +1 -1
  18. package/dist/components/ds-confirmation/ds-confirmation.d.cts +8 -8
  19. package/dist/components/ds-confirmation/ds-confirmation.d.ts +8 -8
  20. package/dist/components/ds-date-input/ds-date-input.d.cts +2 -2
  21. package/dist/components/ds-date-input/ds-date-input.d.cts.map +1 -1
  22. package/dist/components/ds-date-input/ds-date-input.d.ts +2 -2
  23. package/dist/components/ds-date-input/ds-date-input.module.cjs +22 -22
  24. package/dist/components/ds-date-input/ds-date-input.module.js +22 -22
  25. package/dist/components/ds-date-input/ds-date-input.module.js.map +1 -1
  26. package/dist/components/ds-date-input/ds-date-input.utils.cjs +9 -2
  27. package/dist/components/ds-date-input/ds-date-input.utils.js +9 -2
  28. package/dist/components/ds-date-input/ds-date-input.utils.js.map +1 -1
  29. package/dist/components/ds-drawer/ds-drawer.cjs +3 -3
  30. package/dist/components/ds-drawer/ds-drawer.d.cts +9 -9
  31. package/dist/components/ds-drawer/ds-drawer.d.cts.map +1 -1
  32. package/dist/components/ds-drawer/ds-drawer.d.ts +9 -9
  33. package/dist/components/ds-drawer/ds-drawer.d.ts.map +1 -1
  34. package/dist/components/ds-drawer/ds-drawer.js +3 -3
  35. package/dist/components/ds-drawer/ds-drawer.js.map +1 -1
  36. package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.cts +1 -1
  37. package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.cts.map +1 -1
  38. package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.ts +1 -1
  39. package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.ts.map +1 -1
  40. package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts +2 -2
  41. package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts +2 -2
  42. package/dist/components/ds-file-upload/utils/format-file-size.cjs +1 -1
  43. package/dist/components/ds-file-upload/utils/format-file-size.js +1 -1
  44. package/dist/components/ds-file-upload/utils/format-file-size.js.map +1 -1
  45. package/dist/components/ds-form-control/ds-form-control.cjs +2 -5
  46. package/dist/components/ds-form-control/ds-form-control.d.cts +8 -8
  47. package/dist/components/ds-form-control/ds-form-control.js +2 -5
  48. package/dist/components/ds-form-control/ds-form-control.js.map +1 -1
  49. package/dist/components/ds-loader/ds-loader.cjs +60 -0
  50. package/dist/components/ds-loader/ds-loader.d.cts +15 -0
  51. package/dist/components/ds-loader/ds-loader.d.cts.map +1 -0
  52. package/dist/components/ds-loader/ds-loader.d.ts +15 -0
  53. package/dist/components/ds-loader/ds-loader.d.ts.map +1 -0
  54. package/dist/components/ds-loader/ds-loader.js +59 -0
  55. package/dist/components/ds-loader/ds-loader.js.map +1 -0
  56. package/dist/components/ds-loader/ds-loader.module.cjs +15 -0
  57. package/dist/components/ds-loader/ds-loader.module.js +15 -0
  58. package/dist/components/ds-loader/ds-loader.module.js.map +1 -0
  59. package/dist/components/ds-loader/ds-loader.types.cjs +6 -0
  60. package/dist/components/ds-loader/ds-loader.types.d.cts +27 -0
  61. package/dist/components/ds-loader/ds-loader.types.d.cts.map +1 -0
  62. package/dist/components/ds-loader/ds-loader.types.d.ts +27 -0
  63. package/dist/components/ds-loader/ds-loader.types.d.ts.map +1 -0
  64. package/dist/components/ds-loader/ds-loader.types.js +6 -0
  65. package/dist/components/ds-loader/ds-loader.types.js.map +1 -0
  66. package/dist/components/ds-loader/index.cjs +2 -0
  67. package/dist/components/ds-loader/index.d.ts +2 -0
  68. package/dist/components/ds-loader/index.js +2 -0
  69. package/dist/components/ds-loader/pulsing-icon.cjs +37 -0
  70. package/dist/components/ds-loader/pulsing-icon.js +37 -0
  71. package/dist/components/ds-loader/pulsing-icon.js.map +1 -0
  72. package/dist/components/ds-loader/spinner-icon.cjs +74 -0
  73. package/dist/components/ds-loader/spinner-icon.js +74 -0
  74. package/dist/components/ds-loader/spinner-icon.js.map +1 -0
  75. package/dist/components/ds-modal/ds-modal.cjs +2 -2
  76. package/dist/components/ds-modal/ds-modal.d.cts +8 -8
  77. package/dist/components/ds-modal/ds-modal.d.cts.map +1 -1
  78. package/dist/components/ds-modal/ds-modal.d.ts +8 -8
  79. package/dist/components/ds-modal/ds-modal.d.ts.map +1 -1
  80. package/dist/components/ds-modal/ds-modal.js +2 -2
  81. package/dist/components/ds-modal/ds-modal.js.map +1 -1
  82. package/dist/components/ds-panel/ds-panel.d.cts +2 -2
  83. package/dist/components/ds-panel/ds-panel.d.ts +2 -2
  84. package/dist/components/ds-select/ds-select.cjs +1 -1
  85. package/dist/components/ds-select/ds-select.d.cts +2 -2
  86. package/dist/components/ds-select/ds-select.d.ts +2 -2
  87. package/dist/components/ds-select/ds-select.js +1 -1
  88. package/dist/components/ds-select/ds-select.js.map +1 -1
  89. package/dist/components/ds-skeleton/ds-skeleton-circle.cjs +59 -0
  90. package/dist/components/ds-skeleton/ds-skeleton-circle.d.cts +18 -0
  91. package/dist/components/ds-skeleton/ds-skeleton-circle.d.cts.map +1 -0
  92. package/dist/components/ds-skeleton/ds-skeleton-circle.d.ts +18 -0
  93. package/dist/components/ds-skeleton/ds-skeleton-circle.d.ts.map +1 -0
  94. package/dist/components/ds-skeleton/ds-skeleton-circle.js +58 -0
  95. package/dist/components/ds-skeleton/ds-skeleton-circle.js.map +1 -0
  96. package/dist/components/ds-skeleton/ds-skeleton-rect.cjs +61 -0
  97. package/dist/components/ds-skeleton/ds-skeleton-rect.d.cts +18 -0
  98. package/dist/components/ds-skeleton/ds-skeleton-rect.d.cts.map +1 -0
  99. package/dist/components/ds-skeleton/ds-skeleton-rect.d.ts +18 -0
  100. package/dist/components/ds-skeleton/ds-skeleton-rect.d.ts.map +1 -0
  101. package/dist/components/ds-skeleton/ds-skeleton-rect.js +60 -0
  102. package/dist/components/ds-skeleton/ds-skeleton-rect.js.map +1 -0
  103. package/dist/components/ds-skeleton/ds-skeleton-text.cjs +91 -0
  104. package/dist/components/ds-skeleton/ds-skeleton-text.d.cts +21 -0
  105. package/dist/components/ds-skeleton/ds-skeleton-text.d.cts.map +1 -0
  106. package/dist/components/ds-skeleton/ds-skeleton-text.d.ts +21 -0
  107. package/dist/components/ds-skeleton/ds-skeleton-text.d.ts.map +1 -0
  108. package/dist/components/ds-skeleton/ds-skeleton-text.js +90 -0
  109. package/dist/components/ds-skeleton/ds-skeleton-text.js.map +1 -0
  110. package/dist/components/ds-skeleton/ds-skeleton.cjs +13 -0
  111. package/dist/components/ds-skeleton/ds-skeleton.config.cjs +62 -0
  112. package/dist/components/ds-skeleton/ds-skeleton.config.js +59 -0
  113. package/dist/components/ds-skeleton/ds-skeleton.config.js.map +1 -0
  114. package/dist/components/ds-skeleton/ds-skeleton.d.cts +32 -0
  115. package/dist/components/ds-skeleton/ds-skeleton.d.cts.map +1 -0
  116. package/dist/components/ds-skeleton/ds-skeleton.d.ts +32 -0
  117. package/dist/components/ds-skeleton/ds-skeleton.d.ts.map +1 -0
  118. package/dist/components/ds-skeleton/ds-skeleton.js +14 -0
  119. package/dist/components/ds-skeleton/ds-skeleton.js.map +1 -0
  120. package/dist/components/ds-skeleton/ds-skeleton.module.cjs +15 -0
  121. package/dist/components/ds-skeleton/ds-skeleton.module.js +15 -0
  122. package/dist/components/ds-skeleton/ds-skeleton.module.js.map +1 -0
  123. package/dist/components/ds-skeleton/ds-skeleton.types.cjs +8 -0
  124. package/dist/components/ds-skeleton/ds-skeleton.types.d.cts +91 -0
  125. package/dist/components/ds-skeleton/ds-skeleton.types.d.cts.map +1 -0
  126. package/dist/components/ds-skeleton/ds-skeleton.types.d.ts +93 -0
  127. package/dist/components/ds-skeleton/ds-skeleton.types.d.ts.map +1 -0
  128. package/dist/components/ds-skeleton/ds-skeleton.types.js +7 -0
  129. package/dist/components/ds-skeleton/ds-skeleton.types.js.map +1 -0
  130. package/dist/components/ds-skeleton/index.cjs +5 -0
  131. package/dist/components/ds-skeleton/index.d.ts +5 -0
  132. package/dist/components/ds-skeleton/index.js +5 -0
  133. package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts +2 -2
  134. package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts +2 -2
  135. package/dist/components/ds-spinner/ds-spinner.cjs +43 -45
  136. package/dist/components/ds-spinner/ds-spinner.js +43 -45
  137. package/dist/components/ds-spinner/ds-spinner.js.map +1 -1
  138. package/dist/components/ds-stepper/components/ds-step-content.d.cts +2 -2
  139. package/dist/components/ds-stepper/components/ds-step-content.d.ts +2 -2
  140. package/dist/components/ds-stepper/components/ds-step-next-button.d.cts +2 -2
  141. package/dist/components/ds-stepper/components/ds-step-next-button.d.ts +2 -2
  142. package/dist/components/ds-stepper/components/ds-step.d.cts +2 -2
  143. package/dist/components/ds-stepper/components/ds-step.d.ts +2 -2
  144. package/dist/components/ds-stepper/ds-stepper.d.cts +2 -2
  145. package/dist/components/ds-stepper/ds-stepper.d.ts +2 -2
  146. package/dist/components/ds-table/components/core-table/core-table.cjs +82 -185
  147. package/dist/components/ds-table/components/core-table/core-table.js +82 -185
  148. package/dist/components/ds-table/components/core-table/core-table.js.map +1 -1
  149. package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.cjs +61 -72
  150. package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js +61 -72
  151. package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js.map +1 -1
  152. package/dist/components/ds-table/components/ds-table-row/ds-table-row.cjs +80 -81
  153. package/dist/components/ds-table/components/ds-table-row/ds-table-row.js +80 -81
  154. package/dist/components/ds-table/components/ds-table-row/ds-table-row.js.map +1 -1
  155. package/dist/components/ds-table/ds-table.cjs +3 -3
  156. package/dist/components/ds-table/ds-table.d.cts +2 -3
  157. package/dist/components/ds-table/ds-table.d.cts.map +1 -1
  158. package/dist/components/ds-table/ds-table.d.ts +2 -3
  159. package/dist/components/ds-table/ds-table.d.ts.map +1 -1
  160. package/dist/components/ds-table/ds-table.js +3 -3
  161. package/dist/components/ds-table/ds-table.js.map +1 -1
  162. package/dist/components/ds-table/ds-table.types.d.cts +0 -4
  163. package/dist/components/ds-table/ds-table.types.d.cts.map +1 -1
  164. package/dist/components/ds-table/ds-table.types.d.ts +0 -4
  165. package/dist/components/ds-table/ds-table.types.d.ts.map +1 -1
  166. package/dist/components/ds-table/filters/adapters/create-dual-range-filter-adapter.cjs +7 -4
  167. package/dist/components/ds-table/filters/adapters/create-dual-range-filter-adapter.js +7 -4
  168. package/dist/components/ds-table/filters/adapters/create-dual-range-filter-adapter.js.map +1 -1
  169. package/dist/components/ds-table/filters/hooks/use-table-filters.cjs +94 -87
  170. package/dist/components/ds-table/filters/hooks/use-table-filters.js +94 -87
  171. package/dist/components/ds-table/filters/hooks/use-table-filters.js.map +1 -1
  172. package/dist/components/ds-tabs/components/ds-tabs-content/ds-tabs-content.cjs +37 -0
  173. package/dist/components/ds-tabs/components/ds-tabs-content/ds-tabs-content.js +36 -0
  174. package/dist/components/ds-tabs/components/ds-tabs-content/ds-tabs-content.js.map +1 -0
  175. package/dist/components/ds-tabs/components/ds-tabs-content/ds-tabs-content.module.cjs +9 -0
  176. package/dist/components/ds-tabs/components/ds-tabs-content/ds-tabs-content.module.js +9 -0
  177. package/dist/components/ds-tabs/components/ds-tabs-content/ds-tabs-content.module.js.map +1 -0
  178. package/dist/components/ds-tabs/components/ds-tabs-content/index.cjs +1 -0
  179. package/dist/components/ds-tabs/components/ds-tabs-content/index.js +1 -0
  180. package/dist/components/ds-tabs/components/ds-tabs-list/ds-tabs-indicator.module.cjs +6 -0
  181. package/dist/components/ds-tabs/components/ds-tabs-list/ds-tabs-indicator.module.js +6 -0
  182. package/dist/components/ds-tabs/components/ds-tabs-list/ds-tabs-indicator.module.js.map +1 -0
  183. package/dist/components/ds-tabs/components/ds-tabs-list/ds-tabs-list.cjs +41 -0
  184. package/dist/components/ds-tabs/components/ds-tabs-list/ds-tabs-list.js +40 -0
  185. package/dist/components/ds-tabs/components/ds-tabs-list/ds-tabs-list.js.map +1 -0
  186. package/dist/components/ds-tabs/components/ds-tabs-list/ds-tabs-list.module.cjs +6 -0
  187. package/dist/components/ds-tabs/components/ds-tabs-list/ds-tabs-list.module.js +6 -0
  188. package/dist/components/ds-tabs/components/ds-tabs-list/ds-tabs-list.module.js.map +1 -0
  189. package/dist/components/ds-tabs/components/ds-tabs-list/index.cjs +1 -0
  190. package/dist/components/ds-tabs/components/ds-tabs-list/index.js +1 -0
  191. package/dist/components/ds-tabs/components/ds-tabs-tab/ds-tabs-tab.cjs +178 -0
  192. package/dist/components/ds-tabs/components/ds-tabs-tab/ds-tabs-tab.js +177 -0
  193. package/dist/components/ds-tabs/components/ds-tabs-tab/ds-tabs-tab.js.map +1 -0
  194. package/dist/components/ds-tabs/components/ds-tabs-tab/ds-tabs-tab.module.cjs +15 -0
  195. package/dist/components/ds-tabs/components/ds-tabs-tab/ds-tabs-tab.module.js +15 -0
  196. package/dist/components/ds-tabs/components/ds-tabs-tab/ds-tabs-tab.module.js.map +1 -0
  197. package/dist/components/ds-tabs/components/ds-tabs-tab/index.cjs +1 -0
  198. package/dist/components/ds-tabs/components/ds-tabs-tab/index.js +1 -0
  199. package/dist/components/ds-tabs/ds-tabs.cjs +71 -0
  200. package/dist/components/ds-tabs/ds-tabs.d.cts +43 -0
  201. package/dist/components/ds-tabs/ds-tabs.d.cts.map +1 -0
  202. package/dist/components/ds-tabs/ds-tabs.d.ts +43 -0
  203. package/dist/components/ds-tabs/ds-tabs.d.ts.map +1 -0
  204. package/dist/components/ds-tabs/ds-tabs.js +70 -0
  205. package/dist/components/ds-tabs/ds-tabs.js.map +1 -0
  206. package/dist/components/ds-tabs/ds-tabs.module.cjs +6 -0
  207. package/dist/components/ds-tabs/ds-tabs.module.js +6 -0
  208. package/dist/components/ds-tabs/ds-tabs.module.js.map +1 -0
  209. package/dist/components/ds-tabs/ds-tabs.types.d.cts +91 -0
  210. package/dist/components/ds-tabs/ds-tabs.types.d.cts.map +1 -0
  211. package/dist/components/ds-tabs/ds-tabs.types.d.ts +92 -0
  212. package/dist/components/ds-tabs/ds-tabs.types.d.ts.map +1 -0
  213. package/dist/components/ds-tabs/index.cjs +1 -0
  214. package/dist/components/ds-tabs/index.d.ts +2 -0
  215. package/dist/components/ds-tabs/index.js +1 -0
  216. package/dist/components/ds-tag/ds-tag.d.cts +2 -2
  217. package/dist/components/ds-tag/ds-tag.d.ts +2 -2
  218. package/dist/components/ds-tag-filter/ds-tag-filter.d.cts +2 -2
  219. package/dist/components/ds-tag-filter/ds-tag-filter.d.ts +2 -2
  220. package/dist/components/ds-toggle/ds-toggle.d.cts +2 -2
  221. package/dist/components/ds-toggle/ds-toggle.d.ts +2 -2
  222. package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts +5 -5
  223. package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts +5 -5
  224. package/dist/index.cjs +20 -0
  225. package/dist/index.d.cts +12 -3
  226. package/dist/index.d.ts +16 -4
  227. package/dist/index.js +12 -1
  228. package/dist/index.min.css +1 -1
  229. package/package.json +5 -3
  230. package/src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.tsx +1 -7
  231. package/src/components/ds-button/versions/ds-button-new/ds-button-new.tsx +4 -2
  232. package/src/components/ds-chip-group/hooks/use-chip-row-calculation.ts +5 -0
  233. package/src/components/ds-date-input/ds-date-input.module.scss +1 -0
  234. package/src/components/ds-date-input/ds-date-input.utils.ts +16 -2
  235. package/src/components/ds-drawer/ds-drawer.tsx +4 -1
  236. package/src/components/ds-dropdown-menu/ds-dropdown-menu.types.tsx +4 -1
  237. package/src/components/ds-file-upload/utils/format-file-size.ts +1 -1
  238. package/src/components/ds-form-control/ds-form-control.tsx +9 -2
  239. package/src/components/ds-loader/ds-loader.module.scss +57 -0
  240. package/src/components/ds-loader/ds-loader.tsx +18 -0
  241. package/src/components/ds-loader/ds-loader.types.ts +24 -0
  242. package/src/components/ds-loader/index.ts +2 -0
  243. package/src/components/ds-loader/pulsing-icon.tsx +17 -0
  244. package/src/components/ds-loader/spinner-icon.tsx +37 -0
  245. package/src/components/ds-modal/ds-modal.tsx +7 -1
  246. package/src/components/ds-select/ds-select.tsx +1 -1
  247. package/src/components/ds-skeleton/ds-skeleton-circle.tsx +29 -0
  248. package/src/components/ds-skeleton/ds-skeleton-rect.tsx +36 -0
  249. package/src/components/ds-skeleton/ds-skeleton-text.tsx +49 -0
  250. package/src/components/ds-skeleton/ds-skeleton.config.ts +68 -0
  251. package/src/components/ds-skeleton/ds-skeleton.module.scss +72 -0
  252. package/src/components/ds-skeleton/ds-skeleton.tsx +9 -0
  253. package/src/components/ds-skeleton/ds-skeleton.types.ts +92 -0
  254. package/src/components/ds-skeleton/index.ts +5 -0
  255. package/src/components/ds-spinner/ds-spinner.tsx +1 -1
  256. package/src/components/ds-table/components/core-table/core-table.tsx +16 -16
  257. package/src/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.tsx +10 -13
  258. package/src/components/ds-table/components/ds-table-row/ds-table-row.tsx +0 -2
  259. package/src/components/ds-table/ds-table.tsx +6 -5
  260. package/src/components/ds-table/ds-table.types.ts +0 -5
  261. package/src/components/ds-table/filters/adapters/create-dual-range-filter-adapter.tsx +2 -4
  262. package/src/components/ds-table/filters/hooks/use-table-filters.ts +10 -5
  263. package/src/components/ds-table/utils/story-data-generator.ts +7 -7
  264. package/src/components/ds-tabs/components/ds-tabs-content/ds-tabs-content.module.scss +18 -0
  265. package/src/components/ds-tabs/components/ds-tabs-content/ds-tabs-content.tsx +12 -0
  266. package/src/components/ds-tabs/components/ds-tabs-content/index.ts +1 -0
  267. package/src/components/ds-tabs/components/ds-tabs-list/ds-tabs-indicator.module.scss +31 -0
  268. package/src/components/ds-tabs/components/ds-tabs-list/ds-tabs-list.module.scss +27 -0
  269. package/src/components/ds-tabs/components/ds-tabs-list/ds-tabs-list.tsx +14 -0
  270. package/src/components/ds-tabs/components/ds-tabs-list/index.ts +1 -0
  271. package/src/components/ds-tabs/components/ds-tabs-tab/ds-tabs-tab.module.scss +242 -0
  272. package/src/components/ds-tabs/components/ds-tabs-tab/ds-tabs-tab.tsx +130 -0
  273. package/src/components/ds-tabs/components/ds-tabs-tab/index.ts +1 -0
  274. package/src/components/ds-tabs/ds-tabs.module.scss +14 -0
  275. package/src/components/ds-tabs/ds-tabs.tsx +46 -0
  276. package/src/components/ds-tabs/ds-tabs.types.ts +97 -0
  277. package/src/components/ds-tabs/index.ts +2 -0
  278. package/src/index.ts +3 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @drivenets/design-system
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 072854f: Add `DsTabs` component
8
+ - f36f9f4: - Add `DsSkeleton` component
9
+ - Add `DsLoader` component
10
+
11
+ ### Patch Changes
12
+
13
+ - 393cf6d: Fix the date input min-width
14
+
3
15
  ## 0.2.0
4
16
 
5
17
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  import { DsAlertBannerProps } from "./ds-alert-banner.types.cjs";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime57 from "react/jsx-runtime";
3
3
  import { CSSProperties, ReactNode } from "react";
4
4
 
5
5
  //#region src/components/ds-alert-banner/ds-alert-banner.d.ts
@@ -19,7 +19,7 @@ declare const DsAlertBanner: {
19
19
  className,
20
20
  style,
21
21
  children
22
- }: DsAlertBannerProps): react_jsx_runtime0.JSX.Element | null;
22
+ }: DsAlertBannerProps): react_jsx_runtime57.JSX.Element | null;
23
23
  Title: ({
24
24
  style,
25
25
  className,
@@ -28,7 +28,7 @@ declare const DsAlertBanner: {
28
28
  style?: CSSProperties;
29
29
  className?: string;
30
30
  children: ReactNode;
31
- }) => react_jsx_runtime0.JSX.Element;
31
+ }) => react_jsx_runtime57.JSX.Element;
32
32
  Body: ({
33
33
  style,
34
34
  className,
@@ -37,7 +37,7 @@ declare const DsAlertBanner: {
37
37
  style?: CSSProperties;
38
38
  className?: string;
39
39
  children: ReactNode;
40
- }) => react_jsx_runtime0.JSX.Element;
40
+ }) => react_jsx_runtime57.JSX.Element;
41
41
  Actions: ({
42
42
  style,
43
43
  className,
@@ -46,7 +46,7 @@ declare const DsAlertBanner: {
46
46
  style?: CSSProperties;
47
47
  className?: string;
48
48
  children: ReactNode;
49
- }) => react_jsx_runtime0.JSX.Element;
49
+ }) => react_jsx_runtime57.JSX.Element;
50
50
  };
51
51
  //#endregion
52
52
  export { DsAlertBanner };
@@ -1 +1 @@
1
- {"version":3,"file":"ds-alert-banner.d.cts","names":[],"sources":["../../../src/components/ds-alert-banner/ds-alert-banner.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAGkE;cAQ5D;;;;;;;;;;;KAUH,qBAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;YAoDZ;;cAEE;QACV,kBAAA,CAAA,GAAA,CAAA;;;;;;YAWQ;IAlEN,SAAA,CAAA,EAAA,MAAA;IAAkB,QAAA,EAoEV,SApEU;QAqEpB,kBAAA,CAAA,GAAA,CAAA;;;;;EAdA;YAyBQ;IA5BA,SAAA,CAAA,EAAA,MAAA;IAEE,QAAA,EA4BA,SA5BA;EACV,CAAA,EAAA,GA4BA,kBAAA,CAAA,GAAA,CAAA,OA5BA"}
1
+ {"version":3,"file":"ds-alert-banner.d.cts","names":[],"sources":["../../../src/components/ds-alert-banner/ds-alert-banner.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAGkE;cAQ5D;;;;;;;;;;;KAUH,qBAAkB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;YAoDZ;;cAEE;QACV,mBAAA,CAAA,GAAA,CAAA;;;;;;YAWQ;IAlEN,SAAA,CAAA,EAAA,MAAA;IAAkB,QAAA,EAoEV,SApEU;QAqEpB,mBAAA,CAAA,GAAA,CAAA;;;;;EAdA;YAyBQ;IA5BA,SAAA,CAAA,EAAA,MAAA;IAEE,QAAA,EA4BA,SA5BA;EACV,CAAA,EAAA,GA4BA,mBAAA,CAAA,GAAA,CAAA,OA5BA"}
@@ -1,5 +1,5 @@
1
1
  import { DsAlertBannerProps } from "./ds-alert-banner.types.js";
2
- import * as react_jsx_runtime14 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime22 from "react/jsx-runtime";
3
3
  import { CSSProperties, ReactNode } from "react";
4
4
 
5
5
  //#region src/components/ds-alert-banner/ds-alert-banner.d.ts
@@ -19,7 +19,7 @@ declare const DsAlertBanner: {
19
19
  className,
20
20
  style,
21
21
  children
22
- }: DsAlertBannerProps): react_jsx_runtime14.JSX.Element | null;
22
+ }: DsAlertBannerProps): react_jsx_runtime22.JSX.Element | null;
23
23
  Title: ({
24
24
  style,
25
25
  className,
@@ -28,7 +28,7 @@ declare const DsAlertBanner: {
28
28
  style?: CSSProperties;
29
29
  className?: string;
30
30
  children: ReactNode;
31
- }) => react_jsx_runtime14.JSX.Element;
31
+ }) => react_jsx_runtime22.JSX.Element;
32
32
  Body: ({
33
33
  style,
34
34
  className,
@@ -37,7 +37,7 @@ declare const DsAlertBanner: {
37
37
  style?: CSSProperties;
38
38
  className?: string;
39
39
  children: ReactNode;
40
- }) => react_jsx_runtime14.JSX.Element;
40
+ }) => react_jsx_runtime22.JSX.Element;
41
41
  Actions: ({
42
42
  style,
43
43
  className,
@@ -46,7 +46,7 @@ declare const DsAlertBanner: {
46
46
  style?: CSSProperties;
47
47
  className?: string;
48
48
  children: ReactNode;
49
- }) => react_jsx_runtime14.JSX.Element;
49
+ }) => react_jsx_runtime22.JSX.Element;
50
50
  };
51
51
  //#endregion
52
52
  export { DsAlertBanner };
@@ -1 +1 @@
1
- {"version":3,"file":"ds-alert-banner.types.d.cts","names":[],"sources":["../../../src/components/ds-alert-banner/ds-alert-banner.types.tsx"],"sourcesContent":[],"mappings":";;;;cAIa;AAAA,KACD,kBAAA,GAD4F,CAAA,OAC/D,mBAD+D,CAAA,CAAA,MAAA,CAAA;AAC5F,UAEK,kBAAA,CAFwB;EAExB;;;EAkCR,IAAM,EAAA,OAAA;EAIH;;;;;;;;;;;;;YApBD;;;;SAIH;;;;;;;;;;;;UAYC,KAAA,CAAM;;;;aAIH"}
1
+ {"version":3,"file":"ds-alert-banner.types.d.cts","names":[],"sources":["../../../src/components/ds-alert-banner/ds-alert-banner.types.tsx"],"sourcesContent":[],"mappings":";;;;cAIa;AAAA,KACD,kBAAA,GAD4F,CAAA,OAC/D,mBAD+D,CAAA,CAAA,MAAA,CAAA;AAC5F,UAEK,kBAAA,CAFa;EAEb;;;EAkCR,IAAM,EAAA,OAAA;EAIH;;;;;;;;;;;;;YApBD;;;;SAIH;;;;;;;;;;;;UAYC,KAAA,CAAM;;;;aAIH"}
@@ -1,8 +1,8 @@
1
1
  import { DsButtonUnifiedProps } from "./ds-button.types.cjs";
2
- import * as react_jsx_runtime3 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ds-button/ds-button.d.ts
5
- declare const DsButton: (props: DsButtonUnifiedProps) => react_jsx_runtime3.JSX.Element;
5
+ declare const DsButton: (props: DsButtonUnifiedProps) => react_jsx_runtime0.JSX.Element;
6
6
  //#endregion
7
7
  export { DsButton };
8
8
  //# sourceMappingURL=ds-button.d.cts.map
@@ -1,8 +1,8 @@
1
1
  import { DsButtonUnifiedProps } from "./ds-button.types.js";
2
- import * as react_jsx_runtime18 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ds-button/ds-button.d.ts
5
- declare const DsButton: (props: DsButtonUnifiedProps) => react_jsx_runtime18.JSX.Element;
5
+ declare const DsButton: (props: DsButtonUnifiedProps) => react_jsx_runtime0.JSX.Element;
6
6
  //#endregion
7
7
  export { DsButton };
8
8
  //# sourceMappingURL=ds-button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ds-button.d.ts","names":[],"sources":["../../../src/components/ds-button/ds-button.tsx"],"sourcesContent":[],"mappings":";;;;cAIM,kBAAmB,yBAAoB,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"ds-button.d.ts","names":[],"sources":["../../../src/components/ds-button/ds-button.tsx"],"sourcesContent":[],"mappings":";;;;cAIM,kBAAmB,yBAAoB,kBAAA,CAAA,GAAA,CAAA"}
@@ -10,7 +10,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
10
10
  * Design system Button component
11
11
  */
12
12
  const DsButton = (t0) => {
13
- const $ = (0, react_compiler_runtime.c)(24);
13
+ const $ = (0, react_compiler_runtime.c)(23);
14
14
  let children;
15
15
  let className;
16
16
  let contentClassName;
@@ -47,33 +47,32 @@ const DsButton = (t0) => {
47
47
  const t5 = require_ds_button_legacy_module.default[`${schema}-${variant}`];
48
48
  const t6 = require_ds_button_legacy_module.default[size];
49
49
  let t7;
50
- if ($[9] !== className || $[10] !== disabled || $[11] !== t5 || $[12] !== t6) {
51
- t7 = (0, classnames.default)(require_ds_button_legacy_module.default.button, t5, t6, { [require_ds_button_legacy_module.default.disabled]: disabled }, className);
50
+ if ($[9] !== className || $[10] !== t5 || $[11] !== t6) {
51
+ t7 = (0, classnames.default)(require_ds_button_legacy_module.default.button, t5, t6, className);
52
52
  $[9] = className;
53
- $[10] = disabled;
54
- $[11] = t5;
55
- $[12] = t6;
56
- $[13] = t7;
57
- } else t7 = $[13];
53
+ $[10] = t5;
54
+ $[11] = t6;
55
+ $[12] = t7;
56
+ } else t7 = $[12];
58
57
  const buttonClass = t7;
59
58
  let t8;
60
- if ($[14] !== contentClassName) {
59
+ if ($[13] !== contentClassName) {
61
60
  t8 = (0, classnames.default)(require_ds_button_legacy_module.default.content, contentClassName);
62
- $[14] = contentClassName;
63
- $[15] = t8;
64
- } else t8 = $[15];
61
+ $[13] = contentClassName;
62
+ $[14] = t8;
63
+ } else t8 = $[14];
65
64
  let t9;
66
- if ($[16] !== children || $[17] !== t8) {
65
+ if ($[15] !== children || $[16] !== t8) {
67
66
  t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
68
67
  className: t8,
69
68
  children
70
69
  });
71
- $[16] = children;
72
- $[17] = t8;
73
- $[18] = t9;
74
- } else t9 = $[18];
70
+ $[15] = children;
71
+ $[16] = t8;
72
+ $[17] = t9;
73
+ } else t9 = $[17];
75
74
  let t10;
76
- if ($[19] !== buttonClass || $[20] !== disabled || $[21] !== props || $[22] !== t9) {
75
+ if ($[18] !== buttonClass || $[19] !== disabled || $[20] !== props || $[21] !== t9) {
77
76
  t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
78
77
  type: "button",
79
78
  className: buttonClass,
@@ -81,12 +80,12 @@ const DsButton = (t0) => {
81
80
  ...props,
82
81
  children: t9
83
82
  });
84
- $[19] = buttonClass;
85
- $[20] = disabled;
86
- $[21] = props;
87
- $[22] = t9;
88
- $[23] = t10;
89
- } else t10 = $[23];
83
+ $[18] = buttonClass;
84
+ $[19] = disabled;
85
+ $[20] = props;
86
+ $[21] = t9;
87
+ $[22] = t10;
88
+ } else t10 = $[22];
90
89
  return t10;
91
90
  };
92
91
  var ds_button_legacy_default = DsButton;
@@ -8,7 +8,7 @@ import { jsx } from "react/jsx-runtime";
8
8
  * Design system Button component
9
9
  */
10
10
  const DsButton = (t0) => {
11
- const $ = c(24);
11
+ const $ = c(23);
12
12
  let children;
13
13
  let className;
14
14
  let contentClassName;
@@ -45,33 +45,32 @@ const DsButton = (t0) => {
45
45
  const t5 = ds_button_legacy_module_default[`${schema}-${variant}`];
46
46
  const t6 = ds_button_legacy_module_default[size];
47
47
  let t7;
48
- if ($[9] !== className || $[10] !== disabled || $[11] !== t5 || $[12] !== t6) {
49
- t7 = classNames(ds_button_legacy_module_default.button, t5, t6, { [ds_button_legacy_module_default.disabled]: disabled }, className);
48
+ if ($[9] !== className || $[10] !== t5 || $[11] !== t6) {
49
+ t7 = classNames(ds_button_legacy_module_default.button, t5, t6, className);
50
50
  $[9] = className;
51
- $[10] = disabled;
52
- $[11] = t5;
53
- $[12] = t6;
54
- $[13] = t7;
55
- } else t7 = $[13];
51
+ $[10] = t5;
52
+ $[11] = t6;
53
+ $[12] = t7;
54
+ } else t7 = $[12];
56
55
  const buttonClass = t7;
57
56
  let t8;
58
- if ($[14] !== contentClassName) {
57
+ if ($[13] !== contentClassName) {
59
58
  t8 = classNames(ds_button_legacy_module_default.content, contentClassName);
60
- $[14] = contentClassName;
61
- $[15] = t8;
62
- } else t8 = $[15];
59
+ $[13] = contentClassName;
60
+ $[14] = t8;
61
+ } else t8 = $[14];
63
62
  let t9;
64
- if ($[16] !== children || $[17] !== t8) {
63
+ if ($[15] !== children || $[16] !== t8) {
65
64
  t9 = /* @__PURE__ */ jsx("span", {
66
65
  className: t8,
67
66
  children
68
67
  });
69
- $[16] = children;
70
- $[17] = t8;
71
- $[18] = t9;
72
- } else t9 = $[18];
68
+ $[15] = children;
69
+ $[16] = t8;
70
+ $[17] = t9;
71
+ } else t9 = $[17];
73
72
  let t10;
74
- if ($[19] !== buttonClass || $[20] !== disabled || $[21] !== props || $[22] !== t9) {
73
+ if ($[18] !== buttonClass || $[19] !== disabled || $[20] !== props || $[21] !== t9) {
75
74
  t10 = /* @__PURE__ */ jsx("button", {
76
75
  type: "button",
77
76
  className: buttonClass,
@@ -79,12 +78,12 @@ const DsButton = (t0) => {
79
78
  ...props,
80
79
  children: t9
81
80
  });
82
- $[19] = buttonClass;
83
- $[20] = disabled;
84
- $[21] = props;
85
- $[22] = t9;
86
- $[23] = t10;
87
- } else t10 = $[23];
81
+ $[18] = buttonClass;
82
+ $[19] = disabled;
83
+ $[20] = props;
84
+ $[21] = t9;
85
+ $[22] = t10;
86
+ } else t10 = $[22];
88
87
  return t10;
89
88
  };
90
89
  var ds_button_legacy_default = DsButton;
@@ -1 +1 @@
1
- {"version":3,"file":"ds-button-legacy.js","names":["classNames","React","styles","DsButtonProps","DsButton","FC","t0","$","_c","children","className","contentClassName","props","t1","t2","t3","t4","schema","variant","size","disabled","undefined","t5","t6","t7","button","buttonClass","t8","content","t9","t10"],"sources":["../../../../../src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport type React from 'react';\nimport styles from './ds-button-legacy.module.scss';\nimport type { DsButtonProps } from './ds-button-legacy.types';\n\n/**\n * Design system Button component\n */\nconst DsButton: React.FC<DsButtonProps> = ({\n\tschema = 'primary',\n\tvariant = 'filled',\n\tsize = 'medium',\n\tdisabled = false,\n\tclassName,\n\tcontentClassName,\n\tchildren,\n\t...props\n}) => {\n\tconst buttonClass = classNames(\n\t\tstyles.button,\n\t\tstyles[`${schema}-${variant}`],\n\t\tstyles[size],\n\t\t{ [styles.disabled]: disabled },\n\t\tclassName,\n\t);\n\n\treturn (\n\t\t<button type=\"button\" className={buttonClass} disabled={disabled} {...props}>\n\t\t\t<span className={classNames(styles.content, contentClassName)}>{children}</span>\n\t\t</button>\n\t);\n};\n\nexport default DsButton;\n"],"mappings":";;;;;;;;;AAQA,MAAMI,YAAoCE,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;AAAA,KAAAT,EAAA,OAAAD,IAAA;AAAC,GAAA,CAAAW,QAAAJ,IAAAK,SAAAJ,IAAAK,MAAAJ,IAAAK,UAAAJ,IAAAN,WAAAC,kBAAAF,aAAAG,SAAAN;AAS1CC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;AAAAF,IAAA,KAAAG;AAAAH,IAAA,KAAAI;AAAAJ,IAAA,KAAAK;AAAAL,IAAA,KAAAM;AAAAN,IAAA,KAAAO;AAAAP,IAAA,KAAAQ;AAAAR,IAAA,KAAAS;QAAA;AAAAP,aAAAF,EAAA;AAAAG,cAAAH,EAAA;AAAAI,qBAAAJ,EAAA;AAAAK,UAAAL,EAAA;AAAAM,OAAAN,EAAA;AAAAO,OAAAP,EAAA;AAAAQ,OAAAR,EAAA;AAAAS,OAAAT,EAAA;;CARA,MAAAU,SAAAJ,OAAAQ,SAAA,YAAAR;CACA,MAAAK,UAAAJ,OAAAO,SAAA,WAAAP;CACA,MAAAK,OAAAJ,OAAAM,SAAA,WAAAN;CACA,MAAAK,WAAAJ,OAAAK,SAAA,QAAAL;CAQC,MAAAM,KAAApB,gCAAO,GAAGe,OAAM,GAAIC;CACpB,MAAAK,KAAArB,gCAAOiB;CAAK,IAAAK;AAAA,KAAAjB,EAAA,OAAAG,aAAAH,EAAA,QAAAa,YAAAb,EAAA,QAAAe,MAAAf,EAAA,QAAAgB,IAAA;AAHOC,OAAAxB,WACnBE,gCAAMuB,QACNH,IACAC,IACA,GAAGrB,gCAAMkB,WAAYA,UAAU,EAC/BV,UACA;AAAAH,IAAA,KAAAG;AAAAH,IAAA,MAAAa;AAAAb,IAAA,MAAAe;AAAAf,IAAA,MAAAgB;AAAAhB,IAAA,MAAAiB;OAAAA,MAAAjB,EAAA;CAND,MAAAmB,cAAoBF;CAMlB,IAAAG;AAAA,KAAApB,EAAA,QAAAI,kBAAA;AAIiBgB,OAAA3B,WAAWE,gCAAM0B,SAAUjB,iBAAiB;AAAAJ,IAAA,MAAAI;AAAAJ,IAAA,MAAAoB;OAAAA,MAAApB,EAAA;CAAA,IAAAsB;AAAA,KAAAtB,EAAA,QAAAE,YAAAF,EAAA,QAAAoB,IAAA;AAA7DE,OAAA,oBAAA;GAAiB,WAAAF;GAA+ClB;IAAgB;AAAAF,IAAA,MAAAE;AAAAF,IAAA,MAAAoB;AAAApB,IAAA,MAAAsB;OAAAA,MAAAtB,EAAA;CAAA,IAAAuB;AAAA,KAAAvB,EAAA,QAAAmB,eAAAnB,EAAA,QAAAa,YAAAb,EAAA,QAAAK,SAAAL,EAAA,QAAAsB,IAAA;AADjFC,QAAA,oBAAA;GAAa,MAAA;GAAoBJ,WAAAA;GAAuBN;GAAQ,GAAMR;aACrEiB;IACQ;AAAAtB,IAAA,MAAAmB;AAAAnB,IAAA,MAAAa;AAAAb,IAAA,MAAAK;AAAAL,IAAA,MAAAsB;AAAAtB,IAAA,MAAAuB;OAAAA,OAAAvB,EAAA;AAAA,QAFTuB;;AAMF,+BAAe1B"}
1
+ {"version":3,"file":"ds-button-legacy.js","names":["classNames","React","styles","DsButtonProps","DsButton","FC","t0","$","_c","children","className","contentClassName","props","t1","t2","t3","t4","schema","variant","size","disabled","undefined","t5","t6","t7","button","buttonClass","t8","content","t9","t10"],"sources":["../../../../../src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport type React from 'react';\nimport styles from './ds-button-legacy.module.scss';\nimport type { DsButtonProps } from './ds-button-legacy.types';\n\n/**\n * Design system Button component\n */\nconst DsButton: React.FC<DsButtonProps> = ({\n\tschema = 'primary',\n\tvariant = 'filled',\n\tsize = 'medium',\n\tdisabled = false,\n\tclassName,\n\tcontentClassName,\n\tchildren,\n\t...props\n}) => {\n\tconst buttonClass = classNames(styles.button, styles[`${schema}-${variant}`], styles[size], className);\n\n\treturn (\n\t\t<button type=\"button\" className={buttonClass} disabled={disabled} {...props}>\n\t\t\t<span className={classNames(styles.content, contentClassName)}>{children}</span>\n\t\t</button>\n\t);\n};\n\nexport default DsButton;\n"],"mappings":";;;;;;;;;AAQA,MAAMI,YAAoCE,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;AAAA,KAAAT,EAAA,OAAAD,IAAA;AAAC,GAAA,CAAAW,QAAAJ,IAAAK,SAAAJ,IAAAK,MAAAJ,IAAAK,UAAAJ,IAAAN,WAAAC,kBAAAF,aAAAG,SAAAN;AAS1CC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;AAAAF,IAAA,KAAAG;AAAAH,IAAA,KAAAI;AAAAJ,IAAA,KAAAK;AAAAL,IAAA,KAAAM;AAAAN,IAAA,KAAAO;AAAAP,IAAA,KAAAQ;AAAAR,IAAA,KAAAS;QAAA;AAAAP,aAAAF,EAAA;AAAAG,cAAAH,EAAA;AAAAI,qBAAAJ,EAAA;AAAAK,UAAAL,EAAA;AAAAM,OAAAN,EAAA;AAAAO,OAAAP,EAAA;AAAAQ,OAAAR,EAAA;AAAAS,OAAAT,EAAA;;CARA,MAAAU,SAAAJ,OAAAQ,SAAA,YAAAR;CACA,MAAAK,UAAAJ,OAAAO,SAAA,WAAAP;CACA,MAAAK,OAAAJ,OAAAM,SAAA,WAAAN;CACA,MAAAK,WAAAJ,OAAAK,SAAA,QAAAL;CAM8C,MAAAM,KAAApB,gCAAO,GAAGe,OAAM,GAAIC;CAAY,MAAAK,KAAArB,gCAAOiB;CAAK,IAAAK;AAAA,KAAAjB,EAAA,OAAAG,aAAAH,EAAA,QAAAe,MAAAf,EAAA,QAAAgB,IAAA;AAAtEC,OAAAxB,WAAWE,gCAAMuB,QAASH,IAAgCC,IAAcb,UAAU;AAAAH,IAAA,KAAAG;AAAAH,IAAA,MAAAe;AAAAf,IAAA,MAAAgB;AAAAhB,IAAA,MAAAiB;OAAAA,MAAAjB,EAAA;CAAtG,MAAAmB,cAAoBF;CAAmF,IAAAG;AAAA,KAAApB,EAAA,QAAAI,kBAAA;AAIpFgB,OAAA3B,WAAWE,gCAAM0B,SAAUjB,iBAAiB;AAAAJ,IAAA,MAAAI;AAAAJ,IAAA,MAAAoB;OAAAA,MAAApB,EAAA;CAAA,IAAAsB;AAAA,KAAAtB,EAAA,QAAAE,YAAAF,EAAA,QAAAoB,IAAA;AAA7DE,OAAA,oBAAA;GAAiB,WAAAF;GAA+ClB;IAAgB;AAAAF,IAAA,MAAAE;AAAAF,IAAA,MAAAoB;AAAApB,IAAA,MAAAsB;OAAAA,MAAAtB,EAAA;CAAA,IAAAuB;AAAA,KAAAvB,EAAA,QAAAmB,eAAAnB,EAAA,QAAAa,YAAAb,EAAA,QAAAK,SAAAL,EAAA,QAAAsB,IAAA;AADjFC,QAAA,oBAAA;GAAa,MAAA;GAAoBJ,WAAAA;GAAuBN;GAAQ,GAAMR;aACrEiB;IACQ;AAAAtB,IAAA,MAAAmB;AAAAnB,IAAA,MAAAa;AAAAb,IAAA,MAAAK;AAAAL,IAAA,MAAAsB;AAAAtB,IAAA,MAAAuB;OAAAA,OAAAvB,EAAA;AAAA,QAFTuB;;AAMF,+BAAe1B"}
@@ -17,7 +17,7 @@ const isIconOnly = (children) => {
17
17
  * Design system Button component
18
18
  */
19
19
  const DsButton = (t0) => {
20
- const $ = (0, react_compiler_runtime.c)(26);
20
+ const $ = (0, react_compiler_runtime.c)(25);
21
21
  let buttonType;
22
22
  let children;
23
23
  let className;
@@ -52,35 +52,34 @@ const DsButton = (t0) => {
52
52
  const disabled = t3 === void 0 ? false : t3;
53
53
  const type = buttonType ?? (variant === "ghost" ? "secondary" : "primary");
54
54
  let t4;
55
- if ($[9] !== children || $[10] !== className || $[11] !== disabled || $[12] !== size || $[13] !== type || $[14] !== variant) {
56
- t4 = (0, classnames.default)(require_ds_button_new_module.default.button, { [require_ds_button_new_module.default.iconButton]: isIconOnly(children) }, require_ds_button_new_module.default[`${type}-${variant}`], require_ds_button_new_module.default[size], { [require_ds_button_new_module.default.disabled]: disabled }, className);
55
+ if ($[9] !== children || $[10] !== className || $[11] !== size || $[12] !== type || $[13] !== variant) {
56
+ t4 = (0, classnames.default)(require_ds_button_new_module.default.button, { [require_ds_button_new_module.default.iconButton]: isIconOnly(children) }, require_ds_button_new_module.default[size], className, require_ds_button_new_module.default[`${type}-${variant}`]);
57
57
  $[9] = children;
58
58
  $[10] = className;
59
- $[11] = disabled;
60
- $[12] = size;
61
- $[13] = type;
62
- $[14] = variant;
63
- $[15] = t4;
64
- } else t4 = $[15];
59
+ $[11] = size;
60
+ $[12] = type;
61
+ $[13] = variant;
62
+ $[14] = t4;
63
+ } else t4 = $[14];
65
64
  const buttonClass = t4;
66
65
  let t5;
67
- if ($[16] !== contentClassName) {
66
+ if ($[15] !== contentClassName) {
68
67
  t5 = (0, classnames.default)(require_ds_button_new_module.default.content, contentClassName);
69
- $[16] = contentClassName;
70
- $[17] = t5;
71
- } else t5 = $[17];
68
+ $[15] = contentClassName;
69
+ $[16] = t5;
70
+ } else t5 = $[16];
72
71
  let t6;
73
- if ($[18] !== children || $[19] !== t5) {
72
+ if ($[17] !== children || $[18] !== t5) {
74
73
  t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
75
74
  className: t5,
76
75
  children
77
76
  });
78
- $[18] = children;
79
- $[19] = t5;
80
- $[20] = t6;
81
- } else t6 = $[20];
77
+ $[17] = children;
78
+ $[18] = t5;
79
+ $[19] = t6;
80
+ } else t6 = $[19];
82
81
  let t7;
83
- if ($[21] !== buttonClass || $[22] !== disabled || $[23] !== props || $[24] !== t6) {
82
+ if ($[20] !== buttonClass || $[21] !== disabled || $[22] !== props || $[23] !== t6) {
84
83
  t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
85
84
  type: "button",
86
85
  className: buttonClass,
@@ -88,12 +87,12 @@ const DsButton = (t0) => {
88
87
  ...props,
89
88
  children: t6
90
89
  });
91
- $[21] = buttonClass;
92
- $[22] = disabled;
93
- $[23] = props;
94
- $[24] = t6;
95
- $[25] = t7;
96
- } else t7 = $[25];
90
+ $[20] = buttonClass;
91
+ $[21] = disabled;
92
+ $[22] = props;
93
+ $[23] = t6;
94
+ $[24] = t7;
95
+ } else t7 = $[24];
97
96
  return t7;
98
97
  };
99
98
  var ds_button_new_default = DsButton;
@@ -15,7 +15,7 @@ const isIconOnly = (children) => {
15
15
  * Design system Button component
16
16
  */
17
17
  const DsButton = (t0) => {
18
- const $ = c(26);
18
+ const $ = c(25);
19
19
  let buttonType;
20
20
  let children;
21
21
  let className;
@@ -50,35 +50,34 @@ const DsButton = (t0) => {
50
50
  const disabled = t3 === void 0 ? false : t3;
51
51
  const type = buttonType ?? (variant === "ghost" ? "secondary" : "primary");
52
52
  let t4;
53
- if ($[9] !== children || $[10] !== className || $[11] !== disabled || $[12] !== size || $[13] !== type || $[14] !== variant) {
54
- t4 = classNames(ds_button_new_module_default.button, { [ds_button_new_module_default.iconButton]: isIconOnly(children) }, ds_button_new_module_default[`${type}-${variant}`], ds_button_new_module_default[size], { [ds_button_new_module_default.disabled]: disabled }, className);
53
+ if ($[9] !== children || $[10] !== className || $[11] !== size || $[12] !== type || $[13] !== variant) {
54
+ t4 = classNames(ds_button_new_module_default.button, { [ds_button_new_module_default.iconButton]: isIconOnly(children) }, ds_button_new_module_default[size], className, ds_button_new_module_default[`${type}-${variant}`]);
55
55
  $[9] = children;
56
56
  $[10] = className;
57
- $[11] = disabled;
58
- $[12] = size;
59
- $[13] = type;
60
- $[14] = variant;
61
- $[15] = t4;
62
- } else t4 = $[15];
57
+ $[11] = size;
58
+ $[12] = type;
59
+ $[13] = variant;
60
+ $[14] = t4;
61
+ } else t4 = $[14];
63
62
  const buttonClass = t4;
64
63
  let t5;
65
- if ($[16] !== contentClassName) {
64
+ if ($[15] !== contentClassName) {
66
65
  t5 = classNames(ds_button_new_module_default.content, contentClassName);
67
- $[16] = contentClassName;
68
- $[17] = t5;
69
- } else t5 = $[17];
66
+ $[15] = contentClassName;
67
+ $[16] = t5;
68
+ } else t5 = $[16];
70
69
  let t6;
71
- if ($[18] !== children || $[19] !== t5) {
70
+ if ($[17] !== children || $[18] !== t5) {
72
71
  t6 = /* @__PURE__ */ jsx("span", {
73
72
  className: t5,
74
73
  children
75
74
  });
76
- $[18] = children;
77
- $[19] = t5;
78
- $[20] = t6;
79
- } else t6 = $[20];
75
+ $[17] = children;
76
+ $[18] = t5;
77
+ $[19] = t6;
78
+ } else t6 = $[19];
80
79
  let t7;
81
- if ($[21] !== buttonClass || $[22] !== disabled || $[23] !== props || $[24] !== t6) {
80
+ if ($[20] !== buttonClass || $[21] !== disabled || $[22] !== props || $[23] !== t6) {
82
81
  t7 = /* @__PURE__ */ jsx("button", {
83
82
  type: "button",
84
83
  className: buttonClass,
@@ -86,12 +85,12 @@ const DsButton = (t0) => {
86
85
  ...props,
87
86
  children: t6
88
87
  });
89
- $[21] = buttonClass;
90
- $[22] = disabled;
91
- $[23] = props;
92
- $[24] = t6;
93
- $[25] = t7;
94
- } else t7 = $[25];
88
+ $[20] = buttonClass;
89
+ $[21] = disabled;
90
+ $[22] = props;
91
+ $[23] = t6;
92
+ $[24] = t7;
93
+ } else t7 = $[24];
95
94
  return t7;
96
95
  };
97
96
  var ds_button_new_default = DsButton;
@@ -1 +1 @@
1
- {"version":3,"file":"ds-button-new.js","names":["classNames","React","Children","isValidElement","styles","DsButtonProps","DsIcon","isIconOnly","children","ReactNode","count","childArray","toArray","onlyChild","type","DsButton","FC","t0","$","_c","buttonType","className","contentClassName","props","t1","t2","t3","variant","size","disabled","undefined","t4","button","iconButton","buttonClass","t5","content","t6","t7"],"sources":["../../../../../src/components/ds-button/versions/ds-button-new/ds-button-new.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport type React from 'react';\nimport { Children, isValidElement } from 'react';\nimport styles from './ds-button-new.module.scss';\nimport type { DsButtonProps } from './ds-button-new.types';\nimport DsIcon from '../../../ds-icon/ds-icon';\n\nconst isIconOnly = (children: React.ReactNode) => {\n\tif (Children.count(children) !== 1) {\n\t\treturn false;\n\t}\n\n\tconst childArray = Children.toArray(children);\n\tconst onlyChild = childArray[0];\n\n\treturn isValidElement(onlyChild) && onlyChild.type === DsIcon;\n};\n\n/**\n * Design system Button component\n */\nconst DsButton: React.FC<DsButtonProps> = ({\n\tbuttonType,\n\tvariant = 'filled',\n\tsize = 'medium',\n\tdisabled = false,\n\tclassName,\n\tcontentClassName,\n\tchildren,\n\t...props\n}) => {\n\tconst type = buttonType ?? (variant === 'ghost' ? 'secondary' : 'primary');\n\tconst buttonClass = classNames(\n\t\tstyles.button,\n\t\t{ [styles.iconButton]: isIconOnly(children) },\n\t\tstyles[`${type}-${variant}`],\n\t\tstyles[size],\n\t\t{ [styles.disabled]: disabled },\n\t\tclassName,\n\t);\n\n\treturn (\n\t\t<button type=\"button\" className={buttonClass} disabled={disabled} {...props}>\n\t\t\t<span className={classNames(styles.content, contentClassName)}>{children}</span>\n\t\t</button>\n\t);\n};\n\nexport default DsButton;\n"],"mappings":";;;;;;;;AAOA,MAAMO,cAAcC,aAA8B;AACjD,KAAIN,SAASQ,MAAMF,SAAS,KAAK,EAChC,QAAO;CAIR,MAAMK,YADaX,SAASU,QAAQJ,SAAS,CAChB;AAE7B,QAAOL,eAAeU,UAAU,IAAIA,UAAUC,SAASR;;;;;AAMxD,MAAMS,YAAoCE,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAA,IAAAC;CAAA,IAAAZ;CAAA,IAAAa;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;AAAA,KAAAR,EAAA,OAAAD,IAAA;AAAC,GAAA,CAAAG,YAAAO,SAAAH,IAAAI,MAAAH,IAAAI,UAAAH,IAAAL,WAAAC,kBAAAd,aAAAe,SAAAN;AAS1CC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;AAAAF,IAAA,KAAAV;AAAAU,IAAA,KAAAG;AAAAH,IAAA,KAAAI;AAAAJ,IAAA,KAAAK;AAAAL,IAAA,KAAAM;AAAAN,IAAA,KAAAO;AAAAP,IAAA,KAAAQ;QAAA;AAAAN,eAAAF,EAAA;AAAAV,aAAAU,EAAA;AAAAG,cAAAH,EAAA;AAAAI,qBAAAJ,EAAA;AAAAK,UAAAL,EAAA;AAAAM,OAAAN,EAAA;AAAAO,OAAAP,EAAA;AAAAQ,OAAAR,EAAA;;CAPA,MAAAS,UAAAH,OAAAM,SAAA,WAAAN;CACA,MAAAI,OAAAH,OAAAK,SAAA,WAAAL;CACA,MAAAI,WAAAH,OAAAI,SAAA,QAAAJ;CAMA,MAAAZ,OAAaM,eAAeO,YAAY,UAAZ,cAAA;CAA+C,IAAAI;AAAA,KAAAb,EAAA,OAAAV,YAAAU,EAAA,QAAAG,aAAAH,EAAA,QAAAW,YAAAX,EAAA,QAAAU,QAAAV,EAAA,QAAAJ,QAAAI,EAAA,QAAAS,SAAA;AACvDI,OAAA/B,WACnBI,6BAAM4B,QACN,GAAG5B,6BAAM6B,aAAc1B,WAAWC,SAAQ,EAAG,EAC7CJ,6BAAO,GAAGU,KAAI,GAAIa,YAClBvB,6BAAOwB,OACP,GAAGxB,6BAAMyB,WAAYA,UAAU,EAC/BR,UACA;AAAAH,IAAA,KAAAV;AAAAU,IAAA,MAAAG;AAAAH,IAAA,MAAAW;AAAAX,IAAA,MAAAU;AAAAV,IAAA,MAAAJ;AAAAI,IAAA,MAAAS;AAAAT,IAAA,MAAAa;OAAAA,MAAAb,EAAA;CAPD,MAAAgB,cAAoBH;CAOlB,IAAAI;AAAA,KAAAjB,EAAA,QAAAI,kBAAA;AAIiBa,OAAAnC,WAAWI,6BAAMgC,SAAUd,iBAAiB;AAAAJ,IAAA,MAAAI;AAAAJ,IAAA,MAAAiB;OAAAA,MAAAjB,EAAA;CAAA,IAAAmB;AAAA,KAAAnB,EAAA,QAAAV,YAAAU,EAAA,QAAAiB,IAAA;AAA7DE,OAAA,oBAAA;GAAiB,WAAAF;GAA+C3B;IAAgB;AAAAU,IAAA,MAAAV;AAAAU,IAAA,MAAAiB;AAAAjB,IAAA,MAAAmB;OAAAA,MAAAnB,EAAA;CAAA,IAAAoB;AAAA,KAAApB,EAAA,QAAAgB,eAAAhB,EAAA,QAAAW,YAAAX,EAAA,QAAAK,SAAAL,EAAA,QAAAmB,IAAA;AADjFC,OAAA,oBAAA;GAAa,MAAA;GAAoBJ,WAAAA;GAAuBL;GAAQ,GAAMN;aACrEc;IACQ;AAAAnB,IAAA,MAAAgB;AAAAhB,IAAA,MAAAW;AAAAX,IAAA,MAAAK;AAAAL,IAAA,MAAAmB;AAAAnB,IAAA,MAAAoB;OAAAA,MAAApB,EAAA;AAAA,QAFToB;;AAMF,4BAAevB"}
1
+ {"version":3,"file":"ds-button-new.js","names":["classNames","React","Children","isValidElement","styles","DsButtonProps","DsIcon","isIconOnly","children","ReactNode","count","childArray","toArray","onlyChild","type","DsButton","FC","t0","$","_c","buttonType","className","contentClassName","props","t1","t2","t3","variant","size","disabled","undefined","t4","button","iconButton","buttonClass","t5","content","t6","t7"],"sources":["../../../../../src/components/ds-button/versions/ds-button-new/ds-button-new.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport type React from 'react';\nimport { Children, isValidElement } from 'react';\nimport styles from './ds-button-new.module.scss';\nimport type { DsButtonProps } from './ds-button-new.types';\nimport DsIcon from '../../../ds-icon/ds-icon';\n\nconst isIconOnly = (children: React.ReactNode) => {\n\tif (Children.count(children) !== 1) {\n\t\treturn false;\n\t}\n\n\tconst childArray = Children.toArray(children);\n\tconst onlyChild = childArray[0];\n\n\treturn isValidElement(onlyChild) && onlyChild.type === DsIcon;\n};\n\n/**\n * Design system Button component\n */\nconst DsButton: React.FC<DsButtonProps> = ({\n\tbuttonType,\n\tvariant = 'filled',\n\tsize = 'medium',\n\tdisabled = false,\n\tclassName,\n\tcontentClassName,\n\tchildren,\n\t...props\n}) => {\n\tconst type = buttonType ?? (variant === 'ghost' ? 'secondary' : 'primary');\n\tconst buttonClass = classNames(\n\t\tstyles.button,\n\t\t{ [styles.iconButton]: isIconOnly(children) },\n\t\tstyles[size],\n\t\tclassName,\n\n\t\t// @ts-expect-error: we don't have all variations of classnames defined\n\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n\t\tstyles[`${type}-${variant}`],\n\t);\n\n\treturn (\n\t\t<button type=\"button\" className={buttonClass} disabled={disabled} {...props}>\n\t\t\t<span className={classNames(styles.content, contentClassName)}>{children}</span>\n\t\t</button>\n\t);\n};\n\nexport default DsButton;\n"],"mappings":";;;;;;;;AAOA,MAAMO,cAAcC,aAA8B;AACjD,KAAIN,SAASQ,MAAMF,SAAS,KAAK,EAChC,QAAO;CAIR,MAAMK,YADaX,SAASU,QAAQJ,SAAS,CAChB;AAE7B,QAAOL,eAAeU,UAAU,IAAIA,UAAUC,SAASR;;;;;AAMxD,MAAMS,YAAoCE,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAA,IAAAC;CAAA,IAAAZ;CAAA,IAAAa;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;AAAA,KAAAR,EAAA,OAAAD,IAAA;AAAC,GAAA,CAAAG,YAAAO,SAAAH,IAAAI,MAAAH,IAAAI,UAAAH,IAAAL,WAAAC,kBAAAd,aAAAe,SAAAN;AAS1CC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;AAAAF,IAAA,KAAAV;AAAAU,IAAA,KAAAG;AAAAH,IAAA,KAAAI;AAAAJ,IAAA,KAAAK;AAAAL,IAAA,KAAAM;AAAAN,IAAA,KAAAO;AAAAP,IAAA,KAAAQ;QAAA;AAAAN,eAAAF,EAAA;AAAAV,aAAAU,EAAA;AAAAG,cAAAH,EAAA;AAAAI,qBAAAJ,EAAA;AAAAK,UAAAL,EAAA;AAAAM,OAAAN,EAAA;AAAAO,OAAAP,EAAA;AAAAQ,OAAAR,EAAA;;CAPA,MAAAS,UAAAH,OAAAM,SAAA,WAAAN;CACA,MAAAI,OAAAH,OAAAK,SAAA,WAAAL;CACA,MAAAI,WAAAH,OAAAI,SAAA,QAAAJ;CAMA,MAAAZ,OAAaM,eAAeO,YAAY,UAAZ,cAAA;CAA+C,IAAAI;AAAA,KAAAb,EAAA,OAAAV,YAAAU,EAAA,QAAAG,aAAAH,EAAA,QAAAU,QAAAV,EAAA,QAAAJ,QAAAI,EAAA,QAAAS,SAAA;AACvDI,OAAA/B,WACnBI,6BAAM4B,QACN,GAAG5B,6BAAM6B,aAAc1B,WAAWC,SAAQ,EAAG,EAC7CJ,6BAAOwB,OACPP,WAIAjB,6BAAO,GAAGU,KAAI,GAAIa,WAClB;AAAAT,IAAA,KAAAV;AAAAU,IAAA,MAAAG;AAAAH,IAAA,MAAAU;AAAAV,IAAA,MAAAJ;AAAAI,IAAA,MAAAS;AAAAT,IAAA,MAAAa;OAAAA,MAAAb,EAAA;CATD,MAAAgB,cAAoBH;CASlB,IAAAI;AAAA,KAAAjB,EAAA,QAAAI,kBAAA;AAIiBa,OAAAnC,WAAWI,6BAAMgC,SAAUd,iBAAiB;AAAAJ,IAAA,MAAAI;AAAAJ,IAAA,MAAAiB;OAAAA,MAAAjB,EAAA;CAAA,IAAAmB;AAAA,KAAAnB,EAAA,QAAAV,YAAAU,EAAA,QAAAiB,IAAA;AAA7DE,OAAA,oBAAA;GAAiB,WAAAF;GAA+C3B;IAAgB;AAAAU,IAAA,MAAAV;AAAAU,IAAA,MAAAiB;AAAAjB,IAAA,MAAAmB;OAAAA,MAAAnB,EAAA;CAAA,IAAAoB;AAAA,KAAApB,EAAA,QAAAgB,eAAAhB,EAAA,QAAAW,YAAAX,EAAA,QAAAK,SAAAL,EAAA,QAAAmB,IAAA;AADjFC,OAAA,oBAAA;GAAa,MAAA;GAAoBJ,WAAAA;GAAuBL;GAAQ,GAAMN;aACrEc;IACQ;AAAAnB,IAAA,MAAAgB;AAAAhB,IAAA,MAAAW;AAAAX,IAAA,MAAAK;AAAAL,IAAA,MAAAmB;AAAAnB,IAAA,MAAAoB;OAAAA,MAAApB,EAAA;AAAA,QAFToB;;AAMF,4BAAevB"}
@@ -21,6 +21,7 @@ const useChipRowCalculation = ({ chipsWrapperRef, totalFilters }) => {
21
21
  let total = 0;
22
22
  for (index = 0; index < children.length; index++) {
23
23
  const current = children[index];
24
+ if (!current) continue;
24
25
  const next = (current.offsetWidth === wrapper.clientWidth ? 0 : gap) + current.offsetWidth;
25
26
  if (total + next >= wrapper.clientWidth) {
26
27
  line++;
@@ -20,6 +20,7 @@ const useChipRowCalculation = ({ chipsWrapperRef, totalFilters }) => {
20
20
  let total = 0;
21
21
  for (index = 0; index < children.length; index++) {
22
22
  const current = children[index];
23
+ if (!current) continue;
23
24
  const next = (current.offsetWidth === wrapper.clientWidth ? 0 : gap) + current.offsetWidth;
24
25
  if (total + next >= wrapper.clientWidth) {
25
26
  line++;
@@ -1 +1 @@
1
- {"version":3,"file":"use-chip-row-calculation.js","names":["RefObject","useLayoutEffect","useState","UseChipRowCalculationProps","chipsWrapperRef","HTMLDivElement","totalFilters","useChipRowCalculation","visibleCount","setVisibleCount","calculateVisibleChips","current","wrapper","children","Array","from","HTMLElement","length","cs","getComputedStyle","gap","parseFloat","columnGap","index","line","total","offset","offsetWidth","clientWidth","next","result","Math","max","rafId","requestAnimationFrame","resizeObserver","ResizeObserver","observe","cancelAnimationFrame","disconnect"],"sources":["../../../../src/components/ds-chip-group/hooks/use-chip-row-calculation.ts"],"sourcesContent":["import { type RefObject, useLayoutEffect, useState } from 'react';\n\ninterface UseChipRowCalculationProps {\n\tchipsWrapperRef: RefObject<HTMLDivElement | null>;\n\ttotalFilters: number;\n}\n\n/**\n * Custom hook to calculate how many chips can fit in 2 rows\n * Uses a simple approach: render all, measure positions, hide overflow\n */\nexport const useChipRowCalculation = ({ chipsWrapperRef, totalFilters }: UseChipRowCalculationProps) => {\n\tconst [visibleCount, setVisibleCount] = useState(totalFilters);\n\n\tuseLayoutEffect(() => {\n\t\tconst calculateVisibleChips = () => {\n\t\t\tif (!chipsWrapperRef.current) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst wrapper = chipsWrapperRef.current;\n\t\t\tconst children = Array.from(wrapper.children) as HTMLElement[];\n\n\t\t\tif (children.length === 0) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst cs = getComputedStyle(wrapper);\n\t\t\tconst gap = parseFloat(cs.columnGap || cs.gap || '0') || 8;\n\t\t\tlet index;\n\t\t\tlet line = 0;\n\t\t\tlet total = 0;\n\n\t\t\tfor (index = 0; index < children.length; index++) {\n\t\t\t\tconst current = children[index];\n\t\t\t\tconst offset = current.offsetWidth === wrapper.clientWidth ? 0 : gap;\n\t\t\t\tconst next = offset + current.offsetWidth;\n\n\t\t\t\tif (total + next >= wrapper.clientWidth) {\n\t\t\t\t\tline++;\n\t\t\t\t\tif (line >= 2) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttotal = next;\n\t\t\t\t} else {\n\t\t\t\t\ttotal += next;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst result = Math.max(1, line < 2 ? index : index - 1);\n\t\t\tsetVisibleCount(result);\n\t\t};\n\n\t\t// Use requestAnimationFrame to ensure DOM is fully laid out\n\t\tconst rafId = requestAnimationFrame(() => {\n\t\t\tcalculateVisibleChips();\n\t\t});\n\n\t\tconst resizeObserver = new ResizeObserver(() => {\n\t\t\trequestAnimationFrame(() => {\n\t\t\t\tcalculateVisibleChips();\n\t\t\t});\n\t\t});\n\n\t\tif (chipsWrapperRef.current) {\n\t\t\tresizeObserver.observe(chipsWrapperRef.current);\n\t\t}\n\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(rafId);\n\t\t\tresizeObserver.disconnect();\n\t\t};\n\t}, [chipsWrapperRef, totalFilters]);\n\n\treturn visibleCount;\n};\n"],"mappings":";;;;;;;AAWA,MAAaO,yBAAyB,EAAEH,iBAAiBE,mBAA+C;CACvG,MAAM,CAACE,cAAcC,mBAAmBP,SAASI,aAAa;AAE9DL,uBAAsB;EACrB,MAAMS,8BAA8B;AACnC,OAAI,CAACN,gBAAgBO,QACpB;GAGD,MAAMC,UAAUR,gBAAgBO;GAChC,MAAME,WAAWC,MAAMC,KAAKH,QAAQC,SAAS;AAE7C,OAAIA,SAASI,WAAW,EACvB;GAGD,MAAMC,KAAKC,iBAAiBP,QAAQ;GACpC,MAAMQ,MAAMC,WAAWH,GAAGI,aAAaJ,GAAGE,OAAO,IAAI,IAAI;GACzD,IAAIG;GACJ,IAAIC,OAAO;GACX,IAAIC,QAAQ;AAEZ,QAAKF,QAAQ,GAAGA,QAAQV,SAASI,QAAQM,SAAS;IACjD,MAAMZ,UAAUE,SAASU;IAEzB,MAAMM,QADSlB,QAAQgB,gBAAgBf,QAAQgB,cAAc,IAAIR,OAC3CT,QAAQgB;AAE9B,QAAIF,QAAQI,QAAQjB,QAAQgB,aAAa;AACxCJ;AACA,SAAIA,QAAQ,EACX;AAEDC,aAAQI;UAERJ,UAASI;;AAKXpB,mBADesB,KAAKC,IAAI,GAAGR,OAAO,IAAID,QAAQA,QAAQ,EAAE,CACjC;;EAIxB,MAAMU,QAAQC,4BAA4B;AACzCxB,0BAAuB;IACtB;EAEF,MAAMyB,iBAAiB,IAAIC,qBAAqB;AAC/CF,+BAA4B;AAC3BxB,2BAAuB;KACtB;IACD;AAEF,MAAIN,gBAAgBO,QACnBwB,gBAAeE,QAAQjC,gBAAgBO,QAAQ;AAGhD,eAAa;AACZ2B,wBAAqBL,MAAM;AAC3BE,kBAAeI,YAAY;;IAE1B,CAACnC,iBAAiBE,aAAa,CAAC;AAEnC,QAAOE"}
1
+ {"version":3,"file":"use-chip-row-calculation.js","names":["RefObject","useLayoutEffect","useState","UseChipRowCalculationProps","chipsWrapperRef","HTMLDivElement","totalFilters","useChipRowCalculation","visibleCount","setVisibleCount","calculateVisibleChips","current","wrapper","children","Array","from","HTMLElement","length","cs","getComputedStyle","gap","parseFloat","columnGap","index","line","total","offset","offsetWidth","clientWidth","next","result","Math","max","rafId","requestAnimationFrame","resizeObserver","ResizeObserver","observe","cancelAnimationFrame","disconnect"],"sources":["../../../../src/components/ds-chip-group/hooks/use-chip-row-calculation.ts"],"sourcesContent":["import { type RefObject, useLayoutEffect, useState } from 'react';\n\ninterface UseChipRowCalculationProps {\n\tchipsWrapperRef: RefObject<HTMLDivElement | null>;\n\ttotalFilters: number;\n}\n\n/**\n * Custom hook to calculate how many chips can fit in 2 rows\n * Uses a simple approach: render all, measure positions, hide overflow\n */\nexport const useChipRowCalculation = ({ chipsWrapperRef, totalFilters }: UseChipRowCalculationProps) => {\n\tconst [visibleCount, setVisibleCount] = useState(totalFilters);\n\n\tuseLayoutEffect(() => {\n\t\tconst calculateVisibleChips = () => {\n\t\t\tif (!chipsWrapperRef.current) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst wrapper = chipsWrapperRef.current;\n\t\t\tconst children = Array.from(wrapper.children) as HTMLElement[];\n\n\t\t\tif (children.length === 0) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst cs = getComputedStyle(wrapper);\n\t\t\tconst gap = parseFloat(cs.columnGap || cs.gap || '0') || 8;\n\t\t\tlet index;\n\t\t\tlet line = 0;\n\t\t\tlet total = 0;\n\n\t\t\tfor (index = 0; index < children.length; index++) {\n\t\t\t\tconst current = children[index];\n\n\t\t\t\tif (!current) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tconst offset = current.offsetWidth === wrapper.clientWidth ? 0 : gap;\n\t\t\t\tconst next = offset + current.offsetWidth;\n\n\t\t\t\tif (total + next >= wrapper.clientWidth) {\n\t\t\t\t\tline++;\n\t\t\t\t\tif (line >= 2) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttotal = next;\n\t\t\t\t} else {\n\t\t\t\t\ttotal += next;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst result = Math.max(1, line < 2 ? index : index - 1);\n\t\t\tsetVisibleCount(result);\n\t\t};\n\n\t\t// Use requestAnimationFrame to ensure DOM is fully laid out\n\t\tconst rafId = requestAnimationFrame(() => {\n\t\t\tcalculateVisibleChips();\n\t\t});\n\n\t\tconst resizeObserver = new ResizeObserver(() => {\n\t\t\trequestAnimationFrame(() => {\n\t\t\t\tcalculateVisibleChips();\n\t\t\t});\n\t\t});\n\n\t\tif (chipsWrapperRef.current) {\n\t\t\tresizeObserver.observe(chipsWrapperRef.current);\n\t\t}\n\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(rafId);\n\t\t\tresizeObserver.disconnect();\n\t\t};\n\t}, [chipsWrapperRef, totalFilters]);\n\n\treturn visibleCount;\n};\n"],"mappings":";;;;;;;AAWA,MAAaO,yBAAyB,EAAEH,iBAAiBE,mBAA+C;CACvG,MAAM,CAACE,cAAcC,mBAAmBP,SAASI,aAAa;AAE9DL,uBAAsB;EACrB,MAAMS,8BAA8B;AACnC,OAAI,CAACN,gBAAgBO,QACpB;GAGD,MAAMC,UAAUR,gBAAgBO;GAChC,MAAME,WAAWC,MAAMC,KAAKH,QAAQC,SAAS;AAE7C,OAAIA,SAASI,WAAW,EACvB;GAGD,MAAMC,KAAKC,iBAAiBP,QAAQ;GACpC,MAAMQ,MAAMC,WAAWH,GAAGI,aAAaJ,GAAGE,OAAO,IAAI,IAAI;GACzD,IAAIG;GACJ,IAAIC,OAAO;GACX,IAAIC,QAAQ;AAEZ,QAAKF,QAAQ,GAAGA,QAAQV,SAASI,QAAQM,SAAS;IACjD,MAAMZ,UAAUE,SAASU;AAEzB,QAAI,CAACZ,QACJ;IAID,MAAMkB,QADSlB,QAAQgB,gBAAgBf,QAAQgB,cAAc,IAAIR,OAC3CT,QAAQgB;AAE9B,QAAIF,QAAQI,QAAQjB,QAAQgB,aAAa;AACxCJ;AACA,SAAIA,QAAQ,EACX;AAEDC,aAAQI;UAERJ,UAASI;;AAKXpB,mBADesB,KAAKC,IAAI,GAAGR,OAAO,IAAID,QAAQA,QAAQ,EAAE,CACjC;;EAIxB,MAAMU,QAAQC,4BAA4B;AACzCxB,0BAAuB;IACtB;EAEF,MAAMyB,iBAAiB,IAAIC,qBAAqB;AAC/CF,+BAA4B;AAC3BxB,2BAAuB;KACtB;IACD;AAEF,MAAIN,gBAAgBO,QACnBwB,gBAAeE,QAAQjC,gBAAgBO,QAAQ;AAGhD,eAAa;AACZ2B,wBAAqBL,MAAM;AAC3BE,kBAAeI,YAAY;;IAE1B,CAACnC,iBAAiBE,aAAa,CAAC;AAEnC,QAAOE"}
@@ -1,5 +1,5 @@
1
1
  import { DsConfirmationProps } from "./ds-confirmation.types.cjs";
2
- import * as react_jsx_runtime5 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
3
3
  import { CSSProperties, ReactNode } from "react";
4
4
 
5
5
  //#region src/components/ds-confirmation/ds-confirmation.d.ts
@@ -13,7 +13,7 @@ declare const DsConfirmation: {
13
13
  style,
14
14
  className,
15
15
  children
16
- }: DsConfirmationProps): react_jsx_runtime5.JSX.Element;
16
+ }: DsConfirmationProps): react_jsx_runtime8.JSX.Element;
17
17
  Header: ({
18
18
  style,
19
19
  className,
@@ -22,7 +22,7 @@ declare const DsConfirmation: {
22
22
  style?: CSSProperties;
23
23
  className?: string;
24
24
  children: ReactNode;
25
- }) => react_jsx_runtime5.JSX.Element;
25
+ }) => react_jsx_runtime8.JSX.Element;
26
26
  Title: ({
27
27
  style,
28
28
  className,
@@ -31,14 +31,14 @@ declare const DsConfirmation: {
31
31
  style?: CSSProperties;
32
32
  className?: string;
33
33
  children: ReactNode;
34
- }) => react_jsx_runtime5.JSX.Element;
34
+ }) => react_jsx_runtime8.JSX.Element;
35
35
  CloseTrigger: ({
36
36
  style,
37
37
  className
38
38
  }: {
39
39
  style?: CSSProperties;
40
40
  className?: string;
41
- }) => react_jsx_runtime5.JSX.Element;
41
+ }) => react_jsx_runtime8.JSX.Element;
42
42
  Body: ({
43
43
  style,
44
44
  className,
@@ -47,7 +47,7 @@ declare const DsConfirmation: {
47
47
  style?: CSSProperties;
48
48
  className?: string;
49
49
  children: ReactNode;
50
- }) => react_jsx_runtime5.JSX.Element;
50
+ }) => react_jsx_runtime8.JSX.Element;
51
51
  Footer: ({
52
52
  style,
53
53
  className,
@@ -56,7 +56,7 @@ declare const DsConfirmation: {
56
56
  style?: CSSProperties;
57
57
  className?: string;
58
58
  children: ReactNode;
59
- }) => react_jsx_runtime5.JSX.Element;
59
+ }) => react_jsx_runtime8.JSX.Element;
60
60
  Actions: ({
61
61
  style,
62
62
  className,
@@ -65,7 +65,7 @@ declare const DsConfirmation: {
65
65
  style?: CSSProperties;
66
66
  className?: string;
67
67
  children: ReactNode;
68
- }) => react_jsx_runtime5.JSX.Element;
68
+ }) => react_jsx_runtime8.JSX.Element;
69
69
  };
70
70
  //#endregion
71
71
  export { DsConfirmation };