@daikin-oss/design-system-web-components 0.4.0 → 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 (293) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/cjs/components/accordion/daikin-accordion.cjs +3 -10
  3. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +15 -14
  4. package/dist/cjs/components/button/daikin-button.cjs +13 -13
  5. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +35 -34
  6. package/dist/cjs/components/dropdown/daikin-dropdown.cjs +367 -0
  7. package/dist/cjs/components/dropdown/daikin-dropdown.d.ts +100 -0
  8. package/dist/cjs/components/dropdown/index.cjs +7 -0
  9. package/dist/cjs/components/dropdown/index.d.ts +1 -0
  10. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +112 -0
  11. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.ts +42 -0
  12. package/dist/cjs/components/dropdown-item/index.cjs +7 -0
  13. package/dist/cjs/components/dropdown-item/index.d.ts +1 -0
  14. package/dist/cjs/components/icon/icons.json.cjs +10 -6
  15. package/dist/cjs/components/icon/icons.json.d.ts +10 -6
  16. package/dist/cjs/components/index.cjs +31 -6
  17. package/dist/cjs/components/index.d.ts +7 -2
  18. package/dist/cjs/components/input-group/daikin-input-group.cjs +103 -46
  19. package/dist/cjs/components/input-group/daikin-input-group.d.ts +65 -27
  20. package/dist/cjs/components/list-item/daikin-list-item.cjs +16 -10
  21. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +1 -1
  22. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +75 -0
  23. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.ts +47 -0
  24. package/dist/cjs/components/progress-indicator/index.cjs +7 -0
  25. package/dist/cjs/components/progress-indicator/index.d.ts +1 -0
  26. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +92 -0
  27. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +44 -0
  28. package/dist/cjs/components/progress-indicator-item/index.cjs +7 -0
  29. package/dist/cjs/components/progress-indicator-item/index.d.ts +1 -0
  30. package/dist/cjs/components/radio/daikin-radio.cjs +38 -17
  31. package/dist/cjs/components/radio/daikin-radio.d.ts +14 -0
  32. package/dist/cjs/components/radio-group/daikin-radio-group.cjs +144 -0
  33. package/dist/cjs/components/radio-group/daikin-radio-group.d.ts +82 -0
  34. package/dist/cjs/components/radio-group/index.cjs +7 -0
  35. package/dist/cjs/components/radio-group/index.d.ts +1 -0
  36. package/dist/cjs/components/select/daikin-select.cjs +160 -0
  37. package/dist/cjs/components/select/daikin-select.d.ts +60 -0
  38. package/dist/cjs/components/select/index.cjs +7 -0
  39. package/dist/cjs/components/select/index.d.ts +1 -0
  40. package/dist/cjs/components/tab/daikin-tab.cjs +27 -22
  41. package/dist/cjs/components/tab-panels/daikin-tab-panels.d.ts +3 -3
  42. package/dist/cjs/components/tabs/daikin-tabs.cjs +6 -1
  43. package/dist/cjs/components/tabs/daikin-tabs.d.ts +1 -5
  44. package/dist/cjs/components/text-area/daikin-text-area.cjs +164 -0
  45. package/dist/{es/components/textarea/daikin-textarea.d.ts → cjs/components/text-area/daikin-text-area.d.ts} +31 -24
  46. package/dist/cjs/components/text-area/index.cjs +7 -0
  47. package/dist/cjs/components/text-area/index.d.ts +1 -0
  48. package/dist/cjs/components/text-field/daikin-text-field.cjs +211 -0
  49. package/dist/cjs/components/text-field/daikin-text-field.d.ts +94 -0
  50. package/dist/cjs/components/text-field/index.cjs +7 -0
  51. package/dist/cjs/components/text-field/index.d.ts +1 -0
  52. package/dist/cjs/components/toggle/daikin-toggle.cjs +12 -12
  53. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +77 -70
  54. package/dist/cjs/components/tooltip/daikin-tooltip.d.ts +35 -15
  55. package/dist/cjs/controllers/click-outside.cjs +29 -0
  56. package/dist/cjs/controllers/click-outside.d.ts +37 -0
  57. package/dist/cjs/controllers/floating-ui-auto-update.cjs +75 -0
  58. package/dist/cjs/controllers/floating-ui-auto-update.d.ts +22 -0
  59. package/dist/cjs/controllers/helpers/controller-directive.cjs +50 -0
  60. package/dist/cjs/controllers/helpers/controller-directive.d.ts +12 -0
  61. package/dist/cjs/index.cjs +31 -6
  62. package/dist/cjs/tailwind.css.cjs +1 -1
  63. package/dist/cjs/utils/reDispatch.cjs +10 -0
  64. package/dist/cjs/utils/reDispatch.d.ts +1 -0
  65. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +3 -10
  66. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +15 -14
  67. package/dist/cjs-dev/components/button/daikin-button.cjs +13 -13
  68. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +35 -34
  69. package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +367 -0
  70. package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.ts +100 -0
  71. package/dist/cjs-dev/components/dropdown/index.cjs +7 -0
  72. package/dist/cjs-dev/components/dropdown/index.d.ts +1 -0
  73. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +112 -0
  74. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.ts +42 -0
  75. package/dist/cjs-dev/components/dropdown-item/index.cjs +7 -0
  76. package/dist/cjs-dev/components/dropdown-item/index.d.ts +1 -0
  77. package/dist/cjs-dev/components/icon/icons.json.cjs +10 -6
  78. package/dist/cjs-dev/components/icon/icons.json.d.ts +10 -6
  79. package/dist/cjs-dev/components/index.cjs +31 -6
  80. package/dist/cjs-dev/components/index.d.ts +7 -2
  81. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +103 -46
  82. package/dist/cjs-dev/components/input-group/daikin-input-group.d.ts +65 -27
  83. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +16 -10
  84. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +1 -1
  85. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +85 -0
  86. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.ts +47 -0
  87. package/dist/cjs-dev/components/progress-indicator/index.cjs +7 -0
  88. package/dist/cjs-dev/components/progress-indicator/index.d.ts +1 -0
  89. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +92 -0
  90. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +44 -0
  91. package/dist/cjs-dev/components/progress-indicator-item/index.cjs +7 -0
  92. package/dist/cjs-dev/components/progress-indicator-item/index.d.ts +1 -0
  93. package/dist/cjs-dev/components/radio/daikin-radio.cjs +38 -17
  94. package/dist/cjs-dev/components/radio/daikin-radio.d.ts +14 -0
  95. package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +144 -0
  96. package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.ts +82 -0
  97. package/dist/cjs-dev/components/radio-group/index.cjs +7 -0
  98. package/dist/cjs-dev/components/radio-group/index.d.ts +1 -0
  99. package/dist/cjs-dev/components/select/daikin-select.cjs +160 -0
  100. package/dist/cjs-dev/components/select/daikin-select.d.ts +60 -0
  101. package/dist/cjs-dev/components/select/index.cjs +7 -0
  102. package/dist/cjs-dev/components/select/index.d.ts +1 -0
  103. package/dist/cjs-dev/components/tab/daikin-tab.cjs +27 -22
  104. package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.ts +3 -3
  105. package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +6 -1
  106. package/dist/cjs-dev/components/tabs/daikin-tabs.d.ts +1 -5
  107. package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +164 -0
  108. package/dist/{es-dev/components/textarea/daikin-textarea.d.ts → cjs-dev/components/text-area/daikin-text-area.d.ts} +31 -24
  109. package/dist/cjs-dev/components/text-area/index.cjs +7 -0
  110. package/dist/cjs-dev/components/text-area/index.d.ts +1 -0
  111. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +211 -0
  112. package/dist/cjs-dev/components/text-field/daikin-text-field.d.ts +94 -0
  113. package/dist/cjs-dev/components/text-field/index.cjs +7 -0
  114. package/dist/cjs-dev/components/text-field/index.d.ts +1 -0
  115. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +12 -12
  116. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +77 -70
  117. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.ts +35 -15
  118. package/dist/cjs-dev/controllers/click-outside.cjs +29 -0
  119. package/dist/cjs-dev/controllers/click-outside.d.ts +37 -0
  120. package/dist/cjs-dev/controllers/floating-ui-auto-update.cjs +82 -0
  121. package/dist/cjs-dev/controllers/floating-ui-auto-update.d.ts +22 -0
  122. package/dist/cjs-dev/controllers/helpers/controller-directive.cjs +50 -0
  123. package/dist/cjs-dev/controllers/helpers/controller-directive.d.ts +12 -0
  124. package/dist/cjs-dev/index.cjs +31 -6
  125. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  126. package/dist/cjs-dev/utils/reDispatch.cjs +10 -0
  127. package/dist/cjs-dev/utils/reDispatch.d.ts +1 -0
  128. package/dist/es/components/accordion/daikin-accordion.js +3 -10
  129. package/dist/es/components/accordion-item/daikin-accordion-item.js +15 -14
  130. package/dist/es/components/button/daikin-button.js +13 -13
  131. package/dist/es/components/checkbox/daikin-checkbox.js +35 -34
  132. package/dist/es/components/dropdown/daikin-dropdown.d.ts +100 -0
  133. package/dist/es/components/dropdown/daikin-dropdown.js +368 -0
  134. package/dist/es/components/dropdown/index.d.ts +1 -0
  135. package/dist/es/components/dropdown/index.js +4 -0
  136. package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +42 -0
  137. package/dist/es/components/dropdown-item/daikin-dropdown-item.js +113 -0
  138. package/dist/es/components/dropdown-item/index.d.ts +1 -0
  139. package/dist/es/components/dropdown-item/index.js +4 -0
  140. package/dist/es/components/icon/icons.json.d.ts +10 -6
  141. package/dist/es/components/icon/icons.json.js +10 -6
  142. package/dist/es/components/index.d.ts +7 -2
  143. package/dist/es/components/index.js +14 -4
  144. package/dist/es/components/input-group/daikin-input-group.d.ts +65 -27
  145. package/dist/es/components/input-group/daikin-input-group.js +105 -48
  146. package/dist/es/components/list-item/daikin-list-item.js +16 -10
  147. package/dist/es/components/progress-bar/daikin-progress-bar.js +1 -1
  148. package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +47 -0
  149. package/dist/es/components/progress-indicator/daikin-progress-indicator.js +76 -0
  150. package/dist/es/components/progress-indicator/index.d.ts +1 -0
  151. package/dist/es/components/progress-indicator/index.js +4 -0
  152. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +44 -0
  153. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +93 -0
  154. package/dist/es/components/progress-indicator-item/index.d.ts +1 -0
  155. package/dist/es/components/progress-indicator-item/index.js +4 -0
  156. package/dist/es/components/radio/daikin-radio.d.ts +14 -0
  157. package/dist/es/components/radio/daikin-radio.js +39 -18
  158. package/dist/es/components/radio-group/daikin-radio-group.d.ts +82 -0
  159. package/dist/es/components/radio-group/daikin-radio-group.js +145 -0
  160. package/dist/es/components/radio-group/index.d.ts +1 -0
  161. package/dist/es/components/radio-group/index.js +4 -0
  162. package/dist/es/components/select/daikin-select.d.ts +60 -0
  163. package/dist/es/components/select/daikin-select.js +161 -0
  164. package/dist/es/components/select/index.d.ts +1 -0
  165. package/dist/es/components/select/index.js +4 -0
  166. package/dist/es/components/tab/daikin-tab.js +27 -22
  167. package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +3 -3
  168. package/dist/es/components/tabs/daikin-tabs.d.ts +1 -5
  169. package/dist/es/components/tabs/daikin-tabs.js +6 -1
  170. package/dist/{cjs/components/textarea/daikin-textarea.d.ts → es/components/text-area/daikin-text-area.d.ts} +31 -24
  171. package/dist/es/components/text-area/daikin-text-area.js +165 -0
  172. package/dist/es/components/text-area/index.d.ts +1 -0
  173. package/dist/es/components/text-area/index.js +4 -0
  174. package/dist/es/components/text-field/daikin-text-field.d.ts +94 -0
  175. package/dist/es/components/text-field/daikin-text-field.js +212 -0
  176. package/dist/es/components/text-field/index.d.ts +1 -0
  177. package/dist/es/components/text-field/index.js +4 -0
  178. package/dist/es/components/toggle/daikin-toggle.js +12 -12
  179. package/dist/es/components/tooltip/daikin-tooltip.d.ts +35 -15
  180. package/dist/es/components/tooltip/daikin-tooltip.js +78 -71
  181. package/dist/es/controllers/click-outside.d.ts +37 -0
  182. package/dist/es/controllers/click-outside.js +29 -0
  183. package/dist/es/controllers/floating-ui-auto-update.d.ts +22 -0
  184. package/dist/es/controllers/floating-ui-auto-update.js +75 -0
  185. package/dist/es/controllers/helpers/controller-directive.d.ts +12 -0
  186. package/dist/es/controllers/helpers/controller-directive.js +50 -0
  187. package/dist/es/index.js +14 -4
  188. package/dist/es/tailwind.css.js +1 -1
  189. package/dist/es/utils/reDispatch.d.ts +1 -0
  190. package/dist/es/utils/reDispatch.js +10 -0
  191. package/dist/es-dev/components/accordion/daikin-accordion.js +3 -10
  192. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +15 -14
  193. package/dist/es-dev/components/button/daikin-button.js +13 -13
  194. package/dist/es-dev/components/checkbox/daikin-checkbox.js +35 -34
  195. package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +100 -0
  196. package/dist/es-dev/components/dropdown/daikin-dropdown.js +368 -0
  197. package/dist/es-dev/components/dropdown/index.d.ts +1 -0
  198. package/dist/es-dev/components/dropdown/index.js +4 -0
  199. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +42 -0
  200. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +113 -0
  201. package/dist/es-dev/components/dropdown-item/index.d.ts +1 -0
  202. package/dist/es-dev/components/dropdown-item/index.js +4 -0
  203. package/dist/es-dev/components/icon/icons.json.d.ts +10 -6
  204. package/dist/es-dev/components/icon/icons.json.js +10 -6
  205. package/dist/es-dev/components/index.d.ts +7 -2
  206. package/dist/es-dev/components/index.js +14 -4
  207. package/dist/es-dev/components/input-group/daikin-input-group.d.ts +65 -27
  208. package/dist/es-dev/components/input-group/daikin-input-group.js +105 -48
  209. package/dist/es-dev/components/list-item/daikin-list-item.js +16 -10
  210. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +1 -1
  211. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +47 -0
  212. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +86 -0
  213. package/dist/es-dev/components/progress-indicator/index.d.ts +1 -0
  214. package/dist/es-dev/components/progress-indicator/index.js +4 -0
  215. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +44 -0
  216. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +93 -0
  217. package/dist/es-dev/components/progress-indicator-item/index.d.ts +1 -0
  218. package/dist/es-dev/components/progress-indicator-item/index.js +4 -0
  219. package/dist/es-dev/components/radio/daikin-radio.d.ts +14 -0
  220. package/dist/es-dev/components/radio/daikin-radio.js +39 -18
  221. package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +82 -0
  222. package/dist/es-dev/components/radio-group/daikin-radio-group.js +145 -0
  223. package/dist/es-dev/components/radio-group/index.d.ts +1 -0
  224. package/dist/es-dev/components/radio-group/index.js +4 -0
  225. package/dist/es-dev/components/select/daikin-select.d.ts +60 -0
  226. package/dist/es-dev/components/select/daikin-select.js +161 -0
  227. package/dist/es-dev/components/select/index.d.ts +1 -0
  228. package/dist/es-dev/components/select/index.js +4 -0
  229. package/dist/es-dev/components/tab/daikin-tab.js +27 -22
  230. package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +3 -3
  231. package/dist/es-dev/components/tabs/daikin-tabs.d.ts +1 -5
  232. package/dist/es-dev/components/tabs/daikin-tabs.js +6 -1
  233. package/dist/{cjs-dev/components/textarea/daikin-textarea.d.ts → es-dev/components/text-area/daikin-text-area.d.ts} +31 -24
  234. package/dist/es-dev/components/text-area/daikin-text-area.js +165 -0
  235. package/dist/es-dev/components/text-area/index.d.ts +1 -0
  236. package/dist/es-dev/components/text-area/index.js +4 -0
  237. package/dist/es-dev/components/text-field/daikin-text-field.d.ts +94 -0
  238. package/dist/es-dev/components/text-field/daikin-text-field.js +212 -0
  239. package/dist/es-dev/components/text-field/index.d.ts +1 -0
  240. package/dist/es-dev/components/text-field/index.js +4 -0
  241. package/dist/es-dev/components/toggle/daikin-toggle.js +12 -12
  242. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +35 -15
  243. package/dist/es-dev/components/tooltip/daikin-tooltip.js +78 -71
  244. package/dist/es-dev/controllers/click-outside.d.ts +37 -0
  245. package/dist/es-dev/controllers/click-outside.js +29 -0
  246. package/dist/es-dev/controllers/floating-ui-auto-update.d.ts +22 -0
  247. package/dist/es-dev/controllers/floating-ui-auto-update.js +82 -0
  248. package/dist/es-dev/controllers/helpers/controller-directive.d.ts +12 -0
  249. package/dist/es-dev/controllers/helpers/controller-directive.js +50 -0
  250. package/dist/es-dev/index.js +14 -4
  251. package/dist/es-dev/tailwind.css.js +1 -1
  252. package/dist/es-dev/utils/reDispatch.d.ts +1 -0
  253. package/dist/es-dev/utils/reDispatch.js +10 -0
  254. package/icons/dropdown-check.svg +3 -0
  255. package/icons/dropdown-chevron-down.svg +3 -0
  256. package/icons/required.svg +3 -0
  257. package/icons/status-error.svg +1 -1
  258. package/icons/{notification-status-negative.svg → status-negative.svg} +1 -1
  259. package/icons/status-positive.svg +4 -14
  260. package/icons/status-success.svg +6 -0
  261. package/package.json +2 -2
  262. package/dist/cjs/components/text-input/daikin-text-input.cjs +0 -138
  263. package/dist/cjs/components/text-input/daikin-text-input.d.ts +0 -73
  264. package/dist/cjs/components/text-input/index.cjs +0 -7
  265. package/dist/cjs/components/text-input/index.d.ts +0 -1
  266. package/dist/cjs/components/textarea/daikin-textarea.cjs +0 -168
  267. package/dist/cjs/components/textarea/index.cjs +0 -7
  268. package/dist/cjs/components/textarea/index.d.ts +0 -1
  269. package/dist/cjs-dev/components/text-input/daikin-text-input.cjs +0 -138
  270. package/dist/cjs-dev/components/text-input/daikin-text-input.d.ts +0 -73
  271. package/dist/cjs-dev/components/text-input/index.cjs +0 -7
  272. package/dist/cjs-dev/components/text-input/index.d.ts +0 -1
  273. package/dist/cjs-dev/components/textarea/daikin-textarea.cjs +0 -168
  274. package/dist/cjs-dev/components/textarea/index.cjs +0 -7
  275. package/dist/cjs-dev/components/textarea/index.d.ts +0 -1
  276. package/dist/es/components/text-input/daikin-text-input.d.ts +0 -73
  277. package/dist/es/components/text-input/daikin-text-input.js +0 -139
  278. package/dist/es/components/text-input/index.d.ts +0 -1
  279. package/dist/es/components/text-input/index.js +0 -4
  280. package/dist/es/components/textarea/daikin-textarea.js +0 -169
  281. package/dist/es/components/textarea/index.d.ts +0 -1
  282. package/dist/es/components/textarea/index.js +0 -4
  283. package/dist/es-dev/components/text-input/daikin-text-input.d.ts +0 -73
  284. package/dist/es-dev/components/text-input/daikin-text-input.js +0 -139
  285. package/dist/es-dev/components/text-input/index.d.ts +0 -1
  286. package/dist/es-dev/components/text-input/index.js +0 -4
  287. package/dist/es-dev/components/textarea/daikin-textarea.js +0 -169
  288. package/dist/es-dev/components/textarea/index.d.ts +0 -1
  289. package/dist/es-dev/components/textarea/index.js +0 -4
  290. package/icons/notification-status-positive.svg +0 -5
  291. /package/icons/{notification-status-alarm.svg → status-alarm.svg} +0 -0
  292. /package/icons/{notification-status-information.svg → status-information.svg} +0 -0
  293. /package/icons/{notification-status-warning.svg → status-warning.svg} +0 -0
