@pagopa/io-app-design-system 5.0.0-7 → 5.0.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.
Files changed (181) hide show
  1. package/lib/commonjs/components/accordion/AccordionItem.js +20 -56
  2. package/lib/commonjs/components/accordion/AccordionItem.js.map +1 -1
  3. package/lib/commonjs/components/buttons/ButtonLink.js +1 -1
  4. package/lib/commonjs/components/buttons/ButtonSolid.js +1 -1
  5. package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
  6. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +6 -4
  7. package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
  8. package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js +4 -2
  9. package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
  10. package/lib/commonjs/components/claimsSelector/ClaimsSelector.js +119 -0
  11. package/lib/commonjs/components/claimsSelector/ClaimsSelector.js.map +1 -0
  12. package/lib/commonjs/components/claimsSelector/__test__/ClaimsSelector.test.js +46 -0
  13. package/lib/commonjs/components/claimsSelector/__test__/ClaimsSelector.test.js.map +1 -0
  14. package/lib/commonjs/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +1270 -0
  15. package/lib/commonjs/components/claimsSelector/index.js +17 -0
  16. package/lib/commonjs/components/claimsSelector/index.js.map +1 -0
  17. package/lib/commonjs/components/index.js +11 -0
  18. package/lib/commonjs/components/index.js.map +1 -1
  19. package/lib/commonjs/components/listitems/ListItemCheckbox.js +1 -1
  20. package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -1
  21. package/lib/commonjs/components/listitems/ListItemInfo.js +6 -2
  22. package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
  23. package/lib/commonjs/components/listitems/ListItemRadio.js +1 -1
  24. package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
  25. package/lib/commonjs/components/listitems/ListItemSwitch.js +1 -1
  26. package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -1
  27. package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +10 -0
  28. package/lib/commonjs/components/radio/AnimatedRadio.js +5 -3
  29. package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
  30. package/lib/commonjs/components/switch/NativeSwitch.js +6 -5
  31. package/lib/commonjs/components/switch/NativeSwitch.js.map +1 -1
  32. package/lib/commonjs/components/switch/index.js +0 -22
  33. package/lib/commonjs/components/switch/index.js.map +1 -1
  34. package/lib/commonjs/components/textInput/TextInputValidation.js +19 -7
  35. package/lib/commonjs/components/textInput/TextInputValidation.js.map +1 -1
  36. package/lib/commonjs/components/typography/markdown/MdH1.js +1 -2
  37. package/lib/commonjs/components/typography/markdown/MdH1.js.map +1 -1
  38. package/lib/commonjs/components/typography/markdown/MdH2.js +2 -2
  39. package/lib/commonjs/components/typography/markdown/MdH2.js.map +1 -1
  40. package/lib/commonjs/components/typography/markdown/MdH3.js +2 -2
  41. package/lib/commonjs/components/typography/markdown/MdH3.js.map +1 -1
  42. package/lib/commonjs/core/IOColors.js +26 -5
  43. package/lib/commonjs/core/IOColors.js.map +1 -1
  44. package/lib/commonjs/core/IOStyles.js +2 -16
  45. package/lib/commonjs/core/IOStyles.js.map +1 -1
  46. package/lib/commonjs/hooks/useAccordionAnimation.js +83 -0
  47. package/lib/commonjs/hooks/useAccordionAnimation.js.map +1 -0
  48. package/lib/commonjs/index.js +11 -0
  49. package/lib/commonjs/index.js.map +1 -1
  50. package/lib/module/components/accordion/AccordionItem.js +19 -52
  51. package/lib/module/components/accordion/AccordionItem.js.map +1 -1
  52. package/lib/module/components/buttons/ButtonLink.js +1 -1
  53. package/lib/module/components/buttons/ButtonSolid.js +1 -1
  54. package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
  55. package/lib/module/components/checkbox/AnimatedCheckbox.js +6 -4
  56. package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
  57. package/lib/module/components/checkbox/AnimatedMessageCheckbox.js +5 -3
  58. package/lib/module/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
  59. package/lib/module/components/claimsSelector/ClaimsSelector.js +109 -0
  60. package/lib/module/components/claimsSelector/ClaimsSelector.js.map +1 -0
  61. package/lib/module/components/claimsSelector/__test__/ClaimsSelector.test.js +41 -0
  62. package/lib/module/components/claimsSelector/__test__/ClaimsSelector.test.js.map +1 -0
  63. package/lib/module/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +1270 -0
  64. package/lib/module/components/claimsSelector/index.js +2 -0
  65. package/lib/module/components/claimsSelector/index.js.map +1 -0
  66. package/lib/module/components/index.js +1 -0
  67. package/lib/module/components/index.js.map +1 -1
  68. package/lib/module/components/listitems/ListItemCheckbox.js +1 -1
  69. package/lib/module/components/listitems/ListItemCheckbox.js.map +1 -1
  70. package/lib/module/components/listitems/ListItemInfo.js +6 -2
  71. package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
  72. package/lib/module/components/listitems/ListItemRadio.js +1 -1
  73. package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
  74. package/lib/module/components/listitems/ListItemSwitch.js +1 -1
  75. package/lib/module/components/listitems/ListItemSwitch.js.map +1 -1
  76. package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +10 -0
  77. package/lib/module/components/radio/AnimatedRadio.js +5 -3
  78. package/lib/module/components/radio/AnimatedRadio.js.map +1 -1
  79. package/lib/module/components/switch/NativeSwitch.js +6 -5
  80. package/lib/module/components/switch/NativeSwitch.js.map +1 -1
  81. package/lib/module/components/switch/index.js +0 -2
  82. package/lib/module/components/switch/index.js.map +1 -1
  83. package/lib/module/components/textInput/TextInputValidation.js +20 -8
  84. package/lib/module/components/textInput/TextInputValidation.js.map +1 -1
  85. package/lib/module/components/typography/markdown/MdH1.js +1 -2
  86. package/lib/module/components/typography/markdown/MdH1.js.map +1 -1
  87. package/lib/module/components/typography/markdown/MdH2.js +2 -2
  88. package/lib/module/components/typography/markdown/MdH2.js.map +1 -1
  89. package/lib/module/components/typography/markdown/MdH3.js +2 -2
  90. package/lib/module/components/typography/markdown/MdH3.js.map +1 -1
  91. package/lib/module/core/IOColors.js +26 -5
  92. package/lib/module/core/IOColors.js.map +1 -1
  93. package/lib/module/core/IOStyles.js +1 -14
  94. package/lib/module/core/IOStyles.js.map +1 -1
  95. package/lib/module/hooks/useAccordionAnimation.js +76 -0
  96. package/lib/module/hooks/useAccordionAnimation.js.map +1 -0
  97. package/lib/module/index.js +1 -0
  98. package/lib/module/index.js.map +1 -1
  99. package/lib/typescript/components/accordion/AccordionItem.d.ts +0 -6
  100. package/lib/typescript/components/accordion/AccordionItem.d.ts.map +1 -1
  101. package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
  102. package/lib/typescript/components/checkbox/AnimatedMessageCheckbox.d.ts.map +1 -1
  103. package/lib/typescript/components/claimsSelector/ClaimsSelector.d.ts +42 -0
  104. package/lib/typescript/components/claimsSelector/ClaimsSelector.d.ts.map +1 -0
  105. package/lib/typescript/components/claimsSelector/__test__/ClaimsSelector.test.d.ts +2 -0
  106. package/lib/typescript/components/claimsSelector/__test__/ClaimsSelector.test.d.ts.map +1 -0
  107. package/lib/typescript/components/claimsSelector/index.d.ts +2 -0
  108. package/lib/typescript/components/claimsSelector/index.d.ts.map +1 -0
  109. package/lib/typescript/components/index.d.ts +1 -0
  110. package/lib/typescript/components/index.d.ts.map +1 -1
  111. package/lib/typescript/components/listitems/ListItemInfo.d.ts +2 -1
  112. package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
  113. package/lib/typescript/components/radio/AnimatedRadio.d.ts.map +1 -1
  114. package/lib/typescript/components/switch/NativeSwitch.d.ts.map +1 -1
  115. package/lib/typescript/components/switch/index.d.ts +0 -2
  116. package/lib/typescript/components/switch/index.d.ts.map +1 -1
  117. package/lib/typescript/components/textInput/TextInputValidation.d.ts +31 -4
  118. package/lib/typescript/components/textInput/TextInputValidation.d.ts.map +1 -1
  119. package/lib/typescript/components/typography/BodyMonospace.d.ts +1 -1
  120. package/lib/typescript/components/typography/ButtonText.d.ts +1 -1
  121. package/lib/typescript/components/typography/Caption.d.ts +1 -1
  122. package/lib/typescript/components/typography/H1.d.ts +1 -1
  123. package/lib/typescript/components/typography/H2.d.ts +1 -1
  124. package/lib/typescript/components/typography/H3.d.ts +1 -1
  125. package/lib/typescript/components/typography/H4.d.ts +1 -1
  126. package/lib/typescript/components/typography/H5.d.ts +1 -1
  127. package/lib/typescript/components/typography/H6.d.ts +1 -1
  128. package/lib/typescript/components/typography/Hero.d.ts +1 -1
  129. package/lib/typescript/components/typography/markdown/MdH1.d.ts +1 -1
  130. package/lib/typescript/components/typography/markdown/MdH1.d.ts.map +1 -1
  131. package/lib/typescript/components/typography/markdown/MdH2.d.ts +1 -1
  132. package/lib/typescript/components/typography/markdown/MdH3.d.ts +1 -1
  133. package/lib/typescript/core/IOColors.d.ts +4 -1
  134. package/lib/typescript/core/IOColors.d.ts.map +1 -1
  135. package/lib/typescript/core/IOStyles.d.ts +0 -14
  136. package/lib/typescript/core/IOStyles.d.ts.map +1 -1
  137. package/lib/typescript/hooks/useAccordionAnimation.d.ts +41 -0
  138. package/lib/typescript/hooks/useAccordionAnimation.d.ts.map +1 -0
  139. package/lib/typescript/index.d.ts +1 -0
  140. package/lib/typescript/index.d.ts.map +1 -1
  141. package/package.json +1 -1
  142. package/src/components/accordion/AccordionItem.tsx +21 -82
  143. package/src/components/buttons/ButtonLink.tsx +1 -1
  144. package/src/components/buttons/ButtonSolid.tsx +1 -1
  145. package/src/components/checkbox/AnimatedCheckbox.tsx +6 -4
  146. package/src/components/checkbox/AnimatedMessageCheckbox.tsx +5 -6
  147. package/src/components/claimsSelector/ClaimsSelector.tsx +185 -0
  148. package/src/components/claimsSelector/__test__/ClaimsSelector.test.tsx +55 -0
  149. package/src/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +1270 -0
  150. package/src/components/claimsSelector/index.tsx +1 -0
  151. package/src/components/index.tsx +1 -0
  152. package/src/components/listitems/ListItemCheckbox.tsx +1 -1
  153. package/src/components/listitems/ListItemInfo.tsx +7 -2
  154. package/src/components/listitems/ListItemRadio.tsx +1 -1
  155. package/src/components/listitems/ListItemSwitch.tsx +1 -1
  156. package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +10 -0
  157. package/src/components/radio/AnimatedRadio.tsx +5 -3
  158. package/src/components/switch/NativeSwitch.tsx +7 -5
  159. package/src/components/switch/index.tsx +0 -2
  160. package/src/components/textInput/TextInputValidation.tsx +140 -97
  161. package/src/components/typography/markdown/MdH1.tsx +1 -2
  162. package/src/components/typography/markdown/MdH2.tsx +2 -2
  163. package/src/components/typography/markdown/MdH3.tsx +2 -2
  164. package/src/core/IOColors.ts +31 -4
  165. package/src/core/IOStyles.ts +1 -28
  166. package/src/hooks/useAccordionAnimation.tsx +106 -0
  167. package/src/index.tsx +1 -0
  168. package/lib/commonjs/components/switch/AnimatedSwitch.js +0 -94
  169. package/lib/commonjs/components/switch/AnimatedSwitch.js.map +0 -1
  170. package/lib/commonjs/components/switch/SwitchLabel.js +0 -76
  171. package/lib/commonjs/components/switch/SwitchLabel.js.map +0 -1
  172. package/lib/module/components/switch/AnimatedSwitch.js +0 -85
  173. package/lib/module/components/switch/AnimatedSwitch.js.map +0 -1
  174. package/lib/module/components/switch/SwitchLabel.js +0 -68
  175. package/lib/module/components/switch/SwitchLabel.js.map +0 -1
  176. package/lib/typescript/components/switch/AnimatedSwitch.d.ts +0 -13
  177. package/lib/typescript/components/switch/AnimatedSwitch.d.ts.map +0 -1
  178. package/lib/typescript/components/switch/SwitchLabel.d.ts +0 -18
  179. package/lib/typescript/components/switch/SwitchLabel.d.ts.map +0 -1
  180. package/src/components/switch/AnimatedSwitch.tsx +0 -126
  181. package/src/components/switch/SwitchLabel.tsx +0 -80
