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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (443) hide show
  1. package/CHANGELOG.md +345 -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/define.cjs +2 -0
  9. package/dist/cjs/base/index.cjs +3 -0
  10. package/dist/cjs/base/index.d.cts +1 -0
  11. package/dist/cjs/components/accordion/daikin-accordion.cjs +3 -2
  12. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +6 -7
  13. package/dist/cjs/components/avatar/daikin-avatar.cjs +20 -15
  14. package/dist/cjs/components/avatar/daikin-avatar.d.cts +3 -1
  15. package/dist/cjs/components/badge/daikin-badge.cjs +37 -16
  16. package/dist/cjs/components/badge/daikin-badge.d.cts +11 -5
  17. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +33 -7
  18. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +38 -6
  19. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +52 -19
  20. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +3 -1
  21. package/dist/cjs/components/button/daikin-button.cjs +57 -16
  22. package/dist/cjs/components/button/daikin-button.d.cts +19 -3
  23. package/dist/cjs/components/calendar/daikin-calendar.cjs +8 -9
  24. package/dist/cjs/components/calendar/daikin-calendar.d.cts +5 -3
  25. package/dist/cjs/components/card/daikin-card.cjs +2 -2
  26. package/dist/cjs/components/card-footer/daikin-card-footer.cjs +1 -0
  27. package/dist/cjs/components/card-header/daikin-card-header.cjs +1 -0
  28. package/dist/cjs/components/carousel/daikin-carousel.cjs +2 -1
  29. package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +3 -2
  30. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +24 -10
  31. package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +12 -1
  32. package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +12 -3
  33. package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +2 -0
  34. package/dist/cjs/components/chip/daikin-chip.cjs +2 -1
  35. package/dist/cjs/components/combobox/daikin-combobox.cjs +29 -23
  36. package/dist/cjs/components/combobox/daikin-combobox.d.cts +9 -2
  37. package/dist/cjs/components/date-picker/daikin-date-picker.cjs +38 -24
  38. package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +13 -4
  39. package/dist/cjs/components/dropdown/daikin-dropdown.cjs +13 -13
  40. package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +7 -0
  41. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +5 -4
  42. package/dist/cjs/components/icon/daikin-icon.cjs +20 -7
  43. package/dist/cjs/components/icon/daikin-icon.d.cts +88 -39
  44. package/dist/cjs/components/icon/icons.json.cjs +1 -1
  45. package/dist/cjs/components/icon/icons.json.d.cts +4 -0
  46. package/dist/cjs/components/icon-button/daikin-icon-button.cjs +58 -15
  47. package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +18 -4
  48. package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +112 -11
  49. package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +4 -0
  50. package/dist/cjs/components/input-group/daikin-input-group.cjs +9 -8
  51. package/dist/cjs/components/link/daikin-link.cjs +28 -8
  52. package/dist/cjs/components/link/daikin-link.d.cts +11 -0
  53. package/dist/cjs/components/list/daikin-list.cjs +6 -2
  54. package/dist/cjs/components/list-item/daikin-list-item.cjs +19 -8
  55. package/dist/cjs/components/list-item/daikin-list-item.d.cts +4 -0
  56. package/dist/cjs/components/loading/daikin-loading.cjs +8 -3
  57. package/dist/cjs/components/logo/daikin-logo.cjs +18 -10
  58. package/dist/cjs/components/logo/daikin-logo.d.cts +4 -0
  59. package/dist/cjs/components/menu/daikin-menu.cjs +58 -19
  60. package/dist/cjs/components/menu/daikin-menu.d.cts +23 -1
  61. package/dist/cjs/components/modal/daikin-modal.cjs +11 -6
  62. package/dist/cjs/components/modal/daikin-modal.d.cts +2 -0
  63. package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +1 -0
  64. package/dist/cjs/components/modal-header/daikin-modal-header.cjs +3 -3
  65. package/dist/cjs/components/pagination/daikin-pagination.cjs +4 -4
  66. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +21 -9
  67. package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +4 -0
  68. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +2 -1
  69. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +11 -6
  70. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +2 -0
  71. package/dist/cjs/components/radio/daikin-radio.cjs +14 -9
  72. package/dist/cjs/components/radio/daikin-radio.d.cts +9 -0
  73. package/dist/cjs/components/radio-group/daikin-radio-group.cjs +15 -8
  74. package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +3 -1
  75. package/dist/cjs/components/select/daikin-select.cjs +4 -3
  76. package/dist/cjs/components/slider/daikin-slider.cjs +11 -9
  77. package/dist/cjs/components/slider/daikin-slider.d.cts +15 -0
  78. package/dist/cjs/components/status-message/daikin-status-message.cjs +23 -10
  79. package/dist/cjs/components/status-message/daikin-status-message.d.cts +4 -0
  80. package/dist/cjs/components/tab/daikin-tab.cjs +10 -4
  81. package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +4 -4
  82. package/dist/cjs/components/table/daikin-table.cjs +9 -8
  83. package/dist/cjs/components/table-cell/daikin-table-cell.cjs +12 -7
  84. package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +5 -3
  85. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +13 -5
  86. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
  87. package/dist/cjs/components/tabs/daikin-tabs.cjs +9 -3
  88. package/dist/cjs/components/tabs/daikin-tabs.d.cts +2 -0
  89. package/dist/cjs/components/text-area/daikin-text-area.cjs +15 -12
  90. package/dist/cjs/components/text-area/daikin-text-area.d.cts +9 -2
  91. package/dist/cjs/components/text-field/daikin-text-field.cjs +28 -31
  92. package/dist/cjs/components/text-field/daikin-text-field.d.cts +11 -2
  93. package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +22 -19
  94. package/dist/cjs/components/text-masked-field/daikin-text-masked-field.d.cts +9 -2
  95. package/dist/cjs/components/time-picker/daikin-time-picker.cjs +39 -18
  96. package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +23 -1
  97. package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +118 -13
  98. package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +11 -1
  99. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +14 -2
  100. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +3 -1
  101. package/dist/cjs/components/toggle/daikin-toggle.cjs +7 -6
  102. package/dist/cjs/components/toggle/daikin-toggle.d.cts +7 -0
  103. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +37 -13
  104. package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +9 -1
  105. package/dist/cjs/components/tree/daikin-tree.cjs +3 -2
  106. package/dist/cjs/components/tree-item/daikin-tree-item.cjs +6 -5
  107. package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +2 -0
  108. package/dist/cjs/components/tree-section/daikin-tree-section.cjs +6 -5
  109. package/dist/cjs/tailwind.css.cjs +1 -1
  110. package/dist/cjs/utils/notification-common.cjs +0 -94
  111. package/dist/cjs/utils/notification-common.d.cts +0 -13
  112. package/dist/cjs-dev/base/dds-element.cjs +92 -1
  113. package/dist/cjs-dev/base/dds-element.d.cts +40 -0
  114. package/dist/cjs-dev/base/dds-form-element.cjs +15 -6
  115. package/dist/cjs-dev/base/dds-form-element.d.cts +2 -2
  116. package/dist/cjs-dev/base/dds-property.cjs +11 -0
  117. package/dist/cjs-dev/base/dds-property.d.cts +92 -0
  118. package/dist/cjs-dev/base/define.cjs +2 -0
  119. package/dist/cjs-dev/base/index.cjs +3 -0
  120. package/dist/cjs-dev/base/index.d.cts +1 -0
  121. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +3 -2
  122. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +6 -7
  123. package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +20 -15
  124. package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +3 -1
  125. package/dist/cjs-dev/components/badge/daikin-badge.cjs +37 -16
  126. package/dist/cjs-dev/components/badge/daikin-badge.d.cts +11 -5
  127. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +33 -7
  128. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +38 -6
  129. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +52 -19
  130. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +3 -1
  131. package/dist/cjs-dev/components/button/daikin-button.cjs +57 -16
  132. package/dist/cjs-dev/components/button/daikin-button.d.cts +19 -3
  133. package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +8 -9
  134. package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +5 -3
  135. package/dist/cjs-dev/components/card/daikin-card.cjs +2 -2
  136. package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +1 -0
  137. package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +1 -0
  138. package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +2 -1
  139. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +3 -2
  140. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +24 -10
  141. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +12 -1
  142. package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +12 -3
  143. package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +2 -0
  144. package/dist/cjs-dev/components/chip/daikin-chip.cjs +2 -1
  145. package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +29 -23
  146. package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +9 -2
  147. package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +38 -24
  148. package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +13 -4
  149. package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +13 -13
  150. package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +7 -0
  151. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +5 -4
  152. package/dist/cjs-dev/components/icon/daikin-icon.cjs +20 -7
  153. package/dist/cjs-dev/components/icon/daikin-icon.d.cts +88 -39
  154. package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
  155. package/dist/cjs-dev/components/icon/icons.json.d.cts +4 -0
  156. package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +58 -15
  157. package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +18 -4
  158. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +112 -11
  159. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +4 -0
  160. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +9 -8
  161. package/dist/cjs-dev/components/link/daikin-link.cjs +28 -8
  162. package/dist/cjs-dev/components/link/daikin-link.d.cts +11 -0
  163. package/dist/cjs-dev/components/list/daikin-list.cjs +6 -2
  164. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +19 -8
  165. package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +4 -0
  166. package/dist/cjs-dev/components/loading/daikin-loading.cjs +8 -3
  167. package/dist/cjs-dev/components/logo/daikin-logo.cjs +18 -10
  168. package/dist/cjs-dev/components/logo/daikin-logo.d.cts +4 -0
  169. package/dist/cjs-dev/components/menu/daikin-menu.cjs +58 -19
  170. package/dist/cjs-dev/components/menu/daikin-menu.d.cts +23 -1
  171. package/dist/cjs-dev/components/modal/daikin-modal.cjs +11 -6
  172. package/dist/cjs-dev/components/modal/daikin-modal.d.cts +2 -0
  173. package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +1 -0
  174. package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +3 -3
  175. package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +4 -4
  176. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +21 -9
  177. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +4 -0
  178. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +2 -1
  179. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +11 -6
  180. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +2 -0
  181. package/dist/cjs-dev/components/radio/daikin-radio.cjs +14 -9
  182. package/dist/cjs-dev/components/radio/daikin-radio.d.cts +9 -0
  183. package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +15 -8
  184. package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +3 -1
  185. package/dist/cjs-dev/components/select/daikin-select.cjs +4 -3
  186. package/dist/cjs-dev/components/slider/daikin-slider.cjs +11 -9
  187. package/dist/cjs-dev/components/slider/daikin-slider.d.cts +15 -0
  188. package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +23 -10
  189. package/dist/cjs-dev/components/status-message/daikin-status-message.d.cts +4 -0
  190. package/dist/cjs-dev/components/tab/daikin-tab.cjs +10 -4
  191. package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +4 -4
  192. package/dist/cjs-dev/components/table/daikin-table.cjs +9 -8
  193. package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +12 -7
  194. package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +5 -3
  195. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +13 -5
  196. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
  197. package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +9 -3
  198. package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +2 -0
  199. package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +15 -12
  200. package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +9 -2
  201. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +28 -31
  202. package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +11 -2
  203. package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +22 -19
  204. package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.d.cts +9 -2
  205. package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +39 -18
  206. package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +23 -1
  207. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +118 -13
  208. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +11 -1
  209. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +14 -2
  210. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +3 -1
  211. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +7 -6
  212. package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +7 -0
  213. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +37 -13
  214. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +9 -1
  215. package/dist/cjs-dev/components/tree/daikin-tree.cjs +3 -2
  216. package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +6 -5
  217. package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +2 -0
  218. package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +6 -5
  219. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  220. package/dist/cjs-dev/utils/notification-common.cjs +0 -94
  221. package/dist/cjs-dev/utils/notification-common.d.cts +0 -13
  222. package/dist/es/base/dds-element.d.ts +40 -0
  223. package/dist/es/base/dds-element.js +82 -1
  224. package/dist/es/base/dds-form-element.d.ts +2 -2
  225. package/dist/es/base/dds-form-element.js +15 -6
  226. package/dist/es/base/dds-property.d.ts +92 -0
  227. package/dist/es/base/dds-property.js +11 -0
  228. package/dist/es/base/define.js +2 -0
  229. package/dist/es/base/index.d.ts +1 -0
  230. package/dist/es/base/index.js +4 -1
  231. package/dist/es/components/accordion/daikin-accordion.js +2 -1
  232. package/dist/es/components/accordion-item/daikin-accordion-item.js +4 -5
  233. package/dist/es/components/avatar/daikin-avatar.d.ts +3 -1
  234. package/dist/es/components/avatar/daikin-avatar.js +18 -13
  235. package/dist/es/components/badge/daikin-badge.d.ts +11 -5
  236. package/dist/es/components/badge/daikin-badge.js +34 -13
  237. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +38 -6
  238. package/dist/es/components/breadcrumb/daikin-breadcrumb.js +33 -7
  239. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +3 -1
  240. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +48 -15
  241. package/dist/es/components/button/daikin-button.d.ts +19 -3
  242. package/dist/es/components/button/daikin-button.js +54 -13
  243. package/dist/es/components/calendar/daikin-calendar.d.ts +5 -3
  244. package/dist/es/components/calendar/daikin-calendar.js +7 -8
  245. package/dist/es/components/card/daikin-card.js +1 -1
  246. package/dist/es/components/card-footer/daikin-card-footer.js +1 -0
  247. package/dist/es/components/card-header/daikin-card-header.js +1 -0
  248. package/dist/es/components/carousel/daikin-carousel.js +2 -1
  249. package/dist/es/components/carousel-item/daikin-carousel-item.js +2 -1
  250. package/dist/es/components/checkbox/daikin-checkbox.d.ts +12 -1
  251. package/dist/es/components/checkbox/daikin-checkbox.js +22 -8
  252. package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +2 -0
  253. package/dist/es/components/checkbox-group/daikin-checkbox-group.js +11 -2
  254. package/dist/es/components/chip/daikin-chip.js +2 -1
  255. package/dist/es/components/combobox/daikin-combobox.d.ts +9 -2
  256. package/dist/es/components/combobox/daikin-combobox.js +24 -18
  257. package/dist/es/components/date-picker/daikin-date-picker.d.ts +13 -4
  258. package/dist/es/components/date-picker/daikin-date-picker.js +35 -21
  259. package/dist/es/components/dropdown/daikin-dropdown.d.ts +7 -0
  260. package/dist/es/components/dropdown/daikin-dropdown.js +7 -7
  261. package/dist/es/components/dropdown-item/daikin-dropdown-item.js +2 -1
  262. package/dist/es/components/icon/daikin-icon.d.ts +88 -39
  263. package/dist/es/components/icon/daikin-icon.js +20 -7
  264. package/dist/es/components/icon/icons.json.d.ts +4 -0
  265. package/dist/es/components/icon/icons.json.js +1 -1
  266. package/dist/es/components/icon-button/daikin-icon-button.d.ts +18 -4
  267. package/dist/es/components/icon-button/daikin-icon-button.js +54 -11
  268. package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +4 -0
  269. package/dist/es/components/inline-notification/daikin-inline-notification.js +109 -8
  270. package/dist/es/components/input-group/daikin-input-group.js +3 -2
  271. package/dist/es/components/link/daikin-link.d.ts +11 -0
  272. package/dist/es/components/link/daikin-link.js +24 -4
  273. package/dist/es/components/list/daikin-list.js +6 -2
  274. package/dist/es/components/list-item/daikin-list-item.d.ts +4 -0
  275. package/dist/es/components/list-item/daikin-list-item.js +17 -6
  276. package/dist/es/components/loading/daikin-loading.js +7 -2
  277. package/dist/es/components/logo/daikin-logo.d.ts +4 -0
  278. package/dist/es/components/logo/daikin-logo.js +17 -9
  279. package/dist/es/components/menu/daikin-menu.d.ts +23 -1
  280. package/dist/es/components/menu/daikin-menu.js +58 -19
  281. package/dist/es/components/modal/daikin-modal.d.ts +2 -0
  282. package/dist/es/components/modal/daikin-modal.js +8 -3
  283. package/dist/es/components/modal-footer/daikin-modal-footer.js +1 -0
  284. package/dist/es/components/modal-header/daikin-modal-header.js +2 -2
  285. package/dist/es/components/pagination/daikin-pagination.js +1 -1
  286. package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +4 -0
  287. package/dist/es/components/progress-bar/daikin-progress-bar.js +19 -7
  288. package/dist/es/components/progress-indicator/daikin-progress-indicator.js +2 -1
  289. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +2 -0
  290. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +11 -6
  291. package/dist/es/components/radio/daikin-radio.d.ts +9 -0
  292. package/dist/es/components/radio/daikin-radio.js +11 -6
  293. package/dist/es/components/radio-group/daikin-radio-group.d.ts +3 -1
  294. package/dist/es/components/radio-group/daikin-radio-group.js +14 -7
  295. package/dist/es/components/select/daikin-select.js +2 -1
  296. package/dist/es/components/slider/daikin-slider.d.ts +15 -0
  297. package/dist/es/components/slider/daikin-slider.js +11 -9
  298. package/dist/es/components/status-message/daikin-status-message.d.ts +4 -0
  299. package/dist/es/components/status-message/daikin-status-message.js +21 -8
  300. package/dist/es/components/tab/daikin-tab.js +9 -3
  301. package/dist/es/components/tab-panels/daikin-tab-panels.js +2 -2
  302. package/dist/es/components/table/daikin-table.js +2 -1
  303. package/dist/es/components/table-cell/daikin-table-cell.d.ts +5 -3
  304. package/dist/es/components/table-cell/daikin-table-cell.js +12 -7
  305. package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
  306. package/dist/es/components/table-header-cell/daikin-table-header-cell.js +11 -3
  307. package/dist/es/components/tabs/daikin-tabs.d.ts +2 -0
  308. package/dist/es/components/tabs/daikin-tabs.js +10 -4
  309. package/dist/es/components/text-area/daikin-text-area.d.ts +9 -2
  310. package/dist/es/components/text-area/daikin-text-area.js +11 -8
  311. package/dist/es/components/text-field/daikin-text-field.d.ts +11 -2
  312. package/dist/es/components/text-field/daikin-text-field.js +18 -21
  313. package/dist/es/components/text-masked-field/daikin-text-masked-field.d.ts +9 -2
  314. package/dist/es/components/text-masked-field/daikin-text-masked-field.js +15 -12
  315. package/dist/es/components/time-picker/daikin-time-picker.d.ts +23 -1
  316. package/dist/es/components/time-picker/daikin-time-picker.js +37 -16
  317. package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +11 -1
  318. package/dist/es/components/toast-notification/daikin-toast-notification.js +112 -7
  319. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +3 -1
  320. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +15 -3
  321. package/dist/es/components/toggle/daikin-toggle.d.ts +7 -0
  322. package/dist/es/components/toggle/daikin-toggle.js +5 -4
  323. package/dist/es/components/tooltip/daikin-tooltip.d.ts +9 -1
  324. package/dist/es/components/tooltip/daikin-tooltip.js +36 -12
  325. package/dist/es/components/tree/daikin-tree.js +2 -1
  326. package/dist/es/components/tree-item/daikin-tree-item.d.ts +2 -0
  327. package/dist/es/components/tree-item/daikin-tree-item.js +2 -1
  328. package/dist/es/components/tree-section/daikin-tree-section.js +2 -1
  329. package/dist/es/tailwind.css.js +1 -1
  330. package/dist/es/utils/notification-common.d.ts +0 -13
  331. package/dist/es/utils/notification-common.js +0 -94
  332. package/dist/es-dev/base/dds-element.d.ts +40 -0
  333. package/dist/es-dev/base/dds-element.js +92 -1
  334. package/dist/es-dev/base/dds-form-element.d.ts +2 -2
  335. package/dist/es-dev/base/dds-form-element.js +15 -6
  336. package/dist/es-dev/base/dds-property.d.ts +92 -0
  337. package/dist/es-dev/base/dds-property.js +11 -0
  338. package/dist/es-dev/base/define.js +2 -0
  339. package/dist/es-dev/base/index.d.ts +1 -0
  340. package/dist/es-dev/base/index.js +4 -1
  341. package/dist/es-dev/components/accordion/daikin-accordion.js +2 -1
  342. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +4 -5
  343. package/dist/es-dev/components/avatar/daikin-avatar.d.ts +3 -1
  344. package/dist/es-dev/components/avatar/daikin-avatar.js +18 -13
  345. package/dist/es-dev/components/badge/daikin-badge.d.ts +11 -5
  346. package/dist/es-dev/components/badge/daikin-badge.js +34 -13
  347. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +38 -6
  348. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +33 -7
  349. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +3 -1
  350. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +48 -15
  351. package/dist/es-dev/components/button/daikin-button.d.ts +19 -3
  352. package/dist/es-dev/components/button/daikin-button.js +54 -13
  353. package/dist/es-dev/components/calendar/daikin-calendar.d.ts +5 -3
  354. package/dist/es-dev/components/calendar/daikin-calendar.js +7 -8
  355. package/dist/es-dev/components/card/daikin-card.js +1 -1
  356. package/dist/es-dev/components/card-footer/daikin-card-footer.js +1 -0
  357. package/dist/es-dev/components/card-header/daikin-card-header.js +1 -0
  358. package/dist/es-dev/components/carousel/daikin-carousel.js +2 -1
  359. package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +2 -1
  360. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +12 -1
  361. package/dist/es-dev/components/checkbox/daikin-checkbox.js +22 -8
  362. package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +2 -0
  363. package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +11 -2
  364. package/dist/es-dev/components/chip/daikin-chip.js +2 -1
  365. package/dist/es-dev/components/combobox/daikin-combobox.d.ts +9 -2
  366. package/dist/es-dev/components/combobox/daikin-combobox.js +24 -18
  367. package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +13 -4
  368. package/dist/es-dev/components/date-picker/daikin-date-picker.js +35 -21
  369. package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +7 -0
  370. package/dist/es-dev/components/dropdown/daikin-dropdown.js +7 -7
  371. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +2 -1
  372. package/dist/es-dev/components/icon/daikin-icon.d.ts +88 -39
  373. package/dist/es-dev/components/icon/daikin-icon.js +20 -7
  374. package/dist/es-dev/components/icon/icons.json.d.ts +4 -0
  375. package/dist/es-dev/components/icon/icons.json.js +1 -1
  376. package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +18 -4
  377. package/dist/es-dev/components/icon-button/daikin-icon-button.js +54 -11
  378. package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +4 -0
  379. package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +109 -8
  380. package/dist/es-dev/components/input-group/daikin-input-group.js +3 -2
  381. package/dist/es-dev/components/link/daikin-link.d.ts +11 -0
  382. package/dist/es-dev/components/link/daikin-link.js +24 -4
  383. package/dist/es-dev/components/list/daikin-list.js +6 -2
  384. package/dist/es-dev/components/list-item/daikin-list-item.d.ts +4 -0
  385. package/dist/es-dev/components/list-item/daikin-list-item.js +17 -6
  386. package/dist/es-dev/components/loading/daikin-loading.js +7 -2
  387. package/dist/es-dev/components/logo/daikin-logo.d.ts +4 -0
  388. package/dist/es-dev/components/logo/daikin-logo.js +17 -9
  389. package/dist/es-dev/components/menu/daikin-menu.d.ts +23 -1
  390. package/dist/es-dev/components/menu/daikin-menu.js +58 -19
  391. package/dist/es-dev/components/modal/daikin-modal.d.ts +2 -0
  392. package/dist/es-dev/components/modal/daikin-modal.js +8 -3
  393. package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +1 -0
  394. package/dist/es-dev/components/modal-header/daikin-modal-header.js +2 -2
  395. package/dist/es-dev/components/pagination/daikin-pagination.js +1 -1
  396. package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +4 -0
  397. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +19 -7
  398. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +2 -1
  399. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +2 -0
  400. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +11 -6
  401. package/dist/es-dev/components/radio/daikin-radio.d.ts +9 -0
  402. package/dist/es-dev/components/radio/daikin-radio.js +11 -6
  403. package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +3 -1
  404. package/dist/es-dev/components/radio-group/daikin-radio-group.js +14 -7
  405. package/dist/es-dev/components/select/daikin-select.js +2 -1
  406. package/dist/es-dev/components/slider/daikin-slider.d.ts +15 -0
  407. package/dist/es-dev/components/slider/daikin-slider.js +11 -9
  408. package/dist/es-dev/components/status-message/daikin-status-message.d.ts +4 -0
  409. package/dist/es-dev/components/status-message/daikin-status-message.js +21 -8
  410. package/dist/es-dev/components/tab/daikin-tab.js +9 -3
  411. package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +2 -2
  412. package/dist/es-dev/components/table/daikin-table.js +2 -1
  413. package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +5 -3
  414. package/dist/es-dev/components/table-cell/daikin-table-cell.js +12 -7
  415. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
  416. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +11 -3
  417. package/dist/es-dev/components/tabs/daikin-tabs.d.ts +2 -0
  418. package/dist/es-dev/components/tabs/daikin-tabs.js +10 -4
  419. package/dist/es-dev/components/text-area/daikin-text-area.d.ts +9 -2
  420. package/dist/es-dev/components/text-area/daikin-text-area.js +11 -8
  421. package/dist/es-dev/components/text-field/daikin-text-field.d.ts +11 -2
  422. package/dist/es-dev/components/text-field/daikin-text-field.js +18 -21
  423. package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.d.ts +9 -2
  424. package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +15 -12
  425. package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +23 -1
  426. package/dist/es-dev/components/time-picker/daikin-time-picker.js +37 -16
  427. package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +11 -1
  428. package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +112 -7
  429. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +3 -1
  430. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +15 -3
  431. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +7 -0
  432. package/dist/es-dev/components/toggle/daikin-toggle.js +5 -4
  433. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +9 -1
  434. package/dist/es-dev/components/tooltip/daikin-tooltip.js +36 -12
  435. package/dist/es-dev/components/tree/daikin-tree.js +2 -1
  436. package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +2 -0
  437. package/dist/es-dev/components/tree-item/daikin-tree-item.js +2 -1
  438. package/dist/es-dev/components/tree-section/daikin-tree-section.js +2 -1
  439. package/dist/es-dev/tailwind.css.js +1 -1
  440. package/dist/es-dev/utils/notification-common.d.ts +0 -13
  441. package/dist/es-dev/utils/notification-common.js +0 -94
  442. package/icons/download.svg +3 -0
  443. package/package.json +18 -17
