@cupra/ui-react 2.0.0-canary.90 → 2.0.0-canary.92
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/components/Calendar/Calendar.cjs +1 -0
- package/dist/cjs/components/FavouriteAction/FavouriteAction.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/Calendar/Calendar.js +12 -0
- package/dist/esm/components/FavouriteAction/FavouriteAction.js +28 -0
- package/dist/esm/index.js +139 -135
- package/dist/types/components/Calendar/Calendar.d.ts +12 -0
- package/dist/types/components/FavouriteAction/FavouriteAction.d.ts +10 -0
- package/dist/types/components/index.d.ts +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime");require("@cupra/ui-kit/react/ds-calendar");require("@cupra/ui-kit/react/utils/breakpoints");require("react");const s=require("../../hooks/useHandleEvent.cjs");function u({className:e,onChange:r,...n}){const{ref:a}=s.useHandleEvent({"ds-calendar-change":r});return t.jsx("ds-calendar-react",{ref:a,class:e,...n})}exports.Calendar=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime");require("@cupra/ui-kit/react/utils/breakpoints");require("react");const a=require("../../hooks/useHandleEvent.cjs");require("@cupra/ui-kit/react/ds-favourite-action");function l({className:t,initialSelected:i,onChange:e,onClick:r,...c}){const u=n=>{e==null||e(n.detail.selected)},{ref:s}=a.useHandleEvent({"ds-favourite-action:change":u,click:r});return o.jsx("ds-favourite-action-react",{ref:s,class:t,"initial-selected":i||void 0,...c})}exports.FavouriteAction=l;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./components/Accordion/Accordion.cjs"),o=require("./components/Badge/Badge.cjs"),t=require("./components/BasicCard/BasicCard.cjs"),i=require("./components/BasicCardImage/BasicCardImage.cjs"),n=require("./components/BasicCardHeader/BasicCardHeader.cjs"),a=require("./components/BasicCardSection/BasicCardSection.cjs"),s=require("./components/Breadcrumbs/Breadcrumbs.cjs"),c=require("./components/BreadcrumbsItem/BreadcrumbsItem.cjs"),u=require("./components/Bullets/Bullets.cjs"),l=require("./components/Button/Button.cjs"),d=require("./components/CarouselIndicator/CarouselIndicator.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./components/Accordion/Accordion.cjs"),o=require("./components/Badge/Badge.cjs"),t=require("./components/BasicCard/BasicCard.cjs"),i=require("./components/BasicCardImage/BasicCardImage.cjs"),n=require("./components/BasicCardHeader/BasicCardHeader.cjs"),a=require("./components/BasicCardSection/BasicCardSection.cjs"),s=require("./components/Breadcrumbs/Breadcrumbs.cjs"),c=require("./components/BreadcrumbsItem/BreadcrumbsItem.cjs"),u=require("./components/Bullets/Bullets.cjs"),l=require("./components/Button/Button.cjs"),d=require("./components/Calendar/Calendar.cjs"),q=require("./components/CarouselIndicator/CarouselIndicator.cjs"),g=require("./components/Checkbox/Checkbox.cjs"),B=require("./components/CheckboxGroup/CheckboxGroup.cjs"),C=require("./components/Chip/Chip.cjs"),p=require("./components/Chips/Chips.cjs"),T=require("./components/Currency/Currency.cjs"),I=require("./components/Dialog/Dialog.cjs"),S=require("./components/DialogBody/DialogBody.cjs"),v=require("./components/DialogFooter/DialogFooter.cjs"),b=require("./components/DialogFullscreen/DialogFullscreen.cjs"),m=require("./components/DialogHeader/DialogHeader.cjs"),h=require("./components/Divider/Divider.cjs"),L=require("./components/Drawer/Drawer.cjs"),k=require("./components/FavouriteAction/FavouriteAction.cjs"),D=require("./components/Hyperlink/Hyperlink.cjs"),x=require("./components/Icon/Icon.cjs"),R=require("./components/IconButton/IconButton.cjs"),M=require("./components/Input/Input.cjs"),y=require("./components/List/List.cjs"),P=require("./components/ListItem/ListItem.cjs"),w=require("./components/LinkButton/LinkButton.cjs"),e=require("./components/Loader/Loader.cjs"),A=require("./components/Logo/Logo.cjs"),H=require("./components/MainTitle/MainTitle.cjs"),F=require("./components/MapPin/MapPin.cjs"),G=require("./components/MediaControl/MediaControl.cjs"),N=require("./components/Modal/Modal.cjs"),E=require("./components/PasswordInput/PasswordInput.cjs"),O=require("./components/PickerItem/PickerItem.cjs"),z=require("./components/Radio/Radio.cjs"),U=require("./components/RadioButton/RadioButton.cjs"),V=require("./components/RadioButtonGroup/RadioButtonGroup.cjs"),f=require("./components/Rating/Rating.cjs"),j=require("./components/Search/Search.cjs"),J=require("./components/SearchInput/SearchInput.cjs"),K=require("./components/SecondaryNavigation/SecondaryNavigation.cjs"),Q=require("./components/SegmentedControl/SegmentedControl.cjs"),W=require("./components/Select/Select.cjs"),X=require("./components/Selection/Selection.cjs"),Y=require("./components/Skeleton/Skeleton.cjs"),Z=require("./components/Slider/Slider.cjs"),_=require("./components/Table/Table.cjs"),$=require("./components/TableCell/TableCell.cjs"),ee=require("./components/TableRow/TableRow.cjs"),re=require("./components/Tabs/Tabs.cjs"),oe=require("./components/Tag/Tag.cjs"),te=require("./components/Text/Text.cjs"),ie=require("./components/TextInput/TextInput.cjs"),ne=require("./components/Textarea/Textarea.cjs"),ae=require("./components/ThemeProvider/ThemeProvider.cjs"),se=require("./components/ToggleButton/ToggleButton.cjs"),ce=require("./components/ToggleSwitch/ToggleSwitch.cjs"),ue=require("./components/Tooltip/Tooltip.cjs"),le=require("./components/ValueUnit/ValueUnit.cjs"),de=require("./components/Toast/Toast.cjs"),qe=require("./components/ToastMessage/ToastMessage.cjs"),ge=require("./components/InlineAlert/InlineAlert.cjs"),Be=require("./components/Avatar/Avatar.cjs"),Ce=require("./components/StaticBox/StaticBox.cjs"),pe=require("./components/Stepper/Stepper.cjs"),Te=require("./components/InteractiveCard/InteractiveCard.cjs"),Ie=require("./components/SidebarNavigation/SidebarNavigation.cjs"),Se=require("./components/IconButtonGroup/IconButtonGroup.cjs"),ve=require("./components/NavigationControls/NavigationControls.cjs"),be=require("./hooks/useBreakpoint.cjs"),me=require("./hooks/useEventListeners.cjs"),he=require("./hooks/useHandleEvent.cjs");require("react");const Le=require("./hooks/useResizeObserver/useResizeObserver.cjs");exports.Accordion=r.Accordion;exports.Badge=o.Badge;exports.BasicCard=t.BasicCard;exports.BasicCardImage=i.BasicCardImage;exports.BasicCardHeader=n.BasicCardHeader;exports.BasicCardSection=a.BasicCardSection;exports.Breadcrumbs=s.Breadcrumbs;exports.BreadcrumbsItem=c.BreadcrumbsItem;exports.Bullets=u.Bullets;exports.Button=l.Button;exports.Calendar=d.Calendar;exports.CarouselIndicator=q.CarouselIndicator;exports.Checkbox=g.Checkbox;exports.CheckboxGroup=B.CheckboxGroup;exports.Chip=C.Chip;exports.Chips=p.Chips;exports.Currency=T.Currency;exports.Dialog=I.Dialog;exports.DialogBody=S.DialogBody;exports.DialogFooter=v.DialogFooter;exports.DialogFullscreen=b.DialogFullscreen;exports.DialogHeader=m.DialogHeader;exports.Divider=h.Divider;exports.Drawer=L.Drawer;exports.FavouriteAction=k.FavouriteAction;exports.Hyperlink=D.Hyperlink;exports.Icon=x.Icon;exports.IconButton=R.IconButton;exports.Input=M.Input;exports.List=y.List;exports.ListItem=P.ListItem;exports.LinkButton=w.LinkButton;exports.Loader=e.Loader;exports.LoaderLogo=e.LoaderLogo;exports.Logo=A.Logo;exports.MainTitle=H.MainTitle;exports.MapPin=F.MapPin;exports.MediaControl=G.MediaControl;exports.Modal=N.Modal;exports.PasswordInput=E.PasswordInput;exports.PickerItem=O.PickerItem;exports.Radio=z.Radio;exports.RadioButton=U.RadioButton;exports.RadioButtonGroup=V.RadioButtonGroup;exports.Rating=f.Rating;exports.Search=j.Search;exports.SearchInput=J.SearchInput;exports.SecondaryNavigation=K.SecondaryNavigation;exports.SegmentedControl=Q.SegmentedControl;exports.Select=W.Select;exports.Selection=X.Selection;exports.Skeleton=Y.Skeleton;exports.Slider=Z.Slider;exports.Table=_.Table;exports.TableCell=$.TableCell;exports.TableRow=ee.TableRow;exports.Tabs=re.Tabs;exports.Tag=oe.Tag;exports.Text=te.Text;exports.TextInput=ie.TextInput;exports.Textarea=ne.Textarea;exports.ThemeProvider=ae.ThemeProvider;exports.ToggleButton=se.ToggleButton;exports.ToggleSwitch=ce.ToggleSwitch;exports.Tooltip=ue.Tooltip;exports.ValueUnit=le.ValueUnit;exports.Toast=de.Toast;exports.ToastMessage=qe.ToastMessage;exports.InlineAlert=ge.InlineAlert;exports.Avatar=Be.Avatar;exports.StaticBox=Ce.StaticBox;exports.Stepper=pe.Stepper;exports.InteractiveCard=Te.InteractiveCard;exports.SidebarNavigation=Ie.SidebarNavigation;exports.IconButtonGroup=Se.IconButtonGroup;exports.NavigationControls=ve.NavigationControls;exports.useBreakpoint=be.useBreakpoint;exports.useEventListeners=me.useEventListeners;exports.useHandleEvent=he.useHandleEvent;exports.useResizeObserver=Le.useResizeObserver;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-calendar";
|
|
3
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
4
|
+
import "react";
|
|
5
|
+
import { useHandleEvent as o } from "../../hooks/useHandleEvent.js";
|
|
6
|
+
function p({ className: r, onChange: e, ...t }) {
|
|
7
|
+
const { ref: a } = o({ "ds-calendar-change": e });
|
|
8
|
+
return /* @__PURE__ */ n("ds-calendar-react", { ref: a, class: r, ...t });
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
p as Calendar
|
|
12
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
3
|
+
import "react";
|
|
4
|
+
import { useHandleEvent as l } from "../../hooks/useHandleEvent.js";
|
|
5
|
+
import "@cupra/ui-kit/react/ds-favourite-action";
|
|
6
|
+
function v({
|
|
7
|
+
className: i,
|
|
8
|
+
initialSelected: e,
|
|
9
|
+
onChange: t,
|
|
10
|
+
onClick: r,
|
|
11
|
+
...o
|
|
12
|
+
}) {
|
|
13
|
+
const c = (a) => {
|
|
14
|
+
t == null || t(a.detail.selected);
|
|
15
|
+
}, { ref: s } = l({ "ds-favourite-action:change": c, click: r });
|
|
16
|
+
return /* @__PURE__ */ d(
|
|
17
|
+
"ds-favourite-action-react",
|
|
18
|
+
{
|
|
19
|
+
ref: s,
|
|
20
|
+
class: i,
|
|
21
|
+
"initial-selected": e || void 0,
|
|
22
|
+
...o
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
v as FavouriteAction
|
|
28
|
+
};
|
package/dist/esm/index.js
CHANGED
|
@@ -8,77 +8,79 @@ import { Breadcrumbs as u } from "./components/Breadcrumbs/Breadcrumbs.js";
|
|
|
8
8
|
import { BreadcrumbsItem as B } from "./components/BreadcrumbsItem/BreadcrumbsItem.js";
|
|
9
9
|
import { Bullets as T } from "./components/Bullets/Bullets.js";
|
|
10
10
|
import { Button as S } from "./components/Button/Button.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
11
|
+
import { Calendar as b } from "./components/Calendar/Calendar.js";
|
|
12
|
+
import { CarouselIndicator as L } from "./components/CarouselIndicator/CarouselIndicator.js";
|
|
13
|
+
import { Checkbox as D } from "./components/Checkbox/Checkbox.js";
|
|
14
|
+
import { CheckboxGroup as M } from "./components/CheckboxGroup/CheckboxGroup.js";
|
|
15
|
+
import { Chip as y } from "./components/Chip/Chip.js";
|
|
16
|
+
import { Chips as H } from "./components/Chips/Chips.js";
|
|
17
|
+
import { Currency as F } from "./components/Currency/Currency.js";
|
|
18
|
+
import { Dialog as N } from "./components/Dialog/Dialog.js";
|
|
19
|
+
import { DialogBody as z } from "./components/DialogBody/DialogBody.js";
|
|
20
|
+
import { DialogFooter as U } from "./components/DialogFooter/DialogFooter.js";
|
|
21
|
+
import { DialogFullscreen as j } from "./components/DialogFullscreen/DialogFullscreen.js";
|
|
22
|
+
import { DialogHeader as J } from "./components/DialogHeader/DialogHeader.js";
|
|
23
|
+
import { Divider as Q } from "./components/Divider/Divider.js";
|
|
24
|
+
import { Drawer as X } from "./components/Drawer/Drawer.js";
|
|
25
|
+
import { FavouriteAction as Z } from "./components/FavouriteAction/FavouriteAction.js";
|
|
26
|
+
import { Hyperlink as $ } from "./components/Hyperlink/Hyperlink.js";
|
|
27
|
+
import { Icon as ro } from "./components/Icon/Icon.js";
|
|
28
|
+
import { IconButton as to } from "./components/IconButton/IconButton.js";
|
|
29
|
+
import { Input as mo } from "./components/Input/Input.js";
|
|
30
|
+
import { List as fo } from "./components/List/List.js";
|
|
31
|
+
import { ListItem as io } from "./components/ListItem/ListItem.js";
|
|
32
|
+
import { LinkButton as lo } from "./components/LinkButton/LinkButton.js";
|
|
33
|
+
import { Loader as co, LoaderLogo as uo } from "./components/Loader/Loader.js";
|
|
34
|
+
import { Logo as Bo } from "./components/Logo/Logo.js";
|
|
35
|
+
import { MainTitle as To } from "./components/MainTitle/MainTitle.js";
|
|
36
|
+
import { MapPin as So } from "./components/MapPin/MapPin.js";
|
|
37
|
+
import { MediaControl as bo } from "./components/MediaControl/MediaControl.js";
|
|
38
|
+
import { Modal as Lo } from "./components/Modal/Modal.js";
|
|
39
|
+
import { PasswordInput as Do } from "./components/PasswordInput/PasswordInput.js";
|
|
40
|
+
import { PickerItem as Mo } from "./components/PickerItem/PickerItem.js";
|
|
41
|
+
import { Radio as yo } from "./components/Radio/Radio.js";
|
|
42
|
+
import { RadioButton as Ho } from "./components/RadioButton/RadioButton.js";
|
|
43
|
+
import { RadioButtonGroup as Fo } from "./components/RadioButtonGroup/RadioButtonGroup.js";
|
|
44
|
+
import { Rating as No } from "./components/Rating/Rating.js";
|
|
45
|
+
import { Search as zo } from "./components/Search/Search.js";
|
|
46
|
+
import { SearchInput as Uo } from "./components/SearchInput/SearchInput.js";
|
|
47
|
+
import { SecondaryNavigation as jo } from "./components/SecondaryNavigation/SecondaryNavigation.js";
|
|
48
|
+
import { SegmentedControl as Jo } from "./components/SegmentedControl/SegmentedControl.js";
|
|
49
|
+
import { Select as Qo } from "./components/Select/Select.js";
|
|
50
|
+
import { Selection as Xo } from "./components/Selection/Selection.js";
|
|
51
|
+
import { Skeleton as Zo } from "./components/Skeleton/Skeleton.js";
|
|
52
|
+
import { Slider as $o } from "./components/Slider/Slider.js";
|
|
53
|
+
import { Table as rr } from "./components/Table/Table.js";
|
|
54
|
+
import { TableCell as tr } from "./components/TableCell/TableCell.js";
|
|
55
|
+
import { TableRow as mr } from "./components/TableRow/TableRow.js";
|
|
56
|
+
import { Tabs as fr } from "./components/Tabs/Tabs.js";
|
|
57
|
+
import { Tag as ir } from "./components/Tag/Tag.js";
|
|
58
|
+
import { Text as lr } from "./components/Text/Text.js";
|
|
59
|
+
import { TextInput as sr } from "./components/TextInput/TextInput.js";
|
|
60
|
+
import { Textarea as ur } from "./components/Textarea/Textarea.js";
|
|
61
|
+
import { ThemeProvider as Br } from "./components/ThemeProvider/ThemeProvider.js";
|
|
62
|
+
import { ToggleButton as Tr } from "./components/ToggleButton/ToggleButton.js";
|
|
63
|
+
import { ToggleSwitch as Sr } from "./components/ToggleSwitch/ToggleSwitch.js";
|
|
64
|
+
import { Tooltip as br } from "./components/Tooltip/Tooltip.js";
|
|
65
|
+
import { ValueUnit as Lr } from "./components/ValueUnit/ValueUnit.js";
|
|
66
|
+
import { Toast as Dr } from "./components/Toast/Toast.js";
|
|
67
|
+
import { ToastMessage as Mr } from "./components/ToastMessage/ToastMessage.js";
|
|
68
|
+
import { InlineAlert as yr } from "./components/InlineAlert/InlineAlert.js";
|
|
69
|
+
import { Avatar as Hr } from "./components/Avatar/Avatar.js";
|
|
70
|
+
import { StaticBox as Fr } from "./components/StaticBox/StaticBox.js";
|
|
71
|
+
import { Stepper as Nr } from "./components/Stepper/Stepper.js";
|
|
72
|
+
import { InteractiveCard as zr } from "./components/InteractiveCard/InteractiveCard.js";
|
|
73
|
+
import { SidebarNavigation as Ur } from "./components/SidebarNavigation/SidebarNavigation.js";
|
|
74
|
+
import { IconButtonGroup as jr } from "./components/IconButtonGroup/IconButtonGroup.js";
|
|
75
|
+
import { NavigationControls as Jr } from "./components/NavigationControls/NavigationControls.js";
|
|
76
|
+
import { useBreakpoint as Qr } from "./hooks/useBreakpoint.js";
|
|
77
|
+
import { useEventListeners as Xr } from "./hooks/useEventListeners.js";
|
|
78
|
+
import { useHandleEvent as Zr } from "./hooks/useHandleEvent.js";
|
|
77
79
|
import "react";
|
|
78
|
-
import { useResizeObserver as
|
|
80
|
+
import { useResizeObserver as $r } from "./hooks/useResizeObserver/useResizeObserver.js";
|
|
79
81
|
export {
|
|
80
82
|
t as Accordion,
|
|
81
|
-
|
|
83
|
+
Hr as Avatar,
|
|
82
84
|
m as Badge,
|
|
83
85
|
f as BasicCard,
|
|
84
86
|
l as BasicCardHeader,
|
|
@@ -88,71 +90,73 @@ export {
|
|
|
88
90
|
B as BreadcrumbsItem,
|
|
89
91
|
T as Bullets,
|
|
90
92
|
S as Button,
|
|
91
|
-
|
|
92
|
-
L as
|
|
93
|
-
D as
|
|
94
|
-
M as
|
|
95
|
-
y as
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
z as
|
|
100
|
-
U as
|
|
101
|
-
j as
|
|
102
|
-
J as
|
|
103
|
-
Q as
|
|
104
|
-
X as
|
|
105
|
-
Z as
|
|
106
|
-
$ as
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
uo as
|
|
118
|
-
Bo as
|
|
119
|
-
To as
|
|
120
|
-
So as
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
Do as
|
|
125
|
-
Mo as
|
|
126
|
-
yo as
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
zo as
|
|
131
|
-
Uo as
|
|
132
|
-
jo as
|
|
133
|
-
Jo as
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
rr as
|
|
142
|
-
tr as
|
|
143
|
-
mr as
|
|
144
|
-
fr as
|
|
145
|
-
ir as
|
|
146
|
-
lr as
|
|
147
|
-
sr as
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Tr as
|
|
153
|
-
Sr as
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
Qr as
|
|
157
|
-
Xr as
|
|
93
|
+
b as Calendar,
|
|
94
|
+
L as CarouselIndicator,
|
|
95
|
+
D as Checkbox,
|
|
96
|
+
M as CheckboxGroup,
|
|
97
|
+
y as Chip,
|
|
98
|
+
H as Chips,
|
|
99
|
+
F as Currency,
|
|
100
|
+
N as Dialog,
|
|
101
|
+
z as DialogBody,
|
|
102
|
+
U as DialogFooter,
|
|
103
|
+
j as DialogFullscreen,
|
|
104
|
+
J as DialogHeader,
|
|
105
|
+
Q as Divider,
|
|
106
|
+
X as Drawer,
|
|
107
|
+
Z as FavouriteAction,
|
|
108
|
+
$ as Hyperlink,
|
|
109
|
+
ro as Icon,
|
|
110
|
+
to as IconButton,
|
|
111
|
+
jr as IconButtonGroup,
|
|
112
|
+
yr as InlineAlert,
|
|
113
|
+
mo as Input,
|
|
114
|
+
zr as InteractiveCard,
|
|
115
|
+
lo as LinkButton,
|
|
116
|
+
fo as List,
|
|
117
|
+
io as ListItem,
|
|
118
|
+
co as Loader,
|
|
119
|
+
uo as LoaderLogo,
|
|
120
|
+
Bo as Logo,
|
|
121
|
+
To as MainTitle,
|
|
122
|
+
So as MapPin,
|
|
123
|
+
bo as MediaControl,
|
|
124
|
+
Lo as Modal,
|
|
125
|
+
Jr as NavigationControls,
|
|
126
|
+
Do as PasswordInput,
|
|
127
|
+
Mo as PickerItem,
|
|
128
|
+
yo as Radio,
|
|
129
|
+
Ho as RadioButton,
|
|
130
|
+
Fo as RadioButtonGroup,
|
|
131
|
+
No as Rating,
|
|
132
|
+
zo as Search,
|
|
133
|
+
Uo as SearchInput,
|
|
134
|
+
jo as SecondaryNavigation,
|
|
135
|
+
Jo as SegmentedControl,
|
|
136
|
+
Qo as Select,
|
|
137
|
+
Xo as Selection,
|
|
138
|
+
Ur as SidebarNavigation,
|
|
139
|
+
Zo as Skeleton,
|
|
140
|
+
$o as Slider,
|
|
141
|
+
Fr as StaticBox,
|
|
142
|
+
Nr as Stepper,
|
|
143
|
+
rr as Table,
|
|
144
|
+
tr as TableCell,
|
|
145
|
+
mr as TableRow,
|
|
146
|
+
fr as Tabs,
|
|
147
|
+
ir as Tag,
|
|
148
|
+
lr as Text,
|
|
149
|
+
sr as TextInput,
|
|
150
|
+
ur as Textarea,
|
|
151
|
+
Br as ThemeProvider,
|
|
152
|
+
Dr as Toast,
|
|
153
|
+
Mr as ToastMessage,
|
|
154
|
+
Tr as ToggleButton,
|
|
155
|
+
Sr as ToggleSwitch,
|
|
156
|
+
br as Tooltip,
|
|
157
|
+
Lr as ValueUnit,
|
|
158
|
+
Qr as useBreakpoint,
|
|
159
|
+
Xr as useEventListeners,
|
|
160
|
+
Zr as useHandleEvent,
|
|
161
|
+
$r as useResizeObserver
|
|
158
162
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import '@cupra/ui-kit/react/ds-calendar';
|
|
3
|
+
import { DsCalendarAttrs } from '@cupra/ui-kit/react/types/ds-calendar';
|
|
4
|
+
type CalendarProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
onChange?: (event: CustomEvent<{
|
|
7
|
+
value: string;
|
|
8
|
+
date: Date;
|
|
9
|
+
}>) => void;
|
|
10
|
+
} & DsCalendarAttrs;
|
|
11
|
+
export declare function Calendar({ className, onChange, ...rest }: CalendarProps): ReactElement;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import '@cupra/ui-kit/react/ds-favourite-action';
|
|
3
|
+
import { type DsFavouriteActionAttrs } from '@cupra/ui-kit/react/types/ds-favourite-action';
|
|
4
|
+
export type FavouriteActionProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
initialSelected?: boolean;
|
|
7
|
+
onChange?: (selected: boolean) => void;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
} & Omit<DsFavouriteActionAttrs, 'initial-selected' | 'selected'>;
|
|
10
|
+
export declare function FavouriteAction({ className, initialSelected, onChange, onClick, ...rest }: FavouriteActionProps): ReactElement;
|
|
@@ -8,6 +8,7 @@ export * from './Breadcrumbs/Breadcrumbs';
|
|
|
8
8
|
export * from './BreadcrumbsItem/BreadcrumbsItem';
|
|
9
9
|
export * from './Bullets/Bullets';
|
|
10
10
|
export * from './Button/Button';
|
|
11
|
+
export * from './Calendar/Calendar';
|
|
11
12
|
export * from './CarouselIndicator/CarouselIndicator';
|
|
12
13
|
export * from './Checkbox/Checkbox';
|
|
13
14
|
export * from './CheckboxGroup/CheckboxGroup';
|
|
@@ -21,6 +22,7 @@ export * from './DialogFullscreen/DialogFullscreen';
|
|
|
21
22
|
export * from './DialogHeader/DialogHeader';
|
|
22
23
|
export * from './Divider/Divider';
|
|
23
24
|
export * from './Drawer/Drawer';
|
|
25
|
+
export * from './FavouriteAction/FavouriteAction';
|
|
24
26
|
export * from './Hyperlink/Hyperlink';
|
|
25
27
|
export * from './Icon/Icon';
|
|
26
28
|
export * from './IconButton/IconButton';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cupra/ui-react",
|
|
3
|
-
"version": "2.0.0-canary.
|
|
3
|
+
"version": "2.0.0-canary.92",
|
|
4
4
|
"description": "React components library",
|
|
5
5
|
"author": "SEAT S.A.",
|
|
6
6
|
"license": "SEAT S.A. Library EULA 1.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">= 18.3.1 < 20",
|
|
53
53
|
"react-dom": ">= 18.3.1 < 20",
|
|
54
|
-
"@cupra/ui-kit": "2.0.0-canary.
|
|
54
|
+
"@cupra/ui-kit": "2.0.0-canary.81",
|
|
55
55
|
"typescript": ">=5.0.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"storybook": "^8.6.17",
|
|
77
77
|
"typescript": "^5.8.2",
|
|
78
78
|
"vite": "^6.4.1",
|
|
79
|
-
"@cupra/ui-kit": "2.0.0-canary.
|
|
79
|
+
"@cupra/ui-kit": "2.0.0-canary.81"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"build": "rm -rf dist && pnpm --filter @cupra/ui-kit build:react && tsc --declaration --emitDeclarationOnly && BUILD_FORMAT=esm vite build --emptyOutDir false && BUILD_FORMAT=cjs vite build --emptyOutDir false",
|