@daikin-oss/design-system-web-components 1.3.2 → 1.4.0-next.1

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 (485) hide show
  1. package/CHANGELOG.md +217 -0
  2. package/dist/cjs/base/dds-element.cjs +82 -1
  3. package/dist/cjs/base/dds-element.d.cts +40 -0
  4. package/dist/cjs/base/dds-form-element.cjs +15 -6
  5. package/dist/cjs/base/dds-form-element.d.cts +2 -2
  6. package/dist/cjs/base/dds-property.cjs +11 -0
  7. package/dist/cjs/base/dds-property.d.cts +92 -0
  8. package/dist/cjs/base/index.cjs +3 -0
  9. package/dist/cjs/base/index.d.cts +1 -0
  10. package/dist/cjs/components/accordion/daikin-accordion.cjs +3 -2
  11. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +6 -7
  12. package/dist/cjs/components/avatar/daikin-avatar.cjs +20 -15
  13. package/dist/cjs/components/avatar/daikin-avatar.d.cts +3 -1
  14. package/dist/cjs/components/badge/daikin-badge.cjs +154 -0
  15. package/dist/cjs/components/badge/daikin-badge.d.cts +91 -0
  16. package/dist/cjs/components/badge/index.cjs +7 -0
  17. package/dist/cjs/components/badge/index.d.cts +1 -0
  18. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +33 -7
  19. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +38 -6
  20. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +52 -19
  21. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +3 -1
  22. package/dist/cjs/components/button/daikin-button.cjs +57 -16
  23. package/dist/cjs/components/button/daikin-button.d.cts +18 -2
  24. package/dist/cjs/components/calendar/daikin-calendar.cjs +36 -15
  25. package/dist/cjs/components/calendar/daikin-calendar.d.cts +14 -3
  26. package/dist/cjs/components/card/daikin-card.cjs +2 -2
  27. package/dist/cjs/components/card-footer/daikin-card-footer.cjs +1 -0
  28. package/dist/cjs/components/card-header/daikin-card-header.cjs +1 -0
  29. package/dist/cjs/components/carousel/daikin-carousel.cjs +2 -1
  30. package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +3 -2
  31. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +24 -10
  32. package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +12 -1
  33. package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +12 -3
  34. package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +2 -0
  35. package/dist/cjs/components/chip/daikin-chip.cjs +2 -1
  36. package/dist/cjs/components/combobox/daikin-combobox.cjs +34 -25
  37. package/dist/cjs/components/combobox/daikin-combobox.d.cts +9 -2
  38. package/dist/cjs/components/date-picker/daikin-date-picker.cjs +64 -26
  39. package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +18 -4
  40. package/dist/cjs/components/dropdown/daikin-dropdown.cjs +17 -19
  41. package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +7 -0
  42. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +5 -4
  43. package/dist/cjs/components/icon/daikin-icon.cjs +24 -11
  44. package/dist/cjs/components/icon/daikin-icon.d.cts +96 -39
  45. package/dist/cjs/components/icon/icons.json.cjs +1 -1
  46. package/dist/cjs/components/icon/icons.json.d.cts +12 -0
  47. package/dist/cjs/components/icon-button/daikin-icon-button.cjs +58 -15
  48. package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +17 -3
  49. package/dist/cjs/components/index.cjs +10 -0
  50. package/dist/cjs/components/index.d.cts +2 -0
  51. package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +112 -11
  52. package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +8 -1
  53. package/dist/cjs/components/input-group/daikin-input-group.cjs +29 -13
  54. package/dist/cjs/components/link/daikin-link.cjs +28 -8
  55. package/dist/cjs/components/link/daikin-link.d.cts +11 -0
  56. package/dist/cjs/components/list/daikin-list.cjs +6 -2
  57. package/dist/cjs/components/list-item/daikin-list-item.cjs +19 -8
  58. package/dist/cjs/components/list-item/daikin-list-item.d.cts +4 -0
  59. package/dist/cjs/components/loading/daikin-loading.cjs +8 -3
  60. package/dist/cjs/components/logo/daikin-logo.cjs +18 -10
  61. package/dist/cjs/components/logo/daikin-logo.d.cts +4 -0
  62. package/dist/cjs/components/menu/daikin-menu.cjs +79 -28
  63. package/dist/cjs/components/menu/daikin-menu.d.cts +29 -2
  64. package/dist/cjs/components/modal/daikin-modal.cjs +11 -6
  65. package/dist/cjs/components/modal/daikin-modal.d.cts +2 -0
  66. package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +1 -0
  67. package/dist/cjs/components/modal-header/daikin-modal-header.cjs +3 -3
  68. package/dist/cjs/components/pagination/daikin-pagination.cjs +6 -5
  69. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +21 -9
  70. package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +4 -0
  71. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +2 -1
  72. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +13 -8
  73. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +2 -0
  74. package/dist/cjs/components/radio/daikin-radio.cjs +14 -9
  75. package/dist/cjs/components/radio/daikin-radio.d.cts +9 -0
  76. package/dist/cjs/components/radio-group/daikin-radio-group.cjs +15 -8
  77. package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +3 -1
  78. package/dist/cjs/components/select/daikin-select.cjs +4 -3
  79. package/dist/cjs/components/slider/daikin-slider.cjs +11 -9
  80. package/dist/cjs/components/slider/daikin-slider.d.cts +15 -0
  81. package/dist/cjs/components/status-message/daikin-status-message.cjs +123 -0
  82. package/dist/cjs/components/status-message/daikin-status-message.d.cts +55 -0
  83. package/dist/cjs/components/status-message/index.cjs +7 -0
  84. package/dist/cjs/components/status-message/index.d.cts +1 -0
  85. package/dist/cjs/components/tab/daikin-tab.cjs +10 -4
  86. package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +4 -4
  87. package/dist/cjs/components/table/daikin-table.cjs +11 -10
  88. package/dist/cjs/components/table-cell/daikin-table-cell.cjs +12 -7
  89. package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +5 -3
  90. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +13 -5
  91. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
  92. package/dist/cjs/components/tabs/daikin-tabs.cjs +9 -3
  93. package/dist/cjs/components/tabs/daikin-tabs.d.cts +2 -0
  94. package/dist/cjs/components/text-area/daikin-text-area.cjs +15 -12
  95. package/dist/cjs/components/text-area/daikin-text-area.d.cts +9 -2
  96. package/dist/cjs/components/text-field/daikin-text-field.cjs +28 -31
  97. package/dist/cjs/components/text-field/daikin-text-field.d.cts +11 -2
  98. package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +22 -19
  99. package/dist/cjs/components/text-masked-field/daikin-text-masked-field.d.cts +9 -2
  100. package/dist/cjs/components/time-picker/daikin-time-picker.cjs +40 -19
  101. package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +23 -1
  102. package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +118 -13
  103. package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +15 -2
  104. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +14 -2
  105. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +3 -1
  106. package/dist/cjs/components/toggle/daikin-toggle.cjs +7 -6
  107. package/dist/cjs/components/toggle/daikin-toggle.d.cts +7 -0
  108. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +37 -12
  109. package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +9 -1
  110. package/dist/cjs/components/tree/daikin-tree.cjs +3 -2
  111. package/dist/cjs/components/tree/daikin-tree.d.cts +2 -1
  112. package/dist/cjs/components/tree-item/daikin-tree-item.cjs +6 -5
  113. package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +8 -1
  114. package/dist/cjs/components/tree-section/daikin-tree-section.cjs +6 -5
  115. package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +6 -1
  116. package/dist/cjs/index.cjs +10 -0
  117. package/dist/cjs/tailwind.css.cjs +1 -1
  118. package/dist/cjs/utils/calendar-common.cjs +6 -0
  119. package/dist/cjs/utils/calendar-common.d.cts +7 -0
  120. package/dist/cjs/utils/notification-common.cjs +0 -94
  121. package/dist/cjs/utils/notification-common.d.cts +0 -13
  122. package/dist/cjs-dev/base/dds-element.cjs +92 -1
  123. package/dist/cjs-dev/base/dds-element.d.cts +40 -0
  124. package/dist/cjs-dev/base/dds-form-element.cjs +15 -6
  125. package/dist/cjs-dev/base/dds-form-element.d.cts +2 -2
  126. package/dist/cjs-dev/base/dds-property.cjs +11 -0
  127. package/dist/cjs-dev/base/dds-property.d.cts +92 -0
  128. package/dist/cjs-dev/base/index.cjs +3 -0
  129. package/dist/cjs-dev/base/index.d.cts +1 -0
  130. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +3 -2
  131. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +6 -7
  132. package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +20 -15
  133. package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +3 -1
  134. package/dist/cjs-dev/components/badge/daikin-badge.cjs +154 -0
  135. package/dist/cjs-dev/components/badge/daikin-badge.d.cts +91 -0
  136. package/dist/cjs-dev/components/badge/index.cjs +7 -0
  137. package/dist/cjs-dev/components/badge/index.d.cts +1 -0
  138. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +33 -7
  139. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +38 -6
  140. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +52 -19
  141. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +3 -1
  142. package/dist/cjs-dev/components/button/daikin-button.cjs +57 -16
  143. package/dist/cjs-dev/components/button/daikin-button.d.cts +18 -2
  144. package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +36 -15
  145. package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +14 -3
  146. package/dist/cjs-dev/components/card/daikin-card.cjs +2 -2
  147. package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +1 -0
  148. package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +1 -0
  149. package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +2 -1
  150. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +3 -2
  151. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +24 -10
  152. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +12 -1
  153. package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +12 -3
  154. package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +2 -0
  155. package/dist/cjs-dev/components/chip/daikin-chip.cjs +2 -1
  156. package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +34 -25
  157. package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +9 -2
  158. package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +64 -26
  159. package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +18 -4
  160. package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +17 -19
  161. package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +7 -0
  162. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +5 -4
  163. package/dist/cjs-dev/components/icon/daikin-icon.cjs +24 -11
  164. package/dist/cjs-dev/components/icon/daikin-icon.d.cts +96 -39
  165. package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
  166. package/dist/cjs-dev/components/icon/icons.json.d.cts +12 -0
  167. package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +58 -15
  168. package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +17 -3
  169. package/dist/cjs-dev/components/index.cjs +10 -0
  170. package/dist/cjs-dev/components/index.d.cts +2 -0
  171. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +112 -11
  172. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +8 -1
  173. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +29 -13
  174. package/dist/cjs-dev/components/link/daikin-link.cjs +28 -8
  175. package/dist/cjs-dev/components/link/daikin-link.d.cts +11 -0
  176. package/dist/cjs-dev/components/list/daikin-list.cjs +6 -2
  177. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +19 -8
  178. package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +4 -0
  179. package/dist/cjs-dev/components/loading/daikin-loading.cjs +8 -3
  180. package/dist/cjs-dev/components/logo/daikin-logo.cjs +18 -10
  181. package/dist/cjs-dev/components/logo/daikin-logo.d.cts +4 -0
  182. package/dist/cjs-dev/components/menu/daikin-menu.cjs +79 -28
  183. package/dist/cjs-dev/components/menu/daikin-menu.d.cts +29 -2
  184. package/dist/cjs-dev/components/modal/daikin-modal.cjs +11 -6
  185. package/dist/cjs-dev/components/modal/daikin-modal.d.cts +2 -0
  186. package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +1 -0
  187. package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +3 -3
  188. package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +6 -5
  189. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +21 -9
  190. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +4 -0
  191. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +2 -1
  192. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +13 -8
  193. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +2 -0
  194. package/dist/cjs-dev/components/radio/daikin-radio.cjs +14 -9
  195. package/dist/cjs-dev/components/radio/daikin-radio.d.cts +9 -0
  196. package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +15 -8
  197. package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +3 -1
  198. package/dist/cjs-dev/components/select/daikin-select.cjs +4 -3
  199. package/dist/cjs-dev/components/slider/daikin-slider.cjs +11 -9
  200. package/dist/cjs-dev/components/slider/daikin-slider.d.cts +15 -0
  201. package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +123 -0
  202. package/dist/cjs-dev/components/status-message/daikin-status-message.d.cts +55 -0
  203. package/dist/cjs-dev/components/status-message/index.cjs +7 -0
  204. package/dist/cjs-dev/components/status-message/index.d.cts +1 -0
  205. package/dist/cjs-dev/components/tab/daikin-tab.cjs +10 -4
  206. package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +4 -4
  207. package/dist/cjs-dev/components/table/daikin-table.cjs +11 -10
  208. package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +12 -7
  209. package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +5 -3
  210. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +13 -5
  211. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
  212. package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +9 -3
  213. package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +2 -0
  214. package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +15 -12
  215. package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +9 -2
  216. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +28 -31
  217. package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +11 -2
  218. package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +22 -19
  219. package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.d.cts +9 -2
  220. package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +40 -19
  221. package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +23 -1
  222. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +118 -13
  223. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +15 -2
  224. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +14 -2
  225. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +3 -1
  226. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +7 -6
  227. package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +7 -0
  228. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +37 -12
  229. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +9 -1
  230. package/dist/cjs-dev/components/tree/daikin-tree.cjs +3 -2
  231. package/dist/cjs-dev/components/tree/daikin-tree.d.cts +2 -1
  232. package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +6 -5
  233. package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +8 -1
  234. package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +6 -5
  235. package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +6 -1
  236. package/dist/cjs-dev/index.cjs +10 -0
  237. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  238. package/dist/cjs-dev/utils/calendar-common.cjs +6 -0
  239. package/dist/cjs-dev/utils/calendar-common.d.cts +7 -0
  240. package/dist/cjs-dev/utils/notification-common.cjs +0 -94
  241. package/dist/cjs-dev/utils/notification-common.d.cts +0 -13
  242. package/dist/es/base/dds-element.d.ts +40 -0
  243. package/dist/es/base/dds-element.js +82 -1
  244. package/dist/es/base/dds-form-element.d.ts +2 -2
  245. package/dist/es/base/dds-form-element.js +15 -6
  246. package/dist/es/base/dds-property.d.ts +92 -0
  247. package/dist/es/base/dds-property.js +11 -0
  248. package/dist/es/base/index.d.ts +1 -0
  249. package/dist/es/base/index.js +4 -1
  250. package/dist/es/components/accordion/daikin-accordion.js +2 -1
  251. package/dist/es/components/accordion-item/daikin-accordion-item.js +4 -5
  252. package/dist/es/components/avatar/daikin-avatar.d.ts +3 -1
  253. package/dist/es/components/avatar/daikin-avatar.js +18 -13
  254. package/dist/es/components/badge/daikin-badge.d.ts +91 -0
  255. package/dist/es/components/badge/daikin-badge.js +155 -0
  256. package/dist/es/components/badge/index.d.ts +1 -0
  257. package/dist/es/components/badge/index.js +4 -0
  258. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +38 -6
  259. package/dist/es/components/breadcrumb/daikin-breadcrumb.js +33 -7
  260. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +3 -1
  261. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +48 -15
  262. package/dist/es/components/button/daikin-button.d.ts +18 -2
  263. package/dist/es/components/button/daikin-button.js +54 -13
  264. package/dist/es/components/calendar/daikin-calendar.d.ts +14 -3
  265. package/dist/es/components/calendar/daikin-calendar.js +36 -15
  266. package/dist/es/components/card/daikin-card.js +1 -1
  267. package/dist/es/components/card-footer/daikin-card-footer.js +1 -0
  268. package/dist/es/components/card-header/daikin-card-header.js +1 -0
  269. package/dist/es/components/carousel/daikin-carousel.js +2 -1
  270. package/dist/es/components/carousel-item/daikin-carousel-item.js +2 -1
  271. package/dist/es/components/checkbox/daikin-checkbox.d.ts +12 -1
  272. package/dist/es/components/checkbox/daikin-checkbox.js +22 -8
  273. package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +2 -0
  274. package/dist/es/components/checkbox-group/daikin-checkbox-group.js +11 -2
  275. package/dist/es/components/chip/daikin-chip.js +2 -1
  276. package/dist/es/components/combobox/daikin-combobox.d.ts +9 -2
  277. package/dist/es/components/combobox/daikin-combobox.js +29 -20
  278. package/dist/es/components/date-picker/daikin-date-picker.d.ts +18 -4
  279. package/dist/es/components/date-picker/daikin-date-picker.js +61 -23
  280. package/dist/es/components/dropdown/daikin-dropdown.d.ts +7 -0
  281. package/dist/es/components/dropdown/daikin-dropdown.js +12 -14
  282. package/dist/es/components/dropdown-item/daikin-dropdown-item.js +2 -1
  283. package/dist/es/components/icon/daikin-icon.d.ts +96 -39
  284. package/dist/es/components/icon/daikin-icon.js +24 -11
  285. package/dist/es/components/icon/icons.json.d.ts +12 -0
  286. package/dist/es/components/icon/icons.json.js +1 -1
  287. package/dist/es/components/icon-button/daikin-icon-button.d.ts +17 -3
  288. package/dist/es/components/icon-button/daikin-icon-button.js +54 -11
  289. package/dist/es/components/index.d.ts +2 -0
  290. package/dist/es/components/index.js +4 -0
  291. package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +8 -1
  292. package/dist/es/components/inline-notification/daikin-inline-notification.js +109 -8
  293. package/dist/es/components/input-group/daikin-input-group.js +23 -7
  294. package/dist/es/components/link/daikin-link.d.ts +11 -0
  295. package/dist/es/components/link/daikin-link.js +24 -4
  296. package/dist/es/components/list/daikin-list.js +6 -2
  297. package/dist/es/components/list-item/daikin-list-item.d.ts +4 -0
  298. package/dist/es/components/list-item/daikin-list-item.js +17 -6
  299. package/dist/es/components/loading/daikin-loading.js +7 -2
  300. package/dist/es/components/logo/daikin-logo.d.ts +4 -0
  301. package/dist/es/components/logo/daikin-logo.js +17 -9
  302. package/dist/es/components/menu/daikin-menu.d.ts +29 -2
  303. package/dist/es/components/menu/daikin-menu.js +79 -28
  304. package/dist/es/components/modal/daikin-modal.d.ts +2 -0
  305. package/dist/es/components/modal/daikin-modal.js +8 -3
  306. package/dist/es/components/modal-footer/daikin-modal-footer.js +1 -0
  307. package/dist/es/components/modal-header/daikin-modal-header.js +2 -2
  308. package/dist/es/components/pagination/daikin-pagination.js +3 -2
  309. package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +4 -0
  310. package/dist/es/components/progress-bar/daikin-progress-bar.js +19 -7
  311. package/dist/es/components/progress-indicator/daikin-progress-indicator.js +2 -1
  312. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +2 -0
  313. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +13 -8
  314. package/dist/es/components/radio/daikin-radio.d.ts +9 -0
  315. package/dist/es/components/radio/daikin-radio.js +11 -6
  316. package/dist/es/components/radio-group/daikin-radio-group.d.ts +3 -1
  317. package/dist/es/components/radio-group/daikin-radio-group.js +14 -7
  318. package/dist/es/components/select/daikin-select.js +2 -1
  319. package/dist/es/components/slider/daikin-slider.d.ts +15 -0
  320. package/dist/es/components/slider/daikin-slider.js +11 -9
  321. package/dist/es/components/status-message/daikin-status-message.d.ts +55 -0
  322. package/dist/es/components/status-message/daikin-status-message.js +124 -0
  323. package/dist/es/components/status-message/index.d.ts +1 -0
  324. package/dist/es/components/status-message/index.js +4 -0
  325. package/dist/es/components/tab/daikin-tab.js +9 -3
  326. package/dist/es/components/tab-panels/daikin-tab-panels.js +2 -2
  327. package/dist/es/components/table/daikin-table.js +4 -3
  328. package/dist/es/components/table-cell/daikin-table-cell.d.ts +5 -3
  329. package/dist/es/components/table-cell/daikin-table-cell.js +12 -7
  330. package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
  331. package/dist/es/components/table-header-cell/daikin-table-header-cell.js +11 -3
  332. package/dist/es/components/tabs/daikin-tabs.d.ts +2 -0
  333. package/dist/es/components/tabs/daikin-tabs.js +10 -4
  334. package/dist/es/components/text-area/daikin-text-area.d.ts +9 -2
  335. package/dist/es/components/text-area/daikin-text-area.js +11 -8
  336. package/dist/es/components/text-field/daikin-text-field.d.ts +11 -2
  337. package/dist/es/components/text-field/daikin-text-field.js +18 -21
  338. package/dist/es/components/text-masked-field/daikin-text-masked-field.d.ts +9 -2
  339. package/dist/es/components/text-masked-field/daikin-text-masked-field.js +15 -12
  340. package/dist/es/components/time-picker/daikin-time-picker.d.ts +23 -1
  341. package/dist/es/components/time-picker/daikin-time-picker.js +38 -17
  342. package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +15 -2
  343. package/dist/es/components/toast-notification/daikin-toast-notification.js +112 -7
  344. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +3 -1
  345. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +15 -3
  346. package/dist/es/components/toggle/daikin-toggle.d.ts +7 -0
  347. package/dist/es/components/toggle/daikin-toggle.js +5 -4
  348. package/dist/es/components/tooltip/daikin-tooltip.d.ts +9 -1
  349. package/dist/es/components/tooltip/daikin-tooltip.js +36 -11
  350. package/dist/es/components/tree/daikin-tree.d.ts +2 -1
  351. package/dist/es/components/tree/daikin-tree.js +2 -1
  352. package/dist/es/components/tree-item/daikin-tree-item.d.ts +8 -1
  353. package/dist/es/components/tree-item/daikin-tree-item.js +2 -1
  354. package/dist/es/components/tree-section/daikin-tree-section.d.ts +6 -1
  355. package/dist/es/components/tree-section/daikin-tree-section.js +2 -1
  356. package/dist/es/index.js +4 -0
  357. package/dist/es/tailwind.css.js +1 -1
  358. package/dist/es/utils/calendar-common.d.ts +7 -0
  359. package/dist/es/utils/calendar-common.js +6 -0
  360. package/dist/es/utils/notification-common.d.ts +0 -13
  361. package/dist/es/utils/notification-common.js +0 -94
  362. package/dist/es-dev/base/dds-element.d.ts +40 -0
  363. package/dist/es-dev/base/dds-element.js +92 -1
  364. package/dist/es-dev/base/dds-form-element.d.ts +2 -2
  365. package/dist/es-dev/base/dds-form-element.js +15 -6
  366. package/dist/es-dev/base/dds-property.d.ts +92 -0
  367. package/dist/es-dev/base/dds-property.js +11 -0
  368. package/dist/es-dev/base/index.d.ts +1 -0
  369. package/dist/es-dev/base/index.js +4 -1
  370. package/dist/es-dev/components/accordion/daikin-accordion.js +2 -1
  371. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +4 -5
  372. package/dist/es-dev/components/avatar/daikin-avatar.d.ts +3 -1
  373. package/dist/es-dev/components/avatar/daikin-avatar.js +18 -13
  374. package/dist/es-dev/components/badge/daikin-badge.d.ts +91 -0
  375. package/dist/es-dev/components/badge/daikin-badge.js +155 -0
  376. package/dist/es-dev/components/badge/index.d.ts +1 -0
  377. package/dist/es-dev/components/badge/index.js +4 -0
  378. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +38 -6
  379. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +33 -7
  380. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +3 -1
  381. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +48 -15
  382. package/dist/es-dev/components/button/daikin-button.d.ts +18 -2
  383. package/dist/es-dev/components/button/daikin-button.js +54 -13
  384. package/dist/es-dev/components/calendar/daikin-calendar.d.ts +14 -3
  385. package/dist/es-dev/components/calendar/daikin-calendar.js +36 -15
  386. package/dist/es-dev/components/card/daikin-card.js +1 -1
  387. package/dist/es-dev/components/card-footer/daikin-card-footer.js +1 -0
  388. package/dist/es-dev/components/card-header/daikin-card-header.js +1 -0
  389. package/dist/es-dev/components/carousel/daikin-carousel.js +2 -1
  390. package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +2 -1
  391. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +12 -1
  392. package/dist/es-dev/components/checkbox/daikin-checkbox.js +22 -8
  393. package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +2 -0
  394. package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +11 -2
  395. package/dist/es-dev/components/chip/daikin-chip.js +2 -1
  396. package/dist/es-dev/components/combobox/daikin-combobox.d.ts +9 -2
  397. package/dist/es-dev/components/combobox/daikin-combobox.js +29 -20
  398. package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +18 -4
  399. package/dist/es-dev/components/date-picker/daikin-date-picker.js +61 -23
  400. package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +7 -0
  401. package/dist/es-dev/components/dropdown/daikin-dropdown.js +12 -14
  402. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +2 -1
  403. package/dist/es-dev/components/icon/daikin-icon.d.ts +96 -39
  404. package/dist/es-dev/components/icon/daikin-icon.js +24 -11
  405. package/dist/es-dev/components/icon/icons.json.d.ts +12 -0
  406. package/dist/es-dev/components/icon/icons.json.js +1 -1
  407. package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +17 -3
  408. package/dist/es-dev/components/icon-button/daikin-icon-button.js +54 -11
  409. package/dist/es-dev/components/index.d.ts +2 -0
  410. package/dist/es-dev/components/index.js +4 -0
  411. package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +8 -1
  412. package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +109 -8
  413. package/dist/es-dev/components/input-group/daikin-input-group.js +23 -7
  414. package/dist/es-dev/components/link/daikin-link.d.ts +11 -0
  415. package/dist/es-dev/components/link/daikin-link.js +24 -4
  416. package/dist/es-dev/components/list/daikin-list.js +6 -2
  417. package/dist/es-dev/components/list-item/daikin-list-item.d.ts +4 -0
  418. package/dist/es-dev/components/list-item/daikin-list-item.js +17 -6
  419. package/dist/es-dev/components/loading/daikin-loading.js +7 -2
  420. package/dist/es-dev/components/logo/daikin-logo.d.ts +4 -0
  421. package/dist/es-dev/components/logo/daikin-logo.js +17 -9
  422. package/dist/es-dev/components/menu/daikin-menu.d.ts +29 -2
  423. package/dist/es-dev/components/menu/daikin-menu.js +79 -28
  424. package/dist/es-dev/components/modal/daikin-modal.d.ts +2 -0
  425. package/dist/es-dev/components/modal/daikin-modal.js +8 -3
  426. package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +1 -0
  427. package/dist/es-dev/components/modal-header/daikin-modal-header.js +2 -2
  428. package/dist/es-dev/components/pagination/daikin-pagination.js +3 -2
  429. package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +4 -0
  430. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +19 -7
  431. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +2 -1
  432. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +2 -0
  433. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +13 -8
  434. package/dist/es-dev/components/radio/daikin-radio.d.ts +9 -0
  435. package/dist/es-dev/components/radio/daikin-radio.js +11 -6
  436. package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +3 -1
  437. package/dist/es-dev/components/radio-group/daikin-radio-group.js +14 -7
  438. package/dist/es-dev/components/select/daikin-select.js +2 -1
  439. package/dist/es-dev/components/slider/daikin-slider.d.ts +15 -0
  440. package/dist/es-dev/components/slider/daikin-slider.js +11 -9
  441. package/dist/es-dev/components/status-message/daikin-status-message.d.ts +55 -0
  442. package/dist/es-dev/components/status-message/daikin-status-message.js +124 -0
  443. package/dist/es-dev/components/status-message/index.d.ts +1 -0
  444. package/dist/es-dev/components/status-message/index.js +4 -0
  445. package/dist/es-dev/components/tab/daikin-tab.js +9 -3
  446. package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +2 -2
  447. package/dist/es-dev/components/table/daikin-table.js +4 -3
  448. package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +5 -3
  449. package/dist/es-dev/components/table-cell/daikin-table-cell.js +12 -7
  450. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
  451. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +11 -3
  452. package/dist/es-dev/components/tabs/daikin-tabs.d.ts +2 -0
  453. package/dist/es-dev/components/tabs/daikin-tabs.js +10 -4
  454. package/dist/es-dev/components/text-area/daikin-text-area.d.ts +9 -2
  455. package/dist/es-dev/components/text-area/daikin-text-area.js +11 -8
  456. package/dist/es-dev/components/text-field/daikin-text-field.d.ts +11 -2
  457. package/dist/es-dev/components/text-field/daikin-text-field.js +18 -21
  458. package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.d.ts +9 -2
  459. package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +15 -12
  460. package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +23 -1
  461. package/dist/es-dev/components/time-picker/daikin-time-picker.js +38 -17
  462. package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +15 -2
  463. package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +112 -7
  464. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +3 -1
  465. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +15 -3
  466. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +7 -0
  467. package/dist/es-dev/components/toggle/daikin-toggle.js +5 -4
  468. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +9 -1
  469. package/dist/es-dev/components/tooltip/daikin-tooltip.js +36 -11
  470. package/dist/es-dev/components/tree/daikin-tree.d.ts +2 -1
  471. package/dist/es-dev/components/tree/daikin-tree.js +2 -1
  472. package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +8 -1
  473. package/dist/es-dev/components/tree-item/daikin-tree-item.js +2 -1
  474. package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +6 -1
  475. package/dist/es-dev/components/tree-section/daikin-tree-section.js +2 -1
  476. package/dist/es-dev/index.js +4 -0
  477. package/dist/es-dev/tailwind.css.js +1 -1
  478. package/dist/es-dev/utils/calendar-common.d.ts +7 -0
  479. package/dist/es-dev/utils/calendar-common.js +6 -0
  480. package/dist/es-dev/utils/notification-common.d.ts +0 -13
  481. package/dist/es-dev/utils/notification-common.js +0 -94
  482. package/icons/download.svg +3 -0
  483. package/icons/neutral.svg +3 -0
  484. package/icons/notification.svg +3 -0
  485. package/package.json +18 -17
