@daikin-oss/design-system-web-components 0.2.0 → 0.3.2

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 (328) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +47 -7
  3. package/dist/cjs/components/accordion/daikin-accordion.cjs +37 -0
  4. package/dist/cjs/components/accordion/daikin-accordion.d.ts +39 -0
  5. package/dist/cjs/components/accordion/index.cjs +7 -0
  6. package/dist/cjs/components/accordion/index.d.ts +1 -0
  7. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +177 -0
  8. package/dist/cjs/components/accordion-item/daikin-accordion-item.d.ts +55 -0
  9. package/dist/cjs/components/accordion-item/index.cjs +7 -0
  10. package/dist/cjs/components/accordion-item/index.d.ts +1 -0
  11. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +124 -0
  12. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.ts +52 -0
  13. package/dist/cjs/components/breadcrumb/index.cjs +7 -0
  14. package/dist/cjs/components/breadcrumb/index.d.ts +1 -0
  15. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +116 -0
  16. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +62 -0
  17. package/dist/cjs/components/breadcrumb-item/index.cjs +7 -0
  18. package/dist/cjs/components/breadcrumb-item/index.d.ts +1 -0
  19. package/dist/cjs/components/button/daikin-button.cjs +25 -7
  20. package/dist/cjs/components/button/daikin-button.d.ts +21 -4
  21. package/dist/cjs/components/button/index.cjs +7 -0
  22. package/dist/cjs/components/checkbox/daikin-checkbox.d.ts +11 -2
  23. package/dist/cjs/components/checkbox/index.cjs +7 -0
  24. package/dist/cjs/components/icon/daikin-icon.cjs +87 -0
  25. package/dist/cjs/components/icon/daikin-icon.d.ts +48 -0
  26. package/dist/cjs/components/icon/icons.json.cjs +29 -0
  27. package/dist/cjs/components/icon/icons.json.d.ts +31 -0
  28. package/dist/cjs/components/icon/index.cjs +8 -0
  29. package/dist/cjs/components/icon/index.d.ts +1 -0
  30. package/dist/cjs/components/index.cjs +93 -0
  31. package/dist/cjs/components/index.d.ts +11 -0
  32. package/dist/cjs/components/input-group/daikin-input-group.cjs +1 -1
  33. package/dist/cjs/components/input-group/daikin-input-group.d.ts +27 -2
  34. package/dist/cjs/components/input-group/index.cjs +7 -0
  35. package/dist/cjs/components/notification/daikin-notification.cjs +15 -33
  36. package/dist/cjs/components/notification/daikin-notification.d.ts +21 -8
  37. package/dist/cjs/components/notification/index.cjs +7 -0
  38. package/dist/cjs/components/panel-switcher/daikin-panel-switcher.cjs +55 -0
  39. package/dist/cjs/components/panel-switcher/daikin-panel-switcher.d.ts +50 -0
  40. package/dist/cjs/components/panel-switcher/index.cjs +7 -0
  41. package/dist/cjs/components/panel-switcher/index.d.ts +1 -0
  42. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +137 -0
  43. package/dist/cjs/components/progress-bar/daikin-progress-bar.d.ts +47 -0
  44. package/dist/cjs/components/progress-bar/index.cjs +7 -0
  45. package/dist/cjs/components/progress-bar/index.d.ts +1 -0
  46. package/dist/cjs/components/radio/daikin-radio.d.ts +11 -2
  47. package/dist/cjs/components/radio/index.cjs +7 -0
  48. package/dist/cjs/components/tab/daikin-tab.cjs +126 -0
  49. package/dist/cjs/components/tab/daikin-tab.d.ts +54 -0
  50. package/dist/cjs/components/tab/index.cjs +7 -0
  51. package/dist/cjs/components/tab/index.d.ts +1 -0
  52. package/dist/cjs/components/tab-group/daikin-tab-group.cjs +211 -0
  53. package/dist/cjs/components/tab-group/daikin-tab-group.d.ts +104 -0
  54. package/dist/cjs/components/tab-group/index.cjs +7 -0
  55. package/dist/cjs/components/tab-group/index.d.ts +1 -0
  56. package/dist/cjs/components/tab-group/scroller.cjs +65 -0
  57. package/dist/cjs/components/tab-group/scroller.d.ts +25 -0
  58. package/dist/cjs/components/text-input/daikin-text-input.d.ts +16 -2
  59. package/dist/cjs/components/text-input/index.cjs +7 -0
  60. package/dist/cjs/components/textarea/daikin-textarea.d.ts +16 -2
  61. package/dist/cjs/components/textarea/index.cjs +7 -0
  62. package/dist/cjs/components/toggle/daikin-toggle.cjs +132 -0
  63. package/dist/cjs/components/toggle/daikin-toggle.d.ts +60 -0
  64. package/dist/cjs/components/toggle/index.cjs +7 -0
  65. package/dist/cjs/components/toggle/index.d.ts +1 -0
  66. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +223 -0
  67. package/dist/cjs/components/tooltip/daikin-tooltip.d.ts +76 -0
  68. package/dist/cjs/components/tooltip/index.cjs +7 -0
  69. package/dist/cjs/components/tooltip/index.d.ts +1 -0
  70. package/dist/cjs/index.cjs +56 -0
  71. package/dist/cjs/is-client.cjs +5 -0
  72. package/dist/cjs/is-client.d.ts +1 -0
  73. package/dist/cjs/tailwind.css.cjs +2 -2
  74. package/dist/cjs/type-utils.d.ts +0 -1
  75. package/dist/cjs-dev/colors.cjs +80 -0
  76. package/dist/cjs-dev/colors.d.ts +69 -0
  77. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +37 -0
  78. package/dist/cjs-dev/components/accordion/daikin-accordion.d.ts +39 -0
  79. package/dist/cjs-dev/components/accordion/index.cjs +7 -0
  80. package/dist/cjs-dev/components/accordion/index.d.ts +1 -0
  81. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +177 -0
  82. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.ts +55 -0
  83. package/dist/cjs-dev/components/accordion-item/index.cjs +7 -0
  84. package/dist/cjs-dev/components/accordion-item/index.d.ts +1 -0
  85. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +124 -0
  86. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.ts +52 -0
  87. package/dist/cjs-dev/components/breadcrumb/index.cjs +7 -0
  88. package/dist/cjs-dev/components/breadcrumb/index.d.ts +1 -0
  89. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +116 -0
  90. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +62 -0
  91. package/dist/cjs-dev/components/breadcrumb-item/index.cjs +7 -0
  92. package/dist/cjs-dev/components/breadcrumb-item/index.d.ts +1 -0
  93. package/dist/cjs-dev/components/button/daikin-button.cjs +215 -0
  94. package/dist/cjs-dev/components/button/daikin-button.d.ts +76 -0
  95. package/dist/cjs-dev/components/button/index.cjs +7 -0
  96. package/dist/cjs-dev/components/button/index.d.ts +1 -0
  97. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +183 -0
  98. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.ts +77 -0
  99. package/dist/cjs-dev/components/checkbox/index.cjs +7 -0
  100. package/dist/cjs-dev/components/checkbox/index.d.ts +1 -0
  101. package/dist/cjs-dev/components/icon/daikin-icon.cjs +96 -0
  102. package/dist/cjs-dev/components/icon/daikin-icon.d.ts +48 -0
  103. package/dist/cjs-dev/components/icon/icons.json.cjs +29 -0
  104. package/dist/cjs-dev/components/icon/icons.json.d.ts +31 -0
  105. package/dist/cjs-dev/components/icon/index.cjs +8 -0
  106. package/dist/cjs-dev/components/icon/index.d.ts +1 -0
  107. package/dist/cjs-dev/components/index.cjs +93 -0
  108. package/dist/cjs-dev/components/index.d.ts +18 -0
  109. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +119 -0
  110. package/dist/cjs-dev/components/input-group/daikin-input-group.d.ts +72 -0
  111. package/dist/cjs-dev/components/input-group/index.cjs +7 -0
  112. package/dist/cjs-dev/components/input-group/index.d.ts +1 -0
  113. package/dist/cjs-dev/components/notification/daikin-notification.cjs +191 -0
  114. package/dist/cjs-dev/components/notification/daikin-notification.d.ts +75 -0
  115. package/dist/cjs-dev/components/notification/index.cjs +7 -0
  116. package/dist/cjs-dev/components/notification/index.d.ts +1 -0
  117. package/dist/cjs-dev/components/panel-switcher/daikin-panel-switcher.cjs +62 -0
  118. package/dist/cjs-dev/components/panel-switcher/daikin-panel-switcher.d.ts +50 -0
  119. package/dist/cjs-dev/components/panel-switcher/index.cjs +7 -0
  120. package/dist/cjs-dev/components/panel-switcher/index.d.ts +1 -0
  121. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +152 -0
  122. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.ts +47 -0
  123. package/dist/cjs-dev/components/progress-bar/index.cjs +7 -0
  124. package/dist/cjs-dev/components/progress-bar/index.d.ts +1 -0
  125. package/dist/cjs-dev/components/radio/daikin-radio.cjs +150 -0
  126. package/dist/cjs-dev/components/radio/daikin-radio.d.ts +75 -0
  127. package/dist/cjs-dev/components/radio/index.cjs +7 -0
  128. package/dist/cjs-dev/components/radio/index.d.ts +1 -0
  129. package/dist/cjs-dev/components/tab/daikin-tab.cjs +126 -0
  130. package/dist/cjs-dev/components/tab/daikin-tab.d.ts +54 -0
  131. package/dist/cjs-dev/components/tab/index.cjs +7 -0
  132. package/dist/cjs-dev/components/tab/index.d.ts +1 -0
  133. package/dist/cjs-dev/components/tab-group/daikin-tab-group.cjs +221 -0
  134. package/dist/cjs-dev/components/tab-group/daikin-tab-group.d.ts +104 -0
  135. package/dist/cjs-dev/components/tab-group/index.cjs +7 -0
  136. package/dist/cjs-dev/components/tab-group/index.d.ts +1 -0
  137. package/dist/cjs-dev/components/tab-group/scroller.cjs +65 -0
  138. package/dist/cjs-dev/components/tab-group/scroller.d.ts +25 -0
  139. package/dist/cjs-dev/components/text-input/daikin-text-input.cjs +137 -0
  140. package/dist/cjs-dev/components/text-input/daikin-text-input.d.ts +68 -0
  141. package/dist/cjs-dev/components/text-input/index.cjs +7 -0
  142. package/dist/cjs-dev/components/text-input/index.d.ts +1 -0
  143. package/dist/cjs-dev/components/textarea/daikin-textarea.cjs +168 -0
  144. package/dist/cjs-dev/components/textarea/daikin-textarea.d.ts +70 -0
  145. package/dist/cjs-dev/components/textarea/index.cjs +7 -0
  146. package/dist/cjs-dev/components/textarea/index.d.ts +1 -0
  147. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +132 -0
  148. package/dist/cjs-dev/components/toggle/daikin-toggle.d.ts +60 -0
  149. package/dist/cjs-dev/components/toggle/index.cjs +7 -0
  150. package/dist/cjs-dev/components/toggle/index.d.ts +1 -0
  151. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +223 -0
  152. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.ts +76 -0
  153. package/dist/cjs-dev/components/tooltip/index.cjs +7 -0
  154. package/dist/cjs-dev/components/tooltip/index.d.ts +1 -0
  155. package/dist/cjs-dev/constants/events.cjs +4 -0
  156. package/dist/cjs-dev/constants/events.d.ts +1 -0
  157. package/dist/cjs-dev/index.cjs +95 -0
  158. package/dist/cjs-dev/index.d.ts +3 -0
  159. package/dist/cjs-dev/is-client.cjs +5 -0
  160. package/dist/cjs-dev/is-client.d.ts +1 -0
  161. package/dist/cjs-dev/lit-analyzer-types.d.ts +112 -0
  162. package/dist/cjs-dev/tailwind.css.cjs +6 -0
  163. package/dist/cjs-dev/type-utils.d.ts +24 -0
  164. package/dist/es/components/accordion/daikin-accordion.d.ts +39 -0
  165. package/dist/es/components/accordion/daikin-accordion.js +38 -0
  166. package/dist/es/components/accordion/index.d.ts +1 -0
  167. package/dist/es/components/accordion/index.js +4 -0
  168. package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +55 -0
  169. package/dist/es/components/accordion-item/daikin-accordion-item.js +178 -0
  170. package/dist/es/components/accordion-item/index.d.ts +1 -0
  171. package/dist/es/components/accordion-item/index.js +4 -0
  172. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +52 -0
  173. package/dist/es/components/breadcrumb/daikin-breadcrumb.js +125 -0
  174. package/dist/es/components/breadcrumb/index.d.ts +1 -0
  175. package/dist/es/components/breadcrumb/index.js +4 -0
  176. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +62 -0
  177. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +117 -0
  178. package/dist/es/components/breadcrumb-item/index.d.ts +1 -0
  179. package/dist/es/components/breadcrumb-item/index.js +4 -0
  180. package/dist/es/components/button/daikin-button.d.ts +21 -4
  181. package/dist/es/components/button/daikin-button.js +25 -7
  182. package/dist/es/components/button/index.js +4 -0
  183. package/dist/es/components/checkbox/daikin-checkbox.d.ts +11 -2
  184. package/dist/es/components/checkbox/index.js +4 -0
  185. package/dist/es/components/icon/daikin-icon.d.ts +48 -0
  186. package/dist/es/components/icon/daikin-icon.js +88 -0
  187. package/dist/es/components/icon/icons.json.d.ts +31 -0
  188. package/dist/es/components/icon/icons.json.js +29 -0
  189. package/dist/es/components/icon/index.d.ts +1 -0
  190. package/dist/es/components/icon/index.js +5 -0
  191. package/dist/es/components/index.d.ts +11 -0
  192. package/dist/es/components/index.js +39 -0
  193. package/dist/es/components/input-group/daikin-input-group.d.ts +27 -2
  194. package/dist/es/components/input-group/daikin-input-group.js +1 -1
  195. package/dist/es/components/input-group/index.js +4 -0
  196. package/dist/es/components/notification/daikin-notification.d.ts +21 -8
  197. package/dist/es/components/notification/daikin-notification.js +15 -33
  198. package/dist/es/components/notification/index.js +4 -0
  199. package/dist/es/components/panel-switcher/daikin-panel-switcher.d.ts +50 -0
  200. package/dist/es/components/panel-switcher/daikin-panel-switcher.js +56 -0
  201. package/dist/es/components/panel-switcher/index.d.ts +1 -0
  202. package/dist/es/components/panel-switcher/index.js +4 -0
  203. package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +47 -0
  204. package/dist/es/components/progress-bar/daikin-progress-bar.js +138 -0
  205. package/dist/es/components/progress-bar/index.d.ts +1 -0
  206. package/dist/es/components/progress-bar/index.js +4 -0
  207. package/dist/es/components/radio/daikin-radio.d.ts +11 -2
  208. package/dist/es/components/radio/index.js +4 -0
  209. package/dist/es/components/tab/daikin-tab.d.ts +54 -0
  210. package/dist/es/components/tab/daikin-tab.js +127 -0
  211. package/dist/es/components/tab/index.d.ts +1 -0
  212. package/dist/es/components/tab/index.js +4 -0
  213. package/dist/es/components/tab-group/daikin-tab-group.d.ts +104 -0
  214. package/dist/es/components/tab-group/daikin-tab-group.js +212 -0
  215. package/dist/es/components/tab-group/index.d.ts +1 -0
  216. package/dist/es/components/tab-group/index.js +4 -0
  217. package/dist/es/components/tab-group/scroller.d.ts +25 -0
  218. package/dist/es/components/tab-group/scroller.js +65 -0
  219. package/dist/es/components/text-input/daikin-text-input.d.ts +16 -2
  220. package/dist/es/components/text-input/index.js +4 -0
  221. package/dist/es/components/textarea/daikin-textarea.d.ts +16 -2
  222. package/dist/es/components/textarea/index.js +4 -0
  223. package/dist/es/components/toggle/daikin-toggle.d.ts +60 -0
  224. package/dist/es/components/toggle/daikin-toggle.js +133 -0
  225. package/dist/es/components/toggle/index.d.ts +1 -0
  226. package/dist/es/components/toggle/index.js +4 -0
  227. package/dist/es/components/tooltip/daikin-tooltip.d.ts +76 -0
  228. package/dist/es/components/tooltip/daikin-tooltip.js +224 -0
  229. package/dist/es/components/tooltip/index.d.ts +1 -0
  230. package/dist/es/components/tooltip/index.js +4 -0
  231. package/dist/es/index.js +24 -1
  232. package/dist/es/is-client.d.ts +1 -0
  233. package/dist/es/is-client.js +5 -0
  234. package/dist/es/tailwind.css.js +2 -2
  235. package/dist/es/type-utils.d.ts +0 -1
  236. package/dist/es-dev/colors.d.ts +69 -0
  237. package/dist/es-dev/colors.js +80 -0
  238. package/dist/es-dev/components/accordion/daikin-accordion.d.ts +39 -0
  239. package/dist/es-dev/components/accordion/daikin-accordion.js +38 -0
  240. package/dist/es-dev/components/accordion/index.d.ts +1 -0
  241. package/dist/es-dev/components/accordion/index.js +4 -0
  242. package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +55 -0
  243. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +178 -0
  244. package/dist/es-dev/components/accordion-item/index.d.ts +1 -0
  245. package/dist/es-dev/components/accordion-item/index.js +4 -0
  246. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +52 -0
  247. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +125 -0
  248. package/dist/es-dev/components/breadcrumb/index.d.ts +1 -0
  249. package/dist/es-dev/components/breadcrumb/index.js +4 -0
  250. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +62 -0
  251. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +117 -0
  252. package/dist/es-dev/components/breadcrumb-item/index.d.ts +1 -0
  253. package/dist/es-dev/components/breadcrumb-item/index.js +4 -0
  254. package/dist/es-dev/components/button/daikin-button.d.ts +76 -0
  255. package/dist/es-dev/components/button/daikin-button.js +216 -0
  256. package/dist/es-dev/components/button/index.d.ts +1 -0
  257. package/dist/es-dev/components/button/index.js +4 -0
  258. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +77 -0
  259. package/dist/es-dev/components/checkbox/daikin-checkbox.js +184 -0
  260. package/dist/es-dev/components/checkbox/index.d.ts +1 -0
  261. package/dist/es-dev/components/checkbox/index.js +4 -0
  262. package/dist/es-dev/components/icon/daikin-icon.d.ts +48 -0
  263. package/dist/es-dev/components/icon/daikin-icon.js +97 -0
  264. package/dist/es-dev/components/icon/icons.json.d.ts +31 -0
  265. package/dist/es-dev/components/icon/icons.json.js +29 -0
  266. package/dist/es-dev/components/icon/index.d.ts +1 -0
  267. package/dist/es-dev/components/icon/index.js +5 -0
  268. package/dist/es-dev/components/index.d.ts +18 -0
  269. package/dist/es-dev/components/index.js +39 -0
  270. package/dist/es-dev/components/input-group/daikin-input-group.d.ts +72 -0
  271. package/dist/es-dev/components/input-group/daikin-input-group.js +120 -0
  272. package/dist/es-dev/components/input-group/index.d.ts +1 -0
  273. package/dist/es-dev/components/input-group/index.js +4 -0
  274. package/dist/es-dev/components/notification/daikin-notification.d.ts +75 -0
  275. package/dist/es-dev/components/notification/daikin-notification.js +192 -0
  276. package/dist/es-dev/components/notification/index.d.ts +1 -0
  277. package/dist/es-dev/components/notification/index.js +4 -0
  278. package/dist/es-dev/components/panel-switcher/daikin-panel-switcher.d.ts +50 -0
  279. package/dist/es-dev/components/panel-switcher/daikin-panel-switcher.js +63 -0
  280. package/dist/es-dev/components/panel-switcher/index.d.ts +1 -0
  281. package/dist/es-dev/components/panel-switcher/index.js +4 -0
  282. package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +47 -0
  283. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +153 -0
  284. package/dist/es-dev/components/progress-bar/index.d.ts +1 -0
  285. package/dist/es-dev/components/progress-bar/index.js +4 -0
  286. package/dist/es-dev/components/radio/daikin-radio.d.ts +75 -0
  287. package/dist/es-dev/components/radio/daikin-radio.js +151 -0
  288. package/dist/es-dev/components/radio/index.d.ts +1 -0
  289. package/dist/es-dev/components/radio/index.js +4 -0
  290. package/dist/es-dev/components/tab/daikin-tab.d.ts +54 -0
  291. package/dist/es-dev/components/tab/daikin-tab.js +127 -0
  292. package/dist/es-dev/components/tab/index.d.ts +1 -0
  293. package/dist/es-dev/components/tab/index.js +4 -0
  294. package/dist/es-dev/components/tab-group/daikin-tab-group.d.ts +104 -0
  295. package/dist/es-dev/components/tab-group/daikin-tab-group.js +222 -0
  296. package/dist/es-dev/components/tab-group/index.d.ts +1 -0
  297. package/dist/es-dev/components/tab-group/index.js +4 -0
  298. package/dist/es-dev/components/tab-group/scroller.d.ts +25 -0
  299. package/dist/es-dev/components/tab-group/scroller.js +65 -0
  300. package/dist/es-dev/components/text-input/daikin-text-input.d.ts +68 -0
  301. package/dist/es-dev/components/text-input/daikin-text-input.js +138 -0
  302. package/dist/es-dev/components/text-input/index.d.ts +1 -0
  303. package/dist/es-dev/components/text-input/index.js +4 -0
  304. package/dist/es-dev/components/textarea/daikin-textarea.d.ts +70 -0
  305. package/dist/es-dev/components/textarea/daikin-textarea.js +169 -0
  306. package/dist/es-dev/components/textarea/index.d.ts +1 -0
  307. package/dist/es-dev/components/textarea/index.js +4 -0
  308. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +60 -0
  309. package/dist/es-dev/components/toggle/daikin-toggle.js +133 -0
  310. package/dist/es-dev/components/toggle/index.d.ts +1 -0
  311. package/dist/es-dev/components/toggle/index.js +4 -0
  312. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +76 -0
  313. package/dist/es-dev/components/tooltip/daikin-tooltip.js +224 -0
  314. package/dist/es-dev/components/tooltip/index.d.ts +1 -0
  315. package/dist/es-dev/components/tooltip/index.js +4 -0
  316. package/dist/es-dev/constants/events.d.ts +1 -0
  317. package/dist/es-dev/constants/events.js +4 -0
  318. package/dist/es-dev/index.d.ts +3 -0
  319. package/dist/es-dev/index.js +41 -0
  320. package/dist/es-dev/is-client.d.ts +1 -0
  321. package/dist/es-dev/is-client.js +5 -0
  322. package/dist/es-dev/lit-analyzer-types.d.ts +112 -0
  323. package/dist/es-dev/tailwind.css.js +6 -0
  324. package/dist/es-dev/type-utils.d.ts +24 -0
  325. package/icons/accordion-chevron-up.svg +3 -0
  326. package/icons/status-positive.svg +15 -0
  327. package/package.json +83 -50
  328. /package/icons/{input-group-error.svg → status-negative.svg} +0 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,44 @@
