@cupra/ui-react 1.0.0-canary.16 → 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 +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +8 -7
- package/dist/components/Bullets/Bullets.d.ts +1 -1
- package/dist/components/Bullets/Bullets.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +7 -6
- package/dist/components/CarouselIndicator/CarouselIndicator.d.ts +1 -1
- package/dist/components/CarouselIndicator/CarouselIndicator.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +7 -6
- package/dist/components/Chip/Chip.d.ts +1 -1
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Chips/Chips.d.ts +1 -1
- package/dist/components/Chips/Chips.js +7 -6
- package/dist/components/Currency/Currency.d.ts +1 -1
- package/dist/components/Currency/Currency.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/Dialog.js +4 -3
- package/dist/components/DialogBody/DialogBody.d.ts +1 -1
- package/dist/components/DialogBody/DialogBody.js +1 -1
- package/dist/components/DialogFooter/DialogFooter.d.ts +1 -1
- package/dist/components/DialogFooter/DialogFooter.js +1 -1
- package/dist/components/DialogHeader/DialogHeader.d.ts +1 -1
- package/dist/components/DialogHeader/DialogHeader.js +1 -1
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Hyperlink/Hyperlink.d.ts +1 -1
- package/dist/components/Hyperlink/Hyperlink.js +6 -5
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +7 -6
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/InteractiveCard/InteractiveCard.d.ts +1 -1
- package/dist/components/InteractiveCard/InteractiveCard.js +5 -4
- package/dist/components/LinkButton/LinkButton.d.ts +1 -1
- package/dist/components/LinkButton/LinkButton.js +4 -3
- package/dist/components/Loader/Loader.d.ts +4 -1
- package/dist/components/Loader/Loader.js +16 -13
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Logo/Logo.js +1 -1
- package/dist/components/MapPin/MapPin.d.ts +1 -1
- package/dist/components/MapPin/MapPin.js +8 -7
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.js +2 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +18 -17
- package/dist/components/PickerItem/PickerItem.d.ts +1 -1
- package/dist/components/PickerItem/PickerItem.js +1 -1
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/Radio.js +7 -6
- package/dist/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/components/RadioButton/RadioButton.js +1 -1
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
- package/dist/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.js +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.js +8 -7
- package/dist/components/SecondaryNavigation/SecondaryNavigation.d.ts +1 -1
- package/dist/components/SecondaryNavigation/SecondaryNavigation.js +2 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +8 -7
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Selection/Selection.d.ts +1 -1
- package/dist/components/Selection/Selection.js +1 -1
- package/dist/components/SidebarNavigation/SidebarNavigation.d.ts +1 -1
- package/dist/components/SidebarNavigation/SidebarNavigation.js +1 -1
- package/dist/components/Slider/Slider.d.ts +2 -2
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/StaticBox/StaticBox.d.ts +1 -1
- package/dist/components/StaticBox/StaticBox.js +7 -6
- package/dist/components/Stepper/Stepper.d.ts +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js +11 -10
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.js +8 -7
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/TextInput/TextInput.d.ts +1 -1
- package/dist/components/TextInput/TextInput.js +15 -14
- package/dist/components/Textarea/Textarea.d.ts +1 -1
- package/dist/components/Textarea/Textarea.js +4 -3
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/ToastMessage/ToastMessage.d.ts +1 -1
- package/dist/components/ToastMessage/ToastMessage.js +7 -6
- package/dist/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/components/ToggleButton/ToggleButton.js +4 -3
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.js +9 -8
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +6 -5
- package/dist/hooks/useBreakpoint.js +13 -13
- package/package.json +17 -5
- package/dist/packages/ui-kit/dist-react/index.js +0 -9226
- package/dist/packages/ui-kit/dist-react/utils/breakpoints.js +0 -11
- package/dist/packages/ui-kit/dist-react/utils/debounce.js +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DsPasswordInputAttrs } from '@cupra/ui-kit/react/types/ds-password-input';
|
|
2
2
|
import { type ReactElement } from 'react';
|
|
3
|
-
import '@cupra/ui-kit/react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-password-input';
|
|
4
4
|
type PasswordInputProps = DsPasswordInputAttrs & {
|
|
5
5
|
className?: string;
|
|
6
6
|
onChange?: (event: typeof InputEvent) => void;
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import { jsxs as x, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@cupra/ui-kit/react/ds-password-input";
|
|
3
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
3
4
|
import "react";
|
|
4
5
|
import { useHandleEvent as b } from "../../hooks/useHandleEvent.js";
|
|
5
|
-
function
|
|
6
|
+
function L(l) {
|
|
6
7
|
const {
|
|
7
8
|
className: d,
|
|
8
9
|
children: w,
|
|
9
10
|
onChange: c,
|
|
10
11
|
onInput: u,
|
|
11
12
|
inputId: e,
|
|
12
|
-
placeHolder:
|
|
13
|
-
value:
|
|
14
|
-
label:
|
|
15
|
-
required:
|
|
13
|
+
placeHolder: r,
|
|
14
|
+
value: t,
|
|
15
|
+
label: m,
|
|
16
|
+
required: n,
|
|
16
17
|
disabled: o,
|
|
17
|
-
pattern:
|
|
18
|
-
maxLength:
|
|
18
|
+
pattern: p,
|
|
19
|
+
maxLength: s,
|
|
19
20
|
minLength: a,
|
|
20
|
-
...
|
|
21
|
+
...h
|
|
21
22
|
} = l, { ref: f } = b({ change: c, input: u }), g = {
|
|
22
23
|
type: "password",
|
|
23
24
|
...!!e && { id: e },
|
|
24
|
-
...!!
|
|
25
|
-
...!!
|
|
26
|
-
...!!
|
|
25
|
+
...!!r && { placeholder: r },
|
|
26
|
+
...!!t && { value: t },
|
|
27
|
+
...!!n && { required: n },
|
|
27
28
|
...!!o && { disabled: o },
|
|
28
29
|
...!!a && { minLength: a },
|
|
29
|
-
...!!
|
|
30
|
-
...!!
|
|
30
|
+
...!!s && { maxLength: s },
|
|
31
|
+
...!!p && { pattern: p }
|
|
31
32
|
};
|
|
32
|
-
return /* @__PURE__ */ x("ds-password-input-react", { ref: f, class: d, ...
|
|
33
|
-
/* @__PURE__ */ i("label", { htmlFor: e, children:
|
|
33
|
+
return /* @__PURE__ */ x("ds-password-input-react", { ref: f, class: d, ...h, children: [
|
|
34
|
+
/* @__PURE__ */ i("label", { htmlFor: e, children: m }),
|
|
34
35
|
/* @__PURE__ */ i("input", { ...g })
|
|
35
36
|
] });
|
|
36
37
|
}
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
+
L as PasswordInput
|
|
39
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@cupra/ui-kit/react/ds-picker-item";
|
|
3
3
|
import { useHandleEvent as m } from "../../hooks/useHandleEvent.js";
|
|
4
4
|
function a(r) {
|
|
5
5
|
const { className: i, children: t, onClick: s, size: e, ...c } = r, { ref: o } = m({
|
|
@@ -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;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
2
3
|
import "react";
|
|
3
4
|
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
4
|
-
import "
|
|
5
|
-
const
|
|
5
|
+
import "@cupra/ui-kit/react/ds-radio";
|
|
6
|
+
const i = ({ children: o, onChange: r, className: t, ...a }) => {
|
|
6
7
|
const { ref: n } = e({ change: r });
|
|
7
8
|
return /* @__PURE__ */ s("ds-radio-group-react", { ref: n, class: t, ...a, children: o });
|
|
8
|
-
},
|
|
9
|
-
Group:
|
|
10
|
-
Button:
|
|
9
|
+
}, c = ({ children: o, className: r, ...t }) => /* @__PURE__ */ s("ds-radio-react", { class: r, ...t, children: o }), l = {
|
|
10
|
+
Group: i,
|
|
11
|
+
Button: c
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
l as Radio
|
|
14
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@cupra/ui-kit/react/ds-radio-button";
|
|
3
3
|
import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
|
|
4
4
|
function p(o) {
|
|
5
5
|
const { className: t, children: r, onChange: n, ...e } = o, { ref: s } = c({ change: n });
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@cupra/ui-kit/react/ds-radio-button-group";
|
|
3
3
|
import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
|
|
4
4
|
function m(o) {
|
|
5
5
|
const { className: r, children: t, onChange: n, ...e } = o, { ref: s } = c({ change: n });
|
|
@@ -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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
|
-
import "
|
|
3
|
+
import "@cupra/ui-kit/react/ds-search";
|
|
4
4
|
const c = t(({ onInput: r, className: a, ...e }, o) => /* @__PURE__ */ s("ds-search-react", { ref: o, class: a, onInput: r, ...e }));
|
|
5
5
|
c.displayName = "Search";
|
|
6
6
|
export {
|
|
@@ -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;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@cupra/ui-kit/react/ds-search-input";
|
|
3
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
3
4
|
import "react";
|
|
4
5
|
import { useHandleEvent as g } from "../../hooks/useHandleEvent.js";
|
|
5
|
-
function
|
|
6
|
+
function I(e) {
|
|
6
7
|
const {
|
|
7
8
|
className: n,
|
|
8
9
|
children: x,
|
|
9
10
|
onChange: r,
|
|
10
11
|
onInput: o,
|
|
11
12
|
onClickPositionButton: i,
|
|
12
|
-
placeHolder:
|
|
13
|
+
placeHolder: p,
|
|
13
14
|
type: P,
|
|
14
|
-
value:
|
|
15
|
+
value: a,
|
|
15
16
|
label: c,
|
|
16
17
|
required: l,
|
|
17
18
|
disabled: s,
|
|
@@ -30,8 +31,8 @@ function H(e) {
|
|
|
30
31
|
{
|
|
31
32
|
type: "text",
|
|
32
33
|
"aria-label": c,
|
|
33
|
-
placeholder:
|
|
34
|
-
value:
|
|
34
|
+
placeholder: p,
|
|
35
|
+
value: a,
|
|
35
36
|
required: l,
|
|
36
37
|
disabled: s,
|
|
37
38
|
minLength: d,
|
|
@@ -42,5 +43,5 @@ function H(e) {
|
|
|
42
43
|
) });
|
|
43
44
|
}
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
I as SearchInput
|
|
46
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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@cupra/ui-kit/react/ds-secondary-navigation";
|
|
3
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
3
4
|
import "react";
|
|
4
5
|
import { useHandleEvent as a } from "../../hooks/useHandleEvent.js";
|
|
5
6
|
function n(t) {
|
|
@@ -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;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "
|
|
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";
|
|
3
4
|
import "react";
|
|
4
|
-
import { useHandleEvent as
|
|
5
|
-
function
|
|
6
|
-
const { onChange: o, className: r, children: t, ...n } = e, { ref: s } =
|
|
7
|
-
return /* @__PURE__ */
|
|
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 });
|
|
8
9
|
}
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
f as SegmentedControl
|
|
11
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
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@cupra/ui-kit/react/ds-selection";
|
|
3
3
|
function i(e) {
|
|
4
4
|
const { className: o, children: s, ...r } = e;
|
|
5
5
|
return /* @__PURE__ */ t("ds-selection-react", { class: o, ...r });
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@cupra/ui-kit/react/ds-sidebar-navigation";
|
|
3
3
|
function s(t) {
|
|
4
4
|
const { className: i, children: r, ...n } = t;
|
|
5
5
|
return /* @__PURE__ */ e("ds-sidebar-navigation-react", { class: i, ...n, children: r });
|
|
@@ -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
|
};
|
|
@@ -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;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
2
3
|
import "react";
|
|
3
4
|
import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
|
|
4
|
-
import "
|
|
5
|
-
function
|
|
6
|
-
const { className: o, children: s, size: t, ...
|
|
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({});
|
|
7
8
|
return /* @__PURE__ */ n(
|
|
8
9
|
"ds-static-box-react",
|
|
9
10
|
{
|
|
10
|
-
ref:
|
|
11
|
+
ref: e,
|
|
11
12
|
size: typeof t == "string" ? t : JSON.stringify(t),
|
|
12
13
|
class: o,
|
|
13
|
-
...
|
|
14
|
+
...i,
|
|
14
15
|
children: s
|
|
15
16
|
}
|
|
16
17
|
);
|
|
17
18
|
}
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
x as StaticBox
|
|
20
21
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
2
3
|
import "react";
|
|
3
4
|
import { useHandleEvent as i } from "../../hooks/useHandleEvent.js";
|
|
4
|
-
import "
|
|
5
|
-
function
|
|
5
|
+
import "@cupra/ui-kit/react/ds-tabs";
|
|
6
|
+
function n({ children: t, onChange: e, ...o }) {
|
|
6
7
|
const { ref: a } = i({ change: e });
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ r("ds-tabs-react", { ref: a, ...o, children: t });
|
|
8
9
|
}
|
|
9
10
|
function l({ children: t }) {
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ r("div", { role: "tab", slot: "tab", children: t });
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
function p({ children: t }) {
|
|
14
|
+
return /* @__PURE__ */ r("div", { role: "tabpanel", slot: "panel", children: t });
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
n.Tab = l;
|
|
17
|
+
n.Panel = p;
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
n as Tabs
|
|
19
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 {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
2
3
|
import "react";
|
|
3
|
-
import { useHandleEvent as
|
|
4
|
-
import "
|
|
5
|
-
function
|
|
6
|
-
const { children: r, onClickIcon: t, className: c, ...n } = o, { ref: e } =
|
|
7
|
-
return /* @__PURE__ */
|
|
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 });
|
|
8
9
|
}
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
d as Tag
|
|
11
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,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@cupra/ui-kit/react/ds-text";
|
|
3
3
|
function a(t) {
|
|
4
4
|
const { className: r, children: e, ...o } = t;
|
|
5
5
|
return /* @__PURE__ */ s("ds-text-react", { class: r, ...o, children: e });
|
|
@@ -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;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { jsxs as y, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@cupra/ui-kit/react/ds-text-input";
|
|
3
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
3
4
|
import "react";
|
|
4
5
|
import { useHandleEvent as b } from "../../hooks/useHandleEvent.js";
|
|
5
|
-
function
|
|
6
|
+
function k(n) {
|
|
6
7
|
const {
|
|
7
8
|
className: r,
|
|
8
9
|
children: I,
|
|
9
10
|
onChange: o,
|
|
10
|
-
onInput:
|
|
11
|
-
onKeyDown:
|
|
11
|
+
onInput: p,
|
|
12
|
+
onKeyDown: i,
|
|
12
13
|
inputId: e,
|
|
13
|
-
placeHolder:
|
|
14
|
+
placeHolder: l,
|
|
14
15
|
type: a,
|
|
15
16
|
value: d,
|
|
16
17
|
label: s,
|
|
17
18
|
required: c,
|
|
18
|
-
disabled:
|
|
19
|
-
pattern:
|
|
20
|
-
maxLength:
|
|
19
|
+
disabled: m,
|
|
20
|
+
pattern: u,
|
|
21
|
+
maxLength: h,
|
|
21
22
|
minLength: x,
|
|
22
23
|
...f
|
|
23
|
-
} = n, { ref: g } = b({ change: o, input:
|
|
24
|
+
} = n, { ref: g } = b({ change: o, input: p, keydown: i });
|
|
24
25
|
return /* @__PURE__ */ y("ds-text-input-react", { ref: g, class: r, ...f, children: [
|
|
25
26
|
/* @__PURE__ */ t("label", { htmlFor: e, children: s }),
|
|
26
27
|
/* @__PURE__ */ t(
|
|
@@ -28,17 +29,17 @@ function L(n) {
|
|
|
28
29
|
{
|
|
29
30
|
id: e,
|
|
30
31
|
type: a || "text",
|
|
31
|
-
placeholder:
|
|
32
|
+
placeholder: l,
|
|
32
33
|
value: d,
|
|
33
34
|
required: c,
|
|
34
|
-
disabled:
|
|
35
|
+
disabled: m,
|
|
35
36
|
minLength: x,
|
|
36
|
-
maxLength:
|
|
37
|
-
pattern:
|
|
37
|
+
maxLength: h,
|
|
38
|
+
pattern: u
|
|
38
39
|
}
|
|
39
40
|
)
|
|
40
41
|
] });
|
|
41
42
|
}
|
|
42
43
|
export {
|
|
43
|
-
|
|
44
|
+
k as TextInput
|
|
44
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;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs as E, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@cupra/ui-kit/react/ds-textarea";
|
|
3
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
3
4
|
import "react";
|
|
4
5
|
import { useHandleEvent as j } from "../../hooks/useHandleEvent.js";
|
|
5
|
-
function
|
|
6
|
+
function F(t) {
|
|
6
7
|
const {
|
|
7
8
|
className: o,
|
|
8
9
|
children: I,
|
|
@@ -53,5 +54,5 @@ function C(t) {
|
|
|
53
54
|
);
|
|
54
55
|
}
|
|
55
56
|
export {
|
|
56
|
-
|
|
57
|
+
F as Textarea
|
|
57
58
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@cupra/ui-kit/react/ds-theme-provider";
|
|
3
3
|
const i = ({ children: r, ...e }) => /* @__PURE__ */ o("ds-theme-provider-react", { ...e, children: r });
|
|
4
4
|
export {
|
|
5
5
|
i as ThemeProvider
|
|
@@ -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;
|