@cupra/ui-react 1.0.0-canary.15 → 1.0.0-canary.17
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/README.md +9 -3
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Accordion/Accordion.js +8 -0
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +12 -0
- package/dist/components/Bullets/Bullets.d.ts +1 -1
- package/dist/components/Bullets/Bullets.js +6 -0
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +21 -0
- package/dist/components/CarouselIndicator/CarouselIndicator.d.ts +1 -1
- package/dist/components/CarouselIndicator/CarouselIndicator.js +9 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +12 -0
- package/dist/components/Chip/Chip.d.ts +1 -1
- package/dist/components/Chip/Chip.js +9 -0
- package/dist/components/Chips/Chips.d.ts +1 -1
- package/dist/components/Chips/Chips.js +14 -0
- package/dist/components/Currency/Currency.d.ts +1 -1
- package/dist/components/Currency/Currency.js +9 -0
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/Dialog.js +16 -0
- package/dist/components/DialogBody/DialogBody.d.ts +1 -1
- package/dist/components/DialogBody/DialogBody.js +9 -0
- package/dist/components/DialogFooter/DialogFooter.d.ts +1 -1
- package/dist/components/DialogFooter/DialogFooter.js +9 -0
- package/dist/components/DialogHeader/DialogHeader.d.ts +1 -1
- package/dist/components/DialogHeader/DialogHeader.js +9 -0
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Divider/Divider.js +8 -0
- package/dist/components/Hyperlink/Hyperlink.d.ts +1 -1
- package/dist/components/Hyperlink/Hyperlink.js +12 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +9 -0
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +20 -0
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +14 -0
- package/dist/components/InteractiveCard/InteractiveCard.d.ts +1 -1
- package/dist/components/InteractiveCard/InteractiveCard.js +27 -0
- package/dist/components/LinkButton/LinkButton.d.ts +1 -1
- package/dist/components/LinkButton/LinkButton.js +12 -0
- package/dist/components/Loader/Loader.d.ts +4 -1
- package/dist/components/Loader/Loader.js +27 -0
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Logo/Logo.js +9 -0
- package/dist/components/MapPin/MapPin.d.ts +1 -1
- package/dist/components/MapPin/MapPin.js +12 -0
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.js +50 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +40 -0
- package/dist/components/PickerItem/PickerItem.d.ts +1 -1
- package/dist/components/PickerItem/PickerItem.js +21 -0
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/Radio.js +15 -0
- package/dist/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/components/RadioButton/RadioButton.js +10 -0
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
- package/dist/components/RadioButtonGroup/RadioButtonGroup.js +10 -0
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.js +8 -0
- package/dist/components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.js +47 -0
- package/dist/components/SecondaryNavigation/SecondaryNavigation.d.ts +1 -1
- package/dist/components/SecondaryNavigation/SecondaryNavigation.js +17 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +12 -0
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +6 -0
- package/dist/components/Selection/Selection.d.ts +1 -1
- package/dist/components/Selection/Selection.js +9 -0
- package/dist/components/SidebarNavigation/SidebarNavigation.d.ts +1 -1
- package/dist/components/SidebarNavigation/SidebarNavigation.js +15 -0
- package/dist/components/Slider/Slider.d.ts +2 -2
- package/dist/components/Slider/Slider.js +16 -0
- package/dist/components/StaticBox/StaticBox.d.ts +1 -1
- package/dist/components/StaticBox/StaticBox.js +21 -0
- package/dist/components/Stepper/Stepper.d.ts +1 -1
- package/dist/components/Stepper/Stepper.js +6 -0
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js +20 -0
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.js +12 -0
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/Text/Text.js +9 -0
- package/dist/components/TextInput/TextInput.d.ts +1 -1
- package/dist/components/TextInput/TextInput.js +45 -0
- package/dist/components/Textarea/Textarea.d.ts +1 -1
- package/dist/components/Textarea/Textarea.js +58 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +6 -0
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.js +16 -0
- package/dist/components/ToastMessage/ToastMessage.d.ts +1 -1
- package/dist/components/ToastMessage/ToastMessage.js +14 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/components/ToggleButton/ToggleButton.js +12 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.js +23 -0
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +25 -0
- package/dist/hooks/useBreakpoint.js +42 -0
- package/dist/hooks/useEventListeners.js +26 -0
- package/dist/hooks/useHandleEvent.js +25 -0
- package/dist/hooks/useResizeObserver/useResizeObserver.js +14 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.js +112 -3309
- package/dist/node_modules/.pnpm/@emotion_is-prop-valid@1.2.2/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +10 -0
- package/dist/node_modules/.pnpm/@emotion_memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
- package/dist/node_modules/.pnpm/@emotion_unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +52 -0
- package/dist/node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js +572 -0
- package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.js +12 -0
- package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.js +49 -0
- package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.js +131 -0
- package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.js +187 -0
- package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.js +27 -0
- package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.js +147 -0
- package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.js +56 -0
- package/dist/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js +18 -0
- package/package.json +17 -5
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsxs as x, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-password-input";
|
|
3
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
4
|
+
import "react";
|
|
5
|
+
import { useHandleEvent as b } from "../../hooks/useHandleEvent.js";
|
|
6
|
+
function L(l) {
|
|
7
|
+
const {
|
|
8
|
+
className: d,
|
|
9
|
+
children: w,
|
|
10
|
+
onChange: c,
|
|
11
|
+
onInput: u,
|
|
12
|
+
inputId: e,
|
|
13
|
+
placeHolder: r,
|
|
14
|
+
value: t,
|
|
15
|
+
label: m,
|
|
16
|
+
required: n,
|
|
17
|
+
disabled: o,
|
|
18
|
+
pattern: p,
|
|
19
|
+
maxLength: s,
|
|
20
|
+
minLength: a,
|
|
21
|
+
...h
|
|
22
|
+
} = l, { ref: f } = b({ change: c, input: u }), g = {
|
|
23
|
+
type: "password",
|
|
24
|
+
...!!e && { id: e },
|
|
25
|
+
...!!r && { placeholder: r },
|
|
26
|
+
...!!t && { value: t },
|
|
27
|
+
...!!n && { required: n },
|
|
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
|
+
] });
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
L as PasswordInput
|
|
40
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import '@cupra/ui-kit/react';
|
|
2
|
+
import '@cupra/ui-kit/react/ds-picker-item';
|
|
3
3
|
import type { DsPickerItemAttrs } from '@cupra/ui-kit/react/types/ds-picker-item';
|
|
4
4
|
type PickerItemProps = DsPickerItemAttrs & {
|
|
5
5
|
className?: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-picker-item";
|
|
3
|
+
import { useHandleEvent as m } from "../../hooks/useHandleEvent.js";
|
|
4
|
+
function a(r) {
|
|
5
|
+
const { className: i, children: t, onClick: s, size: e, ...c } = r, { ref: o } = m({
|
|
6
|
+
"ds-picker-item:click": s
|
|
7
|
+
});
|
|
8
|
+
return /* @__PURE__ */ n(
|
|
9
|
+
"ds-picker-item-react",
|
|
10
|
+
{
|
|
11
|
+
ref: o,
|
|
12
|
+
size: typeof e == "string" ? e : JSON.stringify(e),
|
|
13
|
+
class: i,
|
|
14
|
+
...c,
|
|
15
|
+
children: t
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
a as PickerItem
|
|
21
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
|
-
import '@cupra/ui-kit/react';
|
|
2
|
+
import '@cupra/ui-kit/react/ds-radio';
|
|
3
3
|
import { DsRadioAttrs } from '@cupra/ui-kit/react/types/ds-radio';
|
|
4
4
|
import { DsRadioGroupAttrs } from '@cupra/ui-kit/react/types/ds-radio-group';
|
|
5
5
|
type Children = JSX.Element | JSX.Element[] | string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
3
|
+
import "react";
|
|
4
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
5
|
+
import "@cupra/ui-kit/react/ds-radio";
|
|
6
|
+
const i = ({ children: o, onChange: r, className: t, ...a }) => {
|
|
7
|
+
const { ref: n } = e({ change: r });
|
|
8
|
+
return /* @__PURE__ */ s("ds-radio-group-react", { ref: n, class: t, ...a, children: o });
|
|
9
|
+
}, c = ({ children: o, className: r, ...t }) => /* @__PURE__ */ s("ds-radio-react", { class: r, ...t, children: o }), l = {
|
|
10
|
+
Group: i,
|
|
11
|
+
Button: c
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
l as Radio
|
|
15
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DsRadioButtonAttrs } from '@cupra/ui-kit/react/types/ds-radio-button';
|
|
2
2
|
import { type ReactElement } from 'react';
|
|
3
|
-
import '@cupra/ui-kit/react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-radio-button';
|
|
4
4
|
type RadioButtonProps = DsRadioButtonAttrs & {
|
|
5
5
|
onChange?: (event: CustomEvent) => void;
|
|
6
6
|
className?: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-radio-button";
|
|
3
|
+
import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
|
|
4
|
+
function p(o) {
|
|
5
|
+
const { className: t, children: r, onChange: n, ...e } = o, { ref: s } = c({ change: n });
|
|
6
|
+
return /* @__PURE__ */ a("ds-radio-button-react", { ref: s, class: t, ...e, children: r });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
p as RadioButton
|
|
10
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DsRadioButtonGroupAttrs } from '@cupra/ui-kit/react/types/ds-radio-button-group';
|
|
2
2
|
import { type ReactElement, type ReactNode } from 'react';
|
|
3
|
-
import '@cupra/ui-kit/react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-radio-button-group';
|
|
4
4
|
export type RadioButtonGroupProps = DsRadioButtonGroupAttrs & {
|
|
5
5
|
onChange?: (event: CustomEvent) => void;
|
|
6
6
|
className?: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-radio-button-group";
|
|
3
|
+
import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
|
|
4
|
+
function m(o) {
|
|
5
|
+
const { className: r, children: t, onChange: n, ...e } = o, { ref: s } = c({ change: n });
|
|
6
|
+
return /* @__PURE__ */ a("ds-radio-button-group-react", { ref: s, class: r, ...e, children: t });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
m as RadioButtonGroup
|
|
10
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DsSearchAttrs } from '@cupra/ui-kit/react/types/ds-search';
|
|
2
2
|
import { type ChangeEvent } from 'react';
|
|
3
|
-
import '@cupra/ui-kit/react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-search';
|
|
4
4
|
type SearchProps = DsSearchAttrs & {
|
|
5
5
|
className?: string;
|
|
6
6
|
onInput?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import "@cupra/ui-kit/react/ds-search";
|
|
4
|
+
const c = t(({ onInput: r, className: a, ...e }, o) => /* @__PURE__ */ s("ds-search-react", { ref: o, class: a, onInput: r, ...e }));
|
|
5
|
+
c.displayName = "Search";
|
|
6
|
+
export {
|
|
7
|
+
c as Search
|
|
8
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DsSearchInputAttrs } from '@cupra/ui-kit/react/types/ds-search-input';
|
|
2
2
|
import { type ReactElement } from 'react';
|
|
3
|
-
import '@cupra/ui-kit/react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-search-input';
|
|
4
4
|
type SearchInputProps = DsSearchInputAttrs & {
|
|
5
5
|
className?: string;
|
|
6
6
|
onChange?: (event: typeof InputEvent) => void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-search-input";
|
|
3
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
4
|
+
import "react";
|
|
5
|
+
import { useHandleEvent as g } from "../../hooks/useHandleEvent.js";
|
|
6
|
+
function I(e) {
|
|
7
|
+
const {
|
|
8
|
+
className: n,
|
|
9
|
+
children: x,
|
|
10
|
+
onChange: r,
|
|
11
|
+
onInput: o,
|
|
12
|
+
onClickPositionButton: i,
|
|
13
|
+
placeHolder: p,
|
|
14
|
+
type: P,
|
|
15
|
+
value: a,
|
|
16
|
+
label: c,
|
|
17
|
+
required: l,
|
|
18
|
+
disabled: s,
|
|
19
|
+
pattern: u,
|
|
20
|
+
maxLength: h,
|
|
21
|
+
minLength: d,
|
|
22
|
+
inputProps: m,
|
|
23
|
+
...b
|
|
24
|
+
} = e, { ref: f } = g({
|
|
25
|
+
change: r,
|
|
26
|
+
input: o,
|
|
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
|
+
) });
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
I as SearchInput
|
|
47
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DsSecondaryNavigationAttrs } from '@cupra/ui-kit/react/types/ds-secondary-navigation';
|
|
2
2
|
import { type ReactElement, type ReactNode } from 'react';
|
|
3
|
-
import '@cupra/ui-kit/react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-secondary-navigation';
|
|
4
4
|
type SecondaryNavigationProps = DsSecondaryNavigationAttrs & {
|
|
5
5
|
className?: string;
|
|
6
6
|
children?: ReactNode;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-secondary-navigation";
|
|
3
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
4
|
+
import "react";
|
|
5
|
+
import { useHandleEvent as a } from "../../hooks/useHandleEvent.js";
|
|
6
|
+
function n(t) {
|
|
7
|
+
const { className: s, children: e, onSelect: r, ...i } = t, { ref: c } = a({
|
|
8
|
+
"ds-secondary-navigation:select": r
|
|
9
|
+
});
|
|
10
|
+
return /* @__PURE__ */ o("ds-secondary-navigation-react", { ref: c, class: s, ...i, children: e });
|
|
11
|
+
}
|
|
12
|
+
const m = ({ children: t }) => /* @__PURE__ */ o("div", { slot: "items", children: t }), d = ({ children: t }) => /* @__PURE__ */ o("div", { slot: "actions", children: t });
|
|
13
|
+
n.Items = m;
|
|
14
|
+
n.Actions = d;
|
|
15
|
+
export {
|
|
16
|
+
n as SecondaryNavigation
|
|
17
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DsSegmentedControlAttrs } from '@cupra/ui-kit/react/types/ds-segmented-control';
|
|
2
2
|
import { type ReactElement } from 'react';
|
|
3
|
-
import '@cupra/ui-kit/react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-segmented-control';
|
|
4
4
|
type SegmentedControlProps = DsSegmentedControlAttrs & {
|
|
5
5
|
onChange?: (event: CustomEvent) => void;
|
|
6
6
|
className?: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-segmented-control";
|
|
3
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
4
|
+
import "react";
|
|
5
|
+
import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
|
|
6
|
+
function f(e) {
|
|
7
|
+
const { onChange: o, className: r, children: t, ...n } = e, { ref: s } = c({ change: o });
|
|
8
|
+
return /* @__PURE__ */ m("ds-segmented-control-react", { ref: s, class: r, ...n, children: t });
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
f as SegmentedControl
|
|
12
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
|
-
import '@cupra/ui-kit/react';
|
|
2
|
+
import '@cupra/ui-kit/react/ds-select';
|
|
3
3
|
import { DsSelectAttrs } from '@cupra/ui-kit/react/types/ds-select';
|
|
4
4
|
type Children = JSX.Element | JSX.Element[] | string;
|
|
5
5
|
interface SelectProps extends DsSelectAttrs {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DsSelectionAttrs } from '@cupra/ui-kit/react/types/ds-selection';
|
|
2
2
|
import { type ReactElement } from 'react';
|
|
3
|
-
import '@cupra/ui-kit/react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-selection';
|
|
4
4
|
type SelectionProps = DsSelectionAttrs & {
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-selection";
|
|
3
|
+
function i(e) {
|
|
4
|
+
const { className: o, children: s, ...r } = e;
|
|
5
|
+
return /* @__PURE__ */ t("ds-selection-react", { class: o, ...r });
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
i as Selection
|
|
9
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DsSidebarNavigationAttrs } from '@cupra/ui-kit/react/types/ds-sidebar-navigation';
|
|
2
|
-
import '@cupra/ui-kit/react';
|
|
2
|
+
import '@cupra/ui-kit/react/ds-sidebar-navigation';
|
|
3
3
|
import { type ReactElement, type ReactNode } from 'react';
|
|
4
4
|
export type SidebarNavigationProps = DsSidebarNavigationAttrs & {
|
|
5
5
|
className?: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-sidebar-navigation";
|
|
3
|
+
function s(t) {
|
|
4
|
+
const { className: i, children: r, ...n } = t;
|
|
5
|
+
return /* @__PURE__ */ e("ds-sidebar-navigation-react", { class: i, ...n, children: r });
|
|
6
|
+
}
|
|
7
|
+
const o = ({ children: t }) => /* @__PURE__ */ e("div", { slot: "aside-text", children: t }), a = ({ children: t }) => /* @__PURE__ */ e("div", { slot: "aside-icon", children: t }), d = ({ children: t }) => /* @__PURE__ */ e("div", { slot: "aside-helper-text", children: t }), c = ({ children: t }) => /* @__PURE__ */ e("div", { slot: "main-cta", children: t }), l = ({ children: t }) => /* @__PURE__ */ e("div", { slot: "ctas", children: t });
|
|
8
|
+
s.AsideText = o;
|
|
9
|
+
s.AsideIcon = a;
|
|
10
|
+
s.AsideHelperText = d;
|
|
11
|
+
s.MainCta = c;
|
|
12
|
+
s.Ctas = l;
|
|
13
|
+
export {
|
|
14
|
+
s as SidebarNavigation
|
|
15
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
|
-
import '@cupra/ui-kit/react';
|
|
3
|
-
import { DsSliderAttrs } from '@cupra/ui-kit/
|
|
2
|
+
import '@cupra/ui-kit/react/ds-slider';
|
|
3
|
+
import { DsSliderAttrs } from '@cupra/ui-kit/react/types/ds-slider';
|
|
4
4
|
type SliderProps = DsSliderAttrs & {
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-slider";
|
|
3
|
+
function l(s) {
|
|
4
|
+
const { className: e, children: o, size: r, ...i } = s;
|
|
5
|
+
return /* @__PURE__ */ t(
|
|
6
|
+
"ds-slider-react",
|
|
7
|
+
{
|
|
8
|
+
size: typeof r == "string" ? r : JSON.stringify(r),
|
|
9
|
+
class: e,
|
|
10
|
+
...i
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
l as Slider
|
|
16
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import '@cupra/ui-kit/react';
|
|
2
|
+
import '@cupra/ui-kit/react/ds-static-box';
|
|
3
3
|
import type { DsStaticBoxAttrs } from '@cupra/ui-kit/react/types/ds-static-box';
|
|
4
4
|
type StaticBoxProps = DsStaticBoxAttrs & {
|
|
5
5
|
className?: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
3
|
+
import "react";
|
|
4
|
+
import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
|
|
5
|
+
import "@cupra/ui-kit/react/ds-static-box";
|
|
6
|
+
function x(r) {
|
|
7
|
+
const { className: o, children: s, size: t, ...i } = r, { ref: e } = c({});
|
|
8
|
+
return /* @__PURE__ */ n(
|
|
9
|
+
"ds-static-box-react",
|
|
10
|
+
{
|
|
11
|
+
ref: e,
|
|
12
|
+
size: typeof t == "string" ? t : JSON.stringify(t),
|
|
13
|
+
class: o,
|
|
14
|
+
...i,
|
|
15
|
+
children: s
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
x as StaticBox
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
3
|
+
import "react";
|
|
4
|
+
import { useHandleEvent as i } from "../../hooks/useHandleEvent.js";
|
|
5
|
+
import "@cupra/ui-kit/react/ds-tabs";
|
|
6
|
+
function n({ children: t, onChange: e, ...o }) {
|
|
7
|
+
const { ref: a } = i({ change: e });
|
|
8
|
+
return /* @__PURE__ */ r("ds-tabs-react", { ref: a, ...o, children: t });
|
|
9
|
+
}
|
|
10
|
+
function l({ children: t }) {
|
|
11
|
+
return /* @__PURE__ */ r("div", { role: "tab", slot: "tab", children: t });
|
|
12
|
+
}
|
|
13
|
+
function p({ children: t }) {
|
|
14
|
+
return /* @__PURE__ */ r("div", { role: "tabpanel", slot: "panel", children: t });
|
|
15
|
+
}
|
|
16
|
+
n.Tab = l;
|
|
17
|
+
n.Panel = p;
|
|
18
|
+
export {
|
|
19
|
+
n as Tabs
|
|
20
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
|
-
import '@cupra/ui-kit/react';
|
|
2
|
+
import '@cupra/ui-kit/react/ds-tag';
|
|
3
3
|
import { DsTagAttrs } from '@cupra/ui-kit/react/types/ds-tag';
|
|
4
4
|
type Children = JSX.Element | JSX.Element[] | string;
|
|
5
5
|
interface TabsProps extends DsTagAttrs {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
3
|
+
import "react";
|
|
4
|
+
import { useHandleEvent as s } from "../../hooks/useHandleEvent.js";
|
|
5
|
+
import "@cupra/ui-kit/react/ds-tag";
|
|
6
|
+
function d(o) {
|
|
7
|
+
const { children: r, onClickIcon: t, className: c, ...n } = o, { ref: e } = s({ clickicon: t });
|
|
8
|
+
return /* @__PURE__ */ i("ds-tag-react", { ref: e, class: c, ...n, children: r });
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
d as Tag
|
|
12
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DsTextAttrs } from '@cupra/ui-kit/react/types/ds-text';
|
|
2
2
|
import { type ReactElement } from 'react';
|
|
3
|
-
import '@cupra/ui-kit/react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-text';
|
|
4
4
|
type TextProps = DsTextAttrs & {
|
|
5
5
|
className?: string;
|
|
6
6
|
children: JSX.Element | JSX.Element[] | string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DsTextInputAttrs } from '@cupra/ui-kit/react/types/ds-text-input';
|
|
2
2
|
import { ChangeEvent, FormEvent, KeyboardEvent, type ReactElement } from 'react';
|
|
3
|
-
import '@cupra/ui-kit/react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-text-input';
|
|
4
4
|
type TextInputProps = DsTextInputAttrs & {
|
|
5
5
|
type?: 'text' | 'email' | 'number' | 'url' | 'tel';
|
|
6
6
|
className?: string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsxs as y, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-text-input";
|
|
3
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
4
|
+
import "react";
|
|
5
|
+
import { useHandleEvent as b } from "../../hooks/useHandleEvent.js";
|
|
6
|
+
function k(n) {
|
|
7
|
+
const {
|
|
8
|
+
className: r,
|
|
9
|
+
children: I,
|
|
10
|
+
onChange: o,
|
|
11
|
+
onInput: p,
|
|
12
|
+
onKeyDown: i,
|
|
13
|
+
inputId: e,
|
|
14
|
+
placeHolder: l,
|
|
15
|
+
type: a,
|
|
16
|
+
value: d,
|
|
17
|
+
label: s,
|
|
18
|
+
required: c,
|
|
19
|
+
disabled: m,
|
|
20
|
+
pattern: u,
|
|
21
|
+
maxLength: h,
|
|
22
|
+
minLength: x,
|
|
23
|
+
...f
|
|
24
|
+
} = n, { ref: g } = b({ change: o, input: p, keydown: i });
|
|
25
|
+
return /* @__PURE__ */ y("ds-text-input-react", { ref: g, class: r, ...f, children: [
|
|
26
|
+
/* @__PURE__ */ t("label", { htmlFor: e, children: s }),
|
|
27
|
+
/* @__PURE__ */ t(
|
|
28
|
+
"input",
|
|
29
|
+
{
|
|
30
|
+
id: e,
|
|
31
|
+
type: a || "text",
|
|
32
|
+
placeholder: l,
|
|
33
|
+
value: d,
|
|
34
|
+
required: c,
|
|
35
|
+
disabled: m,
|
|
36
|
+
minLength: x,
|
|
37
|
+
maxLength: h,
|
|
38
|
+
pattern: u
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
] });
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
k as TextInput
|
|
45
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DsTextareaAttrs } from '@cupra/ui-kit/react/types/ds-textarea';
|
|
2
2
|
import { type ReactElement } from 'react';
|
|
3
|
-
import '@cupra/ui-kit/react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-textarea';
|
|
4
4
|
type TextareaProps = DsTextareaAttrs & {
|
|
5
5
|
className?: string;
|
|
6
6
|
onChange?: (event: typeof InputEvent) => void;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsxs as E, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-textarea";
|
|
3
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
4
|
+
import "react";
|
|
5
|
+
import { useHandleEvent as j } from "../../hooks/useHandleEvent.js";
|
|
6
|
+
function F(t) {
|
|
7
|
+
const {
|
|
8
|
+
className: o,
|
|
9
|
+
children: I,
|
|
10
|
+
onChange: a,
|
|
11
|
+
onInput: n,
|
|
12
|
+
textareaId: e,
|
|
13
|
+
placeholder: l,
|
|
14
|
+
value: i,
|
|
15
|
+
label: d,
|
|
16
|
+
required: s,
|
|
17
|
+
disabled: c,
|
|
18
|
+
minLength: h,
|
|
19
|
+
maxLength: p,
|
|
20
|
+
rows: m,
|
|
21
|
+
cols: x,
|
|
22
|
+
forcedError: u,
|
|
23
|
+
helperText: f,
|
|
24
|
+
invalidError: g,
|
|
25
|
+
...v
|
|
26
|
+
} = t, { ref: b } = j({ change: a, input: n });
|
|
27
|
+
return /* @__PURE__ */ E(
|
|
28
|
+
"ds-textarea-react",
|
|
29
|
+
{
|
|
30
|
+
ref: b,
|
|
31
|
+
class: o,
|
|
32
|
+
"forced-error": u,
|
|
33
|
+
"helper-text": f,
|
|
34
|
+
"invalid-error": g,
|
|
35
|
+
...v,
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ r("label", { htmlFor: e, children: d }),
|
|
38
|
+
/* @__PURE__ */ r(
|
|
39
|
+
"textarea",
|
|
40
|
+
{
|
|
41
|
+
id: e,
|
|
42
|
+
placeholder: l,
|
|
43
|
+
value: i,
|
|
44
|
+
required: s,
|
|
45
|
+
disabled: c,
|
|
46
|
+
minLength: h,
|
|
47
|
+
maxLength: p,
|
|
48
|
+
rows: m,
|
|
49
|
+
cols: x
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
F as Textarea
|
|
58
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-toast";
|
|
3
|
+
function e(t) {
|
|
4
|
+
const { className: o, ...s } = t;
|
|
5
|
+
return /* @__PURE__ */ a("ds-toast-react", { class: o, ...s });
|
|
6
|
+
}
|
|
7
|
+
e.add = (t) => {
|
|
8
|
+
window.dispatchEvent(
|
|
9
|
+
new CustomEvent("toast:add", {
|
|
10
|
+
detail: t
|
|
11
|
+
})
|
|
12
|
+
);
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
e as Toast
|
|
16
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DsToastMessageAttrs } from '@cupra/ui-kit/react/types/ds-toast-message';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
|
-
import '@cupra/ui-kit/react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-toast-message';
|
|
4
4
|
export type ToastMessageProps = DsToastMessageAttrs & {
|
|
5
5
|
className?: string;
|
|
6
6
|
children?: ReactNode;
|