@cupra/ui-react 2.0.0-canary.101 → 2.0.0-canary.102

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 (197) hide show
  1. package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -0
  2. package/dist/cjs/components/Accordion/Accordion.cjs +1 -1
  3. package/dist/cjs/components/Avatar/Avatar.cjs +1 -1
  4. package/dist/cjs/components/Badge/Badge.cjs +1 -1
  5. package/dist/cjs/components/BasicCard/BasicCard.cjs +1 -1
  6. package/dist/cjs/components/BasicCardHeader/BasicCardHeader.cjs +1 -1
  7. package/dist/cjs/components/BasicCardImage/BasicCardImage.cjs +1 -1
  8. package/dist/cjs/components/BasicCardSection/BasicCardSection.cjs +1 -1
  9. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.cjs +1 -1
  10. package/dist/cjs/components/BreadcrumbsItem/BreadcrumbsItem.cjs +1 -1
  11. package/dist/cjs/components/Bullets/Bullets.cjs +1 -1
  12. package/dist/cjs/components/Button/Button.cjs +1 -1
  13. package/dist/cjs/components/Calendar/Calendar.cjs +1 -1
  14. package/dist/cjs/components/CarouselIndicator/CarouselIndicator.cjs +1 -1
  15. package/dist/cjs/components/Checkbox/Checkbox.cjs +1 -1
  16. package/dist/cjs/components/CheckboxGroup/CheckboxGroup.cjs +1 -1
  17. package/dist/cjs/components/Chip/Chip.cjs +1 -1
  18. package/dist/cjs/components/Chips/Chips.cjs +1 -1
  19. package/dist/cjs/components/Currency/Currency.cjs +1 -1
  20. package/dist/cjs/components/DatePicker/DatePicker.cjs +1 -1
  21. package/dist/cjs/components/Dialog/Dialog.cjs +1 -1
  22. package/dist/cjs/components/DialogBody/DialogBody.cjs +1 -1
  23. package/dist/cjs/components/DialogFooter/DialogFooter.cjs +1 -1
  24. package/dist/cjs/components/DialogFullscreen/DialogFullscreen.cjs +1 -1
  25. package/dist/cjs/components/DialogHeader/DialogHeader.cjs +1 -1
  26. package/dist/cjs/components/Divider/Divider.cjs +1 -1
  27. package/dist/cjs/components/Drawer/Drawer.cjs +1 -1
  28. package/dist/cjs/components/FavouriteAction/FavouriteAction.cjs +1 -1
  29. package/dist/cjs/components/Hyperlink/Hyperlink.cjs +1 -1
  30. package/dist/cjs/components/Icon/Icon.cjs +1 -1
  31. package/dist/cjs/components/IconButton/IconButton.cjs +1 -1
  32. package/dist/cjs/components/IconButtonGroup/IconButtonGroup.cjs +1 -1
  33. package/dist/cjs/components/InlineAlert/InlineAlert.cjs +1 -1
  34. package/dist/cjs/components/Input/Input.cjs +1 -1
  35. package/dist/cjs/components/InteractiveCard/InteractiveCard.cjs +1 -1
  36. package/dist/cjs/components/LinkButton/LinkButton.cjs +1 -1
  37. package/dist/cjs/components/List/List.cjs +1 -1
  38. package/dist/cjs/components/ListItem/ListItem.cjs +1 -1
  39. package/dist/cjs/components/Loader/Loader.cjs +1 -1
  40. package/dist/cjs/components/Logo/Logo.cjs +1 -1
  41. package/dist/cjs/components/MainTitle/MainTitle.cjs +1 -1
  42. package/dist/cjs/components/MapPin/MapPin.cjs +1 -1
  43. package/dist/cjs/components/MediaControl/MediaControl.cjs +1 -1
  44. package/dist/cjs/components/Modal/Modal.cjs +2 -2
  45. package/dist/cjs/components/NavigationControls/NavigationControls.cjs +1 -1
  46. package/dist/cjs/components/PasswordInput/PasswordInput.cjs +1 -1
  47. package/dist/cjs/components/PickerItem/PickerItem.cjs +1 -1
  48. package/dist/cjs/components/Radio/Radio.cjs +1 -1
  49. package/dist/cjs/components/RadioButton/RadioButton.cjs +1 -1
  50. package/dist/cjs/components/RadioButtonGroup/RadioButtonGroup.cjs +1 -1
  51. package/dist/cjs/components/Rating/Rating.cjs +1 -1
  52. package/dist/cjs/components/Search/Search.cjs +1 -1
  53. package/dist/cjs/components/SearchInput/SearchInput.cjs +1 -1
  54. package/dist/cjs/components/SecondaryNavigation/SecondaryNavigation.cjs +1 -1
  55. package/dist/cjs/components/SegmentedControl/SegmentedControl.cjs +1 -1
  56. package/dist/cjs/components/Select/Select.cjs +1 -1
  57. package/dist/cjs/components/Selection/Selection.cjs +1 -1
  58. package/dist/cjs/components/SidebarNavigation/SidebarNavigation.cjs +1 -1
  59. package/dist/cjs/components/Skeleton/Skeleton.cjs +1 -1
  60. package/dist/cjs/components/Slider/Slider.cjs +1 -1
  61. package/dist/cjs/components/StaticBox/StaticBox.cjs +1 -1
  62. package/dist/cjs/components/Stepper/Stepper.cjs +1 -1
  63. package/dist/cjs/components/Table/Table.cjs +1 -1
  64. package/dist/cjs/components/TableCell/TableCell.cjs +1 -1
  65. package/dist/cjs/components/TableRow/TableRow.cjs +1 -1
  66. package/dist/cjs/components/Tabs/Tabs.cjs +1 -1
  67. package/dist/cjs/components/Tag/Tag.cjs +1 -1
  68. package/dist/cjs/components/Text/Text.cjs +1 -1
  69. package/dist/cjs/components/TextInput/TextInput.cjs +1 -1
  70. package/dist/cjs/components/Textarea/Textarea.cjs +1 -1
  71. package/dist/cjs/components/ThemeProvider/ThemeProvider.cjs +1 -1
  72. package/dist/cjs/components/Toast/Toast.cjs +1 -1
  73. package/dist/cjs/components/ToastMessage/ToastMessage.cjs +1 -1
  74. package/dist/cjs/components/ToggleButton/ToggleButton.cjs +1 -1
  75. package/dist/cjs/components/ToggleSwitch/ToggleSwitch.cjs +1 -1
  76. package/dist/cjs/components/Tooltip/Tooltip.cjs +1 -1
  77. package/dist/cjs/components/ValueUnit/ValueUnit.cjs +1 -1
  78. package/dist/cjs/components/index.cjs +1 -0
  79. package/dist/cjs/hooks/index.cjs +1 -0
  80. package/dist/cjs/hooks/useBreakpoint.cjs +1 -1
  81. package/dist/cjs/hooks/useEventListeners.cjs +1 -1
  82. package/dist/cjs/hooks/useHandleEvent.cjs +1 -1
  83. package/dist/cjs/hooks/useLoadScript.cjs +1 -0
  84. package/dist/cjs/hooks/useResizeObserver/useResizeObserver.cjs +1 -1
  85. package/dist/cjs/index.cjs +1 -1
  86. package/dist/cjs/node_modules/.pnpm/@emotion_is-prop-valid@1.2.2/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.cjs +1 -1
  87. package/dist/cjs/node_modules/.pnpm/@emotion_memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +1 -1
  88. package/dist/cjs/node_modules/.pnpm/@emotion_unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs +1 -1
  89. package/dist/cjs/node_modules/.pnpm/shallowequal@1.1.0/node_modules/shallowequal/index.cjs +1 -0
  90. package/dist/cjs/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.cjs +22 -12
  91. package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.cjs +1 -1
  92. package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.cjs +1 -1
  93. package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.cjs +1 -1
  94. package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.cjs +1 -1
  95. package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.cjs +1 -1
  96. package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.cjs +1 -1
  97. package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.cjs +1 -1
  98. package/dist/cjs/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.cjs +1 -1
  99. package/dist/esm/_virtual/_rolldown/runtime.js +13 -0
  100. package/dist/esm/components/Accordion/Accordion.js +15 -7
  101. package/dist/esm/components/Avatar/Avatar.js +18 -10
  102. package/dist/esm/components/Badge/Badge.js +8 -5
  103. package/dist/esm/components/BasicCard/BasicCard.js +18 -13
  104. package/dist/esm/components/BasicCardHeader/BasicCardHeader.js +25 -16
  105. package/dist/esm/components/BasicCardImage/BasicCardImage.js +10 -6
  106. package/dist/esm/components/BasicCardSection/BasicCardSection.js +11 -7
  107. package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +11 -7
  108. package/dist/esm/components/BreadcrumbsItem/BreadcrumbsItem.js +17 -11
  109. package/dist/esm/components/Bullets/Bullets.js +8 -5
  110. package/dist/esm/components/Button/Button.js +15 -19
  111. package/dist/esm/components/Calendar/Calendar.js +13 -10
  112. package/dist/esm/components/CarouselIndicator/CarouselIndicator.js +10 -7
  113. package/dist/esm/components/Checkbox/Checkbox.js +13 -10
  114. package/dist/esm/components/CheckboxGroup/CheckboxGroup.js +13 -8
  115. package/dist/esm/components/Chip/Chip.js +11 -7
  116. package/dist/esm/components/Chips/Chips.js +14 -12
  117. package/dist/esm/components/Currency/Currency.js +10 -7
  118. package/dist/esm/components/DatePicker/DatePicker.js +28 -14
  119. package/dist/esm/components/Dialog/Dialog.js +15 -13
  120. package/dist/esm/components/DialogBody/DialogBody.js +11 -7
  121. package/dist/esm/components/DialogFooter/DialogFooter.js +11 -7
  122. package/dist/esm/components/DialogFullscreen/DialogFullscreen.js +15 -13
  123. package/dist/esm/components/DialogHeader/DialogHeader.js +11 -7
  124. package/dist/esm/components/Divider/Divider.js +9 -6
  125. package/dist/esm/components/Drawer/Drawer.js +27 -17
  126. package/dist/esm/components/FavouriteAction/FavouriteAction.js +19 -26
  127. package/dist/esm/components/Hyperlink/Hyperlink.js +13 -10
  128. package/dist/esm/components/Icon/Icon.js +10 -6
  129. package/dist/esm/components/IconButton/IconButton.js +14 -18
  130. package/dist/esm/components/IconButtonGroup/IconButtonGroup.js +11 -7
  131. package/dist/esm/components/InlineAlert/InlineAlert.js +14 -12
  132. package/dist/esm/components/Input/Input.js +19 -13
  133. package/dist/esm/components/InteractiveCard/InteractiveCard.js +37 -25
  134. package/dist/esm/components/LinkButton/LinkButton.js +13 -10
  135. package/dist/esm/components/List/List.js +10 -6
  136. package/dist/esm/components/ListItem/ListItem.js +15 -11
  137. package/dist/esm/components/Loader/Loader.js +23 -18
  138. package/dist/esm/components/Logo/Logo.js +10 -7
  139. package/dist/esm/components/MainTitle/MainTitle.js +26 -15
  140. package/dist/esm/components/MapPin/MapPin.js +12 -10
  141. package/dist/esm/components/MediaControl/MediaControl.js +16 -10
  142. package/dist/esm/components/Modal/Modal.js +40 -37
  143. package/dist/esm/components/NavigationControls/NavigationControls.js +11 -7
  144. package/dist/esm/components/PasswordInput/PasswordInput.js +30 -38
  145. package/dist/esm/components/PickerItem/PickerItem.js +14 -19
  146. package/dist/esm/components/Radio/Radio.js +19 -12
  147. package/dist/esm/components/RadioButton/RadioButton.js +13 -8
  148. package/dist/esm/components/RadioButtonGroup/RadioButtonGroup.js +13 -8
  149. package/dist/esm/components/Rating/Rating.js +10 -7
  150. package/dist/esm/components/Search/Search.js +11 -6
  151. package/dist/esm/components/SearchInput/SearchInput.js +28 -44
  152. package/dist/esm/components/SecondaryNavigation/SecondaryNavigation.js +23 -15
  153. package/dist/esm/components/SegmentedControl/SegmentedControl.js +14 -10
  154. package/dist/esm/components/Select/Select.js +8 -5
  155. package/dist/esm/components/Selection/Selection.js +10 -7
  156. package/dist/esm/components/SidebarNavigation/SidebarNavigation.js +26 -12
  157. package/dist/esm/components/Skeleton/Skeleton.js +9 -6
  158. package/dist/esm/components/Slider/Slider.js +14 -18
  159. package/dist/esm/components/StaticBox/StaticBox.js +15 -19
  160. package/dist/esm/components/Stepper/Stepper.js +7 -4
  161. package/dist/esm/components/Table/Table.js +11 -7
  162. package/dist/esm/components/TableCell/TableCell.js +11 -7
  163. package/dist/esm/components/TableRow/TableRow.js +11 -7
  164. package/dist/esm/components/Tabs/Tabs.js +26 -16
  165. package/dist/esm/components/Tag/Tag.js +14 -10
  166. package/dist/esm/components/Text/Text.js +11 -7
  167. package/dist/esm/components/TextInput/TextInput.js +32 -45
  168. package/dist/esm/components/Textarea/Textarea.js +34 -58
  169. package/dist/esm/components/ThemeProvider/ThemeProvider.js +8 -5
  170. package/dist/esm/components/Toast/Toast.js +12 -13
  171. package/dist/esm/components/ToastMessage/ToastMessage.js +14 -12
  172. package/dist/esm/components/ToggleButton/ToggleButton.js +12 -10
  173. package/dist/esm/components/ToggleSwitch/ToggleSwitch.js +27 -19
  174. package/dist/esm/components/Tooltip/Tooltip.js +26 -14
  175. package/dist/esm/components/ValueUnit/ValueUnit.js +17 -10
  176. package/dist/esm/components/index.js +76 -0
  177. package/dist/esm/hooks/index.js +5 -0
  178. package/dist/esm/hooks/useBreakpoint.js +41 -40
  179. package/dist/esm/hooks/useEventListeners.js +20 -25
  180. package/dist/esm/hooks/useHandleEvent.js +24 -24
  181. package/dist/esm/hooks/useLoadScript.js +1 -0
  182. package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +13 -13
  183. package/dist/esm/index.js +82 -163
  184. package/dist/esm/node_modules/.pnpm/@emotion_is-prop-valid@1.2.2/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +7 -10
  185. package/dist/esm/node_modules/.pnpm/@emotion_memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +8 -8
  186. package/dist/esm/node_modules/.pnpm/@emotion_unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +50 -51
  187. package/dist/esm/node_modules/.pnpm/shallowequal@1.1.0/node_modules/shallowequal/index.js +22 -0
  188. package/dist/esm/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 +630 -529
  189. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.js +4 -12
  190. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.js +37 -46
  191. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.js +88 -126
  192. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.js +114 -186
  193. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.js +18 -25
  194. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.js +111 -145
  195. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.js +42 -56
  196. package/dist/esm/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js +11 -16
  197. package/package.json +8 -12
