@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
@@ -0,0 +1,91 @@
1
+ import { DDSElement } from "../../base/index.js";
2
+ /**
3
+ * A badge is used to display notification counts, status indicators, or small dots in the UI—commonly for message alerts or status marking.
4
+ *
5
+ * @slot - A slot for anchoring element. Place `daikin-icon-button` here.
6
+ *
7
+ * @example
8
+ *
9
+ * ```js
10
+ * import "@daikin-oss/design-system-web-components/components/badge/index.js";
11
+ * import "@daikin-oss/design-system-web-components/components/icon/index.js";
12
+ * import "@daikin-oss/design-system-web-components/components/icon-button/index.js";
13
+ * ```
14
+ *
15
+ * ```html
16
+ * <daikin-badge count="42" max-count="999" color="negative">
17
+ * <daikin-icon-button variant="ghost" size="m" buttonAriaLabel="42 unread notifications">
18
+ * <daikin-icon
19
+ * class="w-8 h-8"
20
+ * icon="notification"
21
+ * size="current"
22
+ * color="current"
23
+ * >
24
+ * </daikin-icon>
25
+ * </daikin-icon-button>
26
+ * </daikin-badge>
27
+ * ```
28
+ */
29
+ export declare class DaikinBadge extends DDSElement {
30
+ static readonly styles: import('lit').CSSResult;
31
+ /**
32
+ * Badge type.
33
+ * - "number": Displays a number (e.g., message count, quantity).
34
+ * - "dot": Displays only a small dot (e.g., status indicator).
35
+ *
36
+ * @default "dot"
37
+ */
38
+ type: "number" | "dot";
39
+ /**
40
+ * The numeric content displayed in the badge.
41
+ * Only effective when type="number".
42
+ * Accepts a string or null; will be parsed as a number internally.
43
+ *
44
+ * @example "5"
45
+ */
46
+ count: string | null;
47
+ /**
48
+ * The maximum number to display in the badge.
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").
51
+ * Only effective when type="number".
52
+ *
53
+ * @example "99"
54
+ */
55
+ maxCount: string | null;
56
+ /**
57
+ * Whether to hide the badge.
58
+ * - true: The badge is not displayed (slot content remains visible).
59
+ * - false: The badge is displayed normally.
60
+ */
61
+ invisible: boolean;
62
+ /**
63
+ * Badge color.
64
+ * Supports predefined semantic color tokens (negative, alarm, warning, positive, information).
65
+ *
66
+ * @default "negative"
67
+ */
68
+ color: "negative" | "alarm" | "warning" | "positive" | "information";
69
+ /**
70
+ * Computes the actual number to display in the badge.
71
+ * - If count is null or invalid, displays "0".
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").
75
+ * - Otherwise, displays the actual number.
76
+ */
77
+ private get _count();
78
+ /**
79
+ * Renders the badge component.
80
+ * - Renders a small dot when type="dot".
81
+ * - Renders a number when type="number" and count > 0.
82
+ * - Does not render the badge if invisible=true.
83
+ * - The slot wraps the icon button.
84
+ */
85
+ render(): import('lit-html').TemplateResult<1>;
86
+ }
87
+ declare global {
88
+ interface HTMLElementTagNameMap {
89
+ "daikin-badge": DaikinBadge;
90
+ }
91
+ }
@@ -0,0 +1,155 @@
1
+ import { cva } from "class-variance-authority";
2
+ import { unsafeCSS, css, html } from "lit";
3
+ import { DDSElement } from "../../base/dds-element.js";
4
+ import "../../base/dds-form-element.js";
5
+ import { property, oneOf } from "../../base/dds-property.js";
6
+ import { ddsElement } from "../../base/decorators.js";
7
+ import "../../base/define.js";
8
+ import tailwindStyles from "../../tailwind.css.js";
9
+ var __defProp = Object.defineProperty;
10
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
+ var __decorateClass = (decorators, target, key, kind) => {
12
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
13
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
14
+ if (decorator = decorators[i])
15
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
16
+ if (kind && result) __defProp(target, key, result);
17
+ return result;
18
+ };
19
+ const cvaBadge = cva(["absolute", "rounded-full"], {
20
+ variants: {
21
+ type: {
22
+ number: [
23
+ "h-4",
24
+ "min-w-4",
25
+ "px-1",
26
+ "text-[10px]",
27
+ "font-normal",
28
+ "font-daikinSerif",
29
+ "text-white",
30
+ "flex",
31
+ "items-center",
32
+ "justify-center",
33
+ "-top-[2px]",
34
+ "-right-[2px]",
35
+ "before:content-[attr(data-count)]",
36
+ "before:leading-none",
37
+ "before:whitespace-nowrap",
38
+ "data-[count=0]:hidden"
39
+ ],
40
+ dot: ["w-2", "h-2", "top-1", "right-1"]
41
+ },
42
+ color: {
43
+ negative: ["bg-ddt-color-common-danger-default"],
44
+ alarm: ["bg-ddt-color-common-alarm"],
45
+ warning: ["bg-ddt-color-common-warning"],
46
+ positive: ["bg-ddt-color-common-success"],
47
+ information: ["bg-ddt-color-common-information"]
48
+ }
49
+ }
50
+ });
51
+ const DEFAULT_MAX_COUNT = "99";
52
+ let DaikinBadge = class extends DDSElement {
53
+ constructor() {
54
+ super(...arguments);
55
+ this.count = null;
56
+ this.maxCount = DEFAULT_MAX_COUNT;
57
+ this.invisible = false;
58
+ }
59
+ /**
60
+ * Computes the actual number to display in the badge.
61
+ * - If count is null or invalid, displays "0".
62
+ * - If count exceeds maxCount, displays "maxCount+".
63
+ * - If maxCount is null, displays the actual count.
64
+ * - If maxCount is invalid, it will be treated as the default value ("99").
65
+ * - Otherwise, displays the actual number.
66
+ */
67
+ get _count() {
68
+ var _a, _b;
69
+ if (!((_a = this.count) == null ? void 0 : _a.trim())) {
70
+ return "0";
71
+ }
72
+ const count = parseInt(this.count, 10);
73
+ if (isNaN(count) || count < 0) {
74
+ return "0";
75
+ }
76
+ if (!((_b = this.maxCount) == null ? void 0 : _b.trim())) {
77
+ return count.toLocaleString();
78
+ }
79
+ let maxCount = parseInt(this.maxCount, 10);
80
+ if (isNaN(maxCount)) {
81
+ maxCount = parseInt(DEFAULT_MAX_COUNT, 10);
82
+ }
83
+ return count > maxCount ? `${maxCount.toLocaleString()}+` : count.toLocaleString();
84
+ }
85
+ /**
86
+ * Renders the badge component.
87
+ * - Renders a small dot when type="dot".
88
+ * - Renders a number when type="number" and count > 0.
89
+ * - Does not render the badge if invisible=true.
90
+ * - The slot wraps the icon button.
91
+ */
92
+ render() {
93
+ return html`
94
+ <slot></slot>
95
+ <span
96
+ role="presentation"
97
+ data-count=${this._count}
98
+ class=${cvaBadge({
99
+ type: this.type,
100
+ color: this.color
101
+ })}
102
+ ?hidden=${this.invisible}
103
+ ></span>
104
+ `;
105
+ }
106
+ };
107
+ DaikinBadge.styles = css`
108
+ ${unsafeCSS(tailwindStyles)}
109
+
110
+ :host {
111
+ display: inline-flex;
112
+ position: relative;
113
+ }
114
+
115
+ span[hidden] {
116
+ display: none;
117
+ }
118
+ `;
119
+ __decorateClass([
120
+ property({
121
+ type: String,
122
+ reflect: true,
123
+ fallbackValue: "dot",
124
+ isAllowedValue: oneOf(["number", "dot"])
125
+ })
126
+ ], DaikinBadge.prototype, "type", 2);
127
+ __decorateClass([
128
+ property({ type: String, reflect: true })
129
+ ], DaikinBadge.prototype, "count", 2);
130
+ __decorateClass([
131
+ property({ type: String, reflect: true, attribute: "max-count" })
132
+ ], DaikinBadge.prototype, "maxCount", 2);
133
+ __decorateClass([
134
+ property({ type: Boolean, reflect: true })
135
+ ], DaikinBadge.prototype, "invisible", 2);
136
+ __decorateClass([
137
+ property({
138
+ type: String,
139
+ reflect: true,
140
+ fallbackValue: "negative",
141
+ isAllowedValue: oneOf([
142
+ "negative",
143
+ "alarm",
144
+ "warning",
145
+ "positive",
146
+ "information"
147
+ ])
148
+ })
149
+ ], DaikinBadge.prototype, "color", 2);
150
+ DaikinBadge = __decorateClass([
151
+ ddsElement("daikin-badge")
152
+ ], DaikinBadge);
153
+ export {
154
+ DaikinBadge
155
+ };
@@ -0,0 +1 @@
1
+ export * from "./daikin-badge.js";
@@ -0,0 +1,4 @@
1
+ import { DaikinBadge } from "./daikin-badge.js";
2
+ export {
3
+ DaikinBadge
4
+ };
@@ -12,16 +12,45 @@ import { DDSElement } from "../../base/index.js";
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,7 +1,8 @@
1
1
  import { unsafeCSS, css, html } from "lit";
