@daikin-oss/design-system-web-components 0.7.0 → 1.1.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 (513) hide show
  1. package/CHANGELOG.md +127 -12
  2. package/README.md +2 -2
  3. package/dist/cjs/base/dds-element.cjs +8 -0
  4. package/dist/cjs/base/dds-element.d.cts +4 -0
  5. package/dist/cjs/base/decorators.cjs +13 -0
  6. package/dist/cjs/base/decorators.d.cts +2 -0
  7. package/dist/cjs/base/define.cjs +18 -0
  8. package/dist/cjs/base/define.d.cts +1 -0
  9. package/dist/cjs/base/index.cjs +8 -0
  10. package/dist/cjs/base/index.d.cts +3 -0
  11. package/dist/cjs/components/accordion/daikin-accordion.cjs +39 -6
  12. package/dist/cjs/components/accordion/daikin-accordion.d.cts +15 -2
  13. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +37 -77
  14. package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
  15. package/dist/cjs/components/avatar/daikin-avatar.cjs +160 -0
  16. package/dist/cjs/components/avatar/daikin-avatar.d.cts +64 -0
  17. package/dist/cjs/components/avatar/index.cjs +7 -0
  18. package/dist/cjs/components/avatar/index.d.cts +1 -0
  19. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
  20. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
  21. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
  22. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
  23. package/dist/cjs/components/button/daikin-button.cjs +20 -8
  24. package/dist/cjs/components/button/daikin-button.d.cts +6 -3
  25. package/dist/cjs/components/card/daikin-card.cjs +11 -7
  26. package/dist/cjs/components/card/daikin-card.d.cts +8 -2
  27. package/dist/cjs/components/card-footer/daikin-card-footer.cjs +9 -9
  28. package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +6 -2
  29. package/dist/cjs/components/card-header/daikin-card-header.cjs +10 -10
  30. package/dist/cjs/components/card-header/daikin-card-header.d.cts +6 -2
  31. package/dist/cjs/components/carousel/daikin-carousel.cjs +217 -0
  32. package/dist/cjs/components/carousel/daikin-carousel.d.cts +56 -0
  33. package/dist/cjs/components/carousel/index.cjs +7 -0
  34. package/dist/cjs/components/carousel/index.d.cts +1 -0
  35. package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +80 -0
  36. package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +50 -0
  37. package/dist/cjs/components/carousel-item/index.cjs +7 -0
  38. package/dist/cjs/components/carousel-item/index.d.cts +1 -0
  39. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +35 -16
  40. package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +8 -2
  41. package/dist/cjs/components/dropdown/daikin-dropdown.cjs +161 -74
  42. package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +64 -11
  43. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +109 -41
  44. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +16 -3
  45. package/dist/cjs/components/icon/daikin-icon.cjs +8 -5
  46. package/dist/cjs/components/icon/daikin-icon.d.cts +2 -2
  47. package/dist/cjs/components/icon/icons.json.cjs +1 -70
  48. package/dist/cjs/components/icon/icons.json.d.cts +4 -8
  49. package/dist/cjs/components/icon-button/daikin-icon-button.cjs +8 -5
  50. package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
  51. package/dist/cjs/components/index.cjs +33 -3
  52. package/dist/cjs/components/index.d.cts +7 -1
  53. package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +92 -0
  54. package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +55 -0
  55. package/dist/cjs/components/inline-notification/index.cjs +7 -0
  56. package/dist/cjs/components/inline-notification/index.d.cts +1 -0
  57. package/dist/cjs/components/input-group/daikin-input-group.cjs +12 -9
  58. package/dist/cjs/components/input-group/daikin-input-group.d.cts +15 -7
  59. package/dist/cjs/components/link/daikin-link.cjs +9 -6
  60. package/dist/cjs/components/link/daikin-link.d.cts +2 -2
  61. package/dist/cjs/components/list/daikin-list.cjs +9 -9
  62. package/dist/cjs/components/list/daikin-list.d.cts +7 -2
  63. package/dist/cjs/components/list-item/daikin-list-item.cjs +8 -5
  64. package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
  65. package/dist/cjs/components/loading/daikin-loading.cjs +91 -0
  66. package/dist/cjs/components/loading/daikin-loading.d.cts +32 -0
  67. package/dist/cjs/components/loading/index.cjs +7 -0
  68. package/dist/cjs/components/loading/index.d.cts +1 -0
  69. package/dist/cjs/components/pagination/daikin-pagination.cjs +22 -13
  70. package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
  71. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +13 -8
  72. package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
  73. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +16 -20
  74. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
  75. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
  76. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
  77. package/dist/cjs/components/radio/daikin-radio.cjs +45 -23
  78. package/dist/cjs/components/radio/daikin-radio.d.cts +18 -8
  79. package/dist/cjs/components/radio-group/daikin-radio-group.cjs +31 -11
  80. package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +20 -14
  81. package/dist/cjs/components/select/daikin-select.cjs +15 -6
  82. package/dist/cjs/components/select/daikin-select.d.cts +11 -2
  83. package/dist/cjs/components/tab/daikin-tab.cjs +25 -10
  84. package/dist/cjs/components/tab/daikin-tab.d.cts +7 -2
  85. package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +9 -7
  86. package/dist/cjs/components/tab-panels/daikin-tab-panels.d.cts +2 -2
  87. package/dist/cjs/components/table/daikin-table.cjs +9 -6
  88. package/dist/cjs/components/table/daikin-table.d.cts +9 -2
  89. package/dist/cjs/components/table-cell/daikin-table-cell.cjs +8 -5
  90. package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +6 -2
  91. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
  92. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
  93. package/dist/cjs/components/tabs/daikin-tabs.cjs +25 -10
  94. package/dist/cjs/components/tabs/daikin-tabs.d.cts +8 -2
  95. package/dist/cjs/components/text-area/daikin-text-area.cjs +16 -7
  96. package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
  97. package/dist/cjs/components/text-field/daikin-text-field.cjs +16 -7
  98. package/dist/cjs/components/text-field/daikin-text-field.d.cts +7 -2
  99. package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +94 -0
  100. package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +69 -0
  101. package/dist/cjs/components/toast-notification/index.cjs +7 -0
  102. package/dist/cjs/components/toast-notification/index.d.cts +1 -0
  103. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
  104. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
  105. package/dist/cjs/components/toast-notification-manager/index.cjs +7 -0
  106. package/dist/cjs/components/toast-notification-manager/index.d.cts +1 -0
  107. package/dist/cjs/components/toggle/daikin-toggle.cjs +8 -5
  108. package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
  109. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +42 -30
  110. package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
  111. package/dist/cjs/components/tree/daikin-tree.cjs +36 -37
  112. package/dist/cjs/components/tree/daikin-tree.d.cts +13 -14
  113. package/dist/cjs/components/tree-item/daikin-tree-item.cjs +22 -18
  114. package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +9 -9
  115. package/dist/cjs/components/tree-section/daikin-tree-section.cjs +26 -41
  116. package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +10 -20
  117. package/dist/cjs/controllers/click-outside.d.cts +1 -1
  118. package/dist/cjs/index.cjs +33 -3
  119. package/dist/cjs/tailwind.css.cjs +1 -1
  120. package/dist/cjs/utils/is-similar-to-click.cjs +4 -0
  121. package/dist/cjs/utils/is-similar-to-click.d.cts +1 -0
  122. package/dist/cjs/utils/notification-common.cjs +121 -0
  123. package/dist/cjs/utils/notification-common.d.cts +19 -0
  124. package/dist/cjs-dev/base/dds-element.cjs +8 -0
  125. package/dist/cjs-dev/base/dds-element.d.cts +4 -0
  126. package/dist/cjs-dev/base/decorators.cjs +13 -0
  127. package/dist/cjs-dev/base/decorators.d.cts +2 -0
  128. package/dist/cjs-dev/base/define.cjs +18 -0
  129. package/dist/cjs-dev/base/define.d.cts +1 -0
  130. package/dist/cjs-dev/base/index.cjs +8 -0
  131. package/dist/cjs-dev/base/index.d.cts +3 -0
  132. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
  133. package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
  134. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +37 -77
  135. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
  136. package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +160 -0
  137. package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +64 -0
  138. package/dist/cjs-dev/components/avatar/index.cjs +7 -0
  139. package/dist/cjs-dev/components/avatar/index.d.cts +1 -0
  140. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
  141. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
  142. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
  143. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
  144. package/dist/cjs-dev/components/button/daikin-button.cjs +20 -8
  145. package/dist/cjs-dev/components/button/daikin-button.d.cts +6 -3
  146. package/dist/cjs-dev/components/card/daikin-card.cjs +11 -7
  147. package/dist/cjs-dev/components/card/daikin-card.d.cts +8 -2
  148. package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +9 -9
  149. package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +6 -2
  150. package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +10 -10
  151. package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +6 -2
  152. package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +227 -0
  153. package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +56 -0
  154. package/dist/cjs-dev/components/carousel/index.cjs +7 -0
  155. package/dist/cjs-dev/components/carousel/index.d.cts +1 -0
  156. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +80 -0
  157. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +50 -0
  158. package/dist/cjs-dev/components/carousel-item/index.cjs +7 -0
  159. package/dist/cjs-dev/components/carousel-item/index.d.cts +1 -0
  160. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +35 -16
  161. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +8 -2
  162. package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +161 -74
  163. package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +64 -11
  164. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +109 -41
  165. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +16 -3
  166. package/dist/cjs-dev/components/icon/daikin-icon.cjs +8 -5
  167. package/dist/cjs-dev/components/icon/daikin-icon.d.cts +2 -2
  168. package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
  169. package/dist/cjs-dev/components/icon/icons.json.d.cts +4 -8
  170. package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +8 -5
  171. package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
  172. package/dist/cjs-dev/components/index.cjs +33 -3
  173. package/dist/cjs-dev/components/index.d.cts +7 -1
  174. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +92 -0
  175. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +55 -0
  176. package/dist/cjs-dev/components/inline-notification/index.cjs +7 -0
  177. package/dist/cjs-dev/components/inline-notification/index.d.cts +1 -0
  178. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +12 -9
  179. package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +15 -7
  180. package/dist/cjs-dev/components/link/daikin-link.cjs +9 -6
  181. package/dist/cjs-dev/components/link/daikin-link.d.cts +2 -2
  182. package/dist/cjs-dev/components/list/daikin-list.cjs +9 -9
  183. package/dist/cjs-dev/components/list/daikin-list.d.cts +7 -2
  184. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +8 -5
  185. package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
  186. package/dist/cjs-dev/components/loading/daikin-loading.cjs +91 -0
  187. package/dist/cjs-dev/components/loading/daikin-loading.d.cts +32 -0
  188. package/dist/cjs-dev/components/loading/index.cjs +7 -0
  189. package/dist/cjs-dev/components/loading/index.d.cts +1 -0
  190. package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +22 -13
  191. package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
  192. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +13 -8
  193. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +3 -2
  194. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +16 -30
  195. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
  196. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
  197. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
  198. package/dist/cjs-dev/components/radio/daikin-radio.cjs +45 -23
  199. package/dist/cjs-dev/components/radio/daikin-radio.d.cts +18 -8
  200. package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +31 -11
  201. package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +20 -14
  202. package/dist/cjs-dev/components/select/daikin-select.cjs +15 -6
  203. package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
  204. package/dist/cjs-dev/components/tab/daikin-tab.cjs +25 -10
  205. package/dist/cjs-dev/components/tab/daikin-tab.d.cts +7 -2
  206. package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +9 -7
  207. package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.cts +2 -2
  208. package/dist/cjs-dev/components/table/daikin-table.cjs +9 -6
  209. package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
  210. package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +8 -5
  211. package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +6 -2
  212. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
  213. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
  214. package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +25 -10
  215. package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +8 -2
  216. package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +16 -7
  217. package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +7 -2
  218. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +16 -7
  219. package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +7 -2
  220. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +94 -0
  221. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +69 -0
  222. package/dist/cjs-dev/components/toast-notification/index.cjs +7 -0
  223. package/dist/cjs-dev/components/toast-notification/index.d.cts +1 -0
  224. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
  225. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
  226. package/dist/cjs-dev/components/toast-notification-manager/index.cjs +7 -0
  227. package/dist/cjs-dev/components/toast-notification-manager/index.d.cts +1 -0
  228. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +8 -5
  229. package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
  230. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +42 -30
  231. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
  232. package/dist/cjs-dev/components/tree/daikin-tree.cjs +36 -37
  233. package/dist/cjs-dev/components/tree/daikin-tree.d.cts +13 -14
  234. package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +22 -18
  235. package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +9 -9
  236. package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +26 -41
  237. package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +10 -20
  238. package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
  239. package/dist/cjs-dev/index.cjs +33 -3
  240. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  241. package/dist/cjs-dev/utils/is-similar-to-click.cjs +4 -0
  242. package/dist/cjs-dev/utils/is-similar-to-click.d.cts +1 -0
  243. package/dist/cjs-dev/utils/notification-common.cjs +124 -0
  244. package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
  245. package/dist/es/base/dds-element.d.ts +4 -0
  246. package/dist/es/base/dds-element.js +8 -0
  247. package/dist/es/base/decorators.d.ts +2 -0
  248. package/dist/es/base/decorators.js +13 -0
  249. package/dist/es/base/define.d.ts +1 -0
  250. package/dist/es/base/define.js +18 -0
  251. package/dist/es/base/index.d.ts +3 -0
  252. package/dist/es/base/index.js +8 -0
  253. package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
  254. package/dist/es/components/accordion/daikin-accordion.js +38 -5
  255. package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
  256. package/dist/es/components/accordion-item/daikin-accordion-item.js +36 -76
  257. package/dist/es/components/avatar/daikin-avatar.d.ts +64 -0
  258. package/dist/es/components/avatar/daikin-avatar.js +161 -0
  259. package/dist/es/components/avatar/index.d.ts +1 -0
  260. package/dist/es/components/avatar/index.js +4 -0
  261. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
  262. package/dist/es/components/breadcrumb/daikin-breadcrumb.js +7 -4
  263. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
  264. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
  265. package/dist/es/components/button/daikin-button.d.ts +6 -3
  266. package/dist/es/components/button/daikin-button.js +19 -7
  267. package/dist/es/components/card/daikin-card.d.ts +8 -2
  268. package/dist/es/components/card/daikin-card.js +10 -6
  269. package/dist/es/components/card-footer/daikin-card-footer.d.ts +6 -2
  270. package/dist/es/components/card-footer/daikin-card-footer.js +7 -7
  271. package/dist/es/components/card-header/daikin-card-header.d.ts +6 -2
  272. package/dist/es/components/card-header/daikin-card-header.js +8 -8
  273. package/dist/es/components/carousel/daikin-carousel.d.ts +56 -0
  274. package/dist/es/components/carousel/daikin-carousel.js +218 -0
  275. package/dist/es/components/carousel/index.d.ts +1 -0
  276. package/dist/es/components/carousel/index.js +4 -0
  277. package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +50 -0
  278. package/dist/es/components/carousel-item/daikin-carousel-item.js +81 -0
  279. package/dist/es/components/carousel-item/index.d.ts +1 -0
  280. package/dist/es/components/carousel-item/index.js +4 -0
  281. package/dist/es/components/checkbox/daikin-checkbox.d.ts +8 -2
  282. package/dist/es/components/checkbox/daikin-checkbox.js +34 -15
  283. package/dist/es/components/dropdown/daikin-dropdown.d.ts +64 -11
  284. package/dist/es/components/dropdown/daikin-dropdown.js +160 -73
  285. package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +16 -3
  286. package/dist/es/components/dropdown-item/daikin-dropdown-item.js +108 -40
  287. package/dist/es/components/icon/daikin-icon.d.ts +2 -2
  288. package/dist/es/components/icon/daikin-icon.js +7 -4
  289. package/dist/es/components/icon/icons.json.d.ts +4 -8
  290. package/dist/es/components/icon/icons.json.js +1 -70
  291. package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
  292. package/dist/es/components/icon-button/daikin-icon-button.js +7 -4
  293. package/dist/es/components/index.d.ts +7 -1
  294. package/dist/es/components/index.js +14 -2
  295. package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +55 -0
  296. package/dist/es/components/inline-notification/daikin-inline-notification.js +93 -0
  297. package/dist/es/components/inline-notification/index.d.ts +1 -0
  298. package/dist/es/components/inline-notification/index.js +4 -0
  299. package/dist/es/components/input-group/daikin-input-group.d.ts +15 -7
  300. package/dist/es/components/input-group/daikin-input-group.js +11 -8
  301. package/dist/es/components/link/daikin-link.d.ts +2 -2
  302. package/dist/es/components/link/daikin-link.js +8 -5
  303. package/dist/es/components/list/daikin-list.d.ts +7 -2
  304. package/dist/es/components/list/daikin-list.js +7 -7
  305. package/dist/es/components/list-item/daikin-list-item.d.ts +6 -2
  306. package/dist/es/components/list-item/daikin-list-item.js +7 -4
  307. package/dist/es/components/loading/daikin-loading.d.ts +32 -0
  308. package/dist/es/components/loading/daikin-loading.js +92 -0
  309. package/dist/es/components/loading/index.d.ts +1 -0
  310. package/dist/es/components/loading/index.js +4 -0
  311. package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
  312. package/dist/es/components/pagination/daikin-pagination.js +21 -12
  313. package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
  314. package/dist/es/components/progress-bar/daikin-progress-bar.js +12 -7
  315. package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
  316. package/dist/es/components/progress-indicator/daikin-progress-indicator.js +15 -19
  317. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
  318. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
  319. package/dist/es/components/radio/daikin-radio.d.ts +18 -8
  320. package/dist/es/components/radio/daikin-radio.js +44 -22
  321. package/dist/es/components/radio-group/daikin-radio-group.d.ts +20 -14
  322. package/dist/es/components/radio-group/daikin-radio-group.js +30 -10
  323. package/dist/es/components/select/daikin-select.d.ts +11 -2
  324. package/dist/es/components/select/daikin-select.js +14 -5
  325. package/dist/es/components/tab/daikin-tab.d.ts +7 -2
  326. package/dist/es/components/tab/daikin-tab.js +24 -9
  327. package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +2 -2
  328. package/dist/es/components/tab-panels/daikin-tab-panels.js +8 -6
  329. package/dist/es/components/table/daikin-table.d.ts +9 -2
  330. package/dist/es/components/table/daikin-table.js +8 -5
  331. package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
  332. package/dist/es/components/table-cell/daikin-table-cell.js +7 -4
  333. package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
  334. package/dist/es/components/table-header-cell/daikin-table-header-cell.js +7 -4
  335. package/dist/es/components/tabs/daikin-tabs.d.ts +8 -2
  336. package/dist/es/components/tabs/daikin-tabs.js +24 -9
  337. package/dist/es/components/text-area/daikin-text-area.d.ts +7 -2
  338. package/dist/es/components/text-area/daikin-text-area.js +15 -6
  339. package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
  340. package/dist/es/components/text-field/daikin-text-field.js +15 -6
  341. package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +69 -0
  342. package/dist/es/components/toast-notification/daikin-toast-notification.js +95 -0
  343. package/dist/es/components/toast-notification/index.d.ts +1 -0
  344. package/dist/es/components/toast-notification/index.js +4 -0
  345. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
  346. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
  347. package/dist/es/components/toast-notification-manager/index.d.ts +1 -0
  348. package/dist/es/components/toast-notification-manager/index.js +4 -0
  349. package/dist/es/components/toggle/daikin-toggle.d.ts +3 -2
  350. package/dist/es/components/toggle/daikin-toggle.js +7 -4
  351. package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
  352. package/dist/es/components/tooltip/daikin-tooltip.js +41 -29
  353. package/dist/es/components/tree/daikin-tree.d.ts +13 -14
  354. package/dist/es/components/tree/daikin-tree.js +35 -36
  355. package/dist/es/components/tree-item/daikin-tree-item.d.ts +9 -9
  356. package/dist/es/components/tree-item/daikin-tree-item.js +21 -17
  357. package/dist/es/components/tree-section/daikin-tree-section.d.ts +10 -20
  358. package/dist/es/components/tree-section/daikin-tree-section.js +25 -40
  359. package/dist/es/controllers/click-outside.d.ts +1 -1
  360. package/dist/es/index.js +14 -2
  361. package/dist/es/tailwind.css.js +1 -1
  362. package/dist/es/utils/is-similar-to-click.d.ts +1 -0
  363. package/dist/es/utils/is-similar-to-click.js +4 -0
  364. package/dist/es/utils/notification-common.d.ts +19 -0
  365. package/dist/es/utils/notification-common.js +121 -0
  366. package/dist/es-dev/base/dds-element.d.ts +4 -0
  367. package/dist/es-dev/base/dds-element.js +8 -0
  368. package/dist/es-dev/base/decorators.d.ts +2 -0
  369. package/dist/es-dev/base/decorators.js +13 -0
  370. package/dist/es-dev/base/define.d.ts +1 -0
  371. package/dist/es-dev/base/define.js +18 -0
  372. package/dist/es-dev/base/index.d.ts +3 -0
  373. package/dist/es-dev/base/index.js +8 -0
  374. package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
  375. package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
  376. package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
  377. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +36 -76
  378. package/dist/es-dev/components/avatar/daikin-avatar.d.ts +64 -0
  379. package/dist/es-dev/components/avatar/daikin-avatar.js +161 -0
  380. package/dist/es-dev/components/avatar/index.d.ts +1 -0
  381. package/dist/es-dev/components/avatar/index.js +4 -0
  382. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
  383. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +7 -4
  384. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
  385. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
  386. package/dist/es-dev/components/button/daikin-button.d.ts +6 -3
  387. package/dist/es-dev/components/button/daikin-button.js +19 -7
  388. package/dist/es-dev/components/card/daikin-card.d.ts +8 -2
  389. package/dist/es-dev/components/card/daikin-card.js +10 -6
  390. package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +6 -2
  391. package/dist/es-dev/components/card-footer/daikin-card-footer.js +7 -7
  392. package/dist/es-dev/components/card-header/daikin-card-header.d.ts +6 -2
  393. package/dist/es-dev/components/card-header/daikin-card-header.js +8 -8
  394. package/dist/es-dev/components/carousel/daikin-carousel.d.ts +56 -0
  395. package/dist/es-dev/components/carousel/daikin-carousel.js +228 -0
  396. package/dist/es-dev/components/carousel/index.d.ts +1 -0
  397. package/dist/es-dev/components/carousel/index.js +4 -0
  398. package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +50 -0
  399. package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +81 -0
  400. package/dist/es-dev/components/carousel-item/index.d.ts +1 -0
  401. package/dist/es-dev/components/carousel-item/index.js +4 -0
  402. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +8 -2
  403. package/dist/es-dev/components/checkbox/daikin-checkbox.js +34 -15
  404. package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +64 -11
  405. package/dist/es-dev/components/dropdown/daikin-dropdown.js +160 -73
  406. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +16 -3
  407. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +108 -40
  408. package/dist/es-dev/components/icon/daikin-icon.d.ts +2 -2
  409. package/dist/es-dev/components/icon/daikin-icon.js +7 -4
  410. package/dist/es-dev/components/icon/icons.json.d.ts +4 -8
  411. package/dist/es-dev/components/icon/icons.json.js +1 -70
  412. package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
  413. package/dist/es-dev/components/icon-button/daikin-icon-button.js +7 -4
  414. package/dist/es-dev/components/index.d.ts +7 -1
  415. package/dist/es-dev/components/index.js +14 -2
  416. package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +55 -0
  417. package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +93 -0
  418. package/dist/es-dev/components/inline-notification/index.d.ts +1 -0
  419. package/dist/es-dev/components/inline-notification/index.js +4 -0
  420. package/dist/es-dev/components/input-group/daikin-input-group.d.ts +15 -7
  421. package/dist/es-dev/components/input-group/daikin-input-group.js +11 -8
  422. package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
  423. package/dist/es-dev/components/link/daikin-link.js +8 -5
  424. package/dist/es-dev/components/list/daikin-list.d.ts +7 -2
  425. package/dist/es-dev/components/list/daikin-list.js +7 -7
  426. package/dist/es-dev/components/list-item/daikin-list-item.d.ts +6 -2
  427. package/dist/es-dev/components/list-item/daikin-list-item.js +7 -4
  428. package/dist/es-dev/components/loading/daikin-loading.d.ts +32 -0
  429. package/dist/es-dev/components/loading/daikin-loading.js +92 -0
  430. package/dist/es-dev/components/loading/index.d.ts +1 -0
  431. package/dist/es-dev/components/loading/index.js +4 -0
  432. package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
  433. package/dist/es-dev/components/pagination/daikin-pagination.js +21 -12
  434. package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +3 -2
  435. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +12 -7
  436. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
  437. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +15 -29
  438. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
  439. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
  440. package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
  441. package/dist/es-dev/components/radio/daikin-radio.js +44 -22
  442. package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +20 -14
  443. package/dist/es-dev/components/radio-group/daikin-radio-group.js +30 -10
  444. package/dist/es-dev/components/select/daikin-select.d.ts +11 -2
  445. package/dist/es-dev/components/select/daikin-select.js +14 -5
  446. package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
  447. package/dist/es-dev/components/tab/daikin-tab.js +24 -9
  448. package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +2 -2
  449. package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +8 -6
  450. package/dist/es-dev/components/table/daikin-table.d.ts +9 -2
  451. package/dist/es-dev/components/table/daikin-table.js +8 -5
  452. package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +6 -2
  453. package/dist/es-dev/components/table-cell/daikin-table-cell.js +7 -4
  454. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
  455. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +7 -4
  456. package/dist/es-dev/components/tabs/daikin-tabs.d.ts +8 -2
  457. package/dist/es-dev/components/tabs/daikin-tabs.js +24 -9
  458. package/dist/es-dev/components/text-area/daikin-text-area.d.ts +7 -2
  459. package/dist/es-dev/components/text-area/daikin-text-area.js +15 -6
  460. package/dist/es-dev/components/text-field/daikin-text-field.d.ts +7 -2
  461. package/dist/es-dev/components/text-field/daikin-text-field.js +15 -6
  462. package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +69 -0
  463. package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +95 -0
  464. package/dist/es-dev/components/toast-notification/index.d.ts +1 -0
  465. package/dist/es-dev/components/toast-notification/index.js +4 -0
  466. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
  467. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
  468. package/dist/es-dev/components/toast-notification-manager/index.d.ts +1 -0
  469. package/dist/es-dev/components/toast-notification-manager/index.js +4 -0
  470. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -2
  471. package/dist/es-dev/components/toggle/daikin-toggle.js +7 -4
  472. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
  473. package/dist/es-dev/components/tooltip/daikin-tooltip.js +41 -29
  474. package/dist/es-dev/components/tree/daikin-tree.d.ts +13 -14
  475. package/dist/es-dev/components/tree/daikin-tree.js +35 -36
  476. package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +9 -9
  477. package/dist/es-dev/components/tree-item/daikin-tree-item.js +21 -17
  478. package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +10 -20
  479. package/dist/es-dev/components/tree-section/daikin-tree-section.js +25 -40
  480. package/dist/es-dev/controllers/click-outside.d.ts +1 -1
  481. package/dist/es-dev/index.js +14 -2
  482. package/dist/es-dev/tailwind.css.js +1 -1
  483. package/dist/es-dev/utils/is-similar-to-click.d.ts +1 -0
  484. package/dist/es-dev/utils/is-similar-to-click.js +4 -0
  485. package/dist/es-dev/utils/notification-common.d.ts +19 -0
  486. package/dist/es-dev/utils/notification-common.js +124 -0
  487. package/icons/checkbox-checked.svg +2 -3
  488. package/icons/profile.svg +4 -0
  489. package/icons/status-negative.svg +4 -2
  490. package/icons/status-warning.svg +2 -4
  491. package/package.json +54 -50
  492. package/dist/cjs/components/notification/daikin-notification.cjs +0 -196
  493. package/dist/cjs/components/notification/daikin-notification.d.cts +0 -77
  494. package/dist/cjs/components/notification/index.cjs +0 -7
  495. package/dist/cjs/components/notification/index.d.cts +0 -1
  496. package/dist/cjs/constants/events.cjs +0 -4
  497. package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -196
  498. package/dist/cjs-dev/components/notification/daikin-notification.d.cts +0 -77
  499. package/dist/cjs-dev/components/notification/index.cjs +0 -7
  500. package/dist/cjs-dev/components/notification/index.d.cts +0 -1
  501. package/dist/cjs-dev/constants/events.cjs +0 -4
  502. package/dist/es/components/notification/daikin-notification.d.ts +0 -77
  503. package/dist/es/components/notification/daikin-notification.js +0 -197
  504. package/dist/es/components/notification/index.d.ts +0 -1
  505. package/dist/es/components/notification/index.js +0 -4
  506. package/dist/es/constants/events.js +0 -4
  507. package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
  508. package/dist/es-dev/components/notification/daikin-notification.js +0 -197
  509. package/dist/es-dev/components/notification/index.d.ts +0 -1
  510. package/dist/es-dev/components/notification/index.js +0 -4
  511. package/dist/es-dev/constants/events.js +0 -4
  512. package/icons/arrow-up.svg +0 -3
  513. package/icons/status-success.svg +0 -6