@@ -2,9 +2,9 @@
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 ddsElement = require("../../base/dds-element.cjs");
7
6
  require("../../base/dds-form-element.cjs");
7
+ const ddsProperty = require("../../base/dds-property.cjs");
8
8
  const decorators = require("../../base/decorators.cjs");
9
9
  require("../../base/define.cjs");
10
10
  const tailwind = require("../../tailwind.css.cjs");
@@ -42,42 +42,47 @@ const cvaBadge = classVarianceAuthority.cva(["absolute", "rounded-full"], {
42
42
  dot: ["w-2", "h-2", "top-1", "right-1"]
43
43
  },
44
44
  color: {
45
- danger: ["bg-ddt-color-common-danger-default"],
45
+ negative: ["bg-ddt-color-common-danger-default"],
46
46
  alarm: ["bg-ddt-color-common-alarm"],
47
47
  warning: ["bg-ddt-color-common-warning"],
48
- success: ["bg-ddt-color-common-success"],
48
+ positive: ["bg-ddt-color-common-success"],
49
49
  information: ["bg-ddt-color-common-information"]
50
50
  }
51
51
  }
52
52
  });
53
+ const DEFAULT_MAX_COUNT = "99";
53
54
  exports.DaikinBadge = class DaikinBadge extends ddsElement.DDSElement {
54
55
  constructor() {
55
56
  super(...arguments);
56
- this.type = "dot";
57
57
  this.count = null;
58
- this.maxCount = "99";
58
+ this.maxCount = DEFAULT_MAX_COUNT;
59
59
  this.invisible = false;
60
- this.color = "danger";
61
60
  }
62
61
  /**
63
62
  * Computes the actual number to display in the badge.
64
63
  * - If count is null or invalid, displays "0".
65
64
  * - If count exceeds maxCount, displays "maxCount+".
65
+ * - If maxCount is null, displays the actual count.
66
+ * - If maxCount is invalid, it will be treated as the default value ("99").
66
67
  * - Otherwise, displays the actual number.
67
68
  */
68
69
  get _count() {
69
- if (this.count == null) {
70
+ var _a, _b;
71
+ if (!((_a = this.count) == null ? void 0 : _a.trim())) {
70
72
  return "0";
71
73
  }
72
74
  const count = parseInt(this.count, 10);
73
- const maxCount = this.maxCount ? parseInt(this.maxCount, 10) : null;
74
75
  if (isNaN(count) || count < 0) {
75
76
  return "0";
76
77
  }
77
- if (maxCount != null && !isNaN(maxCount) && count > maxCount) {
78
- return `${maxCount.toLocaleString()}+`;
78
+ if (!((_b = this.maxCount) == null ? void 0 : _b.trim())) {
79
+ return count.toLocaleString();
79
80
  }
80
- return count.toLocaleString();
81
+ let maxCount = parseInt(this.maxCount, 10);
82
+ if (isNaN(maxCount)) {
83
+ maxCount = parseInt(DEFAULT_MAX_COUNT, 10);
84
+ }
85
+ return count > maxCount ? `${maxCount.toLocaleString()}+` : count.toLocaleString();
81
86
  }
82
87
  /**
83
88
  * Renders the badge component.
@@ -114,19 +119,35 @@ exports.DaikinBadge.styles = lit.css`
114
119
  }
115
120
  `;
116
121
  __decorateClass([
117
- decorators_js.property({ type: String, reflect: true })
122
+ ddsProperty.property({
123
+ type: String,
124
+ reflect: true,
125
+ fallbackValue: "dot",
126
+ isAllowedValue: ddsProperty.oneOf(["number", "dot"])
127
+ })
118
128
  ], exports.DaikinBadge.prototype, "type", 2);
119
129
  __decorateClass([
120
- decorators_js.property({ type: String, reflect: true })
130
+ ddsProperty.property({ type: String, reflect: true })
121
131
  ], exports.DaikinBadge.prototype, "count", 2);
122
132
  __decorateClass([
123
- decorators_js.property({ type: String, reflect: true, attribute: "max-count" })
133
+ ddsProperty.property({ type: String, reflect: true, attribute: "max-count" })
124
134
  ], exports.DaikinBadge.prototype, "maxCount", 2);
125
135
  __decorateClass([
126
- decorators_js.property({ type: Boolean, reflect: true })
136
+ ddsProperty.property({ type: Boolean, reflect: true })
127
137
  ], exports.DaikinBadge.prototype, "invisible", 2);
128
138
  __decorateClass([
129
- decorators_js.property({ type: String, reflect: true })
139
+ ddsProperty.property({
140
+ type: String,
141
+ reflect: true,
142
+ fallbackValue: "negative",
143
+ isAllowedValue: ddsProperty.oneOf([
144
+ "negative",
145
+ "alarm",
146
+ "warning",
147
+ "positive",
148
+ "information"
149
+ ])
150
+ })
130
151
  ], exports.DaikinBadge.prototype, "color", 2);
131
152
  exports.DaikinBadge = __decorateClass([
132
153
  decorators.ddsElement("daikin-badge")
@@ -13,7 +13,7 @@ import { DDSElement } from "../../base/index.cjs";
13
13
  * ```
14
14
  *
15
15
  * ```html
16
- * <daikin-badge count="42" max-count="999" color="danger">
16
+ * <daikin-badge count="42" max-count="999" color="negative">
17
17
  * <daikin-icon-button variant="ghost" size="m" buttonAriaLabel="42 unread notifications">
18
18
  * <daikin-icon
19
19
  * class="w-8 h-8"
@@ -32,6 +32,7 @@ export declare class DaikinBadge extends DDSElement {
32
32
  * Badge type.
33
33
  * - "number": Displays a number (e.g., message count, quantity).
34
34
  * - "dot": Displays only a small dot (e.g., status indicator).
35
+ *
35
36
  * @default "dot"
36
37
  */
37
38
  type: "number" | "dot";
@@ -39,13 +40,16 @@ export declare class DaikinBadge extends DDSElement {
39
40
  * The numeric content displayed in the badge.
40
41
  * Only effective when type="number".
41
42
  * Accepts a string or null; will be parsed as a number internally.
43
+ *
42
44
  * @example "5"
43
45
  */
44
46
  count: string | null;
45
47
  /**
46
48
  * The maximum number to display in the badge.
47
49
  * If the count exceeds this value, it will display as "maxCount+", e.g., "99+".
50
+ * For accessibility considerations, if maxCount is null or invalid, it will be treated as the default value ("99").
48
51
  * Only effective when type="number".
52
+ *
49
53
  * @example "99"
50
54
  */
51
55
  maxCount: string | null;
@@ -53,19 +57,21 @@ export declare class DaikinBadge extends DDSElement {
53
57
  * Whether to hide the badge.
54
58
  * - true: The badge is not displayed (slot content remains visible).
55
59
  * - false: The badge is displayed normally.
56
- * @default false
57
60
  */
58
61
  invisible: boolean;
59
62
  /**
60
63
  * Badge color.
61
- * Supports predefined semantic color tokens (danger, alarm, warning, success, information).
62
- * @default "danger"
64
+ * Supports predefined semantic color tokens (negative, alarm, warning, positive, information).
65
+ *
66
+ * @default "negative"
63
67
  */
64
- color: "danger" | "alarm" | "warning" | "success" | "information";
68
+ color: "negative" | "alarm" | "warning" | "positive" | "information";
65
69
  /**
66
70
  * Computes the actual number to display in the badge.
67
71
  * - If count is null or invalid, displays "0".
68
72
  * - If count exceeds maxCount, displays "maxCount+".
73
+ * - If maxCount is null, displays the actual count.
74
+ * - If maxCount is invalid, it will be treated as the default value ("99").
69
75
  * - Otherwise, displays the actual number.
70
76
  */
71
77
  private get _count();
@@ -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");
@@ -21,16 +22,38 @@ exports.DaikinBreadcrumb = class DaikinBreadcrumb extends ddsElement.DDSElement
21
22
  constructor() {
22
23
  super(...arguments);
23
24
  this.showVisited = false;
25
+ this._rafId = null;
24
26
  }
25
27
  _updateBreadcrumbs() {
26
- const items = this._items;
27
- items.forEach((item, index) => {
28
- const isLast = index === items.length - 1;
29
- item.variant = isLast ? "current" : "normal";
30
- item.showVisited = this.showVisited;
31
- item.appendDivider = !isLast;
28
+ if (this._rafId !== null) {
29
+ cancelAnimationFrame(this._rafId);
30
+ this._rafId = null;
31
+ }
32
+ this._rafId = requestAnimationFrame(() => {
33
+ const items = this._items;
34
+ const menus = this._menus;
35
+ items.forEach((item, index) => {
36
+ const isLast = index === items.length - 1;
37
+ item.variant = isLast ? "current" : "normal";
38
+ item.showVisited = this.showVisited;
39
+ item.appendDivider = !isLast;
40
+ });
41
+ menus.forEach((menu) => {
42
+ const breadcrumbItem = menu.triggerElement;
43
+ if ((breadcrumbItem == null ? void 0 : breadcrumbItem.tagName) === "DAIKIN-BREADCRUMB-ITEM") {
44
+ breadcrumbItem.variant = "ellipsis";
45
+ breadcrumbItem.appendDivider = true;
46
+ }
47
+ });
32
48
  });
33
49
  }
50
+ disconnectedCallback() {
51
+ super.disconnectedCallback();
52
+ if (this._rafId !== null) {
53
+ cancelAnimationFrame(this._rafId);
54
+ this._rafId = null;
55
+ }
56
+ }
34
57
  _handleSlotChange() {
35
58
  this._updateBreadcrumbs();
36
59
  }
@@ -54,11 +77,14 @@ exports.DaikinBreadcrumb.styles = lit.css`
54
77
  }
55
78
  `;
56
79
  __decorateClass([
57
- decorators_js.property({ type: Boolean, reflect: true, attribute: "show-visited" })
80
+ ddsProperty.property({ type: Boolean, reflect: true, attribute: "show-visited" })
58
81
  ], exports.DaikinBreadcrumb.prototype, "showVisited", 2);
59
82
  __decorateClass([
60
83
  decorators_js.queryAssignedElements({ selector: "daikin-breadcrumb-item" })
61
84
  ], exports.DaikinBreadcrumb.prototype, "_items", 2);
85
+ __decorateClass([
86
+ decorators_js.queryAssignedElements({ selector: "daikin-menu" })
87
+ ], exports.DaikinBreadcrumb.prototype, "_menus", 2);
62
88
  exports.DaikinBreadcrumb = __decorateClass([
63
89
  decorators.ddsElement("daikin-breadcrumb")
64
90
  ], exports.DaikinBreadcrumb);
@@ -12,16 +12,45 @@ import { DDSElement } from "../../base/index.cjs";
12
12
  * ```js
13
13
  * import "@daikin-oss/design-system-web-components/components/breadcrumb/index.js";
14
14
  * import "@daikin-oss/design-system-web-components/components/breadcrumb-item/index.js";
15
+ * // To collapse a portion of the breadcrumb items and represent the collapsed section as a menu, you can achieve this by combining the Menu and List components.
16
+ * import "@daikin-oss/design-system-web-components/components/menu/index.js";
17
+ * import "@daikin-oss/design-system-web-components/components/list/index.js";
18
+ * import "@daikin-oss/design-system-web-components/components/list-item/index.js";
15
19
  * ```
16
20
  *
17
21
  * ```html
22
+ * <!-- Example of a simple breadcrumb -->
18
23
  * <daikin-breadcrumb>
19
- * <daikin-breadcrumb-item href="https://www.example.com/1">
20
- * Breadcrumb item 1
21
- * </daikin-breadcrumb-item>
22
- * <daikin-breadcrumb-item href="https://www.example.com/2">
23
- * Breadcrumb item 2
24
- * </daikin-breadcrumb-item>
24
+ * <daikin-breadcrumb-item href="https://www.example.com/1">
25
+ * Breadcrumb item 1
26
+ * </daikin-breadcrumb-item>
27
+ * <daikin-breadcrumb-item href="https://www.example.com/2">
28
+ * Breadcrumb item 2
29
+ * </daikin-breadcrumb-item>
30
+ * </daikin-breadcrumb>
31
+ *
32
+ * <!-- Example of a breadcrumb with a collapsed section represented as a menu -->
33
+ * <daikin-breadcrumb>
34
+ * <daikin-breadcrumb-item href="#">
35
+ * Breadcrumb item 1
36
+ * </daikin-breadcrumb-item>
37
+ * <daikin-menu placement="bottom-start">
38
+ * <daikin-breadcrumb-item></daikin-breadcrumb-item>
39
+ * <daikin-list list-role="menu" slot="menu" style="width: 10rem">
40
+ * <daikin-list-item type="link" href="#">
41
+ * Breadcrumb 2
42
+ * </daikin-list-item>
43
+ * <daikin-list-item type="link" href="#">
44
+ * Breadcrumb 3
45
+ * </daikin-list-item>
46
+ * <daikin-list-item type="link" href="#">
47
+ * Breadcrumb 4
48
+ * </daikin-list-item>
49
+ * </daikin-list>
50
+ * </daikin-menu>
51
+ * <daikin-breadcrumb-item href="#">
52
+ * Breadcrumb item 5
53
+ * </daikin-breadcrumb-item>
25
54
  * </daikin-breadcrumb>
26
55
  * ```
27
56
  */
@@ -32,7 +61,10 @@ export declare class DaikinBreadcrumb extends DDSElement {
32
61
  */
33
62
  showVisited: boolean;
34
63
  private readonly _items;
64
+ private readonly _menus;
65
+ private _rafId;
35
66
  private _updateBreadcrumbs;
67
+ disconnectedCallback(): void;
36
68
  private _handleSlotChange;
37
69
  render(): import('lit-html').TemplateResult<1>;
38
70
  protected firstUpdated(): void;
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const classVarianceAuthority = require("class-variance-authority");
3
4
  const lit = require("lit");
4
- const decorators_js = require("lit/decorators.js");
5
5
  const ifDefined_js = require("lit/directives/if-defined.js");
6
6
  const ddsElement = require("../../base/dds-element.cjs");
7
7
  require("../../base/dds-form-element.cjs");
8
+ const ddsProperty = require("../../base/dds-property.cjs");
8
9
  const decorators = require("../../base/decorators.cjs");
9
10
  require("../../base/define.cjs");
10
11
  const tailwind = require("../../tailwind.css.cjs");
@@ -19,30 +20,53 @@ var __decorateClass = (decorators2, target, key, kind) => {
19
20
  if (kind && result) __defProp(target, key, result);
20
21
  return result;
21
22
  };
23
+ const LINK_CLASS_NAME = classVarianceAuthority.cva([
24
+ "font-daikinSerif",
25
+ "font-normal",
26
+ "text-base",
27
+ "leading-[130%]",
28
+ "relative",
29
+ "text-ddt-color-link-text-default",
30
+ "hover:text-ddt-color-link-text-hover",
31
+ "hover:bg-ddt-color-common-surface-brand-hover",
32
+ "active:text-ddt-color-link-text-press",
33
+ "active:bg-ddt-color-common-surface-brand-press",
34
+ "focus-visible:outline",
35
+ "focus-visible:outline-2",
36
+ "focus-visible:outline-ddt-color-common-border-focus",
37
+ "focus-visible:outline-offset-2"
38
+ ])();
22
39
  exports.DaikinBreadcrumbItem = class DaikinBreadcrumbItem extends ddsElement.DDSElement {
23
40
  constructor() {
24
41
  super(...arguments);
25
42
  this.href = null;
26
- this.variant = "normal";
27
43
  this.target = null;
28
44
  this.showVisited = false;
29
45
  this.appendDivider = false;
30
46
  }
31
47
  render() {
32
48
  const link = this.variant === "normal" ? lit.html`<daikin-link
33
- class="text-sm"
34
- href=${ifDefined_js.ifDefined(this.href ?? void 0)}
35
- target=${ifDefined_js.ifDefined(this.target ?? void 0)}
49
+ href=${ifDefined_js.ifDefined(this.href)}
50
+ target=${ifDefined_js.ifDefined(this.target)}
51
+ ?no-underline=${true}
36
52
  ?show-visited=${this.showVisited}
37
- ><slot></slot
38
- ></daikin-link>` : lit.html`<a
39
- class="text-sm font-daikinSerif text-ddt-color-common-text-primary"
40
- aria-disabled="true"
41
- aria-current="true"
42
- target=${ifDefined_js.ifDefined(this.target ?? void 0)}
43
- role="link"
44
- ><slot></slot
45
- ></a>`;
53
+ >
54
+ <slot></slot>
55
+ </daikin-link>` : this.variant === "ellipsis" ? lit.html`<button
56
+ type="button"
57
+ class=${LINK_CLASS_NAME}
58
+ aria-label="Show more items"
59
+ >
60
+ ...
61
+ </button>` : lit.html`<a
62
+ class="text-base leading-[130%] align-middle font-daikinSerif text-ddt-color-common-text-primary"
63
+ aria-disabled="true"
64
+ aria-current="true"
65
+ target=${ifDefined_js.ifDefined(this.target)}
66
+ role="link"
67
+ >
68
+ <slot></slot>
69
+ </a>`;
46
70
  const divider = this.appendDivider ? lit.html`<span
47
71
  class="text-ddt-color-common-text-primary mx-2 text-sm"
48
72
  aria-hidden="true"
@@ -55,19 +79,28 @@ exports.DaikinBreadcrumbItem.styles = lit.css`
55
79
  ${lit.unsafeCSS(tailwind.default)}
56
80
  `;
57
81
  __decorateClass([
58
- decorators_js.property({ type: String, reflect: true })
82
+ ddsProperty.property({ type: String, reflect: true })
59
83
  ], exports.DaikinBreadcrumbItem.prototype, "href", 2);
60
84
  __decorateClass([
61
- decorators_js.property({ type: String, reflect: true })
85
+ ddsProperty.property({
86
+ type: String,
87
+ reflect: true,
88
+ fallbackValue: "normal",
89
+ isAllowedValue: ddsProperty.oneOf([
90
+ "normal",
91
+ "current",
92
+ "ellipsis"
93
+ ])
94
+ })
62
95
  ], exports.DaikinBreadcrumbItem.prototype, "variant", 2);
63
96
  __decorateClass([
64
- decorators_js.property({ type: String, reflect: true })
97
+ ddsProperty.property({ type: String, reflect: true })
65
98
  ], exports.DaikinBreadcrumbItem.prototype, "target", 2);
66
99
  __decorateClass([
67
- decorators_js.property({ type: Boolean, reflect: true, attribute: "show-visited" })
100
+ ddsProperty.property({ type: Boolean, reflect: true, attribute: "show-visited" })
68
101
  ], exports.DaikinBreadcrumbItem.prototype, "showVisited", 2);
69
102
  __decorateClass([
70
- decorators_js.property({ type: Boolean, reflect: true, attribute: "append-divider" })
103
+ ddsProperty.property({ type: Boolean, reflect: true, attribute: "append-divider" })
71
104
  ], exports.DaikinBreadcrumbItem.prototype, "appendDivider", 2);
72
105
  exports.DaikinBreadcrumbItem = __decorateClass([
73
106
  decorators.ddsElement("daikin-breadcrumb-item")
@@ -30,8 +30,10 @@ export declare class DaikinBreadcrumbItem extends DDSElement {
30
30
  * Specifies the display content.
31
31
  * If `ellipsis`, the "..." will be displayed instead of the link.
32
32
  * Set automatically by `daikin-breadcrumb`.
33
+ *
34
+ * @default "normal"
33
35
  */
34
- variant: "normal" | "current";
36
+ variant: "normal" | "current" | "ellipsis";
35
37
  /**
36
38
  * Specify the link target.
37
39
  */
@@ -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");
@@ -86,10 +87,7 @@ const cvaIcon = classVarianceAuthority.cva(["slotted:flex-none"], {
86
87
  exports.DaikinButton = class DaikinButton extends ddsFormElement.DDSFormSubmitElement {
87
88
  constructor() {
88
89
  super();
89
- this.variant = "fill";
90
- this.type = "button";
91
90
  this.size = "medium";
92
- this.color = "default";
93
91
  this.disabled = false;
94
92
  this.href = null;
95
93
  this.buttonRole = null;
@@ -116,7 +114,8 @@ exports.DaikinButton = class DaikinButton extends ddsFormElement.DDSFormSubmitEl
116
114
  const linkDisabled = this.disabled || this.href == null;
117
115
  return lit.html`<a
118
116
  class=${className}
119
- href=${ifDefined_js.ifDefined(!linkDisabled ? this.href ?? void 0 : void 0)}
117
+ href=${ifDefined_js.ifDefined(!linkDisabled ? this.href : void 0)}
118
+ tabindex=${ifDefined_js.ifDefined(this.getBackingProperty("buttonTabIndex"))}
120
119
  role=${ifDefined_js.ifDefined(
121
120
  this.buttonRole ?? (linkDisabled ? "link" : void 0)
122
121
  )}
@@ -136,9 +135,10 @@ exports.DaikinButton = class DaikinButton extends ddsFormElement.DDSFormSubmitEl
136
135
  class=${className}
137
136
  ?disabled=${this.disabled}
138
137
  type=${this.type}
139
- role=${ifDefined_js.ifDefined(this.buttonRole ?? void 0)}
140
- aria-haspopup=${ifDefined_js.ifDefined(this.buttonAriaHaspopup ?? void 0)}
141
- aria-expanded=${ifDefined_js.ifDefined(this.buttonAriaExpanded ?? void 0)}
138
+ tabindex=${ifDefined_js.ifDefined(this.getBackingProperty("buttonTabIndex"))}
139
+ role=${ifDefined_js.ifDefined(this.buttonRole)}
140
+ aria-expanded=${ifDefined_js.ifDefined(this.buttonAriaExpanded)}
141
+ aria-haspopup=${ifDefined_js.ifDefined(this.buttonAriaHaspopup)}
142
142
  >
143
143
  <slot name="left-icon" class=${cvaIcon({ size: this.size })}>
144
144
  <span class="flex-none block -ml-1"></span>
@@ -183,32 +183,73 @@ exports.DaikinButton.styles = lit.css`
183
183
  }
184
184
  `;
185
185
  __decorateClass([
186
- decorators_js.property({ type: String, reflect: true })
186
+ ddsProperty.property({
187
+ type: String,
188
+ reflect: true,
189
+ fallbackValue: "fill",
190
+ isAllowedValue: ddsProperty.oneOf([
191
+ "fill",
192
+ "outline",
193
+ "ghost"
194
+ ])
195
+ })
187
196
  ], exports.DaikinButton.prototype, "variant", 2);
188
197
  __decorateClass([
189
- decorators_js.property({ type: String, reflect: true })
198
+ ddsProperty.property({
199
+ type: String,
200
+ reflect: true,
201
+ fallbackValue: "button",
202
+ isAllowedValue: ddsProperty.oneOf([
203
+ "button",
204
+ "submit",
205
+ "reset",
206
+ "link"
207
+ ])
208
+ })
190
209
  ], exports.DaikinButton.prototype, "type", 2);
191
210
  __decorateClass([
192
- decorators_js.property({ type: String, reflect: true })
211
+ ddsProperty.property({
212
+ type: String,
213
+ reflect: true,
214
+ fallbackValue: "medium",
215
+ isAllowedValue: ddsProperty.oneOf([
216
+ "small",
217
+ "medium",
218
+ "large"
219
+ ])
220
+ })
193
221
  ], exports.DaikinButton.prototype, "size", 2);
194
222
  __decorateClass([
195
- decorators_js.property({ type: String, reflect: true })
223
+ ddsProperty.property({
224
+ type: String,
225
+ reflect: true,
226
+ fallbackValue: "default",
227
+ isAllowedValue: ddsProperty.oneOf(["default", "danger"])
228
+ })
196
229
  ], exports.DaikinButton.prototype, "color", 2);
197
230
  __decorateClass([
198
- decorators_js.property({ type: Boolean, reflect: true })
231
+ ddsProperty.property({ type: Boolean, reflect: true })
199
232
  ], exports.DaikinButton.prototype, "disabled", 2);
200
233
  __decorateClass([
201
- decorators_js.property({ type: String, reflect: true })
234
+ ddsProperty.property({ type: String, reflect: true })
202
235
  ], exports.DaikinButton.prototype, "href", 2);
203
236
  __decorateClass([
204
- decorators_js.property({ type: String, reflect: true, attribute: "button-role" })
237
+ ddsProperty.property({ type: String, reflect: true, attribute: "button-role" })
205
238
  ], exports.DaikinButton.prototype, "buttonRole", 2);
206
239
  __decorateClass([
207
- decorators_js.property({ type: String, reflect: true, attribute: "button-aria-haspopup" })
240
+ ddsProperty.property({ type: String, reflect: true, attribute: "button-aria-haspopup" })
208
241
  ], exports.DaikinButton.prototype, "buttonAriaHaspopup", 2);
209
242
  __decorateClass([
210
- decorators_js.property({ type: Boolean, reflect: true, attribute: "button-aria-expanded" })
243
+ ddsProperty.property({ type: String, reflect: true, attribute: "button-aria-expanded" })
211
244
  ], exports.DaikinButton.prototype, "buttonAriaExpanded", 2);
245
+ __decorateClass([
246
+ ddsProperty.property({
247
+ type: Number,
248
+ reflect: true,
249
+ attribute: "button-tabindex",
250
+ fallbackValue: 0
251
+ })
252
+ ], exports.DaikinButton.prototype, "buttonTabIndex", 2);
212
253
  __decorateClass([
213
254
  decorators_js.query("a,button")
214
255
  ], exports.DaikinButton.prototype, "_focusableElement", 2);
@@ -2,7 +2,7 @@ import { DDSFormSubmitElement } from "../../base/index.cjs";
2
2
  import { ARIARole } from "../../lit-analyzer-types.cjs";
3
3
  import { MergeVariantProps } from "../../type-utils.cjs";
4
4
  declare const cvaButton: (props?: ({
5
- color?: "danger" | "default" | null | undefined;
5
+ color?: "default" | "danger" | null | undefined;
6
6
  variant?: "fill" | "outline" | "ghost" | null | undefined;
7
7
  size?: "small" | "medium" | "large" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -14,6 +14,9 @@ type ButtonVariantProps = MergeVariantProps<typeof cvaButton | typeof cvaIcon>;
14
14
  * The button component is a versatile UI element that triggers actions or submits forms when clicked.
15
15
  * It functions similarly to the HTML `<button>` tag, allowing users to initiate various operations such as submitting data, opening dialogs, or navigating to different sections of an application.
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 `<a>` or `<button>` element. Suppressed if `disabled` is true,
18
21
  *
19
22
  * @slot - A slot for the button content.
@@ -36,19 +39,25 @@ export declare class DaikinButton 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: ButtonVariantProps["variant"];
41
46
  /**
42
47
  * Type of the button.
43
48
  * If `"link"` is specified, the button will be rendered as an `<a>` element.
49
+ *
50
+ * @default "button"
44
51
  */
45
52
  type: "button" | "submit" | "reset" | "link";
46
53
  /**
47
54
  * Size of the button.
48
55
  */
49
- size: "small" | "medium" | "large";
56
+ size: ButtonVariantProps["size"];
50
57
  /**
51
58
  * Color of the button.
59
+ *
60
+ * @default "default"
52
61
  */
53
62
  color: ButtonVariantProps["color"];
54
63
  /**
@@ -74,7 +83,14 @@ export declare class DaikinButton extends DDSFormSubmitElement {
74
83
  * The aria-expanded of 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
  private _focusableElement;
79
95
  constructor();
80
96
  render(): import('lit-html').TemplateResult<1>;
@@ -7,6 +7,7 @@ const ifDefined_js = require("lit/directives/if-defined.js");
7
7
  const repeat_js = require("lit/directives/repeat.js");
8
8
  const ddsElement = require("../../base/dds-element.cjs");
9
9
  require("../../base/dds-form-element.cjs");
10
+ const ddsProperty = require("../../base/dds-property.cjs");
10
11
  const decorators = require("../../base/decorators.cjs");
11
12
  require("../../base/define.cjs");
12
13
  const tailwind = require("../../tailwind.css.cjs");
@@ -126,9 +127,7 @@ function getNextFocusDateByKey(date, event) {
126
127
  exports.DaikinCalendar = class DaikinCalendar extends ddsElement.DDSElement {
127
128
  constructor() {
128
129
  super(...arguments);
129
- this.value = null;
130
- this.min = "1900-01-01";
131
- this.max = "2099-12-31";
130
+ this.value = "";
132
131
  this.defaultValue = null;
133
132
  this.view = "day";
134
133
  this._lastFocusedDate = null;
@@ -136,7 +135,7 @@ exports.DaikinCalendar = class DaikinCalendar extends ddsElement.DDSElement {
136
135
  this._viewDate = getToday();
137
136
  }
138
137
  get _value() {
139
- return calendarCommon.tryParseDateFromProperty(this.value ?? "");
138
+ return calendarCommon.tryParseDateFromProperty(this.value);
140
139
  }
141
140
  get _min() {
142
141
  return calendarCommon.tryParseDateFromProperty(this.min) ?? calendarCommon.parseDateFromProperty(calendarCommon.DEFAULT_MIN_DATE);
@@ -558,19 +557,19 @@ exports.DaikinCalendar.styles = lit.css`
558
557
  }
559
558
  `;
560
559
  __decorateClass([
561
- decorators_js.property({ type: String, attribute: false })
560
+ ddsProperty.property({ type: String })
562
561
  ], exports.DaikinCalendar.prototype, "value", 2);
563
562
  __decorateClass([
564
- decorators_js.property({ type: String, reflect: true })
563
+ ddsProperty.property({ type: String, reflect: true, fallbackValue: "1900-01-01" })
565
564
  ], exports.DaikinCalendar.prototype, "min", 2);
566
565
  __decorateClass([
567
- decorators_js.property({ type: String, reflect: true })
566
+ ddsProperty.property({ type: String, reflect: true, fallbackValue: "2099-12-31" })
568
567
  ], exports.DaikinCalendar.prototype, "max", 2);
569
568
  __decorateClass([
570
- decorators_js.property({ type: String, reflect: true, attribute: "default-value" })
569
+ ddsProperty.property({ type: String, reflect: true, attribute: "default-value" })
571
570
  ], exports.DaikinCalendar.prototype, "defaultValue", 2);
572
571
  __decorateClass([
573
- decorators_js.property({ type: String, attribute: false })
572
+ ddsProperty.property({ type: String, attribute: false })
574
573
  ], exports.DaikinCalendar.prototype, "view", 2);
575
574
  __decorateClass([
576
575
  decorators_js.state()