@@ -1,20 +1,16 @@
1
- import { jsx as n } from "react/jsx-runtime";
1
+ import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
2
+ import "../../hooks/index.js";
3
+ import { jsx as t } from "react/jsx-runtime";
2
4
  import "@cupra/ui-kit/react/ds-slider";
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: t, children: m, size: r, onChange: o, ...s } = e, { ref: i } = c({ change: o });
8
- return /* @__PURE__ */ n(
9
- "ds-slider-react",
10
- {
11
- ref: i,
12
- size: typeof r == "string" ? r : JSON.stringify(r),
13
- class: t,
14
- ...s
15
- }
16
- );
5
+ //#region src/components/Slider/Slider.tsx
6
+ function n(n) {
7
+ let { className: r, children: i, size: a, onChange: o, ...s } = n, { ref: c } = e({ change: o });
8
+ return /* @__PURE__ */ t("ds-slider-react", {
9
+ ref: c,
10
+ size: typeof a == "string" ? a : JSON.stringify(a),
11
+ class: r,
12
+ ...s
13
+ });
17
14
  }
18
- export {
19
- g as Slider
20
- };
15
+ //#endregion
16
+ export { n as Slider };
@@ -1,21 +1,17 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import "@cupra/ui-kit/react/utils/breakpoints";
3
- import "react";
4
- import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
1
+ import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
2
+ import "../../hooks/index.js";
3
+ import { jsx as t } from "react/jsx-runtime";
5
4
  import "@cupra/ui-kit/react/ds-static-box";