1
+ # @daikin-oss/design-system-web-components
2
+
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#24](https://github.com/dsv-rp/DDS/pull/24) [`b2971f4`](https://github.com/dsv-rp/DDS/commit/b2971f4f4fff45d7615157e00314ea26ccc747f9) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Add Breadcrumbs Component
8
+
9
+ - [#42](https://github.com/dsv-rp/DDS/pull/42) [`7db6d0e`](https://github.com/dsv-rp/DDS/commit/7db6d0e0f2f823d9c0ff80e287060b92f32a89ff) Thanks [@yodas7](https://github.com/yodas7)! - Update dependencies.
10
+
11
+ - lit: ^3.1.4 -> ^3.2.0
12
+
13
+ - [#34](https://github.com/dsv-rp/DDS/pull/34) [`dc2640a`](https://github.com/dsv-rp/DDS/commit/dc2640a012c9fb8ab74b969c4721c15a3f814e2c) Thanks [@poetrainy](https://github.com/poetrainy)! - Add Progress Bar Component.
14
+
15
+ - [#40](https://github.com/dsv-rp/DDS/pull/40) [`d11ec1d`](https://github.com/dsv-rp/DDS/commit/d11ec1d49f9d8c7b9a32582954b9b3f96123c1ef) Thanks [@yodas7](https://github.com/yodas7)! - Include CHANGELOG.md in the package.
16
+
17
+ - [#29](https://github.com/dsv-rp/DDS/pull/29) [`38a7063`](https://github.com/dsv-rp/DDS/commit/38a706337a4008b163b05fe4f4b90b838b4be4fc) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Add Tooltip Component.
18
+
19
+ - [#52](https://github.com/dsv-rp/DDS/pull/52) [`d477bae`](https://github.com/dsv-rp/DDS/commit/d477baec057acf00c42038ebcbd7eeba5a13989e) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Add document to breadcrumb component.
20
+
21
+ ## 0.3.1
22
+
23
+ ### Patch Changes
24
+
25
+ - [#38](https://github.com/dsv-rp/DDS/pull/38) [`8be9351`](https://github.com/dsv-rp/DDS/commit/8be93513040a738f36c0ade2d3a7bb2dc7b0d91f) Thanks [@yodas7](https://github.com/yodas7)! - Fix package not released successfully due to the lack of repository field.
26
+
27
+ ## 0.3.0
28
+
29
+ ### Minor Changes
30
+
31
+ - [#7](https://github.com/dsv-rp/DDS/pull/7) Navigation Tab
32
+ - [#18](https://github.com/dsv-rp/DDS/pull/18) Icon
33
+ - [#20](https://github.com/dsv-rp/DDS/pull/20) Accordion
34
+ - [#30](https://github.com/dsv-rp/DDS/pull/30) Toggle Switch
35
+ - Add icon to button component
36
+ - Add icon to notification component
37
+
38
+ ### Patch Changes
39
+
40
+ - [#33](https://github.com/dsv-rp/DDS/pull/33) [`7dabcfc`](https://github.com/dsv-rp/DDS/commit/7dabcfc08dd3bf9f7dbcc368e0afc25b878f53d0) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Improve Storybook documents
41
+
42
+ - [#31](https://github.com/dsv-rp/DDS/pull/31) [`f72fbbd`](https://github.com/dsv-rp/DDS/commit/f72fbbd4791a0aad32fe9359ff30bc506d14afff) Thanks [@yodas7](https://github.com/yodas7)! - Introduce Changesets.
43
+
44
+ - [#35](https://github.com/dsv-rp/DDS/pull/35) Fix button text being wrapped
package/README.md CHANGED
@@ -8,26 +8,66 @@ This project is an implementation of the Daikin Design Kit using Web Components.
8
8
 
9
9
  Start by installing the package:
10
10
 
11
- ```bash
12
- npm i @daikin-oss/design-system-web-components
11
+ ```sh
12
+ npm install @daikin-oss/design-system-web-components
13
13
  ```
14
14
 
15
- You can then import necessary components in your bundle:
15
+ You can then import necessary components in your bundle (the .js extension is optional):
16
16
 
17
- ```javascript
18
- import "@daikin-oss/design-system-web-components/dist/components/button/index.js";
17
+ ```js
18
+ import "@daikin-oss/design-system-web-components/components/button/index.js";
19
19
  ```
20
20
 
21
21
  By default, out-of-the-box, the styles are for Daikin brand in light mode.
22
22
 
23
+ ### Fonts
24
+
25
+ We use Roboto as the font for our UI components.
26
+ This font is not included in our package, so developers will need to include it in their apps.
27
+
28
+ The required weights and variants are as follows:
29
+
30
+ - Regular (400), Normal
31
+ - Bold (700), Normal
32
+
33
+ #### With Google Fonts
34
+
35
+ If you can use an external CDN, you can use Google Fonts to load it.
36
+
37
+ ```html
38
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
39
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap"
42
+ rel="stylesheet"
43
+ />
44
+ ```
45
+
46
+ #### With Fontsource
47
+
48
+ If you want to deliver fonts within your app without relying on an external CDN, you can use a package like [Fontsource](https://fontsource.org/fonts/roboto) to do this.
49
+
50
+ Install the package with:
51
+
52
+ ```sh
53
+ npm install @fontsource/roboto
54
+ ```
55
+
56
+ Then import it in your app:
57
+
58
+ ```js
59
+ import "@fontsource/roboto/400.css";
60
+ import "@fontsource/roboto/700.css";
61
+ ```
62
+
23
63
  ### Dark Mode and Brands/Themes
24
64
 
25
65
  _Due to the encapsulation of styles by the Web Components specification, how themes are applied may change in the future._
26
66
 
27
67
  For dark-mode support and non-daikin brands, you need to add the `tokens` package and include the CSS reference in your html:
28
68
 
29
- ```bash
30
- npm install '@daikin-oss/dds-tokens
69
+ ```sh
70
+ npm install @daikin-oss/dds-tokens
31
71
  ```
32
72
 
33
73
  #### Dark Mode
@@ -0,0 +1,37 @@
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
+ const tailwind = require("../../tailwind.css.cjs");
6
+ var __defProp = Object.defineProperty;
7
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
+ var __decorateClass = (decorators, target, key, kind) => {
9
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
10
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
11
+ if (decorator = decorators[i])
12
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
13
+ if (kind && result) __defProp(target, key, result);
14
+ return result;
15
+ };
16
+ exports.DaikinAccordion = class DaikinAccordion extends lit.LitElement {
17
+ render() {
18
+ return lit.html`<div class="w-full border-y-[1px] border-y-[#CECECE]">
19
+ <slot></slot>
20
+ </div>`;
21
+ }
22
+ };
23
+ exports.DaikinAccordion.styles = lit.css`
24
+ ${lit.unsafeCSS(tailwind.default)}
25
+
26
+ :host {
27
+ display: block;
28
+ width: 100%;
29
+ }
30
+
31
+ ::slotted(daikin-accordion-item:not(:last-child)) {
32
+ border-bottom: 1px solid #cecece;
33
+ }
34
+ `;
35
+ exports.DaikinAccordion = __decorateClass([
36
+ decorators_js.customElement("daikin-accordion")
37
+ ], exports.DaikinAccordion);
@@ -0,0 +1,39 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * The accordion component serves as the parent element that organizes and manages the overall structure of the accordion.
4
+ * Currently it only provides appropriate styles for individual accordion items.
5
+ *
6
+ * Hierarchy:
7
+ * - `daikin-accordion` > `daikin-accordion-item`
8
+ *
9
+ * @slot - A slot for the accordion items. Place `daikin-accordion-item` elements here.
10
+ *
11
+ * @example
12
+ *
13
+ * ```html
14
+ * <daikin-accordion>
15
+ * <daikin-accordion-item title="The first accordion item">
16
+ * Accordion 1 content.
17
+ * </daikin-accordion-item>
18
+ * <daikin-accordion-item title="The second accordion item" open>
19
+ * Accordion 2 content.
20
+ * </daikin-accordion-item>
21
+ * <daikin-accordion-item title="The third accordion item" disabled>
22
+ * Accordion 3 content.
23
+ * </daikin-accordion-item>
24
+ * <daikin-accordion-item title="The fourth accordion item" open disabled>
25
+ * Accordion 4 content.
26
+ * </daikin-accordion-item>
27
+ * </daikin-accordion>
28
+ * ```
29
+ */
30
+ export declare class DaikinAccordion extends LitElement {
31
+ static readonly styles: import('lit').CSSResult;
32
+ render(): import('lit-html').TemplateResult<1>;
33
+ }
34
+ declare global {
35
+ interface HTMLElementTagNameMap {
36
+ "daikin-accordion": DaikinAccordion;
37
+ }
38
+ }
39
+ export default DaikinAccordion;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const daikinAccordion = require("./daikin-accordion.cjs");
4
+ Object.defineProperty(exports, "DaikinAccordion", {
5
+ enumerable: true,
6
+ get: () => daikinAccordion.DaikinAccordion
7
+ });
@@ -0,0 +1 @@
1
+ export * from './daikin-accordion';
@@ -0,0 +1,177 @@
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 ref_js = require("lit/directives/ref.js");
7
+ const tailwind = require("../../tailwind.css.cjs");
8
+ var __defProp = Object.defineProperty;
9
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
+ var __decorateClass = (decorators, target, key, kind) => {
11
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
12
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
13
+ if (decorator = decorators[i])
14
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
15
+ if (kind && result) __defProp(target, key, result);
16
+ return result;
17
+ };
18
+ const cvaDetails = classVarianceAuthority.cva(
19
+ ["flex", "w-full", "h-max", "bg-white", "font-daikinSerif", "overflow-clip"],
20
+ {
21
+ variants: {
22
+ status: {
23
+ enabled: [],
24
+ disabled: ["text-[#DCDCDC]"]
25
+ }
26
+ }
27
+ }
28
+ );
29
+ const cvaSummary = classVarianceAuthority.cva(
30
+ [
31
+ "flex",
32
+ "items-center",
33
+ "w-full",
34
+ "h-12",
35
+ "px-5",
36
+ "outline-none",
37
+ "relative",
38
+ "after:block",
39
+ "after:w-5",
40
+ "after:h-5",
41
+ "after:m-auto",
42
+ "after:top-0",
43
+ "after:right-4",
44
+ "after:bottom-0",
45
+ "after:absolute",
46
+ "after:i-daikin-accordion-chevron-up",
47
+ "after:transition-all"
48
+ ],
49
+ {
50
+ variants: {
51
+ visible: {
52
+ open: ["after:rotate-0"],
53
+ close: ["after:-rotate-180"]
54
+ },
55
+ status: {
56
+ enabled: [
57
+ "hover:bg-[#DCDCDC]",
58
+ "hover:bg-[#DCDCDC]",
59
+ "hover:cursor-pointer",
60
+ "focus-visible:outline",
61
+ "focus-visible:outline-[2px]",
62
+ "focus-visible:outline-[#0097E0]",
63
+ "focus-visible:outline-offset-[-2px]",
64
+ "after:text-[#828282]"
65
+ ],
66
+ disabled: ["text-[#DCDCDC]", "after:text-[#DCDCDC]"]
67
+ }
68
+ }
69
+ }
70
+ );
71
+ const animationOption = {
72
+ duration: 250,
73
+ easing: "ease-in-out"
74
+ };
75
+ const contentCloseKeyframe = {
76
+ height: 0
77
+ };
78
+ const getContentOpenKeyframe = (content) => ({
79
+ height: `${content.offsetHeight}px`
80
+ });
81
+ exports.DaikinAccordionItem = class DaikinAccordionItem extends lit.LitElement {
82
+ constructor() {
83
+ super(...arguments);
84
+ this._contentRef = ref_js.createRef();
85
+ this.title = "";
86
+ this.open = false;
87
+ this.disabled = false;
88
+ this._detailsOpen = false;
89
+ }
90
+ _contentAnimate() {
91
+ const content = this._contentRef.value;
92
+ if (!content || this.open === this._detailsOpen) {
93
+ return;
94
+ }
95
+ if (this.open) {
96
+ this._detailsOpen = this.open;
97
+ content.animate(
98
+ [contentCloseKeyframe, getContentOpenKeyframe(content)],
99
+ animationOption
100
+ );
101
+ } else {
102
+ const animation = content.animate(
103
+ [getContentOpenKeyframe(content), contentCloseKeyframe],
104
+ animationOption
105
+ );
106
+ animation.onfinish = () => {
107
+ this._detailsOpen = this.open;
108
+ };
109
+ }
110
+ }
111
+ _handleSummaryClick(e) {
112
+ e.preventDefault();
113
+ if (this.disabled) {
114
+ return;
115
+ }
116
+ this.open = !this.open;
117
+ }
118
+ render() {
119
+ const accordionDetailsClassName = cvaDetails({
120
+ status: this.disabled ? "disabled" : "enabled"
121
+ });
122
+ const accordionSummaryClassName = cvaSummary({
123
+ status: this.disabled ? "disabled" : "enabled",
124
+ visible: this.open ? "open" : "close"
125
+ });
126
+ return lit.html`<details
127
+ class=${accordionDetailsClassName}
128
+ ?open=${this._detailsOpen}
129
+ ?data-open=${this.open}
130
+ aria-disabled=${this.disabled}
131
+ >
132
+ <summary
133
+ class=${accordionSummaryClassName}
134
+ tabindex=${this.disabled ? -1 : 0}
135
+ @click=${this._handleSummaryClick}
136
+ >
137
+ ${this.title}
138
+ </summary>
139
+ <div ${ref_js.ref(this._contentRef)}>
140
+ <div class="pt-2 pb-6 px-5 text-sm">
141
+ <slot></slot>
142
+ </div>
143
+ </div>
144
+ </details>`;
145
+ }
146
+ firstUpdated() {
147
+ this._detailsOpen = this.open;
148
+ }
149
+ updated(changedProperties) {
150
+ if (changedProperties.has("open")) {
151
+ this._contentAnimate();
152
+ }
153
+ }
154
+ };
155
+ exports.DaikinAccordionItem.styles = lit.css`
156
+ ${lit.unsafeCSS(tailwind.default)}
157
+
158
+ :host {
159
+ display: block;
160
+ width: 100%;
161
+ }
162
+ `;
163
+ __decorateClass([
164
+ decorators_js.property({ type: String })
165
+ ], exports.DaikinAccordionItem.prototype, "title", 2);
166
+ __decorateClass([
167
+ decorators_js.property({ type: Boolean, reflect: true })
168
+ ], exports.DaikinAccordionItem.prototype, "open", 2);
169
+ __decorateClass([
170
+ decorators_js.property({ type: Boolean, reflect: true })
171
+ ], exports.DaikinAccordionItem.prototype, "disabled", 2);
172
+ __decorateClass([
173
+ decorators_js.state()
174
+ ], exports.DaikinAccordionItem.prototype, "_detailsOpen", 2);
175
+ exports.DaikinAccordionItem = __decorateClass([
176
+ decorators_js.customElement("daikin-accordion-item")
177
+ ], exports.DaikinAccordionItem);
@@ -0,0 +1,55 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ /**
3
+ * The accordion item component is a child element within the `daikin-accordion` component.
4
+ * It functions similarly to the HTML `<details>` and `<summary>` tag, allowing users to expand or collapse the associated content by clicking on the header.
5
+ * This component is responsible for displaying the specific content within the accordion and allowing users to interact with each section independently.
6
+ *
7
+ * Hierarchy:
8
+ * - `daikin-accordion` > `daikin-accordion-item`
9
+ *
10
+ * @slot - A slot for the accordion item content.
11
+ *
12
+ * @example
13
+ *
14
+ * ```html
15
+ * <daikin-accordion-item title="The first accordion item">
16
+ * Accordion 1 content.
17
+ * </daikin-accordion-item>
18
+ * ```
19
+ */
20
+ export declare class DaikinAccordionItem extends LitElement {
21
+ static readonly styles: import('lit').CSSResult;
22
+ private _contentRef;
23
+ /**
24
+ * Heading of accordion
25
+ */
26
+ title: string;
27
+ /**
28
+ * Whether the accordion is open
29
+ */
30
+ open: boolean;
31
+ /**
32
+ * Whether the accordion is disabled
33
+ */
34
+ disabled: boolean;
35
+ /**
36
+ * Open attribute of the actual details element
37
+ *
38
+ * The default `open` attribute of the default details element does not allow the display of content to have transitions.
39
+ * To solve this, the `open` property that `daikin-accordion-item` receives manages the opening and closing of items independently of the open attribute.
40
+ *
41
+ * The `open` attribute, which should be present, is taken over by `_detailsOpen`.
42
+ */
43
+ private _detailsOpen;
44
+ private _contentAnimate;
45
+ private _handleSummaryClick;
46
+ render(): import('lit-html').TemplateResult<1>;
47
+ protected firstUpdated(): void;
48
+ protected updated(changedProperties: PropertyValues<this>): void;
49
+ }
50
+ declare global {
51
+ interface HTMLElementTagNameMap {
52
+ "daikin-accordion-item": DaikinAccordionItem;
53
+ }
54
+ }
55
+ export default DaikinAccordionItem;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const daikinAccordionItem = require("./daikin-accordion-item.cjs");
4
+ Object.defineProperty(exports, "DaikinAccordionItem", {
5
+ enumerable: true,
6
+ get: () => daikinAccordionItem.DaikinAccordionItem
7
+ });
@@ -0,0 +1 @@
1
+ export * from './daikin-accordion-item';
@@ -0,0 +1,124 @@
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
+ const ref_js = require("lit/directives/ref.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
+ exports.DaikinBreadcrumb = class DaikinBreadcrumb extends lit.LitElement {
18
+ constructor() {
19
+ super(...arguments);
20
+ this.resizeObserver = new ResizeObserver(() => {
21
+ this._omit();
22
+ });
23
+ this._divWrapRef = ref_js.createRef();
24
+ this.trailingSlash = false;
25
+ this.overflow = "visible";
26
+ this._expandedContentWidth = 0;
27
+ this.omitted = false;
28
+ }
29
+ get _isEllipsis() {
30
+ return this.overflow === "ellipsis";
31
+ }
32
+ _omit() {
33
+ const shouldOmit = this._isEllipsis && this.offsetWidth < this._expandedContentWidth;
34
+ if (this.omitted === shouldOmit) {
35
+ return;
36
+ }
37
+ this.omitted = shouldOmit;
38
+ const daikinBreadCrumbItems = this._slottedDaikinBreadCrumbItems;
39
+ for (const [index, item] of daikinBreadCrumbItems.entries()) {
40
+ let mode = "normal";
41
+ if (shouldOmit) {
42
+ if (index === 0 || index >= daikinBreadCrumbItems.length - 2) {
43
+ continue;
44
+ } else if (index === 1) {
45
+ mode = "ellipsis";
46
+ } else {
47
+ mode = "hidden";
48
+ }
49
+ }
50
+ item.hidden = mode === "hidden";
51
+ item.variant = mode === "ellipsis" ? "ellipsis" : "normal";
52
+ }
53
+ }
54
+ _updateBreadcrumbs() {
55
+ const daikinBreadCrumbItems = this._slottedDaikinBreadCrumbItems;
56
+ for (const [index, item] of daikinBreadCrumbItems.entries()) {
57
+ if (index === daikinBreadCrumbItems.length - 1) {
58
+ item.trailingSlash = this.trailingSlash;
59
+ item.disabled = true;
60
+ continue;
61
+ }
62
+ item.trailingSlash = true;
63
+ }
64
+ }
65
+ _handleChange() {
66
+ this._updateBreadcrumbs();
67
+ }
68
+ _handleResizeObserver() {
69
+ if (this._isEllipsis) {
70
+ this.resizeObserver.observe(this);
71
+ } else {
72
+ this.resizeObserver.disconnect();
73
+ }
74
+ }
75
+ render() {
76
+ return lit.html`
77
+ <div class="flex gap-2" ${ref_js.ref(this._divWrapRef)}>
78
+ <slot @slotchange=${this._handleChange}></slot>
79
+ </div>
80
+ `;
81
+ }
82
+ updated(changedProperties) {
83
+ if (changedProperties.has("trailingSlash")) {
84
+ this._updateBreadcrumbs();
85
+ }
86
+ if (changedProperties.has("overflow")) {
87
+ this._omit();
88
+ this._handleResizeObserver();
89
+ }
90
+ }
91
+ firstUpdated() {
92
+ this._updateBreadcrumbs();
93
+ this._omit();
94
+ this._handleResizeObserver();
95
+ this.updateComplete.then(() => {
96
+ const divElement = this._divWrapRef.value;
97
+ if (!divElement) {
98
+ return;
99
+ }
100
+ this._expandedContentWidth = divElement.offsetWidth;
101
+ }).catch(() => {
102
+ });
103
+ }
104
+ };
105
+ exports.DaikinBreadcrumb.styles = lit.css`
106
+ ${lit.unsafeCSS(tailwind.default)}
107
+
108
+ :host {
109
+ display: flex;
110
+ align-items: center;
111
+ }
112
+ `;
113
+ __decorateClass([
114
+ decorators_js.queryAssignedElements()
115
+ ], exports.DaikinBreadcrumb.prototype, "_slottedDaikinBreadCrumbItems", 2);
116
+ __decorateClass([
117
+ decorators_js.property({ type: Boolean, reflect: true, attribute: "trailing-slash" })
118
+ ], exports.DaikinBreadcrumb.prototype, "trailingSlash", 2);
119
+ __decorateClass([
120
+ decorators_js.property({ type: String, reflect: true })
121
+ ], exports.DaikinBreadcrumb.prototype, "overflow", 2);
122
+ exports.DaikinBreadcrumb = __decorateClass([
123
+ decorators_js.customElement("daikin-breadcrumb")
124
+ ], exports.DaikinBreadcrumb);
@@ -0,0 +1,52 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ /**
3
+ * `daikin-breadcrumb` is a component for representing a breadcrumb list, and is used together with the `daikin-breadcrumb-item` component.
4
+ *
5
+ * Hierarchy:
6
+ * - `daikin-breadcrumb` > `daikin-breadcrumb-item`
7
+ *
8
+ * @slot - A slot for breadcrumb items. Place `breadcrumb-item` elements here.
9
+ *
10
+ * @example
11
+ *
12
+ * ```html
13
+ * <daikin-breadcrumb>
14
+ * <daikin-breadcrumb-item href="#">
15
+ * Breadcrumb Item 1
16
+ * </daikin-breadcrumb-item>
17
+ * <daikin-breadcrumb-item href="#">
18
+ * Breadcrumb Item 2
19
+ * </daikin-breadcrumb-item>
20
+ * </daikin-breadcrumb>
21
+ * ```
22
+ */
23
+ export declare class DaikinBreadcrumb extends LitElement {
24
+ static readonly styles: import('lit').CSSResult;
25
+ private resizeObserver;
26
+ private _slottedDaikinBreadCrumbItems;
27
+ private _divWrapRef;
28
+ /**
29
+ * Whether the last breadcrumb item should have trailing slash.
30
+ */
31
+ trailingSlash: boolean;
32
+ /**
33
+ * Specifies overflow.
34
+ * If `ellipsis`, some breadcrumb items will be omitted when the total width exceeds the container width.
35
+ */
36
+ overflow: "visible" | "ellipsis";
37
+ private _expandedContentWidth;
38
+ private omitted;
39
+ get _isEllipsis(): boolean;
40
+ private _omit;
41
+ private _updateBreadcrumbs;
42
+ private _handleChange;
43
+ private _handleResizeObserver;
44
+ render(): import('lit-html').TemplateResult<1>;
45
+ updated(changedProperties: PropertyValues<this>): void;
46
+ firstUpdated(): void;
47
+ }
48
+ declare global {
49
+ interface HTMLElementTagNameMap {
50
+ "daikin-breadcrumb": DaikinBreadcrumb;
51
+ }
52
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const daikinBreadcrumb = require("./daikin-breadcrumb.cjs");
4
+ Object.defineProperty(exports, "DaikinBreadcrumb", {
5
+ enumerable: true,
6
+ get: () => daikinBreadcrumb.DaikinBreadcrumb
7
+ });
@@ -0,0 +1 @@
1
+ export * from './daikin-breadcrumb';