@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
@@ -1,9 +1,9 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  import { unsafeCSS, css, html } from "lit";
3
- import { property } from "lit/decorators.js";
4
3
  import { ifDefined } from "lit/directives/if-defined.js";
5
4
  import { DDSElement } from "../../base/dds-element.js";
6
5
  import "../../base/dds-form-element.js";
6
+ import { property } from "../../base/dds-property.js";
7
7
  import { ddsElement } from "../../base/decorators.js";
8
8
  import "../../base/define.js";
9
9
  import tailwindStyles from "../../tailwind.css.js";
@@ -20,8 +20,6 @@ var __decorateClass = (decorators, target, key, kind) => {
20
20
  const LINK_CLASS_NAME = cva([
21
21
  "font-daikinSerif",
22
22
  "relative",
23
- "border-b",
24
- "border-b-current",
25
23
  "link-enabled:text-ddt-color-link-text-default",
26
24
  "link-enabled:hover:text-ddt-color-link-text-hover",
27
25
  "link-enabled:hover:bg-ddt-color-common-surface-brand-hover",
@@ -33,6 +31,18 @@ const LINK_CLASS_NAME = cva([
33
31
  "focus-visible:outline-ddt-color-common-border-focus",
34
32
  "focus-visible:outline-offset-2"
35
33
  ])();
34
+ const cvaContent = cva(["leading-[130%]"], {
35
+ variants: {
36
+ noUnderline: {
37
+ true: [],
38
+ false: ["border-b", "border-b-current"]
39
+ },
40
+ size: {
41
+ small: ["text-sm"],
42
+ medium: ["text-base"]
43
+ }
44
+ }
45
+ });
36
46
  let DaikinLink = class extends DDSElement {
37
47
  constructor() {
38
48
  super(...arguments);
@@ -40,6 +50,8 @@ let DaikinLink = class extends DDSElement {
40
50
  this.target = null;
41
51
  this.disabled = false;
42
52
  this.showVisited = false;
53
+ this.size = "medium";
54
+ this.noUnderline = false;
43
55
  }
44
56
  render() {
45
57
  return html`<a
@@ -50,7 +62,9 @@ let DaikinLink = class extends DDSElement {
50
62
  ><span class="inline-flex mr-[0.125rem] align-sub">
51
63
  <slot name="left-icon" class="icon-size-4"
52
64
  ><span class="-mr-[0.125rem]"></span></slot></span
53
- ><slot></slot
65
+ ><span
66
+ class=${cvaContent({ noUnderline: this.noUnderline, size: this.size })}
67
+ ><slot></slot></span
54
68
  ><span class="inline-flex ml-[0.125rem] align-sub"
55
69
  ><slot name="right-icon" class="icon-size-4"
56
70
  ><span class="-ml-[0.125rem]"></span></slot></span
@@ -86,6 +100,12 @@ __decorateClass([
86
100
  __decorateClass([
87
101
  property({ type: Boolean, reflect: true, attribute: "show-visited" })
88
102
  ], DaikinLink.prototype, "showVisited", 2);
103
+ __decorateClass([
104
+ property({ type: String, reflect: true })
105
+ ], DaikinLink.prototype, "size", 2);
106
+ __decorateClass([
107
+ property({ type: Boolean, reflect: true, attribute: "no-underline" })
108
+ ], DaikinLink.prototype, "noUnderline", 2);
89
109
  DaikinLink = __decorateClass([
90
110
  ddsElement("daikin-link")
91
111
  ], DaikinLink);
@@ -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";
@@ -61,7 +62,10 @@ let DaikinList = class extends DDSElement {
61
62
  nextItem.focus();
62
63
  }
63
64
  render() {
64
- return html`<div role=${this.listRole}>
65
+ return html`<div
66
+ role=${this.listRole}
67
+ aria-label=${this.listRole === "menu" ? "Menu" : "List"}
68
+ >
65
69
  <slot
66
70
  @keydown=${this.handleKeyDown}
67
71
  @slotchange=${this._handleSlotChange}
@@ -19,6 +19,8 @@ import { DDSElement } from "../../base/index.js";
19
19
  * @slot left-icon - An optional slot for an icon to be placed to the left of the text. Place `daikin-icon` or something similar.
20
20
  * @slot right-icon - An optional slot for an icon to be placed to the left of the text. Ignored if `action` slot is used. Place `daikin-icon` or something similar.
21
21
  *
22
+ * @csspart item - CSS styles applied to the `item` part target the internal wrapper element (`<a>`, `<button>`, or `<span>`). For instance, setting `cursor: grab;` changes the hover cursor, signaling that the list item is draggable.
23
+ *
22
24
  * @example
23
25
  *
24
26
  * ```js
@@ -36,6 +38,8 @@ export declare class DaikinListItem extends DDSElement {
36
38
  * - `button` (default): The list item will be rendered as a `<button>` element.
37
39
  * - `link`: The list item will be rendered as an `<a>` element.
38
40
  * - `text`: The list item will be rendered as a `<span>` element. Use this if the list itself has no action.
41
+ *
42
+ * @default "button"
39
43
  */
40
44
  type: "button" | "link" | "text";
41
45
  /**
@@ -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 { DDSElement } from "../../base/dds-element.js";
6
6
  import "../../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";
@@ -52,7 +53,7 @@ const WRAPPER = cva([
52
53
  "p-3",
53
54
  "text-left",
54
55
  "relative",
55
- "break-all"
56
+ "natural-break"
56
57
  ])();
57
58
  const cvaIcon = cva(["icon-size-6", "slotted:flex-none"], {
58
59
  variants: {
@@ -69,7 +70,6 @@ const cvaIcon = cva(["icon-size-6", "slotted:flex-none"], {
69
70
  let DaikinListItem = class extends DDSElement {
70
71
  constructor() {
71
72
  super();
72
- this.type = "button";
73
73
  this.listItemRole = "listitem";
74
74
  this.href = null;
75
75
  this.disabled = false;
@@ -101,10 +101,16 @@ let DaikinListItem = class extends DDSElement {
101
101
  <slot class=${cvaContent({ disabled: this.disabled })}></slot>
102
102
  </span>`;
103
103
  const list = {
104
- button: () => html`<button type="button" class=${INNER_CN} ?disabled=${disabled}>
104
+ button: () => html`<button
105
+ type="button"
106
+ part="item"
107
+ class=${INNER_CN}
108
+ ?disabled=${disabled}
109
+ >
105
110
  ${content}
106
111
  </button>`,
107
112
  link: () => html`<a
113
+ part="item"
108
114
  class=${INNER_CN}
109
115
  href=${ifDefined(!disabled ? this.href ?? void 0 : void 0)}
110
116
  role=${ifDefined(disabled ? "link" : void 0)}
@@ -112,7 +118,7 @@ let DaikinListItem = class extends DDSElement {
112
118
  >
113
119
  ${content}
114
120
  </a>`,
115
- text: () => html`<span class=${INNER_CN}>${content}</span>`
121
+ text: () => html`<span part="item" class=${INNER_CN}>${content}</span>`
116
122
  }[this.type]();
117
123
  return html`<div class=${WRAPPER} role=${this.listItemRole}>
118
124
  ${list}
@@ -149,7 +155,12 @@ DaikinListItem.styles = css`
149
155
  }
150
156
  `;
151
157
  __decorateClass([
152
- property({ type: String, reflect: true })
158
+ property({
159
+ type: String,
160
+ reflect: true,
161
+ fallbackValue: "button",
162
+ isAllowedValue: oneOf(["button", "link", "text"])
163
+ })
153
164
  ], DaikinListItem.prototype, "type", 2);
154
165
  __decorateClass([
155
166
  property({ type: String, attribute: false })
@@ -1,8 +1,8 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  import { unsafeCSS, css, html } from "lit";
3
- import { property } from "lit/decorators.js";
4
3
  import { DDSElement } from "../../base/dds-element.js";
5
4
  import "../../base/dds-form-element.js";
5
+ import { property, oneOf } from "../../base/dds-property.js";
6
6
  import { ddsElement } from "../../base/decorators.js";
7
7
  import "../../base/define.js";
8
8
  import tailwindStyles from "../../tailwind.css.js";
@@ -83,7 +83,12 @@ DaikinLoading.styles = css`
83
83
  }
84
84
  `;
85
85
  __decorateClass([
86
- property({ type: String, reflect: true })
86
+ property({
87
+ type: String,
88
+ reflect: true,
89
+ fallbackValue: "medium",
90
+ isAllowedValue: oneOf(["small", "medium"])
91
+ })
87
92
  ], DaikinLoading.prototype, "size", 2);
88
93
  __decorateClass([
89
94
  property({ type: Boolean, reflect: true })
@@ -32,11 +32,15 @@ export declare class DaikinLogo extends DDSElement {
32
32
  target: string | null;
33
33
  /**
34
34
  * Provides an accessible name of the logo.
35
+ *
36
+ * @default "Logo of Daikin"
35
37
  */
36
38
  logoAriaLabel: string | null;
37
39
  /**
38
40
  * Specify the the logo mode.
39
41
  * Notice: Allow the use of a negative logo only when the positive logo is too close to the background to be legible.
42
+ *
43
+ * @default "positive"
40
44
  */
41
45
  mode: "positive" | "negative";
42
46
  private _focusableElement;
@@ -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 { DDSElement } from "../../base/dds-element.js";
6
6
  import "../../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";
@@ -49,23 +50,20 @@ let DaikinLogo = class extends DDSElement {
49
50
  super(...arguments);
50
51
  this.href = null;
51
52
  this.target = null;
52
- this.logoAriaLabel = "Logo of Daikin";
53
- this.mode = "positive";
54
53
  }
55
54
  render() {
56
55
  if (!this.href) {
57
56
  return html`<span
58
57
  class=${cvaWrapper({ type: "logo", mode: this.mode })}
59
58
  role="img"
60
- aria-label=${ifDefined(this.logoAriaLabel ?? void 0)}
61
- alt=${ifDefined(this.logoAriaLabel ?? void 0)}
59
+ aria-label=${ifDefined(this.logoAriaLabel)}
62
60
  ></span>`;
63
61
  } else {
64
62
  return html`<a
65
63
  class=${cvaWrapper({ type: "link", mode: this.mode })}
66
- aria-label=${ifDefined(this.logoAriaLabel ?? void 0)}
64
+ aria-label=${ifDefined(this.logoAriaLabel)}
67
65
  href=${ifDefined(this.href)}
68
- target=${ifDefined(this.target ?? void 0)}
66
+ target=${ifDefined(this.target)}
69
67
  ></a>`;
70
68
  }
71
69
  }
@@ -94,10 +92,20 @@ __decorateClass([
94
92
  property({ type: String, reflect: true })
95
93
  ], DaikinLogo.prototype, "target", 2);
96
94
  __decorateClass([
97
- property({ type: String, reflect: true, attribute: "logo-aria-label" })
95
+ property({
96
+ type: String,
97
+ reflect: true,
98
+ attribute: "logo-aria-label",
99
+ fallbackValue: "Logo of Daikin"
100
+ })
98
101
  ], DaikinLogo.prototype, "logoAriaLabel", 2);
99
102
  __decorateClass([
100
- property({ type: String, reflect: true })
103
+ property({
104
+ type: String,
105
+ reflect: true,
106
+ fallbackValue: "positive",
107
+ isAllowedValue: oneOf(["positive", "negative"])
108
+ })
101
109
  ], DaikinLogo.prototype, "mode", 2);
102
110
  __decorateClass([
103
111
  query("a")
@@ -1,5 +1,9 @@
1
1
  import { PropertyValues } from 'lit';
2
2
  import { DDSElement } from "../../base/index.js";
3
+ import { DaikinAvatar } from "../avatar/index.js";
4
+ import { DaikinBreadcrumbItem } from "../breadcrumb-item/index.js";
5
+ import { DaikinButton } from "../button/index.js";
6
+ import { DaikinIconButton } from "../icon-button/index.js";
3
7
  /**
4
8
  * A menu component is used to show list information when a user interacts with an element.
5
9
  *
@@ -14,7 +18,7 @@ import { DDSElement } from "../../base/index.js";
14
18
  *
15
19
  * @cssprop [--ddc-menu-spacing=0px] - Spacing between the menu and the trigger.
16
20
  *
17
- * @csspart menu - Change the style of menu.
21
+ * @csspart menu - CSS styles applied to the `menu` part target the internal `<span>` element wrapping the list.
18
22
  *
19
23
  * @example
20
24
  *
@@ -44,6 +48,8 @@ export declare class DaikinMenu extends DDSElement {
44
48
  /**
45
49
  * Specifies the initial position of the menu relative to the trigger.
46
50
  * However, if there isn't enough space in the specified direction, the menu will automatically adjust its direction.
51
+ *
52
+ * @default "bottom"
47
53
  */
48
54
  placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
49
55
  /**
@@ -54,16 +60,32 @@ export declare class DaikinMenu extends DDSElement {
54
60
  * Specify the value of the popover attribute in the Popover API.
55
61
  * - `auto`: Clicking on a trigger element will open a menu, and clicking again will close it. You can also close it using the Esc button. You cannot open multiple menu at the same time.
56
62
  * - `manual`: No click operation is specified for the trigger element. It will not close even if the Esc button is pressed. Multiple menu can be opened at once.
63
+ *
64
+ * @default "auto"
57
65
  */
58
66
  popoverValue: "auto" | "manual";
59
67
  /**
60
68
  * How the menu is controlled.
61
69
  * - `click`: The menu is displayed when the mouse clicks on the trigger element, and hidden when you click on it again. (default)
62
70
  * - `manual`: The menu does not respond to user interaction. Use this to control the menu programmatically.
71
+ *
72
+ * @default "click"
63
73
  */
64
74
  trigger: "click" | "manual";
65
75
  private _autoUpdateController;
66
76
  private _hostStyles;
77
+ /**
78
+ * Exposes the trigger element contained within the menu to the outside of the component.
79
+ *
80
+ * Supported trigger elements:
81
+ * - `<daikin-button>`
82
+ * - `<daikin-icon-button>`
83
+ * - `<daikin-avatar>`
84
+ * - `<daikin-breadcrumb-item>`
85
+ *
86
+ * Returns the first matching element from the slot.
87
+ */
88
+ get triggerElement(): DaikinAvatar | DaikinButton | DaikinIconButton | DaikinBreadcrumbItem | null;
67
89
  /**
68
90
  * Reflects static attributes (e.g. ARIA roles) to slot components.
69
91
  * These are typically set once when the slot changes and do not change frequently.
@@ -1,10 +1,11 @@
1
1
  import { offset, flip, shift } from "@floating-ui/dom";
2
2
  import { cva } from "class-variance-authority";
3
3
  import { unsafeCSS, css, html } from "lit";
4
- import { queryAssignedElements, property } from "lit/decorators.js";
4
+ import { queryAssignedElements } from "lit/decorators.js";
5
5
  import { guard } from "lit/directives/guard.js";
6
6
  import { DDSElement } from "../../base/dds-element.js";
7
7
  import "../../base/dds-form-element.js";
8
+ import { property, oneOf } from "../../base/dds-property.js";
8
9
  import { ddsElement } from "../../base/decorators.js";
9
10
  import "../../base/define.js";
10
11
  import { FloatingUIAutoUpdateController } from "../../controllers/floating-ui-auto-update.js";
@@ -12,6 +13,7 @@ import { isClient } from "../../is-client.js";
12
13
  import tailwindStyles from "../../tailwind.css.js";
13
14
  import { reDispatch } from "../../utils/re-dispatch.js";
14
15
  import { DaikinAvatar } from "../avatar/daikin-avatar.js";
16
+ import { DaikinBreadcrumbItem } from "../breadcrumb-item/daikin-breadcrumb-item.js";
15
17
  import { DaikinButton } from "../button/daikin-button.js";
16
18
  import { DaikinIconButton } from "../icon-button/daikin-icon-button.js";
17
19
  import DaikinListItem from "../list-item/daikin-list-item.js";
@@ -42,10 +44,7 @@ const DEFAULT_MENU_SPACING = "0px";
42
44
  let DaikinMenu = class extends DDSElement {
43
45
  constructor() {
44
46
  super(...arguments);
45
- this.placement = "bottom";
46
47
  this.open = false;
47
- this.popoverValue = "auto";
48
- this.trigger = "click";
49
48
  this._autoUpdateController = new FloatingUIAutoUpdateController(this);
50
49
  this._hostStyles = isClient ? window.getComputedStyle(this) : null;
51
50
  }
@@ -60,6 +59,25 @@ let DaikinMenu = class extends DDSElement {
60
59
  initialValue: "0px"
61
60
  });
62
61
  }
62
+ /**
63
+ * Exposes the trigger element contained within the menu to the outside of the component.
64
+ *
65
+ * Supported trigger elements:
66
+ * - `<daikin-button>`
67
+ * - `<daikin-icon-button>`
68
+ * - `<daikin-avatar>`
69
+ * - `<daikin-breadcrumb-item>`
70
+ *
71
+ * Returns the first matching element from the slot.
72
+ */
73
+ get triggerElement() {
74
+ for (const control of this._controls) {
75
+ if (control instanceof DaikinButton || control instanceof DaikinIconButton && control.type === "button" || control instanceof DaikinAvatar && control.type === "button" || control instanceof DaikinBreadcrumbItem) {
76
+ return control;
77
+ }
78
+ }
79
+ return null;
80
+ }
63
81
  /**
64
82
  * Reflects static attributes (e.g. ARIA roles) to slot components.
65
83
  * These are typically set once when the slot changes and do not change frequently.
@@ -83,9 +101,9 @@ let DaikinMenu = class extends DDSElement {
83
101
  _reflectDynamicProperties() {
84
102
  for (const control of this._controls) {
85
103
  if (control instanceof DaikinButton || control instanceof DaikinIconButton && control.type === "button") {
86
- control.buttonAriaExpanded = this.open;
104
+ control.buttonAriaExpanded = `${this.open}`;
87
105
  } else if (control instanceof DaikinAvatar && control.type === "button") {
88
- control.avatarAriaExpanded = this.open;
106
+ control.avatarAriaExpanded = `${this.open}`;
89
107
  }
90
108
  }
91
109
  }
@@ -112,7 +130,6 @@ let DaikinMenu = class extends DDSElement {
112
130
  * When the popoverValue is manual, the logic for closing the popover should be entirely controlled by the developer and not be the responsibility of the component.
113
131
  */
114
132
  _handleClick(event) {
115
- event.preventDefault();
116
133
  if (event.target instanceof DaikinListItem && !event.target.disabled && this.popoverValue === "auto") {
117
134
  this.open = false;
118
135
  }
@@ -134,12 +151,7 @@ let DaikinMenu = class extends DDSElement {
134
151
  return html`<div
135
152
  class="relative inline-block text-ddt-color-common-text-primary font-daikinSerif"
136
153
  >
137
- <div
138
- id="trigger"
139
- aria-labelledby="trigger"
140
- aria-describedby="menu"
141
- ${this._autoUpdateController.refReference()}
142
- >
154
+ <div id="trigger" ${this._autoUpdateController.refReference()}>
143
155
  <slot
144
156
  @click=${this._handleTriggerClick}
145
157
  @touchend=${this._handleTouchEnd}
@@ -147,7 +159,6 @@ let DaikinMenu = class extends DDSElement {
147
159
  </div>
148
160
  <span
149
161
  id="menu"
150
- aria-labelledby="menu"
151
162
  part="menu"
152
163
  class=${cvaMenu()}
153
164
  popover=${this.popoverValue}
@@ -194,25 +205,53 @@ __decorateClass([
194
205
  ], DaikinMenu.prototype, "_lists", 2);
195
206
  __decorateClass([
196
207
  queryAssignedElements({
197
- selector: "daikin-button,daikin-icon-button,daikin-avatar"
208
+ selector: "daikin-button,daikin-icon-button,daikin-avatar,daikin-breadcrumb-item"
198
209
  })
199
210
  ], DaikinMenu.prototype, "_controls", 2);
200
211
  __decorateClass([
201
- property({ type: String, reflect: true })
212
+ property({
213
+ type: String,
214
+ reflect: true,
215
+ fallbackValue: "bottom",
216
+ isAllowedValue: oneOf([
217
+ "top",
218
+ "top-start",
219
+ "top-end",
220
+ "bottom",
221
+ "bottom-start",
222
+ "bottom-end",
223
+ "left",
224
+ "left-start",
225
+ "left-end",
226
+ "right",
227
+ "right-start",
228
+ "right-end"
229
+ ])
230
+ })
202
231
  ], DaikinMenu.prototype, "placement", 2);
203
232
  __decorateClass([
204
233
  property({ type: Boolean, reflect: true })
205
234
  ], DaikinMenu.prototype, "open", 2);
206
235
  __decorateClass([
207
- property({ type: String, attribute: "popover-value" })
236
+ property({
237
+ type: String,
238
+ attribute: "popover-value",
239
+ reflect: true,
240
+ fallbackValue: "auto",
241
+ isAllowedValue: oneOf(["auto", "manual"])
242
+ })
208
243
  ], DaikinMenu.prototype, "popoverValue", 2);
209
244
  __decorateClass([
210
- property({ type: String, reflect: true })
245
+ property({
246
+ type: String,
247
+ reflect: true,
248
+ fallbackValue: "click",
249
+ isAllowedValue: oneOf(["click", "manual"])
250
+ })
211
251
  ], DaikinMenu.prototype, "trigger", 2);
212
252
  DaikinMenu = __decorateClass([
213
253
  ddsElement("daikin-menu")
214
254
  ], DaikinMenu);
215
- DaikinMenu.registerCSSCustomProperties();
216
255
  export {
217
256
  DaikinMenu
218
257
  };
@@ -39,6 +39,8 @@ export declare class DaikinModal extends DDSElement {
39
39
  open: boolean;
40
40
  /**
41
41
  * ARIA role of the modal. Choose the appropriate role for your modal based on its usage scenario.
42
+ *
43
+ * @default "dialog"
42
44
  */
43
45
  modalRole: "dialog" | "alertdialog";
44
46
  /**
@@ -1,10 +1,10 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  import { unsafeCSS, css, html } from "lit";
3
- import { property } from "lit/decorators.js";
4
3
  import { guard } from "lit/directives/guard.js";
5
4
  import { ifDefined } from "lit/directives/if-defined.js";
6
5
  import { DDSElement } from "../../base/dds-element.js";
7
6
  import "../../base/dds-form-element.js";
7
+ import { property, oneOf } from "../../base/dds-property.js";
8
8
  import { ddsElement } from "../../base/decorators.js";
9
9
  import "../../base/define.js";
10
10
  import { FocusTrapController } from "../../controllers/focus-trap.js";
@@ -56,7 +56,6 @@ let DaikinModal = class extends DDSElement {
56
56
  constructor() {
57
57
  super(...arguments);
58
58
  this.open = false;
59
- this.modalRole = "dialog";
60
59
  this.modalAriaLabel = null;
61
60
  this.persistent = false;
62
61
  this._handleClose = () => {
@@ -101,7 +100,13 @@ __decorateClass([
101
100
  property({ type: Boolean, reflect: true })
102
101
  ], DaikinModal.prototype, "open", 2);
103
102
  __decorateClass([
104
- property({ type: String, reflect: true, attribute: "modal-role" })
103
+ property({
104
+ type: String,
105
+ reflect: true,
106
+ attribute: "modal-role",
107
+ fallbackValue: "dialog",
108
+ isAllowedValue: oneOf(["dialog", "alertdialog"])
109
+ })
105
110
  ], DaikinModal.prototype, "modalRole", 2);
106
111
  __decorateClass([
107
112
  property({ type: String, reflect: true, attribute: "modal-aria-label" })
@@ -1,6 +1,7 @@
1
1
  import { unsafeCSS, css, html } from "lit";
2
2
  import { DDSElement } from "../../base/dds-element.js";
3
3
  import "../../base/dds-form-element.js";
4
+ import "lit/decorators.js";
4
5
  import { ddsElement } from "../../base/decorators.js";
5
6
  import "../../base/define.js";
6
7
  import tailwindStyles from "../../tailwind.css.js";
@@ -1,9 +1,9 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  import { unsafeCSS, css, nothing, html } from "lit";
3
- import { property } from "lit/decorators.js";
4
3
  import { createRef, ref } from "lit/directives/ref.js";
5
4
  import { DDSElement } from "../../base/dds-element.js";
6
5
  import "../../base/dds-form-element.js";
6
+ import { property } from "../../base/dds-property.js";
7
7
  import { ddsElement } from "../../base/decorators.js";
8
8
  import "../../base/define.js";
9
9
  import tailwindStyles from "../../tailwind.css.js";
@@ -53,7 +53,7 @@ let DaikinModalHeader = class extends DDSElement {
53
53
  }
54
54
  render() {
55
55
  return html`<div class="flex w-full gap-2">
56
- <div class="flex-1 flex flex-col pt-0.5 gap-2 break-all">
56
+ <div class="flex-1 flex flex-col pt-0.5 gap-2 natural-break">
57
57
  <slot class=${cvaTitle}></slot>
58
58
  <slot name="description" class=${cvaDescription}></slot>
59
59
  </div>
@@ -1,10 +1,10 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  import { unsafeCSS, css, html } from "lit";
3
- import { property } from "lit/decorators.js";
4
3
  import { ifDefined } from "lit/directives/if-defined.js";
5
4
  import { repeat } from "lit/directives/repeat.js";
6
5
  import { DDSElement } from "../../base/dds-element.js";
7
6
  import "../../base/dds-form-element.js";
7
+ import { property } from "../../base/dds-property.js";
8
8
  import { ddsElement } from "../../base/decorators.js";
9
9
  import "../../base/define.js";
10
10
  import tailwindStyles from "../../tailwind.css.js";
@@ -38,10 +38,14 @@ export declare class DaikinProgressBar extends DDSElement {
38
38
  static readonly styles: import('lit').CSSResult;
39
39
  /**
40
40
  * Variant of the progress bar.
41
+ *
42
+ * @default "inprogress"
41
43
  */
42
44
  variant: ProgressBarVariantProps["variant"];
43
45
  /**
44
46
  * Size of the progress bar
47
+ *
48
+ * @default "medium"
45
49
  */
46
50
  size: ProgressBarVariantProps["size"];
47
51
  /**
@@ -1,8 +1,8 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  import { unsafeCSS, css, html } from "lit";
3
- import { property } from "lit/decorators.js";
4
3
  import { DDSElement } from "../../base/dds-element.js";
5
4
  import "../../base/dds-form-element.js";
5
+ import { property, oneOf } from "../../base/dds-property.js";
6
6
  import { ddsElement } from "../../base/decorators.js";
7
7
  import "../../base/define.js";
8
8
  import tailwindStyles from "../../tailwind.css.js";
@@ -96,11 +96,8 @@ const cvaHelper = cva(["text-sm", "leading-[130%]"], {
96
96
  let DaikinProgressBar = class extends DDSElement {
97
97
  constructor() {
98
98
  super(...arguments);
99
- this.variant = "inprogress";
100
- this.size = "medium";
101
99
  this.value = 0;
102
100
  this.max = 100;
103
- this.helper = "";
104
101
  }
105
102
  // Validate the 'value' and 'max' properties to ensure they are valid
106
103
  _validateProperties() {
@@ -156,10 +153,25 @@ DaikinProgressBar.styles = css`
156
153
  }
157
154
  `;
158
155
  __decorateClass([
159
- property({ type: String })
156
+ property({
157
+ type: String,
158
+ reflect: true,
159
+ fallbackValue: "inprogress",
160
+ isAllowedValue: oneOf([
161
+ "inprogress",
162
+ "completed",
163
+ "indeterminate",
164
+ "error"
165
+ ])
166
+ })
160
167
  ], DaikinProgressBar.prototype, "variant", 2);
161
168
  __decorateClass([
162
- property({ type: String, reflect: true })
169
+ property({
170
+ type: String,
171
+ reflect: true,
172
+ fallbackValue: "medium",
173
+ isAllowedValue: oneOf(["medium", "large"])
174
+ })
163
175
  ], DaikinProgressBar.prototype, "size", 2);
164
176
  __decorateClass([
165
177
  property({ type: Number })
@@ -168,7 +180,7 @@ __decorateClass([
168
180
  property({ type: Number })
169
181
  ], DaikinProgressBar.prototype, "max", 2);
170
182
  __decorateClass([
171
- property({ type: String })
183
+ property({ type: String, reflect: true, fallbackValue: "" })
172
184
  ], DaikinProgressBar.prototype, "helper", 2);
173
185
  DaikinProgressBar = __decorateClass([
174
186
  ddsElement("daikin-progress-bar")