@daikin-oss/design-system-web-components 0.3.2 → 0.5.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 (438) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/dist/cjs/components/accordion/daikin-accordion.cjs +24 -6
  3. package/dist/cjs/components/accordion/daikin-accordion.d.ts +15 -9
  4. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +106 -59
  5. package/dist/cjs/components/accordion-item/daikin-accordion-item.d.ts +28 -13
  6. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +3 -6
  7. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.ts +4 -0
  8. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +38 -30
  9. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +12 -2
  10. package/dist/cjs/components/button/daikin-button.cjs +89 -128
  11. package/dist/cjs/components/button/daikin-button.d.ts +30 -27
  12. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +100 -119
  13. package/dist/cjs/components/checkbox/daikin-checkbox.d.ts +27 -38
  14. package/dist/cjs/components/dropdown/daikin-dropdown.cjs +367 -0
  15. package/dist/cjs/components/dropdown/daikin-dropdown.d.ts +100 -0
  16. package/dist/cjs/components/dropdown/index.cjs +7 -0
  17. package/dist/cjs/components/dropdown/index.d.ts +1 -0
  18. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +112 -0
  19. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.ts +42 -0
  20. package/dist/cjs/components/dropdown-item/index.cjs +7 -0
  21. package/dist/cjs/components/dropdown-item/index.d.ts +1 -0
  22. package/dist/cjs/components/icon/daikin-icon.d.ts +4 -0
  23. package/dist/cjs/components/icon/icons.json.cjs +29 -5
  24. package/dist/cjs/components/icon/icons.json.d.ts +29 -5
  25. package/dist/cjs/components/index.cjs +49 -14
  26. package/dist/cjs/components/index.d.ts +11 -4
  27. package/dist/cjs/components/input-group/daikin-input-group.cjs +103 -46
  28. package/dist/cjs/components/input-group/daikin-input-group.d.ts +69 -25
  29. package/dist/cjs/components/list/daikin-list.cjs +24 -0
  30. package/dist/cjs/components/list/daikin-list.d.ts +28 -0
  31. package/dist/cjs/components/list/index.cjs +7 -0
  32. package/dist/cjs/components/list/index.d.ts +1 -0
  33. package/dist/cjs/components/list-item/daikin-list-item.cjs +131 -0
  34. package/dist/cjs/components/list-item/daikin-list-item.d.ts +64 -0
  35. package/dist/cjs/components/list-item/index.cjs +7 -0
  36. package/dist/cjs/components/list-item/index.d.ts +1 -0
  37. package/dist/cjs/components/notification/daikin-notification.cjs +14 -15
  38. package/dist/cjs/components/notification/daikin-notification.d.ts +13 -11
  39. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +53 -29
  40. package/dist/cjs/components/progress-bar/daikin-progress-bar.d.ts +32 -10
  41. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +75 -0
  42. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.ts +47 -0
  43. package/dist/cjs/components/progress-indicator/index.cjs +7 -0
  44. package/dist/cjs/components/progress-indicator/index.d.ts +1 -0
  45. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +92 -0
  46. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +44 -0
  47. package/dist/cjs/components/progress-indicator-item/index.cjs +7 -0
  48. package/dist/cjs/components/progress-indicator-item/index.d.ts +1 -0
  49. package/dist/cjs/components/radio/daikin-radio.cjs +92 -90
  50. package/dist/cjs/components/radio/daikin-radio.d.ts +33 -35
  51. package/dist/cjs/components/radio-group/daikin-radio-group.cjs +144 -0
  52. package/dist/cjs/components/radio-group/daikin-radio-group.d.ts +82 -0
  53. package/dist/cjs/components/radio-group/index.cjs +7 -0
  54. package/dist/cjs/components/radio-group/index.d.ts +1 -0
  55. package/dist/cjs/components/select/daikin-select.cjs +160 -0
  56. package/dist/cjs/components/select/daikin-select.d.ts +60 -0
  57. package/dist/cjs/components/select/index.cjs +7 -0
  58. package/dist/cjs/components/select/index.d.ts +1 -0
  59. package/dist/cjs/components/tab/daikin-tab.cjs +48 -48
  60. package/dist/cjs/components/tab/daikin-tab.d.ts +12 -12
  61. package/dist/cjs/components/{panel-switcher/daikin-panel-switcher.cjs → tab-panels/daikin-tab-panels.cjs} +8 -8
  62. package/dist/cjs/components/tab-panels/daikin-tab-panels.d.ts +56 -0
  63. package/dist/cjs/components/tab-panels/index.cjs +7 -0
  64. package/dist/cjs/components/tab-panels/index.d.ts +1 -0
  65. package/dist/cjs/components/{tab-group/daikin-tab-group.cjs → tabs/daikin-tabs.cjs} +35 -36
  66. package/dist/{es-dev/components/tab-group/daikin-tab-group.d.ts → cjs/components/tabs/daikin-tabs.d.ts} +27 -25
  67. package/dist/cjs/components/tabs/index.cjs +7 -0
  68. package/dist/cjs/components/tabs/index.d.ts +1 -0
  69. package/dist/cjs/components/text-area/daikin-text-area.cjs +164 -0
  70. package/dist/cjs/components/text-area/daikin-text-area.d.ts +82 -0
  71. package/dist/cjs/components/text-area/index.cjs +7 -0
  72. package/dist/cjs/components/text-area/index.d.ts +1 -0
  73. package/dist/cjs/components/text-field/daikin-text-field.cjs +211 -0
  74. package/dist/cjs/components/text-field/daikin-text-field.d.ts +94 -0
  75. package/dist/cjs/components/text-field/index.cjs +7 -0
  76. package/dist/cjs/components/text-field/index.d.ts +1 -0
  77. package/dist/cjs/components/toggle/daikin-toggle.cjs +44 -68
  78. package/dist/cjs/components/toggle/daikin-toggle.d.ts +15 -26
  79. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +77 -70
  80. package/dist/cjs/components/tooltip/daikin-tooltip.d.ts +39 -15
  81. package/dist/cjs/controllers/click-outside.cjs +29 -0
  82. package/dist/cjs/controllers/click-outside.d.ts +37 -0
  83. package/dist/cjs/controllers/floating-ui-auto-update.cjs +75 -0
  84. package/dist/cjs/controllers/floating-ui-auto-update.d.ts +22 -0
  85. package/dist/cjs/controllers/helpers/controller-directive.cjs +50 -0
  86. package/dist/cjs/controllers/helpers/controller-directive.d.ts +12 -0
  87. package/dist/cjs/index.cjs +49 -14
  88. package/dist/cjs/tailwind.css.cjs +1 -1
  89. package/dist/cjs/utils/reDispatch.cjs +10 -0
  90. package/dist/cjs/utils/reDispatch.d.ts +1 -0
  91. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +24 -6
  92. package/dist/cjs-dev/components/accordion/daikin-accordion.d.ts +15 -9
  93. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +106 -59
  94. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.ts +28 -13
  95. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +3 -6
  96. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.ts +4 -0
  97. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +38 -30
  98. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +12 -2
  99. package/dist/cjs-dev/components/button/daikin-button.cjs +89 -128
  100. package/dist/cjs-dev/components/button/daikin-button.d.ts +30 -27
  101. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +100 -119
  102. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.ts +27 -38
  103. package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +367 -0
  104. package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.ts +100 -0
  105. package/dist/cjs-dev/components/dropdown/index.cjs +7 -0
  106. package/dist/cjs-dev/components/dropdown/index.d.ts +1 -0
  107. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +112 -0
  108. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.ts +42 -0
  109. package/dist/cjs-dev/components/dropdown-item/index.cjs +7 -0
  110. package/dist/cjs-dev/components/dropdown-item/index.d.ts +1 -0
  111. package/dist/cjs-dev/components/icon/daikin-icon.d.ts +4 -0
  112. package/dist/cjs-dev/components/icon/icons.json.cjs +29 -5
  113. package/dist/cjs-dev/components/icon/icons.json.d.ts +29 -5
  114. package/dist/cjs-dev/components/index.cjs +49 -14
  115. package/dist/cjs-dev/components/index.d.ts +11 -4
  116. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +103 -46
  117. package/dist/cjs-dev/components/input-group/daikin-input-group.d.ts +69 -25
  118. package/dist/cjs-dev/components/list/daikin-list.cjs +24 -0
  119. package/dist/cjs-dev/components/list/daikin-list.d.ts +28 -0
  120. package/dist/cjs-dev/components/list/index.cjs +7 -0
  121. package/dist/cjs-dev/components/list/index.d.ts +1 -0
  122. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +131 -0
  123. package/dist/cjs-dev/components/list-item/daikin-list-item.d.ts +64 -0
  124. package/dist/cjs-dev/components/list-item/index.cjs +7 -0
  125. package/dist/cjs-dev/components/list-item/index.d.ts +1 -0
  126. package/dist/cjs-dev/components/notification/daikin-notification.cjs +14 -15
  127. package/dist/cjs-dev/components/notification/daikin-notification.d.ts +13 -11
  128. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +53 -29
  129. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.ts +32 -10
  130. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +85 -0
  131. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.ts +47 -0
  132. package/dist/cjs-dev/components/progress-indicator/index.cjs +7 -0
  133. package/dist/cjs-dev/components/progress-indicator/index.d.ts +1 -0
  134. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +92 -0
  135. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +44 -0
  136. package/dist/cjs-dev/components/progress-indicator-item/index.cjs +7 -0
  137. package/dist/cjs-dev/components/progress-indicator-item/index.d.ts +1 -0
  138. package/dist/cjs-dev/components/radio/daikin-radio.cjs +92 -90
  139. package/dist/cjs-dev/components/radio/daikin-radio.d.ts +33 -35
  140. package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +144 -0
  141. package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.ts +82 -0
  142. package/dist/cjs-dev/components/radio-group/index.cjs +7 -0
  143. package/dist/cjs-dev/components/radio-group/index.d.ts +1 -0
  144. package/dist/cjs-dev/components/select/daikin-select.cjs +160 -0
  145. package/dist/cjs-dev/components/select/daikin-select.d.ts +60 -0
  146. package/dist/cjs-dev/components/select/index.cjs +7 -0
  147. package/dist/cjs-dev/components/select/index.d.ts +1 -0
  148. package/dist/cjs-dev/components/tab/daikin-tab.cjs +48 -48
  149. package/dist/cjs-dev/components/tab/daikin-tab.d.ts +12 -12
  150. package/dist/cjs-dev/components/{panel-switcher/daikin-panel-switcher.cjs → tab-panels/daikin-tab-panels.cjs} +9 -9
  151. package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.ts +56 -0
  152. package/dist/cjs-dev/components/tab-panels/index.cjs +7 -0
  153. package/dist/cjs-dev/components/tab-panels/index.d.ts +1 -0
  154. package/dist/cjs-dev/components/{tab-group/daikin-tab-group.cjs → tabs/daikin-tabs.cjs} +37 -38
  155. package/dist/{cjs/components/tab-group/daikin-tab-group.d.ts → cjs-dev/components/tabs/daikin-tabs.d.ts} +27 -25
  156. package/dist/cjs-dev/components/tabs/index.cjs +7 -0
  157. package/dist/cjs-dev/components/tabs/index.d.ts +1 -0
  158. package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +164 -0
  159. package/dist/cjs-dev/components/text-area/daikin-text-area.d.ts +82 -0
  160. package/dist/cjs-dev/components/text-area/index.cjs +7 -0
  161. package/dist/cjs-dev/components/text-area/index.d.ts +1 -0
  162. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +211 -0
  163. package/dist/cjs-dev/components/text-field/daikin-text-field.d.ts +94 -0
  164. package/dist/cjs-dev/components/text-field/index.cjs +7 -0
  165. package/dist/cjs-dev/components/text-field/index.d.ts +1 -0
  166. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +44 -68
  167. package/dist/cjs-dev/components/toggle/daikin-toggle.d.ts +15 -26
  168. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +77 -70
  169. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.ts +39 -15
  170. package/dist/cjs-dev/controllers/click-outside.cjs +29 -0
  171. package/dist/cjs-dev/controllers/click-outside.d.ts +37 -0
  172. package/dist/cjs-dev/controllers/floating-ui-auto-update.cjs +82 -0
  173. package/dist/cjs-dev/controllers/floating-ui-auto-update.d.ts +22 -0
  174. package/dist/cjs-dev/controllers/helpers/controller-directive.cjs +50 -0
  175. package/dist/cjs-dev/controllers/helpers/controller-directive.d.ts +12 -0
  176. package/dist/cjs-dev/index.cjs +49 -14
  177. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  178. package/dist/cjs-dev/utils/reDispatch.cjs +10 -0
  179. package/dist/cjs-dev/utils/reDispatch.d.ts +1 -0
  180. package/dist/es/components/accordion/daikin-accordion.d.ts +15 -9
  181. package/dist/es/components/accordion/daikin-accordion.js +25 -7
  182. package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +28 -13
  183. package/dist/es/components/accordion-item/daikin-accordion-item.js +107 -60
  184. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +4 -0
  185. package/dist/es/components/breadcrumb/daikin-breadcrumb.js +3 -6
  186. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +12 -2
  187. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +38 -30
  188. package/dist/es/components/button/daikin-button.d.ts +30 -27
  189. package/dist/es/components/button/daikin-button.js +90 -129
  190. package/dist/es/components/checkbox/daikin-checkbox.d.ts +27 -38
  191. package/dist/es/components/checkbox/daikin-checkbox.js +102 -121
  192. package/dist/es/components/dropdown/daikin-dropdown.d.ts +100 -0
  193. package/dist/es/components/dropdown/daikin-dropdown.js +368 -0
  194. package/dist/es/components/dropdown/index.d.ts +1 -0
  195. package/dist/es/components/dropdown/index.js +4 -0
  196. package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +42 -0
  197. package/dist/es/components/dropdown-item/daikin-dropdown-item.js +113 -0
  198. package/dist/es/components/dropdown-item/index.d.ts +1 -0
  199. package/dist/es/components/dropdown-item/index.js +4 -0
  200. package/dist/es/components/icon/daikin-icon.d.ts +4 -0
  201. package/dist/es/components/icon/icons.json.d.ts +29 -5
  202. package/dist/es/components/icon/icons.json.js +29 -5
  203. package/dist/es/components/index.d.ts +11 -4
  204. package/dist/es/components/index.js +22 -8
  205. package/dist/es/components/input-group/daikin-input-group.d.ts +69 -25
  206. package/dist/es/components/input-group/daikin-input-group.js +105 -48
  207. package/dist/es/components/list/daikin-list.d.ts +28 -0
  208. package/dist/es/components/list/daikin-list.js +25 -0
  209. package/dist/es/components/list/index.d.ts +1 -0
  210. package/dist/es/components/list/index.js +4 -0
  211. package/dist/es/components/list-item/daikin-list-item.d.ts +64 -0
  212. package/dist/es/components/list-item/daikin-list-item.js +132 -0
  213. package/dist/es/components/list-item/index.d.ts +1 -0
  214. package/dist/es/components/list-item/index.js +4 -0
  215. package/dist/es/components/notification/daikin-notification.d.ts +13 -11
  216. package/dist/es/components/notification/daikin-notification.js +15 -16
  217. package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +32 -10
  218. package/dist/es/components/progress-bar/daikin-progress-bar.js +53 -29
  219. package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +47 -0
  220. package/dist/es/components/progress-indicator/daikin-progress-indicator.js +76 -0
  221. package/dist/es/components/progress-indicator/index.d.ts +1 -0
  222. package/dist/es/components/progress-indicator/index.js +4 -0
  223. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +44 -0
  224. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +93 -0
  225. package/dist/es/components/progress-indicator-item/index.d.ts +1 -0
  226. package/dist/es/components/progress-indicator-item/index.js +4 -0
  227. package/dist/es/components/radio/daikin-radio.d.ts +33 -35
  228. package/dist/es/components/radio/daikin-radio.js +94 -92
  229. package/dist/es/components/radio-group/daikin-radio-group.d.ts +82 -0
  230. package/dist/es/components/radio-group/daikin-radio-group.js +145 -0
  231. package/dist/es/components/radio-group/index.d.ts +1 -0
  232. package/dist/es/components/radio-group/index.js +4 -0
  233. package/dist/es/components/select/daikin-select.d.ts +60 -0
  234. package/dist/es/components/select/daikin-select.js +161 -0
  235. package/dist/es/components/select/index.d.ts +1 -0
  236. package/dist/es/components/select/index.js +4 -0
  237. package/dist/es/components/tab/daikin-tab.d.ts +12 -12
  238. package/dist/es/components/tab/daikin-tab.js +49 -49
  239. package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +56 -0
  240. package/dist/es/components/{panel-switcher/daikin-panel-switcher.js → tab-panels/daikin-tab-panels.js} +9 -9
  241. package/dist/es/components/tab-panels/index.d.ts +1 -0
  242. package/dist/es/components/tab-panels/index.js +4 -0
  243. package/dist/es/components/{tab-group/daikin-tab-group.d.ts → tabs/daikin-tabs.d.ts} +27 -25
  244. package/dist/es/components/{tab-group/daikin-tab-group.js → tabs/daikin-tabs.js} +36 -37
  245. package/dist/es/components/tabs/index.d.ts +1 -0
  246. package/dist/es/components/tabs/index.js +4 -0
  247. package/dist/es/components/text-area/daikin-text-area.d.ts +82 -0
  248. package/dist/es/components/text-area/daikin-text-area.js +165 -0
  249. package/dist/es/components/text-area/index.d.ts +1 -0
  250. package/dist/es/components/text-area/index.js +4 -0
  251. package/dist/es/components/text-field/daikin-text-field.d.ts +94 -0
  252. package/dist/es/components/text-field/daikin-text-field.js +212 -0
  253. package/dist/es/components/text-field/index.d.ts +1 -0
  254. package/dist/es/components/text-field/index.js +4 -0
  255. package/dist/es/components/toggle/daikin-toggle.d.ts +15 -26
  256. package/dist/es/components/toggle/daikin-toggle.js +45 -69
  257. package/dist/es/components/tooltip/daikin-tooltip.d.ts +39 -15
  258. package/dist/es/components/tooltip/daikin-tooltip.js +78 -71
  259. package/dist/es/controllers/click-outside.d.ts +37 -0
  260. package/dist/es/controllers/click-outside.js +29 -0
  261. package/dist/es/controllers/floating-ui-auto-update.d.ts +22 -0
  262. package/dist/es/controllers/floating-ui-auto-update.js +75 -0
  263. package/dist/es/controllers/helpers/controller-directive.d.ts +12 -0
  264. package/dist/es/controllers/helpers/controller-directive.js +50 -0
  265. package/dist/es/index.js +22 -8
  266. package/dist/es/tailwind.css.js +1 -1
  267. package/dist/es/utils/reDispatch.d.ts +1 -0
  268. package/dist/es/utils/reDispatch.js +10 -0
  269. package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -9
  270. package/dist/es-dev/components/accordion/daikin-accordion.js +25 -7
  271. package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +28 -13
  272. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +107 -60
  273. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +4 -0
  274. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +3 -6
  275. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +12 -2
  276. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +38 -30
  277. package/dist/es-dev/components/button/daikin-button.d.ts +30 -27
  278. package/dist/es-dev/components/button/daikin-button.js +90 -129
  279. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +27 -38
  280. package/dist/es-dev/components/checkbox/daikin-checkbox.js +102 -121
  281. package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +100 -0
  282. package/dist/es-dev/components/dropdown/daikin-dropdown.js +368 -0
  283. package/dist/es-dev/components/dropdown/index.d.ts +1 -0
  284. package/dist/es-dev/components/dropdown/index.js +4 -0
  285. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +42 -0
  286. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +113 -0
  287. package/dist/es-dev/components/dropdown-item/index.d.ts +1 -0
  288. package/dist/es-dev/components/dropdown-item/index.js +4 -0
  289. package/dist/es-dev/components/icon/daikin-icon.d.ts +4 -0
  290. package/dist/es-dev/components/icon/icons.json.d.ts +29 -5
  291. package/dist/es-dev/components/icon/icons.json.js +29 -5
  292. package/dist/es-dev/components/index.d.ts +11 -4
  293. package/dist/es-dev/components/index.js +22 -8
  294. package/dist/es-dev/components/input-group/daikin-input-group.d.ts +69 -25
  295. package/dist/es-dev/components/input-group/daikin-input-group.js +105 -48
  296. package/dist/es-dev/components/list/daikin-list.d.ts +28 -0
  297. package/dist/es-dev/components/list/daikin-list.js +25 -0
  298. package/dist/es-dev/components/list/index.d.ts +1 -0
  299. package/dist/es-dev/components/list/index.js +4 -0
  300. package/dist/es-dev/components/list-item/daikin-list-item.d.ts +64 -0
  301. package/dist/es-dev/components/list-item/daikin-list-item.js +132 -0
  302. package/dist/es-dev/components/list-item/index.d.ts +1 -0
  303. package/dist/es-dev/components/list-item/index.js +4 -0
  304. package/dist/es-dev/components/notification/daikin-notification.d.ts +13 -11
  305. package/dist/es-dev/components/notification/daikin-notification.js +15 -16
  306. package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +32 -10
  307. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +53 -29
  308. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +47 -0
  309. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +86 -0
  310. package/dist/es-dev/components/progress-indicator/index.d.ts +1 -0
  311. package/dist/es-dev/components/progress-indicator/index.js +4 -0
  312. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +44 -0
  313. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +93 -0
  314. package/dist/es-dev/components/progress-indicator-item/index.d.ts +1 -0
  315. package/dist/es-dev/components/progress-indicator-item/index.js +4 -0
  316. package/dist/es-dev/components/radio/daikin-radio.d.ts +33 -35
  317. package/dist/es-dev/components/radio/daikin-radio.js +94 -92
  318. package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +82 -0
  319. package/dist/es-dev/components/radio-group/daikin-radio-group.js +145 -0
  320. package/dist/es-dev/components/radio-group/index.d.ts +1 -0
  321. package/dist/es-dev/components/radio-group/index.js +4 -0
  322. package/dist/es-dev/components/select/daikin-select.d.ts +60 -0
  323. package/dist/es-dev/components/select/daikin-select.js +161 -0
  324. package/dist/es-dev/components/select/index.d.ts +1 -0
  325. package/dist/es-dev/components/select/index.js +4 -0
  326. package/dist/es-dev/components/tab/daikin-tab.d.ts +12 -12
  327. package/dist/es-dev/components/tab/daikin-tab.js +49 -49
  328. package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +56 -0
  329. package/dist/es-dev/components/{panel-switcher/daikin-panel-switcher.js → tab-panels/daikin-tab-panels.js} +10 -10
  330. package/dist/es-dev/components/tab-panels/index.d.ts +1 -0
  331. package/dist/es-dev/components/tab-panels/index.js +4 -0
  332. package/dist/{cjs-dev/components/tab-group/daikin-tab-group.d.ts → es-dev/components/tabs/daikin-tabs.d.ts} +27 -25
  333. package/dist/es-dev/components/{tab-group/daikin-tab-group.js → tabs/daikin-tabs.js} +38 -39
  334. package/dist/es-dev/components/tabs/index.d.ts +1 -0
  335. package/dist/es-dev/components/tabs/index.js +4 -0
  336. package/dist/es-dev/components/text-area/daikin-text-area.d.ts +82 -0
  337. package/dist/es-dev/components/text-area/daikin-text-area.js +165 -0
  338. package/dist/es-dev/components/text-area/index.d.ts +1 -0
  339. package/dist/es-dev/components/text-area/index.js +4 -0
  340. package/dist/es-dev/components/text-field/daikin-text-field.d.ts +94 -0
  341. package/dist/es-dev/components/text-field/daikin-text-field.js +212 -0
  342. package/dist/es-dev/components/text-field/index.d.ts +1 -0
  343. package/dist/es-dev/components/text-field/index.js +4 -0
  344. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +15 -26
  345. package/dist/es-dev/components/toggle/daikin-toggle.js +45 -69
  346. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +39 -15
  347. package/dist/es-dev/components/tooltip/daikin-tooltip.js +78 -71
  348. package/dist/es-dev/controllers/click-outside.d.ts +37 -0
  349. package/dist/es-dev/controllers/click-outside.js +29 -0
  350. package/dist/es-dev/controllers/floating-ui-auto-update.d.ts +22 -0
  351. package/dist/es-dev/controllers/floating-ui-auto-update.js +82 -0
  352. package/dist/es-dev/controllers/helpers/controller-directive.d.ts +12 -0
  353. package/dist/es-dev/controllers/helpers/controller-directive.js +50 -0
  354. package/dist/es-dev/index.js +22 -8
  355. package/dist/es-dev/tailwind.css.js +1 -1
  356. package/dist/es-dev/utils/reDispatch.d.ts +1 -0
  357. package/dist/es-dev/utils/reDispatch.js +10 -0
  358. package/icons/checkbox-indeterminate.svg +2 -2
  359. package/icons/chevron-down.svg +3 -0
  360. package/icons/chevron-left.svg +3 -0
  361. package/icons/chevron-right.svg +3 -0
  362. package/icons/chevron-up.svg +3 -0
  363. package/icons/dropdown-check.svg +3 -0
  364. package/icons/dropdown-chevron-down.svg +3 -0
  365. package/icons/required.svg +3 -0
  366. package/icons/status-error.svg +3 -0
  367. package/icons/status-negative.svg +3 -11
  368. package/icons/status-positive.svg +4 -14
  369. package/icons/status-success.svg +6 -0
  370. package/package.json +3 -2
  371. package/dist/cjs/components/panel-switcher/daikin-panel-switcher.d.ts +0 -50
  372. package/dist/cjs/components/panel-switcher/index.cjs +0 -7
  373. package/dist/cjs/components/panel-switcher/index.d.ts +0 -1
  374. package/dist/cjs/components/tab-group/index.cjs +0 -7
  375. package/dist/cjs/components/tab-group/index.d.ts +0 -1
  376. package/dist/cjs/components/text-input/daikin-text-input.cjs +0 -137
  377. package/dist/cjs/components/text-input/daikin-text-input.d.ts +0 -68
  378. package/dist/cjs/components/text-input/index.cjs +0 -7
  379. package/dist/cjs/components/text-input/index.d.ts +0 -1
  380. package/dist/cjs/components/textarea/daikin-textarea.cjs +0 -168
  381. package/dist/cjs/components/textarea/daikin-textarea.d.ts +0 -70
  382. package/dist/cjs/components/textarea/index.cjs +0 -7
  383. package/dist/cjs/components/textarea/index.d.ts +0 -1
  384. package/dist/cjs-dev/components/panel-switcher/daikin-panel-switcher.d.ts +0 -50
  385. package/dist/cjs-dev/components/panel-switcher/index.cjs +0 -7
  386. package/dist/cjs-dev/components/panel-switcher/index.d.ts +0 -1
  387. package/dist/cjs-dev/components/tab-group/index.cjs +0 -7
  388. package/dist/cjs-dev/components/tab-group/index.d.ts +0 -1
  389. package/dist/cjs-dev/components/text-input/daikin-text-input.cjs +0 -137
  390. package/dist/cjs-dev/components/text-input/daikin-text-input.d.ts +0 -68
  391. package/dist/cjs-dev/components/text-input/index.cjs +0 -7
  392. package/dist/cjs-dev/components/text-input/index.d.ts +0 -1
  393. package/dist/cjs-dev/components/textarea/daikin-textarea.cjs +0 -168
  394. package/dist/cjs-dev/components/textarea/daikin-textarea.d.ts +0 -70
  395. package/dist/cjs-dev/components/textarea/index.cjs +0 -7
  396. package/dist/cjs-dev/components/textarea/index.d.ts +0 -1
  397. package/dist/es/components/panel-switcher/daikin-panel-switcher.d.ts +0 -50
  398. package/dist/es/components/panel-switcher/index.d.ts +0 -1
  399. package/dist/es/components/panel-switcher/index.js +0 -4
  400. package/dist/es/components/tab-group/index.d.ts +0 -1
  401. package/dist/es/components/tab-group/index.js +0 -4
  402. package/dist/es/components/text-input/daikin-text-input.d.ts +0 -68
  403. package/dist/es/components/text-input/daikin-text-input.js +0 -138
  404. package/dist/es/components/text-input/index.d.ts +0 -1
  405. package/dist/es/components/text-input/index.js +0 -4
  406. package/dist/es/components/textarea/daikin-textarea.d.ts +0 -70
  407. package/dist/es/components/textarea/daikin-textarea.js +0 -169
  408. package/dist/es/components/textarea/index.d.ts +0 -1
  409. package/dist/es/components/textarea/index.js +0 -4
  410. package/dist/es-dev/components/panel-switcher/daikin-panel-switcher.d.ts +0 -50
  411. package/dist/es-dev/components/panel-switcher/index.d.ts +0 -1
  412. package/dist/es-dev/components/panel-switcher/index.js +0 -4
  413. package/dist/es-dev/components/tab-group/index.d.ts +0 -1
  414. package/dist/es-dev/components/tab-group/index.js +0 -4
  415. package/dist/es-dev/components/text-input/daikin-text-input.d.ts +0 -68
  416. package/dist/es-dev/components/text-input/daikin-text-input.js +0 -138
  417. package/dist/es-dev/components/text-input/index.d.ts +0 -1
  418. package/dist/es-dev/components/text-input/index.js +0 -4
  419. package/dist/es-dev/components/textarea/daikin-textarea.d.ts +0 -70
  420. package/dist/es-dev/components/textarea/daikin-textarea.js +0 -169
  421. package/dist/es-dev/components/textarea/index.d.ts +0 -1
  422. package/dist/es-dev/components/textarea/index.js +0 -4
  423. package/icons/accordion-chevron-up.svg +0 -3
  424. package/icons/notification-status-negative.svg +0 -3
  425. package/icons/notification-status-positive.svg +0 -5
  426. package/icons/radio-checked.svg +0 -4
  427. package/icons/radio-unchecked.svg +0 -4
  428. /package/dist/cjs/components/{tab-group → tabs}/scroller.cjs +0 -0
  429. /package/dist/cjs/components/{tab-group → tabs}/scroller.d.ts +0 -0
  430. /package/dist/cjs-dev/components/{tab-group → tabs}/scroller.cjs +0 -0
  431. /package/dist/cjs-dev/components/{tab-group → tabs}/scroller.d.ts +0 -0
  432. /package/dist/es/components/{tab-group → tabs}/scroller.d.ts +0 -0
  433. /package/dist/es/components/{tab-group → tabs}/scroller.js +0 -0
  434. /package/dist/es-dev/components/{tab-group → tabs}/scroller.d.ts +0 -0
  435. /package/dist/es-dev/components/{tab-group → tabs}/scroller.js +0 -0
  436. /package/icons/{notification-status-alarm.svg → status-alarm.svg} +0 -0
  437. /package/icons/{notification-status-information.svg → status-information.svg} +0 -0
  438. /package/icons/{notification-status-warning.svg → status-warning.svg} +0 -0
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import { LitElement, nothing } from 'lit';
2
2
  import { MergeVariantProps } from '../../type-utils';
