@cupra/ui-react 0.0.2-placeholder → 1.0.0-canary.1

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 (170) hide show
  1. package/README.md +155 -18
  2. package/THIRD-PARTY-LICENSES.MD +81 -0
  3. package/dist/components/Accordion/Accordion.d.ts +17 -0
  4. package/dist/components/Accordion/Accordion.js +8 -0
  5. package/dist/components/Accordion/stories/CupraDiagonal.stories.d.ts +5 -0
  6. package/dist/components/Avatar/Avatar.d.ts +9 -0
  7. package/dist/components/Avatar/Avatar.js +11 -0
  8. package/dist/components/Avatar/stories/CupraDiagonal.stories.d.ts +8 -0
  9. package/dist/components/Bullets/Bullets.d.ts +7 -0
  10. package/dist/components/Bullets/Bullets.js +6 -0
  11. package/dist/components/Button/Button.d.ts +10 -0
  12. package/dist/components/Button/Button.js +20 -0
  13. package/dist/components/Button/stories/CupraDiagonal.stories.d.ts +19 -0
  14. package/dist/components/CarouselIndicator/CarouselIndicator.d.ts +8 -0
  15. package/dist/components/CarouselIndicator/CarouselIndicator.js +9 -0
  16. package/dist/components/CarouselIndicator/stories/CupraDiagonal.stories.d.ts +8 -0
  17. package/dist/components/Checkbox/Checkbox.d.ts +9 -0
  18. package/dist/components/Checkbox/Checkbox.js +11 -0
  19. package/dist/components/Checkbox/stories/CupraDiagonal.stories.d.ts +20 -0
  20. package/dist/components/Chip/Chip.d.ts +9 -0
  21. package/dist/components/Chip/Chip.js +9 -0
  22. package/dist/components/Chip/stories/CupraDiagonal.stories.d.ts +7 -0
  23. package/dist/components/Chips/Chips.d.ts +10 -0
  24. package/dist/components/Chips/Chips.js +13 -0
  25. package/dist/components/Chips/stories/CupraDiagonal.stories.d.ts +5 -0
  26. package/dist/components/Currency/Currency.d.ts +8 -0
  27. package/dist/components/Currency/Currency.js +9 -0
  28. package/dist/components/Currency/stories/CupraDiagonal.stories.d.ts +13 -0
  29. package/dist/components/Dialog/Dialog.d.ts +11 -0
  30. package/dist/components/Dialog/Dialog.js +15 -0
  31. package/dist/components/Dialog/stories/CupraDiagonal.stories.d.ts +5 -0
  32. package/dist/components/DialogBody/DialogBody.d.ts +9 -0
  33. package/dist/components/DialogBody/DialogBody.js +9 -0
  34. package/dist/components/DialogBody/stories/CupraDiagonal.stories.d.ts +5 -0
  35. package/dist/components/DialogFooter/DialogFooter.d.ts +9 -0
  36. package/dist/components/DialogFooter/DialogFooter.js +9 -0
  37. package/dist/components/DialogFooter/stories/CupraDiagonal.stories.d.ts +5 -0
  38. package/dist/components/DialogHeader/DialogHeader.d.ts +9 -0
  39. package/dist/components/DialogHeader/DialogHeader.js +9 -0
  40. package/dist/components/DialogHeader/stories/CupraDiagonal.stories.d.ts +5 -0
  41. package/dist/components/Divider/Divider.d.ts +7 -0
  42. package/dist/components/Divider/Divider.js +8 -0
  43. package/dist/components/Divider/stories/CupraDiagonal.stories.d.ts +8 -0
  44. package/dist/components/Hyperlink/Hyperlink.d.ts +8 -0
  45. package/dist/components/Hyperlink/Hyperlink.js +11 -0
  46. package/dist/components/Icon/Icon.d.ts +7 -0
  47. package/dist/components/Icon/Icon.js +9 -0
  48. package/dist/components/Icon/stories/CupraDiagonal.stories.d.ts +5 -0
  49. package/dist/components/IconButton/IconButton.d.ts +9 -0
  50. package/dist/components/IconButton/IconButton.js +19 -0
  51. package/dist/components/IconButton/stories/CupraDiagonal.stories.d.ts +13 -0
  52. package/dist/components/Input/Input.d.ts +11 -0
  53. package/dist/components/Input/Input.js +14 -0
  54. package/dist/components/InteractiveCard/InteractiveCard.d.ts +55 -0
  55. package/dist/components/InteractiveCard/InteractiveCard.js +26 -0
  56. package/dist/components/InteractiveCard/stories/CupraDiagonal.stories.d.ts +9 -0
  57. package/dist/components/LinkButton/LinkButton.d.ts +9 -0
  58. package/dist/components/LinkButton/LinkButton.js +11 -0
  59. package/dist/components/LinkButton/stories/CupraDiagonal.stories.d.ts +9 -0
  60. package/dist/components/Loader/Loader.d.ts +20 -0
  61. package/dist/components/Loader/Loader.js +24 -0
  62. package/dist/components/Logo/Logo.d.ts +8 -0
  63. package/dist/components/Logo/Logo.js +9 -0
  64. package/dist/components/Logo/stories/CupraDiagonal.stories.d.ts +10 -0
  65. package/dist/components/MapPin/MapPin.d.ts +8 -0
  66. package/dist/components/MapPin/MapPin.js +11 -0
  67. package/dist/components/MapPin/stories/CupraDiagonal.stories.d.ts +7 -0
  68. package/dist/components/Modal/Modal.d.ts +26 -0
  69. package/dist/components/Modal/Modal.js +49 -0
  70. package/dist/components/PasswordInput/PasswordInput.d.ts +19 -0
  71. package/dist/components/PasswordInput/PasswordInput.js +42 -0
  72. package/dist/components/PasswordInput/stories/CupraDiagonal.stories.d.ts +11 -0
  73. package/dist/components/PickerItem/PickerItem.d.ts +10 -0
  74. package/dist/components/PickerItem/PickerItem.js +21 -0
  75. package/dist/components/PickerItem/stories/CupraDiagonal.stories.d.ts +12 -0
  76. package/dist/components/Radio/Radio.d.ts +18 -0
  77. package/dist/components/Radio/Radio.js +14 -0
  78. package/dist/components/RadioButton/RadioButton.d.ts +10 -0
  79. package/dist/components/RadioButton/RadioButton.js +10 -0
  80. package/dist/components/RadioButton/stories/CupraDiagonal.stories.d.ts +12 -0
  81. package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +16 -0
  82. package/dist/components/RadioButtonGroup/RadioButtonGroup.js +10 -0
  83. package/dist/components/RadioButtonGroup/stories/CupraDiagonal.stories.d.ts +5 -0
  84. package/dist/components/Search/Search.d.ts +9 -0
  85. package/dist/components/Search/Search.js +8 -0
  86. package/dist/components/SearchInput/SearchInput.d.ts +20 -0
  87. package/dist/components/SearchInput/SearchInput.js +46 -0
  88. package/dist/components/SearchInput/stories/CupraDiagonal.stories.d.ts +5 -0
  89. package/dist/components/SecondaryNavigation/SecondaryNavigation.d.ts +18 -0
  90. package/dist/components/SecondaryNavigation/SecondaryNavigation.js +16 -0
  91. package/dist/components/SecondaryNavigation/stories/CupraDiagonal.stories.d.ts +5 -0
  92. package/dist/components/SegmentedControl/SegmentedControl.d.ts +10 -0
  93. package/dist/components/SegmentedControl/SegmentedControl.js +11 -0
  94. package/dist/components/SegmentedControl/stories/CupraDiagonal.stories.d.ts +7 -0
  95. package/dist/components/Select/Select.d.ts +9 -0
  96. package/dist/components/Select/Select.js +6 -0
  97. package/dist/components/Select/stories/CupraDiagonal.stories.d.ts +5 -0
  98. package/dist/components/Selection/Selection.d.ts +8 -0
  99. package/dist/components/Selection/Selection.js +9 -0
  100. package/dist/components/SidebarNavigation/SidebarNavigation.d.ts +25 -0
  101. package/dist/components/SidebarNavigation/SidebarNavigation.js +15 -0
  102. package/dist/components/SidebarNavigation/stories/CupraDiagonal.stories.d.ts +5 -0
  103. package/dist/components/Slider/Slider.d.ts +8 -0
  104. package/dist/components/Slider/Slider.js +16 -0
  105. package/dist/components/Slider/stories/CupraDiagonal.stories.d.ts +5 -0
  106. package/dist/components/StaticBox/StaticBox.d.ts +9 -0
  107. package/dist/components/StaticBox/StaticBox.js +20 -0
  108. package/dist/components/StaticBox/stories/CupraDiagonal.stories.d.ts +5 -0
  109. package/dist/components/Stepper/Stepper.d.ts +8 -0
  110. package/dist/components/Stepper/Stepper.js +6 -0
  111. package/dist/components/Stepper/stories/CupraDiagonal.stories.d.ts +9 -0
  112. package/dist/components/Tabs/Tabs.d.ts +22 -0
  113. package/dist/components/Tabs/Tabs.js +19 -0
  114. package/dist/components/Tabs/stories/CupraDiagonal.stories.d.ts +8 -0
  115. package/dist/components/Tag/Tag.d.ts +11 -0
  116. package/dist/components/Tag/Tag.js +11 -0
  117. package/dist/components/Tag/stories/CupraDiagonal.stories.d.ts +8 -0
  118. package/dist/components/Text/Text.d.ts +9 -0
  119. package/dist/components/Text/Text.js +9 -0
  120. package/dist/components/Text/stories/CupraDiagonal.stories.d.ts +5 -0
  121. package/dist/components/TextInput/TextInput.d.ts +21 -0
  122. package/dist/components/TextInput/TextInput.js +44 -0
  123. package/dist/components/TextInput/stories/CupraDiagonal.stories.d.ts +8 -0
  124. package/dist/components/Textarea/Textarea.d.ts +20 -0
  125. package/dist/components/Textarea/Textarea.js +57 -0
  126. package/dist/components/Textarea/stories/CupraDiagonal.stories.d.ts +11 -0
  127. package/dist/components/ThemeProvider/ThemeProvider.d.ts +9 -0
  128. package/dist/components/ThemeProvider/ThemeProvider.js +6 -0
  129. package/dist/components/Toast/Toast.d.ts +11 -0
  130. package/dist/components/Toast/Toast.js +16 -0
  131. package/dist/components/Toast/stories/CupraDiagonal.stories.d.ts +10 -0
  132. package/dist/components/ToastMessage/ToastMessage.d.ts +9 -0
  133. package/dist/components/ToastMessage/ToastMessage.js +13 -0
  134. package/dist/components/ToastMessage/stories/CupraDiagonal.stories.d.ts +12 -0
  135. package/dist/components/ToggleButton/ToggleButton.d.ts +8 -0
  136. package/dist/components/ToggleButton/ToggleButton.js +11 -0
  137. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +17 -0
  138. package/dist/components/ToggleSwitch/ToggleSwitch.js +22 -0
  139. package/dist/components/ToggleSwitch/stories/CupraDiagonal.stories.d.ts +10 -0
  140. package/dist/components/Tooltip/Tooltip.d.ts +11 -0
  141. package/dist/components/Tooltip/Tooltip.js +24 -0
  142. package/dist/components/index.d.ts +50 -0
  143. package/dist/hooks/index.d.ts +5 -0
  144. package/dist/hooks/useBreakpoint.d.ts +3 -0
  145. package/dist/hooks/useBreakpoint.js +42 -0
  146. package/dist/hooks/useEventListeners.d.ts +9 -0
  147. package/dist/hooks/useEventListeners.js +26 -0
  148. package/dist/hooks/useHandleEvent.d.ts +5 -0
  149. package/dist/hooks/useHandleEvent.js +23 -0
  150. package/dist/hooks/useLoadScript.d.ts +2 -0
  151. package/dist/hooks/useResizeObserver/useResizeObserver.d.ts +6 -0
  152. package/dist/hooks/useResizeObserver/useResizeObserver.js +14 -0
  153. package/dist/index.d.ts +2 -0
  154. package/dist/index.js +112 -0
  155. 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
  156. package/dist/node_modules/.pnpm/@emotion_memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
  157. package/dist/node_modules/.pnpm/@emotion_unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +52 -0
  158. 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
  159. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.js +12 -0
  160. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.js +49 -0
  161. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.js +131 -0
  162. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.js +187 -0
  163. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.js +27 -0
  164. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.js +147 -0
  165. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.js +56 -0
  166. package/dist/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js +18 -0
  167. package/dist/packages/ui-kit/dist-react/index.js +9221 -0
  168. package/dist/packages/ui-kit/dist-react/utils/breakpoints.js +11 -0
  169. package/dist/packages/ui-kit/dist-react/utils/debounce.js +11 -0
  170. package/package.json +66 -28
