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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (443) hide show
  1. package/CHANGELOG.md +345 -0
  2. package/dist/cjs/base/dds-element.cjs +82 -1
  3. package/dist/cjs/base/dds-element.d.cts +40 -0
  4. package/dist/cjs/base/dds-form-element.cjs +15 -6
  5. package/dist/cjs/base/dds-form-element.d.cts +2 -2
  6. package/dist/cjs/base/dds-property.cjs +11 -0
  7. package/dist/cjs/base/dds-property.d.cts +92 -0
  8. package/dist/cjs/base/define.cjs +2 -0
  9. package/dist/cjs/base/index.cjs +3 -0
  10. package/dist/cjs/base/index.d.cts +1 -0
  11. package/dist/cjs/components/accordion/daikin-accordion.cjs +3 -2
  12. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +6 -7
  13. package/dist/cjs/components/avatar/daikin-avatar.cjs +20 -15
  14. package/dist/cjs/components/avatar/daikin-avatar.d.cts +3 -1
  15. package/dist/cjs/components/badge/daikin-badge.cjs +37 -16
  16. package/dist/cjs/components/badge/daikin-badge.d.cts +11 -5
  17. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +33 -7
  18. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +38 -6
  19. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +52 -19
  20. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +3 -1
  21. package/dist/cjs/components/button/daikin-button.cjs +57 -16
  22. package/dist/cjs/components/button/daikin-button.d.cts +19 -3
  23. package/dist/cjs/components/calendar/daikin-calendar.cjs +8 -9
  24. package/dist/cjs/components/calendar/daikin-calendar.d.cts +5 -3
  25. package/dist/cjs/components/card/daikin-card.cjs +2 -2
  26. package/dist/cjs/components/card-footer/daikin-card-footer.cjs +1 -0
  27. package/dist/cjs/components/card-header/daikin-card-header.cjs +1 -0
  28. package/dist/cjs/components/carousel/daikin-carousel.cjs +2 -1
  29. package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +3 -2
  30. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +24 -10
  31. package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +12 -1
  32. package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +12 -3
  33. package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +2 -0
  34. package/dist/cjs/components/chip/daikin-chip.cjs +2 -1
  35. package/dist/cjs/components/combobox/daikin-combobox.cjs +29 -23
  36. package/dist/cjs/components/combobox/daikin-combobox.d.cts +9 -2
  37. package/dist/cjs/components/date-picker/daikin-date-picker.cjs +38 -24
  38. package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +13 -4
  39. package/dist/cjs/components/dropdown/daikin-dropdown.cjs +13 -13
  40. package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +7 -0
  41. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +5 -4
  42. package/dist/cjs/components/icon/daikin-icon.cjs +20 -7
  43. package/dist/cjs/components/icon/daikin-icon.d.cts +88 -39
  44. package/dist/cjs/components/icon/icons.json.cjs +1 -1
  45. package/dist/cjs/components/icon/icons.json.d.cts +4 -0
  46. package/dist/cjs/components/icon-button/daikin-icon-button.cjs +58 -15
  47. package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +18 -4
  48. package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +112 -11
  49. package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +4 -0
  50. package/dist/cjs/components/input-group/daikin-input-group.cjs +9 -8
  51. package/dist/cjs/components/link/daikin-link.cjs +28 -8
  52. package/dist/cjs/components/link/daikin-link.d.cts +11 -0
  53. package/dist/cjs/components/list/daikin-list.cjs +6 -2
  54. package/dist/cjs/components/list-item/daikin-list-item.cjs +19 -8
  55. package/dist/cjs/components/list-item/daikin-list-item.d.cts +4 -0
  56. package/dist/cjs/components/loading/daikin-loading.cjs +8 -3
  57. package/dist/cjs/components/logo/daikin-logo.cjs +18 -10
  58. package/dist/cjs/components/logo/daikin-logo.d.cts +4 -0
  59. package/dist/cjs/components/menu/daikin-menu.cjs +58 -19
  60. package/dist/cjs/components/menu/daikin-menu.d.cts +23 -1
  61. package/dist/cjs/components/modal/daikin-modal.cjs +11 -6
  62. package/dist/cjs/components/modal/daikin-modal.d.cts +2 -0
  63. package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +1 -0
  64. package/dist/cjs/components/modal-header/daikin-modal-header.cjs +3 -3
  65. package/dist/cjs/components/pagination/daikin-pagination.cjs +4 -4
  66. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +21 -9
  67. package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +4 -0
  68. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +2 -1
  69. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +11 -6
  70. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +2 -0
  71. package/dist/cjs/components/radio/daikin-radio.cjs +14 -9
  72. package/dist/cjs/components/radio/daikin-radio.d.cts +9 -0
  73. package/dist/cjs/components/radio-group/daikin-radio-group.cjs +15 -8
  74. package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +3 -1
  75. package/dist/cjs/components/select/daikin-select.cjs +4 -3
  76. package/dist/cjs/components/slider/daikin-slider.cjs +11 -9
  77. package/dist/cjs/components/slider/daikin-slider.d.cts +15 -0
  78. package/dist/cjs/components/status-message/daikin-status-message.cjs +23 -10
  79. package/dist/cjs/components/status-message/daikin-status-message.d.cts +4 -0
  80. package/dist/cjs/components/tab/daikin-tab.cjs +10 -4
  81. package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +4 -4
  82. package/dist/cjs/components/table/daikin-table.cjs +9 -8
  83. package/dist/cjs/components/table-cell/daikin-table-cell.cjs +12 -7
  84. package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +5 -3
  85. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +13 -5
  86. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
  87. package/dist/cjs/components/tabs/daikin-tabs.cjs +9 -3
  88. package/dist/cjs/components/tabs/daikin-tabs.d.cts +2 -0
  89. package/dist/cjs/components/text-area/daikin-text-area.cjs +15 -12
  90. package/dist/cjs/components/text-area/daikin-text-area.d.cts +9 -2
  91. package/dist/cjs/components/text-field/daikin-text-field.cjs +28 -31
  92. package/dist/cjs/components/text-field/daikin-text-field.d.cts +11 -2
  93. package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +22 -19
  94. package/dist/cjs/components/text-masked-field/daikin-text-masked-field.d.cts +9 -2
  95. package/dist/cjs/components/time-picker/daikin-time-picker.cjs +39 -18
  96. package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +23 -1
  97. package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +118 -13
  98. package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +11 -1
  99. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +14 -2
  100. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +3 -1
  101. package/dist/cjs/components/toggle/daikin-toggle.cjs +7 -6
  102. package/dist/cjs/components/toggle/daikin-toggle.d.cts +7 -0
  103. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +37 -13
  104. package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +9 -1
  105. package/dist/cjs/components/tree/daikin-tree.cjs +3 -2
  106. package/dist/cjs/components/tree-item/daikin-tree-item.cjs +6 -5
  107. package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +2 -0
  108. package/dist/cjs/components/tree-section/daikin-tree-section.cjs +6 -5
  109. package/dist/cjs/tailwind.css.cjs +1 -1
  110. package/dist/cjs/utils/notification-common.cjs +0 -94
  111. package/dist/cjs/utils/notification-common.d.cts +0 -13
  112. package/dist/cjs-dev/base/dds-element.cjs +92 -1
  113. package/dist/cjs-dev/base/dds-element.d.cts +40 -0
  114. package/dist/cjs-dev/base/dds-form-element.cjs +15 -6
  115. package/dist/cjs-dev/base/dds-form-element.d.cts +2 -2
  116. package/dist/cjs-dev/base/dds-property.cjs +11 -0
  117. package/dist/cjs-dev/base/dds-property.d.cts +92 -0
  118. package/dist/cjs-dev/base/define.cjs +2 -0
  119. package/dist/cjs-dev/base/index.cjs +3 -0
  120. package/dist/cjs-dev/base/index.d.cts +1 -0
  121. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +3 -2
  122. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +6 -7
  123. package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +20 -15
  124. package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +3 -1
  125. package/dist/cjs-dev/components/badge/daikin-badge.cjs +37 -16
  126. package/dist/cjs-dev/components/badge/daikin-badge.d.cts +11 -5
  127. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +33 -7
  128. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +38 -6
  129. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +52 -19
  130. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +3 -1
  131. package/dist/cjs-dev/components/button/daikin-button.cjs +57 -16
  132. package/dist/cjs-dev/components/button/daikin-button.d.cts +19 -3
  133. package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +8 -9
  134. package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +5 -3
  135. package/dist/cjs-dev/components/card/daikin-card.cjs +2 -2
  136. package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +1 -0
  137. package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +1 -0
  138. package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +2 -1
  139. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +3 -2
  140. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +24 -10
  141. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +12 -1
  142. package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +12 -3
  143. package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +2 -0
  144. package/dist/cjs-dev/components/chip/daikin-chip.cjs +2 -1
  145. package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +29 -23
  146. package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +9 -2
  147. package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +38 -24
  148. package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +13 -4
  149. package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +13 -13
  150. package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +7 -0
  151. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +5 -4
  152. package/dist/cjs-dev/components/icon/daikin-icon.cjs +20 -7
  153. package/dist/cjs-dev/components/icon/daikin-icon.d.cts +88 -39
  154. package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
  155. package/dist/cjs-dev/components/icon/icons.json.d.cts +4 -0
  156. package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +58 -15
  157. package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +18 -4
  158. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +112 -11
  159. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +4 -0
  160. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +9 -8
  161. package/dist/cjs-dev/components/link/daikin-link.cjs +28 -8
  162. package/dist/cjs-dev/components/link/daikin-link.d.cts +11 -0
  163. package/dist/cjs-dev/components/list/daikin-list.cjs +6 -2
  164. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +19 -8
  165. package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +4 -0
  166. package/dist/cjs-dev/components/loading/daikin-loading.cjs +8 -3
  167. package/dist/cjs-dev/components/logo/daikin-logo.cjs +18 -10
  168. package/dist/cjs-dev/components/logo/daikin-logo.d.cts +4 -0
  169. package/dist/cjs-dev/components/menu/daikin-menu.cjs +58 -19
  170. package/dist/cjs-dev/components/menu/daikin-menu.d.cts +23 -1
  171. package/dist/cjs-dev/components/modal/daikin-modal.cjs +11 -6
  172. package/dist/cjs-dev/components/modal/daikin-modal.d.cts +2 -0
  173. package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +1 -0
  174. package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +3 -3
  175. package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +4 -4
  176. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +21 -9
  177. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +4 -0
  178. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +2 -1
  179. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +11 -6
  180. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +2 -0
  181. package/dist/cjs-dev/components/radio/daikin-radio.cjs +14 -9
  182. package/dist/cjs-dev/components/radio/daikin-radio.d.cts +9 -0
  183. package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +15 -8
  184. package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +3 -1
  185. package/dist/cjs-dev/components/select/daikin-select.cjs +4 -3
  186. package/dist/cjs-dev/components/slider/daikin-slider.cjs +11 -9
  187. package/dist/cjs-dev/components/slider/daikin-slider.d.cts +15 -0
  188. package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +23 -10
  189. package/dist/cjs-dev/components/status-message/daikin-status-message.d.cts +4 -0
  190. package/dist/cjs-dev/components/tab/daikin-tab.cjs +10 -4
  191. package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +4 -4
  192. package/dist/cjs-dev/components/table/daikin-table.cjs +9 -8
  193. package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +12 -7
  194. package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +5 -3
  195. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +13 -5
  196. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
  197. package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +9 -3
  198. package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +2 -0
  199. package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +15 -12
  200. package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +9 -2
  201. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +28 -31
  202. package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +11 -2
  203. package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +22 -19
  204. package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.d.cts +9 -2
  205. package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +39 -18
  206. package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +23 -1
  207. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +118 -13
  208. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +11 -1
  209. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +14 -2
  210. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +3 -1
  211. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +7 -6
  212. package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +7 -0
  213. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +37 -13
  214. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +9 -1
  215. package/dist/cjs-dev/components/tree/daikin-tree.cjs +3 -2
  216. package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +6 -5
  217. package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +2 -0
  218. package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +6 -5
  219. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  220. package/dist/cjs-dev/utils/notification-common.cjs +0 -94
  221. package/dist/cjs-dev/utils/notification-common.d.cts +0 -13
  222. package/dist/es/base/dds-element.d.ts +40 -0
  223. package/dist/es/base/dds-element.js +82 -1
  224. package/dist/es/base/dds-form-element.d.ts +2 -2
  225. package/dist/es/base/dds-form-element.js +15 -6
  226. package/dist/es/base/dds-property.d.ts +92 -0
  227. package/dist/es/base/dds-property.js +11 -0
  228. package/dist/es/base/define.js +2 -0
  229. package/dist/es/base/index.d.ts +1 -0
  230. package/dist/es/base/index.js +4 -1
  231. package/dist/es/components/accordion/daikin-accordion.js +2 -1
  232. package/dist/es/components/accordion-item/daikin-accordion-item.js +4 -5
  233. package/dist/es/components/avatar/daikin-avatar.d.ts +3 -1
  234. package/dist/es/components/avatar/daikin-avatar.js +18 -13
  235. package/dist/es/components/badge/daikin-badge.d.ts +11 -5
  236. package/dist/es/components/badge/daikin-badge.js +34 -13
  237. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +38 -6
  238. package/dist/es/components/breadcrumb/daikin-breadcrumb.js +33 -7
  239. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +3 -1
  240. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +48 -15
  241. package/dist/es/components/button/daikin-button.d.ts +19 -3
  242. package/dist/es/components/button/daikin-button.js +54 -13
  243. package/dist/es/components/calendar/daikin-calendar.d.ts +5 -3
  244. package/dist/es/components/calendar/daikin-calendar.js +7 -8
  245. package/dist/es/components/card/daikin-card.js +1 -1
  246. package/dist/es/components/card-footer/daikin-card-footer.js +1 -0
  247. package/dist/es/components/card-header/daikin-card-header.js +1 -0
  248. package/dist/es/components/carousel/daikin-carousel.js +2 -1
  249. package/dist/es/components/carousel-item/daikin-carousel-item.js +2 -1
  250. package/dist/es/components/checkbox/daikin-checkbox.d.ts +12 -1
  251. package/dist/es/components/checkbox/daikin-checkbox.js +22 -8
  252. package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +2 -0
  253. package/dist/es/components/checkbox-group/daikin-checkbox-group.js +11 -2
  254. package/dist/es/components/chip/daikin-chip.js +2 -1
  255. package/dist/es/components/combobox/daikin-combobox.d.ts +9 -2
  256. package/dist/es/components/combobox/daikin-combobox.js +24 -18
  257. package/dist/es/components/date-picker/daikin-date-picker.d.ts +13 -4
  258. package/dist/es/components/date-picker/daikin-date-picker.js +35 -21
  259. package/dist/es/components/dropdown/daikin-dropdown.d.ts +7 -0
  260. package/dist/es/components/dropdown/daikin-dropdown.js +7 -7
  261. package/dist/es/components/dropdown-item/daikin-dropdown-item.js +2 -1
  262. package/dist/es/components/icon/daikin-icon.d.ts +88 -39
  263. package/dist/es/components/icon/daikin-icon.js +20 -7
  264. package/dist/es/components/icon/icons.json.d.ts +4 -0
  265. package/dist/es/components/icon/icons.json.js +1 -1
  266. package/dist/es/components/icon-button/daikin-icon-button.d.ts +18 -4
  267. package/dist/es/components/icon-button/daikin-icon-button.js +54 -11
  268. package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +4 -0
  269. package/dist/es/components/inline-notification/daikin-inline-notification.js +109 -8
  270. package/dist/es/components/input-group/daikin-input-group.js +3 -2
  271. package/dist/es/components/link/daikin-link.d.ts +11 -0
  272. package/dist/es/components/link/daikin-link.js +24 -4
  273. package/dist/es/components/list/daikin-list.js +6 -2
  274. package/dist/es/components/list-item/daikin-list-item.d.ts +4 -0
  275. package/dist/es/components/list-item/daikin-list-item.js +17 -6
  276. package/dist/es/components/loading/daikin-loading.js +7 -2
  277. package/dist/es/components/logo/daikin-logo.d.ts +4 -0
  278. package/dist/es/components/logo/daikin-logo.js +17 -9
  279. package/dist/es/components/menu/daikin-menu.d.ts +23 -1
  280. package/dist/es/components/menu/daikin-menu.js +58 -19
  281. package/dist/es/components/modal/daikin-modal.d.ts +2 -0
  282. package/dist/es/components/modal/daikin-modal.js +8 -3
  283. package/dist/es/components/modal-footer/daikin-modal-footer.js +1 -0
  284. package/dist/es/components/modal-header/daikin-modal-header.js +2 -2
  285. package/dist/es/components/pagination/daikin-pagination.js +1 -1
  286. package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +4 -0
  287. package/dist/es/components/progress-bar/daikin-progress-bar.js +19 -7
  288. package/dist/es/components/progress-indicator/daikin-progress-indicator.js +2 -1
  289. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +2 -0
  290. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +11 -6
  291. package/dist/es/components/radio/daikin-radio.d.ts +9 -0
  292. package/dist/es/components/radio/daikin-radio.js +11 -6
  293. package/dist/es/components/radio-group/daikin-radio-group.d.ts +3 -1
  294. package/dist/es/components/radio-group/daikin-radio-group.js +14 -7
  295. package/dist/es/components/select/daikin-select.js +2 -1
  296. package/dist/es/components/slider/daikin-slider.d.ts +15 -0
  297. package/dist/es/components/slider/daikin-slider.js +11 -9
  298. package/dist/es/components/status-message/daikin-status-message.d.ts +4 -0
  299. package/dist/es/components/status-message/daikin-status-message.js +21 -8
  300. package/dist/es/components/tab/daikin-tab.js +9 -3
  301. package/dist/es/components/tab-panels/daikin-tab-panels.js +2 -2
  302. package/dist/es/components/table/daikin-table.js +2 -1
  303. package/dist/es/components/table-cell/daikin-table-cell.d.ts +5 -3
  304. package/dist/es/components/table-cell/daikin-table-cell.js +12 -7
  305. package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
  306. package/dist/es/components/table-header-cell/daikin-table-header-cell.js +11 -3
  307. package/dist/es/components/tabs/daikin-tabs.d.ts +2 -0
  308. package/dist/es/components/tabs/daikin-tabs.js +10 -4
  309. package/dist/es/components/text-area/daikin-text-area.d.ts +9 -2
  310. package/dist/es/components/text-area/daikin-text-area.js +11 -8
  311. package/dist/es/components/text-field/daikin-text-field.d.ts +11 -2
  312. package/dist/es/components/text-field/daikin-text-field.js +18 -21
  313. package/dist/es/components/text-masked-field/daikin-text-masked-field.d.ts +9 -2
  314. package/dist/es/components/text-masked-field/daikin-text-masked-field.js +15 -12
  315. package/dist/es/components/time-picker/daikin-time-picker.d.ts +23 -1
  316. package/dist/es/components/time-picker/daikin-time-picker.js +37 -16
  317. package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +11 -1
  318. package/dist/es/components/toast-notification/daikin-toast-notification.js +112 -7
  319. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +3 -1
  320. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +15 -3
  321. package/dist/es/components/toggle/daikin-toggle.d.ts +7 -0
  322. package/dist/es/components/toggle/daikin-toggle.js +5 -4
  323. package/dist/es/components/tooltip/daikin-tooltip.d.ts +9 -1
  324. package/dist/es/components/tooltip/daikin-tooltip.js +36 -12
  325. package/dist/es/components/tree/daikin-tree.js +2 -1
  326. package/dist/es/components/tree-item/daikin-tree-item.d.ts +2 -0
  327. package/dist/es/components/tree-item/daikin-tree-item.js +2 -1
  328. package/dist/es/components/tree-section/daikin-tree-section.js +2 -1
  329. package/dist/es/tailwind.css.js +1 -1
  330. package/dist/es/utils/notification-common.d.ts +0 -13
  331. package/dist/es/utils/notification-common.js +0 -94
  332. package/dist/es-dev/base/dds-element.d.ts +40 -0
  333. package/dist/es-dev/base/dds-element.js +92 -1
  334. package/dist/es-dev/base/dds-form-element.d.ts +2 -2
  335. package/dist/es-dev/base/dds-form-element.js +15 -6
  336. package/dist/es-dev/base/dds-property.d.ts +92 -0
  337. package/dist/es-dev/base/dds-property.js +11 -0
  338. package/dist/es-dev/base/define.js +2 -0
  339. package/dist/es-dev/base/index.d.ts +1 -0
  340. package/dist/es-dev/base/index.js +4 -1
  341. package/dist/es-dev/components/accordion/daikin-accordion.js +2 -1
  342. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +4 -5
  343. package/dist/es-dev/components/avatar/daikin-avatar.d.ts +3 -1
  344. package/dist/es-dev/components/avatar/daikin-avatar.js +18 -13
  345. package/dist/es-dev/components/badge/daikin-badge.d.ts +11 -5
  346. package/dist/es-dev/components/badge/daikin-badge.js +34 -13
  347. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +38 -6
  348. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +33 -7
  349. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +3 -1
  350. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +48 -15
  351. package/dist/es-dev/components/button/daikin-button.d.ts +19 -3
  352. package/dist/es-dev/components/button/daikin-button.js +54 -13
  353. package/dist/es-dev/components/calendar/daikin-calendar.d.ts +5 -3
  354. package/dist/es-dev/components/calendar/daikin-calendar.js +7 -8
  355. package/dist/es-dev/components/card/daikin-card.js +1 -1
  356. package/dist/es-dev/components/card-footer/daikin-card-footer.js +1 -0
  357. package/dist/es-dev/components/card-header/daikin-card-header.js +1 -0
  358. package/dist/es-dev/components/carousel/daikin-carousel.js +2 -1
  359. package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +2 -1
  360. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +12 -1
  361. package/dist/es-dev/components/checkbox/daikin-checkbox.js +22 -8
  362. package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +2 -0
  363. package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +11 -2
  364. package/dist/es-dev/components/chip/daikin-chip.js +2 -1
  365. package/dist/es-dev/components/combobox/daikin-combobox.d.ts +9 -2
  366. package/dist/es-dev/components/combobox/daikin-combobox.js +24 -18
  367. package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +13 -4
  368. package/dist/es-dev/components/date-picker/daikin-date-picker.js +35 -21
  369. package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +7 -0
  370. package/dist/es-dev/components/dropdown/daikin-dropdown.js +7 -7
  371. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +2 -1
  372. package/dist/es-dev/components/icon/daikin-icon.d.ts +88 -39
  373. package/dist/es-dev/components/icon/daikin-icon.js +20 -7
  374. package/dist/es-dev/components/icon/icons.json.d.ts +4 -0
  375. package/dist/es-dev/components/icon/icons.json.js +1 -1
  376. package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +18 -4
  377. package/dist/es-dev/components/icon-button/daikin-icon-button.js +54 -11
  378. package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +4 -0
  379. package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +109 -8
  380. package/dist/es-dev/components/input-group/daikin-input-group.js +3 -2
  381. package/dist/es-dev/components/link/daikin-link.d.ts +11 -0
  382. package/dist/es-dev/components/link/daikin-link.js +24 -4
  383. package/dist/es-dev/components/list/daikin-list.js +6 -2
  384. package/dist/es-dev/components/list-item/daikin-list-item.d.ts +4 -0
  385. package/dist/es-dev/components/list-item/daikin-list-item.js +17 -6
  386. package/dist/es-dev/components/loading/daikin-loading.js +7 -2
  387. package/dist/es-dev/components/logo/daikin-logo.d.ts +4 -0
  388. package/dist/es-dev/components/logo/daikin-logo.js +17 -9
  389. package/dist/es-dev/components/menu/daikin-menu.d.ts +23 -1
  390. package/dist/es-dev/components/menu/daikin-menu.js +58 -19
  391. package/dist/es-dev/components/modal/daikin-modal.d.ts +2 -0
  392. package/dist/es-dev/components/modal/daikin-modal.js +8 -3
  393. package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +1 -0
  394. package/dist/es-dev/components/modal-header/daikin-modal-header.js +2 -2
  395. package/dist/es-dev/components/pagination/daikin-pagination.js +1 -1
  396. package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +4 -0
  397. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +19 -7
  398. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +2 -1
  399. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +2 -0
  400. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +11 -6
  401. package/dist/es-dev/components/radio/daikin-radio.d.ts +9 -0
  402. package/dist/es-dev/components/radio/daikin-radio.js +11 -6
  403. package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +3 -1
  404. package/dist/es-dev/components/radio-group/daikin-radio-group.js +14 -7
  405. package/dist/es-dev/components/select/daikin-select.js +2 -1
  406. package/dist/es-dev/components/slider/daikin-slider.d.ts +15 -0
  407. package/dist/es-dev/components/slider/daikin-slider.js +11 -9
  408. package/dist/es-dev/components/status-message/daikin-status-message.d.ts +4 -0
  409. package/dist/es-dev/components/status-message/daikin-status-message.js +21 -8
  410. package/dist/es-dev/components/tab/daikin-tab.js +9 -3
  411. package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +2 -2
  412. package/dist/es-dev/components/table/daikin-table.js +2 -1
  413. package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +5 -3
  414. package/dist/es-dev/components/table-cell/daikin-table-cell.js +12 -7
  415. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
  416. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +11 -3
  417. package/dist/es-dev/components/tabs/daikin-tabs.d.ts +2 -0
  418. package/dist/es-dev/components/tabs/daikin-tabs.js +10 -4
  419. package/dist/es-dev/components/text-area/daikin-text-area.d.ts +9 -2
  420. package/dist/es-dev/components/text-area/daikin-text-area.js +11 -8
  421. package/dist/es-dev/components/text-field/daikin-text-field.d.ts +11 -2
  422. package/dist/es-dev/components/text-field/daikin-text-field.js +18 -21
  423. package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.d.ts +9 -2
  424. package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +15 -12
  425. package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +23 -1
  426. package/dist/es-dev/components/time-picker/daikin-time-picker.js +37 -16
  427. package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +11 -1
  428. package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +112 -7
  429. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +3 -1
  430. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +15 -3
  431. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +7 -0
  432. package/dist/es-dev/components/toggle/daikin-toggle.js +5 -4
  433. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +9 -1
  434. package/dist/es-dev/components/tooltip/daikin-tooltip.js +36 -12
  435. package/dist/es-dev/components/tree/daikin-tree.js +2 -1
  436. package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +2 -0
  437. package/dist/es-dev/components/tree-item/daikin-tree-item.js +2 -1
  438. package/dist/es-dev/components/tree-section/daikin-tree-section.js +2 -1
  439. package/dist/es-dev/tailwind.css.js +1 -1
  440. package/dist/es-dev/utils/notification-common.d.ts +0 -13
  441. package/dist/es-dev/utils/notification-common.js +0 -94
  442. package/icons/download.svg +3 -0
  443. package/package.json +18 -17
