@daikin-oss/design-system-web-components 1.5.2-next.0 → 1.6.0-next.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 (483) hide show
  1. package/CHANGELOG.md +134 -0
  2. package/custom-elements.json +4783 -2726
  3. package/dist/cjs/base/dds-element.cjs +3 -2
  4. package/dist/cjs/base/dds-form-element.d.cts +1 -0
  5. package/dist/cjs/base/dds-property.d.cts +2 -2
  6. package/dist/cjs/components/accordion/daikin-accordion.cjs +1 -0
  7. package/dist/cjs/components/accordion/daikin-accordion.d.cts +4 -0
  8. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +13 -11
  9. package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +1 -1
  10. package/dist/cjs/components/badge/daikin-badge.cjs +72 -7
  11. package/dist/cjs/components/badge/daikin-badge.d.cts +25 -4
  12. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +1 -0
  13. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +1 -4
  14. package/dist/cjs/components/button/daikin-button.cjs +4 -6
  15. package/dist/cjs/components/button/daikin-button.d.cts +2 -2
  16. package/dist/cjs/components/calendar/daikin-calendar.cjs +3 -1
  17. package/dist/cjs/components/calendar/daikin-calendar.d.cts +2 -0
  18. package/dist/cjs/components/card-header/daikin-card-header.cjs +0 -2
  19. package/dist/cjs/components/carousel/daikin-carousel.d.cts +1 -0
  20. package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +3 -3
  21. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +25 -5
  22. package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +9 -1
  23. package/dist/cjs/components/chip/daikin-chip.cjs +2 -4
  24. package/dist/cjs/components/chip/daikin-chip.d.cts +1 -0
  25. package/dist/cjs/components/combobox/daikin-combobox.cjs +11 -4
  26. package/dist/cjs/components/combobox/daikin-combobox.d.cts +3 -1
  27. package/dist/cjs/components/date-picker/daikin-date-picker.cjs +127 -62
  28. package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +19 -1
  29. package/dist/cjs/components/divider/daikin-divider.cjs +42 -0
  30. package/dist/cjs/components/divider/daikin-divider.d.cts +23 -0
  31. package/dist/cjs/components/divider/index.cjs +7 -0
  32. package/dist/cjs/components/divider/index.d.cts +1 -0
  33. package/dist/cjs/components/drawer/daikin-drawer.cjs +229 -0
  34. package/dist/cjs/components/drawer/daikin-drawer.d.cts +91 -0
  35. package/dist/cjs/components/drawer/index.cjs +7 -0
  36. package/dist/cjs/components/drawer/index.d.cts +1 -0
  37. package/dist/cjs/components/drawer-footer/daikin-drawer-footer.cjs +36 -0
  38. package/dist/cjs/components/drawer-footer/daikin-drawer-footer.d.cts +33 -0
  39. package/dist/cjs/components/drawer-footer/index.cjs +7 -0
  40. package/dist/cjs/components/drawer-footer/index.d.cts +1 -0
  41. package/dist/cjs/components/drawer-header/daikin-drawer-header.cjs +83 -0
  42. package/dist/cjs/components/drawer-header/daikin-drawer-header.d.cts +41 -0
  43. package/dist/cjs/components/drawer-header/index.cjs +7 -0
  44. package/dist/cjs/components/drawer-header/index.d.cts +1 -0
  45. package/dist/cjs/components/dropdown/daikin-dropdown.cjs +11 -2
  46. package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +3 -1
  47. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +0 -2
  48. package/dist/cjs/components/empty-state/daikin-empty-state.cjs +2 -2
  49. package/dist/cjs/components/icon/daikin-icon.cjs +1 -2
  50. package/dist/cjs/components/icon-button/daikin-icon-button.cjs +0 -1
  51. package/dist/cjs/components/index.cjs +35 -0
  52. package/dist/cjs/components/index.d.cts +7 -0
  53. package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +1 -7
  54. package/dist/cjs/components/input-group/daikin-input-group.cjs +16 -11
  55. package/dist/cjs/components/link/daikin-link.cjs +26 -23
  56. package/dist/cjs/components/list/daikin-list.cjs +12 -0
  57. package/dist/cjs/components/list/daikin-list.d.cts +8 -0
  58. package/dist/cjs/components/list-item/daikin-list-item.cjs +30 -9
  59. package/dist/cjs/components/menu/daikin-menu.cjs +85 -11
  60. package/dist/cjs/components/menu/daikin-menu.d.cts +23 -5
  61. package/dist/cjs/components/modal/daikin-modal.cjs +18 -1
  62. package/dist/cjs/components/modal/daikin-modal.d.cts +25 -0
  63. package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +1 -1
  64. package/dist/cjs/components/modal-header/daikin-modal-header.cjs +0 -2
  65. package/dist/cjs/components/navigation/daikin-navigation.cjs +2 -1
  66. package/dist/cjs/components/navigation/daikin-navigation.d.cts +1 -0
  67. package/dist/cjs/components/navigation-item/daikin-navigation-item.cjs +6 -7
  68. package/dist/cjs/components/pagination/daikin-pagination.cjs +13 -6
  69. package/dist/cjs/components/pagination/daikin-pagination.d.cts +4 -1
  70. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +2 -3
  71. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +1 -1
  72. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +4 -4
  73. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +7 -5
  74. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +1 -1
  75. package/dist/cjs/components/radio/daikin-radio.cjs +14 -2
  76. package/dist/cjs/components/radio/daikin-radio.d.cts +1 -0
  77. package/dist/cjs/components/radio-group/daikin-radio-group.cjs +2 -0
  78. package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +2 -1
  79. package/dist/cjs/components/select/daikin-select.cjs +0 -1
  80. package/dist/cjs/components/slider/daikin-slider.cjs +14 -4
  81. package/dist/cjs/components/slider/daikin-slider.d.cts +1 -1
  82. package/dist/cjs/components/status-message/daikin-status-message.cjs +3 -4
  83. package/dist/cjs/components/tab/daikin-tab.cjs +0 -2
  84. package/dist/cjs/components/table/daikin-table.cjs +1 -1
  85. package/dist/cjs/components/table/daikin-table.d.cts +2 -0
  86. package/dist/cjs/components/tabs/daikin-tabs.d.cts +1 -0
  87. package/dist/cjs/components/tag/daikin-tag.cjs +1 -1
  88. package/dist/cjs/components/text-area/daikin-text-area.cjs +0 -1
  89. package/dist/cjs/components/text-area/daikin-text-area.d.cts +1 -1
  90. package/dist/cjs/components/text-field/daikin-text-field.cjs +0 -1
  91. package/dist/cjs/components/text-field/daikin-text-field.d.cts +1 -1
  92. package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +0 -1
  93. package/dist/cjs/components/text-masked-field/daikin-text-masked-field.d.cts +1 -1
  94. package/dist/cjs/components/time-picker/daikin-time-picker.cjs +1 -1
  95. package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +1 -1
  96. package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +2 -3
  97. package/dist/cjs/components/toggle/daikin-toggle.d.cts +1 -0
  98. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +2 -4
  99. package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +9 -2
  100. package/dist/cjs/components/tree/daikin-tree.cjs +2 -0
  101. package/dist/cjs/components/tree/daikin-tree.d.cts +4 -0
  102. package/dist/cjs/components/tree-item/daikin-tree-item.cjs +1 -2
  103. package/dist/cjs/components/tree-section/daikin-tree-section.cjs +7 -3
  104. package/dist/cjs/components/vertical-navigation/daikin-vertical-navigation.cjs +115 -0
  105. package/dist/cjs/components/vertical-navigation/daikin-vertical-navigation.d.cts +77 -0
  106. package/dist/cjs/components/vertical-navigation/index.cjs +7 -0
  107. package/dist/cjs/components/vertical-navigation/index.d.cts +1 -0
  108. package/dist/cjs/components/vertical-navigation-item/daikin-vertical-navigation-item.cjs +378 -0
  109. package/dist/cjs/components/vertical-navigation-item/daikin-vertical-navigation-item.d.cts +121 -0
  110. package/dist/cjs/components/vertical-navigation-item/index.cjs +7 -0
  111. package/dist/cjs/components/vertical-navigation-item/index.d.cts +1 -0
  112. package/dist/cjs/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs +176 -0
  113. package/dist/cjs/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.cts +86 -0
  114. package/dist/cjs/components/vertical-navigation-menu-item/index.cjs +7 -0
  115. package/dist/cjs/components/vertical-navigation-menu-item/index.d.cts +1 -0
  116. package/dist/cjs/controllers/block-scroll.cjs +43 -0
  117. package/dist/cjs/controllers/block-scroll.d.cts +48 -0
  118. package/dist/cjs/controllers/focus-trap.cjs +33 -17
  119. package/dist/cjs/controllers/focus-trap.d.cts +1 -1
  120. package/dist/cjs/index.cjs +35 -0
  121. package/dist/cjs/tailwind.css.cjs +1 -1
  122. package/dist/cjs/utils/notification-common.cjs +1 -1
  123. package/dist/cjs-dev/base/dds-element.cjs +3 -2
  124. package/dist/cjs-dev/base/dds-form-element.d.cts +1 -0
  125. package/dist/cjs-dev/base/dds-property.d.cts +2 -2
  126. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +1 -0
  127. package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +4 -0
  128. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +13 -11
  129. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +1 -1
  130. package/dist/cjs-dev/components/badge/daikin-badge.cjs +72 -7
  131. package/dist/cjs-dev/components/badge/daikin-badge.d.cts +25 -4
  132. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +1 -0
  133. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +1 -4
  134. package/dist/cjs-dev/components/button/daikin-button.cjs +4 -6
  135. package/dist/cjs-dev/components/button/daikin-button.d.cts +2 -2
  136. package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +3 -1
  137. package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +2 -0
  138. package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +0 -2
  139. package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +1 -0
  140. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +3 -3
  141. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +25 -5
  142. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +9 -1
  143. package/dist/cjs-dev/components/chip/daikin-chip.cjs +2 -4
  144. package/dist/cjs-dev/components/chip/daikin-chip.d.cts +1 -0
  145. package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +11 -4
  146. package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +3 -1
  147. package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +127 -62
  148. package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +19 -1
  149. package/dist/cjs-dev/components/divider/daikin-divider.cjs +42 -0
  150. package/dist/cjs-dev/components/divider/daikin-divider.d.cts +23 -0
  151. package/dist/cjs-dev/components/divider/index.cjs +7 -0
  152. package/dist/cjs-dev/components/divider/index.d.cts +1 -0
  153. package/dist/cjs-dev/components/drawer/daikin-drawer.cjs +229 -0
  154. package/dist/cjs-dev/components/drawer/daikin-drawer.d.cts +91 -0
  155. package/dist/cjs-dev/components/drawer/index.cjs +7 -0
  156. package/dist/cjs-dev/components/drawer/index.d.cts +1 -0
  157. package/dist/cjs-dev/components/drawer-footer/daikin-drawer-footer.cjs +36 -0
  158. package/dist/cjs-dev/components/drawer-footer/daikin-drawer-footer.d.cts +33 -0
  159. package/dist/cjs-dev/components/drawer-footer/index.cjs +7 -0
  160. package/dist/cjs-dev/components/drawer-footer/index.d.cts +1 -0
  161. package/dist/cjs-dev/components/drawer-header/daikin-drawer-header.cjs +83 -0
  162. package/dist/cjs-dev/components/drawer-header/daikin-drawer-header.d.cts +41 -0
  163. package/dist/cjs-dev/components/drawer-header/index.cjs +7 -0
  164. package/dist/cjs-dev/components/drawer-header/index.d.cts +1 -0
  165. package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +11 -2
  166. package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +3 -1
  167. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +0 -2
  168. package/dist/cjs-dev/components/empty-state/daikin-empty-state.cjs +2 -2
  169. package/dist/cjs-dev/components/icon/daikin-icon.cjs +1 -2
  170. package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +0 -1
  171. package/dist/cjs-dev/components/index.cjs +35 -0
  172. package/dist/cjs-dev/components/index.d.cts +7 -0
  173. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +1 -7
  174. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +16 -11
  175. package/dist/cjs-dev/components/link/daikin-link.cjs +26 -23
  176. package/dist/cjs-dev/components/list/daikin-list.cjs +12 -0
  177. package/dist/cjs-dev/components/list/daikin-list.d.cts +8 -0
  178. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +30 -9
  179. package/dist/cjs-dev/components/menu/daikin-menu.cjs +85 -11
  180. package/dist/cjs-dev/components/menu/daikin-menu.d.cts +23 -5
  181. package/dist/cjs-dev/components/modal/daikin-modal.cjs +18 -1
  182. package/dist/cjs-dev/components/modal/daikin-modal.d.cts +25 -0
  183. package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +1 -1
  184. package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +0 -2
  185. package/dist/cjs-dev/components/navigation/daikin-navigation.cjs +2 -1
  186. package/dist/cjs-dev/components/navigation/daikin-navigation.d.cts +1 -0
  187. package/dist/cjs-dev/components/navigation-item/daikin-navigation-item.cjs +6 -7
  188. package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +13 -6
  189. package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +4 -1
  190. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +2 -3
  191. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +1 -1
  192. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +4 -4
  193. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +7 -5
  194. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +1 -1
  195. package/dist/cjs-dev/components/radio/daikin-radio.cjs +14 -2
  196. package/dist/cjs-dev/components/radio/daikin-radio.d.cts +1 -0
  197. package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +2 -0
  198. package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +2 -1
  199. package/dist/cjs-dev/components/select/daikin-select.cjs +0 -1
  200. package/dist/cjs-dev/components/slider/daikin-slider.cjs +14 -4
  201. package/dist/cjs-dev/components/slider/daikin-slider.d.cts +1 -1
  202. package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +3 -4
  203. package/dist/cjs-dev/components/tab/daikin-tab.cjs +0 -2
  204. package/dist/cjs-dev/components/table/daikin-table.cjs +1 -1
  205. package/dist/cjs-dev/components/table/daikin-table.d.cts +2 -0
  206. package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +1 -0
  207. package/dist/cjs-dev/components/tag/daikin-tag.cjs +1 -1
  208. package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +0 -1
  209. package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +1 -1
  210. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +0 -1
  211. package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +1 -1
  212. package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +0 -1
  213. package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.d.cts +1 -1
  214. package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +1 -1
  215. package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +1 -1
  216. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +2 -3
  217. package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +1 -0
  218. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +2 -4
  219. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +9 -2
  220. package/dist/cjs-dev/components/tree/daikin-tree.cjs +2 -0
  221. package/dist/cjs-dev/components/tree/daikin-tree.d.cts +4 -0
  222. package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +1 -2
  223. package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +7 -3
  224. package/dist/cjs-dev/components/vertical-navigation/daikin-vertical-navigation.cjs +127 -0
  225. package/dist/cjs-dev/components/vertical-navigation/daikin-vertical-navigation.d.cts +77 -0
  226. package/dist/cjs-dev/components/vertical-navigation/index.cjs +7 -0
  227. package/dist/cjs-dev/components/vertical-navigation/index.d.cts +1 -0
  228. package/dist/cjs-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.cjs +378 -0
  229. package/dist/cjs-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.d.cts +121 -0
  230. package/dist/cjs-dev/components/vertical-navigation-item/index.cjs +7 -0
  231. package/dist/cjs-dev/components/vertical-navigation-item/index.d.cts +1 -0
  232. package/dist/cjs-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs +176 -0
  233. package/dist/cjs-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.cts +86 -0
  234. package/dist/cjs-dev/components/vertical-navigation-menu-item/index.cjs +7 -0
  235. package/dist/cjs-dev/components/vertical-navigation-menu-item/index.d.cts +1 -0
  236. package/dist/cjs-dev/controllers/block-scroll.cjs +43 -0
  237. package/dist/cjs-dev/controllers/block-scroll.d.cts +48 -0
  238. package/dist/cjs-dev/controllers/focus-trap.cjs +33 -17
  239. package/dist/cjs-dev/controllers/focus-trap.d.cts +1 -1
  240. package/dist/cjs-dev/index.cjs +35 -0
  241. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  242. package/dist/cjs-dev/utils/notification-common.cjs +1 -1
  243. package/dist/es/base/dds-element.js +3 -2
  244. package/dist/es/base/dds-form-element.d.ts +1 -0
  245. package/dist/es/base/dds-property.d.ts +2 -2
  246. package/dist/es/components/accordion/daikin-accordion.d.ts +4 -0
  247. package/dist/es/components/accordion/daikin-accordion.js +1 -0
  248. package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +1 -1
  249. package/dist/es/components/accordion-item/daikin-accordion-item.js +13 -11
  250. package/dist/es/components/badge/daikin-badge.d.ts +25 -4
  251. package/dist/es/components/badge/daikin-badge.js +72 -7
  252. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +1 -0
  253. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +1 -4
  254. package/dist/es/components/button/daikin-button.d.ts +2 -2
  255. package/dist/es/components/button/daikin-button.js +4 -6
  256. package/dist/es/components/calendar/daikin-calendar.d.ts +2 -0
  257. package/dist/es/components/calendar/daikin-calendar.js +3 -1
  258. package/dist/es/components/card-header/daikin-card-header.js +0 -2
  259. package/dist/es/components/carousel/daikin-carousel.d.ts +1 -0
  260. package/dist/es/components/carousel-item/daikin-carousel-item.js +3 -3
  261. package/dist/es/components/checkbox/daikin-checkbox.d.ts +9 -1
  262. package/dist/es/components/checkbox/daikin-checkbox.js +25 -5
  263. package/dist/es/components/chip/daikin-chip.d.ts +1 -0
  264. package/dist/es/components/chip/daikin-chip.js +2 -4
  265. package/dist/es/components/combobox/daikin-combobox.d.ts +3 -1
  266. package/dist/es/components/combobox/daikin-combobox.js +11 -4
  267. package/dist/es/components/date-picker/daikin-date-picker.d.ts +19 -1
  268. package/dist/es/components/date-picker/daikin-date-picker.js +127 -62
  269. package/dist/es/components/divider/daikin-divider.d.ts +23 -0
  270. package/dist/es/components/divider/daikin-divider.js +43 -0
  271. package/dist/es/components/divider/index.d.ts +1 -0
  272. package/dist/es/components/divider/index.js +4 -0
  273. package/dist/es/components/drawer/daikin-drawer.d.ts +91 -0
  274. package/dist/es/components/drawer/daikin-drawer.js +230 -0
  275. package/dist/es/components/drawer/index.d.ts +1 -0
  276. package/dist/es/components/drawer/index.js +4 -0
  277. package/dist/es/components/drawer-footer/daikin-drawer-footer.d.ts +33 -0
  278. package/dist/es/components/drawer-footer/daikin-drawer-footer.js +37 -0
  279. package/dist/es/components/drawer-footer/index.d.ts +1 -0
  280. package/dist/es/components/drawer-footer/index.js +4 -0
  281. package/dist/es/components/drawer-header/daikin-drawer-header.d.ts +41 -0
  282. package/dist/es/components/drawer-header/daikin-drawer-header.js +84 -0
  283. package/dist/es/components/drawer-header/index.d.ts +1 -0
  284. package/dist/es/components/drawer-header/index.js +4 -0
  285. package/dist/es/components/dropdown/daikin-dropdown.d.ts +3 -1
  286. package/dist/es/components/dropdown/daikin-dropdown.js +11 -2
  287. package/dist/es/components/dropdown-item/daikin-dropdown-item.js +0 -2
  288. package/dist/es/components/empty-state/daikin-empty-state.js +2 -2
  289. package/dist/es/components/icon/daikin-icon.js +1 -2
  290. package/dist/es/components/icon-button/daikin-icon-button.js +0 -1
  291. package/dist/es/components/index.d.ts +7 -0
  292. package/dist/es/components/index.js +14 -0
  293. package/dist/es/components/inline-notification/daikin-inline-notification.js +1 -7
  294. package/dist/es/components/input-group/daikin-input-group.js +16 -11
  295. package/dist/es/components/link/daikin-link.js +26 -23
  296. package/dist/es/components/list/daikin-list.d.ts +8 -0
  297. package/dist/es/components/list/daikin-list.js +13 -1
  298. package/dist/es/components/list-item/daikin-list-item.js +30 -9
  299. package/dist/es/components/menu/daikin-menu.d.ts +23 -5
  300. package/dist/es/components/menu/daikin-menu.js +85 -11
  301. package/dist/es/components/modal/daikin-modal.d.ts +25 -0
  302. package/dist/es/components/modal/daikin-modal.js +18 -1
  303. package/dist/es/components/modal-footer/daikin-modal-footer.js +1 -1
  304. package/dist/es/components/modal-header/daikin-modal-header.js +0 -2
  305. package/dist/es/components/navigation/daikin-navigation.d.ts +1 -0
  306. package/dist/es/components/navigation/daikin-navigation.js +2 -1
  307. package/dist/es/components/navigation-item/daikin-navigation-item.js +6 -7
  308. package/dist/es/components/pagination/daikin-pagination.d.ts +4 -1
  309. package/dist/es/components/pagination/daikin-pagination.js +13 -6
  310. package/dist/es/components/progress-bar/daikin-progress-bar.js +2 -3
  311. package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +4 -4
  312. package/dist/es/components/progress-indicator/daikin-progress-indicator.js +1 -1
  313. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +1 -1
  314. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +7 -5
  315. package/dist/es/components/radio/daikin-radio.d.ts +1 -0
  316. package/dist/es/components/radio/daikin-radio.js +14 -2
  317. package/dist/es/components/radio-group/daikin-radio-group.d.ts +2 -1
  318. package/dist/es/components/radio-group/daikin-radio-group.js +2 -0
  319. package/dist/es/components/select/daikin-select.js +0 -1
  320. package/dist/es/components/slider/daikin-slider.d.ts +1 -1
  321. package/dist/es/components/slider/daikin-slider.js +14 -4
  322. package/dist/es/components/status-message/daikin-status-message.js +3 -4
  323. package/dist/es/components/tab/daikin-tab.js +0 -2
  324. package/dist/es/components/table/daikin-table.d.ts +2 -0
  325. package/dist/es/components/table/daikin-table.js +1 -1
  326. package/dist/es/components/tabs/daikin-tabs.d.ts +1 -0
  327. package/dist/es/components/tag/daikin-tag.js +1 -1
  328. package/dist/es/components/text-area/daikin-text-area.d.ts +1 -1
  329. package/dist/es/components/text-area/daikin-text-area.js +0 -1
  330. package/dist/es/components/text-field/daikin-text-field.d.ts +1 -1
  331. package/dist/es/components/text-field/daikin-text-field.js +0 -1
  332. package/dist/es/components/text-masked-field/daikin-text-masked-field.d.ts +1 -1
  333. package/dist/es/components/text-masked-field/daikin-text-masked-field.js +0 -1
  334. package/dist/es/components/time-picker/daikin-time-picker.d.ts +1 -1
  335. package/dist/es/components/time-picker/daikin-time-picker.js +1 -1
  336. package/dist/es/components/toast-notification/daikin-toast-notification.js +2 -3
  337. package/dist/es/components/toggle/daikin-toggle.d.ts +1 -0
  338. package/dist/es/components/tooltip/daikin-tooltip.d.ts +9 -2
  339. package/dist/es/components/tooltip/daikin-tooltip.js +2 -4
  340. package/dist/es/components/tree/daikin-tree.d.ts +4 -0
  341. package/dist/es/components/tree/daikin-tree.js +2 -0
  342. package/dist/es/components/tree-item/daikin-tree-item.js +1 -2
  343. package/dist/es/components/tree-section/daikin-tree-section.js +7 -3
  344. package/dist/es/components/vertical-navigation/daikin-vertical-navigation.d.ts +77 -0
  345. package/dist/es/components/vertical-navigation/daikin-vertical-navigation.js +116 -0
  346. package/dist/es/components/vertical-navigation/index.d.ts +1 -0
  347. package/dist/es/components/vertical-navigation/index.js +4 -0
  348. package/dist/es/components/vertical-navigation-item/daikin-vertical-navigation-item.d.ts +121 -0
  349. package/dist/es/components/vertical-navigation-item/daikin-vertical-navigation-item.js +379 -0
  350. package/dist/es/components/vertical-navigation-item/index.d.ts +1 -0
  351. package/dist/es/components/vertical-navigation-item/index.js +4 -0
  352. package/dist/es/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.ts +86 -0
  353. package/dist/es/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js +177 -0
  354. package/dist/es/components/vertical-navigation-menu-item/index.d.ts +1 -0
  355. package/dist/es/components/vertical-navigation-menu-item/index.js +4 -0
  356. package/dist/es/controllers/block-scroll.d.ts +48 -0
  357. package/dist/es/controllers/block-scroll.js +43 -0
  358. package/dist/es/controllers/focus-trap.d.ts +1 -1
  359. package/dist/es/controllers/focus-trap.js +33 -17
  360. package/dist/es/index.js +14 -0
  361. package/dist/es/tailwind.css.js +1 -1
  362. package/dist/es/utils/notification-common.js +1 -1
  363. package/dist/es-dev/base/dds-element.js +3 -2
  364. package/dist/es-dev/base/dds-form-element.d.ts +1 -0
  365. package/dist/es-dev/base/dds-property.d.ts +2 -2
  366. package/dist/es-dev/components/accordion/daikin-accordion.d.ts +4 -0
  367. package/dist/es-dev/components/accordion/daikin-accordion.js +1 -0
  368. package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +1 -1
  369. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +13 -11
  370. package/dist/es-dev/components/badge/daikin-badge.d.ts +25 -4
  371. package/dist/es-dev/components/badge/daikin-badge.js +72 -7
  372. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +1 -0
  373. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +1 -4
  374. package/dist/es-dev/components/button/daikin-button.d.ts +2 -2
  375. package/dist/es-dev/components/button/daikin-button.js +4 -6
  376. package/dist/es-dev/components/calendar/daikin-calendar.d.ts +2 -0
  377. package/dist/es-dev/components/calendar/daikin-calendar.js +3 -1
  378. package/dist/es-dev/components/card-header/daikin-card-header.js +0 -2
  379. package/dist/es-dev/components/carousel/daikin-carousel.d.ts +1 -0
  380. package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +3 -3
  381. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +9 -1
  382. package/dist/es-dev/components/checkbox/daikin-checkbox.js +25 -5
  383. package/dist/es-dev/components/chip/daikin-chip.d.ts +1 -0
  384. package/dist/es-dev/components/chip/daikin-chip.js +2 -4
  385. package/dist/es-dev/components/combobox/daikin-combobox.d.ts +3 -1
  386. package/dist/es-dev/components/combobox/daikin-combobox.js +11 -4
  387. package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +19 -1
  388. package/dist/es-dev/components/date-picker/daikin-date-picker.js +127 -62
  389. package/dist/es-dev/components/divider/daikin-divider.d.ts +23 -0
  390. package/dist/es-dev/components/divider/daikin-divider.js +43 -0
  391. package/dist/es-dev/components/divider/index.d.ts +1 -0
  392. package/dist/es-dev/components/divider/index.js +4 -0
  393. package/dist/es-dev/components/drawer/daikin-drawer.d.ts +91 -0
  394. package/dist/es-dev/components/drawer/daikin-drawer.js +230 -0
  395. package/dist/es-dev/components/drawer/index.d.ts +1 -0
  396. package/dist/es-dev/components/drawer/index.js +4 -0
  397. package/dist/es-dev/components/drawer-footer/daikin-drawer-footer.d.ts +33 -0
  398. package/dist/es-dev/components/drawer-footer/daikin-drawer-footer.js +37 -0
  399. package/dist/es-dev/components/drawer-footer/index.d.ts +1 -0
  400. package/dist/es-dev/components/drawer-footer/index.js +4 -0
  401. package/dist/es-dev/components/drawer-header/daikin-drawer-header.d.ts +41 -0
  402. package/dist/es-dev/components/drawer-header/daikin-drawer-header.js +84 -0
  403. package/dist/es-dev/components/drawer-header/index.d.ts +1 -0
  404. package/dist/es-dev/components/drawer-header/index.js +4 -0
  405. package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +3 -1
  406. package/dist/es-dev/components/dropdown/daikin-dropdown.js +11 -2
  407. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +0 -2
  408. package/dist/es-dev/components/empty-state/daikin-empty-state.js +2 -2
  409. package/dist/es-dev/components/icon/daikin-icon.js +1 -2
  410. package/dist/es-dev/components/icon-button/daikin-icon-button.js +0 -1
  411. package/dist/es-dev/components/index.d.ts +7 -0
  412. package/dist/es-dev/components/index.js +14 -0
  413. package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +1 -7
  414. package/dist/es-dev/components/input-group/daikin-input-group.js +16 -11
  415. package/dist/es-dev/components/link/daikin-link.js +26 -23
  416. package/dist/es-dev/components/list/daikin-list.d.ts +8 -0
  417. package/dist/es-dev/components/list/daikin-list.js +13 -1
  418. package/dist/es-dev/components/list-item/daikin-list-item.js +30 -9
  419. package/dist/es-dev/components/menu/daikin-menu.d.ts +23 -5
  420. package/dist/es-dev/components/menu/daikin-menu.js +85 -11
  421. package/dist/es-dev/components/modal/daikin-modal.d.ts +25 -0
  422. package/dist/es-dev/components/modal/daikin-modal.js +18 -1
  423. package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +1 -1
  424. package/dist/es-dev/components/modal-header/daikin-modal-header.js +0 -2
  425. package/dist/es-dev/components/navigation/daikin-navigation.d.ts +1 -0
  426. package/dist/es-dev/components/navigation/daikin-navigation.js +2 -1
  427. package/dist/es-dev/components/navigation-item/daikin-navigation-item.js +6 -7
  428. package/dist/es-dev/components/pagination/daikin-pagination.d.ts +4 -1
  429. package/dist/es-dev/components/pagination/daikin-pagination.js +13 -6
  430. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +2 -3
  431. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +4 -4
  432. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +1 -1
  433. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +1 -1
  434. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +7 -5
  435. package/dist/es-dev/components/radio/daikin-radio.d.ts +1 -0
  436. package/dist/es-dev/components/radio/daikin-radio.js +14 -2
  437. package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +2 -1
  438. package/dist/es-dev/components/radio-group/daikin-radio-group.js +2 -0
  439. package/dist/es-dev/components/select/daikin-select.js +0 -1
  440. package/dist/es-dev/components/slider/daikin-slider.d.ts +1 -1
  441. package/dist/es-dev/components/slider/daikin-slider.js +14 -4
  442. package/dist/es-dev/components/status-message/daikin-status-message.js +3 -4
  443. package/dist/es-dev/components/tab/daikin-tab.js +0 -2
  444. package/dist/es-dev/components/table/daikin-table.d.ts +2 -0
  445. package/dist/es-dev/components/table/daikin-table.js +1 -1
  446. package/dist/es-dev/components/tabs/daikin-tabs.d.ts +1 -0
  447. package/dist/es-dev/components/tag/daikin-tag.js +1 -1
  448. package/dist/es-dev/components/text-area/daikin-text-area.d.ts +1 -1
  449. package/dist/es-dev/components/text-area/daikin-text-area.js +0 -1
  450. package/dist/es-dev/components/text-field/daikin-text-field.d.ts +1 -1
  451. package/dist/es-dev/components/text-field/daikin-text-field.js +0 -1
  452. package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.d.ts +1 -1
  453. package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +0 -1
  454. package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +1 -1
  455. package/dist/es-dev/components/time-picker/daikin-time-picker.js +1 -1
  456. package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +2 -3
  457. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +1 -0
  458. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +9 -2
  459. package/dist/es-dev/components/tooltip/daikin-tooltip.js +2 -4
  460. package/dist/es-dev/components/tree/daikin-tree.d.ts +4 -0
  461. package/dist/es-dev/components/tree/daikin-tree.js +2 -0
  462. package/dist/es-dev/components/tree-item/daikin-tree-item.js +1 -2
  463. package/dist/es-dev/components/tree-section/daikin-tree-section.js +7 -3
  464. package/dist/es-dev/components/vertical-navigation/daikin-vertical-navigation.d.ts +77 -0
  465. package/dist/es-dev/components/vertical-navigation/daikin-vertical-navigation.js +128 -0
  466. package/dist/es-dev/components/vertical-navigation/index.d.ts +1 -0
  467. package/dist/es-dev/components/vertical-navigation/index.js +4 -0
  468. package/dist/es-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.d.ts +121 -0
  469. package/dist/es-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.js +379 -0
  470. package/dist/es-dev/components/vertical-navigation-item/index.d.ts +1 -0
  471. package/dist/es-dev/components/vertical-navigation-item/index.js +4 -0
  472. package/dist/es-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.ts +86 -0
  473. package/dist/es-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js +177 -0
  474. package/dist/es-dev/components/vertical-navigation-menu-item/index.d.ts +1 -0
  475. package/dist/es-dev/components/vertical-navigation-menu-item/index.js +4 -0
  476. package/dist/es-dev/controllers/block-scroll.d.ts +48 -0
  477. package/dist/es-dev/controllers/block-scroll.js +43 -0
  478. package/dist/es-dev/controllers/focus-trap.d.ts +1 -1
  479. package/dist/es-dev/controllers/focus-trap.js +33 -17
  480. package/dist/es-dev/index.js +14 -0
  481. package/dist/es-dev/tailwind.css.js +1 -1
  482. package/dist/es-dev/utils/notification-common.js +1 -1
  483. package/package.json +3 -3
