@cupra/ui-kit 1.0.0-canary.8 → 1.0.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 (406) hide show
  1. package/README.md +5 -3
  2. package/dist/components/base/DsUiElement.js +47 -0
  3. package/dist/components/base/UiKitElement.js +82 -0
  4. package/dist/components/base/ds-base-input/ds-base-input.js +112 -0
  5. package/dist/components/base/ds-base-input/styles/common.styles.js +63 -0
  6. package/dist/components/base/ds-base-input/styles/cupra.styles.js +124 -0
  7. package/dist/components/base/ds-base-progress-bar/ds-base-progress-bar.js +64 -0
  8. package/dist/components/base/ds-base-progress-bar/styles/common.styles.js +22 -0
  9. package/dist/components/base/ds-base-progress-bar/styles/cupra-diagonal.styles.js +27 -0
  10. package/dist/components/base/ds-base-progress-bar/styles/cupra.styles.js +27 -0
  11. package/dist/components/base/ds-base-progress-bar/styles/seat.styles.js +8 -0
  12. package/dist/components/ds-accordion/ds-accordion.js +124 -0
  13. package/dist/components/ds-accordion/styles/common.styles.js +64 -0
  14. package/dist/components/ds-accordion/theme-config.js +26 -0
  15. package/dist/components/ds-avatar/ds-avatar.js +102 -0
  16. package/dist/components/ds-avatar/styles/common.styles.js +12 -0
  17. package/dist/components/ds-badge/ds-badge.d.ts +18 -0
  18. package/dist/components/ds-badge/ds-badge.js +53 -0
  19. package/dist/components/ds-badge/ds-badge.test.d.ts +8 -0
  20. package/dist/components/ds-badge/ds-badge.types.d.ts +6 -0
  21. package/dist/components/ds-badge/styles/common.styles.d.ts +1 -0
  22. package/dist/components/ds-badge/styles/common.styles.js +9 -0
  23. package/dist/components/ds-badge/styles/cupra-diagonal.styles.d.ts +1 -0
  24. package/dist/components/ds-badge/styles/cupra-diagonal.styles.js +47 -0
  25. package/dist/components/ds-bullets/ds-bullets.js +79 -0
  26. package/dist/components/ds-bullets/styles/common.styles.js +26 -0
  27. package/dist/components/ds-button/ds-button.js +196 -0
  28. package/dist/components/ds-button/styles/common.styles.js +116 -0
  29. package/dist/components/ds-carousel-indicator/ds-carousel-indicator.js +63 -0
  30. package/dist/components/ds-carousel-indicator/styles/common.styles.js +19 -0
  31. package/dist/components/ds-checkbox/ds-checkbox.js +142 -0
  32. package/dist/components/ds-checkbox/styles/common.styles.js +60 -0
  33. package/dist/components/ds-chip/ds-chip.js +131 -0
  34. package/dist/components/ds-chip/styles/common.styles.js +25 -0
  35. package/dist/components/ds-chips/ds-chips.js +143 -0
  36. package/dist/components/ds-chips/styles/common.styles.js +94 -0
  37. package/dist/components/ds-currency/ds-currency.js +139 -0
  38. package/dist/components/ds-currency/styles/common.styles.js +17 -0
  39. package/dist/components/ds-dialog/ds-dialog.js +107 -0
  40. package/dist/components/ds-dialog/styles/common.styles.js +82 -0
  41. package/dist/components/ds-dialog-body/ds-dialog-body.js +46 -0
  42. package/dist/components/ds-dialog-body/styles/common.styles.js +12 -0
  43. package/dist/components/ds-dialog-footer/ds-dialog-footer.js +47 -0
  44. package/dist/components/ds-dialog-footer/styles/common.styles.js +16 -0
  45. package/dist/components/ds-dialog-header/ds-dialog-header.js +68 -0
  46. package/dist/components/ds-dialog-header/styles/common.styles.js +12 -0
  47. package/dist/components/ds-divider/ds-divider.js +58 -0
  48. package/dist/components/ds-divider/styles/common.styles.js +13 -0
  49. package/dist/components/ds-hyperlink/ds-hyperlink.js +93 -0
  50. package/dist/components/ds-hyperlink/styles/common.styles.js +22 -0
  51. package/dist/components/ds-icon/Icons.type.d.ts +1 -1
  52. package/dist/components/ds-icon/ds-icon.js +105 -0
  53. package/dist/components/ds-icon/iconNames.d.ts +1 -1
  54. package/dist/components/ds-icon/iconNames.js +394 -0
  55. package/dist/components/ds-icon-button/ds-icon-button.js +138 -0
  56. package/dist/components/ds-icon-button/styles/common.styles.js +24 -0
  57. package/dist/components/ds-input/ds-input.js +138 -0
  58. package/dist/components/ds-interactive-card/ds-interactive-card.js +90 -0
  59. package/dist/components/ds-interactive-card/styles/common.styles.js +12 -0
  60. package/dist/components/ds-link-button/ds-link-button.js +120 -0
  61. package/dist/components/ds-link-button/styles/common.styles.js +24 -0
  62. package/dist/components/ds-loader-bar/ds-loader-bar.js +23 -0
  63. package/dist/components/ds-loader-bar/styles/common.styles.js +23 -0
  64. package/dist/components/ds-loader-dots/ds-loader-dots.js +62 -0
  65. package/dist/components/ds-loader-dots/styles/common.styles.js +35 -0
  66. package/dist/components/ds-loader-logo/ds-loader-logo.js +65 -0
  67. package/dist/components/ds-loader-logo/ds-loader-logo.styles.js +67 -0
  68. package/dist/components/ds-loader-spinner/ds-loader-spinner.js +53 -0
  69. package/dist/components/ds-loader-spinner/styles/common.styles.js +56 -0
  70. package/dist/components/ds-logo/ds-logo.js +69 -0
  71. package/dist/components/ds-logo/styles/common.styles.js +18 -0
  72. package/dist/components/ds-main-title/ds-main-title.d.ts +10 -0
  73. package/dist/components/ds-main-title/ds-main-title.js +35 -0
  74. package/dist/components/ds-main-title/ds-main-title.test.d.ts +7 -0
  75. package/dist/components/ds-main-title/ds-main-title.types.d.ts +2 -0
  76. package/dist/components/ds-main-title/styles/common.styles.d.ts +1 -0
  77. package/dist/components/ds-main-title/styles/common.styles.js +19 -0
  78. package/dist/components/ds-map-pin/ds-map-pin.js +116 -0
  79. package/dist/components/ds-map-pin/styles/common.styles.js +43 -0
  80. package/dist/components/ds-modal/ds-modal.js +215 -0
  81. package/dist/components/ds-modal/styles/common.styles.js +289 -0
  82. package/dist/components/ds-password-input/ds-password-input.js +43 -0
  83. package/dist/components/ds-picker-item/ds-picker-item.js +89 -0
  84. package/dist/components/ds-picker-item/styles/common.styles.js +12 -0
  85. package/dist/components/ds-portal/ds-portal.js +41 -0
  86. package/dist/components/ds-progress-bar/ds-progress-bar.js +34 -0
  87. package/dist/components/ds-progress-bar/styles/common.styles.js +12 -0
  88. package/dist/components/ds-radio/ds-radio.js +111 -0
  89. package/dist/components/ds-radio/styles/common.styles.js +44 -0
  90. package/dist/components/ds-radio-button/ds-radio-button.js +185 -0
  91. package/dist/components/ds-radio-button/styles/common.styles.js +52 -0
  92. package/dist/components/ds-radio-button-group/ds-radio-button-group.js +83 -0
  93. package/dist/components/ds-radio-button-group/styles/common.styles.js +25 -0
  94. package/dist/components/ds-radio-group/ds-radio-group.js +79 -0
  95. package/dist/components/ds-radio-group/ds-radio-group.styles.js +21 -0
  96. package/dist/components/ds-rating/ds-rating.d.ts +14 -0
  97. package/dist/components/ds-rating/ds-rating.js +73 -0
  98. package/dist/components/ds-rating/ds-rating.test.d.ts +8 -0
  99. package/dist/components/ds-rating/ds-rating.types.d.ts +6 -0
  100. package/dist/components/ds-rating/styles/common.styles.d.ts +1 -0
  101. package/dist/components/ds-rating/styles/common.styles.js +14 -0
  102. package/dist/components/ds-search/ds-search.js +210 -0
  103. package/dist/components/ds-search/styles/common.styles.js +61 -0
  104. package/dist/components/ds-search-input/ds-search-input.js +158 -0
  105. package/dist/components/ds-search-input/styles/common.styles.js +12 -0
  106. package/dist/components/ds-secondary-navigation/ds-secondary-navigation.js +233 -0
  107. package/dist/components/ds-secondary-navigation/styles/common.styles.js +12 -0
  108. package/dist/components/ds-segmented-control/ds-segmented-control.js +71 -0
  109. package/dist/components/ds-segmented-control/styles/common.styles.js +56 -0
  110. package/dist/components/ds-select/controllers/SelectKeyboardController.js +33 -0
  111. package/dist/components/ds-select/ds-select.js +274 -0
  112. package/dist/components/ds-select/styles/common.styles.js +29 -0
  113. package/dist/components/ds-selection/ds-selection.js +57 -0
  114. package/dist/components/ds-selection/styles/common.styles.js +17 -0
  115. package/dist/components/ds-sidebar-navigation/ds-sidebar-navigation.js +102 -0
  116. package/dist/components/ds-sidebar-navigation/styles/common.styles.js +25 -0
  117. package/dist/components/ds-slider/ds-slider.js +409 -0
  118. package/dist/components/ds-slider/styles/common.styles.js +61 -0
  119. package/dist/components/ds-slider/utils/getStepValue/getStepValue.js +28 -0
  120. package/dist/components/ds-slider/utils/roundToDecimals/roundToDecimals.js +7 -0
  121. package/dist/components/ds-static-box/ds-static-box.js +77 -0
  122. package/dist/components/ds-static-box/styles/common.styles.js +12 -0
  123. package/dist/components/ds-stepper/ds-stepper.js +57 -0
  124. package/dist/components/ds-stepper/styles/common.styles.js +12 -0
  125. package/dist/components/ds-tabs/ds-tabs.js +203 -0
  126. package/dist/components/ds-tabs/styles/common.styles.js +97 -0
  127. package/dist/components/ds-tabs/theme-config.js +14 -0
  128. package/dist/components/ds-tag/ds-tag.js +87 -0
  129. package/dist/components/ds-tag/styles/common.styles.js +20 -0
  130. package/dist/components/ds-text/ds-text.js +83 -0
  131. package/dist/components/ds-text/styles/common.styles.js +29 -0
  132. package/dist/components/ds-text-input/ds-text-input.js +100 -0
  133. package/dist/components/ds-text-input/styles/common.styles.js +12 -0
  134. package/dist/components/ds-textarea/ds-textarea.js +87 -0
  135. package/dist/components/ds-textarea/styles/common.styles.js +12 -0
  136. package/dist/components/ds-theme-provider/ds-theme-provider.js +90 -0
  137. package/dist/components/ds-theme-provider/themeContext.js +5 -0
  138. package/dist/components/ds-toast/ds-toast.js +95 -0
  139. package/dist/components/ds-toast/styles/common.styles.js +112 -0
  140. package/dist/components/ds-toast/utils/ToastManager.js +48 -0
  141. package/dist/components/ds-toast-message/ds-toast-message.js +103 -0
  142. package/dist/components/ds-toast-message/styles/common.styles.js +12 -0
  143. package/dist/components/ds-toggle-button/ds-toggle-button.js +73 -0
  144. package/dist/components/ds-toggle-switch/ds-toggle-switch.js +100 -0
  145. package/dist/components/ds-toggle-switch/styles/common.styles.js +47 -0
  146. package/dist/components/ds-tooltip/ds-tooltip.d.ts +38 -23
  147. package/dist/components/ds-tooltip/ds-tooltip.js +234 -0
  148. package/dist/components/ds-tooltip/ds-tooltip.test.d.ts +8 -0
  149. package/dist/components/ds-tooltip/ds-tooltip.types.d.ts +5 -10
  150. package/dist/components/ds-tooltip/styles/common.styles.d.ts +0 -2
  151. package/dist/components/ds-tooltip/styles/common.styles.js +130 -0
  152. package/dist/components/index.d.ts +4 -1
  153. package/dist/core/theme.constants.d.ts +1 -0
  154. package/dist/core/theme.constants.js +4 -0
  155. package/dist/decorators/customUiKitElement.js +23 -0
  156. package/dist/index.js +61 -9699
  157. package/dist/mixins/FormAssociatedMixin.js +14 -0
  158. package/dist/mixins/ViewportMixin.js +32 -0
  159. package/dist/mixins/inputStatesMixin.js +46 -0
  160. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +430 -0
  161. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +313 -0
  162. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +132 -0
  163. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
  164. package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/context-request-event.js +13 -0
  165. package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-consumer.js +29 -0
  166. package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-provider.js +37 -0
  167. package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/create-context.js +11 -0
  168. package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/consume.js +22 -0
  169. package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/provide.js +42 -0
  170. package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/value-notifier.js +36 -0
  171. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js +50 -0
  172. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/base.js +9 -0
  173. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js +37 -0
  174. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +19 -0
  175. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +19 -0
  176. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js +20 -0
  177. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js +12 -0
  178. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js +252 -0
  179. package/dist/node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js +51 -0
  180. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive-helpers.js +37 -0
  181. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive.js +27 -0
  182. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/choose.js +12 -0
  183. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js +34 -0
  184. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js +10 -0
  185. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/repeat.js +61 -0
  186. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js +27 -0
  187. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/when.js +11 -0
  188. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js +243 -0
  189. package/dist/styles/fonts-config.js +28 -0
  190. package/dist/utils/IconsManager.d.ts +1 -4
  191. package/dist/utils/IconsManager.js +39 -0
  192. package/dist/utils/PubSub.d.ts +0 -2
  193. package/dist/utils/PubSub.js +33 -0
  194. package/dist/utils/StylesRegistry/StylesRegistry.js +32 -0
  195. package/dist/utils/arrayConverter.js +19 -0
  196. package/dist/utils/booleanConverter.js +4 -0
  197. package/dist/utils/componentFactory.js +167 -0
  198. package/dist/utils/cssQueries.js +16 -0
  199. package/dist/utils/cssWithTokens.js +11 -0
  200. package/dist/utils/formatNumber/formatNumber.js +54 -0
  201. package/dist/utils/htmlWithTokens.js +11 -0
  202. package/dist/utils/objectConverter.js +11 -0
  203. package/dist/utils/validateMaxLength.js +6 -0
  204. package/dist-react/components/base/DsUiElement.js +47 -0
  205. package/dist-react/components/base/UiKitElement.js +82 -0
  206. package/dist-react/components/base/ds-base-input/ds-base-input.js +112 -0
  207. package/dist-react/components/base/ds-base-input/styles/common.styles.js +63 -0
  208. package/dist-react/components/base/ds-base-input/styles/cupra.styles.js +124 -0
  209. package/dist-react/components/base/ds-base-progress-bar/ds-base-progress-bar.js +64 -0
  210. package/dist-react/components/base/ds-base-progress-bar/styles/common.styles.js +22 -0
  211. package/dist-react/components/base/ds-base-progress-bar/styles/cupra-diagonal.styles.js +27 -0
  212. package/dist-react/components/base/ds-base-progress-bar/styles/cupra.styles.js +27 -0
  213. package/dist-react/components/base/ds-base-progress-bar/styles/seat.styles.js +8 -0
  214. package/dist-react/components/ds-accordion/ds-accordion.js +124 -0
  215. package/dist-react/components/ds-accordion/styles/common.styles.js +64 -0
  216. package/dist-react/components/ds-accordion/theme-config.js +26 -0
  217. package/dist-react/components/ds-avatar/ds-avatar.js +102 -0
  218. package/dist-react/components/ds-avatar/styles/common.styles.js +12 -0
  219. package/dist-react/components/ds-badge/ds-badge.d.ts +18 -0
  220. package/dist-react/components/ds-badge/ds-badge.js +53 -0
  221. package/dist-react/components/ds-badge/ds-badge.test.d.ts +8 -0
  222. package/dist-react/components/ds-badge/ds-badge.types.d.ts +6 -0
  223. package/dist-react/components/ds-badge/styles/common.styles.d.ts +1 -0
  224. package/dist-react/components/ds-badge/styles/common.styles.js +9 -0
  225. package/dist-react/components/ds-badge/styles/cupra-diagonal.styles.d.ts +1 -0
  226. package/dist-react/components/ds-badge/styles/cupra-diagonal.styles.js +47 -0
  227. package/dist-react/components/ds-bullets/ds-bullets.js +79 -0
  228. package/dist-react/components/ds-bullets/styles/common.styles.js +26 -0
  229. package/dist-react/components/ds-button/ds-button.js +196 -0
  230. package/dist-react/components/ds-button/styles/common.styles.js +116 -0
  231. package/dist-react/components/ds-carousel-indicator/ds-carousel-indicator.js +63 -0
  232. package/dist-react/components/ds-carousel-indicator/styles/common.styles.js +19 -0
  233. package/dist-react/components/ds-checkbox/ds-checkbox.js +142 -0
  234. package/dist-react/components/ds-checkbox/styles/common.styles.js +60 -0
  235. package/dist-react/components/ds-chip/ds-chip.js +131 -0
  236. package/dist-react/components/ds-chip/styles/common.styles.js +25 -0
  237. package/dist-react/components/ds-chips/ds-chips.js +143 -0
  238. package/dist-react/components/ds-chips/styles/common.styles.js +94 -0
  239. package/dist-react/components/ds-currency/ds-currency.js +139 -0
  240. package/dist-react/components/ds-currency/styles/common.styles.js +17 -0
  241. package/dist-react/components/ds-dialog/ds-dialog.js +107 -0
  242. package/dist-react/components/ds-dialog/styles/common.styles.js +82 -0
  243. package/dist-react/components/ds-dialog-body/ds-dialog-body.js +46 -0
  244. package/dist-react/components/ds-dialog-body/styles/common.styles.js +12 -0
  245. package/dist-react/components/ds-dialog-footer/ds-dialog-footer.js +47 -0
  246. package/dist-react/components/ds-dialog-footer/styles/common.styles.js +16 -0
  247. package/dist-react/components/ds-dialog-header/ds-dialog-header.js +68 -0
  248. package/dist-react/components/ds-dialog-header/styles/common.styles.js +12 -0
  249. package/dist-react/components/ds-divider/ds-divider.js +58 -0
  250. package/dist-react/components/ds-divider/styles/common.styles.js +13 -0
  251. package/dist-react/components/ds-hyperlink/ds-hyperlink.js +93 -0
  252. package/dist-react/components/ds-hyperlink/styles/common.styles.js +22 -0
  253. package/dist-react/components/ds-icon/Icons.type.d.ts +1 -1
  254. package/dist-react/components/ds-icon/ds-icon.js +105 -0
  255. package/dist-react/components/ds-icon/iconNames.d.ts +1 -1
  256. package/dist-react/components/ds-icon/iconNames.js +394 -0
  257. package/dist-react/components/ds-icon-button/ds-icon-button.js +138 -0
  258. package/dist-react/components/ds-icon-button/styles/common.styles.js +24 -0
  259. package/dist-react/components/ds-input/ds-input.js +138 -0
  260. package/dist-react/components/ds-interactive-card/ds-interactive-card.js +90 -0
  261. package/dist-react/components/ds-interactive-card/styles/common.styles.js +12 -0
  262. package/dist-react/components/ds-link-button/ds-link-button.js +120 -0
  263. package/dist-react/components/ds-link-button/styles/common.styles.js +24 -0
  264. package/dist-react/components/ds-loader-bar/ds-loader-bar.js +23 -0
  265. package/dist-react/components/ds-loader-bar/styles/common.styles.js +23 -0
  266. package/dist-react/components/ds-loader-dots/ds-loader-dots.js +62 -0
  267. package/dist-react/components/ds-loader-dots/styles/common.styles.js +35 -0
  268. package/dist-react/components/ds-loader-logo/ds-loader-logo.js +65 -0
  269. package/dist-react/components/ds-loader-logo/ds-loader-logo.styles.js +67 -0
  270. package/dist-react/components/ds-loader-spinner/ds-loader-spinner.js +53 -0
  271. package/dist-react/components/ds-loader-spinner/styles/common.styles.js +56 -0
  272. package/dist-react/components/ds-logo/ds-logo.js +69 -0
  273. package/dist-react/components/ds-logo/styles/common.styles.js +18 -0
  274. package/dist-react/components/ds-main-title/ds-main-title.d.ts +10 -0
  275. package/dist-react/components/ds-main-title/ds-main-title.js +35 -0
  276. package/dist-react/components/ds-main-title/ds-main-title.test.d.ts +7 -0
  277. package/dist-react/components/ds-main-title/ds-main-title.types.d.ts +2 -0
  278. package/dist-react/components/ds-main-title/styles/common.styles.d.ts +1 -0
  279. package/dist-react/components/ds-main-title/styles/common.styles.js +19 -0
  280. package/dist-react/components/ds-map-pin/ds-map-pin.js +116 -0
  281. package/dist-react/components/ds-map-pin/styles/common.styles.js +43 -0
  282. package/dist-react/components/ds-modal/ds-modal.js +215 -0
  283. package/dist-react/components/ds-modal/styles/common.styles.js +289 -0
  284. package/dist-react/components/ds-password-input/ds-password-input.js +43 -0
  285. package/dist-react/components/ds-picker-item/ds-picker-item.js +89 -0
  286. package/dist-react/components/ds-picker-item/styles/common.styles.js +12 -0
  287. package/dist-react/components/ds-portal/ds-portal.js +41 -0
  288. package/dist-react/components/ds-progress-bar/ds-progress-bar.js +34 -0
  289. package/dist-react/components/ds-progress-bar/styles/common.styles.js +12 -0
  290. package/dist-react/components/ds-radio/ds-radio.js +111 -0
  291. package/dist-react/components/ds-radio/styles/common.styles.js +44 -0
  292. package/dist-react/components/ds-radio-button/ds-radio-button.js +185 -0
  293. package/dist-react/components/ds-radio-button/styles/common.styles.js +52 -0
  294. package/dist-react/components/ds-radio-button-group/ds-radio-button-group.js +83 -0
  295. package/dist-react/components/ds-radio-button-group/styles/common.styles.js +25 -0
  296. package/dist-react/components/ds-radio-group/ds-radio-group.js +79 -0
  297. package/dist-react/components/ds-radio-group/ds-radio-group.styles.js +21 -0
  298. package/dist-react/components/ds-rating/ds-rating.d.ts +14 -0
  299. package/dist-react/components/ds-rating/ds-rating.js +73 -0
  300. package/dist-react/components/ds-rating/ds-rating.test.d.ts +8 -0
  301. package/dist-react/components/ds-rating/ds-rating.types.d.ts +6 -0
  302. package/dist-react/components/ds-rating/styles/common.styles.d.ts +1 -0
  303. package/dist-react/components/ds-rating/styles/common.styles.js +14 -0
  304. package/dist-react/components/ds-search/ds-search.js +210 -0
  305. package/dist-react/components/ds-search/styles/common.styles.js +61 -0
  306. package/dist-react/components/ds-search-input/ds-search-input.js +158 -0
  307. package/dist-react/components/ds-search-input/styles/common.styles.js +12 -0
  308. package/dist-react/components/ds-secondary-navigation/ds-secondary-navigation.js +233 -0
  309. package/dist-react/components/ds-secondary-navigation/styles/common.styles.js +12 -0
  310. package/dist-react/components/ds-segmented-control/ds-segmented-control.js +71 -0
  311. package/dist-react/components/ds-segmented-control/styles/common.styles.js +56 -0
  312. package/dist-react/components/ds-select/controllers/SelectKeyboardController.js +33 -0
  313. package/dist-react/components/ds-select/ds-select.js +274 -0
  314. package/dist-react/components/ds-select/styles/common.styles.js +29 -0
  315. package/dist-react/components/ds-selection/ds-selection.js +57 -0
  316. package/dist-react/components/ds-selection/styles/common.styles.js +17 -0
  317. package/dist-react/components/ds-sidebar-navigation/ds-sidebar-navigation.js +102 -0
  318. package/dist-react/components/ds-sidebar-navigation/styles/common.styles.js +25 -0
  319. package/dist-react/components/ds-slider/ds-slider.js +409 -0
  320. package/dist-react/components/ds-slider/styles/common.styles.js +61 -0
  321. package/dist-react/components/ds-slider/utils/getStepValue/getStepValue.js +28 -0
  322. package/dist-react/components/ds-slider/utils/roundToDecimals/roundToDecimals.js +7 -0
  323. package/dist-react/components/ds-static-box/ds-static-box.js +77 -0
  324. package/dist-react/components/ds-static-box/styles/common.styles.js +12 -0
  325. package/dist-react/components/ds-stepper/ds-stepper.js +57 -0
  326. package/dist-react/components/ds-stepper/styles/common.styles.js +12 -0
  327. package/dist-react/components/ds-tabs/ds-tabs.js +203 -0
  328. package/dist-react/components/ds-tabs/styles/common.styles.js +97 -0
  329. package/dist-react/components/ds-tabs/theme-config.js +14 -0
  330. package/dist-react/components/ds-tag/ds-tag.js +87 -0
  331. package/dist-react/components/ds-tag/styles/common.styles.js +20 -0
  332. package/dist-react/components/ds-text/ds-text.js +83 -0
  333. package/dist-react/components/ds-text/styles/common.styles.js +29 -0
  334. package/dist-react/components/ds-text-input/ds-text-input.js +100 -0
  335. package/dist-react/components/ds-text-input/styles/common.styles.js +12 -0
  336. package/dist-react/components/ds-textarea/ds-textarea.js +87 -0
  337. package/dist-react/components/ds-textarea/styles/common.styles.js +12 -0
  338. package/dist-react/components/ds-theme-provider/ds-theme-provider.js +90 -0
  339. package/dist-react/components/ds-theme-provider/themeContext.js +5 -0
  340. package/dist-react/components/ds-toast/ds-toast.js +95 -0
  341. package/dist-react/components/ds-toast/styles/common.styles.js +112 -0
  342. package/dist-react/components/ds-toast/utils/ToastManager.js +48 -0
  343. package/dist-react/components/ds-toast-message/ds-toast-message.js +103 -0
  344. package/dist-react/components/ds-toast-message/styles/common.styles.js +12 -0
  345. package/dist-react/components/ds-toggle-button/ds-toggle-button.js +73 -0
  346. package/dist-react/components/ds-toggle-switch/ds-toggle-switch.js +100 -0
  347. package/dist-react/components/ds-toggle-switch/styles/common.styles.js +47 -0
  348. package/dist-react/components/ds-tooltip/ds-tooltip.d.ts +38 -23
  349. package/dist-react/components/ds-tooltip/ds-tooltip.js +234 -0
  350. package/dist-react/components/ds-tooltip/ds-tooltip.test.d.ts +8 -0
  351. package/dist-react/components/ds-tooltip/ds-tooltip.types.d.ts +5 -10
  352. package/dist-react/components/ds-tooltip/styles/common.styles.d.ts +0 -2
  353. package/dist-react/components/ds-tooltip/styles/common.styles.js +130 -0
  354. package/dist-react/components/index.d.ts +4 -1
  355. package/dist-react/core/theme.constants.d.ts +1 -0
  356. package/dist-react/core/theme.constants.js +4 -0
  357. package/dist-react/decorators/customUiKitElement.js +23 -0
  358. package/dist-react/index.js +61 -9623
  359. package/dist-react/mixins/FormAssociatedMixin.js +14 -0
  360. package/dist-react/mixins/ViewportMixin.js +32 -0
  361. package/dist-react/mixins/inputStatesMixin.js +46 -0
  362. package/dist-react/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +430 -0
  363. package/dist-react/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +313 -0
  364. package/dist-react/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +132 -0
  365. package/dist-react/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
  366. package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/context-request-event.js +13 -0
  367. package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-consumer.js +29 -0
  368. package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-provider.js +37 -0
  369. package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/create-context.js +11 -0
  370. package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/consume.js +22 -0
  371. package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/provide.js +42 -0
  372. package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/value-notifier.js +36 -0
  373. package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js +50 -0
  374. package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/base.js +9 -0
  375. package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js +37 -0
  376. package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +19 -0
  377. package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +19 -0
  378. package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js +20 -0
  379. package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js +12 -0
  380. package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js +252 -0
  381. package/dist-react/node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js +51 -0
  382. package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive-helpers.js +37 -0
  383. package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive.js +27 -0
  384. package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/choose.js +12 -0
  385. package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js +34 -0
  386. package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js +10 -0
  387. package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/repeat.js +61 -0
  388. package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js +27 -0
  389. package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/when.js +11 -0
  390. package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js +243 -0
  391. package/dist-react/styles/fonts-config.js +28 -0
  392. package/dist-react/utils/IconsManager.d.ts +1 -4
  393. package/dist-react/utils/IconsManager.js +39 -0
  394. package/dist-react/utils/PubSub.d.ts +0 -2
  395. package/dist-react/utils/PubSub.js +33 -0
  396. package/dist-react/utils/StylesRegistry/StylesRegistry.js +32 -0
  397. package/dist-react/utils/arrayConverter.js +19 -0
  398. package/dist-react/utils/booleanConverter.js +4 -0
  399. package/dist-react/utils/componentFactory.js +90 -0
  400. package/dist-react/utils/cssQueries.js +16 -0
  401. package/dist-react/utils/cssWithTokens.js +11 -0
  402. package/dist-react/utils/formatNumber/formatNumber.js +54 -0
  403. package/dist-react/utils/htmlWithTokens.js +11 -0
  404. package/dist-react/utils/objectConverter.js +11 -0
  405. package/dist-react/utils/validateMaxLength.js +6 -0
  406. package/package.json +12 -6