package/README.md CHANGED
@@ -1,27 +1,164 @@
1
- # @cupra/ui-react · Placeholder Package
1
+ # UI React (React Components)
2
2
 
3
3
  ## Overview
4
- This package represents a **placeholder release** for the `@cupra/ui-react` module of the **DS-UI Design System**.
5
- It has been published to establish the package namespace and to support configuration processes within the continuous integration and release infrastructure.
4
+ React components and wrappers built on top of the DS-UI Web Components, providing a seamless and idiomatic developer experience for React.
5
+ This package exposes React-friendly APIs (props, JSX, typed events) while preserving the DS-UI theming, styling, and asset resolution model.
6
6
 
7
- No functional implementation or production assets are included in this version.
7
+ ## Audience
8
+ Use `@cupra/ui-react` if your application is built with **React** and you want:
8
9
 
9
- ## Purpose
10
- - Reserve the `@cupra/ui-react` package name under the SeatCode organization.
11
- - Facilitate configuration and validation of the associated build and release systems.
12
- - Provide an initial reference point for future official releases of the React components library.
10
+ - First-class React ergonomics with DS-UI components
11
+ - Automatic integration with the underlying Web Components
12
+ - Full theming support with minimal configuration
13
+ - A smooth adoption path inside existing React codebases
13
14
 
