@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,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;
@@ -50,7 +53,7 @@ const cvaIcon = cva(["icon-size-6"], {
50
53
  }
51
54
  }
52
55
  });
53
- let DaikinListItem = class extends LitElement {
56
+ let DaikinListItem = class extends DDSElement {
54
57
  constructor() {
55
58
  super();
56
59
  this.type = "button";
@@ -142,7 +145,7 @@ __decorateClass([
142
145
  query("a,button")
143
146
  ], DaikinListItem.prototype, "_focusableElement", 2);
144
147
  DaikinListItem = __decorateClass([
145
- customElement("daikin-list-item")
148
+ ddsElement("daikin-list-item")
146
149
  ], DaikinListItem);
147
150
  export {
148
151
  DaikinListItem
@@ -0,0 +1,32 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * The loading component displays a spinner to indicate that a process is in progress.
4
+ * If the spinner is expected to blend into the background, set the background color. You can use the `background` attribute for such cases.
5
+ *
6
+ * @example
7
+ *
8
+ * ```js
9
+ * import "@daikin-oss/design-system-web-components/components/loading/index.js";
10
+ * ```
11
+ *
12
+ * ```html
13
+ * <daikin-loading></daikin-loading>
14
+ * ```
15
+ */
16
+ export declare class DaikinLoading extends LitElement {
17
+ static readonly styles: import('lit').CSSResult;
18
+ /**
19
+ * Size of the loading.
20
+ */
21
+ size: "small" | "medium";
22
+ /**
23
+ * Variant of the loading.
24
+ */
25
+ background: boolean;
26
+ render(): import('lit-html').TemplateResult<1>;
27
+ }
28
+ declare global {
29
+ interface HTMLElementTagNameMap {
30
+ "daikin-loading": DaikinLoading;
31
+ }
32
+ }
@@ -0,0 +1,92 @@
1
+ import { cva } from "class-variance-authority";
2
+ import { css, unsafeCSS, LitElement, html } from "lit";
3
+ import { property, customElement } from "lit/decorators.js";
4
+ import tailwindStyles from "../../tailwind.css.js";
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __decorateClass = (decorators, target, key, kind) => {
8
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
9
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
10
+ if (decorator = decorators[i])
11
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12
+ if (kind && result) __defProp(target, key, result);
13
+ return result;
14
+ };
15
+ const cvaLoadingContainer = cva(
16
+ ["flex", "justify-center", "items-center", "size-full"],
17
+ {
18
+ variants: {
19
+ background: {
20
+ false: ["bg-transparent"],
21
+ true: ["bg-ddt-color-common-background-default", "rounded"]
22
+ }
23
+ }
24
+ }
25
+ );
26
+ const cvaLoading = cva(
27
+ [
28
+ "block",
29
+ "border-t-ddt-color-common-brand-default",
30
+ "border-r-ddt-color-common-brand-default",
31
+ "border-b-ddt-color-common-brand-default",
32
+ "border-l-transparent",
33
+ "rounded-full",
34
+ "animate-[loading_800ms_linear_infinite]"
35
+ ],
36
+ {
37
+ variants: {
38
+ size: {
39
+ small: ["size-[1.125rem]", "border-2"],
40
+ medium: ["size-9", "border-4"]
41
+ }
42
+ }
43
+ }
44
+ );
45
+ let DaikinLoading = class extends LitElement {
46
+ constructor() {
47
+ super(...arguments);
48
+ this.size = "medium";
49
+ this.background = false;
50
+ }
51
+ render() {
52
+ return html`<div
53
+ class=${cvaLoadingContainer({ background: this.background })}
54
+ role="progressbar"
55
+ aria-busy="true"
56
+ aria-label="Loading"
57
+ >
58
+ <div class="size-fit rotate-45">
59
+ <span class=${cvaLoading({ size: this.size })}></span>
60
+ </div>
61
+ </div>`;
62
+ }
63
+ };
64
+ DaikinLoading.styles = css`
65
+ ${unsafeCSS(tailwindStyles)}
66
+
67
+ :host {
68
+ display: block;
69
+ }
70
+
71
+ :host([size="small"]) {
72
+ width: 2rem;
73
+ height: 2rem;
74
+ }
75
+
76
+ :host([size="medium"]) {
77
+ width: 3.5rem;
78
+ height: 3.5rem;
79
+ }
80
+ `;
81
+ __decorateClass([
82
+ property({ type: String, reflect: true })
83
+ ], DaikinLoading.prototype, "size", 2);
84
+ __decorateClass([
85
+ property({ type: Boolean, reflect: true })
86
+ ], DaikinLoading.prototype, "background", 2);
87
+ DaikinLoading = __decorateClass([
88
+ customElement("daikin-loading")
89
+ ], DaikinLoading);
90
+ export {
91
+ DaikinLoading
92
+ };
@@ -0,0 +1 @@
1
+ export * from "./daikin-loading.js";
@@ -0,0 +1,4 @@
1
+ import { DaikinLoading } from "./daikin-loading.js";
2
+ export {
3
+ DaikinLoading
4
+ };
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import { DDSElement } from "../../base/index.js";
2
2
  /**
3
3
  * The pagination component is used to navigate through a list of items that are divided into multiple pages.
4
4
  *
@@ -6,11 +6,15 @@ import { LitElement } from 'lit';
6
6
  *
7
7
  * @example
8
8
  *
9
+ * ```js
10
+ * import "@daikin-oss/design-system-web-components/components/pagination/index.js";
11
+ * ```
12
+ *
9
13
  * ```html
10
14
  * <daikin-pagination window="5" total="20" current="3"></daikin-pagination>
11
15
  * ```
12
16
  */
13
- export declare class DaikinPagination extends LitElement {
17
+ export declare class DaikinPagination extends DDSElement {
14
18
  static readonly styles: import('lit').CSSResult;
15
19
  /**
16
20
  * The current page number, starting at 1.
@@ -1,8 +1,11 @@
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
4
  import { ifDefined } from "lit/directives/if-defined.js";
5
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";
6
9
  import tailwindStyles from "../../tailwind.css.js";
7
10
  import { calculatePagination } from "./pagination-utils.js";
8
11
  var __defProp = Object.defineProperty;
@@ -25,13 +28,15 @@ const cvaPageButton = cva(
25
28
  "justify-center",
26
29
  "min-w-12",
27
30
  "min-h-12",
31
+ "p-1",
28
32
  "font-daikinSerif",
29
33
  "text-base",
30
34
  "not-italic",
31
35
  "leading-6",
36
+ "bg-clip-content",
32
37
  "focus-visible:outline",
33
38
  "focus-visible:outline-2",
34
- "focus-visible:outline-offset-1",
39
+ "focus-visible:outline-offset-[-2px]",
35
40
  "focus-visible:outline-ddt-color-common-border-focus"
36
41
  ],
37
42
  {
@@ -41,22 +46,22 @@ const cvaPageButton = cva(
41
46
  "text-ddt-color-common-brand-default",
42
47
  "focus-visible:text-ddt-color-common-brand-default",
43
48
  "font-bold",
44
- "hover:text-ddt-color-common-border-focus",
45
- "hover:bg-ddt-color-common-surface-selected-default",
49
+ "hover:text-ddt-color-common-brand-hover",
50
+ "hover:bg-ddt-color-common-surface-brand-hover",
46
51
  "active:text-ddt-color-common-brand-press",
47
- "active:bg-ddt-color-common-surface-selected-press",
52
+ "active:bg-ddt-color-common-surface-brand-press",
48
53
  "after:bg-ddt-color-common-brand-default",
49
54
  "after:content-['']",
50
55
  "after:h-1",
51
56
  "after:absolute",
52
- "after:inset-0",
57
+ "after:inset-1",
53
58
  "after:top-auto"
54
59
  ],
55
60
  false: [
56
61
  "font-normal",
57
62
  "text-ddt-color-common-neutral-default",
58
63
  "active:bg-ddt-color-common-surface-neutral-press",
59
- "active:text-ddt-color-common-text-primary",
64
+ "active:text-ddt-color-common-neutral-press",
60
65
  "hover:bg-ddt-color-common-surface-neutral-hover",
61
66
  "hover:text-ddt-color-common-neutral-hover"
62
67
  ]
@@ -101,10 +106,10 @@ const cvaChevronButton = cva([
101
106
  "disabled:!text-ddt-color-common-disabled",
102
107
  "focus-visible:outline",
103
108
  "focus-visible:outline-2",
104
- "focus-visible:outline-offset-1",
109
+ "focus-visible:outline-offset-[-2px]",
105
110
  "focus-visible:outline-ddt-color-common-border-focus"
106
111
  ]);
107
- let DaikinPagination = class extends LitElement {
112
+ let DaikinPagination = class extends DDSElement {
108
113
  constructor() {
109
114
  super(...arguments);
110
115
  this.current = 1;
@@ -132,7 +137,11 @@ let DaikinPagination = class extends LitElement {
132
137
  this.window
133
138
  );
134
139
  return html`
135
- <div aria-label="Pagination" class="inline-flex gap-1">
140
+ <div
141
+ aria-label="Pagination"
142
+ role="navigation"
143
+ class="inline-flex flex-wrap"
144
+ >
136
145
  <button
137
146
  class=${cvaChevron}
138
147
  type="button"
@@ -207,7 +216,7 @@ __decorateClass([
207
216
  property({ type: Number, reflect: true })
208
217
  ], DaikinPagination.prototype, "window", 2);
209
218
  DaikinPagination = __decorateClass([
210
- customElement("daikin-pagination")
219
+ ddsElement("daikin-pagination")
211
220
  ], DaikinPagination);
212
221
  export {
213
222
  DaikinPagination
@@ -1,4 +1,5 @@
1
- import { LitElement, PropertyValues } from 'lit';
1
+ import { PropertyValues } from 'lit';
2
+ import { DDSElement } from "../../base/index.js";
2
3
  import { MergeVariantProps } from "../../type-utils.js";
3
4
  declare const cvaBar: (props?: ({
4
5
  variant?: "error" | "indeterminate" | "inprogress" | "completed" | null | undefined;
@@ -33,7 +34,7 @@ type ProgressBarVariantProps = MergeVariantProps<typeof cvaBar | typeof cvaHelpe
33
34
  * </daikin-progress-bar>
34
35
  * ```
35
36
  */
36
- export declare class DaikinProgressBar extends LitElement {
37
+ export declare class DaikinProgressBar extends DDSElement {
37
38
  static readonly styles: import('lit').CSSResult;
38
39
  /**
39
40
  * Variant of the progress bar.
@@ -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;
@@ -15,7 +18,7 @@ var __decorateClass = (decorators, target, key, kind) => {
15
18
  const cvaBar = cva(
16
19
  [
17
20
  "w-full",
18
- "bg-ddt-color-common-disabled",
21
+ "bg-ddt-color-common-border-empty",
19
22
  "overflow-hidden",
20
23
  "relative",
21
24
  "after:block",
@@ -51,7 +54,7 @@ const cvaBarContainer = cva(
51
54
  "justify-between",
52
55
  "items-center",
53
56
  "text-ddt-color-common-text-primary",
54
- "leading-5",
57
+ "leading-[130%]",
55
58
  "font-bold"
56
59
  ],
57
60
  {
@@ -60,12 +63,14 @@ const cvaBarContainer = cva(
60
63
  inprogress: [],
61
64
  completed: [
62
65
  "after:size-4",
66
+ "after:flex-none",
63
67
  "after:bg-ddt-color-common-success",
64
68
  "after:i-daikin-status-positive"
65
69
  ],
66
70
  indeterminate: [],
67
71
  error: [
68
72
  "after:size-4",
73
+ "after:flex-none",
69
74
  "after:text-ddt-color-common-danger-default",
70
75
  "after:i-daikin-status-error"
71
76
  ]
@@ -73,7 +78,7 @@ const cvaBarContainer = cva(
73
78
  }
74
79
  }
75
80
  );
76
- const cvaHelper = cva(["text-sm"], {
81
+ const cvaHelper = cva(["text-sm", "leading-[130%]"], {
77
82
  variants: {
78
83
  variant: {
79
84
  inprogress: ["text-ddt-color-common-text-primary"],
@@ -87,7 +92,7 @@ const cvaHelper = cva(["text-sm"], {
87
92
  }
88
93
  }
89
94
  });
90
- let DaikinProgressBar = class extends LitElement {
95
+ let DaikinProgressBar = class extends DDSElement {
91
96
  constructor() {
92
97
  super(...arguments);
93
98
  this.variant = "inprogress";
@@ -180,7 +185,7 @@ __decorateClass([
180
185
  property({ type: String })
181
186
  ], DaikinProgressBar.prototype, "helper", 2);
182
187
  DaikinProgressBar = __decorateClass([
183
- customElement("daikin-progress-bar")
188
+ ddsElement("daikin-progress-bar")
184
189
  ], DaikinProgressBar);
185
190
  export {
186
191
  DaikinProgressBar
@@ -1,4 +1,5 @@
1
- import { LitElement, PropertyValues } from 'lit';
1
+ import { PropertyValues } from 'lit';
2
+ import { DDSElement } from "../../base/index.js";
2
3
  /**
3
4
  * The progress indicator is used to let the user know where they are in the task list.
4
5
  *
@@ -9,6 +10,11 @@ import { LitElement, PropertyValues } from 'lit';
9
10
  *
10
11
  * @example
11
12
  *
13
+ * ```js
14
+ * import "@daikin-oss/design-system-web-components/components/progress-indicator/index.js";
15
+ * import "@daikin-oss/design-system-web-components/components/progress-indicator-item/index.js";
16
+ * ```
17
+ *
12
18
  * ```html
13
19
  * <daikin-progress-indicator>
14
20
  * <daikin-progress-indicator-item state="unfinished">
@@ -26,14 +32,15 @@ import { LitElement, PropertyValues } from 'lit';
26
32
  * </daikin-progress-indicator>
27
33
  * ```
28
34
  */
29
- export declare class DaikinProgressIndicator extends LitElement {
35
+ export declare class DaikinProgressIndicator extends DDSElement {
30
36
  static readonly styles: import('lit').CSSResult;
31
37
  /**
32
- * Specify the index number of the current location in the progress indicator.
38
+ * Specify the index of the step that is currently in progress, starting from 0. This will automatically set the status of each step.
39
+ * To mark all steps as upcoming, specify a number less or equal to -1. To mark all steps as completed, specify a number greater than or equal to the number of steps.
33
40
  */
34
- currentItem: number | null;
41
+ currentItem: number;
35
42
  private readonly _items;
36
- private _setCurrentItem;
43
+ private _updateSteps;
37
44
  private _handleSlotChange;
38
45
  render(): import('lit-html').TemplateResult<1>;
39
46
  protected firstUpdated(): void;
@@ -1,5 +1,8 @@
1
- import { css, unsafeCSS, LitElement, html } from "lit";
2
- import { property, queryAssignedElements, customElement } from "lit/decorators.js";
1
+ import { css, unsafeCSS, html } from "lit";
2
+ import { property, queryAssignedElements } from "lit/decorators.js";
3
+ import { DDSElement } from "../../base/dds-element.js";
4
+ import { ddsElement } from "../../base/decorators.js";
5
+ import "../../base/define.js";
3
6
  import tailwindStyles from "../../tailwind.css.js";
4
7
  var __defProp = Object.defineProperty;
5
8
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -11,36 +14,19 @@ var __decorateClass = (decorators, target, key, kind) => {
11
14
  if (kind && result) __defProp(target, key, result);
12
15
  return result;
13
16
  };
14
- let DaikinProgressIndicator = class extends LitElement {
17
+ let DaikinProgressIndicator = class extends DDSElement {
15
18
  constructor() {
16
19
  super(...arguments);
17
- this.currentItem = null;
20
+ this.currentItem = 0;
18
21
  }
19
- _setCurrentItem() {
22
+ _updateSteps() {
20
23
  const items = this._items;
21
- if (!items || this.currentItem === null) {
22
- return;
23
- }
24
- if (items.length - 1 < this.currentItem) {
25
- {
26
- console.warn(
27
- `Invalid 'current-item' property: ${this.currentItem}. The number of actual 'daikin-progress-indicator-item's exceeds the number of items.`
28
- );
29
- }
30
- return;
31
- }
32
- if (this.currentItem < 0) {
33
- {
34
- console.warn(
35
- `Invalid 'current-item' property: ${this.currentItem}. Negative values cannot be set.`
36
- );
37
- }
38
- return;
39
- }
40
- items.forEach((item, i) => item.current = this.currentItem === i);
24
+ items.forEach((item, i) => {
25
+ item.status = i < this.currentItem ? "finished" : i === this.currentItem ? "inprogress" : "unfinished";
26
+ });
41
27
  }
42
28
  _handleSlotChange() {
43
- this._setCurrentItem();
29
+ this._updateSteps();
44
30
  }
45
31
  render() {
46
32
  return html`<div
@@ -51,11 +37,11 @@ let DaikinProgressIndicator = class extends LitElement {
51
37
  </div>`;
52
38
  }
53
39
  firstUpdated() {
54
- this._setCurrentItem();
40
+ this._updateSteps();
55
41
  }
56
42
  updated(changedProperties) {
57
43
  if (changedProperties.has("currentItem")) {
58
- this._setCurrentItem();
44
+ this._updateSteps();
59
45
  }
60
46
  }
61
47
  };
@@ -74,7 +60,7 @@ __decorateClass([
74
60
  queryAssignedElements({ selector: "daikin-progress-indicator-item" })
75
61
  ], DaikinProgressIndicator.prototype, "_items", 2);
76
62
  DaikinProgressIndicator = __decorateClass([
77
- customElement("daikin-progress-indicator")
63
+ ddsElement("daikin-progress-indicator")
78
64
  ], DaikinProgressIndicator);
79
65
  export {
80
66
  DaikinProgressIndicator
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import { DDSElement } from "../../base/index.js";
2
2
  import { MergeVariantProps } from "../../type-utils.js";
3
3
  declare const cvaContainer: (props?: ({
4
4
  status?: "inprogress" | "unfinished" | "finished" | null | undefined;
@@ -17,6 +17,10 @@ type ProgressIndicatorItemVariantProps = MergeVariantProps<typeof cvaContainer>;
17
17
  *
18
18
  * @example
19
19
  *
20
+ * ```js
21
+ * import "@daikin-oss/design-system-web-components/components/progress-indicator-item/index.js";
22
+ * ```
23
+ *
20
24
  * ```html
21
25
  * <daikin-progress-indicator-item state="unfinished">
22
26
  * Progress indicator label
@@ -24,13 +28,13 @@ type ProgressIndicatorItemVariantProps = MergeVariantProps<typeof cvaContainer>;
24
28
  * </daikin-progress-indicator-item>
25
29
  * ```
26
30
  */
27
- export declare class DaikinProgressIndicatorItem extends LitElement {
31
+ export declare class DaikinProgressIndicatorItem extends DDSElement {
28
32
  static readonly styles: import('lit').CSSResult;
29
33
  /**
30
- * Status of the progress indicator item
34
+ * Status of the progress indicator item.
35
+ * Controlled by `daikin-progress-indicator`.
31
36
  */
32
37
  status: ProgressIndicatorItemVariantProps["status"];
33
- current: boolean;
34
38
  render(): import('lit-html').TemplateResult<1>;
35
39
  }
36
40
  declare global {
@@ -1,7 +1,10 @@
1
1
  import { cva } from "class-variance-authority";
2
- import { css, unsafeCSS, LitElement, html, nothing } from "lit";
3
- import { property, customElement } from "lit/decorators.js";
2
+ import { css, unsafeCSS, html, nothing } from "lit";
3
+ import { property } 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
  import "../icon/daikin-icon.js";
7
10
  var __defProp = Object.defineProperty;
@@ -17,48 +20,47 @@ var __decorateClass = (decorators, target, key, kind) => {
17
20
  const cvaContainer = cva(
18
21
  [
19
22
  "flex",
20
- "flex-col",
21
- "gap-1",
23
+ "gap-2",
22
24
  "w-full",
23
25
  "text-ddt-color-common-text-primary",
24
26
  "pt-2",
25
27
  "border-t-[0.25rem]",
26
- "font-daikinSerif",
27
- "leading-[130%]"
28
+ "font-daikinSerif"
28
29
  ],
29
30
  {
30
31
  variants: {
31
32
  status: {
32
- unfinished: ["border-ddt-color-common-disabled"],
33
+ unfinished: ["border-ddt-color-common-border-empty"],
33
34
  inprogress: ["border-ddt-color-common-brand-default"],
34
35
  finished: ["border-ddt-color-common-brand-default"]
35
36
  }
36
37
  }
37
38
  }
38
39
  );
39
- let DaikinProgressIndicatorItem = class extends LitElement {
40
+ let DaikinProgressIndicatorItem = class extends DDSElement {
40
41
  constructor() {
41
42
  super(...arguments);
42
43
  this.status = "unfinished";
43
- this.current = false;
44
44
  }
45
45
  render() {
46
46
  return html`<div
47
47
  class=${cvaContainer({ status: this.status })}
48
48
  role="listitem"
49
- aria-current=${ifDefined(this.current ? "step" : void 0)}
49
+ aria-current=${ifDefined(
50
+ this.status === "inprogress" ? "step" : void 0
51
+ )}
50
52
  >
51
- <div class="flex justify-between gap-1 font-bold">
52
- <slot></slot>
53
- ${this.status === "finished" ? html`
54
- <span
55
- role="img"
56
- class="flex-none size-4 i-daikin-status-positive text-ddt-color-common-brand-default"
57
- aria-label="Completed"
58
- ></span>
59
- ` : nothing}
53
+ <div class="flex flex-col gap-1 w-full">
54
+ <slot class="font-bold leading-[130%]"></slot>
55
+ <slot name="description" class="text-sm leading-[130%]"></slot>
60
56
  </div>
61
- <slot name="description" class="text-sm"></slot>
57
+ ${this.status === "finished" ? html`
58
+ <span
59
+ role="img"
60
+ class="flex-none size-4 i-daikin-status-positive text-ddt-color-common-brand-default"
61
+ aria-label="Completed"
62
+ ></span>
63
+ ` : nothing}
62
64
  </div>`;
63
65
  }
64
66
  };
@@ -74,11 +76,8 @@ DaikinProgressIndicatorItem.styles = css`
74
76
  __decorateClass([
75
77
  property({ type: String, reflect: true })
76
78
  ], DaikinProgressIndicatorItem.prototype, "status", 2);
77
- __decorateClass([
78
- property({ type: Boolean, reflect: true })
79
- ], DaikinProgressIndicatorItem.prototype, "current", 2);
80
79
  DaikinProgressIndicatorItem = __decorateClass([
81
- customElement("daikin-progress-indicator-item")
80
+ ddsElement("daikin-progress-indicator-item")
82
81
  ], DaikinProgressIndicatorItem);
83
82
  export {
84
83
  DaikinProgressIndicatorItem
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import { DDSElement } from "../../base/index.js";
2
2
  /**
3
3
  * The radio button component is a UI element that allows users to select one options from a set of choices.
4
4
  * It functions similarly to the HTML `<input type="radio">` tag. \
@@ -9,6 +9,8 @@ import { LitElement } from 'lit';
9
9
  *
10
10
  * @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="radio">` element.
11
11
  *
12
+ * @slot - A slot for the radio label content.
13
+ *
12
14
  * @example
13
15
  *
14
16
  * ```js
@@ -19,7 +21,7 @@ import { LitElement } from 'lit';
19
21
  * <daikin-radio name="name" value="value" label="Radio button label"></daikin-radio>
20
22
  * ```
21
23
  */
22
- export declare class DaikinRadio extends LitElement {
24
+ export declare class DaikinRadio extends DDSElement {
23
25
  static readonly styles: import('lit').CSSResult;
24
26
  /**
25
27
  * The form name, submitted as a name/value pair when submitting the form.
@@ -47,24 +49,32 @@ export declare class DaikinRadio extends LitElement {
47
49
  * Specify the radio button disabled state.
48
50
  */
49
51
  disabled: boolean;
52
+ /**
53
+ * Specify the radio disabled state controlled by the parent component.
54
+ * Controlled by `daikin-radio-group`.
55
+ *
56
+ * @private
57
+ */
58
+ disabledByParent: boolean;
50
59
  /**
51
60
  * Whether the radio button can be focused.
52
61
  * Automatically set by `daikin-radio-group` component.
53
62
  */
54
63
  skipTab: boolean;
55
- static readonly formAssociated = true;
56
64
  private _radio;
57
- /**
58
- * Focuses on the inner radio.
59
- * @param options focus options
60
- */
61
- focus(options?: FocusOptions): void;
65
+ static readonly formAssociated = true;
66
+ private get _labelHidden();
62
67
  private _internals;
63
68
  private _updateFormValue;
64
69
  private _handleClick;
65
70
  private _handleChange;
66
71
  render(): import('lit-html').TemplateResult<1>;
67
72
  updated(changedProperties: Map<string, unknown>): void;
73
+ /**
74
+ * Focuses on the inner radio.
75
+ * @param options focus options
76
+ */
77
+ focus(options?: FocusOptions): void;
68
78
  }
69
79
  declare global {
70
80
  interface HTMLElementTagNameMap {