package/CHANGELOG.md CHANGED
@@ -1,5 +1,222 @@
1
1
  # @daikin-oss/design-system-web-components
2
2
 
3
+ ## 1.4.0-next.1
4
+
5
+ ### Minor Changes
6
+
7
+ - [#324](https://github.com/dsv-rp/DDS/pull/324) [`3fb796d`](https://github.com/dsv-rp/DDS/commit/3fb796d179ce6118074ae81deaec37f3f05a2621) Thanks [@dk-wei](https://github.com/dk-wei)! - Slider (Storybook): Added kitchen sink page.
8
+
9
+ - [#315](https://github.com/dsv-rp/DDS/pull/315) [`08cbddb`](https://github.com/dsv-rp/DDS/commit/08cbddb002ab1b895438c171ef30bb81078552b8) Thanks [@dk-wei](https://github.com/dk-wei)! - Button: Added `buttonTabIndex` property.
10
+ Icon Button: Added `buttonTabIndex` property.
11
+
12
+ - [#320](https://github.com/dsv-rp/DDS/pull/320) [`1ecc452`](https://github.com/dsv-rp/DDS/commit/1ecc452826d77d0a5fb050bc31132375e68dca8a) Thanks [@dk-wei](https://github.com/dk-wei)! - Badge (Storybook): Added kitchen sink page.
13
+
14
+ - [#317](https://github.com/dsv-rp/DDS/pull/317) [`9003e53`](https://github.com/dsv-rp/DDS/commit/9003e5340b4e22ecc092f47e9b4fc1b3f8804db2) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Breadcrumb: Add ellipsis variant. (DDS-2637)
15
+ Menu: Fixed an issue where clicking interactive elements (e.g., links) in content did not perform the default action.
16
+
17
+ - [#313](https://github.com/dsv-rp/DDS/pull/313) [`e9f426f`](https://github.com/dsv-rp/DDS/commit/e9f426f0aa3d623301a1209acab82131c525533e) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Page Navigation (Storybook): Add Page Navigation recipe. (DDS-2703)
18
+
19
+ - [#303](https://github.com/dsv-rp/DDS/pull/303) [`86f57e3`](https://github.com/dsv-rp/DDS/commit/86f57e385dc4f4f81a347cc9fee534f8ca7fdaee) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Preset Date Range: Add Preset Date Range recipe. (DDS-2700)
20
+
21
+ - [#309](https://github.com/dsv-rp/DDS/pull/309) [`457db3a`](https://github.com/dsv-rp/DDS/commit/457db3a180089bd2c728c2a1ddfe35b6cd57f049) Thanks [@dk-wei](https://github.com/dk-wei)! - Carousel Item (Storybook): Added kitchen sink.
22
+
23
+ ### Patch Changes
24
+
25
+ - [#322](https://github.com/dsv-rp/DDS/pull/322) [`dffa6e8`](https://github.com/dsv-rp/DDS/commit/dffa6e8d41e387931ccf7f17618f72e587fd4e62) Thanks [@yodas7](https://github.com/yodas7)! - Storybook: Added theme switcher to docs. (DDS-2419)
26
+
27
+ - [#318](https://github.com/dsv-rp/DDS/pull/318) [`f28ed5d`](https://github.com/dsv-rp/DDS/commit/f28ed5da7fa3b2c9af3d07f29f5a6d2f22adfdcf) Thanks [@dk-wei](https://github.com/dk-wei)! - Checkbox Group (Storybook): Added kitchen sink page.
28
+
29
+ - [#310](https://github.com/dsv-rp/DDS/pull/310) [`1d2cbec`](https://github.com/dsv-rp/DDS/commit/1d2cbec990b44f220293244521a76759c4478d4b) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Storybook: Updated the documentation for the following components with detailed explanations regarding CSS Shadow Parts section. (DDS-2706)
30
+
31
+ - Checkbox
32
+ - Menu
33
+ - Tooltip
34
+
35
+ List Item: Added a CSS part named item to allow users to customize the styles of the internal content wrapper element. (DDS-2706)
36
+ Tree Item: Added a CSS part named item to allow users to customize the styles of the internal content wrapper element. (DDS-2706)
37
+
38
+ - [#297](https://github.com/dsv-rp/DDS/pull/297) [`50cbe34`](https://github.com/dsv-rp/DDS/commit/50cbe344469c1137f7ff8705e78200dcabd96268) Thanks [@dk-wei](https://github.com/dk-wei)! - Date Picker (Storybook): Fix component size on kitchen sink.
39
+
40
+ - [#311](https://github.com/dsv-rp/DDS/pull/311) [`6605ef1`](https://github.com/dsv-rp/DDS/commit/6605ef1fe94c17e33672d599acaedf01670df65b) Thanks [@dk-wei](https://github.com/dk-wei)! - Dropdown Item (Storybook): Added kitchen sink page.
41
+
42
+ - [#304](https://github.com/dsv-rp/DDS/pull/304) [`2a7e64b`](https://github.com/dsv-rp/DDS/commit/2a7e64bbe1bb76a9038d705281464c5816db11f2) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Badge: Fixed an issue where the count could be set to an unlimited value when maxCount was a null or empty value. (DDS-2694)
43
+ Badge (Storybook): Automatically set the initial values for `count` and `maxCount` when the user switches the type control to `number` on the Docs page. (DDS-2694)
44
+ Badge (Storybook): Add icon control to story. (DDS-2694)
45
+ Status Message: Removed the component's fixed height specification, allowing the component's height to be determined by the font size and line height. (DDS-2696)
46
+ Time Picker: Fixed an issue where the input field's content would not automatically clear when an invalid value was programmatically set. (DDS-2716)
47
+ Date Picker: Resolved a bug where the component failed to detect whether the value exceeded the max and min limits when the value was programmatically set. (DDS-2716)
48
+ Date Picker: Improved the screen reader announcement when a user selects a value in the date picker. (DDS-2178)
49
+ Preset Date Range Picker: Update appearance. (DDS-2718)
50
+ Dropdown: Improved the screen reader announcement when a user selects a value in the dropdown. (DDS-2718)
51
+
52
+ - [#301](https://github.com/dsv-rp/DDS/pull/301) [`8f23f0c`](https://github.com/dsv-rp/DDS/commit/8f23f0cffde4670b5eb9727292c1448d44bd65d2) Thanks [@dk-wei](https://github.com/dk-wei)! - Table (Storybook): Added kitchen sink.
53
+
54
+ - [#305](https://github.com/dsv-rp/DDS/pull/305) [`9389443`](https://github.com/dsv-rp/DDS/commit/9389443da3dfff1c07af4217e10aced2506129e4) Thanks [@yodas7](https://github.com/yodas7)! - Avatar: The `type` property is now validated, ensuring correct component state and rendering.
55
+ Avatar: The `avatarAriaExpanded` property now supports `"undefined"` value.
56
+ Badge: The `color` and `type` properties are now validated, ensuring correct component state and rendering.
57
+ Breadcrumb Item: The `type` property is now validated, ensuring correct component state and rendering.
58
+ Button: Added missing documentation about `form` attribute and `formAttr` property.
59
+ Button: The `color`, `size`, `type`, and `variant` properties are now validated, ensuring correct component state and rendering.
60
+ Button: The `buttonAriaExpanded` property now supports `"undefined"` value.
61
+ Calendar: The value of the `value` property is no longer reflected in the attribute.
62
+ Checkbox Group: The `orientation` property is now validated, ensuring correct component state and rendering.
63
+ Checkbox: Added missing documentation about `form`, `name` and `value` attributes.
64
+ Checkbox: The `checkState` and `labelPosition` properties are now validated, ensuring correct component state and rendering.
65
+ Checkbox: The value of the `value` property is no longer reflected in the attribute.
66
+ Combobox: Added missing documentation about `form`, `name` and `value` attributes.
67
+ Combobox: The value of the `value` property is no longer reflected in the attribute.
68
+ Date Picker: Added missing documentation about `form`, `name` and `value` attributes.
69
+ Date Picker: The value of the `value` property is no longer reflected in the attribute.
70
+ Dropdown: Added missing documentation about `form`, `name` and `value` attributes.
71
+ Dropdown: The value of the `value` property is no longer reflected in the attribute.
72
+ Icon Button: Added missing documentation about `form` attribute and `formAttr` property.
73
+ Icon Button: The `color`, `size`, `type`, and `variant` properties are now validated, ensuring correct component state and rendering.
74
+ Icon Button: The `buttonAriaExpanded` property now supports `"undefined"` value.
75
+ Icon: The `color` and `size` properties are now validated, ensuring correct component state and rendering.
76
+ Inline Notification: The `layout` and `status` properties are now validated, ensuring correct component state and rendering.
77
+ List Item: The `type` property is now validated, ensuring correct component state and rendering.
78
+ Loading: The `size` property is now validated, ensuring correct component state and rendering.
79
+ Logo: The `mode` property is now validated, ensuring correct component state and rendering.
80
+ Menu: The `placement`, `popoverValue` and `trigger` properties are now validated, ensuring correct component state and rendering.
81
+ Modal: The `modalRole` property is now validated, ensuring correct component state and rendering.
82
+ Progress Bar: The `size` and `variant` properties are now validated, ensuring correct component state and rendering.
83
+ Progress Indicator Item: The `status` property is now validated, ensuring correct component state and rendering.
84
+ Radio Group: The `orientation` property is now validated, ensuring correct component state and rendering.
85
+ Radio: Added missing documentation about `form`, `name` and `value` attributes.
86
+ Radio: The value of the `value` property is no longer reflected in the attribute.
87
+ Slider: Added missing documentation about `form`, `name` and `value` attributes.
88
+ Slider: The value of the `value` property is no longer reflected in the attribute.
89
+ Status Message: The `size` and `status` properties are now validated, ensuring correct component state and rendering.
90
+ Tab Panels: The value of the `value` property is no longer reflected in the attribute.
91
+ Tab: The `sizing` property is now validated, ensuring correct component state and rendering.
92
+ Tab: The value of the `value` property is no longer reflected in the attribute.
93
+ Tabs: The `sizing` property is now validated, ensuring correct component state and rendering.
94
+ Tabs: The value of the `value` property is no longer reflected in the attribute.
95
+ Table Cell: The `alignment` property is now validated, ensuring correct component state and rendering.
96
+ Table Header Cell: The `alignment` property is now validated, ensuring correct component state and rendering.
97
+ Textarea: Added missing documentation about `form`, `name` and `value` attributes.
98
+ Textarea: The value of the `value` property is no longer reflected in the attribute.
99
+ Text Field: Added missing documentation about `form`, `name` and `value` attributes.
100
+ Text Field: The value of the `value` property is no longer reflected in the attribute.
101
+ Text Masked Field: Added missing documentation about `form`, `name` and `value` attributes.
102
+ Text Masked Field: The value of the `value` property is no longer reflected in the attribute.
103
+ Time Picker: Added missing documentation about `form`, `name` and `value` attributes.
104
+ Time Picker: The value of the `value` property is no longer reflected in the attribute.
105
+ Toast Notification: The `layout` and `status` properties are now validated, ensuring correct component state and rendering.
106
+ Tooltip: The `color`, `placement`, `popoverValue`, and `trigger` properties are now validated, ensuring correct component state and rendering.
107
+
108
+ - [#316](https://github.com/dsv-rp/DDS/pull/316) [`0aa7d4f`](https://github.com/dsv-rp/DDS/commit/0aa7d4f7b055c6169b1e46f790c0aa0d9ca4614c) Thanks [@yodas7](https://github.com/yodas7)! - Icon: Updated docs to organize custom icon usage and color customization into dedicated sections.
109
+
110
+ - [#323](https://github.com/dsv-rp/DDS/pull/323) [`9994caa`](https://github.com/dsv-rp/DDS/commit/9994caa66197517b5972958820fa5c19b95eac8f) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Optimized and standardized the text line-break strategy for the following components. (DDS-2792)
111
+
112
+ - Toast Notification
113
+ - Inline Notification
114
+ - Accordion Item
115
+ - Combobox
116
+ - Dropdown
117
+ - List Item
118
+ - Modal Header
119
+ - Status Message
120
+ - Table Cell
121
+
122
+ Combobox (Storybook): Update story name.
123
+
124
+ - [#319](https://github.com/dsv-rp/DDS/pull/319) [`71555cd`](https://github.com/dsv-rp/DDS/commit/71555cdb79a9587c527c2c6a718d2ced8c3b90ca) Thanks [@dk-wei](https://github.com/dk-wei)! - Inline Notification (Storybook): Added kitchen sink page.
125
+
126
+ - [#297](https://github.com/dsv-rp/DDS/pull/297) [`50cbe34`](https://github.com/dsv-rp/DDS/commit/50cbe344469c1137f7ff8705e78200dcabd96268) Thanks [@dk-wei](https://github.com/dk-wei)! - Date Picker (Storybook): Fix component size on kitchen sink.
127
+
128
+ - [#321](https://github.com/dsv-rp/DDS/pull/321) [`00d1bda`](https://github.com/dsv-rp/DDS/commit/00d1bda09ebb8b6b95c5d9b96204d4f20166c7b4) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Breadcrumb: Fixed an issue where the collapsed state was not correctly displayed when changing the type of the breadcrumb story. (DDS-2793)
129
+
130
+ ## 1.4.0-next.0
131
+
132
+ ### Minor Changes
133
+
134
+ - [#268](https://github.com/dsv-rp/DDS/pull/268) [`1aab398`](https://github.com/dsv-rp/DDS/commit/1aab3981ca38f7e9c105b02c7087c6ea647feb37) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Badge: Add Badge component. (DDS-2613)
135
+
136
+ - [#287](https://github.com/dsv-rp/DDS/pull/287) [`b235f19`](https://github.com/dsv-rp/DDS/commit/b235f1952e77a68477fbe048c3400652186049fb) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Menu: Menu position now supports `top-start` , `top-end` , `bottom-start` , `bottom-end` , `left-start` , `left-end` , `right-start` , and `right-end` . (DDS-2636)
137
+
138
+ - [#275](https://github.com/dsv-rp/DDS/pull/275) [`2ed2500`](https://github.com/dsv-rp/DDS/commit/2ed2500d4e26afa858bb75f681d1ce895008203e) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Status Message: Add Status Message component. (DDS-2415)
139
+
140
+ - [#291](https://github.com/dsv-rp/DDS/pull/291) [`1dadbac`](https://github.com/dsv-rp/DDS/commit/1dadbacb4c54bad3427116b78ce08e8129271ed3) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Date Time Range: Add date time range recipe. (DDS-2629)
141
+ Date Picker: Improved the appearance when the ​placeholder content is too long.
142
+ Time Picker: Improved the appearance when the ​placeholder content is too long.
143
+
144
+ ### Patch Changes
145
+
146
+ - [#274](https://github.com/dsv-rp/DDS/pull/274) [`1c14478`](https://github.com/dsv-rp/DDS/commit/1c14478b2d9dc2d03dbfc6454698367e6e2bd886) Thanks [@dk-wei](https://github.com/dk-wei)! - - Add progress indicator kitchen sink page for next version.
147
+
148
+ - [#281](https://github.com/dsv-rp/DDS/pull/281) [`5fc5fee`](https://github.com/dsv-rp/DDS/commit/5fc5feed083e8ff06af01d23929b94a32163250e) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Storybook: Adjust Storybook's default viewport width to facilitate testing. (DDS-2558)
149
+
150
+ - [#293](https://github.com/dsv-rp/DDS/pull/293) [`d8f89cd`](https://github.com/dsv-rp/DDS/commit/d8f89cd0c1c3c76997b6b5f3b28cef6d1439899e) Thanks [@dk-wei](https://github.com/dk-wei)! - - Add tree item kitchen sink page.
151
+
152
+ - [#271](https://github.com/dsv-rp/DDS/pull/271) [`c6a8dca`](https://github.com/dsv-rp/DDS/commit/c6a8dcafa35ebc5570e3b2931d013063ab73cfb8) Thanks [@dk-wei](https://github.com/dk-wei)! - Add toast notification kitchen sink page for next branch.
153
+
154
+ - [#283](https://github.com/dsv-rp/DDS/pull/283) [`69ba47f`](https://github.com/dsv-rp/DDS/commit/69ba47f47d6e93ece20e45f2317da1d21d97b9ee) Thanks [@dk-wei](https://github.com/dk-wei)! - Add select kitchen sink page.
155
+
156
+ - [#270](https://github.com/dsv-rp/DDS/pull/270) [`fcab6cd`](https://github.com/dsv-rp/DDS/commit/fcab6cd5c0b6b9a6e37a54620a67b8542b88a2b6) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Icon: Update the actual size definitions in the code to match the Figma specifications.
157
+
158
+ - [#302](https://github.com/dsv-rp/DDS/pull/302) [`1ebe8a6`](https://github.com/dsv-rp/DDS/commit/1ebe8a636145dadc366a0fb066c77de784725a74) Thanks [@dk-wei](https://github.com/dk-wei)! - Table Cell (Storybook): Added kitchen sink.
159
+
160
+ - [#276](https://github.com/dsv-rp/DDS/pull/276) [`bc590c1`](https://github.com/dsv-rp/DDS/commit/bc590c1ae3b4c7d2d6720e615270abdc80097ae5) Thanks [@dk-wei](https://github.com/dk-wei)! - Add progress indicator item kitchen sink page for next version.
161
+
162
+ - [#296](https://github.com/dsv-rp/DDS/pull/296) [`1522517`](https://github.com/dsv-rp/DDS/commit/1522517ca379caf3cd487c93932eb5ef7d0ed2b2) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Fixed an issue where the menu popup could not be closed on touch devices under certain conditions. (DDS-2736)
163
+
164
+ - [#295](https://github.com/dsv-rp/DDS/pull/295) [`e8739ed`](https://github.com/dsv-rp/DDS/commit/e8739edffde9e6a58bb5b4bb406eb6e2e28362ef) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Toast Notification (Storybook): Changed control type to "date" for `timestamp` property.
165
+ Inline Notification (Storybook): Changed control type to "date" for `timestamp` property.
166
+
167
+ - [#265](https://github.com/dsv-rp/DDS/pull/265) [`f6f39c7`](https://github.com/dsv-rp/DDS/commit/f6f39c751a1a90fc1aca48aed9a774b6e4f7520d) Thanks [@dk-wei](https://github.com/dk-wei)! - Add icon kitchen sink page to the next branch.
168
+
169
+ - [#292](https://github.com/dsv-rp/DDS/pull/292) [`4730869`](https://github.com/dsv-rp/DDS/commit/47308699e3628c4ccd337f4239ef57c45413c551) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Tree: Updated the documentation regarding the `selectedItems` property.
170
+ Tree Section: Updated the documentation regarding the `value` property.
171
+ Tree Item: Updated the documentation regarding the `value` property.
172
+
173
+ - [#272](https://github.com/dsv-rp/DDS/pull/272) [`e0d3723`](https://github.com/dsv-rp/DDS/commit/e0d37231cb0f0ad7fb15b814071014652fc9f359) Thanks [@dk-wei](https://github.com/dk-wei)! - - Add pagination kitchen sink page for next version.
174
+
175
+ - [#279](https://github.com/dsv-rp/DDS/pull/279) [`7b8867a`](https://github.com/dsv-rp/DDS/commit/7b8867af801e71f09a658e805a524be8c5896f04) Thanks [@dk-wei](https://github.com/dk-wei)! - Add radio group kitchen sink page.
176
+
177
+ - [#264](https://github.com/dsv-rp/DDS/pull/264) [`9bc7b5e`](https://github.com/dsv-rp/DDS/commit/9bc7b5efe162e52d1c1c96a959e42b5344cc9c26) Thanks [@dk-wei](https://github.com/dk-wei)! - Add Icon button Kitchen Sink page for next version.
178
+
179
+ - [#294](https://github.com/dsv-rp/DDS/pull/294) [`1823167`](https://github.com/dsv-rp/DDS/commit/18231671a77b1d8adbf504445d8a07e6114f2891) Thanks [@dk-wei](https://github.com/dk-wei)! - -Add tree section kitchen sink page.
180
+
181
+ - [#280](https://github.com/dsv-rp/DDS/pull/280) [`d29bc53`](https://github.com/dsv-rp/DDS/commit/d29bc535c1e89371fb56242fe500ac46f187557b) Thanks [@yodas7](https://github.com/yodas7)! - Fix sticky hover appearance on touch devices. (DDS-2676)
182
+
183
+ - [#278](https://github.com/dsv-rp/DDS/pull/278) [`fcd72f5`](https://github.com/dsv-rp/DDS/commit/fcd72f540f62c298fa93c9472f99aebec2f79a60) Thanks [@dk-wei](https://github.com/dk-wei)! - - Add radio kitchen sink page for next version.
184
+
185
+ - [#266](https://github.com/dsv-rp/DDS/pull/266) [`d214c31`](https://github.com/dsv-rp/DDS/commit/d214c31c77e4df43149bac8a1a7c6f7457a3533c) Thanks [@dk-wei](https://github.com/dk-wei)! - Add list item kitchen sink page for next version
186
+
187
+ - [#299](https://github.com/dsv-rp/DDS/pull/299) [`977cac8`](https://github.com/dsv-rp/DDS/commit/977cac81534d6fcf14acffc24ef3650104e3af66) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Date Picker: Added a focus trap. (DDS-2350)
188
+
189
+ - [#286](https://github.com/dsv-rp/DDS/pull/286) [`9e69012`](https://github.com/dsv-rp/DDS/commit/9e6901220162717d03dccdccb92db351282a24e7) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Storybook: Adjusted the Storybook viewport to remove horizontal padding when a story is displayed in a mobile-sized window. (DDS-2724)
190
+ Carousel (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
191
+ Carousel Item (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
192
+ Modal Header (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
193
+ Modal Footer (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
194
+ Progress Indicator Item: Adjusted minimum width to align with the latest design spec. (DDS-2724)
195
+ Progress Indicator Item (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
196
+ Tab Panels (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
197
+ Tree (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
198
+
199
+ - [#284](https://github.com/dsv-rp/DDS/pull/284) [`9f26649`](https://github.com/dsv-rp/DDS/commit/9f266495174698950393b0c97a304de0899482d9) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Chip (Storybook): Provide a control to manage the text content. (DDS-2538)
200
+ Combobox (Storybook): Fix example code. (DDS-2546)
201
+ Table (Storybook): Fix example code. (DDS-2546)
202
+ Text Mask Field (Storybook): Fix example code. (DDS-2546)
203
+ Dropdown (Storybook): Hide the event handlers in the Controls panel. (DDS-2481)
204
+ Dropdown Item (Storybook): Hide the event handlers in the Controls panel. (DDS-2481)
205
+ Pagination (Storybook): Hide the event handlers in the Controls panel. (DDS-2481)
206
+ Tooltip (Storybook): Hide the event handlers in the Controls panel. (DDS-2481)
207
+ Inline Notification: Update timestamp property's description. (DDS-2579)
208
+ Toast Notification: Update timestamp property's description. (DDS-2579)
209
+ Combobox: Fixed an issue where the selection icon was positioned at the far left edge of the item when an empty string was selected in the ComboBox dropdown. (DDS-2543)
210
+ Combobox: Fixed an accessibility issue regarding the inability to apply `aria-controls` to the ID of an element whose visibility is uncertain. (DDS-2545)
211
+ Dropdown: Fixed an accessibility issue regarding the inability to apply `aria-controls` to the ID of an element whose visibility is uncertain. (DDS-2545)
212
+ Date Picker: Add a disabled story. (DDS-2511)
213
+
214
+ - [#285](https://github.com/dsv-rp/DDS/pull/285) [`7d7d575`](https://github.com/dsv-rp/DDS/commit/7d7d575ebfa497a3ce5b0322014216ec5724dd85) Thanks [@dk-wei](https://github.com/dk-wei)! - Add toggle kitchen sink page.
215
+
216
+ - [#290](https://github.com/dsv-rp/DDS/pull/290) [`7df4f58`](https://github.com/dsv-rp/DDS/commit/7df4f583fb3153aae478da6673183e8c2189e737) Thanks [@dk-wei](https://github.com/dk-wei)! - Add tree kitchen sink page for next branch.
217
+
218
+ - [#267](https://github.com/dsv-rp/DDS/pull/267) [`e117a24`](https://github.com/dsv-rp/DDS/commit/e117a24096cee964e40948350c283153ea88f704) Thanks [@dk-wei](https://github.com/dk-wei)! - Add list kitchen sink page for DDS new version.
219
+
3
220
  ## 1.3.2
4
221
 
5
222
  ### Patch Changes
@@ -1,8 +1,89 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const lit = require("lit");
4
+ const globalNameToKeyIndexMap = /* @__PURE__ */ new Map();
5
+ function ensureGlobalKeyIndex(name) {
6
+ let key = globalNameToKeyIndexMap.get(name);
7
+ if (!key) {
8
+ key = Symbol(`__dds_backing_property_${String(name)}`);
9
+ globalNameToKeyIndexMap.set(name, key);
10
+ }
11
+ return key;
12
+ }
4
13
  const _DDSElement = class _DDSElement extends lit.LitElement {
14
+ /**
15
+ * Override of LitElement's getPropertyDescriptor to add support for fallback values
16
+ * and property validation.
17
+ *
18
+ * @param name - The property name (e.g., "value", "disabled")
19
+ * @param key - The backing property key used for internal storage (generated by Lit)
20
+ * @param options - DDS property declaration options including fallbackValue and isAllowedValue
21
+ * @returns Property descriptor with enhanced getter/setter logic
22
+ */
23
+ static getPropertyDescriptor(name, key, { fallbackValue, isAllowedValue, ...options }) {
24
+ const keyIndex = ensureGlobalKeyIndex(name);
25
+ if (this[keyIndex] != null && this[keyIndex] !== key) {
26
+ throw new Error(
27
+ `Property name "${String(name)}" is already mapped to a different backing property key.`
28
+ );
29
+ }
30
+ Object.defineProperty(this, keyIndex, {
31
+ value: key,
32
+ writable: false,
33
+ configurable: false,
34
+ enumerable: false
35
+ });
36
+ const orgDescriptor = super.getPropertyDescriptor(name, key, options);
37
+ if (!orgDescriptor || fallbackValue === void 0 && isAllowedValue == null) {
38
+ return orgDescriptor;
39
+ }
40
+ return {
41
+ get() {
42
+ const orgValue = orgDescriptor.get.call(this);
43
+ return orgValue === void 0 ? fallbackValue : orgValue;
44
+ },
45
+ set(value) {
46
+ const isValid = isAllowedValue == null || value != null && isAllowedValue(value);
47
+ orgDescriptor.set.call(
48
+ this,
49
+ // Convert a nullish value or an invalid value to `undefined` before setting.
50
+ // This `undefined` will be replaced with `fallbackValue` in the getter above (if provided).
51
+ // We cannot use `fallbackValue` here since it prevents reflection when the user tries to set the same value as `fallbackValue` next time.
52
+ isValid ? value : void 0
53
+ );
54
+ },
55
+ configurable: true,
56
+ enumerable: true
57
+ };
58
+ }
59
+ /**
60
+ * Retrieves the backing property value for a given property name.
61
+ * This allows access to the underlying stored value before any fallback logic is applied.
62
+ *
63
+ * Why is this needed?
64
+ * - The public property getter may return a fallback value when the actual value is undefined.
65
+ * - Sometimes we need to know if the property was explicitly set or if we're using a fallback.
66
+ * - This method provides access to the raw backing value stored by Lit.
67
+ *
68
+ * @template T - The property key type extending keyof this
69
+ *
70
+ * @param name - The property name to retrieve the backing value for
71
+ * @returns The raw backing property value or undefined if not found
72
+ */
73
+ getBackingProperty(name) {
74
+ const index = globalNameToKeyIndexMap.get(name);
75
+ if (!index) {
76
+ throw new Error(
77
+ `Backing property index for "${String(name)}" not found.`
78
+ );
79
+ }
80
+ const key = this.constructor[index];
81
+ if (key == null) {
82
+ throw new Error(`Backing property key for "${String(name)}" not found.`);
83
+ }
84
+ return this[key];
85
+ }
5
86
  };
6
- _DDSElement.version = "1.3.2";
87
+ _DDSElement.version = "1.4.0-next.1";
7
88
  let DDSElement = _DDSElement;
8
89
  exports.DDSElement = DDSElement;
@@ -1,4 +1,44 @@
1
1
  import { LitElement } from 'lit';
2
+ import { DDSPropertyDeclaration } from "./dds-property.cjs";
3
+ /**
4
+ * Base class for all DDS (DAIKIN Design System) components.
5
+ * Extends LitElement with enhanced property handling capabilities including fallback values
6
+ * and property validation.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * class MyComponent extends DDSElement {
11
+ * @property({ reflect: true, fallbackValue: "" })
12
+ * name!: string;
13
+ * }
14
+ * ```
15
+ */
2
16
  export declare class DDSElement extends LitElement {
17
+ /** The version of the DDS library */
3
18
  static readonly version: string;
19
+ /**
20
+ * Override of LitElement's getPropertyDescriptor to add support for fallback values
21
+ * and property validation.
22
+ *
23
+ * @param name - The property name (e.g., "value", "disabled")
24
+ * @param key - The backing property key used for internal storage (generated by Lit)
25
+ * @param options - DDS property declaration options including fallbackValue and isAllowedValue
26
+ * @returns Property descriptor with enhanced getter/setter logic
27
+ */
28
+ static getPropertyDescriptor(name: PropertyKey, key: string | symbol, { fallbackValue, isAllowedValue, ...options }: DDSPropertyDeclaration): PropertyDescriptor | undefined;
29
+ /**
30
+ * Retrieves the backing property value for a given property name.
31
+ * This allows access to the underlying stored value before any fallback logic is applied.
32
+ *
33
+ * Why is this needed?
34
+ * - The public property getter may return a fallback value when the actual value is undefined.
35
+ * - Sometimes we need to know if the property was explicitly set or if we're using a fallback.
36
+ * - This method provides access to the raw backing value stored by Lit.
37
+ *
38
+ * @template T - The property key type extending keyof this
39
+ *
40
+ * @param name - The property name to retrieve the backing value for
41
+ * @returns The raw backing property value or undefined if not found
42
+ */
43
+ protected getBackingProperty<T extends keyof this>(name: T): this[T] | undefined;
4
44
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const decorators_js = require("lit/decorators.js");
4
3
  const ddsElement = require("./dds-element.cjs");
4
+ const ddsProperty = require("./dds-property.cjs");
5
5
  var __defProp = Object.defineProperty;
6
6
  var __decorateClass = (decorators, target, key, kind) => {
7
7
  var result = void 0;
@@ -14,7 +14,6 @@ var __decorateClass = (decorators, target, key, kind) => {
14
14
  const _DDSFormElement = class _DDSFormElement extends ddsElement.DDSElement {
15
15
  constructor() {
16
16
  super();
17
- this.name = "";
18
17
  this.value = "";
19
18
  this.internals = this.attachInternals();
20
19
  }
@@ -73,13 +72,18 @@ const _DDSFormElement = class _DDSFormElement extends ddsElement.DDSElement {
73
72
  _DDSFormElement.formAssociated = true;
74
73
  let DDSFormElement = _DDSFormElement;
75
74
  __decorateClass([
76
- decorators_js.property({ type: String, reflect: true })
75
+ ddsProperty.property({ type: String, reflect: true, fallbackValue: "" })
77
76
  ], DDSFormElement.prototype, "name");
78
77
  __decorateClass([
79
- decorators_js.property({ type: String, reflect: true })
78
+ ddsProperty.property({ type: String })
80
79
  ], DDSFormElement.prototype, "value");
81
80
  __decorateClass([
82
- decorators_js.property({ type: String, reflect: true, attribute: "form" })
81
+ ddsProperty.property({
82
+ type: String,
83
+ reflect: true,
84
+ attribute: "form",
85
+ fallbackValue: ""
86
+ })
83
87
  ], DDSFormElement.prototype, "formAttr");
84
88
  const _DDSFormSubmitElement = class _DDSFormSubmitElement extends ddsElement.DDSElement {
85
89
  constructor() {
@@ -133,7 +137,12 @@ const _DDSFormSubmitElement = class _DDSFormSubmitElement extends ddsElement.DDS
133
137
  _DDSFormSubmitElement.formAssociated = true;
134
138
  let DDSFormSubmitElement = _DDSFormSubmitElement;
135
139
  __decorateClass([
136
- decorators_js.property({ type: String, reflect: true, attribute: "form" })
140
+ ddsProperty.property({
141
+ type: String,
142
+ reflect: true,
143
+ attribute: "form",
144
+ fallbackValue: ""
145
+ })
137
146
  ], DDSFormSubmitElement.prototype, "formAttr");
138
147
  exports.DDSFormElement = DDSFormElement;
139
148
  exports.DDSFormSubmitElement = DDSFormSubmitElement;
@@ -14,7 +14,7 @@ export declare class DDSFormElement extends DDSElement {
14
14
  * The form attribute specifies the form the form component belongs to.
15
15
  * The value of this attribute must be equal to the id attribute of a <form> element in the same document.
16
16
  */
17
- formAttr: string | undefined;
17
+ formAttr: string;
18
18
  protected internals: ElementInternals | null | undefined;
19
19
  constructor();
20
20
  /**
@@ -61,7 +61,7 @@ export declare class DDSFormSubmitElement extends DDSElement {
61
61
  * The form attribute specifies the form the form component belongs to.
62
62
  * The value of this attribute must be equal to the id attribute of a <form> element in the same document.
63
63
  */
64
- formAttr: string | undefined;
64
+ formAttr: string;
65
65
  protected internals: ElementInternals | null | undefined;
66
66
  constructor();
67
67
  /**
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const decorators_js = require("lit/decorators.js");
4
+ function property(options) {
5
+ return decorators_js.property(options);
6
+ }
7
+ function oneOf(values) {
8
+ return (value) => values.includes(value);
9
+ }
10
+ exports.oneOf = oneOf;
11
+ exports.property = property;
@@ -0,0 +1,92 @@
1
+ import { PropertyDeclaration } from 'lit';
2
+ /**
3
+ * Enhanced property declaration for DDS components that extends Lit's PropertyDeclaration
4
+ * with additional features for fallback values and property validation.
5
+ *
6
+ * The type ensures type safety with three possible configurations:
7
+ *
8
+ * 1. Standard property without fallback or validation
9
+ * 2. Reflected property with fallback value
10
+ * 3. Reflected property with both fallback value and validation function
11
+ *
12
+ * @template Type - The type of the property value
13
+ * @template TypeHint - Optional type hint for property conversion
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * // Property with fallback value
18
+ * @property({ reflect: true, fallbackValue: "default" })
19
+ * key!: string;
20
+ *
21
+ * // Property with validation
22
+ * @property({
23
+ * reflect: true,
24
+ * fallbackValue: 0,
25
+ * isAllowedValue: (v) => v >= 0
26
+ * })
27
+ * count!: number;
28
+ * ```
29
+ */
30
+ export type DDSPropertyDeclaration<Type = unknown, TypeHint = unknown> = PropertyDeclaration<Type, TypeHint> & ({
31
+ /** No fallback value specified */
32
+ fallbackValue?: undefined;
33
+ /** No validation function specified */
34
+ isAllowedValue?: undefined;
35
+ } | {
36
+ /** Property reflects to attribute (required for fallback) */
37
+ reflect: true;
38
+ /** Default value to use when property is undefined */
39
+ fallbackValue: Type;
40
+ /** No validation function specified */
41
+ isAllowedValue?: undefined;
42
+ } | {
43
+ /** Property reflects to attribute (required for fallback) */
44
+ reflect: true;
45
+ /** Default value to use when property is undefined */
46
+ fallbackValue: Type;
47
+ /** Function to validate if a value is allowed for this property */
48
+ isAllowedValue: (value: Type) => boolean;
49
+ });
50
+ /**
51
+ * Property decorator for DDS components that enhances Lit's `@property` decorator
52
+ * with additional features like fallback values and property validation.
53
+ *
54
+ * This decorator should be used instead of Lit's `@property` for DDS components
55
+ * that need enhanced property handling capabilities.
56
+ *
57
+ * @param options - DDS property declaration options
58
+ * @returns Property decorator function
59
+ *
60
+ * @example
61
+ * ```typescript
62
+ * class MyComponent extends DDSElement {
63
+ * // Basic property
64
+ * @property({ type: String })
65
+ * label = "";
66
+ *
67
+ * // Property with fallback value
68
+ * @property({ reflect: true, fallbackValue: "default" })
69
+ * value!: string;
70
+ *
71
+ * // Property with validation
72
+ * @property({
73
+ * reflect: true,
74
+ * fallbackValue: 0,
75
+ * isAllowedValue: (v) => v >= 0
76
+ * })
77
+ * count!: number;
78
+ * }
79
+ * ```
80
+ */
81
+ export declare function property(options?: DDSPropertyDeclaration): PropertyDecorator;
82
+ /**
83
+ * Creates a validation function that checks if a value is one of the allowed values.
84
+ *
85
+ * This helper function is commonly used with the `isAllowedValue` option in property
86
+ * declarations to restrict property values to a predefined set of allowed values.
87
+ *
88
+ * @template T - The type of the allowed values
89
+ * @param values - Array of allowed values
90
+ * @returns Validation function that returns true if the value is in the allowed values array
91
+ */
92
+ export declare function oneOf<T>(values: readonly T[]): (value: unknown) => boolean;
@@ -2,10 +2,13 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const ddsElement = require("./dds-element.cjs");
4
4
  const ddsFormElement = require("./dds-form-element.cjs");
5
+ const ddsProperty = require("./dds-property.cjs");
5
6
  const decorators = require("./decorators.cjs");
6
7
  const define = require("./define.cjs");
7
8
  exports.DDSElement = ddsElement.DDSElement;
8
9
  exports.DDSFormElement = ddsFormElement.DDSFormElement;
9
10
  exports.DDSFormSubmitElement = ddsFormElement.DDSFormSubmitElement;
11
+ exports.oneOf = ddsProperty.oneOf;
12
+ exports.property = ddsProperty.property;
10
13
  exports.ddsElement = decorators.ddsElement;
11
14
  exports.defineDDSElement = define.defineDDSElement;
@@ -1,4 +1,5 @@
1
1
  export * from "./dds-element.cjs";
2
2
  export * from "./dds-form-element.cjs";
3
+ export * from "./dds-property.cjs";
3
4
  export * from "./decorators.cjs";
4
5
  export * from "./define.cjs";
@@ -4,6 +4,7 @@ const lit = require("lit");
4
4
  const decorators_js = require("lit/decorators.js");
5
5
  const ddsElement = require("../../base/dds-element.cjs");
6
6
  require("../../base/dds-form-element.cjs");
7
+ const ddsProperty = require("../../base/dds-property.cjs");
7
8
  const decorators = require("../../base/decorators.cjs");
8
9
  require("../../base/define.cjs");
9
10
  const tailwind = require("../../tailwind.css.cjs");
@@ -76,10 +77,10 @@ exports.DaikinAccordion.styles = lit.css`
76
77
  }
77
78
  `;
78
79
  __decorateClass([
79
- decorators_js.property({ type: Array, attribute: false })
80
+ ddsProperty.property({ type: Array, attribute: false })
80
81
  ], exports.DaikinAccordion.prototype, "openItems", 2);
81
82
  __decorateClass([
82
- decorators_js.property({ type: Boolean, reflect: true })
83
+ ddsProperty.property({ type: Boolean, reflect: true })
83
84
  ], exports.DaikinAccordion.prototype, "exclusive", 2);
84
85
  __decorateClass([
85
86
  decorators_js.queryAssignedElements({ selector: "daikin-accordion-item" })
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const classVarianceAuthority = require("class-variance-authority");
4
4
  const lit = require("lit");
5
- const decorators_js = require("lit/decorators.js");
6
5
  const ref_js = require("lit/directives/ref.js");
7
6
  const ddsElement = require("../../base/dds-element.cjs");
8
7
  require("../../base/dds-form-element.cjs");
8
+ const ddsProperty = require("../../base/dds-property.cjs");
9
9
  const decorators = require("../../base/decorators.cjs");
10
10
  require("../../base/define.cjs");
11
11
  const tailwind = require("../../tailwind.css.cjs");
@@ -28,7 +28,7 @@ const cvaSummary = classVarianceAuthority.cva(
28
28
  "w-full",
29
29
  "min-h-12",
30
30
  "p-3",
31
- "break-all",
31
+ "natural-break",
32
32
  "text-left",
33
33
  "focus-visible:outline",
34
34
  "focus-visible:outline-2",
@@ -72,7 +72,6 @@ exports.DaikinAccordionItem = class DaikinAccordionItem extends ddsElement.DDSEl
72
72
  super(...arguments);
73
73
  this._summaryRef = ref_js.createRef();
74
74
  this._contentRef = ref_js.createRef();
75
- this.name = "";
76
75
  this.open = false;
77
76
  this.disabled = false;
78
77
  }
@@ -133,7 +132,7 @@ exports.DaikinAccordionItem = class DaikinAccordionItem extends ddsElement.DDSEl
133
132
  >
134
133
  <div class="overflow-hidden">
135
134
  <div class="pt-2 px-3 pb-3">
136
- <slot class="slotted:break-all"></slot>
135
+ <slot class="slotted:natural-break"></slot>
137
136
  </div>
138
137
  </div>
139
138
  </div>
@@ -176,13 +175,13 @@ exports.DaikinAccordionItem.styles = lit.css`
176
175
  }
177
176
  `;
178
177
  __decorateClass([
179
- decorators_js.property({ type: String, reflect: true })
178
+ ddsProperty.property({ type: String, reflect: true, fallbackValue: "" })
180
179
  ], exports.DaikinAccordionItem.prototype, "name", 2);
181
180
  __decorateClass([
182
- decorators_js.property({ type: Boolean, reflect: true })
181
+ ddsProperty.property({ type: Boolean, reflect: true })
183
182
  ], exports.DaikinAccordionItem.prototype, "open", 2);
184
183
  __decorateClass([
185
- decorators_js.property({ type: Boolean, reflect: true })
184
+ ddsProperty.property({ type: Boolean, reflect: true })
186
185
  ], exports.DaikinAccordionItem.prototype, "disabled", 2);
187
186
  exports.DaikinAccordionItem = __decorateClass([
188
187
  decorators.ddsElement("daikin-accordion-item")