@@ -4,18 +4,23 @@ import { DaikinBreadcrumb } from "./breadcrumb/daikin-breadcrumb.js";
4
4
  import { DaikinBreadcrumbItem } from "./breadcrumb-item/daikin-breadcrumb-item.js";
5
5
  import { DaikinButton } from "./button/daikin-button.js";
6
6
  import { DaikinCheckbox } from "./checkbox/daikin-checkbox.js";
7
+ import { DaikinDropdown } from "./dropdown/daikin-dropdown.js";
8
+ import { DaikinDropdownItem } from "./dropdown-item/daikin-dropdown-item.js";
7
9
  import { DaikinIcon, iconList } from "./icon/daikin-icon.js";
8
10
  import { DaikinInputGroup } from "./input-group/daikin-input-group.js";
9
11
  import { DaikinList } from "./list/daikin-list.js";
10
12
  import { DaikinListItem } from "./list-item/daikin-list-item.js";
11
13
  import { DaikinNotification } from "./notification/daikin-notification.js";
12
14
  import { DaikinProgressBar } from "./progress-bar/daikin-progress-bar.js";
15
+ import { DaikinProgressIndicator } from "./progress-indicator/daikin-progress-indicator.js";
16
+ import { DaikinProgressIndicatorItem } from "./progress-indicator-item/daikin-progress-indicator-item.js";
13
17
  import { DaikinRadio } from "./radio/daikin-radio.js";
