@daikin-oss/design-system-web-components 0.3.2 → 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 (244) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/cjs/components/accordion/daikin-accordion.cjs +31 -6
  3. package/dist/cjs/components/accordion/daikin-accordion.d.ts +15 -9
  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 -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 +99 -119
  13. package/dist/cjs/components/checkbox/daikin-checkbox.d.ts +27 -38
  14. package/dist/cjs/components/icon/daikin-icon.d.ts +4 -0
  15. package/dist/cjs/components/icon/icons.json.cjs +20 -0
  16. package/dist/cjs/components/icon/icons.json.d.ts +20 -0
  17. package/dist/cjs/components/index.cjs +18 -8
  18. package/dist/cjs/components/index.d.ts +4 -2
  19. package/dist/cjs/components/input-group/daikin-input-group.cjs +1 -1
  20. package/dist/cjs/components/input-group/daikin-input-group.d.ts +6 -0
  21. package/dist/cjs/components/list/daikin-list.cjs +24 -0
  22. package/dist/cjs/components/list/daikin-list.d.ts +28 -0
  23. package/dist/cjs/components/list/index.cjs +7 -0
  24. package/dist/cjs/components/list/index.d.ts +1 -0
  25. package/dist/cjs/components/list-item/daikin-list-item.cjs +125 -0
  26. package/dist/cjs/components/list-item/daikin-list-item.d.ts +64 -0
  27. package/dist/cjs/components/list-item/index.cjs +7 -0
  28. package/dist/cjs/components/list-item/index.d.ts +1 -0
  29. package/dist/cjs/components/notification/daikin-notification.cjs +14 -15
  30. package/dist/cjs/components/notification/daikin-notification.d.ts +13 -11
  31. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +53 -29
  32. package/dist/cjs/components/progress-bar/daikin-progress-bar.d.ts +32 -10
  33. package/dist/cjs/components/radio/daikin-radio.cjs +73 -92
  34. package/dist/cjs/components/radio/daikin-radio.d.ts +23 -39
  35. package/dist/cjs/components/tab/daikin-tab.cjs +41 -46
  36. package/dist/cjs/components/tab/daikin-tab.d.ts +12 -12
  37. package/dist/cjs/components/{panel-switcher/daikin-panel-switcher.cjs → tab-panels/daikin-tab-panels.cjs} +8 -8
  38. package/dist/{cjs-dev/components/panel-switcher/daikin-panel-switcher.d.ts → cjs/components/tab-panels/daikin-tab-panels.d.ts} +17 -11
  39. package/dist/cjs/components/tab-panels/index.cjs +7 -0
  40. package/dist/cjs/components/tab-panels/index.d.ts +1 -0
  41. package/dist/cjs/components/{tab-group/daikin-tab-group.cjs → tabs/daikin-tabs.cjs} +29 -35
  42. package/dist/cjs/components/{tab-group/daikin-tab-group.d.ts → tabs/daikin-tabs.d.ts} +27 -21
  43. package/dist/cjs/components/tabs/index.cjs +7 -0
  44. package/dist/cjs/components/tabs/index.d.ts +1 -0
  45. package/dist/cjs/components/text-input/daikin-text-input.cjs +4 -3
  46. package/dist/cjs/components/text-input/daikin-text-input.d.ts +5 -0
  47. package/dist/cjs/components/textarea/daikin-textarea.cjs +3 -3
  48. package/dist/cjs/components/textarea/daikin-textarea.d.ts +5 -0
  49. package/dist/cjs/components/toggle/daikin-toggle.cjs +44 -68
  50. package/dist/cjs/components/toggle/daikin-toggle.d.ts +15 -26
  51. package/dist/cjs/components/tooltip/daikin-tooltip.d.ts +4 -0
  52. package/dist/cjs/index.cjs +18 -8
  53. package/dist/cjs/tailwind.css.cjs +1 -1
  54. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +31 -6
  55. package/dist/cjs-dev/components/accordion/daikin-accordion.d.ts +15 -9
  56. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +105 -59
  57. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.ts +28 -13
  58. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +3 -6
  59. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.ts +4 -0
  60. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +38 -30
  61. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +12 -2
  62. package/dist/cjs-dev/components/button/daikin-button.cjs +89 -128
  63. package/dist/cjs-dev/components/button/daikin-button.d.ts +30 -27
  64. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +99 -119
  65. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.ts +27 -38
  66. package/dist/cjs-dev/components/icon/daikin-icon.d.ts +4 -0
  67. package/dist/cjs-dev/components/icon/icons.json.cjs +20 -0
  68. package/dist/cjs-dev/components/icon/icons.json.d.ts +20 -0
  69. package/dist/cjs-dev/components/index.cjs +18 -8
  70. package/dist/cjs-dev/components/index.d.ts +4 -2
  71. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +1 -1
  72. package/dist/cjs-dev/components/input-group/daikin-input-group.d.ts +6 -0
  73. package/dist/cjs-dev/components/list/daikin-list.cjs +24 -0
  74. package/dist/cjs-dev/components/list/daikin-list.d.ts +28 -0
  75. package/dist/cjs-dev/components/list/index.cjs +7 -0
  76. package/dist/cjs-dev/components/list/index.d.ts +1 -0
  77. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +125 -0
  78. package/dist/cjs-dev/components/list-item/daikin-list-item.d.ts +64 -0
  79. package/dist/cjs-dev/components/list-item/index.cjs +7 -0
  80. package/dist/cjs-dev/components/list-item/index.d.ts +1 -0
  81. package/dist/cjs-dev/components/notification/daikin-notification.cjs +14 -15
  82. package/dist/cjs-dev/components/notification/daikin-notification.d.ts +13 -11
  83. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +53 -29
  84. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.ts +32 -10
  85. package/dist/cjs-dev/components/radio/daikin-radio.cjs +73 -92
  86. package/dist/cjs-dev/components/radio/daikin-radio.d.ts +23 -39
  87. package/dist/cjs-dev/components/tab/daikin-tab.cjs +41 -46
  88. package/dist/cjs-dev/components/tab/daikin-tab.d.ts +12 -12
  89. package/dist/cjs-dev/components/{panel-switcher/daikin-panel-switcher.cjs → tab-panels/daikin-tab-panels.cjs} +9 -9
  90. package/dist/{cjs/components/panel-switcher/daikin-panel-switcher.d.ts → cjs-dev/components/tab-panels/daikin-tab-panels.d.ts} +17 -11
  91. package/dist/cjs-dev/components/tab-panels/index.cjs +7 -0
  92. package/dist/cjs-dev/components/tab-panels/index.d.ts +1 -0
  93. package/dist/cjs-dev/components/{tab-group/daikin-tab-group.cjs → tabs/daikin-tabs.cjs} +31 -37
  94. package/dist/{es-dev/components/tab-group/daikin-tab-group.d.ts → cjs-dev/components/tabs/daikin-tabs.d.ts} +27 -21
  95. package/dist/cjs-dev/components/tabs/index.cjs +7 -0
  96. package/dist/cjs-dev/components/tabs/index.d.ts +1 -0
  97. package/dist/cjs-dev/components/text-input/daikin-text-input.cjs +4 -3
  98. package/dist/cjs-dev/components/text-input/daikin-text-input.d.ts +5 -0
  99. package/dist/cjs-dev/components/textarea/daikin-textarea.cjs +3 -3
  100. package/dist/cjs-dev/components/textarea/daikin-textarea.d.ts +5 -0
  101. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +44 -68
  102. package/dist/cjs-dev/components/toggle/daikin-toggle.d.ts +15 -26
  103. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.ts +4 -0
  104. package/dist/cjs-dev/index.cjs +18 -8
  105. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  106. package/dist/es/components/accordion/daikin-accordion.d.ts +15 -9
  107. package/dist/es/components/accordion/daikin-accordion.js +32 -7
  108. package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +28 -13
  109. package/dist/es/components/accordion-item/daikin-accordion-item.js +106 -60
  110. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +4 -0
  111. package/dist/es/components/breadcrumb/daikin-breadcrumb.js +3 -6
  112. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +12 -2
  113. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +38 -30
  114. package/dist/es/components/button/daikin-button.d.ts +30 -27
  115. package/dist/es/components/button/daikin-button.js +90 -129
  116. package/dist/es/components/checkbox/daikin-checkbox.d.ts +27 -38
  117. package/dist/es/components/checkbox/daikin-checkbox.js +101 -121
  118. package/dist/es/components/icon/daikin-icon.d.ts +4 -0
  119. package/dist/es/components/icon/icons.json.d.ts +20 -0
  120. package/dist/es/components/icon/icons.json.js +20 -0
  121. package/dist/es/components/index.d.ts +4 -2
  122. package/dist/es/components/index.js +8 -4
  123. package/dist/es/components/input-group/daikin-input-group.d.ts +6 -0
  124. package/dist/es/components/input-group/daikin-input-group.js +1 -1
  125. package/dist/es/components/list/daikin-list.d.ts +28 -0
  126. package/dist/es/components/list/daikin-list.js +25 -0
  127. package/dist/es/components/list/index.d.ts +1 -0
  128. package/dist/es/components/list/index.js +4 -0
  129. package/dist/es/components/list-item/daikin-list-item.d.ts +64 -0
  130. package/dist/es/components/list-item/daikin-list-item.js +126 -0
  131. package/dist/es/components/list-item/index.d.ts +1 -0
  132. package/dist/es/components/list-item/index.js +4 -0
  133. package/dist/es/components/notification/daikin-notification.d.ts +13 -11
  134. package/dist/es/components/notification/daikin-notification.js +15 -16
  135. package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +32 -10
  136. package/dist/es/components/progress-bar/daikin-progress-bar.js +53 -29
  137. package/dist/es/components/radio/daikin-radio.d.ts +23 -39
  138. package/dist/es/components/radio/daikin-radio.js +74 -93
  139. package/dist/es/components/tab/daikin-tab.d.ts +12 -12
  140. package/dist/es/components/tab/daikin-tab.js +42 -47
  141. package/dist/es/components/{panel-switcher/daikin-panel-switcher.d.ts → tab-panels/daikin-tab-panels.d.ts} +17 -11
  142. package/dist/es/components/{panel-switcher/daikin-panel-switcher.js → tab-panels/daikin-tab-panels.js} +9 -9
  143. package/dist/es/components/tab-panels/index.d.ts +1 -0
  144. package/dist/es/components/tab-panels/index.js +4 -0
  145. package/dist/es/components/{tab-group/daikin-tab-group.d.ts → tabs/daikin-tabs.d.ts} +27 -21
  146. package/dist/es/components/{tab-group/daikin-tab-group.js → tabs/daikin-tabs.js} +30 -36
  147. package/dist/es/components/tabs/index.d.ts +1 -0
  148. package/dist/es/components/tabs/index.js +4 -0
  149. package/dist/es/components/text-input/daikin-text-input.d.ts +5 -0
  150. package/dist/es/components/text-input/daikin-text-input.js +4 -3
  151. package/dist/es/components/textarea/daikin-textarea.d.ts +5 -0
  152. package/dist/es/components/textarea/daikin-textarea.js +3 -3
  153. package/dist/es/components/toggle/daikin-toggle.d.ts +15 -26
  154. package/dist/es/components/toggle/daikin-toggle.js +45 -69
  155. package/dist/es/components/tooltip/daikin-tooltip.d.ts +4 -0
  156. package/dist/es/index.js +8 -4
  157. package/dist/es/tailwind.css.js +1 -1
  158. package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -9
  159. package/dist/es-dev/components/accordion/daikin-accordion.js +32 -7
  160. package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +28 -13
  161. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +106 -60
  162. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +4 -0
  163. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +3 -6
  164. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +12 -2
  165. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +38 -30
  166. package/dist/es-dev/components/button/daikin-button.d.ts +30 -27
  167. package/dist/es-dev/components/button/daikin-button.js +90 -129
  168. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +27 -38
  169. package/dist/es-dev/components/checkbox/daikin-checkbox.js +101 -121
  170. package/dist/es-dev/components/icon/daikin-icon.d.ts +4 -0
  171. package/dist/es-dev/components/icon/icons.json.d.ts +20 -0
  172. package/dist/es-dev/components/icon/icons.json.js +20 -0
  173. package/dist/es-dev/components/index.d.ts +4 -2
  174. package/dist/es-dev/components/index.js +8 -4
  175. package/dist/es-dev/components/input-group/daikin-input-group.d.ts +6 -0
  176. package/dist/es-dev/components/input-group/daikin-input-group.js +1 -1
  177. package/dist/es-dev/components/list/daikin-list.d.ts +28 -0
  178. package/dist/es-dev/components/list/daikin-list.js +25 -0
  179. package/dist/es-dev/components/list/index.d.ts +1 -0
  180. package/dist/es-dev/components/list/index.js +4 -0
  181. package/dist/es-dev/components/list-item/daikin-list-item.d.ts +64 -0
  182. package/dist/es-dev/components/list-item/daikin-list-item.js +126 -0
  183. package/dist/es-dev/components/list-item/index.d.ts +1 -0
  184. package/dist/es-dev/components/list-item/index.js +4 -0
  185. package/dist/es-dev/components/notification/daikin-notification.d.ts +13 -11
  186. package/dist/es-dev/components/notification/daikin-notification.js +15 -16
  187. package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +32 -10
  188. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +53 -29
  189. package/dist/es-dev/components/radio/daikin-radio.d.ts +23 -39
  190. package/dist/es-dev/components/radio/daikin-radio.js +74 -93
  191. package/dist/es-dev/components/tab/daikin-tab.d.ts +12 -12
  192. package/dist/es-dev/components/tab/daikin-tab.js +42 -47
  193. package/dist/es-dev/components/{panel-switcher/daikin-panel-switcher.d.ts → tab-panels/daikin-tab-panels.d.ts} +17 -11
  194. package/dist/es-dev/components/{panel-switcher/daikin-panel-switcher.js → tab-panels/daikin-tab-panels.js} +10 -10
  195. package/dist/es-dev/components/tab-panels/index.d.ts +1 -0
  196. package/dist/es-dev/components/tab-panels/index.js +4 -0
  197. package/dist/{cjs-dev/components/tab-group/daikin-tab-group.d.ts → es-dev/components/tabs/daikin-tabs.d.ts} +27 -21
  198. package/dist/es-dev/components/{tab-group/daikin-tab-group.js → tabs/daikin-tabs.js} +32 -38
  199. package/dist/es-dev/components/tabs/index.d.ts +1 -0
  200. package/dist/es-dev/components/tabs/index.js +4 -0
  201. package/dist/es-dev/components/text-input/daikin-text-input.d.ts +5 -0
  202. package/dist/es-dev/components/text-input/daikin-text-input.js +4 -3
  203. package/dist/es-dev/components/textarea/daikin-textarea.d.ts +5 -0
  204. package/dist/es-dev/components/textarea/daikin-textarea.js +3 -3
  205. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +15 -26
  206. package/dist/es-dev/components/toggle/daikin-toggle.js +45 -69
  207. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +4 -0
  208. package/dist/es-dev/index.js +8 -4
  209. package/dist/es-dev/tailwind.css.js +1 -1
  210. package/icons/checkbox-indeterminate.svg +2 -2
  211. package/icons/chevron-down.svg +3 -0
  212. package/icons/chevron-left.svg +3 -0
  213. package/icons/chevron-right.svg +3 -0
  214. package/icons/chevron-up.svg +3 -0
  215. package/icons/status-error.svg +3 -0
  216. package/package.json +2 -1
  217. package/dist/cjs/components/panel-switcher/index.cjs +0 -7
  218. package/dist/cjs/components/panel-switcher/index.d.ts +0 -1
  219. package/dist/cjs/components/tab-group/index.cjs +0 -7
  220. package/dist/cjs/components/tab-group/index.d.ts +0 -1
  221. package/dist/cjs-dev/components/panel-switcher/index.cjs +0 -7
  222. package/dist/cjs-dev/components/panel-switcher/index.d.ts +0 -1
  223. package/dist/cjs-dev/components/tab-group/index.cjs +0 -7
  224. package/dist/cjs-dev/components/tab-group/index.d.ts +0 -1
  225. package/dist/es/components/panel-switcher/index.d.ts +0 -1
  226. package/dist/es/components/panel-switcher/index.js +0 -4
  227. package/dist/es/components/tab-group/index.d.ts +0 -1
  228. package/dist/es/components/tab-group/index.js +0 -4
  229. package/dist/es-dev/components/panel-switcher/index.d.ts +0 -1
  230. package/dist/es-dev/components/panel-switcher/index.js +0 -4
  231. package/dist/es-dev/components/tab-group/index.d.ts +0 -1
  232. package/dist/es-dev/components/tab-group/index.js +0 -4
  233. package/icons/accordion-chevron-up.svg +0 -3
  234. package/icons/radio-checked.svg +0 -4
  235. package/icons/radio-unchecked.svg +0 -4
  236. package/icons/status-negative.svg +0 -11
  237. /package/dist/cjs/components/{tab-group → tabs}/scroller.cjs +0 -0
  238. /package/dist/cjs/components/{tab-group → tabs}/scroller.d.ts +0 -0
  239. /package/dist/cjs-dev/components/{tab-group → tabs}/scroller.cjs +0 -0
  240. /package/dist/cjs-dev/components/{tab-group → tabs}/scroller.d.ts +0 -0
  241. /package/dist/es/components/{tab-group → tabs}/scroller.d.ts +0 -0
  242. /package/dist/es/components/{tab-group → tabs}/scroller.js +0 -0
  243. /package/dist/es-dev/components/{tab-group → tabs}/scroller.d.ts +0 -0
  244. /package/dist/es-dev/components/{tab-group → tabs}/scroller.js +0 -0
