@coopdigital/react 1.11.0 → 1.13.0
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/dist/components/AlertBanner/AlertBanner.d.ts +29 -28
- package/dist/components/AlertBanner/AlertBanner.js +16 -12
- package/dist/components/AlertBanner/index.d.ts +2 -4
- package/dist/components/AlertBanner/index.js +5 -0
- package/dist/components/Author/Author.d.ts +25 -23
- package/dist/components/Author/Author.js +24 -17
- package/dist/components/Author/index.d.ts +2 -4
- package/dist/components/Author/index.js +5 -0
- package/dist/components/Button/Button.d.ts +33 -33
- package/dist/components/Button/Button.js +34 -33
- package/dist/components/Button/index.d.ts +2 -4
- package/dist/components/Button/index.js +5 -0
- package/dist/components/Card/Card.d.ts +91 -90
- package/dist/components/Card/Card.js +76 -43
- package/dist/components/Card/index.d.ts +2 -4
- package/dist/components/Card/index.js +5 -0
- package/dist/components/Checkbox/Checkbox.d.ts +26 -25
- package/dist/components/Checkbox/Checkbox.js +20 -20
- package/dist/components/Checkbox/index.d.ts +2 -4
- package/dist/components/Checkbox/index.js +5 -0
- package/dist/components/DatePicker/DatePicker.d.ts +63 -62
- package/dist/components/DatePicker/DatePicker.js +237 -136
- package/dist/components/DatePicker/datepicker-utils.d.ts +6 -66
- package/dist/components/DatePicker/datepicker-utils.js +164 -175
- package/dist/components/DatePicker/index.d.ts +2 -4
- package/dist/components/DatePicker/index.js +5 -0
- package/dist/components/Dialog/Dialog.d.ts +81 -80
- package/dist/components/Dialog/Dialog.js +98 -94
- package/dist/components/Dialog/index.d.ts +2 -4
- package/dist/components/Dialog/index.js +5 -0
- package/dist/components/Expandable/Expandable.d.ts +40 -39
- package/dist/components/Expandable/Expandable.js +30 -22
- package/dist/components/Expandable/index.d.ts +2 -4
- package/dist/components/Expandable/index.js +5 -0
- package/dist/components/Field/Field.context.js +6 -8
- package/dist/components/Field/Field.d.ts +51 -51
- package/dist/components/Field/Field.js +80 -57
- package/dist/components/Field/index.d.ts +2 -4
- package/dist/components/Field/index.js +5 -6
- package/dist/components/FieldMarkers/Error.d.ts +11 -10
- package/dist/components/FieldMarkers/Error.js +11 -10
- package/dist/components/FieldMarkers/Hint.d.ts +11 -10
- package/dist/components/FieldMarkers/Hint.js +11 -10
- package/dist/components/FieldMarkers/Label.d.ts +12 -11
- package/dist/components/FieldMarkers/Label.js +14 -14
- package/dist/components/FieldMarkers/Legend.d.ts +12 -11
- package/dist/components/FieldMarkers/Legend.js +18 -11
- package/dist/components/Fieldset/Fieldset.d.ts +72 -71
- package/dist/components/Fieldset/Fieldset.js +29 -28
- package/dist/components/Fieldset/index.d.ts +2 -4
- package/dist/components/Fieldset/index.js +5 -0
- package/dist/components/Flourish/Flourish.d.ts +18 -17
- package/dist/components/Flourish/Flourish.js +15 -10
- package/dist/components/Flourish/index.d.ts +2 -4
- package/dist/components/Flourish/index.js +5 -0
- package/dist/components/Form/Form.d.ts +15 -14
- package/dist/components/Form/Form.js +10 -9
- package/dist/components/Form/index.d.ts +2 -4
- package/dist/components/Form/index.js +5 -0
- package/dist/components/Image/Image.d.ts +21 -20
- package/dist/components/Image/Image.js +37 -31
- package/dist/components/Image/index.d.ts +2 -4
- package/dist/components/Image/index.js +5 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +14 -12
- package/dist/components/LoadingSpinner/LoadingSpinner.js +12 -13
- package/dist/components/LoadingSpinner/index.d.ts +2 -4
- package/dist/components/LoadingSpinner/index.js +5 -0
- package/dist/components/Logo/Logo.d.ts +18 -16
- package/dist/components/Logo/Logo.js +20 -0
- package/dist/components/Logo/index.d.ts +2 -4
- package/dist/components/Logo/index.js +5 -0
- package/dist/components/Pill/Pill.d.ts +34 -34
- package/dist/components/Pill/Pill.js +26 -20
- package/dist/components/Pill/index.d.ts +2 -4
- package/dist/components/Pill/index.js +5 -0
- package/dist/components/Popover/Popover.d.ts +91 -90
- package/dist/components/Popover/Popover.js +64 -55
- package/dist/components/Popover/index.d.ts +2 -4
- package/dist/components/Popover/index.js +5 -0
- package/dist/components/Radio/Radio.d.ts +26 -25
- package/dist/components/Radio/Radio.js +20 -21
- package/dist/components/Radio/index.d.ts +2 -4
- package/dist/components/Radio/index.js +5 -0
- package/dist/components/RootSVG/RootSVG.d.ts +7 -6
- package/dist/components/RootSVG/RootSVG.js +19 -9
- package/dist/components/RootSVG/index.d.ts +2 -4
- package/dist/components/RootSVG/index.js +5 -0
- package/dist/components/Searchbox/Searchbox.context.js +6 -7
- package/dist/components/Searchbox/Searchbox.d.ts +49 -47
- package/dist/components/Searchbox/Searchbox.js +85 -60
- package/dist/components/Searchbox/index.d.ts +2 -4
- package/dist/components/Searchbox/index.js +5 -0
- package/dist/components/Select/Select.d.ts +58 -52
- package/dist/components/Select/Select.js +29 -20
- package/dist/components/Select/index.d.ts +2 -4
- package/dist/components/Select/index.js +5 -0
- package/dist/components/Signpost/Signpost.d.ts +25 -24
- package/dist/components/Signpost/Signpost.js +25 -13
- package/dist/components/Signpost/index.d.ts +2 -4
- package/dist/components/Signpost/index.js +5 -0
- package/dist/components/SkipNav/SkipNav.d.ts +20 -19
- package/dist/components/SkipNav/SkipNav.js +25 -18
- package/dist/components/SkipNav/index.d.ts +2 -4
- package/dist/components/SkipNav/index.js +5 -0
- package/dist/components/Squircle/Squircle.d.ts +17 -16
- package/dist/components/Squircle/Squircle.js +12 -11
- package/dist/components/Squircle/index.d.ts +2 -4
- package/dist/components/Squircle/index.js +5 -0
- package/dist/components/Tag/Tag.d.ts +21 -21
- package/dist/components/Tag/Tag.js +16 -13
- package/dist/components/Tag/index.d.ts +2 -4
- package/dist/components/Tag/index.js +5 -0
- package/dist/components/TextInput/TextInput.d.ts +41 -35
- package/dist/components/TextInput/TextInput.js +45 -28
- package/dist/components/TextInput/index.d.ts +2 -4
- package/dist/components/TextInput/index.js +5 -5
- package/dist/components/Textarea/Textarea.d.ts +44 -38
- package/dist/components/Textarea/Textarea.js +49 -35
- package/dist/components/Textarea/index.d.ts +2 -4
- package/dist/components/Textarea/index.js +5 -0
- package/dist/components/ValidationSummary/ValidationSummary.d.ts +73 -73
- package/dist/components/ValidationSummary/ValidationSummary.js +72 -62
- package/dist/components/ValidationSummary/index.d.ts +2 -4
- package/dist/components/ValidationSummary/index.js +5 -0
- package/dist/components/ValidationSummary/validationsummary-utils.js +7 -10
- package/dist/components/icons/AccountCircleFilledIcon.d.ts +6 -4
- package/dist/components/icons/AccountCircleFilledIcon.js +21 -17
- package/dist/components/icons/AccountCircleIcon.d.ts +6 -4
- package/dist/components/icons/AccountCircleIcon.js +21 -17
- package/dist/components/icons/AccountFilledIcon.d.ts +6 -4
- package/dist/components/icons/AccountFilledIcon.js +21 -17
- package/dist/components/icons/AccountIcon.d.ts +6 -4
- package/dist/components/icons/AccountIcon.js +21 -17
- package/dist/components/icons/AddIcon.d.ts +6 -4
- package/dist/components/icons/AddIcon.js +21 -17
- package/dist/components/icons/AppsFilledIcon.d.ts +6 -4
- package/dist/components/icons/AppsFilledIcon.js +21 -17
- package/dist/components/icons/AppsIcon.d.ts +6 -4
- package/dist/components/icons/AppsIcon.js +21 -17
- package/dist/components/icons/ArrowDownIcon.d.ts +6 -4
- package/dist/components/icons/ArrowDownIcon.js +21 -17
- package/dist/components/icons/ArrowLeftIcon.d.ts +6 -4
- package/dist/components/icons/ArrowLeftIcon.js +21 -17
- package/dist/components/icons/ArrowRightIcon.d.ts +6 -4
- package/dist/components/icons/ArrowRightIcon.js +21 -17
- package/dist/components/icons/ArrowUpIcon.d.ts +6 -4
- package/dist/components/icons/ArrowUpIcon.js +21 -17
- package/dist/components/icons/BackspaceFilledIcon.d.ts +6 -4
- package/dist/components/icons/BackspaceFilledIcon.js +21 -17
- package/dist/components/icons/BackspaceIcon.d.ts +6 -4
- package/dist/components/icons/BackspaceIcon.js +21 -17
- package/dist/components/icons/BasketFilledIcon.d.ts +6 -4
- package/dist/components/icons/BasketFilledIcon.js +21 -17
- package/dist/components/icons/BasketIcon.d.ts +6 -4
- package/dist/components/icons/BasketIcon.js +21 -17
- package/dist/components/icons/BellFilledIcon.d.ts +6 -4
- package/dist/components/icons/BellFilledIcon.js +28 -17
- package/dist/components/icons/BellIcon.d.ts +6 -4
- package/dist/components/icons/BellIcon.js +21 -17
- package/dist/components/icons/BroomIcon.d.ts +6 -4
- package/dist/components/icons/BroomIcon.js +21 -17
- package/dist/components/icons/CalendarFilledIcon.d.ts +6 -4
- package/dist/components/icons/CalendarFilledIcon.js +21 -17
- package/dist/components/icons/CalendarIcon.d.ts +6 -4
- package/dist/components/icons/CalendarIcon.js +21 -17
- package/dist/components/icons/CashFilledIcon.d.ts +6 -4
- package/dist/components/icons/CashFilledIcon.js +21 -17
- package/dist/components/icons/CashIcon.d.ts +6 -4
- package/dist/components/icons/CashIcon.js +29 -17
- package/dist/components/icons/ChevronDownIcon.d.ts +6 -4
- package/dist/components/icons/ChevronDownIcon.js +21 -17
- package/dist/components/icons/ChevronLeftIcon.d.ts +6 -4
- package/dist/components/icons/ChevronLeftIcon.js +21 -17
- package/dist/components/icons/ChevronRightIcon.d.ts +6 -4
- package/dist/components/icons/ChevronRightIcon.js +21 -17
- package/dist/components/icons/ChevronUpIcon.d.ts +6 -4
- package/dist/components/icons/ChevronUpIcon.js +21 -17
- package/dist/components/icons/CircleBurgerFilledIcon.d.ts +6 -4
- package/dist/components/icons/CircleBurgerFilledIcon.js +21 -17
- package/dist/components/icons/CircleBurgerIcon.d.ts +6 -4
- package/dist/components/icons/CircleBurgerIcon.js +21 -17
- package/dist/components/icons/ClipboardFilledIcon.d.ts +6 -4
- package/dist/components/icons/ClipboardFilledIcon.js +21 -17
- package/dist/components/icons/ClipboardIcon.d.ts +6 -4
- package/dist/components/icons/ClipboardIcon.js +21 -17
- package/dist/components/icons/ClockFilledIcon.d.ts +6 -4
- package/dist/components/icons/ClockFilledIcon.js +25 -17
- package/dist/components/icons/ClockIcon.d.ts +6 -4
- package/dist/components/icons/ClockIcon.js +21 -17
- package/dist/components/icons/CloseAltFilledIcon.d.ts +6 -4
- package/dist/components/icons/CloseAltFilledIcon.js +25 -17
- package/dist/components/icons/CloseAltIcon.d.ts +6 -4
- package/dist/components/icons/CloseAltIcon.js +21 -17
- package/dist/components/icons/CogIcon.d.ts +6 -4
- package/dist/components/icons/CogIcon.js +21 -17
- package/dist/components/icons/CommunityFilledIcon.d.ts +6 -4
- package/dist/components/icons/CommunityFilledIcon.js +21 -17
- package/dist/components/icons/CommunityIcon.d.ts +6 -4
- package/dist/components/icons/CommunityIcon.js +21 -17
- package/dist/components/icons/ComputerIcon.d.ts +6 -4
- package/dist/components/icons/ComputerIcon.js +21 -17
- package/dist/components/icons/ContactFilledIcon.d.ts +6 -4
- package/dist/components/icons/ContactFilledIcon.js +21 -17
- package/dist/components/icons/ContactIcon.d.ts +6 -4
- package/dist/components/icons/ContactIcon.js +21 -17
- package/dist/components/icons/ContactlessFilledIcon.d.ts +6 -4
- package/dist/components/icons/ContactlessFilledIcon.js +21 -17
- package/dist/components/icons/ContactlessIcon.d.ts +6 -4
- package/dist/components/icons/ContactlessIcon.js +21 -17
- package/dist/components/icons/CoopLiveIcon.d.ts +6 -4
- package/dist/components/icons/CoopLiveIcon.js +25 -17
- package/dist/components/icons/CoopLocationFilledIcon.d.ts +6 -4
- package/dist/components/icons/CoopLocationFilledIcon.js +26 -17
- package/dist/components/icons/CoopLogoIcon.d.ts +6 -4
- package/dist/components/icons/CoopLogoIcon.js +21 -17
- package/dist/components/icons/CoopMembershipCardFilledIcon.d.ts +6 -4
- package/dist/components/icons/CoopMembershipCardFilledIcon.js +29 -17
- package/dist/components/icons/CreditCardFilledIcon.d.ts +6 -4
- package/dist/components/icons/CreditCardFilledIcon.js +25 -17
- package/dist/components/icons/CreditCardIcon.d.ts +6 -4
- package/dist/components/icons/CreditCardIcon.js +21 -17
- package/dist/components/icons/CrossIcon.d.ts +6 -4
- package/dist/components/icons/CrossIcon.js +21 -17
- package/dist/components/icons/DocumentIcon.d.ts +6 -4
- package/dist/components/icons/DocumentIcon.js +21 -17
- package/dist/components/icons/DownloadIcon.d.ts +6 -4
- package/dist/components/icons/DownloadIcon.js +21 -17
- package/dist/components/icons/EnterStoreIcon.d.ts +6 -4
- package/dist/components/icons/EnterStoreIcon.js +21 -17
- package/dist/components/icons/ExitStoreIcon.d.ts +6 -4
- package/dist/components/icons/ExitStoreIcon.js +21 -17
- package/dist/components/icons/EyeFilledIcon.d.ts +6 -4
- package/dist/components/icons/EyeFilledIcon.js +21 -17
- package/dist/components/icons/EyeIcon.d.ts +6 -4
- package/dist/components/icons/EyeIcon.js +21 -17
- package/dist/components/icons/EyeStrikeFilledIcon.d.ts +6 -4
- package/dist/components/icons/EyeStrikeFilledIcon.js +21 -17
- package/dist/components/icons/EyeStrikeIcon.d.ts +6 -4
- package/dist/components/icons/EyeStrikeIcon.js +21 -17
- package/dist/components/icons/FeedbackFilledIcon.d.ts +6 -4
- package/dist/components/icons/FeedbackFilledIcon.js +24 -17
- package/dist/components/icons/FeedbackIcon.d.ts +6 -4
- package/dist/components/icons/FeedbackIcon.js +21 -17
- package/dist/components/icons/FilterIcon.d.ts +6 -4
- package/dist/components/icons/FilterIcon.js +21 -17
- package/dist/components/icons/GiftCardFilledIcon.d.ts +6 -4
- package/dist/components/icons/GiftCardFilledIcon.js +21 -17
- package/dist/components/icons/GiftCardIcon.d.ts +6 -4
- package/dist/components/icons/GiftCardIcon.js +21 -17
- package/dist/components/icons/GiftFilledIcon.d.ts +6 -4
- package/dist/components/icons/GiftFilledIcon.js +21 -17
- package/dist/components/icons/GiftIcon.d.ts +6 -4
- package/dist/components/icons/GiftIcon.js +21 -17
- package/dist/components/icons/HelpFilledIcon.d.ts +6 -4
- package/dist/components/icons/HelpFilledIcon.js +21 -17
- package/dist/components/icons/HelpIcon.d.ts +6 -4
- package/dist/components/icons/HelpIcon.js +21 -17
- package/dist/components/icons/HomeFilledIcon.d.ts +6 -4
- package/dist/components/icons/HomeFilledIcon.js +21 -17
- package/dist/components/icons/HomeIcon.d.ts +6 -4
- package/dist/components/icons/HomeIcon.js +21 -17
- package/dist/components/icons/HowDoIAssistantIcon.d.ts +6 -4
- package/dist/components/icons/HowDoIAssistantIcon.js +21 -17
- package/dist/components/icons/InfoIcon.d.ts +6 -4
- package/dist/components/icons/InfoIcon.js +21 -17
- package/dist/components/icons/KebabIcon.d.ts +6 -4
- package/dist/components/icons/KebabIcon.js +21 -17
- package/dist/components/icons/LoadingIcon.d.ts +6 -4
- package/dist/components/icons/LoadingIcon.js +21 -17
- package/dist/components/icons/LocationFilledIcon.d.ts +6 -4
- package/dist/components/icons/LocationFilledIcon.js +21 -17
- package/dist/components/icons/LocationIcon.d.ts +6 -4
- package/dist/components/icons/LocationIcon.js +21 -17
- package/dist/components/icons/LogoutIcon.d.ts +6 -4
- package/dist/components/icons/LogoutIcon.js +21 -17
- package/dist/components/icons/MailIcon.d.ts +6 -4
- package/dist/components/icons/MailIcon.js +21 -17
- package/dist/components/icons/MenuIcon.d.ts +6 -4
- package/dist/components/icons/MenuIcon.js +21 -17
- package/dist/components/icons/MessageIcon.d.ts +6 -4
- package/dist/components/icons/MessageIcon.js +21 -17
- package/dist/components/icons/MinusIcon.d.ts +6 -4
- package/dist/components/icons/MinusIcon.js +21 -17
- package/dist/components/icons/NotesFilledIcon.d.ts +6 -4
- package/dist/components/icons/NotesFilledIcon.js +21 -17
- package/dist/components/icons/NotesIcon.d.ts +6 -4
- package/dist/components/icons/NotesIcon.js +21 -17
- package/dist/components/icons/OpenNewIcon.d.ts +6 -4
- package/dist/components/icons/OpenNewIcon.js +25 -17
- package/dist/components/icons/OwnBagIcon.d.ts +6 -4
- package/dist/components/icons/OwnBagIcon.js +21 -17
- package/dist/components/icons/PadlockIcon.d.ts +6 -4
- package/dist/components/icons/PadlockIcon.js +21 -17
- package/dist/components/icons/PencilIcon.d.ts +6 -4
- package/dist/components/icons/PencilIcon.js +21 -17
- package/dist/components/icons/PhoneIcon.d.ts +6 -4
- package/dist/components/icons/PhoneIcon.js +21 -17
- package/dist/components/icons/PowerIcon.d.ts +6 -4
- package/dist/components/icons/PowerIcon.js +21 -17
- package/dist/components/icons/SaveFilledIcon.d.ts +6 -4
- package/dist/components/icons/SaveFilledIcon.js +21 -17
- package/dist/components/icons/SaveIcon.d.ts +6 -4
- package/dist/components/icons/SaveIcon.js +21 -17
- package/dist/components/icons/ScooterIcon.d.ts +6 -4
- package/dist/components/icons/ScooterIcon.js +21 -17
- package/dist/components/icons/SearchFilledIcon.d.ts +6 -4
- package/dist/components/icons/SearchFilledIcon.js +21 -17
- package/dist/components/icons/SearchIcon.d.ts +6 -4
- package/dist/components/icons/SearchIcon.js +21 -17
- package/dist/components/icons/SendIcon.d.ts +6 -4
- package/dist/components/icons/SendIcon.js +21 -17
- package/dist/components/icons/SpannerIcon.d.ts +6 -4
- package/dist/components/icons/SpannerIcon.js +21 -17
- package/dist/components/icons/StarFilledIcon.d.ts +6 -4
- package/dist/components/icons/StarFilledIcon.js +24 -17
- package/dist/components/icons/StarIcon.d.ts +6 -4
- package/dist/components/icons/StarIcon.js +21 -17
- package/dist/components/icons/TickAltFilledIcon.d.ts +6 -4
- package/dist/components/icons/TickAltFilledIcon.js +25 -17
- package/dist/components/icons/TickAltIcon.d.ts +6 -4
- package/dist/components/icons/TickAltIcon.js +21 -17
- package/dist/components/icons/TickIcon.d.ts +6 -4
- package/dist/components/icons/TickIcon.js +21 -17
- package/dist/components/icons/TruckIcon.d.ts +6 -4
- package/dist/components/icons/TruckIcon.js +21 -17
- package/dist/components/icons/UserWipeIcon.d.ts +6 -4
- package/dist/components/icons/UserWipeIcon.js +21 -17
- package/dist/components/icons/VoucherFilledIcon.d.ts +6 -4
- package/dist/components/icons/VoucherFilledIcon.js +21 -17
- package/dist/components/icons/VoucherIcon.d.ts +6 -4
- package/dist/components/icons/VoucherIcon.js +21 -17
- package/dist/components/icons/WarningCircleFilledIcon.d.ts +6 -4
- package/dist/components/icons/WarningCircleFilledIcon.js +25 -17
- package/dist/components/icons/WarningCircleIcon.d.ts +6 -4
- package/dist/components/icons/WarningCircleIcon.js +29 -17
- package/dist/components/icons/WarningFilledIcon.d.ts +6 -4
- package/dist/components/icons/WarningFilledIcon.js +21 -17
- package/dist/components/icons/WarningIcon.d.ts +6 -4
- package/dist/components/icons/WarningIcon.js +21 -17
- package/dist/components/icons/WifiIcon.d.ts +6 -4
- package/dist/components/icons/WifiIcon.js +21 -17
- package/dist/components/icons/WriteIcon.d.ts +6 -4
- package/dist/components/icons/WriteIcon.js +27 -17
- package/dist/components/icons/index.d.ts +110 -109
- package/dist/components/icons/index.js +110 -109
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/useDebounce.d.ts +4 -1
- package/dist/hooks/useDebounce.js +13 -13
- package/dist/hooks/useId.d.ts +5 -2
- package/dist/hooks/useId.js +7 -7
- package/dist/hooks/useSlots.d.ts +5 -8
- package/dist/hooks/useSlots.js +30 -50
- package/dist/index.d.ts +28 -27
- package/dist/index.js +28 -27
- package/dist/types/colors.d.ts +10 -10
- package/dist/types/index.d.ts +4 -16
- package/dist/utils/index.d.ts +8 -5
- package/dist/utils/index.js +9 -13
- package/package.json +4 -3
- package/src/components/Select/Select.tsx +7 -0
- package/src/components/TextInput/TextInput.tsx +7 -0
- package/src/components/Textarea/Textarea.tsx +7 -0
- package/src/components/icons/BellFilledIcon.tsx +1 -1
- package/src/components/icons/CashIcon.tsx +2 -2
- package/src/components/icons/ClockFilledIcon.tsx +2 -2
- package/src/components/icons/CloseAltFilledIcon.tsx +2 -2
- package/src/components/icons/CoopMembershipCardFilledIcon.tsx +2 -2
- package/src/components/icons/CreditCardFilledIcon.tsx +2 -15
- package/src/components/icons/FeedbackFilledIcon.tsx +2 -6
- package/src/components/icons/StarFilledIcon.tsx +1 -1
- package/src/components/icons/TickAltFilledIcon.tsx +2 -2
- package/src/components/icons/WarningCircleFilledIcon.tsx +2 -2
- package/src/components/icons/WarningCircleIcon.tsx +2 -2
- package/src/hooks/index.ts +3 -0
- package/src/index.ts +27 -27
- package/dist/components/Field/Field.context.d.ts +0 -14
- package/dist/components/Searchbox/Searchbox.context.d.ts +0 -13
- package/dist/components/ValidationSummary/validationsummary-utils.d.ts +0 -2
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { HTMLAttributes, JSX, ReactNode, Ref } from "react";
|
|
2
|
+
//#region src/components/AlertBanner/AlertBanner.d.ts
|
|
3
|
+
interface AlertBannerProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** **(Optional)** Main content inside the banner. It can be any valid JSX or string. */
|
|
5
|
+
children?: string | ReactNode;
|
|
6
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** **(Optional)** Specify a custom React ref for this component. */
|
|
9
|
+
ref?: Ref<HTMLDivElement>;
|
|
10
|
+
/** **(Optional)** Specify the AlertBanner variant. */
|
|
11
|
+
variant?: "black" | "default";
|
|
11
12
|
}
|
|
12
13
|
interface AlertBannerHeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
/** **(Optional)** Content inside the Heading. */
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the Heading. */
|
|
17
|
+
className?: string;
|
|
17
18
|
}
|
|
18
19
|
declare const AlertBanner: {
|
|
19
|
-
|
|
20
|
+
({ children, className, ref, variant, ...props }: AlertBannerProps): JSX.Element;
|
|
21
|
+
slot: {
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
24
|
+
Heading: {
|
|
25
|
+
({ children, className }: AlertBannerHeadingProps): JSX.Element;
|
|
20
26
|
slot: {
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
Heading: {
|
|
24
|
-
({ children, className }: AlertBannerHeadingProps): JSX.Element;
|
|
25
|
-
slot: {
|
|
26
|
-
name: string;
|
|
27
|
-
};
|
|
27
|
+
name: string;
|
|
28
28
|
};
|
|
29
|
+
};
|
|
29
30
|
};
|
|
30
31
|
declare const AlertBannerHeading: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
({ children, className }: AlertBannerHeadingProps): JSX.Element;
|
|
33
|
+
slot: {
|
|
34
|
+
name: string;
|
|
35
|
+
};
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
-
export { AlertBanner, AlertBannerHeading };
|
|
37
|
+
//#endregion
|
|
38
|
+
export { AlertBanner, AlertBanner as default, AlertBannerHeading, AlertBannerProps };
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/AlertBanner/AlertBanner.tsx
|
|
4
4
|
const AlertBanner = ({ children, className, ref, variant = "default", ...props }) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
return /* @__PURE__ */ jsx("aside", {
|
|
6
|
+
className: clsx("coop-alert-banner", className),
|
|
7
|
+
"data-variant": variant,
|
|
8
|
+
...props,
|
|
9
|
+
ref,
|
|
10
|
+
children
|
|
11
|
+
});
|
|
11
12
|
};
|
|
12
13
|
const AlertBannerHeading = ({ children, className }) => {
|
|
13
|
-
|
|
14
|
+
return /* @__PURE__ */ jsx("h2", {
|
|
15
|
+
className,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
14
18
|
};
|
|
15
19
|
AlertBanner.slot = { name: "AlertBanner" };
|
|
16
20
|
AlertBannerHeading.slot = { name: "AlertBannerHeading" };
|
|
17
21
|
AlertBanner.Heading = AlertBannerHeading;
|
|
18
|
-
|
|
19
|
-
export { AlertBanner,
|
|
22
|
+
//#endregion
|
|
23
|
+
export { AlertBanner, AlertBanner as default, AlertBannerHeading };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import AlertBanner from "./AlertBanner";
|
|
2
|
-
export default
|
|
3
|
-
export { AlertBanner };
|
|
4
|
-
export * from "./AlertBanner";
|
|
1
|
+
import { AlertBanner, AlertBannerHeading, AlertBannerProps } from "./AlertBanner.js";
|
|
2
|
+
export { AlertBanner, AlertBanner as default, AlertBannerHeading, AlertBannerProps };
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { ImageProps } from "../Image/Image.js";
|
|
2
|
+
import "../Image/index.js";
|
|
3
|
+
import { HTMLAttributes, JSX, Ref } from "react";
|
|
4
|
+
//#region src/components/Author/Author.d.ts
|
|
5
|
+
interface AuthorProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** **(Optional)** Specify the Author name. */
|
|
7
|
+
author?: string;
|
|
8
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** **(Optional)** Specify the date. Refer to Experience Library guidance on date formats. We advise using the following format (dd mmmm yyyy) eg: 1 January 2000. */
|
|
11
|
+
date?: string;
|
|
12
|
+
/** **(Optional)** Specify the text that will prefix the date, e.g. "Updated". */
|
|
13
|
+
datePrefix?: string;
|
|
14
|
+
/** **(Optional)** Specify properties of the Author Image. */
|
|
15
|
+
image?: ImageProps;
|
|
16
|
+
/** **(Optional)** Specify a custom React ref for this component. */
|
|
17
|
+
ref?: Ref<HTMLDivElement>;
|
|
18
|
+
/** **(Optional)** Specify the Author size. */
|
|
19
|
+
size?: "sm" | "md";
|
|
18
20
|
}
|
|
19
21
|
declare const Author: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
({ author, className, date, datePrefix, image, ref, size, ...props }: AuthorProps): JSX.Element;
|
|
23
|
+
slot: {
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
24
26
|
};
|
|
25
|
-
|
|
26
|
-
export { Author };
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Author, Author as default, AuthorProps };
|
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import clsx from
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { Image } from "../Image/Image.js";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/Author/Author.tsx
|
|
5
5
|
const Author = ({ author = "Co-op team", className, date, datePrefix = "", image = {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
alt: "",
|
|
7
|
+
src: "https://s3.eu-west-1.amazonaws.com/assets.digital.coop.co.uk/oneweb/coop-logo-inverted.svg"
|
|
8
8
|
}, ref, size, ...props }) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
const imageProps = {
|
|
10
|
+
width: "56px",
|
|
11
|
+
...image
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
14
|
+
className: clsx("coop-author", className),
|
|
15
|
+
"data-size": size?.length ? size : void 0,
|
|
16
|
+
...props,
|
|
17
|
+
ref,
|
|
18
|
+
children: [image && /* @__PURE__ */ jsx(Image, { ...imageProps }), /* @__PURE__ */ jsxs("div", {
|
|
19
|
+
className: "coop-author--content",
|
|
20
|
+
children: [/* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("span", { children: datePrefix ? datePrefix + " " : "" }), /* @__PURE__ */ jsx("span", {
|
|
21
|
+
className: "coop-author--date",
|
|
22
|
+
children: date
|
|
23
|
+
})] }), /* @__PURE__ */ jsxs("span", { children: ["by ", author] })]
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
19
26
|
};
|
|
20
27
|
Author.slot = { name: "Author" };
|
|
21
|
-
|
|
28
|
+
//#endregion
|
|
22
29
|
export { Author, Author as default };
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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
|
-
|
|
1
|
+
import React, { ButtonHTMLAttributes, ForwardRefExoticComponent, JSX, Ref } from "react";
|
|
2
|
+
//#region src/components/Button/Button.d.ts
|
|
3
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
/** **(Optional)** Specify a custom element to override default `a` or `button`. */
|
|
5
|
+
as?: React.FC<any> | ForwardRefExoticComponent<any> | string;
|
|
6
|
+
/** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** **(Optional)** Specify the URL that the Button component will link to when clicked. */
|
|
11
|
+
href?: string;
|
|
12
|
+
/** **(Optional)** Specify whether the Button should be disabled. This will not actually disable the button, just make it look disabled. Refer to Experience Library guidance on disabled buttons and accessibility. */
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
/** **(Optional)** Specify whether the Button should be full width. Refer to Experience Library guidance on full width buttons. */
|
|
15
|
+
isFullWidth?: boolean;
|
|
16
|
+
/** **(Optional)** Force the Button into a loading state. */
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
/** **(Optional)** Specify text to show when the Button is in a loading state. */
|
|
19
|
+
loadingText?: string;
|
|
20
|
+
/** **(Optional)** Callback to run when the button is pressed. If this is an async function, it will be awaited and the button will be in a pending state until the promise is resolved. */
|
|
21
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
|
|
22
|
+
/** **(Optional)** Specify a custom React ref for this component. */
|
|
23
|
+
ref?: Ref<HTMLElement>;
|
|
24
|
+
/** **(Optional)** Specify the Button size. */
|
|
25
|
+
size?: "sm" | "md" | "lg";
|
|
26
|
+
/** **(Optional)** Specify the Button variant. */
|
|
27
|
+
variant?: "solid" | "ghost" | "text";
|
|
28
28
|
}
|
|
29
29
|
declare const Button: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
({ as, children, className, href, isDisabled, isFullWidth, isLoading, loadingText, onClick, ref, size, variant, ...props }: ButtonProps): JSX.Element;
|
|
31
|
+
slot: {
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
export { Button };
|
|
35
|
+
//#endregion
|
|
36
|
+
export { Button, Button as default, ButtonProps };
|
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
2
|
+
import { hasUserBg } from "../../utils/index.js";
|
|
3
|
+
import { LoadingSpinner } from "../LoadingSpinner/LoadingSpinner.js";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import React, { useCallback, useState } from "react";
|
|
7
|
+
//#region src/components/Button/Button.tsx
|
|
8
8
|
const Button = ({ as, children, className, href, isDisabled = false, isFullWidth = false, isLoading = false, loadingText = "Loading", onClick, ref, size, variant = "solid", ...props }) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
9
|
+
const element = as ?? (href ? "a" : "button");
|
|
10
|
+
const [isPending, setIsPending] = useState(false);
|
|
11
|
+
const handleClick = useCallback(async (event) => {
|
|
12
|
+
if (isPending || !onClick) return;
|
|
13
|
+
setIsPending(true);
|
|
14
|
+
try {
|
|
15
|
+
await Promise.resolve(onClick(event));
|
|
16
|
+
} finally {
|
|
17
|
+
setIsPending(false);
|
|
18
|
+
}
|
|
19
|
+
}, [onClick, isPending]);
|
|
20
|
+
const componentProps = {
|
|
21
|
+
"aria-disabled": isDisabled ? true : void 0,
|
|
22
|
+
className: clsx(variant == "text" ? "coop-link" : "coop-button", !hasUserBg(className) && variant === "solid" && "bg-teal", className),
|
|
23
|
+
"data-loading": isLoading || isPending ? true : void 0,
|
|
24
|
+
"data-size": size ?? void 0,
|
|
25
|
+
"data-variant": variant !== "text" ? variant : void 0,
|
|
26
|
+
"data-width": isFullWidth ? "full" : void 0,
|
|
27
|
+
href,
|
|
28
|
+
onClick: onClick ? handleClick : void 0,
|
|
29
|
+
...props
|
|
30
|
+
};
|
|
31
|
+
const finalChildren = isPending || isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [loadingText, /* @__PURE__ */ jsx(LoadingSpinner, {})] }) : children;
|
|
32
|
+
return React.createElement(element, {
|
|
33
|
+
...componentProps,
|
|
34
|
+
ref
|
|
35
|
+
}, finalChildren);
|
|
35
36
|
};
|
|
36
37
|
Button.slot = { name: "Button" };
|
|
37
|
-
|
|
38
|
+
//#endregion
|
|
38
39
|
export { Button, Button as default };
|
|
@@ -1,118 +1,119 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { ImageProps } from "../Image/Image.js";
|
|
2
|
+
import "../Image/index.js";
|
|
3
|
+
import React, { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react";
|
|
4
|
+
//#region src/components/Card/Card.d.ts
|
|
5
|
+
interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** **(Optional)** Specify whether chevron is visible. */
|
|
7
|
+
chevron?: boolean;
|
|
8
|
+
/** **(Optional)** Content inside the component. Children that are not assigned to a slot will be grouped together and rendered under the main Card content. */
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** **(Optional)** Specify the URL that the Card will link to. */
|
|
13
|
+
href?: string;
|
|
14
|
+
/** **(Optional)** Specify a custom element to use instead of `a`. */
|
|
15
|
+
hrefAs?: React.FC<any> | ForwardRefExoticComponent<any> | string;
|
|
16
|
+
/** **(Optional)** Specify the position of the image in the Card. */
|
|
17
|
+
imagePosition?: "left" | "right";
|
|
18
|
+
/** **(Optional)** Specify the orientation of the Card. */
|
|
19
|
+
orientation?: "vertical" | "horizontal";
|
|
20
|
+
/** **(Optional)** Specify a custom React ref for this component. */
|
|
21
|
+
ref?: Ref<HTMLDivElement>;
|
|
21
22
|
}
|
|
22
23
|
interface CardLabelProps extends HTMLAttributes<HTMLSpanElement> {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
/** **(Optional)** Content inside the Label. */
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the Label. */
|
|
27
|
+
className?: string;
|
|
27
28
|
}
|
|
28
29
|
interface CardHeadingProps extends HTMLAttributes<HTMLDivElement> {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
/** **(Optional)** Specify a custom element to use instead of `h3`. */
|
|
31
|
+
as?: "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div";
|
|
32
|
+
/** **(Optional)** Content inside the Heading. */
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the Heading. */
|
|
35
|
+
className?: string;
|
|
35
36
|
}
|
|
36
37
|
interface CardBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
/** **(Optional)** Content inside the Body. */
|
|
39
|
+
children?: React.ReactNode;
|
|
39
40
|
}
|
|
40
41
|
interface CardBadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
/** **(Optional)** Specify on which side the Badge should appear. */
|
|
43
|
+
align?: "left" | "right";
|
|
44
|
+
/** **(Optional)** Content inside the Badge. */
|
|
45
|
+
children?: React.ReactNode;
|
|
46
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the Badge. */
|
|
47
|
+
className?: string;
|
|
48
|
+
/** **(Optional)** Specify badge position relative to top right corner. */
|
|
49
|
+
position?: "inset" | "popout";
|
|
49
50
|
}
|
|
50
51
|
type CardImageProps = ImageProps;
|
|
51
52
|
declare const Card: {
|
|
52
|
-
|
|
53
|
+
({ chevron, children, className, href, hrefAs, imagePosition, orientation, ref, ...props }: CardProps): JSX.Element;
|
|
54
|
+
slot: {
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
57
|
+
Label: {
|
|
58
|
+
({ children, className }: CardLabelProps): JSX.Element;
|
|
53
59
|
slot: {
|
|
54
|
-
|
|
55
|
-
};
|
|
56
|
-
Label: {
|
|
57
|
-
({ children, className }: CardLabelProps): JSX.Element;
|
|
58
|
-
slot: {
|
|
59
|
-
name: string;
|
|
60
|
-
};
|
|
60
|
+
name: string;
|
|
61
61
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
};
|
|
63
|
+
Heading: {
|
|
64
|
+
({ as, children, className }: CardHeadingProps): JSX.Element;
|
|
65
|
+
slot: {
|
|
66
|
+
name: string;
|
|
67
67
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
};
|
|
69
|
+
Badge: {
|
|
70
|
+
({ align, children, position, ...props }: CardBadgeProps): JSX.Element;
|
|
71
|
+
slot: {
|
|
72
|
+
name: string;
|
|
73
73
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
};
|
|
75
|
+
Body: {
|
|
76
|
+
({ children }: CardBodyProps): JSX.Element;
|
|
77
|
+
slot: {
|
|
78
|
+
name: string;
|
|
79
79
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
};
|
|
81
|
+
Image: {
|
|
82
|
+
(props: CardImageProps): JSX.Element;
|
|
83
|
+
slot: {
|
|
84
|
+
name: string;
|
|
85
85
|
};
|
|
86
|
+
};
|
|
86
87
|
};
|
|
87
88
|
declare const CardHeading: {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
({ as, children, className }: CardHeadingProps): JSX.Element;
|
|
90
|
+
slot: {
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
92
93
|
};
|
|
93
94
|
declare const CardLabel: {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
({ children, className }: CardLabelProps): JSX.Element;
|
|
96
|
+
slot: {
|
|
97
|
+
name: string;
|
|
98
|
+
};
|
|
98
99
|
};
|
|
99
100
|
declare const CardBadge: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
({ align, children, position, ...props }: CardBadgeProps): JSX.Element;
|
|
102
|
+
slot: {
|
|
103
|
+
name: string;
|
|
104
|
+
};
|
|
104
105
|
};
|
|
105
106
|
declare const CardBody: {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
({ children }: CardBodyProps): JSX.Element;
|
|
108
|
+
slot: {
|
|
109
|
+
name: string;
|
|
110
|
+
};
|
|
110
111
|
};
|
|
111
112
|
declare const CardImage: {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
(props: CardImageProps): JSX.Element;
|
|
114
|
+
slot: {
|
|
115
|
+
name: string;
|
|
116
|
+
};
|
|
116
117
|
};
|
|
117
|
-
|
|
118
|
-
export { Card, CardBadge, CardBody, CardHeading, CardImage, CardLabel };
|
|
118
|
+
//#endregion
|
|
119
|
+
export { Card, Card as default, CardBadge, CardBody, CardHeading, CardImage, CardLabel, CardProps };
|