@coopdigital/react 1.12.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/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,109 +1,110 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
1
|
+
import { AccountCircleFilledIcon } from "./AccountCircleFilledIcon.js";
|
|
2
|
+
import { AccountCircleIcon } from "./AccountCircleIcon.js";
|
|
3
|
+
import { AccountFilledIcon } from "./AccountFilledIcon.js";
|
|
4
|
+
import { AccountIcon } from "./AccountIcon.js";
|
|
5
|
+
import { AddIcon } from "./AddIcon.js";
|
|
6
|
+
import { AppsFilledIcon } from "./AppsFilledIcon.js";
|
|
7
|
+
import { AppsIcon } from "./AppsIcon.js";
|
|
8
|
+
import { ArrowDownIcon } from "./ArrowDownIcon.js";
|
|
9
|
+
import { ArrowLeftIcon } from "./ArrowLeftIcon.js";
|
|
10
|
+
import { ArrowRightIcon } from "./ArrowRightIcon.js";
|
|
11
|
+
import { ArrowUpIcon } from "./ArrowUpIcon.js";
|
|
12
|
+
import { BackspaceFilledIcon } from "./BackspaceFilledIcon.js";
|
|
13
|
+
import { BackspaceIcon } from "./BackspaceIcon.js";
|
|
14
|
+
import { BasketFilledIcon } from "./BasketFilledIcon.js";
|
|
15
|
+
import { BasketIcon } from "./BasketIcon.js";
|
|
16
|
+
import { BellFilledIcon } from "./BellFilledIcon.js";
|
|
17
|
+
import { BellIcon } from "./BellIcon.js";
|
|
18
|
+
import { BroomIcon } from "./BroomIcon.js";
|
|
19
|
+
import { CalendarFilledIcon } from "./CalendarFilledIcon.js";
|
|
20
|
+
import { CalendarIcon } from "./CalendarIcon.js";
|
|
21
|
+
import { CashFilledIcon } from "./CashFilledIcon.js";
|
|
22
|
+
import { CashIcon } from "./CashIcon.js";
|
|
23
|
+
import { ChevronDownIcon } from "./ChevronDownIcon.js";
|
|
24
|
+
import { ChevronLeftIcon } from "./ChevronLeftIcon.js";
|
|
25
|
+
import { ChevronRightIcon } from "./ChevronRightIcon.js";
|
|
26
|
+
import { ChevronUpIcon } from "./ChevronUpIcon.js";
|
|
27
|
+
import { CircleBurgerFilledIcon } from "./CircleBurgerFilledIcon.js";
|
|
28
|
+
import { CircleBurgerIcon } from "./CircleBurgerIcon.js";
|
|
29
|
+
import { ClipboardFilledIcon } from "./ClipboardFilledIcon.js";
|
|
30
|
+
import { ClipboardIcon } from "./ClipboardIcon.js";
|
|
31
|
+
import { ClockFilledIcon } from "./ClockFilledIcon.js";
|
|
32
|
+
import { ClockIcon } from "./ClockIcon.js";
|
|
33
|
+
import { CloseAltFilledIcon } from "./CloseAltFilledIcon.js";
|
|
34
|
+
import { CloseAltIcon } from "./CloseAltIcon.js";
|
|
35
|
+
import { CogIcon } from "./CogIcon.js";
|
|
36
|
+
import { CommunityFilledIcon } from "./CommunityFilledIcon.js";
|
|
37
|
+
import { CommunityIcon } from "./CommunityIcon.js";
|
|
38
|
+
import { ComputerIcon } from "./ComputerIcon.js";
|
|
39
|
+
import { ContactFilledIcon } from "./ContactFilledIcon.js";
|
|
40
|
+
import { ContactIcon } from "./ContactIcon.js";
|
|
41
|
+
import { ContactlessFilledIcon } from "./ContactlessFilledIcon.js";
|
|
42
|
+
import { ContactlessIcon } from "./ContactlessIcon.js";
|
|
43
|
+
import { CoopLiveIcon } from "./CoopLiveIcon.js";
|
|
44
|
+
import { CoopLocationFilledIcon } from "./CoopLocationFilledIcon.js";
|
|
45
|
+
import { CoopLogoIcon } from "./CoopLogoIcon.js";
|
|
46
|
+
import { CoopMembershipCardFilledIcon } from "./CoopMembershipCardFilledIcon.js";
|
|
47
|
+
import { CreditCardFilledIcon } from "./CreditCardFilledIcon.js";
|
|
48
|
+
import { CreditCardIcon } from "./CreditCardIcon.js";
|
|
49
|
+
import { CrossIcon } from "./CrossIcon.js";
|
|
50
|
+
import { DocumentIcon } from "./DocumentIcon.js";
|
|
51
|
+
import { DownloadIcon } from "./DownloadIcon.js";
|
|
52
|
+
import { EnterStoreIcon } from "./EnterStoreIcon.js";
|
|
53
|
+
import { ExitStoreIcon } from "./ExitStoreIcon.js";
|
|
54
|
+
import { EyeFilledIcon } from "./EyeFilledIcon.js";
|
|
55
|
+
import { EyeIcon } from "./EyeIcon.js";
|
|
56
|
+
import { EyeStrikeFilledIcon } from "./EyeStrikeFilledIcon.js";
|
|
57
|
+
import { EyeStrikeIcon } from "./EyeStrikeIcon.js";
|
|
58
|
+
import { FeedbackFilledIcon } from "./FeedbackFilledIcon.js";
|
|
59
|
+
import { FeedbackIcon } from "./FeedbackIcon.js";
|
|
60
|
+
import { FilterIcon } from "./FilterIcon.js";
|
|
61
|
+
import { GiftCardFilledIcon } from "./GiftCardFilledIcon.js";
|
|
62
|
+
import { GiftCardIcon } from "./GiftCardIcon.js";
|
|
63
|
+
import { GiftFilledIcon } from "./GiftFilledIcon.js";
|
|
64
|
+
import { GiftIcon } from "./GiftIcon.js";
|
|
65
|
+
import { HelpFilledIcon } from "./HelpFilledIcon.js";
|
|
66
|
+
import { HelpIcon } from "./HelpIcon.js";
|
|
67
|
+
import { HomeFilledIcon } from "./HomeFilledIcon.js";
|
|
68
|
+
import { HomeIcon } from "./HomeIcon.js";
|
|
69
|
+
import { HowDoIAssistantIcon } from "./HowDoIAssistantIcon.js";
|
|
70
|
+
import { InfoIcon } from "./InfoIcon.js";
|
|
71
|
+
import { KebabIcon } from "./KebabIcon.js";
|
|
72
|
+
import { LoadingIcon } from "./LoadingIcon.js";
|
|
73
|
+
import { LocationFilledIcon } from "./LocationFilledIcon.js";
|
|
74
|
+
import { LocationIcon } from "./LocationIcon.js";
|
|
75
|
+
import { LogoutIcon } from "./LogoutIcon.js";
|
|
76
|
+
import { MailIcon } from "./MailIcon.js";
|
|
77
|
+
import { MenuIcon } from "./MenuIcon.js";
|
|
78
|
+
import { MessageIcon } from "./MessageIcon.js";
|
|
79
|
+
import { MinusIcon } from "./MinusIcon.js";
|
|
80
|
+
import { NotesFilledIcon } from "./NotesFilledIcon.js";
|
|
81
|
+
import { NotesIcon } from "./NotesIcon.js";
|
|
82
|
+
import { OpenNewIcon } from "./OpenNewIcon.js";
|
|
83
|
+
import { OwnBagIcon } from "./OwnBagIcon.js";
|
|
84
|
+
import { PadlockIcon } from "./PadlockIcon.js";
|
|
85
|
+
import { PencilIcon } from "./PencilIcon.js";
|
|
86
|
+
import { PhoneIcon } from "./PhoneIcon.js";
|
|
87
|
+
import { PowerIcon } from "./PowerIcon.js";
|
|
88
|
+
import { SaveFilledIcon } from "./SaveFilledIcon.js";
|
|
89
|
+
import { SaveIcon } from "./SaveIcon.js";
|
|
90
|
+
import { ScooterIcon } from "./ScooterIcon.js";
|
|
91
|
+
import { SearchFilledIcon } from "./SearchFilledIcon.js";
|
|
92
|
+
import { SearchIcon } from "./SearchIcon.js";
|
|
93
|
+
import { SendIcon } from "./SendIcon.js";
|
|
94
|
+
import { SpannerIcon } from "./SpannerIcon.js";
|
|
95
|
+
import { StarFilledIcon } from "./StarFilledIcon.js";
|
|
96
|
+
import { StarIcon } from "./StarIcon.js";
|
|
97
|
+
import { TickAltFilledIcon } from "./TickAltFilledIcon.js";
|
|
98
|
+
import { TickAltIcon } from "./TickAltIcon.js";
|
|
99
|
+
import { TickIcon } from "./TickIcon.js";
|
|
100
|
+
import { TruckIcon } from "./TruckIcon.js";
|
|
101
|
+
import { UserWipeIcon } from "./UserWipeIcon.js";
|
|
102
|
+
import { VoucherFilledIcon } from "./VoucherFilledIcon.js";
|
|
103
|
+
import { VoucherIcon } from "./VoucherIcon.js";
|
|
104
|
+
import { WarningCircleFilledIcon } from "./WarningCircleFilledIcon.js";
|
|
105
|
+
import { WarningCircleIcon } from "./WarningCircleIcon.js";
|
|
106
|
+
import { WarningFilledIcon } from "./WarningFilledIcon.js";
|
|
107
|
+
import { WarningIcon } from "./WarningIcon.js";
|
|
108
|
+
import { WifiIcon } from "./WifiIcon.js";
|
|
109
|
+
import { WriteIcon } from "./WriteIcon.js";
|
|
110
|
+
export { AccountCircleFilledIcon, AccountCircleIcon, AccountFilledIcon, AccountIcon, AddIcon, AppsFilledIcon, AppsIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BackspaceFilledIcon, BackspaceIcon, BasketFilledIcon, BasketIcon, BellFilledIcon, BellIcon, BroomIcon, CalendarFilledIcon, CalendarIcon, CashFilledIcon, CashIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleBurgerFilledIcon, CircleBurgerIcon, ClipboardFilledIcon, ClipboardIcon, ClockFilledIcon, ClockIcon, CloseAltFilledIcon, CloseAltIcon, CogIcon, CommunityFilledIcon, CommunityIcon, ComputerIcon, ContactFilledIcon, ContactIcon, ContactlessFilledIcon, ContactlessIcon, CoopLiveIcon, CoopLocationFilledIcon, CoopLogoIcon, CoopMembershipCardFilledIcon, CreditCardFilledIcon, CreditCardIcon, CrossIcon, DocumentIcon, DownloadIcon, EnterStoreIcon, ExitStoreIcon, EyeFilledIcon, EyeIcon, EyeStrikeFilledIcon, EyeStrikeIcon, FeedbackFilledIcon, FeedbackIcon, FilterIcon, GiftCardFilledIcon, GiftCardIcon, GiftFilledIcon, GiftIcon, HelpFilledIcon, HelpIcon, HomeFilledIcon, HomeIcon, HowDoIAssistantIcon, InfoIcon, KebabIcon, LoadingIcon, LocationFilledIcon, LocationIcon, LogoutIcon, MailIcon, MenuIcon, MessageIcon, MinusIcon, NotesFilledIcon, NotesIcon, OpenNewIcon, OwnBagIcon, PadlockIcon, PencilIcon, PhoneIcon, PowerIcon, SaveFilledIcon, SaveIcon, ScooterIcon, SearchFilledIcon, SearchIcon, SendIcon, SpannerIcon, StarFilledIcon, StarIcon, TickAltFilledIcon, TickAltIcon, TickIcon, TruckIcon, UserWipeIcon, VoucherFilledIcon, VoucherIcon, WarningCircleFilledIcon, WarningCircleIcon, WarningFilledIcon, WarningIcon, WifiIcon, WriteIcon };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
//#region src/hooks/useDebounce.ts
|
|
3
3
|
function useDebounce(value, delay) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
const [debouncedValue, setDebouncedValue] = useState(value);
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
const handler = setTimeout(() => {
|
|
7
|
+
setDebouncedValue(value);
|
|
8
|
+
}, delay);
|
|
9
|
+
return () => {
|
|
10
|
+
clearTimeout(handler);
|
|
11
|
+
};
|
|
12
|
+
}, [value, delay]);
|
|
13
|
+
return debouncedValue;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
//#endregion
|
|
16
16
|
export { useDebounce };
|
package/dist/hooks/useId.d.ts
CHANGED
package/dist/hooks/useId.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useId
|
|
2
|
-
|
|
3
|
-
const useId = (id) => {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { useId } from "react";
|
|
2
|
+
//#region src/hooks/useId.ts
|
|
3
|
+
const useId$1 = (id) => {
|
|
4
|
+
const uniqueId = useId();
|
|
5
|
+
return id ?? uniqueId;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
export { useId };
|
|
7
|
+
//#endregion
|
|
8
|
+
export { useId$1 as useId };
|
package/dist/hooks/useSlots.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
//#region src/hooks/useSlots.d.ts
|
|
3
3
|
type Slots<T> = Record<keyof T, React.ReactNode>;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function resolveComponentName(child: React.ReactNode): string | null;
|
|
7
|
-
export declare function getSlotName(node: React.ReactNode): string | false;
|
|
8
|
-
export declare function useSlots<T>(componentSlots: Slots<T>, children: React.ReactNode, options?: {
|
|
9
|
-
collect?: string[];
|
|
4
|
+
declare function useSlots<T>(componentSlots: Slots<T>, children: React.ReactNode, options?: {
|
|
5
|
+
collect?: string[];
|
|
10
6
|
}): Slots<T>;
|
|
11
|
-
|
|
7
|
+
//#endregion
|
|
8
|
+
export { useSlots };
|
package/dist/hooks/useSlots.js
CHANGED
|
@@ -1,61 +1,41 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
//#region src/hooks/useSlots.ts
|
|
3
3
|
function isKey(x, k) {
|
|
4
|
-
|
|
4
|
+
return k in x;
|
|
5
5
|
}
|
|
6
|
-
// oxlint-disable-next-line typescript/no-explicit-any
|
|
7
6
|
function isLazy(type) {
|
|
8
|
-
|
|
7
|
+
return typeof type === "object" && type !== null && "_payload" in type && "_init" in type;
|
|
9
8
|
}
|
|
10
9
|
function resolveComponentName(child) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (typeof type === "function") {
|
|
27
|
-
if ("slot" in type)
|
|
28
|
-
return type.slot.name;
|
|
29
|
-
return (_d = (_c = type.displayName) !== null && _c !== void 0 ? _c : type.name) !== null && _d !== void 0 ? _d : null;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return null;
|
|
10
|
+
if (child && typeof child === "object" && "type" in child) {
|
|
11
|
+
const type = child.type;
|
|
12
|
+
if (isLazy(type)) try {
|
|
13
|
+
const resolved = type._init(type._payload);
|
|
14
|
+
if ("slot" in resolved) return resolved.slot.name;
|
|
15
|
+
return resolved.displayName ?? resolved.name ?? null;
|
|
16
|
+
} catch {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
if (typeof type === "function") {
|
|
20
|
+
if ("slot" in type) return type.slot.name;
|
|
21
|
+
return type.displayName ?? type.name ?? null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
33
25
|
}
|
|
34
26
|
function getSlotName(node) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// return root && !safeName.startsWith(root) ? root + safeName : safeName
|
|
39
|
-
}
|
|
40
|
-
return false;
|
|
27
|
+
const slotName = resolveComponentName(node);
|
|
28
|
+
if (slotName) return slotName.replaceAll(".", "");
|
|
29
|
+
return false;
|
|
41
30
|
}
|
|
42
31
|
function useSlots(componentSlots, children, options) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
else {
|
|
51
|
-
slots[slotName] = child;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
else if ("Children" in slots) {
|
|
55
|
-
slots.Children = slots.Children ? [...[slots.Children].flat(), child] : [child];
|
|
56
|
-
}
|
|
57
|
-
return slots;
|
|
58
|
-
}, { ...componentSlots });
|
|
32
|
+
return React.Children.toArray(children).reduce((slots, child) => {
|
|
33
|
+
const slotName = getSlotName(child);
|
|
34
|
+
if (child && slotName && isKey(componentSlots, slotName)) if (options?.collect?.includes(slotName)) slots[slotName] = slots[slotName] ? [...[slots[slotName]].flat(), child] : [child];
|
|
35
|
+
else slots[slotName] = child;
|
|
36
|
+
else if ("Children" in slots) slots.Children = slots.Children ? [...[slots.Children].flat(), child] : [child];
|
|
37
|
+
return slots;
|
|
38
|
+
}, { ...componentSlots });
|
|
59
39
|
}
|
|
60
|
-
|
|
40
|
+
//#endregion
|
|
61
41
|
export { getSlotName, isKey, isLazy, resolveComponentName, useSlots };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
|
|
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 { AlertBanner, AlertBannerHeading, AlertBannerProps } from "./components/AlertBanner/AlertBanner.js";
|
|
2
|
+
import { Image, ImageProps } from "./components/Image/Image.js";
|
|
3
|
+
import { Author, AuthorProps } from "./components/Author/Author.js";
|
|
4
|
+
import { Button, ButtonProps } from "./components/Button/Button.js";
|
|
5
|
+
import { Card, CardBadge, CardBody, CardHeading, CardImage, CardLabel, CardProps } from "./components/Card/Card.js";
|
|
6
|
+
import { Checkbox, CheckboxProps } from "./components/Checkbox/Checkbox.js";
|
|
7
|
+
import { DatePicker, DatePickerProps } from "./components/DatePicker/DatePicker.js";
|
|
8
|
+
import { Dialog, DialogBody, DialogHeader, DialogProps } from "./components/Dialog/Dialog.js";
|
|
9
|
+
import { Expandable, ExpandableContent, ExpandableProps, ExpandableSummary } from "./components/Expandable/Expandable.js";
|
|
10
|
+
import { Field, FieldError, FieldHint, FieldLabel } from "./components/Field/Field.js";
|
|
11
|
+
import { Fieldset, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend, FieldsetProps } from "./components/Fieldset/Fieldset.js";
|
|
12
|
+
import { Flourish, FlourishProps } from "./components/Flourish/Flourish.js";
|
|
13
|
+
import { Form, FormProps } from "./components/Form/Form.js";
|
|
14
|
+
import { LoadingSpinner, LoadingSpinnerProps } from "./components/LoadingSpinner/LoadingSpinner.js";
|
|
15
|
+
import { Pill, PillBadge, PillProps } from "./components/Pill/Pill.js";
|
|
16
|
+
import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverProps, PopoverTrigger } from "./components/Popover/Popover.js";
|
|
17
|
+
import { Radio, RadioProps } from "./components/Radio/Radio.js";
|
|
18
|
+
import { RootSVG } from "./components/RootSVG/RootSVG.js";
|
|
19
|
+
import { TextInput, TextInputProps } from "./components/TextInput/TextInput.js";
|
|
20
|
+
import { Searchbox, SearchboxButton, SearchboxInput, SearchboxProps } from "./components/Searchbox/Searchbox.js";
|
|
21
|
+
import { Select, SelectOption, SelectOptionGroup, SelectProps } from "./components/Select/Select.js";
|
|
22
|
+
import { Signpost, SignpostProps } from "./components/Signpost/Signpost.js";
|
|
23
|
+
import { SkipNav, SkipNavProps } from "./components/SkipNav/SkipNav.js";
|
|
24
|
+
import { Squircle, SquircleProps } from "./components/Squircle/Squircle.js";
|
|
25
|
+
import { Tag, TagProps } from "./components/Tag/Tag.js";
|
|
26
|
+
import { Textarea, TextareaProps } from "./components/Textarea/Textarea.js";
|
|
27
|
+
import { ValidationSummary, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt, ValidationSummaryProps } from "./components/ValidationSummary/ValidationSummary.js";
|
|
28
|
+
export { AlertBanner, AlertBannerHeading, AlertBannerProps, Author, AuthorProps, Button, ButtonProps, Card, CardBadge, CardBody, CardHeading, CardImage, CardLabel, CardProps, Checkbox, CheckboxProps, DatePicker, DatePickerProps, Dialog, DialogBody, DialogHeader, DialogProps, Expandable, ExpandableContent, ExpandableProps, ExpandableSummary, Field, FieldError, FieldHint, FieldLabel, Fieldset, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend, FieldsetProps, Flourish, FlourishProps, Form, FormProps, Image, ImageProps, LoadingSpinner, LoadingSpinnerProps, Pill, PillBadge, PillProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverProps, PopoverTrigger, Radio, RadioProps, RootSVG, Searchbox, SearchboxButton, SearchboxInput, SearchboxProps, Select, SelectOption, SelectOptionGroup, SelectProps, Signpost, SignpostProps, SkipNav, SkipNavProps, Squircle, SquircleProps, Tag, TagProps, TextInput, TextInputProps, Textarea, TextareaProps, ValidationSummary, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt, ValidationSummaryProps };
|
package/dist/index.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
|
|
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 { AlertBanner, AlertBannerHeading } from "./components/AlertBanner/AlertBanner.js";
|
|
2
|
+
import { Image } from "./components/Image/Image.js";
|
|
3
|
+
import { Author } from "./components/Author/Author.js";
|
|
4
|
+
import { LoadingSpinner } from "./components/LoadingSpinner/LoadingSpinner.js";
|
|
5
|
+
import { Button } from "./components/Button/Button.js";
|
|
6
|
+
import { Card, CardBadge, CardBody, CardHeading, CardImage, CardLabel } from "./components/Card/Card.js";
|
|
7
|
+
import { Checkbox } from "./components/Checkbox/Checkbox.js";
|
|
8
|
+
import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger } from "./components/Popover/Popover.js";
|
|
9
|
+
import { TextInput } from "./components/TextInput/TextInput.js";
|
|
10
|
+
import { DatePicker } from "./components/DatePicker/DatePicker.js";
|
|
11
|
+
import { Dialog, DialogBody, DialogHeader } from "./components/Dialog/Dialog.js";
|
|
12
|
+
import { Expandable, ExpandableContent, ExpandableSummary } from "./components/Expandable/Expandable.js";
|
|
13
|
+
import { Field, FieldError, FieldHint, FieldLabel } from "./components/Field/Field.js";
|
|
14
|
+
import { Fieldset, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend } from "./components/Fieldset/Fieldset.js";
|
|
15
|
+
import { Flourish } from "./components/Flourish/Flourish.js";
|
|
16
|
+
import { Form } from "./components/Form/Form.js";
|
|
17
|
+
import { Pill, PillBadge } from "./components/Pill/Pill.js";
|
|
18
|
+
import { Radio } from "./components/Radio/Radio.js";
|
|
19
|
+
import { RootSVG } from "./components/RootSVG/RootSVG.js";
|
|
20
|
+
import { Searchbox, SearchboxButton, SearchboxInput } from "./components/Searchbox/Searchbox.js";
|
|
21
|
+
import { Select, SelectOption, SelectOptionGroup } from "./components/Select/Select.js";
|
|
22
|
+
import { Signpost } from "./components/Signpost/Signpost.js";
|
|
23
|
+
import { SkipNav } from "./components/SkipNav/SkipNav.js";
|
|
24
|
+
import { Squircle } from "./components/Squircle/Squircle.js";
|
|
25
|
+
import { Tag } from "./components/Tag/Tag.js";
|
|
26
|
+
import { Textarea } from "./components/Textarea/Textarea.js";
|
|
27
|
+
import { ValidationSummary, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt } from "./components/ValidationSummary/ValidationSummary.js";
|
|
28
|
+
export { AlertBanner, AlertBannerHeading, Author, Button, Card, CardBadge, CardBody, CardHeading, CardImage, CardLabel, Checkbox, DatePicker, Dialog, DialogBody, DialogHeader, Expandable, ExpandableContent, ExpandableSummary, Field, FieldError, FieldHint, FieldLabel, Fieldset, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend, Flourish, Form, Image, LoadingSpinner, Pill, PillBadge, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Radio, RootSVG, Searchbox, SearchboxButton, SearchboxInput, Select, SelectOption, SelectOptionGroup, Signpost, SkipNav, Squircle, Tag, TextInput, Textarea, ValidationSummary, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt };
|
package/dist/types/colors.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
1
|
+
//#region src/types/colors.d.ts
|
|
2
|
+
type Darks = "dark-blue" | "dark-yellow" | "dark-green" | "dark-lilac" | "dark-orange" | "dark-pink" | "dark-purple" | "dark-red";
|
|
3
|
+
type Tints = "tint-blue" | "tint-brown" | "tint-yellow" | "tint-green" | "tint-grey" | "tint-lilac" | "tint-orange" | "tint-pink" | "tint-purple" | "tint-red";
|
|
4
|
+
type Lights = "light-blue" | "light-yellow" | "light-green" | "light-lilac" | "light-orange" | "light-pink" | "light-purple" | "light-red";
|
|
5
|
+
type White = "white";
|
|
6
|
+
type Black = "black";
|
|
7
|
+
type BrandBlue = "brand-blue";
|
|
8
|
+
type OfferRed = "offer";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Black, BrandBlue, Darks, Lights, OfferRed, Tints, White };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
name: string;
|
|
6
|
-
suffix?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface LazyPayload<T> {
|
|
9
|
-
default: T;
|
|
10
|
-
}
|
|
11
|
-
export interface LazyComponent<T extends React.ComponentType<any>> {
|
|
12
|
-
_init: (payload: unknown) => T;
|
|
13
|
-
_payload: Promise<LazyPayload<T>> | LazyPayload<T>;
|
|
14
|
-
$$typeof: typeof REACT_LAZY_TYPE;
|
|
15
|
-
}
|
|
16
|
-
export declare const REACT_LAZY_TYPE: any;
|
|
1
|
+
//#region src/types/index.d.ts
|
|
2
|
+
type StandardSizes = "sm" | "md" | "lg";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { StandardSizes };
|