@@ -1,77 +0,0 @@
1
- import { LitElement, nothing } from 'lit';
2
- import { MergeVariantProps } from "../../type-utils.cjs";
3
- declare const cvaContainer: (props?: ({
4
- variant?: "toast" | "inline" | null | undefined;
5
- status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
6
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
- declare const cvaIconContainer: (props?: ({
8
- status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
9
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
- declare const cvaContent: (props?: ({
11
- line?: "single" | "multi" | null | undefined;
12
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
13
- type NotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof cvaIconContainer | typeof cvaContent>;
14
- /**
15
- * The notification component is a UI element used to inform users about important updates, alerts, or messages within an application.
16
- *
17
- * There are two variants of notification components: `toast` and `inline`.
18
- *
19
- * Toast notifications are brief messages that should appear temporarily at the edge of the screen, typically in the bottom or top corner.
20
- * Toast notifications are ideal for conveying transient information that does not require user interaction, such as success messages, warnings, or alerts. \
21
- * Please note that **currently we don't support automatic placement or stacking of toast notifications**.
22
- *
23
- * Inline notifications appear within the content of the application, usually embedded directly within a page or section.
24
- * Inline notifications are more persistent and are used to highlight important information or status updates that should remain visible to the user until they are acknowledged or the issue is resolved.
25
- *
26
- * @fires close - A custom event emitted when a user clicks the close button.
27
- *
28
- * @slot title - A slot for the notification title content.
29
- * @slot description - A slot for the notification description content.
30
- *
31
- * @example
32
- *
33
- * ```js
34
- * import "@daikin-oss/design-system-web-components/components/notification/index.js";
35
- * ```
36
- *
37
- * ```html
38
- * <daikin-notification>
39
- * <span slot="title">Notification title</span>
40
- * <span slot="description">Notification description</span>
41
- * </daikin-notification>
42
- * ```
43
- */
44
- export declare class DaikinNotification extends LitElement {
45
- static readonly styles: import('lit').CSSResult;
46
- /**
47
- * Type of notification.
48
- */
49
- variant: NotificationVariantProps["variant"];
50
- /**
51
- * Status of notification.
52
- */
53
- status: NotificationVariantProps["status"];
54
- /**
55
- * Display in single or multiple lines.
56
- */
57
- line: NotificationVariantProps["line"];
58
- /**
59
- * Specify the notification's open state.
60
- */
61
- open: boolean;
62
- /**
63
- * Whether to display the close button.
64
- */
65
- closeButton: boolean;
66
- /**
67
- * Call the event registered in "close".
68
- */
69
- private _handleClickClose;
70
- render(): import('lit-html').TemplateResult<1> | typeof nothing;
71
- }
72
- declare global {
73
- interface HTMLElementTagNameMap {
74
- "daikin-notification": DaikinNotification;
75
- }
76
- }
77
- export {};
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const daikinNotification = require("./daikin-notification.cjs");
4
- Object.defineProperty(exports, "DaikinNotification", {
5
- enumerable: true,
6
- get: () => daikinNotification.DaikinNotification
7
- });
@@ -1 +0,0 @@
1
- export * from "./daikin-notification.cjs";
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const EVENT_CLOSE = "close";
4
- exports.EVENT_CLOSE = EVENT_CLOSE;
@@ -1,77 +0,0 @@
1
- import { LitElement, nothing } from 'lit';
2
- import { MergeVariantProps } from "../../type-utils.js";
3
- declare const cvaContainer: (props?: ({
4
- variant?: "toast" | "inline" | null | undefined;
5
- status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
6
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
- declare const cvaIconContainer: (props?: ({
8
- status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
9
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
- declare const cvaContent: (props?: ({
11
- line?: "single" | "multi" | null | undefined;
12
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
13
- type NotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof cvaIconContainer | typeof cvaContent>;
14
- /**
15
- * The notification component is a UI element used to inform users about important updates, alerts, or messages within an application.
16
- *
17
- * There are two variants of notification components: `toast` and `inline`.
18
- *
19
- * Toast notifications are brief messages that should appear temporarily at the edge of the screen, typically in the bottom or top corner.
20
- * Toast notifications are ideal for conveying transient information that does not require user interaction, such as success messages, warnings, or alerts. \
21
- * Please note that **currently we don't support automatic placement or stacking of toast notifications**.
22
- *
23
- * Inline notifications appear within the content of the application, usually embedded directly within a page or section.
24
- * Inline notifications are more persistent and are used to highlight important information or status updates that should remain visible to the user until they are acknowledged or the issue is resolved.
25
- *
26
- * @fires close - A custom event emitted when a user clicks the close button.
27
- *
28
- * @slot title - A slot for the notification title content.
29
- * @slot description - A slot for the notification description content.
30
- *
31
- * @example
32
- *
33
- * ```js
34
- * import "@daikin-oss/design-system-web-components/components/notification/index.js";
35
- * ```
36
- *
37
- * ```html
38
- * <daikin-notification>
39
- * <span slot="title">Notification title</span>
40
- * <span slot="description">Notification description</span>
41
- * </daikin-notification>
42
- * ```
43
- */
44
- export declare class DaikinNotification extends LitElement {
45
- static readonly styles: import('lit').CSSResult;
46
- /**
47
- * Type of notification.
48
- */
49
- variant: NotificationVariantProps["variant"];
50
- /**
51
- * Status of notification.
52
- */
53
- status: NotificationVariantProps["status"];
54
- /**
55
- * Display in single or multiple lines.
56
- */
57
- line: NotificationVariantProps["line"];
58
- /**
59
- * Specify the notification's open state.
60
- */
61
- open: boolean;
62
- /**
63
- * Whether to display the close button.
64
- */
65
- closeButton: boolean;
66
- /**
67
- * Call the event registered in "close".
68
- */
69
- private _handleClickClose;
70
- render(): import('lit-html').TemplateResult<1> | typeof nothing;
71
- }
72
- declare global {
73
- interface HTMLElementTagNameMap {
74
- "daikin-notification": DaikinNotification;
75
- }
76
- }
77
- export {};
@@ -1,197 +0,0 @@
1
- import { cva } from "class-variance-authority";
2
- import { css, unsafeCSS, LitElement, html, nothing } from "lit";
3
- import { property, customElement } from "lit/decorators.js";
4
- import { EVENT_CLOSE } from "../../constants/events.js";
5
- import tailwindStyles from "../../tailwind.css.js";
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
- const cvaContainer = cva(
17
- [
18
- "flex",
19
- "box-border",
20
- "bg-ddt-color-common-background-default",
21
- "overflow-hidden",
22
- "font-daikinSerif"
23
- ],
24
- {
25
- variants: {
26
- variant: {
27
- toast: [
28
- "border-2",
29
- "border-solid",
30
- "rounded-lg",
31
- "shadow-notification"
32
- ],
33
- inline: []
34
- },
35
- status: {
36
- positive: ["border-ddt-color-common-success"],
37
- negative: ["border-ddt-color-common-danger-default"],
38
- warning: ["border-ddt-color-common-warning"],
39
- alarm: ["border-ddt-color-common-alarm"],
40
- information: ["border-ddt-color-common-information"]
41
- }
42
- },
43
- defaultVariants: {
44
- variant: "toast",
45
- status: "positive"
46
- }
47
- }
48
- );
49
- const cvaIconContainer = cva(
50
- [
51
- "flex-none",
52
- "flex",
53
- "justify-center",
54
- "items-center",
55
- "w-[2.75rem]",
56
- "after:size-6",
57
- "after:text-ddt-color-common-background-default"
58
- ],
59
- {
60
- variants: {
61
- status: {
62
- positive: [
63
- "bg-ddt-color-common-success",
64
- "after:i-daikin-status-positive"
65
- ],
66
- negative: [
67
- "bg-ddt-color-common-danger-default",
68
- "after:i-daikin-status-negative"
69
- ],
70
- warning: [
71
- "bg-ddt-color-common-warning",
72
- "after:i-daikin-status-warning"
73
- ],
74
- alarm: ["bg-ddt-color-common-alarm", "after:i-daikin-status-alarm"],
75
- information: [
76
- "bg-ddt-color-common-information",
77
- "after:i-daikin-status-information"
78
- ]
79
- }
80
- },
81
- defaultVariants: {
82
- status: "positive"
83
- }
84
- }
85
- );
86
- const cvaContent = cva(
87
- ["flex", "justify-center", "gap-1", "w-fit", "flex-none"],
88
- {
89
- variants: {
90
- line: {
91
- single: ["items-center", "flex-row"],
92
- multi: ["items-start", "flex-col"]
93
- }
94
- },
95
- defaultVariants: {
96
- line: "single"
97
- }
98
- }
99
- );
100
- let DaikinNotification = class extends LitElement {
101
- constructor() {
102
- super(...arguments);
103
- this.variant = "toast";
104
- this.status = "positive";
105
- this.line = "single";
106
- this.open = false;
107
- this.closeButton = false;
108
- }
109
- /**
110
- * Call the event registered in "close".
111
- */
112
- _handleClickClose() {
113
- const event = new CustomEvent(EVENT_CLOSE);
114
- this.open = false;
115
- this.dispatchEvent(event);
116
- }
117
- render() {
118
- const role = {
119
- inline: "status",
120
- toast: "alert"
121
- }[this.variant];
122
- return this.open ? html`<aside
123
- class=${cvaContainer({
124
- variant: this.variant,
125
- status: this.status
126
- })}
127
- role=${role}
128
- >
129
- <div
130
- class=${cvaIconContainer({
131
- status: this.status
132
- })}
133
- ></div>
134
- <div
135
- class="flex justify-between items-center gap-5 p-5 text-lg flex-auto flex-shrink-0"
136
- >
137
- <div
138
- class=${cvaContent({
139
- line: this.line
140
- })}
141
- >
142
- <div class="font-bold flex-none">
143
- <slot name="title"></slot>
144
- </div>
145
- <div class="flex-none">
146
- <slot name="description"></slot>
147
- </div>
148
- </div>
149
- ${this.closeButton ? html`
150
- <div class="flex items-center gap-5">
151
- <button
152
- aria-label="Close"
153
- class="relative flex w-5 h-5 after:i-daikin-notification-close after:size-5 after:text-[#a0a0a0]"
154
- @click=${this._handleClickClose}
155
- ></button>
156
- </div>
157
- ` : nothing}
158
- </div>
159
- </aside>` : nothing;
160
- }
161
- };
162
- DaikinNotification.styles = css`
163
- ${unsafeCSS(tailwindStyles)}
164
-
165
- :host {
166
- display: block;
167
- }
168
-
169
- :host([variant="toast"]) {
170
- width: max-content;
171
- }
172
-
173
- :host([variant="inline"]) {
174
- width: 100%;
175
- }
176
- `;
177
- __decorateClass([
178
- property({ type: String, reflect: true })
179
- ], DaikinNotification.prototype, "variant", 2);
180
- __decorateClass([
181
- property({ type: String })
182
- ], DaikinNotification.prototype, "status", 2);
183
- __decorateClass([
184
- property({ type: String })
185
- ], DaikinNotification.prototype, "line", 2);
186
- __decorateClass([
187
- property({ type: Boolean, reflect: true })
188
- ], DaikinNotification.prototype, "open", 2);
189
- __decorateClass([
190
- property({ type: Boolean, attribute: "close-button" })
191
- ], DaikinNotification.prototype, "closeButton", 2);
192
- DaikinNotification = __decorateClass([
193
- customElement("daikin-notification")
194
- ], DaikinNotification);
195
- export {
196
- DaikinNotification
197
- };
@@ -1 +0,0 @@
1
- export * from "./daikin-notification.js";
@@ -1,4 +0,0 @@
1
- import { DaikinNotification } from "./daikin-notification.js";
2
- export {
3
- DaikinNotification
4
- };
@@ -1,4 +0,0 @@
1
- const EVENT_CLOSE = "close";
2
- export {
3
- EVENT_CLOSE
4
- };
@@ -1,77 +0,0 @@
1
- import { LitElement, nothing } from 'lit';
2
- import { MergeVariantProps } from "../../type-utils.js";
3
- declare const cvaContainer: (props?: ({
4
- variant?: "toast" | "inline" | null | undefined;
5
- status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
6
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
- declare const cvaIconContainer: (props?: ({
8
- status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
9
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
- declare const cvaContent: (props?: ({
11
- line?: "single" | "multi" | null | undefined;
12
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
13
- type NotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof cvaIconContainer | typeof cvaContent>;
14
- /**
15
- * The notification component is a UI element used to inform users about important updates, alerts, or messages within an application.
16
- *
17
- * There are two variants of notification components: `toast` and `inline`.
18
- *
19
- * Toast notifications are brief messages that should appear temporarily at the edge of the screen, typically in the bottom or top corner.
20
- * Toast notifications are ideal for conveying transient information that does not require user interaction, such as success messages, warnings, or alerts. \
21
- * Please note that **currently we don't support automatic placement or stacking of toast notifications**.
22
- *
23
- * Inline notifications appear within the content of the application, usually embedded directly within a page or section.
24
- * Inline notifications are more persistent and are used to highlight important information or status updates that should remain visible to the user until they are acknowledged or the issue is resolved.
25
- *
26
- * @fires close - A custom event emitted when a user clicks the close button.
27
- *
28
- * @slot title - A slot for the notification title content.
29
- * @slot description - A slot for the notification description content.
30
- *
31
- * @example
32
- *
33
- * ```js
34
- * import "@daikin-oss/design-system-web-components/components/notification/index.js";
35
- * ```
36
- *
37
- * ```html
38
- * <daikin-notification>
39
- * <span slot="title">Notification title</span>
40
- * <span slot="description">Notification description</span>
41
- * </daikin-notification>
42
- * ```
43
- */
44
- export declare class DaikinNotification extends LitElement {
45
- static readonly styles: import('lit').CSSResult;
46
- /**
47
- * Type of notification.
48
- */
49
- variant: NotificationVariantProps["variant"];
50
- /**
51
- * Status of notification.
52
- */
53
- status: NotificationVariantProps["status"];
54
- /**
55
- * Display in single or multiple lines.
56
- */
57
- line: NotificationVariantProps["line"];
58
- /**
59
- * Specify the notification's open state.
60
- */
61
- open: boolean;
62
- /**
63
- * Whether to display the close button.
64
- */
65
- closeButton: boolean;
66
- /**
67
- * Call the event registered in "close".
68
- */
69
- private _handleClickClose;
70
- render(): import('lit-html').TemplateResult<1> | typeof nothing;
71
- }
72
- declare global {
73
- interface HTMLElementTagNameMap {
74
- "daikin-notification": DaikinNotification;
75
- }
76
- }
77
- export {};
@@ -1,197 +0,0 @@
1
- import { cva } from "class-variance-authority";
2
- import { css, unsafeCSS, LitElement, html, nothing } from "lit";
3
- import { property, customElement } from "lit/decorators.js";
4
- import { EVENT_CLOSE } from "../../constants/events.js";
5
- import tailwindStyles from "../../tailwind.css.js";
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
- const cvaContainer = cva(
17
- [
18
- "flex",
19
- "box-border",
20
- "bg-ddt-color-common-background-default",
21
- "overflow-hidden",
22
- "font-daikinSerif"
23
- ],
24
- {
25
- variants: {
26
- variant: {
27
- toast: [
28
- "border-2",
29
- "border-solid",
30
- "rounded-lg",
31
- "shadow-notification"
32
- ],
33
- inline: []
34
- },
35
- status: {
36
- positive: ["border-ddt-color-common-success"],
37
- negative: ["border-ddt-color-common-danger-default"],
38
- warning: ["border-ddt-color-common-warning"],
39
- alarm: ["border-ddt-color-common-alarm"],
40
- information: ["border-ddt-color-common-information"]
41
- }
42
- },
43
- defaultVariants: {
44
- variant: "toast",
45
- status: "positive"
46
- }
47
- }
48
- );
49
- const cvaIconContainer = cva(
50
- [
51
- "flex-none",
52
- "flex",
53
- "justify-center",
54
- "items-center",
55
- "w-[2.75rem]",
56
- "after:size-6",
57
- "after:text-ddt-color-common-background-default"
58
- ],
59
- {
60
- variants: {
61
- status: {
62
- positive: [
63
- "bg-ddt-color-common-success",
64
- "after:i-daikin-status-positive"
65
- ],
66
- negative: [
67
- "bg-ddt-color-common-danger-default",
68
- "after:i-daikin-status-negative"
69
- ],
70
- warning: [
71
- "bg-ddt-color-common-warning",
72
- "after:i-daikin-status-warning"
73
- ],
74
- alarm: ["bg-ddt-color-common-alarm", "after:i-daikin-status-alarm"],
75
- information: [
76
- "bg-ddt-color-common-information",
77
- "after:i-daikin-status-information"
78
- ]
79
- }
80
- },
81
- defaultVariants: {
82
- status: "positive"
83
- }
84
- }
85
- );
86
- const cvaContent = cva(
87
- ["flex", "justify-center", "gap-1", "w-fit", "flex-none"],
88
- {
89
- variants: {
90
- line: {
91
- single: ["items-center", "flex-row"],
92
- multi: ["items-start", "flex-col"]
93
- }
94
- },
95
- defaultVariants: {
96
- line: "single"
97
- }
98
- }
99
- );
100
- let DaikinNotification = class extends LitElement {
101
- constructor() {
102
- super(...arguments);
103
- this.variant = "toast";
104
- this.status = "positive";
105
- this.line = "single";
106
- this.open = false;
107
- this.closeButton = false;
108
- }
109
- /**
110
- * Call the event registered in "close".
111
- */
112
- _handleClickClose() {
113
- const event = new CustomEvent(EVENT_CLOSE);
114
- this.open = false;
115
- this.dispatchEvent(event);
116
- }
117
- render() {
118
- const role = {
119
- inline: "status",
120
- toast: "alert"
121
- }[this.variant];
122
- return this.open ? html`<aside
123
- class=${cvaContainer({
124
- variant: this.variant,
125
- status: this.status
126
- })}
127
- role=${role}
128
- >
129
- <div
130
- class=${cvaIconContainer({
131
- status: this.status
132
- })}
133
- ></div>
134
- <div
135
- class="flex justify-between items-center gap-5 p-5 text-lg flex-auto flex-shrink-0"
136
- >
137
- <div
138
- class=${cvaContent({
139
- line: this.line
140
- })}
141
- >
142
- <div class="font-bold flex-none">
143
- <slot name="title"></slot>
144
- </div>
145
- <div class="flex-none">
146
- <slot name="description"></slot>
147
- </div>
148
- </div>
149
- ${this.closeButton ? html`
150
- <div class="flex items-center gap-5">
151
- <button
152
- aria-label="Close"
153
- class="relative flex w-5 h-5 after:i-daikin-notification-close after:size-5 after:text-[#a0a0a0]"
154
- @click=${this._handleClickClose}
155
- ></button>
156
- </div>
157
- ` : nothing}
158
- </div>
159
- </aside>` : nothing;
160
- }
161
- };
162
- DaikinNotification.styles = css`
163
- ${unsafeCSS(tailwindStyles)}
164
-
165
- :host {
166
- display: block;
167
- }
168
-
169
- :host([variant="toast"]) {
170
- width: max-content;
171
- }
172
-
173
- :host([variant="inline"]) {
174
- width: 100%;
175
- }
176
- `;
177
- __decorateClass([
178
- property({ type: String, reflect: true })
179
- ], DaikinNotification.prototype, "variant", 2);
180
- __decorateClass([
181
- property({ type: String })
182
- ], DaikinNotification.prototype, "status", 2);
183
- __decorateClass([
184
- property({ type: String })
185
- ], DaikinNotification.prototype, "line", 2);
186
- __decorateClass([
187
- property({ type: Boolean, reflect: true })
188
- ], DaikinNotification.prototype, "open", 2);
189
- __decorateClass([
190
- property({ type: Boolean, attribute: "close-button" })
191
- ], DaikinNotification.prototype, "closeButton", 2);
192
- DaikinNotification = __decorateClass([
193
- customElement("daikin-notification")
194
- ], DaikinNotification);
195
- export {
196
- DaikinNotification
197
- };
@@ -1 +0,0 @@
1
- export * from "./daikin-notification.js";
@@ -1,4 +0,0 @@
1
- import { DaikinNotification } from "./daikin-notification.js";
2
- export {
3
- DaikinNotification
4
- };
@@ -1,4 +0,0 @@
1
- const EVENT_CLOSE = "close";
2
- export {
3
- EVENT_CLOSE
4
- };
@@ -1,3 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M3 10L13 10L8 5L3 10Z" fill="#414141"/>
3
- </svg>
@@ -1,6 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C12.416 0 16 3.584 16 8C16 12.416 12.416 16 8 16C3.584 16 0 12.416 0 8C0 3.584 3.584 0 8 0ZM6.84425 9.18186L10.5243 5.44774C10.8478 5.12217 11.3778 5.11679 11.708 5.43573C11.7119 5.43948 11.7602 5.4879 11.7602 5.4879C12.0799 5.80891 12.0799 6.32322 11.7602 6.64423L6.84425 11.6L4.23978 8.9783C3.92202 8.65924 3.91981 8.14874 4.23479 7.82702L4.26579 7.79535C4.58673 7.46755 5.11644 7.4583 5.44894 7.7747C5.45433 7.77983 6.84425 9.18186 6.84425 9.18186Z" fill="currentColor"/>
3
- <mask style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="16" height="16">
4
- <path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C12.416 0 16 3.584 16 8C16 12.416 12.416 16 8 16C3.584 16 0 12.416 0 8C0 3.584 3.584 0 8 0ZM6.84425 9.18186L10.5243 5.44774C10.8478 5.12217 11.3778 5.11679 11.708 5.43573C11.7119 5.43948 11.7602 5.4879 11.7602 5.4879C12.0799 5.80891 12.0799 6.32322 11.7602 6.64423L6.84425 11.6L4.23978 8.9783C3.92202 8.65924 3.91981 8.14874 4.23479 7.82702L4.26579 7.79535C4.58673 7.46755 5.11644 7.4583 5.44894 7.7747C5.45433 7.77983 6.84425 9.18186 6.84425 9.18186Z" fill="white"/>
5
- </mask>
6
- </svg>