@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,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-slider";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as Slider };
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
20
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@cupra/ui-kit/react/ds-table";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as Table };
|
|
@@ -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-table-cell";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as TableCell };
|
|
@@ -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-table-row";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as TableRow };
|
|
@@ -1,20 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
11
|
-
|
|
14
|
+
function r({ children: e }) {
|
|
15
|
+
return /* @__PURE__ */ t("div", {
|
|
16
|
+
role: "tab",
|
|
17
|
+
slot: "tab",
|
|
18
|
+
children: e
|
|
19
|
+
});
|
|
12
20
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
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 =
|
|
17
|
-
|
|
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 {
|
|
2
|
-
import "
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as Tag };
|
|
@@ -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-text";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as Text };
|
|
@@ -1,47 +1,34 @@
|
|
|
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-text-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
|
-
|
|
29
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { r as TextInput };
|
|
@@ -1,60 +1,36 @@
|
|
|
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-textarea";
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { r as Textarea };
|
|
@@ -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-theme-provider";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@cupra/ui-kit/react/ds-toast";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
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 {
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as ToastMessage };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { n as ToggleButton };
|
|
@@ -1,23 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
14
|
-
|
|
17
|
+
function i({ children: e }) {
|
|
18
|
+
return /* @__PURE__ */ t("div", {
|
|
19
|
+
slot: "off",
|
|
20
|
+
children: e
|
|
21
|
+
});
|
|
15
22
|
}
|
|
16
|
-
function
|
|
17
|
-
|
|
23
|
+
function a({ children: e }) {
|
|
24
|
+
return /* @__PURE__ */ t("div", {
|
|
25
|
+
slot: "on",
|
|
26
|
+
children: e
|
|
27
|
+
});
|
|
18
28
|
}
|
|
19
|
-
r.Off =
|
|
20
|
-
|
|
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 {
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
n
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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 };
|