@cupra/ui-react 2.0.0-canary.3 → 2.0.0-canary.4

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,19 @@
1
+ import type { DsBasicCardAttrs } from '@cupra/ui-kit/react/types/ds-basic-card';
2
+ import { type ReactElement } from 'react';
3
+ import '@cupra/ui-kit/react/ds-basic-card';
4
+ type Children = JSX.Element | JSX.Element[] | string;
5
+ export interface BasicCardProps extends DsBasicCardAttrs {
6
+ className?: string;
7
+ children: Children;
8
+ onClick?: (event: CustomEvent) => void;
9
+ }
10
+ export declare function BasicCard(props: BasicCardProps): ReactElement;
11
+ export declare namespace BasicCard {
12
+ var FeaturedText: {
13
+ ({ children }: {
14
+ children: Children;
15
+ }): ReactElement;
16
+ displayName: string;
17
+ };
18
+ }
19
+ export {};
@@ -0,0 +1,15 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-basic-card";
3
+ import { useHandleEvent as i } from "../../hooks/useHandleEvent.js";
4
+ function n(e) {
5
+ const { className: a, children: s, onClick: c, ...d } = e, { ref: o } = i({
6
+ "ds-basic-card:click": c
7
+ });
8
+ return /* @__PURE__ */ r("ds-basic-card-react", { ref: o, class: a, ...d, children: s });
9
+ }
10
+ const t = ({ children: e }) => /* @__PURE__ */ r("div", { slot: "featured-text", children: e });
11
+ n.FeaturedText = t;
12
+ t.displayName = "BasicCard.FeaturedText";
13
+ export {
14
+ n as BasicCard
15
+ };
@@ -0,0 +1,7 @@
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 Basic: Story;
6
+ export declare const Featured: Story;
7
+ export declare const CardGrid: Story;
@@ -0,0 +1,36 @@
1
+ import type { DsBasicCardHeaderAttrs } from '@cupra/ui-kit/react/types/ds-basic-card-header';
2
+ import '@cupra/ui-kit/react/ds-basic-card-header';
3
+ import { type ReactElement } from 'react';
4
+ type Children = JSX.Element | JSX.Element[] | string;
5
+ export interface BasicCardHeaderProps extends DsBasicCardHeaderAttrs {
6
+ className?: string;
7
+ children: JSX.Element | JSX.Element[] | string;
8
+ }
9
+ export declare function BasicCardHeader(props: BasicCardHeaderProps): ReactElement;
10
+ export declare namespace BasicCardHeader {
11
+ var Title: {
12
+ ({ children }: {
13
+ children: Children;
14
+ }): ReactElement;
15
+ displayName: string;
16
+ };
17
+ var Description: {
18
+ ({ children }: {
19
+ children: Children;
20
+ }): ReactElement;
21
+ displayName: string;
22
+ };
23
+ var Meta: {
24
+ ({ children }: {
25
+ children: Children;
26
+ }): ReactElement;
27
+ displayName: string;
28
+ };
29
+ var SubHeader: {
30
+ ({ children }: {
31
+ children: Children;
32
+ }): ReactElement;
33
+ displayName: string;
34
+ };
35
+ }
36
+ export {};
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,8 @@
1
+ import type { DsBasicCardImageAttrs } from '@cupra/ui-kit/react/types/ds-basic-card-image';
2
+ import '@cupra/ui-kit/react/ds-basic-card-image';
3
+ import { type ReactElement } from 'react';
4
+ export interface BasicCardImageProps extends DsBasicCardImageAttrs {
5
+ className?: string;
6
+ children: JSX.Element | JSX.Element[] | string;
7
+ }
8
+ export declare function BasicCardImage(props: BasicCardImageProps): ReactElement;
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,8 @@
1
+ import type { DsBasicCardSectionAttrs } from '@cupra/ui-kit/react/types/ds-basic-card-section';
2
+ import '@cupra/ui-kit/react/ds-basic-card-section';
3
+ import { type ReactElement } from 'react';
4
+ export interface BasicCardSectionProps extends DsBasicCardSectionAttrs {
5
+ className?: string;
6
+ children: JSX.Element | JSX.Element[] | string;
7
+ }
8
+ export declare function BasicCardSection(props: BasicCardSectionProps): ReactElement;
@@ -0,0 +1,9 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/ds-basic-card-section";
3
+ function i(r) {
4
+ const { className: c, children: s, ...o } = r;
5
+ return /* @__PURE__ */ t("ds-basic-card-section-react", { class: c, ...o, children: s });
6
+ }
7
+ export {
8
+ i as BasicCardSection
9
+ };
@@ -0,0 +1,5 @@
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;
@@ -1,5 +1,7 @@
1
1
  export * from './Accordion/Accordion';
