@cupra/ui-react 2.0.0-canary.14 → 2.0.0-canary.140
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.
- package/README.md +18 -0
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/components/Accordion/Accordion.cjs +1 -1
- package/dist/cjs/components/Avatar/Avatar.cjs +1 -1
- package/dist/cjs/components/Badge/Badge.cjs +1 -1
- package/dist/cjs/components/BasicCard/BasicCard.cjs +1 -1
- package/dist/cjs/components/BasicCardHeader/BasicCardHeader.cjs +1 -0
- package/dist/cjs/components/BasicCardImage/BasicCardImage.cjs +1 -0
- package/dist/cjs/components/BasicCardSection/BasicCardSection.cjs +1 -1
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.cjs +1 -0
- package/dist/cjs/components/BreadcrumbsItem/BreadcrumbsItem.cjs +1 -0
- package/dist/cjs/components/Bullets/Bullets.cjs +1 -1
- package/dist/cjs/components/Button/Button.cjs +1 -1
- package/dist/cjs/components/Calendar/Calendar.cjs +1 -0
- package/dist/cjs/components/CarouselIndicator/CarouselIndicator.cjs +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/CheckboxGroup.cjs +1 -0
- package/dist/cjs/components/Chip/Chip.cjs +1 -1
- package/dist/cjs/components/Chips/Chips.cjs +1 -1
- package/dist/cjs/components/Currency/Currency.cjs +1 -1
- package/dist/cjs/components/DatePicker/DatePicker.cjs +1 -0
- package/dist/cjs/components/Dialog/Dialog.cjs +1 -1
- package/dist/cjs/components/DialogBody/DialogBody.cjs +1 -1
- package/dist/cjs/components/DialogFooter/DialogFooter.cjs +1 -1
- package/dist/cjs/components/DialogFullscreen/DialogFullscreen.cjs +1 -0
- package/dist/cjs/components/DialogHeader/DialogHeader.cjs +1 -1
- package/dist/cjs/components/Divider/Divider.cjs +1 -1
- package/dist/cjs/components/Drawer/Drawer.cjs +1 -1
- package/dist/cjs/components/FavouriteAction/FavouriteAction.cjs +1 -0
- package/dist/cjs/components/Hyperlink/Hyperlink.cjs +1 -1
- package/dist/cjs/components/Icon/Icon.cjs +1 -1
- package/dist/cjs/components/IconButton/IconButton.cjs +1 -1
- package/dist/cjs/components/IconButtonGroup/IconButtonGroup.cjs +1 -0
- package/dist/cjs/components/InlineAlert/InlineAlert.cjs +1 -0
- package/dist/cjs/components/Input/Input.cjs +1 -1
- package/dist/cjs/components/InteractiveCard/InteractiveCard.cjs +1 -1
- package/dist/cjs/components/LinkButton/LinkButton.cjs +1 -1
- package/dist/cjs/components/List/List.cjs +1 -0
- package/dist/cjs/components/ListItem/ListItem.cjs +1 -0
- package/dist/cjs/components/Loader/Loader.cjs +1 -1
- package/dist/cjs/components/Logo/Logo.cjs +1 -1
- package/dist/cjs/components/MainTitle/MainTitle.cjs +1 -1
- package/dist/cjs/components/MapPin/MapPin.cjs +1 -1
- package/dist/cjs/components/MediaControl/MediaControl.cjs +1 -1
- package/dist/cjs/components/Modal/Modal.cjs +2 -2
- package/dist/cjs/components/NavigationControls/NavigationControls.cjs +1 -0
- package/dist/cjs/components/PasswordInput/PasswordInput.cjs +1 -1
- package/dist/cjs/components/PickerItem/PickerItem.cjs +1 -1
- package/dist/cjs/components/Radio/Radio.cjs +1 -1
- package/dist/cjs/components/RadioButton/RadioButton.cjs +1 -1
- package/dist/cjs/components/RadioButtonGroup/RadioButtonGroup.cjs +1 -1
- package/dist/cjs/components/Rating/Rating.cjs +1 -1
- package/dist/cjs/components/Search/Search.cjs +1 -1
- package/dist/cjs/components/SearchInput/SearchInput.cjs +1 -1
- package/dist/cjs/components/SecondaryNavigation/SecondaryNavigation.cjs +1 -1
- package/dist/cjs/components/SegmentedControl/SegmentedControl.cjs +1 -1
- package/dist/cjs/components/Select/Select.cjs +1 -1
- package/dist/cjs/components/Selection/Selection.cjs +1 -1
- package/dist/cjs/components/SidebarNavigation/SidebarNavigation.cjs +1 -1
- package/dist/cjs/components/Skeleton/Skeleton.cjs +1 -0
- package/dist/cjs/components/Slider/Slider.cjs +1 -1
- package/dist/cjs/components/StaticBox/StaticBox.cjs +1 -1
- package/dist/cjs/components/Stepper/Stepper.cjs +1 -1
- package/dist/cjs/components/Table/Table.cjs +1 -0
- package/dist/cjs/components/TableCell/TableCell.cjs +1 -0
- package/dist/cjs/components/TableRow/TableRow.cjs +1 -0
- package/dist/cjs/components/Tabs/Tabs.cjs +1 -1
- package/dist/cjs/components/Tag/Tag.cjs +1 -1
- package/dist/cjs/components/Text/Text.cjs +1 -1
- package/dist/cjs/components/TextInput/TextInput.cjs +1 -1
- package/dist/cjs/components/Textarea/Textarea.cjs +1 -1
- package/dist/cjs/components/ThemeProvider/ThemeProvider.cjs +1 -1
- package/dist/cjs/components/Toast/Toast.cjs +1 -1
- package/dist/cjs/components/ToastMessage/ToastMessage.cjs +1 -1
- package/dist/cjs/components/ToggleButton/ToggleButton.cjs +1 -1
- package/dist/cjs/components/ToggleSwitch/ToggleSwitch.cjs +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.cjs +1 -1
- package/dist/cjs/components/ValueUnit/ValueUnit.cjs +1 -0
- package/dist/cjs/components/index.cjs +1 -0
- package/dist/cjs/hooks/index.cjs +1 -0
- package/dist/cjs/hooks/useBreakpoint.cjs +1 -1
- package/dist/cjs/hooks/useEventListeners.cjs +1 -1
- package/dist/cjs/hooks/useHandleEvent.cjs +1 -1
- package/dist/cjs/hooks/useLoadScript.cjs +1 -0
- package/dist/cjs/hooks/useResizeObserver/useResizeObserver.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/@emotion_is-prop-valid@1.4.0/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/styled-components@6.4.1_css-to-react-native@3.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.cjs +80 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Middleware.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Prefixer.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.cjs +1 -0
- package/dist/esm/components/Accordion/Accordion.js +16 -7
- package/dist/esm/components/Avatar/Avatar.js +20 -10
- package/dist/esm/components/Badge/Badge.js +11 -6
- package/dist/esm/components/BasicCard/BasicCard.js +20 -13
- package/dist/esm/components/BasicCardHeader/BasicCardHeader.js +29 -0
- package/dist/esm/components/BasicCardImage/BasicCardImage.js +15 -0
- package/dist/esm/components/BasicCardSection/BasicCardSection.js +12 -6
- package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +14 -0
- package/dist/esm/components/BreadcrumbsItem/BreadcrumbsItem.js +19 -0
- package/dist/esm/components/Bullets/Bullets.js +9 -5
- package/dist/esm/components/Button/Button.js +17 -19
- package/dist/esm/components/Calendar/Calendar.js +17 -0
- package/dist/esm/components/CarouselIndicator/CarouselIndicator.js +11 -6
- package/dist/esm/components/Checkbox/Checkbox.js +15 -10
- package/dist/esm/components/CheckboxGroup/CheckboxGroup.js +17 -0
- package/dist/esm/components/Chip/Chip.js +13 -7
- package/dist/esm/components/Chips/Chips.js +16 -12
- package/dist/esm/components/Currency/Currency.js +12 -7
- package/dist/esm/components/DatePicker/DatePicker.js +32 -0
- package/dist/esm/components/Dialog/Dialog.js +17 -13
- package/dist/esm/components/DialogBody/DialogBody.js +13 -7
- package/dist/esm/components/DialogFooter/DialogFooter.js +13 -7
- package/dist/esm/components/DialogFullscreen/DialogFullscreen.js +19 -0
- package/dist/esm/components/DialogHeader/DialogHeader.js +13 -7
- package/dist/esm/components/Divider/Divider.js +10 -5
- package/dist/esm/components/Drawer/Drawer.js +29 -17
- package/dist/esm/components/FavouriteAction/FavouriteAction.js +23 -0
- package/dist/esm/components/Hyperlink/Hyperlink.js +15 -10
- package/dist/esm/components/Icon/Icon.js +13 -7
- package/dist/esm/components/IconButton/IconButton.js +16 -18
- package/dist/esm/components/IconButtonGroup/IconButtonGroup.js +15 -0
- package/dist/esm/components/InlineAlert/InlineAlert.js +18 -0
- package/dist/esm/components/Input/Input.js +20 -13
- package/dist/esm/components/InteractiveCard/InteractiveCard.js +39 -25
- package/dist/esm/components/LinkButton/LinkButton.js +15 -10
- package/dist/esm/components/List/List.js +14 -0
- package/dist/esm/components/ListItem/ListItem.js +19 -0
- package/dist/esm/components/Loader/Loader.js +25 -18
- package/dist/esm/components/Logo/Logo.js +11 -6
- package/dist/esm/components/MainTitle/MainTitle.js +28 -15
- package/dist/esm/components/MapPin/MapPin.js +13 -9
- package/dist/esm/components/MediaControl/MediaControl.js +17 -9
- package/dist/esm/components/Modal/Modal.js +43 -38
- package/dist/esm/components/NavigationControls/NavigationControls.js +15 -0
- package/dist/esm/components/PasswordInput/PasswordInput.js +32 -38
- package/dist/esm/components/PickerItem/PickerItem.js +15 -18
- package/dist/esm/components/Radio/Radio.js +21 -12
- package/dist/esm/components/RadioButton/RadioButton.js +15 -8
- package/dist/esm/components/RadioButtonGroup/RadioButtonGroup.js +15 -8
- package/dist/esm/components/Rating/Rating.js +12 -7
- package/dist/esm/components/Search/Search.js +13 -7
- package/dist/esm/components/SearchInput/SearchInput.js +31 -45
- package/dist/esm/components/SecondaryNavigation/SecondaryNavigation.js +25 -15
- package/dist/esm/components/SegmentedControl/SegmentedControl.js +16 -10
- package/dist/esm/components/Select/Select.js +9 -5
- package/dist/esm/components/Selection/Selection.js +11 -6
- package/dist/esm/components/SidebarNavigation/SidebarNavigation.js +29 -13
- package/dist/esm/components/Skeleton/Skeleton.js +13 -0
- package/dist/esm/components/Slider/Slider.js +16 -14
- package/dist/esm/components/StaticBox/StaticBox.js +16 -18
- package/dist/esm/components/Stepper/Stepper.js +9 -5
- package/dist/esm/components/Table/Table.js +15 -0
- package/dist/esm/components/TableCell/TableCell.js +15 -0
- package/dist/esm/components/TableRow/TableRow.js +15 -0
- package/dist/esm/components/Tabs/Tabs.js +28 -16
- package/dist/esm/components/Tag/Tag.js +16 -10
- package/dist/esm/components/Text/Text.js +13 -7
- package/dist/esm/components/TextInput/TextInput.js +34 -43
- package/dist/esm/components/Textarea/Textarea.js +36 -56
- package/dist/esm/components/ThemeProvider/ThemeProvider.js +9 -5
- package/dist/esm/components/Toast/Toast.js +14 -13
- package/dist/esm/components/ToastMessage/ToastMessage.js +16 -12
- package/dist/esm/components/ToggleButton/ToggleButton.js +14 -10
- package/dist/esm/components/ToggleSwitch/ToggleSwitch.js +29 -19
- package/dist/esm/components/Tooltip/Tooltip.js +27 -14
- package/dist/esm/components/ValueUnit/ValueUnit.js +21 -0
- package/dist/esm/components/index.js +76 -0
- package/dist/esm/hooks/index.js +5 -0
- package/dist/esm/hooks/useBreakpoint.js +41 -40
- package/dist/esm/hooks/useEventListeners.js +20 -25
- package/dist/esm/hooks/useHandleEvent.js +24 -24
- package/dist/esm/hooks/useLoadScript.js +1 -0
- package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +13 -13
- package/dist/esm/index.js +83 -126
- package/dist/esm/node_modules/.pnpm/@emotion_is-prop-valid@1.4.0/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +7 -0
- package/dist/esm/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
- package/dist/esm/node_modules/.pnpm/styled-components@6.4.1_css-to-react-native@3.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js +700 -0
- package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.js +4 -0
- package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Middleware.js +40 -0
- package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.js +95 -0
- package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Prefixer.js +115 -0
- package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.js +21 -0
- package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.js +113 -0
- package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.js +42 -0
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +8 -0
- package/dist/types/components/BreadcrumbsItem/BreadcrumbsItem.d.ts +16 -0
- package/dist/types/components/Calendar/Calendar.d.ts +12 -0
- package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +16 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +16 -0
- package/dist/types/components/FavouriteAction/FavouriteAction.d.ts +10 -0
- package/dist/types/components/IconButtonGroup/IconButtonGroup.d.ts +9 -0
- package/dist/types/components/InlineAlert/InlineAlert.d.ts +9 -0
- package/dist/types/components/List/List.d.ts +9 -0
- package/dist/types/components/ListItem/ListItem.d.ts +10 -0
- package/dist/types/components/MainTitle/MainTitle.d.ts +1 -1
- package/dist/types/components/NavigationControls/NavigationControls.d.ts +9 -0
- package/dist/types/components/Skeleton/Skeleton.d.ts +7 -0
- package/dist/types/components/Slider/Slider.d.ts +4 -0
- package/dist/types/components/Table/Table.d.ts +9 -0
- package/dist/types/components/TableCell/TableCell.d.ts +9 -0
- package/dist/types/components/TableRow/TableRow.d.ts +9 -0
- package/dist/types/components/Tag/Tag.d.ts +4 -5
- package/dist/types/components/Text/Text.d.ts +2 -2
- package/dist/types/components/TextInput/TextInput.d.ts +1 -0
- package/dist/types/components/Textarea/Textarea.d.ts +1 -0
- package/dist/types/components/ValueUnit/ValueUnit.d.ts +10 -0
- package/dist/types/components/index.d.ts +19 -0
- package/package.json +21 -16
- package/dist/cjs/node_modules/.pnpm/@emotion_is-prop-valid@1.2.2/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@emotion_memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@emotion_unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.cjs +0 -60
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.cjs +0 -1
- package/dist/esm/node_modules/.pnpm/@emotion_is-prop-valid@1.2.2/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +0 -10
- package/dist/esm/node_modules/.pnpm/@emotion_memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
- package/dist/esm/node_modules/.pnpm/@emotion_unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -52
- package/dist/esm/node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js +0 -572
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.js +0 -12
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.js +0 -49
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.js +0 -131
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.js +0 -187
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.js +0 -27
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.js +0 -147
- package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.js +0 -56
- package/dist/esm/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js +0 -18
- package/dist/types/components/Accordion/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/Avatar/stories/CupraDiagonal.stories.d.ts +0 -8
- package/dist/types/components/Badge/stories/CupraDiagonal.stories.d.ts +0 -8
- package/dist/types/components/BasicCard/stories/CupraDiagonal.stories.d.ts +0 -7
- package/dist/types/components/BasicCardHeader/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/BasicCardImage/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/BasicCardSection/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/Button/stories/CupraDiagonal.stories.d.ts +0 -19
- package/dist/types/components/CarouselIndicator/stories/CupraDiagonal.stories.d.ts +0 -8
- package/dist/types/components/Checkbox/stories/CupraDiagonal.stories.d.ts +0 -20
- package/dist/types/components/Chip/stories/CupraDiagonal.stories.d.ts +0 -7
- package/dist/types/components/Chips/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/Currency/stories/CupraDiagonal.stories.d.ts +0 -13
- package/dist/types/components/Dialog/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/DialogBody/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/DialogFooter/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/DialogFullscreen/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/DialogHeader/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/Divider/stories/CupraDiagonal.stories.d.ts +0 -8
- package/dist/types/components/Drawer/stories/CupraDiagonal.stories.d.ts +0 -6
- package/dist/types/components/Icon/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/IconButton/stories/CupraDiagonal.stories.d.ts +0 -13
- package/dist/types/components/InteractiveCard/stories/CupraDiagonal.stories.d.ts +0 -9
- package/dist/types/components/LinkButton/stories/CupraDiagonal.stories.d.ts +0 -9
- package/dist/types/components/Logo/stories/CupraDiagonal.stories.d.ts +0 -10
- package/dist/types/components/MainTitle/stories/CupraDiagonal.stories.d.ts +0 -9
- package/dist/types/components/MapPin/stories/CupraDiagonal.stories.d.ts +0 -7
- package/dist/types/components/MediaControl/stories/CupraDiagonal.stories.d.ts +0 -6
- package/dist/types/components/PasswordInput/stories/CupraDiagonal.stories.d.ts +0 -11
- package/dist/types/components/PickerItem/stories/CupraDiagonal.stories.d.ts +0 -12
- package/dist/types/components/RadioButton/stories/CupraDiagonal.stories.d.ts +0 -12
- package/dist/types/components/RadioButtonGroup/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/Rating/stories/CupraDiagonal.stories.d.ts +0 -10
- package/dist/types/components/SearchInput/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/SecondaryNavigation/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/SegmentedControl/stories/CupraDiagonal.stories.d.ts +0 -7
- package/dist/types/components/Select/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/SidebarNavigation/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/Slider/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/StaticBox/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/Stepper/stories/CupraDiagonal.stories.d.ts +0 -9
- package/dist/types/components/Tabs/stories/CupraDiagonal.stories.d.ts +0 -8
- package/dist/types/components/Tag/stories/CupraDiagonal.stories.d.ts +0 -8
- package/dist/types/components/Text/stories/CupraDiagonal.stories.d.ts +0 -5
- package/dist/types/components/TextInput/stories/CupraDiagonal.stories.d.ts +0 -8
- package/dist/types/components/Textarea/stories/CupraDiagonal.stories.d.ts +0 -11
- package/dist/types/components/Toast/stories/CupraDiagonal.stories.d.ts +0 -10
- package/dist/types/components/ToastMessage/stories/CupraDiagonal.stories.d.ts +0 -12
- package/dist/types/components/ToggleSwitch/stories/CupraDiagonal.stories.d.ts +0 -10
- package/dist/types/components/Tooltip/stories/CupraDiagonal.stories.d.ts +0 -5
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VERSION_TAG_SUFFIX as e } from "@cupra/ui-kit";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import "@cupra/ui-kit/react/ds-rating";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
//#region src/components/Rating/Rating.tsx
|
|
5
|
+
var n = `ds-rating${e}`;
|
|
6
|
+
function r(e) {
|
|
7
|
+
let { className: r, ...i } = e;
|
|
8
|
+
return /* @__PURE__ */ t(n, {
|
|
9
|
+
class: r,
|
|
10
|
+
...i
|
|
11
|
+
});
|
|
6
12
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { r as Rating };
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { VERSION_TAG_SUFFIX as e } from "@cupra/ui-kit";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
3
4
|
import "@cupra/ui-kit/react/ds-search";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
//#region src/components/Search/Search.tsx
|
|
6
|
+
var r = `ds-search${e}`, i = n(({ onInput: e, className: n, ...i }, a) => /* @__PURE__ */ t(r, {
|
|
7
|
+
ref: a,
|
|
8
|
+
class: n,
|
|
9
|
+
onInput: e,
|
|
10
|
+
...i
|
|
11
|
+
}));
|
|
12
|
+
i.displayName = "Search";
|
|
13
|
+
//#endregion
|
|
14
|
+
export { i as Search };
|
|
@@ -1,47 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
|
+
import { VERSION_TAG_SUFFIX as t } from "@cupra/ui-kit";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
5
|
import "@cupra/ui-kit/react/ds-search-input";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
29
|
-
return /* @__PURE__ */ t("ds-search-input-react", { ref: f, class: n, ...b, children: /* @__PURE__ */ t(
|
|
30
|
-
"input",
|
|
31
|
-
{
|
|
32
|
-
type: "text",
|
|
33
|
-
"aria-label": c,
|
|
34
|
-
placeholder: p,
|
|
35
|
-
value: a,
|
|
36
|
-
required: l,
|
|
37
|
-
disabled: s,
|
|
38
|
-
minLength: d,
|
|
39
|
-
maxLength: h,
|
|
40
|
-
pattern: u,
|
|
41
|
-
...m
|
|
42
|
-
}
|
|
43
|
-
) });
|
|
6
|
+
//#region src/components/SearchInput/SearchInput.tsx
|
|
7
|
+
var r = `ds-search-input${t}`;
|
|
8
|
+
function i(t) {
|
|
9
|
+
let { className: i, children: a, onChange: o, onInput: s, onClickPositionButton: c, placeHolder: l, type: u, value: d, label: f, required: p, disabled: m, pattern: h, maxLength: g, minLength: _, inputProps: v, ...y } = t, { ref: b } = e({
|
|
10
|
+
change: o,
|
|
11
|
+
input: s,
|
|
12
|
+
"ds-search-input:click-position-button": c
|
|
13
|
+
});
|
|
14
|
+
return /* @__PURE__ */ n(r, {
|
|
15
|
+
ref: b,
|
|
16
|
+
class: i,
|
|
17
|
+
...y,
|
|
18
|
+
children: /* @__PURE__ */ n("input", {
|
|
19
|
+
type: "text",
|
|
20
|
+
"aria-label": f,
|
|
21
|
+
placeholder: l,
|
|
22
|
+
value: d,
|
|
23
|
+
required: p,
|
|
24
|
+
disabled: m,
|
|
25
|
+
minLength: _,
|
|
26
|
+
maxLength: g,
|
|
27
|
+
pattern: h,
|
|
28
|
+
...v
|
|
29
|
+
})
|
|
30
|
+
});
|
|
44
31
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { i as SearchInput };
|
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
|
+
import { VERSION_TAG_SUFFIX as t } from "@cupra/ui-kit";
|
|
4
|
+
import { Fragment as n, jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import { Children as i } from "react";
|
|
2
6
|
import "@cupra/ui-kit/react/ds-secondary-navigation";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
//#region src/components/SecondaryNavigation/SecondaryNavigation.tsx
|
|
8
|
+
var a = `ds-secondary-navigation${t}`;
|
|
9
|
+
function o(t) {
|
|
10
|
+
let { className: n, children: i, onSelect: o, ...s } = t, { ref: c } = e({ "ds-secondary-navigation:select": o });
|
|
11
|
+
return /* @__PURE__ */ r(a, {
|
|
12
|
+
ref: c,
|
|
13
|
+
class: n,
|
|
14
|
+
...s,
|
|
15
|
+
children: i
|
|
16
|
+
});
|
|
11
17
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
o.Item = ({ children: e, ...t }) => /* @__PURE__ */ r("a", {
|
|
19
|
+
slot: "items",
|
|
20
|
+
...t,
|
|
21
|
+
children: e
|
|
22
|
+
}), o.Actions = ({ children: e }) => /* @__PURE__ */ r(n, { children: i.map(e, (e, t) => /* @__PURE__ */ r("div", {
|
|
23
|
+
slot: "actions",
|
|
24
|
+
children: e
|
|
25
|
+
}, t)) });
|
|
26
|
+
//#endregion
|
|
27
|
+
export { o as SecondaryNavigation };
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
|
+
import { VERSION_TAG_SUFFIX as t } from "@cupra/ui-kit";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
5
|
import "@cupra/ui-kit/react/ds-segmented-control";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
//#region src/components/SegmentedControl/SegmentedControl.tsx
|
|
7
|
+
var r = `ds-segmented-control${t}`;
|
|
8
|
+
function i(t) {
|
|
9
|
+
let { onChange: i, className: a, children: o, ...s } = t, { ref: c } = e({ change: i });
|
|
10
|
+
return /* @__PURE__ */ n(r, {
|
|
11
|
+
ref: c,
|
|
12
|
+
class: a,
|
|
13
|
+
...s,
|
|
14
|
+
children: o
|
|
15
|
+
});
|
|
9
16
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { i as SegmentedControl };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VERSION_TAG_SUFFIX as e } from "@cupra/ui-kit";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import "@cupra/ui-kit/react/ds-select";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
//#region src/components/Select/Select.tsx
|
|
5
|
+
var n = `ds-select${e}`, r = ({ children: e, ...r }) => /* @__PURE__ */ t(n, {
|
|
6
|
+
...r,
|
|
7
|
+
children: e
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { r as Select };
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { VERSION_TAG_SUFFIX as e } from "@cupra/ui-kit";
|
|
1
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import "@cupra/ui-kit/react/ds-selection";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
//#region src/components/Selection/Selection.tsx
|
|
5
|
+
var n = `ds-selection${e}`;
|
|
6
|
+
function r(e) {
|
|
7
|
+
let { className: r, children: i, ...a } = e;
|
|
8
|
+
return /* @__PURE__ */ t(n, {
|
|
9
|
+
class: r,
|
|
10
|
+
...a
|
|
11
|
+
});
|
|
6
12
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { r as Selection };
|
|
@@ -1,15 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VERSION_TAG_SUFFIX as e } from "@cupra/ui-kit";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import "@cupra/ui-kit/react/ds-sidebar-navigation";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
//#region src/components/SidebarNavigation/SidebarNavigation.tsx
|
|
5
|
+
var n = `ds-sidebar-navigation${e}`;
|
|
6
|
+
function r(e) {
|
|
7
|
+
let { className: r, children: i, ...a } = e;
|
|
8
|
+
return /* @__PURE__ */ t(n, {
|
|
9
|
+
class: r,
|
|
10
|
+
...a,
|
|
11
|
+
children: i
|
|
12
|
+
});
|
|
6
13
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
r.AsideText = ({ children: e }) => /* @__PURE__ */ t("div", {
|
|
15
|
+
slot: "aside-text",
|
|
16
|
+
children: e
|
|
17
|
+
}), r.AsideIcon = ({ children: e }) => /* @__PURE__ */ t("div", {
|
|
18
|
+
slot: "aside-icon",
|
|
19
|
+
children: e
|
|
20
|
+
}), r.AsideHelperText = ({ children: e }) => /* @__PURE__ */ t("div", {
|
|
21
|
+
slot: "aside-helper-text",
|
|
22
|
+
children: e
|
|
23
|
+
}), r.MainCta = ({ children: e }) => /* @__PURE__ */ t("div", {
|
|
24
|
+
slot: "main-cta",
|
|
25
|
+
children: e
|
|
26
|
+
}), r.Ctas = ({ children: e }) => /* @__PURE__ */ t("div", {
|
|
27
|
+
slot: "ctas",
|
|
28
|
+
children: e
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { r as SidebarNavigation };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VERSION_TAG_SUFFIX as e } from "@cupra/ui-kit";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import "@cupra/ui-kit/react/ds-skeleton";
|
|
4
|
+
//#region src/components/Skeleton/Skeleton.tsx
|
|
5
|
+
var n = `ds-skeleton${e}`;
|
|
6
|
+
function r({ className: e, ...r }) {
|
|
7
|
+
return /* @__PURE__ */ t(n, {
|
|
8
|
+
class: e,
|
|
9
|
+
...r
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { r as Skeleton };
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
|
+
import { VERSION_TAG_SUFFIX as t } from "@cupra/ui-kit";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
5
|
import "@cupra/ui-kit/react/ds-slider";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
//#region src/components/Slider/Slider.tsx
|
|
7
|
+
var r = `ds-slider${t}`;
|
|
8
|
+
function i(t) {
|
|
9
|
+
let { className: i, children: a, size: o, onChange: s, ...c } = t, { ref: l } = e({ change: s });
|
|
10
|
+
return /* @__PURE__ */ n(r, {
|
|
11
|
+
ref: l,
|
|
12
|
+
size: typeof o == "string" ? o : JSON.stringify(o),
|
|
13
|
+
class: i,
|
|
14
|
+
...c
|
|
15
|
+
});
|
|
13
16
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { i as Slider };
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
|
+
import { VERSION_TAG_SUFFIX as t } from "@cupra/ui-kit";
|
|
1
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
3
|
-
import "react";
|
|
4
|
-
import { useHandleEvent as c } from "../../hooks/useHandleEvent.js";
|
|
5
5
|
import "@cupra/ui-kit/react/ds-static-box";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
);
|
|
6
|
+
//#region src/components/StaticBox/StaticBox.tsx
|
|
7
|
+
var r = `ds-static-box${t}`;
|
|
8
|
+
function i(t) {
|
|
9
|
+
let { className: i, children: a, size: o, ...s } = t, { ref: c } = e({});
|
|
10
|
+
return /* @__PURE__ */ n(r, {
|
|
11
|
+
ref: c,
|
|
12
|
+
size: typeof o == "string" ? o : JSON.stringify(o),
|
|
13
|
+
class: i,
|
|
14
|
+
...s,
|
|
15
|
+
children: a
|
|
16
|
+
});
|
|
18
17
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { i as StaticBox };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VERSION_TAG_SUFFIX as e } from "@cupra/ui-kit";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import "@cupra/ui-kit/react/ds-stepper";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
//#region src/components/Stepper/Stepper.tsx
|
|
5
|
+
var n = `ds-stepper${e}`, r = ({ className: e, ...r }) => /* @__PURE__ */ t(n, {
|
|
6
|
+
class: e,
|
|
7
|
+
...r
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { r as Stepper };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VERSION_TAG_SUFFIX as e } from "@cupra/ui-kit";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import "@cupra/ui-kit/react/ds-table";
|
|
4
|
+
//#region src/components/Table/Table.tsx
|
|
5
|
+
var n = `ds-table${e}`;
|
|
6
|
+
function r(e) {
|
|
7
|
+
let { children: r, className: i, ...a } = e;
|
|
8
|
+
return /* @__PURE__ */ t(n, {
|
|
9
|
+
class: i,
|
|
10
|
+
...a,
|
|
11
|
+
children: r
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as Table };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VERSION_TAG_SUFFIX as e } from "@cupra/ui-kit";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import "@cupra/ui-kit/react/ds-table-cell";
|
|
4
|
+
//#region src/components/TableCell/TableCell.tsx
|
|
5
|
+
var n = `ds-table-cell${e}`;
|
|
6
|
+
function r(e) {
|
|
7
|
+
let { children: r, className: i, ...a } = e;
|
|
8
|
+
return /* @__PURE__ */ t(n, {
|
|
9
|
+
class: i,
|
|
10
|
+
...a,
|
|
11
|
+
children: r
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as TableCell };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VERSION_TAG_SUFFIX as e } from "@cupra/ui-kit";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import "@cupra/ui-kit/react/ds-table-row";
|
|
4
|
+
//#region src/components/TableRow/TableRow.tsx
|
|
5
|
+
var n = `ds-table-row${e}`;
|
|
6
|
+
function r(e) {
|
|
7
|
+
let { children: r, className: i, ...a } = e;
|
|
8
|
+
return /* @__PURE__ */ t(n, {
|
|
9
|
+
class: i,
|
|
10
|
+
...a,
|
|
11
|
+
children: r
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as TableRow };
|
|
@@ -1,20 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
|
+
import { VERSION_TAG_SUFFIX as t } from "@cupra/ui-kit";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
5
|
import "@cupra/ui-kit/react/ds-tabs";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
//#region src/components/Tabs/Tabs.tsx
|
|
7
|
+
var r = `ds-tabs${t}`;
|
|
8
|
+
function i({ children: t, onChange: i, ...a }) {
|
|
9
|
+
let { ref: o } = e({ change: i });
|
|
10
|
+
return /* @__PURE__ */ n(r, {
|
|
11
|
+
ref: o,
|
|
12
|
+
...a,
|
|
13
|
+
children: t
|
|
14
|
+
});
|
|
9
15
|
}
|
|
10
|
-
function
|
|
11
|
-
|
|
16
|
+
function a({ children: e }) {
|
|
17
|
+
return /* @__PURE__ */ n("div", {
|
|
18
|
+
role: "tab",
|
|
19
|
+
slot: "tab",
|
|
20
|
+
children: e
|
|
21
|
+
});
|
|
12
22
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
23
|
+
function o({ children: e }) {
|
|
24
|
+
return /* @__PURE__ */ n("div", {
|
|
25
|
+
role: "tabpanel",
|
|
26
|
+
slot: "panel",
|
|
27
|
+
children: e
|
|
28
|
+
});
|
|
15
29
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
n as Tabs
|
|
20
|
-
};
|
|
30
|
+
i.Tab = a, i.Panel = o;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { i as Tabs };
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
|
+
import { VERSION_TAG_SUFFIX as t } from "@cupra/ui-kit";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
5
|
import "@cupra/ui-kit/react/ds-tag";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
//#region src/components/Tag/Tag.tsx
|
|
7
|
+
var r = `ds-tag${t}`;
|
|
8
|
+
function i(t) {
|
|
9
|
+
let { children: i, onClickIcon: a, className: o, ...s } = t, { ref: c } = e({ clickicon: a });
|
|
10
|
+
return /* @__PURE__ */ n(r, {
|
|
11
|
+
ref: c,
|
|
12
|
+
class: o,
|
|
13
|
+
...s,
|
|
14
|
+
children: i
|
|
15
|
+
});
|
|
9
16
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { i as Tag };
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VERSION_TAG_SUFFIX as e } from "@cupra/ui-kit";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import "@cupra/ui-kit/react/ds-text";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
//#region src/components/Text/Text.tsx
|
|
5
|
+
var n = `ds-text${e}`;
|
|
6
|
+
function r(e) {
|
|
7
|
+
let { className: r, children: i, ...a } = e;
|
|
8
|
+
return /* @__PURE__ */ t(n, {
|
|
9
|
+
class: r,
|
|
10
|
+
...a,
|
|
11
|
+
children: i
|
|
12
|
+
});
|
|
6
13
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as Text };
|
|
@@ -1,45 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
|
+
import { VERSION_TAG_SUFFIX as t } from "@cupra/ui-kit";
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
2
5
|
import "@cupra/ui-kit/react/ds-text-input";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
type: a || "text",
|
|
32
|
-
placeholder: l,
|
|
33
|
-
value: d,
|
|
34
|
-
required: c,
|
|
35
|
-
disabled: m,
|
|
36
|
-
minLength: x,
|
|
37
|
-
maxLength: h,
|
|
38
|
-
pattern: u
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
] });
|
|
6
|
+
//#region src/components/TextInput/TextInput.tsx
|
|
7
|
+
var i = `ds-text-input${t}`;
|
|
8
|
+
function a(t) {
|
|
9
|
+
let { className: a, children: o, onChange: s, onInput: c, onKeyDown: l, inputId: u, placeHolder: d, type: f, value: p, label: m, required: h, disabled: g, readOnly: _, pattern: v, maxLength: y, minLength: b, ...x } = t, { ref: S } = e({
|
|
10
|
+
change: s,
|
|
11
|
+
input: c,
|
|
12
|
+
keydown: l
|
|
13
|
+
});
|
|
14
|
+
return /* @__PURE__ */ r(i, {
|
|
15
|
+
ref: S,
|
|
16
|
+
class: a,
|
|
17
|
+
...x,
|
|
18
|
+
children: [/* @__PURE__ */ n("label", {
|
|
19
|
+
htmlFor: u,
|
|
20
|
+
children: m
|
|
21
|
+
}), /* @__PURE__ */ n("input", {
|
|
22
|
+
id: u,
|
|
23
|
+
type: f || "text",
|
|
24
|
+
placeholder: d,
|
|
25
|
+
value: p,
|
|
26
|
+
required: h,
|
|
27
|
+
disabled: g,
|
|
28
|
+
readOnly: _,
|
|
29
|
+
minLength: b,
|
|
30
|
+
maxLength: y,
|
|
31
|
+
pattern: v
|
|
32
|
+
})]
|
|
33
|
+
});
|
|
42
34
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { a as TextInput };
|