6
- function x(r) {
7
- const { className: o, children: s, size: t, ...i } = r, { ref: e } = c({});
8
- return /* @__PURE__ */ n(
9
- "ds-static-box-react",
10
- {
11
- ref: e,
12
- size: typeof t == "string" ? t : JSON.stringify(t),
13
- class: o,
14
- ...i,
15
- children: s
16
- }
17
- );
5
+ //#region src/components/StaticBox/StaticBox.tsx
6
+ function n(n) {
7
+ let { className: r, children: i, size: a, ...o } = n, { ref: s } = e({});
8
+ return /* @__PURE__ */ t("ds-static-box-react", {
9
+ ref: s,
10
+ size: typeof a == "string" ? a : JSON.stringify(a),
11
+ class: r,
12
+ ...o,
13
+ children: i
14
+ });
18
15
  }
19
- export {
20
- x as StaticBox
21
- };
16
+ //#endregion
17
+ export { n as StaticBox };
@@ -1,6 +1,9 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import "@cupra/ui-kit/react/ds-stepper";
3
- const o = ({ className: r, ...t }) => /* @__PURE__ */ e("ds-stepper-react", { class: r, ...t });
4
- export {
5
- o as Stepper
6
- };
3
+ //#region src/components/Stepper/Stepper.tsx
4
+ var t = ({ className: t, ...n }) => /* @__PURE__ */ e("ds-stepper-react", {
5
+ class: t,
6
+ ...n
7
+ });
8
+ //#endregion
9
+ export { t as Stepper };
@@ -1,9 +1,13 @@
1
- import { jsx as a } from "react/jsx-runtime";
1
+ import { jsx as e } from "react/jsx-runtime";
2
2
  import "@cupra/ui-kit/react/ds-table";
3
- function l(r) {
4
- const { children: t, className: e, ...s } = r;
5
- return /* @__PURE__ */ a("ds-table-react", { class: e, ...s, children: t });
3
+ //#region src/components/Table/Table.tsx
4
+ function t(t) {
5
+ let { children: n, className: r, ...i } = t;
6
+ return /* @__PURE__ */ e("ds-table-react", {
7
+ class: r,
8
+ ...i,
9
+ children: n
10
+ });
6
11
  }
7
- export {
8
- l as Table
9
- };
12
+ //#endregion
13
+ export { t as Table };
@@ -1,9 +1,13 @@
1
- import { jsx as s } from "react/jsx-runtime";
1
+ import { jsx as e } from "react/jsx-runtime";
2
2
  import "@cupra/ui-kit/react/ds-table-cell";
3
- function o(e) {
4
- const { children: l, className: r, ...t } = e;
5
- return /* @__PURE__ */ s("ds-table-cell-react", { class: r, ...t, children: l });
3
+ //#region src/components/TableCell/TableCell.tsx
4
+ function t(t) {
5
+ let { children: n, className: r, ...i } = t;
6
+ return /* @__PURE__ */ e("ds-table-cell-react", {
7
+ class: r,
8
+ ...i,
9
+ children: n
10
+ });
6
11
  }
7
- export {
8
- o as TableCell
9
- };
12
+ //#endregion
13
+ export { t as TableCell };
@@ -1,9 +1,13 @@
1
- import { jsx as s } from "react/jsx-runtime";
1
+ import { jsx as e } from "react/jsx-runtime";
2
2
  import "@cupra/ui-kit/react/ds-table-row";
3
- function l(r) {
4
- const { children: t, className: e, ...o } = r;
5
- return /* @__PURE__ */ s("ds-table-row-react", { class: e, ...o, children: t });
3
+ //#region src/components/TableRow/TableRow.tsx
4
+ function t(t) {
5
+ let { children: n, className: r, ...i } = t;
6
+ return /* @__PURE__ */ e("ds-table-row-react", {
7
+ class: r,
8
+ ...i,
9
+ children: n
10
+ });
6
11
  }
7
- export {
8
- l as TableRow
9
- };
12
+ //#endregion
13
+ export { t as TableRow };
@@ -1,20 +1,30 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import "@cupra/ui-kit/react/utils/breakpoints";
3
- import "react";
4
- import { useHandleEvent as i } from "../../hooks/useHandleEvent.js";
1
+ import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
2
+ import "../../hooks/index.js";
3
+ import { jsx as t } from "react/jsx-runtime";
5
4
  import "@cupra/ui-kit/react/ds-tabs";
6
- function n({ children: t, onChange: e, ...o }) {
7
- const { ref: a } = i({ change: e });
8
- return /* @__PURE__ */ r("ds-tabs-react", { ref: a, ...o, children: t });
5
+ //#region src/components/Tabs/Tabs.tsx
6
+ function n({ children: n, onChange: r, ...i }) {
7
+ let { ref: a } = e({ change: r });
8
+ return /* @__PURE__ */ t("ds-tabs-react", {
9
+ ref: a,
10
+ ...i,
11
+ children: n
12
+ });
9
13
  }
10
- function l({ children: t }) {
11
- return /* @__PURE__ */ r("div", { role: "tab", slot: "tab", children: t });
14
+ function r({ children: e }) {
15
+ return /* @__PURE__ */ t("div", {
16
+ role: "tab",
17
+ slot: "tab",
18
+ children: e
19
+ });
12
20
  }
13
- function p({ children: t }) {
14
- return /* @__PURE__ */ r("div", { role: "tabpanel", slot: "panel", children: t });
21
+ function i({ children: e }) {
22
+ return /* @__PURE__ */ t("div", {
23
+ role: "tabpanel",
24
+ slot: "panel",
25
+ children: e
26
+ });
15
27
  }
16
- n.Tab = l;
17
- n.Panel = p;
18
- export {
19
- n as Tabs
20
- };
28
+ n.Tab = r, n.Panel = i;
29
+ //#endregion
30
+ export { n as Tabs };
@@ -1,12 +1,16 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import "@cupra/ui-kit/react/utils/breakpoints";
3
- import "react";
4
- import { useHandleEvent as s } from "../../hooks/useHandleEvent.js";
1
+ import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
2
+ import "../../hooks/index.js";
3
+ import { jsx as t } from "react/jsx-runtime";
5
4
  import "@cupra/ui-kit/react/ds-tag";
6
- function d(o) {
7
- const { children: r, onClickIcon: t, className: c, ...n } = o, { ref: e } = s({ clickicon: t });
8
- return /* @__PURE__ */ i("ds-tag-react", { ref: e, class: c, ...n, children: r });
5
+ //#region src/components/Tag/Tag.tsx
6
+ function n(n) {
7
+ let { children: r, onClickIcon: i, className: a, ...o } = n, { ref: s } = e({ clickicon: i });
8
+ return /* @__PURE__ */ t("ds-tag-react", {
9
+ ref: s,
10
+ class: a,
11
+ ...o,
12
+ children: r
13
+ });
9
14
  }
10
- export {
11
- d as Tag
12
- };
15
+ //#endregion
16
+ export { n as Tag };
@@ -1,9 +1,13 @@
1
- import { jsx as s } from "react/jsx-runtime";
1
+ import { jsx as e } from "react/jsx-runtime";
2
2
  import "@cupra/ui-kit/react/ds-text";
3
- function a(t) {
4
- const { className: r, children: e, ...o } = t;
5
- return /* @__PURE__ */ s("ds-text-react", { class: r, ...o, children: e });
3
+ //#region src/components/Text/Text.tsx
4
+ function t(t) {
5
+ let { className: n, children: r, ...i } = t;
6
+ return /* @__PURE__ */ e("ds-text-react", {
7
+ class: n,
8
+ ...i,
9
+ children: r
10
+ });
6
11
  }
7
- export {
8
- a as Text
9
- };
12
+ //#endregion
13
+ export { t as Text };
@@ -1,47 +1,34 @@
1
- import { jsxs as b, jsx as t } from "react/jsx-runtime";
1
+ import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
2
+ import "../../hooks/index.js";
3
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
4
  import "@cupra/ui-kit/react/ds-text-input";
3
- import "@cupra/ui-kit/react/utils/breakpoints";
4
- import "react";
5
- import { useHandleEvent as I } from "../../hooks/useHandleEvent.js";
6
- function q(n) {
7
- const {
8
- className: r,
9
- children: j,
10
- onChange: o,
11
- onInput: l,
12
- onKeyDown: p,
13
- inputId: e,
14
- placeHolder: i,
15
- type: a,
16
- value: d,
17
- label: s,
18
- required: c,
19
- disabled: m,
20
- readOnly: u,
21
- pattern: h,
22
- maxLength: x,
23
- minLength: y,
24
- ...f
25
- } = n, { ref: g } = I({ change: o, input: l, keydown: p });
26
- return /* @__PURE__ */ b("ds-text-input-react", { ref: g, class: r, ...f, children: [
27
- /* @__PURE__ */ t("label", { htmlFor: e, children: s }),
28
- /* @__PURE__ */ t(
29
- "input",
30
- {
31
- id: e,
32
- type: a || "text",
33
- placeholder: i,
34
- value: d,
35
- required: c,
36
- disabled: m,
37
- readOnly: u,
38
- minLength: y,
39
- maxLength: x,
40
- pattern: h
41
- }
42
- )
43
- ] });
5
+ //#region src/components/TextInput/TextInput.tsx
6
+ function r(r) {
7
+ let { className: i, children: a, onChange: o, onInput: s, onKeyDown: c, inputId: l, placeHolder: u, type: d, value: f, label: p, required: m, disabled: h, readOnly: g, pattern: _, maxLength: v, minLength: y, ...b } = r, { ref: x } = e({
8
+ change: o,
9
+ input: s,
10
+ keydown: c
11
+ });
12
+ return /* @__PURE__ */ n("ds-text-input-react", {
13
+ ref: x,
14
+ class: i,
15
+ ...b,
16
+ children: [/* @__PURE__ */ t("label", {
17
+ htmlFor: l,
18
+ children: p
19
+ }), /* @__PURE__ */ t("input", {
20
+ id: l,
21
+ type: d || "text",
22
+ placeholder: u,
23
+ value: f,
24
+ required: m,
25
+ disabled: h,
26
+ readOnly: g,
27
+ minLength: y,
28
+ maxLength: v,
29
+ pattern: _
30
+ })]
31
+ });
44
32
  }
45
- export {
46
- q as TextInput
47
- };
33
+ //#endregion
34
+ export { r as TextInput };
@@ -1,60 +1,36 @@
1
- import { jsxs as j, jsx as r } from "react/jsx-runtime";
1
+ import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
2
+ import "../../hooks/index.js";
3
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
4
  import "@cupra/ui-kit/react/ds-textarea";
3
- import "@cupra/ui-kit/react/utils/breakpoints";
4
- import "react";
5
- import { useHandleEvent as I } from "../../hooks/useHandleEvent.js";
6
- function F(t) {
7
- const {
8
- className: o,
9
- children: L,
10
- onChange: a,
11
- onInput: n,
12
- textareaId: e,
13
- placeholder: l,
14
- value: i,
15
- label: d,
16
- required: s,
17
- disabled: c,
18
- readOnly: h,
19
- minLength: p,
20
- maxLength: m,
21
- rows: x,
22
- cols: u,
23
- forcedError: f,
24
- helperText: g,
25
- invalidError: v,
26
- ...b
27
- } = t, { ref: E } = I({ change: a, input: n });
28
- return /* @__PURE__ */ j(
29
- "ds-textarea-react",
30
- {
31
- ref: E,
32
- class: o,
33
- "forced-error": f,
34
- "helper-text": g,
35
- "invalid-error": v,
36
- ...b,
37
- children: [
38
- /* @__PURE__ */ r("label", { htmlFor: e, children: d }),
39
- /* @__PURE__ */ r(
40
- "textarea",
41
- {
42
- id: e,
43
- placeholder: l,
44
- value: i,
45
- required: s,
46
- disabled: c,
47
- readOnly: h,
48
- minLength: p,
49
- maxLength: m,
50
- rows: x,
51
- cols: u
52
- }
53
- )
54
- ]
55
- }
56
- );
5
+ //#region src/components/Textarea/Textarea.tsx
6
+ function r(r) {
7
+ let { className: i, children: a, onChange: o, onInput: s, textareaId: c, placeholder: l, value: u, label: d, required: f, disabled: p, readOnly: m, minLength: h, maxLength: g, rows: _, cols: v, forcedError: y, helperText: b, invalidError: x, ...S } = r, { ref: C } = e({
8
+ change: o,
9
+ input: s
10
+ });
11
+ return /* @__PURE__ */ n("ds-textarea-react", {
12
+ ref: C,
13
+ class: i,
14
+ "forced-error": y,
15
+ "helper-text": b,
16
+ "invalid-error": x,
17
+ ...S,
18
+ children: [/* @__PURE__ */ t("label", {
19
+ htmlFor: c,
20
+ children: d
21
+ }), /* @__PURE__ */ t("textarea", {
22
+ id: c,
23
+ placeholder: l,
24
+ value: u,
25
+ required: f,
26
+ disabled: p,
27
+ readOnly: m,
28
+ minLength: h,
29
+ maxLength: g,
30
+ rows: _,
31
+ cols: v
32
+ })]
33
+ });
57
34
  }
58
- export {
59
- F as Textarea
60
- };
35
+ //#endregion
36
+ export { r as Textarea };
@@ -1,6 +1,9 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsx as e } from "react/jsx-runtime";
2
2
  import "@cupra/ui-kit/react/ds-theme-provider";
3
- const i = ({ children: r, ...e }) => /* @__PURE__ */ o("ds-theme-provider-react", { ...e, children: r });
4
- export {
5
- i as ThemeProvider
6
- };
3
+ //#region src/components/ThemeProvider/ThemeProvider.tsx
4
+ var t = ({ children: t, ...n }) => /* @__PURE__ */ e("ds-theme-provider-react", {
5
+ ...n,
6
+ children: t
7
+ });
8
+ //#endregion
9
+ export { t as ThemeProvider };
@@ -1,16 +1,15 @@
1
- import { jsx as a } from "react/jsx-runtime";
1
+ import { jsx as e } from "react/jsx-runtime";
2
2
  import "@cupra/ui-kit/react/ds-toast";
3
- function e(t) {
4
- const { className: o, ...s } = t;
5
- return /* @__PURE__ */ a("ds-toast-react", { class: o, ...s });
3
+ //#region src/components/Toast/Toast.tsx
4
+ function t(t) {
5
+ let { className: n, ...r } = t;
6
+ return /* @__PURE__ */ e("ds-toast-react", {
7
+ class: n,
8
+ ...r
9
+ });
6
10
  }
7
- e.add = (t) => {
8
- window.dispatchEvent(
9
- new CustomEvent("toast:add", {
10
- detail: t
11
- })
12
- );
13
- };
14
- export {
15
- e as Toast
11
+ t.add = (e) => {
12
+ window.dispatchEvent(new CustomEvent("toast:add", { detail: e }));
16
13
  };
14
+ //#endregion
15
+ export { t as Toast };
@@ -1,14 +1,16 @@
1
- import { jsx as m } from "react/jsx-runtime";
1
+ import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
2
+ import "../../hooks/index.js";
3
+ import { jsx as t } from "react/jsx-runtime";
2
4
  import "@cupra/ui-kit/react/ds-toast-message";
3
- import "@cupra/ui-kit/react/utils/breakpoints";
4
- import "react";
5
- import { useHandleEvent as n } from "../../hooks/useHandleEvent.js";
6
- function d(o) {
7
- const { className: s, children: t, onClose: e, ...r } = o, { ref: a } = n({
8
- "toast:remove": e
9
- });
10
- return /* @__PURE__ */ m("ds-toast-message-react", { ref: a, class: s, ...r, children: t });
5
+ //#region src/components/ToastMessage/ToastMessage.tsx
6
+ function n(n) {
7
+ let { className: r, children: i, onClose: a, ...o } = n, { ref: s } = e({ "toast:remove": a });
8
+ return /* @__PURE__ */ t("ds-toast-message-react", {
9
+ ref: s,
10
+ class: r,
11
+ ...o,
12
+ children: i
13
+ });
11
14
  }
12
- export {
13
- d as ToastMessage
14
- };
15
+ //#endregion
16
+ export { n as ToastMessage };
@@ -1,12 +1,14 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import "@cupra/ui-kit/react/utils/breakpoints";
3
- import "react";
4
- import { useHandleEvent as n } from "../../hooks/useHandleEvent.js";
1
+ import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
2
+ import "../../hooks/index.js";
3
+ import { jsx as t } from "react/jsx-runtime";
5
4
  import "@cupra/ui-kit/react/ds-toggle-button";
6
- function c({ onChange: t, ...o }) {
7
- const { ref: r } = n({ change: t });
8
- return /* @__PURE__ */ e("ds-toggle-button-react", { ref: r, ...o });
5
+ //#region src/components/ToggleButton/ToggleButton.tsx
6
+ function n({ onChange: n, ...r }) {
7
+ let { ref: i } = e({ change: n });
8
+ return /* @__PURE__ */ t("ds-toggle-button-react", {
9
+ ref: i,
10
+ ...r
11
+ });
9
12
  }
10
- export {
11
- c as ToggleButton
12
- };
13
+ //#endregion
14
+ export { n as ToggleButton };
@@ -1,23 +1,31 @@
1
- import { jsxs as f, jsx as n } from "react/jsx-runtime";
2
- import "@cupra/ui-kit/react/utils/breakpoints";
3
- import "react";
4
- import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
1
+ import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
2
+ import "../../hooks/index.js";
3
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
5
4
  import "@cupra/ui-kit/react/ds-toggle-switch";
6
- function r({ label: t, onChange: i, ...o }) {
7
- const { ref: e } = c({ change: i });
8
- return /* @__PURE__ */ f("ds-toggle-switch-react", { ref: e, ...o, children: [
9
- t && /* @__PURE__ */ n("div", { slot: "label", children: t }),
10
- o.children
11
- ] });
5
+ //#region src/components/ToggleSwitch/ToggleSwitch.tsx
6
+ function r({ label: r, onChange: i, ...a }) {
7
+ let { ref: o } = e({ change: i });
8
+ return /* @__PURE__ */ n("ds-toggle-switch-react", {
9
+ ref: o,
10
+ ...a,
11
+ children: [r && /* @__PURE__ */ t("div", {
12
+ slot: "label",
13
+ children: r
14
+ }), a.children]
15
+ });
12
16
  }
13
- function l({ children: t }) {
14
- return /* @__PURE__ */ n("div", { slot: "off", children: t });
17
+ function i({ children: e }) {
18
+ return /* @__PURE__ */ t("div", {
19
+ slot: "off",
20
+ children: e
21
+ });
15
22
  }
16
- function s({ children: t }) {
17
- return /* @__PURE__ */ n("div", { slot: "on", children: t });
23
+ function a({ children: e }) {
24
+ return /* @__PURE__ */ t("div", {
25
+ slot: "on",
26
+ children: e
27
+ });
18
28
  }
19
- r.Off = l;
20
- r.On = s;
21
- export {
22
- r as ToggleSwitch
23
- };
29
+ r.Off = i, r.On = a;
30
+ //#endregion
31
+ export { r as ToggleSwitch };
@@ -1,15 +1,27 @@
1
- import { jsx as e } from "react/jsx-runtime";
1
+ import { IconButton as e } from "../IconButton/IconButton.js";
2
+ import { jsx as t } from "react/jsx-runtime";
2
3
  import "@cupra/ui-kit/react/ds-tooltip";
3
- import { IconButton as a } from "../IconButton/IconButton.js";
4
- const n = ({ children: t, ...o }) => /* @__PURE__ */ e("ds-tooltip-react", { ...o, children: t }), r = ({ children: t, ...o }) => /* @__PURE__ */ e("div", { slot: "header", ...o, children: t }), s = (t) => /* @__PURE__ */ e(a, { slot: "close-button", "icon-name": "cross", ...t }), l = ({ children: t, ...o }) => /* @__PURE__ */ e("div", { slot: "content", ...o, children: t }), i = ({ alt: t, ...o }) => /* @__PURE__ */ e("img", { alt: t ?? "", slot: "image", ...o });
5
- n.Header = r;
6
- n.CloseButton = s;
7
- n.Content = l;
8
- n.Img = i;
9
- r.displayName = "Tooltip.Header";
10
- s.displayName = "Tooltip.CloseButton";
11
- l.displayName = "Tooltip.Content";
12
- i.displayName = "Tooltip.Img";
13
- export {
14
- n as Tooltip
15
- };
4
+ //#region src/components/Tooltip/Tooltip.tsx
5
+ var n = ({ children: e, ...n }) => /* @__PURE__ */ t("ds-tooltip-react", {
6
+ ...n,
7
+ children: e
8
+ }), r = ({ children: e, ...n }) => /* @__PURE__ */ t("div", {
9
+ slot: "header",
10
+ ...n,
11
+ children: e
12
+ }), i = (n) => /* @__PURE__ */ t(e, {
13
+ slot: "close-button",
14
+ "icon-name": "cross",
15
+ ...n
16
+ }), a = ({ children: e, ...n }) => /* @__PURE__ */ t("div", {
17
+ slot: "content",
18
+ ...n,
19
+ children: e
20
+ }), o = ({ alt: e, ...n }) => /* @__PURE__ */ t("img", {
21
+ alt: e ?? "",
22
+ slot: "image",
23
+ ...n
24
+ });
25
+ n.Header = r, n.CloseButton = i, n.Content = a, n.Img = o, r.displayName = "Tooltip.Header", i.displayName = "Tooltip.CloseButton", a.displayName = "Tooltip.Content", o.displayName = "Tooltip.Img";
26
+ //#endregion
27
+ export { n as Tooltip };