@coopdigital/react 1.31.0 → 1.32.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 +0 -2
- package/dist/components/AlertBanner/AlertBanner.js +1 -2
- package/dist/components/AlertBanner/index.js +1 -2
- package/dist/components/Author/Author.d.ts +0 -2
- package/dist/components/Author/Author.js +1 -2
- package/dist/components/Author/index.js +1 -2
- package/dist/components/Box/Box.d.ts +0 -2
- package/dist/components/Box/Box.js +1 -2
- package/dist/components/Box/index.js +1 -2
- package/dist/components/Button/Button.d.ts +2 -4
- package/dist/components/Button/Button.js +1 -2
- package/dist/components/Button/index.js +1 -2
- package/dist/components/Card/Card.d.ts +0 -2
- package/dist/components/Card/Card.js +1 -2
- package/dist/components/Card/index.js +1 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -2
- package/dist/components/Checkbox/Checkbox.js +1 -2
- package/dist/components/Checkbox/index.js +1 -2
- package/dist/components/Combobox/Combobox.context.js +1 -2
- package/dist/components/Combobox/Combobox.d.ts +0 -2
- package/dist/components/Combobox/Combobox.js +1 -2
- package/dist/components/Combobox/combobox-internal.js +1 -2
- package/dist/components/Combobox/combobox-utils.d.ts +1 -3
- package/dist/components/Combobox/index.js +1 -2
- package/dist/components/DateInput/DateInput.context.js +1 -2
- package/dist/components/DateInput/DateInput.d.ts +2 -3
- package/dist/components/DateInput/DateInput.js +2 -3
- package/dist/components/DateInput/dateinput-utils.d.ts +2 -65
- package/dist/components/DateInput/dateinput-utils.js +2 -83
- package/dist/components/DateInput/index.d.ts +2 -2
- package/dist/components/DateInput/index.js +3 -4
- package/dist/components/DatePicker/DatePicker.d.ts +0 -2
- package/dist/components/DatePicker/DatePicker.js +1 -2
- package/dist/components/DatePicker/datepicker-utils.d.ts +1 -3
- package/dist/components/DatePicker/datepicker-utils.js +1 -2
- package/dist/components/DatePicker/index.js +1 -2
- package/dist/components/Dialog/Dialog.d.ts +0 -2
- package/dist/components/Dialog/Dialog.js +1 -2
- package/dist/components/Dialog/index.js +1 -2
- package/dist/components/Expandable/Expandable.d.ts +0 -2
- package/dist/components/Expandable/Expandable.js +1 -2
- package/dist/components/Expandable/index.js +1 -2
- package/dist/components/Field/Field.context.js +1 -2
- package/dist/components/Field/Field.d.ts +0 -2
- package/dist/components/Field/Field.js +1 -2
- package/dist/components/Field/index.js +1 -2
- package/dist/components/FieldMarkers/Error.d.ts +1 -3
- package/dist/components/FieldMarkers/Error.js +1 -2
- package/dist/components/FieldMarkers/Hint.d.ts +1 -3
- package/dist/components/FieldMarkers/Hint.js +1 -2
- package/dist/components/FieldMarkers/Label.d.ts +1 -3
- package/dist/components/FieldMarkers/Label.js +1 -2
- package/dist/components/FieldMarkers/Legend.d.ts +1 -3
- package/dist/components/FieldMarkers/Legend.js +1 -2
- package/dist/components/FieldMarkers/fieldmarkers-internal.js +1 -2
- package/dist/components/Fieldset/Fieldset.context.js +1 -2
- package/dist/components/Fieldset/Fieldset.d.ts +0 -2
- package/dist/components/Fieldset/Fieldset.js +1 -2
- package/dist/components/Fieldset/index.js +1 -2
- package/dist/components/Flourish/Flourish.d.ts +0 -2
- package/dist/components/Flourish/Flourish.js +1 -2
- package/dist/components/Flourish/index.js +1 -2
- package/dist/components/Form/Form.d.ts +0 -2
- package/dist/components/Form/Form.js +1 -2
- package/dist/components/Form/index.js +1 -2
- package/dist/components/Image/Image.d.ts +0 -2
- package/dist/components/Image/Image.js +1 -2
- package/dist/components/Image/index.js +1 -2
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +0 -2
- package/dist/components/LoadingSpinner/LoadingSpinner.js +1 -2
- package/dist/components/LoadingSpinner/index.js +1 -2
- package/dist/components/Logo/Logo.d.ts +0 -2
- package/dist/components/Logo/Logo.js +1 -2
- package/dist/components/Logo/index.js +1 -2
- package/dist/components/PasswordInput/PasswordInput.d.ts +0 -2
- package/dist/components/PasswordInput/PasswordInput.js +1 -2
- package/dist/components/PasswordInput/index.js +1 -2
- package/dist/components/Picture/Picture.d.ts +0 -2
- package/dist/components/Picture/Picture.js +1 -2
- package/dist/components/Picture/index.js +1 -2
- package/dist/components/Pill/Pill.d.ts +0 -2
- package/dist/components/Pill/Pill.js +1 -2
- package/dist/components/Pill/index.js +1 -2
- package/dist/components/Popover/Popover.d.ts +0 -2
- package/dist/components/Popover/Popover.js +1 -2
- package/dist/components/Popover/index.js +1 -2
- package/dist/components/Prose/Prose.d.ts +0 -2
- package/dist/components/Prose/Prose.js +1 -2
- package/dist/components/Prose/index.js +1 -2
- package/dist/components/Radio/Radio.d.ts +0 -2
- package/dist/components/Radio/Radio.js +1 -2
- package/dist/components/Radio/index.js +1 -2
- package/dist/components/RootSVG/RootSVG.d.ts +0 -2
- package/dist/components/RootSVG/RootSVG.js +1 -2
- package/dist/components/RootSVG/index.js +1 -2
- package/dist/components/Searchbox/Searchbox.context.js +1 -2
- package/dist/components/Searchbox/Searchbox.d.ts +0 -2
- package/dist/components/Searchbox/Searchbox.js +1 -2
- package/dist/components/Searchbox/index.js +1 -2
- package/dist/components/Section/Section.d.ts +0 -2
- package/dist/components/Section/Section.js +1 -2
- package/dist/components/Section/index.js +1 -2
- package/dist/components/Select/Select.d.ts +0 -2
- package/dist/components/Select/Select.js +1 -2
- package/dist/components/Select/index.js +1 -2
- package/dist/components/Signpost/Signpost.d.ts +0 -2
- package/dist/components/Signpost/Signpost.js +1 -2
- package/dist/components/Signpost/index.js +1 -2
- package/dist/components/SkipNav/SkipNav.d.ts +0 -2
- package/dist/components/SkipNav/SkipNav.js +1 -2
- package/dist/components/SkipNav/index.js +1 -2
- package/dist/components/Squircle/Squircle.d.ts +0 -2
- package/dist/components/Squircle/Squircle.js +1 -2
- package/dist/components/Squircle/index.js +1 -2
- package/dist/components/Tag/Tag.d.ts +0 -2
- package/dist/components/Tag/Tag.js +1 -2
- package/dist/components/Tag/index.js +1 -2
- package/dist/components/TextInput/TextInput.d.ts +0 -2
- package/dist/components/TextInput/TextInput.js +1 -2
- package/dist/components/TextInput/index.js +1 -2
- package/dist/components/Textarea/Textarea.d.ts +0 -2
- package/dist/components/Textarea/Textarea.js +1 -2
- package/dist/components/Textarea/index.js +1 -2
- package/dist/components/ValidationSummary/ValidationSummary.context.js +1 -2
- package/dist/components/ValidationSummary/ValidationSummary.d.ts +0 -2
- package/dist/components/ValidationSummary/ValidationSummary.js +1 -2
- package/dist/components/ValidationSummary/index.js +1 -2
- package/dist/components/ValidationSummary/validationsummary-internal.d.ts +1 -3
- package/dist/components/ValidationSummary/validationsummary-internal.js +1 -2
- package/dist/components/Wrapper/Wrapper.d.ts +0 -2
- package/dist/components/Wrapper/Wrapper.js +1 -2
- package/dist/components/Wrapper/index.js +1 -2
- package/dist/components/icons/AccountCircleFilledIcon.d.ts +0 -2
- package/dist/components/icons/AccountCircleFilledIcon.js +1 -2
- package/dist/components/icons/AccountCircleIcon.d.ts +0 -2
- package/dist/components/icons/AccountCircleIcon.js +1 -2
- package/dist/components/icons/AccountFilledIcon.d.ts +0 -2
- package/dist/components/icons/AccountFilledIcon.js +1 -2
- package/dist/components/icons/AccountIcon.d.ts +0 -2
- package/dist/components/icons/AccountIcon.js +1 -2
- package/dist/components/icons/AddIcon.d.ts +0 -2
- package/dist/components/icons/AddIcon.js +1 -2
- package/dist/components/icons/AppsFilledIcon.d.ts +0 -2
- package/dist/components/icons/AppsFilledIcon.js +1 -2
- package/dist/components/icons/AppsIcon.d.ts +0 -2
- package/dist/components/icons/AppsIcon.js +1 -2
- package/dist/components/icons/ArrowDownIcon.d.ts +0 -2
- package/dist/components/icons/ArrowDownIcon.js +1 -2
- package/dist/components/icons/ArrowLeftIcon.d.ts +0 -2
- package/dist/components/icons/ArrowLeftIcon.js +1 -2
- package/dist/components/icons/ArrowRightIcon.d.ts +0 -2
- package/dist/components/icons/ArrowRightIcon.js +1 -2
- package/dist/components/icons/ArrowUpIcon.d.ts +0 -2
- package/dist/components/icons/ArrowUpIcon.js +1 -2
- package/dist/components/icons/BackspaceFilledIcon.d.ts +0 -2
- package/dist/components/icons/BackspaceFilledIcon.js +1 -2
- package/dist/components/icons/BackspaceIcon.d.ts +0 -2
- package/dist/components/icons/BackspaceIcon.js +1 -2
- package/dist/components/icons/BasketFilledIcon.d.ts +0 -2
- package/dist/components/icons/BasketFilledIcon.js +1 -2
- package/dist/components/icons/BasketIcon.d.ts +0 -2
- package/dist/components/icons/BasketIcon.js +1 -2
- package/dist/components/icons/BellFilledIcon.d.ts +0 -2
- package/dist/components/icons/BellFilledIcon.js +1 -2
- package/dist/components/icons/BellIcon.d.ts +0 -2
- package/dist/components/icons/BellIcon.js +1 -2
- package/dist/components/icons/BroomIcon.d.ts +0 -2
- package/dist/components/icons/BroomIcon.js +1 -2
- package/dist/components/icons/CalendarFilledIcon.d.ts +0 -2
- package/dist/components/icons/CalendarFilledIcon.js +1 -2
- package/dist/components/icons/CalendarIcon.d.ts +0 -2
- package/dist/components/icons/CalendarIcon.js +1 -2
- package/dist/components/icons/CashFilledIcon.d.ts +0 -2
- package/dist/components/icons/CashFilledIcon.js +1 -2
- package/dist/components/icons/CashIcon.d.ts +0 -2
- package/dist/components/icons/CashIcon.js +1 -2
- package/dist/components/icons/ChevronDownIcon.d.ts +0 -2
- package/dist/components/icons/ChevronDownIcon.js +1 -2
- package/dist/components/icons/ChevronLeftIcon.d.ts +0 -2
- package/dist/components/icons/ChevronLeftIcon.js +1 -2
- package/dist/components/icons/ChevronRightIcon.d.ts +0 -2
- package/dist/components/icons/ChevronRightIcon.js +1 -2
- package/dist/components/icons/ChevronUpIcon.d.ts +0 -2
- package/dist/components/icons/ChevronUpIcon.js +1 -2
- package/dist/components/icons/CircleBurgerFilledIcon.d.ts +0 -2
- package/dist/components/icons/CircleBurgerFilledIcon.js +1 -2
- package/dist/components/icons/CircleBurgerIcon.d.ts +0 -2
- package/dist/components/icons/CircleBurgerIcon.js +1 -2
- package/dist/components/icons/ClipboardFilledIcon.d.ts +0 -2
- package/dist/components/icons/ClipboardFilledIcon.js +1 -2
- package/dist/components/icons/ClipboardIcon.d.ts +0 -2
- package/dist/components/icons/ClipboardIcon.js +1 -2
- package/dist/components/icons/ClockFilledIcon.d.ts +0 -2
- package/dist/components/icons/ClockFilledIcon.js +1 -2
- package/dist/components/icons/ClockIcon.d.ts +0 -2
- package/dist/components/icons/ClockIcon.js +1 -2
- package/dist/components/icons/CloseAltFilledIcon.d.ts +0 -2
- package/dist/components/icons/CloseAltFilledIcon.js +1 -2
- package/dist/components/icons/CloseAltIcon.d.ts +0 -2
- package/dist/components/icons/CloseAltIcon.js +1 -2
- package/dist/components/icons/CogIcon.d.ts +0 -2
- package/dist/components/icons/CogIcon.js +1 -2
- package/dist/components/icons/CommunityFilledIcon.d.ts +0 -2
- package/dist/components/icons/CommunityFilledIcon.js +1 -2
- package/dist/components/icons/CommunityIcon.d.ts +0 -2
- package/dist/components/icons/CommunityIcon.js +1 -2
- package/dist/components/icons/ComputerIcon.d.ts +0 -2
- package/dist/components/icons/ComputerIcon.js +1 -2
- package/dist/components/icons/ContactFilledIcon.d.ts +0 -2
- package/dist/components/icons/ContactFilledIcon.js +1 -2
- package/dist/components/icons/ContactIcon.d.ts +0 -2
- package/dist/components/icons/ContactIcon.js +1 -2
- package/dist/components/icons/ContactlessFilledIcon.d.ts +0 -2
- package/dist/components/icons/ContactlessFilledIcon.js +1 -2
- package/dist/components/icons/ContactlessIcon.d.ts +0 -2
- package/dist/components/icons/ContactlessIcon.js +1 -2
- package/dist/components/icons/CoopLiveIcon.d.ts +0 -2
- package/dist/components/icons/CoopLiveIcon.js +1 -2
- package/dist/components/icons/CoopLocationFilledIcon.d.ts +0 -2
- package/dist/components/icons/CoopLocationFilledIcon.js +1 -2
- package/dist/components/icons/CoopLogoIcon.d.ts +0 -2
- package/dist/components/icons/CoopLogoIcon.js +1 -2
- package/dist/components/icons/CoopMembershipCardFilledIcon.d.ts +0 -2
- package/dist/components/icons/CoopMembershipCardFilledIcon.js +1 -2
- package/dist/components/icons/CreditCardFilledIcon.d.ts +0 -2
- package/dist/components/icons/CreditCardFilledIcon.js +1 -2
- package/dist/components/icons/CreditCardIcon.d.ts +0 -2
- package/dist/components/icons/CreditCardIcon.js +1 -2
- package/dist/components/icons/CrossIcon.d.ts +0 -2
- package/dist/components/icons/CrossIcon.js +1 -2
- package/dist/components/icons/DocumentIcon.d.ts +0 -2
- package/dist/components/icons/DocumentIcon.js +1 -2
- package/dist/components/icons/DownloadIcon.d.ts +0 -2
- package/dist/components/icons/DownloadIcon.js +1 -2
- package/dist/components/icons/EnterStoreIcon.d.ts +0 -2
- package/dist/components/icons/EnterStoreIcon.js +1 -2
- package/dist/components/icons/ExitStoreIcon.d.ts +0 -2
- package/dist/components/icons/ExitStoreIcon.js +1 -2
- package/dist/components/icons/EyeFilledIcon.d.ts +0 -2
- package/dist/components/icons/EyeFilledIcon.js +1 -2
- package/dist/components/icons/EyeIcon.d.ts +0 -2
- package/dist/components/icons/EyeIcon.js +1 -2
- package/dist/components/icons/EyeStrikeFilledIcon.d.ts +0 -2
- package/dist/components/icons/EyeStrikeFilledIcon.js +1 -2
- package/dist/components/icons/EyeStrikeIcon.d.ts +0 -2
- package/dist/components/icons/EyeStrikeIcon.js +1 -2
- package/dist/components/icons/FeedbackFilledIcon.d.ts +0 -2
- package/dist/components/icons/FeedbackFilledIcon.js +1 -2
- package/dist/components/icons/FeedbackIcon.d.ts +0 -2
- package/dist/components/icons/FeedbackIcon.js +1 -2
- package/dist/components/icons/FilterIcon.d.ts +0 -2
- package/dist/components/icons/FilterIcon.js +1 -2
- package/dist/components/icons/GiftCardFilledIcon.d.ts +0 -2
- package/dist/components/icons/GiftCardFilledIcon.js +1 -2
- package/dist/components/icons/GiftCardIcon.d.ts +0 -2
- package/dist/components/icons/GiftCardIcon.js +1 -2
- package/dist/components/icons/GiftFilledIcon.d.ts +0 -2
- package/dist/components/icons/GiftFilledIcon.js +1 -2
- package/dist/components/icons/GiftIcon.d.ts +0 -2
- package/dist/components/icons/GiftIcon.js +1 -2
- package/dist/components/icons/HelpFilledIcon.d.ts +0 -2
- package/dist/components/icons/HelpFilledIcon.js +1 -2
- package/dist/components/icons/HelpIcon.d.ts +0 -2
- package/dist/components/icons/HelpIcon.js +1 -2
- package/dist/components/icons/HomeFilledIcon.d.ts +0 -2
- package/dist/components/icons/HomeFilledIcon.js +1 -2
- package/dist/components/icons/HomeIcon.d.ts +0 -2
- package/dist/components/icons/HomeIcon.js +1 -2
- package/dist/components/icons/HowDoIAssistantIcon.d.ts +0 -2
- package/dist/components/icons/HowDoIAssistantIcon.js +1 -2
- package/dist/components/icons/InfoIcon.d.ts +0 -2
- package/dist/components/icons/InfoIcon.js +1 -2
- package/dist/components/icons/KebabIcon.d.ts +0 -2
- package/dist/components/icons/KebabIcon.js +1 -2
- package/dist/components/icons/LoadingIcon.d.ts +0 -2
- package/dist/components/icons/LoadingIcon.js +1 -2
- package/dist/components/icons/LocationFilledIcon.d.ts +0 -2
- package/dist/components/icons/LocationFilledIcon.js +1 -2
- package/dist/components/icons/LocationIcon.d.ts +0 -2
- package/dist/components/icons/LocationIcon.js +1 -2
- package/dist/components/icons/LogoutIcon.d.ts +0 -2
- package/dist/components/icons/LogoutIcon.js +1 -2
- package/dist/components/icons/MailIcon.d.ts +0 -2
- package/dist/components/icons/MailIcon.js +1 -2
- package/dist/components/icons/MenuIcon.d.ts +0 -2
- package/dist/components/icons/MenuIcon.js +1 -2
- package/dist/components/icons/MessageIcon.d.ts +0 -2
- package/dist/components/icons/MessageIcon.js +1 -2
- package/dist/components/icons/MinusIcon.d.ts +0 -2
- package/dist/components/icons/MinusIcon.js +1 -2
- package/dist/components/icons/NotesFilledIcon.d.ts +0 -2
- package/dist/components/icons/NotesFilledIcon.js +1 -2
- package/dist/components/icons/NotesIcon.d.ts +0 -2
- package/dist/components/icons/NotesIcon.js +1 -2
- package/dist/components/icons/OpenNewIcon.d.ts +0 -2
- package/dist/components/icons/OpenNewIcon.js +1 -2
- package/dist/components/icons/OwnBagIcon.d.ts +0 -2
- package/dist/components/icons/OwnBagIcon.js +1 -2
- package/dist/components/icons/PadlockIcon.d.ts +0 -2
- package/dist/components/icons/PadlockIcon.js +1 -2
- package/dist/components/icons/PencilIcon.d.ts +0 -2
- package/dist/components/icons/PencilIcon.js +1 -2
- package/dist/components/icons/PhoneIcon.d.ts +0 -2
- package/dist/components/icons/PhoneIcon.js +1 -2
- package/dist/components/icons/PowerIcon.d.ts +0 -2
- package/dist/components/icons/PowerIcon.js +1 -2
- package/dist/components/icons/SaveFilledIcon.d.ts +0 -2
- package/dist/components/icons/SaveFilledIcon.js +1 -2
- package/dist/components/icons/SaveIcon.d.ts +0 -2
- package/dist/components/icons/SaveIcon.js +1 -2
- package/dist/components/icons/ScooterIcon.d.ts +0 -2
- package/dist/components/icons/ScooterIcon.js +1 -2
- package/dist/components/icons/SearchFilledIcon.d.ts +0 -2
- package/dist/components/icons/SearchFilledIcon.js +1 -2
- package/dist/components/icons/SearchIcon.d.ts +0 -2
- package/dist/components/icons/SearchIcon.js +1 -2
- package/dist/components/icons/SendIcon.d.ts +0 -2
- package/dist/components/icons/SendIcon.js +1 -2
- package/dist/components/icons/SpannerIcon.d.ts +0 -2
- package/dist/components/icons/SpannerIcon.js +1 -2
- package/dist/components/icons/StarFilledIcon.d.ts +0 -2
- package/dist/components/icons/StarFilledIcon.js +1 -2
- package/dist/components/icons/StarIcon.d.ts +0 -2
- package/dist/components/icons/StarIcon.js +1 -2
- package/dist/components/icons/TickAltFilledIcon.d.ts +0 -2
- package/dist/components/icons/TickAltFilledIcon.js +1 -2
- package/dist/components/icons/TickAltIcon.d.ts +0 -2
- package/dist/components/icons/TickAltIcon.js +1 -2
- package/dist/components/icons/TickIcon.d.ts +0 -2
- package/dist/components/icons/TickIcon.js +1 -2
- package/dist/components/icons/TruckIcon.d.ts +0 -2
- package/dist/components/icons/TruckIcon.js +1 -2
- package/dist/components/icons/UserWipeIcon.d.ts +0 -2
- package/dist/components/icons/UserWipeIcon.js +1 -2
- package/dist/components/icons/VoucherFilledIcon.d.ts +0 -2
- package/dist/components/icons/VoucherFilledIcon.js +1 -2
- package/dist/components/icons/VoucherIcon.d.ts +0 -2
- package/dist/components/icons/VoucherIcon.js +1 -2
- package/dist/components/icons/WarningCircleFilledIcon.d.ts +0 -2
- package/dist/components/icons/WarningCircleFilledIcon.js +1 -2
- package/dist/components/icons/WarningCircleIcon.d.ts +0 -2
- package/dist/components/icons/WarningCircleIcon.js +1 -2
- package/dist/components/icons/WarningFilledIcon.d.ts +0 -2
- package/dist/components/icons/WarningFilledIcon.js +1 -2
- package/dist/components/icons/WarningIcon.d.ts +0 -2
- package/dist/components/icons/WarningIcon.js +1 -2
- package/dist/components/icons/WifiIcon.d.ts +0 -2
- package/dist/components/icons/WifiIcon.js +1 -2
- package/dist/components/icons/WriteIcon.d.ts +0 -2
- package/dist/components/icons/WriteIcon.js +1 -2
- package/dist/hooks/useDebounce.d.ts +1 -3
- package/dist/hooks/useDebounce.js +1 -2
- package/dist/hooks/useFormReset.d.ts +0 -2
- package/dist/hooks/useFormReset.js +1 -2
- package/dist/hooks/useId.d.ts +1 -3
- package/dist/hooks/useId.js +1 -2
- package/dist/hooks/useSlots.d.ts +0 -2
- package/dist/hooks/useSlots.js +1 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/types/colors.d.ts +1 -3
- package/dist/types/index.d.ts +1 -3
- package/dist/types/index.js +1 -2
- package/dist/utils/classes.d.ts +1 -3
- package/dist/utils/classes.js +1 -2
- package/dist/utils/slots.d.ts +1 -3
- package/dist/utils/slots.js +1 -2
- package/dist/validations/date-internal.d.ts +4 -0
- package/dist/{components/DateInput/dateinput-internal.js → validations/date-internal.js} +4 -5
- package/dist/validations/date.d.ts +58 -0
- package/dist/validations/date.js +79 -0
- package/dist/validations/index.d.ts +2 -0
- package/dist/validations/index.js +1 -0
- package/package.json +18 -12
- package/src/components/Button/Button.tsx +2 -2
- package/src/components/DateInput/DateInput.context.ts +2 -1
- package/src/components/DateInput/DateInput.tsx +4 -7
- package/src/components/DateInput/dateinput-utils.ts +1 -183
- package/src/index.ts +1 -0
- package/src/{components/DateInput/dateinput-internal.ts → validations/date-internal.ts} +15 -24
- package/src/validations/date.ts +177 -0
- package/src/validations/index.ts +1 -0
- package/dist/components/DateInput/dateinput-internal.d.ts +0 -6
|
@@ -5,7 +5,7 @@ import clsx from "clsx";
|
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { createContext, useContext, useEffect, useRef } from "react";
|
|
7
7
|
import mergeRefs from "merge-refs";
|
|
8
|
-
|
|
8
|
+
// src/components/Dialog/Dialog.tsx
|
|
9
9
|
const DialogContext = createContext({ ref: null });
|
|
10
10
|
const useDialog = () => {
|
|
11
11
|
const ctx = useContext(DialogContext);
|
|
@@ -112,5 +112,4 @@ DialogHeader.slot = { name: "DialogHeader" };
|
|
|
112
112
|
DialogBody.slot = { name: "DialogBody" };
|
|
113
113
|
Dialog.Header = DialogHeader;
|
|
114
114
|
Dialog.Body = DialogBody;
|
|
115
|
-
//#endregion
|
|
116
115
|
export { Dialog, Dialog as default, DialogBody, DialogHeader };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DetailsHTMLAttributes, HTMLAttributes, JSX, Ref } from "react";
|
|
2
|
-
//#region src/components/Expandable/Expandable.d.ts
|
|
3
2
|
export interface ExpandableProps extends DetailsHTMLAttributes<HTMLDetailsElement> {
|
|
4
3
|
/** Content inside the component.
|
|
5
4
|
*
|
|
@@ -52,5 +51,4 @@ declare const ExpandableContent: {
|
|
|
52
51
|
name: string;
|
|
53
52
|
};
|
|
54
53
|
};
|
|
55
|
-
//#endregion
|
|
56
54
|
export { Expandable, Expandable as default, ExpandableContent, ExpandableSummary };
|
|
@@ -3,7 +3,7 @@ import { hasUserBg } from "../../utils/classes.js";
|
|
|
3
3
|
import { useSlots } from "../../hooks/useSlots.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/Expandable/Expandable.tsx
|
|
7
7
|
const componentSlots = {
|
|
8
8
|
ExpandableContent: null,
|
|
9
9
|
ExpandableSummary: null
|
|
@@ -42,5 +42,4 @@ ExpandableSummary.slot = { name: "ExpandableSummary" };
|
|
|
42
42
|
ExpandableContent.slot = { name: "ExpandableContent" };
|
|
43
43
|
Expandable.Summary = ExpandableSummary;
|
|
44
44
|
Expandable.Content = ExpandableContent;
|
|
45
|
-
//#endregion
|
|
46
45
|
export { Expandable, Expandable as default, ExpandableContent, ExpandableSummary };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Expandable, ExpandableContent, ExpandableSummary } from "./Expandable.js";
|
|
2
|
-
|
|
2
|
+
// src/components/Expandable/index.ts
|
|
3
3
|
var Expandable_default = Expandable;
|
|
4
|
-
//#endregion
|
|
5
4
|
export { Expandable, ExpandableContent, ExpandableSummary, Expandable_default as default };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { joinIds } from "../FieldMarkers/fieldmarkers-internal.js";
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
|
-
|
|
4
|
+
// src/components/Field/Field.context.ts
|
|
5
5
|
const FieldContext = createContext(null);
|
|
6
6
|
const useField = () => useContext(FieldContext);
|
|
7
7
|
const getDescribedBy = (describedBy, field) => joinIds(field?.describedBy, describedBy);
|
|
8
8
|
const getFieldError = (error, field) => error ?? field?.error ?? false;
|
|
9
|
-
//#endregion
|
|
10
9
|
export { FieldContext, getDescribedBy, getFieldError, useField };
|
|
@@ -2,7 +2,6 @@ import { ErrorProps } from "../FieldMarkers/Error.js";
|
|
|
2
2
|
import { HintProps } from "../FieldMarkers/Hint.js";
|
|
3
3
|
import { LabelProps } from "../FieldMarkers/Label.js";
|
|
4
4
|
import React, { HTMLAttributes, JSX, Ref } from "react";
|
|
5
|
-
//#region src/components/Field/Field.d.ts
|
|
6
5
|
interface FieldProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
6
|
/** Specify whether the Field should render inside a box. */
|
|
8
7
|
boxed?: boolean;
|
|
@@ -61,5 +60,4 @@ declare const FieldError: {
|
|
|
61
60
|
name: string;
|
|
62
61
|
};
|
|
63
62
|
};
|
|
64
|
-
//#endregion
|
|
65
63
|
export { Field, Field as default, FieldError, FieldHint, FieldLabel };
|
|
@@ -10,7 +10,7 @@ import { useFieldset } from "../Fieldset/Fieldset.context.js";
|
|
|
10
10
|
import clsx from "clsx";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
12
|
import "react";
|
|
13
|
-
|
|
13
|
+
// src/components/Field/Field.tsx
|
|
14
14
|
const Field = ({ boxed = false, children, className, error: errorProp, hideErrorBar = false, ref, ...props }) => {
|
|
15
15
|
const internalId = useId$1();
|
|
16
16
|
const fieldset = useFieldset();
|
|
@@ -74,5 +74,4 @@ FieldError.slot = { name: "FieldError" };
|
|
|
74
74
|
Field.Label = FieldLabel;
|
|
75
75
|
Field.Hint = FieldHint;
|
|
76
76
|
Field.Error = FieldError;
|
|
77
|
-
//#endregion
|
|
78
77
|
export { Field, Field as default, FieldError, FieldHint, FieldLabel };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Field, FieldError, FieldHint, FieldLabel } from "./Field.js";
|
|
2
|
-
|
|
2
|
+
// src/components/Field/index.ts
|
|
3
3
|
var Field_default = Field;
|
|
4
|
-
//#endregion
|
|
5
4
|
export { Field, FieldError, FieldHint, FieldLabel, Field_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, JSX, ReactNode, Ref } from "react";
|
|
2
|
-
//#region src/components/FieldMarkers/Error.d.ts
|
|
3
2
|
export interface ErrorProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
3
|
/** Content inside the component. */
|
|
5
4
|
children?: ReactNode;
|
|
@@ -7,5 +6,4 @@ export interface ErrorProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
7
6
|
className?: string;
|
|
8
7
|
/** Specify a custom React ref for this component. */
|
|
9
8
|
ref?: Ref<HTMLSpanElement>;
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/FieldMarkers/Error.tsx
|
|
4
4
|
const Error = ({ children, className, ref, ...props }) => {
|
|
5
5
|
const componentProps = {
|
|
6
6
|
className: clsx("coop-field-error ", className),
|
|
@@ -19,5 +19,4 @@ const Error = ({ children, className, ref, ...props }) => {
|
|
|
19
19
|
]
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { Error, Error as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, JSX, ReactNode, Ref } from "react";
|
|
2
|
-
//#region src/components/FieldMarkers/Hint.d.ts
|
|
3
2
|
export interface HintProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
/** Content inside the component. */
|
|
5
4
|
children?: ReactNode;
|
|
@@ -7,5 +6,4 @@ export interface HintProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
7
6
|
className?: string;
|
|
8
7
|
/** Specify a custom React ref for this component. */
|
|
9
8
|
ref?: Ref<HTMLDivElement>;
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/FieldMarkers/Hint.tsx
|
|
4
4
|
const Hint = ({ children, className, ref, ...props }) => {
|
|
5
5
|
const componentProps = {
|
|
6
6
|
className: clsx("coop-field-hint ", className),
|
|
@@ -12,5 +12,4 @@ const Hint = ({ children, className, ref, ...props }) => {
|
|
|
12
12
|
children
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { Hint, Hint as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX, LabelHTMLAttributes, Ref } from "react";
|
|
2
|
-
//#region src/components/FieldMarkers/Label.d.ts
|
|
3
2
|
export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
4
3
|
/** Content inside the component. */
|
|
5
4
|
children?: React.ReactNode;
|
|
@@ -9,5 +8,4 @@ export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
|
9
8
|
isVisible?: boolean;
|
|
10
9
|
/** Specify a custom React ref for this component. */
|
|
11
10
|
ref?: Ref<HTMLLabelElement>;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
11
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/FieldMarkers/Label.tsx
|
|
4
4
|
const Label = ({ children, className, isVisible = true, ref, ...props }) => {
|
|
5
5
|
const componentProps = {
|
|
6
6
|
className: clsx("coop-field-label", !isVisible && "sr-only", className),
|
|
@@ -12,5 +12,4 @@ const Label = ({ children, className, isVisible = true, ref, ...props }) => {
|
|
|
12
12
|
children: /* @__PURE__ */ jsx("span", { children })
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { Label, Label as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, JSX, Ref } from "react";
|
|
2
|
-
//#region src/components/FieldMarkers/Legend.d.ts
|
|
3
2
|
export interface LegendProps extends HTMLAttributes<HTMLLegendElement> {
|
|
4
3
|
/** Content inside the component. */
|
|
5
4
|
children?: React.ReactNode;
|
|
@@ -9,5 +8,4 @@ export interface LegendProps extends HTMLAttributes<HTMLLegendElement> {
|
|
|
9
8
|
isVisible?: boolean;
|
|
10
9
|
/** Specify a custom React ref for this component. */
|
|
11
10
|
ref?: Ref<HTMLLegendElement>;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
11
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/FieldMarkers/Legend.tsx
|
|
4
4
|
const Legend = ({ children, className, isVisible = true, ref, ...props }) => {
|
|
5
5
|
const componentProps = {
|
|
6
6
|
"aria-hidden": true,
|
|
@@ -16,5 +16,4 @@ const Legend = ({ children, className, isVisible = true, ref, ...props }) => {
|
|
|
16
16
|
children
|
|
17
17
|
})] });
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { Legend, Legend as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/FieldMarkers/fieldmarkers-internal.ts
|
|
2
2
|
const joinIds = (...ids) => ids.filter(Boolean).join(" ") || void 0;
|
|
3
3
|
const getMarkerIds = (markers, baseId) => {
|
|
4
4
|
const hintId = markers.hint?.id ?? `${baseId}_hint`;
|
|
@@ -9,5 +9,4 @@ const getMarkerIds = (markers, baseId) => {
|
|
|
9
9
|
hintId
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
//#endregion
|
|
13
12
|
export { getMarkerIds, joinIds };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
|
-
|
|
3
|
+
// src/components/Fieldset/Fieldset.context.ts
|
|
4
4
|
const FieldsetContext = createContext(null);
|
|
5
5
|
const useFieldset = () => useContext(FieldsetContext);
|
|
6
|
-
//#endregion
|
|
7
6
|
export { FieldsetContext, useFieldset };
|
|
@@ -2,7 +2,6 @@ import { ErrorProps } from "../FieldMarkers/Error.js";
|
|
|
2
2
|
import { HintProps } from "../FieldMarkers/Hint.js";
|
|
3
3
|
import { LegendProps } from "../FieldMarkers/Legend.js";
|
|
4
4
|
import { FieldsetHTMLAttributes, HTMLAttributes, JSX, Ref } from "react";
|
|
5
|
-
//#region src/components/Fieldset/Fieldset.d.ts
|
|
6
5
|
export interface FieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
|
7
6
|
/** Content inside the component.
|
|
8
7
|
*
|
|
@@ -83,5 +82,4 @@ declare const FieldsetError: {
|
|
|
83
82
|
name: string;
|
|
84
83
|
};
|
|
85
84
|
};
|
|
86
|
-
//#endregion
|
|
87
85
|
export { Fieldset, Fieldset as default, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend };
|
|
@@ -8,7 +8,7 @@ import { FieldsetContext, useFieldset } from "./Fieldset.context.js";
|
|
|
8
8
|
import { Legend } from "../FieldMarkers/Legend.js";
|
|
9
9
|
import clsx from "clsx";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
|
-
|
|
11
|
+
// src/components/Fieldset/Fieldset.tsx
|
|
12
12
|
const Fieldset = ({ "aria-describedby": ariaDescribedBy, children, className, disabled, error = false, group = false, hideErrorBar = false, id, ref, ...props }) => {
|
|
13
13
|
const uid = useId(id);
|
|
14
14
|
const markers = {};
|
|
@@ -69,5 +69,4 @@ Fieldset.Error = FieldsetError;
|
|
|
69
69
|
Fieldset.Fields = FieldsetFields;
|
|
70
70
|
Fieldset.Hint = FieldsetHint;
|
|
71
71
|
Fieldset.Legend = FieldsetLegend;
|
|
72
|
-
//#endregion
|
|
73
72
|
export { Fieldset, Fieldset as default, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Fieldset, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend } from "./Fieldset.js";
|
|
2
|
-
|
|
2
|
+
// src/components/Fieldset/index.ts
|
|
3
3
|
var Fieldset_default = Fieldset;
|
|
4
|
-
//#endregion
|
|
5
4
|
export { Fieldset, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend, Fieldset_default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Black, BrandBlue, Darks, Lights, OfferRed, Tints, White } from "../../types/colors.js";
|
|
2
2
|
import { JSX, ReactNode, Ref, SVGProps } from "react";
|
|
3
|
-
//#region src/components/Flourish/Flourish.d.ts
|
|
4
3
|
export interface FlourishProps extends SVGProps<SVGSVGElement> {
|
|
5
4
|
/** Content inside the component. */
|
|
6
5
|
children?: ReactNode;
|
|
@@ -17,5 +16,4 @@ declare const Flourish: {
|
|
|
17
16
|
name: string;
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
|
-
//#endregion
|
|
21
19
|
export { Flourish, Flourish as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/Flourish/Flourish.tsx
|
|
4
4
|
const Flourish = ({ children, className, fill = "brand-blue", ref, ...props }) => {
|
|
5
5
|
const componentProps = {
|
|
6
6
|
className: clsx("coop-flourish", className),
|
|
@@ -18,5 +18,4 @@ const Flourish = ({ children, className, fill = "brand-blue", ref, ...props }) =
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
Flourish.slot = { name: "Flourish" };
|
|
21
|
-
//#endregion
|
|
22
21
|
export { Flourish, Flourish as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StandardSizes } from "../../types/index.js";
|
|
2
2
|
import { FormHTMLAttributes, JSX, ReactNode, Ref } from "react";
|
|
3
|
-
//#region src/components/Form/Form.d.ts
|
|
4
3
|
export interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
5
4
|
/** Content inside the component. */
|
|
6
5
|
children?: ReactNode;
|
|
@@ -20,5 +19,4 @@ declare const Form: {
|
|
|
20
19
|
name: string;
|
|
21
20
|
};
|
|
22
21
|
};
|
|
23
|
-
//#endregion
|
|
24
22
|
export { Form, Form as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/Form/Form.tsx
|
|
4
4
|
const Form = ({ children, className, ref, spacing, ...props }) => {
|
|
5
5
|
const componentProps = {
|
|
6
6
|
className: clsx("coop-form", className),
|
|
@@ -14,5 +14,4 @@ const Form = ({ children, className, ref, spacing, ...props }) => {
|
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
Form.slot = { name: "Form" };
|
|
17
|
-
//#endregion
|
|
18
17
|
export { Form, Form as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ImgHTMLAttributes, JSX, Ref } from "react";
|
|
2
|
-
//#region src/components/Image/Image.d.ts
|
|
3
2
|
export interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
4
3
|
/** Specify text to describe the Image. */
|
|
5
4
|
alt: string;
|
|
@@ -14,5 +13,4 @@ declare const Image: {
|
|
|
14
13
|
name: string;
|
|
15
14
|
};
|
|
16
15
|
};
|
|
17
|
-
//#endregion
|
|
18
16
|
export { Image, Image as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
// src/components/Image/Image.tsx
|
|
3
3
|
const getContentfulParams = ({ height, src, width }) => {
|
|
4
4
|
width = width.toString();
|
|
5
5
|
height = height ? height?.toString() : void 0;
|
|
@@ -44,5 +44,4 @@ const Image = ({ alt, height, ref, src, width = "640", ...props }) => {
|
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
Image.slot = { name: "Image" };
|
|
47
|
-
//#endregion
|
|
48
47
|
export { Image, Image as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX, Ref, SVGProps } from "react";
|
|
2
|
-
//#region src/components/LoadingSpinner/LoadingSpinner.d.ts
|
|
3
2
|
export interface LoadingSpinnerProps extends SVGProps<SVGSVGElement> {
|
|
4
3
|
/** Specify additional CSS classes. */
|
|
5
4
|
className?: string;
|
|
@@ -7,5 +6,4 @@ export interface LoadingSpinnerProps extends SVGProps<SVGSVGElement> {
|
|
|
7
6
|
ref?: Ref<SVGSVGElement>;
|
|
8
7
|
}
|
|
9
8
|
export declare const LoadingSpinner: ({ className, ref, stroke, strokeWidth, ...props }: LoadingSpinnerProps) => JSX.Element;
|
|
10
|
-
//#endregion
|
|
11
9
|
export { LoadingSpinner as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LoadingIcon } from "../icons/LoadingIcon.js";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/LoadingSpinner/LoadingSpinner.tsx
|
|
5
5
|
const LoadingSpinner = ({ className, ref, stroke = "currentColor", strokeWidth = "1px", ...props }) => {
|
|
6
6
|
const componentProps = {
|
|
7
7
|
className: clsx("coop-loading-spinner", className),
|
|
@@ -14,5 +14,4 @@ const LoadingSpinner = ({ className, ref, stroke = "currentColor", strokeWidth =
|
|
|
14
14
|
ref
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { LoadingSpinner, LoadingSpinner as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LoadingSpinner } from "./LoadingSpinner.js";
|
|
2
|
-
|
|
2
|
+
// src/components/LoadingSpinner/index.ts
|
|
3
3
|
var LoadingSpinner_default = LoadingSpinner;
|
|
4
|
-
//#endregion
|
|
5
4
|
export { LoadingSpinner, LoadingSpinner_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX, SVGProps } from "react";
|
|
2
|
-
//#region src/components/Logo/Logo.d.ts
|
|
3
2
|
export interface LogoProps extends SVGProps<SVGSVGElement> {
|
|
4
3
|
/** Specify alternative text for the Logo.
|
|
5
4
|
*
|
|
@@ -14,5 +13,4 @@ export interface LogoProps extends SVGProps<SVGSVGElement> {
|
|
|
14
13
|
fill?: "white" | "black" | "brand-blue";
|
|
15
14
|
}
|
|
16
15
|
export declare const Logo: ({ alt, className, fill, height, id, ref, width, ...props }: LogoProps) => JSX.Element;
|
|
17
|
-
//#endregion
|
|
18
16
|
export { Logo as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/Logo/Logo.tsx
|
|
4
4
|
const Logo = ({ alt = "Co-op", className, fill = "brand-blue", height, id, ref, width, ...props }) => {
|
|
5
5
|
const componentProps = {
|
|
6
6
|
alt,
|
|
@@ -19,5 +19,4 @@ const Logo = ({ alt = "Co-op", className, fill = "brand-blue", height, id, ref,
|
|
|
19
19
|
children: [/* @__PURE__ */ jsx("title", { children: alt }), /* @__PURE__ */ jsx("path", { d: "M37.8 8.8c0-1.4-.2-2.8-.6-4.2-.5-1.7-1.8-3-3.4-3.7a14.9 14.9 0 0 0-10.2 0c-1.7.6-2.9 2-3.4 3.7-.8 2.8-.8 5.7 0 8.5.5 1.7 1.8 3 3.4 3.7 1.6.6 3.4.9 5.1.8 1.7 0 3.5-.3 5.1-.8 1.7-.6 2.9-2 3.4-3.7.4-1.5.6-2.9.6-4.3zm-5.5 0c0 .7-.1 1.4-.3 2-.3.9-1 1.6-2 1.8-.9.2-1.8.2-2.6 0-.9-.2-1.7-.8-2-1.8-.4-1.3-.4-2.8 0-4.1.3-.9 1-1.6 2-1.8.9-.2 1.8-.2 2.6 0 .9.2 1.7.8 2 1.8.2.7.3 1.4.3 2.1m-14.6 23c.8-2.8.8-5.7 0-8.5-.5-1.7-1.8-3-3.4-3.7a14.9 14.9 0 0 0-10.2 0c-1.7.6-2.9 2-3.4 3.7-.8 2.8-.8 5.7 0 8.5.5 1.7 1.8 3 3.4 3.7 3.3 1.2 6.9 1.2 10.2 0 1.6-.6 2.9-2 3.4-3.7m-4.9-4.2c0 .7-.1 1.4-.3 2-.3.9-1 1.6-2 1.8-.9.2-1.8.2-2.6 0-.9-.2-1.7-.8-2-1.8-.4-1.4-.4-2.8 0-4.1.3-.9 1-1.6 2-1.8.9-.2 1.8-.2 2.6 0 .9.2 1.7.8 2 1.8.2.7.3 1.4.3 2.1m0-18.9h5.5c0-1.4-.2-2.8-.6-4.2-.5-1.7-1.8-3-3.4-3.7C11-.3 7.4-.3 4.1.9c-1.7.6-2.9 2-3.4 3.7-.8 2.8-.8 5.7 0 8.5.5 1.7 1.8 3 3.4 3.7 1.6.6 3.4.8 5.1.8s3.5-.3 5.1-.8c1.7-.6 2.9-2 3.4-3.7.1-.2.1-.5.2-.7L12.7 10c-.1.3-.1.6-.2.9-.3.9-1 1.6-2 1.8-.9.2-1.8.2-2.6 0-.9-.2-1.7-.8-2-1.8-.4-1.4-.4-2.9 0-4.2.3-.9 1-1.6 2-1.8.9-.2 1.8-.2 2.6 0 .9.2 1.7.8 2 1.8.2.7.3 1.3.3 2m7.4 14.6c-.4 1.4-.6 2.8-.6 4.2V40h5.5V27.6c0-.7.1-1.4.3-2 .3-.9 1-1.6 2-1.8.9-.2 1.8-.2 2.6 0 .9.2 1.7.8 2 1.8.4 1.4.4 2.8 0 4.1-.3.9-1 1.6-1.9 1.8-.9.2-1.8.2-2.6 0-.2-.1-.4-.1-.5-.2l1.9 5.1c1.7 0 3.5-.3 5.1-.8 1.7-.6 2.9-2 3.4-3.7.8-2.8.8-5.7 0-8.5-.5-1.7-1.8-3-3.4-3.7a14.9 14.9 0 0 0-10.2 0c-1.9.6-3.1 2-3.6 3.6" })]
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { Logo, Logo as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TextInputProps } from "../TextInput/TextInput.js";
|
|
2
2
|
import "../TextInput/index.js";
|
|
3
3
|
import { JSX } from "react";
|
|
4
|
-
//#region src/components/PasswordInput/PasswordInput.d.ts
|
|
5
4
|
export interface PasswordInputProps extends Omit<TextInputProps, "prefix" | "prefixInline" | "suffix" | "suffixInline" | "type"> {
|
|
6
5
|
/**
|
|
7
6
|
* Specify if the show/hide toggle button should be shown.
|
|
@@ -17,5 +16,4 @@ declare const PasswordInput: {
|
|
|
17
16
|
name: string;
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
|
-
//#endregion
|
|
21
19
|
export { PasswordInput, PasswordInput as default };
|
|
@@ -4,7 +4,7 @@ import { useField } from "../Field/Field.context.js";
|
|
|
4
4
|
import { TextInput } from "../TextInput/TextInput.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useCallback, useState } from "react";
|
|
7
|
-
|
|
7
|
+
// src/components/PasswordInput/PasswordInput.tsx
|
|
8
8
|
const PasswordInput = ({ disabled, id, ref, showToggle = false, size, ...props }) => {
|
|
9
9
|
const [isVisible, setIsVisible] = useState(false);
|
|
10
10
|
const field = useField();
|
|
@@ -51,5 +51,4 @@ PasswordInput.slot = {
|
|
|
51
51
|
field: true,
|
|
52
52
|
name: "PasswordInput"
|
|
53
53
|
};
|
|
54
|
-
//#endregion
|
|
55
54
|
export { PasswordInput, PasswordInput as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, JSX, ReactNode, Ref } from "react";
|
|
2
|
-
//#region src/components/Picture/Picture.d.ts
|
|
3
2
|
export interface PictureProps extends HTMLAttributes<HTMLPictureElement> {
|
|
4
3
|
/** Content inside the component.
|
|
5
4
|
*
|
|
@@ -13,5 +12,4 @@ export interface PictureProps extends HTMLAttributes<HTMLPictureElement> {
|
|
|
13
12
|
ref?: Ref<HTMLPictureElement>;
|
|
14
13
|
}
|
|
15
14
|
export declare const Picture: ({ children, className, crop, ref, ...props }: PictureProps) => JSX.Element;
|
|
16
|
-
//#endregion
|
|
17
15
|
export { Picture as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/Picture/Picture.tsx
|
|
4
4
|
const Picture = ({ children, className, crop, ref, ...props }) => {
|
|
5
5
|
const componentProps = {
|
|
6
6
|
className: clsx("coop-picture", className),
|
|
@@ -13,5 +13,4 @@ const Picture = ({ children, className, crop, ref, ...props }) => {
|
|
|
13
13
|
children
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { Picture, Picture as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StandardSizes } from "../../types/index.js";
|
|
2
2
|
import React, { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react";
|
|
3
|
-
//#region src/components/Pill/Pill.d.ts
|
|
4
3
|
export interface PillProps extends HTMLAttributes<HTMLAnchorElement> {
|
|
5
4
|
/** Specify a custom element for the component.
|
|
6
5
|
*
|
|
@@ -44,5 +43,4 @@ declare const PillBadge: {
|
|
|
44
43
|
name: string;
|
|
45
44
|
};
|
|
46
45
|
};
|
|
47
|
-
//#endregion
|
|
48
46
|
export { Pill, Pill as default, PillBadge };
|
|
@@ -3,7 +3,7 @@ import { useSlots } from "../../hooks/useSlots.js";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import React from "react";
|
|
6
|
-
|
|
6
|
+
// src/components/Pill/Pill.tsx
|
|
7
7
|
const componentSlots = {
|
|
8
8
|
Children: null,
|
|
9
9
|
PillBadge: null
|
|
@@ -31,5 +31,4 @@ const PillBadge = ({ children, className }) => {
|
|
|
31
31
|
Pill.slot = { name: "Pill" };
|
|
32
32
|
PillBadge.slot = { name: "PillBadge" };
|
|
33
33
|
Pill.Badge = PillBadge;
|
|
34
|
-
//#endregion
|
|
35
34
|
export { Pill, Pill as default, PillBadge };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX, ReactNode, Ref } from "react";
|
|
2
2
|
import { PopoverAnchorProps, PopoverCloseProps, PopoverContentProps, PopoverProps, PopoverTriggerProps } from "@radix-ui/react-popover";
|
|
3
|
-
//#region src/components/Popover/Popover.d.ts
|
|
4
3
|
interface PopoverProps$1 extends PopoverProps {
|
|
5
4
|
/** Content inside the component.
|
|
6
5
|
*
|
|
@@ -110,5 +109,4 @@ declare const PopoverAnchor: {
|
|
|
110
109
|
name: string;
|
|
111
110
|
};
|
|
112
111
|
};
|
|
113
|
-
//#endregion
|
|
114
112
|
export { Popover, Popover as default, PopoverAnchor, PopoverClose, PopoverContent, PopoverProps$1 as PopoverProps, PopoverTrigger };
|
|
@@ -3,7 +3,7 @@ import { useSlots } from "../../hooks/useSlots.js";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import * as RadixPopover from "@radix-ui/react-popover";
|
|
6
|
-
|
|
6
|
+
// src/components/Popover/Popover.tsx
|
|
7
7
|
const componentSlots = {
|
|
8
8
|
PopoverAnchor: null,
|
|
9
9
|
PopoverContent: null,
|
|
@@ -81,5 +81,4 @@ Popover.Trigger = PopoverTrigger;
|
|
|
81
81
|
Popover.Content = PopoverContent;
|
|
82
82
|
Popover.Close = PopoverClose;
|
|
83
83
|
Popover.Anchor = PopoverAnchor;
|
|
84
|
-
//#endregion
|
|
85
84
|
export { Popover, Popover as default, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger } from "./Popover.js";
|
|
2
|
-
|
|
2
|
+
// src/components/Popover/index.ts
|
|
3
3
|
var Popover_default = Popover;
|
|
4
|
-
//#endregion
|
|
5
4
|
export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Popover_default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StandardSizes } from "../../types/index.js";
|
|
2
2
|
import { HTMLAttributes, JSX, ReactNode, Ref } from "react";
|
|
3
|
-
//#region src/components/Prose/Prose.d.ts
|
|
4
3
|
export interface ProseProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
4
|
/** Content inside the component. */
|
|
6
5
|
children?: ReactNode;
|
|
@@ -24,5 +23,4 @@ export interface ProseProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
24
23
|
spacing?: StandardSizes;
|
|
25
24
|
}
|
|
26
25
|
export declare const Prose: ({ children, className, full, ref, size, spacing, ...props }: ProseProps) => JSX.Element;
|
|
27
|
-
//#endregion
|
|
28
26
|
export { Prose as default };
|