@@ -14,125 +14,117 @@ var __decorateClass = (decorators, target, key, kind) => {
14
14
  if (kind && result) __defProp(target, key, result);
15
15
  return result;
16
16
  };
17
- const cvaCheckbox = classVarianceAuthority.cva(
18
- [
19
- "appearance-none",
20
- "inline-block",
21
- "relative",
22
- "rounded-sm",
23
- "border-solid",
24
- "border-2",
25
- "after:absolute",
26
- "after:text-white",
27
- "checked:after:i-daikin-checkbox-checked",
28
- "indeterminate:after:i-daikin-checkbox-indeterminate",
29
- "focus-visible:outline-none",
30
- "border-daikinNeutral-400",
31
- "enabled:indeterminate:border-daikinBlue-600",
32
- "enabled:indeterminate:bg-daikinBlue-600",
33
- "enabled:checked:border-daikinBlue-600",
34
- "enabled:checked:bg-daikinBlue-600",
35
- "aria-controllable:focus-visible:border-daikinBlue-700",
36
- "aria-controllable:hover:border-daikinBlue-300",
37
- "aria-controllable:active:border-daikinBlue-600",
38
- "aria-controllable:checked:focus-visible:border-daikinBlue-700",
39
- "aria-controllable:checked:focus-visible:border-daikinBlue-700",
40
- "aria-controllable:checked:focus-visible:bg-daikinBlue-700",
41
- "aria-controllable:checked:focus-visible:bg-daikinBlue-700",
42
- "aria-controllable:checked:hover:border-daikinBlue-300",
43
- "aria-controllable:checked:hover:bg-daikinBlue-300",
44
- "aria-controllable:checked:active:border-daikinBlue-600",
45
- "aria-controllable:checked:active:bg-daikinBlue-600",
46
- "aria-controllable:indeterminate:active:border-daikinBlue-600",
47
- "aria-controllable:indeterminate:active:bg-daikinBlue-600",
48
- "aria-controllable:indeterminate:hover:border-daikinBlue-300",
49
- "aria-controllable:indeterminate:hover:bg-daikinBlue-300",
50
- "aria-controllable:indeterminate:focus-visible:border-daikinBlue-700",
51
- "aria-controllable:indeterminate:focus-visible:bg-daikinBlue-700",
52
- "disabled:border-daikinNeutral-200",
53
- "disabled:bg-white",
54
- "disabled:indeterminate:bg-daikinNeutral-200",
55
- "disabled:checked:bg-daikinNeutral-200"
56
- ],
57
- {
58
- variants: {
59
- size: {
60
- small: ["w-[18px]", "h-[18px]"],
61
- large: ["w-5", "h-5"]
62
- }
17
+ const CHECKBOX_CLASS_NAME = classVarianceAuthority.cva([
18
+ "block",
19
+ "size-4",
20
+ "relative",
21
+ "bg-white",
22
+ "border-daikinNeutral-600",
23
+ "border-2",
24
+ "rounded-sm",
25
+ "appearance-none",
26
+ "before:text-white",
27
+ "before:absolute",
28
+ "before:m-auto",
29
+ "before:inset-0",
30
+ "checked:before:i-daikin-checkbox-checked",
31
+ "indeterminate:before:i-daikin-checkbox-indeterminate",
32
+ "indeterminate:before:size-2.5",
33
+ "focus-visible:outline",
34
+ "focus-visible:outline-1",
35
+ "focus-visible:outline-offset-1",
36
+ "focus-visible:outline-daikinBlue-700",
37
+ "enabled:group-hover:border-daikinNeutral-400",
38
+ "enabled:group-active:border-daikinNeutral-700",
39
+ "enabled:checked:border-daikinBlue-500",
40
+ "enabled:checked:bg-daikinBlue-500",
41
+ "enabled:checked:group-hover:bg-daikinBlue-300",
42
+ "enabled:checked:group-hover:border-daikinBlue-300",
43
+ "enabled:checked:group-hover:before:text-white",
44
+ "enabled:checked:group-active:bg-daikinBlue-600",
45
+ "enabled:checked:group-active:border-daikinBlue-600",
46
+ "enabled:checked:group-active:before:text-white",
47
+ "enabled:indeterminate:bg-daikinBlue-500",
48
+ "enabled:indeterminate:border-daikinBlue-500",
49
+ "enabled:indeterminate:group-hover:bg-daikinBlue-300",
50
+ "enabled:indeterminate:group-hover:border-daikinBlue-300",
51
+ "enabled:indeterminate:group-hover:before:text-white",
52
+ "enabled:indeterminate:group-active:bg-daikinBlue-600",
53
+ "enabled:indeterminate:group-active:border-daikinBlue-600",
54
+ "enabled:indeterminate:group-active:before:text-white",
55
+ "disabled:border-daikinNeutral-200",
56
+ "disabled:bg-white",
57
+ "disabled:checked:bg-daikinNeutral-200",
58
+ "disabled:indeterminate:bg-daikinNeutral-200"
59
+ ])();
60
+ const cvaLabel = classVarianceAuthority.cva([], {
61
+ variants: {
62
+ disabled: {
63
+ false: [],
64
+ true: ["text-daikinNeutral-200"]
63
65
  }
64
66
  }
65
- );
66
- const cvaLabel = classVarianceAuthority.cva(
67
- ["leading-8", "not-italic", "font-normal", "align-middle"],
68
- {
69
- variants: {
70
- size: {
71
- small: ["text-sm"],
72
- large: ["text-base"]
73
- }
74
- },
75
- defaultVariants: {
76
- size: "small"
77
- }
78
- }
79
- );
67
+ });
80
68
  exports.DaikinCheckbox = class DaikinCheckbox extends lit.LitElement {
81
69
  constructor() {
82
70
  super(...arguments);
83
- this._internals = this.attachInternals();
71
+ this.name = "";
72
+ this.value = "";
84
73
  this.label = "";
85
- this.size = "small";
86
74
  this.labelPosition = "right";
87
- this.disabled = false;
88
- this.readonly = false;
89
75
  this.checkState = "unchecked";
90
- this.name = "";
91
- this.value = "";
92
- this.error = false;
76
+ this.disabled = false;
77
+ this._internals = this.attachInternals();
93
78
  }
94
- _handleClick(event) {
95
- if (this.readonly || this.disabled) {
96
- event.preventDefault();
97
- }
79
+ get checked() {
80
+ return this.checkState === "checked";
81
+ }
82
+ /**
83
+ * A property-only accessor for `checkState` provided for convenience.
84
+ * _Getter_: Returns `true` when `checkState` is `"checked"`, and `false` otherwise.
85
+ * _Setter_: If `true` is set, it updates `checkState` to `"checked"`, and if `false` is set, it updates `checkState` to `"unchecked"`.
86
+ */
87
+ set checked(value) {
88
+ this.checkState = value ? "checked" : "unchecked";
98
89
  }
99
90
  _updateFormValue() {
100
91
  this._internals.setFormValue(this.checked ? this.value : null);
101
92
  }
102
- get checked() {
103
- return this.checkState === "checked";
93
+ _handleClick(event) {
94
+ if (this.disabled) {
95
+ event.preventDefault();
96
+ }
104
97
  }
105
98
  _handleChange(event) {
106
- if (!this._input) {
107
- return;
108
- }
109
- this.checkState = this._input.checked ? "checked" : "unchecked";
99
+ this.checkState = event.target.checked ? "checked" : "unchecked";
110
100
  this._updateFormValue();
111
101
  this.dispatchEvent(new Event("change", event));
112
102
  }
113
103
  render() {
114
- const checkboxClassName = cvaCheckbox({ size: this.size });
115
- const labelClassName = cvaLabel({ size: this.size });
116
- const isIndeterminate = this.checkState === "indeterminate";
117
- const labelText = this.label ? lit.html`<span class=${labelClassName}>${this.label}</span>` : lit.html``;
118
- const inputTag = lit.html`<input
119
- class=${checkboxClassName}
120
- type="checkbox"
121
- name=${this.name}
122
- value=${this.value}
123
- aria-readonly=${this.readonly}
124
- .indeterminate=${isIndeterminate}
125
- .checked=${this.checked}
126
- ?readonly=${this.readonly}
127
- ?disabled=${this.disabled}
128
- @change=${this._handleChange}
129
- @click=${this._handleClick}
130
- />`;
131
- const content = this.labelPosition === "left" ? lit.html`${labelText}${inputTag}` : lit.html`${inputTag}${labelText}`;
132
- return lit.html`<label
133
- class="inline-flex gap-[10px] items-center font-daikinSerif"
134
- >${content}</label
135
- >`;
104
+ return lit.html`<label class="group flex gap-2 items-center font-daikinSerif">
105
+ <div class="p-2">
106
+ <input
107
+ class=${CHECKBOX_CLASS_NAME}
108
+ type="checkbox"
109
+ name=${this.name}
110
+ value=${this.value}
111
+ aria-label=${this.labelPosition === "hidden" ? this.label : lit.nothing}
112
+ .indeterminate=${this.checkState === "indeterminate"}
113
+ .checked=${this.checked}
114
+ ?disabled=${this.disabled}
115
+ @change=${this._handleChange}
116
+ @click=${this._handleClick}
117
+ />
118
+ </div>
119
+ <span
120
+ class=${cvaLabel({
121
+ disabled: this.disabled
122
+ })}
123
+ ?hidden=${this.labelPosition === "hidden"}
124
+ >
125
+ ${this.label}
126
+ </span>
127
+ </label>`;
136
128
  }
137
129
  updated(changedProperties) {
138
130
  if (changedProperties.has("checkState")) {
@@ -144,40 +136,28 @@ exports.DaikinCheckbox.styles = lit.css`
144
136
  ${lit.unsafeCSS(tailwind.default)}
145
137
 
146
138
  :host {
147
- display: inline-block;
139
+ display: inline-flex;
148
140
  }
149
141
  `;
150
142
  exports.DaikinCheckbox.formAssociated = true;
151
143
  __decorateClass([
152
- decorators_js.query("input")
153
- ], exports.DaikinCheckbox.prototype, "_input", 2);
144
+ decorators_js.property({ type: String, reflect: true })
145
+ ], exports.DaikinCheckbox.prototype, "name", 2);
154
146
  __decorateClass([
155
- decorators_js.property({ type: String })
156
- ], exports.DaikinCheckbox.prototype, "label", 2);
147
+ decorators_js.property({ type: String, reflect: true })
148
+ ], exports.DaikinCheckbox.prototype, "value", 2);
157
149
  __decorateClass([
158
150
  decorators_js.property({ type: String })
159
- ], exports.DaikinCheckbox.prototype, "size", 2);
151
+ ], exports.DaikinCheckbox.prototype, "label", 2);
160
152
  __decorateClass([
161
153
  decorators_js.property({ type: String, attribute: "label-position" })
162
154
  ], exports.DaikinCheckbox.prototype, "labelPosition", 2);
163
- __decorateClass([
164
- decorators_js.property({ type: Boolean, reflect: true })
165
- ], exports.DaikinCheckbox.prototype, "disabled", 2);
166
- __decorateClass([
167
- decorators_js.property({ type: Boolean, reflect: true })
168
- ], exports.DaikinCheckbox.prototype, "readonly", 2);
169
155
  __decorateClass([
170
156
  decorators_js.property({ type: String, reflect: true, attribute: "check-state" })
171
157
  ], exports.DaikinCheckbox.prototype, "checkState", 2);
172
- __decorateClass([
173
- decorators_js.property({ type: String, reflect: true })
174
- ], exports.DaikinCheckbox.prototype, "name", 2);
175
- __decorateClass([
176
- decorators_js.property({ type: String, reflect: true })
177
- ], exports.DaikinCheckbox.prototype, "value", 2);
178
158
  __decorateClass([
179
159
  decorators_js.property({ type: Boolean, reflect: true })
180
- ], exports.DaikinCheckbox.prototype, "error", 2);
160
+ ], exports.DaikinCheckbox.prototype, "disabled", 2);
181
161
  exports.DaikinCheckbox = __decorateClass([
182
162
  decorators_js.customElement("daikin-checkbox")
183
163
  ], exports.DaikinCheckbox);
