@daikin-oss/design-system-web-components 0.7.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (472) hide show
  1. package/CHANGELOG.md +109 -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/breadcrumb/daikin-breadcrumb.cjs +8 -5
  16. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
  17. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
  18. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
  19. package/dist/cjs/components/button/daikin-button.cjs +20 -8
  20. package/dist/cjs/components/button/daikin-button.d.cts +6 -3
  21. package/dist/cjs/components/card/daikin-card.cjs +11 -7
  22. package/dist/cjs/components/card/daikin-card.d.cts +8 -2
  23. package/dist/cjs/components/card-footer/daikin-card-footer.cjs +9 -9
  24. package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +6 -2
  25. package/dist/cjs/components/card-header/daikin-card-header.cjs +10 -10
  26. package/dist/cjs/components/card-header/daikin-card-header.d.cts +6 -2
  27. package/dist/cjs/components/carousel/daikin-carousel.cjs +217 -0
  28. package/dist/cjs/components/carousel/daikin-carousel.d.cts +56 -0
  29. package/dist/cjs/components/carousel/index.cjs +7 -0
  30. package/dist/cjs/components/carousel/index.d.cts +1 -0
  31. package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +80 -0
  32. package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +50 -0
  33. package/dist/cjs/components/carousel-item/index.cjs +7 -0
  34. package/dist/cjs/components/carousel-item/index.d.cts +1 -0
  35. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +34 -16
  36. package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +4 -2
  37. package/dist/cjs/components/dropdown/daikin-dropdown.cjs +16 -5
  38. package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +16 -2
  39. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +12 -5
  40. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
  41. package/dist/cjs/components/icon/daikin-icon.cjs +8 -5
  42. package/dist/cjs/components/icon/daikin-icon.d.cts +2 -2
  43. package/dist/cjs/components/icon/icons.json.cjs +1 -70
  44. package/dist/cjs/components/icon/icons.json.d.cts +0 -8
  45. package/dist/cjs/components/icon-button/daikin-icon-button.cjs +8 -5
  46. package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
  47. package/dist/cjs/components/index.cjs +25 -5
  48. package/dist/cjs/components/index.d.cts +5 -1
  49. package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +92 -0
  50. package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +55 -0
  51. package/dist/cjs/components/inline-notification/index.cjs +7 -0
  52. package/dist/cjs/components/inline-notification/index.d.cts +1 -0
  53. package/dist/cjs/components/input-group/daikin-input-group.cjs +12 -9
  54. package/dist/cjs/components/input-group/daikin-input-group.d.cts +15 -7
  55. package/dist/cjs/components/link/daikin-link.cjs +9 -6
  56. package/dist/cjs/components/link/daikin-link.d.cts +2 -2
  57. package/dist/cjs/components/list/daikin-list.cjs +9 -9
  58. package/dist/cjs/components/list/daikin-list.d.cts +7 -2
  59. package/dist/cjs/components/list-item/daikin-list-item.cjs +8 -5
  60. package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
  61. package/dist/cjs/components/pagination/daikin-pagination.cjs +22 -13
  62. package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
  63. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +13 -8
  64. package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
  65. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +16 -20
  66. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
  67. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
  68. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
  69. package/dist/cjs/components/radio/daikin-radio.cjs +45 -23
  70. package/dist/cjs/components/radio/daikin-radio.d.cts +18 -8
  71. package/dist/cjs/components/radio-group/daikin-radio-group.cjs +31 -11
  72. package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +20 -14
  73. package/dist/cjs/components/select/daikin-select.cjs +15 -6
  74. package/dist/cjs/components/select/daikin-select.d.cts +11 -2
  75. package/dist/cjs/components/tab/daikin-tab.cjs +25 -10
  76. package/dist/cjs/components/tab/daikin-tab.d.cts +7 -2
  77. package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +9 -7
  78. package/dist/cjs/components/tab-panels/daikin-tab-panels.d.cts +2 -2
  79. package/dist/cjs/components/table/daikin-table.cjs +9 -6
  80. package/dist/cjs/components/table/daikin-table.d.cts +9 -2
  81. package/dist/cjs/components/table-cell/daikin-table-cell.cjs +8 -5
  82. package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +6 -2
  83. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
  84. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
  85. package/dist/cjs/components/tabs/daikin-tabs.cjs +25 -10
  86. package/dist/cjs/components/tabs/daikin-tabs.d.cts +8 -2
  87. package/dist/cjs/components/text-area/daikin-text-area.cjs +16 -7
  88. package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
  89. package/dist/cjs/components/text-field/daikin-text-field.cjs +16 -7
  90. package/dist/cjs/components/text-field/daikin-text-field.d.cts +7 -2
  91. package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +94 -0
  92. package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +69 -0
  93. package/dist/cjs/components/toast-notification/index.cjs +7 -0
  94. package/dist/cjs/components/toast-notification/index.d.cts +1 -0
  95. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
  96. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
  97. package/dist/cjs/components/toast-notification-manager/index.cjs +7 -0
  98. package/dist/cjs/components/toast-notification-manager/index.d.cts +1 -0
  99. package/dist/cjs/components/toggle/daikin-toggle.cjs +8 -5
  100. package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
  101. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +42 -30
  102. package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
  103. package/dist/cjs/components/tree/daikin-tree.cjs +36 -37
  104. package/dist/cjs/components/tree/daikin-tree.d.cts +13 -14
  105. package/dist/cjs/components/tree-item/daikin-tree-item.cjs +22 -18
  106. package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +9 -9
  107. package/dist/cjs/components/tree-section/daikin-tree-section.cjs +26 -41
  108. package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +10 -20
  109. package/dist/cjs/controllers/click-outside.d.cts +1 -1
  110. package/dist/cjs/index.cjs +25 -5
  111. package/dist/cjs/tailwind.css.cjs +1 -1
  112. package/dist/cjs/utils/notification-common.cjs +121 -0
  113. package/dist/cjs/utils/notification-common.d.cts +19 -0
  114. package/dist/cjs-dev/base/dds-element.cjs +8 -0
  115. package/dist/cjs-dev/base/dds-element.d.cts +4 -0
  116. package/dist/cjs-dev/base/decorators.cjs +13 -0
  117. package/dist/cjs-dev/base/decorators.d.cts +2 -0
  118. package/dist/cjs-dev/base/define.cjs +18 -0
  119. package/dist/cjs-dev/base/define.d.cts +1 -0
  120. package/dist/cjs-dev/base/index.cjs +8 -0
  121. package/dist/cjs-dev/base/index.d.cts +3 -0
  122. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
  123. package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
  124. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +37 -77
  125. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
  126. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
  127. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
  128. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
  129. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
  130. package/dist/cjs-dev/components/button/daikin-button.cjs +20 -8
  131. package/dist/cjs-dev/components/button/daikin-button.d.cts +6 -3
  132. package/dist/cjs-dev/components/card/daikin-card.cjs +11 -7
  133. package/dist/cjs-dev/components/card/daikin-card.d.cts +8 -2
  134. package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +9 -9
  135. package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +6 -2
  136. package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +10 -10
  137. package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +6 -2
  138. package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +227 -0
  139. package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +56 -0
  140. package/dist/cjs-dev/components/carousel/index.cjs +7 -0
  141. package/dist/cjs-dev/components/carousel/index.d.cts +1 -0
  142. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +80 -0
  143. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +50 -0
  144. package/dist/cjs-dev/components/carousel-item/index.cjs +7 -0
  145. package/dist/cjs-dev/components/carousel-item/index.d.cts +1 -0
  146. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +34 -16
  147. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +4 -2
  148. package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +16 -5
  149. package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +16 -2
  150. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +12 -5
  151. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
  152. package/dist/cjs-dev/components/icon/daikin-icon.cjs +8 -5
  153. package/dist/cjs-dev/components/icon/daikin-icon.d.cts +2 -2
  154. package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
  155. package/dist/cjs-dev/components/icon/icons.json.d.cts +0 -8
  156. package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +8 -5
  157. package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
  158. package/dist/cjs-dev/components/index.cjs +25 -5
  159. package/dist/cjs-dev/components/index.d.cts +5 -1
  160. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +92 -0
  161. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +55 -0
  162. package/dist/cjs-dev/components/inline-notification/index.cjs +7 -0
  163. package/dist/cjs-dev/components/inline-notification/index.d.cts +1 -0
  164. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +12 -9
  165. package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +15 -7
  166. package/dist/cjs-dev/components/link/daikin-link.cjs +9 -6
  167. package/dist/cjs-dev/components/link/daikin-link.d.cts +2 -2
  168. package/dist/cjs-dev/components/list/daikin-list.cjs +9 -9
  169. package/dist/cjs-dev/components/list/daikin-list.d.cts +7 -2
  170. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +8 -5
  171. package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
  172. package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +22 -13
  173. package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
  174. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +13 -8
  175. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +3 -2
  176. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +16 -30
  177. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
  178. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
  179. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
  180. package/dist/cjs-dev/components/radio/daikin-radio.cjs +45 -23
  181. package/dist/cjs-dev/components/radio/daikin-radio.d.cts +18 -8
  182. package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +31 -11
  183. package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +20 -14
  184. package/dist/cjs-dev/components/select/daikin-select.cjs +15 -6
  185. package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
  186. package/dist/cjs-dev/components/tab/daikin-tab.cjs +25 -10
  187. package/dist/cjs-dev/components/tab/daikin-tab.d.cts +7 -2
  188. package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +9 -7
  189. package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.cts +2 -2
  190. package/dist/cjs-dev/components/table/daikin-table.cjs +9 -6
  191. package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
  192. package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +8 -5
  193. package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +6 -2
  194. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
  195. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
  196. package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +25 -10
  197. package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +8 -2
  198. package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +16 -7
  199. package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +7 -2
  200. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +16 -7
  201. package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +7 -2
  202. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +94 -0
  203. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +69 -0
  204. package/dist/cjs-dev/components/toast-notification/index.cjs +7 -0
  205. package/dist/cjs-dev/components/toast-notification/index.d.cts +1 -0
  206. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
  207. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
  208. package/dist/cjs-dev/components/toast-notification-manager/index.cjs +7 -0
  209. package/dist/cjs-dev/components/toast-notification-manager/index.d.cts +1 -0
  210. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +8 -5
  211. package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
  212. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +42 -30
  213. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
  214. package/dist/cjs-dev/components/tree/daikin-tree.cjs +36 -37
  215. package/dist/cjs-dev/components/tree/daikin-tree.d.cts +13 -14
  216. package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +22 -18
  217. package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +9 -9
  218. package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +26 -41
  219. package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +10 -20
  220. package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
  221. package/dist/cjs-dev/index.cjs +25 -5
  222. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  223. package/dist/cjs-dev/utils/notification-common.cjs +124 -0
  224. package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
  225. package/dist/es/base/dds-element.d.ts +4 -0
  226. package/dist/es/base/dds-element.js +8 -0
  227. package/dist/es/base/decorators.d.ts +2 -0
  228. package/dist/es/base/decorators.js +13 -0
  229. package/dist/es/base/define.d.ts +1 -0
  230. package/dist/es/base/define.js +18 -0
  231. package/dist/es/base/index.d.ts +3 -0
  232. package/dist/es/base/index.js +8 -0
  233. package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
  234. package/dist/es/components/accordion/daikin-accordion.js +38 -5
  235. package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
  236. package/dist/es/components/accordion-item/daikin-accordion-item.js +36 -76
  237. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
  238. package/dist/es/components/breadcrumb/daikin-breadcrumb.js +7 -4
  239. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
  240. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
  241. package/dist/es/components/button/daikin-button.d.ts +6 -3
  242. package/dist/es/components/button/daikin-button.js +19 -7
  243. package/dist/es/components/card/daikin-card.d.ts +8 -2
  244. package/dist/es/components/card/daikin-card.js +10 -6
  245. package/dist/es/components/card-footer/daikin-card-footer.d.ts +6 -2
  246. package/dist/es/components/card-footer/daikin-card-footer.js +7 -7
  247. package/dist/es/components/card-header/daikin-card-header.d.ts +6 -2
  248. package/dist/es/components/card-header/daikin-card-header.js +8 -8
  249. package/dist/es/components/carousel/daikin-carousel.d.ts +56 -0
  250. package/dist/es/components/carousel/daikin-carousel.js +218 -0
  251. package/dist/es/components/carousel/index.d.ts +1 -0
  252. package/dist/es/components/carousel/index.js +4 -0
  253. package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +50 -0
  254. package/dist/es/components/carousel-item/daikin-carousel-item.js +81 -0
  255. package/dist/es/components/carousel-item/index.d.ts +1 -0
  256. package/dist/es/components/carousel-item/index.js +4 -0
  257. package/dist/es/components/checkbox/daikin-checkbox.d.ts +4 -2
  258. package/dist/es/components/checkbox/daikin-checkbox.js +33 -15
  259. package/dist/es/components/dropdown/daikin-dropdown.d.ts +16 -2
  260. package/dist/es/components/dropdown/daikin-dropdown.js +15 -4
  261. package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
  262. package/dist/es/components/dropdown-item/daikin-dropdown-item.js +11 -4
  263. package/dist/es/components/icon/daikin-icon.d.ts +2 -2
  264. package/dist/es/components/icon/daikin-icon.js +7 -4
  265. package/dist/es/components/icon/icons.json.d.ts +0 -8
  266. package/dist/es/components/icon/icons.json.js +1 -70
  267. package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
  268. package/dist/es/components/icon-button/daikin-icon-button.js +7 -4
  269. package/dist/es/components/index.d.ts +5 -1
  270. package/dist/es/components/index.js +10 -2
  271. package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +55 -0
  272. package/dist/es/components/inline-notification/daikin-inline-notification.js +93 -0
  273. package/dist/es/components/inline-notification/index.d.ts +1 -0
  274. package/dist/es/components/inline-notification/index.js +4 -0
  275. package/dist/es/components/input-group/daikin-input-group.d.ts +15 -7
  276. package/dist/es/components/input-group/daikin-input-group.js +11 -8
  277. package/dist/es/components/link/daikin-link.d.ts +2 -2
  278. package/dist/es/components/link/daikin-link.js +8 -5
  279. package/dist/es/components/list/daikin-list.d.ts +7 -2
  280. package/dist/es/components/list/daikin-list.js +7 -7
  281. package/dist/es/components/list-item/daikin-list-item.d.ts +6 -2
  282. package/dist/es/components/list-item/daikin-list-item.js +7 -4
  283. package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
  284. package/dist/es/components/pagination/daikin-pagination.js +21 -12
  285. package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
  286. package/dist/es/components/progress-bar/daikin-progress-bar.js +12 -7
  287. package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
  288. package/dist/es/components/progress-indicator/daikin-progress-indicator.js +15 -19
  289. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
  290. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
  291. package/dist/es/components/radio/daikin-radio.d.ts +18 -8
  292. package/dist/es/components/radio/daikin-radio.js +44 -22
  293. package/dist/es/components/radio-group/daikin-radio-group.d.ts +20 -14
  294. package/dist/es/components/radio-group/daikin-radio-group.js +30 -10
  295. package/dist/es/components/select/daikin-select.d.ts +11 -2
  296. package/dist/es/components/select/daikin-select.js +14 -5
  297. package/dist/es/components/tab/daikin-tab.d.ts +7 -2
  298. package/dist/es/components/tab/daikin-tab.js +24 -9
  299. package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +2 -2
  300. package/dist/es/components/tab-panels/daikin-tab-panels.js +8 -6
  301. package/dist/es/components/table/daikin-table.d.ts +9 -2
  302. package/dist/es/components/table/daikin-table.js +8 -5
  303. package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
  304. package/dist/es/components/table-cell/daikin-table-cell.js +7 -4
  305. package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
  306. package/dist/es/components/table-header-cell/daikin-table-header-cell.js +7 -4
  307. package/dist/es/components/tabs/daikin-tabs.d.ts +8 -2
  308. package/dist/es/components/tabs/daikin-tabs.js +24 -9
  309. package/dist/es/components/text-area/daikin-text-area.d.ts +7 -2
  310. package/dist/es/components/text-area/daikin-text-area.js +15 -6
  311. package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
  312. package/dist/es/components/text-field/daikin-text-field.js +15 -6
  313. package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +69 -0
  314. package/dist/es/components/toast-notification/daikin-toast-notification.js +95 -0
  315. package/dist/es/components/toast-notification/index.d.ts +1 -0
  316. package/dist/es/components/toast-notification/index.js +4 -0
  317. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
  318. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
  319. package/dist/es/components/toast-notification-manager/index.d.ts +1 -0
  320. package/dist/es/components/toast-notification-manager/index.js +4 -0
  321. package/dist/es/components/toggle/daikin-toggle.d.ts +3 -2
  322. package/dist/es/components/toggle/daikin-toggle.js +7 -4
  323. package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
  324. package/dist/es/components/tooltip/daikin-tooltip.js +41 -29
  325. package/dist/es/components/tree/daikin-tree.d.ts +13 -14
  326. package/dist/es/components/tree/daikin-tree.js +35 -36
  327. package/dist/es/components/tree-item/daikin-tree-item.d.ts +9 -9
  328. package/dist/es/components/tree-item/daikin-tree-item.js +21 -17
  329. package/dist/es/components/tree-section/daikin-tree-section.d.ts +10 -20
  330. package/dist/es/components/tree-section/daikin-tree-section.js +25 -40
  331. package/dist/es/controllers/click-outside.d.ts +1 -1
  332. package/dist/es/index.js +10 -2
  333. package/dist/es/tailwind.css.js +1 -1
  334. package/dist/es/utils/notification-common.d.ts +19 -0
  335. package/dist/es/utils/notification-common.js +121 -0
  336. package/dist/es-dev/base/dds-element.d.ts +4 -0
  337. package/dist/es-dev/base/dds-element.js +8 -0
  338. package/dist/es-dev/base/decorators.d.ts +2 -0
  339. package/dist/es-dev/base/decorators.js +13 -0
  340. package/dist/es-dev/base/define.d.ts +1 -0
  341. package/dist/es-dev/base/define.js +18 -0
  342. package/dist/es-dev/base/index.d.ts +3 -0
  343. package/dist/es-dev/base/index.js +8 -0
  344. package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
  345. package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
  346. package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
  347. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +36 -76
  348. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
  349. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +7 -4
  350. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
  351. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
  352. package/dist/es-dev/components/button/daikin-button.d.ts +6 -3
  353. package/dist/es-dev/components/button/daikin-button.js +19 -7
  354. package/dist/es-dev/components/card/daikin-card.d.ts +8 -2
  355. package/dist/es-dev/components/card/daikin-card.js +10 -6
  356. package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +6 -2
  357. package/dist/es-dev/components/card-footer/daikin-card-footer.js +7 -7
  358. package/dist/es-dev/components/card-header/daikin-card-header.d.ts +6 -2
  359. package/dist/es-dev/components/card-header/daikin-card-header.js +8 -8
  360. package/dist/es-dev/components/carousel/daikin-carousel.d.ts +56 -0
  361. package/dist/es-dev/components/carousel/daikin-carousel.js +228 -0
  362. package/dist/es-dev/components/carousel/index.d.ts +1 -0
  363. package/dist/es-dev/components/carousel/index.js +4 -0
  364. package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +50 -0
  365. package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +81 -0
  366. package/dist/es-dev/components/carousel-item/index.d.ts +1 -0
  367. package/dist/es-dev/components/carousel-item/index.js +4 -0
  368. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +4 -2
  369. package/dist/es-dev/components/checkbox/daikin-checkbox.js +33 -15
  370. package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +16 -2
  371. package/dist/es-dev/components/dropdown/daikin-dropdown.js +15 -4
  372. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
  373. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +11 -4
  374. package/dist/es-dev/components/icon/daikin-icon.d.ts +2 -2
  375. package/dist/es-dev/components/icon/daikin-icon.js +7 -4
  376. package/dist/es-dev/components/icon/icons.json.d.ts +0 -8
  377. package/dist/es-dev/components/icon/icons.json.js +1 -70
  378. package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
  379. package/dist/es-dev/components/icon-button/daikin-icon-button.js +7 -4
  380. package/dist/es-dev/components/index.d.ts +5 -1
  381. package/dist/es-dev/components/index.js +10 -2
  382. package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +55 -0
  383. package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +93 -0
  384. package/dist/es-dev/components/inline-notification/index.d.ts +1 -0
  385. package/dist/es-dev/components/inline-notification/index.js +4 -0
  386. package/dist/es-dev/components/input-group/daikin-input-group.d.ts +15 -7
  387. package/dist/es-dev/components/input-group/daikin-input-group.js +11 -8
  388. package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
  389. package/dist/es-dev/components/link/daikin-link.js +8 -5
  390. package/dist/es-dev/components/list/daikin-list.d.ts +7 -2
  391. package/dist/es-dev/components/list/daikin-list.js +7 -7
  392. package/dist/es-dev/components/list-item/daikin-list-item.d.ts +6 -2
  393. package/dist/es-dev/components/list-item/daikin-list-item.js +7 -4
  394. package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
  395. package/dist/es-dev/components/pagination/daikin-pagination.js +21 -12
  396. package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +3 -2
  397. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +12 -7
  398. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
  399. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +15 -29
  400. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
  401. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
  402. package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
  403. package/dist/es-dev/components/radio/daikin-radio.js +44 -22
  404. package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +20 -14
  405. package/dist/es-dev/components/radio-group/daikin-radio-group.js +30 -10
  406. package/dist/es-dev/components/select/daikin-select.d.ts +11 -2
  407. package/dist/es-dev/components/select/daikin-select.js +14 -5
  408. package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
  409. package/dist/es-dev/components/tab/daikin-tab.js +24 -9
  410. package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +2 -2
  411. package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +8 -6
  412. package/dist/es-dev/components/table/daikin-table.d.ts +9 -2
  413. package/dist/es-dev/components/table/daikin-table.js +8 -5
  414. package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +6 -2
  415. package/dist/es-dev/components/table-cell/daikin-table-cell.js +7 -4
  416. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
  417. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +7 -4
  418. package/dist/es-dev/components/tabs/daikin-tabs.d.ts +8 -2
  419. package/dist/es-dev/components/tabs/daikin-tabs.js +24 -9
  420. package/dist/es-dev/components/text-area/daikin-text-area.d.ts +7 -2
  421. package/dist/es-dev/components/text-area/daikin-text-area.js +15 -6
  422. package/dist/es-dev/components/text-field/daikin-text-field.d.ts +7 -2
  423. package/dist/es-dev/components/text-field/daikin-text-field.js +15 -6
  424. package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +69 -0
  425. package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +95 -0
  426. package/dist/es-dev/components/toast-notification/index.d.ts +1 -0
  427. package/dist/es-dev/components/toast-notification/index.js +4 -0
  428. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
  429. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
  430. package/dist/es-dev/components/toast-notification-manager/index.d.ts +1 -0
  431. package/dist/es-dev/components/toast-notification-manager/index.js +4 -0
  432. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -2
  433. package/dist/es-dev/components/toggle/daikin-toggle.js +7 -4
  434. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
  435. package/dist/es-dev/components/tooltip/daikin-tooltip.js +41 -29
  436. package/dist/es-dev/components/tree/daikin-tree.d.ts +13 -14
  437. package/dist/es-dev/components/tree/daikin-tree.js +35 -36
  438. package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +9 -9
  439. package/dist/es-dev/components/tree-item/daikin-tree-item.js +21 -17
  440. package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +10 -20
  441. package/dist/es-dev/components/tree-section/daikin-tree-section.js +25 -40
  442. package/dist/es-dev/controllers/click-outside.d.ts +1 -1
  443. package/dist/es-dev/index.js +10 -2
  444. package/dist/es-dev/tailwind.css.js +1 -1
  445. package/dist/es-dev/utils/notification-common.d.ts +19 -0
  446. package/dist/es-dev/utils/notification-common.js +124 -0
  447. package/icons/checkbox-checked.svg +2 -3
  448. package/icons/status-negative.svg +4 -2
  449. package/icons/status-warning.svg +2 -4
  450. package/package.json +54 -50
  451. package/dist/cjs/components/notification/daikin-notification.cjs +0 -196
  452. package/dist/cjs/components/notification/daikin-notification.d.cts +0 -77
  453. package/dist/cjs/components/notification/index.cjs +0 -7
  454. package/dist/cjs/components/notification/index.d.cts +0 -1
  455. package/dist/cjs/constants/events.cjs +0 -4
  456. package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -196
  457. package/dist/cjs-dev/components/notification/daikin-notification.d.cts +0 -77
  458. package/dist/cjs-dev/components/notification/index.cjs +0 -7
  459. package/dist/cjs-dev/components/notification/index.d.cts +0 -1
  460. package/dist/cjs-dev/constants/events.cjs +0 -4
  461. package/dist/es/components/notification/daikin-notification.d.ts +0 -77
  462. package/dist/es/components/notification/daikin-notification.js +0 -197
  463. package/dist/es/components/notification/index.d.ts +0 -1
  464. package/dist/es/components/notification/index.js +0 -4
  465. package/dist/es/constants/events.js +0 -4
  466. package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
  467. package/dist/es-dev/components/notification/daikin-notification.js +0 -197
  468. package/dist/es-dev/components/notification/index.d.ts +0 -1
  469. package/dist/es-dev/components/notification/index.js +0 -4
  470. package/dist/es-dev/constants/events.js +0 -4
  471. package/icons/arrow-up.svg +0 -3
  472. package/icons/status-success.svg +0 -6
