@daikin-oss/design-system-web-components 1.6.0 → 2.0.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 (353) hide show
  1. package/CHANGELOG.md +184 -0
  2. package/custom-elements.json +2639 -1328
  3. package/dist/cjs/base/dds-element.cjs +1 -1
  4. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +25 -8
  5. package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +1 -0
  6. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +1 -1
  7. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +9 -6
  8. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +1 -0
  9. package/dist/cjs/components/calendar/daikin-calendar.cjs +73 -26
  10. package/dist/cjs/components/calendar/daikin-calendar.d.cts +13 -0
  11. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +190 -52
  12. package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +18 -0
  13. package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +7 -1
  14. package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +5 -0
  15. package/dist/cjs/components/chip/daikin-chip.cjs +195 -93
  16. package/dist/cjs/components/chip/daikin-chip.d.cts +20 -0
  17. package/dist/cjs/components/combobox/daikin-combobox.cjs +111 -33
  18. package/dist/cjs/components/combobox/daikin-combobox.d.cts +10 -0
  19. package/dist/cjs/components/date-picker/daikin-date-picker.cjs +243 -65
  20. package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +37 -2
  21. package/dist/cjs/components/drawer/daikin-drawer.cjs +1 -1
  22. package/dist/cjs/components/dropdown/daikin-dropdown.cjs +164 -32
  23. package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +13 -0
  24. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +13 -6
  25. package/dist/cjs/components/icon-button/daikin-icon-button.cjs +2 -0
  26. package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -0
  27. package/dist/cjs/components/index.cjs +2 -2
  28. package/dist/cjs/components/input-group/daikin-input-group.cjs +88 -30
  29. package/dist/cjs/components/input-group/daikin-input-group.d.cts +10 -0
  30. package/dist/cjs/components/list-item/daikin-list-item.cjs +21 -10
  31. package/dist/cjs/components/list-item/daikin-list-item.d.cts +9 -0
  32. package/dist/cjs/components/logo/daikin-logo.cjs +1 -1
  33. package/dist/cjs/components/logo/daikin-logo.d.cts +2 -2
  34. package/dist/cjs/components/menu/daikin-menu.cjs +2 -2
  35. package/dist/cjs/components/modal-header/daikin-modal-header.cjs +10 -4
  36. package/dist/cjs/components/modal-header/daikin-modal-header.d.cts +1 -0
  37. package/dist/cjs/components/navigation/daikin-navigation.cjs +21 -0
  38. package/dist/cjs/components/navigation/daikin-navigation.d.cts +9 -0
  39. package/dist/cjs/components/navigation-item/daikin-navigation-item.cjs +18 -14
  40. package/dist/cjs/components/pagination/daikin-pagination.cjs +60 -19
  41. package/dist/cjs/components/pagination/daikin-pagination.d.cts +11 -0
  42. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +27 -19
  43. package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +1 -0
  44. package/dist/cjs/components/radio/daikin-radio.cjs +160 -35
  45. package/dist/cjs/components/radio/daikin-radio.d.cts +26 -0
  46. package/dist/cjs/components/radio-group/daikin-radio-group.cjs +10 -1
  47. package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +4 -0
  48. package/dist/cjs/components/select/daikin-select.cjs +128 -21
  49. package/dist/cjs/components/select/daikin-select.d.cts +11 -0
  50. package/dist/cjs/components/slider/daikin-slider.cjs +61 -16
  51. package/dist/cjs/components/slider/daikin-slider.d.cts +4 -0
  52. package/dist/cjs/components/status-message/daikin-status-message.cjs +1 -0
  53. package/dist/cjs/components/status-message/daikin-status-message.d.cts +2 -0
  54. package/dist/cjs/components/table/daikin-table.cjs +108 -16
  55. package/dist/cjs/components/table/daikin-table.d.cts +58 -1
  56. package/dist/cjs/components/table-cell/daikin-table-cell.cjs +3 -4
  57. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +21 -15
  58. package/dist/cjs/components/tag/daikin-tag.cjs +99 -20
  59. package/dist/cjs/components/tag/daikin-tag.d.cts +14 -0
  60. package/dist/cjs/components/text-area/daikin-text-area.cjs +22 -2
  61. package/dist/cjs/components/text-field/daikin-text-field.cjs +96 -50
  62. package/dist/cjs/components/text-field/daikin-text-field.d.cts +9 -0
  63. package/dist/cjs/components/text-field/number-utils.cjs +51 -19
  64. package/dist/cjs/components/text-field/number-utils.d.cts +7 -0
  65. package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +31 -7
  66. package/dist/cjs/components/time-picker/daikin-time-picker.cjs +325 -108
  67. package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +57 -14
  68. package/dist/cjs/components/time-picker/index.cjs +2 -2
  69. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
  70. package/dist/cjs/components/toggle/daikin-toggle.cjs +110 -35
  71. package/dist/cjs/components/toggle/daikin-toggle.d.cts +5 -0
  72. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +1 -1
  73. package/dist/cjs/components/tree-item/daikin-tree-item.cjs +24 -8
  74. package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +1 -0
  75. package/dist/cjs/components/tree-section/daikin-tree-section.cjs +7 -1
  76. package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +1 -0
  77. package/dist/cjs/components/vertical-navigation/daikin-vertical-navigation.cjs +1 -1
  78. package/dist/cjs/components/vertical-navigation-item/daikin-vertical-navigation-item.cjs +248 -38
  79. package/dist/cjs/components/vertical-navigation-item/daikin-vertical-navigation-item.d.cts +17 -7
  80. package/dist/cjs/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs +103 -33
  81. package/dist/cjs/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.cts +6 -1
  82. package/dist/cjs/controllers/custom-readonly.cjs +59 -0
  83. package/dist/cjs/controllers/custom-readonly.d.cts +28 -0
  84. package/dist/cjs/index.cjs +2 -2
  85. package/dist/cjs/tailwind.css.cjs +1 -1
  86. package/dist/cjs/utils/calendar-common.cjs +6 -2
  87. package/dist/cjs/utils/calendar-common.d.cts +1 -1
  88. package/dist/cjs/utils/extract-half-width-digits.cjs +11 -0
  89. package/dist/cjs/utils/extract-half-width-digits.d.cts +15 -0
  90. package/dist/cjs-dev/base/dds-element.cjs +1 -1
  91. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +25 -8
  92. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +1 -0
  93. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +1 -1
  94. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +9 -6
  95. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +1 -0
  96. package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +73 -26
  97. package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +13 -0
  98. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +190 -52
  99. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +18 -0
  100. package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +7 -1
  101. package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +5 -0
  102. package/dist/cjs-dev/components/chip/daikin-chip.cjs +195 -93
  103. package/dist/cjs-dev/components/chip/daikin-chip.d.cts +20 -0
  104. package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +111 -33
  105. package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +10 -0
  106. package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +243 -65
  107. package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +37 -2
  108. package/dist/cjs-dev/components/drawer/daikin-drawer.cjs +1 -1
  109. package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +164 -32
  110. package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +13 -0
  111. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +13 -6
  112. package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +2 -0
  113. package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -0
  114. package/dist/cjs-dev/components/index.cjs +2 -2
  115. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +88 -30
  116. package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +10 -0
  117. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +21 -10
  118. package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +9 -0
  119. package/dist/cjs-dev/components/logo/daikin-logo.cjs +1 -1
  120. package/dist/cjs-dev/components/logo/daikin-logo.d.cts +2 -2
  121. package/dist/cjs-dev/components/menu/daikin-menu.cjs +2 -2
  122. package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +10 -4
  123. package/dist/cjs-dev/components/modal-header/daikin-modal-header.d.cts +1 -0
  124. package/dist/cjs-dev/components/navigation/daikin-navigation.cjs +21 -0
  125. package/dist/cjs-dev/components/navigation/daikin-navigation.d.cts +9 -0
  126. package/dist/cjs-dev/components/navigation-item/daikin-navigation-item.cjs +18 -14
  127. package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +60 -19
  128. package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +11 -0
  129. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +27 -19
  130. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +1 -0
  131. package/dist/cjs-dev/components/radio/daikin-radio.cjs +160 -35
  132. package/dist/cjs-dev/components/radio/daikin-radio.d.cts +26 -0
  133. package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +10 -1
  134. package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +4 -0
  135. package/dist/cjs-dev/components/select/daikin-select.cjs +128 -21
  136. package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -0
  137. package/dist/cjs-dev/components/slider/daikin-slider.cjs +61 -16
  138. package/dist/cjs-dev/components/slider/daikin-slider.d.cts +4 -0
  139. package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +1 -0
  140. package/dist/cjs-dev/components/status-message/daikin-status-message.d.cts +2 -0
  141. package/dist/cjs-dev/components/table/daikin-table.cjs +108 -16
  142. package/dist/cjs-dev/components/table/daikin-table.d.cts +58 -1
  143. package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +3 -4
  144. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +21 -15
  145. package/dist/cjs-dev/components/tag/daikin-tag.cjs +99 -20
  146. package/dist/cjs-dev/components/tag/daikin-tag.d.cts +14 -0
  147. package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +22 -2
  148. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +96 -50
  149. package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +9 -0
  150. package/dist/cjs-dev/components/text-field/number-utils.cjs +51 -19
  151. package/dist/cjs-dev/components/text-field/number-utils.d.cts +7 -0
  152. package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +31 -7
  153. package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +325 -108
  154. package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +57 -14
  155. package/dist/cjs-dev/components/time-picker/index.cjs +2 -2
  156. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
  157. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +110 -35
  158. package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +5 -0
  159. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +1 -1
  160. package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +24 -8
  161. package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +1 -0
  162. package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +7 -1
  163. package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +1 -0
  164. package/dist/cjs-dev/components/vertical-navigation/daikin-vertical-navigation.cjs +1 -1
  165. package/dist/cjs-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.cjs +248 -38
  166. package/dist/cjs-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.d.cts +17 -7
  167. package/dist/cjs-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs +103 -33
  168. package/dist/cjs-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.cts +6 -1
  169. package/dist/cjs-dev/controllers/custom-readonly.cjs +59 -0
  170. package/dist/cjs-dev/controllers/custom-readonly.d.cts +28 -0
  171. package/dist/cjs-dev/index.cjs +2 -2
  172. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  173. package/dist/cjs-dev/utils/calendar-common.cjs +6 -2
  174. package/dist/cjs-dev/utils/calendar-common.d.cts +1 -1
  175. package/dist/cjs-dev/utils/extract-half-width-digits.cjs +11 -0
  176. package/dist/cjs-dev/utils/extract-half-width-digits.d.cts +15 -0
  177. package/dist/es/base/dds-element.js +1 -1
  178. package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +1 -0
  179. package/dist/es/components/accordion-item/daikin-accordion-item.js +25 -8
  180. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +1 -1
  181. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +1 -0
  182. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +9 -6
  183. package/dist/es/components/calendar/daikin-calendar.d.ts +13 -0
  184. package/dist/es/components/calendar/daikin-calendar.js +73 -26
  185. package/dist/es/components/checkbox/daikin-checkbox.d.ts +18 -0
  186. package/dist/es/components/checkbox/daikin-checkbox.js +190 -52
  187. package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +5 -0
  188. package/dist/es/components/checkbox-group/daikin-checkbox-group.js +7 -1
  189. package/dist/es/components/chip/daikin-chip.d.ts +20 -0
  190. package/dist/es/components/chip/daikin-chip.js +195 -93
  191. package/dist/es/components/combobox/daikin-combobox.d.ts +10 -0
  192. package/dist/es/components/combobox/daikin-combobox.js +111 -33
  193. package/dist/es/components/date-picker/daikin-date-picker.d.ts +37 -2
  194. package/dist/es/components/date-picker/daikin-date-picker.js +243 -65
  195. package/dist/es/components/drawer/daikin-drawer.js +1 -1
  196. package/dist/es/components/dropdown/daikin-dropdown.d.ts +13 -0
  197. package/dist/es/components/dropdown/daikin-dropdown.js +164 -32
  198. package/dist/es/components/dropdown-item/daikin-dropdown-item.js +13 -6
  199. package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -0
  200. package/dist/es/components/icon-button/daikin-icon-button.js +2 -0
  201. package/dist/es/components/index.js +4 -4
  202. package/dist/es/components/input-group/daikin-input-group.d.ts +10 -0
  203. package/dist/es/components/input-group/daikin-input-group.js +89 -31
  204. package/dist/es/components/list-item/daikin-list-item.d.ts +9 -0
  205. package/dist/es/components/list-item/daikin-list-item.js +21 -10
  206. package/dist/es/components/logo/daikin-logo.d.ts +2 -2
  207. package/dist/es/components/logo/daikin-logo.js +1 -1
  208. package/dist/es/components/menu/daikin-menu.js +2 -2
  209. package/dist/es/components/modal-header/daikin-modal-header.d.ts +1 -0
  210. package/dist/es/components/modal-header/daikin-modal-header.js +10 -4
  211. package/dist/es/components/navigation/daikin-navigation.d.ts +9 -0
  212. package/dist/es/components/navigation/daikin-navigation.js +22 -1
  213. package/dist/es/components/navigation-item/daikin-navigation-item.js +18 -14
  214. package/dist/es/components/pagination/daikin-pagination.d.ts +11 -0
  215. package/dist/es/components/pagination/daikin-pagination.js +61 -20
  216. package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +1 -0
  217. package/dist/es/components/progress-bar/daikin-progress-bar.js +27 -19
  218. package/dist/es/components/radio/daikin-radio.d.ts +26 -0
  219. package/dist/es/components/radio/daikin-radio.js +160 -35
  220. package/dist/es/components/radio-group/daikin-radio-group.d.ts +4 -0
  221. package/dist/es/components/radio-group/daikin-radio-group.js +10 -1
  222. package/dist/es/components/select/daikin-select.d.ts +11 -0
  223. package/dist/es/components/select/daikin-select.js +128 -21
  224. package/dist/es/components/slider/daikin-slider.d.ts +4 -0
  225. package/dist/es/components/slider/daikin-slider.js +61 -16
  226. package/dist/es/components/status-message/daikin-status-message.d.ts +2 -0
  227. package/dist/es/components/status-message/daikin-status-message.js +1 -0
  228. package/dist/es/components/table/daikin-table.d.ts +58 -1
  229. package/dist/es/components/table/daikin-table.js +109 -17
  230. package/dist/es/components/table-cell/daikin-table-cell.js +3 -4
  231. package/dist/es/components/table-header-cell/daikin-table-header-cell.js +21 -15
  232. package/dist/es/components/tag/daikin-tag.d.ts +14 -0
  233. package/dist/es/components/tag/daikin-tag.js +100 -21
  234. package/dist/es/components/text-area/daikin-text-area.js +22 -2
  235. package/dist/es/components/text-field/daikin-text-field.d.ts +9 -0
  236. package/dist/es/components/text-field/daikin-text-field.js +97 -51
  237. package/dist/es/components/text-field/number-utils.d.ts +7 -0
  238. package/dist/es/components/text-field/number-utils.js +51 -19
  239. package/dist/es/components/text-masked-field/daikin-text-masked-field.js +31 -7
  240. package/dist/es/components/time-picker/daikin-time-picker.d.ts +57 -14
  241. package/dist/es/components/time-picker/daikin-time-picker.js +327 -110
  242. package/dist/es/components/time-picker/index.js +4 -4
  243. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +1 -1
  244. package/dist/es/components/toggle/daikin-toggle.d.ts +5 -0
  245. package/dist/es/components/toggle/daikin-toggle.js +110 -35
  246. package/dist/es/components/tooltip/daikin-tooltip.js +1 -1
  247. package/dist/es/components/tree-item/daikin-tree-item.d.ts +1 -0
  248. package/dist/es/components/tree-item/daikin-tree-item.js +24 -8
  249. package/dist/es/components/tree-section/daikin-tree-section.d.ts +1 -0
  250. package/dist/es/components/tree-section/daikin-tree-section.js +7 -1
  251. package/dist/es/components/vertical-navigation/daikin-vertical-navigation.js +1 -1
  252. package/dist/es/components/vertical-navigation-item/daikin-vertical-navigation-item.d.ts +17 -7
  253. package/dist/es/components/vertical-navigation-item/daikin-vertical-navigation-item.js +248 -38
  254. package/dist/es/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.ts +6 -1
  255. package/dist/es/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js +104 -34
  256. package/dist/es/controllers/custom-readonly.d.ts +28 -0
  257. package/dist/es/controllers/custom-readonly.js +59 -0
  258. package/dist/es/index.js +4 -4
  259. package/dist/es/tailwind.css.js +1 -1
  260. package/dist/es/utils/calendar-common.d.ts +1 -1
  261. package/dist/es/utils/calendar-common.js +6 -2
  262. package/dist/es/utils/extract-half-width-digits.d.ts +15 -0
  263. package/dist/es/utils/extract-half-width-digits.js +11 -0
  264. package/dist/es-dev/base/dds-element.js +1 -1
  265. package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +1 -0
  266. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +25 -8
  267. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +1 -1
  268. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +1 -0
  269. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +9 -6
  270. package/dist/es-dev/components/calendar/daikin-calendar.d.ts +13 -0
  271. package/dist/es-dev/components/calendar/daikin-calendar.js +73 -26
  272. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +18 -0
  273. package/dist/es-dev/components/checkbox/daikin-checkbox.js +190 -52
  274. package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +5 -0
  275. package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +7 -1
  276. package/dist/es-dev/components/chip/daikin-chip.d.ts +20 -0
  277. package/dist/es-dev/components/chip/daikin-chip.js +195 -93
  278. package/dist/es-dev/components/combobox/daikin-combobox.d.ts +10 -0
  279. package/dist/es-dev/components/combobox/daikin-combobox.js +111 -33
  280. package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +37 -2
  281. package/dist/es-dev/components/date-picker/daikin-date-picker.js +243 -65
  282. package/dist/es-dev/components/drawer/daikin-drawer.js +1 -1
  283. package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +13 -0
  284. package/dist/es-dev/components/dropdown/daikin-dropdown.js +164 -32
  285. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +13 -6
  286. package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -0
  287. package/dist/es-dev/components/icon-button/daikin-icon-button.js +2 -0
  288. package/dist/es-dev/components/index.js +4 -4
  289. package/dist/es-dev/components/input-group/daikin-input-group.d.ts +10 -0
  290. package/dist/es-dev/components/input-group/daikin-input-group.js +89 -31
  291. package/dist/es-dev/components/list-item/daikin-list-item.d.ts +9 -0
  292. package/dist/es-dev/components/list-item/daikin-list-item.js +21 -10
  293. package/dist/es-dev/components/logo/daikin-logo.d.ts +2 -2
  294. package/dist/es-dev/components/logo/daikin-logo.js +1 -1
  295. package/dist/es-dev/components/menu/daikin-menu.js +2 -2
  296. package/dist/es-dev/components/modal-header/daikin-modal-header.d.ts +1 -0
  297. package/dist/es-dev/components/modal-header/daikin-modal-header.js +10 -4
  298. package/dist/es-dev/components/navigation/daikin-navigation.d.ts +9 -0
  299. package/dist/es-dev/components/navigation/daikin-navigation.js +22 -1
  300. package/dist/es-dev/components/navigation-item/daikin-navigation-item.js +18 -14
  301. package/dist/es-dev/components/pagination/daikin-pagination.d.ts +11 -0
  302. package/dist/es-dev/components/pagination/daikin-pagination.js +61 -20
  303. package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +1 -0
  304. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +27 -19
  305. package/dist/es-dev/components/radio/daikin-radio.d.ts +26 -0
  306. package/dist/es-dev/components/radio/daikin-radio.js +160 -35
  307. package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +4 -0
  308. package/dist/es-dev/components/radio-group/daikin-radio-group.js +10 -1
  309. package/dist/es-dev/components/select/daikin-select.d.ts +11 -0
  310. package/dist/es-dev/components/select/daikin-select.js +128 -21
  311. package/dist/es-dev/components/slider/daikin-slider.d.ts +4 -0
  312. package/dist/es-dev/components/slider/daikin-slider.js +61 -16
  313. package/dist/es-dev/components/status-message/daikin-status-message.d.ts +2 -0
  314. package/dist/es-dev/components/status-message/daikin-status-message.js +1 -0
  315. package/dist/es-dev/components/table/daikin-table.d.ts +58 -1
  316. package/dist/es-dev/components/table/daikin-table.js +109 -17
  317. package/dist/es-dev/components/table-cell/daikin-table-cell.js +3 -4
  318. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +21 -15
  319. package/dist/es-dev/components/tag/daikin-tag.d.ts +14 -0
  320. package/dist/es-dev/components/tag/daikin-tag.js +100 -21
  321. package/dist/es-dev/components/text-area/daikin-text-area.js +22 -2
  322. package/dist/es-dev/components/text-field/daikin-text-field.d.ts +9 -0
  323. package/dist/es-dev/components/text-field/daikin-text-field.js +97 -51
  324. package/dist/es-dev/components/text-field/number-utils.d.ts +7 -0
  325. package/dist/es-dev/components/text-field/number-utils.js +51 -19
  326. package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +31 -7
  327. package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +57 -14
  328. package/dist/es-dev/components/time-picker/daikin-time-picker.js +327 -110
  329. package/dist/es-dev/components/time-picker/index.js +4 -4
  330. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +1 -1
  331. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +5 -0
  332. package/dist/es-dev/components/toggle/daikin-toggle.js +110 -35
  333. package/dist/es-dev/components/tooltip/daikin-tooltip.js +1 -1
  334. package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +1 -0
  335. package/dist/es-dev/components/tree-item/daikin-tree-item.js +24 -8
  336. package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +1 -0
  337. package/dist/es-dev/components/tree-section/daikin-tree-section.js +7 -1
  338. package/dist/es-dev/components/vertical-navigation/daikin-vertical-navigation.js +1 -1
  339. package/dist/es-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.d.ts +17 -7
  340. package/dist/es-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.js +248 -38
  341. package/dist/es-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.ts +6 -1
  342. package/dist/es-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js +104 -34
  343. package/dist/es-dev/controllers/custom-readonly.d.ts +28 -0
  344. package/dist/es-dev/controllers/custom-readonly.js +59 -0
  345. package/dist/es-dev/index.js +4 -4
  346. package/dist/es-dev/tailwind.css.js +1 -1
  347. package/dist/es-dev/utils/calendar-common.d.ts +1 -1
  348. package/dist/es-dev/utils/calendar-common.js +6 -2
  349. package/dist/es-dev/utils/extract-half-width-digits.d.ts +15 -0
  350. package/dist/es-dev/utils/extract-half-width-digits.js +11 -0
  351. package/icons/logo-negative.svg +16 -9
  352. package/icons/logo-positive.svg +16 -9
  353. package/package.json +6 -5
