@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
@@ -6,6 +6,7 @@ const decorators_js = require("lit/decorators.js");
6
6
  const unsafeHtml_js = require("lit/directives/unsafe-html.js");
7
7
  const ddsElement = require("../../base/dds-element.cjs");
8
8
  require("../../base/dds-form-element.cjs");
9
+ const ddsProperty = require("../../base/dds-property.cjs");
9
10
  const decorators = require("../../base/decorators.cjs");
10
11
  require("../../base/define.cjs");
11
12
  const iconRegistry = require("../../icon-registry.cjs");
@@ -63,9 +64,6 @@ exports.DaikinIcon = class DaikinIcon extends ddsElement.DDSElement {
63
64
  constructor() {
64
65
  super(...arguments);
65
66
  this.registry = iconRegistry.iconRegistry;
66
- this.icon = null;
67
- this.color = "default";
68
- this.size = "current";
69
67
  this._iconData = null;
70
68
  }
71
69
  connectedCallback() {
@@ -164,32 +162,47 @@ exports.DaikinIcon.styles = lit.css`
164
162
  }
165
163
 
166
164
  :host([size="s"]) {
167
- --ddc-icon-size: 12px;
165
+ --ddc-icon-size: 16px;
168
166
  }
169
167
 
170
168
  :host([size="m"]) {
171
- --ddc-icon-size: 16px;
169
+ --ddc-icon-size: 24px;
172
170
  }
173
171
 
174
172
  :host([size="l"]) {
175
- --ddc-icon-size: 20px;
173
+ --ddc-icon-size: 32px;
176
174
  }
177
175
 
178
176
  :host([size="xl"]) {
179
- --ddc-icon-size: 24px;
177
+ --ddc-icon-size: 40px;
180
178
  }
181
179
  `;
182
180
  __decorateClass([
183
- decorators_js.property({ attribute: false })
181
+ ddsProperty.property({ attribute: false })
184
182
  ], exports.DaikinIcon.prototype, "registry", 2);
185
183
  __decorateClass([
186
- decorators_js.property({ type: String, reflect: true })
184
+ ddsProperty.property({ type: String, reflect: true, fallbackValue: "" })
187
185
  ], exports.DaikinIcon.prototype, "icon", 2);
188
186
  __decorateClass([
189
- decorators_js.property({ type: String, reflect: true })
187
+ ddsProperty.property({
188
+ type: String,
189
+ reflect: true,
190
+ fallbackValue: "default",
191
+ isAllowedValue: ddsProperty.oneOf([
192
+ "default",
193
+ "current",
194
+ "black",
195
+ "white"
196
+ ])
197
+ })
190
198
  ], exports.DaikinIcon.prototype, "color", 2);
191
199
  __decorateClass([
192
- decorators_js.property({ type: String, reflect: true })
200
+ ddsProperty.property({
201
+ type: String,
202
+ reflect: true,
203
+ fallbackValue: "current",
204
+ isAllowedValue: ddsProperty.oneOf(["s", "m", "l", "xl", "current"])
205
+ })
193
206
  ], exports.DaikinIcon.prototype, "size", 2);
194
207
  __decorateClass([
195
208
  decorators_js.state()
@@ -78,6 +78,18 @@ declare const icons: {
78
78
  class: string;
79
79
  color: null;
80
80
  };
81
+ notification: {
82
+ class: string;
83
+ color: null;
84
+ };
85
+ neutral: {
86
+ class: string;
87
+ color: null;
88
+ };
89
+ download: {
90
+ class: string;
91
+ color: null;
92
+ };
81
93
  };
82
94
  export declare const iconList: string[];
83
95
  export type IconType = keyof typeof icons;
@@ -87,47 +99,44 @@ declare const cvaIcon: (props?: ({
87
99
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
88
100
  export type IconVariantProps = MergeVariantProps<typeof cvaIcon>;
89
101
  /**
90
- * The icon component is a versatile UI element used to display small graphical symbols or images that represent actions, objects, or concepts within an application.
91
- * The icon set is provided by DDS, and it also supports custom icons via the icon registry.
102
+ * A versatile UI element that displays small graphical symbols or images representing actions, objects, or concepts within an application.
103
+ * The component uses the predefined DDS icon set by default but also supports custom icons via the icon registry.
92
104
  *
93
- * For static DDS icons, the component uses the predefined icon set.
94
- * For custom icons, it can dynamically load icons from various sources using the icon registry.
105
+ * Predefined DDS icons are automatically rendered using optimized CSS classes.
106
+ * Custom icons can be dynamically loaded from various sources using the icon registry.
95
107
  *
96
- * This component supports multiple rendering modes for enhanced security when using custom icons:
108
+ * If an icon cannot be loaded, a blank space is displayed.
109
+ * In development builds, warnings are logged to the console for debugging.
97
110
  *
98
- * - **mask** (default for custom icons): Uses CSS mask-image for secure rendering with color customization
99
- * - **background**: Uses CSS background-image for secure rendering without color customization
100
- * - **inline**: Traditional SVG rendering using innerHTML (use with caution)
101
- * - **static** (for DDS icons): Uses predefined CSS classes from the DDS icon set
111
+ * ### Using Custom Icons
102
112
  *
103
- * **Security Note**: When using custom icons, especially with `inline` mode, ensure that the SVG content comes from trusted sources only.
104
- * Untrusted input may lead to XSS vulnerabilities. Consider using `mask` or `background` modes for better security.
113
+ * Custom icons must be registered with the icon registry before use.
114
+ * They can be registered individually or in bulk using pattern matching, with support for multiple rendering modes.
105
115
  *
106
- * To use a custom color, set the `color` property to `"current"` and apply the desired color using the CSS `color` property.
107
- * This works out-of-the-box for mask and static modes, and can be achieved for inline mode with additional effort. The background mode does not support custom colors.
116
+ * #### Rendering Modes
108
117
  *
109
- * If an icon cannot be loaded, a blank space will be displayed.
110
- * In development builds, warnings will be shown in the console for debugging.
118
+ * Custom icons support multiple rendering modes, each with different characteristics:
111
119
  *
112
- * @cssprop [--ddc-icon-size] - Icon size. If a value other than "current" is set for the `size` property, it will be automatically overwritten. This may also be set by a parent component such as `daikin-icon-button`.
120
+ * - **mask** (default): Uses CSS `mask-image` to render the icon.
121
+ * - Secure rendering method (SVG is converted to data URL).
122
+ * - Supports color customization via the `color` property or CSS `color`.
123
+ * - Best choice for most use cases with custom icons.
124
+ * - **background**: Uses CSS `background-image` to render the icon.
125
+ * - Secure rendering method (SVG is converted to data URL).
126
+ * - Does NOT support color customization; the icon is rendered with its original colors.
127
+ * - Use this mode when you need to preserve the original colors of multi-color SVG icons.
128
+ * - **inline**: Traditional SVG rendering using `innerHTML`.
129
+ * - Renders the raw SVG markup directly in the DOM.
130
+ * - Supports color customization if the SVG uses `currentColor` or inheritable properties.
131
+ * - ⚠️ **Security Warning**: Only use this mode with SVG content from trusted sources. Untrusted SVG content may lead to XSS vulnerabilities.
132
+ * - Use `mask` or `background` modes for better security.
113
133
  *
114
- * @example
134
+ * #### Registration Examples
115
135
  *
116
136
  * ```js
117
- * import "@daikin-oss/design-system-web-components/components/icon/index.js";
118
- * ```
119
- *
120
- * ```html
121
- * <!-- Using a DDS static icon -->
122
- * <daikin-icon icon="information" color="black" size="m"></daikin-icon>
123
- *
124
- * <!-- Using a custom icon -->
125
- * <daikin-icon icon="my-custom-icon" color="black" size="m"></daikin-icon>
126
- *
127
- * <script>
128
137
  * import { iconRegistry } from "@daikin-oss/design-system-web-components/icon-registry.js";
129
138
  *
130
- * // Register with mask mode for secure rendering
139
+ * // Register a single custom icon using mask mode for secure rendering and color customization
131
140
  * iconRegistry.register({
132
141
  * name: "my-custom-icon",
133
142
  * svg: {
@@ -137,39 +146,87 @@ export type IconVariantProps = MergeVariantProps<typeof cvaIcon>;
137
146
  * },
138
147
  * });
139
148
  *
140
- * // Register dynamic custom icons
149
+ * // Register multiple custom icons dynamically using pattern matching
141
150
  * iconRegistry.register({
142
- * match: /^custom-/,
151
+ * match: /^dynamic-custom-/,
143
152
  * async fetch: (name) => {
144
153
  * const response = await fetch(`/path/to/custom/icons/${name}.svg`);
145
154
  * if (!response.ok) {
146
155
  * throw new Error(`Failed to load custom icon "${name}"`);
147
156
  * }
157
+ * // You can return just the SVG content as a string (defaults to mask mode)
158
+ * // Or return an object with `svg`, `defaultColor` (optional), and `mode` (optional) for more control
148
159
  * return response.text();
149
160
  * },
150
161
  * });
151
- * </script>
162
+ * ```
163
+ *
164
+ * Once registered, you can use your custom icons in components:
165
+ *
166
+ * ```html
167
+ * <daikin-icon icon="my-custom-icon" color="current" size="m"></daikin-icon>
168
+ * <daikin-icon icon="dynamic-custom-icon-123" color="current" size="m"></daikin-icon>
169
+ * ```
170
+ *
171
+ * ### Changing Icon Color
172
+ *
173
+ * To use a custom color, set the `color` property to `"current"` and apply the desired color using the CSS `color` property:
174
+ *
175
+ * ```html
176
+ * <daikin-icon icon="information" color="current" style="color: red;"></daikin-icon>
177
+ * <!-- or you can inherit the color from a parent element -->
178
+ * <div style="color: blue;">
179
+ * <daikin-icon icon="information" color="current"></daikin-icon>
180
+ * </div>
181
+ * ```
182
+ *
183
+ * This behavior is supported natively for DDS icons and `mask` mode (the default for custom icons).
184
+ * In `inline` mode, color inheritance works only if the SVG uses `currentColor` or inheritable properties.
185
+ * Note that `background` mode does not support custom colors.
186
+ *
187
+ * @cssprop [--ddc-icon-size] - The size of the icon. If you set a value other than "current" for the `size` property, this will be automatically overwritten.
188
+ *
189
+ * @example
190
+ *
191
+ * ```js
192
+ * import "@daikin-oss/design-system-web-components/components/icon/index.js";
193
+ * ```
194
+ *
195
+ * ```html
196
+ * <!-- Using a DDS static icon -->
197
+ * <daikin-icon icon="information" color="current" size="m"></daikin-icon>
198
+ *
199
+ * <!-- Using a custom icon -->
200
+ * <daikin-icon icon="my-custom-icon" color="current" size="m"></daikin-icon>
152
201
  * ```
153
202
  */
154
203
  export declare class DaikinIcon extends DDSElement {
155
204
  static readonly styles: import('lit').CSSResult;
156
205
  /**
157
- * Specify icon registry instance.
158
- * Default is the global icon registry.
206
+ * The icon registry instance to use.
207
+ * Defaults to the global icon registry.
159
208
  */
160
209
  registry: IconRegistry;
161
210
  /**
162
- * Specify the name of the icon.
211
+ * The name of the icon to display.
163
212
  * Can be a static DDS icon name or a custom icon name registered in the icon registry.
164
213
  */
165
- icon: string | null;
214
+ icon: string;
166
215
  /**
167
- * Specify icon color
216
+ * The color of the icon.
217
+ * Use `"current"` for most cases.
218
+ *
219
+ * **This property will be removed in a future release.**
220
+ * To prepare for this change, start using `color="current"` and set icon colors via the CSS `color` property instead of using predefined color values.
221
+ *
222
+ * @default "default"
168
223
  */
169
224
  color: IconVariantProps["color"];
170
225
  /**
171
- * Specify the size of the icon.
172
- * If "current" is set, `--ddc-icon-size` CSS variable will be used. `--ddc-icon-size` may be set by the parent component such as `daikin-icon-button`.
226
+ * The size of the icon.
227
+ * If set to "current", the `--ddc-icon-size` CSS variable will be used. `--ddc-icon-size` may be set by a parent component such as `daikin-icon-button`.
228
+ *
229
+ * @default "current"
173
230
  */
174
231
  size: "s" | "m" | "l" | "xl" | "current";
175
232
  private _iconData;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const icons = { "logo-positive": { "class": "i-daikin-logo-positive", "color": null }, "logo-negative": { "class": "i-daikin-logo-negative", "color": null }, "alarm": { "class": "i-daikin-alarm", "color": null }, "close": { "class": "i-daikin-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-information", "color": null }, "error": { "class": "i-daikin-error", "color": null }, "success": { "class": "i-daikin-success", "color": null }, "warning": { "class": "i-daikin-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "profile": { "class": "i-daikin-profile", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null }, "negative": { "class": "i-daikin-error", "color": null }, "positive": { "class": "i-daikin-success", "color": null }, "cross": { "class": "i-daikin-close", "color": null } };
3
+ const icons = { "logo-positive": { "class": "i-daikin-logo-positive", "color": null }, "logo-negative": { "class": "i-daikin-logo-negative", "color": null }, "alarm": { "class": "i-daikin-alarm", "color": null }, "close": { "class": "i-daikin-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-information", "color": null }, "error": { "class": "i-daikin-error", "color": null }, "success": { "class": "i-daikin-success", "color": null }, "warning": { "class": "i-daikin-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "profile": { "class": "i-daikin-profile", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null }, "negative": { "class": "i-daikin-error", "color": null }, "positive": { "class": "i-daikin-success", "color": null }, "cross": { "class": "i-daikin-close", "color": null }, "notification": { "class": "i-daikin-notification", "color": null }, "neutral": { "class": "i-daikin-neutral", "color": null }, "download": { "class": "i-daikin-download", "color": null } };
4
4
  const iconsJson = {
5
5
  icons
6
6
  };
@@ -75,6 +75,18 @@ declare const _default: {
75
75
  "cross": {
76
76
  "class": "i-daikin-close",
77
77
  "color": null
78
+ },
79
+ "notification": {
80
+ "class": "i-daikin-notification",
81
+ "color": null
82
+ },
83
+ "neutral": {
84
+ "class": "i-daikin-neutral",
85
+ "color": null
86
+ },
87
+ "download": {
88
+ "class": "i-daikin-download",
89
+ "color": null
78
90
  }
79
91
  }
80
92
  }
@@ -6,6 +6,7 @@ const decorators_js = require("lit/decorators.js");
6
6
  const ifDefined_js = require("lit/directives/if-defined.js");
7
7
  require("../../base/dds-element.cjs");
8
8
  const ddsFormElement = require("../../base/dds-form-element.cjs");
9
+ const ddsProperty = require("../../base/dds-property.cjs");
9
10
  const decorators = require("../../base/decorators.cjs");
10
11
  require("../../base/define.cjs");
11
12
  const tailwind = require("../../tailwind.css.cjs");
@@ -80,11 +81,8 @@ const cvaIconButton = classVarianceAuthority.cva(
80
81
  exports.DaikinIconButton = class DaikinIconButton extends ddsFormElement.DDSFormSubmitElement {
81
82
  constructor() {
82
83
  super();
83
- this.variant = "fill";
84
- this.color = "default";
85
84
  this.disabled = false;
86
85
  this.href = null;
87
- this.type = "button";
88
86
  this.buttonAriaLabel = null;
89
87
  this.buttonRole = null;
90
88
  this.buttonAriaHaspopup = null;
@@ -111,6 +109,7 @@ exports.DaikinIconButton = class DaikinIconButton extends ddsFormElement.DDSForm
111
109
  return lit.html`<a
112
110
  class=${iconButtonCN}
113
111
  href=${ifDefined_js.ifDefined(!linkDisabled ? this.href ?? void 0 : void 0)}
112
+ tabindex=${ifDefined_js.ifDefined(this.getBackingProperty("buttonTabIndex"))}
114
113
  role=${ifDefined_js.ifDefined(
115
114
  this.buttonRole ?? (linkDisabled ? "link" : void 0)
116
115
  )}
@@ -124,10 +123,11 @@ exports.DaikinIconButton = class DaikinIconButton extends ddsFormElement.DDSForm
124
123
  <button
125
124
  class=${iconButtonCN}
126
125
  type=${this.type}
126
+ tabindex=${ifDefined_js.ifDefined(this.getBackingProperty("buttonTabIndex"))}
127
127
  aria-label=${this.buttonAriaLabel ?? ""}
128
128
  ?disabled=${this.disabled}
129
- aria-haspopup=${ifDefined_js.ifDefined(this.buttonAriaHaspopup ?? void 0)}
130
- aria-expanded=${ifDefined_js.ifDefined(this.buttonAriaExpanded ?? void 0)}
129
+ aria-expanded=${ifDefined_js.ifDefined(this.buttonAriaExpanded)}
130
+ aria-haspopup=${ifDefined_js.ifDefined(this.buttonAriaHaspopup)}
131
131
  >
132
132
  <slot class="icon-size-full"></slot>
133
133
  </button>
@@ -150,42 +150,85 @@ exports.DaikinIconButton.styles = lit.css`
150
150
  width: var(--ddc-icon-button-size, 2rem);
151
151
  height: var(--ddc-icon-button-size, 2rem);
152
152
  }
153
+
153
154
  :host([size="s"]) {
154
155
  --ddc-icon-button-size: 2rem; /* 32px */
155
156
  }
157
+
156
158
  :host([size="m"]) {
157
159
  --ddc-icon-button-size: 3rem; /* 48px */
158
160
  }
159
161
  `;
160
162
  __decorateClass([
161
- decorators_js.property({ type: String, reflect: true })
163
+ ddsProperty.property({
164
+ type: String,
165
+ reflect: true,
166
+ fallbackValue: "fill",
167
+ isAllowedValue: ddsProperty.oneOf([
168
+ "outline",
169
+ "fill",
170
+ "ghost"
171
+ ])
172
+ })
162
173
  ], exports.DaikinIconButton.prototype, "variant", 2);
163
174
  __decorateClass([
164
- decorators_js.property({ type: String, reflect: true })
175
+ ddsProperty.property({
176
+ type: String,
177
+ reflect: true,
178
+ fallbackValue: "default",
179
+ isAllowedValue: ddsProperty.oneOf([
180
+ "default",
181
+ "neutral",
182
+ "danger"
183
+ ])
184
+ })
165
185
  ], exports.DaikinIconButton.prototype, "color", 2);
166
186
  __decorateClass([
167
- decorators_js.property({ type: Boolean, reflect: true })
187
+ ddsProperty.property({ type: Boolean, reflect: true })
168
188
  ], exports.DaikinIconButton.prototype, "disabled", 2);
169
189
  __decorateClass([
170
- decorators_js.property({ type: String, reflect: true })
190
+ ddsProperty.property({ type: String, reflect: true })
171
191
  ], exports.DaikinIconButton.prototype, "href", 2);
172
192
  __decorateClass([
173
- decorators_js.property({ type: String, reflect: true })
193
+ ddsProperty.property({
194
+ type: String,
195
+ reflect: true,
196
+ fallbackValue: "button",
197
+ isAllowedValue: ddsProperty.oneOf([
198
+ "button",
199
+ "submit",
200
+ "reset",
201
+ "link"
202
+ ])
203
+ })
174
204
  ], exports.DaikinIconButton.prototype, "type", 2);
175
205
  __decorateClass([
176
- decorators_js.property({ type: String, reflect: true, attribute: "button-aria-label" })
206
+ ddsProperty.property({ type: String, reflect: true, attribute: "button-aria-label" })
177
207
  ], exports.DaikinIconButton.prototype, "buttonAriaLabel", 2);
178
208
  __decorateClass([
179
- decorators_js.property({ type: String, reflect: true, attribute: "button-role" })
209
+ ddsProperty.property({ type: String, reflect: true, attribute: "button-role" })
180
210
  ], exports.DaikinIconButton.prototype, "buttonRole", 2);
181
211
  __decorateClass([
182
- decorators_js.property({ type: String, reflect: true, attribute: "button-aria-haspopup" })
212
+ ddsProperty.property({ type: String, reflect: true, attribute: "button-aria-haspopup" })
183
213
  ], exports.DaikinIconButton.prototype, "buttonAriaHaspopup", 2);
184
214
  __decorateClass([
185
- decorators_js.property({ type: Boolean, reflect: true, attribute: "button-aria-expanded" })
215
+ ddsProperty.property({ type: String, reflect: true, attribute: "button-aria-expanded" })
186
216
  ], exports.DaikinIconButton.prototype, "buttonAriaExpanded", 2);
187
217
  __decorateClass([
188
- decorators_js.property({ type: String, reflect: true })
218
+ ddsProperty.property({
219
+ type: Number,
220
+ reflect: true,
221
+ attribute: "button-tabindex",
222
+ fallbackValue: 0
223
+ })
224
+ ], exports.DaikinIconButton.prototype, "buttonTabIndex", 2);
225
+ __decorateClass([
226
+ ddsProperty.property({
227
+ type: String,
228
+ reflect: true,
229
+ fallbackValue: "s",
230
+ isAllowedValue: ddsProperty.oneOf(["s", "m"])
231
+ })
189
232
  ], exports.DaikinIconButton.prototype, "size", 2);
190
233
  __decorateClass([
191
234
  decorators_js.query("button")
@@ -14,6 +14,9 @@ type IconButtonVariantProps = MergeVariantProps<typeof cvaIconButton>;
14
14
  * - About fill color - The icon should be able to accept the CSS `color` property.
15
15
  * - About size - The recommended width of the icon is 24px * 24px. Please make sure that the size of the icon you insert conforms to this, or please set the `width` and `height` properties of the icon to 100%.
16
16
  *
17
+ * @attr form - The form the component belongs to.
18
+ * @prop {String} formAttr - The form the component belongs to.
19
+ *
17
20
  * @fires click - A retargeted event of a [click event](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event) emitted from the inner `<button>` element. Suppressed if `disabled` is true,
18
21
  *
19
22
  * @slot - A slot for an icon. Place a daikin-icon element or something similar.
@@ -36,10 +39,14 @@ export declare class DaikinIconButton extends DDSFormSubmitElement {
36
39
  static readonly styles: import('lit').CSSResult;
37
40
  /**
38
41
  * Variant of the button.
42
+ *
43
+ * @default "fill"
39
44
  */
40
45
  variant: IconButtonVariantProps["variant"];
41
46
  /**
42
47
  * Color of the button.
48
+ *
49
+ * @default "default"
43
50
  */
44
51
  color: IconButtonVariantProps["color"];
45
52
  /**
@@ -55,6 +62,8 @@ export declare class DaikinIconButton extends DDSFormSubmitElement {
55
62
  /**
56
63
  * Type of the button.
57
64
  * If `"link"` is specified, the button will be rendered as an `<a>` element.
65
+ *
66
+ * @default "button"
58
67
  */
59
68
  type: "button" | "submit" | "reset" | "link";
60
69
  /**
@@ -74,13 +83,18 @@ export declare class DaikinIconButton extends DDSFormSubmitElement {
74
83
  * The aria-expanded of icon button when `type="button"`.
75
84
  * When used within a daikin-menu component, this property will be controlled by daikin-menu, so you don't need to specify it explicitly.
76
85
  */
77
- buttonAriaExpanded: boolean | null;
86
+ buttonAriaExpanded: "true" | "false" | "undefined" | null;
87
+ /**
88
+ * The `tabindex` of the button.
89
+ * If omitted or set to 0, the button follows the default tab flow.
90
+ * Setting it to -1 makes the button unreachable via the Tab key.
91
+ * This is useful when the button is part of a composite widget and accessible via other keys.
92
+ */
93
+ buttonTabIndex: number;
78
94
  /**
79
95
  * Size of the button.
80
96
  * - `s`: 32px * 32px
81
97
  * - `m`: 48px * 48px
82
- *
83
- * Default is `s`.
84
98
  */
85
99
  size: "s" | "m";
86
100
  private _button;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const daikinAccordion = require("./accordion/daikin-accordion.cjs");
4
4
  const daikinAccordionItem = require("./accordion-item/daikin-accordion-item.cjs");
5
5
  const daikinAvatar = require("./avatar/daikin-avatar.cjs");
6
+ const daikinBadge = require("./badge/daikin-badge.cjs");
6
7
  const daikinBreadcrumb = require("./breadcrumb/daikin-breadcrumb.cjs");
7
8
  const daikinBreadcrumbItem = require("./breadcrumb-item/daikin-breadcrumb-item.cjs");
8
9
  const daikinButton = require("./button/daikin-button.cjs");
@@ -40,6 +41,7 @@ const daikinRadio = require("./radio/daikin-radio.cjs");
40
41
  const daikinRadioGroup = require("./radio-group/daikin-radio-group.cjs");
41
42
  const daikinSelect = require("./select/daikin-select.cjs");
42
43
  const daikinSlider = require("./slider/daikin-slider.cjs");
44
+ const daikinStatusMessage = require("./status-message/daikin-status-message.cjs");
43
45
  const daikinTab = require("./tab/daikin-tab.cjs");
44
46
  const daikinTabPanels = require("./tab-panels/daikin-tab-panels.cjs");
45
47
  const daikinTable = require("./table/daikin-table.cjs");
@@ -69,6 +71,10 @@ Object.defineProperty(exports, "DaikinAvatar", {
69
71
  enumerable: true,
70
72
  get: () => daikinAvatar.DaikinAvatar
71
73
  });
74
+ Object.defineProperty(exports, "DaikinBadge", {
75
+ enumerable: true,
76
+ get: () => daikinBadge.DaikinBadge
77
+ });
72
78
  Object.defineProperty(exports, "DaikinBreadcrumb", {
73
79
  enumerable: true,
74
80
  get: () => daikinBreadcrumb.DaikinBreadcrumb
@@ -219,6 +225,10 @@ Object.defineProperty(exports, "DaikinSlider", {
219
225
  enumerable: true,
220
226
  get: () => daikinSlider.DaikinSlider
221
227
  });
228
+ Object.defineProperty(exports, "DaikinStatusMessage", {
229
+ enumerable: true,
230
+ get: () => daikinStatusMessage.DaikinStatusMessage
231
+ });
222
232
  Object.defineProperty(exports, "DaikinTab", {
223
233
  enumerable: true,
224
234
  get: () => daikinTab.DaikinTab
@@ -1,6 +1,7 @@
1
1
  export * from "./accordion/index.cjs";
2
2
  export * from "./accordion-item/index.cjs";
3
3
  export * from "./avatar/index.cjs";
4
+ export * from "./badge/index.cjs";
4
5
  export * from "./breadcrumb/index.cjs";
5
6
  export * from "./breadcrumb-item/index.cjs";
6
7
  export * from "./button/index.cjs";
@@ -38,6 +39,7 @@ export * from "./radio/index.cjs";
38
39
  export * from "./radio-group/index.cjs";
39
40
  export * from "./select/index.cjs";
40
41
  export * from "./slider/index.cjs";
42
+ export * from "./status-message/index.cjs";
41
43
  export * from "./tab/index.cjs";
42
44
  export * from "./tab-panels/index.cjs";
43
45
  export * from "./table/index.cjs";