@@ -5,14 +5,17 @@ const lit = require("lit");
5
5
  const decorators_js = require("lit/decorators.js");
6
6
  const ifDefined_js = require("lit/directives/if-defined.js");
7
7
  const repeat_js = require("lit/directives/repeat.js");
8
+ const ddsElement = require("../../base/dds-element.cjs");
9
+ const decorators = require("../../base/decorators.cjs");
10
+ require("../../base/define.cjs");
8
11
  const tailwind = require("../../tailwind.css.cjs");
9
12
  const paginationUtils = require("./pagination-utils.cjs");
10
13
  var __defProp = Object.defineProperty;
11
14
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __decorateClass = (decorators, target, key, kind) => {
15
+ var __decorateClass = (decorators2, target, key, kind) => {
13
16
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
14
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
- if (decorator = decorators[i])
17
+ for (var i = decorators2.length - 1, decorator; i >= 0; i--)
18
+ if (decorator = decorators2[i])
16
19
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
17
20
  if (kind && result) __defProp(target, key, result);
18
21
  return result;
@@ -27,13 +30,15 @@ const cvaPageButton = classVarianceAuthority.cva(
27
30
  "justify-center",
28
31
  "min-w-12",
29
32
  "min-h-12",
33
+ "p-1",
30
34
  "font-daikinSerif",
31
35
  "text-base",
32
36
  "not-italic",
33
37
  "leading-6",
38
+ "bg-clip-content",
34
39
  "focus-visible:outline",
35
40
  "focus-visible:outline-2",
36
- "focus-visible:outline-offset-1",
41
+ "focus-visible:outline-offset-[-2px]",
37
42
  "focus-visible:outline-ddt-color-common-border-focus"
38
43
  ],
39
44
  {
@@ -43,22 +48,22 @@ const cvaPageButton = classVarianceAuthority.cva(
43
48
  "text-ddt-color-common-brand-default",
44
49
  "focus-visible:text-ddt-color-common-brand-default",
45
50
  "font-bold",
46
- "hover:text-ddt-color-common-border-focus",
47
- "hover:bg-ddt-color-common-surface-selected-default",
51
+ "hover:text-ddt-color-common-brand-hover",
52
+ "hover:bg-ddt-color-common-surface-brand-hover",
48
53
  "active:text-ddt-color-common-brand-press",
49
- "active:bg-ddt-color-common-surface-selected-press",
54
+ "active:bg-ddt-color-common-surface-brand-press",
50
55
  "after:bg-ddt-color-common-brand-default",
51
56
  "after:content-['']",
52
57
  "after:h-1",
53
58
  "after:absolute",
54
- "after:inset-0",
59
+ "after:inset-1",
55
60
  "after:top-auto"
56
61
  ],
57
62
  false: [
58
63
  "font-normal",
59
64
  "text-ddt-color-common-neutral-default",
60
65
  "active:bg-ddt-color-common-surface-neutral-press",
61
- "active:text-ddt-color-common-text-primary",
66
+ "active:text-ddt-color-common-neutral-press",
62
67
  "hover:bg-ddt-color-common-surface-neutral-hover",
63
68
  "hover:text-ddt-color-common-neutral-hover"
64
69
  ]
@@ -103,10 +108,10 @@ const cvaChevronButton = classVarianceAuthority.cva([
103
108
  "disabled:!text-ddt-color-common-disabled",
104
109
  "focus-visible:outline",
105
110
  "focus-visible:outline-2",
106
- "focus-visible:outline-offset-1",
111
+ "focus-visible:outline-offset-[-2px]",
107
112
  "focus-visible:outline-ddt-color-common-border-focus"
108
113
  ]);
109
- exports.DaikinPagination = class DaikinPagination extends lit.LitElement {
114
+ exports.DaikinPagination = class DaikinPagination extends ddsElement.DDSElement {
110
115
  constructor() {
111
116
  super(...arguments);
112
117
  this.current = 1;
@@ -134,7 +139,11 @@ exports.DaikinPagination = class DaikinPagination extends lit.LitElement {
134
139
  this.window
135
140
  );
136
141
  return lit.html`
137
- <div aria-label="Pagination" class="inline-flex gap-1">
142
+ <div
143
+ aria-label="Pagination"
144
+ role="navigation"
145
+ class="inline-flex flex-wrap"
146
+ >
138
147
  <button
139
148
  class=${cvaChevron}
140
149
  type="button"
@@ -209,5 +218,5 @@ __decorateClass([
209
218
  decorators_js.property({ type: Number, reflect: true })
210
219
  ], exports.DaikinPagination.prototype, "window", 2);
211
220
  exports.DaikinPagination = __decorateClass([
212
- decorators_js.customElement("daikin-pagination")
221
+ decorators.ddsElement("daikin-pagination")
213
222
  ], exports.DaikinPagination);
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import { DDSElement } from "../../base/index.cjs";
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.
@@ -3,13 +3,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const classVarianceAuthority = require("class-variance-authority");
4
4
  const lit = require("lit");
5
5
  const decorators_js = require("lit/decorators.js");
6
+ const ddsElement = require("../../base/dds-element.cjs");
7
+ const decorators = require("../../base/decorators.cjs");
8
+ require("../../base/define.cjs");
6
9
  const tailwind = require("../../tailwind.css.cjs");
7
10
  var __defProp = Object.defineProperty;
8
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
- var __decorateClass = (decorators, target, key, kind) => {
12
+ var __decorateClass = (decorators2, target, key, kind) => {
10
13
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
11
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
12
- if (decorator = decorators[i])
14
+ for (var i = decorators2.length - 1, decorator; i >= 0; i--)
15
+ if (decorator = decorators2[i])
13
16
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
14
17
  if (kind && result) __defProp(target, key, result);
15
18
  return result;
@@ -17,7 +20,7 @@ var __decorateClass = (decorators, target, key, kind) => {
17
20
  const cvaBar = classVarianceAuthority.cva(
18
21
  [
19
22
  "w-full",
20
- "bg-ddt-color-common-disabled",
23
+ "bg-ddt-color-common-border-empty",
21
24
  "overflow-hidden",
22
25
  "relative",
23
26
  "after:block",
@@ -53,7 +56,7 @@ const cvaBarContainer = classVarianceAuthority.cva(
53
56
  "justify-between",
54
57
  "items-center",
55
58
  "text-ddt-color-common-text-primary",
56
- "leading-5",
59
+ "leading-[130%]",
57
60
  "font-bold"
58
61
  ],
59
62
  {
@@ -62,12 +65,14 @@ const cvaBarContainer = classVarianceAuthority.cva(
62
65
  inprogress: [],
63
66
  completed: [
64
67
  "after:size-4",
68
+ "after:flex-none",
65
69
  "after:bg-ddt-color-common-success",
66
70
  "after:i-daikin-status-positive"
67
71
  ],
68
72
  indeterminate: [],
69
73
  error: [
70
74
  "after:size-4",
75
+ "after:flex-none",
71
76
  "after:text-ddt-color-common-danger-default",
72
77
  "after:i-daikin-status-error"
73
78
  ]
@@ -75,7 +80,7 @@ const cvaBarContainer = classVarianceAuthority.cva(
75
80
  }
76
81
  }
77
82
  );
78
- const cvaHelper = classVarianceAuthority.cva(["text-sm"], {
83
+ const cvaHelper = classVarianceAuthority.cva(["text-sm", "leading-[130%]"], {
79
84
  variants: {
80
85
  variant: {
81
86
  inprogress: ["text-ddt-color-common-text-primary"],
@@ -89,7 +94,7 @@ const cvaHelper = classVarianceAuthority.cva(["text-sm"], {
89
94
  }
90
95
  }
91
96
  });
92
- exports.DaikinProgressBar = class DaikinProgressBar extends lit.LitElement {
97
+ exports.DaikinProgressBar = class DaikinProgressBar extends ddsElement.DDSElement {
93
98
  constructor() {
94
99
  super(...arguments);
95
100
  this.variant = "inprogress";
@@ -167,5 +172,5 @@ __decorateClass([
167
172
  decorators_js.property({ type: String })
168
173
  ], exports.DaikinProgressBar.prototype, "helper", 2);
169
174
  exports.DaikinProgressBar = __decorateClass([
170
- decorators_js.customElement("daikin-progress-bar")
175
+ decorators.ddsElement("daikin-progress-bar")
171
176
  ], exports.DaikinProgressBar);
@@ -1,4 +1,5 @@
1
- import { LitElement, PropertyValues } from 'lit';
1
+ import { PropertyValues } from 'lit';
2
+ import { DDSElement } from "../../base/index.cjs";
2
3
  import { MergeVariantProps } from "../../type-utils.cjs";
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.
@@ -2,37 +2,33 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const lit = require("lit");
4
4
  const decorators_js = require("lit/decorators.js");
5
+ const ddsElement = require("../../base/dds-element.cjs");
6
+ const decorators = require("../../base/decorators.cjs");
7
+ require("../../base/define.cjs");
5
8
  const tailwind = require("../../tailwind.css.cjs");
6
9
  var __defProp = Object.defineProperty;
7
10
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
- var __decorateClass = (decorators, target, key, kind) => {
11
+ var __decorateClass = (decorators2, target, key, kind) => {
9
12
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
10
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
11
- if (decorator = decorators[i])
13
+ for (var i = decorators2.length - 1, decorator; i >= 0; i--)
14
+ if (decorator = decorators2[i])
12
15
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
13
16
  if (kind && result) __defProp(target, key, result);
14
17
  return result;
15
18
  };
16
- exports.DaikinProgressIndicator = class DaikinProgressIndicator extends lit.LitElement {
19
+ exports.DaikinProgressIndicator = class DaikinProgressIndicator extends ddsElement.DDSElement {
17
20
  constructor() {
18
21
  super(...arguments);
19
- this.currentItem = null;
22
+ this.currentItem = 0;
20
23
  }
21
- _setCurrentItem() {
24
+ _updateSteps() {
22
25
  const items = this._items;
23
- if (!items || this.currentItem === null) {
24
- return;
25
- }
26
- if (items.length - 1 < this.currentItem) {
27
- return;
28
- }
29
- if (this.currentItem < 0) {
30
- return;
31
- }
32
- items.forEach((item, i) => item.current = this.currentItem === i);
26
+ items.forEach((item, i) => {
27
+ item.status = i < this.currentItem ? "finished" : i === this.currentItem ? "inprogress" : "unfinished";
28
+ });
33
29
  }
34
30
  _handleSlotChange() {
35
- this._setCurrentItem();
31
+ this._updateSteps();
36
32
  }
37
33
  render() {
38
34
  return lit.html`<div
@@ -43,11 +39,11 @@ exports.DaikinProgressIndicator = class DaikinProgressIndicator extends lit.LitE
43
39
  </div>`;
44
40
  }
45
41
  firstUpdated() {
46
- this._setCurrentItem();
42
+ this._updateSteps();
47
43
  }
48
44
  updated(changedProperties) {
49
45
  if (changedProperties.has("currentItem")) {
50
- this._setCurrentItem();
46
+ this._updateSteps();
51
47
  }
52
48
  }
53
49
  };
@@ -66,5 +62,5 @@ __decorateClass([
66
62
  decorators_js.queryAssignedElements({ selector: "daikin-progress-indicator-item" })
67
63
  ], exports.DaikinProgressIndicator.prototype, "_items", 2);
68
64
  exports.DaikinProgressIndicator = __decorateClass([
69
- decorators_js.customElement("daikin-progress-indicator")
65
+ decorators.ddsElement("daikin-progress-indicator")
70
66
  ], exports.DaikinProgressIndicator);
@@ -1,4 +1,5 @@
1
- import { LitElement, PropertyValues } from 'lit';
1
+ import { PropertyValues } from 'lit';
2
+ import { DDSElement } from "../../base/index.cjs";
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;
@@ -4,14 +4,17 @@ const classVarianceAuthority = require("class-variance-authority");
4
4
  const lit = require("lit");
5
5
  const decorators_js = require("lit/decorators.js");
6
6
  const ifDefined_js = require("lit/directives/if-defined.js");
7
+ const ddsElement = require("../../base/dds-element.cjs");
8
+ const decorators = require("../../base/decorators.cjs");
9
+ require("../../base/define.cjs");
7
10
  const tailwind = require("../../tailwind.css.cjs");
8
11
  require("../icon/daikin-icon.cjs");
9
12
  var __defProp = Object.defineProperty;
10
13
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
- var __decorateClass = (decorators, target, key, kind) => {
14
+ var __decorateClass = (decorators2, target, key, kind) => {
12
15
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
13
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
14
- if (decorator = decorators[i])
16
+ for (var i = decorators2.length - 1, decorator; i >= 0; i--)
17
+ if (decorator = decorators2[i])
15
18
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
16
19
  if (kind && result) __defProp(target, key, result);
17
20
  return result;
@@ -19,48 +22,47 @@ var __decorateClass = (decorators, target, key, kind) => {
19
22
  const cvaContainer = classVarianceAuthority.cva(
20
23
  [
21
24
  "flex",
22
- "flex-col",
23
- "gap-1",
25
+ "gap-2",
24
26
  "w-full",
25
27
  "text-ddt-color-common-text-primary",
26
28
  "pt-2",
27
29
  "border-t-[0.25rem]",
28
- "font-daikinSerif",
29
- "leading-[130%]"
30
+ "font-daikinSerif"
30
31
  ],
31
32
  {
32
33
  variants: {
33
34
  status: {
34
- unfinished: ["border-ddt-color-common-disabled"],
35
+ unfinished: ["border-ddt-color-common-border-empty"],
35
36
  inprogress: ["border-ddt-color-common-brand-default"],
36
37
  finished: ["border-ddt-color-common-brand-default"]
37
38
  }
38
39
  }
39
40
  }
40
41
  );
41
- exports.DaikinProgressIndicatorItem = class DaikinProgressIndicatorItem extends lit.LitElement {
42
+ exports.DaikinProgressIndicatorItem = class DaikinProgressIndicatorItem extends ddsElement.DDSElement {
42
43
  constructor() {
43
44
  super(...arguments);
44
45
  this.status = "unfinished";
45
- this.current = false;
46
46
  }
47
47
  render() {
48
48
  return lit.html`<div
49
49
  class=${cvaContainer({ status: this.status })}
50
50
  role="listitem"
51
- aria-current=${ifDefined_js.ifDefined(this.current ? "step" : void 0)}
51
+ aria-current=${ifDefined_js.ifDefined(
52
+ this.status === "inprogress" ? "step" : void 0
53
+ )}
52
54
  >
53
- <div class="flex justify-between gap-1 font-bold">
54
- <slot></slot>
55
- ${this.status === "finished" ? lit.html`
56
- <span
57
- role="img"
58
- class="flex-none size-4 i-daikin-status-positive text-ddt-color-common-brand-default"
59
- aria-label="Completed"
60
- ></span>
61
- ` : lit.nothing}
55
+ <div class="flex flex-col gap-1 w-full">
56
+ <slot class="font-bold leading-[130%]"></slot>
57
+ <slot name="description" class="text-sm leading-[130%]"></slot>
62
58
  </div>
63
- <slot name="description" class="text-sm"></slot>
59
+ ${this.status === "finished" ? lit.html`
60
+ <span
61
+ role="img"
62
+ class="flex-none size-4 i-daikin-status-positive text-ddt-color-common-brand-default"
63
+ aria-label="Completed"
64
+ ></span>
65
+ ` : lit.nothing}
64
66
  </div>`;
65
67
  }
66
68
  };
@@ -76,9 +78,6 @@ exports.DaikinProgressIndicatorItem.styles = lit.css`
76
78
  __decorateClass([
77
79
  decorators_js.property({ type: String, reflect: true })
78
80
  ], exports.DaikinProgressIndicatorItem.prototype, "status", 2);
79
- __decorateClass([
80
- decorators_js.property({ type: Boolean, reflect: true })
81
- ], exports.DaikinProgressIndicatorItem.prototype, "current", 2);
82
81
  exports.DaikinProgressIndicatorItem = __decorateClass([
83
- decorators_js.customElement("daikin-progress-indicator-item")
82
+ decorators.ddsElement("daikin-progress-indicator-item")
84
83
  ], exports.DaikinProgressIndicatorItem);
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import { DDSElement } from "../../base/index.cjs";
2
2
  import { MergeVariantProps } from "../../type-utils.cjs";
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 {
@@ -4,13 +4,16 @@ const classVarianceAuthority = require("class-variance-authority");
4
4
  const lit = require("lit");
5
5
  const decorators_js = require("lit/decorators.js");
6
6
  const ifDefined_js = require("lit/directives/if-defined.js");
7
+ const ddsElement = require("../../base/dds-element.cjs");
8
+ const decorators = require("../../base/decorators.cjs");
9
+ require("../../base/define.cjs");
7
10
  const tailwind = require("../../tailwind.css.cjs");
8
11
  var __defProp = Object.defineProperty;
9
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
- var __decorateClass = (decorators, target, key, kind) => {
13
+ var __decorateClass = (decorators2, target, key, kind) => {
11
14
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
12
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
13
- if (decorator = decorators[i])
15
+ for (var i = decorators2.length - 1, decorator; i >= 0; i--)
16
+ if (decorator = decorators2[i])
14
17
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
15
18
  if (kind && result) __defProp(target, key, result);
16
19
  return result;
@@ -39,15 +42,19 @@ const RADIO_CLASS_NAME = classVarianceAuthority.cva([
39
42
  "enabled:checked:group-active:border-ddt-color-common-brand-press",
40
43
  "disabled:border-ddt-color-common-disabled"
41
44
  ])();
42
- const cvaLabel = classVarianceAuthority.cva(["pr-2"], {
45
+ const cvaLabel = classVarianceAuthority.cva([], {
43
46
  variants: {
44
47
  disabled: {
45
48
  false: ["text-ddt-color-common-text-primary"],
46
49
  true: ["text-ddt-color-common-disabled"]
50
+ },
51
+ hidden: {
52
+ false: ["inline-block"],
53
+ true: ["hidden"]
47
54
  }
48
55
  }
49
56
  });
50
- exports.DaikinRadio = class DaikinRadio extends lit.LitElement {
57
+ exports.DaikinRadio = class DaikinRadio extends ddsElement.DDSElement {
51
58
  constructor() {
52
59
  super(...arguments);
53
60
  this.name = "";
@@ -56,24 +63,24 @@ exports.DaikinRadio = class DaikinRadio extends lit.LitElement {
56
63
  this.labelPosition = "right";
57
64
  this.checked = false;
58
65
  this.disabled = false;
66
+ this.disabledByParent = false;
59
67
  this.skipTab = false;
60
68
  this._internals = this.attachInternals();
61
69
  }
62
- /**
63
- * Focuses on the inner radio.
64
- * @param options focus options
65
- */
66
- focus(options) {
67
- var _a;
68
- (_a = this._radio) == null ? void 0 : _a.focus(options);
70
+ get _labelHidden() {
71
+ return this.labelPosition === "hidden";
69
72
  }
70
73
  _updateFormValue() {
71
74
  this._internals.setFormValue(this.checked ? this.value : null);
72
75
  }
73
76
  _handleClick(event) {
77
+ var _a;
74
78
  if (this.disabled) {
75
79
  event.preventDefault();
76
80
  }
81
+ if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT") {
82
+ event.stopPropagation();
83
+ }
77
84
  }
78
85
  _handleChange(event) {
79
86
  this.checked = event.target.checked;
@@ -86,29 +93,33 @@ exports.DaikinRadio = class DaikinRadio extends lit.LitElement {
86
93
  );
87
94
  }
88
95
  render() {
89
- return lit.html`<label class="group flex gap-2 items-center font-daikinSerif">
96
+ const disabled = this.disabled || this.disabledByParent;
97
+ return lit.html`<label
98
+ class="group flex gap-2 items-center size-full font-daikinSerif"
99
+ @click=${this._handleClick}
100
+ >
90
101
  <span class="p-2">
91
102
  <input
92
103
  class=${RADIO_CLASS_NAME}
93
104
  type="radio"
94
105
  name=${this.name}
95
- .value=${this.value}
96
- aria-label=${this.labelPosition === "hidden" ? this.label : lit.nothing}
97
- ?disabled=${this.disabled}
106
+ aria-label=${this._labelHidden ? this.label : lit.nothing}
107
+ tabindex=${ifDefined_js.ifDefined(this.skipTab ? "-1" : void 0)}
108
+ ?disabled=${disabled}
98
109
  .checked=${this.checked}
99
- @click=${this._handleClick}
110
+ .value=${this.value}
100
111
  @change=${this._handleChange}
101
- tabindex=${ifDefined_js.ifDefined(this.skipTab ? "-1" : void 0)}
102
112
  />
103
113
  </span>
104
- <span
114
+ <slot
105
115
  class=${cvaLabel({
106
- disabled: this.disabled
116
+ disabled,
117
+ hidden: this._labelHidden
107
118
  })}
108
- ?hidden=${this.labelPosition === "hidden"}
119
+ ?hidden=${this._labelHidden}
109
120
  >
110
121
  ${this.label}
111
- </span>
122
+ </slot>
112
123
  </label>`;
113
124
  }
114
125
  updated(changedProperties) {
@@ -116,6 +127,14 @@ exports.DaikinRadio = class DaikinRadio extends lit.LitElement {
116
127
  this._updateFormValue();
117
128
  }
118
129
  }
130
+ /**
131
+ * Focuses on the inner radio.
132
+ * @param options focus options
133
+ */
134
+ focus(options) {
135
+ var _a;
136
+ (_a = this._radio) == null ? void 0 : _a.focus(options);
137
+ }
119
138
  };
120
139
  exports.DaikinRadio.styles = lit.css`
121
140
  ${lit.unsafeCSS(tailwind.default)}
@@ -143,6 +162,9 @@ __decorateClass([
143
162
  __decorateClass([
144
163
  decorators_js.property({ type: Boolean, reflect: true })
145
164
  ], exports.DaikinRadio.prototype, "disabled", 2);
165
+ __decorateClass([
166
+ decorators_js.property({ type: Boolean, reflect: true, attribute: false })
167
+ ], exports.DaikinRadio.prototype, "disabledByParent", 2);
146
168
  __decorateClass([
147
169
  decorators_js.property({ type: Boolean, attribute: false })
148
170
  ], exports.DaikinRadio.prototype, "skipTab", 2);
@@ -150,5 +172,5 @@ __decorateClass([
150
172
  decorators_js.query("input")
151
173
  ], exports.DaikinRadio.prototype, "_radio", 2);
152
174
  exports.DaikinRadio = __decorateClass([
153
- decorators_js.customElement("daikin-radio")
175
+ decorators.ddsElement("daikin-radio")
154
176
  ], exports.DaikinRadio);
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import { DDSElement } from "../../base/index.cjs";
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 {