@@ -14,16 +14,24 @@ type TimeParts = {
14
14
  */
15
15
  type TimeItem = "hour" | "minute";
16
16
  /**
17
- * Converts a 12-hour time string and AM/PM to 24-hour format (e.g. "02:30", "PM" => "14:30").
17
+ * Hour cycle for time input UI.
18
+ * - h12: 12-hour UI (01:00〜12:59) + AM/PM dropdown.
19
+ * - h23: 24-hour UI (00:00〜23:59) without AM/PM dropdown.
18
20
  */
19
- export declare function to24HourFormat(time: string, meridiem: "AM" | "PM"): string;
20
- /**
21
- * Converts a 24-hour time string to 12-hour format and AM/PM (e.g. "14:30" => { time: "02:30", meridiem: "PM" }).
22
- */
23
- export declare function from24HourFormat(time: string): {
24
- time: string;
21
+ type HourCycle = "h12" | "h23";
22
+ type UiTimeObject = {
23
+ hourCycle: "h12";
24
+ hour: string;
25
+ minute: string;
25
26
  meridiem: "AM" | "PM";
27
+ } | {
28
+ hourCycle: "h23";
29
+ hour: string;
30
+ minute: string;
31
+ meridiem: null;
26
32
  };
33
+ export declare function uiToTimeValue(object: UiTimeObject): string;
34
+ export declare function timeValueToUI(time: string, hourCycle: HourCycle): UiTimeObject;
27
35
  /**
28
36
  * Validates if a time string matches the 24-hour format.
29
37
  */
@@ -60,13 +68,16 @@ export declare function getTimeItemInSelection(selectionStart: number, selection
60
68
  * Calculate digit key input, returns new time parts and whether input is complete.
61
69
  * @returns { parts, done } or null
62
70
  */
63
- export declare function calcDigitInput(parts: Readonly<TimeParts>, item: TimeItem, digit: string, hourDigitIndex: number): {
71
+ export declare function calcDigitInput(parts: Readonly<TimeParts>, item: TimeItem, digit: string, hourDigitIndex: number, hourCycle: HourCycle): {
64
72
  parts: TimeParts;
65
73
  done: boolean;
66
74
  } | null;
67
75
  /**
68
- * The time picker provides a time input field and a dropdown button for selecting AM/PM, allowing users to quickly enter a specific time in 12-hour format.
69
- * Please note that while the value displayed on the UI is in 12-hour format, the value you get from the component's value property will be automatically converted to 24-hour format.
76
+ * The time picker provides a time input field and supports two hour cycles via `hourCycle`.
77
+ * - h12: input in 12-hour format with AM/PM dropdown.
78
+ * - h23: input in 24-hour format without AM/PM dropdown.
79
+ *
80
+ * Please note that the component's `value` is always stored in 24-hour format.
70
81
  *
71
82
  * @attr form - The form the component belongs to.
72
83
  * @attr name - The form name, submitted as a name/value pair when submitting the form.
@@ -98,14 +109,16 @@ export declare class DaikinTimePicker extends DDSFormElement {
98
109
  placeholder: string;
99
110
  /**
100
111
  * Minimum time (00:00 - 23:59). If the user's input value is less than this value, the component will display an error state.
101
- * Please note that while the UI displays time in a 12-hour format (AM/PM), the component's value is stored in a 24-hour format. The `min` property must also be provided in 24-hour format.
112
+ * Please note that regardless of the selected UI hour cycle, the component value is stored in 24-hour format.
113
+ * The `min` property must be provided in 24-hour format.
102
114
  *
103
115
  * @default "00:00"
104
116
  */
105
117
  min: string;
106
118
  /**
107
119
  * Maximum time (00:00 - 23:59). If the user's input value is more than this value, the component will display an error state.
108
- * Please note that while the UI displays time in a 12-hour format (AM/PM), the component's value is stored in a 24-hour format. The `max` property must also be provided in 24-hour format.
120
+ * Please note that regardless of the selected UI hour cycle, the component value is stored in 24-hour format.
121
+ * The `max` property must be provided in 24-hour format.
109
122
  *
110
123
  * @default "23:59"
111
124
  */
@@ -114,6 +127,11 @@ export declare class DaikinTimePicker extends DDSFormElement {
114
127
  * Whether the field is disabled. Controlled by daikin-input-group.
115
128
  */
116
129
  disabled: boolean;
130
+ /**
131
+ * Whether the field is readonly.
132
+ * When readonly, the user cannot change the value.
133
+ */
134
+ readonly: boolean;
117
135
  /**
118
136
  * Whether the field is required. Controlled by daikin-input-group.
119
137
  */
@@ -122,28 +140,48 @@ export declare class DaikinTimePicker extends DDSFormElement {
122
140
  * Whether to show error state. Controlled by daikin-input-group. Ignored if disabled.
123
141
  */
124
142
  error: boolean;
143
+ /**
144
+ * Hour cycle for the UI.
145
+ * - h12: input uses 12-hour UI + AM/PM dropdown.
146
+ * - h23: input uses 24-hour UI and hides AM/PM dropdown.
147
+ *
148
+ * @default "h12"
149
+ */
150
+ hourCycle: HourCycle;
125
151
  /**
126
152
  * Minutes step. Specify the step size for the minutes when using the up and down arrow keys.
127
153
  *
128
154
  * @default "1"
129
155
  */
130
156
  minutesStep: string;
157
+ /**
158
+ * Whether AM/PM dropdown should be single-open across sibling time pickers in the same root.
159
+ */
160
+ meridiemSingleOpen: boolean;
131
161
  private _label;
132
162
  private _inputValue;
133
163
  private _currentSelection;
134
164
  private _meridiem;
135
165
  /**
136
166
  * Returns the value to be displayed in the input field.
137
- * - If the main value is a valid 24-hour time, returns the 12-hour formatted string for UI display.
167
+ * - If the main value is a valid 24-hour time, returns a display string based on the selected hour cycle.
138
168
  * - If the current input value is not valid or meridiem is empty, returns the raw input value.
139
169
  * - Otherwise, returns null.
140
170
  */
141
171
  private get _value();
142
172
  private _timeInputElement;
173
+ private _meridiemDropdown;
143
174
  /**
144
175
  * Tracks the current digit index for hour input (0: first digit, 1: second digit).
145
176
  */
146
177
  private _hourDigitIndex;
178
+ private _preCompositionValue;
179
+ /**
180
+ * Tracks the current digit index for minute input (0: first digit, 1: second digit).
181
+ * When 0 (fresh entry), always starts with "0X" regardless of the existing value,
182
+ * preventing pre-existing values like "04" from being mistaken as a first-digit state.
183
+ */
184
+ private _minuteDigitIndex;
147
185
  /**
148
186
  * Returns the value to display in the input field (from _inputValue state).
149
187
  */
@@ -160,16 +198,21 @@ export declare class DaikinTimePicker extends DDSFormElement {
160
198
  private _handleChange;
161
199
  private _handleMouseUp;
162
200
  private _handleDigitInput;
201
+ private _handleCompositionStart;
202
+ private _handleCompositionEnd;
203
+ private _applyDigits;
163
204
  private _handleKeyDown;
164
205
  private _updateTimeByOffset;
165
206
  private _handleBeforeInput;
166
207
  /**
167
- * Updates the value in 24-hour format if the input is valid, keeps UI in 12-hour format.
208
+ * Updates the value in 24-hour format if the input is valid, while preserving the selected UI hour cycle.
168
209
  */
169
210
  private _updateValue;
170
211
  private _updateInputSelection;
171
212
  private _updateSelection;
172
213
  private _handleDropdownChange;
214
+ private _closeMeridiemDropdown;
215
+ private _handleMeridiemDropdownToggle;
173
216
  /**
174
217
  * Focuses on the inner time input.
175
218
  * @param options focus options
@@ -8,10 +8,10 @@ Object.defineProperty(exports, "DaikinTimePicker", {
8
8
  exports.calcDigitInput = daikinTimePicker.calcDigitInput;
9
9
  exports.formatPartsForUI = daikinTimePicker.formatPartsForUI;
10
10
  exports.formatTimeForUI = daikinTimePicker.formatTimeForUI;
11
- exports.from24HourFormat = daikinTimePicker.from24HourFormat;
12
11
  exports.getTimeItemInSelection = daikinTimePicker.getTimeItemInSelection;
13
12
  exports.isTimeOutOfRange = daikinTimePicker.isTimeOutOfRange;
14
13
  exports.isValidValueTime = daikinTimePicker.isValidValueTime;
15
14
  exports.parsePartsFromUIValue = daikinTimePicker.parsePartsFromUIValue;
16
- exports.to24HourFormat = daikinTimePicker.to24HourFormat;
15
+ exports.timeValueToUI = daikinTimePicker.timeValueToUI;
17
16
  exports.tryParseTimeFromUIValue = daikinTimePicker.tryParseTimeFromUIValue;
17
+ exports.uiToTimeValue = daikinTimePicker.uiToTimeValue;
@@ -159,7 +159,7 @@ exports.DaikinToastNotificationManager = class DaikinToastNotificationManager ex
159
159
  return lit.html`<aside
160
160
  ${ref_js.ref(this._containerRef)}
161
161
  class=${cvaContainer({ position: this.position })}
162
- popover="manual"
162
+ .popover=${"manual"}
163
163
  >
164
164
  <slot
165
165
  @close=${this._handleClose}
@@ -20,45 +20,103 @@ var __decorateClass = (decorators2, target, key, kind) => {
20
20
  if (kind && result) __defProp(target, key, result);
21
21
  return result;
22
22
  };
23
- const TOGGLE_CLASS_NAME = classVarianceAuthority.cva([
24
- "w-12",
25
- "h-6",
26
- "relative",
27
- "bg-ddt-color-common-neutral-default",
28
- "rounded-full",
29
- "cursor-pointer",
30
- "transition-colors",
31
- "duration-300",
32
- "appearance-none",
33
- "enabled:hover:bg-ddt-color-common-neutral-hover",
34
- "enabled:active:bg-ddt-color-common-neutral-press",
35
- "enabled:outline-ddt-color-common-border-focus",
36
- "focus-visible:outline-solid",
37
- "focus-visible:outline-2",
38
- "focus-visible:outline-offset-2",
39
- "enabled:checked:bg-ddt-color-common-brand-default",
40
- "enabled:checked:hover:bg-ddt-color-common-brand-hover",
41
- "enabled:checked:active:bg-ddt-color-common-brand-press",
42
- "disabled:bg-ddt-color-common-disabled",
43
- "disabled:cursor-default",
44
- "before:size-4",
45
- "before:m-auto",
46
- "before:rounded-full",
47
- "before:absolute",
48
- "before:top-0",
49
- "before:bottom-0",
50
- "before:left-1",
51
- "before:transition",
52
- "before:duration-300",
53
- "checked:before:translate-x-6",
54
- "enabled:before:bg-ddt-color-common-background-default",
55
- "disabled:before:bg-ddt-color-common-surface-hover"
56
- ])();
23
+ const TOGGLE_CLASS_NAME = classVarianceAuthority.cva(
24
+ [
25
+ "w-12",
26
+ "h-6",
27
+ "relative",
28
+ "rounded-full",
29
+ "transition-colors",
30
+ "duration-300",
31
+ "appearance-none",
32
+ "enabled:cursor-pointer",
33
+ "focus-visible:outline-solid",
34
+ "focus-visible:outline-2",
35
+ "focus-visible:outline-offset-2",
36
+ "enabled:outline-ddt-color-common-border-focus",
37
+ "disabled:bg-ddt-color-common-disabled",
38
+ "before:size-4",
39
+ "before:m-auto",
40
+ "before:rounded-full",
41
+ "before:absolute",
42
+ "before:top-0",
43
+ "before:bottom-0",
44
+ "before:left-1",
45
+ "before:transition",
46
+ "before:duration-300",
47
+ "before:border",
48
+ "before:border-transparent",
49
+ "disabled:before:bg-ddt-color-common-surface-hover"
50
+ ],
51
+ {
52
+ variants: {
53
+ disabled: {
54
+ false: [],
55
+ true: ["cursor-default!"]
56
+ },
57
+ readonly: {
58
+ false: [],
59
+ true: ["cursor-default!"]
60
+ },
61
+ checked: {
62
+ false: [],
63
+ true: []
64
+ }
65
+ },
66
+ compoundVariants: [
67
+ {
68
+ readonly: false,
69
+ checked: false,
70
+ class: [
71
+ "bg-ddt-color-common-neutral-default",
72
+ "enabled:hover:bg-ddt-color-common-neutral-hover",
73
+ "enabled:active:bg-ddt-color-common-neutral-press",
74
+ "enabled:before:bg-ddt-color-common-background-default"
75
+ ]
76
+ },
77
+ {
78
+ readonly: false,
79
+ checked: true,
80
+ class: [
81
+ "bg-ddt-color-common-brand-default",
82
+ "enabled:hover:bg-ddt-color-common-brand-hover",
83
+ "enabled:active:bg-ddt-color-common-brand-press",
84
+ "before:translate-x-6",
85
+ "enabled:before:bg-ddt-color-common-background-default"
86
+ ]
87
+ },
88
+ {
89
+ readonly: true,
90
+ checked: false,
91
+ class: [
92
+ "border",
93
+ "border-ddt-color-common-disabled",
94
+ "bg-(--dds-color-common-surface-secondary)",
95
+ "before:bg-ddt-color-common-disabled",
96
+ "before:border-ddt-color-common-disabled"
97
+ ]
98
+ },
99
+ {
100
+ readonly: true,
101
+ checked: true,
102
+ class: [
103
+ "border",
104
+ "border-ddt-color-common-neutral-default",
105
+ "bg-(--dds-color-common-surface-secondary)",
106
+ "before:translate-x-6",
107
+ "before:bg-ddt-color-common-neutral-default",
108
+ "before:border-ddt-color-common-neutral-default"
109
+ ]
110
+ }
111
+ ]
112
+ }
113
+ );
57
114
  exports.DaikinToggle = class DaikinToggle extends ddsFormElement.DDSFormElement {
58
115
  constructor() {
59
116
  super(...arguments);
60
117
  this.checked = false;
61
118
  this.disabled = false;
119
+ this.readonly = false;
62
120
  this._inputRef = ref_js.createRef();
63
121
  }
64
122
  /**
@@ -72,7 +130,17 @@ exports.DaikinToggle = class DaikinToggle extends ddsFormElement.DDSFormElement
72
130
  _updateFormValue() {
73
131
  this.setFormValue(this.checked ? this.value : null);
74
132
  }
133
+ _handleClick(event) {
134
+ if (this.readonly) {
135
+ event.preventDefault();
136
+ }
137
+ }
75
138
  _handleChange(event) {
139
+ if (this.readonly) {
140
+ event.target.checked = this.checked;
141
+ event.preventDefault();
142
+ return;
143
+ }
76
144
  this.checked = event.target.checked;
77
145
  this._updateFormValue();
78
146
  this.dispatchEvent(new Event("change", event));
@@ -80,13 +148,17 @@ exports.DaikinToggle = class DaikinToggle extends ddsFormElement.DDSFormElement
80
148
  render() {
81
149
  return lit.html`<input
82
150
  ${ref_js.ref(this._inputRef)}
83
- class=${TOGGLE_CLASS_NAME}
151
+ class=${TOGGLE_CLASS_NAME({
152
+ readonly: this.readonly && !this.disabled,
153
+ checked: this.checked
154
+ })}
84
155
  type="checkbox"
85
156
  name=${ifDefined_js.ifDefined(this.getBackingProperty("name"))}
86
157
  role="switch"
87
158
  ?disabled=${this.disabled}
88
159
  .checked=${this.checked}
89
160
  .value=${this.value}
161
+ @click=${this._handleClick}
90
162
  @change=${this._handleChange}
91
163
  />`;
92
164
  }
@@ -109,6 +181,9 @@ __decorateClass([
109
181
  __decorateClass([
110
182
  ddsProperty.property({ type: Boolean, reflect: true })
111
183
  ], exports.DaikinToggle.prototype, "disabled", 2);
184
+ __decorateClass([
185
+ ddsProperty.property({ type: Boolean, reflect: true })
186
+ ], exports.DaikinToggle.prototype, "readonly", 2);
112
187
  exports.DaikinToggle = __decorateClass([
113
188
  decorators.ddsElement("daikin-toggle")
114
189
  ], exports.DaikinToggle);
@@ -36,6 +36,10 @@ export declare class DaikinToggle extends DDSFormElement {
36
36
  * Specify the toggle switch disabled state.
37
37
  */
38
38
  disabled: boolean;
39
+ /**
40
+ * Whether the toggle switch is readonly.
41
+ */
42
+ readonly: boolean;
39
43
  private readonly _inputRef;
40
44
  /**
41
45
  * Focuses on the inner input.
@@ -43,6 +47,7 @@ export declare class DaikinToggle extends DDSFormElement {
43
47
  */
44
48
  focus(options?: FocusOptions): void;
45
49
  private _updateFormValue;
50
+ private _handleClick;
46
51
  private _handleChange;
47
52
  render(): import('lit-html').TemplateResult<1>;
48
53
  updated(changedProperties: PropertyValues<this>): void;
@@ -146,7 +146,7 @@ exports.DaikinTooltip = class DaikinTooltip extends ddsElement.DDSElement {
146
146
  aria-labelledby="tooltip"
147
147
  part="tooltip"
148
148
  class=${cvaTooltip({ color: this.color })}
149
- popover=${this.popoverValue}
149
+ .popover=${this.popoverValue}
150
150
  @beforetoggle=${this._handleBeforeToggle}
151
151
  @toggle=${this._handleToggle}
152
152
  ${this._autoUpdateController.refFloating()}
@@ -27,10 +27,10 @@ const cvaTreeChildren = classVarianceAuthority.cva(
27
27
  "flex",
28
28
  "items-center",
29
29
  "w-full",
30
- "min-h-12",
31
- "py-3",
32
- "pr-4",
33
- "pl-[calc((var(--level)+1)*1rem)]",
30
+ "text-(length:--dds-font-size-label-text)",
31
+ "py-(--dds-padding-30)",
32
+ "px-(--dds-padding-40)",
33
+ "pl-[calc((var(--level)+1)*(var(--dds-padding-40)))]",
34
34
  "natural-break",
35
35
  "focus-visible:outline-solid",
36
36
  "focus-visible:outline-2",
@@ -60,11 +60,10 @@ const cvaTreeChildren = classVarianceAuthority.cva(
60
60
  ]
61
61
  },
62
62
  icon: {
63
- false: ["before:size-6"],
63
+ false: ["before:size-(--dds-icon)", "before:flex-none"],
64
64
  true: [
65
65
  "before:icon-[daikin--chevron-right]",
66
- "before:size-5",
67
- "before:m-0.5",
66
+ "before:size-(--dds-icon)",
68
67
  "before:transition-all",
69
68
  "before:flex-none",
70
69
  "before:self-start"
@@ -130,7 +129,15 @@ exports.DaikinTreeItem = class DaikinTreeItem extends ddsElement.DDSElement {
130
129
  @click=${() => common.emitTreeSelect(this)}
131
130
  @keydown=${this._handleKeyDown}
132
131
  >
133
- <slot></slot>
132
+ <div class="flex items-start gap-(--dds-gap-20)">
133
+ <slot
134
+ name="left-icon"
135
+ class="slotted:shrink-0 size-(--dds-icon) slotted:size-(--dds-icon)"
136
+ ></slot>
137
+ <span class="pt-(--dds-padding-05)">
138
+ <slot></slot>
139
+ </span>
140
+ </div>
134
141
  </div>`;
135
142
  }
136
143
  updated(changedProperties) {
@@ -184,6 +191,15 @@ exports.DaikinTreeItem.styles = lit.css`
184
191
 
185
192
  :host {
186
193
  display: block;
194
+
195
+ --ddc-tree-item-min-h: var(--dds-input-height, 3rem);
196
+ --ddc-tree-item-padding-y: var(--dds-padding-30);
197
+ }
198
+
199
+ :host([data-density="compact"]),
200
+ :host-context([data-density="compact"]) {
201
+ --ddc-tree-item-min-h: calc(var(--dds-input-height) + 4px);
202
+ --ddc-tree-item-padding-y: var(--dds-padding-30);
187
203
  }
188
204
  `;
189
205
  __decorateClass([
@@ -19,6 +19,7 @@ export declare const cvaTreeChildren: (props?: ({
19
19
  * @fires tree-move-focus - _Internal use._ A custom event used to move the focus within a tree.
20
20
  *
21
21
  * @slot - A slot for the tree item content.
22
+ * @slot left-icon - A slot for an icon to be placed to the left of the content. Place `daikin-icon` or something similar.
22
23
  *
23
24
  * @csspart item - CSS styles applied to the `item` part target the internal `<div>` element wrapping the content. For instance, setting `cursor: grab;` changes the hover cursor, signaling that the tree item is draggable.
24
25
  *
@@ -129,7 +129,13 @@ exports.DaikinTreeSection = class DaikinTreeSection extends ddsElement.DDSElemen
129
129
  @click=${this._handleClick}
130
130
  @keydown=${this._handleKeyDown}
131
131
  >
132
- <slot name="label"></slot>
132
+ <div class="flex items-start gap-(--dds-gap-20)">
133
+ <slot
134
+ name="left-icon"
135
+ class="slotted:shrink-0 size-(--dds-icon) slotted:size-(--dds-icon) mr-2"
136
+ ></slot
137
+ ><span class="pt-(--dds-padding-05)"><slot name="label"></slot></span>
138
+ </div>
133
139
  </div>
134
140
  <div role="group" ?hidden=${!this._open}>
135
141
  <slot
@@ -16,6 +16,7 @@ import { DDSElement } from "../../base/index.cjs";
16
16
  *
17
17
  * @slot - A slot for tree children. Place `daikin-tree-section` and `daikin-tree-item` elements here.
18
18
  * @slot label - A slot for section header content. Place a `span` element here.
19
+ * @slot left-icon - A slot for an icon to be placed to the right of the arrow and to the left of the label. Place `daikin-icon` or something similar.
19
20
  *
20
21
  * @example
21
22
  *
@@ -28,7 +28,7 @@ exports.DaikinVerticalNavigation = class DaikinVerticalNavigation extends ddsEle
28
28
  }
29
29
  _handleToggle(event) {
30
30
  const target = event.target;
31
- if (target.type === "link") {
31
+ if (target.type !== "menu") {
32
32
  if (this.exclusive && this.openItems.length > 0) {
33
33
  this.openItems = [];
34
34
  this._reflectItemOpen();