@cupra/ui-react 1.0.0-canary.9 → 1.0.1-canary.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 (120) hide show
  1. package/README.md +11 -5
  2. package/THIRD_PARTY_LICENSES.MD +0 -46
  3. package/dist/components/Accordion/Accordion.d.ts +1 -1
  4. package/dist/components/Accordion/Accordion.js +1 -1
  5. package/dist/components/Avatar/Avatar.d.ts +1 -1
  6. package/dist/components/Avatar/Avatar.js +8 -7
  7. package/dist/components/Badge/Badge.d.ts +7 -0
  8. package/dist/components/Badge/Badge.js +8 -0
  9. package/dist/components/Badge/stories/CupraDiagonal.stories.d.ts +8 -0
  10. package/dist/components/Bullets/Bullets.d.ts +1 -1
  11. package/dist/components/Bullets/Bullets.js +1 -1
  12. package/dist/components/Button/Button.d.ts +1 -1
  13. package/dist/components/Button/Button.js +7 -6
  14. package/dist/components/CarouselIndicator/CarouselIndicator.d.ts +1 -1
  15. package/dist/components/CarouselIndicator/CarouselIndicator.js +1 -1
  16. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  17. package/dist/components/Checkbox/Checkbox.js +7 -6
  18. package/dist/components/Chip/Chip.d.ts +1 -1
  19. package/dist/components/Chip/Chip.js +1 -1
  20. package/dist/components/Chips/Chips.d.ts +1 -1
  21. package/dist/components/Chips/Chips.js +7 -6
  22. package/dist/components/Currency/Currency.d.ts +1 -1
  23. package/dist/components/Currency/Currency.js +1 -1
  24. package/dist/components/Dialog/Dialog.d.ts +1 -1
  25. package/dist/components/Dialog/Dialog.js +10 -10
  26. package/dist/components/DialogBody/DialogBody.d.ts +1 -1
  27. package/dist/components/DialogBody/DialogBody.js +1 -1
  28. package/dist/components/DialogFooter/DialogFooter.d.ts +1 -1
  29. package/dist/components/DialogFooter/DialogFooter.js +1 -1
  30. package/dist/components/DialogHeader/DialogHeader.d.ts +1 -1
  31. package/dist/components/DialogHeader/DialogHeader.js +1 -1
  32. package/dist/components/Divider/Divider.d.ts +1 -1
  33. package/dist/components/Divider/Divider.js +1 -1
  34. package/dist/components/Hyperlink/Hyperlink.d.ts +1 -1
  35. package/dist/components/Hyperlink/Hyperlink.js +6 -5
  36. package/dist/components/Icon/Icon.d.ts +1 -1
  37. package/dist/components/Icon/Icon.js +1 -1
  38. package/dist/components/IconButton/IconButton.d.ts +2 -3
  39. package/dist/components/IconButton/IconButton.js +7 -6
  40. package/dist/components/Input/Input.d.ts +1 -1
  41. package/dist/components/Input/Input.js +1 -1
  42. package/dist/components/InteractiveCard/InteractiveCard.d.ts +1 -1
  43. package/dist/components/InteractiveCard/InteractiveCard.js +5 -4
  44. package/dist/components/LinkButton/LinkButton.d.ts +1 -1
  45. package/dist/components/LinkButton/LinkButton.js +4 -3
  46. package/dist/components/Loader/Loader.d.ts +4 -1
  47. package/dist/components/Loader/Loader.js +16 -13
  48. package/dist/components/Logo/Logo.d.ts +1 -1
  49. package/dist/components/Logo/Logo.js +1 -1
  50. package/dist/components/MainTitle/MainTitle.d.ts +17 -0
  51. package/dist/components/MainTitle/MainTitle.js +19 -0
  52. package/dist/components/MainTitle/stories/CupraDiagonal.stories.d.ts +9 -0
  53. package/dist/components/MapPin/MapPin.d.ts +1 -1
  54. package/dist/components/MapPin/MapPin.js +8 -7
  55. package/dist/components/Modal/Modal.d.ts +1 -1
  56. package/dist/components/Modal/Modal.js +15 -13
  57. package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
  58. package/dist/components/PasswordInput/PasswordInput.js +18 -17
  59. package/dist/components/PickerItem/PickerItem.d.ts +1 -1
  60. package/dist/components/PickerItem/PickerItem.js +1 -1
  61. package/dist/components/Radio/Radio.d.ts +1 -1
  62. package/dist/components/Radio/Radio.js +7 -6
  63. package/dist/components/RadioButton/RadioButton.d.ts +1 -1
  64. package/dist/components/RadioButton/RadioButton.js +1 -1
  65. package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
  66. package/dist/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  67. package/dist/components/Rating/Rating.d.ts +8 -0
  68. package/dist/components/Rating/Rating.js +9 -0
  69. package/dist/components/Rating/stories/CupraDiagonal.stories.d.ts +10 -0
  70. package/dist/components/Search/Search.d.ts +1 -1
  71. package/dist/components/Search/Search.js +1 -1
  72. package/dist/components/SearchInput/SearchInput.d.ts +1 -1
  73. package/dist/components/SearchInput/SearchInput.js +8 -7
  74. package/dist/components/SecondaryNavigation/SecondaryNavigation.d.ts +6 -5
  75. package/dist/components/SecondaryNavigation/SecondaryNavigation.js +11 -10
  76. package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -1
  77. package/dist/components/SegmentedControl/SegmentedControl.js +8 -7
  78. package/dist/components/Select/Select.d.ts +1 -1
  79. package/dist/components/Select/Select.js +1 -1
  80. package/dist/components/Selection/Selection.d.ts +1 -1
  81. package/dist/components/Selection/Selection.js +1 -1
  82. package/dist/components/SidebarNavigation/SidebarNavigation.d.ts +1 -1
  83. package/dist/components/SidebarNavigation/SidebarNavigation.js +1 -1
  84. package/dist/components/Slider/Slider.d.ts +2 -2
  85. package/dist/components/Slider/Slider.js +1 -1
  86. package/dist/components/StaticBox/StaticBox.d.ts +1 -1
  87. package/dist/components/StaticBox/StaticBox.js +7 -6
  88. package/dist/components/Stepper/Stepper.d.ts +1 -1
  89. package/dist/components/Stepper/Stepper.js +1 -1
  90. package/dist/components/Tabs/Tabs.d.ts +1 -1
  91. package/dist/components/Tabs/Tabs.js +11 -10
  92. package/dist/components/Tag/Tag.d.ts +1 -1
  93. package/dist/components/Tag/Tag.js +8 -7
  94. package/dist/components/Text/Text.d.ts +1 -1
  95. package/dist/components/Text/Text.js +1 -1
  96. package/dist/components/TextInput/TextInput.d.ts +1 -1
  97. package/dist/components/TextInput/TextInput.js +15 -14
  98. package/dist/components/Textarea/Textarea.d.ts +1 -1
  99. package/dist/components/Textarea/Textarea.js +4 -3
  100. package/dist/components/ThemeProvider/ThemeProvider.d.ts +1 -1
  101. package/dist/components/ThemeProvider/ThemeProvider.js +1 -1
  102. package/dist/components/Toast/Toast.d.ts +1 -1
  103. package/dist/components/Toast/Toast.js +1 -1
  104. package/dist/components/ToastMessage/ToastMessage.d.ts +1 -1
  105. package/dist/components/ToastMessage/ToastMessage.js +7 -6
  106. package/dist/components/ToggleButton/ToggleButton.d.ts +1 -1
  107. package/dist/components/ToggleButton/ToggleButton.js +4 -3
  108. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +1 -1
  109. package/dist/components/ToggleSwitch/ToggleSwitch.js +9 -8
  110. package/dist/components/Tooltip/Tooltip.d.ts +30 -10
  111. package/dist/components/Tooltip/Tooltip.js +13 -22
  112. package/dist/components/Tooltip/stories/CupraDiagonal.stories.d.ts +5 -0
  113. package/dist/components/index.d.ts +3 -0
  114. package/dist/hooks/useBreakpoint.js +13 -13
  115. package/dist/hooks/useHandleEvent.js +16 -16
  116. package/dist/index.js +109 -103
  117. package/package.json +18 -6
  118. package/dist/packages/ui-kit/dist-react/index.js +0 -9226
  119. package/dist/packages/ui-kit/dist-react/utils/breakpoints.js +0 -11
  120. package/dist/packages/ui-kit/dist-react/utils/debounce.js +0 -11
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,14 +133,16 @@ 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 (
137
142
  <>
138
143
  <link rel="preload" as="style" href="https://ds-assets.cupra.com/[version]/styles/cupra/theme.css" />
139
144
  <link rel="stylesheet" href="https://ds-assets.cupra.com/[version]/styles/cupra/theme.css" />
140
- <ThemeProvider theme="cupra" loadFonts={false} loadStyles={false}>
145
+ <ThemeProvider theme="cupra-diagonal" loadFonts={false} loadStyles={false}>
141
146
  <Button variant="destructive" icon-name="filters-background">Click me</Button>
142
147
  <Icon icon-name="filters-background" />
143
148
  </ThemeProvider>
@@ -149,11 +154,12 @@ 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 (
156
- <ThemeProvider theme="cupra" loadFonts={true} loadStyles={true}>
162
+ <ThemeProvider theme="cupra-diagonal" loadFonts={true} loadStyles={true}>
157
163
  <Button variant="primary">Button</Button>
158
164
  </ThemeProvider>
159
165
  );
@@ -1,52 +1,6 @@
1
1
  This file was generated with the generate-license-file npm package!
2
2
  https://www.npmjs.com/package/generate-license-file
3
3
 
4
- The following npm package may be included in this product:
5
-
6
- - @cupra/ui-kit@1.0.0-canary.3
7
-
8
- This package contains the following license:
9
-
10
- # SEAT, S.A. Library EULA 1.0
11
-
12
- SEAT, S.A.U. (hereinafter, “SEAT”) is a Spanish entity domiciled in Martorell (Barcelona), Autovía A-2, Km. 585, with a Tax Identification Number (C.I.F.) A-28.049.161, duly registered in the Mercantile Registry of Barcelona in Volume 23.662, folio 1, page number B-56.855 and whose contact email is **ds.support@seat.es**
13
- SEAT releases this End-User License Agreement (“EULA”) to specify the rights and obligations when using a library or package applicable to this EULA (“Library”).
14
-
15
- ## Library Specification
16
- The specification of the Library does not form part of this EULA and is instead provided separately thought appropriate documentation accompanying the aforementioned Library. The Library is intended solely to support SEAT´s internal development projects.
17
-
18
- ## License Grant
19
- SEAT hereby declares that all source code, files, fonts and other associated assets comprising the Library are the exclusive property of SEAT and/or its licensors.
20
- Subject to the terms and conditions of this EULA, SEAT grants you a limited, non-exclusive, non-transferable, and revocable license to download, install and use the Library strictly in accordance with this EULA.
21
- Any breach of the limitations or restrictions set forth herein shall result in the immediate and automatic termination of the license granted. Any use of the Library beyond the scope of the license shall constitute an infringement of SEAT´s intellectual property rights and a material breach of this EULA. In the event of any such violation, the license shall automatically and immediately terminate without prior notice.
22
- If you violate any of these limitations or restrictions, the license grant will automatically and immediately expire. Any usage of the Library outside the scope of the applicable license constitutes an infringement of SEAT´s intellectual property rights as well as a material breach of this EULA.
23
-
24
- ## Restrictions on Use
25
- You agree that you shall not, and shall not permit any third party to:
26
-
27
- 1. license, sell, rent, lease, assign, distribute, transmit, host, outsource, disclose or otherwise commercially exploit the Library, or make the Library available to any third party in any manner;
28
- 2. provide, disclose, or otherwise make accessible any features, functionalities, or components of the Library to any individual or entity outside your organization;
29
- 3. Modify, reverse engineer, decompile or disassemble, or otherwise attempt to derive the source code, algorithms, methods or techniques of the Library;
30
- 4. Remove, alter or obscure any proprietary notices, trademarks, labels or other intellectual property markings contained in or affixed to the Library;
31
- 5. translate, adapt, arrange, or create derivative works based on the Library, or otherwise modify the Library, except as expressly permitted under this EULA;
32
- 6. Use the Library in any manner that exceeds or is inconsistent with the rights granted under this EULA. The Library may be used solely for the purpose or in any context outside the scope of your business relationship with SEAT.
33
-
34
- ## Copyright and ownership
35
- SEAT and its licensors retain all right, title, and interest in and to the Library, including without limitation, all associated copyrights, trademarks, trade secrets, patents, and other intellectual property rights.
36
- You are granted only the limited rights expressly set forth in the EULA. You acknowledge and agree that the Library is licensed, not sold, and that no ownership rights are transferred to you under this Agreement. All rights not expressly granted herein are reserved by SEAT and its licensors.
37
-
38
- ## Modifications and availability
39
- SEAT reserves the right, at its sole discretion, to modify, suspend, or discontinue temporarily or permanently, the Library or any related services, with or without prior notice, and without incurring any liability to you or any third party.
40
- You acknowledge that the Library is not subject to regular maintenance or updates. Any updates, enhancements, or modifications shall be provided solely at SEAT´s discretion and without any obligation to do so.
41
-
42
- ## Limitation of Liability
43
- To the maximum extent permitted by applicable law, SEAT and its licensors shall not be liable for any indirect, incidental, special, consequential, or punitive damages, including but not limited to loss of profits, data, or business opportunities, arising out of or in connection with the use or inability to use the Library, even if SEAT has been advised of the possibility of such damages. SEAT´s total liability under this EULA shall in no event exceed the amount paid by you (if any) for the use of the Library.
44
-
45
- ## Governing Law and Dispute resolution
46
- This EULA shall be governed by and construed in accordance with the common laws of Spain, without regard to its conflict of law principles. Any dispute, controversy, or claim arising out of or in connection with this EULA shall be submitted to the exclusive jurisdiction of the courts of the city of Barcelona (Spain).
47
-
48
- -----------
49
-
50
4
  The following npm package may be included in this product:
51
5
 
52
6
  - styled-components@6.1.19
@@ -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 {
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-accordion";
3
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
4
  n.Title = e;
5
5
  n.Content = c;
@@ -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;
@@ -1,11 +1,12 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { isValidElement as i, cloneElement as m } from "react";
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";
3
4
  import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
4
- import "../../packages/ui-kit/dist-react/index.js";
5
- function v(t) {
6
- const { className: e, onClick: r, image: o, ...a } = t, { ref: l } = c({ click: r }), n = o && i(o) ? m(o, { slot: "media", ...o.props }) : null;
7
- return /* @__PURE__ */ s("ds-avatar-react", { ref: l, class: e, ...a, children: n });
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 });
8
9
  }
