@cupra/ui-react 1.0.0-canary.27 → 1.0.0-canary.29
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,17 @@
|
|
|
1
|
+
import type { DsMainTitleAttrs } from '@cupra/ui-kit/react/types/ds-main-title';
|
|
2
|
+
import { type ElementType, type HTMLAttributes, type ReactElement, type ReactNode } from 'react';
|
|
3
|
+
import '@cupra/ui-kit/react/ds-main-title';
|
|
4
|
+
type MainTitleSubProps = HTMLAttributes<HTMLElement> & {
|
|
5
|
+
as: ElementType;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
type MainTitleProps = DsMainTitleAttrs & {
|
|
9
|
+
className?: string;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export declare function MainTitle(props: MainTitleProps): ReactElement;
|
|
13
|
+
export declare namespace MainTitle {
|
|
14
|
+
var Title: (props: MainTitleSubProps) => ReactElement;
|
|
15
|
+
var Description: (props: MainTitleSubProps) => ReactElement;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "@cupra/ui-kit/react/ds-main-title";
|
|
3
|
+
function n(t) {
|
|
4
|
+
const { className: r, children: i, ...o } = t;
|
|
5
|
+
return /* @__PURE__ */ e("ds-main-title-react", { class: r, ...o, children: i });
|
|
6
|
+
}
|
|
7
|
+
function s(t) {
|
|
8
|
+
const { as: r, children: i, ...o } = t;
|
|
9
|
+
return /* @__PURE__ */ e(r, { slot: "title", ...o, children: i });
|
|
10
|
+
}
|
|
11
|
+
function c(t) {
|
|
12
|
+
const { as: r, children: i, ...o } = t;
|
|
13
|
+
return /* @__PURE__ */ e(r, { slot: "description", ...o, children: i });
|
|
14
|
+
}
|
|
15
|
+
n.Title = s;
|
|
16
|
+
n.Description = c;
|
|
17
|
+
export {
|
|
18
|
+
n as MainTitle
|
|
19
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MainTitle } from '../MainTitle';
|
|
3
|
+
declare const meta: Meta<typeof MainTitle>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MainTitle>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const SemanticH1: Story;
|
|
8
|
+
export declare const CustomTags: Story;
|
|
9
|
+
export declare const TitleOnly: Story;
|
|
@@ -18,6 +18,7 @@ export * from './Input/Input';
|
|
|
18
18
|
export * from './LinkButton/LinkButton';
|
|
19
19
|
export * from './Loader/Loader';
|
|
20
20
|
export * from './Logo/Logo';
|
|
21
|
+
export * from './MainTitle/MainTitle';
|
|
21
22
|
export * from './MapPin/MapPin';
|
|
22
23
|
export * from './Modal/Modal';
|
|
23
24
|
export * from './PasswordInput/PasswordInput';
|
package/dist/index.js
CHANGED
|
@@ -3,112 +3,114 @@ import { Bullets as x } from "./components/Bullets/Bullets.js";
|
|
|
3
3
|
import { Button as f } from "./components/Button/Button.js";
|
|
4
4
|
import { CarouselIndicator as i } from "./components/CarouselIndicator/CarouselIndicator.js";
|
|
5
5
|
import { Checkbox as d } from "./components/Checkbox/Checkbox.js";
|
|
6
|
-
import { Chip as
|
|
6
|
+
import { Chip as s } from "./components/Chip/Chip.js";
|
|
7
7
|
import { Chips as c } from "./components/Chips/Chips.js";
|
|
8
|
-
import { Currency as
|
|
8
|
+
import { Currency as T } from "./components/Currency/Currency.js";
|
|
9
9
|
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
13
|
import { Divider as R } from "./components/Divider/Divider.js";
|
|
14
14
|
import { Hyperlink as y } from "./components/Hyperlink/Hyperlink.js";
|
|
15
|
-
import { Icon as
|
|
15
|
+
import { Icon as P } 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";
|
|
18
18
|
import { LinkButton as z } from "./components/LinkButton/LinkButton.js";
|
|
19
19
|
import { Loader as G, LoaderLogo as O } from "./components/Loader/Loader.js";
|
|
20
20
|
import { Logo as q } from "./components/Logo/Logo.js";
|
|
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 {
|
|
21
|
+
import { MainTitle as K } from "./components/MainTitle/MainTitle.js";
|
|
22
|
+
import { MapPin as U } from "./components/MapPin/MapPin.js";
|
|
23
|
+
import { Modal as W } from "./components/Modal/Modal.js";
|
|
24
|
+
import { PasswordInput as Y } from "./components/PasswordInput/PasswordInput.js";
|
|
25
|
+
import { PickerItem as _ } from "./components/PickerItem/PickerItem.js";
|
|
26
|
+
import { Radio as oo } from "./components/Radio/Radio.js";
|
|
27
|
+
import { RadioButton as eo } from "./components/RadioButton/RadioButton.js";
|
|
28
|
+
import { RadioButtonGroup as po } from "./components/RadioButtonGroup/RadioButtonGroup.js";
|
|
29
|
+
import { Rating as mo } from "./components/Rating/Rating.js";
|
|
30
|
+
import { Search as ao } from "./components/Search/Search.js";
|
|
31
|
+
import { SearchInput as no } from "./components/SearchInput/SearchInput.js";
|
|
32
|
+
import { SecondaryNavigation as so } from "./components/SecondaryNavigation/SecondaryNavigation.js";
|
|
33
|
+
import { SegmentedControl as co } from "./components/SegmentedControl/SegmentedControl.js";
|
|
34
|
+
import { Select as To } from "./components/Select/Select.js";
|
|
35
|
+
import { Selection as Bo } from "./components/Selection/Selection.js";
|
|
36
|
+
import { Slider as Io } from "./components/Slider/Slider.js";
|
|
37
|
+
import { Tabs as Co } from "./components/Tabs/Tabs.js";
|
|
38
|
+
import { Tag as ko } from "./components/Tag/Tag.js";
|
|
39
|
+
import { Text as Ro } from "./components/Text/Text.js";
|
|
40
|
+
import { TextInput as yo } from "./components/TextInput/TextInput.js";
|
|
41
|
+
import { Textarea as Po } from "./components/Textarea/Textarea.js";
|
|
42
|
+
import { ThemeProvider as wo } from "./components/ThemeProvider/ThemeProvider.js";
|
|
43
|
+
import { ToggleButton as Eo } from "./components/ToggleButton/ToggleButton.js";
|
|
44
|
+
import { ToggleSwitch as zo } from "./components/ToggleSwitch/ToggleSwitch.js";
|
|
45
|
+
import { Tooltip as Go } from "./components/Tooltip/Tooltip.js";
|
|
46
|
+
import { Toast as jo } from "./components/Toast/Toast.js";
|
|
47
|
+
import { ToastMessage as Jo } from "./components/ToastMessage/ToastMessage.js";
|
|
48
|
+
import { Avatar as Qo } from "./components/Avatar/Avatar.js";
|
|
49
|
+
import { StaticBox as Vo } from "./components/StaticBox/StaticBox.js";
|
|
50
|
+
import { Stepper as Xo } from "./components/Stepper/Stepper.js";
|
|
51
|
+
import { InteractiveCard as Zo } from "./components/InteractiveCard/InteractiveCard.js";
|
|
52
|
+
import { SidebarNavigation as $o } from "./components/SidebarNavigation/SidebarNavigation.js";
|
|
53
|
+
import { useBreakpoint as rr } from "./hooks/useBreakpoint.js";
|
|
54
|
+
import { useEventListeners as tr } from "./hooks/useEventListeners.js";
|
|
55
|
+
import { useHandleEvent as xr } from "./hooks/useHandleEvent.js";
|
|
55
56
|
import "react";
|
|
56
|
-
import { useResizeObserver as
|
|
57
|
+
import { useResizeObserver as fr } from "./hooks/useResizeObserver/useResizeObserver.js";
|
|
57
58
|
export {
|
|
58
59
|
t as Accordion,
|
|
59
|
-
|
|
60
|
+
Qo as Avatar,
|
|
60
61
|
x as Bullets,
|
|
61
62
|
f as Button,
|
|
62
63
|
i as CarouselIndicator,
|
|
63
64
|
d as Checkbox,
|
|
64
|
-
|
|
65
|
+
s as Chip,
|
|
65
66
|
c as Chips,
|
|
66
|
-
|
|
67
|
+
T as Currency,
|
|
67
68
|
B as Dialog,
|
|
68
69
|
I as DialogBody,
|
|
69
70
|
C as DialogFooter,
|
|
70
71
|
k as DialogHeader,
|
|
71
72
|
R as Divider,
|
|
72
73
|
y as Hyperlink,
|
|
73
|
-
|
|
74
|
+
P as Icon,
|
|
74
75
|
w as IconButton,
|
|
75
76
|
E as Input,
|
|
76
|
-
|
|
77
|
+
Zo as InteractiveCard,
|
|
77
78
|
z as LinkButton,
|
|
78
79
|
G as Loader,
|
|
79
80
|
O as LoaderLogo,
|
|
80
81
|
q as Logo,
|
|
81
|
-
K as
|
|
82
|
-
U as
|
|
83
|
-
W as
|
|
84
|
-
Y as
|
|
85
|
-
_ as
|
|
86
|
-
oo as
|
|
87
|
-
eo as
|
|
88
|
-
po as
|
|
89
|
-
mo as
|
|
90
|
-
ao as
|
|
91
|
-
no as
|
|
92
|
-
|
|
93
|
-
co as
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
Vo as
|
|
99
|
-
|
|
100
|
-
Co as
|
|
101
|
-
ko as
|
|
102
|
-
Ro as
|
|
103
|
-
yo as
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
jo as
|
|
107
|
-
|
|
108
|
-
Eo as
|
|
109
|
-
zo as
|
|
110
|
-
|
|
111
|
-
rr as
|
|
112
|
-
tr as
|
|
113
|
-
xr as
|
|
82
|
+
K as MainTitle,
|
|
83
|
+
U as MapPin,
|
|
84
|
+
W as Modal,
|
|
85
|
+
Y as PasswordInput,
|
|
86
|
+
_ as PickerItem,
|
|
87
|
+
oo as Radio,
|
|
88
|
+
eo as RadioButton,
|
|
89
|
+
po as RadioButtonGroup,
|
|
90
|
+
mo as Rating,
|
|
91
|
+
ao as Search,
|
|
92
|
+
no as SearchInput,
|
|
93
|
+
so as SecondaryNavigation,
|
|
94
|
+
co as SegmentedControl,
|
|
95
|
+
To as Select,
|
|
96
|
+
Bo as Selection,
|
|
97
|
+
$o as SidebarNavigation,
|
|
98
|
+
Io as Slider,
|
|
99
|
+
Vo as StaticBox,
|
|
100
|
+
Xo as Stepper,
|
|
101
|
+
Co as Tabs,
|
|
102
|
+
ko as Tag,
|
|
103
|
+
Ro as Text,
|
|
104
|
+
yo as TextInput,
|
|
105
|
+
Po as Textarea,
|
|
106
|
+
wo as ThemeProvider,
|
|
107
|
+
jo as Toast,
|
|
108
|
+
Jo as ToastMessage,
|
|
109
|
+
Eo as ToggleButton,
|
|
110
|
+
zo as ToggleSwitch,
|
|
111
|
+
Go as Tooltip,
|
|
112
|
+
rr as useBreakpoint,
|
|
113
|
+
tr as useEventListeners,
|
|
114
|
+
xr as useHandleEvent,
|
|
115
|
+
fr as useResizeObserver
|
|
114
116
|
};
|
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.29",
|
|
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.18"
|
|
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.18"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "rm -rf dist && tsc --declaration --emitDeclarationOnly && vite build --emptyOutDir false",
|