2
2
  export * from './Badge/Badge';
3
+ export * from './BasicCard/BasicCard';
4
+ export * from './BasicCardSection/BasicCardSection';
3
5
  export * from './Bullets/Bullets';
4
6
  export * from './Button/Button';
5
7
  export * from './CarouselIndicator/CarouselIndicator';
package/dist/index.js CHANGED
@@ -1,120 +1,124 @@
1
1
  import { Accordion as t } from "./components/Accordion/Accordion.js";
2
2
  import { Badge as x } from "./components/Badge/Badge.js";
3
- import { Bullets as f } from "./components/Bullets/Bullets.js";
4
- import { Button as i } from "./components/Button/Button.js";
5
- import { CarouselIndicator as d } from "./components/CarouselIndicator/CarouselIndicator.js";
6
- import { Checkbox as s } from "./components/Checkbox/Checkbox.js";
7
- import { Chip as g } from "./components/Chip/Chip.js";
8
- import { Chips as T } from "./components/Chips/Chips.js";
9
- import { Currency as S } from "./components/Currency/Currency.js";
10
- import { Dialog as I } from "./components/Dialog/Dialog.js";
11
- import { DialogBody as C } from "./components/DialogBody/DialogBody.js";
12
- import { DialogFooter as L } from "./components/DialogFooter/DialogFooter.js";
13
- import { DialogHeader as R } from "./components/DialogHeader/DialogHeader.js";
14
- import { Divider as y } from "./components/Divider/Divider.js";
15
- import { Drawer as P } from "./components/Drawer/Drawer.js";
16
- import { Hyperlink as H } from "./components/Hyperlink/Hyperlink.js";
17
- import { Icon as E } from "./components/Icon/Icon.js";
18
- import { IconButton as z } from "./components/IconButton/IconButton.js";
19
- import { Input as G } from "./components/Input/Input.js";
20
- import { LinkButton as j } from "./components/LinkButton/LinkButton.js";
21
- import { Loader as J, LoaderLogo as K } from "./components/Loader/Loader.js";
22
- import { Logo as U } from "./components/Logo/Logo.js";
23
- import { MainTitle as W } from "./components/MainTitle/MainTitle.js";
24
- import { MapPin as Y } from "./components/MapPin/MapPin.js";
25
- import { Modal as _ } from "./components/Modal/Modal.js";
26
- import { PasswordInput as oo } from "./components/PasswordInput/PasswordInput.js";
27
- import { PickerItem as eo } from "./components/PickerItem/PickerItem.js";
28
- import { Radio as po } from "./components/Radio/Radio.js";
29
- import { RadioButton as mo } from "./components/RadioButton/RadioButton.js";
30
- import { RadioButtonGroup as ao } from "./components/RadioButtonGroup/RadioButtonGroup.js";
31
- import { Rating as no } from "./components/Rating/Rating.js";
32
- import { Search as so } from "./components/Search/Search.js";
33
- import { SearchInput as go } from "./components/SearchInput/SearchInput.js";
34
- import { SecondaryNavigation as To } from "./components/SecondaryNavigation/SecondaryNavigation.js";
35
- import { SegmentedControl as So } from "./components/SegmentedControl/SegmentedControl.js";
36
- import { Select as Io } from "./components/Select/Select.js";
37
- import { Selection as Co } from "./components/Selection/Selection.js";
38
- import { Slider as Lo } from "./components/Slider/Slider.js";
39
- import { Tabs as Ro } from "./components/Tabs/Tabs.js";
40
- import { Tag as yo } from "./components/Tag/Tag.js";
41
- import { Text as Po } from "./components/Text/Text.js";
42
- import { TextInput as Ho } from "./components/TextInput/TextInput.js";
43
- import { Textarea as Eo } from "./components/Textarea/Textarea.js";
44
- import { ThemeProvider as zo } from "./components/ThemeProvider/ThemeProvider.js";
45
- import { ToggleButton as Go } from "./components/ToggleButton/ToggleButton.js";
46
- import { ToggleSwitch as jo } from "./components/ToggleSwitch/ToggleSwitch.js";
47
- import { Tooltip as Jo } from "./components/Tooltip/Tooltip.js";
48
- import { Toast as Qo } from "./components/Toast/Toast.js";
49
- import { ToastMessage as Vo } from "./components/ToastMessage/ToastMessage.js";
50
- import { Avatar as Xo } from "./components/Avatar/Avatar.js";
51
- import { StaticBox as Zo } from "./components/StaticBox/StaticBox.js";
52
- import { Stepper as $o } from "./components/Stepper/Stepper.js";
53
- import { InteractiveCard as rr } from "./components/InteractiveCard/InteractiveCard.js";
54
- import { SidebarNavigation as tr } from "./components/SidebarNavigation/SidebarNavigation.js";
55
- import { useBreakpoint as xr } from "./hooks/useBreakpoint.js";
56
- import { useEventListeners as fr } from "./hooks/useEventListeners.js";
57
- import { useHandleEvent as ir } from "./hooks/useHandleEvent.js";
3
+ import { BasicCard as f } from "./components/BasicCard/BasicCard.js";
4
+ import { BasicCardSection as i } from "./components/BasicCardSection/BasicCardSection.js";
5
+ import { Bullets as d } from "./components/Bullets/Bullets.js";
6
+ import { Button as c } from "./components/Button/Button.js";
7
+ import { CarouselIndicator as u } from "./components/CarouselIndicator/CarouselIndicator.js";
8
+ import { Checkbox as B } from "./components/Checkbox/Checkbox.js";
9
+ import { Chip as T } from "./components/Chip/Chip.js";
10
+ import { Chips as C } from "./components/Chips/Chips.js";
11
+ import { Currency as h } from "./components/Currency/Currency.js";
12
+ import { Dialog as L } from "./components/Dialog/Dialog.js";
13
+ import { DialogBody as R } from "./components/DialogBody/DialogBody.js";
14
+ import { DialogFooter as y } from "./components/DialogFooter/DialogFooter.js";
15
+ import { DialogHeader as P } from "./components/DialogHeader/DialogHeader.js";
16
+ import { Divider as H } from "./components/Divider/Divider.js";
17
+ import { Drawer as E } from "./components/Drawer/Drawer.js";
18
+ import { Hyperlink as z } from "./components/Hyperlink/Hyperlink.js";
19
+ import { Icon as G } from "./components/Icon/Icon.js";
20
+ import { IconButton as j } from "./components/IconButton/IconButton.js";
21
+ import { Input as J } from "./components/Input/Input.js";
22
+ import { LinkButton as Q } from "./components/LinkButton/LinkButton.js";
23
+ import { Loader as V, LoaderLogo as W } from "./components/Loader/Loader.js";
24
+ import { Logo as Y } from "./components/Logo/Logo.js";
25
+ import { MainTitle as _ } from "./components/MainTitle/MainTitle.js";
26
+ import { MapPin as oo } from "./components/MapPin/MapPin.js";
27
+ import { Modal as eo } from "./components/Modal/Modal.js";
28
+ import { PasswordInput as po } from "./components/PasswordInput/PasswordInput.js";
29
+ import { PickerItem as mo } from "./components/PickerItem/PickerItem.js";
30
+ import { Radio as ao } from "./components/Radio/Radio.js";
31
+ import { RadioButton as no } from "./components/RadioButton/RadioButton.js";
32
+ import { RadioButtonGroup as co } from "./components/RadioButtonGroup/RadioButtonGroup.js";
33
+ import { Rating as uo } from "./components/Rating/Rating.js";
34
+ import { Search as Bo } from "./components/Search/Search.js";
35
+ import { SearchInput as To } from "./components/SearchInput/SearchInput.js";
36
+ import { SecondaryNavigation as Co } from "./components/SecondaryNavigation/SecondaryNavigation.js";
37
+ import { SegmentedControl as ho } from "./components/SegmentedControl/SegmentedControl.js";
38
+ import { Select as Lo } from "./components/Select/Select.js";
39
+ import { Selection as Ro } from "./components/Selection/Selection.js";
40
+ import { Slider as yo } from "./components/Slider/Slider.js";
41
+ import { Tabs as Po } from "./components/Tabs/Tabs.js";
42
+ import { Tag as Ho } from "./components/Tag/Tag.js";
43
+ import { Text as Eo } from "./components/Text/Text.js";
44
+ import { TextInput as zo } from "./components/TextInput/TextInput.js";
45
+ import { Textarea as Go } from "./components/Textarea/Textarea.js";
46
+ import { ThemeProvider as jo } from "./components/ThemeProvider/ThemeProvider.js";
47
+ import { ToggleButton as Jo } from "./components/ToggleButton/ToggleButton.js";
48
+ import { ToggleSwitch as Qo } from "./components/ToggleSwitch/ToggleSwitch.js";
49
+ import { Tooltip as Vo } from "./components/Tooltip/Tooltip.js";
50
+ import { Toast as Xo } from "./components/Toast/Toast.js";
51
+ import { ToastMessage as Zo } from "./components/ToastMessage/ToastMessage.js";
52
+ import { Avatar as $o } from "./components/Avatar/Avatar.js";
53
+ import { StaticBox as rr } from "./components/StaticBox/StaticBox.js";
54
+ import { Stepper as tr } from "./components/Stepper/Stepper.js";
55
+ import { InteractiveCard as xr } from "./components/InteractiveCard/InteractiveCard.js";
56
+ import { SidebarNavigation as fr } from "./components/SidebarNavigation/SidebarNavigation.js";
57
+ import { useBreakpoint as ir } from "./hooks/useBreakpoint.js";
58
+ import { useEventListeners as dr } from "./hooks/useEventListeners.js";
59
+ import { useHandleEvent as cr } from "./hooks/useHandleEvent.js";
58
60
  import "react";
