@pagopa/io-app-design-system 4.5.5 → 4.6.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/lib/commonjs/components/accordion/AccordionItem.js +20 -56
- package/lib/commonjs/components/accordion/AccordionItem.js.map +1 -1
- package/lib/commonjs/components/banner/Banner.js +3 -2
- package/lib/commonjs/components/banner/Banner.js.map +1 -1
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +56 -0
- package/lib/commonjs/components/buttons/ButtonLink.js +1 -1
- package/lib/commonjs/components/buttons/ButtonSolid.js +1 -1
- package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +8 -5
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js +4 -2
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
- package/lib/commonjs/components/claimsSelector/ClaimsSelector.js +119 -0
- package/lib/commonjs/components/claimsSelector/ClaimsSelector.js.map +1 -0
- package/lib/commonjs/components/claimsSelector/__test__/ClaimsSelector.test.js +46 -0
- package/lib/commonjs/components/claimsSelector/__test__/ClaimsSelector.test.js.map +1 -0
- package/lib/commonjs/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +1270 -0
- package/lib/commonjs/components/claimsSelector/index.js +17 -0
- package/lib/commonjs/components/claimsSelector/index.js.map +1 -0
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js +6 -2
- package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemSwitch.js +1 -1
- package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +10 -0
- package/lib/commonjs/components/radio/AnimatedRadio.js +8 -5
- package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/commonjs/components/switch/NativeSwitch.js +5 -5
- package/lib/commonjs/components/switch/NativeSwitch.js.map +1 -1
- package/lib/commonjs/components/switch/index.js +0 -22
- package/lib/commonjs/components/switch/index.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputValidation.js +19 -7
- package/lib/commonjs/components/textInput/TextInputValidation.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH1.js +1 -2
- package/lib/commonjs/components/typography/markdown/MdH1.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH2.js +2 -2
- package/lib/commonjs/components/typography/markdown/MdH2.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH3.js +2 -2
- package/lib/commonjs/components/typography/markdown/MdH3.js.map +1 -1
- package/lib/commonjs/core/IOColors.js +28 -6
- package/lib/commonjs/core/IOColors.js.map +1 -1
- package/lib/commonjs/core/IOStyles.js +2 -16
- package/lib/commonjs/core/IOStyles.js.map +1 -1
- package/lib/commonjs/hooks/useAccordionAnimation.js +83 -0
- package/lib/commonjs/hooks/useAccordionAnimation.js.map +1 -0
- package/lib/module/components/accordion/AccordionItem.js +19 -52
- package/lib/module/components/accordion/AccordionItem.js.map +1 -1
- package/lib/module/components/banner/Banner.js +3 -2
- package/lib/module/components/banner/Banner.js.map +1 -1
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +56 -0
- package/lib/module/components/buttons/ButtonLink.js +1 -1
- package/lib/module/components/buttons/ButtonSolid.js +1 -1
- package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/module/components/checkbox/AnimatedCheckbox.js +9 -6
- package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/module/components/checkbox/AnimatedMessageCheckbox.js +6 -4
- package/lib/module/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
- package/lib/module/components/claimsSelector/ClaimsSelector.js +109 -0
- package/lib/module/components/claimsSelector/ClaimsSelector.js.map +1 -0
- package/lib/module/components/claimsSelector/__test__/ClaimsSelector.test.js +41 -0
- package/lib/module/components/claimsSelector/__test__/ClaimsSelector.test.js.map +1 -0
- package/lib/module/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +1270 -0
- package/lib/module/components/claimsSelector/index.js +2 -0
- package/lib/module/components/claimsSelector/index.js.map +1 -0
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/listitems/ListItemCheckbox.js +1 -1
- package/lib/module/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfo.js +6 -2
- package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadio.js +1 -1
- package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/module/components/listitems/ListItemSwitch.js +1 -1
- package/lib/module/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +10 -0
- package/lib/module/components/radio/AnimatedRadio.js +9 -6
- package/lib/module/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/module/components/switch/NativeSwitch.js +6 -6
- package/lib/module/components/switch/NativeSwitch.js.map +1 -1
- package/lib/module/components/switch/index.js +0 -2
- package/lib/module/components/switch/index.js.map +1 -1
- package/lib/module/components/textInput/TextInputValidation.js +20 -8
- package/lib/module/components/textInput/TextInputValidation.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH1.js +1 -2
- package/lib/module/components/typography/markdown/MdH1.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH2.js +2 -2
- package/lib/module/components/typography/markdown/MdH2.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH3.js +2 -2
- package/lib/module/components/typography/markdown/MdH3.js.map +1 -1
- package/lib/module/core/IOColors.js +28 -6
- package/lib/module/core/IOColors.js.map +1 -1
- package/lib/module/core/IOStyles.js +1 -14
- package/lib/module/core/IOStyles.js.map +1 -1
- package/lib/module/hooks/useAccordionAnimation.js +76 -0
- package/lib/module/hooks/useAccordionAnimation.js.map +1 -0
- package/lib/typescript/components/accordion/AccordionItem.d.ts +0 -6
- package/lib/typescript/components/accordion/AccordionItem.d.ts.map +1 -1
- package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/AnimatedMessageCheckbox.d.ts.map +1 -1
- package/lib/typescript/components/claimsSelector/ClaimsSelector.d.ts +42 -0
- package/lib/typescript/components/claimsSelector/ClaimsSelector.d.ts.map +1 -0
- package/lib/typescript/components/claimsSelector/__test__/ClaimsSelector.test.d.ts +2 -0
- package/lib/typescript/components/claimsSelector/__test__/ClaimsSelector.test.d.ts.map +1 -0
- package/lib/typescript/components/claimsSelector/index.d.ts +2 -0
- package/lib/typescript/components/claimsSelector/index.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemInfo.d.ts +2 -1
- package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
- package/lib/typescript/components/switch/NativeSwitch.d.ts.map +1 -1
- package/lib/typescript/components/switch/index.d.ts +0 -2
- package/lib/typescript/components/switch/index.d.ts.map +1 -1
- package/lib/typescript/components/textInput/TextInputValidation.d.ts +31 -4
- package/lib/typescript/components/textInput/TextInputValidation.d.ts.map +1 -1
- package/lib/typescript/components/typography/BodyMonospace.d.ts +1 -1
- package/lib/typescript/components/typography/ButtonText.d.ts +1 -1
- package/lib/typescript/components/typography/Caption.d.ts +1 -1
- package/lib/typescript/components/typography/H1.d.ts +1 -1
- package/lib/typescript/components/typography/H2.d.ts +1 -1
- package/lib/typescript/components/typography/H3.d.ts +1 -1
- package/lib/typescript/components/typography/H4.d.ts +1 -1
- package/lib/typescript/components/typography/H5.d.ts +1 -1
- package/lib/typescript/components/typography/H6.d.ts +1 -1
- package/lib/typescript/components/typography/Hero.d.ts +1 -1
- package/lib/typescript/components/typography/markdown/MdH1.d.ts +1 -1
- package/lib/typescript/components/typography/markdown/MdH1.d.ts.map +1 -1
- package/lib/typescript/components/typography/markdown/MdH2.d.ts +1 -1
- package/lib/typescript/components/typography/markdown/MdH3.d.ts +1 -1
- package/lib/typescript/core/IOColors.d.ts +4 -1
- package/lib/typescript/core/IOColors.d.ts.map +1 -1
- package/lib/typescript/core/IOStyles.d.ts +0 -13
- package/lib/typescript/core/IOStyles.d.ts.map +1 -1
- package/lib/typescript/hooks/useAccordionAnimation.d.ts +41 -0
- package/lib/typescript/hooks/useAccordionAnimation.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/accordion/AccordionItem.tsx +21 -82
- package/src/components/banner/Banner.tsx +3 -2
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +56 -0
- package/src/components/buttons/ButtonLink.tsx +1 -1
- package/src/components/buttons/ButtonSolid.tsx +1 -1
- package/src/components/checkbox/AnimatedCheckbox.tsx +9 -10
- package/src/components/checkbox/AnimatedMessageCheckbox.tsx +5 -5
- package/src/components/claimsSelector/ClaimsSelector.tsx +185 -0
- package/src/components/claimsSelector/__test__/ClaimsSelector.test.tsx +55 -0
- package/src/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +1270 -0
- package/src/components/claimsSelector/index.tsx +1 -0
- package/src/components/index.tsx +1 -0
- package/src/components/listitems/ListItemCheckbox.tsx +1 -1
- package/src/components/listitems/ListItemInfo.tsx +7 -2
- package/src/components/listitems/ListItemRadio.tsx +1 -1
- package/src/components/listitems/ListItemSwitch.tsx +1 -1
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +10 -0
- package/src/components/radio/AnimatedRadio.tsx +10 -10
- package/src/components/switch/NativeSwitch.tsx +6 -6
- package/src/components/switch/index.tsx +0 -2
- package/src/components/textInput/TextInputValidation.tsx +140 -97
- package/src/components/typography/markdown/MdH1.tsx +1 -2
- package/src/components/typography/markdown/MdH2.tsx +2 -2
- package/src/components/typography/markdown/MdH3.tsx +2 -2
- package/src/core/IOColors.ts +33 -5
- package/src/core/IOStyles.ts +1 -28
- package/src/hooks/useAccordionAnimation.tsx +106 -0
- package/lib/commonjs/components/switch/AnimatedSwitch.js +0 -94
- package/lib/commonjs/components/switch/AnimatedSwitch.js.map +0 -1
- package/lib/commonjs/components/switch/SwitchLabel.js +0 -76
- package/lib/commonjs/components/switch/SwitchLabel.js.map +0 -1
- package/lib/module/components/switch/AnimatedSwitch.js +0 -85
- package/lib/module/components/switch/AnimatedSwitch.js.map +0 -1
- package/lib/module/components/switch/SwitchLabel.js +0 -68
- package/lib/module/components/switch/SwitchLabel.js.map +0 -1
- package/lib/typescript/components/switch/AnimatedSwitch.d.ts +0 -13
- package/lib/typescript/components/switch/AnimatedSwitch.d.ts.map +0 -1
- package/lib/typescript/components/switch/SwitchLabel.d.ts +0 -18
- package/lib/typescript/components/switch/SwitchLabel.d.ts.map +0 -1
- package/src/components/switch/AnimatedSwitch.tsx +0 -126
- package/src/components/switch/SwitchLabel.tsx +0 -80
|
@@ -14,6 +14,6 @@ export declare const H2: React.ForwardRefExoticComponent<Omit<IOTextProps, "styl
|
|
|
14
14
|
textStyle?: import("./IOText").IOTextStyle | undefined;
|
|
15
15
|
style?: import("./IOText").IOTextStyle | undefined;
|
|
16
16
|
} & {
|
|
17
|
-
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
17
|
+
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-300" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
18
18
|
} & React.RefAttributes<View>>;
|
|
19
19
|
//# sourceMappingURL=H2.d.ts.map
|
|
@@ -11,7 +11,7 @@ export declare const H3: React.ForwardRefExoticComponent<Omit<IOTextProps, "styl
|
|
|
11
11
|
textStyle?: import("./IOText").IOTextStyle | undefined;
|
|
12
12
|
style?: import("./IOText").IOTextStyle | undefined;
|
|
13
13
|
} & {
|
|
14
|
-
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
14
|
+
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-300" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
weight?: "Semibold" | "Bold" | undefined;
|
|
17
17
|
} & React.RefAttributes<View>>;
|
|
@@ -11,6 +11,6 @@ export declare const H4: React.ForwardRefExoticComponent<Omit<IOTextProps, "styl
|
|
|
11
11
|
textStyle?: import("./IOText").IOTextStyle | undefined;
|
|
12
12
|
style?: import("./IOText").IOTextStyle | undefined;
|
|
13
13
|
} & {
|
|
14
|
-
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
14
|
+
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-300" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
15
15
|
} & React.RefAttributes<View>>;
|
|
16
16
|
//# sourceMappingURL=H4.d.ts.map
|
|
@@ -11,6 +11,6 @@ export declare const H5: React.ForwardRefExoticComponent<Omit<IOTextProps, "styl
|
|
|
11
11
|
textStyle?: import("./IOText").IOTextStyle | undefined;
|
|
12
12
|
style?: import("./IOText").IOTextStyle | undefined;
|
|
13
13
|
} & {
|
|
14
|
-
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
14
|
+
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-300" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
15
15
|
} & React.RefAttributes<View>>;
|
|
16
16
|
//# sourceMappingURL=H5.d.ts.map
|
|
@@ -11,6 +11,6 @@ export declare const H6: React.ForwardRefExoticComponent<Omit<IOTextProps, "styl
|
|
|
11
11
|
textStyle?: import("./IOText").IOTextStyle | undefined;
|
|
12
12
|
style?: import("./IOText").IOTextStyle | undefined;
|
|
13
13
|
} & {
|
|
14
|
-
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
14
|
+
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-300" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
15
15
|
} & React.RefAttributes<View>>;
|
|
16
16
|
//# sourceMappingURL=H6.d.ts.map
|
|
@@ -11,6 +11,6 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<IOTextProps, "st
|
|
|
11
11
|
textStyle?: import("./IOText").IOTextStyle | undefined;
|
|
12
12
|
style?: import("./IOText").IOTextStyle | undefined;
|
|
13
13
|
} & {
|
|
14
|
-
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
14
|
+
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-300" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
15
15
|
} & React.RefAttributes<View>>;
|
|
16
16
|
//# sourceMappingURL=Hero.d.ts.map
|
|
@@ -8,6 +8,6 @@ export declare const MdH1: React.ForwardRefExoticComponent<Omit<IOTextProps, "st
|
|
|
8
8
|
textStyle?: import("../IOText").IOTextStyle | undefined;
|
|
9
9
|
style?: import("../IOText").IOTextStyle | undefined;
|
|
10
10
|
} & {
|
|
11
|
-
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
11
|
+
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-300" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
12
12
|
} & React.RefAttributes<View>>;
|
|
13
13
|
//# sourceMappingURL=MdH1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MdH1.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/markdown/MdH1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAU,WAAW,EAAyB,MAAM,WAAW,CAAC;AAEvE;;GAEG;
|
|
1
|
+
{"version":3,"file":"MdH1.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/markdown/MdH1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAU,WAAW,EAAyB,MAAM,WAAW,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,IAAI;;;;;8BAoBhB,CAAC"}
|
|
@@ -8,6 +8,6 @@ export declare const MdH2: React.ForwardRefExoticComponent<Omit<IOTextProps, "st
|
|
|
8
8
|
textStyle?: import("../IOText").IOTextStyle | undefined;
|
|
9
9
|
style?: import("../IOText").IOTextStyle | undefined;
|
|
10
10
|
} & {
|
|
11
|
-
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
11
|
+
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-300" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
12
12
|
} & React.RefAttributes<View>>;
|
|
13
13
|
//# sourceMappingURL=MdH2.d.ts.map
|
|
@@ -8,6 +8,6 @@ export declare const MdH3: React.ForwardRefExoticComponent<Omit<IOTextProps, "st
|
|
|
8
8
|
textStyle?: import("../IOText").IOTextStyle | undefined;
|
|
9
9
|
style?: import("../IOText").IOTextStyle | undefined;
|
|
10
10
|
} & {
|
|
11
|
-
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
11
|
+
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-300" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-500" | "blue-50" | undefined;
|
|
12
12
|
} & React.RefAttributes<View>>;
|
|
13
13
|
//# sourceMappingURL=MdH3.d.ts.map
|
|
@@ -16,6 +16,7 @@ export declare const IOColors: {
|
|
|
16
16
|
"blueIO-600": string;
|
|
17
17
|
"blueIO-500": string;
|
|
18
18
|
"blueIO-400": string;
|
|
19
|
+
"blueIO-300": string;
|
|
19
20
|
"blueIO-200": string;
|
|
20
21
|
"blueIO-150": string;
|
|
21
22
|
"blueIO-100": string;
|
|
@@ -104,6 +105,8 @@ export declare const IOColorsTints: {
|
|
|
104
105
|
"blueIO-850": string;
|
|
105
106
|
"blueIO-600": string;
|
|
106
107
|
"blueIO-500": string;
|
|
108
|
+
"blueIO-400": string;
|
|
109
|
+
"blueIO-300": string;
|
|
107
110
|
"blueIO-200": string;
|
|
108
111
|
"blueIO-150": string;
|
|
109
112
|
"blueIO-100": string;
|
|
@@ -149,7 +152,7 @@ export declare const IOColorsExtra: {
|
|
|
149
152
|
"blueItalia-50": string;
|
|
150
153
|
};
|
|
151
154
|
export type IOColorsExtra = keyof typeof IOColorsExtra;
|
|
152
|
-
declare const themeKeys: readonly ["appBackground-primary", "appBackground-secondary", "appBackground-tertiary", "appBackground-accent", "interactiveElem-default", "interactiveElem-pressed", "interactiveElem-disabled", "interactiveOutline-disabled", "neutralButton-default", "neutralButton-pressed", "neutralButton-disabled", "buttonText-default", "buttonText-disabled", "listItem-pressed", "textHeading-default", "textHeading-secondary", "textHeading-tertiary", "textBody-default", "textBody-secondary", "textBody-tertiary", "cardBorder-default", "textInputBorder-default", "icon-default", "icon-decorative", "textInputBorder-default", "textInputLabel-default", "textInputValue-default", "textInputValue-disabled", "divider-header", "divider-default", "divider-bottomBar", "pdfViewer-background", "tab-item-border-default", "tab-item-foreground-default", "tab-item-foreground-selected", "tab-item-background-selected", "errorIcon", "errorText", "successIcon", "successText", "warningIcon", "infoIcon", "pictogram-hands", "pictogram-tint-main", "pictogram-tint-secondary", "pictogram-tint-tertiary"];
|
|
155
|
+
declare const themeKeys: readonly ["appBackground-primary", "appBackground-secondary", "appBackground-tertiary", "appBackground-accent", "interactiveElem-default", "interactiveElem-pressed", "interactiveElem-disabled", "interactiveOutline-disabled", "neutralButton-default", "neutralButton-pressed", "neutralButton-disabled", "buttonText-default", "buttonText-danger", "buttonText-disabled", "listItem-pressed", "textHeading-default", "textHeading-secondary", "textHeading-tertiary", "textBody-default", "textBody-secondary", "textBody-tertiary", "cardBorder-default", "textInputBorder-default", "icon-default", "icon-decorative", "textInputBorder-default", "textInputLabel-default", "textInputValue-default", "textInputValue-disabled", "switch-background-off", "switch-background-on", "switch-thumb-color", "selection-border-off", "selection-background-on", "selection-tick", "divider-header", "divider-default", "divider-bottomBar", "pdfViewer-background", "tab-item-border-default", "tab-item-foreground-default", "tab-item-foreground-selected", "tab-item-background-selected", "errorIcon", "errorText", "successIcon", "successText", "warningIcon", "infoIcon", "pictogram-hands", "pictogram-tint-main", "pictogram-tint-secondary", "pictogram-tint-tertiary"];
|
|
153
156
|
export type IOTheme = {
|
|
154
157
|
[K in (typeof themeKeys)[number]]: IOColors;
|
|
155
158
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOColors.d.ts","sourceRoot":"","sources":["../../../src/core/IOColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,8BAA8B,CAAC;AAyB/D,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"IOColors.d.ts","sourceRoot":"","sources":["../../../src/core/IOColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,8BAA8B,CAAC;AAyB/D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAE7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;CAgB3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE7D,eAAO,MAAM,sBAAsB,eACrB,gBAAgB,KAC3B,eAAe,qBAAqB,CAAC,CAAC,QAAQ,CAGhD,CAAC;AAYF,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,cAAc,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;;;;;;;CAW1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,eAAe,CAAC;AAE3D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CAgBxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC;AAEvD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;CAqBzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,cAAc,CAAC;AAEzD,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,cAAc,EACd,WAAW,GAAG,aAAa,GAAG,UAAU,GAAG,aAAa,CACzD,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,cAAc,EACd,WAAW,GAAG,aAAa,GAAG,UAAU,GAAG,aAAa,CACzD,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;CAMzB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC;AAMvD,QAAA,MAAM,SAAS,qtCAgEL,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG;KACnB,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,GAAG,QAAQ;CAC5C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OA8D1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,OAMhC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OA4DzB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;CAiBrC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GACpC,MAAM,OAAO,0BAA0B,CAAC;AAE1C,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAC5C,WAAW,CAAC,0BAA0B,CAAC,EACvC,cAAc,CAkBf,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAM/E;;;;GAIG;AAEH,eAAO,MAAM,SAAS,YAAa,UAAU,YAAW,MAAM,WAQ7D,CAAC"}
|
|
@@ -212,25 +212,12 @@ export declare const IOModuleStyles: {
|
|
|
212
212
|
interface IOSelectionTickVisualParams {
|
|
213
213
|
size: IOIconSizeScale;
|
|
214
214
|
borderWidth: number;
|
|
215
|
-
borderColorOffState: IOColors;
|
|
216
|
-
bgColorOnState: IOColors;
|
|
217
|
-
tickColor: IOColors;
|
|
218
|
-
}
|
|
219
|
-
interface IOSwitchVisualParams {
|
|
220
|
-
width: number;
|
|
221
|
-
height: number;
|
|
222
|
-
bgColorOffState: IOColors;
|
|
223
|
-
bgColorOnState: IOColors;
|
|
224
|
-
tickColor: IOColors;
|
|
225
|
-
bgCircle: IOColors;
|
|
226
|
-
padding: number;
|
|
227
215
|
}
|
|
228
216
|
interface IOSelectionTickLegacyVisualParams {
|
|
229
217
|
borderColorOffState: IOColors;
|
|
230
218
|
bgColorOnState: IOColors;
|
|
231
219
|
}
|
|
232
220
|
export declare const IOSelectionTickVisualParams: IOSelectionTickVisualParams;
|
|
233
|
-
export declare const IOSwitchVisualParams: IOSwitchVisualParams;
|
|
234
221
|
export declare const IOSelectionTickLegacyVisualParams: IOSelectionTickLegacyVisualParams;
|
|
235
222
|
interface IOSelectionListItemVisualParams {
|
|
236
223
|
paddingVertical: IOSpacingScale;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOStyles.d.ts","sourceRoot":"","sources":["../../../src/core/IOStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EACL,WAAW,EAGX,QAAQ,EACR,cAAc,EACf,MAAM,aAAa,CAAC;AAErB;;GAEG;AAEH,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,WAAW,CAAC;IAE9B,YAAY,EAAE,MAAM,CAAC;IAErB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,wBAAwB,EAAE,MAAM,CAAC;IACjC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED,eAAO,MAAM,gBAAgB,EAAE,gBAW9B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDnB,CAAC;AAeH,eAAO,MAAM,iBAAiB,EAAE,MAAuB,CAAC;AAGxD,eAAO,MAAM,gBAAgB,EAAE,MAAW,CAAC;AAE3C,eAAO,MAAM,gBAAgB,EAAE,MAAW,CAAC;AAE3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;CAsC/B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDzB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;CAclC,CAAC;AAEH;;GAEG;AAEH,UAAU,sBAAsB;IAC9B,eAAe,EAAE,cAAc,CAAC;IAChC,iBAAiB,EAAE,WAAW,CAAC;IAC/B,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,cAAc,CAAC;IAC7B,QAAQ,EAAE,eAAe,CAAC;IAC1B,WAAW,EAAE,eAAe,CAAC;CAC9B;AAED,eAAO,MAAM,sBAAsB,EAAE,sBAOpC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;CAW3B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;CAYzB,CAAC;AAEH;;GAEG;AAEH,UAAU,2BAA2B;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"IOStyles.d.ts","sourceRoot":"","sources":["../../../src/core/IOStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EACL,WAAW,EAGX,QAAQ,EACR,cAAc,EACf,MAAM,aAAa,CAAC;AAErB;;GAEG;AAEH,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,WAAW,CAAC;IAE9B,YAAY,EAAE,MAAM,CAAC;IAErB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,wBAAwB,EAAE,MAAM,CAAC;IACjC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED,eAAO,MAAM,gBAAgB,EAAE,gBAW9B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDnB,CAAC;AAeH,eAAO,MAAM,iBAAiB,EAAE,MAAuB,CAAC;AAGxD,eAAO,MAAM,gBAAgB,EAAE,MAAW,CAAC;AAE3C,eAAO,MAAM,gBAAgB,EAAE,MAAW,CAAC;AAE3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;CAsC/B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDzB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;CAclC,CAAC;AAEH;;GAEG;AAEH,UAAU,sBAAsB;IAC9B,eAAe,EAAE,cAAc,CAAC;IAChC,iBAAiB,EAAE,WAAW,CAAC;IAC/B,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,cAAc,CAAC;IAC7B,QAAQ,EAAE,eAAe,CAAC;IAC1B,WAAW,EAAE,eAAe,CAAC;CAC9B;AAED,eAAO,MAAM,sBAAsB,EAAE,sBAOpC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;CAW3B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;CAYzB,CAAC;AAEH;;GAEG;AAEH,UAAU,2BAA2B;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,iCAAiC;IACzC,mBAAmB,EAAE,QAAQ,CAAC;IAC9B,cAAc,EAAE,QAAQ,CAAC;CAC1B;AAED,eAAO,MAAM,2BAA2B,EAAE,2BAGzC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,iCAI7C,CAAC;AAEJ,UAAU,+BAA+B;IACvC,eAAe,EAAE,cAAc,CAAC;IAChC,iBAAiB,EAAE,WAAW,CAAC;IAC/B,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,QAAQ,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,iBAAiB,EAAE,QAAQ,CAAC;CAC7B;AAED,eAAO,MAAM,+BAA+B,EAAE,+BAQ3C,CAAC;AAEJ,eAAO,MAAM,yBAAyB;;;;;;;;;;;CAWpC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type LayoutChangeEvent } from "react-native";
|
|
2
|
+
type Params = {
|
|
3
|
+
defaultExpanded?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const useAccordionAnimation: ({ defaultExpanded }?: Params) => {
|
|
6
|
+
expanded: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Toggle the accordion expanded/collapsed state.
|
|
9
|
+
*/
|
|
10
|
+
toggleAccordion: () => void;
|
|
11
|
+
/**
|
|
12
|
+
* The style to apply to the accordion icon.
|
|
13
|
+
*/
|
|
14
|
+
iconAnimatedStyle: {
|
|
15
|
+
transform: {
|
|
16
|
+
rotate: "0deg" | "180deg";
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Callback to execute on the body's inner container layout.
|
|
21
|
+
*/
|
|
22
|
+
onBodyLayout: (event: LayoutChangeEvent) => void;
|
|
23
|
+
/**
|
|
24
|
+
* The animated style to apply to the collapsible body container – it must be an `Animated.View`.
|
|
25
|
+
*/
|
|
26
|
+
bodyAnimatedStyle: ({
|
|
27
|
+
overflow: "hidden";
|
|
28
|
+
} | {
|
|
29
|
+
height: number;
|
|
30
|
+
})[];
|
|
31
|
+
/**
|
|
32
|
+
* The style to apply to the inner body container.
|
|
33
|
+
*/
|
|
34
|
+
bodyInnerStyle: {
|
|
35
|
+
position: "absolute";
|
|
36
|
+
padding: 16;
|
|
37
|
+
paddingTop: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=useAccordionAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAccordionAnimation.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAccordionAnimation.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAUlE,KAAK,MAAM,GAAG;IACZ,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,qBAAqB,yBAE/B,MAAM;;IAwDL;;OAEG;;IAEH;;OAEG;;;;;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;IAEH;;OAEG;;;;;;CAGN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
LayoutChangeEvent,
|
|
4
|
-
StyleSheet,
|
|
5
|
-
TouchableWithoutFeedback,
|
|
6
|
-
View
|
|
7
|
-
} from "react-native";
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StyleSheet, TouchableWithoutFeedback, View } from "react-native";
|
|
8
3
|
import LinearGradient from "react-native-linear-gradient";
|
|
9
|
-
import Animated
|
|
10
|
-
useAnimatedStyle,
|
|
11
|
-
withSpring
|
|
12
|
-
} from "react-native-reanimated";
|
|
4
|
+
import Animated from "react-native-reanimated";
|
|
13
5
|
import {
|
|
14
6
|
IOAccordionRadius,
|
|
15
7
|
IOStyles,
|
|
16
8
|
useIOTheme,
|
|
17
9
|
type IOSpacingScale
|
|
18
10
|
} from "../../core";
|
|
19
|
-
import { IOSpringValues } from "../../core/IOAnimations";
|
|
20
11
|
import { IOColors, hexToRgba } from "../../core/IOColors";
|
|
12
|
+
import { useAccordionAnimation } from "../../hooks/useAccordionAnimation";
|
|
21
13
|
import { IOIconSizeScale, IOIcons, Icon } from "../icons/Icon";
|
|
22
14
|
import { Body, H6 } from "../typography";
|
|
23
15
|
|
|
@@ -28,11 +20,6 @@ export type AccordionItem = {
|
|
|
28
20
|
icon?: IOIcons;
|
|
29
21
|
};
|
|
30
22
|
|
|
31
|
-
type AccordionBody = {
|
|
32
|
-
children: React.ReactNode;
|
|
33
|
-
expanded: boolean;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
23
|
const accordionBodySpacing: IOSpacingScale = 16;
|
|
37
24
|
const accordionIconMargin: IOSpacingScale = 12;
|
|
38
25
|
const accordionChevronMargin: IOSpacingScale = 8;
|
|
@@ -40,40 +27,6 @@ const accordionChevronMargin: IOSpacingScale = 8;
|
|
|
40
27
|
// Icon size
|
|
41
28
|
const iconSize: IOIconSizeScale = 24;
|
|
42
29
|
|
|
43
|
-
/* The code below is a re-adaptation of Dima Portenko's code:
|
|
44
|
-
https://github.com/dimaportenko/reanimated-collapsable-card-tutorial
|
|
45
|
-
*/
|
|
46
|
-
export const AccordionBody = ({ children, expanded }: AccordionBody) => {
|
|
47
|
-
const [height, setHeight] = useState(0);
|
|
48
|
-
|
|
49
|
-
const onLayout = (event: LayoutChangeEvent) => {
|
|
50
|
-
const { height: onLayoutHeight } = event.nativeEvent.layout;
|
|
51
|
-
|
|
52
|
-
if (onLayoutHeight > 0 && height !== onLayoutHeight) {
|
|
53
|
-
setHeight(onLayoutHeight);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
const animatedHeightStyle = useAnimatedStyle(
|
|
58
|
-
() => ({
|
|
59
|
-
height: expanded
|
|
60
|
-
? withSpring(height, IOSpringValues.accordion)
|
|
61
|
-
: withSpring(0, IOSpringValues.accordion)
|
|
62
|
-
}),
|
|
63
|
-
[expanded]
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
return (
|
|
67
|
-
<Animated.View
|
|
68
|
-
style={[animatedHeightStyle, styles.accordionCollapsableContainer]}
|
|
69
|
-
>
|
|
70
|
-
<View style={styles.accordionBodyContainer} onLayout={onLayout}>
|
|
71
|
-
{children}
|
|
72
|
-
</View>
|
|
73
|
-
</Animated.View>
|
|
74
|
-
);
|
|
75
|
-
};
|
|
76
|
-
|
|
77
30
|
export const AccordionItem = ({
|
|
78
31
|
title,
|
|
79
32
|
accessibilityLabel,
|
|
@@ -81,30 +34,21 @@ export const AccordionItem = ({
|
|
|
81
34
|
icon
|
|
82
35
|
}: AccordionItem) => {
|
|
83
36
|
const theme = useIOTheme();
|
|
84
|
-
|
|
37
|
+
|
|
38
|
+
const {
|
|
39
|
+
expanded,
|
|
40
|
+
toggleAccordion,
|
|
41
|
+
onBodyLayout,
|
|
42
|
+
iconAnimatedStyle,
|
|
43
|
+
bodyAnimatedStyle,
|
|
44
|
+
bodyInnerStyle
|
|
45
|
+
} = useAccordionAnimation();
|
|
85
46
|
|
|
86
47
|
// Visual attributes
|
|
87
48
|
const accordionBackground: IOColors = theme["appBackground-primary"];
|
|
88
49
|
const accordionBorder: IOColors = theme["cardBorder-default"];
|
|
89
50
|
const accordionIconColor: IOColors = theme["icon-decorative"];
|
|
90
51
|
|
|
91
|
-
const onItemPress = () => {
|
|
92
|
-
setExpanded(!expanded);
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
const animatedChevron = useAnimatedStyle(
|
|
96
|
-
() => ({
|
|
97
|
-
transform: [
|
|
98
|
-
{
|
|
99
|
-
rotate: expanded
|
|
100
|
-
? withSpring(`180deg`, IOSpringValues.accordion)
|
|
101
|
-
: withSpring(`0deg`, IOSpringValues.accordion)
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
}),
|
|
105
|
-
[expanded]
|
|
106
|
-
);
|
|
107
|
-
|
|
108
52
|
return (
|
|
109
53
|
<View
|
|
110
54
|
style={[
|
|
@@ -120,7 +64,7 @@ export const AccordionItem = ({
|
|
|
120
64
|
accessibilityRole="button"
|
|
121
65
|
accessibilityState={{ expanded }}
|
|
122
66
|
accessibilityLabel={accessibilityLabel ?? title}
|
|
123
|
-
onPress={
|
|
67
|
+
onPress={toggleAccordion}
|
|
124
68
|
>
|
|
125
69
|
<View style={styles.textContainer}>
|
|
126
70
|
<View
|
|
@@ -146,7 +90,7 @@ export const AccordionItem = ({
|
|
|
146
90
|
<H6 color={theme["textBody-default"]}>{title}</H6>
|
|
147
91
|
</View>
|
|
148
92
|
</View>
|
|
149
|
-
<Animated.View style={
|
|
93
|
+
<Animated.View style={iconAnimatedStyle}>
|
|
150
94
|
<Icon
|
|
151
95
|
name="chevronBottom"
|
|
152
96
|
color={theme["interactiveElem-default"]}
|
|
@@ -155,9 +99,12 @@ export const AccordionItem = ({
|
|
|
155
99
|
</View>
|
|
156
100
|
</TouchableWithoutFeedback>
|
|
157
101
|
|
|
158
|
-
<
|
|
159
|
-
{
|
|
160
|
-
|
|
102
|
+
<Animated.View style={bodyAnimatedStyle}>
|
|
103
|
+
<View style={bodyInnerStyle} onLayout={onBodyLayout}>
|
|
104
|
+
{typeof body === "string" ? <Body>{body}</Body> : body}
|
|
105
|
+
</View>
|
|
106
|
+
</Animated.View>
|
|
107
|
+
|
|
161
108
|
{/* This gradient adds a smooth end to the content. If it is missing,
|
|
162
109
|
the content will be cut sharply during the height transition. */}
|
|
163
110
|
<LinearGradient
|
|
@@ -185,14 +132,6 @@ const styles = StyleSheet.create({
|
|
|
185
132
|
borderRadius: IOAccordionRadius,
|
|
186
133
|
borderCurve: "continuous"
|
|
187
134
|
},
|
|
188
|
-
accordionCollapsableContainer: {
|
|
189
|
-
overflow: "hidden"
|
|
190
|
-
},
|
|
191
|
-
accordionBodyContainer: {
|
|
192
|
-
position: "absolute",
|
|
193
|
-
padding: accordionBodySpacing,
|
|
194
|
-
paddingTop: 0
|
|
195
|
-
},
|
|
196
135
|
textContainer: {
|
|
197
136
|
padding: accordionBodySpacing,
|
|
198
137
|
flexDirection: "row",
|
|
@@ -206,13 +206,14 @@ export const Banner = ({
|
|
|
206
206
|
{action && (
|
|
207
207
|
/* Disable pointer events to avoid
|
|
208
208
|
pressed state on the button */
|
|
209
|
-
<
|
|
209
|
+
<Pressable
|
|
210
210
|
pointerEvents="none"
|
|
211
211
|
importantForAccessibility="no-hide-descendants"
|
|
212
212
|
accessible={true}
|
|
213
213
|
accessibilityElementsHidden
|
|
214
214
|
accessibilityLabel={action}
|
|
215
215
|
accessibilityRole="button"
|
|
216
|
+
onPress={onPress}
|
|
216
217
|
>
|
|
217
218
|
<VSpacer size={4} />
|
|
218
219
|
<IOText
|
|
@@ -229,7 +230,7 @@ export const Banner = ({
|
|
|
229
230
|
>
|
|
230
231
|
{action}
|
|
231
232
|
</IOText>
|
|
232
|
-
</
|
|
233
|
+
</Pressable>
|
|
233
234
|
)}
|
|
234
235
|
</View>
|
|
235
236
|
<View style={[styles.bleedPictogram, IOStyles.selfCenter]}>
|
|
@@ -103,8 +103,36 @@ exports[`Test Banner Components - Experimental Enabled Banner Snapshot 1`] = `
|
|
|
103
103
|
accessibilityElementsHidden={true}
|
|
104
104
|
accessibilityLabel="Action text"
|
|
105
105
|
accessibilityRole="button"
|
|
106
|
+
accessibilityState={
|
|
107
|
+
{
|
|
108
|
+
"busy": undefined,
|
|
109
|
+
"checked": undefined,
|
|
110
|
+
"disabled": undefined,
|
|
111
|
+
"expanded": undefined,
|
|
112
|
+
"selected": undefined,
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
accessibilityValue={
|
|
116
|
+
{
|
|
117
|
+
"max": undefined,
|
|
118
|
+
"min": undefined,
|
|
119
|
+
"now": undefined,
|
|
120
|
+
"text": undefined,
|
|
121
|
+
}
|
|
122
|
+
}
|
|
106
123
|
accessible={true}
|
|
124
|
+
collapsable={false}
|
|
125
|
+
focusable={true}
|
|
107
126
|
importantForAccessibility="no-hide-descendants"
|
|
127
|
+
onBlur={[Function]}
|
|
128
|
+
onClick={[Function]}
|
|
129
|
+
onFocus={[Function]}
|
|
130
|
+
onResponderGrant={[Function]}
|
|
131
|
+
onResponderMove={[Function]}
|
|
132
|
+
onResponderRelease={[Function]}
|
|
133
|
+
onResponderTerminate={[Function]}
|
|
134
|
+
onResponderTerminationRequest={[Function]}
|
|
135
|
+
onStartShouldSetResponder={[Function]}
|
|
108
136
|
pointerEvents="none"
|
|
109
137
|
>
|
|
110
138
|
<View
|
|
@@ -380,8 +408,36 @@ exports[`Test Banner Components Banner Snapshot 1`] = `
|
|
|
380
408
|
accessibilityElementsHidden={true}
|
|
381
409
|
accessibilityLabel="Action text"
|
|
382
410
|
accessibilityRole="button"
|
|
411
|
+
accessibilityState={
|
|
412
|
+
{
|
|
413
|
+
"busy": undefined,
|
|
414
|
+
"checked": undefined,
|
|
415
|
+
"disabled": undefined,
|
|
416
|
+
"expanded": undefined,
|
|
417
|
+
"selected": undefined,
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
accessibilityValue={
|
|
421
|
+
{
|
|
422
|
+
"max": undefined,
|
|
423
|
+
"min": undefined,
|
|
424
|
+
"now": undefined,
|
|
425
|
+
"text": undefined,
|
|
426
|
+
}
|
|
427
|
+
}
|
|
383
428
|
accessible={true}
|
|
429
|
+
collapsable={false}
|
|
430
|
+
focusable={true}
|
|
384
431
|
importantForAccessibility="no-hide-descendants"
|
|
432
|
+
onBlur={[Function]}
|
|
433
|
+
onClick={[Function]}
|
|
434
|
+
onFocus={[Function]}
|
|
435
|
+
onResponderGrant={[Function]}
|
|
436
|
+
onResponderMove={[Function]}
|
|
437
|
+
onResponderRelease={[Function]}
|
|
438
|
+
onResponderTerminate={[Function]}
|
|
439
|
+
onResponderTerminationRequest={[Function]}
|
|
440
|
+
onStartShouldSetResponder={[Function]}
|
|
385
441
|
pointerEvents="none"
|
|
386
442
|
>
|
|
387
443
|
<View
|
|
@@ -171,7 +171,7 @@ export const ButtonSolid = forwardRef<View, ButtonSolidProps>(
|
|
|
171
171
|
disabled: IOColors[theme["interactiveElem-disabled"]]
|
|
172
172
|
},
|
|
173
173
|
foreground: {
|
|
174
|
-
default: theme["buttonText-
|
|
174
|
+
default: theme["buttonText-danger"],
|
|
175
175
|
disabled: theme["buttonText-disabled"]
|
|
176
176
|
}
|
|
177
177
|
},
|
|
@@ -15,7 +15,7 @@ import Animated, {
|
|
|
15
15
|
withTiming
|
|
16
16
|
} from "react-native-reanimated";
|
|
17
17
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
18
|
-
import { useIOExperimentalDesign } from "../../core";
|
|
18
|
+
import { useIOExperimentalDesign, useIOTheme } from "../../core";
|
|
19
19
|
import { IOSpringValues } from "../../core/IOAnimations";
|
|
20
20
|
import { IOColors } from "../../core/IOColors";
|
|
21
21
|
import {
|
|
@@ -59,12 +59,13 @@ export const AnimatedCheckbox = ({
|
|
|
59
59
|
onPress,
|
|
60
60
|
disabled
|
|
61
61
|
}: OwnProps) => {
|
|
62
|
+
const theme = useIOTheme();
|
|
62
63
|
const { dynamicFontScale } = useIOFontDynamicScale();
|
|
63
64
|
const isChecked = checked ?? false;
|
|
64
65
|
|
|
65
66
|
const { isExperimental } = useIOExperimentalDesign();
|
|
66
|
-
const borderColorOffState =
|
|
67
|
-
|
|
67
|
+
const borderColorOffState = IOColors[theme["selection-border-off"]];
|
|
68
|
+
|
|
68
69
|
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
69
70
|
const legacyBorderColorOffState =
|
|
70
71
|
IOColors[IOSelectionTickLegacyVisualParams.borderColorOffState];
|
|
@@ -72,12 +73,12 @@ export const AnimatedCheckbox = ({
|
|
|
72
73
|
? borderColorOffState
|
|
73
74
|
: legacyBorderColorOffState;
|
|
74
75
|
|
|
75
|
-
const backgroundColorOnState =
|
|
76
|
-
|
|
76
|
+
const backgroundColorOnState = IOColors[theme["selection-background-on"]];
|
|
77
|
+
|
|
77
78
|
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
78
79
|
const legacyBackgroundColorOnState =
|
|
79
80
|
IOColors[IOSelectionTickLegacyVisualParams.bgColorOnState];
|
|
80
|
-
const
|
|
81
|
+
const backgroundColor = isExperimental
|
|
81
82
|
? backgroundColorOnState
|
|
82
83
|
: legacyBackgroundColorOnState;
|
|
83
84
|
|
|
@@ -139,9 +140,7 @@ export const AnimatedCheckbox = ({
|
|
|
139
140
|
style={[
|
|
140
141
|
styles.checkBoxSquare,
|
|
141
142
|
checkboxSizeStyle,
|
|
142
|
-
{
|
|
143
|
-
backgroundColor: backgroundColorProp
|
|
144
|
-
},
|
|
143
|
+
{ backgroundColor },
|
|
145
144
|
animatedCheckboxSquare
|
|
146
145
|
]}
|
|
147
146
|
/>
|
|
@@ -150,7 +149,7 @@ export const AnimatedCheckbox = ({
|
|
|
150
149
|
<AnimatedTick
|
|
151
150
|
size={size}
|
|
152
151
|
progress={tickAnimationProgress}
|
|
153
|
-
stroke={IOColors[
|
|
152
|
+
stroke={IOColors[theme["selection-tick"]]}
|
|
154
153
|
/>
|
|
155
154
|
</View>
|
|
156
155
|
)}
|