14
- ## Contents
15
- This release includes:
16
- - `package.json` metadata
17
- - `LICENSE.md`
18
- - `README.md`
15
+ If you need a **framework-agnostic** solution, consider `@cupra/ui-kit` (Web Components).
19
16
 
20
- No source code, compiled output, or runtime components are distributed at this stage.
17
+ ## Requirements & Compatibility
21
18
 
22
- ## Future Releases
23
- Subsequent versions will deliver the complete implementation of the DS-UI React components library, developed with **React** and **TypeScript**, following the principles of **Semantic Versioning 2.0.0**.
19
+ This library currently provides **official support for React 18**.
20
+
21
+ - **Supported React versions:** `>=18.3.1 <19`
22
+ - **React 19:** not officially supported yet. Work is in progress to add full support.
23
+
24
+ Projects using React 19 may still install and use the library, but behaviour is not guaranteed until official support is released.
25
+
26
+ ## Installation
27
+
28
+ ### Install the package
29
+ - npm: `npm install @cupra/ui-react`
30
+ - pnpm: `pnpm add @cupra/ui-react`
31
+ - yarn: `yarn add @cupra/ui-react`
32
+
33
+ ### Registry configuration (only if needed)
34
+
35
+ **.npmrc**
36
+
37
+ ```ini
38
+ @cupra:registry=https://registry.npmjs.org
39
+ ```
40
+
41
+ **.yarnrc.yml**
42
+
43
+ ```yaml
44
+ npmScopes:
45
+ cupra:
46
+ npmRegistryServer: "https://registry.npmjs.org"
47
+ ```
48
+
49
+ ---
50
+
51
+ ## Versioning and Release Channels
52
+
53
+ This package is distributed through npm using **two release channels**.
54
+
55
+ ### Stable Releases (`latest`)
56
+ Production-ready versions:
57
+
58
+ - Follow Semantic Versioning
59
+ - Include only validated changes
60
+ - Recommended for all production apps
61
+
62
+ Install:
63
+
64
+ ```bash
65
+ npm install @cupra/ui-react
66
+ ```
67
+
68
+ Specific version:
69
+
70
+ ```bash
71
+ npm install @cupra/ui-react@0.1.3
72
+ ```
73
+
74
+ ---
75
+
76
+ ### Canary Releases (`canary`)
77
+ Early-access versions published after each merge into `main`.
78
+
79
+ Use canary releases if you:
80
+
81
+ - Want to preview upcoming changes
82
+ - Are validating new features
83
+ - Accept small instability or rapid iteration
84
+
85
+ Latest canary:
86
+
87
+ ```bash
88
+ npm install @cupra/ui-react@canary
89
+ ```
90
+
91
+ Specific canary version:
92
+
93
+ ```bash
94
+ npm install @cupra/ui-react@0.1.4-canary.2
95
+ ```
96
+
97
+ ---
98
+
99
+ ## Recommended usage
100
+
101
+ - **Production:** use **stable versions (e.g. `@cupra/ui-react@1.1.3`)**
102
+ - **Internal testing / preview:** use **`canary`** (e.g. `@cupra/ui-react@canary` or `@cupra/ui-react@0.1.4-canary.2`)
103
+
104
+ ```bash
105
+ npm install @cupra/ui-react@0.1.4-canary.2
106
+ ```
107
+
108
+ ---
109
+
110
+ ## Usage
111
+
112
+ Wrap your React app with the `ThemeProvider`.
113
+ The provider requires **three props**:
114
+
115
+ | Prop | Type | Required | Description |
116
+ |------------|---------|----------|-----------------------------------------------|
117
+ | `theme` | string | Yes | Visual theme identifier (e.g. cupra-diagonal) |
118
+ | `loadFonts` | boolean | Yes | Auto-load DS-UI font files |
119
+ | `loadStyles` | boolean | Yes | Auto-load DS-UI CSS |
120
+
121
+ If `loadFonts` or `loadStyles` are `false`, you must manually include `<link>` tags in your HTML.
122
+
123
+ ### Option A — Manual CSS and font links
124
+
125
+ ```tsx
126
+ import { ThemeProvider, Button, Icon } from '@cupra/ui-react';
127
+
128
+ export function App() {
129
+ return (
130
+ <>
131
+ <link rel="preload" as="style" href="https://ds-assets.cupra.com/[version]/styles/cupra/theme.css" />
132
+ <link rel="stylesheet" href="https://ds-assets.cupra.com/[version]/styles/cupra/theme.css" />
133
+ <ThemeProvider theme="cupra" loadFonts={false} loadStyles={false}>
134
+ <Button variant="destructive" icon-name="filters-background">Click me</Button>
135
+ <Icon icon-name="filters-background" />
136
+ </ThemeProvider>
137
+ </>
138
+ );
139
+ }
140
+ ```
141
+
142
+ ### Option B — Provider loads assets automatically
143
+
144
+ ```tsx
145
+ import { ThemeProvider, Button } from '@cupra/ui-react';
146
+
147
+ export function App() {
148
+ return (
149
+ <ThemeProvider theme="cupra" loadFonts={true} loadStyles={true}>
150
+ <Button variant="primary">Button</Button>
151
+ </ThemeProvider>
152
+ );
153
+ }
154
+ ```
155
+
156
+ ---
24
157
 