3
3
  declare const cvaContainer: (props?: ({
4
4
  variant?: "toast" | "inline" | null | undefined;
@@ -25,22 +25,24 @@ type NotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof c
25
25
  *
26
26
  * @fires close - A custom event emitted when a user clicks the close button.
27
27
  *
28
+ * @slot title - A slot for the notification title content.
29
+ * @slot description - A slot for the notification description content.
30
+ *
28
31
  * @example
29
32
  *
33
+ * ```js
34
+ * import "@daikin-oss/design-system-web-components/components/notification/index.js";
35
+ * ```
36
+ *
30
37
  * ```html
31
- * </daikin-notification title="Notification title" description="Notification description."></daikin-notification>
38
+ * <daikin-notification>
39
+ * <span slot="title">Notification title</span>
40
+ * <span slot="description">Notification description</span>
41
+ * </daikin-notification>
32
42
  * ```
33
43
  */
34
44
  export declare class DaikinNotification extends LitElement {
35
45
  static readonly styles: import('lit').CSSResult;
36
- /**
37
- * Title text
38
- */
39
- title: string;
40
- /**
41
- * Description text
42
- */
43
- description: string;
44
46
  /**
45
47
  * Type of notification
46
48
  */
@@ -65,7 +67,7 @@ export declare class DaikinNotification extends LitElement {
65
67
  * Call the event registered in "close"
66
68
  */
67
69
  private _handleClickClose;
68
- render(): import('lit-html').TemplateResult<1> | null;
70
+ render(): import('lit-html').TemplateResult<1> | typeof nothing;
69
71
  }
70
72
  declare global {
71
73
  interface HTMLElementTagNameMap {
@@ -1,6 +1,6 @@
1
1
  import { colorFeedbackPositive, colorFeedbackWarning, colorFeedbackNegative } from "@daikin-oss/dds-tokens/js/daikin/Light/variables.js";
2
2
  import { cva } from "class-variance-authority";
3
- import { css, unsafeCSS, LitElement, html } from "lit";
3
+ import { css, unsafeCSS, LitElement, html, nothing } from "lit";
4
4
  import { property, customElement } from "lit/decorators.js";
5
5
  import { EVENT_CLOSE } from "../../constants/events.js";
6
6
  import tailwindStyles from "../../tailwind.css.js";
@@ -76,8 +76,6 @@ const cvaContent = cva(
76
76
  let DaikinNotification = class extends LitElement {
77
77
  constructor() {
78
78
  super(...arguments);
79
- this.title = "";
80
- this.description = "";
81
79
  this.variant = "toast";
82
80
  this.status = "positive";
83
81
  this.line = "single";
@@ -93,11 +91,16 @@ let DaikinNotification = class extends LitElement {
93
91
  this.dispatchEvent(event);
94
92
  }
95
93
  render() {
94
+ const role = {
95
+ inline: "status",
96
+ toast: "alert"
97
+ }[this.variant];
96
98
  return this.open ? html`<aside
97
99
  class=${cvaContainer({
98
100
  variant: this.variant,
99
101
  status: this.status
100
102
  })}
103
+ role=${role}
101
104
  >
102
105
  <div
103
106
  class=${cvaIconContainer({
@@ -111,17 +114,19 @@ let DaikinNotification = class extends LitElement {
111
114
  ></daikin-icon>
112
115
  </div>
113
116
  <div
114
- class="flex justify-between items-center gap-5 p-5 flex-[1_0_auto]"
117
+ class="flex justify-between items-center gap-5 p-5 text-lg flex-auto flex-shrink-0"
115
118
  >
116
119
  <div
117
120
  class=${cvaContent({
118
121
  line: this.line
119
122
  })}
120
123
  >
121
- ${this.title && html`<header class="text-[18px] font-bold flex-none">
122
- ${this.title}
123
- </header>`}
124
- <p class="text-[18px] flex-none">${this.description}</p>
124
+ <div class="font-bold flex-none">
125
+ <slot name="title"></slot>
126
+ </div>
127
+ <div class="flex-none">
128
+ <slot name="description"></slot>
129
+ </div>
125
130
  </div>
126
131
  ${this.closeButton ? html`
127
132
  <div class="flex items-center gap-5">
@@ -137,9 +142,9 @@ let DaikinNotification = class extends LitElement {
137
142
  ></daikin-icon>
138
143
  </button>
139
144
  </div>
140
- ` : null}
145
+ ` : nothing}
141
146
  </div>
142
- </aside>` : null;
147
+ </aside>` : nothing;
143
148
  }
144
149
  };
145
150
  DaikinNotification.styles = css`
@@ -163,12 +168,6 @@ DaikinNotification.styles = css`
163
168
  width: 100%;
164
169
  }
165
170
  `;
166
- __decorateClass([
167
- property({ type: String })
168
- ], DaikinNotification.prototype, "title", 2);
169
- __decorateClass([
170
- property({ type: String })
171
- ], DaikinNotification.prototype, "description", 2);
172
171
  __decorateClass([
173
172
  property({ type: String, reflect: true })
174
173
  ], DaikinNotification.prototype, "variant", 2);
@@ -1,16 +1,32 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
+ import { MergeVariantProps } from '../../type-utils';
3
+ declare const cvaBar: (props?: ({
4
+ variant?: "error" | "indeterminate" | "inprogress" | "completed" | null | undefined;
5
+ size?: "medium" | "large" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ declare const cvaHelper: (props?: ({
8
+ variant?: "error" | "indeterminate" | "inprogress" | "completed" | null | undefined;
9
+ visible?: boolean | null | undefined;
10
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
11
+ type ProgressBarVariantProps = MergeVariantProps<typeof cvaBar | typeof cvaHelper>;
2
12
  /**
3
13
  * The progress bar component is used to visually convey the progress to the user.
4
14
  *
5
15
  * There are four variants of the progress bar:
6
16
  *
7
- * - "inprogress": The default variant. Use this when you know the exact progress. The length of the bar is the ratio of `value` to `max`.
8
- * - "indeterminate": Use this variant when you don't know the exact progress. In this variant, the `value` is ignored and the bar always animates from left to right with a constant length.
9
- * - "completed": In addition to "inprogress", a completed icon is added. In this variant, the `value` is ignored and the bar always expands to the full width.
10
- * - "error": In addition to "inprogress", an error icon is added and the color becomes red. In this variant, the `value` is ignored and the bar always expands to the full width.
17
+ * - `"inprogress"`: The default variant. Use this when you know the exact progress. The length of the bar is the ratio of `value` to `max`.
18
+ * - `"indeterminate"`: Use this variant when you don't know the exact progress. In this variant, the `value` is ignored and the bar always animates from left to right with a constant length.
19
+ * - `"completed"`: In addition to `"inprogress"`, a completed icon is added. In this variant, the `value` is ignored and the bar always expands to the full width.
20
+ * - `"error"`: In addition to `"inprogress"`, an error icon is added and the color becomes red. In this variant, the `value` is ignored and the bar always expands to the full width.
21
+ *
22
+ * @slot - A slot for label text displayed at the top of the progress bar.
11
23
  *
12
24
  * @example
13
25
  *
26
+ * ```js
27
+ * import "@daikin-oss/design-system-web-components/components/progress-bar/index.js";
28
+ * ```
29
+ *
14
30
  * ```html
15
31
  * <daikin-progress-bar value="40" helper="Progress bar helper">
16
32
  * Progress bar label
@@ -20,19 +36,25 @@ import { LitElement, PropertyValues } from 'lit';
20
36
  export declare class DaikinProgressBar extends LitElement {
21
37
  static readonly styles: import('lit').CSSResult;
22
38
  /**
23
- * Value of the progress bar
39
+ * Variant of the progress bar.
24
40
  */
25
- value: number;
41
+ variant: ProgressBarVariantProps["variant"];
26
42
  /**
27
- * Variant of the progress bar
43
+ * Size of the progress bar
28
44
  */
29
- variant: "inprogress" | "completed" | "indeterminate" | "error";
45
+ size: ProgressBarVariantProps["size"];
46
+ /**
47
+ * Value of the progress bar.
48
+ * Only used for `"inprogress"` variant.
49
+ */
50
+ value: number;
30
51
  /**
31
- * The max value of the progress bar
52
+ * Max value of the progress bar.
53
+ * Only used for `"inprogress"` variant.
32
54
  */
33
55
  max: number;
34
56
  /**
35
- * Helper text
57
+ * Helper text displayed at the bottom of the progress bar.
36
58
  */
37
59
  helper: string;
38
60
  private _validateProperties;
@@ -1,4 +1,3 @@
1
- import { colorFeedbackPositive, colorFeedbackNegative } from "@daikin-oss/dds-tokens/js/daikin/Light/variables.js";
2
1
  import { cva } from "class-variance-authority";
3
2
  import { css, unsafeCSS, LitElement, html } from "lit";
4
3
  import { property, customElement } from "lit/decorators.js";
@@ -16,7 +15,6 @@ var __decorateClass = (decorators, target, key, kind) => {
16
15
  const cvaBar = cva(
17
16
  [
18
17
  "w-full",
19
- "h-1",
20
18
  "bg-daikinNeutral-200",
21
19
  "overflow-hidden",
22
20
  "relative",
@@ -29,42 +27,62 @@ const cvaBar = cva(
29
27
  variants: {
30
28
  variant: {
31
29
  inprogress: ["after:w-[--bar-width]", "after:bg-daikinBlue-500"],
32
- completed: ["after:w-full", "after:bg-[--colorFeedbackPositive]"],
30
+ completed: ["after:w-full", "after:bg-daikinGreen-500"],
33
31
  indeterminate: [
34
32
  "after:w-1/2",
35
33
  "after:bg-daikinBlue-500",
36
34
  "after:animate-[progress-bar-indeterminate_1200ms_linear_infinite]"
37
35
  ],
38
- error: ["after:w-full", "after:bg-[--colorFeedbackNegative]"]
36
+ error: ["after:w-full", "after:bg-daikinRed-500"]
37
+ },
38
+ size: {
39
+ medium: ["h-1"],
40
+ large: ["h-2"]
39
41
  }
40
42
  }
41
43
  }
42
44
  );
43
- const cvaIcon = cva(["size-4"], {
44
- variants: {
45
- variant: {
46
- inprogress: ["none"],
47
- completed: ["i-daikin-status-positive"],
48
- indeterminate: [],
49
- error: ["i-daikin-status-negative"]
45
+ const cvaBarContainer = cva(
46
+ ["flex", "justify-between", "items-center", "leading-5", "font-bold"],
47
+ {
48
+ variants: {
49
+ variant: {
50
+ inprogress: [],
51
+ completed: [
52
+ "after:size-4",
53
+ "after:text-daikinGreen-500",
54
+ "after:i-daikin-status-positive"
55
+ ],
56
+ indeterminate: [],
57
+ error: [
58
+ "after:size-4",
59
+ "after:text-daikinRed-500",
60
+ "after:i-daikin-status-error"
61
+ ]
62
+ }
50
63
  }
51
64
  }
52
- });
53
- const cvaHelper = cva(["text-xs", "mt-2"], {
65
+ );
66
+ const cvaHelper = cva(["text-sm"], {
54
67
  variants: {
55
68
  variant: {
56
69
  inprogress: [],
57
70
  completed: [],
58
71
  indeterminate: [],
59
- error: ["text-[--colorFeedbackNegative]"]
72
+ error: ["text-daikinRed-500", "font-bold"]
73
+ },
74
+ visible: {
75
+ false: ["hidden"],
76
+ true: []
60
77
  }
61
78
  }
62
79
  });
63
80
  let DaikinProgressBar = class extends LitElement {
64
81
  constructor() {
65
82
  super(...arguments);
66
- this.value = 0;
67
83
  this.variant = "inprogress";
84
+ this.size = "medium";
85
+ this.value = 0;
68
86
  this.max = 100;
69
87
  this.helper = "";
70
88
  }
@@ -97,23 +115,29 @@ let DaikinProgressBar = class extends LitElement {
97
115
  }
98
116
  render() {
99
117
  const progressRatio = Math.min(Math.max(this.value / this.max, 0), 1);
100
- return html`<div class="flex flex-col w-full font-daikinSerif">
101
- <div class="flex justify-between items-center mb-2.5">
102
- <span class="text-sm leading-[22px] font-medium"><slot></slot></span>
103
- <span class=${cvaIcon({ variant: this.variant })}></span>
118
+ return html`<div class="flex flex-col gap-2 w-full font-daikinSerif">
119
+ <div class=${cvaBarContainer({ variant: this.variant })}>
120
+ <slot></slot>
104
121
  </div>
105
122
  <div
106
- class=${cvaBar({ variant: this.variant })}
123
+ class=${cvaBar({ variant: this.variant, size: this.size })}
107
124
  role="progressbar"
108
125
  aria-label=${this.textContent ?? ""}
109
126
  aria-valuenow=${this.value}
110
127
  aria-valuemin="0"
111
128
  aria-valuemax=${this.max}
129
+ aria-busy=${progressRatio < 1 && this.variant === "inprogress" || this.variant === "indeterminate"}
112
130
  style=${`--bar-width:${progressRatio * 100}%`}
113
131
  ></div>
114
- ${this.helper ? html`<span class=${cvaHelper({ variant: this.variant })}
115
- >${this.helper}</span
116
- >` : null}
132
+ <span
133
+ class=${cvaHelper({
134
+ variant: this.variant,
135
+ visible: !!this.helper.length
136
+ })}
137
+ aria-live="polite"
138
+ >
139
+ ${this.helper}
140
+ </span>
117
141
  </div>`;
118
142
  }
119
143
  updated(changedProperties) {
@@ -126,19 +150,19 @@ DaikinProgressBar.styles = css`
126
150
  ${unsafeCSS(tailwindStyles)}
127
151
 
128
152
  :host {
129
- --colorFeedbackPositive: ${unsafeCSS(colorFeedbackPositive)};
130
- --colorFeedbackNegative: ${unsafeCSS(colorFeedbackNegative)};
131
-
132
153
  display: block;
133
154
  width: 100%;
134
155
  }
135
156
  `;
136
- __decorateClass([
137
- property({ type: Number })
138
- ], DaikinProgressBar.prototype, "value", 2);
139
157
  __decorateClass([
140
158
  property({ type: String })
141
159
  ], DaikinProgressBar.prototype, "variant", 2);
160
+ __decorateClass([
161
+ property({ type: String, reflect: true })
162
+ ], DaikinProgressBar.prototype, "size", 2);
163
+ __decorateClass([
164
+ property({ type: Number })
165
+ ], DaikinProgressBar.prototype, "value", 2);
142
166
  __decorateClass([
143
167
  property({ type: Number })
144
168
  ], DaikinProgressBar.prototype, "max", 2);
@@ -0,0 +1,47 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ /**
3
+ * The progress indicator is used to let the user know where they are in the task list.
4
+ *
5
+ * Hierarchy:
6
+ * - `daikin-progress-indicator` > `daikin-progress-indicator-item`
7
+ *
8
+ * @slot - A slot for progress indicator items. Place `daikin-progress-indicator-item` elements here.
9
+ *
10
+ * @example
11
+ *
12
+ * ```html
13
+ * <daikin-progress-indicator>
14
+ * <daikin-progress-indicator-item state="unfinished">
15
+ * Title 1
16
+ * <span slot="description">Description 1</span>
17
+ * </daikin-progress-indicator-item>
18
+ * <daikin-progress-indicator-item state="inprogress">
19
+ * Title 2
20
+ * <span slot="description">Description 2</span>
21
+ * </daikin-progress-indicator-item>
22
+ * <daikin-progress-indicator-item state="finished">
23
+ * Title 3
24
+ * <span slot="description">Description 3</span>
25
+ * </daikin-progress-indicator-item>
26
+ * </daikin-progress-indicator>
27
+ * ```
28
+ */
29
+ export declare class DaikinProgressIndicator extends LitElement {
30
+ static readonly styles: import('lit').CSSResult;
31
+ /**
32
+ * Specify the index number of the current location in the progress indicator.
33
+ */
34
+ currentItem: number | null;
35
+ private readonly _items;
36
+ private _setCurrentItem;
37
+ private _handleSlotChange;
38
+ render(): import('lit-html').TemplateResult<1>;
39
+ protected firstUpdated(): void;
40
+ protected updated(changedProperties: PropertyValues): void;
41
+ }
42
+ declare global {
43
+ interface HTMLElementTagNameMap {
44
+ "daikin-progress-indicator": DaikinProgressIndicator;
45
+ }
46
+ }
47
+ export default DaikinProgressIndicator;
@@ -0,0 +1,86 @@
1
+ import { colorFeedbackNegative } from "@daikin-oss/dds-tokens/js/daikin/Light/variables.js";
2
+ import { css, unsafeCSS, LitElement, html } from "lit";
3
+ import { property, queryAssignedElements, 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
+ let DaikinProgressIndicator = class extends LitElement {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.currentItem = null;
19
+ }
20
+ _setCurrentItem() {
21
+ const items = this._items;
22
+ if (!items || this.currentItem === null) {
23
+ return;
24
+ }
25
+ if (items.length - 1 < this.currentItem) {
26
+ {
27
+ console.warn(
28
+ `Invalid 'current-item' property: ${this.currentItem}. The number of actual 'daikin-progress-indicator-item's exceeds the number of items.`
29
+ );
30
+ }
31
+ return;
32
+ }
33
+ if (this.currentItem < 0) {
34
+ {
35
+ console.warn(
36
+ `Invalid 'current-item' property: ${this.currentItem}. Negative values cannot be set.`
37
+ );
38
+ }
39
+ return;
40
+ }
41
+ items.forEach((item, i) => item.current = this.currentItem === i);
42
+ }
43
+ _handleSlotChange() {
44
+ this._setCurrentItem();
45
+ }
46
+ render() {
47
+ return html`<div
48
+ class="flex justify-stretch items-start w-full font-daikinSerif"
49
+ role="list"
50
+ >
51
+ <slot @slotchange=${this._handleSlotChange}></slot>
52
+ </div>`;
53
+ }
54
+ firstUpdated() {
55
+ this._setCurrentItem();
56
+ }
57
+ updated(changedProperties) {
58
+ if (changedProperties.has("currentItem")) {
59
+ this._setCurrentItem();
60
+ }
61
+ }
62
+ };
63
+ DaikinProgressIndicator.styles = css`
64
+ ${unsafeCSS(tailwindStyles)}
65
+
66
+ :host {
67
+ --progress-indicator-border-color-error: ${unsafeCSS(
68
+ colorFeedbackNegative
69
+ )};
70
+
71
+ display: block;
72
+ width: 100%;
73
+ }
74
+ `;
75
+ __decorateClass([
76
+ property({ type: Number, attribute: "current-item", reflect: true })
77
+ ], DaikinProgressIndicator.prototype, "currentItem", 2);
78
+ __decorateClass([
79
+ queryAssignedElements({ selector: "daikin-progress-indicator-item" })
80
+ ], DaikinProgressIndicator.prototype, "_items", 2);
81
+ DaikinProgressIndicator = __decorateClass([
82
+ customElement("daikin-progress-indicator")
83
+ ], DaikinProgressIndicator);
84
+ export {
85
+ DaikinProgressIndicator
86
+ };
@@ -0,0 +1 @@
1
+ export * from './daikin-progress-indicator';
@@ -0,0 +1,4 @@
1
+ import { DaikinProgressIndicator } from "./daikin-progress-indicator.js";
2
+ export {
3
+ DaikinProgressIndicator
4
+ };
@@ -0,0 +1,44 @@
1
+ import { LitElement } from 'lit';
2
+ import { MergeVariantProps } from '../../type-utils';
3
+ declare const cvaContainer: (props?: ({
4
+ status?: "inprogress" | "unfinished" | "finished" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ declare const cvaLabel: (props?: ({
7
+ status?: "inprogress" | "unfinished" | "finished" | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ type ProgressIndicatorItemVariantProps = MergeVariantProps<typeof cvaContainer | typeof cvaLabel>;
10
+ /**
11
+ * The progress indicator item component is a child element within the `daikin-progress-indicator` component, this represents one of the tasks that the user is working on.
12
+ *
13
+ * In addition to the name of each task, the progress of the task can be indicated, such as whether it is in progress or has not yet started.
14
+ *
15
+ * Hierarchy:
16
+ * - `daikin-progress-indicator` > `daikin-progress-indicator-item`
17
+ *
18
+ * @slot - A slot for label content.
19
+ * @slot description - A slot for description content.
20
+ *
21
+ * @example
22
+ *
23
+ * ```html
24
+ * <daikin-progress-indicator-item state="unfinished">
25
+ * Progress indicator label
26
+ * <span slot="description">Progress indicator description</span>
27
+ * </daikin-progress-indicator-item>
28
+ * ```
29
+ */
30
+ export declare class DaikinProgressIndicatorItem extends LitElement {
31
+ static readonly styles: import('lit').CSSResult;
32
+ /**
33
+ * Status of the progress indicator item
34
+ */
35
+ status: ProgressIndicatorItemVariantProps["status"];
36
+ current: boolean;
37
+ render(): import('lit-html').TemplateResult<1>;
38
+ }
39
+ declare global {
40
+ interface HTMLElementTagNameMap {
41
+ "daikin-progress-indicator-item": DaikinProgressIndicatorItem;
42
+ }
43
+ }
44
+ export default DaikinProgressIndicatorItem;
@@ -0,0 +1,93 @@
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 { ifDefined } from "lit/directives/if-defined.js";
5
+ import tailwindStyles from "../../tailwind.css.js";
6
+ import "../icon/daikin-icon.js";
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __decorateClass = (decorators, target, key, kind) => {
10
+ 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])
13
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
14
+ if (kind && result) __defProp(target, key, result);
15
+ return result;
16
+ };
17
+ const cvaContainer = cva(
18
+ [
19
+ "flex",
20
+ "flex-col",
21
+ "gap-1",
22
+ "w-full",
23
+ "text-system-element-text-primary",
24
+ "pt-1",
25
+ "border-t-4",
26
+ "font-daikinSerif"
27
+ ],
28
+ {
29
+ variants: {
30
+ status: {
31
+ unfinished: ["border-system-state-disabled"],
32
+ inprogress: ["border-system-state-primary-active"],
33
+ finished: ["border-system-state-primary-active"]
34
+ }
35
+ }
36
+ }
37
+ );
38
+ const cvaLabel = cva(
39
+ ["flex", "items-center", "gap-2", "font-bold", "leading-5"],
40
+ {
41
+ variants: {
42
+ status: {
43
+ unfinished: [],
44
+ inprogress: [],
45
+ finished: [
46
+ "after:size-4",
47
+ "after:i-daikin-status-success",
48
+ "after:text-system-state-primary-active"
49
+ ]
50
+ }
51
+ }
52
+ }
53
+ );
54
+ let DaikinProgressIndicatorItem = class extends LitElement {
55
+ constructor() {
56
+ super(...arguments);
57
+ this.status = "unfinished";
58
+ this.current = false;
59
+ }
60
+ render() {
61
+ return html`<div
62
+ class=${cvaContainer({
63
+ status: this.status
64
+ })}
65
+ role="listitem"
66
+ aria-current=${ifDefined(this.current ? "step" : void 0)}
67
+ >
68
+ <slot class=${cvaLabel({ status: this.status })}></slot>
69
+ <slot name="description" class="text-sm leading-[18px]"></slot>
70
+ </div>`;
71
+ }
72
+ };
73
+ DaikinProgressIndicatorItem.styles = css`
74
+ ${unsafeCSS(tailwindStyles)}
75
+
76
+ :host {
77
+ display: block;
78
+ width: 100%;
79
+ min-width: 142px;
80
+ }
81
+ `;
82
+ __decorateClass([
83
+ property({ type: String, reflect: true })
84
+ ], DaikinProgressIndicatorItem.prototype, "status", 2);
85
+ __decorateClass([
86
+ property({ type: Boolean, reflect: true })
87
+ ], DaikinProgressIndicatorItem.prototype, "current", 2);
88
+ DaikinProgressIndicatorItem = __decorateClass([
89
+ customElement("daikin-progress-indicator-item")
90
+ ], DaikinProgressIndicatorItem);
91
+ export {
92
+ DaikinProgressIndicatorItem
93
+ };
@@ -0,0 +1 @@
1
+ export * from './daikin-progress-indicator-item';
@@ -0,0 +1,4 @@
1
+ import { DaikinProgressIndicatorItem } from "./daikin-progress-indicator-item.js";
2
+ export {
3
+ DaikinProgressIndicatorItem
4
+ };