@cupra/ui-react 1.0.0-canary.15 → 1.0.0-canary.17

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 (120) hide show
  1. package/README.md +9 -3
  2. package/dist/components/Accordion/Accordion.d.ts +1 -1
  3. package/dist/components/Accordion/Accordion.js +8 -0
  4. package/dist/components/Avatar/Avatar.d.ts +1 -1
  5. package/dist/components/Avatar/Avatar.js +12 -0
  6. package/dist/components/Bullets/Bullets.d.ts +1 -1
  7. package/dist/components/Bullets/Bullets.js +6 -0
  8. package/dist/components/Button/Button.d.ts +1 -1
  9. package/dist/components/Button/Button.js +21 -0
  10. package/dist/components/CarouselIndicator/CarouselIndicator.d.ts +1 -1
  11. package/dist/components/CarouselIndicator/CarouselIndicator.js +9 -0
  12. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  13. package/dist/components/Checkbox/Checkbox.js +12 -0
  14. package/dist/components/Chip/Chip.d.ts +1 -1
  15. package/dist/components/Chip/Chip.js +9 -0
  16. package/dist/components/Chips/Chips.d.ts +1 -1
  17. package/dist/components/Chips/Chips.js +14 -0
  18. package/dist/components/Currency/Currency.d.ts +1 -1
  19. package/dist/components/Currency/Currency.js +9 -0
  20. package/dist/components/Dialog/Dialog.d.ts +1 -1
  21. package/dist/components/Dialog/Dialog.js +16 -0
  22. package/dist/components/DialogBody/DialogBody.d.ts +1 -1
  23. package/dist/components/DialogBody/DialogBody.js +9 -0
  24. package/dist/components/DialogFooter/DialogFooter.d.ts +1 -1
  25. package/dist/components/DialogFooter/DialogFooter.js +9 -0
  26. package/dist/components/DialogHeader/DialogHeader.d.ts +1 -1
  27. package/dist/components/DialogHeader/DialogHeader.js +9 -0
  28. package/dist/components/Divider/Divider.d.ts +1 -1
  29. package/dist/components/Divider/Divider.js +8 -0
  30. package/dist/components/Hyperlink/Hyperlink.d.ts +1 -1
  31. package/dist/components/Hyperlink/Hyperlink.js +12 -0
  32. package/dist/components/Icon/Icon.d.ts +1 -1
  33. package/dist/components/Icon/Icon.js +9 -0
  34. package/dist/components/IconButton/IconButton.d.ts +1 -1
  35. package/dist/components/IconButton/IconButton.js +20 -0
  36. package/dist/components/Input/Input.d.ts +1 -1
  37. package/dist/components/Input/Input.js +14 -0
  38. package/dist/components/InteractiveCard/InteractiveCard.d.ts +1 -1
  39. package/dist/components/InteractiveCard/InteractiveCard.js +27 -0
  40. package/dist/components/LinkButton/LinkButton.d.ts +1 -1
  41. package/dist/components/LinkButton/LinkButton.js +12 -0
  42. package/dist/components/Loader/Loader.d.ts +4 -1
  43. package/dist/components/Loader/Loader.js +27 -0
  44. package/dist/components/Logo/Logo.d.ts +1 -1
  45. package/dist/components/Logo/Logo.js +9 -0
  46. package/dist/components/MapPin/MapPin.d.ts +1 -1
  47. package/dist/components/MapPin/MapPin.js +12 -0
  48. package/dist/components/Modal/Modal.d.ts +1 -1
  49. package/dist/components/Modal/Modal.js +50 -0
  50. package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
  51. package/dist/components/PasswordInput/PasswordInput.js +40 -0
  52. package/dist/components/PickerItem/PickerItem.d.ts +1 -1
  53. package/dist/components/PickerItem/PickerItem.js +21 -0
  54. package/dist/components/Radio/Radio.d.ts +1 -1
  55. package/dist/components/Radio/Radio.js +15 -0
  56. package/dist/components/RadioButton/RadioButton.d.ts +1 -1
  57. package/dist/components/RadioButton/RadioButton.js +10 -0
  58. package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
  59. package/dist/components/RadioButtonGroup/RadioButtonGroup.js +10 -0
  60. package/dist/components/Search/Search.d.ts +1 -1
  61. package/dist/components/Search/Search.js +8 -0
  62. package/dist/components/SearchInput/SearchInput.d.ts +1 -1
  63. package/dist/components/SearchInput/SearchInput.js +47 -0
  64. package/dist/components/SecondaryNavigation/SecondaryNavigation.d.ts +1 -1
  65. package/dist/components/SecondaryNavigation/SecondaryNavigation.js +17 -0
  66. package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -1
  67. package/dist/components/SegmentedControl/SegmentedControl.js +12 -0
  68. package/dist/components/Select/Select.d.ts +1 -1
  69. package/dist/components/Select/Select.js +6 -0
  70. package/dist/components/Selection/Selection.d.ts +1 -1
  71. package/dist/components/Selection/Selection.js +9 -0
  72. package/dist/components/SidebarNavigation/SidebarNavigation.d.ts +1 -1
  73. package/dist/components/SidebarNavigation/SidebarNavigation.js +15 -0
  74. package/dist/components/Slider/Slider.d.ts +2 -2
  75. package/dist/components/Slider/Slider.js +16 -0
  76. package/dist/components/StaticBox/StaticBox.d.ts +1 -1
  77. package/dist/components/StaticBox/StaticBox.js +21 -0
  78. package/dist/components/Stepper/Stepper.d.ts +1 -1
  79. package/dist/components/Stepper/Stepper.js +6 -0
  80. package/dist/components/Tabs/Tabs.d.ts +1 -1
  81. package/dist/components/Tabs/Tabs.js +20 -0
  82. package/dist/components/Tag/Tag.d.ts +1 -1
  83. package/dist/components/Tag/Tag.js +12 -0
  84. package/dist/components/Text/Text.d.ts +1 -1
  85. package/dist/components/Text/Text.js +9 -0
  86. package/dist/components/TextInput/TextInput.d.ts +1 -1
  87. package/dist/components/TextInput/TextInput.js +45 -0
  88. package/dist/components/Textarea/Textarea.d.ts +1 -1
  89. package/dist/components/Textarea/Textarea.js +58 -0
  90. package/dist/components/ThemeProvider/ThemeProvider.d.ts +1 -1
  91. package/dist/components/ThemeProvider/ThemeProvider.js +6 -0
  92. package/dist/components/Toast/Toast.d.ts +1 -1
  93. package/dist/components/Toast/Toast.js +16 -0
  94. package/dist/components/ToastMessage/ToastMessage.d.ts +1 -1
  95. package/dist/components/ToastMessage/ToastMessage.js +14 -0
  96. package/dist/components/ToggleButton/ToggleButton.d.ts +1 -1
  97. package/dist/components/ToggleButton/ToggleButton.js +12 -0
  98. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +1 -1
  99. package/dist/components/ToggleSwitch/ToggleSwitch.js +23 -0
  100. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  101. package/dist/components/Tooltip/Tooltip.js +25 -0
  102. package/dist/hooks/useBreakpoint.js +42 -0
  103. package/dist/hooks/useEventListeners.js +26 -0
  104. package/dist/hooks/useHandleEvent.js +25 -0
  105. package/dist/hooks/useResizeObserver/useResizeObserver.js +14 -0
  106. package/dist/index.d.ts +0 -2
  107. package/dist/index.js +112 -3309
  108. package/dist/node_modules/.pnpm/@emotion_is-prop-valid@1.2.2/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +10 -0
  109. package/dist/node_modules/.pnpm/@emotion_memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
  110. package/dist/node_modules/.pnpm/@emotion_unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +52 -0
  111. package/dist/node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js +572 -0
  112. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.js +12 -0
  113. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.js +49 -0
  114. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.js +131 -0
  115. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.js +187 -0
  116. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.js +27 -0
  117. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.js +147 -0
  118. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.js +56 -0
  119. package/dist/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js +18 -0
  120. package/package.json +17 -5
