@coopdigital/react 1.10.1 → 1.11.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/DatePicker/DatePicker.js +2 -2
- package/dist/components/Expandable/Expandable.js +1 -1
- package/dist/components/Field/Field.d.ts +8 -8
- package/dist/components/FieldMarkers/Label.d.ts +2 -2
- package/dist/components/FieldMarkers/Legend.d.ts +2 -2
- package/dist/components/Logo/Logo.d.ts +2 -2
- package/dist/components/RootSVG/RootSVG.d.ts +2 -1
- package/dist/components/icons/AccountCircleFilledIcon.d.ts +2 -2
- package/dist/components/icons/AccountCircleIcon.d.ts +2 -2
- package/dist/components/icons/AccountFilledIcon.d.ts +2 -2
- package/dist/components/icons/AccountIcon.d.ts +2 -2
- package/dist/components/icons/AddIcon.d.ts +2 -2
- package/dist/components/icons/AppsFilledIcon.d.ts +2 -2
- package/dist/components/icons/AppsIcon.d.ts +2 -2
- package/dist/components/icons/ArrowDownIcon.d.ts +2 -2
- package/dist/components/icons/ArrowLeftIcon.d.ts +2 -2
- package/dist/components/icons/ArrowRightIcon.d.ts +2 -2
- package/dist/components/icons/ArrowUpIcon.d.ts +2 -2
- package/dist/components/icons/BackspaceFilledIcon.d.ts +2 -2
- package/dist/components/icons/BackspaceIcon.d.ts +2 -2
- package/dist/components/icons/BasketFilledIcon.d.ts +2 -2
- package/dist/components/icons/BasketIcon.d.ts +2 -2
- package/dist/components/icons/BellFilledIcon.d.ts +2 -2
- package/dist/components/icons/BellFilledIcon.js +1 -1
- package/dist/components/icons/BellIcon.d.ts +2 -2
- package/dist/components/icons/BroomIcon.d.ts +2 -2
- package/dist/components/icons/CalendarFilledIcon.d.ts +2 -2
- package/dist/components/icons/CalendarIcon.d.ts +2 -2
- package/dist/components/icons/CashFilledIcon.d.ts +2 -2
- package/dist/components/icons/CashIcon.d.ts +2 -2
- package/dist/components/icons/CashIcon.js +1 -1
- package/dist/components/icons/ChevronDownIcon.d.ts +2 -2
- package/dist/components/icons/ChevronLeftIcon.d.ts +2 -2
- package/dist/components/icons/ChevronRightIcon.d.ts +2 -2
- package/dist/components/icons/ChevronUpIcon.d.ts +2 -2
- package/dist/components/icons/CircleBurgerFilledIcon.d.ts +2 -2
- package/dist/components/icons/CircleBurgerIcon.d.ts +2 -2
- package/dist/components/icons/ClipboardFilledIcon.d.ts +2 -2
- package/dist/components/icons/ClipboardIcon.d.ts +2 -2
- package/dist/components/icons/ClockFilledIcon.d.ts +2 -2
- package/dist/components/icons/ClockFilledIcon.js +1 -1
- package/dist/components/icons/ClockIcon.d.ts +2 -2
- package/dist/components/icons/CloseAltFilledIcon.d.ts +2 -2
- package/dist/components/icons/CloseAltFilledIcon.js +1 -1
- package/dist/components/icons/CloseAltIcon.d.ts +2 -2
- package/dist/components/icons/CogIcon.d.ts +2 -2
- package/dist/components/icons/CommunityFilledIcon.d.ts +2 -2
- package/dist/components/icons/CommunityIcon.d.ts +2 -2
- package/dist/components/icons/ComputerIcon.d.ts +2 -2
- package/dist/components/icons/ContactFilledIcon.d.ts +2 -2
- package/dist/components/icons/ContactIcon.d.ts +2 -2
- package/dist/components/icons/ContactlessFilledIcon.d.ts +2 -2
- package/dist/components/icons/ContactlessIcon.d.ts +2 -2
- package/dist/components/icons/CoopLiveIcon.d.ts +2 -2
- package/dist/components/icons/CoopLocationFilledIcon.d.ts +2 -2
- package/dist/components/icons/CoopLogoIcon.d.ts +2 -2
- package/dist/components/icons/CoopMembershipCardFilledIcon.d.ts +2 -2
- package/dist/components/icons/CoopMembershipCardFilledIcon.js +1 -1
- package/dist/components/icons/CreditCardFilledIcon.d.ts +2 -2
- package/dist/components/icons/CreditCardFilledIcon.js +1 -1
- package/dist/components/icons/CreditCardIcon.d.ts +2 -2
- package/dist/components/icons/CrossIcon.d.ts +2 -2
- package/dist/components/icons/DocumentIcon.d.ts +2 -2
- package/dist/components/icons/DownloadIcon.d.ts +2 -2
- package/dist/components/icons/EnterStoreIcon.d.ts +2 -2
- package/dist/components/icons/ExitStoreIcon.d.ts +2 -2
- package/dist/components/icons/EyeFilledIcon.d.ts +2 -2
- package/dist/components/icons/EyeIcon.d.ts +2 -2
- package/dist/components/icons/EyeStrikeFilledIcon.d.ts +2 -2
- package/dist/components/icons/EyeStrikeIcon.d.ts +2 -2
- package/dist/components/icons/FeedbackFilledIcon.d.ts +2 -2
- package/dist/components/icons/FeedbackIcon.d.ts +2 -2
- package/dist/components/icons/FilterIcon.d.ts +2 -2
- package/dist/components/icons/GiftCardFilledIcon.d.ts +2 -2
- package/dist/components/icons/GiftCardIcon.d.ts +2 -2
- package/dist/components/icons/GiftFilledIcon.d.ts +2 -2
- package/dist/components/icons/GiftIcon.d.ts +2 -2
- package/dist/components/icons/HelpFilledIcon.d.ts +2 -2
- package/dist/components/icons/HelpIcon.d.ts +2 -2
- package/dist/components/icons/HomeFilledIcon.d.ts +2 -2
- package/dist/components/icons/HomeIcon.d.ts +2 -2
- package/dist/components/icons/HowDoIAssistantIcon.d.ts +2 -2
- package/dist/components/icons/InfoIcon.d.ts +2 -2
- package/dist/components/icons/KebabIcon.d.ts +2 -2
- package/dist/components/icons/LoadingIcon.d.ts +2 -2
- package/dist/components/icons/LocationFilledIcon.d.ts +2 -2
- package/dist/components/icons/LocationIcon.d.ts +2 -2
- package/dist/components/icons/LogoutIcon.d.ts +2 -2
- package/dist/components/icons/MailIcon.d.ts +2 -2
- package/dist/components/icons/MenuIcon.d.ts +2 -2
- package/dist/components/icons/MessageIcon.d.ts +2 -2
- package/dist/components/icons/MinusIcon.d.ts +2 -2
- package/dist/components/icons/NotesFilledIcon.d.ts +2 -2
- package/dist/components/icons/NotesIcon.d.ts +2 -2
- package/dist/components/icons/OpenNewIcon.d.ts +2 -2
- package/dist/components/icons/OwnBagIcon.d.ts +2 -2
- package/dist/components/icons/PadlockIcon.d.ts +2 -2
- package/dist/components/icons/PencilIcon.d.ts +2 -2
- package/dist/components/icons/PhoneIcon.d.ts +2 -2
- package/dist/components/icons/PowerIcon.d.ts +2 -2
- package/dist/components/icons/SaveFilledIcon.d.ts +2 -2
- package/dist/components/icons/SaveIcon.d.ts +2 -2
- package/dist/components/icons/ScooterIcon.d.ts +2 -2
- package/dist/components/icons/SearchFilledIcon.d.ts +2 -2
- package/dist/components/icons/SearchIcon.d.ts +2 -2
- package/dist/components/icons/SendIcon.d.ts +2 -2
- package/dist/components/icons/SpannerIcon.d.ts +2 -2
- package/dist/components/icons/StarFilledIcon.d.ts +2 -2
- package/dist/components/icons/StarFilledIcon.js +1 -1
- package/dist/components/icons/StarIcon.d.ts +2 -2
- package/dist/components/icons/TickAltFilledIcon.d.ts +2 -2
- package/dist/components/icons/TickAltFilledIcon.js +1 -1
- package/dist/components/icons/TickAltIcon.d.ts +2 -2
- package/dist/components/icons/TickIcon.d.ts +2 -2
- package/dist/components/icons/TruckIcon.d.ts +2 -2
- package/dist/components/icons/UserWipeIcon.d.ts +2 -2
- package/dist/components/icons/VoucherFilledIcon.d.ts +2 -2
- package/dist/components/icons/VoucherIcon.d.ts +2 -2
- package/dist/components/icons/WarningCircleFilledIcon.d.ts +2 -2
- package/dist/components/icons/WarningCircleFilledIcon.js +1 -1
- package/dist/components/icons/WarningCircleIcon.d.ts +2 -2
- package/dist/components/icons/WarningCircleIcon.js +1 -1
- package/dist/components/icons/WarningFilledIcon.d.ts +2 -2
- package/dist/components/icons/WarningIcon.d.ts +2 -2
- package/dist/components/icons/WifiIcon.d.ts +2 -2
- package/dist/components/icons/WriteIcon.d.ts +2 -2
- package/dist/hooks/useSlots.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/components/Card/Card.tsx +1 -1
- package/src/components/DatePicker/DatePicker.tsx +4 -4
- package/src/components/DatePicker/datepicker-utils.ts +6 -1
- package/src/components/Expandable/Expandable.tsx +11 -3
- package/src/components/Field/Field.tsx +5 -5
- package/src/components/FieldMarkers/Label.tsx +8 -2
- package/src/components/FieldMarkers/Legend.tsx +8 -2
- package/src/components/Fieldset/Fieldset.tsx +3 -3
- package/src/components/Logo/Logo.tsx +2 -2
- package/src/components/Pill/Pill.tsx +1 -1
- package/src/components/RootSVG/RootSVG.tsx +2 -1
- package/src/components/Searchbox/Searchbox.tsx +2 -2
- package/src/components/Signpost/Signpost.tsx +1 -1
- package/src/components/Tag/Tag.tsx +1 -1
- package/src/components/icons/AccountCircleFilledIcon.tsx +10 -2
- package/src/components/icons/AccountCircleIcon.tsx +10 -2
- package/src/components/icons/AccountFilledIcon.tsx +10 -2
- package/src/components/icons/AccountIcon.tsx +10 -2
- package/src/components/icons/AddIcon.tsx +3 -2
- package/src/components/icons/AppsFilledIcon.tsx +10 -2
- package/src/components/icons/AppsIcon.tsx +3 -2
- package/src/components/icons/ArrowDownIcon.tsx +10 -2
- package/src/components/icons/ArrowLeftIcon.tsx +10 -2
- package/src/components/icons/ArrowRightIcon.tsx +10 -2
- package/src/components/icons/ArrowUpIcon.tsx +10 -2
- package/src/components/icons/BackspaceFilledIcon.tsx +10 -2
- package/src/components/icons/BackspaceIcon.tsx +10 -2
- package/src/components/icons/BasketFilledIcon.tsx +10 -2
- package/src/components/icons/BasketIcon.tsx +3 -2
- package/src/components/icons/BellFilledIcon.tsx +11 -3
- package/src/components/icons/BellIcon.tsx +3 -2
- package/src/components/icons/BroomIcon.tsx +3 -2
- package/src/components/icons/CalendarFilledIcon.tsx +10 -2
- package/src/components/icons/CalendarIcon.tsx +10 -2
- package/src/components/icons/CashFilledIcon.tsx +10 -2
- package/src/components/icons/CashIcon.tsx +5 -4
- package/src/components/icons/ChevronDownIcon.tsx +10 -2
- package/src/components/icons/ChevronLeftIcon.tsx +10 -2
- package/src/components/icons/ChevronRightIcon.tsx +10 -2
- package/src/components/icons/ChevronUpIcon.tsx +10 -2
- package/src/components/icons/CircleBurgerFilledIcon.tsx +10 -2
- package/src/components/icons/CircleBurgerIcon.tsx +10 -2
- package/src/components/icons/ClipboardFilledIcon.tsx +10 -2
- package/src/components/icons/ClipboardIcon.tsx +10 -2
- package/src/components/icons/ClockFilledIcon.tsx +12 -4
- package/src/components/icons/ClockIcon.tsx +3 -2
- package/src/components/icons/CloseAltFilledIcon.tsx +12 -4
- package/src/components/icons/CloseAltIcon.tsx +10 -2
- package/src/components/icons/CogIcon.tsx +3 -2
- package/src/components/icons/CommunityFilledIcon.tsx +10 -2
- package/src/components/icons/CommunityIcon.tsx +10 -2
- package/src/components/icons/ComputerIcon.tsx +10 -2
- package/src/components/icons/ContactFilledIcon.tsx +10 -2
- package/src/components/icons/ContactIcon.tsx +10 -2
- package/src/components/icons/ContactlessFilledIcon.tsx +10 -2
- package/src/components/icons/ContactlessIcon.tsx +10 -2
- package/src/components/icons/CoopLiveIcon.tsx +10 -2
- package/src/components/icons/CoopLocationFilledIcon.tsx +10 -2
- package/src/components/icons/CoopLogoIcon.tsx +10 -2
- package/src/components/icons/CoopMembershipCardFilledIcon.tsx +5 -4
- package/src/components/icons/CreditCardFilledIcon.tsx +11 -3
- package/src/components/icons/CreditCardIcon.tsx +10 -2
- package/src/components/icons/CrossIcon.tsx +3 -2
- package/src/components/icons/DocumentIcon.tsx +10 -2
- package/src/components/icons/DownloadIcon.tsx +10 -2
- package/src/components/icons/EnterStoreIcon.tsx +10 -2
- package/src/components/icons/ExitStoreIcon.tsx +10 -2
- package/src/components/icons/EyeFilledIcon.tsx +10 -2
- package/src/components/icons/EyeIcon.tsx +3 -2
- package/src/components/icons/EyeStrikeFilledIcon.tsx +10 -2
- package/src/components/icons/EyeStrikeIcon.tsx +10 -2
- package/src/components/icons/FeedbackFilledIcon.tsx +10 -2
- package/src/components/icons/FeedbackIcon.tsx +10 -2
- package/src/components/icons/FilterIcon.tsx +3 -2
- package/src/components/icons/GiftCardFilledIcon.tsx +10 -2
- package/src/components/icons/GiftCardIcon.tsx +10 -2
- package/src/components/icons/GiftFilledIcon.tsx +10 -2
- package/src/components/icons/GiftIcon.tsx +3 -2
- package/src/components/icons/HelpFilledIcon.tsx +10 -2
- package/src/components/icons/HelpIcon.tsx +3 -2
- package/src/components/icons/HomeFilledIcon.tsx +10 -2
- package/src/components/icons/HomeIcon.tsx +3 -2
- package/src/components/icons/HowDoIAssistantIcon.tsx +10 -2
- package/src/components/icons/InfoIcon.tsx +3 -2
- package/src/components/icons/KebabIcon.tsx +3 -2
- package/src/components/icons/LoadingIcon.tsx +10 -2
- package/src/components/icons/LocationFilledIcon.tsx +10 -2
- package/src/components/icons/LocationIcon.tsx +10 -2
- package/src/components/icons/LogoutIcon.tsx +3 -2
- package/src/components/icons/MailIcon.tsx +3 -2
- package/src/components/icons/MenuIcon.tsx +3 -2
- package/src/components/icons/MessageIcon.tsx +10 -2
- package/src/components/icons/MinusIcon.tsx +3 -2
- package/src/components/icons/NotesFilledIcon.tsx +10 -2
- package/src/components/icons/NotesIcon.tsx +3 -2
- package/src/components/icons/OpenNewIcon.tsx +10 -2
- package/src/components/icons/OwnBagIcon.tsx +3 -2
- package/src/components/icons/PadlockIcon.tsx +10 -2
- package/src/components/icons/PencilIcon.tsx +3 -2
- package/src/components/icons/PhoneIcon.tsx +3 -2
- package/src/components/icons/PowerIcon.tsx +3 -2
- package/src/components/icons/SaveFilledIcon.tsx +10 -2
- package/src/components/icons/SaveIcon.tsx +3 -2
- package/src/components/icons/ScooterIcon.tsx +10 -2
- package/src/components/icons/SearchFilledIcon.tsx +10 -2
- package/src/components/icons/SearchIcon.tsx +3 -2
- package/src/components/icons/SendIcon.tsx +3 -2
- package/src/components/icons/SpannerIcon.tsx +10 -2
- package/src/components/icons/StarFilledIcon.tsx +11 -3
- package/src/components/icons/StarIcon.tsx +3 -2
- package/src/components/icons/TickAltFilledIcon.tsx +12 -4
- package/src/components/icons/TickAltIcon.tsx +10 -2
- package/src/components/icons/TickIcon.tsx +3 -2
- package/src/components/icons/TruckIcon.tsx +3 -2
- package/src/components/icons/UserWipeIcon.tsx +10 -2
- package/src/components/icons/VoucherFilledIcon.tsx +10 -2
- package/src/components/icons/VoucherIcon.tsx +10 -2
- package/src/components/icons/WarningCircleFilledIcon.tsx +12 -4
- package/src/components/icons/WarningCircleIcon.tsx +12 -4
- package/src/components/icons/WarningFilledIcon.tsx +10 -2
- package/src/components/icons/WarningIcon.tsx +10 -2
- package/src/components/icons/WifiIcon.tsx +3 -2
- package/src/components/icons/WriteIcon.tsx +3 -2
- package/src/hooks/useSlots.ts +1 -1
- package/src/types/index.ts +3 -2
- package/dist/components/Button/index.js +0 -5
- package/dist/components/Popover/index.js +0 -6
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const StarFilledIcon = ({
|
|
11
|
+
export const StarFilledIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -24,7 +32,7 @@ export const StarFilledIcon = ({ alt, className, fill, id, ref, ...props }: Icon
|
|
|
24
32
|
{alt ? <title id={uid + "__title"}>{alt}</title> : null}
|
|
25
33
|
<path
|
|
26
34
|
d="M19.183 10.63a1 1 0 0 0 .951.695h7.323c.968 0 1.371 1.238.589 1.808l-5.952 4.333a1 1 0 0 0-.364 1.113l2.202 6.881c.295.92-.756 1.681-1.538 1.115l-5.811-4.204a1 1 0 0 0-1.167-.004L9.558 26.55c-.786.561-1.832-.207-1.532-1.125l2.239-6.844a1 1 0 0 0-.361-1.119l-5.93-4.33c-.781-.57-.378-1.807.59-1.807h7.302a1 1 0 0 0 .951-.694l2.23-6.932c.298-.925 1.607-.925 1.904 0z"
|
|
27
|
-
|
|
35
|
+
stroke-width="2"
|
|
28
36
|
/>
|
|
29
37
|
</svg>
|
|
30
38
|
)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,7 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const StarIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
|
|
11
|
+
export const StarIcon = ({ alt, className, fill, id, ref, ...props }: IconProps): JSX.Element => {
|
|
11
12
|
const uid = useId(id)
|
|
12
13
|
const componentProps = {
|
|
13
14
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const TickAltFilledIcon = ({
|
|
11
|
+
export const TickAltFilledIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -23,9 +31,9 @@ export const TickAltFilledIcon = ({ alt, className, fill, id, ref, ...props }: I
|
|
|
23
31
|
<svg {...componentProps} ref={ref}>
|
|
24
32
|
{alt ? <title id={uid + "__title"}>{alt}</title> : null}
|
|
25
33
|
<path
|
|
26
|
-
|
|
34
|
+
clip-rule="evenodd"
|
|
27
35
|
d="M16 30c7.732 0 14-6.268 14-14S23.732 2 16 2 2 8.268 2 16s6.268 14 14 14m5.707-17.707a1 1 0 0 0-1.414 0L14 18.586l-2.293-2.293a1 1 0 1 0-1.414 1.414l3 3a1 1 0 0 0 1.414 0l7-7a1 1 0 0 0 0-1.414"
|
|
28
|
-
|
|
36
|
+
fill-rule="evenodd"
|
|
29
37
|
/>
|
|
30
38
|
</svg>
|
|
31
39
|
)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const TickAltIcon = ({
|
|
11
|
+
export const TickAltIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,7 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const TickIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
|
|
11
|
+
export const TickIcon = ({ alt, className, fill, id, ref, ...props }: IconProps): JSX.Element => {
|
|
11
12
|
const uid = useId(id)
|
|
12
13
|
const componentProps = {
|
|
13
14
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,7 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const TruckIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
|
|
11
|
+
export const TruckIcon = ({ alt, className, fill, id, ref, ...props }: IconProps): JSX.Element => {
|
|
11
12
|
const uid = useId(id)
|
|
12
13
|
const componentProps = {
|
|
13
14
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const UserWipeIcon = ({
|
|
11
|
+
export const UserWipeIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const VoucherFilledIcon = ({
|
|
11
|
+
export const VoucherFilledIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const VoucherIcon = ({
|
|
11
|
+
export const VoucherIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const WarningCircleFilledIcon = ({
|
|
11
|
+
export const WarningCircleFilledIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -23,9 +31,9 @@ export const WarningCircleFilledIcon = ({ alt, className, fill, id, ref, ...prop
|
|
|
23
31
|
<svg {...componentProps} ref={ref}>
|
|
24
32
|
{alt ? <title id={uid + "__title"}>{alt}</title> : null}
|
|
25
33
|
<path
|
|
26
|
-
|
|
34
|
+
clip-rule="evenodd"
|
|
27
35
|
d="M16 2c7.732 0 14 6.268 14 14s-6.268 14-14 14S2 23.732 2 16 8.268 2 16 2m0 18a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m0-11.5a1.5 1.5 0 0 0-1.5 1.5v6a1.5 1.5 0 0 0 3 0v-6A1.5 1.5 0 0 0 16 8.5"
|
|
28
|
-
|
|
36
|
+
fill-rule="evenodd"
|
|
29
37
|
/>
|
|
30
38
|
</svg>
|
|
31
39
|
)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const WarningCircleIcon = ({
|
|
11
|
+
export const WarningCircleIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -24,9 +32,9 @@ export const WarningCircleIcon = ({ alt, className, fill, id, ref, ...props }: I
|
|
|
24
32
|
{alt ? <title id={uid + "__title"}>{alt}</title> : null}
|
|
25
33
|
<path d="M16 17.5a1.5 1.5 0 0 1-1.5-1.5v-6a1.5 1.5 0 0 1 3 0v6a1.5 1.5 0 0 1-1.5 1.5M16 23a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3" />
|
|
26
34
|
<path
|
|
27
|
-
|
|
35
|
+
clip-rule="evenodd"
|
|
28
36
|
d="M16 30C8.268 30 2 23.732 2 16S8.268 2 16 2s14 6.268 14 14-6.268 14-14 14m0-2c6.627 0 12-5.373 12-12S22.627 4 16 4 4 9.373 4 16s5.373 12 12 12"
|
|
29
|
-
|
|
37
|
+
fill-rule="evenodd"
|
|
30
38
|
/>
|
|
31
39
|
</svg>
|
|
32
40
|
)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const WarningFilledIcon = ({
|
|
11
|
+
export const WarningFilledIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const WarningIcon = ({
|
|
11
|
+
export const WarningIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,7 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const WifiIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
|
|
11
|
+
export const WifiIcon = ({ alt, className, fill, id, ref, ...props }: IconProps): JSX.Element => {
|
|
11
12
|
const uid = useId(id)
|
|
12
13
|
const componentProps = {
|
|
13
14
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,7 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const WriteIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
|
|
11
|
+
export const WriteIcon = ({ alt, className, fill, id, ref, ...props }: IconProps): JSX.Element => {
|
|
11
12
|
const uid = useId(id)
|
|
12
13
|
const componentProps = {
|
|
13
14
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
package/src/hooks/useSlots.ts
CHANGED
|
@@ -8,7 +8,7 @@ export function isKey<T extends object>(x: T, k: PropertyKey): k is keyof T {
|
|
|
8
8
|
return k in x
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
// oxlint-disable-next-line
|
|
11
|
+
// oxlint-disable-next-line typescript/no-explicit-any
|
|
12
12
|
export function isLazy<T extends React.ComponentType<any>>(
|
|
13
13
|
type: unknown
|
|
14
14
|
): type is LazyComponent<T> {
|
package/src/types/index.ts
CHANGED
|
@@ -13,11 +13,12 @@ export interface LazyPayload<T> {
|
|
|
13
13
|
default: T
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
// oxlint-disable-next-line
|
|
16
|
+
// oxlint-disable-next-line typescript/no-explicit-any
|
|
17
17
|
export interface LazyComponent<T extends React.ComponentType<any>> {
|
|
18
18
|
_init: (payload: unknown) => T
|
|
19
19
|
_payload: Promise<LazyPayload<T>> | LazyPayload<T>
|
|
20
20
|
$$typeof: typeof REACT_LAZY_TYPE
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
// oxlint-disable-next-line typescript/no-explicit-any
|
|
24
|
+
export const REACT_LAZY_TYPE: any = Symbol.for("react.lazy")
|