@daikin-oss/design-system-web-components 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/CHANGELOG.md +107 -0
  2. package/dist/cjs/components/accordion/daikin-accordion.cjs +31 -6
  3. package/dist/cjs/components/accordion/daikin-accordion.d.ts +15 -10
  4. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +105 -59
  5. package/dist/cjs/components/accordion-item/daikin-accordion-item.d.ts +28 -14
  6. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +121 -0
  7. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.ts +56 -0
  8. package/dist/cjs/components/breadcrumb/index.cjs +7 -0
  9. package/dist/cjs/components/breadcrumb/index.d.ts +1 -0
  10. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +124 -0
  11. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +72 -0
  12. package/dist/cjs/components/breadcrumb-item/index.cjs +7 -0
  13. package/dist/cjs/components/breadcrumb-item/index.d.ts +1 -0
  14. package/dist/cjs/components/button/daikin-button.cjs +89 -128
  15. package/dist/cjs/components/button/daikin-button.d.ts +30 -28
  16. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +99 -119
  17. package/dist/cjs/components/checkbox/daikin-checkbox.d.ts +27 -39
  18. package/dist/cjs/components/icon/daikin-icon.d.ts +4 -1
  19. package/dist/cjs/components/icon/icons.json.cjs +20 -0
  20. package/dist/cjs/components/icon/icons.json.d.ts +20 -0
  21. package/dist/cjs/components/index.cjs +36 -6
  22. package/dist/cjs/components/index.d.ts +8 -2
  23. package/dist/cjs/components/input-group/daikin-input-group.cjs +1 -1
  24. package/dist/cjs/components/input-group/daikin-input-group.d.ts +6 -1
  25. package/dist/cjs/components/list/daikin-list.cjs +24 -0
  26. package/dist/cjs/components/list/daikin-list.d.ts +28 -0
  27. package/dist/cjs/components/list/index.cjs +7 -0
  28. package/dist/cjs/components/list/index.d.ts +1 -0
  29. package/dist/cjs/components/list-item/daikin-list-item.cjs +125 -0
  30. package/dist/cjs/components/list-item/daikin-list-item.d.ts +64 -0
  31. package/dist/cjs/components/list-item/index.cjs +7 -0
  32. package/dist/cjs/components/list-item/index.d.ts +1 -0
  33. package/dist/cjs/components/notification/daikin-notification.cjs +14 -15
  34. package/dist/cjs/components/notification/daikin-notification.d.ts +13 -12
  35. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +161 -0
  36. package/dist/cjs/components/progress-bar/daikin-progress-bar.d.ts +69 -0
  37. package/dist/cjs/components/progress-bar/index.cjs +7 -0
  38. package/dist/cjs/components/progress-bar/index.d.ts +1 -0
  39. package/dist/cjs/components/radio/daikin-radio.cjs +73 -92
  40. package/dist/cjs/components/radio/daikin-radio.d.ts +23 -40
  41. package/dist/cjs/components/tab/daikin-tab.cjs +41 -46
  42. package/dist/cjs/components/tab/daikin-tab.d.ts +12 -13
  43. package/dist/cjs/components/{panel-switcher/daikin-panel-switcher.cjs → tab-panels/daikin-tab-panels.cjs} +8 -8
  44. package/dist/{cjs-dev/components/panel-switcher/daikin-panel-switcher.d.ts → cjs/components/tab-panels/daikin-tab-panels.d.ts} +17 -12
  45. package/dist/cjs/components/tab-panels/index.cjs +7 -0
  46. package/dist/cjs/components/tab-panels/index.d.ts +1 -0
  47. package/dist/cjs/components/{tab-group/daikin-tab-group.cjs → tabs/daikin-tabs.cjs} +29 -35
  48. package/dist/cjs/components/{tab-group/daikin-tab-group.d.ts → tabs/daikin-tabs.d.ts} +27 -22
  49. package/dist/cjs/components/tabs/index.cjs +7 -0
  50. package/dist/cjs/components/tabs/index.d.ts +1 -0
  51. package/dist/cjs/components/text-input/daikin-text-input.cjs +4 -3
  52. package/dist/cjs/components/text-input/daikin-text-input.d.ts +5 -1
  53. package/dist/cjs/components/textarea/daikin-textarea.cjs +3 -3
  54. package/dist/cjs/components/textarea/daikin-textarea.d.ts +5 -1
  55. package/dist/cjs/components/toggle/daikin-toggle.cjs +44 -68
  56. package/dist/cjs/components/toggle/daikin-toggle.d.ts +15 -27
  57. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +223 -0
  58. package/dist/cjs/components/tooltip/daikin-tooltip.d.ts +80 -0
  59. package/dist/cjs/components/tooltip/index.cjs +7 -0
  60. package/dist/cjs/components/tooltip/index.d.ts +1 -0
  61. package/dist/cjs/index.cjs +36 -6
  62. package/dist/cjs/is-client.cjs +5 -0
  63. package/dist/cjs/is-client.d.ts +1 -0
  64. package/dist/cjs/tailwind.css.cjs +2 -2
  65. package/dist/cjs/type-utils.d.ts +0 -1
  66. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +31 -6
  67. package/dist/cjs-dev/components/accordion/daikin-accordion.d.ts +15 -10
  68. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +105 -59
  69. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.ts +28 -14
  70. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +121 -0
  71. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.ts +56 -0
  72. package/dist/cjs-dev/components/breadcrumb/index.cjs +7 -0
  73. package/dist/cjs-dev/components/breadcrumb/index.d.ts +1 -0
  74. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +124 -0
  75. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +72 -0
  76. package/dist/cjs-dev/components/breadcrumb-item/index.cjs +7 -0
  77. package/dist/cjs-dev/components/breadcrumb-item/index.d.ts +1 -0
  78. package/dist/cjs-dev/components/button/daikin-button.cjs +89 -128
  79. package/dist/cjs-dev/components/button/daikin-button.d.ts +30 -28
  80. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +99 -119
  81. package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.ts +27 -39
  82. package/dist/cjs-dev/components/icon/daikin-icon.d.ts +4 -1
  83. package/dist/cjs-dev/components/icon/icons.json.cjs +20 -0
  84. package/dist/cjs-dev/components/icon/icons.json.d.ts +20 -0
  85. package/dist/cjs-dev/components/index.cjs +36 -6
  86. package/dist/cjs-dev/components/index.d.ts +8 -2
  87. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +1 -1
  88. package/dist/cjs-dev/components/input-group/daikin-input-group.d.ts +6 -1
  89. package/dist/cjs-dev/components/list/daikin-list.cjs +24 -0
  90. package/dist/cjs-dev/components/list/daikin-list.d.ts +28 -0
  91. package/dist/cjs-dev/components/list/index.cjs +7 -0
  92. package/dist/cjs-dev/components/list/index.d.ts +1 -0
  93. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +125 -0
  94. package/dist/cjs-dev/components/list-item/daikin-list-item.d.ts +64 -0
  95. package/dist/cjs-dev/components/list-item/index.cjs +7 -0
  96. package/dist/cjs-dev/components/list-item/index.d.ts +1 -0
  97. package/dist/cjs-dev/components/notification/daikin-notification.cjs +14 -15
  98. package/dist/cjs-dev/components/notification/daikin-notification.d.ts +13 -12
  99. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +176 -0
  100. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.ts +69 -0
  101. package/dist/cjs-dev/components/progress-bar/index.cjs +7 -0
  102. package/dist/cjs-dev/components/progress-bar/index.d.ts +1 -0
  103. package/dist/cjs-dev/components/radio/daikin-radio.cjs +73 -92
  104. package/dist/cjs-dev/components/radio/daikin-radio.d.ts +23 -40
  105. package/dist/cjs-dev/components/tab/daikin-tab.cjs +41 -46
  106. package/dist/cjs-dev/components/tab/daikin-tab.d.ts +12 -13
  107. package/dist/cjs-dev/components/{panel-switcher/daikin-panel-switcher.cjs → tab-panels/daikin-tab-panels.cjs} +9 -9
  108. package/dist/{cjs/components/panel-switcher/daikin-panel-switcher.d.ts → cjs-dev/components/tab-panels/daikin-tab-panels.d.ts} +17 -12
  109. package/dist/cjs-dev/components/tab-panels/index.cjs +7 -0
  110. package/dist/cjs-dev/components/tab-panels/index.d.ts +1 -0
  111. package/dist/cjs-dev/components/{tab-group/daikin-tab-group.cjs → tabs/daikin-tabs.cjs} +31 -37
  112. package/dist/{es-dev/components/tab-group/daikin-tab-group.d.ts → cjs-dev/components/tabs/daikin-tabs.d.ts} +27 -22
  113. package/dist/cjs-dev/components/tabs/index.cjs +7 -0
  114. package/dist/cjs-dev/components/tabs/index.d.ts +1 -0
  115. package/dist/cjs-dev/components/text-input/daikin-text-input.cjs +4 -3
  116. package/dist/cjs-dev/components/text-input/daikin-text-input.d.ts +5 -1
  117. package/dist/cjs-dev/components/textarea/daikin-textarea.cjs +3 -3
  118. package/dist/cjs-dev/components/textarea/daikin-textarea.d.ts +5 -1
  119. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +44 -68
  120. package/dist/cjs-dev/components/toggle/daikin-toggle.d.ts +15 -27
  121. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +223 -0
  122. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.ts +80 -0
  123. package/dist/cjs-dev/components/tooltip/index.cjs +7 -0
  124. package/dist/cjs-dev/components/tooltip/index.d.ts +1 -0
  125. package/dist/cjs-dev/index.cjs +36 -6
  126. package/dist/cjs-dev/is-client.cjs +5 -0
  127. package/dist/cjs-dev/is-client.d.ts +1 -0
  128. package/dist/cjs-dev/tailwind.css.cjs +2 -2
  129. package/dist/cjs-dev/type-utils.d.ts +0 -1
  130. package/dist/es/components/accordion/daikin-accordion.d.ts +15 -10
  131. package/dist/es/components/accordion/daikin-accordion.js +32 -7
  132. package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +28 -14
  133. package/dist/es/components/accordion-item/daikin-accordion-item.js +106 -60
  134. package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +56 -0
  135. package/dist/es/components/breadcrumb/daikin-breadcrumb.js +122 -0
  136. package/dist/es/components/breadcrumb/index.d.ts +1 -0
  137. package/dist/es/components/breadcrumb/index.js +4 -0
  138. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +72 -0
  139. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +125 -0
  140. package/dist/es/components/breadcrumb-item/index.d.ts +1 -0
  141. package/dist/es/components/breadcrumb-item/index.js +4 -0
  142. package/dist/es/components/button/daikin-button.d.ts +30 -28
  143. package/dist/es/components/button/daikin-button.js +90 -129
  144. package/dist/es/components/checkbox/daikin-checkbox.d.ts +27 -39
  145. package/dist/es/components/checkbox/daikin-checkbox.js +101 -121
  146. package/dist/es/components/icon/daikin-icon.d.ts +4 -1
  147. package/dist/es/components/icon/icons.json.d.ts +20 -0
  148. package/dist/es/components/icon/icons.json.js +20 -0
  149. package/dist/es/components/index.d.ts +8 -2
  150. package/dist/es/components/index.js +16 -4
  151. package/dist/es/components/input-group/daikin-input-group.d.ts +6 -1
  152. package/dist/es/components/input-group/daikin-input-group.js +1 -1
  153. package/dist/es/components/list/daikin-list.d.ts +28 -0
  154. package/dist/es/components/list/daikin-list.js +25 -0
  155. package/dist/es/components/list/index.d.ts +1 -0
  156. package/dist/es/components/list/index.js +4 -0
  157. package/dist/es/components/list-item/daikin-list-item.d.ts +64 -0
  158. package/dist/es/components/list-item/daikin-list-item.js +126 -0
  159. package/dist/es/components/list-item/index.d.ts +1 -0
  160. package/dist/es/components/list-item/index.js +4 -0
  161. package/dist/es/components/notification/daikin-notification.d.ts +13 -12
  162. package/dist/es/components/notification/daikin-notification.js +15 -16
  163. package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +69 -0
  164. package/dist/es/components/progress-bar/daikin-progress-bar.js +162 -0
  165. package/dist/es/components/progress-bar/index.d.ts +1 -0
  166. package/dist/es/components/progress-bar/index.js +4 -0
  167. package/dist/es/components/radio/daikin-radio.d.ts +23 -40
  168. package/dist/es/components/radio/daikin-radio.js +74 -93
  169. package/dist/es/components/tab/daikin-tab.d.ts +12 -13
  170. package/dist/es/components/tab/daikin-tab.js +42 -47
  171. package/dist/es/components/{panel-switcher/daikin-panel-switcher.d.ts → tab-panels/daikin-tab-panels.d.ts} +17 -12
  172. package/dist/es/components/{panel-switcher/daikin-panel-switcher.js → tab-panels/daikin-tab-panels.js} +9 -9
  173. package/dist/es/components/tab-panels/index.d.ts +1 -0
  174. package/dist/es/components/tab-panels/index.js +4 -0
  175. package/dist/es/components/{tab-group/daikin-tab-group.d.ts → tabs/daikin-tabs.d.ts} +27 -22
  176. package/dist/es/components/{tab-group/daikin-tab-group.js → tabs/daikin-tabs.js} +30 -36
  177. package/dist/es/components/tabs/index.d.ts +1 -0
  178. package/dist/es/components/tabs/index.js +4 -0
  179. package/dist/es/components/text-input/daikin-text-input.d.ts +5 -1
  180. package/dist/es/components/text-input/daikin-text-input.js +4 -3
  181. package/dist/es/components/textarea/daikin-textarea.d.ts +5 -1
  182. package/dist/es/components/textarea/daikin-textarea.js +3 -3
  183. package/dist/es/components/toggle/daikin-toggle.d.ts +15 -27
  184. package/dist/es/components/toggle/daikin-toggle.js +45 -69
  185. package/dist/es/components/tooltip/daikin-tooltip.d.ts +80 -0
  186. package/dist/es/components/tooltip/daikin-tooltip.js +224 -0
  187. package/dist/es/components/tooltip/index.d.ts +1 -0
  188. package/dist/es/components/tooltip/index.js +4 -0
  189. package/dist/es/index.js +16 -4
  190. package/dist/es/is-client.d.ts +1 -0
  191. package/dist/es/is-client.js +5 -0
  192. package/dist/es/tailwind.css.js +2 -2
  193. package/dist/es/type-utils.d.ts +0 -1
  194. package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -10
  195. package/dist/es-dev/components/accordion/daikin-accordion.js +32 -7
  196. package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +28 -14
  197. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +106 -60
  198. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +56 -0
  199. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +122 -0
  200. package/dist/es-dev/components/breadcrumb/index.d.ts +1 -0
  201. package/dist/es-dev/components/breadcrumb/index.js +4 -0
  202. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +72 -0
  203. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +125 -0
  204. package/dist/es-dev/components/breadcrumb-item/index.d.ts +1 -0
  205. package/dist/es-dev/components/breadcrumb-item/index.js +4 -0
  206. package/dist/es-dev/components/button/daikin-button.d.ts +30 -28
  207. package/dist/es-dev/components/button/daikin-button.js +90 -129
  208. package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +27 -39
  209. package/dist/es-dev/components/checkbox/daikin-checkbox.js +101 -121
  210. package/dist/es-dev/components/icon/daikin-icon.d.ts +4 -1
  211. package/dist/es-dev/components/icon/icons.json.d.ts +20 -0
  212. package/dist/es-dev/components/icon/icons.json.js +20 -0
  213. package/dist/es-dev/components/index.d.ts +8 -2
  214. package/dist/es-dev/components/index.js +16 -4
  215. package/dist/es-dev/components/input-group/daikin-input-group.d.ts +6 -1
  216. package/dist/es-dev/components/input-group/daikin-input-group.js +1 -1
  217. package/dist/es-dev/components/list/daikin-list.d.ts +28 -0
  218. package/dist/es-dev/components/list/daikin-list.js +25 -0
  219. package/dist/es-dev/components/list/index.d.ts +1 -0
  220. package/dist/es-dev/components/list/index.js +4 -0
  221. package/dist/es-dev/components/list-item/daikin-list-item.d.ts +64 -0
  222. package/dist/es-dev/components/list-item/daikin-list-item.js +126 -0
  223. package/dist/es-dev/components/list-item/index.d.ts +1 -0
  224. package/dist/es-dev/components/list-item/index.js +4 -0
  225. package/dist/es-dev/components/notification/daikin-notification.d.ts +13 -12
  226. package/dist/es-dev/components/notification/daikin-notification.js +15 -16
  227. package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +69 -0
  228. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +177 -0
  229. package/dist/es-dev/components/progress-bar/index.d.ts +1 -0
  230. package/dist/es-dev/components/progress-bar/index.js +4 -0
  231. package/dist/es-dev/components/radio/daikin-radio.d.ts +23 -40
  232. package/dist/es-dev/components/radio/daikin-radio.js +74 -93
  233. package/dist/es-dev/components/tab/daikin-tab.d.ts +12 -13
  234. package/dist/es-dev/components/tab/daikin-tab.js +42 -47
  235. package/dist/es-dev/components/{panel-switcher/daikin-panel-switcher.d.ts → tab-panels/daikin-tab-panels.d.ts} +17 -12
  236. package/dist/es-dev/components/{panel-switcher/daikin-panel-switcher.js → tab-panels/daikin-tab-panels.js} +10 -10
  237. package/dist/es-dev/components/tab-panels/index.d.ts +1 -0
  238. package/dist/es-dev/components/tab-panels/index.js +4 -0
  239. package/dist/{cjs-dev/components/tab-group/daikin-tab-group.d.ts → es-dev/components/tabs/daikin-tabs.d.ts} +27 -22
  240. package/dist/es-dev/components/{tab-group/daikin-tab-group.js → tabs/daikin-tabs.js} +32 -38
  241. package/dist/es-dev/components/tabs/index.d.ts +1 -0
  242. package/dist/es-dev/components/tabs/index.js +4 -0
  243. package/dist/es-dev/components/text-input/daikin-text-input.d.ts +5 -1
  244. package/dist/es-dev/components/text-input/daikin-text-input.js +4 -3
  245. package/dist/es-dev/components/textarea/daikin-textarea.d.ts +5 -1
  246. package/dist/es-dev/components/textarea/daikin-textarea.js +3 -3
  247. package/dist/es-dev/components/toggle/daikin-toggle.d.ts +15 -27
  248. package/dist/es-dev/components/toggle/daikin-toggle.js +45 -69
  249. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +80 -0
  250. package/dist/es-dev/components/tooltip/daikin-tooltip.js +224 -0
  251. package/dist/es-dev/components/tooltip/index.d.ts +1 -0
  252. package/dist/es-dev/components/tooltip/index.js +4 -0
  253. package/dist/es-dev/index.js +16 -4
  254. package/dist/es-dev/is-client.d.ts +1 -0
  255. package/dist/es-dev/is-client.js +5 -0
  256. package/dist/es-dev/tailwind.css.js +2 -2
  257. package/dist/es-dev/type-utils.d.ts +0 -1
  258. package/icons/checkbox-indeterminate.svg +2 -2
  259. package/icons/chevron-down.svg +3 -0
  260. package/icons/chevron-left.svg +3 -0
  261. package/icons/chevron-right.svg +3 -0
  262. package/icons/chevron-up.svg +3 -0
  263. package/icons/status-error.svg +3 -0
  264. package/icons/status-positive.svg +15 -0
  265. package/package.json +47 -44
  266. package/dist/cjs/components/panel-switcher/index.cjs +0 -7
  267. package/dist/cjs/components/panel-switcher/index.d.ts +0 -1
  268. package/dist/cjs/components/tab-group/index.cjs +0 -7
  269. package/dist/cjs/components/tab-group/index.d.ts +0 -1
  270. package/dist/cjs-dev/components/panel-switcher/index.cjs +0 -7
  271. package/dist/cjs-dev/components/panel-switcher/index.d.ts +0 -1
  272. package/dist/cjs-dev/components/tab-group/index.cjs +0 -7
  273. package/dist/cjs-dev/components/tab-group/index.d.ts +0 -1
  274. package/dist/es/components/panel-switcher/index.d.ts +0 -1
  275. package/dist/es/components/panel-switcher/index.js +0 -4
  276. package/dist/es/components/tab-group/index.d.ts +0 -1
  277. package/dist/es/components/tab-group/index.js +0 -4
  278. package/dist/es-dev/components/panel-switcher/index.d.ts +0 -1
  279. package/dist/es-dev/components/panel-switcher/index.js +0 -4
  280. package/dist/es-dev/components/tab-group/index.d.ts +0 -1
  281. package/dist/es-dev/components/tab-group/index.js +0 -4
  282. package/icons/accordion-chevron-up.svg +0 -3
  283. package/icons/input-group-error.svg +0 -11
  284. package/icons/radio-checked.svg +0 -4
  285. package/icons/radio-unchecked.svg +0 -4
  286. /package/dist/cjs/components/{tab-group → tabs}/scroller.cjs +0 -0
  287. /package/dist/cjs/components/{tab-group → tabs}/scroller.d.ts +0 -0
  288. /package/dist/cjs-dev/components/{tab-group → tabs}/scroller.cjs +0 -0
  289. /package/dist/cjs-dev/components/{tab-group → tabs}/scroller.d.ts +0 -0
  290. /package/dist/es/components/{tab-group → tabs}/scroller.d.ts +0 -0
  291. /package/dist/es/components/{tab-group → tabs}/scroller.js +0 -0
  292. /package/dist/es-dev/components/{tab-group → tabs}/scroller.d.ts +0 -0
  293. /package/dist/es-dev/components/{tab-group → tabs}/scroller.js +0 -0
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const classVarianceAuthority = require("class-variance-authority");
4
+ const lit = require("lit");
5
+ const decorators_js = require("lit/decorators.js");
6
+ const ifDefined_js = require("lit/directives/if-defined.js");
7
+ const tailwind = require("../../tailwind.css.cjs");
8
+ 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 cvaLink = classVarianceAuthority.cva(
19
+ [
20
+ "h-8",
21
+ "font-normal",
22
+ "not-italic",
23
+ "leading-8",
24
+ "text-sm",
25
+ "text-daikinBlue-500",
26
+ "outline-none",
27
+ "font-daikinSerif"
28
+ ],
29
+ {
30
+ variants: {
31
+ variant: {
32
+ normal: [
33
+ "hover:text-daikinBlue-300",
34
+ "active:text-daikinNeutral-800",
35
+ "focus-visible:text-daikinBlue-700"
36
+ ],
37
+ ellipsis: ["hover:text-daikinBlue-300"]
38
+ },
39
+ disabled: {
40
+ true: [
41
+ "!text-daikinNeutral-800",
42
+ "pointer-events-none",
43
+ "cursor-default",
44
+ "focus-visible:!text-daikinNeutral-800"
45
+ ],
46
+ false: []
47
+ }
48
+ }
49
+ }
50
+ );
51
+ exports.DaikinBreadcrumbItem = class DaikinBreadcrumbItem extends lit.LitElement {
52
+ constructor() {
53
+ super(...arguments);
54
+ this.href = "";
55
+ this.variant = "normal";
56
+ this.disabled = false;
57
+ this.target = null;
58
+ this.trailingSlash = false;
59
+ this.last = false;
60
+ this.hidden = false;
61
+ }
62
+ render() {
63
+ const slash = this.trailingSlash ? lit.html`<span
64
+ class="text-daikinNeutral-800 font-daikinSerif"
65
+ aria-hidden="true"
66
+ >
67
+ /
68
+ </span>` : null;
69
+ const isDisabled = this.last || this.disabled;
70
+ return lit.html`
71
+ ${this.variant === "normal" ? lit.html`<a
72
+ class=${cvaLink({ variant: this.variant, disabled: isDisabled })}
73
+ href=${ifDefined_js.ifDefined(!isDisabled && this.href || void 0)}
74
+ target=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
75
+ ifDefined_js.ifDefined(this.target)}
76
+ aria-disabled=${ifDefined_js.ifDefined(isDisabled || void 0)}
77
+ aria-current=${ifDefined_js.ifDefined(this.last || void 0)}
78
+ >
79
+ <slot></slot>
80
+ </a>` : lit.html`<span class=${cvaLink(this)} aria-label="…">
81
+ <span>. . .</span>
82
+ </span> `}
83
+ ${slash}
84
+ `;
85
+ }
86
+ };
87
+ exports.DaikinBreadcrumbItem.styles = lit.css`
88
+ ${lit.unsafeCSS(tailwind.default)}
89
+
90
+ :host {
91
+ display: inline-flex;
92
+ align-items: center;
93
+ gap: 8px;
94
+ flex-shrink: 0;
95
+ }
96
+
97
+ :host([hidden]) {
98
+ display: none;
99
+ }
100
+ `;
101
+ __decorateClass([
102
+ decorators_js.property({ type: String, reflect: true })
103
+ ], exports.DaikinBreadcrumbItem.prototype, "href", 2);
104
+ __decorateClass([
105
+ decorators_js.property({ type: String, reflect: true })
106
+ ], exports.DaikinBreadcrumbItem.prototype, "variant", 2);
107
+ __decorateClass([
108
+ decorators_js.property({ type: Boolean, reflect: true })
109
+ ], exports.DaikinBreadcrumbItem.prototype, "disabled", 2);
110
+ __decorateClass([
111
+ decorators_js.property({ type: String, reflect: true })
112
+ ], exports.DaikinBreadcrumbItem.prototype, "target", 2);
113
+ __decorateClass([
114
+ decorators_js.property({ type: Boolean, reflect: true, attribute: "trailing-slash" })
115
+ ], exports.DaikinBreadcrumbItem.prototype, "trailingSlash", 2);
116
+ __decorateClass([
117
+ decorators_js.property({ type: Boolean, reflect: true })
118
+ ], exports.DaikinBreadcrumbItem.prototype, "last", 2);
119
+ __decorateClass([
120
+ decorators_js.property({ type: Boolean, reflect: true })
121
+ ], exports.DaikinBreadcrumbItem.prototype, "hidden", 2);
122
+ exports.DaikinBreadcrumbItem = __decorateClass([
123
+ decorators_js.customElement("daikin-breadcrumb-item")
124
+ ], exports.DaikinBreadcrumbItem);
@@ -0,0 +1,72 @@
1
+ import { LitElement } from 'lit';
2
+ import { MergeVariantProps } from '../../type-utils';
3
+ declare const cvaLink: (props?: ({
4
+ variant?: "normal" | "ellipsis" | null | undefined;
5
+ disabled?: boolean | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ type LinkVariantProps = MergeVariantProps<typeof cvaLink>;
8
+ /**
9
+ * The `daikin-breadcrumb-item` is a component used to represent each item of the breadcrumb list, and is used as a child element of the `daikin-breadcrumb` component.
10
+ *
11
+ * Hierarchy:
12
+ * - `daikin-breadcrumb` > `daikin-breadcrumb-item`
13
+ *
14
+ * @slot - A slot for the breadcrumb item content.
15
+ *
16
+ * @example
17
+ *
18
+ * ```js
19
+ * import "@daikin-oss/design-system-web-components/components/breadcrumb-item/index.js";
20
+ * ```
21
+ *
22
+ * ```html
23
+ * <!-- See `daikin-breadcrumb` component for complete example. -->
24
+ * <daikin-breadcrumb-item href="#">
25
+ * Breadcrumb Item 1
26
+ * </daikin-breadcrumb-item>
27
+ * ```
28
+ */
29
+ export declare class DaikinBreadcrumbItem extends LitElement {
30
+ static styles: import('lit').CSSResult;
31
+ /**
32
+ * Specify link href
33
+ */
34
+ href: string;
35
+ /**
36
+ * Specifies the display content.
37
+ * If `ellipsis`, the "..." will be displayed instead of the link.
38
+ * Set automatically by `daikin-breadcrumb`.
39
+ */
40
+ variant: LinkVariantProps["variant"];
41
+ /**
42
+ * Specify whether the link should be disabled
43
+ */
44
+ disabled: boolean;
45
+ /**
46
+ * Specify the link target
47
+ */
48
+ target: string | null;
49
+ /**
50
+ * Whether the slash after the link should shown.
51
+ * Set automatically by `daikin-breadcrumb`.
52
+ */
53
+ trailingSlash: boolean;
54
+ /**
55
+ * Whether the item is the last one.
56
+ * When set to `true`, the item will also be considered to be the current page and the link will be disabled.
57
+ * Automatically set by `daikin-breadcrumb` component.
58
+ */
59
+ last: boolean;
60
+ /**
61
+ * Whether the link should be hidden when ellipsis mode.
62
+ * Set automatically by `daikin-breadcrumb`.
63
+ */
64
+ hidden: boolean;
65
+ render(): import('lit-html').TemplateResult<1>;
66
+ }
67
+ declare global {
68
+ interface HTMLElementTagNameMap {
69
+ "daikin-breadcrumb-item": DaikinBreadcrumbItem;
70
+ }
71
+ }
72
+ export {};
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const daikinBreadcrumbItem = require("./daikin-breadcrumb-item.cjs");
4
+ Object.defineProperty(exports, "DaikinBreadcrumbItem", {
5
+ enumerable: true,
6
+ get: () => daikinBreadcrumbItem.DaikinBreadcrumbItem
7
+ });
@@ -0,0 +1 @@
1
+ export * from './daikin-breadcrumb-item';
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const variables_js = require("@daikin-oss/dds-tokens/js/daikin/Light/variables.js");
4
3
  const classVarianceAuthority = require("class-variance-authority");
5
4
  const lit = require("lit");
6
5
  const decorators_js = require("lit/decorators.js");
6
+ const ifDefined_js = require("lit/directives/if-defined.js");
7
7
  const tailwind = require("../../tailwind.css.cjs");
8
8
  require("../icon/daikin-icon.cjs");
9
9
  var __defProp = Object.defineProperty;
@@ -16,200 +16,161 @@ var __decorateClass = (decorators, target, key, kind) => {
16
16
  if (kind && result) __defProp(target, key, result);
17
17
  return result;
18
18
  };
19
- const BUTTON_ICON_SIZE_MAP = {
20
- default: "m",
21
- condensed: "s"
22
- };
23
19
  const cvaButton = classVarianceAuthority.cva(
24
20
  [
25
21
  "inline-flex",
26
22
  "justify-center",
27
23
  "items-center",
28
- "gap-2",
24
+ "w-full",
25
+ "h-full",
29
26
  "font-daikinSerif",
30
27
  "font-bold",
31
- "rounded-lg",
28
+ "rounded",
29
+ "px-3",
32
30
  "tracking-wide",
33
31
  "text-nowrap",
34
- "disabled:cursor-default",
35
- "w-full",
36
- "h-full"
32
+ "focus-visible:outline",
33
+ "focus-visible:outline-2",
34
+ "focus-visible:outline-offset-2",
35
+ "focus-visible:outline-[#0081C0]",
36
+ "var-color-transparent/color-secondary",
37
+ "link-disabled:var-color-daikinNeutral-400/color-primary"
37
38
  ],
38
39
  {
39
40
  variants: {
40
- intent: {
41
- primary: [
42
- "text-white",
43
- "bg-[--buttonColorBackgroundPrimaryActive]",
44
- "enabled:focus-visible:bg-[--buttonColorBackgroundPrimaryFocus]",
45
- "enabled:hover:bg-[--buttonColorBackgroundPrimaryHover]",
46
- "enabled:active:bg-[--buttonColorBackgroundPrimaryPress]",
47
- "disabled:bg-[--buttonColorBackgroundPrimaryDisabled]",
48
- "focus-visible:outline-none"
49
- ],
50
- secondary: [
51
- "border-2",
52
- "bg-white",
53
- "text-daikinBlue-500",
54
- "border-daikinBlue-500",
55
- "enabled:hover:text-daikinBlue-300",
56
- "enabled:hover:border-daikinBlue-300",
57
- "enabled:active:text-daikinBlue-600",
58
- "enabled:active:border-daikinBlue-600",
59
- "enabled:focus-visible:text-daikinBlue-700",
60
- "enabled:focus-visible:border-daikinBlue-700",
61
- "disabled:border-daikinNeutral-300",
62
- "disabled:text-daikinNeutral-400",
63
- "disabled:border",
64
- "focus-visible:outline-none"
41
+ color: {
42
+ default: [
43
+ "link-enabled:var-color-daikinBlue-500/color-primary",
44
+ "link-enabled:hover:var-color-[#0081C0]/color-primary",
45
+ "link-enabled:hover:var-color-[#DDF3FC]/color-secondary",
46
+ "link-enabled:active:var-color-[#00689A]/color-primary",
47
+ "link-enabled:active:var-color-[#BBE7F9]/color-secondary"
65
48
  ],
66
- tertiary: [
67
- "text-daikinBlue-400",
68
- "bg-none",
69
- "border-none",
70
- "shadow-none",
71
- "enabled:hover:bg-daikinNeutral-100",
72
- "disabled:bg-transparent",
73
- "disabled:text-daikinNeutral-400"
74
- ],
75
- primaryDanger: [
76
- "bg-daikinRed",
77
- "text-white",
78
- "enabled:hover:bg-daikinRed-400",
79
- "enabled:focus-visible:bg-daikinRed-700",
80
- "enabled:active:bg-daikinRed-700",
81
- "disabled:bg-daikinNeutral-300",
82
- "focus-visible:outline-none"
49
+ danger: [
50
+ "link-enabled:var-color-[#D80C18]/color-primary",
51
+ "link-enabled:hover:var-color-[#B90A15]/color-primary",
52
+ "link-enabled:hover:var-color-[#FDD9DB]/color-secondary",
53
+ "link-enabled:active:var-color-[#9A0911]/color-primary",
54
+ "link-enabled:active:var-color-[#FBB3B7]/color-secondary"
83
55
  ]
84
56
  },
57
+ variant: {
58
+ fill: ["text-white", "bg-[--color-primary]"],
59
+ outline: [
60
+ "border",
61
+ "text-[--color-primary]",
62
+ "bg-[--color-secondary]",
63
+ "border-[--color-primary]"
64
+ ],
65
+ ghost: ["text-[--color-primary]", "bg-[--color-secondary]"]
66
+ },
85
67
  size: {
86
- default: ["px-4", "text-[14px]"],
87
- condensed: ["px-[10px]", "text-[12px]"]
68
+ small: ["text-sm"],
69
+ medium: ["text-sm"]
88
70
  }
89
- },
90
- defaultVariants: {
91
- intent: "primary",
92
- size: "condensed"
93
71
  }
94
72
  }
95
73
  );
96
74
  exports.DaikinButton = class DaikinButton extends lit.LitElement {
97
75
  constructor() {
98
- super(...arguments);
99
- this.variant = "primary";
76
+ super();
77
+ this.variant = "fill";
78
+ this.size = "medium";
79
+ this.color = "default";
100
80
  this.disabled = false;
101
- this.rightIcon = null;
102
- this.leftIcon = null;
103
- this.href = "";
104
- this.size = "default";
81
+ this.href = null;
105
82
  this.type = "button";
106
- this.role = "button";
107
- this.isLoading = false;
83
+ this.buttonRole = null;
84
+ this.addEventListener("click", (event) => {
85
+ if (this.disabled) {
86
+ event.stopImmediatePropagation();
87
+ }
88
+ });
108
89
  }
109
90
  render() {
110
- const buttonClassName = cvaButton({
111
- intent: this.variant,
91
+ const className = cvaButton({
92
+ variant: this.variant,
93
+ color: this.color,
112
94
  size: this.size
113
95
  });
114
- const content = lit.html`
115
- ${this.leftIcon ? lit.html`<daikin-icon
116
- icon=${this.leftIcon}
117
- size=${BUTTON_ICON_SIZE_MAP[this.size]}
118
- color="current"
119
- ></daikin-icon>` : null}
120
- <slot></slot>
121
- ${this.rightIcon ? lit.html`<daikin-icon
122
- icon=${this.rightIcon}
123
- size=${BUTTON_ICON_SIZE_MAP[this.size]}
124
- color="current"
125
- ></daikin-icon>` : null}
126
- `;
127
- if (this.href) {
96
+ if (this.type === "link") {
97
+ const linkDisabled = this.disabled || this.href == null;
128
98
  return lit.html`<a
129
- href="${this.href}"
130
- class="${buttonClassName}"
131
- role="${this.role}"
99
+ class=${className}
100
+ href=${ifDefined_js.ifDefined(!linkDisabled ? this.href ?? void 0 : void 0)}
101
+ role=${ifDefined_js.ifDefined(
102
+ this.buttonRole ?? (linkDisabled ? "link" : void 0)
103
+ )}
104
+ aria-disabled=${ifDefined_js.ifDefined(linkDisabled ? "true" : void 0)}
132
105
  >
133
- ${content}
106
+ <slot name="left-icon"><span class="block -ml-1"></span></slot>
107
+ <span class="px-2"><slot></slot></span>
108
+ <slot name="right-icon"><span class="block -mr-1"></span></slot>
134
109
  </a>`;
135
110
  }
136
111
  return lit.html`
137
112
  <button
138
- class="${buttonClassName}"
139
- ?disabled="${this.disabled}"
140
- type="${this.type}"
141
- role="${this.role}"
113
+ class=${className}
114
+ ?disabled=${this.disabled}
115
+ type=${this.type}
116
+ role=${ifDefined_js.ifDefined(this.buttonRole ?? void 0)}
142
117
  >
143
- ${content}
118
+ <slot name="left-icon"><span class="block -ml-1"></span></slot>
119
+ <span class="px-2"><slot></slot></span>
120
+ <slot name="right-icon"><span class="block -mr-1"></span></slot>
144
121
  </button>
145
122
  `;
146
123
  }
147
124
  /**
148
- * Focuses on the inner button.
125
+ * Focuses on the inner button or link.
149
126
  * @param options focus options
150
127
  */
151
128
  focus(options) {
152
- var _a, _b;
153
- (_b = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector("button")) == null ? void 0 : _b.focus(options);
129
+ var _a;
130
+ (_a = this._focusableElement) == null ? void 0 : _a.focus(options);
154
131
  }
155
132
  };
156
133
  exports.DaikinButton.styles = lit.css`
157
134
  ${lit.unsafeCSS(tailwind.default)}
158
135
 
159
136
  :host {
160
- --buttonColorBackgroundPrimaryActive: ${lit.unsafeCSS(
161
- variables_js.buttonColorBackgroundPrimaryActive
162
- )};
163
- --buttonColorBackgroundPrimaryFocus: ${lit.unsafeCSS(
164
- variables_js.buttonColorBackgroundPrimaryFocus
165
- )};
166
- --buttonColorBackgroundPrimaryHover: ${lit.unsafeCSS(
167
- variables_js.buttonColorBackgroundPrimaryHover
168
- )};
169
- --buttonColorBackgroundPrimaryPress: ${lit.unsafeCSS(
170
- variables_js.buttonColorBackgroundPrimaryPress
171
- )};
172
- --buttonColorBackgroundPrimaryDisabled: ${lit.unsafeCSS(
173
- variables_js.buttonColorBackgroundPrimaryDisabled
174
- )};
175
-
176
137
  display: inline-block;
177
- width: fit-content;
178
- min-height: 42px;
179
- height: 1px;
180
138
  }
181
139
 
182
- :host([size="condensed"]) {
183
- min-height: 32px;
140
+ :host([size="small"]) {
141
+ min-width: 52px;
142
+ height: 32px;
143
+ }
144
+
145
+ :host([size="medium"]) {
146
+ min-width: 60px;
147
+ height: 48px;
184
148
  }
185
149
  `;
186
150
  __decorateClass([
187
- decorators_js.property({ type: String })
151
+ decorators_js.property({ type: String, reflect: true })
188
152
  ], exports.DaikinButton.prototype, "variant", 2);
189
- __decorateClass([
190
- decorators_js.property({ type: Boolean, reflect: true })
191
- ], exports.DaikinButton.prototype, "disabled", 2);
192
153
  __decorateClass([
193
154
  decorators_js.property({ type: String, reflect: true })
194
- ], exports.DaikinButton.prototype, "rightIcon", 2);
155
+ ], exports.DaikinButton.prototype, "size", 2);
195
156
  __decorateClass([
196
157
  decorators_js.property({ type: String, reflect: true })
197
- ], exports.DaikinButton.prototype, "leftIcon", 2);
158
+ ], exports.DaikinButton.prototype, "color", 2);
198
159
  __decorateClass([
199
- decorators_js.property({ type: String, reflect: true })
200
- ], exports.DaikinButton.prototype, "href", 2);
160
+ decorators_js.property({ type: Boolean, reflect: true })
161
+ ], exports.DaikinButton.prototype, "disabled", 2);
201
162
  __decorateClass([
202
163
  decorators_js.property({ type: String, reflect: true })
203
- ], exports.DaikinButton.prototype, "size", 2);
164
+ ], exports.DaikinButton.prototype, "href", 2);
204
165
  __decorateClass([
205
166
  decorators_js.property({ type: String, reflect: true })
206
167
  ], exports.DaikinButton.prototype, "type", 2);
207
168
  __decorateClass([
208
- decorators_js.property({ type: String, reflect: true })
209
- ], exports.DaikinButton.prototype, "role", 2);
169
+ decorators_js.property({ type: String, reflect: true, attribute: "button-role" })
170
+ ], exports.DaikinButton.prototype, "buttonRole", 2);
210
171
  __decorateClass([
211
- decorators_js.property({ type: Boolean })
212
- ], exports.DaikinButton.prototype, "isLoading", 2);
172
+ decorators_js.query("a,button")
173
+ ], exports.DaikinButton.prototype, "_focusableElement", 2);
213
174
  exports.DaikinButton = __decorateClass([
214
175
  decorators_js.customElement("daikin-button")
215
176
  ], exports.DaikinButton);