@@ -7,6 +7,7 @@ const ifDefined_js = require("lit/directives/if-defined.js");
7
7
  const ref_js = require("lit/directives/ref.js");
8
8
  require("../../base/dds-element.cjs");
9
9
  const ddsFormElement = require("../../base/dds-form-element.cjs");
10
+ const ddsProperty = require("../../base/dds-property.cjs");
10
11
  const decorators = require("../../base/decorators.cjs");
11
12
  require("../../base/define.cjs");
12
13
  const tailwind = require("../../tailwind.css.cjs");
@@ -190,13 +191,9 @@ const cvaField = classVarianceAuthority.cva(
190
191
  exports.DaikinTimePicker = class DaikinTimePicker extends ddsFormElement.DDSFormElement {
191
192
  constructor() {
192
193
  super(...arguments);
193
- this.placeholder = "hh:mm";
194
- this.min = DEFAULT_MIN_TIME;
195
- this.max = DEFAULT_MAX_TIME;
196
194
  this.disabled = false;
197
195
  this.required = false;
198
196
  this.error = false;
199
- this.minutesStep = "1";
200
197
  this._label = null;
201
198
  this._inputValue = "";
202
199
  this._currentSelection = "hour";
@@ -204,6 +201,22 @@ exports.DaikinTimePicker = class DaikinTimePicker extends ddsFormElement.DDSForm
204
201
  this._timeInputElement = ref_js.createRef();
205
202
  this._hourDigitIndex = 0;
206
203
  }
204
+ /**
205
+ * Returns the value to be displayed in the input field.
206
+ * - If the main value is a valid 24-hour time, returns the 12-hour formatted string for UI display.
207
+ * - If the current input value is not valid or meridiem is empty, returns the raw input value.
208
+ * - Otherwise, returns null.
209
+ */
210
+ get _value() {
211
+ if (isValidValueTime(this.value)) {
212
+ const { time } = from24HourFormat(this.value);
213
+ return time;
214
+ }
215
+ if (this._timeValue && !isValidValueTime(this._timeValue) || this._meridiem === "") {
216
+ return this._timeValue;
217
+ }
218
+ return null;
219
+ }
207
220
  /**
208
221
  * Returns the value to display in the input field (from _inputValue state).
209
222
  */
@@ -472,9 +485,9 @@ exports.DaikinTimePicker = class DaikinTimePicker extends ddsFormElement.DDSForm
472
485
  ${ref_js.ref(this._timeInputElement)}
473
486
  class=${cvaField({ error: this.error })}
474
487
  type="text"
475
- placeholder=${ifDefined_js.ifDefined(this.placeholder ?? void 0)}
476
- name=${this.name}
477
- .value=${this._timeValue}
488
+ name=${ifDefined_js.ifDefined(this.getBackingProperty("name"))}
489
+ placeholder=${this.placeholder}
490
+ .value=${this._value ?? ""}
478
491
  ?disabled=${this.disabled}
479
492
  ?required=${this.required}
480
493
  @change=${this._handleChange}
@@ -499,10 +512,13 @@ exports.DaikinTimePicker = class DaikinTimePicker extends ddsFormElement.DDSForm
499
512
  }
500
513
  willUpdate(changedProperties) {
501
514
  if (changedProperties.has("value")) {
502
- this._syncMeridiemWithValue();
503
- if (this.value) {
504
- const { time } = from24HourFormat(this.value);
505
- this._inputValue = time;
515
+ if (isValidValueTime(this.value)) {
516
+ this._syncMeridiemWithValue();
517
+ if (isTimeOutOfRange(this.value, this.min, this.max)) {
518
+ this.error = true;
519
+ } else {
520
+ this.error = false;
521
+ }
506
522
  }
507
523
  }
508
524
  }
@@ -533,25 +549,30 @@ exports.DaikinTimePicker.styles = lit.css`
533
549
  }
534
550
  `;
535
551
  __decorateClass([
536
- decorators_js.property({ type: String, reflect: true })
552
+ ddsProperty.property({ type: String, reflect: true, fallbackValue: "hh:mm" })
537
553
  ], exports.DaikinTimePicker.prototype, "placeholder", 2);
538
554
  __decorateClass([
539
- decorators_js.property({ type: String, reflect: true })
555
+ ddsProperty.property({ type: String, reflect: true, fallbackValue: DEFAULT_MIN_TIME })
540
556
  ], exports.DaikinTimePicker.prototype, "min", 2);
541
557
  __decorateClass([
542
- decorators_js.property({ type: String, reflect: true })
558
+ ddsProperty.property({ type: String, reflect: true, fallbackValue: DEFAULT_MAX_TIME })
543
559
  ], exports.DaikinTimePicker.prototype, "max", 2);
544
560
  __decorateClass([
545
- decorators_js.property({ type: Boolean, reflect: true })
561
+ ddsProperty.property({ type: Boolean, reflect: true })
546
562
  ], exports.DaikinTimePicker.prototype, "disabled", 2);
547
563
  __decorateClass([
548
- decorators_js.property({ type: Boolean, reflect: true })
564
+ ddsProperty.property({ type: Boolean, reflect: true })
549
565
  ], exports.DaikinTimePicker.prototype, "required", 2);
550
566
  __decorateClass([
551
- decorators_js.property({ type: Boolean, reflect: true })
567
+ ddsProperty.property({ type: Boolean, reflect: true })
552
568
  ], exports.DaikinTimePicker.prototype, "error", 2);
553
569
  __decorateClass([
554
- decorators_js.property({ type: String, reflect: true, attribute: "minutes-step" })
570
+ ddsProperty.property({
571
+ type: String,
572
+ reflect: true,
573
+ attribute: "minutes-step",
574
+ fallbackValue: "1"
575
+ })
555
576
  ], exports.DaikinTimePicker.prototype, "minutesStep", 2);
556
577
  __decorateClass([
557
578
  decorators_js.state()
@@ -68,6 +68,13 @@ export declare function calcDigitInput(parts: Readonly<TimeParts>, item: TimeIte
68
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
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.
70
70
  *
71
+ * @attr form - The form the component belongs to.
72
+ * @attr name - The form name, submitted as a name/value pair when submitting the form.
73
+ * @attr value - The initial form value, submitted as a name/value pair when submitting the form.
74
+ * @prop {String} formAttr - The form the component belongs to.
75
+ * @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
76
+ * @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
77
+ *
71
78
  * @fires change - A custom event emitted when the value of component changed. Validation errors will not trigger this event.
72
79
  * @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event). Triggered when user type value to input area and change the value of component. change dropdown or validation errors will not trigger this event.
73
80
  *
@@ -85,16 +92,22 @@ export declare class DaikinTimePicker extends DDSFormElement {
85
92
  static readonly styles: import('lit').CSSResult;
86
93
  /**
87
94
  * Placeholder text.
95
+ *
96
+ * @default "hh:mm"
88
97
  */
89
- placeholder: string | null;
98
+ placeholder: string;
90
99
  /**
91
100
  * Minimum time (00:00 - 23:59). If the user's input value is less than this value, the component will display an error state.
92
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.
102
+ *
103
+ * @default "00:00"
93
104
  */
94
105
  min: string;
95
106
  /**
96
107
  * Maximum time (00:00 - 23:59). If the user's input value is more than this value, the component will display an error state.
97
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.
109
+ *
110
+ * @default "23:59"
98
111
  */
99
112
  max: string;
100
113
  /**
@@ -111,12 +124,21 @@ export declare class DaikinTimePicker extends DDSFormElement {
111
124
  error: boolean;
112
125
  /**
113
126
  * Minutes step. Specify the step size for the minutes when using the up and down arrow keys.
127
+ *
128
+ * @default "1"
114
129
  */
115
130
  minutesStep: string;
116
131
  private _label;
117
132
  private _inputValue;
118
133
  private _currentSelection;
119
134
  private _meridiem;
135
+ /**
136
+ * 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.
138
+ * - If the current input value is not valid or meridiem is empty, returns the raw input value.
139
+ * - Otherwise, returns null.
140
+ */
141
+ private get _value();
120
142
  private _timeInputElement;
121
143
  /**
122
144
  * Tracks the current digit index for hour input (0: first digit, 1: second digit).
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const classVarianceAuthority = require("class-variance-authority");
3
4
  const lit = require("lit");
4
- const decorators_js = require("lit/decorators.js");
5
5
  const ddsElement = require("../../base/dds-element.cjs");
6
6
  require("../../base/dds-form-element.cjs");
7
+ const ddsProperty = require("../../base/dds-property.cjs");
7
8
  const decorators = require("../../base/decorators.cjs");
8
9
  require("../../base/define.cjs");
9
10
  const tailwind = require("../../tailwind.css.cjs");
@@ -19,11 +20,96 @@ var __decorateClass = (decorators2, target, key, kind) => {
19
20
  if (kind && result) __defProp(target, key, result);
20
21
  return result;
21
22
  };
23
+ const cvaContainer = classVarianceAuthority.cva(
24
+ [
25
+ "flex",
26
+ "items-center",
27
+ "gap-3",
28
+ "w-full",
29
+ "h-full",
30
+ "text-ddt-color-common-text-primary",
31
+ "bg-ddt-color-common-background-default",
32
+ "p-4",
33
+ "overflow-hidden",
34
+ "font-daikinSerif",
35
+ "transition",
36
+ "box-border",
37
+ "before:size-6",
38
+ "before:flex-none"
39
+ ],
40
+ {
41
+ variants: {
42
+ variant: {
43
+ toast: [
44
+ "rounded-lg",
45
+ "border",
46
+ "border-ddt-color-divider",
47
+ "translate-x-[--move-offset-x,0]",
48
+ "translate-y-[--move-offset-y,0]",
49
+ "opacity-[--opacity,1]",
50
+ "[pointer-events:var(--pointer-events,auto)]",
51
+ "[transition-duration:var(--transition-duration,var(--ddc-toast-animation-duration,0ms))]"
52
+ ],
53
+ inline: []
54
+ },
55
+ status: {
56
+ positive: [
57
+ "before:text-ddt-color-common-success",
58
+ "before:i-daikin-success"
59
+ ],
60
+ negative: [
61
+ "before:text-ddt-color-common-danger-default",
62
+ "before:i-daikin-error"
63
+ ],
64
+ warning: [
65
+ "before:text-ddt-color-common-warning",
66
+ "before:i-daikin-warning"
67
+ ],
68
+ alarm: ["before:text-ddt-color-common-alarm", "before:i-daikin-alarm"],
69
+ information: [
70
+ "before:text-ddt-color-common-information",
71
+ "before:i-daikin-information"
72
+ ]
73
+ }
74
+ }
75
+ }
76
+ );
77
+ const cvaContent = classVarianceAuthority.cva(["flex", "items-center", "w-full"], {
78
+ variants: {
79
+ layout: {
80
+ horizontal: ["gap-3", "overflow-hidden"],
81
+ vertical: ["items-stretch", "flex-col", "gap-1"]
82
+ }
83
+ }
84
+ });
85
+ const cvaTitle = classVarianceAuthority.cva(["slotted:inline-block", "font-bold", "leading-[130%]"], {
86
+ variants: {
87
+ layout: {
88
+ vertical: ["slotted:natural-break"],
89
+ horizontal: [
90
+ "slotted:whitespace-nowrap",
91
+ "slotted:overflow-hidden",
92
+ "slotted:overflow-ellipsis"
93
+ ]
94
+ }
95
+ }
96
+ });
97
+ const cvaDescription = classVarianceAuthority.cva(["inline-block", "leading-[130%]"], {
98
+ variants: {
99
+ layout: {
100
+ vertical: ["natural-break"],
101
+ horizontal: [
102
+ "whitespace-nowrap",
103
+ "overflow-hidden",
104
+ "overflow-ellipsis",
105
+ "flex-1"
106
+ ]
107
+ }
108
+ }
109
+ });
22
110
  exports.DaikinToastNotification = class DaikinToastNotification extends ddsElement.DDSElement {
23
111
  constructor() {
24
112
  super(...arguments);
25
- this.name = "";
26
- this.status = "positive";
27
113
  this.layout = "horizontal";
28
114
  this.closable = false;
29
115
  this.timestamp = null;
@@ -37,12 +123,12 @@ exports.DaikinToastNotification = class DaikinToastNotification extends ddsEleme
37
123
  }
38
124
  render() {
39
125
  return lit.html`<div
40
- class=${notificationCommon.cvaContainer({ variant: "toast", status: this.status })}
126
+ class=${cvaContainer({ variant: "toast", status: this.status })}
41
127
  role="alert"
42
128
  >
43
- <div class=${notificationCommon.cvaContent({ layout: this.layout })}>
44
- <slot class=${notificationCommon.cvaTitle({ layout: this.layout })} name="title"></slot>
45
- <slot class=${notificationCommon.cvaDescription({ layout: this.layout })}></slot>
129
+ <div class=${cvaContent({ layout: this.layout })}>
130
+ <slot class=${cvaTitle({ layout: this.layout })} name="title"></slot>
131
+ <slot class=${cvaDescription({ layout: this.layout })}></slot>
46
132
  ${this.timestamp ? lit.html`<span class=${notificationCommon.cvaTimestamp({ layout: this.layout })}
47
133
  >${notificationCommon.formatDate(this.timestamp)}</span
48
134
  >` : lit.nothing}
@@ -76,22 +162,41 @@ exports.DaikinToastNotification.styles = lit.css`
76
162
  }
77
163
  `;
78
164
  __decorateClass([
79
- decorators_js.property({ type: String, reflect: true })
165
+ ddsProperty.property({ type: String, reflect: true, fallbackValue: "" })
80
166
  ], exports.DaikinToastNotification.prototype, "name", 2);
81
167
  __decorateClass([
82
- decorators_js.property({ type: String, reflect: true })
168
+ ddsProperty.property({
169
+ type: String,
170
+ reflect: true,
171
+ fallbackValue: "positive",
172
+ isAllowedValue: ddsProperty.oneOf([
173
+ "positive",
174
+ "negative",
175
+ "warning",
176
+ "alarm",
177
+ "information"
178
+ ])
179
+ })
83
180
  ], exports.DaikinToastNotification.prototype, "status", 2);
84
181
  __decorateClass([
85
- decorators_js.property({ type: String, reflect: true })
182
+ ddsProperty.property({
183
+ type: String,
184
+ reflect: true,
185
+ fallbackValue: "horizontal",
186
+ isAllowedValue: ddsProperty.oneOf([
187
+ "horizontal",
188
+ "vertical"
189
+ ])
190
+ })
86
191
  ], exports.DaikinToastNotification.prototype, "layout", 2);
87
192
  __decorateClass([
88
- decorators_js.property({ type: Boolean, reflect: true })
193
+ ddsProperty.property({ type: Boolean, reflect: true })
89
194
  ], exports.DaikinToastNotification.prototype, "closable", 2);
90
195
  __decorateClass([
91
- decorators_js.property({ type: Object, reflect: true, attribute: false })
196
+ ddsProperty.property({ type: Object, reflect: true, attribute: false })
92
197
  ], exports.DaikinToastNotification.prototype, "timestamp", 2);
93
198
  __decorateClass([
94
- decorators_js.property({ type: Number, reflect: true })
199
+ ddsProperty.property({ type: Number, reflect: true })
95
200
  ], exports.DaikinToastNotification.prototype, "duration", 2);
96
201
  exports.DaikinToastNotification = __decorateClass([
97
202
  decorators.ddsElement("daikin-toast-notification")
@@ -1,7 +1,14 @@
1
1
  import { DDSElement } from "../../base/index.cjs";
2
2
  import { MergeVariantProps } from "../../type-utils.cjs";
3
- import { cvaContainer, cvaContent, cvaTimestamp } from "../../utils/notification-common.cjs";
3
+ import { cvaTimestamp } from "../../utils/notification-common.cjs";
4
4
  export type ToastNotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof cvaContent | typeof cvaTimestamp>;
5
+ declare const cvaContainer: (props?: ({
6
+ variant?: "inline" | "toast" | null | undefined;
7
+ status?: "negative" | "alarm" | "warning" | "positive" | "information" | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ declare const cvaContent: (props?: ({
10
+ layout?: "horizontal" | "vertical" | null | undefined;
11
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
12
  /**
6
13
  * The toast notification component is a UI element used to inform users about important updates, alerts, or messages within an application.
7
14
  *
@@ -39,6 +46,8 @@ export declare class DaikinToastNotification extends DDSElement {
39
46
  name: string;
40
47
  /**
41
48
  * Status of the toast notification.
49
+ *
50
+ * @default "positive"
42
51
  */
43
52
  status: ToastNotificationVariantProps["status"];
44
53
  /**
@@ -72,3 +81,4 @@ declare global {
72
81
  "daikin-toast-notification": DaikinToastNotification;
73
82
  }
74
83
  }
84
+ export {};
@@ -6,6 +6,7 @@ const decorators_js = require("lit/decorators.js");
6
6
  const ref_js = require("lit/directives/ref.js");
7
7
  const ddsElement = require("../../base/dds-element.cjs");
8
8
  require("../../base/dds-form-element.cjs");
9
+ const ddsProperty = require("../../base/dds-property.cjs");
9
10
  const decorators = require("../../base/decorators.cjs");
10
11
  require("../../base/define.cjs");
11
12
  const tailwind = require("../../tailwind.css.cjs");
@@ -75,7 +76,6 @@ const cvaContainer = classVarianceAuthority.cva(
75
76
  exports.DaikinToastNotificationManager = class DaikinToastNotificationManager extends ddsElement.DDSElement {
76
77
  constructor() {
77
78
  super(...arguments);
78
- this.position = "bottom-right";
79
79
  this._knownItemSet = /* @__PURE__ */ new Set();
80
80
  this._closedItemSet = /* @__PURE__ */ new WeakSet();
81
81
  this._containerRef = ref_js.createRef();
@@ -183,7 +183,19 @@ exports.DaikinToastNotificationManager.styles = lit.css`
183
183
  }
184
184
  `;
185
185
  __decorateClass([
186
- decorators_js.property({ type: String, reflect: true })
186
+ ddsProperty.property({
187
+ type: String,
188
+ reflect: true,
189
+ fallbackValue: "bottom-right",
190
+ isAllowedValue: ddsProperty.oneOf([
191
+ "top",
192
+ "top-left",
193
+ "top-right",
194
+ "bottom",
195
+ "bottom-left",
196
+ "bottom-right"
197
+ ])
198
+ })
187
199
  ], exports.DaikinToastNotificationManager.prototype, "position", 2);
188
200
  __decorateClass([
189
201
  decorators_js.queryAssignedElements({ selector: "daikin-toast-notification" })
@@ -1,7 +1,7 @@
1
1
  import { DDSElement } from "../../base/index.cjs";
2
2
  import { MergeVariantProps } from "../../type-utils.cjs";
3
3
  declare const cvaContainer: (props?: ({
4
- position?: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | null | undefined;
4
+ position?: "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export type ToastPosition = MergeVariantProps<typeof cvaContainer>["position"];
7
7
  /**
@@ -43,6 +43,8 @@ export declare class DaikinToastNotificationManager extends DDSElement {
43
43
  static readonly styles: import('lit').CSSResult;
44
44
  /**
45
45
  * Specify where on the screen the toast will be displayed.
46
+ *
47
+ * @default "bottom-right"
46
48
  */
47
49
  position: ToastPosition;
48
50
  private readonly _items;
@@ -2,9 +2,10 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const classVarianceAuthority = require("class-variance-authority");
4
4
  const lit = require("lit");
5
- const decorators_js = require("lit/decorators.js");
5
+ const ifDefined_js = require("lit/directives/if-defined.js");
6
6
  require("../../base/dds-element.cjs");
7
7
  const ddsFormElement = require("../../base/dds-form-element.cjs");
8
+ const ddsProperty = require("../../base/dds-property.cjs");
8
9
  const decorators = require("../../base/decorators.cjs");
9
10
  require("../../base/define.cjs");
10
11
  const tailwind = require("../../tailwind.css.cjs");
@@ -70,11 +71,11 @@ exports.DaikinToggle = class DaikinToggle extends ddsFormElement.DDSFormElement
70
71
  return lit.html`<input
71
72
  class=${TOGGLE_CLASS_NAME}
72
73
  type="checkbox"
73
- name=${this.name}
74
- .value=${this.value}
74
+ name=${ifDefined_js.ifDefined(this.getBackingProperty("name"))}
75
75
  role="switch"
76
- .checked=${this.checked}
77
76
  ?disabled=${this.disabled}
77
+ .checked=${this.checked}
78
+ .value=${this.value}
78
79
  @change=${this._handleChange}
79
80
  />`;
80
81
  }
@@ -92,10 +93,10 @@ exports.DaikinToggle.styles = lit.css`
92
93
  }
93
94
  `;
94
95
  __decorateClass([
95
- decorators_js.property({ type: Boolean, reflect: true })
96
+ ddsProperty.property({ type: Boolean, reflect: true })
96
97
  ], exports.DaikinToggle.prototype, "checked", 2);
97
98
  __decorateClass([
98
- decorators_js.property({ type: Boolean, reflect: true })
99
+ ddsProperty.property({ type: Boolean, reflect: true })
99
100
  ], exports.DaikinToggle.prototype, "disabled", 2);
100
101
  exports.DaikinToggle = __decorateClass([
101
102
  decorators.ddsElement("daikin-toggle")
@@ -6,6 +6,13 @@ import { DDSFormElement } from "../../base/index.cjs";
6
6
  * This component is ideal for scenarios where the binary choice has a significant or immediate effect, such as enabling or disabling a feature or setting.
7
7
  * Unlike `daikin-checkbox`, this component doesn't have a label and a "indeterminate" state.
8
8
  *
9
+ * @attr form - The form the component belongs to.
10
+ * @attr name - The form name, submitted as a name/value pair when submitting the form.
11
+ * @attr value - The initial form value, submitted as a name/value pair when submitting the form.
12
+ * @prop {String} formAttr - The form the component belongs to.
13
+ * @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
14
+ * @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
15
+ *
9
16
  * @fires change - A cloned event of a [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event) emitted from the inner `<input type="checkbox">` element.
10
17
  *
11
18
  * @example
@@ -3,10 +3,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const dom = require("@floating-ui/dom");
4
4
  const classVarianceAuthority = require("class-variance-authority");
5
5
  const lit = require("lit");
6
- const decorators_js = require("lit/decorators.js");
7
6
  const guard_js = require("lit/directives/guard.js");
8
7
  const ddsElement = require("../../base/dds-element.cjs");
9
8
  require("../../base/dds-form-element.cjs");
9
+ const ddsProperty = require("../../base/dds-property.cjs");
10
10
  const decorators = require("../../base/decorators.cjs");
11
11
  require("../../base/define.cjs");
12
12
  const floatingUiAutoUpdate = require("../../controllers/floating-ui-auto-update.cjs");
@@ -58,12 +58,7 @@ const DEFAULT_TOOLTIP_SPACING = "20px";
58
58
  exports.DaikinTooltip = class DaikinTooltip extends ddsElement.DDSElement {
59
59
  constructor() {
60
60
  super(...arguments);
61
- this.placement = "bottom";
62
- this.color = "default";
63
61
  this.open = false;
64
- this.description = "";
65
- this.popoverValue = "auto";
66
- this.trigger = "hover";
67
62
  this._willBeFocusedByPress = false;
68
63
  this._autoUpdateController = new floatingUiAutoUpdate.FloatingUIAutoUpdateController(this);
69
64
  this._hostStyles = isClient.isClient ? window.getComputedStyle(this) : null;
@@ -193,24 +188,53 @@ exports.DaikinTooltip.styles = lit.css`
193
188
  }
194
189
  `;
195
190
  __decorateClass([
196
- decorators_js.property({ type: String, reflect: true })
191
+ ddsProperty.property({
192
+ type: String,
193
+ reflect: true,
194
+ fallbackValue: "bottom",
195
+ isAllowedValue: ddsProperty.oneOf([
196
+ "top",
197
+ "bottom",
198
+ "left",
199
+ "right"
200
+ ])
201
+ })
197
202
  ], exports.DaikinTooltip.prototype, "placement", 2);
198
203
  __decorateClass([
199
- decorators_js.property({ type: String, reflect: true })
204
+ ddsProperty.property({
205
+ type: String,
206
+ reflect: true,
207
+ fallbackValue: "default",
208
+ isAllowedValue: ddsProperty.oneOf(["default", "inverse"])
209
+ })
200
210
  ], exports.DaikinTooltip.prototype, "color", 2);
201
211
  __decorateClass([
202
- decorators_js.property({ type: Boolean, reflect: true })
212
+ ddsProperty.property({ type: Boolean, reflect: true })
203
213
  ], exports.DaikinTooltip.prototype, "open", 2);
204
214
  __decorateClass([
205
- decorators_js.property({ type: String })
215
+ ddsProperty.property({ type: String, reflect: true, fallbackValue: "" })
206
216
  ], exports.DaikinTooltip.prototype, "description", 2);
207
217
  __decorateClass([
208
- decorators_js.property({ type: String, attribute: "popover-value" })
218
+ ddsProperty.property({
219
+ type: String,
220
+ reflect: true,
221
+ attribute: "popover-value",
222
+ fallbackValue: "auto",
223
+ isAllowedValue: ddsProperty.oneOf(["auto", "manual"])
224
+ })
209
225
  ], exports.DaikinTooltip.prototype, "popoverValue", 2);
210
226
  __decorateClass([
211
- decorators_js.property({ type: String, reflect: true })
227
+ ddsProperty.property({
228
+ type: String,
229
+ reflect: true,
230
+ fallbackValue: "hover",
231
+ isAllowedValue: ddsProperty.oneOf([
232
+ "hover",
233
+ "click",
234
+ "manual"
235
+ ])
236
+ })
212
237
  ], exports.DaikinTooltip.prototype, "trigger", 2);
213
238
  exports.DaikinTooltip = __decorateClass([
214
239
  decorators.ddsElement("daikin-tooltip")
215
240
  ], exports.DaikinTooltip);
216
- exports.DaikinTooltip.registerCSSCustomProperties();
@@ -16,7 +16,7 @@ type TooltipVariantProps = MergeVariantProps<typeof cvaTooltip>;
16
16
  *
17
17
  * @cssprop [--ddc-tooltip-spacing=20px] - Spacing between the tooltip and the trigger.
18
18
  *
19
- * @csspart tooltip - Change the style of tooltips.
19
+ * @csspart tooltip - CSS styles applied to the `tooltip` part target the internal `<span>` element wrapping the content. For instance, setting `max-width: 8rem;` on this part restricts the container's width, causing long text to wrap automatically.
20
20
  *
21
21
  * @example
22
22
  *
@@ -42,10 +42,14 @@ export declare class DaikinTooltip extends DDSElement {
42
42
  static readonly styles: import('lit').CSSResult;
43
43
  /**
44
44
  * Specifies the position of the tooltip relative to the trigger.
45
+ *
46
+ * @default "bottom"
45
47
  */
46
48
  placement: "top" | "bottom" | "left" | "right";
47
49
  /**
48
50
  * Specifies the tooltip theme.
51
+ *
52
+ * @default "default"
49
53
  */
50
54
  color: TooltipVariantProps["color"];
51
55
  /**
@@ -62,6 +66,8 @@ export declare class DaikinTooltip extends DDSElement {
62
66
  * Specify the value of the popover attribute in the Popover API.
63
67
  * - `auto`: Clicking on a trigger element will open a tooltip, and clicking again will close it. You can also close it using the Esc button. You cannot open multiple tooltips at the same time.
64
68
  * - `manual`: No click operation is specified for the trigger element. It will not close even if the Esc button is pressed. Multiple tooltips can be opened at once.
69
+ *
70
+ * @default "auto"
65
71
  */
66
72
  popoverValue: "auto" | "manual";
67
73
  /**
@@ -69,6 +75,8 @@ export declare class DaikinTooltip extends DDSElement {
69
75
  * - `hover`: The tooltip is displayed when the mouse hovers over the trigger element, and hidden when the mouse is no longer hovering. (default)
70
76
  * - `click`: The tooltip is displayed when the mouse clicks on the trigger element, and hidden when you click on it again.
71
77
  * - `manual`: The tooltip does not respond to user interaction. Use this to control the tooltip programmatically.
78
+ *
79
+ * @default "hover"
72
80
  */
73
81
  trigger: "hover" | "click" | "manual";
74
82
  /**
@@ -4,6 +4,7 @@ const lit = require("lit");
4
4
  const decorators_js = require("lit/decorators.js");
5
5
  const ddsElement = require("../../base/dds-element.cjs");
6
6
  require("../../base/dds-form-element.cjs");
7
+ const ddsProperty = require("../../base/dds-property.cjs");
7
8
  const decorators = require("../../base/decorators.cjs");
8
9
  require("../../base/define.cjs");
9
10
  const tailwind = require("../../tailwind.css.cjs");
@@ -96,10 +97,10 @@ exports.DaikinTree.styles = lit.css`
96
97
  }
97
98
  `;
98
99
  __decorateClass([
99
- decorators_js.property({ type: Boolean, reflect: true })
100
+ ddsProperty.property({ type: Boolean, reflect: true })
100
101
  ], exports.DaikinTree.prototype, "selectable", 2);
101
102
  __decorateClass([
102
- decorators_js.property({ type: Array, attribute: false })
103
+ ddsProperty.property({ type: Array, attribute: false })
103
104
  ], exports.DaikinTree.prototype, "selectedItems", 2);
104
105
  __decorateClass([
105
106
  decorators_js.queryAssignedElements({ selector: "daikin-tree-section,daikin-tree-item" })