18
+ import { DaikinSelect } from "./select/daikin-select.js";
14
19
  import { DaikinTab } from "./tab/daikin-tab.js";
15
20
  import { DaikinTabPanels } from "./tab-panels/daikin-tab-panels.js";
16
21
  import { DaikinTabs } from "./tabs/daikin-tabs.js";
17
- import { DaikinTextInput } from "./text-input/daikin-text-input.js";
18
- import { DaikinTextarea } from "./textarea/daikin-textarea.js";
22
+ import { DaikinTextArea } from "./text-area/daikin-text-area.js";
23
+ import { DaikinTextField } from "./text-field/daikin-text-field.js";
19
24
  import { DaikinToggle } from "./toggle/daikin-toggle.js";
20
25
  import { DaikinTooltip } from "./tooltip/daikin-tooltip.js";
21
26
  export {
@@ -25,18 +30,23 @@ export {
25
30
  DaikinBreadcrumbItem,
26
31
  DaikinButton,
27
32
  DaikinCheckbox,
33
+ DaikinDropdown,
34
+ DaikinDropdownItem,
28
35
  DaikinIcon,
29
36
  DaikinInputGroup,
30
37
  DaikinList,
31
38
  DaikinListItem,
32
39
  DaikinNotification,
33
40
  DaikinProgressBar,
41
+ DaikinProgressIndicator,
42
+ DaikinProgressIndicatorItem,
34
43
  DaikinRadio,
44
+ DaikinSelect,
35
45
  DaikinTab,
36
46
  DaikinTabPanels,
37
47
  DaikinTabs,
38
- DaikinTextInput,
39
- DaikinTextarea,
48
+ DaikinTextArea,
49
+ DaikinTextField,
40
50
  DaikinToggle,
41
51
  DaikinTooltip,
42
52
  iconList
@@ -1,71 +1,109 @@
1
1
  import { LitElement } from 'lit';
2
- import { DaikinTextInput } from '../text-input/daikin-text-input';
3
- import { DaikinTextarea } from '../textarea/daikin-textarea';
4
- type ControlElement = DaikinTextInput | DaikinTextarea;
5
2
  /**
6
- * The input group component serves as a wrapper for a `daikin-text-input` or `daikin-textarea` component, providing additional elements such as labels, helper texts, or a counter.
3
+ * The input group component serves as a wrapper for an input control component (full list below), providing additional elements such as label text, helper text, or a counter.
7
4
  * It enhances the user experience by associating supplementary information or functionality directly with the input field.
8
5
  * This component is particularly useful for creating complex forms where clear communication and guidance are essential.
9
6
  *
10
7
  * Hierarchies:
11
- * - `daikin-input-group` > `daikin-text-input`
12
- * - `daikin-input-group` > `daikin-textarea`
8
+ * - `daikin-input-group` > `daikin-select`
9
+ * - `daikin-input-group` > `daikin-dropdown` > `daikin-dropdown-item`
10
+ * - `daikin-input-group` > `daikin-text-area`
11
+ * - `daikin-input-group` > `daikin-text-field`
12
+ * - `daikin-input-group` > `daikin-radio-group` > `daikin-radio`
13
13
  *
14
- * @slot - A slot for a input component. Place a `daikin-text-input` or `daikin-textarea` element here.
14
+ * @slot - A slot for an input component. See **Hierarchies** for supported components.
15
15
  *
16
16
  * @example
17
17
  *
18
18
  * ```js
19
19
  * import "@daikin-oss/design-system-web-components/components/input-group/index.js";
20
- * import "@daikin-oss/design-system-web-components/components/text-input/index.js";
21
- * import "@daikin-oss/design-system-web-components/components/textarea/index.js";
20
+ * import "@daikin-oss/design-system-web-components/components/select/index.js";
21
+ * import "@daikin-oss/design-system-web-components/components/text-area/index.js";
22
+ * import "@daikin-oss/design-system-web-components/components/text-field/index.js";
22
23
  * ```
23
24
  *
24
- * With Text Input:
25
+ * With Dropdown:
25
26
  *
26
27
  * ```html
27
28
  * <daikin-input-group>
28
- * <daikin-text-input value="Content of Text Input"></daikin-text-input>
29
+ * <daikin-dropdown value="Value of Dropdown">
30
+ * <daikin-dropdown-item value="Value of Dropdown Item">
31
+ * Dropdown item 1
32
+ * </daikin-dropdown-item>
33
+ * </daikin-dropdown>
29
34
  * </daikin-input-group>
30
35
  * ```
31
36
  *
32
- * With Textarea:
37
+ * With Select:
33
38
  *
34
39
  * ```html
35
40
  * <daikin-input-group>
36
- * <daikin-textarea value="Content of Textarea"></daikin-textarea>
41
+ * <daikin-select>
42
+ * <select name="select">
43
+ * <option value="value1">Option 1</option>
44
+ * <option value="value2">Option 2</option>
45
+ * <option value="value3">Option 3</option>
46
+ * </select>
47
+ * </daikin-select>
37
48
  * </daikin-input-group>
38
49
  * ```
50
+ *
51
+ * With Text Field:
52
+ *
53
+ * ```html
54
+ * <daikin-input-group>
55
+ * <daikin-text-field value="Content of Text Field"></daikin-text-field>
56
+ * </daikin-input-group>
57
+ * ```
58
+ *
59
+ * With TextArea:
60
+ *
61
+ * ```html
62
+ * <daikin-input-group>
63
+ * <daikin-text-area value="Content of TextArea"></daikin-text-area>
64
+ * </daikin-input-group>
65
+ * ```
66
+ * ```
39
67
  */
40
68
  export declare class DaikinInputGroup extends LitElement {
41
69
  static readonly styles: import('lit').CSSResult;
42
70
  /**
43
- * Label text to place at the top of the field
71
+ * Label text displayed at the top of the field.
44
72
  */
45
- label?: string;
73
+ label: string | null;
46
74
  /**
47
- * Helper text to place at the bottom of the field. In error conditions, this text is hidden.
75
+ * Helper text displayed at the top of the field.
76
+ * If `error` is specified and `disabled` is `false`, that takes precedence and helper text is not displayed.
48
77
  */
49
- helper?: string;
78
+ helper: string | null;
50
79
  /**
51
- * Whether the field is disabled. Reflected in the `disabled` property of the input in the slot.
80
+ * Text indicating that the field is required.
81
+ * If a non-empty string is set,
82
+ * - the text will be displayed in red to the right of the label, and
83
+ * - the `required` attribute will be set for the input control in the slot.
84
+ * Ignored if `disabled` is `true`.
52
85
  */
53
- disabled: boolean;
86
+ required: string | null;
54
87
  /**
55
- * Whether the field is required. An additional star mark will be added if `true`.
88
+ * Error text displayed at the top of the field.
89
+ * Ignored if `disabled` is `true`.
90
+ * Reflected in presence of `error` attribute of the input control in the slot.
56
91
  */
57
- required: boolean;
92
+ error: string | null;
58
93
  /**
59
- * Error text to place at the bottom of the field. If specified, sets the `error` property of the element in the slot to `true`. Ignored if the `disabled` is `true`.
94
+ * Whether the field is disabled.
95
+ * Reflected in `disabled` attribute of the input control in the slot.
60
96
  */
61
- error: string;
97
+ disabled: boolean;
62
98
  /**
63
- * Whether to display the counter in the Textarea
99
+ * Maximum value to display on the counter. When `null`, the counter will be hidden.
64
100
  */
65
- textareaCounter: boolean;
66
- _textareas: DaikinTextarea[];
67
- _controls: ControlElement[];
101
+ textareaMaxCount: number | null;
102
+ private readonly _textareas;
103
+ private readonly _controls;
104
+ private _textareaCount;
68
105
  private _handleSlotChange;
106
+ private _handleInput;
69
107
  private _reflectSlotProperties;
70
108
  render(): import('lit-html').TemplateResult<1>;
71
109
  updated(): void;
@@ -1,7 +1,7 @@
1
1
  import { 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";
4
- import { property, queryAssignedElements, customElement } from "lit/decorators.js";
3
+ import { css, unsafeCSS, LitElement, html, nothing } from "lit";
4
+ import { property, queryAssignedElements, state, customElement } from "lit/decorators.js";
5
5
  import tailwindStyles from "../../tailwind.css.js";
6
6
  var __defProp = Object.defineProperty;
7
7
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -13,64 +13,116 @@ var __decorateClass = (decorators, target, key, kind) => {
13
13
  if (kind && result) __defProp(target, key, result);
14
14
  return result;
15
15
  };
16
- const cvaLabel = cva(["text-base", "font-bold"], {
16
+ const cvaLabel = cva(["flex", "items-center", "font-bold", "leading-5"], {
17
17
  variants: {
18
- variant: {
19
- enabled: ["text-daikinNeutral-800"],
20
- disabled: ["text-daikinNeutral-200"]
21
- },
22
- required: {
23
- optional: [],
24
- required: ["after:content-['*']", "after:ml-[2px]"]
18
+ disabled: {
19
+ false: [],
20
+ true: ["text-system-state-disabled"]
25
21
  }
26
22
  }
27
23
  });
28
- const cvaHelper = cva(["h-[22px]", "text-xs"], {
24
+ const cvaHelper = cva(
25
+ ["flex", "gap-1", "items-center", "leading-5", "text-sm"],
26
+ {
27
+ variants: {
28
+ type: {
29
+ helper: [],
30
+ helperDisabled: ["text-system-state-disabled"],
31
+ error: [
32
+ "text-system-state-error-active",
33
+ "font-bold",
34
+ "before:size-4",
35
+ "before:i-daikin-status-error"
36
+ ],
37
+ none: ["hidden"]
38
+ }
39
+ }
40
+ }
41
+ );
42
+ const cvaCounter = cva(["text-sm", "font-bold"], {
43
+ variants: {
44
+ disabled: {
45
+ false: ["text-system-element-text-secondary"],
46
+ true: ["text-system-state-disabled"]
47
+ }
48
+ }
49
+ });
50
+ const cvaCounterValueLength = cva([], {
29
51
  variants: {
30
- variant: {
31
- enabled: ["text-daikinNeutral-800"],
32
- disabled: ["text-daikinNeutral-200"]
52
+ error: {
53
+ false: [],
54
+ true: ["text-system-state-error-active"]
33
55
  }
34
56
  }
35
57
  });
36
58
  let DaikinInputGroup = class extends LitElement {
37
59
  constructor() {
38
60
  super(...arguments);
61
+ this.label = null;
62
+ this.helper = null;
63
+ this.required = null;
64
+ this.error = null;
39
65
  this.disabled = false;
40
- this.required = false;
41
- this.error = "";
42
- this.textareaCounter = false;
66
+ this.textareaMaxCount = null;
67
+ this._textareaCount = null;
43
68
  }
44
69
  _handleSlotChange() {
45
70
  this._reflectSlotProperties();
71
+ const textarea = this._textareas[0];
72
+ this._textareaCount = (textarea == null ? void 0 : textarea.count) ?? null;
73
+ }
74
+ _handleInput(event) {
75
+ if (event.target.tagName === "DAIKIN-TEXT-AREA") {
76
+ this._textareaCount = event.target.count;
77
+ }
46
78
  }
47
79
  _reflectSlotProperties() {
48
- const isError = !this.disabled && !!this.error;
49
80
  for (const control of this._controls) {
50
- control.disabled = !!this.disabled;
51
- control.error = isError;
52
- }
53
- for (const item of this._textareas) {
54
- item.counter = this.textareaCounter;
81
+ control.reflectInputGroup(this);
55
82
  }
56
83
  }
57
84
  render() {
58
- const inputGroupLabelClassName = cvaLabel({
59
- variant: this.disabled ? "disabled" : "enabled",
60
- required: this.required ? "required" : "optional"
61
- });
62
- const inputGroupHelperClassName = cvaHelper({
63
- variant: this.disabled ? "disabled" : "enabled"
64
- });
85
+ const helperType = this.error && !this.disabled ? "error" : this.helper ? this.disabled ? "helperDisabled" : "helper" : "none";
86
+ const helperText = {
87
+ error: this.error,
88
+ helper: this.helper,
89
+ helperDisabled: this.helper,
90
+ none: ""
91
+ }[helperType];
65
92
  return html`<fieldset class="content" ?disabled=${this.disabled}>
66
- <label class="flex flex-col justify-center w-max gap-1 font-daikinSerif">
67
- ${this.label ? html`<span class=${inputGroupLabelClassName}>${this.label}</span>` : null}
68
- <slot @slotchange=${this._handleSlotChange}></slot>
69
- ${this.helper && !this.error ? html`<span class=${inputGroupHelperClassName}>${this.helper}</span>` : null}
70
- ${!this.disabled && !!this.error ? html`<span
71
- class="flex gap-2 text-[--input-group-border-color-error] leading-[22px] before:i-daikin-status-error before:block before:w-[16px] before:h-[22px]"
72
- >${this.error}</span
73
- >` : null}
93
+ <label
94
+ class="flex flex-col justify-center gap-2 w-full text-system-element-text-primary font-daikinSerif"
95
+ >
96
+ <div class="flex justify-between items-center gap-2">
97
+ <div class="flex items-center gap-1 font-bold">
98
+ ${this.label ? html`<span class=${cvaLabel({ disabled: this.disabled })}>
99
+ ${this.label}
100
+ </span>` : nothing}
101
+ ${this.required && !this.disabled ? html`<span class="text-system-state-error-active text-xs">
102
+ ${this.required}
103
+ </span>` : nothing}
104
+ </div>
105
+ ${this.textareaMaxCount != null && this._textareaCount != null ? html`
106
+ <span class=${cvaCounter({ disabled: this.disabled })}>
107
+ <span
108
+ class=${cvaCounterValueLength({
109
+ error: this.textareaMaxCount < this._textareaCount
110
+ })}
111
+ >${this._textareaCount}</span
112
+ ><span>/</span><span>${this.textareaMaxCount}</span>
113
+ </span>
114
+ ` : nothing}
115
+ </div>
116
+ <span
117
+ class=${cvaHelper({ type: helperType })}
118
+ aria-live=${helperType === "error" ? "polite" : "off"}
119
+ >
120
+ ${helperText}
121
+ </span>
122
+ <slot
123
+ @slotchange=${this._handleSlotChange}
124
+ @input=${this._handleInput}
125
+ ></slot>
74
126
  </label>
75
127
  </fieldset>`;
76
128
  }
@@ -85,33 +137,38 @@ DaikinInputGroup.styles = css`
85
137
  --input-group-border-color-error: ${unsafeCSS(colorFeedbackNegative)};
86
138
 
87
139
  display: block;
88
- width: max-content;
140
+ width: 100%;
89
141
  }
90
142
  `;
91
143
  __decorateClass([
92
- property({ type: String })
144
+ property({ type: String, reflect: true })
93
145
  ], DaikinInputGroup.prototype, "label", 2);
94
146
  __decorateClass([
95
- property({ type: String })
147
+ property({ type: String, reflect: true })
96
148
  ], DaikinInputGroup.prototype, "helper", 2);
97
149
  __decorateClass([
98
- property({ type: Boolean, reflect: true })
99
- ], DaikinInputGroup.prototype, "disabled", 2);
100
- __decorateClass([
101
- property({ type: Boolean, reflect: true })
150
+ property({ type: String, reflect: true })
102
151
  ], DaikinInputGroup.prototype, "required", 2);
103
152
  __decorateClass([
104
153
  property({ type: String, reflect: true })
105
154
  ], DaikinInputGroup.prototype, "error", 2);
106
155
  __decorateClass([
107
156
  property({ type: Boolean, reflect: true })
108
- ], DaikinInputGroup.prototype, "textareaCounter", 2);
157
+ ], DaikinInputGroup.prototype, "disabled", 2);
109
158
  __decorateClass([
110
- queryAssignedElements({ selector: "daikin-textarea" })
159
+ property({ type: Number, reflect: true, attribute: "textarea-max-count" })
160
+ ], DaikinInputGroup.prototype, "textareaMaxCount", 2);
161
+ __decorateClass([
162
+ queryAssignedElements({ selector: "daikin-text-area" })
111
163
  ], DaikinInputGroup.prototype, "_textareas", 2);
112
164
  __decorateClass([
113
- queryAssignedElements({ selector: "daikin-text-input,daikin-textarea" })
165
+ queryAssignedElements({
166
+ selector: "daikin-dropdown,daikin-select,daikin-text-field,daikin-text-area,daikin-radio-group"
167
+ })
114
168
  ], DaikinInputGroup.prototype, "_controls", 2);
169
+ __decorateClass([
170
+ state()
171
+ ], DaikinInputGroup.prototype, "_textareaCount", 2);
115
172
  DaikinInputGroup = __decorateClass([
116
173
  customElement("daikin-input-group")
117
174
  ], DaikinInputGroup);
@@ -22,15 +22,23 @@ const INNER_CN = cva([
22
22
  "before:h-full",
23
23
  "focus-visible:outline-none",
24
24
  "focus-visible:before:outline",
25
- "focus-visible:before:outline-1",
26
- "focus-visible:before:-outline-offset-1",
27
- "focus-visible:before:outline-daikinBlue-700",
25
+ "focus-visible:before:outline-2",
26
+ "focus-visible:before:-outline-offset-2",
27
+ "focus-visible:before:outline-system-state-focus",
28
28
  // For buttons and links
29
- "link-enabled:before:group-hover:[&:not(:active)]:bg-[#f2f2f2]",
30
- "link-enabled:before:active:bg-daikinNeutral-100",
29
+ "link-enabled:before:group-hover:[&:not(:active)]:bg-system-background-surface-hover",
30
+ "link-enabled:before:active:bg-system-background-surface-press",
31
31
  // For text
32
- "[&:not(a,button)]:before:group-hover:bg-[#f2f2f2]"
32
+ "[&:not(a,button)]:before:group-hover:bg-system-background-surface-hover"
33
33
  ])();
34
+ const cvaContent = cva(["block", "pl-2", "pr-3", "text-left"], {
35
+ variants: {
36
+ disabled: {
37
+ false: ["text-system-element-text-primary"],
38
+ true: ["text-system-state-disabled"]
39
+ }
40
+ }
41
+ });
34
42
  let DaikinListItem = class extends LitElement {
35
43
  constructor() {
36
44
  super();
@@ -59,7 +67,7 @@ let DaikinListItem = class extends LitElement {
59
67
  <slot name="left-icon">
60
68
  <span class="block -ml-1"></span>
61
69
  </slot>
62
- <slot class="block pl-2 pr-3 text-left"></slot>
70
+ <slot class=${cvaContent({ disabled: this.disabled })}></slot>
63
71
  </span>`;
64
72
  const list = {
65
73
  button: () => html`<button type="button" class=${INNER_CN} ?disabled=${disabled}>
@@ -76,9 +84,7 @@ let DaikinListItem = class extends LitElement {
76
84
  text: () => html`<span class=${INNER_CN}>${content}</span>`
77
85
  }[this.type]();
78
86
  return html`<div
79
- class=${// We cannot directly write classes like `class="..."` as they include '&', which must be escaped. It can't be escaped either because TailwindCSS can't process it.
80
- // Set the text color here to apply to the icons on both sides along with text.
81
- "group flex justify-between items-center w-full min-h-12 p-3 text-left relative text-daikinNeutral-800 [&:has(a:not(:any-link),:disabled)]:text-daikinNeutral-200"}
87
+ class="group flex justify-between items-center w-full min-h-12 p-3 text-left relative"
82
88
  role="listitem"
83
89
  >
84
90
  ${list}
@@ -51,7 +51,7 @@ const cvaBarContainer = cva(
51
51
  completed: [
52
52
  "after:size-4",
53
53
  "after:text-daikinGreen-500",
54
- "after:i-daikin-notification-status-positive"
54
+ "after:i-daikin-status-positive"
55
55
  ],
56
56
  indeterminate: [],
57
57
  error: [
@@ -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,76 @@
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
+ return;
27
+ }
28
+ if (this.currentItem < 0) {
29
+ return;
30
+ }
31
+ items.forEach((item, i) => item.current = this.currentItem === i);
32
+ }
33
+ _handleSlotChange() {
34
+ this._setCurrentItem();
35
+ }
36
+ render() {
37
+ return html`<div
38
+ class="flex justify-stretch items-start w-full font-daikinSerif"
39
+ role="list"
40
+ >
41
+ <slot @slotchange=${this._handleSlotChange}></slot>
42
+ </div>`;
43
+ }
44
+ firstUpdated() {
45
+ this._setCurrentItem();
46
+ }
47
+ updated(changedProperties) {
48
+ if (changedProperties.has("currentItem")) {
49
+ this._setCurrentItem();
50
+ }
51
+ }
52
+ };
53
+ DaikinProgressIndicator.styles = css`
54
+ ${unsafeCSS(tailwindStyles)}
55
+
56
+ :host {
57
+ --progress-indicator-border-color-error: ${unsafeCSS(
58
+ colorFeedbackNegative
59
+ )};
60
+
61
+ display: block;
62
+ width: 100%;
63
+ }
64
+ `;
65
+ __decorateClass([
66
+ property({ type: Number, attribute: "current-item", reflect: true })
67
+ ], DaikinProgressIndicator.prototype, "currentItem", 2);
68
+ __decorateClass([
69
+ queryAssignedElements({ selector: "daikin-progress-indicator-item" })
70
+ ], DaikinProgressIndicator.prototype, "_items", 2);
71
+ DaikinProgressIndicator = __decorateClass([
72
+ customElement("daikin-progress-indicator")
73
+ ], DaikinProgressIndicator);
74
+ export {
75
+ DaikinProgressIndicator
76
+ };
@@ -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;