@daikin-oss/design-system-web-components 0.7.0 → 1.1.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 (513) hide show
  1. package/CHANGELOG.md +127 -12
  2. package/README.md +2 -2
  3. package/dist/cjs/base/dds-element.cjs +8 -0
  4. package/dist/cjs/base/dds-element.d.cts +4 -0
  5. package/dist/cjs/base/decorators.cjs +13 -0
  6. package/dist/cjs/base/decorators.d.cts +2 -0
  7. package/dist/cjs/base/define.cjs +18 -0
  8. package/dist/cjs/base/define.d.cts +1 -0
  9. package/dist/cjs/base/index.cjs +8 -0
  10. package/dist/cjs/base/index.d.cts +3 -0
  11. package/dist/cjs/components/accordion/daikin-accordion.cjs +39 -6
  12. package/dist/cjs/components/accordion/daikin-accordion.d.cts +15 -2
  13. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +37 -77
  14. package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
  15. package/dist/cjs/components/avatar/daikin-avatar.cjs +160 -0
  16. package/dist/cjs/components/avatar/daikin-avatar.d.cts +64 -0
  17. package/dist/cjs/components/avatar/index.cjs +7 -0
  18. package/dist/cjs/components/avatar/index.d.cts +1 -0
  19. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
  20. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
  21. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
  22. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
  23. package/dist/cjs/components/button/daikin-button.cjs +20 -8
  24. package/dist/cjs/components/button/daikin-button.d.cts +6 -3
  25. package/dist/cjs/components/card/daikin-card.cjs +11 -7
  26. package/dist/cjs/components/card/daikin-card.d.cts +8 -2
  27. package/dist/cjs/components/card-footer/daikin-card-footer.cjs +9 -9
  28. package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +6 -2
  29. package/dist/cjs/components/card-header/daikin-card-header.cjs +10 -10
  30. package/dist/cjs/components/card-header/daikin-card-header.d.cts +6 -2
  31. package/dist/cjs/components/carousel/daikin-carousel.cjs +217 -0
  32. package/dist/cjs/components/carousel/daikin-carousel.d.cts +56 -0
  33. package/dist/cjs/components/carousel/index.cjs +7 -0
  34. package/dist/cjs/components/carousel/index.d.cts +1 -0
  35. package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +80 -0
  36. package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +50 -0
  37. package/dist/cjs/components/carousel-item/index.cjs +7 -0
  38. package/dist/cjs/components/carousel-item/index.d.cts +1 -0
  39. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +35 -16
  40. package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +8 -2
  41. package/dist/cjs/components/dropdown/daikin-dropdown.cjs +161 -74
  42. package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +64 -11
  43. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +109 -41
  44. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +16 -3
  45. package/dist/cjs/components/icon/daikin-icon.cjs +8 -5
  46. package/dist/cjs/components/icon/daikin-icon.d.cts +2 -2
  47. package/dist/cjs/components/icon/icons.json.cjs +1 -70
  48. package/dist/cjs/components/icon/icons.json.d.cts +4 -8
  49. package/dist/cjs/components/icon-button/daikin-icon-button.cjs +8 -5
  50. package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
  51. package/dist/cjs/components/index.cjs +33 -3
  52. package/dist/cjs/components/index.d.cts +7 -1
  53. package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +92 -0
  54. package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +55 -0
  55. package/dist/cjs/components/inline-notification/index.cjs +7 -0
  56. package/dist/cjs/components/inline-notification/index.d.cts +1 -0
  57. package/dist/cjs/components/input-group/daikin-input-group.cjs +12 -9
  58. package/dist/cjs/components/input-group/daikin-input-group.d.cts +15 -7
  59. package/dist/cjs/components/link/daikin-link.cjs +9 -6
  60. package/dist/cjs/components/link/daikin-link.d.cts +2 -2
  61. package/dist/cjs/components/list/daikin-list.cjs +9 -9
  62. package/dist/cjs/components/list/daikin-list.d.cts +7 -2
  63. package/dist/cjs/components/list-item/daikin-list-item.cjs +8 -5
  64. package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
  65. package/dist/cjs/components/loading/daikin-loading.cjs +91 -0
  66. package/dist/cjs/components/loading/daikin-loading.d.cts +32 -0
  67. package/dist/cjs/components/loading/index.cjs +7 -0
  68. package/dist/cjs/components/loading/index.d.cts +1 -0
  69. package/dist/cjs/components/pagination/daikin-pagination.cjs +22 -13
  70. package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
  71. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +13 -8
  72. package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
  73. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +16 -20
  74. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
  75. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
  76. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
  77. package/dist/cjs/components/radio/daikin-radio.cjs +45 -23
  78. package/dist/cjs/components/radio/daikin-radio.d.cts +18 -8
  79. package/dist/cjs/components/radio-group/daikin-radio-group.cjs +31 -11
  80. package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +20 -14
  81. package/dist/cjs/components/select/daikin-select.cjs +15 -6
  82. package/dist/cjs/components/select/daikin-select.d.cts +11 -2
  83. package/dist/cjs/components/tab/daikin-tab.cjs +25 -10
  84. package/dist/cjs/components/tab/daikin-tab.d.cts +7 -2
  85. package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +9 -7
  86. package/dist/cjs/components/tab-panels/daikin-tab-panels.d.cts +2 -2
  87. package/dist/cjs/components/table/daikin-table.cjs +9 -6
  88. package/dist/cjs/components/table/daikin-table.d.cts +9 -2
  89. package/dist/cjs/components/table-cell/daikin-table-cell.cjs +8 -5
  90. package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +6 -2
  91. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
  92. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
  93. package/dist/cjs/components/tabs/daikin-tabs.cjs +25 -10
  94. package/dist/cjs/components/tabs/daikin-tabs.d.cts +8 -2
  95. package/dist/cjs/components/text-area/daikin-text-area.cjs +16 -7
  96. package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
  97. package/dist/cjs/components/text-field/daikin-text-field.cjs +16 -7
  98. package/dist/cjs/components/text-field/daikin-text-field.d.cts +7 -2
  99. package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +94 -0
  100. package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +69 -0
  101. package/dist/cjs/components/toast-notification/index.cjs +7 -0
  102. package/dist/cjs/components/toast-notification/index.d.cts +1 -0
  103. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
  104. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
  105. package/dist/cjs/components/toast-notification-manager/index.cjs +7 -0
  106. package/dist/cjs/components/toast-notification-manager/index.d.cts +1 -0
  107. package/dist/cjs/components/toggle/daikin-toggle.cjs +8 -5
  108. package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
  109. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +42 -30
  110. package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
  111. package/dist/cjs/components/tree/daikin-tree.cjs +36 -37
  112. package/dist/cjs/components/tree/daikin-tree.d.cts +13 -14
  113. package/dist/cjs/components/tree-item/daikin-tree-item.cjs +22 -18
  114. package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +9 -9
  115. package/dist/cjs/components/tree-section/daikin-tree-section.cjs +26 -41
  116. package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +10 -20
  117. package/dist/cjs/controllers/click-outside.d.cts +1 -1
  118. package/dist/cjs/index.cjs +33 -3
  119. package/dist/cjs/tailwind.css.cjs +1 -1
  120. package/dist/cjs/utils/is-similar-to-click.cjs +4 -0
  121. package/dist/cjs/utils/is-similar-to-click.d.cts +1 -0
  122. package/dist/cjs/utils/notification-common.cjs +121 -0
  123. package/dist/cjs/utils/notification-common.d.cts +19 -0
  124. package/dist/cjs-dev/base/dds-element.cjs +8 -0
  125. package/dist/cjs-dev/base/dds-element.d.cts +4 -0
  126. package/dist/cjs-dev/base/decorators.cjs +13 -0
  127. package/dist/cjs-dev/base/decorators.d.cts +2 -0
  128. package/dist/cjs-dev/base/define.cjs +18 -0
  129. package/dist/cjs-dev/base/define.d.cts +1 -0
  130. package/dist/cjs-dev/base/index.cjs +8 -0
  131. package/dist/cjs-dev/base/index.d.cts +3 -0
  132. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
  133. package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
  134. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +37 -77
  135. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
  136. package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +160 -0
  137. package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +64 -0
  138. package/dist/cjs-dev/components/avatar/index.cjs +7 -0
  139. package/dist/cjs-dev/components/avatar/index.d.cts +1 -0
  140. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
  141. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
  142. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
  143. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
  144. package/dist/cjs-dev/components/button/daikin-button.cjs +20 -8
  145. package/dist/cjs-dev/components/button/daikin-button.d.cts +6 -3
  146. package/dist/cjs-dev/components/card/daikin-card.cjs +11 -7
  147. package/dist/cjs-dev/components/card/daikin-card.d.cts +8 -2
  148. package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +9 -9
  149. package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +6 -2
  150. package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +10 -10
  151. package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +6 -2
  152. package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +227 -0
  153. package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +56 -0
  154. package/dist/cjs-dev/components/carousel/index.cjs +7 -0
  155. package/dist/cjs-dev/components/carousel/index.d.cts +1 -0
  156. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +80 -0
  157. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +50 -0
  158. package/dist/cjs-dev/components/carousel-item/index.cjs +7 -0
  159. package/dist/cjs-dev/components/carousel-item/index.d.cts +1 -0
  160. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +35 -16
  161. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +8 -2
  162. package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +161 -74
  163. package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +64 -11
  164. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +109 -41
  165. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +16 -3
  166. package/dist/cjs-dev/components/icon/daikin-icon.cjs +8 -5
  167. package/dist/cjs-dev/components/icon/daikin-icon.d.cts +2 -2
  168. package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
  169. package/dist/cjs-dev/components/icon/icons.json.d.cts +4 -8
  170. package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +8 -5
  171. package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
  172. package/dist/cjs-dev/components/index.cjs +33 -3
  173. package/dist/cjs-dev/components/index.d.cts +7 -1
  174. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +92 -0
  175. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +55 -0
  176. package/dist/cjs-dev/components/inline-notification/index.cjs +7 -0
  177. package/dist/cjs-dev/components/inline-notification/index.d.cts +1 -0
  178. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +12 -9
  179. package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +15 -7
  180. package/dist/cjs-dev/components/link/daikin-link.cjs +9 -6
  181. package/dist/cjs-dev/components/link/daikin-link.d.cts +2 -2
  182. package/dist/cjs-dev/components/list/daikin-list.cjs +9 -9
  183. package/dist/cjs-dev/components/list/daikin-list.d.cts +7 -2
  184. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +8 -5
  185. package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
  186. package/dist/cjs-dev/components/loading/daikin-loading.cjs +91 -0
  187. package/dist/cjs-dev/components/loading/daikin-loading.d.cts +32 -0
  188. package/dist/cjs-dev/components/loading/index.cjs +7 -0
  189. package/dist/cjs-dev/components/loading/index.d.cts +1 -0
  190. package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +22 -13
  191. package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
  192. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +13 -8
  193. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +3 -2
  194. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +16 -30
  195. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
  196. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
  197. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
  198. package/dist/cjs-dev/components/radio/daikin-radio.cjs +45 -23
  199. package/dist/cjs-dev/components/radio/daikin-radio.d.cts +18 -8
  200. package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +31 -11
  201. package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +20 -14
  202. package/dist/cjs-dev/components/select/daikin-select.cjs +15 -6
  203. package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
  204. package/dist/cjs-dev/components/tab/daikin-tab.cjs +25 -10
  205. package/dist/cjs-dev/components/tab/daikin-tab.d.cts +7 -2
  206. package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +9 -7
  207. package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.cts +2 -2
  208. package/dist/cjs-dev/components/table/daikin-table.cjs +9 -6
  209. package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
  210. package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +8 -5
  211. package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +6 -2
  212. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
  213. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
  214. package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +25 -10
  215. package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +8 -2
  216. package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +16 -7
  217. package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +7 -2
  218. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +16 -7
  219. package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +7 -2
  220. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +94 -0
  221. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +69 -0
  222. package/dist/cjs-dev/components/toast-notification/index.cjs +7 -0
  223. package/dist/cjs-dev/components/toast-notification/index.d.cts +1 -0
  224. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
  225. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
  226. package/dist/cjs-dev/components/toast-notification-manager/index.cjs +7 -0
  227. package/dist/cjs-dev/components/toast-notification-manager/index.d.cts +1 -0
  228. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +8 -5
  229. package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
  230. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +42 -30
  231. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
  232. package/dist/cjs-dev/components/tree/daikin-tree.cjs +36 -37
  233. package/dist/cjs-dev/components/tree/daikin-tree.d.cts +13 -14
  234. package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +22 -18
  235. package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +9 -9
  236. package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +26 -41
  237. package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +10 -20
  238. package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
  239. package/dist/cjs-dev/index.cjs +33 -3
  240. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  241. package/dist/cjs-dev/utils/is-similar-to-click.cjs +4 -0
  242. package/dist/cjs-dev/utils/is-similar-to-click.d.cts +1 -0
  243. package/dist/cjs-dev/utils/notification-common.cjs +124 -0
  244. package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
  245. package/dist/es/base/dds-element.d.ts +4 -0
  246. package/dist/es/base/dds-element.js +8 -0
  247. package/dist/es/base/decorators.d.ts +2 -0
  248. package/dist/es/base/decorators.js +13 -0
  249. package/dist/es/base/define.d.ts +1 -0
  250. package/dist/es/base/define.js +18 -0
  251. package/dist/es/base/index.d.ts +3 -0
  252. package/dist/es/base/index.js +8 -0
  253. package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
  254. package/dist/es/components/accordion/daikin-accordion.js +38 -5
  255. package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
  256. package/dist/es/components/accordion-item/daikin-accordion-item.js +36 -76
  257. package/dist/es/components/avatar/daikin-avatar.d.ts +64 -0
  258. package/dist/es/components/avatar/daikin-avatar.js +161 -0
  259. package/dist/es/components/avatar/index.d.ts +1 -0
  260. package/dist/es/components/avatar/index.js +4 -0
  261. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
  262. package/dist/es/components/breadcrumb/daikin-breadcrumb.js +7 -4
  263. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
  264. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
  265. package/dist/es/components/button/daikin-button.d.ts +6 -3
  266. package/dist/es/components/button/daikin-button.js +19 -7
  267. package/dist/es/components/card/daikin-card.d.ts +8 -2
  268. package/dist/es/components/card/daikin-card.js +10 -6
  269. package/dist/es/components/card-footer/daikin-card-footer.d.ts +6 -2
  270. package/dist/es/components/card-footer/daikin-card-footer.js +7 -7
  271. package/dist/es/components/card-header/daikin-card-header.d.ts +6 -2
  272. package/dist/es/components/card-header/daikin-card-header.js +8 -8
  273. package/dist/es/components/carousel/daikin-carousel.d.ts +56 -0
  274. package/dist/es/components/carousel/daikin-carousel.js +218 -0
  275. package/dist/es/components/carousel/index.d.ts +1 -0
  276. package/dist/es/components/carousel/index.js +4 -0
  277. package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +50 -0
  278. package/dist/es/components/carousel-item/daikin-carousel-item.js +81 -0
  279. package/dist/es/components/carousel-item/index.d.ts +1 -0
  280. package/dist/es/components/carousel-item/index.js +4 -0
  281. package/dist/es/components/checkbox/daikin-checkbox.d.ts +8 -2
  282. package/dist/es/components/checkbox/daikin-checkbox.js +34 -15
  283. package/dist/es/components/dropdown/daikin-dropdown.d.ts +64 -11
  284. package/dist/es/components/dropdown/daikin-dropdown.js +160 -73
  285. package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +16 -3
  286. package/dist/es/components/dropdown-item/daikin-dropdown-item.js +108 -40
  287. package/dist/es/components/icon/daikin-icon.d.ts +2 -2
  288. package/dist/es/components/icon/daikin-icon.js +7 -4
  289. package/dist/es/components/icon/icons.json.d.ts +4 -8
  290. package/dist/es/components/icon/icons.json.js +1 -70
  291. package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
  292. package/dist/es/components/icon-button/daikin-icon-button.js +7 -4
  293. package/dist/es/components/index.d.ts +7 -1
  294. package/dist/es/components/index.js +14 -2
  295. package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +55 -0
  296. package/dist/es/components/inline-notification/daikin-inline-notification.js +93 -0
  297. package/dist/es/components/inline-notification/index.d.ts +1 -0
  298. package/dist/es/components/inline-notification/index.js +4 -0
  299. package/dist/es/components/input-group/daikin-input-group.d.ts +15 -7
  300. package/dist/es/components/input-group/daikin-input-group.js +11 -8
  301. package/dist/es/components/link/daikin-link.d.ts +2 -2
  302. package/dist/es/components/link/daikin-link.js +8 -5
  303. package/dist/es/components/list/daikin-list.d.ts +7 -2
  304. package/dist/es/components/list/daikin-list.js +7 -7
  305. package/dist/es/components/list-item/daikin-list-item.d.ts +6 -2
  306. package/dist/es/components/list-item/daikin-list-item.js +7 -4
  307. package/dist/es/components/loading/daikin-loading.d.ts +32 -0
  308. package/dist/es/components/loading/daikin-loading.js +92 -0
  309. package/dist/es/components/loading/index.d.ts +1 -0
  310. package/dist/es/components/loading/index.js +4 -0
  311. package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
  312. package/dist/es/components/pagination/daikin-pagination.js +21 -12
  313. package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
  314. package/dist/es/components/progress-bar/daikin-progress-bar.js +12 -7
  315. package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
  316. package/dist/es/components/progress-indicator/daikin-progress-indicator.js +15 -19
  317. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
  318. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
  319. package/dist/es/components/radio/daikin-radio.d.ts +18 -8
  320. package/dist/es/components/radio/daikin-radio.js +44 -22
  321. package/dist/es/components/radio-group/daikin-radio-group.d.ts +20 -14
  322. package/dist/es/components/radio-group/daikin-radio-group.js +30 -10
  323. package/dist/es/components/select/daikin-select.d.ts +11 -2
  324. package/dist/es/components/select/daikin-select.js +14 -5
  325. package/dist/es/components/tab/daikin-tab.d.ts +7 -2
  326. package/dist/es/components/tab/daikin-tab.js +24 -9
  327. package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +2 -2
  328. package/dist/es/components/tab-panels/daikin-tab-panels.js +8 -6
  329. package/dist/es/components/table/daikin-table.d.ts +9 -2
  330. package/dist/es/components/table/daikin-table.js +8 -5
  331. package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
  332. package/dist/es/components/table-cell/daikin-table-cell.js +7 -4
  333. package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
  334. package/dist/es/components/table-header-cell/daikin-table-header-cell.js +7 -4
  335. package/dist/es/components/tabs/daikin-tabs.d.ts +8 -2
  336. package/dist/es/components/tabs/daikin-tabs.js +24 -9
  337. package/dist/es/components/text-area/daikin-text-area.d.ts +7 -2
  338. package/dist/es/components/text-area/daikin-text-area.js +15 -6
  339. package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
  340. package/dist/es/components/text-field/daikin-text-field.js +15 -6
  341. package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +69 -0
  342. package/dist/es/components/toast-notification/daikin-toast-notification.js +95 -0
  343. package/dist/es/components/toast-notification/index.d.ts +1 -0
  344. package/dist/es/components/toast-notification/index.js +4 -0
  345. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
  346. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
  347. package/dist/es/components/toast-notification-manager/index.d.ts +1 -0
  348. package/dist/es/components/toast-notification-manager/index.js +4 -0
  349. package/dist/es/components/toggle/daikin-toggle.d.ts +3 -2
  350. package/dist/es/components/toggle/daikin-toggle.js +7 -4
  351. package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
  352. package/dist/es/components/tooltip/daikin-tooltip.js +41 -29
  353. package/dist/es/components/tree/daikin-tree.d.ts +13 -14
  354. package/dist/es/components/tree/daikin-tree.js +35 -36
  355. package/dist/es/components/tree-item/daikin-tree-item.d.ts +9 -9
  356. package/dist/es/components/tree-item/daikin-tree-item.js +21 -17
  357. package/dist/es/components/tree-section/daikin-tree-section.d.ts +10 -20
  358. package/dist/es/components/tree-section/daikin-tree-section.js +25 -40
  359. package/dist/es/controllers/click-outside.d.ts +1 -1
  360. package/dist/es/index.js +14 -2
  361. package/dist/es/tailwind.css.js +1 -1
  362. package/dist/es/utils/is-similar-to-click.d.ts +1 -0
  363. package/dist/es/utils/is-similar-to-click.js +4 -0
  364. package/dist/es/utils/notification-common.d.ts +19 -0
  365. package/dist/es/utils/notification-common.js +121 -0
  366. package/dist/es-dev/base/dds-element.d.ts +4 -0
  367. package/dist/es-dev/base/dds-element.js +8 -0
  368. package/dist/es-dev/base/decorators.d.ts +2 -0
  369. package/dist/es-dev/base/decorators.js +13 -0
  370. package/dist/es-dev/base/define.d.ts +1 -0
  371. package/dist/es-dev/base/define.js +18 -0
  372. package/dist/es-dev/base/index.d.ts +3 -0
  373. package/dist/es-dev/base/index.js +8 -0
  374. package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
  375. package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
  376. package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
  377. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +36 -76
  378. package/dist/es-dev/components/avatar/daikin-avatar.d.ts +64 -0
  379. package/dist/es-dev/components/avatar/daikin-avatar.js +161 -0
  380. package/dist/es-dev/components/avatar/index.d.ts +1 -0
  381. package/dist/es-dev/components/avatar/index.js +4 -0
  382. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
  383. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +7 -4
  384. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
  385. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
  386. package/dist/es-dev/components/button/daikin-button.d.ts +6 -3
  387. package/dist/es-dev/components/button/daikin-button.js +19 -7
  388. package/dist/es-dev/components/card/daikin-card.d.ts +8 -2
  389. package/dist/es-dev/components/card/daikin-card.js +10 -6
  390. package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +6 -2
  391. package/dist/es-dev/components/card-footer/daikin-card-footer.js +7 -7
  392. package/dist/es-dev/components/card-header/daikin-card-header.d.ts +6 -2
  393. package/dist/es-dev/components/card-header/daikin-card-header.js +8 -8
  394. package/dist/es-dev/components/carousel/daikin-carousel.d.ts +56 -0
  395. package/dist/es-dev/components/carousel/daikin-carousel.js +228 -0
  396. package/dist/es-dev/components/carousel/index.d.ts +1 -0
  397. package/dist/es-dev/components/carousel/index.js +4 -0
  398. package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +50 -0
  399. package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +81 -0
  400. package/dist/es-dev/components/carousel-item/index.d.ts +1 -0
  401. package/dist/es-dev/components/carousel-item/index.js +4 -0
  402. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +8 -2
  403. package/dist/es-dev/components/checkbox/daikin-checkbox.js +34 -15
  404. package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +64 -11
  405. package/dist/es-dev/components/dropdown/daikin-dropdown.js +160 -73
  406. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +16 -3
  407. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +108 -40
  408. package/dist/es-dev/components/icon/daikin-icon.d.ts +2 -2
  409. package/dist/es-dev/components/icon/daikin-icon.js +7 -4
  410. package/dist/es-dev/components/icon/icons.json.d.ts +4 -8
  411. package/dist/es-dev/components/icon/icons.json.js +1 -70
  412. package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
  413. package/dist/es-dev/components/icon-button/daikin-icon-button.js +7 -4
  414. package/dist/es-dev/components/index.d.ts +7 -1
  415. package/dist/es-dev/components/index.js +14 -2
  416. package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +55 -0
  417. package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +93 -0
  418. package/dist/es-dev/components/inline-notification/index.d.ts +1 -0
  419. package/dist/es-dev/components/inline-notification/index.js +4 -0
  420. package/dist/es-dev/components/input-group/daikin-input-group.d.ts +15 -7
  421. package/dist/es-dev/components/input-group/daikin-input-group.js +11 -8
  422. package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
  423. package/dist/es-dev/components/link/daikin-link.js +8 -5
  424. package/dist/es-dev/components/list/daikin-list.d.ts +7 -2
  425. package/dist/es-dev/components/list/daikin-list.js +7 -7
  426. package/dist/es-dev/components/list-item/daikin-list-item.d.ts +6 -2
  427. package/dist/es-dev/components/list-item/daikin-list-item.js +7 -4
  428. package/dist/es-dev/components/loading/daikin-loading.d.ts +32 -0
  429. package/dist/es-dev/components/loading/daikin-loading.js +92 -0
  430. package/dist/es-dev/components/loading/index.d.ts +1 -0
  431. package/dist/es-dev/components/loading/index.js +4 -0
  432. package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
  433. package/dist/es-dev/components/pagination/daikin-pagination.js +21 -12
  434. package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +3 -2
  435. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +12 -7
  436. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
  437. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +15 -29
  438. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
  439. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
  440. package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
  441. package/dist/es-dev/components/radio/daikin-radio.js +44 -22
  442. package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +20 -14
  443. package/dist/es-dev/components/radio-group/daikin-radio-group.js +30 -10
  444. package/dist/es-dev/components/select/daikin-select.d.ts +11 -2
  445. package/dist/es-dev/components/select/daikin-select.js +14 -5
  446. package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
  447. package/dist/es-dev/components/tab/daikin-tab.js +24 -9
  448. package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +2 -2
  449. package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +8 -6
  450. package/dist/es-dev/components/table/daikin-table.d.ts +9 -2
  451. package/dist/es-dev/components/table/daikin-table.js +8 -5
  452. package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +6 -2
  453. package/dist/es-dev/components/table-cell/daikin-table-cell.js +7 -4
  454. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
  455. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +7 -4
  456. package/dist/es-dev/components/tabs/daikin-tabs.d.ts +8 -2
  457. package/dist/es-dev/components/tabs/daikin-tabs.js +24 -9
  458. package/dist/es-dev/components/text-area/daikin-text-area.d.ts +7 -2
  459. package/dist/es-dev/components/text-area/daikin-text-area.js +15 -6
  460. package/dist/es-dev/components/text-field/daikin-text-field.d.ts +7 -2
  461. package/dist/es-dev/components/text-field/daikin-text-field.js +15 -6
  462. package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +69 -0
  463. package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +95 -0
  464. package/dist/es-dev/components/toast-notification/index.d.ts +1 -0
  465. package/dist/es-dev/components/toast-notification/index.js +4 -0
  466. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
  467. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
  468. package/dist/es-dev/components/toast-notification-manager/index.d.ts +1 -0
  469. package/dist/es-dev/components/toast-notification-manager/index.js +4 -0
  470. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -2
  471. package/dist/es-dev/components/toggle/daikin-toggle.js +7 -4
  472. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
  473. package/dist/es-dev/components/tooltip/daikin-tooltip.js +41 -29
  474. package/dist/es-dev/components/tree/daikin-tree.d.ts +13 -14
  475. package/dist/es-dev/components/tree/daikin-tree.js +35 -36
  476. package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +9 -9
  477. package/dist/es-dev/components/tree-item/daikin-tree-item.js +21 -17
  478. package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +10 -20
  479. package/dist/es-dev/components/tree-section/daikin-tree-section.js +25 -40
  480. package/dist/es-dev/controllers/click-outside.d.ts +1 -1
  481. package/dist/es-dev/index.js +14 -2
  482. package/dist/es-dev/tailwind.css.js +1 -1
  483. package/dist/es-dev/utils/is-similar-to-click.d.ts +1 -0
  484. package/dist/es-dev/utils/is-similar-to-click.js +4 -0
  485. package/dist/es-dev/utils/notification-common.d.ts +19 -0
  486. package/dist/es-dev/utils/notification-common.js +124 -0
  487. package/icons/checkbox-checked.svg +2 -3
  488. package/icons/profile.svg +4 -0
  489. package/icons/status-negative.svg +4 -2
  490. package/icons/status-warning.svg +2 -4
  491. package/package.json +54 -50
  492. package/dist/cjs/components/notification/daikin-notification.cjs +0 -196
  493. package/dist/cjs/components/notification/daikin-notification.d.cts +0 -77
  494. package/dist/cjs/components/notification/index.cjs +0 -7
  495. package/dist/cjs/components/notification/index.d.cts +0 -1
  496. package/dist/cjs/constants/events.cjs +0 -4
  497. package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -196
  498. package/dist/cjs-dev/components/notification/daikin-notification.d.cts +0 -77
  499. package/dist/cjs-dev/components/notification/index.cjs +0 -7
  500. package/dist/cjs-dev/components/notification/index.d.cts +0 -1
  501. package/dist/cjs-dev/constants/events.cjs +0 -4
  502. package/dist/es/components/notification/daikin-notification.d.ts +0 -77
  503. package/dist/es/components/notification/daikin-notification.js +0 -197
  504. package/dist/es/components/notification/index.d.ts +0 -1
  505. package/dist/es/components/notification/index.js +0 -4
  506. package/dist/es/constants/events.js +0 -4
  507. package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
  508. package/dist/es-dev/components/notification/daikin-notification.js +0 -197
  509. package/dist/es-dev/components/notification/index.d.ts +0 -1
  510. package/dist/es-dev/components/notification/index.js +0 -4
  511. package/dist/es-dev/constants/events.js +0 -4
  512. package/icons/arrow-up.svg +0 -3
  513. package/icons/status-success.svg +0 -6