2
- import { property, queryAssignedElements } from "lit/decorators.js";
2
+ import { queryAssignedElements } from "lit/decorators.js";
3
3
  import { DDSElement } from "../../base/dds-element.js";
4
4
  import "../../base/dds-form-element.js";
5
+ import { property } from "../../base/dds-property.js";
5
6
  import { ddsElement } from "../../base/decorators.js";
6
7
  import "../../base/define.js";
7
8
  import tailwindStyles from "../../tailwind.css.js";
@@ -19,16 +20,38 @@ let DaikinBreadcrumb = class extends DDSElement {
19
20
  constructor() {
20
21
  super(...arguments);
21
22
  this.showVisited = false;
23
+ this._rafId = null;
22
24
  }
23
25
  _updateBreadcrumbs() {
24
- const items = this._items;
25
- items.forEach((item, index) => {
26
- const isLast = index === items.length - 1;
27
- item.variant = isLast ? "current" : "normal";
28
- item.showVisited = this.showVisited;
29
- item.appendDivider = !isLast;
26
+ if (this._rafId !== null) {
27
+ cancelAnimationFrame(this._rafId);
28
+ this._rafId = null;
29
+ }
30
+ this._rafId = requestAnimationFrame(() => {
31
+ const items = this._items;
32
+ const menus = this._menus;
33
+ items.forEach((item, index) => {
34
+ const isLast = index === items.length - 1;
35
+ item.variant = isLast ? "current" : "normal";
36
+ item.showVisited = this.showVisited;
37
+ item.appendDivider = !isLast;
38
+ });
39
+ menus.forEach((menu) => {
40
+ const breadcrumbItem = menu.triggerElement;
41
+ if ((breadcrumbItem == null ? void 0 : breadcrumbItem.tagName) === "DAIKIN-BREADCRUMB-ITEM") {
42
+ breadcrumbItem.variant = "ellipsis";
43
+ breadcrumbItem.appendDivider = true;
44
+ }
45
+ });
30
46
  });
31
47
  }
48
+ disconnectedCallback() {
49
+ super.disconnectedCallback();
50
+ if (this._rafId !== null) {
51
+ cancelAnimationFrame(this._rafId);
52
+ this._rafId = null;
53
+ }
54
+ }
32
55
  _handleSlotChange() {
33
56
  this._updateBreadcrumbs();
34
57
  }
@@ -57,6 +80,9 @@ __decorateClass([
57
80
  __decorateClass([
58
81
  queryAssignedElements({ selector: "daikin-breadcrumb-item" })
59
82
  ], DaikinBreadcrumb.prototype, "_items", 2);
83
+ __decorateClass([
84
+ queryAssignedElements({ selector: "daikin-menu" })
85
+ ], DaikinBreadcrumb.prototype, "_menus", 2);
60
86
  DaikinBreadcrumb = __decorateClass([
61
87
  ddsElement("daikin-breadcrumb")
62
88
  ], DaikinBreadcrumb);
@@ -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
  */
@@ -1,8 +1,9 @@
1
+ import { cva } from "class-variance-authority";
1
2
  import { unsafeCSS, css, html, nothing } from "lit";
2
- import { property } from "lit/decorators.js";
3
3
  import { ifDefined } from "lit/directives/if-defined.js";
4
4
  import { DDSElement } from "../../base/dds-element.js";
5
5
  import "../../base/dds-form-element.js";
6
+ import { property, oneOf } from "../../base/dds-property.js";
6
7
  import { ddsElement } from "../../base/decorators.js";
7
8
  import "../../base/define.js";
8
9
  import tailwindStyles from "../../tailwind.css.js";
@@ -17,30 +18,53 @@ var __decorateClass = (decorators, target, key, kind) => {
17
18
  if (kind && result) __defProp(target, key, result);
18
19
  return result;
19
20
  };
21
+ const LINK_CLASS_NAME = cva([
22
+ "font-daikinSerif",
23
+ "font-normal",
24
+ "text-base",
25
+ "leading-[130%]",
26
+ "relative",
27
+ "text-ddt-color-link-text-default",
28
+ "hover:text-ddt-color-link-text-hover",
29
+ "hover:bg-ddt-color-common-surface-brand-hover",
30
+ "active:text-ddt-color-link-text-press",
31
+ "active:bg-ddt-color-common-surface-brand-press",
32
+ "focus-visible:outline",
33
+ "focus-visible:outline-2",
34
+ "focus-visible:outline-ddt-color-common-border-focus",
35
+ "focus-visible:outline-offset-2"
36
+ ])();
20
37
  let DaikinBreadcrumbItem = class extends DDSElement {
21
38
  constructor() {
22
39
  super(...arguments);
23
40
  this.href = null;
24
- this.variant = "normal";
25
41
  this.target = null;
26
42
  this.showVisited = false;
27
43
  this.appendDivider = false;
28
44
  }
29
45
  render() {
30
46
  const link = this.variant === "normal" ? html`<daikin-link
31
- class="text-sm"
32
- href=${ifDefined(this.href ?? void 0)}
33
- target=${ifDefined(this.target ?? void 0)}
47
+ href=${ifDefined(this.href)}
48
+ target=${ifDefined(this.target)}
49
+ ?no-underline=${true}
34
50
  ?show-visited=${this.showVisited}
35
- ><slot></slot
36
- ></daikin-link>` : html`<a
37
- class="text-sm font-daikinSerif text-ddt-color-common-text-primary"
38
- aria-disabled="true"
39
- aria-current="true"
40
- target=${ifDefined(this.target ?? void 0)}
41
- role="link"
42
- ><slot></slot
43
- ></a>`;
51
+ >
52
+ <slot></slot>
53
+ </daikin-link>` : this.variant === "ellipsis" ? html`<button
54
+ type="button"
55
+ class=${LINK_CLASS_NAME}
56
+ aria-label="Show more items"
57
+ >
58
+ ...
59
+ </button>` : html`<a
60
+ class="text-base leading-[130%] align-middle font-daikinSerif text-ddt-color-common-text-primary"
61
+ aria-disabled="true"
62
+ aria-current="true"
63
+ target=${ifDefined(this.target)}
64
+ role="link"
65
+ >
66
+ <slot></slot>
67
+ </a>`;
44
68
  const divider = this.appendDivider ? html`<span
45
69
  class="text-ddt-color-common-text-primary mx-2 text-sm"
46
70
  aria-hidden="true"
@@ -56,7 +80,16 @@ __decorateClass([
56
80
  property({ type: String, reflect: true })
57
81
  ], DaikinBreadcrumbItem.prototype, "href", 2);
58
82
  __decorateClass([
59
- property({ type: String, reflect: true })
83
+ property({
84
+ type: String,
85
+ reflect: true,
86
+ fallbackValue: "normal",
87
+ isAllowedValue: oneOf([
88
+ "normal",
89
+ "current",
90
+ "ellipsis"
91
+ ])
92
+ })
60
93
  ], DaikinBreadcrumbItem.prototype, "variant", 2);
61
94
  __decorateClass([
62
95
  property({ type: String, reflect: true })
@@ -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>;
@@ -1,9 +1,10 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  import { unsafeCSS, css, html } from "lit";
3
- import { property, query } from "lit/decorators.js";
3
+ import { query } from "lit/decorators.js";
4
4
  import { ifDefined } from "lit/directives/if-defined.js";
5
5
  import "../../base/dds-element.js";
6
6
  import { DDSFormSubmitElement } from "../../base/dds-form-element.js";
7
+ import { property, oneOf } from "../../base/dds-property.js";
7
8
  import { ddsElement } from "../../base/decorators.js";
8
9
  import "../../base/define.js";
9
10
  import tailwindStyles from "../../tailwind.css.js";
@@ -84,10 +85,7 @@ const cvaIcon = cva(["slotted:flex-none"], {
84
85
  let DaikinButton = class extends DDSFormSubmitElement {
85
86
  constructor() {
86
87
  super();
87
- this.variant = "fill";
88
- this.type = "button";
89
88
  this.size = "medium";
90
- this.color = "default";
91
89
  this.disabled = false;
92
90
  this.href = null;
93
91
  this.buttonRole = null;
@@ -114,7 +112,8 @@ let DaikinButton = class extends DDSFormSubmitElement {
114
112
  const linkDisabled = this.disabled || this.href == null;
115
113
  return html`<a
116
114
  class=${className}
117
- href=${ifDefined(!linkDisabled ? this.href ?? void 0 : void 0)}
115
+ href=${ifDefined(!linkDisabled ? this.href : void 0)}
116
+ tabindex=${ifDefined(this.getBackingProperty("buttonTabIndex"))}
118
117
  role=${ifDefined(
119
118
  this.buttonRole ?? (linkDisabled ? "link" : void 0)
120
119
  )}
@@ -134,9 +133,10 @@ let DaikinButton = class extends DDSFormSubmitElement {
134
133
  class=${className}
135
134
  ?disabled=${this.disabled}
136
135
  type=${this.type}
137
- role=${ifDefined(this.buttonRole ?? void 0)}
138
- aria-haspopup=${ifDefined(this.buttonAriaHaspopup ?? void 0)}
139
- aria-expanded=${ifDefined(this.buttonAriaExpanded ?? void 0)}
136
+ tabindex=${ifDefined(this.getBackingProperty("buttonTabIndex"))}
137
+ role=${ifDefined(this.buttonRole)}
138
+ aria-expanded=${ifDefined(this.buttonAriaExpanded)}
139
+ aria-haspopup=${ifDefined(this.buttonAriaHaspopup)}
140
140
  >
141
141
  <slot name="left-icon" class=${cvaIcon({ size: this.size })}>
142
142
  <span class="flex-none block -ml-1"></span>
@@ -181,16 +181,49 @@ DaikinButton.styles = css`
181
181
  }
182
182
  `;
183
183
  __decorateClass([
184
- property({ type: String, reflect: true })
184
+ property({
185
+ type: String,
186
+ reflect: true,
187
+ fallbackValue: "fill",
188
+ isAllowedValue: oneOf([
189
+ "fill",
190
+ "outline",
191
+ "ghost"
192
+ ])
193
+ })
185
194
  ], DaikinButton.prototype, "variant", 2);
186
195
  __decorateClass([
187
- property({ type: String, reflect: true })
196
+ property({
197
+ type: String,
198
+ reflect: true,
199
+ fallbackValue: "button",
200
+ isAllowedValue: oneOf([
201
+ "button",
202
+ "submit",
203
+ "reset",
204
+ "link"
205
+ ])
206
+ })
188
207
  ], DaikinButton.prototype, "type", 2);
189
208
  __decorateClass([
190
- property({ type: String, reflect: true })
209
+ property({
210
+ type: String,
211
+ reflect: true,
212
+ fallbackValue: "medium",
213
+ isAllowedValue: oneOf([
214
+ "small",
215
+ "medium",
216
+ "large"
217
+ ])
218
+ })
191
219
  ], DaikinButton.prototype, "size", 2);
192
220
  __decorateClass([
193
- property({ type: String, reflect: true })
221
+ property({
222
+ type: String,
223
+ reflect: true,
224
+ fallbackValue: "default",
225
+ isAllowedValue: oneOf(["default", "danger"])
226
+ })
194
227
  ], DaikinButton.prototype, "color", 2);
195
228
  __decorateClass([
196
229
  property({ type: Boolean, reflect: true })
@@ -205,8 +238,16 @@ __decorateClass([
205
238
  property({ type: String, reflect: true, attribute: "button-aria-haspopup" })
206
239
  ], DaikinButton.prototype, "buttonAriaHaspopup", 2);
207
240
  __decorateClass([
208
- property({ type: Boolean, reflect: true, attribute: "button-aria-expanded" })
241
+ property({ type: String, reflect: true, attribute: "button-aria-expanded" })
209
242
  ], DaikinButton.prototype, "buttonAriaExpanded", 2);
243
+ __decorateClass([
244
+ property({
245
+ type: Number,
246
+ reflect: true,
247
+ attribute: "button-tabindex",
248
+ fallbackValue: 0
249
+ })
250
+ ], DaikinButton.prototype, "buttonTabIndex", 2);
210
251
  __decorateClass([
211
252
  query("a,button")
212
253
  ], DaikinButton.prototype, "_focusableElement", 2);