@cupra/ui-react 2.0.0-canary.101 → 2.0.0-canary.103
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,15 +1,17 @@
|
|
|
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";
|
|
4
|
+
import { createPortal as n } from "react-dom";
|
|
2
5
|
import "@cupra/ui-kit/react/ds-dialog-fullscreen";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
//#region src/components/DialogFullscreen/DialogFullscreen.tsx
|
|
7
|
+
function r(r) {
|
|
8
|
+
let { className: i, children: a, onClose: o, withPortal: s, ...c } = r, { ref: l } = e({ "ds-dialog-fullscreen:close": o }), u = /* @__PURE__ */ t("ds-dialog-fullscreen-react", {
|
|
9
|
+
ref: l,
|
|
10
|
+
class: i,
|
|
11
|
+
...c,
|
|
12
|
+
children: a
|
|
13
|
+
});
|
|
14
|
+
return s ? n(u, document.body) : u;
|
|
12
15
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { r as DialogFullscreen };
|
|
@@ -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-dialog-header";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
//#region src/components/DialogHeader/DialogHeader.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { className: n, children: r, ...i } = t;
|
|
6
|
+
return /* @__PURE__ */ e("ds-dialog-header-react", {
|
|
7
|
+
class: n,
|
|
8
|
+
...i,
|
|
9
|
+
children: r
|
|
10
|
+
});
|
|
6
11
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as DialogHeader };
|
|
@@ -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-divider";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
//#region src/components/Divider/Divider.tsx
|
|
4
|
+
function t({ className: t, ...n }) {
|
|
5
|
+
return /* @__PURE__ */ e("ds-divider-react", {
|
|
6
|
+
class: t,
|
|
7
|
+
...n
|
|
8
|
+
});
|
|
5
9
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as Divider };
|
|
@@ -1,19 +1,29 @@
|
|
|
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-drawer";
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
//#region src/components/Drawer/Drawer.tsx
|
|
5
|
+
function n(n) {
|
|
6
|
+
let { className: r, children: i, onClose: a, ...o } = n, { ref: s } = e({ "ds-drawer:close": a });
|
|
7
|
+
return /* @__PURE__ */ t("ds-drawer-react", {
|
|
8
|
+
class: r,
|
|
9
|
+
ref: s,
|
|
10
|
+
...o,
|
|
11
|
+
children: i
|
|
12
|
+
});
|
|
9
13
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
var r = ({ children: e, ...n }) => /* @__PURE__ */ t("div", {
|
|
15
|
+
slot: "header",
|
|
16
|
+
...n,
|
|
17
|
+
children: e
|
|
18
|
+
}), i = ({ children: e, ...n }) => /* @__PURE__ */ t("div", {
|
|
19
|
+
slot: "content",
|
|
20
|
+
...n,
|
|
21
|
+
children: e
|
|
22
|
+
}), a = ({ children: e, ...n }) => /* @__PURE__ */ t("div", {
|
|
23
|
+
slot: "footer",
|
|
24
|
+
...n,
|
|
25
|
+
children: e
|
|
26
|
+
});
|
|
27
|
+
n.Header = r, n.Content = i, n.Footer = a, r.displayName = "Drawer.Header", i.displayName = "Drawer.Content", a.displayName = "Drawer.Footer";
|
|
28
|
+
//#endregion
|
|
29
|
+
export { n as Drawer };
|
|
@@ -1,28 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "react";
|
|
4
|
-
import { useHandleEvent as l } 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-favourite-action";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class: i,
|
|
21
|
-
"initial-selected": e || void 0,
|
|
22
|
-
...o
|
|
23
|
-
}
|
|
24
|
-
);
|
|
5
|
+
//#region src/components/FavouriteAction/FavouriteAction.tsx
|
|
6
|
+
function n({ className: n, initialSelected: r, onChange: i, onClick: a, ...o }) {
|
|
7
|
+
let s = (e) => {
|
|
8
|
+
i?.(e.detail.selected);
|
|
9
|
+
}, { ref: c } = e({
|
|
10
|
+
"ds-favourite-action:change": s,
|
|
11
|
+
click: a
|
|
12
|
+
});
|
|
13
|
+
return /* @__PURE__ */ t("ds-favourite-action-react", {
|
|
14
|
+
ref: c,
|
|
15
|
+
class: n,
|
|
16
|
+
"initial-selected": r || void 0,
|
|
17
|
+
...o
|
|
18
|
+
});
|
|
25
19
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { n as FavouriteAction };
|
|
@@ -1,12 +1,15 @@
|
|
|
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-hyperlink";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
//#region src/components/Hyperlink/Hyperlink.tsx
|
|
6
|
+
function n({ children: n, onClick: r, ...i }) {
|
|
7
|
+
let { ref: a } = e({ click: r });
|
|
8
|
+
return /* @__PURE__ */ t("ds-hyperlink-react", {
|
|
9
|
+
ref: a,
|
|
10
|
+
...i,
|
|
11
|
+
children: n
|
|
12
|
+
});
|
|
9
13
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as Hyperlink };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@cupra/ui-kit/react/ds-icon";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
//#region src/components/Icon/Icon.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { "icon-name": n, className: r, ...i } = t;
|
|
6
|
+
return /* @__PURE__ */ e("ds-icon-react", {
|
|
7
|
+
"icon-name": n,
|
|
8
|
+
class: r,
|
|
9
|
+
...i
|
|
10
|
+
});
|
|
6
11
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as Icon };
|
|
@@ -1,20 +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-icon-button";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
size: typeof t == "string" ? t : JSON.stringify(t),
|
|
13
|
-
class: r,
|
|
14
|
-
...n
|
|
15
|
-
}
|
|
16
|
-
);
|
|
5
|
+
//#region src/components/IconButton/IconButton.tsx
|
|
6
|
+
function n(n) {
|
|
7
|
+
let { className: r, onClick: i, size: a, ...o } = n, { ref: s } = e({ click: i });
|
|
8
|
+
return /* @__PURE__ */ t("ds-icon-button-react", {
|
|
9
|
+
ref: s,
|
|
10
|
+
size: typeof a == "string" ? a : JSON.stringify(a),
|
|
11
|
+
class: r,
|
|
12
|
+
...o
|
|
13
|
+
});
|
|
17
14
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as IconButton };
|
|
@@ -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-icon-button-group";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
//#region src/components/IconButtonGroup/IconButtonGroup.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { className: n, children: r, ...i } = t;
|
|
6
|
+
return /* @__PURE__ */ e("ds-icon-button-group-react", {
|
|
7
|
+
class: n,
|
|
8
|
+
...i,
|
|
9
|
+
children: r
|
|
10
|
+
});
|
|
6
11
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as IconButtonGroup };
|
|
@@ -1,14 +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-inline-alert";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
//#region src/components/InlineAlert/InlineAlert.tsx
|
|
6
|
+
function n(n) {
|
|
7
|
+
let { className: r, children: i, onClose: a, ...o } = n, { ref: s } = e({ "inline-alert:close": a });
|
|
8
|
+
return /* @__PURE__ */ t("ds-inline-alert-react", {
|
|
9
|
+
ref: s,
|
|
10
|
+
class: r,
|
|
11
|
+
...o,
|
|
12
|
+
children: i
|
|
13
|
+
});
|
|
11
14
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as InlineAlert };
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as n, useImperativeHandle as r } from "react";
|
|
2
4
|
import "@cupra/ui-kit/react/ds-input";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
5
|
+
//#region src/components/Input/Input.tsx
|
|
6
|
+
var i = n(({ className: n, onInput: i, onKeyDown: a, onChange: o, ...s }, c) => {
|
|
7
|
+
let { ref: l } = e({
|
|
8
|
+
input: i,
|
|
9
|
+
keydown: a,
|
|
10
|
+
change: o
|
|
11
|
+
});
|
|
12
|
+
return r(c, () => l.current, []), /* @__PURE__ */ t("ds-input-react", {
|
|
13
|
+
ref: l,
|
|
14
|
+
class: n,
|
|
15
|
+
...s
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
i.displayName = "Input";
|
|
19
|
+
//#endregion
|
|
20
|
+
export { i as Input };
|
|
@@ -1,27 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "react";
|
|
4
|
-
import { useHandleEvent as u } 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-interactive-card";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
//#region src/components/InteractiveCard/InteractiveCard.tsx
|
|
6
|
+
function n(n) {
|
|
7
|
+
let { className: r, children: i, onClick: a, ...o } = n, { ref: s } = e({ click: a });
|
|
8
|
+
return /* @__PURE__ */ t("ds-interactive-card-react", {
|
|
9
|
+
ref: s,
|
|
10
|
+
class: r,
|
|
11
|
+
...o,
|
|
12
|
+
children: i
|
|
13
|
+
});
|
|
9
14
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
e
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
e
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
var r = ({ children: e }) => /* @__PURE__ */ t("div", {
|
|
16
|
+
slot: "title",
|
|
17
|
+
children: e
|
|
18
|
+
}), i = ({ children: e }) => /* @__PURE__ */ t("div", {
|
|
19
|
+
slot: "subtitle",
|
|
20
|
+
children: e
|
|
21
|
+
}), a = ({ children: e }) => /* @__PURE__ */ t("div", {
|
|
22
|
+
slot: "meta",
|
|
23
|
+
children: e
|
|
24
|
+
}), o = ({ children: e }) => /* @__PURE__ */ t("div", {
|
|
25
|
+
slot: "content",
|
|
26
|
+
children: e
|
|
27
|
+
}), s = ({ children: e }) => /* @__PURE__ */ t("div", {
|
|
28
|
+
slot: "cta",
|
|
29
|
+
children: e
|
|
30
|
+
}), c = ({ children: e }) => /* @__PURE__ */ t("div", {
|
|
31
|
+
slot: "error-title",
|
|
32
|
+
children: e
|
|
33
|
+
}), l = ({ children: e }) => /* @__PURE__ */ t("div", {
|
|
34
|
+
slot: "error-text",
|
|
35
|
+
children: e
|
|
36
|
+
});
|
|
37
|
+
n.Title = r, n.Subtitle = i, n.Meta = a, n.Content = o, n.Cta = s, n.ErrorTitle = c, n.ErrorText = l, r.displayName = "InteractiveCard.Title", i.displayName = "InteractiveCard.Subtitle", a.displayName = "InteractiveCard.Meta", o.displayName = "InteractiveCard.Content", s.displayName = "InteractiveCard.Cta", c.displayName = "InteractiveCard.ErrorTitle", l.displayName = "InteractiveCard.ErrorText";
|
|
38
|
+
//#endregion
|
|
39
|
+
export { n as InteractiveCard };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import "@cupra/ui-kit/react/ds-link-button";
|
|
3
|
-
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
4
|
-
import "react";
|
|
5
1
|
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import "@cupra/ui-kit/react/ds-link-button";
|
|
5
|
+
//#region src/components/LinkButton/LinkButton.tsx
|
|
6
|
+
function n({ children: n, onClick: r, ...i }) {
|
|
7
|
+
let { ref: a } = e({ click: r });
|
|
8
|
+
return /* @__PURE__ */ t("ds-link-button-react", {
|
|
9
|
+
ref: a,
|
|
10
|
+
...i,
|
|
11
|
+
children: n
|
|
12
|
+
});
|
|
9
13
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as LinkButton };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@cupra/ui-kit/react/ds-list";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
//#region src/components/List/List.tsx
|
|
4
|
+
function t({ className: t, children: n, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ e("ds-list-react", {
|
|
6
|
+
class: t,
|
|
7
|
+
...r,
|
|
8
|
+
children: n
|
|
9
|
+
});
|
|
5
10
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as List };
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Divider as e } from "../Divider/Divider.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
3
|
import "@cupra/ui-kit/react/ds-list-item";
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
//#region src/components/ListItem/ListItem.tsx
|
|
5
|
+
function r({ className: r, children: i, selected: a, disabled: o, variant: s, ...c }) {
|
|
6
|
+
let l = { ...c };
|
|
7
|
+
return s && (l.variant = s), a && (l.selected = !0), o && (l.disabled = !0), /* @__PURE__ */ n("div", {
|
|
8
|
+
style: { width: "fit-content" },
|
|
9
|
+
children: [/* @__PURE__ */ t("ds-list-item-react", {
|
|
10
|
+
className: r,
|
|
11
|
+
...l,
|
|
12
|
+
children: i
|
|
13
|
+
}), s !== "info" && /* @__PURE__ */ t(e, {})]
|
|
14
|
+
});
|
|
10
15
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { r as ListItem };
|
|
@@ -1,27 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@cupra/ui-kit/react/ds-loader-bar";
|
|
3
3
|
import "@cupra/ui-kit/react/ds-loader-dots";
|
|
4
4
|
import "@cupra/ui-kit/react/ds-loader-logo";
|
|
5
5
|
import "@cupra/ui-kit/react/ds-loader-spinner";
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
//#region src/components/Loader/Loader.tsx
|
|
7
|
+
function t(t) {
|
|
8
|
+
return /* @__PURE__ */ e("ds-loader-logo-react", { ...t });
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
-
|
|
10
|
+
function n(t) {
|
|
11
|
+
return /* @__PURE__ */ e("ds-loader-bar-react", { ...t });
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
13
|
+
function r(t) {
|
|
14
|
+
return /* @__PURE__ */ e("ds-loader-dots-react", { ...t });
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
|
|
16
|
+
function i(t) {
|
|
17
|
+
return /* @__PURE__ */ e("ds-loader-spinner-react", {
|
|
18
|
+
...t,
|
|
19
|
+
children: t.text && /* @__PURE__ */ e("div", {
|
|
20
|
+
slot: "text",
|
|
21
|
+
children: t.text
|
|
22
|
+
})
|
|
23
|
+
});
|
|
17
24
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
u as Loader,
|
|
26
|
-
t as LoaderLogo
|
|
25
|
+
var a = {
|
|
26
|
+
Logo: t,
|
|
27
|
+
Bar: n,
|
|
28
|
+
Dots: r,
|
|
29
|
+
Spinner: i
|
|
27
30
|
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { a as Loader, t as LoaderLogo };
|
|
@@ -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-logo";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
//#region src/components/Logo/Logo.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { className: n, children: r, ...i } = t;
|
|
6
|
+
return /* @__PURE__ */ e("ds-logo-react", {
|
|
7
|
+
class: n,
|
|
8
|
+
...i
|
|
9
|
+
});
|
|
6
10
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as Logo };
|
|
@@ -1,19 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@cupra/ui-kit/react/ds-main-title";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
//#region src/components/MainTitle/MainTitle.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { className: n, children: r, ...i } = t;
|
|
6
|
+
return /* @__PURE__ */ e("ds-main-title-react", {
|
|
7
|
+
class: n,
|
|
8
|
+
...i,
|
|
9
|
+
children: r
|
|
10
|
+
});
|
|
6
11
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
12
|
+
function n(t) {
|
|
13
|
+
let { as: n, children: r, ...i } = t;
|
|
14
|
+
return /* @__PURE__ */ e(n, {
|
|
15
|
+
slot: "title",
|
|
16
|
+
...i,
|
|
17
|
+
children: r
|
|
18
|
+
});
|
|
10
19
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
20
|
+
function r(t) {
|
|
21
|
+
let { as: n, children: r, ...i } = t;
|
|
22
|
+
return /* @__PURE__ */ e(n, {
|
|
23
|
+
slot: "subtitle",
|
|
24
|
+
...i,
|
|
25
|
+
children: r
|
|
26
|
+
});
|
|
14
27
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
n as MainTitle
|
|
19
|
-
};
|
|
28
|
+
t.Title = n, t.Subtitle = r;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { t as MainTitle };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "react";
|
|
4
|
-
import { useHandleEvent as p } 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-map-pin";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
//#region src/components/MapPin/MapPin.tsx
|
|
6
|
+
function n({ onChange: n, ...r }) {
|
|
7
|
+
let { ref: i } = e({ change: n });
|
|
8
|
+
return /* @__PURE__ */ t("ds-map-pin-react", {
|
|
9
|
+
ref: i,
|
|
10
|
+
...r
|
|
11
|
+
});
|
|
9
12
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { n as MapPin };
|