59
- import { useResizeObserver as dr } from "./hooks/useResizeObserver/useResizeObserver.js";
61
+ import { useResizeObserver as ur } from "./hooks/useResizeObserver/useResizeObserver.js";
60
62
  export {
61
63
  t as Accordion,
62
- Xo as Avatar,
64
+ $o as Avatar,
63
65
  x as Badge,
64
- f as Bullets,
65
- i as Button,
66
- d as CarouselIndicator,
67
- s as Checkbox,
68
- g as Chip,
69
- T as Chips,
70
- S as Currency,
71
- I as Dialog,
72
- C as DialogBody,
73
- L as DialogFooter,
74
- R as DialogHeader,
75
- y as Divider,
76
- P as Drawer,
77
- H as Hyperlink,
78
- E as Icon,
79
- z as IconButton,
80
- G as Input,
81
- rr as InteractiveCard,
82
- j as LinkButton,
83
- J as Loader,
84
- K as LoaderLogo,
85
- U as Logo,
86
- W as MainTitle,
87
- Y as MapPin,
88
- _ as Modal,
89
- oo as PasswordInput,
90
- eo as PickerItem,
91
- po as Radio,
92
- mo as RadioButton,
93
- ao as RadioButtonGroup,
94
- no as Rating,
95
- so as Search,
96
- go as SearchInput,
97
- To as SecondaryNavigation,
98
- So as SegmentedControl,
99
- Io as Select,
100
- Co as Selection,
101
- tr as SidebarNavigation,
102
- Lo as Slider,
103
- Zo as StaticBox,
104
- $o as Stepper,
105
- Ro as Tabs,
106
- yo as Tag,
107
- Po as Text,
108
- Ho as TextInput,
109
- Eo as Textarea,
110
- zo as ThemeProvider,
111
- Qo as Toast,
112
- Vo as ToastMessage,
113
- Go as ToggleButton,
114
- jo as ToggleSwitch,
115
- Jo as Tooltip,
116
- xr as useBreakpoint,
117
- fr as useEventListeners,
118
- ir as useHandleEvent,
119
- dr as useResizeObserver
66
+ f as BasicCard,
67
+ i as BasicCardSection,
68
+ d as Bullets,
69
+ c as Button,
70
+ u as CarouselIndicator,
71
+ B as Checkbox,
72
+ T as Chip,
73
+ C as Chips,
74
+ h as Currency,
75
+ L as Dialog,
76
+ R as DialogBody,
77
+ y as DialogFooter,
78
+ P as DialogHeader,
79
+ H as Divider,
80
+ E as Drawer,
81
+ z as Hyperlink,
82
+ G as Icon,
83
+ j as IconButton,
84
+ J as Input,
85
+ xr as InteractiveCard,
86
+ Q as LinkButton,
87
+ V as Loader,
88
+ W as LoaderLogo,
89
+ Y as Logo,
90
+ _ as MainTitle,
91
+ oo as MapPin,
92
+ eo as Modal,
93
+ po as PasswordInput,
94
+ mo as PickerItem,
95
+ ao as Radio,
96
+ no as RadioButton,
97
+ co as RadioButtonGroup,
98
+ uo as Rating,
99
+ Bo as Search,
100
+ To as SearchInput,
101
+ Co as SecondaryNavigation,
102
+ ho as SegmentedControl,
103
+ Lo as Select,
104
+ Ro as Selection,
105
+ fr as SidebarNavigation,
106
+ yo as Slider,
107
+ rr as StaticBox,
108
+ tr as Stepper,
109
+ Po as Tabs,
110
+ Ho as Tag,
111
+ Eo as Text,
112
+ zo as TextInput,
113
+ Go as Textarea,
114
+ jo as ThemeProvider,
115
+ Xo as Toast,
116
+ Zo as ToastMessage,
117
+ Jo as ToggleButton,
118
+ Qo as ToggleSwitch,
119
+ Vo as Tooltip,
120
+ ir as useBreakpoint,
121
+ dr as useEventListeners,
122
+ cr as useHandleEvent,
123
+ ur as useResizeObserver
120
124
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cupra/ui-react",
3
- "version": "2.0.0-canary.3",
3
+ "version": "2.0.0-canary.4",
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.1.0-canary.3"
47
+ "@cupra/ui-kit": "1.1.0-canary.4"
48
48
  },
49
49
  "dependencies": {
50
50
  "styled-components": "^6.1.16"
@@ -66,7 +66,7 @@
66
66
  "storybook": "^8.6.15",
67
67
  "typescript": "^5.8.2",
68
68
  "vite": "^6.4.1",
69
- "@cupra/ui-kit": "1.1.0-canary.3"
69
+ "@cupra/ui-kit": "1.1.0-canary.4"
70
70
  },
71
71
  "scripts": {
72
72
  "build": "rm -rf dist && tsc --declaration --emitDeclarationOnly && vite build --emptyOutDir false",