@@ -1,11 +1,10 @@
1
1
  import { LitElement } from 'lit';
2
2
  import { ARIARole } from '../../lit-analyzer-types';
3
3
  import { MergeVariantProps } from '../../type-utils';
4
- import { IconType } from '../icon/daikin-icon';
5
-
6
4
  declare const cvaButton: (props?: ({
7
- intent?: "primary" | "secondary" | "tertiary" | "primaryDanger" | null | undefined;
8
- size?: "default" | "condensed" | null | undefined;
5
+ color?: "default" | "danger" | null | undefined;
6
+ variant?: "fill" | "outline" | "ghost" | null | undefined;
7
+ size?: "small" | "medium" | null | undefined;
9
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
9
  type ButtonVariantProps = MergeVariantProps<typeof cvaButton>;
11
10
  /**
@@ -15,9 +14,15 @@ type ButtonVariantProps = MergeVariantProps<typeof cvaButton>;
15
14
  * @fires click - A retargeted event of a [click event](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event) emitted from the inner `<button>` element. Suppressed if `disabled` is true,
16
15
  *
17
16
  * @slot - A slot for the button content.
17
+ * @slot left-icon - A slot for an icon to be placed to the left of the text. Place `daikin-icon` or something similar.
18
+ * @slot right-icon - A slot for an icon to be placed to the right of the text. Place `daikin-icon` or something similar.
18
19
  *
19
20
  * @example
20
21
  *
22
+ * ```js
23
+ * import "@daikin-oss/design-system-web-components/components/button/index.js";
24
+ * ```
25
+ *
21
26
  * ```html
22
27
  * <daikin-button>
23
28
  * Button label
@@ -27,47 +32,44 @@ type ButtonVariantProps = MergeVariantProps<typeof cvaButton>;
27
32
  export declare class DaikinButton extends LitElement {
28
33
  static readonly styles: import('lit').CSSResult;
29
34
  /**
30
- * Type of variant.
31
- */
32
- variant: ButtonVariantProps["intent"];
33
- /**
34
- * `true` if the button should be disabled.
35
+ * Variant of the button.
35
36
  */
36
- disabled: boolean;
37
- /**
38
- * Set a icon in the right of button label.
39
- */
40
- rightIcon: IconType | null;
37
+ variant: ButtonVariantProps["variant"];
41
38
  /**
42
- * Set a icon in the left of button label.
39
+ * Size of the button.
43
40
  */
44
- leftIcon: IconType | null;
41
+ size: "small" | "medium";
45
42
  /**
46
- * Link `href`. If present, this button is rendered as `<a>`.
43
+ * Color of the button.
47
44
  */
48
- href: string;
45
+ color: ButtonVariantProps["color"];
49
46
  /**
50
- * Specify the button size.
47
+ * Whether the button is disabled.
51
48
  */
52
- size: ButtonVariantProps["size"];
49
+ disabled: boolean;
53
50
  /**
54
- * Specify the button type.
51
+ * Link `href`.
52
+ * Only used if the `type` is `"link"`.
53
+ * If omitted with `type="link"`, the link will be treated as [a placeholder link](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element:~:text=If%20the%20a%20element%20has%20no%20href%20attribute) and rendered as disabled state.
55
54
  */
56
- type: "button" | "submit" | "reset";
55
+ href: string | null;
57
56
  /**
58
- * Specify the button role.
57
+ * Type of the button.
58
+ * If `"link"` is specified, the button will be rendered as an `<a>` element or `<span>` element (if `disabled` is `true`).
59
59
  */
60
- role: ARIARole;
60
+ type: "button" | "submit" | "reset" | "link";
61
61
  /**
62
- * Specify whether the button is loading.
62
+ * Optional ARIA role of the button.
63
63
  */
64
- isLoading: boolean;
64
+ buttonRole: ARIARole | null;
65
+ private _focusableElement;
66
+ constructor();
65
67
  render(): import('lit-html').TemplateResult<1>;
66
68
  /**
67
- * Focuses on the inner button.
69
+ * Focuses on the inner button or link.
68
70
  * @param options focus options
69
71
  */
70
- focus(options?: FocusOptions | undefined): void;
72
+ focus(options?: FocusOptions): void;
71
73
  }
72
74
  declare global {
73
75
  interface HTMLElementTagNameMap {