@cupra/ui-react 1.0.0-canary.22 → 1.0.0-canary.24
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.
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import '@cupra/ui-kit/react/ds-rating';
|
|
3
|
+
import type { DsRatingAttrs } from '@cupra/ui-kit/react/types/ds-rating';
|
|
4
|
+
type RatingProps = DsRatingAttrs & {
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function Rating(props: RatingProps): ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const FullFive: Story;
|
|
7
|
+
export declare const RoundDownExample: Story;
|
|
8
|
+
export declare const HalfStarExample: Story;
|
|
9
|
+
export declare const NoRatingText: Story;
|
|
10
|
+
export declare const Disabled: Story;
|
|
@@ -25,6 +25,7 @@ export * from './PickerItem/PickerItem';
|
|
|
25
25
|
export * from './Radio/Radio';
|
|
26
26
|
export * from './RadioButton/RadioButton';
|
|
27
27
|
export * from './RadioButtonGroup/RadioButtonGroup';
|
|
28
|
+
export * from './Rating/Rating';
|
|
28
29
|
export * from './Search/Search';
|
|
29
30
|
export * from './SearchInput/SearchInput';
|
|
30
31
|
export * from './SecondaryNavigation/SecondaryNavigation';
|
package/dist/index.js
CHANGED
|
@@ -10,8 +10,8 @@ import { Dialog as B } from "./components/Dialog/Dialog.js";
|
|
|
10
10
|
import { DialogBody as I } from "./components/DialogBody/DialogBody.js";
|
|
11
11
|
import { DialogFooter as C } from "./components/DialogFooter/DialogFooter.js";
|
|
12
12
|
import { DialogHeader as k } from "./components/DialogHeader/DialogHeader.js";
|
|
13
|
-
import { Divider as
|
|
14
|
-
import { Hyperlink as
|
|
13
|
+
import { Divider as R } from "./components/Divider/Divider.js";
|
|
14
|
+
import { Hyperlink as y } from "./components/Hyperlink/Hyperlink.js";
|
|
15
15
|
import { Icon as H } from "./components/Icon/Icon.js";
|
|
16
16
|
import { IconButton as w } from "./components/IconButton/IconButton.js";
|
|
17
17
|
import { Input as E } from "./components/Input/Input.js";
|
|
@@ -25,37 +25,38 @@ import { PickerItem as Y } from "./components/PickerItem/PickerItem.js";
|
|
|
25
25
|
import { Radio as _ } from "./components/Radio/Radio.js";
|
|
26
26
|
import { RadioButton as oo } from "./components/RadioButton/RadioButton.js";
|
|
27
27
|
import { RadioButtonGroup as eo } from "./components/RadioButtonGroup/RadioButtonGroup.js";
|
|
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 {
|
|
28
|
+
import { Rating as po } from "./components/Rating/Rating.js";
|
|
29
|
+
import { Search as mo } from "./components/Search/Search.js";
|
|
30
|
+
import { SearchInput as ao } from "./components/SearchInput/SearchInput.js";
|
|
31
|
+
import { SecondaryNavigation as no } from "./components/SecondaryNavigation/SecondaryNavigation.js";
|
|
32
|
+
import { SegmentedControl as uo } from "./components/SegmentedControl/SegmentedControl.js";
|
|
33
|
+
import { Select as co } from "./components/Select/Select.js";
|
|
34
|
+
import { Selection as So } from "./components/Selection/Selection.js";
|
|
35
|
+
import { Slider as Bo } from "./components/Slider/Slider.js";
|
|
36
|
+
import { Tabs as Io } from "./components/Tabs/Tabs.js";
|
|
37
|
+
import { Tag as Co } from "./components/Tag/Tag.js";
|
|
38
|
+
import { Text as ko } from "./components/Text/Text.js";
|
|
39
|
+
import { TextInput as Ro } from "./components/TextInput/TextInput.js";
|
|
40
|
+
import { Textarea as yo } from "./components/Textarea/Textarea.js";
|
|
41
|
+
import { ThemeProvider as Ho } from "./components/ThemeProvider/ThemeProvider.js";
|
|
42
|
+
import { ToggleButton as wo } from "./components/ToggleButton/ToggleButton.js";
|
|
43
|
+
import { ToggleSwitch as Eo } from "./components/ToggleSwitch/ToggleSwitch.js";
|
|
44
|
+
import { Tooltip as zo } from "./components/Tooltip/Tooltip.js";
|
|
45
|
+
import { Toast as Go } from "./components/Toast/Toast.js";
|
|
46
|
+
import { ToastMessage as jo } from "./components/ToastMessage/ToastMessage.js";
|
|
47
|
+
import { Avatar as Jo } from "./components/Avatar/Avatar.js";
|
|
48
|
+
import { StaticBox as Qo } from "./components/StaticBox/StaticBox.js";
|
|
49
|
+
import { Stepper as Vo } from "./components/Stepper/Stepper.js";
|
|
50
|
+
import { InteractiveCard as Xo } from "./components/InteractiveCard/InteractiveCard.js";
|
|
51
|
+
import { SidebarNavigation as Zo } from "./components/SidebarNavigation/SidebarNavigation.js";
|
|
52
|
+
import { useBreakpoint as $o } from "./hooks/useBreakpoint.js";
|
|
53
|
+
import { useEventListeners as rr } from "./hooks/useEventListeners.js";
|
|
54
|
+
import { useHandleEvent as tr } from "./hooks/useHandleEvent.js";
|
|
54
55
|
import "react";
|
|
55
|
-
import { useResizeObserver as
|
|
56
|
+
import { useResizeObserver as xr } from "./hooks/useResizeObserver/useResizeObserver.js";
|
|
56
57
|
export {
|
|
57
58
|
t as Accordion,
|
|
58
|
-
|
|
59
|
+
Jo as Avatar,
|
|
59
60
|
x as Bullets,
|
|
60
61
|
f as Button,
|
|
61
62
|
i as CarouselIndicator,
|
|
@@ -67,12 +68,12 @@ export {
|
|
|
67
68
|
I as DialogBody,
|
|
68
69
|
C as DialogFooter,
|
|
69
70
|
k as DialogHeader,
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
R as Divider,
|
|
72
|
+
y as Hyperlink,
|
|
72
73
|
H as Icon,
|
|
73
74
|
w as IconButton,
|
|
74
75
|
E as Input,
|
|
75
|
-
|
|
76
|
+
Xo as InteractiveCard,
|
|
76
77
|
z as LinkButton,
|
|
77
78
|
G as Loader,
|
|
78
79
|
O as LoaderLogo,
|
|
@@ -84,29 +85,30 @@ export {
|
|
|
84
85
|
_ as Radio,
|
|
85
86
|
oo as RadioButton,
|
|
86
87
|
eo as RadioButtonGroup,
|
|
87
|
-
po as
|
|
88
|
-
mo as
|
|
89
|
-
ao as
|
|
90
|
-
no as
|
|
91
|
-
uo as
|
|
92
|
-
co as
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
Qo as
|
|
97
|
-
|
|
98
|
-
Io as
|
|
99
|
-
Co as
|
|
100
|
-
ko as
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
Go as
|
|
105
|
-
|
|
106
|
-
wo as
|
|
107
|
-
Eo as
|
|
108
|
-
|
|
109
|
-
$o as
|
|
110
|
-
rr as
|
|
111
|
-
tr as
|
|
88
|
+
po as Rating,
|
|
89
|
+
mo as Search,
|
|
90
|
+
ao as SearchInput,
|
|
91
|
+
no as SecondaryNavigation,
|
|
92
|
+
uo as SegmentedControl,
|
|
93
|
+
co as Select,
|
|
94
|
+
So as Selection,
|
|
95
|
+
Zo as SidebarNavigation,
|
|
96
|
+
Bo as Slider,
|
|
97
|
+
Qo as StaticBox,
|
|
98
|
+
Vo as Stepper,
|
|
99
|
+
Io as Tabs,
|
|
100
|
+
Co as Tag,
|
|
101
|
+
ko as Text,
|
|
102
|
+
Ro as TextInput,
|
|
103
|
+
yo as Textarea,
|
|
104
|
+
Ho as ThemeProvider,
|
|
105
|
+
Go as Toast,
|
|
106
|
+
jo as ToastMessage,
|
|
107
|
+
wo as ToggleButton,
|
|
108
|
+
Eo as ToggleSwitch,
|
|
109
|
+
zo as Tooltip,
|
|
110
|
+
$o as useBreakpoint,
|
|
111
|
+
rr as useEventListeners,
|
|
112
|
+
tr as useHandleEvent,
|
|
113
|
+
xr as useResizeObserver
|
|
112
114
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cupra/ui-react",
|
|
3
|
-
"version": "1.0.0-canary.
|
|
3
|
+
"version": "1.0.0-canary.24",
|
|
4
4
|
"description": "React components library",
|
|
5
5
|
"author": "SEAT S.A.",
|
|
6
6
|
"license": "SEAT S.A. Library EULA 1.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">= 18.3.1 < 20",
|
|
46
46
|
"react-dom": ">= 18.3.1 < 20",
|
|
47
|
-
"@cupra/ui-kit": "1.0.0-canary.
|
|
47
|
+
"@cupra/ui-kit": "1.0.0-canary.14"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"styled-components": "^6.1.16"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"storybook": "^8.6.14",
|
|
67
67
|
"typescript": "^5.8.2",
|
|
68
68
|
"vite": "^6.4.1",
|
|
69
|
-
"@cupra/ui-kit": "1.0.0-canary.
|
|
69
|
+
"@cupra/ui-kit": "1.0.0-canary.14"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "rm -rf dist && tsc --declaration --emitDeclarationOnly && vite build --emptyOutDir false",
|