25
158
  ## License
26
- **SEE LICENSE IN LICENSE.md**
27
- This package is distributed under the SEAT S.A. Library EULA.
159
+ License: SEAT S.A. Library EULA 1.0
160
+ See `LICENSE.md` in this package for the full text.
161
+ Third-party attributions may appear in `THIRD_PARTY_LICENSES.md`.
162
+
163
+ ## Support
164
+ For help and support, contact: **ds.support@seat.es**
@@ -0,0 +1,81 @@
1
+ This file was generated with the generate-license-file npm package!
2
+ https://www.npmjs.com/package/generate-license-file
3
+
4
+ The following npm package may be included in this product:
5
+
6
+ - @cupra/ui-kit@16.0.1
7
+
8
+ This package contains the following license:
9
+
10
+ # SEAT, S.A. Library EULA
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 [*].
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
+ The following npm package may be included in this product:
51
+
52
+ - styled-components@6.1.19
53
+
54
+ This package contains the following license:
55
+
56
+ MIT License
57
+
58
+ Copyright (c) 2016-present Glen Maddern and Maximilian Stoiber
59
+
60
+ Permission is hereby granted, free of charge, to any person obtaining a copy
61
+ of this software and associated documentation files (the "Software"), to deal
62
+ in the Software without restriction, including without limitation the rights
63
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
64
+ copies of the Software, and to permit persons to whom the Software is
65
+ furnished to do so, subject to the following conditions:
66
+
67
+ The above copyright notice and this permission notice shall be included in all
68
+ copies or substantial portions of the Software.
69
+
70
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
71
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
72
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
73
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
74
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
75
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
76
+ SOFTWARE.
77
+
78
+ -----------
79
+
80
+ This file was generated with the generate-license-file npm package!
81
+ https://www.npmjs.com/package/generate-license-file
@@ -0,0 +1,17 @@
1
+ import { DsAccordionAttrs } from '@cupra/ui-kit/react/types/ds-accordion';
2
+ import '@cupra/ui-kit/react';
3
+ import { type ReactElement } from 'react';
4
+ type Children = JSX.Element | JSX.Element[] | string;
5
+ interface AccordionProps extends DsAccordionAttrs {
6
+ children: Children;
7
+ }
8
+ export declare const Accordion: {
9
+ ({ children, ...restProps }: AccordionProps): ReactElement;
10
+ Title: ({ children }: {
11
+ children: Children;
12
+ }) => ReactElement;
13
+ Content: ({ children }: {
14
+ children: Children;
15
+ }) => ReactElement;
16
+ };
17
+ export {};
@@ -0,0 +1,8 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import "../../packages/ui-kit/dist-react/index.js";
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
+ };
@@ -0,0 +1,5 @@
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 Default: Story;
@@ -0,0 +1,9 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ import '@cupra/ui-kit/react';
3
+ import type { DsAvatarAttrs } from '@cupra/ui-kit/react/types/ds-avatar';
4
+ export type AvatarProps = DsAvatarAttrs & {
5
+ className?: string;
6
+ onClick?: (event: CustomEvent) => void;
7
+ image?: ReactNode | null;
8
+ };
9
+ export declare function Avatar(props: AvatarProps): ReactElement;
@@ -0,0 +1,11 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { isValidElement as i, cloneElement as m } from "react";
3
+ 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 });
8
+ }
9
+ export {
10
+ v as Avatar
11
+ };
@@ -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 DefaultIcon: Story;
6
+ export declare const WithInitials: Story;
7
+ export declare const WithImage: Story;
8
+ export declare const Disabled: Story;
@@ -0,0 +1,7 @@
1
+ import { DsBulletsAttrs } from '@cupra/ui-kit/react/types/ds-bullets';
2
+ import '@cupra/ui-kit/react';
3
+ import { type ReactElement } from 'react';
4
+ export interface BulletsProps extends DsBulletsAttrs {
5
+ className?: string;
6
+ }
7
+ export declare const Bullets: ({ className, ...rest }: BulletsProps) => ReactElement;
@@ -0,0 +1,6 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import "../../packages/ui-kit/dist-react/index.js";
3
+ const o = ({ className: t, ...r }) => /* @__PURE__ */ s("ds-bullets-react", { class: t, ...r });
4
+ export {
5
+ o as Bullets
6
+ };
@@ -0,0 +1,10 @@
1
+ import type { ReactElement } from 'react';
2
+ import '@cupra/ui-kit/react';
3
+ import type { DsButtonAttrs } from '@cupra/ui-kit/react/types/ds-button';
4
+ type ButtonProps = DsButtonAttrs & {
5
+ className?: string;
6
+ children: JSX.Element | JSX.Element[] | string;
7
+ onClick?: (event: CustomEvent) => void;
8
+ };
9
+ export declare function Button(props: ButtonProps): ReactElement;
10
+ export {};
@@ -0,0 +1,20 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import "react";
3
+ 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 });
7
+ return /* @__PURE__ */ c(
8
+ "ds-button-react",
9
+ {
10
+ ref: n,
11
+ size: typeof t == "string" ? t : JSON.stringify(t),
12
+ class: r,
13
+ ...i,
14
+ children: s
15
+ }
16
+ );
17
+ }
18
+ export {
19
+ u as Button
20
+ };
@@ -0,0 +1,19 @@
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 Primary: Story;
6
+ export declare const Secondary: Story;
7
+ export declare const Tertiary: Story;
8
+ export declare const Text: Story;
9
+ export declare const PrimaryDestructive: Story;
10
+ export declare const SecondaryDestructive: Story;
11
+ export declare const TextDestructive: Story;
12
+ export declare const PrimaryDisabled: Story;
13
+ export declare const SecondaryDisabled: Story;
14
+ export declare const TertiaryDisabled: Story;
15
+ export declare const TextDisabled: Story;
16
+ export declare const Medium: Story;
17
+ export declare const Small: Story;
18
+ export declare const CustomWithAnchorChildren: Story;
19
+ export declare const CustomWithButtonChildren: Story;
@@ -0,0 +1,8 @@
1
+ import { DsCarouselIndicatorAttrs } from '@cupra/ui-kit/react/types/ds-carousel-indicator';
2
+ import { type ReactElement } from 'react';
3
+ import '@cupra/ui-kit/react';
4
+ type CarouselIndicatorProps = DsCarouselIndicatorAttrs & {
5
+ className?: string;
6
+ };
7
+ export declare function CarouselIndicator(props: CarouselIndicatorProps): ReactElement;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import "../../packages/ui-kit/dist-react/index.js";
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
+ };
@@ -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 InfiniteStart: Story;
6
+ export declare const InfiniteCenter: Story;
7
+ export declare const InfiniteEnd: Story;
8
+ export declare const NotInfinite: Story;
@@ -0,0 +1,9 @@
1
+ import { type ReactElement } from 'react';
2
+ import '@cupra/ui-kit/react';
3
+ import { DsCheckboxAttrs } from '@cupra/ui-kit/react/types/ds-checkbox';
4
+ interface CheckboxProps extends DsCheckboxAttrs {
5
+ onChange?: (event: CustomEvent) => void;
6
+ children: JSX.Element | JSX.Element[] | string;
7
+ }
8
+ export declare function Checkbox({ onChange, children, ...rest }: CheckboxProps): ReactElement;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ 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 });
8
+ }
9
+ export {
10
+ s as Checkbox
11
+ };
@@ -0,0 +1,20 @@
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 Unchecked: Story;
6
+ export declare const Checked: Story;
7
+ export declare const Indeterminate: Story;
8
+ export declare const DisabledUnchecked: Story;
9
+ export declare const DisabledChecked: Story;
10
+ export declare const DisabledIndeterminate: Story;
11
+ export declare const Invalid: Story;
12
+ export declare const RequiredChecked: Story;
13
+ export declare const WithHelperText: Story;
14
+ export declare const WithInfoText: Story;
15
+ export declare const ForcedError: Story;
16
+ export declare const CheckedForcedError: Story;
17
+ export declare const SmallLeftDefault: Story;
18
+ export declare const SmallRightDefault: Story;
19
+ export declare const MediumLeftDefault: Story;
20
+ export declare const MediumRightDefault: Story;
@@ -0,0 +1,9 @@
1
+ import { DsChipAttrs } from '@cupra/ui-kit/react/types/ds-chip';
2
+ import { type ReactElement } from 'react';
3
+ import '@cupra/ui-kit/react';
4
+ type ChipProps = DsChipAttrs & {
5
+ className?: string;
6
+ children: JSX.Element | JSX.Element[] | string;
7
+ };
8
+ export declare function Chip(props: ChipProps): ReactElement;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import "../../packages/ui-kit/dist-react/index.js";
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
+ };
@@ -0,0 +1,7 @@
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 Default: Story;
6
+ export declare const Selected: Story;
7
+ export declare const DeselectableSelected: Story;
@@ -0,0 +1,10 @@
1
+ import { type DsChipsAttrs } from '@cupra/ui-kit/react/types/ds-chips';
2
+ import { type ReactElement } from 'react';
3
+ import '@cupra/ui-kit/react';
4
+ type ChipsProps = DsChipsAttrs & {
5
+ className?: string;
6
+ children: JSX.Element | JSX.Element[] | string;
7
+ onChange?: (event: CustomEvent) => void;
8
+ };
9
+ export declare function Chips(props: ChipsProps): ReactElement;
10
+ export {};
@@ -0,0 +1,13 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import "../../packages/ui-kit/dist-react/index.js";
3
+ import "react";
4
+ 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
8
+ });
9
+ return /* @__PURE__ */ c("ds-chips-react", { ref: n, class: s, ...t, children: o });
10
+ }
11
+ export {
12
+ d as Chips
13
+ };
@@ -0,0 +1,5 @@
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 Default: Story;
@@ -0,0 +1,8 @@
1
+ import { type ReactElement } from 'react';
2
+ import '@cupra/ui-kit/react';
3
+ import { DsCurrencyAttrs } from '@cupra/ui-kit/react/types/ds-currency';
4
+ type CurrencyProps = DsCurrencyAttrs & {
5
+ className?: string;
6
+ };
7
+ export declare function Currency(props: CurrencyProps): ReactElement;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import "../../packages/ui-kit/dist-react/index.js";
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
+ };
@@ -0,0 +1,13 @@
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 Colossal: Story;
6
+ export declare const Huge: Story;
7
+ export declare const Big: Story;
8
+ export declare const Large: Story;
9
+ export declare const Medium: Story;
10
+ export declare const Small: Story;
11
+ export declare const Tiny: Story;
12
+ export declare const Micro: Story;
13
+ export declare const Nano: Story;
@@ -0,0 +1,11 @@
1
+ import { DsDialogAttrs } from '@cupra/ui-kit/react/types/ds-dialog';
2
+ import { type ReactNode } from 'react';
3
+ import '@cupra/ui-kit/react';
4
+ type DialogProps = DsDialogAttrs & {
5
+ className?: string;
6
+ withPortal?: boolean;
7
+ children: JSX.Element | JSX.Element[] | string;
8
+ onClose?: (event: CustomEvent) => void;
9
+ };
10
+ export declare function Dialog(props: DialogProps): ReactNode;
11
+ export {};
@@ -0,0 +1,15 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import "../../packages/ui-kit/dist-react/index.js";
3
+ 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({
7
+ "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;
12
+ }
13
+ export {
14
+ u as Dialog
15
+ };
@@ -0,0 +1,5 @@
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 Default: Story;
@@ -0,0 +1,9 @@
1
+ import { DsDialogBodyAttrs } from '@cupra/ui-kit/react/types/ds-dialog-body';
2
+ import { type ReactElement } from 'react';
3
+ import '@cupra/ui-kit/react';
4
+ type DialogBodyProps = DsDialogBodyAttrs & {
5
+ className?: string;
6
+ children?: JSX.Element | JSX.Element[] | string;
7
+ };
8
+ export declare function DialogBody(props: DialogBodyProps): ReactElement;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import "../../packages/ui-kit/dist-react/index.js";
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
+ };
@@ -0,0 +1,5 @@
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 Default: Story;