9
10
  export {
10
- v as Avatar
11
+ E as Avatar
11
12
  };
@@ -0,0 +1,7 @@
1
+ import type { DsBadgeAttrs } from '@cupra/ui-kit/react/types/ds-badge';
2
+ import { type ReactElement } from 'react';
3
+ import '@cupra/ui-kit/react/ds-badge';
4
+ export interface BadgeProps extends DsBadgeAttrs {
5
+ className?: string;
6
+ }
7
+ export declare function Badge({ className, ...rest }: BadgeProps): ReactElement;
@@ -0,0 +1,8 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-badge";
3
+ function s({ className: r, ...t }) {
4
+ return /* @__PURE__ */ e("ds-badge-react", { class: r, ...t });
5
+ }
6
+ export {
7
+ s as Badge
8
+ };
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ type Story = StoryObj;
5
+ export declare const Dot: Story;
6
+ export declare const NumberBase: Story;
7
+ export declare const NumberSmallInverted: Story;
8
+ export declare const NumberInverted: Story;
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-bullets";
3
3
  const o = ({ className: t, ...r }) => /* @__PURE__ */ s("ds-bullets-react", { class: t, ...r });
4
4
  export {
5
5
  o as Bullets
@@ -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;
@@ -1,20 +1,21 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/utils/breakpoints";
2
3
  import "react";
3
4
  import { useHandleEvent as m } from "../../hooks/useHandleEvent.js";
4
- import "../../packages/ui-kit/dist-react/index.js";
5
- function u(o) {
6
- const { className: r, children: s, onClick: e, size: t, ...i } = o, { ref: n } = m({ click: e });
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 });
7
8
  return /* @__PURE__ */ c(
8
9
  "ds-button-react",
9
10
  {
10
11
  ref: n,
11
12
  size: typeof t == "string" ? t : JSON.stringify(t),
12
13
  class: r,
13
- ...i,
14
- children: s
14
+ ...e,
15
+ children: i
15
16
  }
16
17
  );
