@cupra/ui-react 2.0.0-canary.7 → 2.0.0-canary.8

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,10 @@
1
+ import type { ReactElement } from 'react';
2
+ import '@cupra/ui-kit/react/ds-media-control';
3
+ import type { DsMediaControlAttrs } from '@cupra/ui-kit/react/types/ds-media-control';
4
+ type MediaControlProps = DsMediaControlAttrs & {
5
+ className?: string;
6
+ onPlay?: (event: CustomEvent) => void;
7
+ onPause?: (event: CustomEvent) => void;
8
+ };
9
+ export declare function MediaControl(props: MediaControlProps): ReactElement;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import "@cupra/ui-kit/react/utils/breakpoints";
3
+ import "react";
4
+ import { useHandleEvent as m } from "../../hooks/useHandleEvent.js";
5
+ import "@cupra/ui-kit/react/ds-media-control";
6
+ function u(o) {
7
+ const { className: r, onPlay: t, onPause: e, ...s } = o, { ref: a } = m({ "ds-media-control:play": t, "ds-media-control:pause": e });
8
+ return /* @__PURE__ */ n("ds-media-control-react", { ref: a, class: r, ...s });
9
+ }
10
+ export {
11
+ u as MediaControl
12
+ };
@@ -0,0 +1,6 @@
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 Sizes: Story;
@@ -24,6 +24,7 @@ export * from './Loader/Loader';
24
24
  export * from './Logo/Logo';
25
25
  export * from './MainTitle/MainTitle';
26
26
  export * from './MapPin/MapPin';
27
+ export * from './MediaControl/MediaControl';
27
28
  export * from './Modal/Modal';
28
29
  export * from './PasswordInput/PasswordInput';
29
30
  export * from './PickerItem/PickerItem';
@@ -54,3 +55,4 @@ export * from './StaticBox/StaticBox';
54
55
  export * from './Stepper/Stepper';
55
56
  export * from './InteractiveCard/InteractiveCard';
56
57
  export * from './SidebarNavigation/SidebarNavigation';
58
+ export * from './MediaControl/MediaControl';
package/dist/index.js CHANGED
@@ -7,11 +7,11 @@ import { Button as c } from "./components/Button/Button.js";
7
7
  import { CarouselIndicator as u } from "./components/CarouselIndicator/CarouselIndicator.js";
8
8
  import { Checkbox as B } from "./components/Checkbox/Checkbox.js";
9
9
  import { Chip as T } from "./components/Chip/Chip.js";
10
- import { Chips as C } from "./components/Chips/Chips.js";
10
+ import { Chips as v } from "./components/Chips/Chips.js";
11
11
  import { Currency as h } from "./components/Currency/Currency.js";
12
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";
13
+ import { DialogBody as M } from "./components/DialogBody/DialogBody.js";
14
+ import { DialogFooter as b } from "./components/DialogFooter/DialogFooter.js";
15
15
  import { DialogHeader as P } from "./components/DialogHeader/DialogHeader.js";
16
16
  import { Divider as H } from "./components/Divider/Divider.js";
17
17
  import { Drawer as E } from "./components/Drawer/Drawer.js";
@@ -24,44 +24,45 @@ import { Loader as V, LoaderLogo as W } from "./components/Loader/Loader.js";
24
24
  import { Logo as Y } from "./components/Logo/Logo.js";
25
25
  import { MainTitle as _ } from "./components/MainTitle/MainTitle.js";
26
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";
27
+ import { MediaControl as eo } from "./components/MediaControl/MediaControl.js";
28
+ import { Modal as po } from "./components/Modal/Modal.js";
29
+ import { PasswordInput as mo } from "./components/PasswordInput/PasswordInput.js";
30
+ import { PickerItem as ao } from "./components/PickerItem/PickerItem.js";
31
+ import { Radio as no } from "./components/Radio/Radio.js";
32
+ import { RadioButton as co } from "./components/RadioButton/RadioButton.js";
33
+ import { RadioButtonGroup as uo } from "./components/RadioButtonGroup/RadioButtonGroup.js";
34
+ import { Rating as Bo } from "./components/Rating/Rating.js";
35
+ import { Search as To } from "./components/Search/Search.js";
36
+ import { SearchInput as vo } from "./components/SearchInput/SearchInput.js";
37
+ import { SecondaryNavigation as ho } from "./components/SecondaryNavigation/SecondaryNavigation.js";
38
+ import { SegmentedControl as Lo } from "./components/SegmentedControl/SegmentedControl.js";
39
+ import { Select as Mo } from "./components/Select/Select.js";
40
+ import { Selection as bo } from "./components/Selection/Selection.js";
41
+ import { Slider as Po } from "./components/Slider/Slider.js";
42
+ import { Tabs as Ho } from "./components/Tabs/Tabs.js";
43
+ import { Tag as Eo } from "./components/Tag/Tag.js";
44
+ import { Text as zo } from "./components/Text/Text.js";
45
+ import { TextInput as Go } from "./components/TextInput/TextInput.js";
46
+ import { Textarea as jo } from "./components/Textarea/Textarea.js";
47
+ import { ThemeProvider as Jo } from "./components/ThemeProvider/ThemeProvider.js";
48
+ import { ToggleButton as Qo } from "./components/ToggleButton/ToggleButton.js";
49
+ import { ToggleSwitch as Vo } from "./components/ToggleSwitch/ToggleSwitch.js";
50
+ import { Tooltip as Xo } from "./components/Tooltip/Tooltip.js";
51
+ import { Toast as Zo } from "./components/Toast/Toast.js";
52
+ import { ToastMessage as $o } from "./components/ToastMessage/ToastMessage.js";
53
+ import { Avatar as rr } from "./components/Avatar/Avatar.js";
54
+ import { StaticBox as tr } from "./components/StaticBox/StaticBox.js";
55
+ import { Stepper as xr } from "./components/Stepper/Stepper.js";
56
+ import { InteractiveCard as fr } from "./components/InteractiveCard/InteractiveCard.js";
57
+ import { SidebarNavigation as ir } from "./components/SidebarNavigation/SidebarNavigation.js";
58
+ import { useBreakpoint as dr } from "./hooks/useBreakpoint.js";
59
+ import { useEventListeners as cr } from "./hooks/useEventListeners.js";
60
+ import { useHandleEvent as ur } from "./hooks/useHandleEvent.js";
60
61
  import "react";