@@ -1,12 +1,4 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
- import { MergeVariantProps } from '../../type-utils';
3
- declare const cvaCheckbox: (props?: ({
4
- size?: "small" | "large" | null | undefined;
5
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- declare const cvaLabel: (props?: ({
7
- size?: "small" | "large" | null | undefined;
8
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
- type CheckboxVariantProps = MergeVariantProps<typeof cvaCheckbox | typeof cvaLabel>;
10
2
  /**
11
3
  * The checkbox component is a UI element that allows users to select one or more options from a list of choices.
12
4
  * It functions similarly to the HTML `<input type="checkbox">` tag, enabling users to toggle the selection of each option independently.
@@ -16,56 +8,54 @@ type CheckboxVariantProps = MergeVariantProps<typeof cvaCheckbox | typeof cvaLab
16
8
  *
17
9
  * @example
18
10
  *
11
+ * ```js
12
+ * import "@daikin-oss/design-system-web-components/components/checkbox/index.js";
13
+ * ```
14
+ *
19
15
  * ```html
20
16
  * <daikin-checkbox label="Checkbox label" name="name" value="value"></daikin-checkbox>
21
17
  * ```
22
18
  */
23
19
  export declare class DaikinCheckbox extends LitElement {
24
20
  static readonly styles: import('lit').CSSResult;
25
- private _handleClick;
26
- static readonly formAssociated = true;
27
- private _internals;
28
- private _updateFormValue;
29
- private _input;
30
- get checked(): boolean;
31
- private _handleChange;
32
- /**
33
- * Specify the label text for check box
34
- */
35
- label: string;
36
21
  /**
37
- * Specify the component size
22
+ * Form name of the checkbox.
38
23
  */
39
- size: CheckboxVariantProps["size"];
24
+ name: string;
40
25
  /**
41
- * Specify the label position
42
- * when `left` the label will be in left of checkbox, when `right` label will be in right of checkbox
26
+ * Form value of the checkbox.
43
27
  */
44
- labelPosition: "left" | "right";
28
+ value: string;
45
29
  /**
46
- * Specify whether the Checkbox should be disabled
30
+ * Label text for the checkbox.
47
31
  */
48
- disabled: boolean;
32
+ label: string;
49
33
  /**
50
- * Specify whether the checkbox is read only
34
+ * Label position.
35
+ * - `right` (default): The label will be placed to the right of the checkbox.
36
+ * - `hidden`: The label will not be shown.
51
37
  */
52
- readonly: boolean;
38
+ labelPosition: "right" | "hidden";
53
39
  /**
54
- * Specify whether the checkbox is be checked
40
+ * Checked state of the checkbox.
55
41
  */
56
42
  checkState: "unchecked" | "indeterminate" | "checked";
57
43
  /**
58
- * The form name.
44
+ * Whether the checkbox is disabled.
59
45
  */
60
- name: string;
61
- /**
62
- * The value.
63
- */
64
- value: string;
46
+ disabled: boolean;
47
+ get checked(): boolean;
65
48
  /**
66
- * Specify whether the Checkbox is in a error state
49
+ * A property-only accessor for `checkState` provided for convenience.
50
+ * _Getter_: Returns `true` when `checkState` is `"checked"`, and `false` otherwise.
51
+ * _Setter_: If `true` is set, it updates `checkState` to `"checked"`, and if `false` is set, it updates `checkState` to `"unchecked"`.
67
52
  */
68
- error: boolean;
53
+ set checked(value: boolean);
54
+ static readonly formAssociated = true;
55
+ private _internals;
56
+ private _updateFormValue;
57
+ private _handleClick;
58
+ private _handleChange;
69
59
  render(): import('lit-html').TemplateResult<1>;
70
60
  updated(changedProperties: PropertyValues<this>): void;
71
61
  }
@@ -74,4 +64,3 @@ declare global {
74
64
  "daikin-checkbox": DaikinCheckbox;
75
65
  }
76
66
  }
77
- export {};
@@ -20,6 +20,10 @@ export type IconVariantProps = MergeVariantProps<typeof cvaIcon>;
20
20
  *
21
21
  * @example
22
22
  *
23
+ * ```js
24
+ * import "@daikin-oss/design-system-web-components/components/icon/index.js";
25
+ * ```
26
+ *
23
27
  * ```html
24
28
  * <daikin-icon icon="information" color="black" size="m"></daikin-icon>
25
29
  * ```
@@ -24,6 +24,26 @@ const icons = {
24
24
  warning: {
25
25
  "class": "i-daikin-notification-status-warning",
26
26
  color: null
27
+ },
28
+ error: {
29
+ "class": "i-daikin-status-error",
30
+ color: "#ff4949"
31
+ },
32
+ "chevron-up": {
33
+ "class": "i-daikin-chevron-up",
34
+ color: null
35
+ },
36
+ "chevron-down": {
37
+ "class": "i-daikin-chevron-down",
38
+ color: null
39
+ },
40
+ "chevron-left": {
41
+ "class": "i-daikin-chevron-left",
42
+ color: null
43
+ },
44
+ "chevron-right": {
45
+ "class": "i-daikin-chevron-right",
46
+ color: null
27
47
  }
28
48
  };
29
49
  exports.icons = icons;
@@ -23,6 +23,26 @@ declare const _default: {
23
23
  "warning": {
24
24
  "class": "i-daikin-notification-status-warning",
25
25
  "color": null
26
+ },
27
+ "error": {
28
+ "class": "i-daikin-status-error",
29
+ "color": "#ff4949"
30
+ },
31
+ "chevron-up": {
32
+ "class": "i-daikin-chevron-up",
33
+ "color": null
34
+ },
35
+ "chevron-down": {
36
+ "class": "i-daikin-chevron-down",
37
+ "color": null
38
+ },
39
+ "chevron-left": {
40
+ "class": "i-daikin-chevron-left",
41
+ "color": null
42
+ },
43
+ "chevron-right": {
44
+ "class": "i-daikin-chevron-right",
45
+ "color": null
26
46
  }
27
47
  }
28
48
  }
@@ -8,12 +8,14 @@ const daikinButton = require("./button/daikin-button.cjs");
8
8
  const daikinCheckbox = require("./checkbox/daikin-checkbox.cjs");
9
9
  const daikinIcon = require("./icon/daikin-icon.cjs");
10
10
  const daikinInputGroup = require("./input-group/daikin-input-group.cjs");
11
+ const daikinList = require("./list/daikin-list.cjs");
12
+ const daikinListItem = require("./list-item/daikin-list-item.cjs");
11
13
  const daikinNotification = require("./notification/daikin-notification.cjs");
12
- const daikinPanelSwitcher = require("./panel-switcher/daikin-panel-switcher.cjs");
13
14
  const daikinProgressBar = require("./progress-bar/daikin-progress-bar.cjs");
14
15
  const daikinRadio = require("./radio/daikin-radio.cjs");
15
16
  const daikinTab = require("./tab/daikin-tab.cjs");
16
- const daikinTabGroup = require("./tab-group/daikin-tab-group.cjs");
17
+ const daikinTabPanels = require("./tab-panels/daikin-tab-panels.cjs");
18
+ const daikinTabs = require("./tabs/daikin-tabs.cjs");
17
19
  const daikinTextInput = require("./text-input/daikin-text-input.cjs");
18
20
  const daikinTextarea = require("./textarea/daikin-textarea.cjs");
19
21
  const daikinToggle = require("./toggle/daikin-toggle.cjs");
@@ -51,13 +53,17 @@ Object.defineProperty(exports, "DaikinInputGroup", {
51
53
  enumerable: true,
52
54
  get: () => daikinInputGroup.DaikinInputGroup
53
55
  });
54
- Object.defineProperty(exports, "DaikinNotification", {
56
+ Object.defineProperty(exports, "DaikinList", {
55
57
  enumerable: true,
56
- get: () => daikinNotification.DaikinNotification
58
+ get: () => daikinList.DaikinList
59
+ });
60
+ Object.defineProperty(exports, "DaikinListItem", {
61
+ enumerable: true,
62
+ get: () => daikinListItem.DaikinListItem
57
63
  });
58
- Object.defineProperty(exports, "DaikinPanelSwitcher", {
64
+ Object.defineProperty(exports, "DaikinNotification", {
59
65
  enumerable: true,
60
- get: () => daikinPanelSwitcher.DaikinPanelSwitcher
66
+ get: () => daikinNotification.DaikinNotification
61
67
  });
62
68
  Object.defineProperty(exports, "DaikinProgressBar", {
63
69
  enumerable: true,
@@ -71,9 +77,13 @@ Object.defineProperty(exports, "DaikinTab", {
71
77
  enumerable: true,
72
78
  get: () => daikinTab.DaikinTab
73
79
  });
74
- Object.defineProperty(exports, "DaikinTabGroup", {
80
+ Object.defineProperty(exports, "DaikinTabPanels", {
81
+ enumerable: true,
82
+ get: () => daikinTabPanels.DaikinTabPanels
83
+ });
84
+ Object.defineProperty(exports, "DaikinTabs", {
75
85
  enumerable: true,
76
- get: () => daikinTabGroup.DaikinTabGroup
86
+ get: () => daikinTabs.DaikinTabs
77
87
  });
78
88
  Object.defineProperty(exports, "DaikinTextInput", {
79
89
  enumerable: true,
@@ -6,12 +6,14 @@ export * from './button';
6
6
  export * from './checkbox';
7
7
  export * from './icon';
8
8
  export * from './input-group';
9
+ export * from './list';
10
+ export * from './list-item';
9
11
  export * from './notification';
10
- export * from './panel-switcher';
11
12
  export * from './progress-bar';
12
13
  export * from './radio';
13
14
  export * from './tab';
14
- export * from './tab-group';
15
+ export * from './tab-panels';
16
+ export * from './tabs';
15
17
  export * from './text-input';
16
18
  export * from './textarea';
17
19
  export * from './toggle';
@@ -70,7 +70,7 @@ exports.DaikinInputGroup = class DaikinInputGroup extends lit.LitElement {
70
70
  <slot @slotchange=${this._handleSlotChange}></slot>
71
71
  ${this.helper && !this.error ? lit.html`<span class=${inputGroupHelperClassName}>${this.helper}</span>` : null}
72
72
  ${!this.disabled && !!this.error ? lit.html`<span
73
- class="flex gap-2 text-[--input-group-border-color-error] leading-[22px] before:i-daikin-status-negative before:block before:w-[16px] before:h-[22px]"
73
+ 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]"
74
74
  >${this.error}</span
75
75
  >` : null}
76
76
  </label>
@@ -15,6 +15,12 @@ type ControlElement = DaikinTextInput | DaikinTextarea;
15
15
  *
16
16
  * @example
17
17
  *
18
+ * ```js
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";
22
+ * ```
23
+ *
18
24
  * With Text Input:
19
25
  *
20
26
  * ```html
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const lit = require("lit");
4
+ const decorators_js = require("lit/decorators.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
+ exports.DaikinList = class DaikinList extends lit.LitElement {
16
+ render() {
17
+ return lit.html`<div role="list">
18
+ <slot></slot>
19
+ </div>`;
20
+ }
21
+ };
22
+ exports.DaikinList = __decorateClass([
23
+ decorators_js.customElement("daikin-list")
24
+ ], exports.DaikinList);
@@ -0,0 +1,28 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * The list component is used to list items using the list item component.
4
+ *
5
+ * Hierarchy:
6
+ * - `daikin-list` > `daikin-list-item`
7
+ *
8
+ * @slot - A slot for the list items. Place `daikin-list-item` elements here.
9
+ *
10
+ * @example
11
+ *
12
+ * ```html
13
+ * <daikin-list>
14
+ * <daikin-list-item>List item label 1</daikin-list-item>
15
+ * <daikin-list-item>List item label 2</daikin-list-item>
16
+ * <daikin-list-item>List item label 3</daikin-list-item>
17
+ * </daikin-list>
18
+ * ```
19
+ */
20
+ export declare class DaikinList extends LitElement {
21
+ render(): import('lit-html').TemplateResult<1>;
22
+ }
23
+ declare global {
24
+ interface HTMLElementTagNameMap {
25
+ "daikin-list": DaikinList;
26
+ }
27
+ }
28
+ export default DaikinList;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const daikinList = require("./daikin-list.cjs");
4
+ Object.defineProperty(exports, "DaikinList", {
5
+ enumerable: true,
6
+ get: () => daikinList.DaikinList
7
+ });
@@ -0,0 +1 @@
1
+ export * from './daikin-list';