17
18
  }
18
19
  export {
19
- u as Button
20
+ d as Button
20
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
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-carousel-indicator";
3
3
  function i(r) {
4
4
  const { className: o, children: c, ...s } = r;
5
5
  return /* @__PURE__ */ t("ds-carousel-indicator-react", { class: o, ...s });
@@ -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;
@@ -1,11 +1,12 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/utils/breakpoints";
2
3
  import "react";
3
- import { useHandleEvent as n } from "../../hooks/useHandleEvent.js";
4
- import "../../packages/ui-kit/dist-react/index.js";
5
- function s({ onChange: o, children: r, ...e }) {
6
- const { ref: t } = n({ change: o });
7
- return /* @__PURE__ */ c("ds-checkbox-react", { ref: t, ...e, children: r });
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 });
8
9
  }
9
10
  export {
10
- s as Checkbox
11
+ x as Checkbox
11
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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-chip";
3
3
  function p(r) {
4
4
  const { className: o, children: s, ...t } = r;
5
5
  return /* @__PURE__ */ c("ds-chip-react", { class: o, ...t, children: s });
@@ -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;
@@ -1,13 +1,14 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-chips";
3
+ import "@cupra/ui-kit/react/utils/breakpoints";
3
4
  import "react";
4
5
  import { useHandleEvent as i } from "../../hooks/useHandleEvent.js";
5
- function d(r) {
6
- const { className: s, children: o, onChange: e, ...t } = r, { ref: n } = i({
7
- "ds-chips:change": e
6
+ function f(r) {
7
+ const { className: o, children: s, onChange: t, ...e } = r, { ref: n } = i({
8
+ "ds-chips:change": t
8
9
  });
9
- return /* @__PURE__ */ c("ds-chips-react", { ref: n, class: s, ...t, children: o });
10
+ return /* @__PURE__ */ c("ds-chips-react", { ref: n, class: o, ...e, children: s });
10
11
  }
11
12
  export {
12
- d as Chips
13
+ f as Chips
13
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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-currency";
3
3
  function n(r) {
4
4
  const { className: c, ...o } = r;
5
5
  return /* @__PURE__ */ s("ds-currency-react", { class: c, ...o });
@@ -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;
@@ -1,15 +1,15 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-dialog";
3
+ import "@cupra/ui-kit/react/utils/breakpoints";
3
4
  import "react";
4
- import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
5
- function u(e) {
6
- const { className: n, children: l, onClose: s, withPortal: i, ...o } = e, { ref: a } = c({
5
+ import { useHandleEvent as m } from "../../hooks/useHandleEvent.js";
6
+ import { createPortal as c } from "react-dom";
7
+ function P(t) {
8
+ const { className: r, children: e, onClose: s, withPortal: i, ...n } = t, { ref: a } = m({
7
9
  "ds-dialog:close": s
8
- });
9
- if (!o.open) return null;
10
- const r = /* @__PURE__ */ t("ds-dialog-react", { ref: a, class: n, ...o, children: l });
11
- return i ? /* @__PURE__ */ t("ds-portal-react", { style: { display: "none" }, children: r }) : r;
10
+ }), o = /* @__PURE__ */ l("ds-dialog-react", { ref: a, class: r, ...n, children: e });
11
+ return i ? c(o, document.body) : o;
12
12
  }
13
13
  export {
14
- u as Dialog
14
+ P as Dialog
15
15
  };
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-dialog-body";
3
3
  function i(o) {
4
4
  const { className: r, children: s, ...t } = o;
5
5
  return /* @__PURE__ */ a("ds-dialog-body-react", { class: r, ...t, children: s });
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-dialog-footer";
3
3
  function i(o) {
4
4
  const { className: r, children: t, ...e } = o;
5
5
  return /* @__PURE__ */ s("ds-dialog-footer-react", { class: r, ...e, children: t });
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-dialog-header";
3
3
  function i(r) {
4
4
  const { className: e, children: o, ...a } = r;
5
5
  return /* @__PURE__ */ s("ds-dialog-header-react", { class: e, ...a, children: o });
@@ -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
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-divider";
3
3
  function d({ className: r, ...i }) {
4
4
  return /* @__PURE__ */ t("ds-divider-react", { class: r, ...i });
5
5
  }
@@ -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;
@@ -1,11 +1,12 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-hyperlink";
3
+ import "@cupra/ui-kit/react/utils/breakpoints";
3
4
  import "react";
4
5
  import { useHandleEvent as n } from "../../hooks/useHandleEvent.js";
5
- function l({ children: r, onClick: t, ...e }) {
6
- const { ref: o } = n({ click: t });
7
- return /* @__PURE__ */ i("ds-hyperlink-react", { ref: o, ...e, children: r });
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 });
8
9
  }
9
10
  export {
10
- l as Hyperlink
11
+ s as Hyperlink
11
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
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-icon";
3
3
  function a(o) {
4
4
  const { "icon-name": n, className: c, ...r } = o;
5
5
  return /* @__PURE__ */ e("ds-icon-react", { "icon-name": n, class: c, ...r });
@@ -1,9 +1,8 @@
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
- type IconButtonProps = DsIconButtonAttrs & {
4
+ export type IconButtonProps = DsIconButtonAttrs & {
5
5
  className?: string;
6
6
  onClick?: (event: CustomEvent) => void;
7
7
  };
8
8
  export declare function IconButton(props: IconButtonProps): ReactElement;
9
- export {};
@@ -1,19 +1,20 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-icon-button";
3
+ import "@cupra/ui-kit/react/utils/breakpoints";
3
4
  import "react";
4
5
  import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
5
- function l(o) {
6
- const { className: r, onClick: n, size: t, ...s } = o, { ref: i } = c({ click: n });
6
+ function u(o) {
7
+ const { className: r, onClick: i, size: t, ...n } = o, { ref: s } = c({ click: i });
7
8
  return /* @__PURE__ */ e(
8
9
  "ds-icon-button-react",
9
10
  {
10
- ref: i,
11
+ ref: s,
11
12
  size: typeof t == "string" ? t : JSON.stringify(t),
12
13
  class: r,
13
- ...s
14
+ ...n
14
15
  }
15
16
  );
16
17
  }
17
18
  export {
18
- l as IconButton
19
+ u as IconButton
19
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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-input";
3
3
  import { useHandleEvent as s } from "../../hooks/useHandleEvent.js";
4
4
  import { forwardRef as i, useImperativeHandle as u } from "react";
5
5
  const c = i(
@@ -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 & {
@@ -1,10 +1,11 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/utils/breakpoints";
2
3
  import "react";
3
- import { useHandleEvent as p } from "../../hooks/useHandleEvent.js";
4
- import "../../packages/ui-kit/dist-react/index.js";
4
+ import { useHandleEvent as u } from "../../hooks/useHandleEvent.js";
5
+ import "@cupra/ui-kit/react/ds-interactive-card";
5
6
  function e(t) {
6
- const { className: d, children: v, onClick: m, ...C } = t, { ref: u } = p({ click: m });
7
- return /* @__PURE__ */ r("ds-interactive-card-react", { ref: u, class: d, ...C, children: v });
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 });
8
9
  }
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 });
10
11
  e.Title = a;
@@ -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;
@@ -1,11 +1,12 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import "../../packages/ui-kit/dist-react/index.js";
2
+ import "@cupra/ui-kit/react/ds-link-button";
3
+ import "@cupra/ui-kit/react/utils/breakpoints";
3
4
  import "react";
4
5
  import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
5
- function f({ children: t, onClick: o, ...r }) {
6
+ function s({ children: t, onClick: o, ...r }) {
6
7
  const { ref: n } = e({ click: o });
7
8
  return /* @__PURE__ */ i("ds-link-button-react", { ref: n, ...r, children: t });
8
9
  }
9
10
  export {
10
- f as LinkButton
11
+ s as LinkButton
11
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';