@cerberus-design/react 0.8.0-next-ff54309 → 0.8.0-next-79fb5c6
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/build/legacy/_tsup-dts-rollup.d.ts +23 -0
- package/build/legacy/{chunk-P7JQ47LC.js → chunk-6PN23MAZ.js} +2 -2
- package/build/legacy/{chunk-2CYO4SJM.js → chunk-7EDCTSAP.js} +2 -2
- package/build/legacy/{chunk-I3QCRJ5R.js → chunk-BI6UZBJB.js} +2 -2
- package/build/{modern/chunk-M7HQ5V66.js → legacy/chunk-C7447UIN.js} +2 -2
- package/build/legacy/chunk-CP7OUC2Q.js +42 -0
- package/build/legacy/chunk-CP7OUC2Q.js.map +1 -0
- package/build/legacy/{chunk-Q6AA6XBS.js → chunk-HQIRGWY3.js} +2 -2
- package/build/{modern/chunk-YBD32ORB.js → legacy/chunk-K3X3OMAA.js} +8 -2
- package/build/legacy/chunk-K3X3OMAA.js.map +1 -0
- package/build/legacy/{chunk-GOJYBQNG.js → chunk-MVV3VTY2.js} +2 -2
- package/build/legacy/{chunk-EBRWD5EE.js → chunk-R6DGIPXN.js} +7 -5
- package/build/legacy/chunk-R6DGIPXN.js.map +1 -0
- package/build/{modern/chunk-NKJL4J2S.js → legacy/chunk-RHMGQNFD.js} +2 -2
- package/build/legacy/{chunk-SWHJ4GA4.js → chunk-VQMP3PBJ.js} +2 -2
- package/build/legacy/{chunk-6OPGX7H5.js → chunk-XKID4ZMW.js} +3 -3
- package/build/legacy/components/Checkbox.js +4 -3
- package/build/legacy/components/FileUploader.js +4 -3
- package/build/legacy/components/Input.js +4 -3
- package/build/legacy/components/Notification.js +4 -3
- package/build/legacy/components/Select.js +4 -3
- package/build/legacy/components/Toggle.js +4 -3
- package/build/legacy/config/cerbIcons.js +2 -1
- package/build/legacy/config/defineIcons.js +3 -2
- package/build/legacy/config/icons/checkbox.icons.js +9 -0
- package/build/legacy/config/icons/checkbox.icons.js.map +1 -0
- package/build/legacy/context/confirm-modal.js +4 -3
- package/build/legacy/context/notification-center.js +5 -4
- package/build/legacy/context/prompt-modal.js +5 -4
- package/build/legacy/index.js +12 -11
- package/build/legacy/index.js.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +23 -0
- package/build/modern/{chunk-3CMOWLNY.js → chunk-66OTWSEH.js} +3 -3
- package/build/{legacy/chunk-M7HQ5V66.js → modern/chunk-C7447UIN.js} +2 -2
- package/build/modern/chunk-CP7OUC2Q.js +42 -0
- package/build/modern/chunk-CP7OUC2Q.js.map +1 -0
- package/build/modern/{chunk-GE7RTD5F.js → chunk-EKUUJB37.js} +2 -2
- package/build/modern/{chunk-PQGIVCAA.js → chunk-ETIKSLRO.js} +2 -2
- package/build/modern/{chunk-Q6AA6XBS.js → chunk-HQIRGWY3.js} +2 -2
- package/build/modern/{chunk-GX63P3NP.js → chunk-HVICMTKV.js} +2 -2
- package/build/{legacy/chunk-YBD32ORB.js → modern/chunk-K3X3OMAA.js} +8 -2
- package/build/modern/chunk-K3X3OMAA.js.map +1 -0
- package/build/modern/{chunk-GOJYBQNG.js → chunk-MVV3VTY2.js} +2 -2
- package/build/modern/{chunk-WA7ZWO2U.js → chunk-R4V7FTYK.js} +2 -2
- package/build/modern/{chunk-EBRWD5EE.js → chunk-R6DGIPXN.js} +7 -5
- package/build/modern/chunk-R6DGIPXN.js.map +1 -0
- package/build/{legacy/chunk-NKJL4J2S.js → modern/chunk-RHMGQNFD.js} +2 -2
- package/build/modern/components/Checkbox.js +4 -3
- package/build/modern/components/FileUploader.js +4 -3
- package/build/modern/components/Input.js +4 -3
- package/build/modern/components/Notification.js +4 -3
- package/build/modern/components/Select.js +4 -3
- package/build/modern/components/Toggle.js +4 -3
- package/build/modern/config/cerbIcons.js +2 -1
- package/build/modern/config/defineIcons.js +3 -2
- package/build/modern/config/icons/checkbox.icons.js +9 -0
- package/build/modern/config/icons/checkbox.icons.js.map +1 -0
- package/build/modern/context/confirm-modal.js +4 -3
- package/build/modern/context/notification-center.js +5 -4
- package/build/modern/context/prompt-modal.js +5 -4
- package/build/modern/index.js +12 -11
- package/build/modern/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Checkbox.tsx +11 -3
- package/src/config/cerbIcons.ts +4 -1
- package/src/config/icons/checkbox.icons.tsx +49 -0
- package/build/legacy/chunk-EBRWD5EE.js.map +0 -1
- package/build/legacy/chunk-YBD32ORB.js.map +0 -1
- package/build/modern/chunk-EBRWD5EE.js.map +0 -1
- package/build/modern/chunk-YBD32ORB.js.map +0 -1
- /package/build/legacy/{chunk-P7JQ47LC.js.map → chunk-6PN23MAZ.js.map} +0 -0
- /package/build/legacy/{chunk-2CYO4SJM.js.map → chunk-7EDCTSAP.js.map} +0 -0
- /package/build/legacy/{chunk-I3QCRJ5R.js.map → chunk-BI6UZBJB.js.map} +0 -0
- /package/build/legacy/{chunk-M7HQ5V66.js.map → chunk-C7447UIN.js.map} +0 -0
- /package/build/legacy/{chunk-Q6AA6XBS.js.map → chunk-HQIRGWY3.js.map} +0 -0
- /package/build/legacy/{chunk-GOJYBQNG.js.map → chunk-MVV3VTY2.js.map} +0 -0
- /package/build/legacy/{chunk-NKJL4J2S.js.map → chunk-RHMGQNFD.js.map} +0 -0
- /package/build/legacy/{chunk-SWHJ4GA4.js.map → chunk-VQMP3PBJ.js.map} +0 -0
- /package/build/legacy/{chunk-6OPGX7H5.js.map → chunk-XKID4ZMW.js.map} +0 -0
- /package/build/modern/{chunk-3CMOWLNY.js.map → chunk-66OTWSEH.js.map} +0 -0
- /package/build/modern/{chunk-M7HQ5V66.js.map → chunk-C7447UIN.js.map} +0 -0
- /package/build/modern/{chunk-GE7RTD5F.js.map → chunk-EKUUJB37.js.map} +0 -0
- /package/build/modern/{chunk-PQGIVCAA.js.map → chunk-ETIKSLRO.js.map} +0 -0
- /package/build/modern/{chunk-Q6AA6XBS.js.map → chunk-HQIRGWY3.js.map} +0 -0
- /package/build/modern/{chunk-GX63P3NP.js.map → chunk-HVICMTKV.js.map} +0 -0
- /package/build/modern/{chunk-GOJYBQNG.js.map → chunk-MVV3VTY2.js.map} +0 -0
- /package/build/modern/{chunk-WA7ZWO2U.js.map → chunk-R4V7FTYK.js.map} +0 -0
- /package/build/modern/{chunk-NKJL4J2S.js.map → chunk-RHMGQNFD.js.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "0.8.0-next-
|
|
3
|
+
"version": "0.8.0-next-79fb5c6",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"browserslist": "> 0.25%, not dead",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react-dom": "^18",
|
|
27
27
|
"tsup": "^8.1.0",
|
|
28
28
|
"@cerberus-design/configs": "0.0.0",
|
|
29
|
-
"@cerberus-design/styled-system": "0.8.0-next-
|
|
29
|
+
"@cerberus-design/styled-system": "0.8.0-next-79fb5c6"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
@@ -20,6 +20,7 @@ export type CheckboxProps = CheckboxVariantProps &
|
|
|
20
20
|
Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'id'> & {
|
|
21
21
|
describedBy?: string
|
|
22
22
|
id: string
|
|
23
|
+
mixed?: boolean
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -35,10 +36,11 @@ export type CheckboxProps = CheckboxVariantProps &
|
|
|
35
36
|
* ```
|
|
36
37
|
*/
|
|
37
38
|
export function Checkbox(props: CheckboxProps) {
|
|
38
|
-
const { describedBy, size, checked, ...nativeProps } = props
|
|
39
|
+
const { describedBy, size, checked, mixed, ...nativeProps } = props
|
|
39
40
|
const { invalid, ...fieldStates } = useFieldContext()
|
|
40
41
|
const styles = checkbox({ size })
|
|
41
|
-
const { checkbox: CheckIcon } =
|
|
42
|
+
const { checkbox: CheckIcon, indeterminate: IndeterminateIcon } =
|
|
43
|
+
$cerberusIcons
|
|
42
44
|
|
|
43
45
|
return (
|
|
44
46
|
<div
|
|
@@ -55,14 +57,20 @@ export function Checkbox(props: CheckboxProps) {
|
|
|
55
57
|
{...fieldStates}
|
|
56
58
|
{...(describedBy && { 'aria-describedby': describedBy })}
|
|
57
59
|
{...(invalid && { 'aria-invalid': true })}
|
|
60
|
+
{...(mixed && { 'aria-checked': 'mixed' })}
|
|
58
61
|
className={cx('peer', nativeProps.className, styles.input)}
|
|
59
62
|
type="checkbox"
|
|
60
63
|
/>
|
|
61
|
-
<Show when={checked}>
|
|
64
|
+
<Show when={checked && !mixed}>
|
|
62
65
|
<span className={styles.icon}>
|
|
63
66
|
<CheckIcon />
|
|
64
67
|
</span>
|
|
65
68
|
</Show>
|
|
69
|
+
<Show when={mixed}>
|
|
70
|
+
<span className={styles.icon}>
|
|
71
|
+
<IndeterminateIcon />
|
|
72
|
+
</span>
|
|
73
|
+
</Show>
|
|
66
74
|
</div>
|
|
67
75
|
)
|
|
68
76
|
}
|
package/src/config/cerbIcons.ts
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
type CarbonIconType,
|
|
11
11
|
} from '@cerberus/icons'
|
|
12
12
|
import type { ElementType } from 'react'
|
|
13
|
+
import { CheckmarkIcon, IndeterminateIcon } from './icons/checkbox.icons'
|
|
13
14
|
|
|
14
15
|
export type IconType = CarbonIconType | ElementType
|
|
15
16
|
|
|
@@ -18,6 +19,7 @@ export interface DefinedIcons {
|
|
|
18
19
|
confirmModal?: IconType
|
|
19
20
|
promptModal?: IconType
|
|
20
21
|
fileUploader?: IconType
|
|
22
|
+
indeterminate?: IconType
|
|
21
23
|
infoNotification?: IconType
|
|
22
24
|
successNotification?: IconType
|
|
23
25
|
warningNotification?: IconType
|
|
@@ -28,10 +30,11 @@ export interface DefinedIcons {
|
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
export const defaultIcons: DefinedIcons = {
|
|
31
|
-
checkbox:
|
|
33
|
+
checkbox: CheckmarkIcon,
|
|
32
34
|
confirmModal: Information,
|
|
33
35
|
promptModal: Information,
|
|
34
36
|
fileUploader: CloudUpload,
|
|
37
|
+
indeterminate: IndeterminateIcon,
|
|
35
38
|
infoNotification: InformationFilled,
|
|
36
39
|
successNotification: CheckmarkFilled,
|
|
37
40
|
warningNotification: WarningFilled,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { SVGProps } from 'react'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This module contains substitute icons for the Checkbox component.
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
interface CheckboxIconProps extends SVGProps<SVGSVGElement> {}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Checkmark icon for Checkbox component
|
|
12
|
+
*/
|
|
13
|
+
export function CheckmarkIcon(props: CheckboxIconProps) {
|
|
14
|
+
return (
|
|
15
|
+
<svg
|
|
16
|
+
aria-hidden="true"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
fill="none"
|
|
19
|
+
role="img"
|
|
20
|
+
viewBox="0 0 24 24"
|
|
21
|
+
{...props}
|
|
22
|
+
>
|
|
23
|
+
<path
|
|
24
|
+
fill="currentColor"
|
|
25
|
+
d="M9.714 18 4 12.335l1.818-1.764 3.896 3.824L18.181 6 20 7.803 9.714 18Z"
|
|
26
|
+
/>
|
|
27
|
+
</svg>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface IndeterminateIconProps extends SVGProps<SVGSVGElement> {}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Indeterminate icon for Checkbox component
|
|
35
|
+
*/
|
|
36
|
+
export function IndeterminateIcon(props: IndeterminateIconProps) {
|
|
37
|
+
return (
|
|
38
|
+
<svg
|
|
39
|
+
aria-hidden="true"
|
|
40
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
41
|
+
role="img"
|
|
42
|
+
fill="none"
|
|
43
|
+
viewBox="0 0 24 24"
|
|
44
|
+
{...props}
|
|
45
|
+
>
|
|
46
|
+
<path fill="currentColor" d="M4 11h16v2.667H4z" />
|
|
47
|
+
</svg>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/Checkbox.tsx"],"sourcesContent":["'use client'\n\nimport {\n checkbox,\n type CheckboxVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { vstack } from '@cerberus/styled-system/patterns'\nimport { cx } from '@cerberus/styled-system/css'\nimport type { InputHTMLAttributes } from 'react'\nimport { Show } from './Show'\nimport { useFieldContext } from '../context/field'\nimport { $cerberusIcons } from '../config/defineIcons'\n\n/**\n * This module contains the Checkbox component.\n * @module\n */\n\nexport type CheckboxProps = CheckboxVariantProps &\n Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'id'> & {\n describedBy?: string\n id: string\n }\n\n/**\n * Checkbox component\n * @definition [ARIA Target Size](https://www.w3.org/WAI/WCAG21/Understanding/target-size.html#:~:text=Understanding%20SC%202.5.,%3ATarget%20Size%20(Level%20AAA)&text=The%20size%20of%20the%20target,Equivalent)\n * @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)\n * @definition [Checkbox docs](https://cerberus.digitalu.design/react/checkbox)\n * @example\n * ```tsx\n * <Field>\n * <Checkbox id=\"legal\" checked={checked.legal} onChange={handleChange} />\n * </Field>\n * ```\n */\nexport function Checkbox(props: CheckboxProps) {\n const { describedBy, size, checked, ...nativeProps } = props\n const { invalid, ...fieldStates } = useFieldContext()\n const styles = checkbox({ size })\n const { checkbox: CheckIcon } = $cerberusIcons\n\n return (\n <div\n className={cx(\n styles.root,\n vstack({\n gap: '0',\n justify: 'center',\n }),\n )}\n >\n <input\n {...nativeProps}\n {...fieldStates}\n {...(describedBy && { 'aria-describedby': describedBy })}\n {...(invalid && { 'aria-invalid': true })}\n className={cx('peer', nativeProps.className, styles.input)}\n type=\"checkbox\"\n />\n <Show when={checked}>\n <span className={styles.icon}>\n <CheckIcon />\n </span>\n </Show>\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;AAEA;AAAA,EACE;AAAA,OAEK;AACP,SAAS,cAAc;AACvB,SAAS,UAAU;AAoCf,SASE,KATF;AAPG,SAAS,SAAS,OAAsB;AAC7C,QAAM,EAAE,aAAa,MAAM,SAAS,GAAG,YAAY,IAAI;AACvD,QAAM,EAAE,SAAS,GAAG,YAAY,IAAI,gBAAgB;AACpD,QAAM,SAAS,SAAS,EAAE,KAAK,CAAC;AAChC,QAAM,EAAE,UAAU,UAAU,IAAI;AAEhC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,OAAO;AAAA,QACP,OAAO;AAAA,UACL,KAAK;AAAA,UACL,SAAS;AAAA,QACX,CAAC;AAAA,MACH;AAAA,MAEA;AAAA;AAAA,UAAC;AAAA;AAAA,YACE,GAAG;AAAA,YACH,GAAG;AAAA,YACH,GAAI,eAAe,EAAE,oBAAoB,YAAY;AAAA,YACrD,GAAI,WAAW,EAAE,gBAAgB,KAAK;AAAA,YACvC,WAAW,GAAG,QAAQ,YAAY,WAAW,OAAO,KAAK;AAAA,YACzD,MAAK;AAAA;AAAA,QACP;AAAA,QACA,oBAAC,QAAK,MAAM,SACV,8BAAC,UAAK,WAAW,OAAO,MACtB,8BAAC,aAAU,GACb,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/cerbIcons.ts"],"sourcesContent":["import {\n Checkmark,\n CheckmarkFilled,\n ChevronDown,\n CloudUpload,\n ErrorFilled,\n Information,\n InformationFilled,\n WarningFilled,\n type CarbonIconType,\n} from '@cerberus/icons'\nimport type { ElementType } from 'react'\n\nexport type IconType = CarbonIconType | ElementType\n\nexport interface DefinedIcons {\n checkbox?: IconType\n confirmModal?: IconType\n promptModal?: IconType\n fileUploader?: IconType\n infoNotification?: IconType\n successNotification?: IconType\n warningNotification?: IconType\n dangerNotification?: IconType\n invalid: IconType\n selectArrow?: IconType\n toggleChecked?: IconType\n}\n\nexport const defaultIcons: DefinedIcons = {\n checkbox: Checkmark,\n confirmModal: Information,\n promptModal: Information,\n fileUploader: CloudUpload,\n infoNotification: InformationFilled,\n successNotification: CheckmarkFilled,\n warningNotification: WarningFilled,\n dangerNotification: ErrorFilled,\n invalid: WarningFilled,\n selectArrow: ChevronDown,\n toggleChecked: Checkmark,\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAmBA,IAAM,eAA6B;AAAA,EACxC,UAAU;AAAA,EACV,cAAc;AAAA,EACd,aAAa;AAAA,EACb,cAAc;AAAA,EACd,kBAAkB;AAAA,EAClB,qBAAqB;AAAA,EACrB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,SAAS;AAAA,EACT,aAAa;AAAA,EACb,eAAe;AACjB;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/Checkbox.tsx"],"sourcesContent":["'use client'\n\nimport {\n checkbox,\n type CheckboxVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { vstack } from '@cerberus/styled-system/patterns'\nimport { cx } from '@cerberus/styled-system/css'\nimport type { InputHTMLAttributes } from 'react'\nimport { Show } from './Show'\nimport { useFieldContext } from '../context/field'\nimport { $cerberusIcons } from '../config/defineIcons'\n\n/**\n * This module contains the Checkbox component.\n * @module\n */\n\nexport type CheckboxProps = CheckboxVariantProps &\n Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'id'> & {\n describedBy?: string\n id: string\n }\n\n/**\n * Checkbox component\n * @definition [ARIA Target Size](https://www.w3.org/WAI/WCAG21/Understanding/target-size.html#:~:text=Understanding%20SC%202.5.,%3ATarget%20Size%20(Level%20AAA)&text=The%20size%20of%20the%20target,Equivalent)\n * @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)\n * @definition [Checkbox docs](https://cerberus.digitalu.design/react/checkbox)\n * @example\n * ```tsx\n * <Field>\n * <Checkbox id=\"legal\" checked={checked.legal} onChange={handleChange} />\n * </Field>\n * ```\n */\nexport function Checkbox(props: CheckboxProps) {\n const { describedBy, size, checked, ...nativeProps } = props\n const { invalid, ...fieldStates } = useFieldContext()\n const styles = checkbox({ size })\n const { checkbox: CheckIcon } = $cerberusIcons\n\n return (\n <div\n className={cx(\n styles.root,\n vstack({\n gap: '0',\n justify: 'center',\n }),\n )}\n >\n <input\n {...nativeProps}\n {...fieldStates}\n {...(describedBy && { 'aria-describedby': describedBy })}\n {...(invalid && { 'aria-invalid': true })}\n className={cx('peer', nativeProps.className, styles.input)}\n type=\"checkbox\"\n />\n <Show when={checked}>\n <span className={styles.icon}>\n <CheckIcon />\n </span>\n </Show>\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;AAEA;AAAA,EACE;AAAA,OAEK;AACP,SAAS,cAAc;AACvB,SAAS,UAAU;AAoCf,SASE,KATF;AAPG,SAAS,SAAS,OAAsB;AAC7C,QAAM,EAAE,aAAa,MAAM,SAAS,GAAG,YAAY,IAAI;AACvD,QAAM,EAAE,SAAS,GAAG,YAAY,IAAI,gBAAgB;AACpD,QAAM,SAAS,SAAS,EAAE,KAAK,CAAC;AAChC,QAAM,EAAE,UAAU,UAAU,IAAI;AAEhC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,OAAO;AAAA,QACP,OAAO;AAAA,UACL,KAAK;AAAA,UACL,SAAS;AAAA,QACX,CAAC;AAAA,MACH;AAAA,MAEA;AAAA;AAAA,UAAC;AAAA;AAAA,YACE,GAAG;AAAA,YACH,GAAG;AAAA,YACH,GAAI,eAAe,EAAE,oBAAoB,YAAY;AAAA,YACrD,GAAI,WAAW,EAAE,gBAAgB,KAAK;AAAA,YACvC,WAAW,GAAG,QAAQ,YAAY,WAAW,OAAO,KAAK;AAAA,YACzD,MAAK;AAAA;AAAA,QACP;AAAA,QACA,oBAAC,QAAK,MAAM,SACV,8BAAC,UAAK,WAAW,OAAO,MACtB,8BAAC,aAAU,GACb,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/cerbIcons.ts"],"sourcesContent":["import {\n Checkmark,\n CheckmarkFilled,\n ChevronDown,\n CloudUpload,\n ErrorFilled,\n Information,\n InformationFilled,\n WarningFilled,\n type CarbonIconType,\n} from '@cerberus/icons'\nimport type { ElementType } from 'react'\n\nexport type IconType = CarbonIconType | ElementType\n\nexport interface DefinedIcons {\n checkbox?: IconType\n confirmModal?: IconType\n promptModal?: IconType\n fileUploader?: IconType\n infoNotification?: IconType\n successNotification?: IconType\n warningNotification?: IconType\n dangerNotification?: IconType\n invalid: IconType\n selectArrow?: IconType\n toggleChecked?: IconType\n}\n\nexport const defaultIcons: DefinedIcons = {\n checkbox: Checkmark,\n confirmModal: Information,\n promptModal: Information,\n fileUploader: CloudUpload,\n infoNotification: InformationFilled,\n successNotification: CheckmarkFilled,\n warningNotification: WarningFilled,\n dangerNotification: ErrorFilled,\n invalid: WarningFilled,\n selectArrow: ChevronDown,\n toggleChecked: Checkmark,\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAmBA,IAAM,eAA6B;AAAA,EACxC,UAAU;AAAA,EACV,cAAc;AAAA,EACd,aAAa;AAAA,EACb,cAAc;AAAA,EACd,kBAAkB;AAAA,EAClB,qBAAqB;AAAA,EACrB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,SAAS;AAAA,EACT,aAAa;AAAA,EACb,eAAe;AACjB;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|