61
- import { useResizeObserver as ur } from "./hooks/useResizeObserver/useResizeObserver.js";
62
+ import { useResizeObserver as Br } from "./hooks/useResizeObserver/useResizeObserver.js";
62
63
  export {
63
64
  t as Accordion,
64
- $o as Avatar,
65
+ rr as Avatar,
65
66
  x as Badge,
66
67
  f as BasicCard,
67
68
  i as BasicCardSection,
@@ -70,11 +71,11 @@ export {
70
71
  u as CarouselIndicator,
71
72
  B as Checkbox,
72
73
  T as Chip,
73
- C as Chips,
74
+ v as Chips,
74
75
  h as Currency,
75
76
  L as Dialog,
76
- R as DialogBody,
77
- y as DialogFooter,
77
+ M as DialogBody,
78
+ b as DialogFooter,
78
79
  P as DialogHeader,
79
80
  H as Divider,
80
81
  E as Drawer,
@@ -82,43 +83,44 @@ export {
82
83
  G as Icon,
83
84
  j as IconButton,
84
85
  J as Input,
85
- xr as InteractiveCard,
86
+ fr as InteractiveCard,
86
87
  Q as LinkButton,
87
88
  V as Loader,
88
89
  W as LoaderLogo,
89
90
  Y as Logo,
90
91
  _ as MainTitle,
91
92
  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
93
+ eo as MediaControl,
94
+ po as Modal,
95
+ mo as PasswordInput,
96
+ ao as PickerItem,
97
+ no as Radio,
98
+ co as RadioButton,
99
+ uo as RadioButtonGroup,
100
+ Bo as Rating,
101
+ To as Search,
102
+ vo as SearchInput,
103
+ ho as SecondaryNavigation,
104
+ Lo as SegmentedControl,
105
+ Mo as Select,
106
+ bo as Selection,
107
+ ir as SidebarNavigation,
108
+ Po as Slider,
109
+ tr as StaticBox,
110
+ xr as Stepper,
111
+ Ho as Tabs,
112
+ Eo as Tag,
113
+ zo as Text,
114
+ Go as TextInput,
115
+ jo as Textarea,
116
+ Jo as ThemeProvider,
117
+ Zo as Toast,
118
+ $o as ToastMessage,
119
+ Qo as ToggleButton,
120
+ Vo as ToggleSwitch,
121
+ Xo as Tooltip,
122
+ dr as useBreakpoint,
123
+ cr as useEventListeners,
124
+ ur as useHandleEvent,
125
+ Br as useResizeObserver
124
126
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cupra/ui-react",
3
- "version": "2.0.0-canary.7",
3
+ "version": "2.0.0-canary.8",
4
4
  "description": "React components library",
5
5
  "author": "SEAT S.A.",
6
6
  "license": "SEAT S.A. Library EULA 1.0",
@@ -47,7 +47,7 @@
47
47
  "peerDependencies": {
48
48
  "react": ">= 18.3.1 < 20",
49
49
  "react-dom": ">= 18.3.1 < 20",
50
- "@cupra/ui-kit": "1.1.0-canary.4",
50
+ "@cupra/ui-kit": "1.1.0-canary.5",
51
51
  "typescript": ">=5.0.0"
52
52
  },
53
53
  "dependencies": {
@@ -70,13 +70,13 @@
70
70
  "storybook": "^8.6.15",
71
71
  "typescript": "^5.8.2",
72
72
  "vite": "^6.4.1",
73
- "@cupra/ui-kit": "1.1.0-canary.4"
73
+ "@cupra/ui-kit": "1.1.0-canary.5"
74
74
  },
75
75
  "scripts": {
76
76
  "build": "rm -rf dist && tsc --declaration --emitDeclarationOnly && vite build --emptyOutDir false",
77
77
  "test": "npx vitest run",
78
78
  "generate-licenses": "npx generate-license-file --input package.json --output THIRD_PARTY_LICENSES.MD --overwrite --ci",
79
- "storybook": "storybook dev -p 6006",
79
+ "storybook": "pnpm --filter ui-kit build:react --mode development && storybook dev -p 6006",
80
80
  "build-storybook:cupra-diagonal": "storybook build --output-dir dist-storybook/cupra-diagonal"
81
81
  }
82
82
  }