@cupra/ui-react 2.0.0-canary.100 → 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.
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/components/Accordion/Accordion.cjs +1 -1
- package/dist/cjs/components/Avatar/Avatar.cjs +1 -1
- package/dist/cjs/components/Badge/Badge.cjs +1 -1
- package/dist/cjs/components/BasicCard/BasicCard.cjs +1 -1
- package/dist/cjs/components/BasicCardHeader/BasicCardHeader.cjs +1 -1
- package/dist/cjs/components/BasicCardImage/BasicCardImage.cjs +1 -1
- package/dist/cjs/components/BasicCardSection/BasicCardSection.cjs +1 -1
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.cjs +1 -1
- package/dist/cjs/components/BreadcrumbsItem/BreadcrumbsItem.cjs +1 -1
- package/dist/cjs/components/Bullets/Bullets.cjs +1 -1
- package/dist/cjs/components/Button/Button.cjs +1 -1
- package/dist/cjs/components/Calendar/Calendar.cjs +1 -1
- package/dist/cjs/components/CarouselIndicator/CarouselIndicator.cjs +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/CheckboxGroup.cjs +1 -1
- package/dist/cjs/components/Chip/Chip.cjs +1 -1
- package/dist/cjs/components/Chips/Chips.cjs +1 -1
- package/dist/cjs/components/Currency/Currency.cjs +1 -1
- package/dist/cjs/components/DatePicker/DatePicker.cjs +1 -1
- package/dist/cjs/components/Dialog/Dialog.cjs +1 -1
- package/dist/cjs/components/DialogBody/DialogBody.cjs +1 -1
- package/dist/cjs/components/DialogFooter/DialogFooter.cjs +1 -1
- package/dist/cjs/components/DialogFullscreen/DialogFullscreen.cjs +1 -1
- package/dist/cjs/components/DialogHeader/DialogHeader.cjs +1 -1
- package/dist/cjs/components/Divider/Divider.cjs +1 -1
- package/dist/cjs/components/Drawer/Drawer.cjs +1 -1
- package/dist/cjs/components/FavouriteAction/FavouriteAction.cjs +1 -1
- package/dist/cjs/components/Hyperlink/Hyperlink.cjs +1 -1
- package/dist/cjs/components/Icon/Icon.cjs +1 -1
- package/dist/cjs/components/IconButton/IconButton.cjs +1 -1
- package/dist/cjs/components/IconButtonGroup/IconButtonGroup.cjs +1 -1
- package/dist/cjs/components/InlineAlert/InlineAlert.cjs +1 -1
- package/dist/cjs/components/Input/Input.cjs +1 -1
- package/dist/cjs/components/InteractiveCard/InteractiveCard.cjs +1 -1
- package/dist/cjs/components/LinkButton/LinkButton.cjs +1 -1
- package/dist/cjs/components/List/List.cjs +1 -1
- package/dist/cjs/components/ListItem/ListItem.cjs +1 -1
- package/dist/cjs/components/Loader/Loader.cjs +1 -1
- package/dist/cjs/components/Logo/Logo.cjs +1 -1
- package/dist/cjs/components/MainTitle/MainTitle.cjs +1 -1
- package/dist/cjs/components/MapPin/MapPin.cjs +1 -1
- package/dist/cjs/components/MediaControl/MediaControl.cjs +1 -1
- package/dist/cjs/components/Modal/Modal.cjs +2 -2
- package/dist/cjs/components/NavigationControls/NavigationControls.cjs +1 -1
- package/dist/cjs/components/PasswordInput/PasswordInput.cjs +1 -1
- package/dist/cjs/components/PickerItem/PickerItem.cjs +1 -1
- package/dist/cjs/components/Radio/Radio.cjs +1 -1
- package/dist/cjs/components/RadioButton/RadioButton.cjs +1 -1
- package/dist/cjs/components/RadioButtonGroup/RadioButtonGroup.cjs +1 -1
- package/dist/cjs/components/Rating/Rating.cjs +1 -1
- package/dist/cjs/components/Search/Search.cjs +1 -1
- package/dist/cjs/components/SearchInput/SearchInput.cjs +1 -1
- package/dist/cjs/components/SecondaryNavigation/SecondaryNavigation.cjs +1 -1
- package/dist/cjs/components/SegmentedControl/SegmentedControl.cjs +1 -1
- package/dist/cjs/components/Select/Select.cjs +1 -1
- package/dist/cjs/components/Selection/Selection.cjs +1 -1
- package/dist/cjs/components/SidebarNavigation/SidebarNavigation.cjs +1 -1
- package/dist/cjs/components/Skeleton/Skeleton.cjs +1 -1
- package/dist/cjs/components/Slider/Slider.cjs +1 -1
- package/dist/cjs/components/StaticBox/StaticBox.cjs +1 -1
- package/dist/cjs/components/Stepper/Stepper.cjs +1 -1
- package/dist/cjs/components/Table/Table.cjs +1 -1
- package/dist/cjs/components/TableCell/TableCell.cjs +1 -1
- package/dist/cjs/components/TableRow/TableRow.cjs +1 -1
- package/dist/cjs/components/Tabs/Tabs.cjs +1 -1
- package/dist/cjs/components/Tag/Tag.cjs +1 -1
- package/dist/cjs/components/Text/Text.cjs +1 -1
- package/dist/cjs/components/TextInput/TextInput.cjs +1 -1
- package/dist/cjs/components/Textarea/Textarea.cjs +1 -1
- package/dist/cjs/components/ThemeProvider/ThemeProvider.cjs +1 -1
- package/dist/cjs/components/Toast/Toast.cjs +1 -1
- package/dist/cjs/components/ToastMessage/ToastMessage.cjs +1 -1
- package/dist/cjs/components/ToggleButton/ToggleButton.cjs +1 -1
- package/dist/cjs/components/ToggleSwitch/ToggleSwitch.cjs +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.cjs +1 -1
- package/dist/cjs/components/ValueUnit/ValueUnit.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -0
- package/dist/cjs/hooks/index.cjs +1 -0
- package/dist/cjs/hooks/useBreakpoint.cjs +1 -1
- package/dist/cjs/hooks/useEventListeners.cjs +1 -1
- package/dist/cjs/hooks/useHandleEvent.cjs +1 -1
- package/dist/cjs/hooks/useLoadScript.cjs +1 -0
- package/dist/cjs/hooks/useResizeObserver/useResizeObserver.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- 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
- package/dist/cjs/node_modules/.pnpm/@emotion_memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/@emotion_unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/shallowequal@1.1.0/node_modules/shallowequal/index.cjs +1 -0
- 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
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.cjs +1 -1
- package/dist/esm/_virtual/_rolldown/runtime.js +13 -0
- package/dist/esm/components/Accordion/Accordion.js +15 -7
- package/dist/esm/components/Avatar/Avatar.js +18 -10
- package/dist/esm/components/Badge/Badge.js +8 -5
- package/dist/esm/components/BasicCard/BasicCard.js +18 -13
- package/dist/esm/components/BasicCardHeader/BasicCardHeader.js +25 -16
- package/dist/esm/components/BasicCardImage/BasicCardImage.js +10 -6
- package/dist/esm/components/BasicCardSection/BasicCardSection.js +11 -7
- package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +11 -7
- package/dist/esm/components/BreadcrumbsItem/BreadcrumbsItem.js +17 -11
- package/dist/esm/components/Bullets/Bullets.js +8 -5
- package/dist/esm/components/Button/Button.js +15 -19
- package/dist/esm/components/Calendar/Calendar.js +13 -10
- package/dist/esm/components/CarouselIndicator/CarouselIndicator.js +10 -7
- package/dist/esm/components/Checkbox/Checkbox.js +13 -10
- package/dist/esm/components/CheckboxGroup/CheckboxGroup.js +13 -8
- package/dist/esm/components/Chip/Chip.js +11 -7
- package/dist/esm/components/Chips/Chips.js +14 -12
- package/dist/esm/components/Currency/Currency.js +10 -7
- package/dist/esm/components/DatePicker/DatePicker.js +28 -14
- package/dist/esm/components/Dialog/Dialog.js +15 -13
- package/dist/esm/components/DialogBody/DialogBody.js +11 -7
- package/dist/esm/components/DialogFooter/DialogFooter.js +11 -7
- package/dist/esm/components/DialogFullscreen/DialogFullscreen.js +15 -13
- package/dist/esm/components/DialogHeader/DialogHeader.js +11 -7
- package/dist/esm/components/Divider/Divider.js +9 -6
- package/dist/esm/components/Drawer/Drawer.js +27 -17
- package/dist/esm/components/FavouriteAction/FavouriteAction.js +19 -26
- package/dist/esm/components/Hyperlink/Hyperlink.js +13 -10
- package/dist/esm/components/Icon/Icon.js +10 -6
- package/dist/esm/components/IconButton/IconButton.js +14 -18
- package/dist/esm/components/IconButtonGroup/IconButtonGroup.js +11 -7
- package/dist/esm/components/InlineAlert/InlineAlert.js +14 -12
- package/dist/esm/components/Input/Input.js +19 -13
- package/dist/esm/components/InteractiveCard/InteractiveCard.js +37 -25
- package/dist/esm/components/LinkButton/LinkButton.js +13 -10
- package/dist/esm/components/List/List.js +10 -6
- package/dist/esm/components/ListItem/ListItem.js +15 -11
- package/dist/esm/components/Loader/Loader.js +23 -18
- package/dist/esm/components/Logo/Logo.js +10 -7
- package/dist/esm/components/MainTitle/MainTitle.js +26 -15
- package/dist/esm/components/MapPin/MapPin.js +12 -10
- package/dist/esm/components/MediaControl/MediaControl.js +16 -10
- package/dist/esm/components/Modal/Modal.js +40 -37
- package/dist/esm/components/NavigationControls/NavigationControls.js +11 -7
- package/dist/esm/components/PasswordInput/PasswordInput.js +30 -38
- package/dist/esm/components/PickerItem/PickerItem.js +14 -19
- package/dist/esm/components/Radio/Radio.js +19 -12
- package/dist/esm/components/RadioButton/RadioButton.js +13 -8
- package/dist/esm/components/RadioButtonGroup/RadioButtonGroup.js +13 -8
- package/dist/esm/components/Rating/Rating.js +10 -7
- package/dist/esm/components/Search/Search.js +11 -6
- package/dist/esm/components/SearchInput/SearchInput.js +28 -44
- package/dist/esm/components/SecondaryNavigation/SecondaryNavigation.js +23 -15
- package/dist/esm/components/SegmentedControl/SegmentedControl.js +14 -10
- package/dist/esm/components/Select/Select.js +8 -5
- package/dist/esm/components/Selection/Selection.js +10 -7
- package/dist/esm/components/SidebarNavigation/SidebarNavigation.js +26 -12
- package/dist/esm/components/Skeleton/Skeleton.js +9 -6
- package/dist/esm/components/Slider/Slider.js +14 -18
- package/dist/esm/components/StaticBox/StaticBox.js +15 -19
- package/dist/esm/components/Stepper/Stepper.js +7 -4
- package/dist/esm/components/Table/Table.js +11 -7
- package/dist/esm/components/TableCell/TableCell.js +11 -7
- package/dist/esm/components/TableRow/TableRow.js +11 -7
- package/dist/esm/components/Tabs/Tabs.js +26 -16
- package/dist/esm/components/Tag/Tag.js +14 -10
- package/dist/esm/components/Text/Text.js +11 -7
- package/dist/esm/components/TextInput/TextInput.js +32 -45
- package/dist/esm/components/Textarea/Textarea.js +34 -58
- package/dist/esm/components/ThemeProvider/ThemeProvider.js +8 -5
- package/dist/esm/components/Toast/Toast.js +12 -13
- package/dist/esm/components/ToastMessage/ToastMessage.js +14 -12
- package/dist/esm/components/ToggleButton/ToggleButton.js +12 -10
- package/dist/esm/components/ToggleSwitch/ToggleSwitch.js +27 -19
- package/dist/esm/components/Tooltip/Tooltip.js +26 -14
- package/dist/esm/components/ValueUnit/ValueUnit.js +17 -10
- package/dist/esm/components/index.js +76 -0
- package/dist/esm/hooks/index.js +5 -0
- package/dist/esm/hooks/useBreakpoint.js +41 -40
- package/dist/esm/hooks/useEventListeners.js +20 -25
- package/dist/esm/hooks/useHandleEvent.js +24 -24
- package/dist/esm/hooks/useLoadScript.js +1 -0
- package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +13 -13
- package/dist/esm/index.js +82 -163
- 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
- package/dist/esm/node_modules/.pnpm/@emotion_memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +8 -8
- package/dist/esm/node_modules/.pnpm/@emotion_unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +50 -51
- package/dist/esm/node_modules/.pnpm/shallowequal@1.1.0/node_modules/shallowequal/index.js +22 -0
- 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
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.js +4 -12
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.js +37 -46
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.js +88 -126
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.js +114 -186
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.js +18 -25
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.js +111 -145
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.js +42 -56
- package/dist/esm/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js +11 -16
- package/package.json +8 -12
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "react";
|
|
4
|
-
import { useHandleEvent as m } 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-media-control";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
//#region src/components/MediaControl/MediaControl.tsx
|
|
6
|
+
function n(n) {
|
|
7
|
+
let { className: r, onPlay: i, onPause: a, ...o } = n, { ref: s } = e({
|
|
8
|
+
"ds-media-control:play": i,
|
|
9
|
+
"ds-media-control:pause": a
|
|
10
|
+
});
|
|
11
|
+
return /* @__PURE__ */ t("ds-media-control-react", {
|
|
12
|
+
ref: s,
|
|
13
|
+
class: r,
|
|
14
|
+
...o
|
|
15
|
+
});
|
|
9
16
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { n as MediaControl };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
|
+
import { dt as t } from "../../node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js";
|
|
1
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import "react";
|
|
4
|
-
import { useHandleEvent as f } from "../../hooks/useHandleEvent.js";
|
|
5
|
-
import p from "../../node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js";
|
|
5
|
+
import { createPortal as r } from "react-dom";
|
|
6
6
|
import "@cupra/ui-kit/react/ds-modal";
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
const k = p.div`
|
|
7
|
+
//#region src/components/Modal/Modal.tsx
|
|
8
|
+
function i() {}
|
|
9
|
+
var a = t.div`
|
|
11
10
|
margin: 0;
|
|
12
11
|
width: 100%;
|
|
13
12
|
height: 100%;
|
|
@@ -16,36 +15,40 @@ const k = p.div`
|
|
|
16
15
|
left: 50%;
|
|
17
16
|
transform: translate(-50%, -50%);
|
|
18
17
|
`;
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if (!r.open) return null;
|
|
34
|
-
const c = /* @__PURE__ */ n("ds-modal-react", { ref: d, class: m, ...r, children: o });
|
|
35
|
-
return a ? C(c, document.body) : c;
|
|
18
|
+
function o(t) {
|
|
19
|
+
let { children: a, onClickCloseButton: o = i, onClickConfirmButton: s = i, onClickCancelButton: c = i, className: l, withPortal: u, ...d } = t, { ref: f } = e({
|
|
20
|
+
"click-close-button": o,
|
|
21
|
+
"click-confirm-button": s,
|
|
22
|
+
"click-cancel-button": c
|
|
23
|
+
});
|
|
24
|
+
if (!d.open) return null;
|
|
25
|
+
let p = /* @__PURE__ */ n("ds-modal-react", {
|
|
26
|
+
ref: f,
|
|
27
|
+
class: l,
|
|
28
|
+
...d,
|
|
29
|
+
children: a
|
|
30
|
+
});
|
|
31
|
+
return u ? r(p, document.body) : p;
|
|
36
32
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
33
|
+
function s({ children: e }) {
|
|
34
|
+
return /* @__PURE__ */ n("div", {
|
|
35
|
+
slot: "title",
|
|
36
|
+
children: e
|
|
37
|
+
});
|
|
39
38
|
}
|
|
40
|
-
function
|
|
41
|
-
|
|
39
|
+
function c({ className: e = "", children: t }) {
|
|
40
|
+
return /* @__PURE__ */ n("div", {
|
|
41
|
+
slot: "content",
|
|
42
|
+
className: `ds-scroll ${e}`.trim(),
|
|
43
|
+
children: t
|
|
44
|
+
});
|
|
42
45
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
46
|
+
function l({ children: e }) {
|
|
47
|
+
return /* @__PURE__ */ n(a, {
|
|
48
|
+
slot: "content",
|
|
49
|
+
children: e
|
|
50
|
+
});
|
|
45
51
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export {
|
|
50
|
-
l as Modal
|
|
51
|
-
};
|
|
52
|
+
o.Title = s, o.Content = c, o.FullScreenContent = l;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { o as Modal };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@cupra/ui-kit/react/ds-navigation-controls";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
//#region src/components/NavigationControls/NavigationControls.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { className: n, children: r, ...i } = t;
|
|
6
|
+
return /* @__PURE__ */ e("ds-navigation-controls-react", {
|
|
7
|
+
class: n,
|
|
8
|
+
...i,
|
|
9
|
+
children: r
|
|
10
|
+
});
|
|
6
11
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as NavigationControls };
|
|
@@ -1,40 +1,32 @@
|
|
|
1
|
-
import {
|
|
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-password-input";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
...!!o && { disabled: o },
|
|
29
|
-
...!!a && { minLength: a },
|
|
30
|
-
...!!s && { maxLength: s },
|
|
31
|
-
...!!p && { pattern: p }
|
|
32
|
-
};
|
|
33
|
-
return /* @__PURE__ */ x("ds-password-input-react", { ref: f, class: d, ...h, children: [
|
|
34
|
-
/* @__PURE__ */ i("label", { htmlFor: e, children: m }),
|
|
35
|
-
/* @__PURE__ */ i("input", { ...g })
|
|
36
|
-
] });
|
|
5
|
+
//#region src/components/PasswordInput/PasswordInput.tsx
|
|
6
|
+
function r(r) {
|
|
7
|
+
let { className: i, children: a, onChange: o, onInput: s, inputId: c, placeHolder: l, value: u, label: d, required: f, disabled: p, pattern: m, maxLength: h, minLength: g, ..._ } = r, { ref: v } = e({
|
|
8
|
+
change: o,
|
|
9
|
+
input: s
|
|
10
|
+
}), y = {
|
|
11
|
+
type: "password",
|
|
12
|
+
...!!c && { id: c },
|
|
13
|
+
...!!l && { placeholder: l },
|
|
14
|
+
...!!u && { value: u },
|
|
15
|
+
...!!f && { required: f },
|
|
16
|
+
...!!p && { disabled: p },
|
|
17
|
+
...!!g && { minLength: g },
|
|
18
|
+
...!!h && { maxLength: h },
|
|
19
|
+
...!!m && { pattern: m }
|
|
20
|
+
};
|
|
21
|
+
return /* @__PURE__ */ n("ds-password-input-react", {
|
|
22
|
+
ref: v,
|
|
23
|
+
class: i,
|
|
24
|
+
..._,
|
|
25
|
+
children: [/* @__PURE__ */ t("label", {
|
|
26
|
+
htmlFor: c,
|
|
27
|
+
children: d
|
|
28
|
+
}), /* @__PURE__ */ t("input", { ...y })]
|
|
29
|
+
});
|
|
37
30
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { r as PasswordInput };
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import "@cupra/ui-kit/react/ds-picker-item";
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class: i,
|
|
14
|
-
...c,
|
|
15
|
-
children: t
|
|
16
|
-
}
|
|
17
|
-
);
|
|
4
|
+
//#region src/components/PickerItem/PickerItem.tsx
|
|
5
|
+
function n(n) {
|
|
6
|
+
let { className: r, children: i, onClick: a, size: o, ...s } = n, { ref: c } = e({ "ds-picker-item:click": a });
|
|
7
|
+
return /* @__PURE__ */ t("ds-picker-item-react", {
|
|
8
|
+
ref: c,
|
|
9
|
+
size: typeof o == "string" ? o : JSON.stringify(o),
|
|
10
|
+
class: r,
|
|
11
|
+
...s,
|
|
12
|
+
children: i
|
|
13
|
+
});
|
|
18
14
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as PickerItem };
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
3
|
-
import "react";
|
|
4
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-radio";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
var n = {
|
|
6
|
+
Group: ({ children: n, onChange: r, className: i, ...a }) => {
|
|
7
|
+
let { ref: o } = e({ change: r });
|
|
8
|
+
return /* @__PURE__ */ t("ds-radio-group-react", {
|
|
9
|
+
ref: o,
|
|
10
|
+
class: i,
|
|
11
|
+
...a,
|
|
12
|
+
children: n
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
Button: ({ children: e, className: n, ...r }) => /* @__PURE__ */ t("ds-radio-react", {
|
|
16
|
+
class: n,
|
|
17
|
+
...r,
|
|
18
|
+
children: e
|
|
19
|
+
})
|
|
15
20
|
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { n as Radio };
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import "@cupra/ui-kit/react/ds-radio-button";
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
//#region src/components/RadioButton/RadioButton.tsx
|
|
5
|
+
function n(n) {
|
|
6
|
+
let { className: r, children: i, onChange: a, ...o } = n, { ref: s } = e({ change: a });
|
|
7
|
+
return /* @__PURE__ */ t("ds-radio-button-react", {
|
|
8
|
+
ref: s,
|
|
9
|
+
class: r,
|
|
10
|
+
...o,
|
|
11
|
+
children: i
|
|
12
|
+
});
|
|
7
13
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as RadioButton };
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import "@cupra/ui-kit/react/ds-radio-button-group";
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
//#region src/components/RadioButtonGroup/RadioButtonGroup.tsx
|
|
5
|
+
function n(n) {
|
|
6
|
+
let { className: r, children: i, onChange: a, ...o } = n, { ref: s } = e({ change: a });
|
|
7
|
+
return /* @__PURE__ */ t("ds-radio-button-group-react", {
|
|
8
|
+
ref: s,
|
|
9
|
+
class: r,
|
|
10
|
+
...o,
|
|
11
|
+
children: i
|
|
12
|
+
});
|
|
7
13
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as RadioButtonGroup };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@cupra/ui-kit/react/ds-rating";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
//#region src/components/Rating/Rating.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { className: n, ...r } = t;
|
|
6
|
+
return /* @__PURE__ */ e("ds-rating-react", {
|
|
7
|
+
class: n,
|
|
8
|
+
...r
|
|
9
|
+
});
|
|
6
10
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as Rating };
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
3
|
import "@cupra/ui-kit/react/ds-search";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
//#region src/components/Search/Search.tsx
|
|
5
|
+
var n = t(({ onInput: t, className: n, ...r }, i) => /* @__PURE__ */ e("ds-search-react", {
|
|
6
|
+
ref: i,
|
|
7
|
+
class: n,
|
|
8
|
+
onInput: t,
|
|
9
|
+
...r
|
|
10
|
+
}));
|
|
11
|
+
n.displayName = "Search";
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as Search };
|
|
@@ -1,47 +1,31 @@
|
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
1
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
4
|
import "@cupra/ui-kit/react/ds-search-input";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"ds-search-input:click-position-button": i
|
|
28
|
-
});
|
|
29
|
-
return /* @__PURE__ */ t("ds-search-input-react", { ref: f, class: n, ...b, children: /* @__PURE__ */ t(
|
|
30
|
-
"input",
|
|
31
|
-
{
|
|
32
|
-
type: "text",
|
|
33
|
-
"aria-label": c,
|
|
34
|
-
placeholder: p,
|
|
35
|
-
value: a,
|
|
36
|
-
required: l,
|
|
37
|
-
disabled: s,
|
|
38
|
-
minLength: d,
|
|
39
|
-
maxLength: h,
|
|
40
|
-
pattern: u,
|
|
41
|
-
...m
|
|
42
|
-
}
|
|
43
|
-
) });
|
|
5
|
+
//#region src/components/SearchInput/SearchInput.tsx
|
|
6
|
+
function n(n) {
|
|
7
|
+
let { className: r, children: i, onChange: a, onInput: o, onClickPositionButton: s, placeHolder: c, type: l, value: u, label: d, required: f, disabled: p, pattern: m, maxLength: h, minLength: g, inputProps: _, ...v } = n, { ref: y } = e({
|
|
8
|
+
change: a,
|
|
9
|
+
input: o,
|
|
10
|
+
"ds-search-input:click-position-button": s
|
|
11
|
+
});
|
|
12
|
+
return /* @__PURE__ */ t("ds-search-input-react", {
|
|
13
|
+
ref: y,
|
|
14
|
+
class: r,
|
|
15
|
+
...v,
|
|
16
|
+
children: /* @__PURE__ */ t("input", {
|
|
17
|
+
type: "text",
|
|
18
|
+
"aria-label": d,
|
|
19
|
+
placeholder: c,
|
|
20
|
+
value: u,
|
|
21
|
+
required: f,
|
|
22
|
+
disabled: p,
|
|
23
|
+
minLength: g,
|
|
24
|
+
maxLength: h,
|
|
25
|
+
pattern: m,
|
|
26
|
+
..._
|
|
27
|
+
})
|
|
28
|
+
});
|
|
44
29
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { n as SearchInput };
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
|
+
import { Fragment as t, jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { Children as r } from "react";
|
|
3
5
|
import "@cupra/ui-kit/react/ds-secondary-navigation";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
//#region src/components/SecondaryNavigation/SecondaryNavigation.tsx
|
|
7
|
+
function i(t) {
|
|
8
|
+
let { className: r, children: i, onSelect: a, ...o } = t, { ref: s } = e({ "ds-secondary-navigation:select": a });
|
|
9
|
+
return /* @__PURE__ */ n("ds-secondary-navigation-react", {
|
|
10
|
+
ref: s,
|
|
11
|
+
class: r,
|
|
12
|
+
...o,
|
|
13
|
+
children: i
|
|
14
|
+
});
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
i.Item = ({ children: e, ...t }) => /* @__PURE__ */ n("a", {
|
|
17
|
+
slot: "items",
|
|
18
|
+
...t,
|
|
19
|
+
children: e
|
|
20
|
+
}), i.Actions = ({ children: e }) => /* @__PURE__ */ n(t, { children: r.map(e, (e, t) => /* @__PURE__ */ n("div", {
|
|
21
|
+
slot: "actions",
|
|
22
|
+
children: e
|
|
23
|
+
}, t)) });
|
|
24
|
+
//#endregion
|
|
25
|
+
export { i as SecondaryNavigation };
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
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-segmented-control";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
//#region src/components/SegmentedControl/SegmentedControl.tsx
|
|
6
|
+
function n(n) {
|
|
7
|
+
let { onChange: r, className: i, children: a, ...o } = n, { ref: s } = e({ change: r });
|
|
8
|
+
return /* @__PURE__ */ t("ds-segmented-control-react", {
|
|
9
|
+
ref: s,
|
|
10
|
+
class: i,
|
|
11
|
+
...o,
|
|
12
|
+
children: a
|
|
13
|
+
});
|
|
9
14
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as SegmentedControl };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@cupra/ui-kit/react/ds-select";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
//#region src/components/Select/Select.tsx
|
|
4
|
+
var t = ({ children: t, ...n }) => /* @__PURE__ */ e("ds-select-react", {
|
|
5
|
+
...n,
|
|
6
|
+
children: t
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as Select };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@cupra/ui-kit/react/ds-selection";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
//#region src/components/Selection/Selection.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { className: n, children: r, ...i } = t;
|
|
6
|
+
return /* @__PURE__ */ e("ds-selection-react", {
|
|
7
|
+
class: n,
|
|
8
|
+
...i
|
|
9
|
+
});
|
|
6
10
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as Selection };
|
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@cupra/ui-kit/react/ds-sidebar-navigation";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
//#region src/components/SidebarNavigation/SidebarNavigation.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { className: n, children: r, ...i } = t;
|
|
6
|
+
return /* @__PURE__ */ e("ds-sidebar-navigation-react", {
|
|
7
|
+
class: n,
|
|
8
|
+
...i,
|
|
9
|
+
children: r
|
|
10
|
+
});
|
|
6
11
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
t.AsideText = ({ children: t }) => /* @__PURE__ */ e("div", {
|
|
13
|
+
slot: "aside-text",
|
|
14
|
+
children: t
|
|
15
|
+
}), t.AsideIcon = ({ children: t }) => /* @__PURE__ */ e("div", {
|
|
16
|
+
slot: "aside-icon",
|
|
17
|
+
children: t
|
|
18
|
+
}), t.AsideHelperText = ({ children: t }) => /* @__PURE__ */ e("div", {
|
|
19
|
+
slot: "aside-helper-text",
|
|
20
|
+
children: t
|
|
21
|
+
}), t.MainCta = ({ children: t }) => /* @__PURE__ */ e("div", {
|
|
22
|
+
slot: "main-cta",
|
|
23
|
+
children: t
|
|
24
|
+
}), t.Ctas = ({ children: t }) => /* @__PURE__ */ e("div", {
|
|
25
|
+
slot: "ctas",
|
|
26
|
+
children: t
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { t as SidebarNavigation };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@cupra/ui-kit/react/ds-skeleton";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
//#region src/components/Skeleton/Skeleton.tsx
|
|
4
|
+
function t({ className: t, ...n }) {
|
|
5
|
+
return /* @__PURE__ */ e("ds-skeleton-react", {
|
|
6
|
+
class: t,
|
|
7
|
+
...n
|
|
8
|
+
});
|
|
5
9
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as Skeleton };
|