@@ -12,7 +12,7 @@ const cvaTimestamp = cva(
12
12
  [
13
13
  "text-ddt-color-common-text-secondary",
14
14
  "text-xs",
15
- "leading-[130%]",
15
+ "leading-[1.3]",
16
16
  "whitespace-nowrap"
17
17
  ],
18
18
  {
@@ -38,7 +38,8 @@ const _DDSElement = class _DDSElement extends LitElement {
38
38
  return {
39
39
  get() {
40
40
  const orgValue = orgDescriptor.get.call(this);
41
- return orgValue === void 0 ? fallbackValue : orgValue;
41
+ const resolvedFallbackValue = typeof fallbackValue === "function" ? fallbackValue(this) : fallbackValue;
42
+ return orgValue === void 0 ? resolvedFallbackValue : orgValue;
42
43
  },
43
44
  set(value) {
44
45
  const isValid = isAllowedValue == null || value != null && isAllowedValue(value);
@@ -92,7 +93,7 @@ const _DDSElement = class _DDSElement extends LitElement {
92
93
  return this[key];
93
94
  }
94
95
  };
95
- _DDSElement.version = "1.5.2-next.0";
96
+ _DDSElement.version = "1.6.0-next.0";
96
97
  let DDSElement = _DDSElement;
97
98
  export {
98
99
  DDSElement
@@ -8,6 +8,7 @@ export declare class DDSFormElement extends DDSElement {
8
8
  name: string;
9
9
  /**
10
10
  * The form value, submitted as a name/value pair when submitting the form.
11
+ * To keep external state in sync, listen to the `change` event.
11
12
  */
12
13
  value: string;
13
14
  /**
@@ -36,14 +36,14 @@ export type DDSPropertyDeclaration<Type = unknown, TypeHint = unknown> = Propert
36
36
  /** Property reflects to attribute (required for fallback) */
37
37
  reflect: true;
38
38
  /** Default value to use when property is undefined */
39
- fallbackValue: Type;
39
+ fallbackValue: Type | ((instance: Element) => Type);
40
40
  /** No validation function specified */
41
41
  isAllowedValue?: undefined;
42
42
  } | {
43
43
  /** Property reflects to attribute (required for fallback) */
44
44
  reflect: true;
45
45
  /** Default value to use when property is undefined */
46
- fallbackValue: Type;
46
+ fallbackValue: Type | ((instance: Element) => Type);
47
47
  /** Function to validate if a value is allowed for this property */
48
48
  isAllowedValue: (value: Type) => boolean;
49
49
  });
@@ -6,6 +6,8 @@ import { DDSElement } from "../../base/index.js";
6
6
  * Hierarchy:
7
7
  * - `daikin-accordion` > `daikin-accordion-item`
8
8
  *
9
+ * @fires change - A custom event emitted when the open state of the accordion changes. The updated `openItems` can be read from the event target.
10
+ *
9
11
  * @slot - A slot for the accordion items. Place `daikin-accordion-item` elements here.
10
12
  *
11
13
  * @example
@@ -46,6 +48,8 @@ export declare class DaikinAccordion extends DDSElement {
46
48
  /**
47
49
  * A list of the names of the open items.
48
50
  * If `exclusive` is true, the number of elements is 0 or 1.
51
+ * When the user toggles an accordion item, this property is updated and a `change` event is emitted.
52
+ * When controlling this property externally, listen to the `change` event and read the updated `openItems` from the component to keep your state in sync.
49
53
  */
50
54
  openItems: string[];
51
55
  /**
@@ -43,6 +43,7 @@ let DaikinAccordion = class extends DDSElement {
43
43
  this.openItems = opened ? [...this.openItems, targetValue] : this.openItems.filter((item) => item != targetValue);
44
44
  }
45
45
  this._reflectItemOpen();
46
+ this.dispatchEvent(new Event("change", { bubbles: true }));
46
47
  }
47
48
  _reflectItemOpen() {
48
49
  {
@@ -39,7 +39,7 @@ export declare class DaikinAccordionItem extends DDSElement {
39
39
  /**
40
40
  * Whether the accordion item is open.
41
41
  * Ignored if `disabled` is `true`.
42
- * Controlled by `daikin-accordion`.
42
+ * Controlled by `daikin-accordion`. When using standalone (outside `daikin-accordion`) and controlling this property externally, listen to the `toggle` event and toggle `open` in your state to keep it in sync.
43
43
  */
44
44
  open: boolean;
45
45
  /**
@@ -22,7 +22,7 @@ const cvaSummary = cva(
22
22
  "flex",
23
23
  "justify-between",
24
24
  "items-center",
25
- "gap-2",
25
+ "gap-3",
26
26
  "w-full",
27
27
  "min-h-12",
28
28
  "p-3",
@@ -35,7 +35,8 @@ const cvaSummary = cva(
35
35
  "after:size-6",
36
36
  "after:transition-all",
37
37
  "after:icon-[daikin--chevron-down]",
38
- "after:flex-none"
38
+ "after:flex-none",
39
+ "after:self-start"
39
40
  ],
40
41
  {
41
42
  variants: {
@@ -57,14 +58,17 @@ const cvaSummary = cva(
57
58
  }
58
59
  }
59
60
  );
60
- const cvaContent = cva(["grid", "duration-250", "ease-in-out"], {
61
- variants: {
62
- open: {
63
- false: ["grid-rows-[0fr]"],
64
- true: ["grid-rows-[1fr]"]
61
+ const cvaContent = cva(
62
+ ["grid", "duration-250", "ease-in-out", "leading-normal"],
63
+ {
64
+ variants: {
65
+ open: {
66
+ false: ["grid-rows-[0fr]"],
67
+ true: ["grid-rows-[1fr]"]
68
+ }
65
69
  }
66
70
  }
67
- });
71
+ );
68
72
  let DaikinAccordionItem = class extends DDSElement {
69
73
  constructor() {
70
74
  super(...arguments);
@@ -100,9 +104,7 @@ let DaikinAccordionItem = class extends DDSElement {
100
104
  }
101
105
  render() {
102
106
  const open = !this.disabled && this.open;
103
- return html`<div
104
- class="w-full text-ddt-color-common-text-primary font-daikinSerif"
105
- >
107
+ return html`<div class="w-full text-ddt-color-common-text-primary">
106
108
  <button
107
109
  id="summary"
108
110
  type="button"
@@ -2,7 +2,7 @@ import { DDSElement } from "../../base/index.js";
2
2
  /**
3
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
4
  *
5
- * @slot - A slot for anchoring element. Place `daikin-icon-button` here.
5
+ * @slot - A slot for anchoring element. Place `daikin-icon-button` here. This slot is only applicable when mode is "anchored". For standalone badges, do not include any content in the slot.
6
6
  *
7
7
  * @example
8
8
  *
@@ -13,8 +13,9 @@ import { DDSElement } from "../../base/index.js";
13
13
  * ```
14
14
  *
15
15
  * ```html
16
- * <daikin-badge count="42" max-count="999" color="negative">
17
- * <daikin-icon-button variant="ghost" size="m" buttonAriaLabel="42 unread notifications">
16
+ * <!-- Anchored badge example -->
17
+ * <daikin-badge type="number" count="42" max-count="999" color="negative">
18
+ * <daikin-icon-button variant="ghost" size="m" button-aria-label="42 unread notifications">
18
19
  * <daikin-icon
19
20
  * class="w-8 h-8"
20
21
  * icon="notification"
@@ -24,6 +25,10 @@ import { DDSElement } from "../../base/index.js";
24
25
  * </daikin-icon>
25
26
  * </daikin-icon-button>
26
27
  * </daikin-badge>
28
+ *
29
+ * <!-- Standalone badge example -->
30
+ * <daikin-badge type="number" count="42" max-count="999" color="negative" mode="standalone"></daikin-badge>
31
+ * <daikin-badge type="dot" color="positive" mode="standalone"></daikin-badge>
27
32
  * ```
28
33
  */
29
34
  export declare class DaikinBadge extends DDSElement {
@@ -36,10 +41,26 @@ export declare class DaikinBadge extends DDSElement {
36
41
  * @default "dot"
37
42
  */
38
43
  type: "number" | "dot";
44
+ /**
45
+ * Badge mode.
46
+ * - "anchored": The badge is anchored to a parent element.
47
+ * - "standalone": The badge is displayed independently. You can use this mode to display badges without an anchor, such as in a header or toolbar.
48
+ *
49
+ * @default "anchored"
50
+ */
51
+ mode: "anchored" | "standalone";
52
+ /**
53
+ * Badge size.
54
+ * - "medium": Displays a medium-sized badge.
55
+ * - "large": Displays a large-sized badge. When type="number", this will not change the badge size.
56
+ *
57
+ * @default "medium"
58
+ */
59
+ size: "medium" | "large";
39
60
  /**
40
61
  * The numeric content displayed in the badge.
41
62
  * Only effective when type="number".
42
- * Accepts a string or null; will be parsed as a number internally.
63
+ * Accepts a string (A half-width numeric string that can be parsed into a number.) or null; will be parsed as a number internally.
43
64
  *
44
65
  * @example "5"
45
66
  */
@@ -16,7 +16,7 @@ var __decorateClass = (decorators, target, key, kind) => {
16
16
  if (kind && result) __defProp(target, key, result);
17
17
  return result;
18
18
  };
19
- const cvaBadge = cva(["absolute", "rounded-full"], {
19
+ const cvaBadge = cva(["rounded-full"], {
20
20
  variants: {
21
21
  type: {
22
22
  number: [
@@ -25,19 +25,20 @@ const cvaBadge = cva(["absolute", "rounded-full"], {
25
25
  "px-1",
26
26
  "text-[10px]",
27
27
  "font-normal",
28
- "font-daikinSerif",
29
28
  "text-white",
30
29
  "flex",
31
30
  "items-center",
32
31
  "justify-center",
33
- "-top-0.5",
34
- "-right-0.5",
35
32
  "before:content-[attr(data-count)]",
36
33
  "before:leading-none",
37
34
  "before:whitespace-nowrap",
38
35
  "data-[count=0]:hidden"
39
36
  ],
40
- dot: ["w-2", "h-2", "top-1", "right-1"]
37
+ dot: []
38
+ },
39
+ size: {
40
+ medium: [],
41
+ large: []
41
42
  },
42
43
  color: {
43
44
  negative: ["bg-ddt-color-common-danger-default"],
@@ -45,8 +46,34 @@ const cvaBadge = cva(["absolute", "rounded-full"], {
45
46
  warning: ["bg-ddt-color-common-warning"],
46
47
  positive: ["bg-ddt-color-common-success"],
47
48
  information: ["bg-ddt-color-common-information"]
49
+ },
50
+ mode: {
51
+ anchored: ["absolute"],
52
+ standalone: []
48
53
  }
49
- }
54
+ },
55
+ compoundVariants: [
56
+ {
57
+ type: "dot",
58
+ size: "medium",
59
+ class: ["size-2"]
60
+ },
61
+ {
62
+ type: "dot",
63
+ size: "large",
64
+ class: ["size-3"]
65
+ },
66
+ {
67
+ mode: "anchored",
68
+ type: "number",
69
+ class: ["-top-0.5", "-right-0.5"]
70
+ },
71
+ {
72
+ mode: "anchored",
73
+ type: "dot",
74
+ class: ["top-1", "right-1"]
75
+ }
76
+ ]
50
77
  });
51
78
  const DEFAULT_MAX_COUNT = "99";
52
79
  let DaikinBadge = class extends DDSElement {
@@ -90,6 +117,21 @@ let DaikinBadge = class extends DDSElement {
90
117
  * - The slot wraps the icon button.
91
118
  */
92
119
  render() {
120
+ if (this.mode === "standalone") {
121
+ return html`
122
+ <span
123
+ role="presentation"
124
+ data-count=${this._count}
125
+ class=${cvaBadge({
126
+ type: this.type,
127
+ size: this.size,
128
+ color: this.color,
129
+ mode: this.mode
130
+ })}
131
+ ?hidden=${this.invisible}
132
+ ></span>
133
+ `;
134
+ }
93
135
  return html`
94
136
  <slot></slot>
95
137
  <span
@@ -97,7 +139,9 @@ let DaikinBadge = class extends DDSElement {
97
139
  data-count=${this._count}
98
140
  class=${cvaBadge({
99
141
  type: this.type,
100
- color: this.color
142
+ size: this.size,
143
+ color: this.color,
144
+ mode: this.mode
101
145
  })}
102
146
  ?hidden=${this.invisible}
103
147
  ></span>
@@ -109,6 +153,11 @@ DaikinBadge.styles = css`
109
153
 
110
154
  :host {
111
155
  display: inline-flex;
156
+ }
157
+
158
+ /* Use :not([mode="standalone"]) so that the default anchored behavior
159
+ applies even when the mode attribute is absent */
160
+ :host(:not([mode="standalone"])) {
112
161
  position: relative;
113
162
  }
114
163
 
@@ -124,6 +173,22 @@ __decorateClass([
124
173
  isAllowedValue: oneOf(["number", "dot"])
125
174
  })
126
175
  ], DaikinBadge.prototype, "type", 2);
176
+ __decorateClass([
177
+ property({
178
+ type: String,
179
+ reflect: true,
180
+ fallbackValue: "anchored",
181
+ isAllowedValue: oneOf(["anchored", "standalone"])
182
+ })
183
+ ], DaikinBadge.prototype, "mode", 2);
184
+ __decorateClass([
185
+ property({
186
+ type: String,
187
+ reflect: true,
188
+ fallbackValue: "medium",
189
+ isAllowedValue: oneOf(["medium", "large"])
190
+ })
191
+ ], DaikinBadge.prototype, "size", 2);
127
192
  __decorateClass([
128
193
  property({ type: String, reflect: true })
129
194
  ], DaikinBadge.prototype, "count", 2);
@@ -34,6 +34,7 @@ import { DDSElement } from "../../base/index.js";
34
34
  * <daikin-breadcrumb-item href="#">
35
35
  * Breadcrumb item 1
36
36
  * </daikin-breadcrumb-item>
37
+ * <!-- Menu width can be set on the slotted <daikin-list slot="menu">, or via daikin-menu::part(menu). See the menu documentation for details. -->
37
38
  * <daikin-menu placement="bottom-start">
38
39
  * <daikin-breadcrumb-item></daikin-breadcrumb-item>
39
40
  * <daikin-list list-role="menu" slot="menu" style="width: 10rem">
@@ -20,10 +20,7 @@ var __decorateClass = (decorators, target, key, kind) => {
20
20
  return result;
21
21
  };
22
22
  const LINK_CLASS_NAME = cva([
23
- "font-daikinSerif",
24
23
  "font-normal",
25
- "text-base",
26
- "leading-[130%]",
27
24
  "relative",
28
25
  "text-ddt-color-link-text-default",
29
26
  "hover:text-ddt-color-link-text-hover",
@@ -91,7 +88,7 @@ let DaikinBreadcrumbItem = class extends DDSElement {
91
88
  >
92
89
  ...
93
90
  </button>` : html`<a
94
- class="text-base leading-[130%] align-middle font-daikinSerif text-ddt-color-common-text-primary"
91
+ class="align-middle text-ddt-color-common-text-primary"
95
92
  aria-disabled="true"
96
93
  aria-current="true"
97
94
  target=${ifDefined(this.target)}
@@ -4,10 +4,10 @@ import { MergeVariantProps } from "../../type-utils.js";
4
4
  declare const cvaButton: (props?: ({
5
5
  color?: "default" | "danger" | null | undefined;
6
6
  variant?: "fill" | "outline" | "ghost" | null | undefined;
7
- size?: "small" | "medium" | "large" | null | undefined;
7
+ size?: "medium" | "large" | "small" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
9
  declare const cvaIcon: (props?: ({
10
- size?: "small" | "medium" | "large" | null | undefined;
10
+ size?: "medium" | "large" | "small" | null | undefined;
11
11
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
12
  type ButtonVariantProps = MergeVariantProps<typeof cvaButton | typeof cvaIcon>;
13
13
  /**
@@ -24,12 +24,10 @@ const cvaButton = cva(
24
24
  "justify-center",
25
25
  "items-center",
26
26
  "size-full",
27
- "font-daikinSerif",
28
27
  "font-bold",
29
28
  "rounded-sm",
30
29
  "tracking-wide",
31
30
  "text-nowrap",
32
- "leading-[130%]",
33
31
  "focus-visible:outline-solid",
34
32
  "focus-visible:outline-2",
35
33
  "focus-visible:outline-offset-2",
@@ -66,9 +64,9 @@ const cvaButton = cva(
66
64
  ghost: ["text-(--color-primary)", "bg-(--color-secondary)"]
67
65
  },
68
66
  size: {
69
- small: ["text-sm"],
70
- medium: ["text-base"],
71
- large: ["text-xl"]
67
+ small: ["text-(length:--dds-font-size-350)"],
68
+ medium: [],
69
+ large: ["text-(length:--dds-font-size-500)"]
72
70
  }
73
71
  },
74
72
  compoundVariants: [
@@ -242,7 +240,7 @@ DaikinButton.styles = css`
242
240
 
243
241
  :host([size="large"]) {
244
242
  min-width: 4.25em;
245
- height: 4.5rem;
243
+ height: 4rem;
246
244
  }
247
245
  `;
248
246
  __decorateClass([
@@ -5,6 +5,7 @@ import { DDSElement } from "../../base/index.js";
5
5
  *
6
6
  * @fires select - Fires when the date is selected.
7
7
  * @fires selecting - Fires when the year or month is selected.
8
+ * @fires view-change - _Internal use._ Fires when the calendar view changes between day, month, and year picker.
8
9
  *
9
10
  * @example
10
11
  *
@@ -20,6 +21,7 @@ export declare class DaikinCalendar extends DDSElement {
20
21
  static readonly styles: import('lit').CSSResult;
21
22
  /**
22
23
  * The current value of the input, submitted as a name/value pair with form data.
24
+ * When controlling this property externally, listen to the `select` event and read the updated `value` from the component to keep your state in sync.
23
25
  */
24
26
  value: string;
25
27
  /**
@@ -183,11 +183,13 @@ let DaikinCalendar = class extends DDSElement {
183
183
  }
184
184
  _handleMonthClick() {
185
185
  this.view = this.view != "year" ? "year" : "month";
186
+ this.dispatchEvent(new Event("view-change", { bubbles: true }));
186
187
  }
187
188
  _handleYearAndMonthPickerClick(date) {
188
189
  this.view = this.view === "year" ? "month" : "day";
189
190
  this._viewDate = cloneDate(date);
190
191
  this.value = formatDateForProperty(clampDate(date, this._min, this._max));
192
+ this.dispatchEvent(new Event("view-change", { bubbles: true }));
191
193
  this._emitSelecting();
192
194
  }
193
195
  _handleCalendarKeyDown(event) {
@@ -448,7 +450,7 @@ let DaikinCalendar = class extends DDSElement {
448
450
  day: this._createDatePicker
449
451
  }[view].call(this, renderState);
450
452
  return html`<div
451
- class="flex items-stretch flex-col gap-2 w-70 h-max pt-3 bg-ddt-color-common-background-default outline-solid outline-1 -outline-offset-1 outline-ddt-color-divider rounded-sm font-daikinSerif"
453
+ class="flex items-stretch flex-col gap-2 w-70 h-max pt-3 bg-ddt-color-common-background-default outline-solid outline-1 -outline-offset-1 outline-ddt-color-divider rounded-sm"
452
454
  >
453
455
  <div class="flex justify-between items-center pl-4 pr-3">
454
456
  <div class="flex items-center gap-2">
@@ -17,7 +17,6 @@ var __decorateClass = (decorators, target, key, kind) => {
17
17
  const cvaTitle = cva([
18
18
  "flex-none",
19
19
  "text-ddt-color-common-text-primary",
20
- "font-daikinSerif",
21
20
  "text-base",
22
21
  "leading-[1.3]",
23
22
  "not-italic",
@@ -27,7 +26,6 @@ const cvaTitle = cva([
27
26
  const cvaDescription = cva([
28
27
  "flex-none",
29
28
  "text-ddt-color-common-text-primary",
30
- "font-daikinSerif",
31
29
  "text-sm",
32
30
  "leading-normal",
33
31
  "not-italic",
@@ -33,6 +33,7 @@ export declare class DaikinCarousel extends DDSElement {
33
33
  static readonly styles: import('lit').CSSResult;
34
34
  /**
35
35
  * The index number of the content currently being displayed.
36
+ * When controlling this property externally, listen to the `select` event and read the updated `currentIndex` from the component to keep your state in sync.
36
37
  */
37
38
  currentIndex: number;
38
39
  private readonly _items;
@@ -28,7 +28,7 @@ let DaikinCarouselItem = class extends DDSElement {
28
28
  }
29
29
  render() {
30
30
  return html`<div
31
- class="flex flex-col flex-none gap-3 text-ddt-color-common-text-primary font-daikinSerif overflow-hidden"
31
+ class="flex flex-col flex-none gap-3 text-ddt-color-common-text-primary overflow-hidden"
32
32
  role="tabpanel"
33
33
  aria-label=${this.label}
34
34
  aria-hidden=${!this.active}
@@ -40,12 +40,12 @@ let DaikinCarouselItem = class extends DDSElement {
40
40
  >
41
41
  <slot
42
42
  name="title"
43
- class="leading-[130%] font-bold natural-break"
43
+ class="font-bold natural-break"
44
44
  @slotchange=${this._handleFooterSlotChange}
45
45
  ></slot>
46
46
  <slot
47
47
  name="description"
48
- class="text-sm natural-break"
48
+ class="text-(length:--dds-font-size-350) leading-normal natural-break"
49
49
  @slotchange=${this._handleFooterSlotChange}
50
50
  ></slot>
51
51
  </div>
@@ -7,7 +7,7 @@ import { DDSFormElement } from "../../base/index.js";
7
7
  *
8
8
  * @attr form - The form the component belongs to.
9
9
  * @attr name - The form name, submitted as a name/value pair when submitting the form.
10
- * @attr value - The initial form value, submitted as a name/value pair when submitting the form.
10
+ * @attr value - The initial form value, submitted as a name/value pair when submitting the form. To keep external state in sync, listen to the `change` event.
11
11
  * @prop {String} formAttr - The form the component belongs to.
12
12
  * @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
13
13
  * @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
@@ -44,6 +44,7 @@ export declare class DaikinCheckbox extends DDSFormElement {
44
44
  labelPosition: "right" | "hidden";
45
45
  /**
46
46
  * Specify the checkbox checked state.
47
+ * To keep external state in sync, listen to the `change` event.
47
48
  *
48
49
  * @default "unchecked"
49
50
  */
@@ -59,6 +60,13 @@ export declare class DaikinCheckbox extends DDSFormElement {
59
60
  * @private
60
61
  */
61
62
  disabledByParent: boolean;
63
+ /**
64
+ * The effective disabled state of the checkbox.
65
+ * Returns `true` if either `disabled` or `disabledByParent` is `true`.
66
+ *
67
+ * @private
68
+ */
69
+ private get _disabled();
62
70
  private readonly _inputRef;
63
71
  /**
64
72
  * Focuses on the inner checkbox.
@@ -18,6 +18,17 @@ var __decorateClass = (decorators, target, key, kind) => {
18
18
  if (kind && result) __defProp(target, key, result);
19
19
  return result;
20
20
  };
21
+ const cvaWrapper = cva(
22
+ ["group", "flex", "gap-2", "items-center", "size-full"],
23
+ {
24
+ variants: {
25
+ disabled: {
26
+ false: ["cursor-pointer"],
27
+ true: []
28
+ }
29
+ }
30
+ }
31
+ );
21
32
  const CHECKBOX_CLASS_NAME = cva([
22
33
  "block",
23
34
  "size-4",
@@ -44,6 +55,7 @@ const CHECKBOX_CLASS_NAME = cva([
44
55
  "group-active:enabled:bg-ddt-color-common-surface-press",
45
56
  "enabled:checked:border-ddt-color-common-brand-default",
46
57
  "enabled:checked:bg-ddt-color-common-brand-default",
58
+ "enabled:cursor-pointer",
47
59
  "group-hover:checked:enabled:bg-ddt-color-common-brand-hover",
48
60
  "group-hover:checked:enabled:border-ddt-color-common-brand-hover",
49
61
  "group-hover:checked:enabled:before:text-ddt-color-common-text-inverse",
@@ -82,6 +94,15 @@ let DaikinCheckbox = class extends DDSFormElement {
82
94
  this.disabledByParent = false;
83
95
  this._inputRef = createRef();
84
96
  }
97
+ /**
98
+ * The effective disabled state of the checkbox.
99
+ * Returns `true` if either `disabled` or `disabledByParent` is `true`.
100
+ *
101
+ * @private
102
+ */
103
+ get _disabled() {
104
+ return this.disabled || this.disabledByParent;
105
+ }
85
106
  /**
86
107
  * Focuses on the inner checkbox.
87
108
  * @param options focus options
@@ -109,7 +130,7 @@ let DaikinCheckbox = class extends DDSFormElement {
109
130
  }
110
131
  _handleClick(event) {
111
132
  var _a;
112
- if (this.disabled) {
133
+ if (this._disabled) {
113
134
  event.preventDefault();
114
135
  }
115
136
  if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT") {
@@ -122,9 +143,8 @@ let DaikinCheckbox = class extends DDSFormElement {
122
143
  this.dispatchEvent(new Event("change", event));
123
144
  }
124
145
  render() {
125
- const disabled = this.disabled || this.disabledByParent;
126
146
  return html`<label
127
- class="group flex gap-2 items-center size-full font-daikinSerif"
147
+ class=${cvaWrapper({ disabled: this._disabled })}
128
148
  part="label"
129
149
  @click=${this._handleClick}
130
150
  >
@@ -134,7 +154,7 @@ let DaikinCheckbox = class extends DDSFormElement {
134
154
  class=${CHECKBOX_CLASS_NAME}
135
155
  type="checkbox"
136
156
  name=${ifDefined(this.getBackingProperty("name"))}
137
- ?disabled=${disabled}
157
+ ?disabled=${this._disabled}
138
158
  aria-label=${this._labelHidden ? this.label : nothing}
139
159
  .checked=${this.checked}
140
160
  .indeterminate=${this.checkState === "indeterminate"}
@@ -144,7 +164,7 @@ let DaikinCheckbox = class extends DDSFormElement {
144
164
  </span>
145
165
  <slot
146
166
  class=${cvaLabel({
147
- disabled,
167
+ disabled: this._disabled,
148
168
  hidden: this._labelHidden
149
169
  })}
150
170
  ?hidden=${this._labelHidden}
@@ -35,6 +35,7 @@ export declare class DaikinChip extends DDSElement {
35
35
  variant: "fill" | "outline";
36
36
  /**
37
37
  * Specify the chip is selected when type is "filter".
38
+ * When controlling this property externally, listen to the `select` event and update your state from `event.detail.checked` to keep it in sync.
38
39
  */
39
40
  checked: boolean;
40
41
  /**
@@ -50,9 +50,7 @@ const cvaInputChipIcon = cva(["icon-size-4", "slotted:flex-none"], {
50
50
  });
51
51
  const cvaInputChipText = cva(
52
52
  [
53
- "text-sm",
54
- "font-daikinSerif",
55
- "leading-[130%]",
53
+ "text-(length:--dds-font-size-350)",
56
54
  "px-1",
57
55
  "mr-0.5",
58
56
  "overflow-hidden",
@@ -165,7 +163,7 @@ const cvaFilterChipWrapper = cva(
165
163
  }
166
164
  );
167
165
  const cvaFilterChipText = cva(
168
- ["text-sm", "font-daikinSerif", "leading-[130%]", "px-1", "mr-0.5"],
166
+ ["text-(length:--dds-font-size-350)", "px-1", "mr-0.5"],
169
167
  {
170
168
  variants: {
171
169
  checked: {