@@ -1,6 +1,9 @@
1
- import { css, unsafeCSS, LitElement, html, nothing } from "lit";
2
- import { property, customElement } from "lit/decorators.js";
1
+ import { css, unsafeCSS, html, nothing } from "lit";
2
+ import { property } from "lit/decorators.js";
3
3
  import { ifDefined } from "lit/directives/if-defined.js";
4
+ import { DDSElement } from "../../base/dds-element.js";
5
+ import { ddsElement } from "../../base/decorators.js";
6
+ import "../../base/define.js";
4
7
  import tailwindStyles from "../../tailwind.css.js";
5
8
  import "../link/daikin-link.js";
6
9
  var __defProp = Object.defineProperty;
@@ -13,7 +16,7 @@ var __decorateClass = (decorators, target, key, kind) => {
13
16
  if (kind && result) __defProp(target, key, result);
14
17
  return result;
15
18
  };
16
- let DaikinBreadcrumbItem = class extends LitElement {
19
+ let DaikinBreadcrumbItem = class extends DDSElement {
17
20
  constructor() {
18
21
  super(...arguments);
19
22
  this.href = null;
@@ -62,7 +65,7 @@ __decorateClass([
62
65
  property({ type: Boolean, reflect: true, attribute: "append-divider" })
63
66
  ], DaikinBreadcrumbItem.prototype, "appendDivider", 2);
64
67
  DaikinBreadcrumbItem = __decorateClass([
65
- customElement("daikin-breadcrumb-item")
68
+ ddsElement("daikin-breadcrumb-item")
66
69
  ], DaikinBreadcrumbItem);
67
70
  export {
68
71
  DaikinBreadcrumbItem
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import { DDSElement } from "../../base/index.js";
2
2
  import { ARIARole } from "../../lit-analyzer-types.js";
3
3
  import { MergeVariantProps } from "../../type-utils.js";
4
4
  declare const cvaButton: (props?: ({
@@ -6,7 +6,10 @@ declare const cvaButton: (props?: ({
6
6
  variant?: "fill" | "outline" | "ghost" | null | undefined;
7
7
  size?: "small" | "medium" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
- type ButtonVariantProps = MergeVariantProps<typeof cvaButton>;
9
+ declare const cvaIcon: (props?: ({
10
+ size?: "small" | "medium" | null | undefined;
11
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
+ type ButtonVariantProps = MergeVariantProps<typeof cvaButton | typeof cvaIcon>;
10
13
  /**
11
14
  * The button component is a versatile UI element that triggers actions or submits forms when clicked.
12
15
  * It functions similarly to the HTML `<button>` tag, allowing users to initiate various operations such as submitting data, opening dialogs, or navigating to different sections of an application.
@@ -29,7 +32,7 @@ type ButtonVariantProps = MergeVariantProps<typeof cvaButton>;
29
32
  * </daikin-button>
30
33
  * ```
31
34
  */
32
- export declare class DaikinButton extends LitElement {
35
+ export declare class DaikinButton extends DDSElement {
33
36
  static readonly styles: import('lit').CSSResult;
34
37
  /**
35
38
  * Variant of the button.
@@ -1,7 +1,10 @@
1
1
  import { cva } from "class-variance-authority";
2
- import { css, unsafeCSS, LitElement, html } from "lit";
3
- import { property, query, customElement } from "lit/decorators.js";
2
+ import { css, unsafeCSS, html } from "lit";
3
+ import { property, query } from "lit/decorators.js";
4
4
  import { ifDefined } from "lit/directives/if-defined.js";
5
+ import { DDSElement } from "../../base/dds-element.js";
6
+ import { ddsElement } from "../../base/decorators.js";
7
+ import "../../base/define.js";
5
8
  import tailwindStyles from "../../tailwind.css.js";
6
9
  var __defProp = Object.defineProperty;
7
10
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -68,7 +71,15 @@ const cvaButton = cva(
68
71
  }
69
72
  }
70
73
  );
71
- let DaikinButton = class extends LitElement {
74
+ const cvaIcon = cva([], {
75
+ variants: {
76
+ size: {
77
+ small: ["icon-size-4"],
78
+ medium: ["icon-size-6"]
79
+ }
80
+ }
81
+ });
82
+ let DaikinButton = class extends DDSElement {
72
83
  constructor() {
73
84
  super();
74
85
  this.variant = "fill";
@@ -79,7 +90,7 @@ let DaikinButton = class extends LitElement {
79
90
  this.type = "button";
80
91
  this.buttonRole = null;
81
92
  this.addEventListener("click", (event) => {
82
- if (this.disabled) {
93
+ if (this.disabled || this.type === "link" && this.href == null) {
83
94
  event.stopImmediatePropagation();
84
95
  }
85
96
  });
@@ -116,11 +127,11 @@ let DaikinButton = class extends LitElement {
116
127
  type=${this.type}
117
128
  role=${ifDefined(this.buttonRole ?? void 0)}
118
129
  >
119
- <slot name="left-icon" class="icon-size-6">
130
+ <slot name="left-icon" class=${cvaIcon({ size: this.size })}>
120
131
  <span class="block -ml-1"></span>
121
132
  </slot>
122
133
  <span class="px-2"><slot></slot></span>
123
- <slot name="right-icon" class="icon-size-6">
134
+ <slot name="right-icon" class=${cvaIcon({ size: this.size })}>
124
135
  <span class="block -mr-1"></span>
125
136
  </slot>
126
137
  </button>
@@ -140,6 +151,7 @@ DaikinButton.styles = css`
140
151
 
141
152
  :host {
142
153
  display: inline-flex;
154
+ max-width: 100%;
143
155
  }
144
156
 
145
157
  :host([size="small"]) {
@@ -177,7 +189,7 @@ __decorateClass([
177
189
  query("a,button")
178
190
  ], DaikinButton.prototype, "_focusableElement", 2);
179
191
  DaikinButton = __decorateClass([
180
- customElement("daikin-button")
192
+ ddsElement("daikin-button")
181
193
  ], DaikinButton);
182
194
  export {
183
195
  DaikinButton
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import { DDSElement } from "../../base/index.js";
2
2
  /**
3
3
  * `daikin-card` is a component for display content related to a single subject. The content can consist of multiple elements of varying types and sizes.
4
4
  *
@@ -10,6 +10,12 @@ import { LitElement } from 'lit';
10
10
  *
11
11
  * @example
12
12
  *
13
+ * ```js
14
+ * import "@daikin-oss/design-system-web-components/components/card/index.js";
15
+ * import "@daikin-oss/design-system-web-components/components/card-footer/index.js";
16
+ * import "@daikin-oss/design-system-web-components/components/card-header/index.js";
17
+ * ```
18
+ *
13
19
  * ```html
14
20
  * <daikin-card outline>
15
21
  * <daikin-card-header>
@@ -27,7 +33,7 @@ import { LitElement } from 'lit';
27
33
  * </daikin-card>
28
34
  * ```
29
35
  */
30
- export declare class DaikinCard extends LitElement {
36
+ export declare class DaikinCard extends DDSElement {
31
37
  static styles: import('lit').CSSResult;
32
38
  /**
33
39
  * Specify whether the card border to be visible or not.
@@ -1,6 +1,9 @@
1
1
  import { cva } from "class-variance-authority";
2
- import { css, unsafeCSS, LitElement, html } from "lit";
3
- import { property, customElement } from "lit/decorators.js";
2
+ import { css, unsafeCSS, html } from "lit";
3
+ import { property } from "lit/decorators.js";
4
+ import { DDSElement } from "../../base/dds-element.js";
5
+ import { ddsElement } from "../../base/decorators.js";
6
+ import "../../base/define.js";
4
7
  import tailwindStyles from "../../tailwind.css.js";
5
8
  var __defProp = Object.defineProperty;
6
9
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -17,6 +20,7 @@ const cvaContainer = cva(
17
20
  "flex",
18
21
  "flex-col",
19
22
  "gap-4",
23
+ "size-full",
20
24
  "p-4",
21
25
  "rounded-lg",
22
26
  "bg-ddt-color-common-background-default"
@@ -30,7 +34,7 @@ const cvaContainer = cva(
30
34
  }
31
35
  }
32
36
  );
33
- let DaikinCard = class extends LitElement {
37
+ let DaikinCard = class extends DDSElement {
34
38
  constructor() {
35
39
  super(...arguments);
36
40
  this.outline = false;
@@ -49,15 +53,15 @@ DaikinCard.styles = css`
49
53
  ${unsafeCSS(tailwindStyles)}
50
54
 
51
55
  :host {
52
- display: flex;
53
- width: fit-content;
56
+ display: block;
57
+ width: 100%;
54
58
  }
55
59
  `;
56
60
  __decorateClass([
57
61
  property({ type: Boolean, reflect: true })
58
62
  ], DaikinCard.prototype, "outline", 2);
59
63
  DaikinCard = __decorateClass([
60
- customElement("daikin-card")
64
+ ddsElement("daikin-card")
61
65
  ], DaikinCard);
62
66
  export {
63
67
  DaikinCard
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import { DDSElement } from "../../base/index.js";
2
2
  /**
3
3
  * `daikin-card-footer` is used to represent footer of the card component, and is used as a child element of the `daikin-card` component.
4
4
  *
@@ -9,6 +9,10 @@ import { LitElement } from 'lit';
9
9
  *
10
10
  * @example
11
11
  *
12
+ * ```js
13
+ * import "@daikin-oss/design-system-web-components/components/card-footer/index.js";
14
+ * ```
15
+ *
12
16
  * ```html
13
17
  * <!-- See `daikin-card` component for complete example. -->
14
18
  * <daikin-card-footer>
@@ -18,7 +22,7 @@ import { LitElement } from 'lit';
18
22
  * </daikin-card-footer>
19
23
  * ```
20
24
  */
21
- export declare class DaikinCardFooter extends LitElement {
25
+ export declare class DaikinCardFooter extends DDSElement {
22
26
  static styles: import('lit').CSSResult;
23
27
  render(): import('lit-html').TemplateResult<1>;
24
28
  }
@@ -1,17 +1,17 @@
1
- import { css, unsafeCSS, LitElement, html } from "lit";
2
- import { customElement } from "lit/decorators.js";
1
+ import { css, unsafeCSS, html } from "lit";
2
+ import { DDSElement } from "../../base/dds-element.js";
3
+ import { ddsElement } from "../../base/decorators.js";
4
+ import "../../base/define.js";
3
5
  import tailwindStyles from "../../tailwind.css.js";
4
- var __defProp = Object.defineProperty;
5
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
7
  var __decorateClass = (decorators, target, key, kind) => {
7
8
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
8
9
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
9
10
  if (decorator = decorators[i])
10
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11
- if (kind && result) __defProp(target, key, result);
11
+ result = decorator(result) || result;
12
12
  return result;
13
13
  };
14
- let DaikinCardFooter = class extends LitElement {
14
+ let DaikinCardFooter = class extends DDSElement {
15
15
  render() {
16
16
  return html`<slot></slot>`;
17
17
  }
@@ -27,7 +27,7 @@ DaikinCardFooter.styles = css`
27
27
  }
28
28
  `;
29
29
  DaikinCardFooter = __decorateClass([
30
- customElement("daikin-card-footer")
30
+ ddsElement("daikin-card-footer")
31
31
  ], DaikinCardFooter);
32
32
  export {
33
33
  DaikinCardFooter
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import { DDSElement } from "../../base/index.js";
2
2
  /**
3
3
  * `daikin-card-header` is used to represent header of the card component, and is used as a child element of the `daikin-card` component.
4
4
  *
@@ -11,6 +11,10 @@ import { LitElement } from 'lit';
11
11
  *
12
12
  * @example
13
13
  *
14
+ * ```js
15
+ * import "@daikin-oss/design-system-web-components/components/card-header/index.js";
16
+ * ```
17
+ *
14
18
  * ```html
15
19
  * <!-- See `daikin-card` component for complete example. -->
16
20
  * <daikin-card-header>
@@ -20,7 +24,7 @@ import { LitElement } from 'lit';
20
24
  * </daikin-card-header>
21
25
  * ```
22
26
  */
23
- export declare class DaikinCardHeader extends LitElement {
27
+ export declare class DaikinCardHeader extends DDSElement {
24
28
  static styles: import('lit').CSSResult;
25
29
  render(): import('lit-html').TemplateResult<1>;
26
30
  }
@@ -1,15 +1,15 @@
1
1
  import { cva } from "class-variance-authority";
2
- import { css, unsafeCSS, LitElement, html } from "lit";
3
- import { customElement } from "lit/decorators.js";
2
+ import { css, unsafeCSS, html } from "lit";
3
+ import { DDSElement } from "../../base/dds-element.js";
4
+ import { ddsElement } from "../../base/decorators.js";
5
+ import "../../base/define.js";
4
6
  import tailwindStyles from "../../tailwind.css.js";
5
- var __defProp = Object.defineProperty;
6
7
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
8
  var __decorateClass = (decorators, target, key, kind) => {
8
9
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
9
10
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
10
11
  if (decorator = decorators[i])
11
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12
- if (kind && result) __defProp(target, key, result);
12
+ result = decorator(result) || result;
13
13
  return result;
14
14
  };
15
15
  const cvaTitle = cva([
@@ -30,14 +30,14 @@ const cvaDescription = cva([
30
30
  "not-italic",
31
31
  "font-normal"
32
32
  ])();
33
- let DaikinCardHeader = class extends LitElement {
33
+ let DaikinCardHeader = class extends DDSElement {
34
34
  render() {
35
35
  return html`<div class="flex w-full gap-1">
36
36
  <slot
37
37
  name="left-icon"
38
38
  class="flex-none icon-size-6 text-ddt-color-common-text-primary"
39
39
  ></slot>
40
- <div class="flex-1 flex flex-col pt-0.5 gap-[1px]">
40
+ <div class="flex-1 flex flex-col pt-0.5 gap-1">
41
41
  <slot class=${cvaTitle}></slot>
42
42
  <slot name="description" class=${cvaDescription}></slot>
43
43
  </div>
@@ -53,7 +53,7 @@ DaikinCardHeader.styles = css`
53
53
  }
54
54
  `;
55
55
  DaikinCardHeader = __decorateClass([
56
- customElement("daikin-card-header")
56
+ ddsElement("daikin-card-header")
57
57
  ], DaikinCardHeader);
58
58
  export {
59
59
  DaikinCardHeader
@@ -0,0 +1,56 @@
1
+ import { PropertyValues } from 'lit';
2
+ import { DDSElement } from "../../base/index.js";
3
+ /**
4
+ * A carousel is a component that displays multiple pieces of information by sliding left and right within a fixed height area.
5
+ *
6
+ * The carousel component can be operated in several ways (Control, Indicator, and Swipe), but it is not possible to hide all of these, as this would prevent the user from being able to operate the carousel component.
7
+ *
8
+ * Hierarchy:
9
+ * - `daikin-carousel` > `daikin-carousel-item`
10
+ *
11
+ * @fires select - If an item in the carousel is selected in some way, the method used to select it, the index number of the item displayed before it, and the index number of the item currently displayed are passed.
12
+ *
13
+ * @slot - A slot for carousel items. Place `daikin-carousel-item` elements here.
14
+ *
15
+ * @cssprop [--ddc-transition-duration=600ms] - Specify the interval for the slide animation.
16
+ *
17
+ * @example
18
+ *
19
+ * ```js
20
+ * import "@daikin-oss/design-system-web-components/components/carousel/index.js";
21
+ * import "@daikin-oss/design-system-web-components/components/carousel-item/index.js";
22
+ * ```
23
+ *
24
+ * ```html
25
+ * <daikin-carousel>
26
+ * <daikin-carousel-item>Carousel item 1</daikin-carousel-item>
27
+ * <daikin-carousel-item>Carousel item 2</daikin-carousel-item>
28
+ * <daikin-carousel-item>Carousel item 3</daikin-carousel-item>
29
+ * </daikin-carousel>
30
+ * ```
31
+ */
32
+ export declare class DaikinCarousel extends DDSElement {
33
+ static readonly styles: import('lit').CSSResult;
34
+ /**
35
+ * The index number of the content currently being displayed.
36
+ */
37
+ currentIndex: number;
38
+ private readonly _items;
39
+ private _itemCount;
40
+ private _prevButton;
41
+ private _nextButton;
42
+ private _indicatorButtonsContainer;
43
+ private _emitSelect;
44
+ private _handleClickIndicator;
45
+ private _handleKeydownIndicator;
46
+ private _handleSlotchange;
47
+ private _moveBy;
48
+ private _updateItemActive;
49
+ render(): import('lit-html').TemplateResult<1>;
50
+ protected updated(changedProperties: PropertyValues): void;
51
+ }
52
+ declare global {
53
+ interface HTMLElementTagNameMap {
54
+ "daikin-carousel": DaikinCarousel;
55
+ }
56
+ }
@@ -0,0 +1,228 @@
1
+ import { cva } from "class-variance-authority";
2
+ import { css, unsafeCSS, html } from "lit";
3
+ import { property, queryAssignedElements, state } from "lit/decorators.js";
4
+ import { createRef, ref } from "lit/directives/ref.js";
5
+ import { repeat } from "lit/directives/repeat.js";
6
+ import { DDSElement } from "../../base/dds-element.js";
7
+ import { ddsElement } from "../../base/decorators.js";
8
+ import "../../base/define.js";
9
+ import tailwindStyles from "../../tailwind.css.js";
10
+ import "../icon-button/daikin-icon-button.js";
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __decorateClass = (decorators, target, key, kind) => {
14
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
15
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
16
+ if (decorator = decorators[i])
17
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
18
+ if (kind && result) __defProp(target, key, result);
19
+ return result;
20
+ };
21
+ const DEFAULT_TRANSITION_DURATION = "600ms";
22
+ const cvaButton = cva(
23
+ [
24
+ "flex",
25
+ "justify-center",
26
+ "items-center",
27
+ "flex-none",
28
+ "size-6",
29
+ "text-current"
30
+ ],
31
+ {
32
+ variants: {
33
+ intent: {
34
+ previous: ["i-daikin-chevron-left"],
35
+ next: ["i-daikin-chevron-right"]
36
+ }
37
+ }
38
+ }
39
+ );
40
+ const INDICATOR_CLASS_NAME = cva([
41
+ "flex",
42
+ "justify-center",
43
+ "items-center",
44
+ "size-3",
45
+ "m-0.5",
46
+ "rounded-full",
47
+ "transition",
48
+ "bg-ddt-color-common-neutral-default",
49
+ "relative",
50
+ "hover:bg-ddt-color-common-neutral-hover",
51
+ "active:bg-ddt-color-common-neutral-press",
52
+ "aria-selected:after:block",
53
+ "aria-selected:after:size-4",
54
+ "aria-selected:after:bg-ddt-color-common-brand-default",
55
+ "aria-selected:after:absolute",
56
+ "aria-selected:after:rounded-full",
57
+ "aria-selected:focus-visible:after:outline",
58
+ "aria-selected:focus-visible:after:outline-1",
59
+ "aria-selected:focus-visible:after:outline-offset-1",
60
+ "aria-selected:focus-visible:after:outline-ddt-color-common-border-focus"
61
+ ])();
62
+ let DaikinCarousel = class extends DDSElement {
63
+ constructor() {
64
+ super(...arguments);
65
+ this.currentIndex = 0;
66
+ this._itemCount = 0;
67
+ this._prevButton = createRef();
68
+ this._nextButton = createRef();
69
+ this._indicatorButtonsContainer = createRef();
70
+ }
71
+ _emitSelect(operation, beforeCurrentIndex) {
72
+ this.dispatchEvent(
73
+ new CustomEvent("select", {
74
+ detail: { operation, beforeCurrentIndex }
75
+ })
76
+ );
77
+ }
78
+ _handleClickIndicator(index) {
79
+ const beforeCurrentIndex = this.currentIndex;
80
+ this.currentIndex = index;
81
+ this._emitSelect("indicator", beforeCurrentIndex);
82
+ }
83
+ _handleKeydownIndicator(event) {
84
+ var _a;
85
+ const moveOffset = {
86
+ ArrowRight: 1,
87
+ ArrowLeft: -1
88
+ }[event.key];
89
+ if (!moveOffset) {
90
+ return;
91
+ }
92
+ const buttons = [
93
+ ...((_a = this._indicatorButtonsContainer.value) == null ? void 0 : _a.querySelectorAll("button")) ?? []
94
+ ];
95
+ this._moveBy(moveOffset);
96
+ buttons[this.currentIndex].focus();
97
+ }
98
+ _handleSlotchange() {
99
+ const items = this._items;
100
+ this._itemCount = items.length;
101
+ for (const [index, item] of items.entries()) {
102
+ item.label = `${index + 1} of ${this._itemCount}`;
103
+ }
104
+ this._updateItemActive();
105
+ }
106
+ _moveBy(moveOffset) {
107
+ const newIndex = this.currentIndex + moveOffset;
108
+ if (newIndex < 0 || newIndex >= this._itemCount) {
109
+ return;
110
+ }
111
+ const oldIndex = this.currentIndex;
112
+ this.currentIndex = newIndex;
113
+ this._emitSelect(moveOffset === 1 ? "next" : "prev", oldIndex);
114
+ }
115
+ _updateItemActive() {
116
+ const items = this._items;
117
+ if (items.length - 1 < this.currentIndex) {
118
+ {
119
+ console.warn(
120
+ `Invalid 'current-index' property: ${this.currentIndex}. The number of actual 'daikin-carousel-item's exceeds the number of items.`
121
+ );
122
+ }
123
+ return;
124
+ }
125
+ if (this.currentIndex < 0) {
126
+ {
127
+ console.warn(
128
+ `Invalid 'current-item' property: ${this.currentIndex}. Negative values cannot be set.`
129
+ );
130
+ }
131
+ return;
132
+ }
133
+ for (const [index, item] of this._items.entries()) {
134
+ item.active = index === this.currentIndex;
135
+ }
136
+ }
137
+ render() {
138
+ return html`<div
139
+ class="flex justify-center items-center flex-col gap-8"
140
+ style=${`--total:${this._itemCount};--current:${this.currentIndex};`}
141
+ >
142
+ <div class="flex justify-center items-center w-full gap-4">
143
+ <daikin-icon-button
144
+ ${ref(this._prevButton)}
145
+ variant="ghost"
146
+ color="neutral"
147
+ button-aria-label="Previous"
148
+ ?disabled=${this.currentIndex <= 0}
149
+ @click=${() => this._moveBy(-1)}
150
+ >
151
+ <span class=${cvaButton({ intent: "previous" })}></span>
152
+ </daikin-icon-button>
153
+ <div
154
+ class="w-full overflow-clip relative focus-within:outline focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-ddt-color-common-border-focus"
155
+ aria-live="polite"
156
+ >
157
+ <div
158
+ class="flex w-[calc(100%*var(--total))] transition-transform translate-x-[calc(-100%*var(--current)/var(--total))] duration-[--ddc-transition-duration]"
159
+ >
160
+ <slot @slotchange=${this._handleSlotchange}></slot>
161
+ </div>
162
+ </div>
163
+ <daikin-icon-button
164
+ ${ref(this._nextButton)}
165
+ variant="ghost"
166
+ color="neutral"
167
+ button-aria-label="Next"
168
+ ?disabled=${this.currentIndex >= this._itemCount - 1}
169
+ @click=${() => this._moveBy(1)}
170
+ >
171
+ <span class=${cvaButton({ intent: "next" })}></span>
172
+ </daikin-icon-button>
173
+ </div>
174
+ <div class="flex gap-3">
175
+ <div
176
+ ${ref(this._indicatorButtonsContainer)}
177
+ class="flex items-center gap-4"
178
+ role="tablist"
179
+ @keydown=${this._handleKeydownIndicator}
180
+ >
181
+ ${repeat(
182
+ this._items,
183
+ (_, index) => index,
184
+ (_, index) => html`<button
185
+ class=${INDICATOR_CLASS_NAME}
186
+ aria-label="Slide ${index + 1}"
187
+ aria-selected=${this.currentIndex === index}
188
+ role="tab"
189
+ tabindex=${this.currentIndex === index ? 0 : -1}
190
+ @click=${() => this._handleClickIndicator(index)}
191
+ ></button>`
192
+ )}
193
+ </div>
194
+ </div>
195
+ </div>`;
196
+ }
197
+ updated(changedProperties) {
198
+ if (changedProperties.has("currentIndex")) {
199
+ this._updateItemActive();
200
+ }
201
+ }
202
+ };
203
+ DaikinCarousel.styles = css`
204
+ ${unsafeCSS(tailwindStyles)}
205
+
206
+ :host {
207
+ display: block;
208
+ width: 100%;
209
+ position: relative;
210
+
211
+ --ddc-transition-duration: ${unsafeCSS(DEFAULT_TRANSITION_DURATION)};
212
+ }
213
+ `;
214
+ __decorateClass([
215
+ property({ type: Number, reflect: true, attribute: "current-index" })
216
+ ], DaikinCarousel.prototype, "currentIndex", 2);
217
+ __decorateClass([
218
+ queryAssignedElements({ selector: "daikin-carousel-item" })
219
+ ], DaikinCarousel.prototype, "_items", 2);
220
+ __decorateClass([
221
+ state()
222
+ ], DaikinCarousel.prototype, "_itemCount", 2);
223
+ DaikinCarousel = __decorateClass([
224
+ ddsElement("daikin-carousel")
225
+ ], DaikinCarousel);
226
+ export {
227
+ DaikinCarousel
228
+ };
@@ -0,0 +1 @@
1
+ export * from "./daikin-carousel.js";
@@ -0,0 +1,4 @@
1
+ import { DaikinCarousel } from "./daikin-carousel.js";
2
+ export {
3
+ DaikinCarousel
4
+ };
@@ -0,0 +1,50 @@
1
+ import { DDSElement } from "../../base/index.js";
2
+ /**
3
+ * The carousel item component is a child element within the `daikin-carousel` component.
4
+ *
5
+ * Hierarchy:
6
+ * - `daikin-carousel` > `daikin-carousel-item`
7
+ *
8
+ * @slot - A slot for an image or slide.
9
+ * @slot title - A slot for title text.
10
+ * @slot description - A slot for description text.
11
+ *
12
+ * @example
13
+ *
14
+ * ```js
15
+ * import "@daikin-oss/design-system-web-components/components/carousel-item/index.js";
16
+ * ```
17
+ *
18
+ * ```html
19
+ * <daikin-carousel-item>Carousel item</daikin-carousel-item>
20
+ * ```
21
+ */
22
+ export declare class DaikinCarouselItem extends DDSElement {
23
+ static readonly styles: import('lit').CSSResult;
24
+ /**
25
+ * _Internal use._
26
+ * Item's aria label.
27
+ * Controlled by `daikin-carousel`.
28
+ *
29
+ * @private
30
+ */
31
+ label: string;
32
+ /**
33
+ * _Internal use._
34
+ * Whether this item is displayed in the carousel or not.
35
+ * Controlled by `daikin-carousel`.
36
+ *
37
+ * @private
38
+ */
39
+ active: boolean;
40
+ private readonly _titleElements;
41
+ private readonly _descriptionElements;
42
+ private _hasTextContents;
43
+ private _handleFooterSlotChange;
44
+ render(): import('lit-html').TemplateResult<1>;
45
+ }
46
+ declare global {
47
+ interface HTMLElementTagNameMap {
48
+ "daikin-carousel-item": DaikinCarouselItem;
49
+ }
50
+ }