@coopdigital/react 0.54.0 → 0.55.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/Button/Button.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +2 -1
- package/dist/components/DatePicker/DatePicker.js +6 -5
- package/dist/components/Expandable/Expandable.js +1 -1
- package/dist/components/Searchbox/Searchbox.d.ts +1 -1
- package/dist/components/Searchbox/Searchbox.js +1 -1
- package/dist/components/TextInput/TextInput.d.ts +5 -1
- package/dist/components/TextInput/TextInput.js +8 -2
- package/dist/components/icons/AccountCircleFilledIcon.d.ts +6 -0
- package/dist/components/icons/AccountCircleFilledIcon.js +20 -0
- package/dist/components/icons/AccountCircleIcon.d.ts +6 -0
- package/dist/components/icons/AccountCircleIcon.js +20 -0
- package/dist/components/icons/AccountFilledIcon.d.ts +6 -0
- package/dist/components/icons/AccountFilledIcon.js +20 -0
- package/dist/components/icons/AccountIcon.d.ts +6 -0
- package/dist/components/icons/AccountIcon.js +20 -0
- package/dist/components/icons/AddIcon.js +2 -2
- package/dist/components/icons/AppsFilledIcon.d.ts +6 -0
- package/dist/components/icons/AppsFilledIcon.js +20 -0
- package/dist/components/icons/{CoopIcon.d.ts → AppsIcon.d.ts} +1 -1
- package/dist/components/icons/AppsIcon.js +20 -0
- package/dist/components/icons/ArrowDownIcon.js +2 -2
- package/dist/components/icons/ArrowLeftIcon.js +2 -2
- package/dist/components/icons/ArrowRightIcon.js +2 -2
- package/dist/components/icons/ArrowUpIcon.js +2 -2
- package/dist/components/icons/BackspaceFilledIcon.d.ts +6 -0
- package/dist/components/icons/BackspaceFilledIcon.js +20 -0
- package/dist/components/icons/{AvatarAltIcon.d.ts → BackspaceIcon.d.ts} +1 -1
- package/dist/components/icons/BackspaceIcon.js +20 -0
- package/dist/components/icons/{CoopLocationIcon.d.ts → BasketFilledIcon.d.ts} +1 -1
- package/dist/components/icons/BasketFilledIcon.js +20 -0
- package/dist/components/icons/BasketIcon.js +2 -2
- package/dist/components/icons/BellFilledIcon.d.ts +6 -0
- package/dist/components/icons/BellFilledIcon.js +20 -0
- package/dist/components/icons/BellIcon.d.ts +6 -0
- package/dist/components/icons/BellIcon.js +20 -0
- package/dist/components/icons/{CloseIcon.d.ts → BroomIcon.d.ts} +1 -1
- package/dist/components/icons/BroomIcon.js +20 -0
- package/dist/components/icons/CalendarFilledIcon.d.ts +6 -0
- package/dist/components/icons/CalendarFilledIcon.js +20 -0
- package/dist/components/icons/CalendarIcon.js +2 -2
- package/dist/components/icons/CashFilledIcon.d.ts +6 -0
- package/dist/components/icons/CashFilledIcon.js +20 -0
- package/dist/components/icons/CashIcon.d.ts +6 -0
- package/dist/components/icons/CashIcon.js +20 -0
- package/dist/components/icons/ChevronDownIcon.js +2 -2
- package/dist/components/icons/ChevronLeftIcon.js +2 -2
- package/dist/components/icons/ChevronRightIcon.js +2 -2
- package/dist/components/icons/ChevronUpIcon.js +2 -2
- package/dist/components/icons/CircleBurgerFilledIcon.d.ts +6 -0
- package/dist/components/icons/CircleBurgerFilledIcon.js +20 -0
- package/dist/components/icons/CircleBurgerIcon.d.ts +6 -0
- package/dist/components/icons/CircleBurgerIcon.js +20 -0
- package/dist/components/icons/ClipboardFilledIcon.d.ts +6 -0
- package/dist/components/icons/ClipboardFilledIcon.js +20 -0
- package/dist/components/icons/ClipboardIcon.d.ts +6 -0
- package/dist/components/icons/ClipboardIcon.js +20 -0
- package/dist/components/icons/{InformationIcon.d.ts → ClockFilledIcon.d.ts} +1 -1
- package/dist/components/icons/ClockFilledIcon.js +20 -0
- package/dist/components/icons/ClockIcon.js +2 -2
- package/dist/components/icons/CloseAltFilledIcon.d.ts +6 -0
- package/dist/components/icons/CloseAltFilledIcon.js +20 -0
- package/dist/components/icons/CloseAltIcon.js +2 -2
- package/dist/components/icons/{VanIcon.d.ts → CogIcon.d.ts} +1 -1
- package/dist/components/icons/CogIcon.js +20 -0
- package/dist/components/icons/CommunityFilledIcon.d.ts +6 -0
- package/dist/components/icons/CommunityFilledIcon.js +20 -0
- package/dist/components/icons/CommunityIcon.d.ts +6 -0
- package/dist/components/icons/CommunityIcon.js +20 -0
- package/dist/components/icons/{QuestionIcon.d.ts → ComputerIcon.d.ts} +1 -1
- package/dist/components/icons/ComputerIcon.js +20 -0
- package/dist/components/icons/ContactFilledIcon.d.ts +6 -0
- package/dist/components/icons/ContactFilledIcon.js +20 -0
- package/dist/components/icons/ContactIcon.d.ts +6 -0
- package/dist/components/icons/ContactIcon.js +20 -0
- package/dist/components/icons/ContactlessFilledIcon.d.ts +6 -0
- package/dist/components/icons/ContactlessFilledIcon.js +20 -0
- package/dist/components/icons/ContactlessIcon.d.ts +6 -0
- package/dist/components/icons/ContactlessIcon.js +20 -0
- package/dist/components/icons/{SettingsIcon.d.ts → CoopLiveIcon.d.ts} +1 -1
- package/dist/components/icons/CoopLiveIcon.js +20 -0
- package/dist/components/icons/CoopLocationFilledIcon.d.ts +6 -0
- package/dist/components/icons/{CoopLocationIcon.js → CoopLocationFilledIcon.js} +5 -5
- package/dist/components/icons/{CoopCardIcon.d.ts → CoopLogoIcon.d.ts} +1 -1
- package/dist/components/icons/CoopLogoIcon.js +20 -0
- package/dist/components/icons/CoopMembershipCardFilledIcon.d.ts +6 -0
- package/dist/components/icons/CoopMembershipCardFilledIcon.js +20 -0
- package/dist/components/icons/CreditCardFilledIcon.d.ts +6 -0
- package/dist/components/icons/CreditCardFilledIcon.js +20 -0
- package/dist/components/icons/CreditCardIcon.d.ts +6 -0
- package/dist/components/icons/CreditCardIcon.js +20 -0
- package/dist/components/icons/CrossIcon.d.ts +6 -0
- package/dist/components/icons/CrossIcon.js +20 -0
- package/dist/components/icons/DocumentIcon.d.ts +6 -0
- package/dist/components/icons/DocumentIcon.js +20 -0
- package/dist/components/icons/DownloadIcon.js +2 -2
- package/dist/components/icons/EnterStoreIcon.d.ts +6 -0
- package/dist/components/icons/EnterStoreIcon.js +20 -0
- package/dist/components/icons/ExitStoreIcon.d.ts +6 -0
- package/dist/components/icons/ExitStoreIcon.js +20 -0
- package/dist/components/icons/EyeFilledIcon.d.ts +6 -0
- package/dist/components/icons/EyeFilledIcon.js +20 -0
- package/dist/components/icons/EyeIcon.d.ts +6 -0
- package/dist/components/icons/EyeIcon.js +20 -0
- package/dist/components/icons/EyeStrikeFilledIcon.d.ts +6 -0
- package/dist/components/icons/EyeStrikeFilledIcon.js +20 -0
- package/dist/components/icons/EyeStrikeIcon.d.ts +6 -0
- package/dist/components/icons/EyeStrikeIcon.js +20 -0
- package/dist/components/icons/FeedbackFilledIcon.d.ts +6 -0
- package/dist/components/icons/FeedbackFilledIcon.js +20 -0
- package/dist/components/icons/FeedbackIcon.d.ts +6 -0
- package/dist/components/icons/FeedbackIcon.js +20 -0
- package/dist/components/icons/{AvatarIcon.d.ts → FilterIcon.d.ts} +1 -1
- package/dist/components/icons/FilterIcon.js +20 -0
- package/dist/components/icons/GiftCardFilledIcon.d.ts +6 -0
- package/dist/components/icons/GiftCardFilledIcon.js +20 -0
- package/dist/components/icons/GiftCardIcon.d.ts +6 -0
- package/dist/components/icons/GiftCardIcon.js +20 -0
- package/dist/components/icons/GiftFilledIcon.d.ts +6 -0
- package/dist/components/icons/GiftFilledIcon.js +20 -0
- package/dist/components/icons/GiftIcon.d.ts +6 -0
- package/dist/components/icons/GiftIcon.js +20 -0
- package/dist/components/icons/HelpFilledIcon.d.ts +6 -0
- package/dist/components/icons/HelpFilledIcon.js +20 -0
- package/dist/components/icons/HelpIcon.d.ts +6 -0
- package/dist/components/icons/HelpIcon.js +20 -0
- package/dist/components/icons/HomeFilledIcon.d.ts +6 -0
- package/dist/components/icons/HomeFilledIcon.js +20 -0
- package/dist/components/icons/HomeIcon.js +2 -2
- package/dist/components/icons/HowDoIAssistantIcon.d.ts +6 -0
- package/dist/components/icons/HowDoIAssistantIcon.js +20 -0
- package/dist/components/icons/InfoIcon.d.ts +6 -0
- package/dist/components/icons/InfoIcon.js +20 -0
- package/dist/components/icons/KebabIcon.d.ts +6 -0
- package/dist/components/icons/KebabIcon.js +20 -0
- package/dist/components/icons/LoadingIcon.js +3 -3
- package/dist/components/icons/LocationFilledIcon.d.ts +6 -0
- package/dist/components/icons/LocationFilledIcon.js +20 -0
- package/dist/components/icons/LocationIcon.js +2 -2
- package/dist/components/icons/LogoutIcon.d.ts +6 -0
- package/dist/components/icons/LogoutIcon.js +20 -0
- package/dist/components/icons/MailIcon.js +2 -2
- package/dist/components/icons/MenuIcon.js +2 -2
- package/dist/components/icons/MessageIcon.js +2 -2
- package/dist/components/icons/MinusIcon.js +2 -2
- package/dist/components/icons/NotesFilledIcon.d.ts +6 -0
- package/dist/components/icons/NotesFilledIcon.js +20 -0
- package/dist/components/icons/NotesIcon.d.ts +6 -0
- package/dist/components/icons/NotesIcon.js +20 -0
- package/dist/components/icons/OpenNewIcon.js +2 -2
- package/dist/components/icons/OwnBagIcon.d.ts +6 -0
- package/dist/components/icons/OwnBagIcon.js +20 -0
- package/dist/components/icons/PadlockIcon.d.ts +6 -0
- package/dist/components/icons/PadlockIcon.js +20 -0
- package/dist/components/icons/PencilIcon.js +2 -2
- package/dist/components/icons/PhoneIcon.js +2 -2
- package/dist/components/icons/PowerIcon.d.ts +6 -0
- package/dist/components/icons/PowerIcon.js +20 -0
- package/dist/components/icons/SaveFilledIcon.d.ts +6 -0
- package/dist/components/icons/SaveFilledIcon.js +20 -0
- package/dist/components/icons/SaveIcon.d.ts +6 -0
- package/dist/components/icons/SaveIcon.js +20 -0
- package/dist/components/icons/ScooterIcon.js +3 -3
- package/dist/components/icons/SearchFilledIcon.d.ts +6 -0
- package/dist/components/icons/SearchFilledIcon.js +20 -0
- package/dist/components/icons/SearchIcon.js +2 -2
- package/dist/components/icons/SendIcon.d.ts +6 -0
- package/dist/components/icons/SendIcon.js +20 -0
- package/dist/components/icons/SpannerIcon.d.ts +6 -0
- package/dist/components/icons/SpannerIcon.js +20 -0
- package/dist/components/icons/StarFilledIcon.d.ts +6 -0
- package/dist/components/icons/StarFilledIcon.js +20 -0
- package/dist/components/icons/StarIcon.d.ts +6 -0
- package/dist/components/icons/StarIcon.js +20 -0
- package/dist/components/icons/TickAltFilledIcon.d.ts +6 -0
- package/dist/components/icons/TickAltFilledIcon.js +20 -0
- package/dist/components/icons/TickAltIcon.js +2 -2
- package/dist/components/icons/TickIcon.js +2 -2
- package/dist/components/icons/TruckIcon.d.ts +6 -0
- package/dist/components/icons/TruckIcon.js +20 -0
- package/dist/components/icons/UserWipeIcon.d.ts +6 -0
- package/dist/components/icons/UserWipeIcon.js +20 -0
- package/dist/components/icons/VoucherFilledIcon.d.ts +6 -0
- package/dist/components/icons/VoucherFilledIcon.js +20 -0
- package/dist/components/icons/VoucherIcon.d.ts +6 -0
- package/dist/components/icons/VoucherIcon.js +20 -0
- package/dist/components/icons/WarningFilledIcon.d.ts +6 -0
- package/dist/components/icons/WarningFilledIcon.js +20 -0
- package/dist/components/icons/WarningIcon.js +2 -2
- package/dist/components/icons/WifiIcon.d.ts +6 -0
- package/dist/components/icons/WifiIcon.js +20 -0
- package/dist/components/icons/WriteIcon.js +2 -2
- package/dist/components/icons/index.d.ts +77 -10
- package/dist/components/icons/index.js +77 -10
- package/package.json +3 -3
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/DatePicker/DatePicker.tsx +13 -12
- package/src/components/Expandable/Expandable.tsx +1 -6
- package/src/components/Searchbox/Searchbox.tsx +2 -2
- package/src/components/TextInput/TextInput.tsx +18 -2
- package/src/components/icons/AccountCircleFilledIcon.tsx +28 -0
- package/src/components/icons/AccountCircleIcon.tsx +28 -0
- package/src/components/icons/AccountFilledIcon.tsx +28 -0
- package/src/components/icons/AccountIcon.tsx +28 -0
- package/src/components/icons/AddIcon.tsx +2 -9
- package/src/components/icons/AppsFilledIcon.tsx +28 -0
- package/src/components/icons/AppsIcon.tsx +28 -0
- package/src/components/icons/ArrowDownIcon.tsx +2 -6
- package/src/components/icons/ArrowLeftIcon.tsx +2 -6
- package/src/components/icons/ArrowRightIcon.tsx +2 -6
- package/src/components/icons/ArrowUpIcon.tsx +2 -6
- package/src/components/icons/BackspaceFilledIcon.tsx +28 -0
- package/src/components/icons/BackspaceIcon.tsx +28 -0
- package/src/components/icons/BasketFilledIcon.tsx +28 -0
- package/src/components/icons/BasketIcon.tsx +2 -9
- package/src/components/icons/BellFilledIcon.tsx +29 -0
- package/src/components/icons/BellIcon.tsx +28 -0
- package/src/components/icons/BroomIcon.tsx +28 -0
- package/src/components/icons/CalendarFilledIcon.tsx +28 -0
- package/src/components/icons/CalendarIcon.tsx +2 -9
- package/src/components/icons/CashFilledIcon.tsx +28 -0
- package/src/components/icons/CashIcon.tsx +33 -0
- package/src/components/icons/ChevronDownIcon.tsx +2 -5
- package/src/components/icons/ChevronLeftIcon.tsx +2 -5
- package/src/components/icons/ChevronRightIcon.tsx +2 -5
- package/src/components/icons/ChevronUpIcon.tsx +2 -5
- package/src/components/icons/CircleBurgerFilledIcon.tsx +28 -0
- package/src/components/icons/CircleBurgerIcon.tsx +28 -0
- package/src/components/icons/ClipboardFilledIcon.tsx +28 -0
- package/src/components/icons/ClipboardIcon.tsx +28 -0
- package/src/components/icons/{InformationIcon.tsx → ClockFilledIcon.tsx} +6 -9
- package/src/components/icons/ClockIcon.tsx +2 -9
- package/src/components/icons/CloseAltFilledIcon.tsx +32 -0
- package/src/components/icons/CloseAltIcon.tsx +2 -13
- package/src/components/icons/CogIcon.tsx +28 -0
- package/src/components/icons/CommunityFilledIcon.tsx +28 -0
- package/src/components/icons/CommunityIcon.tsx +28 -0
- package/src/components/icons/ComputerIcon.tsx +28 -0
- package/src/components/icons/ContactFilledIcon.tsx +28 -0
- package/src/components/icons/ContactIcon.tsx +28 -0
- package/src/components/icons/ContactlessFilledIcon.tsx +28 -0
- package/src/components/icons/ContactlessIcon.tsx +28 -0
- package/src/components/icons/CoopLiveIcon.tsx +29 -0
- package/src/components/icons/CoopLocationFilledIcon.tsx +30 -0
- package/src/components/icons/CoopLogoIcon.tsx +28 -0
- package/src/components/icons/CoopMembershipCardFilledIcon.tsx +40 -0
- package/src/components/icons/CreditCardFilledIcon.tsx +42 -0
- package/src/components/icons/CreditCardIcon.tsx +28 -0
- package/src/components/icons/{CloseIcon.tsx → CrossIcon.tsx} +4 -11
- package/src/components/icons/DocumentIcon.tsx +28 -0
- package/src/components/icons/DownloadIcon.tsx +2 -13
- package/src/components/icons/EnterStoreIcon.tsx +28 -0
- package/src/components/icons/ExitStoreIcon.tsx +28 -0
- package/src/components/icons/EyeFilledIcon.tsx +28 -0
- package/src/components/icons/EyeIcon.tsx +28 -0
- package/src/components/icons/EyeStrikeFilledIcon.tsx +28 -0
- package/src/components/icons/EyeStrikeIcon.tsx +28 -0
- package/src/components/icons/FeedbackFilledIcon.tsx +35 -0
- package/src/components/icons/FeedbackIcon.tsx +28 -0
- package/src/components/icons/FilterIcon.tsx +28 -0
- package/src/components/icons/GiftCardFilledIcon.tsx +28 -0
- package/src/components/icons/GiftCardIcon.tsx +28 -0
- package/src/components/icons/GiftFilledIcon.tsx +28 -0
- package/src/components/icons/GiftIcon.tsx +28 -0
- package/src/components/icons/HelpFilledIcon.tsx +28 -0
- package/src/components/icons/HelpIcon.tsx +28 -0
- package/src/components/icons/HomeFilledIcon.tsx +28 -0
- package/src/components/icons/HomeIcon.tsx +2 -13
- package/src/components/icons/HowDoIAssistantIcon.tsx +28 -0
- package/src/components/icons/InfoIcon.tsx +28 -0
- package/src/components/icons/KebabIcon.tsx +28 -0
- package/src/components/icons/LoadingIcon.tsx +3 -6
- package/src/components/icons/LocationFilledIcon.tsx +28 -0
- package/src/components/icons/LocationIcon.tsx +2 -9
- package/src/components/icons/LogoutIcon.tsx +28 -0
- package/src/components/icons/MailIcon.tsx +2 -5
- package/src/components/icons/MenuIcon.tsx +2 -5
- package/src/components/icons/MessageIcon.tsx +2 -5
- package/src/components/icons/MinusIcon.tsx +2 -5
- package/src/components/icons/NotesFilledIcon.tsx +28 -0
- package/src/components/icons/NotesIcon.tsx +28 -0
- package/src/components/icons/OpenNewIcon.tsx +3 -9
- package/src/components/icons/OwnBagIcon.tsx +28 -0
- package/src/components/icons/PadlockIcon.tsx +28 -0
- package/src/components/icons/PencilIcon.tsx +2 -5
- package/src/components/icons/PhoneIcon.tsx +2 -5
- package/src/components/icons/PowerIcon.tsx +28 -0
- package/src/components/icons/SaveFilledIcon.tsx +28 -0
- package/src/components/icons/SaveIcon.tsx +28 -0
- package/src/components/icons/ScooterIcon.tsx +3 -22
- package/src/components/icons/SearchFilledIcon.tsx +28 -0
- package/src/components/icons/SearchIcon.tsx +9 -9
- package/src/components/icons/SendIcon.tsx +28 -0
- package/src/components/icons/SpannerIcon.tsx +28 -0
- package/src/components/icons/StarFilledIcon.tsx +31 -0
- package/src/components/icons/StarIcon.tsx +28 -0
- package/src/components/icons/TickAltFilledIcon.tsx +32 -0
- package/src/components/icons/TickAltIcon.tsx +2 -9
- package/src/components/icons/TickIcon.tsx +2 -5
- package/src/components/icons/TruckIcon.tsx +28 -0
- package/src/components/icons/UserWipeIcon.tsx +28 -0
- package/src/components/icons/VoucherFilledIcon.tsx +28 -0
- package/src/components/icons/VoucherIcon.tsx +28 -0
- package/src/components/icons/WarningFilledIcon.tsx +28 -0
- package/src/components/icons/WarningIcon.tsx +2 -9
- package/src/components/icons/WifiIcon.tsx +28 -0
- package/src/components/icons/WriteIcon.tsx +5 -17
- package/src/components/icons/index.ts +77 -10
- package/dist/components/icons/AvatarAltIcon.js +0 -20
- package/dist/components/icons/AvatarIcon.js +0 -20
- package/dist/components/icons/CloseIcon.js +0 -20
- package/dist/components/icons/CoopCardIcon.js +0 -20
- package/dist/components/icons/CoopIcon.js +0 -20
- package/dist/components/icons/InformationIcon.js +0 -20
- package/dist/components/icons/QuestionIcon.js +0 -20
- package/dist/components/icons/SettingsIcon.js +0 -20
- package/dist/components/icons/VanIcon.js +0 -20
- package/src/components/icons/AvatarAltIcon.tsx +0 -39
- package/src/components/icons/AvatarIcon.tsx +0 -35
- package/src/components/icons/CoopCardIcon.tsx +0 -32
- package/src/components/icons/CoopIcon.tsx +0 -32
- package/src/components/icons/CoopLocationIcon.tsx +0 -39
- package/src/components/icons/QuestionIcon.tsx +0 -35
- package/src/components/icons/SettingsIcon.tsx +0 -31
- package/src/components/icons/VanIcon.tsx +0 -31
|
@@ -32,7 +32,7 @@ const Button = ({ as, children, className, href, isDisabled = false, isFullWidth
|
|
|
32
32
|
onClick: onClick ? handleClick : undefined,
|
|
33
33
|
...props,
|
|
34
34
|
};
|
|
35
|
-
const finalChildren = isPending || isLoading ? (jsxs(Fragment, { children: [loadingText, jsx(LoadingIcon, {})] })) : (children);
|
|
35
|
+
const finalChildren = isPending || isLoading ? (jsxs(Fragment, { children: [loadingText, jsx(LoadingIcon, { stroke: "currentColor", strokeWidth: "1px" })] })) : (children);
|
|
36
36
|
return React__default.createElement(element, { ...componentProps, ref }, finalChildren);
|
|
37
37
|
};
|
|
38
38
|
|
|
@@ -26,11 +26,12 @@ export interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputEleme
|
|
|
26
26
|
error?: boolean;
|
|
27
27
|
/** **(Optional)** Specify the Date Picker id. Will be auto-generated if not set. */
|
|
28
28
|
id?: string;
|
|
29
|
-
/** **(Optional)** Specify the initial month view for the picker.
|
|
29
|
+
/** **(Optional)** Specify the initial month view for the picker. Combine with `initialSelected` to pre-select a date.
|
|
30
30
|
*
|
|
31
31
|
* Default: today.
|
|
32
32
|
*/
|
|
33
33
|
initialDate?: Date | DateRange;
|
|
34
|
+
/** **(Optional)** Specify whether the initial date should be pre-selected. */
|
|
34
35
|
initialSelected?: boolean;
|
|
35
36
|
/** **(Optional)** Specify the picker mode. */
|
|
36
37
|
mode?: Mode;
|
|
@@ -5,7 +5,8 @@ import clsx from 'clsx';
|
|
|
5
5
|
import { useMemo, useReducer, useCallback } from 'react';
|
|
6
6
|
import { useId } from '../../hooks/useId.js';
|
|
7
7
|
import { Button } from '../Button/Button.js';
|
|
8
|
-
import {
|
|
8
|
+
import { CalendarIcon } from '../icons/CalendarIcon.js';
|
|
9
|
+
import { CrossIcon } from '../icons/CrossIcon.js';
|
|
9
10
|
import { TickIcon } from '../icons/TickIcon.js';
|
|
10
11
|
import { Popover } from '../Popover/Popover.js';
|
|
11
12
|
import { TextInput } from '../TextInput/TextInput.js';
|
|
@@ -116,9 +117,9 @@ const DatePicker = ({ className, closeOnSelect = true, dateFormat = "dd/MM/yyyy"
|
|
|
116
117
|
return lowerCaseDateFormat;
|
|
117
118
|
}
|
|
118
119
|
};
|
|
119
|
-
return (jsxs("div", { ...componentProps, children: [jsxs(Popover, { onOpenChange: setOpen, open: state.open, children: [
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
return (jsxs("div", { ...componentProps, children: [jsxs(Popover, { onOpenChange: setOpen, open: state.open, children: [jsx(Popover.Anchor, { className: "coop-datepicker-inner", children: jsx(TextInput, { autoComplete: "off", className: "coop-datepicker-input", disabled: disabled, id: uid + componentConfig.fieldSuffix,
|
|
121
|
+
//maxLength={dateFormat.length}
|
|
122
|
+
name: name + componentConfig.fieldSuffix, onChange: updateFromInput, placeholder: getPlaceholder(), ref: ref, required: required, size: size, suffix: jsx(Popover.Trigger, { "aria-label": "Choose date", className: "coop-datepicker-trigger", children: jsx(CalendarIcon, { width: 24 }) }), suffixInline: true, value: (_f = (_e = state === null || state === void 0 ? void 0 : state[mode]) === null || _e === void 0 ? void 0 : _e.input) !== null && _f !== void 0 ? _f : "" }) }), jsxs(Popover.Content, { "aria-label": "Date picker", className: "coop-datepicker-calendar bg-white", collisionPadding: 16, sideOffset: 4, children: [jsx(Calendar
|
|
122
123
|
// jsx-ally throws here because we set autoFocus, but this
|
|
123
124
|
// is not a standard element. Daypicker uses this value to
|
|
124
125
|
// focus the day rather than the nav when it renders.
|
|
@@ -130,7 +131,7 @@ const DatePicker = ({ className, closeOnSelect = true, dateFormat = "dd/MM/yyyy"
|
|
|
130
131
|
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
131
132
|
autoFocus: true, captionLayout: "dropdown",
|
|
132
133
|
//defaultMonth={defaultMonth}
|
|
133
|
-
disabled: disabledDates, endMonth: endDate, month: state.view, onMonthChange: setView, onSelect: updateValues, startMonth: startDate, ...calendarProps[mode] }), jsxs("div", { className: "coop-datepicker-actions", children: [jsxs(Button, { "aria-label": "Cancel", className: "bg-tint-grey", onClick: resetState, size: "sm", children: ["Clear ", jsx(
|
|
134
|
+
disabled: disabledDates, endMonth: endDate, month: state.view, onMonthChange: setView, onSelect: updateValues, startMonth: startDate, ...calendarProps[mode] }), jsxs("div", { className: "coop-datepicker-actions", children: [jsxs(Button, { "aria-label": "Cancel", className: "bg-tint-grey", onClick: resetState, size: "sm", children: ["Clear ", jsx(CrossIcon, { stroke: "black", strokeWidth: 1 })] }), jsx(Popover.Close, { asChild: true, children: jsxs(Button, { "aria-label": "Accept", size: "sm", children: ["OK ", jsx(TickIcon, { stroke: "white", strokeWidth: 1 })] }) })] })] })] }), jsx("div", { "aria-live": "assertive", className: "sr-only coop-datepicker-status", role: "status", children: (_g = state.message) !== null && _g !== void 0 ? _g : footerMessage[mode] }), mode === "single" && jsx("input", { ...valueProps, value: (_j = (_h = state.single) === null || _h === void 0 ? void 0 : _h.field) !== null && _j !== void 0 ? _j : "" }), mode === "multiple" && jsx("input", { ...valueProps, value: (_l = (_k = state.multiple) === null || _k === void 0 ? void 0 : _k.field) !== null && _l !== void 0 ? _l : "" }), mode === "range" && (jsxs(Fragment, { children: [jsx("input", { ...baseValueProps, id: `${uid}_start`, name: `${name}_start`, value: (_p = (_o = (_m = state.range) === null || _m === void 0 ? void 0 : _m.field) === null || _o === void 0 ? void 0 : _o.from) !== null && _p !== void 0 ? _p : "" }), jsx("input", { ...baseValueProps, id: `${uid}_end`, name: `${name}_end`, value: (_s = (_r = (_q = state.range) === null || _q === void 0 ? void 0 : _q.field) === null || _r === void 0 ? void 0 : _r.to) !== null && _s !== void 0 ? _s : "" })] }))] }));
|
|
134
135
|
};
|
|
135
136
|
DatePicker.config = componentConfig;
|
|
136
137
|
|
|
@@ -21,7 +21,7 @@ const Expandable = ({ children, className, ref, ...props }) => {
|
|
|
21
21
|
return (jsxs("details", { ...componentProps, ref: ref, children: [slots.ExpandableSummary, slots.ExpandableContent] }));
|
|
22
22
|
};
|
|
23
23
|
const ExpandableSummary = ({ children, className, ...props }) => {
|
|
24
|
-
return (jsxs("summary", { ...props, className: className, children: [children, jsx(ChevronDownIcon, { className: "coop-expandable--icon",
|
|
24
|
+
return (jsxs("summary", { ...props, className: className, children: [children, jsx(ChevronDownIcon, { className: "coop-expandable--icon", width: "20" })] }));
|
|
25
25
|
};
|
|
26
26
|
const ExpandableContent = ({ children, className, ...props }) => {
|
|
27
27
|
return (jsx("div", { className: clsx("coop-expandable--content", className), ...props, children: children }));
|
|
@@ -21,7 +21,7 @@ export interface SearchboxProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
|
21
21
|
/** **(Optional)** Specify the TextInput name, also used as the URL search parameter. Defaults to `query`. */
|
|
22
22
|
name?: string;
|
|
23
23
|
/** **(Optional)** Callback to run when the form is submitted. If this is an async function, it will be awaited and the Searchbox will be in a pending state until the promise is resolved. */
|
|
24
|
-
onSubmit?: React.
|
|
24
|
+
onSubmit?: React.SubmitEventHandler<HTMLElement> | undefined;
|
|
25
25
|
/** **(Optional)** Specify the TextInput placeholder text Do not use in place of a form label. */
|
|
26
26
|
placeholder?: string;
|
|
27
27
|
/** **(Optional)** Specify a custom React ref for this component. */
|
|
@@ -18,7 +18,7 @@ const componentSlots = {
|
|
|
18
18
|
const defaultButtonText = React__default.createElement(SearchIcon, {
|
|
19
19
|
alt: "Search",
|
|
20
20
|
stroke: "currentColor",
|
|
21
|
-
|
|
21
|
+
width: 24,
|
|
22
22
|
});
|
|
23
23
|
const Searchbox = ({ action, children, className, id, label, labelVisible = false, onSubmit, ref, size = "md", variant = "solid", ...props }) => {
|
|
24
24
|
const slots = useSlots(componentSlots, children);
|
|
@@ -15,17 +15,21 @@ export interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElemen
|
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
/** **(Optional)** Specify the prefix. It can be any valid JSX or string. */
|
|
17
17
|
prefix?: React.ReactNode;
|
|
18
|
+
/** **(Optional)** Specify whether the prefix should be rendered inside the input. */
|
|
19
|
+
prefixInline?: boolean;
|
|
18
20
|
/** **(Optional)** Specify a custom React ref for this component. */
|
|
19
21
|
ref?: Ref<HTMLInputElement>;
|
|
20
22
|
/** **(Optional)** Specify the TextInput size. */
|
|
21
23
|
size?: StandardSizes;
|
|
22
24
|
/** **(Optional)** Specify the suffix. It can be any valid JSX or string. */
|
|
23
25
|
suffix?: React.ReactNode;
|
|
26
|
+
/** **(Optional)** Specify whether the suffix should be rendered inside the input. */
|
|
27
|
+
suffixInline?: boolean;
|
|
24
28
|
/** **(Optional)** Specify the TextInput type. */
|
|
25
29
|
type?: "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "week" | "month" | "time";
|
|
26
30
|
}
|
|
27
31
|
export declare const TextInput: {
|
|
28
|
-
({ "aria-placeholder": ariaPlaceholder, className, disabled, error, id, name, placeholder, prefix, ref, size, suffix, type, ...props }: TextInputProps): JSX.Element;
|
|
32
|
+
({ "aria-placeholder": ariaPlaceholder, className, disabled, error, id, name, placeholder, prefix, prefixInline, ref, size, suffix, suffixInline, type, ...props }: TextInputProps): JSX.Element;
|
|
29
33
|
config: {
|
|
30
34
|
isField: true;
|
|
31
35
|
};
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useId } from '../../hooks/useId.js';
|
|
4
4
|
|
|
5
|
-
const TextInput = ({ "aria-placeholder": ariaPlaceholder, className, disabled, error = false, id, name, placeholder, prefix, ref, size = "md", suffix, type = "text", ...props }) => {
|
|
5
|
+
const TextInput = ({ "aria-placeholder": ariaPlaceholder, className, disabled, error = false, id, name, placeholder, prefix, prefixInline = false, ref, size = "md", suffix, suffixInline = false, type = "text", ...props }) => {
|
|
6
6
|
var _a;
|
|
7
7
|
const uid = useId(id);
|
|
8
8
|
const componentProps = {
|
|
@@ -17,8 +17,14 @@ const TextInput = ({ "aria-placeholder": ariaPlaceholder, className, disabled, e
|
|
|
17
17
|
type,
|
|
18
18
|
...props,
|
|
19
19
|
};
|
|
20
|
+
const prefixProps = prefix
|
|
21
|
+
? { className: "coop-text-input--prefix", "data-inline": prefixInline || undefined }
|
|
22
|
+
: {};
|
|
23
|
+
const suffixProps = suffix
|
|
24
|
+
? { className: "coop-text-input--suffix", "data-inline": suffixInline || undefined }
|
|
25
|
+
: {};
|
|
20
26
|
//const formItemProps = { "aria-disabled": disabled ? true : undefined }
|
|
21
|
-
return (jsxs("div", { className: "coop-text-input-wrapper", children: [prefix && jsx("span", {
|
|
27
|
+
return (jsxs("div", { className: "coop-text-input-wrapper", children: [prefix && jsx("span", { ...prefixProps, children: prefix }), jsx("input", { ...componentProps, ref: ref }), suffix && jsx("span", { ...suffixProps, children: suffix })] }));
|
|
22
28
|
};
|
|
23
29
|
TextInput.config = {
|
|
24
30
|
isField: true,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type SVGProps } from "react";
|
|
2
|
+
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
|
+
alt?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const AccountCircleFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const AccountCircleFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "account-circle-filled",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M16 2c7.732 0 14 6.268 14 14 0 6.34-4.216 11.695-9.997 13.417l-.034.012-.029.008a14 14 0 0 1-3.453.553l-.037.002h-.022q-.211.007-.424.007L16 30 16 29.999V30q-.216 0-.432-.008h-.017l-.042-.003c-1.19-.04-2.34-.229-3.437-.549l-.035-.01-.075-.023a14 14 0 0 1-1.96-.755l-.06-.027-.011-.006C5.238 26.36 2 21.557 2 16 2 8.268 8.268 2 16 2m0 2C9.373 4 4 9.373 4 16a11.95 11.95 0 0 0 2.256 6.997 12.03 12.03 0 0 1 5.92-4.374 6 6 0 1 1 7.648 0 12.03 12.03 0 0 1 5.918 4.374A11.95 11.95 0 0 0 28 16c0-6.627-5.373-12-12-12" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { AccountCircleFilledIcon };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type SVGProps } from "react";
|
|
2
|
+
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
|
+
alt?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const AccountCircleIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const AccountCircleIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "account-circle",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M16 2c7.732 0 14 6.268 14 14 0 6.378-4.265 11.758-10.099 13.447l-.03.01q-.447.127-.904.227l-.038.007q-.126.027-.251.051l-.099.02a14 14 0 0 1-.558.091l-.09.013a13 13 0 0 1-.559.067l-.203.017-.115.01q-.153.011-.306.02l-.033.001a14 14 0 0 1-1.43 0q-.018 0-.034-.002l-.306-.019-.115-.01q-.102-.007-.203-.017l-.225-.025-.087-.01-.245-.03-.093-.014-.236-.037-.1-.016a15 15 0 0 1-.57-.109l-.039-.008a14 14 0 0 1-.903-.227l-.032-.01C6.264 27.757 2 22.377 2 16 2 8.268 8.268 2 16 2m.001 18a9.99 9.99 0 0 0-8.397 4.57A11.95 11.95 0 0 0 16 28c3.27 0 6.23-1.31 8.393-3.43A9.99 9.99 0 0 0 16 20M16 4C9.373 4 4 9.373 4 16a11.95 11.95 0 0 0 2.256 6.997 12.03 12.03 0 0 1 5.92-4.374 6 6 0 1 1 7.648 0 12.03 12.03 0 0 1 5.918 4.374A11.95 11.95 0 0 0 28 16c0-6.627-5.373-12-12-12m0 6a4 4 0 1 0 0 8 4 4 0 0 0 0-8" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { AccountCircleIcon };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type SVGProps } from "react";
|
|
2
|
+
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
|
+
alt?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const AccountFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const AccountFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "account-filled",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M16 2a7 7 0 0 1 4.055 12.703l.075.027a12.03 12.03 0 0 1 7.514 8.36q.063.252.115.51-.117.18-.24.357a14.05 14.05 0 0 1-7.11 5.334A13.9 13.9 0 0 1 16 30c-4.93 0-9.266-2.55-11.76-6.401a12.02 12.02 0 0 1 7.63-8.87l.074-.026A7 7 0 0 1 16 2" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { AccountFilledIcon };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const AccountIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "account",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M16 2a7 7 0 0 1 4.055 12.703 12.03 12.03 0 0 1 7.565 8.304l.04.157q.054.216.099.435-.108.166-.22.329l-.075.105-.155.218-.097.13a14 14 0 0 1-.493.623l-.088.101A13.97 13.97 0 0 1 16 30a13.97 13.97 0 0 1-10.565-4.817l-.156-.18q-.085-.103-.169-.207l-.069-.085a13 13 0 0 1-.255-.331l-.097-.13-.155-.218-.074-.105a14 14 0 0 1-.22-.328q.045-.22.098-.436l.04-.157q.041-.165.089-.328.038-.128.078-.254l.066-.21a12 12 0 0 1 .128-.363 12.03 12.03 0 0 1 7.205-7.148A7 7 0 0 1 16 2m0 14c-4.55 0-8.387 3.04-9.598 7.2A11.98 11.98 0 0 0 16 28c3.926 0 7.407-1.887 9.596-4.802C24.385 19.04 20.55 16 16 16m0-12a5 5 0 1 0 0 10 5 5 0 0 0 0-10" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { AccountIcon };
|
|
@@ -8,13 +8,13 @@ const AddIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
8
8
|
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "add",
|
|
11
|
-
fill: fill !== null && fill !== void 0 ? fill : "
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : undefined,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
15
|
...props,
|
|
16
16
|
};
|
|
17
|
-
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M15.957 4a1 1 0 0 1 1 1v10H27a1 1 0 1 1 0 2H16.957v10a1 1 0 0 1-2 0V17H5a1 1 0 1 1 0-2h9.957V5a1 1 0 0 1 1-1" })] }));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { AddIcon };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const AppsFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "apps-filled",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M13 17a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2zm13.204.01A2 2 0 0 1 28 19v7l-.01.204a2 2 0 0 1-1.786 1.785L26 28h-7a2 2 0 0 1-1.99-1.796L17 26v-7a2 2 0 0 1 2-2h7zM19 26h7v-7h-7zM13 4a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm13 0a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { AppsFilledIcon };
|
|
@@ -2,5 +2,5 @@ import { type SVGProps } from "react";
|
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const AppsIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const AppsIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "apps",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M13.204 17.01A2 2 0 0 1 15 19v7l-.01.204a2 2 0 0 1-1.786 1.785L13 28H6a2 2 0 0 1-1.99-1.796L4 26v-7a2 2 0 0 1 2-2h7zM26 17a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2zM6 26h7v-7H6zm7.204-21.99A2 2 0 0 1 15 6v7l-.01.204a2 2 0 0 1-1.786 1.785L13 15H6a2 2 0 0 1-1.99-1.796L4 13V6a2 2 0 0 1 2-2h7zm13 0A2 2 0 0 1 28 6v7l-.01.204a2 2 0 0 1-1.786 1.785L26 15h-7a2 2 0 0 1-1.99-1.796L17 13V6a2 2 0 0 1 2-2h7zM6 13h7V6H6zm13 0h7V6h-7z" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { AppsIcon };
|
|
@@ -8,13 +8,13 @@ const ArrowDownIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
8
8
|
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "arrow-down",
|
|
11
|
-
fill: fill !== null && fill !== void 0 ? fill : "
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : undefined,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
15
|
...props,
|
|
16
16
|
};
|
|
17
|
-
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M16 2a1 1 0 0 1 1 1v23.586l10.293-10.293a1 1 0 1 1 1.414 1.414L17.414 29a2 2 0 0 1-2.828 0L3.293 17.707a1 1 0 1 1 1.414-1.414L15 26.586V3a1 1 0 0 1 1-1" })] }));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { ArrowDownIcon };
|
|
@@ -8,13 +8,13 @@ const ArrowLeftIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
8
8
|
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "arrow-left",
|
|
11
|
-
fill: fill !== null && fill !== void 0 ? fill : "
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : undefined,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
15
|
...props,
|
|
16
16
|
};
|
|
17
|
-
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M15.707 28.707a1 1 0 0 1-1.414 0L3 17.414a2 2 0 0 1 0-2.828L14.293 3.293a1 1 0 1 1 1.414 1.414L5.414 15H29a1 1 0 1 1 0 2H5.414l10.293 10.293a1 1 0 0 1 0 1.414" })] }));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { ArrowLeftIcon };
|
|
@@ -8,13 +8,13 @@ const ArrowRightIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
8
8
|
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "arrow-right",
|
|
11
|
-
fill: fill !== null && fill !== void 0 ? fill : "
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : undefined,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
15
|
...props,
|
|
16
16
|
};
|
|
17
|
-
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M16.293 3.293a1 1 0 0 1 1.414 0L29 14.586a2 2 0 0 1 0 2.828L17.707 28.707a1 1 0 1 1-1.414-1.414L26.586 17H3a1 1 0 1 1 0-2h23.586L16.293 4.707a1 1 0 0 1 0-1.414" })] }));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { ArrowRightIcon };
|
|
@@ -8,13 +8,13 @@ const ArrowUpIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
8
8
|
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "arrow-up",
|
|
11
|
-
fill: fill !== null && fill !== void 0 ? fill : "
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : undefined,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
15
|
...props,
|
|
16
16
|
};
|
|
17
|
-
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M14.586 3a2 2 0 0 1 2.829 0l11.308 11.309a1 1 0 0 1-1.415 1.414L17 5.413V29a1 1 0 0 1-2 0V5.414L4.692 15.723a1 1 0 0 1-1.414-1.415z" })] }));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { ArrowUpIcon };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type SVGProps } from "react";
|
|
2
|
+
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
|
+
alt?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const BackspaceFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const BackspaceFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "backspace-filled",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M27.992 6a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H11.945a2 2 0 0 1-1.415-.586l-7.999-8a2 2 0 0 1 0-2.828l8-8A2 2 0 0 1 11.944 6zm-4.285 5.293a1 1 0 0 0-1.414 0L19 14.586l-3.293-3.293a1 1 0 1 0-1.414 1.414L17.586 16l-3.293 3.293a1 1 0 1 0 1.414 1.414L19 17.414l3.293 3.293a1 1 0 0 0 1.414-1.414L20.414 16l3.293-3.293a1 1 0 0 0 0-1.414" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { BackspaceFilledIcon };
|
|
@@ -2,5 +2,5 @@ import { type SVGProps } from "react";
|
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const BackspaceIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const BackspaceIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "backspace",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M27.991 6a2 2 0 0 1 2 2v16l-.01.204A2 2 0 0 1 27.991 26H11.944l-.198-.01a2 2 0 0 1-1.217-.576l-7.998-8a2 2 0 0 1-.137-2.677l.137-.151 7.998-8c.328-.328.76-.53 1.217-.576l.198-.01zM3.945 16l8 8H27.99V8H11.944zm18.348-4.707a1 1 0 0 1 1.414 1.414L20.414 16l3.293 3.293a1 1 0 1 1-1.414 1.414L19 17.414l-3.293 3.293a1 1 0 0 1-1.414-1.414L17.586 16l-3.293-3.293a1 1 0 1 1 1.414-1.414L19 14.586z" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { BackspaceIcon };
|
|
@@ -2,5 +2,5 @@ import { type SVGProps } from "react";
|
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const BasketFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const BasketFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "basket-filled",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M19.293 5.293a1 1 0 0 1 1.414 0L26.414 11H28a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-.308l-1.431 9.304A2 2 0 0 1 24.284 28H7.716a2 2 0 0 1-1.977-1.696L4.308 17H4a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h1.586l5.707-5.707a1 1 0 1 1 1.414 1.414L8.414 11h15.172l-4.293-4.293a1 1 0 0 1 0-1.414M16 19a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0v-3a1 1 0 0 0-1-1m-4.514.836a1 1 0 0 0-1.972.328l.5 3a1 1 0 0 0 1.972-.328zm10.178-.822a1 1 0 0 0-1.15.822l-.5 3a1 1 0 0 0 1.972.328l.5-3a1 1 0 0 0-.822-1.15" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { BasketFilledIcon };
|
|
@@ -8,13 +8,13 @@ const BasketIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
8
8
|
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "basket",
|
|
11
|
-
fill: fill !== null && fill !== void 0 ? fill : "
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : undefined,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
15
|
...props,
|
|
16
16
|
};
|
|
17
|
-
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M19.293 5.293a1 1 0 0 1 1.414 0L26.414 11H28a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-.308l-1.431 9.304a2 2 0 0 1-1.793 1.687l-.184.009H7.716a2 2 0 0 1-1.94-1.516l-.037-.18L4.308 17H4a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h1.586l5.707-5.707a1 1 0 1 1 1.414 1.414L8.414 11h15.172l-4.293-4.293a1 1 0 0 1 0-1.414M7.716 26h16.568l1.385-9H6.33zM16 19a1 1 0 0 1 1 1v3a1 1 0 0 1-2 0v-3a1 1 0 0 1 1-1m-5.664.014a1 1 0 0 1 1.15.822l.5 3a1 1 0 0 1-1.972.328l-.5-3a1 1 0 0 1 .822-1.15m10.178.822a1 1 0 0 1 1.972.328l-.5 3a1 1 0 0 1-1.972-.328zM4 15h24v-2H4z" })] }));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { BasketIcon };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const BellFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "bell-filled",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M27 26a1 1 0 0 0 0-2H5a1 1 0 1 0 0 2zM19 27a3 3 0 1 1-6 0zM13 5a3 3 0 1 1 6 0z" }), jsx("path", { d: "M16 5a9 9 0 0 1 9 9v11H7V14l.012-.463A9 9 0 0 1 16 5Z", strokeWidth: "2" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { BellFilledIcon };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const BellIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "-title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "bell",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M19 26.999a3 3 0 0 1-6 0zM16 2a3 3 0 0 1 2.946 2.441C23.031 5.7 26 9.503 26 14v10h1a1 1 0 1 1 0 2H5a1 1 0 0 1 0-2h1V14c0-4.497 2.968-8.3 7.052-9.559A3 3 0 0 1 16 2m0 4a8 8 0 0 0-8 8v10h16V14a8 8 0 0 0-8-8" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { BellIcon };
|
|
@@ -2,5 +2,5 @@ import { type SVGProps } from "react";
|
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const BroomIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|