@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 u } from "./components/Chip/Chip.js";
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 S } from "./components/Currency/Currency.js";
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 H } from "./components/Icon/Icon.js";
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 { MapPin as K } from "./components/MapPin/MapPin.js";
22
- import { Modal as U } from "./components/Modal/Modal.js";
23
- import { PasswordInput as W } from "./components/PasswordInput/PasswordInput.js";
24
- import { PickerItem as Y } from "./components/PickerItem/PickerItem.js";
25
- import { Radio as _ } from "./components/Radio/Radio.js";
26
- import { RadioButton as oo } from "./components/RadioButton/RadioButton.js";
27
- import { RadioButtonGroup as eo } from "./components/RadioButtonGroup/RadioButtonGroup.js";
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";
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 xr } from "./hooks/useResizeObserver/useResizeObserver.js";
57
+ import { useResizeObserver as fr } from "./hooks/useResizeObserver/useResizeObserver.js";
57
58
  export {
58
59
  t as Accordion,
59
- Jo as Avatar,
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
- u as Chip,
65
+ s as Chip,
65
66
  c as Chips,
66
- S as Currency,
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
- H as Icon,
74
+ P as Icon,
74
75
  w as IconButton,
75
76
  E as Input,
76
- Xo as InteractiveCard,
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 MapPin,
82
- U as Modal,
83
- W as PasswordInput,
84
- Y as PickerItem,
85
- _ as Radio,
86
- oo as RadioButton,
87
- eo as RadioButtonGroup,
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
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.27",
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.16"
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.16"
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",