package/README.md CHANGED
@@ -116,7 +116,10 @@ npm install @cupra/ui-react@0.1.4-canary.2
116
116
 
117
117
  ## Usage
118
118
 
119
- Wrap your React app with the `ThemeProvider`.
119
+ Import components via subpaths. Do not import from the package index:
120
+ - @cupra/ui-react → React wrappers built on top of the Web Components (e.g. `import { Button } from '@cupra/ui-react/Button'`)
121
+
122
+ Wrap your React app with `ThemeProvider`.
120
123
  The provider requires **three props**:
121
124
 
122
125
  | Prop | Type | Required | Description |
@@ -130,7 +133,9 @@ If `loadFonts` or `loadStyles` are `false`, you must manually include `<link>` t
130
133
  ### Option A — Manual CSS and font links
131
134
 
132
135
  ```tsx
133
- import { ThemeProvider, Button, Icon } from '@cupra/ui-react';
136
+ import { ThemeProvider } from '@cupra/ui-react/ThemeProvider';
137
+ import { Button } from '@cupra/ui-react/Button';
138
+ import { Icon } from '@cupra/ui-react/Icon';
134
139
 
135
140
  export function App() {
136
141
  return (
@@ -149,7 +154,8 @@ export function App() {
149
154
  ### Option B — Provider loads assets automatically
150
155
 
151
156
  ```tsx