@@ -0,0 +1,82 @@
1
+ import { cssQueries as l } from "../../../utils/cssQueries.js";
2
+ import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
3
+ import "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
4
+ import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
5
+ import { css as o } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
6
+ const a = o`
7
+ :host {
8
+ transition: display 0.3s cubic-bezier(0, 0, 0.2, 1) allow-discrete;
9
+ }
10
+
11
+ .container.close {
12
+ display: none;
13
+ opacity: 0;
14
+ }
15
+
16
+ .container {
17
+ position: fixed;
18
+ top: 0;
19
+ left: 0;
20
+ width: 100dvw;
21
+ height: 100dvh;
22
+ display: flex;
23
+ justify-content: center;
24
+ align-items: center;
25
+ z-index: var(--ds-z-index-modal);
26
+ transition:
27
+ opacity 0.3s cubic-bezier(0, 0, 0.2, 1),
28
+ display 0.3s cubic-bezier(0, 0, 0.2, 1) allow-discrete;
29
+ opacity: 1;
30
+ @starting-style {
31
+ opacity: 0;
32
+ }
33
+ }
34
+
35
+ .dialog {
36
+ padding: 0;
37
+ position: relative;
38
+ }
39
+
40
+ .content-container {
41
+ display: flex;
42
+ flex-direction: column;
43
+ overflow: hidden;
44
+ }
45
+
46
+ .ds-scroll::-webkit-scrollbar,
47
+ .ds-scroll-global *::-webkit-scrollbar {
48
+ appearance: none;
49
+ display: initial;
50
+ }
51
+
52
+ .ds-scroll::-webkit-scrollbar-thumb,
53
+ .ds-scroll-global *::-webkit-scrollbar-thumb {
54
+ border-radius: var(--dg-border-radius-full);
55
+ background-clip: padding-box;
56
+ background-color: var(--dg-global-opacity-white-70);
57
+ }
58
+
59
+ .ds-scroll::-webkit-scrollbar-track,
60
+ .ds-scroll-global *::-webkit-scrollbar-track {
61
+ background-color: transparent;
62
+ }
63
+
64
+ ${l.xs} {
65
+ .ds-scroll::-webkit-scrollbar,
66
+ .ds-scroll-global *::-webkit-scrollbar {
67
+ height: 4px;
68
+ width: 4px;
69
+ }
70
+ }
71
+
72
+ ${l.m} {
73
+ .ds-scroll::-webkit-scrollbar,
74
+ .ds-scroll-global *::-webkit-scrollbar {
75
+ height: 8px;
76
+ width: 8px;
77
+ }
78
+ }
79
+ `;
80
+ export {
81
+ a as commonStyles
82
+ };
@@ -0,0 +1,46 @@
1
+ import { UiKitElement as a } from "../base/UiKitElement.js";
2
+ import { customUiKitElement as n } from "../../decorators/customUiKitElement.js";
3
+ import { htmlWithTokens as d } from "../../utils/htmlWithTokens.js";
4
+ import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
5
+ import { html as p } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
6
+ import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
7
+ import { classMap as c } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
8
+ import { commonStyles as y } from "./styles/common.styles.js";
9
+ var g = Object.getOwnPropertyDescriptor, f = (o, r, m, l) => {
10
+ for (var t = l > 1 ? void 0 : l ? g(r, m) : r, e = o.length - 1, i; e >= 0; e--)
11
+ (i = o[e]) && (t = i(t) || t);
12
+ return t;
13
+ };
14
+ let s = class extends a {
15
+ get classes() {
16
+ return {
17
+ container: !0
18
+ };
19
+ }
20
+ get styleTokens() {
21
+ return d`
22
+ <style>
23
+ :host{
24
+ grid-area: body;
25
+ }
26
+ </style>
27
+ `;
28
+ }
29
+ render() {
30
+ return p`
31
+ ${this.styleTokens}
32
+ <div data-testid="ds-dialog-body-container" class=${c(this.classes)}>
33
+ <slot name="description"></slot>
34
+ <slot name="image"></slot>
35
+ <slot></slot>
36
+ </div>
37
+ `;
38
+ }
39
+ };
40
+ s.styles = [y];
41
+ s = f([
42
+ n("ds-dialog-body")
43
+ ], s);
44
+ export {
45
+ s as DsDialogBody
46
+ };
@@ -0,0 +1,12 @@
1
+ import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
2
+ import "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
3
+ import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
4
+ import { css as o } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
5
+ const p = o`
6
+ :host {
7
+ display: inline-block;
8
+ }
9
+ `;
10
+ export {
11
+ p as commonStyles
12
+ };
@@ -0,0 +1,47 @@
1
+ import { UiKitElement as p } from "../base/UiKitElement.js";
2
+ import { customUiKitElement as d } from "../../decorators/customUiKitElement.js";
3
+ import { booleanConverter as v } from "../../utils/booleanConverter.js";
4
+ import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
5
+ import { nothing as c, html as m } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
6
+ import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
7
+ import { property as f } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
8
+ import { classMap as u } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
9
+ import { commonStyles as h } from "./styles/common.styles.js";
10
+ var D = Object.defineProperty, g = Object.getOwnPropertyDescriptor, n = (l, r, i, e) => {
11
+ for (var t = e > 1 ? void 0 : e ? g(r, i) : r, s = l.length - 1, a; s >= 0; s--)
12
+ (a = l[s]) && (t = (e ? a(r, i, t) : a(t)) || t);
13
+ return e && t && D(r, i, t), t;
14
+ };
15
+ let o = class extends p {
16
+ constructor() {
17
+ super(...arguments), this.withDivider = !0;
18
+ }
19
+ get classes() {
20
+ return {
21
+ container: !0
22
+ };
23
+ }
24
+ render() {
25
+ return m`
26
+ <div data-testid="ds-dialog-footer-container" class=${u(this.classes)}>
27
+ ${this.withDivider ? m`<div class="divider"></div>` : c}
28
+ <slot></slot>
29
+ <slot name="actions"></slot>
30
+ </div>
31
+ `;
32
+ }
33
+ };
34
+ o.styles = [h];
35
+ n([
36
+ f({
37
+ type: Boolean,
38
+ attribute: "with-divider",
39
+ converter: v
40
+ })
41
+ ], o.prototype, "withDivider", 2);
42
+ o = n([
43
+ d("ds-dialog-footer")
44
+ ], o);
45
+ export {
46
+ o as DsDialogFooter
47
+ };
@@ -0,0 +1,16 @@
1
+ import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
2
+ import "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
3
+ import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
4
+ import { css as o } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
5
+ const s = o`
6
+ :host {
7
+ display: flex;
8
+ }
9
+
10
+ .container {
11
+ width: 100%;
12
+ }
13
+ `;
14
+ export {
15
+ s as commonStyles
16
+ };
@@ -0,0 +1,68 @@
1
+ import { UiKitElement as c } from "../base/UiKitElement.js";
2
+ import { customUiKitElement as p } from "../../decorators/customUiKitElement.js";
3
+ import { htmlWithTokens as h } from "../../utils/htmlWithTokens.js";
4
+ import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
5
+ import { nothing as d, html as u } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
6
+ import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
7
+ import { property as l } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
8
+ import { classMap as y } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
9
+ import { commonStyles as f } from "./styles/common.styles.js";
10
+ var v = Object.defineProperty, g = Object.getOwnPropertyDescriptor, s = (m, i, o, r) => {
11
+ for (var t = r > 1 ? void 0 : r ? g(i, o) : i, n = m.length - 1, a; n >= 0; n--)
12
+ (a = m[n]) && (t = (r ? a(i, o, t) : a(t)) || t);
13
+ return r && t && v(i, o, t), t;
14
+ };
15
+ let e = class extends c {
16
+ constructor() {
17
+ super(...arguments), this.title = "primary", this.iconSize = 32;
18
+ }
19
+ get classes() {
20
+ return {
21
+ container: !0
22
+ };
23
+ }
24
+ get styleTokens() {
25
+ return h`
26
+ <style>
27
+ :host{
28
+ grid-area: header;
29
+ }
30
+ </style>
31
+ `;
32
+ }
33
+ get iconTemplate() {
34
+ return this.iconName ? this.componentFactory.createIcon({
35
+ class: "icon",
36
+ "icon-name": this.iconName,
37
+ size: this.iconSize
38
+ }) : d;
39
+ }
40
+ render() {
41
+ return u`
42
+ ${this.styleTokens}
43
+ <div data-testid="ds-dialog-header-container" class=${y(this.classes)}>
44
+ <div class="title-container">
45
+ ${this.iconTemplate}
46
+ <div class="title">${this.title}</div>
47
+ </div>
48
+ <slot name="subtitle"></slot>
49
+ </div>
50
+ `;
51
+ }
52
+ };
53
+ e.styles = [f];
54
+ s([
55
+ l({ type: String })
56
+ ], e.prototype, "title", 2);
57
+ s([
58
+ l({ type: String, attribute: "icon-name" })
59
+ ], e.prototype, "iconName", 2);
60
+ s([
61
+ l({ type: Number, attribute: "icon-size" })
62
+ ], e.prototype, "iconSize", 2);
63
+ e = s([
64
+ p("ds-dialog-header")
65
+ ], e);
66
+ export {
67
+ e as DsDialogHeader
68
+ };
@@ -0,0 +1,12 @@
1
+ import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
2
+ import "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
3
+ import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
4
+ import { css as o } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
5
+ const p = o`
6
+ :host {
7
+ display: block;
8
+ }
9
+ `;
10
+ export {
11
+ p as commonStyles
12
+ };
@@ -0,0 +1,58 @@
1
+ import { UiKitElement as l } from "../base/UiKitElement.js";
2
+ import { customUiKitElement as h } from "../../decorators/customUiKitElement.js";
3
+ import { htmlWithTokens as y } from "../../utils/htmlWithTokens.js";
4
+ import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
5
+ import { html as c } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
6
+ import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
7
+ import { property as m } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
8
+ import { classMap as f } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
9
+ import { orientationStyles as v } from "./styles/common.styles.js";
10
+ var d = Object.defineProperty, u = Object.getOwnPropertyDescriptor, o = (p, e, s, i) => {
11
+ for (var t = i > 1 ? void 0 : i ? u(e, s) : e, n = p.length - 1, a; n >= 0; n--)
12
+ (a = p[n]) && (t = (i ? a(e, s, t) : a(t)) || t);
13
+ return i && t && d(e, s, t), t;
14
+ };
15
+ let r = class extends l {
16
+ constructor() {
17
+ super(...arguments), this.orientation = "horizontal", this.variant = "primary", this.mode = "light";
18
+ }
19
+ get classes() {
20
+ return {
21
+ divider: !0,
22
+ [this.orientation]: !!this.orientation,
23
+ [this.variant]: !!this.variant,
24
+ [this.mode]: !!this.mode
25
+ };
26
+ }
27
+ get styleTokens() {
28
+ return y`
29
+ <style>
30
+ :host{
31
+ color-scheme: ${this.mode};
32
+ }
33
+ </style>
34
+ `;
35
+ }
36
+ render() {
37
+ return c`
38
+ ${this.styleTokens}
39
+ <hr aria-orientation=${this.orientation} class=${f(this.classes)} />
40
+ `;
41
+ }
42
+ };
43
+ r.styles = [v];
44
+ o([
45
+ m({ type: String })
46
+ ], r.prototype, "orientation", 2);
47
+ o([
48
+ m({ type: String })
49
+ ], r.prototype, "variant", 2);
50
+ o([
51
+ m({ type: String, reflect: !0 })
52
+ ], r.prototype, "mode", 2);
53
+ r = o([
54
+ h("ds-divider")
55
+ ], r);
56
+ export {
57
+ r as DsDivider
58
+ };
@@ -0,0 +1,13 @@
1
+ import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
2
+ import "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
3
+ import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
4
+ import { css as o } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
5
+ const m = o`
6
+ .divider {
7
+ border: none;
8
+ margin: 0;
9
+ }
10
+ `;
11
+ export {
12
+ m as orientationStyles
13
+ };
@@ -0,0 +1,93 @@
1
+ import { UiKitElement as c } from "../base/UiKitElement.js";
2
+ import { customUiKitElement as f } from "../../decorators/customUiKitElement.js";
3
+ import { htmlWithTokens as y } from "../../utils/htmlWithTokens.js";
4
+ import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
5
+ import { html as a } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
6
+ import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
7
+ import { property as s } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
8
+ import { choose as u } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/choose.js";
9
+ import { classMap as n } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
10
+ import { commonStyles as g } from "./styles/common.styles.js";
11
+ var $ = Object.defineProperty, d = Object.getOwnPropertyDescriptor, r = (o, i, p, l) => {
12
+ for (var e = l > 1 ? void 0 : l ? d(i, p) : i, m = o.length - 1, h; m >= 0; m--)
13
+ (h = o[m]) && (e = (l ? h(i, p, e) : h(e)) || e);
14
+ return l && e && $(i, p, e), e;
15
+ };
16
+ let t = class extends c {
17
+ constructor() {
18
+ super(...arguments), this.htmlTagName = "a", this.mode = "light", this.size = "large";
19
+ }
20
+ handleClick(o) {
21
+ this.href || o.preventDefault();
22
+ }
23
+ get styleTokens() {
24
+ return y`
25
+ <style>
26
+ :host {
27
+ color-scheme: ${this.mode};
28
+ }
29
+ </style>
30
+ `;
31
+ }
32
+ get classes() {
33
+ return {
34
+ hyperlink: !0,
35
+ [this.size]: !!this.size,
36
+ [this.mode]: !!this.mode
37
+ };
38
+ }
39
+ render() {
40
+ return a`
41
+ ${this.styleTokens}
42
+ ${u(this.htmlTagName || "a", [
43
+ [
44
+ "button",
45
+ () => a`
46
+ <button class=${n(this.classes)}>
47
+ <slot></slot>
48
+ </button>
49
+ `
50
+ ],
51
+ [
52
+ "a",
53
+ () => a`
54
+ <a
55
+ class=${n(this.classes)}
56
+ href=${this.href}
57
+ rel=${this.rel}
58
+ target=${this.target}
59
+ @click=${this.handleClick}
60
+ >
61
+ <slot></slot>
62
+ </a>
63
+ `
64
+ ]
65
+ ])}
66
+ `;
67
+ }
68
+ };
69
+ t.styles = [g];
70
+ r([
71
+ s({ type: String, attribute: "html-tag-name" })
72
+ ], t.prototype, "htmlTagName", 2);
73
+ r([
74
+ s({ type: String, reflect: !0 })
75
+ ], t.prototype, "href", 2);
76
+ r([
77
+ s({ type: String, reflect: !0 })
78
+ ], t.prototype, "rel", 2);
79
+ r([
80
+ s({ type: String, reflect: !0 })
81
+ ], t.prototype, "target", 2);
82
+ r([
83
+ s({ type: String, reflect: !0 })
84
+ ], t.prototype, "mode", 2);
85
+ r([
86
+ s({ type: String })
87
+ ], t.prototype, "size", 2);
88
+ t = r([
89
+ f("ds-hyperlink")
90
+ ], t);
91
+ export {
92
+ t as DsHyperlinkButton
93
+ };
@@ -0,0 +1,22 @@
1
+ import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
2
+ import "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
3
+ import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
4
+ import { css as o } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
5
+ const e = o`
6
+ :host {
7
+ display: inline-flex;
8
+ }
9
+
10
+ .hyperlink {
11
+ box-sizing: border-box;
12
+ display: inline-block;
13
+ text-align: center;
14
+ cursor: pointer;
15
+ text-decoration: none;
16
+ padding: 0;
17
+ background: transparent;
18
+ }
19
+ `;
20
+ export {
21
+ e as commonStyles
22
+ };
@@ -1 +1 @@
1
- export type Icons = '9-circles' | 'ad-color' | 'ae-color' | 'af-color' | 'ag-color' | 'ai-color' | 'al-color' | 'am-color' | 'an-color' | 'ao-color' | 'ar-color' | 'arrow-down-line' | 'arrow-down' | 'arrow-download' | 'arrow-exit' | 'arrow-expand' | 'arrow-external-link' | 'arrow-left-line' | 'arrow-left' | 'arrow-reload' | 'arrow-right-line' | 'arrow-right' | 'arrow-rotate-360-horizontal' | 'arrow-rotate-360' | 'arrow-switch' | 'arrow-up-line' | 'arrow-up' | 'arrow-upload' | 'at-color' | 'au-color' | 'aw-color' | 'ax-color' | 'az-color' | 'b-color' | 'ba-color' | 'battery-g-4-01' | 'battery-inclined-fill' | 'battery-vertical-100' | 'battery-2-sub-arrows-up' | 'battery-3-sub-arrows-up' | 'bb-color' | 'bd-color' | 'be-color' | 'bell' | 'bf-color' | 'bg-color' | 'bh-color' | 'bi-color' | 'bill' | 'bin' | 'bj-color' | 'bm-color' | 'bn-color' | 'bo-color' | 'book-mark' | 'box' | 'br-color' | 'bs-color' | 'bt-color' | 'bw-color' | 'by-color' | 'bz-color' | 'c-color' | 'ca-color' | 'cable' | 'caf-color' | 'calendar' | 'camera' | 'car-arrow-down' | 'car-compare' | 'car-door' | 'car-frontal' | 'car-imodel' | 'car-in-window' | 'car-lateral' | 'car-model' | 'car-seat' | 'cart-down' | 'cart' | 'cas-color' | 'cd-color' | 'cercle-ribbon-check' | 'ceu-color' | 'cf-color' | 'cg-color' | 'ch-color' | 'charger-acc' | 'charger-type-2' | 'chat-bubble' | 'check' | 'check-mark-circle' | 'ci-color' | 'city' | 'cl-color' | 'clock' | 'cloud-co-2' | 'cm-color' | 'cn-color' | 'cna-color' | 'co-color' | 'coc-color' | 'computer-display' | 'cr-color' | 'credit-card' | 'cross-circle' | 'cross' | 'csa-color' | 'cu-color' | 'cv-color' | 'cy-color' | 'cz-color' | 'de-color' | 'dj-color' | 'dk-color' | 'dm-color' | 'do-color' | 'document-check' | 'document-copy' | 'document-download' | 'document-time' | 'document' | 'dot' | 'dz-color' | 'ec-color' | 'eco-color' | 'ee-color' | 'eg-color' | 'electric-station' | 'engine' | 'envelope' | 'equals-sign' | 'er-color' | 'es-color' | 'et-color' | 'eu-color' | 'euro' | 'exclamation-mark-circle' | 'exclamation-mark-triangle' | 'eye-crossed-out' | 'eye' | 'facebook' | 'fi-color' | 'filter' | 'fj-color' | 'fk-color' | 'fm-color' | 'fr-color' | 'fuel-station' | 'ga-color' | 'garage' | 'gb-color' | 'gd-color' | 'ge-color' | 'gear' | 'gg-color' | 'gh-color' | 'gi-color' | 'globe' | 'gm-color' | 'gn-color' | 'gq-color' | 'gr-color' | 'gt-color' | 'gw-color' | 'gy-color' | 'half-star-filled' | 'headlight' | 'heart-filled' | 'heart' | 'highway' | 'hk-color' | 'hn-color' | 'hr-color' | 'ht-color' | 'hu-color' | 'id-color' | 'ie-color' | 'il-color' | 'im-color' | 'in-color' | 'info-circle' | 'info-triangle' | 'instagram' | 'iq-color' | 'ir-color' | 'is-color' | 'it-color' | 'je-color' | 'jm-color' | 'jo-color' | 'jp-color' | 'ke-color' | 'key' | 'kg-color' | 'kh-color' | 'km-color' | 'kn-color' | 'kp-color' | 'kr-color' | 'kw-color' | 'ky-color' | 'kz-color' | 'la-color' | 'label-a-color' | 'label-b-color' | 'label-c-color' | 'label-d-color' | 'label-e-color' | 'label-f-color' | 'label-g-color' | 'label-h-color' | 'label-i-color' | 'label-j-color' | 'label-k-color' | 'label-l-color' | 'label-m-color' | 'lb-color' | 'lc-color' | 'li-color' | 'light' | 'lightning' | 'link' | 'linkedin' | 'list' | 'lk-color' | 'loader' | 'location-poi' | 'lock-locked' | 'lock-unlocked' | 'logo-light' | 'logo-lockup' | 'logo-wordmark' | 'logo' | 'lr-color' | 'ls-color' | 'lt-color' | 'lu-color' | 'lv-color' | 'ly-color' | 'ma-color' | 'magnifying-glass-minus' | 'magnifying-glass-plus' | 'magnifying-glass' | 'math-symbols-square' | 'mc-color' | 'md-color' | 'me-color' | 'menu' | 'mg-color' | 'micro-crossed-out' | 'micro' | 'minus' | 'mk-color' | 'ml-color' | 'mm-color' | 'mn-color' | 'mo-color' | 'mobile' | 'moon' | 'mountains' | 'mr-color' | 'ms-color' | 'mt-color' | 'mu-color' | 'mv-color' | 'mw-color' | 'mx-color' | 'my-color' | 'mz-color' | 'na-color' | 'ne-color' | 'ng-color' | 'ni-color' | 'nl-color' | 'no-color' | 'np-color' | 'nz-color' | 'om-color' | 'pa-color' | 'parking' | 'pause-loading' | 'pause' | 'pcircle' | 'pe-color' | 'pen-paper' | 'pen' | 'person-open-arms' | 'pf-color' | 'pg-color' | 'ph-color' | 'phone-contact' | 'pig-coin' | 'pk-color' | 'pl-color' | 'play' | 'play-circle' | 'plug-regular' | 'plus' | 'position' | 'pr-color' | 'pt-color' | 'pw-color' | 'py-color' | 'qa-color' | 'question-mark' | 'ro-color' | 'road-mountain' | 'road' | 'rs-color' | 'ru-color' | 'rw-color' | 'sa-color' | 'sb-color' | 'sc-color' | 'sd-color' | 'se-color' | 'seat-front' | 'sg-color' | 'sh-color' | 'share' | 'shopping-bag' | 'si-color' | 'sk-color' | 'sl-color' | 'sm-color' | 'sn-color' | 'so-color' | 'speaker-crossed-out' | 'speaker' | 'spray' | 'sr-color' | 'st-color' | 'star-filled' | 'star' | 'store' | 'suitcase' | 'sun' | 'sv-color' | 'sy-color' | 'sz-color' | 'tag' | 'tc-color' | 'td-color' | 'telegram' | 'tg-color' | 'th-color' | 'ticket' | 'tj-color' | 'tl-color' | 'tm-color' | 'tn-color' | 'to-color' | 'tr-color' | 'transmission-automatic' | 'transmission-manual' | 'triple-dot-h' | 'triple-dot-v' | 'tt-color' | 'tw-color' | 'twitter' | 'tz-color' | 'ua-color' | 'ug-color' | 'us-color' | 'user' | 'uy-color' | 'uz-color' | 'vc-color' | 've-color' | 'vg-color' | 'video-camera-crossed-out' | 'video-camera' | 'vimeo' | 'vn-color' | 'vu-color' | 'wall-charger' | 'whatsapp' | 'wheel' | 'wifi' | 'wrench-hammer' | 'ws-color' | 'ww-color' | 'ye-color' | 'youtube' | 'za-color' | 'zero-color' | 'zm-color' | 'zw-color';
1
+ export type Icons = '9-circles' | 'ad-color' | 'ae-color' | 'af-color' | 'ag-color' | 'ai-color' | 'al-color' | 'am-color' | 'an-color' | 'ao-color' | 'ar-color' | 'arrow-down-line' | 'arrow-down' | 'arrow-download' | 'arrow-exit' | 'arrow-expand' | 'arrow-external-link' | 'arrow-left-line' | 'arrow-left' | 'arrow-reload' | 'arrow-right-line' | 'arrow-right' | 'arrow-rotate-360-horizontal' | 'arrow-rotate-360' | 'arrow-switch' | 'arrow-up-line' | 'arrow-up' | 'arrow-upload' | 'at-color' | 'au-color' | 'aw-color' | 'ax-color' | 'az-color' | 'b-color' | 'ba-color' | 'battery-g-4-01' | 'battery-inclined-fill' | 'battery-vertical-100' | 'battery-2-sub-arrows-up' | 'battery-3-sub-arrows-up' | 'bb-color' | 'bd-color' | 'be-color' | 'bell' | 'bf-color' | 'bg-color' | 'bh-color' | 'bi-color' | 'bill' | 'bin' | 'bj-color' | 'bm-color' | 'bn-color' | 'bo-color' | 'book-mark' | 'box' | 'br-color' | 'bs-color' | 'bt-color' | 'bw-color' | 'by-color' | 'bz-color' | 'c-color' | 'ca-color' | 'cable' | 'caf-color' | 'calendar' | 'camera' | 'car-arrow-down' | 'car-compare' | 'car-door' | 'car-frontal' | 'car-imodel' | 'car-in-window' | 'car-lateral' | 'car-model' | 'car-seat' | 'cart-down' | 'cart' | 'cas-color' | 'cd-color' | 'cercle-ribbon-check' | 'ceu-color' | 'cf-color' | 'cg-color' | 'ch-color' | 'charger-acc' | 'charger-type-2' | 'chat-bubble' | 'check' | 'check-mark-circle' | 'ci-color' | 'city' | 'cl-color' | 'clock' | 'cloud-co-2' | 'cm-color' | 'cn-color' | 'cna-color' | 'co-color' | 'coc-color' | 'computer-display' | 'cr-color' | 'credit-card' | 'cross-circle' | 'cross' | 'csa-color' | 'cu-color' | 'cv-color' | 'cy-color' | 'cz-color' | 'de-color' | 'dj-color' | 'dk-color' | 'dm-color' | 'do-color' | 'document-check' | 'document-copy' | 'document-download' | 'document-time' | 'document' | 'dot' | 'dz-color' | 'ec-color' | 'eco-color' | 'ee-color' | 'eg-color' | 'electric-station' | 'engine' | 'envelope' | 'equals-sign' | 'er-color' | 'es-color' | 'et-color' | 'eu-color' | 'euro' | 'exclamation-mark-circle' | 'exclamation-mark-triangle' | 'eye-crossed-out' | 'eye' | 'facebook' | 'fi-color' | 'filter' | 'fj-color' | 'fk-color' | 'fm-color' | 'fr-color' | 'fuel-station' | 'ga-color' | 'garage' | 'gb-color' | 'gd-color' | 'ge-color' | 'gear' | 'gg-color' | 'gh-color' | 'gi-color' | 'globe' | 'gm-color' | 'gn-color' | 'gq-color' | 'gr-color' | 'gt-color' | 'gw-color' | 'gy-color' | 'half-star-filled' | 'headlight' | 'heart-filled' | 'heart' | 'highway' | 'hk-color' | 'hn-color' | 'hr-color' | 'ht-color' | 'hu-color' | 'id-color' | 'ie-color' | 'il-color' | 'im-color' | 'in-color' | 'info-circle' | 'info-triangle' | 'instagram' | 'iq-color' | 'ir-color' | 'is-color' | 'it-color' | 'je-color' | 'jm-color' | 'jo-color' | 'jp-color' | 'ke-color' | 'key' | 'kg-color' | 'kh-color' | 'km-color' | 'kn-color' | 'kp-color' | 'kr-color' | 'kw-color' | 'ky-color' | 'kz-color' | 'la-color' | 'label-a-color' | 'label-b-color' | 'label-c-color' | 'label-d-color' | 'label-e-color' | 'label-f-color' | 'label-g-color' | 'label-h-color' | 'label-i-color' | 'label-j-color' | 'label-k-color' | 'label-l-color' | 'label-m-color' | 'lb-color' | 'lc-color' | 'li-color' | 'light' | 'lightning' | 'link' | 'linkedin' | 'list' | 'lk-color' | 'loader' | 'location-poi' | 'lock-locked' | 'lock-unlocked' | 'logo-light' | 'logo-lockup' | 'logo-wordmark' | 'logo' | 'lr-color' | 'ls-color' | 'lt-color' | 'lu-color' | 'lv-color' | 'ly-color' | 'ma-color' | 'magnifying-glass-minus' | 'magnifying-glass-plus' | 'magnifying-glass' | 'math-symbols-square' | 'mc-color' | 'md-color' | 'me-color' | 'menu' | 'mg-color' | 'micro-crossed-out' | 'micro' | 'minus' | 'mk-color' | 'ml-color' | 'mm-color' | 'mn-color' | 'mo-color' | 'mobile' | 'moon' | 'mountains' | 'mr-color' | 'ms-color' | 'mt-color' | 'mu-color' | 'mv-color' | 'mw-color' | 'mx-color' | 'my-color' | 'mz-color' | 'na-color' | 'ne-color' | 'ng-color' | 'ni-color' | 'nl-color' | 'no-color' | 'np-color' | 'nz-color' | 'om-color' | 'pa-color' | 'parking' | 'pause-loading' | 'pause' | 'pcircle' | 'pe-color' | 'pen-paper' | 'pen' | 'person-open-arms' | 'pf-color' | 'pg-color' | 'ph-color' | 'phone-contact' | 'pig-coin' | 'pk-color' | 'pl-color' | 'play' | 'play-circle' | 'plug-regular' | 'plus' | 'position' | 'pr-color' | 'pt-color' | 'pw-color' | 'py-color' | 'qa-color' | 'question-mark' | 'ro-color' | 'road-mountain' | 'road' | 'rs-color' | 'ru-color' | 'rw-color' | 'sa-color' | 'sb-color' | 'scan-qr' | 'sc-color' | 'sd-color' | 'se-color' | 'seat-front' | 'sg-color' | 'sh-color' | 'share' | 'shopping-bag' | 'si-color' | 'sk-color' | 'sl-color' | 'sm-color' | 'sn-color' | 'so-color' | 'speaker-crossed-out' | 'speaker' | 'spray' | 'sr-color' | 'st-color' | 'star-filled' | 'star' | 'store' | 'suitcase' | 'sun' | 'sv-color' | 'sy-color' | 'sz-color' | 'tag' | 'tc-color' | 'td-color' | 'telegram' | 'tg-color' | 'th-color' | 'ticket' | 'tj-color' | 'tl-color' | 'tm-color' | 'tn-color' | 'to-color' | 'tr-color' | 'transmission-automatic' | 'transmission-manual' | 'triple-dot-h' | 'triple-dot-v' | 'tt-color' | 'tw-color' | 'twitter' | 'tz-color' | 'ua-color' | 'ug-color' | 'us-color' | 'user' | 'uy-color' | 'uz-color' | 'vc-color' | 've-color' | 'vg-color' | 'video-camera-crossed-out' | 'video-camera' | 'vimeo' | 'vn-color' | 'vu-color' | 'wall-charger' | 'whatsapp' | 'wheel' | 'wifi' | 'wrench-hammer' | 'ws-color' | 'ww-color' | 'ye-color' | 'youtube' | 'za-color' | 'zero-color' | 'zm-color' | 'zw-color';
@@ -0,0 +1,105 @@
1
+ import { UiKitElement as f } from "../base/UiKitElement.js";
2
+ import { customUiKitElement as u } from "../../decorators/customUiKitElement.js";
3
+ import { iconsManager as y } from "../../utils/IconsManager.js";
4
+ import { pubSub as _ } from "../../utils/PubSub.js";
5
+ import { htmlWithTokens as g } from "../../utils/htmlWithTokens.js";
6
+ import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
7
+ import { html as l } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
8
+ import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
9
+ import { property as a } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
10
+ import { state as w } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
11
+ import { unsafeHTML as x } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js";
12
+ import { css as $ } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
13
+ var k = Object.defineProperty, H = Object.getOwnPropertyDescriptor, m = (t) => {
14
+ throw TypeError(t);
15
+ }, n = (t, e, i, s) => {
16
+ for (var r = s > 1 ? void 0 : s ? H(e, i) : e, h = t.length - 1, p; h >= 0; h--)
17
+ (p = t[h]) && (r = (s ? p(e, i, r) : p(r)) || r);
18
+ return s && r && k(e, i, r), r;
19
+ }, d = (t, e, i) => e.has(t) || m("Cannot " + i), v = (t, e, i) => (d(t, e, "read from private field"), i ? i.call(t) : e.get(t)), I = (t, e, i) => e.has(t) ? m("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), D = (t, e, i, s) => (d(t, e, "write to private field"), e.set(t, i), i), N = (t, e, i, s) => ({
20
+ set _(r) {
21
+ D(t, e, r);
22
+ },
23
+ get _() {
24
+ return v(t, e, s);
25
+ }
26
+ }), c;
27
+ let o = class extends f {
28
+ constructor() {
29
+ super(), this.iconHtml = "", I(this, c, 0), this.getIcon = async () => {
30
+ const t = ++N(this, c)._, e = await y.fetchIcon(this.iconName);
31
+ t === v(this, c) && (this.iconHtml = e);
32
+ }, _.subscribe("theme", this.getIcon);
33
+ }
34
+ async updated(t) {
35
+ super.updated(t), (t.has("iconName") || !this.iconHtml) && await this.getIcon();
36
+ }
37
+ getDimension(t, e, i) {
38
+ return t ? `${t}px` : e ? "auto" : this.size ? `${this.size}px` : i;
39
+ }
40
+ get styleTokens() {
41
+ const t = this.getDimension(
42
+ this.width,
43
+ this.height,
44
+ "var(--private-ds-icon-width, var(--ds-icon-width, 20px))"
45
+ ), e = this.getDimension(
46
+ this.height,
47
+ this.width,
48
+ "var(--private-ds-icon-height, var(--ds-icon-height, 20px))"
49
+ );
50
+ return g`
51
+ <style>
52
+ .ds-icon {
53
+ display: inline-block;
54
+ width: ${t};
55
+ height: ${e};
56
+ }
57
+
58
+ .ds-icon-color {
59
+ fill: ${this.color ? this.color : "var(--private-ds-icon-color, var(--ds-icon-color, black))"};
60
+ }
61
+
62
+ .ds-icon-color-stroke {
63
+ stroke: ${this.color ? this.color : "var(--private-ds-icon-color, var(--ds-icon-color, black))"};
64
+ }
65
+ </style>
66
+ `;
67
+ }
68
+ render() {
69
+ return l`
70
+ ${this.styleTokens}
71
+ ${this.iconHtml ? x(this.iconHtml) : l`<svg class="ds-icon">x</svg>`}
72
+ `;
73
+ }
74
+ };
75
+ c = /* @__PURE__ */ new WeakMap();
76
+ o.styles = $`
77
+ :host {
78
+ line-height: 0;
79
+ display: inline-block;
80
+ }
81
+ `;
82
+ n([
83
+ a({ type: String, attribute: "icon-name" })
84
+ ], o.prototype, "iconName", 2);
85
+ n([
86
+ a({ type: String, attribute: "color" })
87
+ ], o.prototype, "color", 2);
88
+ n([
89
+ a({ type: Number })
90
+ ], o.prototype, "width", 2);
91
+ n([
92
+ a({ type: Number })
93
+ ], o.prototype, "height", 2);
94
+ n([
95
+ a({ type: Number, attribute: "size" })
96
+ ], o.prototype, "size", 2);
97
+ n([
98
+ w()
99
+ ], o.prototype, "iconHtml", 2);
100
+ o = n([
101
+ u("ds-icon")
102
+ ], o);
103
+ export {
104
+ o as DsIcon
105
+ };