@@ -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" | 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" | 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" | 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" | 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" | 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" | 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" | 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" | 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" | 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" | 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" | 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" | 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;AAEH,eAAO,MAAM,IAAI;;;;;8BAoBhB,CAAC"}
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" | 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" | 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" | 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" | 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;
@@ -95,6 +96,8 @@ export declare const IOColorsTints: {
95
96
  "blueIO-850": string;
96
97
  "blueIO-600": string;
97
98
  "blueIO-500": string;
99
+ "blueIO-400": string;
100
+ "blueIO-300": string;
98
101
  "blueIO-200": string;
99
102
  "blueIO-150": string;
100
103
  "blueIO-100": string;
@@ -140,7 +143,7 @@ export declare const IOColorsExtra: {
140
143
  "blueItalia-50": string;
141
144
  };
142
145
  export type IOColorsExtra = keyof typeof IOColorsExtra;
143
- 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"];
146
+ 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"];
144
147
  export type IOTheme = {
145
148
  [K in (typeof themeKeys)[number]]: IOColors;
146
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S,YAAa,UAAU,YAAW,MAAM,WAQ7D,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { IOIconSizeScale } from "../components/icons";
2
- import { IOColors } from "./IOColors";
3
2
  import { IOAppMargin, IOSpacer, IOSpacingScale } from "./IOSpacing";
4
3
  /**
5
4
  * A collection of default styles used within IO App.
@@ -187,21 +186,8 @@ export declare const IOModuleStyles: {
187
186
  interface IOSelectionTickVisualParams {
188
187
  size: IOIconSizeScale;
189
188
  borderWidth: number;
190
- borderColorOffState: IOColors;
191
- bgColorOnState: IOColors;
192
- tickColor: IOColors;
193
- }
194
- interface IOSwitchVisualParams {
195
- width: number;
196
- height: number;
197
- bgColorOffState: IOColors;
198
- bgColorOnState: IOColors;
199
- tickColor: IOColors;
200
- bgCircle: IOColors;
201
- padding: number;
202
189
  }
203
190
  export declare const IOSelectionTickVisualParams: IOSelectionTickVisualParams;
204
- export declare const IOSwitchVisualParams: IOSwitchVisualParams;
205
191
  interface IOSelectionListItemVisualParams {
206
192
  paddingVertical: IOSpacingScale;
207
193
  paddingHorizontal: IOAppMargin;
@@ -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,s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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: "180deg" | "0deg";
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"}
@@ -3,5 +3,6 @@ export * from "./core";
3
3
  export * from "./functions";
4
4
  export * from "./hooks";
5
5
  export * from "./utils/fonts";
6
+ export * from "./utils/accessibility";
6
7
  export * from "./utils/types";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-app-design-system",
3
- "version": "5.0.0-7",
3
+ "version": "5.0.0",
4
4
  "description": "The library defining the core components of the design system of @pagopa/io-app",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -1,23 +1,15 @@
1
- import React, { useState } from "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
- const [expanded, setExpanded] = useState(false);
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={onItemPress}
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={animatedChevron}>
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
- <AccordionBody expanded={expanded}>
159
- {typeof body === "string" ? <Body>{body}</Body> : body}
160
- </AccordionBody>
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",
@@ -94,7 +94,7 @@ export const ButtonLink = forwardRef<View, ButtonLinkProps>(
94
94
  foreground: {
95
95
  default: IOColors[theme["interactiveElem-default"]],
96
96
  pressed: IOColors[theme["interactiveElem-pressed"]],
97
- disabled: hexToRgba(IOColors[theme["interactiveElem-default"]], 0.75)
97
+ disabled: hexToRgba(IOColors[theme["interactiveElem-default"]], 0.85)
98
98
  }
99
99
  },
100
100
  contrast: {
@@ -124,7 +124,7 @@ export const ButtonSolid = forwardRef<View, ButtonSolidProps>(
124
124
  disabled: IOColors[theme["interactiveElem-disabled"]]
125
125
  },
126
126
  foreground: {
127
- default: theme["buttonText-default"],
127
+ default: theme["buttonText-danger"],
128
128
  disabled: theme["buttonText-disabled"]
129
129
  }
130
130
  },
@@ -14,10 +14,11 @@ import Animated, {
14
14
  withSpring,
15
15
  withTiming
16
16
  } from "react-native-reanimated";
17
+ import { useIOFontDynamicScale } from "../../utils/accessibility";
18
+ import { useIOTheme } from "../../core";
17
19
  import { IOSpringValues } from "../../core/IOAnimations";
18
20
  import { IOColors } from "../../core/IOColors";
19
21
  import { IOSelectionTickVisualParams } from "../../core/IOStyles";
20
- import { useIOFontDynamicScale } from "../../utils/accessibility";
21
22
  import { AnimatedTick } from "../common/AnimatedTick";
22
23
 
23
24
  type Props = {
@@ -55,11 +56,12 @@ export const AnimatedCheckbox = ({
55
56
  onPress,
56
57
  disabled
57
58
  }: OwnProps) => {
59
+ const theme = useIOTheme();
58
60
  const { dynamicFontScale } = useIOFontDynamicScale();
59
61
  const isChecked = checked ?? false;
60
62
 
61
- const borderColor = IOColors[IOSelectionTickVisualParams.borderColorOffState];
62
- const backgroundColor = IOColors[IOSelectionTickVisualParams.bgColorOnState];
63
+ const borderColor = IOColors[theme["selection-border-off"]];
64
+ const backgroundColor = IOColors[theme["selection-background-on"]];
63
65
 
64
66
  const squareAnimationProgress = useSharedValue(checked ? 1 : 0);
65
67
  const tickAnimationProgress = useSharedValue(checked ? 1 : 0);
@@ -122,7 +124,7 @@ export const AnimatedCheckbox = ({
122
124
  <AnimatedTick
123
125
  size={size}
124
126
  progress={tickAnimationProgress}
125
- stroke={IOColors[IOSelectionTickVisualParams.tickColor]}
127
+ stroke={IOColors[theme["selection-tick"]]}
126
128
  />
127
129
  </View>
128
130
  )}
@@ -8,13 +8,11 @@ import Animated, {
8
8
  withSpring,
9
9
  withTiming
10
10
  } from "react-native-reanimated";
11
+ import { useIOTheme } from "../../core";
11
12
  import { IOSpringValues } from "../../core/IOAnimations";
12
13
  import { IOColors } from "../../core/IOColors";
13
14
  import { IOSpacingScale } from "../../core/IOSpacing";
14
- import {
15
- IOSelectionTickVisualParams,
16
- IOVisualCostants
17
- } from "../../core/IOStyles";
15
+ import { IOVisualCostants } from "../../core/IOStyles";
18
16
  import { AnimatedTick } from "../common/AnimatedTick";
19
17
 
20
18
  type Props = {
@@ -50,12 +48,13 @@ export const AnimatedMessageCheckbox = ({
50
48
  checked,
51
49
  onPress
52
50
  }: AnimatedMessageCheckbox) => {
51
+ const theme = useIOTheme();
53
52
  const isChecked = !!checked;
54
53
 
55
54
  const shapeAnimationProgress = useSharedValue(checked ? 1 : 0);
56
55
  const tickAnimationProgress = useSharedValue(checked ? 1 : 0);
57
56
 
58
- const backgroundColor = IOColors[IOSelectionTickVisualParams.bgColorOnState];
57
+ const backgroundColor = IOColors[theme["selection-background-on"]];
59
58
 
60
59
  useEffect(() => {
61
60
  // eslint-disable-next-line functional/immutable-data
@@ -99,7 +98,7 @@ export const AnimatedMessageCheckbox = ({
99
98
  <AnimatedTick
100
99
  progress={tickAnimationProgress}
101
100
  strokeWidth={1.5}
102
- stroke={IOColors[IOSelectionTickVisualParams.tickColor]}
101
+ stroke={IOColors[theme["selection-tick"]]}
103
102
  />
104
103
  )}
105
104
  </Pressable>