152
- import { ThemeProvider, Button } from '@cupra/ui-react';
157
+ import { ThemeProvider } from '@cupra/ui-react/ThemeProvider';
158
+ import { Button } from '@cupra/ui-react/Button';
153
159
 
154
160
  export function App() {
155
161
  return (
@@ -1,5 +1,5 @@
1
1
  import { DsAccordionAttrs } from '@cupra/ui-kit/react/types/ds-accordion';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-accordion';
3
3
  import { type ReactElement } from 'react';
4
4
  type Children = JSX.Element | JSX.Element[] | string;
5
5
  interface AccordionProps extends DsAccordionAttrs {
@@ -0,0 +1,8 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-accordion";
3
+ const n = ({ children: t, ...r }) => /* @__PURE__ */ o("ds-accordion-react", { ...r, children: t }), e = ({ children: t }) => /* @__PURE__ */ o("div", { slot: "title", children: t }), c = ({ children: t }) => /* @__PURE__ */ o("div", { slot: "content", children: t });
4
+ n.Title = e;
5
+ n.Content = c;
6
+ export {
7
+ n as Accordion
8
+ };
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement, ReactNode } from 'react';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-avatar';
3
3
  import type { DsAvatarAttrs } from '@cupra/ui-kit/react/types/ds-avatar';
4
4
  export type AvatarProps = DsAvatarAttrs & {
5
5
  className?: string;
@@ -0,0 +1,12 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/utils/breakpoints";
3
+ import { isValidElement as n, cloneElement as s } from "react";
4
+ import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
5
+ import "@cupra/ui-kit/react/ds-avatar";
6
+ function E(t) {
7
+ const { className: r, onClick: e, image: o, ...a } = t, { ref: i } = c({ click: e }), l = o && n(o) ? s(o, { slot: "media", ...o.props }) : null;
8
+ return /* @__PURE__ */ m("ds-avatar-react", { ref: i, class: r, ...a, children: l });
9
+ }
10
+ export {
11
+ E as Avatar
12
+ };
@@ -1,5 +1,5 @@
1
1
  import { DsBulletsAttrs } from '@cupra/ui-kit/react/types/ds-bullets';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-bullets';
3
3
  import { type ReactElement } from 'react';
4
4
  export interface BulletsProps extends DsBulletsAttrs {
5
5
  className?: string;
@@ -0,0 +1,6 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-bullets";
3
+ const o = ({ className: t, ...r }) => /* @__PURE__ */ s("ds-bullets-react", { class: t, ...r });
4
+ export {
5
+ o as Bullets
6
+ };
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement } from 'react';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-button';
3
3
  import type { DsButtonAttrs } from '@cupra/ui-kit/react/types/ds-button';
4
4
  type ButtonProps = DsButtonAttrs & {
5
5
  className?: string;
@@ -0,0 +1,21 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/utils/breakpoints";
3
+ import "react";
4
+ import { useHandleEvent as m } from "../../hooks/useHandleEvent.js";
5
+ import "@cupra/ui-kit/react/ds-button";
6
+ function d(o) {
7
+ const { className: r, children: i, onClick: s, size: t, ...e } = o, { ref: n } = m({ click: s });
8
+ return /* @__PURE__ */ c(
9
+ "ds-button-react",
10
+ {
11
+ ref: n,
12
+ size: typeof t == "string" ? t : JSON.stringify(t),
13
+ class: r,
14
+ ...e,
15
+ children: i
16
+ }
17
+ );
18
+ }
19
+ export {
20
+ d as Button
21
+ };
@@ -1,6 +1,6 @@
1
1
  import { DsCarouselIndicatorAttrs } from '@cupra/ui-kit/react/types/ds-carousel-indicator';
2
2
  import { type ReactElement } from 'react';
3
- import '@cupra/ui-kit/react';
3
+ import '@cupra/ui-kit/react/ds-carousel-indicator';
4
4
  type CarouselIndicatorProps = DsCarouselIndicatorAttrs & {
5
5
  className?: string;
6
6
  };
@@ -0,0 +1,9 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-carousel-indicator";
3
+ function i(r) {
4
+ const { className: o, children: c, ...s } = r;
5
+ return /* @__PURE__ */ t("ds-carousel-indicator-react", { class: o, ...s });
6
+ }
7
+ export {
8
+ i as CarouselIndicator
9
+ };
@@ -1,5 +1,5 @@
1
1
  import { type ReactElement } from 'react';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-checkbox';
3
3
  import { DsCheckboxAttrs } from '@cupra/ui-kit/react/types/ds-checkbox';
4
4
  interface CheckboxProps extends DsCheckboxAttrs {
5
5
  onChange?: (event: CustomEvent) => void;
@@ -0,0 +1,12 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/utils/breakpoints";
3
+ import "react";
4
+ import { useHandleEvent as m } from "../../hooks/useHandleEvent.js";
5
+ import "@cupra/ui-kit/react/ds-checkbox";
6
+ function x({ onChange: o, children: r, ...t }) {
7
+ const { ref: e } = m({ change: o });
8
+ return /* @__PURE__ */ c("ds-checkbox-react", { ref: e, ...t, children: r });
9
+ }
10
+ export {
11
+ x as Checkbox
12
+ };
@@ -1,6 +1,6 @@
1
1
  import { DsChipAttrs } from '@cupra/ui-kit/react/types/ds-chip';
2
2
  import { type ReactElement } from 'react';
3
- import '@cupra/ui-kit/react';
3
+ import '@cupra/ui-kit/react/ds-chip';
4
4
  type ChipProps = DsChipAttrs & {
5
5
  className?: string;
6
6
  children: JSX.Element | JSX.Element[] | string;
@@ -0,0 +1,9 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-chip";
3
+ function p(r) {
4
+ const { className: o, children: s, ...t } = r;
5
+ return /* @__PURE__ */ c("ds-chip-react", { class: o, ...t, children: s });
6
+ }
7
+ export {
8
+ p as Chip
9
+ };
@@ -1,6 +1,6 @@
1
1
  import { type DsChipsAttrs } from '@cupra/ui-kit/react/types/ds-chips';
2
2
  import { type ReactElement } from 'react';
3
- import '@cupra/ui-kit/react';
3
+ import '@cupra/ui-kit/react/ds-chips';
4
4
  type ChipsProps = DsChipsAttrs & {
5
5
  className?: string;
6
6
  children: JSX.Element | JSX.Element[] | string;
@@ -0,0 +1,14 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-chips";
3
+ import "@cupra/ui-kit/react/utils/breakpoints";
4
+ import "react";
5
+ import { useHandleEvent as i } from "../../hooks/useHandleEvent.js";
6
+ function f(r) {
7
+ const { className: o, children: s, onChange: t, ...e } = r, { ref: n } = i({
8
+ "ds-chips:change": t
9
+ });
10
+ return /* @__PURE__ */ c("ds-chips-react", { ref: n, class: o, ...e, children: s });
11
+ }
12
+ export {
13
+ f as Chips
14
+ };
@@ -1,5 +1,5 @@
1
1
  import { type ReactElement } from 'react';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-currency';
3
3
  import { DsCurrencyAttrs } from '@cupra/ui-kit/react/types/ds-currency';
4
4
  type CurrencyProps = DsCurrencyAttrs & {
5
5
  className?: string;
@@ -0,0 +1,9 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-currency";
3
+ function n(r) {
4
+ const { className: c, ...o } = r;
5
+ return /* @__PURE__ */ s("ds-currency-react", { class: c, ...o });
6
+ }
7
+ export {
8
+ n as Currency
9
+ };
@@ -1,6 +1,6 @@
1
1
  import { DsDialogAttrs } from '@cupra/ui-kit/react/types/ds-dialog';
2
2
  import { type ReactNode } from 'react';
3
- import '@cupra/ui-kit/react';
3
+ import '@cupra/ui-kit/react/ds-dialog';
4
4
  type DialogProps = DsDialogAttrs & {
5
5
  className?: string;
6
6
  withPortal?: boolean;
@@ -0,0 +1,16 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-dialog";
3
+ import "@cupra/ui-kit/react/utils/breakpoints";
4
+ import "react";
5
+ import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
6
+ function g(e) {
7
+ const { className: n, children: l, onClose: s, withPortal: i, ...o } = e, { ref: a } = c({
8
+ "ds-dialog:close": s
9
+ });
10
+ if (!o.open) return null;
11
+ const r = /* @__PURE__ */ t("ds-dialog-react", { ref: a, class: n, ...o, children: l });
12
+ return i ? /* @__PURE__ */ t("ds-portal-react", { style: { display: "none" }, children: r }) : r;
13
+ }
14
+ export {
15
+ g as Dialog
16
+ };
@@ -1,6 +1,6 @@
1
1
  import { DsDialogBodyAttrs } from '@cupra/ui-kit/react/types/ds-dialog-body';
2
2
  import { type ReactElement } from 'react';
3
- import '@cupra/ui-kit/react';
3
+ import '@cupra/ui-kit/react/ds-dialog-body';
4
4
  type DialogBodyProps = DsDialogBodyAttrs & {
5
5
  className?: string;
6
6
  children?: JSX.Element | JSX.Element[] | string;
@@ -0,0 +1,9 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-dialog-body";
3
+ function i(o) {
4
+ const { className: r, children: s, ...t } = o;
5
+ return /* @__PURE__ */ a("ds-dialog-body-react", { class: r, ...t, children: s });
6
+ }
7
+ export {
8
+ i as DialogBody
9
+ };
@@ -1,6 +1,6 @@
1
1
  import { DsDialogFooterAttrs } from '@cupra/ui-kit/react/types/ds-dialog-footer';
2
2
  import { type ReactElement } from 'react';
3
- import '@cupra/ui-kit/react';
3
+ import '@cupra/ui-kit/react/ds-dialog-footer';
4
4
  type DialogFooterProps = DsDialogFooterAttrs & {
5
5
  className?: string;
6
6
  children?: JSX.Element | JSX.Element[] | string;
@@ -0,0 +1,9 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-dialog-footer";
3
+ function i(o) {
4
+ const { className: r, children: t, ...e } = o;
5
+ return /* @__PURE__ */ s("ds-dialog-footer-react", { class: r, ...e, children: t });
6
+ }
7
+ export {
8
+ i as DialogFooter
9
+ };
@@ -1,6 +1,6 @@
1
1
  import { DsDialogHeaderAttrs } from '@cupra/ui-kit/react/types/ds-dialog-header';
2
2
  import { type ReactElement } from 'react';
3
- import '@cupra/ui-kit/react';
3
+ import '@cupra/ui-kit/react/ds-dialog-header';
4
4
  type DialogHeaderProps = DsDialogHeaderAttrs & {
5
5
  className?: string;
6
6
  children?: JSX.Element | JSX.Element[] | string;
@@ -0,0 +1,9 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-dialog-header";
3
+ function i(r) {
4
+ const { className: e, children: o, ...a } = r;
5
+ return /* @__PURE__ */ s("ds-dialog-header-react", { class: e, ...a, children: o });
6
+ }
7
+ export {
8
+ i as DialogHeader
9
+ };
@@ -1,6 +1,6 @@
1
1
  import { DsDividerAttrs } from '@cupra/ui-kit/react/types/ds-divider';
2
2
  import { type ReactElement } from 'react';
3
- import '@cupra/ui-kit/react';
3
+ import '@cupra/ui-kit/react/ds-divider';
4
4
  export interface DividerProps extends DsDividerAttrs {
5
5
  className?: string;
6
6
  }
@@ -0,0 +1,8 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-divider";
3
+ function d({ className: r, ...i }) {
4
+ return /* @__PURE__ */ t("ds-divider-react", { class: r, ...i });
5
+ }
6
+ export {
7
+ d as Divider
8
+ };
@@ -1,5 +1,5 @@
1
1
  import { type ReactElement } from 'react';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-hyperlink';
3
3
  import { DsHyperlinkAttrs } from '@cupra/ui-kit/react/types/ds-hyperlink';
4
4
  export type HyperlinkProps = DsHyperlinkAttrs & {
5
5
  children: JSX.Element | JSX.Element[] | string;
@@ -0,0 +1,12 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-hyperlink";
3
+ import "@cupra/ui-kit/react/utils/breakpoints";
4
+ import "react";
5
+ import { useHandleEvent as n } from "../../hooks/useHandleEvent.js";
6
+ function s({ children: r, onClick: t, ...o }) {
7
+ const { ref: e } = n({ click: t });
8
+ return /* @__PURE__ */ i("ds-hyperlink-react", { ref: e, ...o, children: r });
9
+ }
10
+ export {
11
+ s as Hyperlink
12
+ };
@@ -1,6 +1,6 @@
1
1
  import { DsIconAttrs } from '@cupra/ui-kit/react/types/ds-icon';
2
2
  import { type ReactElement } from 'react';
3
- import '@cupra/ui-kit/react';
3
+ import '@cupra/ui-kit/react/ds-icon';
4
4
  export interface IconProps extends DsIconAttrs {
5
5
  className?: string;
6
6
  }
@@ -0,0 +1,9 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-icon";
3
+ function a(o) {
4
+ const { "icon-name": n, className: c, ...r } = o;
5
+ return /* @__PURE__ */ e("ds-icon-react", { "icon-name": n, class: c, ...r });
6
+ }
7
+ export {
8
+ a as Icon
9
+ };
@@ -1,5 +1,5 @@
1
1
  import { type ReactElement } from 'react';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-icon-button';
3
3
  import { type DsIconButtonAttrs } from '@cupra/ui-kit/react/types/ds-icon-button';
4
4
  type IconButtonProps = DsIconButtonAttrs & {
5
5
  className?: string;
@@ -0,0 +1,20 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-icon-button";
3
+ import "@cupra/ui-kit/react/utils/breakpoints";
4
+ import "react";
5
+ import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
6
+ function u(o) {
7
+ const { className: r, onClick: i, size: t, ...n } = o, { ref: s } = c({ click: i });
8
+ return /* @__PURE__ */ e(
9
+ "ds-icon-button-react",
10
+ {
11
+ ref: s,
12
+ size: typeof t == "string" ? t : JSON.stringify(t),
13
+ class: r,
14
+ ...n
15
+ }
16
+ );
17
+ }
18
+ export {
19
+ u as IconButton
20
+ };
@@ -1,5 +1,5 @@
1
1
  import { DsInputAttrs } from '@cupra/ui-kit/react/types/ds-input';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-input';
3
3
  import { ChangeEvent, FormEvent, ForwardRefExoticComponent, KeyboardEvent, RefAttributes } from 'react';
4
4
  type InputProps = DsInputAttrs & {
5
5
  className?: string;
@@ -0,0 +1,14 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-input";
3
+ import { useHandleEvent as s } from "../../hooks/useHandleEvent.js";
4
+ import { forwardRef as i, useImperativeHandle as u } from "react";
5
+ const c = i(
6
+ ({ className: e, onInput: t, onKeyDown: n, onChange: o, ...p }, a) => {
7
+ const { ref: r } = s({ input: t, keydown: n, change: o });
8
+ return u(a, () => r.current, []), /* @__PURE__ */ m("ds-input-react", { ref: r, class: e, ...p });
9
+ }
10
+ );
11
+ c.displayName = "Input";
12
+ export {
13
+ c as Input
14
+ };
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement } from 'react';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-interactive-card';
3
3
  import type { DsInteractiveCardAttrs } from '@cupra/ui-kit/react/types/ds-interactive-card';
4
4
  type Children = JSX.Element | JSX.Element[] | string;
5
5
  type InteractiveCardProps = DsInteractiveCardAttrs & {
@@ -0,0 +1,27 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/utils/breakpoints";
3
+ import "react";
4
+ import { useHandleEvent as u } from "../../hooks/useHandleEvent.js";
5
+ import "@cupra/ui-kit/react/ds-interactive-card";
6
+ function e(t) {
7
+ const { className: d, children: v, onClick: m, ...C } = t, { ref: p } = u({ click: m });
8
+ return /* @__PURE__ */ r("ds-interactive-card-react", { ref: p, class: d, ...C, children: v });
9
+ }
10
+ const a = ({ children: t }) => /* @__PURE__ */ r("div", { slot: "title", children: t }), i = ({ children: t }) => /* @__PURE__ */ r("div", { slot: "subtitle", children: t }), n = ({ children: t }) => /* @__PURE__ */ r("div", { slot: "meta", children: t }), o = ({ children: t }) => /* @__PURE__ */ r("div", { slot: "content", children: t }), l = ({ children: t }) => /* @__PURE__ */ r("div", { slot: "cta", children: t }), s = ({ children: t }) => /* @__PURE__ */ r("div", { slot: "error-title", children: t }), c = ({ children: t }) => /* @__PURE__ */ r("div", { slot: "error-text", children: t });
11
+ e.Title = a;
12
+ e.Subtitle = i;
13
+ e.Meta = n;
14
+ e.Content = o;
15
+ e.Cta = l;
16
+ e.ErrorTitle = s;
17
+ e.ErrorText = c;
18
+ a.displayName = "InteractiveCard.Title";
19
+ i.displayName = "InteractiveCard.Subtitle";
20
+ n.displayName = "InteractiveCard.Meta";
21
+ o.displayName = "InteractiveCard.Content";
22
+ l.displayName = "InteractiveCard.Cta";
23
+ s.displayName = "InteractiveCard.ErrorTitle";
24
+ c.displayName = "InteractiveCard.ErrorText";
25
+ export {
26
+ e as InteractiveCard
27
+ };
@@ -1,5 +1,5 @@
1
1
  import { type ReactElement } from 'react';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-link-button';
3
3
  import { DsLinkButtonAttrs } from '@cupra/ui-kit/react/types/ds-link-button';
4
4
  type LinkButtonProps = DsLinkButtonAttrs & {
5
5
  children: JSX.Element | JSX.Element[] | string;
@@ -0,0 +1,12 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-link-button";
3
+ import "@cupra/ui-kit/react/utils/breakpoints";
4
+ import "react";
5
+ import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
6
+ function s({ children: t, onClick: o, ...r }) {
7
+ const { ref: n } = e({ click: o });
8
+ return /* @__PURE__ */ i("ds-link-button-react", { ref: n, ...r, children: t });
9
+ }
10
+ export {
11
+ s as LinkButton
12
+ };
@@ -1,5 +1,8 @@
1
1
  import { type ReactElement } from 'react';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-loader-bar';
3
+ import '@cupra/ui-kit/react/ds-loader-dots';
4
+ import '@cupra/ui-kit/react/ds-loader-logo';
5
+ import '@cupra/ui-kit/react/ds-loader-spinner';
3
6
  import { DsLoaderBarsAttrs } from '@cupra/ui-kit/react/types/ds-loader-bar';
4
7
  import { DsLoaderDotsAttrs } from '@cupra/ui-kit/react/types/ds-loader-dots';
5
8
  import { DsLoaderLogoAttrs } from '@cupra/ui-kit/react/types/ds-loader-logo';
@@ -0,0 +1,27 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-loader-bar";
3
+ import "@cupra/ui-kit/react/ds-loader-dots";
4
+ import "@cupra/ui-kit/react/ds-loader-logo";
5
+ import "@cupra/ui-kit/react/ds-loader-spinner";
6
+ function t(r) {
7
+ return /* @__PURE__ */ o("ds-loader-logo-react", { ...r });
8
+ }
9
+ function e(r) {
10
+ return /* @__PURE__ */ o("ds-loader-bar-react", { ...r });
11
+ }
12
+ function n(r) {
13
+ return /* @__PURE__ */ o("ds-loader-dots-react", { ...r });
14
+ }
15
+ function d(r) {
16
+ return /* @__PURE__ */ o("ds-loader-spinner-react", { ...r, children: r.text && /* @__PURE__ */ o("div", { slot: "text", children: r.text }) });
17
+ }
18
+ const u = {
19
+ Logo: t,
20
+ Bar: e,
21
+ Dots: n,
22
+ Spinner: d
23
+ };
24
+ export {
25
+ u as Loader,
26
+ t as LoaderLogo
27
+ };
@@ -1,6 +1,6 @@
1
1
  import { DsLogoAttrs } from '@cupra/ui-kit/react/types/ds-logo';
2
2
  import { type ReactElement } from 'react';
3
- import '@cupra/ui-kit/react';
3
+ import '@cupra/ui-kit/react/ds-logo';
4
4
  type LogoProps = DsLogoAttrs & {
5
5
  className?: string;
6
6
  };
@@ -0,0 +1,9 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-logo";
3
+ function a(o) {
4
+ const { className: r, children: c, ...s } = o;
5
+ return /* @__PURE__ */ t("ds-logo-react", { class: r, ...s });
6
+ }
7
+ export {
8
+ a as Logo
9
+ };
@@ -1,5 +1,5 @@
1
1
  import { type ReactElement } from 'react';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-map-pin';
3
3
  import { type DsMapPinAttrs } from '@cupra/ui-kit/react/types/ds-map-pin';
4
4
  type MapPinProps = DsMapPinAttrs & {
5
5
  onChange?: (event: CustomEvent) => void;
@@ -0,0 +1,12 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/utils/breakpoints";
3
+ import "react";
4
+ import { useHandleEvent as p } from "../../hooks/useHandleEvent.js";
5
+ import "@cupra/ui-kit/react/ds-map-pin";
6
+ function f({ onChange: r, ...t }) {
7
+ const { ref: o } = p({ change: r });
8
+ return /* @__PURE__ */ n("ds-map-pin-react", { ref: o, ...t });
9
+ }
10
+ export {
11
+ f as MapPin
12
+ };
@@ -1,5 +1,5 @@
1
1
  import { type ReactElement } from 'react';
2
- import '@cupra/ui-kit/react';
2
+ import '@cupra/ui-kit/react/ds-modal';
3
3
  import { DsModalAttrs } from '@cupra/ui-kit/react/types/ds-modal';
4
4
  type Children = JSX.Element | JSX.Element[] | string;
5
5
  interface ModalProps extends DsModalAttrs {
@@ -0,0 +1,50 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/utils/breakpoints";
3
+ import "react";
4
+ import { useHandleEvent as f } from "../../hooks/useHandleEvent.js";
5
+ import p from "../../node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js";
6
+ import "@cupra/ui-kit/react/ds-modal";
7
+ function e() {
8
+ }
9
+ const C = p.div`
10
+ margin: 0;
11
+ width: 100%;
12
+ height: 100%;
13
+ position: absolute;
14
+ top: 50%;
15
+ left: 50%;
16
+ transform: translate(-50%, -50%);
17
+ `;
18
+ function l(t) {
19
+ const {
20
+ children: o,
21
+ onClickCloseButton: i = e,
22
+ onClickConfirmButton: s = e,
23
+ onClickCancelButton: u = e,
24
+ className: a,
25
+ withPortal: m,
26
+ ...r
27
+ } = t, { ref: d } = f({
28
+ "click-close-button": i,
29
+ "click-confirm-button": s,
30
+ "click-cancel-button": u
31
+ });
32
+ if (!r.open) return null;
33
+ const c = /* @__PURE__ */ n("ds-modal-react", { ref: d, class: a, ...r, children: o });
34
+ return m ? /* @__PURE__ */ n("ds-portal-react", { style: { display: "none" }, children: c }) : c;
35
+ }
36
+ function h({ children: t }) {
37
+ return /* @__PURE__ */ n("div", { slot: "title", children: t });
38
+ }
39
+ function k({ className: t = "", children: o }) {
40
+ return /* @__PURE__ */ n("div", { slot: "content", className: `ds-scroll ${t}`.trim(), children: o });
41
+ }
42
+ function b({ children: t }) {
43
+ return /* @__PURE__ */ n(C, { slot: "content", children: t });
44
+ }
45
+ l.Title = h;
46
+ l.Content = k;
47
+ l.FullScreenContent = b;
48
+ export {
49
+ l as Modal
50
+ };
@@ -1,6 +1,6 @@
1
1
  import { DsPasswordInputAttrs } from '@cupra/ui-kit/react/types/ds-password-input';
2
2
  import { type ReactElement } from 'react';
3
- import '@cupra/ui-kit/react';
3
+ import '@cupra/ui-kit/react/ds-password-input';
4
4
  type PasswordInputProps = DsPasswordInputAttrs & {
5
5
  className?: string;
6
6
  onChange?: (event: typeof InputEvent) => void;