@daikin-oss/design-system-web-components 0.3.1 → 0.4.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 +107 -0
  2. package/dist/cjs/components/accordion/daikin-accordion.cjs +31 -6
  3. package/dist/cjs/components/accordion/daikin-accordion.d.ts +15 -10
  4. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +105 -59
  5. package/dist/cjs/components/accordion-item/daikin-accordion-item.d.ts +28 -14
  6. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +121 -0
  7. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.ts +56 -0
  8. package/dist/cjs/components/breadcrumb/index.cjs +7 -0
  9. package/dist/cjs/components/breadcrumb/index.d.ts +1 -0
  10. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +124 -0
  11. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +72 -0
  12. package/dist/cjs/components/breadcrumb-item/index.cjs +7 -0
  13. package/dist/cjs/components/breadcrumb-item/index.d.ts +1 -0
  14. package/dist/cjs/components/button/daikin-button.cjs +89 -128
  15. package/dist/cjs/components/button/daikin-button.d.ts +30 -28
  16. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +99 -119
  17. package/dist/cjs/components/checkbox/daikin-checkbox.d.ts +27 -39
  18. package/dist/cjs/components/icon/daikin-icon.d.ts +4 -1
  19. package/dist/cjs/components/icon/icons.json.cjs +20 -0
  20. package/dist/cjs/components/icon/icons.json.d.ts +20 -0
  21. package/dist/cjs/components/index.cjs +36 -6
  22. package/dist/cjs/components/index.d.ts +8 -2
  23. package/dist/cjs/components/input-group/daikin-input-group.cjs +1 -1
  24. package/dist/cjs/components/input-group/daikin-input-group.d.ts +6 -1
  25. package/dist/cjs/components/list/daikin-list.cjs +24 -0
  26. package/dist/cjs/components/list/daikin-list.d.ts +28 -0
  27. package/dist/cjs/components/list/index.cjs +7 -0
  28. package/dist/cjs/components/list/index.d.ts +1 -0
  29. package/dist/cjs/components/list-item/daikin-list-item.cjs +125 -0
  30. package/dist/cjs/components/list-item/daikin-list-item.d.ts +64 -0
  31. package/dist/cjs/components/list-item/index.cjs +7 -0
  32. package/dist/cjs/components/list-item/index.d.ts +1 -0
  33. package/dist/cjs/components/notification/daikin-notification.cjs +14 -15
  34. package/dist/cjs/components/notification/daikin-notification.d.ts +13 -12
  35. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +161 -0
  36. package/dist/cjs/components/progress-bar/daikin-progress-bar.d.ts +69 -0
  37. package/dist/cjs/components/progress-bar/index.cjs +7 -0
  38. package/dist/cjs/components/progress-bar/index.d.ts +1 -0
  39. package/dist/cjs/components/radio/daikin-radio.cjs +73 -92
  40. package/dist/cjs/components/radio/daikin-radio.d.ts +23 -40
  41. package/dist/cjs/components/tab/daikin-tab.cjs +41 -46
  42. package/dist/cjs/components/tab/daikin-tab.d.ts +12 -13
  43. package/dist/cjs/components/{panel-switcher/daikin-panel-switcher.cjs → tab-panels/daikin-tab-panels.cjs} +8 -8
  44. package/dist/{cjs-dev/components/panel-switcher/daikin-panel-switcher.d.ts → cjs/components/tab-panels/daikin-tab-panels.d.ts} +17 -12
  45. package/dist/cjs/components/tab-panels/index.cjs +7 -0
  46. package/dist/cjs/components/tab-panels/index.d.ts +1 -0
  47. package/dist/cjs/components/{tab-group/daikin-tab-group.cjs → tabs/daikin-tabs.cjs} +29 -35
  48. package/dist/cjs/components/{tab-group/daikin-tab-group.d.ts → tabs/daikin-tabs.d.ts} +27 -22
  49. package/dist/cjs/components/tabs/index.cjs +7 -0
  50. package/dist/cjs/components/tabs/index.d.ts +1 -0
  51. package/dist/cjs/components/text-input/daikin-text-input.cjs +4 -3
  52. package/dist/cjs/components/text-input/daikin-text-input.d.ts +5 -1
  53. package/dist/cjs/components/textarea/daikin-textarea.cjs +3 -3
  54. package/dist/cjs/components/textarea/daikin-textarea.d.ts +5 -1
  55. package/dist/cjs/components/toggle/daikin-toggle.cjs +44 -68
  56. package/dist/cjs/components/toggle/daikin-toggle.d.ts +15 -27
  57. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +223 -0
  58. package/dist/cjs/components/tooltip/daikin-tooltip.d.ts +80 -0
  59. package/dist/cjs/components/tooltip/index.cjs +7 -0
  60. package/dist/cjs/components/tooltip/index.d.ts +1 -0
  61. package/dist/cjs/index.cjs +36 -6
  62. package/dist/cjs/is-client.cjs +5 -0
  63. package/dist/cjs/is-client.d.ts +1 -0
  64. package/dist/cjs/tailwind.css.cjs +2 -2
  65. package/dist/cjs/type-utils.d.ts +0 -1
  66. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +31 -6
  67. package/dist/cjs-dev/components/accordion/daikin-accordion.d.ts +15 -10
  68. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +105 -59
  69. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.ts +28 -14
  70. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +121 -0
  71. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.ts +56 -0
  72. package/dist/cjs-dev/components/breadcrumb/index.cjs +7 -0
  73. package/dist/cjs-dev/components/breadcrumb/index.d.ts +1 -0
  74. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +124 -0
  75. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +72 -0
  76. package/dist/cjs-dev/components/breadcrumb-item/index.cjs +7 -0
  77. package/dist/cjs-dev/components/breadcrumb-item/index.d.ts +1 -0
  78. package/dist/cjs-dev/components/button/daikin-button.cjs +89 -128
  79. package/dist/cjs-dev/components/button/daikin-button.d.ts +30 -28
  80. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +99 -119
  81. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.ts +27 -39
  82. package/dist/cjs-dev/components/icon/daikin-icon.d.ts +4 -1
  83. package/dist/cjs-dev/components/icon/icons.json.cjs +20 -0
  84. package/dist/cjs-dev/components/icon/icons.json.d.ts +20 -0
  85. package/dist/cjs-dev/components/index.cjs +36 -6
  86. package/dist/cjs-dev/components/index.d.ts +8 -2
  87. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +1 -1
  88. package/dist/cjs-dev/components/input-group/daikin-input-group.d.ts +6 -1
  89. package/dist/cjs-dev/components/list/daikin-list.cjs +24 -0
  90. package/dist/cjs-dev/components/list/daikin-list.d.ts +28 -0
  91. package/dist/cjs-dev/components/list/index.cjs +7 -0
  92. package/dist/cjs-dev/components/list/index.d.ts +1 -0
  93. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +125 -0
  94. package/dist/cjs-dev/components/list-item/daikin-list-item.d.ts +64 -0
  95. package/dist/cjs-dev/components/list-item/index.cjs +7 -0
  96. package/dist/cjs-dev/components/list-item/index.d.ts +1 -0
  97. package/dist/cjs-dev/components/notification/daikin-notification.cjs +14 -15
  98. package/dist/cjs-dev/components/notification/daikin-notification.d.ts +13 -12
  99. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +176 -0
  100. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.ts +69 -0
  101. package/dist/cjs-dev/components/progress-bar/index.cjs +7 -0
  102. package/dist/cjs-dev/components/progress-bar/index.d.ts +1 -0
  103. package/dist/cjs-dev/components/radio/daikin-radio.cjs +73 -92
  104. package/dist/cjs-dev/components/radio/daikin-radio.d.ts +23 -40
  105. package/dist/cjs-dev/components/tab/daikin-tab.cjs +41 -46
  106. package/dist/cjs-dev/components/tab/daikin-tab.d.ts +12 -13
  107. package/dist/cjs-dev/components/{panel-switcher/daikin-panel-switcher.cjs → tab-panels/daikin-tab-panels.cjs} +9 -9
  108. package/dist/{cjs/components/panel-switcher/daikin-panel-switcher.d.ts → cjs-dev/components/tab-panels/daikin-tab-panels.d.ts} +17 -12
  109. package/dist/cjs-dev/components/tab-panels/index.cjs +7 -0
  110. package/dist/cjs-dev/components/tab-panels/index.d.ts +1 -0
  111. package/dist/cjs-dev/components/{tab-group/daikin-tab-group.cjs → tabs/daikin-tabs.cjs} +31 -37
  112. package/dist/{es-dev/components/tab-group/daikin-tab-group.d.ts → cjs-dev/components/tabs/daikin-tabs.d.ts} +27 -22
  113. package/dist/cjs-dev/components/tabs/index.cjs +7 -0
  114. package/dist/cjs-dev/components/tabs/index.d.ts +1 -0
  115. package/dist/cjs-dev/components/text-input/daikin-text-input.cjs +4 -3
  116. package/dist/cjs-dev/components/text-input/daikin-text-input.d.ts +5 -1
  117. package/dist/cjs-dev/components/textarea/daikin-textarea.cjs +3 -3
  118. package/dist/cjs-dev/components/textarea/daikin-textarea.d.ts +5 -1
  119. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +44 -68
  120. package/dist/cjs-dev/components/toggle/daikin-toggle.d.ts +15 -27
  121. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +223 -0
  122. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.ts +80 -0
  123. package/dist/cjs-dev/components/tooltip/index.cjs +7 -0
  124. package/dist/cjs-dev/components/tooltip/index.d.ts +1 -0
  125. package/dist/cjs-dev/index.cjs +36 -6
  126. package/dist/cjs-dev/is-client.cjs +5 -0
  127. package/dist/cjs-dev/is-client.d.ts +1 -0
  128. package/dist/cjs-dev/tailwind.css.cjs +2 -2
  129. package/dist/cjs-dev/type-utils.d.ts +0 -1
  130. package/dist/es/components/accordion/daikin-accordion.d.ts +15 -10
  131. package/dist/es/components/accordion/daikin-accordion.js +32 -7
  132. package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +28 -14
  133. package/dist/es/components/accordion-item/daikin-accordion-item.js +106 -60
  134. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +56 -0
  135. package/dist/es/components/breadcrumb/daikin-breadcrumb.js +122 -0
  136. package/dist/es/components/breadcrumb/index.d.ts +1 -0
  137. package/dist/es/components/breadcrumb/index.js +4 -0
  138. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +72 -0
  139. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +125 -0
  140. package/dist/es/components/breadcrumb-item/index.d.ts +1 -0
  141. package/dist/es/components/breadcrumb-item/index.js +4 -0
  142. package/dist/es/components/button/daikin-button.d.ts +30 -28
  143. package/dist/es/components/button/daikin-button.js +90 -129
  144. package/dist/es/components/checkbox/daikin-checkbox.d.ts +27 -39
  145. package/dist/es/components/checkbox/daikin-checkbox.js +101 -121
  146. package/dist/es/components/icon/daikin-icon.d.ts +4 -1
  147. package/dist/es/components/icon/icons.json.d.ts +20 -0
  148. package/dist/es/components/icon/icons.json.js +20 -0
  149. package/dist/es/components/index.d.ts +8 -2
  150. package/dist/es/components/index.js +16 -4
  151. package/dist/es/components/input-group/daikin-input-group.d.ts +6 -1
  152. package/dist/es/components/input-group/daikin-input-group.js +1 -1
  153. package/dist/es/components/list/daikin-list.d.ts +28 -0
  154. package/dist/es/components/list/daikin-list.js +25 -0
  155. package/dist/es/components/list/index.d.ts +1 -0
  156. package/dist/es/components/list/index.js +4 -0
  157. package/dist/es/components/list-item/daikin-list-item.d.ts +64 -0
  158. package/dist/es/components/list-item/daikin-list-item.js +126 -0
  159. package/dist/es/components/list-item/index.d.ts +1 -0
  160. package/dist/es/components/list-item/index.js +4 -0
  161. package/dist/es/components/notification/daikin-notification.d.ts +13 -12
  162. package/dist/es/components/notification/daikin-notification.js +15 -16
  163. package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +69 -0
  164. package/dist/es/components/progress-bar/daikin-progress-bar.js +162 -0
  165. package/dist/es/components/progress-bar/index.d.ts +1 -0
  166. package/dist/es/components/progress-bar/index.js +4 -0
  167. package/dist/es/components/radio/daikin-radio.d.ts +23 -40
  168. package/dist/es/components/radio/daikin-radio.js +74 -93
  169. package/dist/es/components/tab/daikin-tab.d.ts +12 -13
  170. package/dist/es/components/tab/daikin-tab.js +42 -47
  171. package/dist/es/components/{panel-switcher/daikin-panel-switcher.d.ts → tab-panels/daikin-tab-panels.d.ts} +17 -12
  172. package/dist/es/components/{panel-switcher/daikin-panel-switcher.js → tab-panels/daikin-tab-panels.js} +9 -9
  173. package/dist/es/components/tab-panels/index.d.ts +1 -0
  174. package/dist/es/components/tab-panels/index.js +4 -0
  175. package/dist/es/components/{tab-group/daikin-tab-group.d.ts → tabs/daikin-tabs.d.ts} +27 -22
  176. package/dist/es/components/{tab-group/daikin-tab-group.js → tabs/daikin-tabs.js} +30 -36
  177. package/dist/es/components/tabs/index.d.ts +1 -0
  178. package/dist/es/components/tabs/index.js +4 -0
  179. package/dist/es/components/text-input/daikin-text-input.d.ts +5 -1
  180. package/dist/es/components/text-input/daikin-text-input.js +4 -3
  181. package/dist/es/components/textarea/daikin-textarea.d.ts +5 -1
  182. package/dist/es/components/textarea/daikin-textarea.js +3 -3
  183. package/dist/es/components/toggle/daikin-toggle.d.ts +15 -27
  184. package/dist/es/components/toggle/daikin-toggle.js +45 -69
  185. package/dist/es/components/tooltip/daikin-tooltip.d.ts +80 -0
  186. package/dist/es/components/tooltip/daikin-tooltip.js +224 -0
  187. package/dist/es/components/tooltip/index.d.ts +1 -0
  188. package/dist/es/components/tooltip/index.js +4 -0
  189. package/dist/es/index.js +16 -4
  190. package/dist/es/is-client.d.ts +1 -0
  191. package/dist/es/is-client.js +5 -0
  192. package/dist/es/tailwind.css.js +2 -2
  193. package/dist/es/type-utils.d.ts +0 -1
  194. package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -10
  195. package/dist/es-dev/components/accordion/daikin-accordion.js +32 -7
  196. package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +28 -14
  197. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +106 -60
  198. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +56 -0
  199. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +122 -0
  200. package/dist/es-dev/components/breadcrumb/index.d.ts +1 -0
  201. package/dist/es-dev/components/breadcrumb/index.js +4 -0
  202. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +72 -0
  203. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +125 -0
  204. package/dist/es-dev/components/breadcrumb-item/index.d.ts +1 -0
  205. package/dist/es-dev/components/breadcrumb-item/index.js +4 -0
  206. package/dist/es-dev/components/button/daikin-button.d.ts +30 -28
  207. package/dist/es-dev/components/button/daikin-button.js +90 -129
  208. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +27 -39
  209. package/dist/es-dev/components/checkbox/daikin-checkbox.js +101 -121
  210. package/dist/es-dev/components/icon/daikin-icon.d.ts +4 -1
  211. package/dist/es-dev/components/icon/icons.json.d.ts +20 -0
  212. package/dist/es-dev/components/icon/icons.json.js +20 -0
  213. package/dist/es-dev/components/index.d.ts +8 -2
  214. package/dist/es-dev/components/index.js +16 -4
  215. package/dist/es-dev/components/input-group/daikin-input-group.d.ts +6 -1
  216. package/dist/es-dev/components/input-group/daikin-input-group.js +1 -1
  217. package/dist/es-dev/components/list/daikin-list.d.ts +28 -0
  218. package/dist/es-dev/components/list/daikin-list.js +25 -0
  219. package/dist/es-dev/components/list/index.d.ts +1 -0
  220. package/dist/es-dev/components/list/index.js +4 -0
  221. package/dist/es-dev/components/list-item/daikin-list-item.d.ts +64 -0
  222. package/dist/es-dev/components/list-item/daikin-list-item.js +126 -0
  223. package/dist/es-dev/components/list-item/index.d.ts +1 -0
  224. package/dist/es-dev/components/list-item/index.js +4 -0
  225. package/dist/es-dev/components/notification/daikin-notification.d.ts +13 -12
  226. package/dist/es-dev/components/notification/daikin-notification.js +15 -16
  227. package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +69 -0
  228. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +177 -0
  229. package/dist/es-dev/components/progress-bar/index.d.ts +1 -0
  230. package/dist/es-dev/components/progress-bar/index.js +4 -0
  231. package/dist/es-dev/components/radio/daikin-radio.d.ts +23 -40
  232. package/dist/es-dev/components/radio/daikin-radio.js +74 -93
  233. package/dist/es-dev/components/tab/daikin-tab.d.ts +12 -13
  234. package/dist/es-dev/components/tab/daikin-tab.js +42 -47
  235. package/dist/es-dev/components/{panel-switcher/daikin-panel-switcher.d.ts → tab-panels/daikin-tab-panels.d.ts} +17 -12
  236. package/dist/es-dev/components/{panel-switcher/daikin-panel-switcher.js → tab-panels/daikin-tab-panels.js} +10 -10
  237. package/dist/es-dev/components/tab-panels/index.d.ts +1 -0
  238. package/dist/es-dev/components/tab-panels/index.js +4 -0
  239. package/dist/{cjs-dev/components/tab-group/daikin-tab-group.d.ts → es-dev/components/tabs/daikin-tabs.d.ts} +27 -22
  240. package/dist/es-dev/components/{tab-group/daikin-tab-group.js → tabs/daikin-tabs.js} +32 -38
  241. package/dist/es-dev/components/tabs/index.d.ts +1 -0
  242. package/dist/es-dev/components/tabs/index.js +4 -0
  243. package/dist/es-dev/components/text-input/daikin-text-input.d.ts +5 -1
  244. package/dist/es-dev/components/text-input/daikin-text-input.js +4 -3
  245. package/dist/es-dev/components/textarea/daikin-textarea.d.ts +5 -1
  246. package/dist/es-dev/components/textarea/daikin-textarea.js +3 -3
  247. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +15 -27
  248. package/dist/es-dev/components/toggle/daikin-toggle.js +45 -69
  249. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +80 -0
  250. package/dist/es-dev/components/tooltip/daikin-tooltip.js +224 -0
  251. package/dist/es-dev/components/tooltip/index.d.ts +1 -0
  252. package/dist/es-dev/components/tooltip/index.js +4 -0
  253. package/dist/es-dev/index.js +16 -4
  254. package/dist/es-dev/is-client.d.ts +1 -0
  255. package/dist/es-dev/is-client.js +5 -0
  256. package/dist/es-dev/tailwind.css.js +2 -2
  257. package/dist/es-dev/type-utils.d.ts +0 -1
  258. package/icons/checkbox-indeterminate.svg +2 -2
  259. package/icons/chevron-down.svg +3 -0
  260. package/icons/chevron-left.svg +3 -0
  261. package/icons/chevron-right.svg +3 -0
  262. package/icons/chevron-up.svg +3 -0
  263. package/icons/status-error.svg +3 -0
  264. package/icons/status-positive.svg +15 -0
  265. package/package.json +47 -44
  266. package/dist/cjs/components/panel-switcher/index.cjs +0 -7
  267. package/dist/cjs/components/panel-switcher/index.d.ts +0 -1
  268. package/dist/cjs/components/tab-group/index.cjs +0 -7
  269. package/dist/cjs/components/tab-group/index.d.ts +0 -1
  270. package/dist/cjs-dev/components/panel-switcher/index.cjs +0 -7
  271. package/dist/cjs-dev/components/panel-switcher/index.d.ts +0 -1
  272. package/dist/cjs-dev/components/tab-group/index.cjs +0 -7
  273. package/dist/cjs-dev/components/tab-group/index.d.ts +0 -1
  274. package/dist/es/components/panel-switcher/index.d.ts +0 -1
  275. package/dist/es/components/panel-switcher/index.js +0 -4
  276. package/dist/es/components/tab-group/index.d.ts +0 -1
  277. package/dist/es/components/tab-group/index.js +0 -4
  278. package/dist/es-dev/components/panel-switcher/index.d.ts +0 -1
  279. package/dist/es-dev/components/panel-switcher/index.js +0 -4
  280. package/dist/es-dev/components/tab-group/index.d.ts +0 -1
  281. package/dist/es-dev/components/tab-group/index.js +0 -4
  282. package/icons/accordion-chevron-up.svg +0 -3
  283. package/icons/input-group-error.svg +0 -11
  284. package/icons/radio-checked.svg +0 -4
  285. package/icons/radio-unchecked.svg +0 -4
  286. /package/dist/cjs/components/{tab-group → tabs}/scroller.cjs +0 -0
  287. /package/dist/cjs/components/{tab-group → tabs}/scroller.d.ts +0 -0
  288. /package/dist/cjs-dev/components/{tab-group → tabs}/scroller.cjs +0 -0
  289. /package/dist/cjs-dev/components/{tab-group → tabs}/scroller.d.ts +0 -0
  290. /package/dist/es/components/{tab-group → tabs}/scroller.d.ts +0 -0
  291. /package/dist/es/components/{tab-group → tabs}/scroller.js +0 -0
  292. /package/dist/es-dev/components/{tab-group → tabs}/scroller.d.ts +0 -0
  293. /package/dist/es-dev/components/{tab-group → tabs}/scroller.js +0 -0
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const classVarianceAuthority = require("class-variance-authority");
4
+ const lit = require("lit");
5
+ const decorators_js = require("lit/decorators.js");
6
+ const ifDefined_js = require("lit/directives/if-defined.js");
7
+ const tailwind = require("../../tailwind.css.cjs");
8
+ require("../icon/daikin-icon.cjs");
9
+ var __defProp = Object.defineProperty;
10
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
+ var __decorateClass = (decorators, target, key, kind) => {
12
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
13
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
14
+ if (decorator = decorators[i])
15
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
16
+ if (kind && result) __defProp(target, key, result);
17
+ return result;
18
+ };
19
+ const INNER_CN = classVarianceAuthority.cva([
20
+ "text-left",
21
+ "before:absolute",
22
+ "before:inset-0",
23
+ "before:w-full",
24
+ "before:h-full",
25
+ "focus-visible:outline-none",
26
+ "focus-visible:before:outline",
27
+ "focus-visible:before:outline-1",
28
+ "focus-visible:before:-outline-offset-1",
29
+ "focus-visible:before:outline-daikinBlue-700",
30
+ // For buttons and links
31
+ "link-enabled:before:group-hover:[&:not(:active)]:bg-[#f2f2f2]",
32
+ "link-enabled:before:active:bg-daikinNeutral-100",
33
+ // For text
34
+ "[&:not(a,button)]:before:group-hover:bg-[#f2f2f2]"
35
+ ])();
36
+ exports.DaikinListItem = class DaikinListItem extends lit.LitElement {
37
+ constructor() {
38
+ super();
39
+ this.type = "button";
40
+ this.href = null;
41
+ this.disabled = false;
42
+ this.addEventListener("click", (event) => {
43
+ if (this._disabled) {
44
+ event.stopImmediatePropagation();
45
+ }
46
+ });
47
+ }
48
+ get _disabled() {
49
+ return (
50
+ // False if `type` is "text".
51
+ this.type !== "text" && // True if `this.disabled`, or if `type` is "link" and `href` is missing.
52
+ (this.disabled || this.type === "link" && this.href == null)
53
+ );
54
+ }
55
+ _handleClickAction(event) {
56
+ event.stopPropagation();
57
+ }
58
+ render() {
59
+ const disabled = this._disabled;
60
+ const content = lit.html`<span class="flex items-center w-full relative">
61
+ <slot name="left-icon">
62
+ <span class="block -ml-1"></span>
63
+ </slot>
64
+ <slot class="block pl-2 pr-3 text-left"></slot>
65
+ </span>`;
66
+ const list = {
67
+ button: () => lit.html`<button type="button" class=${INNER_CN} ?disabled=${disabled}>
68
+ ${content}
69
+ </button>`,
70
+ link: () => lit.html`<a
71
+ class=${INNER_CN}
72
+ href=${ifDefined_js.ifDefined(!disabled ? this.href ?? void 0 : void 0)}
73
+ role=${ifDefined_js.ifDefined(disabled ? "link" : void 0)}
74
+ aria-disabled=${ifDefined_js.ifDefined(disabled ? "true" : void 0)}
75
+ >
76
+ ${content}
77
+ </a>`,
78
+ text: () => lit.html`<span class=${INNER_CN}>${content}</span>`
79
+ }[this.type]();
80
+ return lit.html`<div
81
+ 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.
82
+ // Set the text color here to apply to the icons on both sides along with text.
83
+ "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"}
84
+ role="listitem"
85
+ >
86
+ ${list}
87
+ <slot
88
+ name="action"
89
+ class="flex items-center gap-3"
90
+ @click=${this._handleClickAction}
91
+ >
92
+ <slot name="right-icon" class="pointer-events-none">
93
+ <span class="block -mr-1"></span>
94
+ </slot>
95
+ </slot>
96
+ </div>`;
97
+ }
98
+ /**
99
+ * Focuses on the inner button or link.
100
+ * It will have no effect if the `type` is "text" or `disabled` is `true`.
101
+ * @param options focus options
102
+ */
103
+ focus(options) {
104
+ var _a;
105
+ (_a = this._focusableElement) == null ? void 0 : _a.focus(options);
106
+ }
107
+ };
108
+ exports.DaikinListItem.styles = lit.css`
109
+ ${lit.unsafeCSS(tailwind.default)}
110
+ `;
111
+ __decorateClass([
112
+ decorators_js.property({ type: String, reflect: true })
113
+ ], exports.DaikinListItem.prototype, "type", 2);
114
+ __decorateClass([
115
+ decorators_js.property({ type: String, reflect: true })
116
+ ], exports.DaikinListItem.prototype, "href", 2);
117
+ __decorateClass([
118
+ decorators_js.property({ type: Boolean, reflect: true })
119
+ ], exports.DaikinListItem.prototype, "disabled", 2);
120
+ __decorateClass([
121
+ decorators_js.query("a,button")
122
+ ], exports.DaikinListItem.prototype, "_focusableElement", 2);
123
+ exports.DaikinListItem = __decorateClass([
124
+ decorators_js.customElement("daikin-list-item")
125
+ ], exports.DaikinListItem);
@@ -0,0 +1,64 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * The list item component is used to represent a single item in a list. Please use it within the `daikin-list` component.
4
+ *
5
+ * The following types are available:
6
+ *
7
+ * - `button`: Uses `<button>` tag.
8
+ * - `link`: Uses `<a>` tag.
9
+ * - `text`: Uses `<span>` tag.
10
+ *
11
+ * Hierarchy:
12
+ * - `daikin-list` > `daikin-list-item`
13
+ *
14
+ * @fires click - A retargeted event of a [click event](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event). Suppressed if `disabled` is true.
15
+ *
16
+ * @slot - A slot for the list item label content.
17
+ * @slot action - An optional slot for an interaction item to be placed to the right of the text. Place `daikin-checkbox`, `daikin-toggle`, or something similar.
18
+ * @slot left-icon - An optional slot for an icon to be placed to the left of the text. Place `daikin-icon` or something similar.
19
+ * @slot right-icon - An optional slot for an icon to be placed to the left of the text. Ignored if `action` slot is used. Place `daikin-icon` or something similar.
20
+ *
21
+ * @example
22
+ *
23
+ * ```html
24
+ * <daikin-list-item>List item label</daikin-list-item>
25
+ * ```
26
+ */
27
+ export declare class DaikinListItem extends LitElement {
28
+ static readonly styles: import('lit').CSSResult;
29
+ /**
30
+ * Type of the list item.
31
+ * - `button` (default): The list item will be rendered as a `<button>` element.
32
+ * - `link`: The list item will be rendered as an `<a>` element.
33
+ * - `text`: The list item will be rendered as a `<span>` element. Use this if the list itself has no action.
34
+ */
35
+ type: "button" | "link" | "text";
36
+ /**
37
+ * Link `href`.
38
+ * Only used if the `type` is `"link"`.
39
+ * If omitted with `type="link"`, the link will be treated as [a placeholder link](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element:~:text=If%20the%20a%20element%20has%20no%20href%20attribute) and rendered as disabled state.
40
+ */
41
+ href: string | null;
42
+ /**
43
+ * Whether the list item is disabled.
44
+ * Ignored if the `type` is `"text"`.
45
+ */
46
+ disabled: boolean;
47
+ private _focusableElement;
48
+ private get _disabled();
49
+ private _handleClickAction;
50
+ constructor();
51
+ render(): import('lit-html').TemplateResult<1>;
52
+ /**
53
+ * Focuses on the inner button or link.
54
+ * It will have no effect if the `type` is "text" or `disabled` is `true`.
55
+ * @param options focus options
56
+ */
57
+ focus(options?: FocusOptions): void;
58
+ }
59
+ declare global {
60
+ interface HTMLElementTagNameMap {
61
+ "daikin-list-item": DaikinListItem;
62
+ }
63
+ }
64
+ export default DaikinListItem;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const daikinListItem = require("./daikin-list-item.cjs");
4
+ Object.defineProperty(exports, "DaikinListItem", {
5
+ enumerable: true,
6
+ get: () => daikinListItem.DaikinListItem
7
+ });
@@ -0,0 +1 @@
1
+ export * from './daikin-list-item';
@@ -78,8 +78,6 @@ const cvaContent = classVarianceAuthority.cva(
78
78
  exports.DaikinNotification = class DaikinNotification extends lit.LitElement {
79
79
  constructor() {
80
80
  super(...arguments);
81
- this.title = "";
82
- this.description = "";
83
81
  this.variant = "toast";
84
82
  this.status = "positive";
85
83
  this.line = "single";
@@ -95,11 +93,16 @@ exports.DaikinNotification = class DaikinNotification extends lit.LitElement {
95
93
  this.dispatchEvent(event);
96
94
  }
97
95
  render() {
96
+ const role = {
97
+ inline: "status",
98
+ toast: "alert"
99
+ }[this.variant];
98
100
  return this.open ? lit.html`<aside
99
101
  class=${cvaContainer({
100
102
  variant: this.variant,
101
103
  status: this.status
102
104
  })}
105
+ role=${role}
103
106
  >
104
107
  <div
105
108
  class=${cvaIconContainer({
@@ -113,17 +116,19 @@ exports.DaikinNotification = class DaikinNotification extends lit.LitElement {
113
116
  ></daikin-icon>
114
117
  </div>
115
118
  <div
116
- class="flex justify-between items-center gap-5 p-5 flex-[1_0_auto]"
119
+ class="flex justify-between items-center gap-5 p-5 text-lg flex-auto flex-shrink-0"
117
120
  >
118
121
  <div
119
122
  class=${cvaContent({
120
123
  line: this.line
121
124
  })}
122
125
  >
123
- ${this.title && lit.html`<header class="text-[18px] font-bold flex-none">
124
- ${this.title}
125
- </header>`}
126
- <p class="text-[18px] flex-none">${this.description}</p>
126
+ <div class="font-bold flex-none">
127
+ <slot name="title"></slot>
128
+ </div>
129
+ <div class="flex-none">
130
+ <slot name="description"></slot>
131
+ </div>
127
132
  </div>
128
133
  ${this.closeButton ? lit.html`
129
134
  <div class="flex items-center gap-5">
@@ -139,9 +144,9 @@ exports.DaikinNotification = class DaikinNotification extends lit.LitElement {
139
144
  ></daikin-icon>
140
145
  </button>
141
146
  </div>
142
- ` : null}
147
+ ` : lit.nothing}
143
148
  </div>
144
- </aside>` : null;
149
+ </aside>` : lit.nothing;
145
150
  }
146
151
  };
147
152
  exports.DaikinNotification.styles = lit.css`
@@ -165,12 +170,6 @@ exports.DaikinNotification.styles = lit.css`
165
170
  width: 100%;
166
171
  }
167
172
  `;
168
- __decorateClass([
169
- decorators_js.property({ type: String })
170
- ], exports.DaikinNotification.prototype, "title", 2);
171
- __decorateClass([
172
- decorators_js.property({ type: String })
173
- ], exports.DaikinNotification.prototype, "description", 2);
174
173
  __decorateClass([
175
174
  decorators_js.property({ type: String, reflect: true })
176
175
  ], exports.DaikinNotification.prototype, "variant", 2);
@@ -1,6 +1,5 @@
1
- import { LitElement } from 'lit';
1
+ import { LitElement, nothing } from 'lit';
2
2
  import { MergeVariantProps } from '../../type-utils';
3
-
4
3
  declare const cvaContainer: (props?: ({
5
4
  variant?: "toast" | "inline" | null | undefined;
6
5
  status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
@@ -26,22 +25,24 @@ type NotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof c
26
25
  *
27
26
  * @fires close - A custom event emitted when a user clicks the close button.
28
27
  *
28
+ * @slot title - A slot for the notification title content.
29
+ * @slot description - A slot for the notification description content.
30
+ *
29
31
  * @example
30
32
  *
33
+ * ```js
34
+ * import "@daikin-oss/design-system-web-components/components/notification/index.js";
35
+ * ```
36
+ *
31
37
  * ```html
32
- * </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>
33
42
  * ```
34
43
  */
35
44
  export declare class DaikinNotification extends LitElement {
36
45
  static readonly styles: import('lit').CSSResult;
37
- /**
38
- * Title text
39
- */
40
- title: string;
41
- /**
42
- * Description text
43
- */
44
- description: string;
45
46
  /**
46
47
  * Type of notification
47
48
  */
@@ -66,7 +67,7 @@ export declare class DaikinNotification extends LitElement {
66
67
  * Call the event registered in "close"
67
68
  */
68
69
  private _handleClickClose;
69
- render(): import('lit-html').TemplateResult<1> | null;
70
+ render(): import('lit-html').TemplateResult<1> | typeof nothing;
70
71
  }
71
72
  declare global {
72
73
  interface HTMLElementTagNameMap {
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const classVarianceAuthority = require("class-variance-authority");
4
+ const lit = require("lit");
5
+ const decorators_js = require("lit/decorators.js");
6
+ const tailwind = require("../../tailwind.css.cjs");
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 cvaBar = classVarianceAuthority.cva(
18
+ [
19
+ "w-full",
20
+ "bg-daikinNeutral-200",
21
+ "overflow-hidden",
22
+ "relative",
23
+ "after:block",
24
+ "after:h-full",
25
+ "after:absolute",
26
+ "after:left-0"
27
+ ],
28
+ {
29
+ variants: {
30
+ variant: {
31
+ inprogress: ["after:w-[--bar-width]", "after:bg-daikinBlue-500"],
32
+ completed: ["after:w-full", "after:bg-daikinGreen-500"],
33
+ indeterminate: [
34
+ "after:w-1/2",
35
+ "after:bg-daikinBlue-500",
36
+ "after:animate-[progress-bar-indeterminate_1200ms_linear_infinite]"
37
+ ],
38
+ error: ["after:w-full", "after:bg-daikinRed-500"]
39
+ },
40
+ size: {
41
+ medium: ["h-1"],
42
+ large: ["h-2"]
43
+ }
44
+ }
45
+ }
46
+ );
47
+ const cvaBarContainer = classVarianceAuthority.cva(
48
+ ["flex", "justify-between", "items-center", "leading-5", "font-bold"],
49
+ {
50
+ variants: {
51
+ variant: {
52
+ inprogress: [],
53
+ completed: [
54
+ "after:size-4",
55
+ "after:text-daikinGreen-500",
56
+ "after:i-daikin-notification-status-positive"
57
+ ],
58
+ indeterminate: [],
59
+ error: [
60
+ "after:size-4",
61
+ "after:text-daikinRed-500",
62
+ "after:i-daikin-status-error"
63
+ ]
64
+ }
65
+ }
66
+ }
67
+ );
68
+ const cvaHelper = classVarianceAuthority.cva(["text-sm"], {
69
+ variants: {
70
+ variant: {
71
+ inprogress: [],
72
+ completed: [],
73
+ indeterminate: [],
74
+ error: ["text-daikinRed-500", "font-bold"]
75
+ },
76
+ visible: {
77
+ false: ["hidden"],
78
+ true: []
79
+ }
80
+ }
81
+ });
82
+ exports.DaikinProgressBar = class DaikinProgressBar extends lit.LitElement {
83
+ constructor() {
84
+ super(...arguments);
85
+ this.variant = "inprogress";
86
+ this.size = "medium";
87
+ this.value = 0;
88
+ this.max = 100;
89
+ this.helper = "";
90
+ }
91
+ // Validate the 'value' and 'max' properties to ensure they are valid
92
+ _validateProperties() {
93
+ if (typeof this.value !== "number" || this.value < 0) {
94
+ {
95
+ console.warn(
96
+ `Invalid 'value' property: ${this.value}. Falling back to 0.`
97
+ );
98
+ }
99
+ this.value = 0;
100
+ }
101
+ if (typeof this.max !== "number" || this.max <= 0) {
102
+ {
103
+ console.warn(
104
+ `Invalid 'max' property: ${this.max}. Falling back to 100.`
105
+ );
106
+ }
107
+ this.max = 100;
108
+ }
109
+ if (this.value > this.max) {
110
+ {
111
+ console.warn(
112
+ `'value' property: ${this.value} exceeds 'max' property: ${this.max}. Clamping value to max.`
113
+ );
114
+ }
115
+ this.value = this.max;
116
+ }
117
+ }
118
+ render() {
119
+ const progressRatio = Math.min(Math.max(this.value / this.max, 0), 1);
120
+ return lit.html`<div class="flex flex-col gap-2 w-full font-daikinSerif">
121
+ <div class=${cvaBarContainer({ variant: this.variant })}>
122
+ <slot></slot>
123
+ </div>
124
+ <div
125
+ class=${cvaBar({ variant: this.variant, size: this.size })}
126
+ role="progressbar"
127
+ aria-label=${this.textContent ?? ""}
128
+ aria-valuenow=${this.value}
129
+ aria-valuemin="0"
130
+ aria-valuemax=${this.max}
131
+ aria-busy=${progressRatio < 1 && this.variant === "inprogress" || this.variant === "indeterminate"}
132
+ style=${`--bar-width:${progressRatio * 100}%`}
133
+ ></div>
134
+ <span
135
+ class=${cvaHelper({
136
+ variant: this.variant,
137
+ visible: !!this.helper.length
138
+ })}
139
+ aria-live="polite"
140
+ >
141
+ ${this.helper}
142
+ </span>
143
+ </div>`;
144
+ }
145
+ updated(changedProperties) {
146
+ if (changedProperties.has("value") || changedProperties.has("max")) {
147
+ this._validateProperties();
148
+ }
149
+ }
150
+ };
151
+ exports.DaikinProgressBar.styles = lit.css`
152
+ ${lit.unsafeCSS(tailwind.default)}
153
+
154
+ :host {
155
+ display: block;
156
+ width: 100%;
157
+ }
158
+ `;
159
+ __decorateClass([
160
+ decorators_js.property({ type: String })
161
+ ], exports.DaikinProgressBar.prototype, "variant", 2);
162
+ __decorateClass([
163
+ decorators_js.property({ type: String, reflect: true })
164
+ ], exports.DaikinProgressBar.prototype, "size", 2);
165
+ __decorateClass([
166
+ decorators_js.property({ type: Number })
167
+ ], exports.DaikinProgressBar.prototype, "value", 2);
168
+ __decorateClass([
169
+ decorators_js.property({ type: Number })
170
+ ], exports.DaikinProgressBar.prototype, "max", 2);
171
+ __decorateClass([
172
+ decorators_js.property({ type: String })
173
+ ], exports.DaikinProgressBar.prototype, "helper", 2);
174
+ exports.DaikinProgressBar = __decorateClass([
175
+ decorators_js.customElement("daikin-progress-bar")
176
+ ], exports.DaikinProgressBar);
@@ -0,0 +1,69 @@
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>;
12
+ /**
13
+ * The progress bar component is used to visually convey the progress to the user.
14
+ *
15
+ * There are four variants of the progress bar:
16
+ *
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.
23
+ *
24
+ * @example
25
+ *
26
+ * ```js
27
+ * import "@daikin-oss/design-system-web-components/components/progress-bar/index.js";
28
+ * ```
29
+ *
30
+ * ```html
31
+ * <daikin-progress-bar value="40" helper="Progress bar helper">
32
+ * Progress bar label
33
+ * </daikin-progress-bar>
34
+ * ```
35
+ */
36
+ export declare class DaikinProgressBar extends LitElement {
37
+ static readonly styles: import('lit').CSSResult;
38
+ /**
39
+ * Variant of the progress bar.
40
+ */
41
+ variant: ProgressBarVariantProps["variant"];
42
+ /**
43
+ * Size of the progress bar
44
+ */
45
+ size: ProgressBarVariantProps["size"];
46
+ /**
47
+ * Value of the progress bar.
48
+ * Only used for `"inprogress"` variant.
49
+ */
50
+ value: number;
51
+ /**
52
+ * Max value of the progress bar.
53
+ * Only used for `"inprogress"` variant.
54
+ */
55
+ max: number;
56
+ /**
57
+ * Helper text displayed at the bottom of the progress bar.
58
+ */
59
+ helper: string;
60
+ private _validateProperties;
61
+ render(): import('lit-html').TemplateResult<1>;
62
+ protected updated(changedProperties: PropertyValues): void;
63
+ }
64
+ declare global {
65
+ interface HTMLElementTagNameMap {
66
+ "daikin-progress-bar": DaikinProgressBar;
67
+ }
68
+ }
69
+ export default DaikinProgressBar;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const daikinProgressBar = require("./daikin-progress-bar.cjs");
4
+ Object.defineProperty(exports, "DaikinProgressBar", {
5
+ enumerable: true,
6
+ get: () => daikinProgressBar.DaikinProgressBar
7
+ });
@@ -0,0 +1 @@
1
+ export * from './daikin-progress-bar';