@cupra/ui-kit 1.0.0-canary.9 → 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,313 @@
1
+ import { flip as Z, shift as tt, offset as et, arrow as ot, size as it, computePosition as nt } from "../../../../../@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js";
2
+ import { createCoords as d, round as W, max as O, min as A, rectToClientRect as X } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
3
+ import { isElement as p, getDocumentElement as m, getComputedStyle as w, isHTMLElement as x, getWindow as b, isTopLayer as D, getParentNode as T, isLastTraversableNode as S, isTableElement as st, isContainingBlock as _, getContainingBlock as rt, getNodeName as N, isOverflowElement as H, getNodeScroll as E, getOverflowAncestors as ct, getFrameElement as M, isWebKit as P } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";
4
+ function K(t) {
5
+ const e = w(t);
6
+ let i = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
7
+ const n = x(t), r = n ? t.offsetWidth : i, s = n ? t.offsetHeight : o, c = W(i) !== r || W(o) !== s;
8
+ return c && (i = r, o = s), {
9
+ width: i,
10
+ height: o,
11
+ $: c
12
+ };
13
+ }
14
+ function j(t) {
15
+ return p(t) ? t : t.contextElement;
16
+ }
17
+ function R(t) {
18
+ const e = j(t);
19
+ if (!x(e))
20
+ return d(1);
21
+ const i = e.getBoundingClientRect(), {
22
+ width: o,
23
+ height: n,
24
+ $: r
25
+ } = K(e);
26
+ let s = (r ? W(i.width) : i.width) / o, c = (r ? W(i.height) : i.height) / n;
27
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
28
+ x: s,
29
+ y: c
30
+ };
31
+ }
32
+ const lt = /* @__PURE__ */ d(0);
33
+ function q(t) {
34
+ const e = b(t);
35
+ return !P() || !e.visualViewport ? lt : {
36
+ x: e.visualViewport.offsetLeft,
37
+ y: e.visualViewport.offsetTop
38
+ };
39
+ }
40
+ function ft(t, e, i) {
41
+ return e === void 0 && (e = !1), !i || e && i !== b(t) ? !1 : e;
42
+ }
43
+ function v(t, e, i, o) {
44
+ e === void 0 && (e = !1), i === void 0 && (i = !1);
45
+ const n = t.getBoundingClientRect(), r = j(t);
46
+ let s = d(1);
47
+ e && (o ? p(o) && (s = R(o)) : s = R(t));
48
+ const c = ft(r, i, o) ? q(r) : d(0);
49
+ let l = (n.left + c.x) / s.x, f = (n.top + c.y) / s.y, u = n.width / s.x, h = n.height / s.y;
50
+ if (r) {
51
+ const g = b(r), a = o && p(o) ? b(o) : o;
52
+ let C = g, y = M(C);
53
+ for (; y && o && a !== C; ) {
54
+ const L = R(y), V = y.getBoundingClientRect(), $ = w(y), U = V.left + (y.clientLeft + parseFloat($.paddingLeft)) * L.x, Y = V.top + (y.clientTop + parseFloat($.paddingTop)) * L.y;
55
+ l *= L.x, f *= L.y, u *= L.x, h *= L.y, l += U, f += Y, C = b(y), y = M(C);
56
+ }
57
+ }
58
+ return X({
59
+ width: u,
60
+ height: h,
61
+ x: l,
62
+ y: f
63
+ });
64
+ }
65
+ function F(t, e) {
66
+ const i = E(t).scrollLeft;
67
+ return e ? e.left + i : v(m(t)).left + i;
68
+ }
69
+ function G(t, e) {
70
+ const i = t.getBoundingClientRect(), o = i.left + e.scrollLeft - F(t, i), n = i.top + e.scrollTop;
71
+ return {
72
+ x: o,
73
+ y: n
74
+ };
75
+ }
76
+ function ut(t) {
77
+ let {
78
+ elements: e,
79
+ rect: i,
80
+ offsetParent: o,
81
+ strategy: n
82
+ } = t;
83
+ const r = n === "fixed", s = m(o), c = e ? D(e.floating) : !1;
84
+ if (o === s || c && r)
85
+ return i;
86
+ let l = {
87
+ scrollLeft: 0,
88
+ scrollTop: 0
89
+ }, f = d(1);
90
+ const u = d(0), h = x(o);
91
+ if ((h || !h && !r) && ((N(o) !== "body" || H(s)) && (l = E(o)), x(o))) {
92
+ const a = v(o);
93
+ f = R(o), u.x = a.x + o.clientLeft, u.y = a.y + o.clientTop;
94
+ }
95
+ const g = s && !h && !r ? G(s, l) : d(0);
96
+ return {
97
+ width: i.width * f.x,
98
+ height: i.height * f.y,
99
+ x: i.x * f.x - l.scrollLeft * f.x + u.x + g.x,
100
+ y: i.y * f.y - l.scrollTop * f.y + u.y + g.y
101
+ };
102
+ }
103
+ function ht(t) {
104
+ return Array.from(t.getClientRects());
105
+ }
106
+ function dt(t) {
107
+ const e = m(t), i = E(t), o = t.ownerDocument.body, n = O(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = O(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
108
+ let s = -i.scrollLeft + F(t);
109
+ const c = -i.scrollTop;
110
+ return w(o).direction === "rtl" && (s += O(e.clientWidth, o.clientWidth) - n), {
111
+ width: n,
112
+ height: r,
113
+ x: s,
114
+ y: c
115
+ };
116
+ }
117
+ const I = 25;
118
+ function gt(t, e) {
119
+ const i = b(t), o = m(t), n = i.visualViewport;
120
+ let r = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
121
+ if (n) {
122
+ r = n.width, s = n.height;
123
+ const u = P();
124
+ (!u || u && e === "fixed") && (c = n.offsetLeft, l = n.offsetTop);
125
+ }
126
+ const f = F(o);
127
+ if (f <= 0) {
128
+ const u = o.ownerDocument, h = u.body, g = getComputedStyle(h), a = u.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, C = Math.abs(o.clientWidth - h.clientWidth - a);
129
+ C <= I && (r -= C);
130
+ } else f <= I && (r += f);
131
+ return {
132
+ width: r,
133
+ height: s,
134
+ x: c,
135
+ y: l
136
+ };
137
+ }
138
+ const at = /* @__PURE__ */ new Set(["absolute", "fixed"]);
139
+ function pt(t, e) {
140
+ const i = v(t, !0, e === "fixed"), o = i.top + t.clientTop, n = i.left + t.clientLeft, r = x(t) ? R(t) : d(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = n * r.x, f = o * r.y;
141
+ return {
142
+ width: s,
143
+ height: c,
144
+ x: l,
145
+ y: f
146
+ };
147
+ }
148
+ function k(t, e, i) {
149
+ let o;
150
+ if (e === "viewport")
151
+ o = gt(t, i);
152
+ else if (e === "document")
153
+ o = dt(m(t));
154
+ else if (p(e))
155
+ o = pt(e, i);
156
+ else {
157
+ const n = q(t);
158
+ o = {
159
+ x: e.x - n.x,
160
+ y: e.y - n.y,
161
+ width: e.width,
162
+ height: e.height
163
+ };
164
+ }
165
+ return X(o);
166
+ }
167
+ function J(t, e) {
168
+ const i = T(t);
169
+ return i === e || !p(i) || S(i) ? !1 : w(i).position === "fixed" || J(i, e);
170
+ }
171
+ function wt(t, e) {
172
+ const i = e.get(t);
173
+ if (i)
174
+ return i;
175
+ let o = ct(t, []).filter((c) => p(c) && N(c) !== "body"), n = null;
176
+ const r = w(t).position === "fixed";
177
+ let s = r ? T(t) : t;
178
+ for (; p(s) && !S(s); ) {
179
+ const c = w(s), l = _(s);
180
+ !l && c.position === "fixed" && (n = null), (r ? !l && !n : !l && c.position === "static" && !!n && at.has(n.position) || H(s) && !l && J(t, s)) ? o = o.filter((u) => u !== s) : n = c, s = T(s);
181
+ }
182
+ return e.set(t, o), o;
183
+ }
184
+ function yt(t) {
185
+ let {
186
+ element: e,
187
+ boundary: i,
188
+ rootBoundary: o,
189
+ strategy: n
190
+ } = t;
191
+ const s = [...i === "clippingAncestors" ? D(e) ? [] : wt(e, this._c) : [].concat(i), o], c = s[0], l = s.reduce((f, u) => {
192
+ const h = k(e, u, n);
193
+ return f.top = O(h.top, f.top), f.right = A(h.right, f.right), f.bottom = A(h.bottom, f.bottom), f.left = O(h.left, f.left), f;
194
+ }, k(e, c, n));
195
+ return {
196
+ width: l.right - l.left,
197
+ height: l.bottom - l.top,
198
+ x: l.left,
199
+ y: l.top
200
+ };
201
+ }
202
+ function xt(t) {
203
+ const {
204
+ width: e,
205
+ height: i
206
+ } = K(t);
207
+ return {
208
+ width: e,
209
+ height: i
210
+ };
211
+ }
212
+ function mt(t, e, i) {
213
+ const o = x(e), n = m(e), r = i === "fixed", s = v(t, !0, r, e);
214
+ let c = {
215
+ scrollLeft: 0,
216
+ scrollTop: 0
217
+ };
218
+ const l = d(0);
219
+ function f() {
220
+ l.x = F(n);
221
+ }
222
+ if (o || !o && !r)
223
+ if ((N(e) !== "body" || H(n)) && (c = E(e)), o) {
224
+ const a = v(e, !0, r, e);
225
+ l.x = a.x + e.clientLeft, l.y = a.y + e.clientTop;
226
+ } else n && f();
227
+ r && !o && n && f();
228
+ const u = n && !o && !r ? G(n, c) : d(0), h = s.left + c.scrollLeft - l.x - u.x, g = s.top + c.scrollTop - l.y - u.y;
229
+ return {
230
+ x: h,
231
+ y: g,
232
+ width: s.width,
233
+ height: s.height
234
+ };
235
+ }
236
+ function B(t) {
237
+ return w(t).position === "static";
238
+ }
239
+ function z(t, e) {
240
+ if (!x(t) || w(t).position === "fixed")
241
+ return null;
242
+ if (e)
243
+ return e(t);
244
+ let i = t.offsetParent;
245
+ return m(t) === i && (i = i.ownerDocument.body), i;
246
+ }
247
+ function Q(t, e) {
248
+ const i = b(t);
249
+ if (D(t))
250
+ return i;
251
+ if (!x(t)) {
252
+ let n = T(t);
253
+ for (; n && !S(n); ) {
254
+ if (p(n) && !B(n))
255
+ return n;
256
+ n = T(n);
257
+ }
258
+ return i;
259
+ }
260
+ let o = z(t, e);
261
+ for (; o && st(o) && B(o); )
262
+ o = z(o, e);
263
+ return o && S(o) && B(o) && !_(o) ? i : o || rt(t) || i;
264
+ }
265
+ const Ct = async function(t) {
266
+ const e = this.getOffsetParent || Q, i = this.getDimensions, o = await i(t.floating);
267
+ return {
268
+ reference: mt(t.reference, await e(t.floating), t.strategy),
269
+ floating: {
270
+ x: 0,
271
+ y: 0,
272
+ width: o.width,
273
+ height: o.height
274
+ }
275
+ };
276
+ };
277
+ function bt(t) {
278
+ return w(t).direction === "rtl";
279
+ }
280
+ const Lt = {
281
+ convertOffsetParentRelativeRectToViewportRelativeRect: ut,
282
+ getDocumentElement: m,
283
+ getClippingRect: yt,
284
+ getOffsetParent: Q,
285
+ getElementRects: Ct,
286
+ getClientRects: ht,
287
+ getDimensions: xt,
288
+ getScale: R,
289
+ isElement: p,
290
+ isRTL: bt
291
+ }, vt = et, Wt = tt, St = Z, Et = it, Ft = ot, Bt = (t, e, i) => {
292
+ const o = /* @__PURE__ */ new Map(), n = {
293
+ platform: Lt,
294
+ ...i
295
+ }, r = {
296
+ ...n.platform,
297
+ _c: o
298
+ };
299
+ return nt(t, e, {
300
+ ...n,
301
+ platform: r
302
+ });
303
+ };
304
+ export {
305
+ Ft as arrow,
306
+ Bt as computePosition,
307
+ St as flip,
308
+ ct as getOverflowAncestors,
309
+ vt as offset,
310
+ Lt as platform,
311
+ Wt as shift,
312
+ Et as size
313
+ };
@@ -0,0 +1,132 @@
1
+ function c() {
2
+ return typeof window < "u";
3
+ }
4
+ function a(e) {
5
+ return f(e) ? (e.nodeName || "").toLowerCase() : "#document";
6
+ }
7
+ function s(e) {
8
+ var t;
9
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
10
+ }
11
+ function b(e) {
12
+ var t;
13
+ return (t = (f(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
14
+ }
15
+ function f(e) {
16
+ return c() ? e instanceof Node || e instanceof s(e).Node : !1;
17
+ }
18
+ function d(e) {
19
+ return c() ? e instanceof Element || e instanceof s(e).Element : !1;
20
+ }
21
+ function m(e) {
22
+ return c() ? e instanceof HTMLElement || e instanceof s(e).HTMLElement : !1;
23
+ }
24
+ function u(e) {
25
+ return !c() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof s(e).ShadowRoot;
26
+ }
27
+ const g = /* @__PURE__ */ new Set(["inline", "contents"]);
28
+ function p(e) {
29
+ const {
30
+ overflow: t,
31
+ overflowX: n,
32
+ overflowY: o,
33
+ display: r
34
+ } = y(e);
35
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !g.has(r);
36
+ }
37
+ const N = /* @__PURE__ */ new Set(["table", "td", "th"]);
38
+ function _(e) {
39
+ return N.has(a(e));
40
+ }
41
+ const v = [":popover-open", ":modal"];
42
+ function E(e) {
43
+ return v.some((t) => {
44
+ try {
45
+ return e.matches(t);
46
+ } catch {
47
+ return !1;
48
+ }
49
+ });
50
+ }
51
+ const T = ["transform", "translate", "scale", "rotate", "perspective"], L = ["transform", "translate", "scale", "rotate", "perspective", "filter"], D = ["paint", "layout", "strict", "content"];
52
+ function C(e) {
53
+ const t = k(), n = d(e) ? y(e) : e;
54
+ return T.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || L.some((o) => (n.willChange || "").includes(o)) || D.some((o) => (n.contain || "").includes(o));
55
+ }
56
+ function A(e) {
57
+ let t = l(e);
58
+ for (; m(t) && !w(t); ) {
59
+ if (C(t))
60
+ return t;
61
+ if (E(t))
62
+ return null;
63
+ t = l(t);
64
+ }
65
+ return null;
66
+ }
67
+ function k() {
68
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
69
+ }
70
+ const V = /* @__PURE__ */ new Set(["html", "body", "#document"]);
71
+ function w(e) {
72
+ return V.has(a(e));
73
+ }
74
+ function y(e) {
75
+ return s(e).getComputedStyle(e);
76
+ }
77
+ function B(e) {
78
+ return d(e) ? {
79
+ scrollLeft: e.scrollLeft,
80
+ scrollTop: e.scrollTop
81
+ } : {
82
+ scrollLeft: e.scrollX,
83
+ scrollTop: e.scrollY
84
+ };
85
+ }
86
+ function l(e) {
87
+ if (a(e) === "html")
88
+ return e;
89
+ const t = (
90
+ // Step into the shadow DOM of the parent of a slotted node.
91
+ e.assignedSlot || // DOM Element detected.
92
+ e.parentNode || // ShadowRoot detected.
93
+ u(e) && e.host || // Fallback.
94
+ b(e)
95
+ );
96
+ return u(t) ? t.host : t;
97
+ }
98
+ function h(e) {
99
+ const t = l(e);
100
+ return w(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : m(t) && p(t) ? t : h(t);
101
+ }
102
+ function O(e, t, n) {
103
+ var o;
104
+ t === void 0 && (t = []);
105
+ const r = h(e), S = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = s(r);
106
+ return S ? (R(i), t.concat(i, i.visualViewport || [], p(r) ? r : [], [])) : t.concat(r, O(r, []));
107
+ }
108
+ function R(e) {
109
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
110
+ }
111
+ export {
112
+ y as getComputedStyle,
113
+ A as getContainingBlock,
114
+ b as getDocumentElement,
115
+ R as getFrameElement,
116
+ h as getNearestOverflowAncestor,
117
+ a as getNodeName,
118
+ B as getNodeScroll,
119
+ O as getOverflowAncestors,
120
+ l as getParentNode,
121
+ s as getWindow,
122
+ C as isContainingBlock,
123
+ d as isElement,
124
+ m as isHTMLElement,
125
+ w as isLastTraversableNode,
126
+ f as isNode,
127
+ p as isOverflowElement,
128
+ u as isShadowRoot,
129
+ _ as isTableElement,
130
+ E as isTopLayer,
131
+ k as isWebKit
132
+ };
@@ -0,0 +1,128 @@
1
+ const m = Math.min, p = Math.max, j = Math.round, C = (t) => ({
2
+ x: t,
3
+ y: t
4
+ }), h = {
5
+ left: "right",
6
+ right: "left",
7
+ bottom: "top",
8
+ top: "bottom"
9
+ }, x = {
10
+ start: "end",
11
+ end: "start"
12
+ };
13
+ function L(t, e, n) {
14
+ return p(t, m(e, n));
15
+ }
16
+ function E(t, e) {
17
+ return typeof t == "function" ? t(e) : t;
18
+ }
19
+ function g(t) {
20
+ return t.split("-")[0];
21
+ }
22
+ function a(t) {
23
+ return t.split("-")[1];
24
+ }
25
+ function b(t) {
26
+ return t === "x" ? "y" : "x";
27
+ }
28
+ function d(t) {
29
+ return t === "y" ? "height" : "width";
30
+ }
31
+ const A = /* @__PURE__ */ new Set(["top", "bottom"]);
32
+ function P(t) {
33
+ return A.has(g(t)) ? "y" : "x";
34
+ }
35
+ function y(t) {
36
+ return b(P(t));
37
+ }
38
+ function R(t, e, n) {
39
+ n === void 0 && (n = !1);
40
+ const r = a(t), i = y(t), o = d(i);
41
+ let c = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
42
+ return e.reference[o] > e.floating[o] && (c = u(c)), [c, u(c)];
43
+ }
44
+ function T(t) {
45
+ const e = u(t);
46
+ return [s(t), e, s(e)];
47
+ }
48
+ function s(t) {
49
+ return t.replace(/start|end/g, (e) => x[e]);
50
+ }
51
+ const f = ["left", "right"], l = ["right", "left"], O = ["top", "bottom"], S = ["bottom", "top"];
52
+ function M(t, e, n) {
53
+ switch (t) {
54
+ case "top":
55
+ case "bottom":
56
+ return n ? e ? l : f : e ? f : l;
57
+ case "left":
58
+ case "right":
59
+ return e ? O : S;
60
+ default:
61
+ return [];
62
+ }
63
+ }
64
+ function k(t, e, n, r) {
65
+ const i = a(t);
66
+ let o = M(g(t), n === "start", r);
67
+ return i && (o = o.map((c) => c + "-" + i), e && (o = o.concat(o.map(s)))), o;
68
+ }
69
+ function u(t) {
70
+ return t.replace(/left|right|bottom|top/g, (e) => h[e]);
71
+ }
72
+ function w(t) {
73
+ return {
74
+ top: 0,
75
+ right: 0,
76
+ bottom: 0,
77
+ left: 0,
78
+ ...t
79
+ };
80
+ }
81
+ function q(t) {
82
+ return typeof t != "number" ? w(t) : {
83
+ top: t,
84
+ right: t,
85
+ bottom: t,
86
+ left: t
87
+ };
88
+ }
89
+ function z(t) {
90
+ const {
91
+ x: e,
92
+ y: n,
93
+ width: r,
94
+ height: i
95
+ } = t;
96
+ return {
97
+ width: r,
98
+ height: i,
99
+ top: n,
100
+ left: e,
101
+ right: e + r,
102
+ bottom: n + i,
103
+ x: e,
104
+ y: n
105
+ };
106
+ }
107
+ export {
108
+ L as clamp,
109
+ C as createCoords,
110
+ E as evaluate,
111
+ w as expandPaddingObject,
112
+ a as getAlignment,
113
+ y as getAlignmentAxis,
114
+ R as getAlignmentSides,
115
+ d as getAxisLength,
116
+ T as getExpandedPlacements,
117
+ s as getOppositeAlignmentPlacement,
118
+ b as getOppositeAxis,
119
+ k as getOppositeAxisPlacements,
120
+ u as getOppositePlacement,
121
+ q as getPaddingObject,
122
+ g as getSide,
123
+ P as getSideAxis,
124
+ p as max,
125
+ m as min,
126
+ z as rectToClientRect,
127
+ j as round
128
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ let r = class extends Event {
7
+ constructor(t, e, s, c) {
8
+ super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e, this.callback = s, this.subscribe = c ?? !1;
9
+ }
10
+ };
11
+ export {
12
+ r as ContextRequestEvent
13
+ };
@@ -0,0 +1,29 @@
1
+ import { ContextRequestEvent as b } from "../context-request-event.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2021 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ class r {
8
+ constructor(e, t, h, c) {
9
+ if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (s, i) => {
10
+ this.unsubscribe && (this.unsubscribe !== i && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = s, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(s, i)), this.unsubscribe = i;
11
+ }, this.host = e, t.context !== void 0) {
12
+ const s = t;
13
+ this.context = s.context, this.callback = s.callback, this.subscribe = s.subscribe ?? !1;
14
+ } else this.context = t, this.callback = h, this.subscribe = c ?? !1;
15
+ this.host.addController(this);
16
+ }
17
+ hostConnected() {
18
+ this.dispatchRequest();
19
+ }
20
+ hostDisconnected() {
21
+ this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
22
+ }
23
+ dispatchRequest() {
24
+ this.host.dispatchEvent(new b(this.context, this.host, this.t, this.subscribe));
25
+ }
26
+ }
27
+ export {
28
+ r as ContextConsumer
29
+ };
@@ -0,0 +1,37 @@
1
+ import { ContextRequestEvent as d } from "../context-request-event.js";
2
+ import { ValueNotifier as x } from "../value-notifier.js";
3
+ /**
4
+ * @license
5
+ * Copyright 2021 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */
8
+ class u extends Event {
9
+ constructor(o, e) {
10
+ super("context-provider", { bubbles: !0, composed: !0 }), this.context = o, this.contextTarget = e;
11
+ }
12
+ }
13
+ class l extends x {
14
+ constructor(o, e, a) {
15
+ var i, r;
16
+ super(e.context !== void 0 ? e.initialValue : a), this.onContextRequest = (t) => {
17
+ if (t.context !== this.context) return;
18
+ const s = t.contextTarget ?? t.composedPath()[0];
19
+ s !== this.host && (t.stopPropagation(), this.addCallback(t.callback, s, t.subscribe));
20
+ }, this.onProviderRequest = (t) => {
21
+ if (t.context !== this.context || (t.contextTarget ?? t.composedPath()[0]) === this.host) return;
22
+ const s = /* @__PURE__ */ new Set();
23
+ for (const [n, { consumerHost: c }] of this.subscriptions) s.has(n) || (s.add(n), c.dispatchEvent(new d(this.context, c, n, !0)));
24
+ t.stopPropagation();
25
+ }, this.host = o, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (r = (i = this.host).addController) == null || r.call(i, this);
26
+ }
27
+ attachListeners() {
28
+ this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
29
+ }
30
+ hostConnected() {
31
+ this.host.dispatchEvent(new u(this.context, this.host));
32
+ }
33
+ }
34
+ export {
35
+ l as ContextProvider,
36
+ u as ContextProviderEvent
37
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ function e(t) {
7
+ return t;
8
+ }
9
+ export {
10
+ e as createContext
11
+ };
@@ -0,0 +1,22 @@
1
+ import { ContextConsumer as n } from "../controllers/context-consumer.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2022 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ function a({ context: e, subscribe: s }) {
8
+ return (i, c) => {
9
+ typeof c == "object" ? c.addInitializer((function() {
10
+ new n(this, { context: e, callback: (t) => {
11
+ i.set.call(this, t);
12
+ }, subscribe: s });
13
+ })) : i.constructor.addInitializer(((t) => {
14
+ new n(t, { context: e, callback: (o) => {
15
+ t[c] = o;
16
+ }, subscribe: s });
17
+ }));
18
+ };
19
+ }
20
+ export {
21
+ a as consume
22
+ };