@pagopa/io-app-design-system 5.0.0-2 → 5.0.0-3

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 (204) hide show
  1. package/lib/commonjs/components/alert/Alert.js.map +1 -1
  2. package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +0 -4
  3. package/lib/commonjs/components/buttons/ButtonOutline.js +8 -8
  4. package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
  5. package/lib/commonjs/components/buttons/IconButton.js +1 -1
  6. package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
  7. package/lib/commonjs/components/buttons/IconButtonContained.js +3 -3
  8. package/lib/commonjs/components/buttons/IconButtonContained.js.map +1 -1
  9. package/lib/commonjs/components/icons/Icon.js +2 -2
  10. package/lib/commonjs/components/icons/Icon.js.map +1 -1
  11. package/lib/commonjs/components/icons/README.md +1 -1
  12. package/lib/commonjs/components/layout/HeaderFirstLevel.js +35 -15
  13. package/lib/commonjs/components/layout/HeaderFirstLevel.js.map +1 -1
  14. package/lib/commonjs/components/listitems/ListItemHeader.js +9 -20
  15. package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -1
  16. package/lib/commonjs/components/listitems/ListItemInfo.js +47 -13
  17. package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
  18. package/lib/commonjs/components/listitems/PressableListItemBase.js.map +1 -1
  19. package/lib/commonjs/components/modules/PressableModuleBase.js +10 -2
  20. package/lib/commonjs/components/modules/PressableModuleBase.js.map +1 -1
  21. package/lib/commonjs/components/numberpad/NumberButton.js +12 -2
  22. package/lib/commonjs/components/numberpad/NumberButton.js.map +1 -1
  23. package/lib/commonjs/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +40 -20
  24. package/lib/commonjs/components/otpInput/OTPInput.js +2 -1
  25. package/lib/commonjs/components/otpInput/OTPInput.js.map +1 -1
  26. package/lib/commonjs/components/pictograms/Pictogram.js +3 -24
  27. package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
  28. package/lib/commonjs/components/pictograms/svg/{PictogramUmbrellaNew.js → PictogramUmbrella.js} +3 -3
  29. package/lib/commonjs/components/pictograms/svg/PictogramUmbrella.js.map +1 -0
  30. package/lib/commonjs/components/searchInput/SearchInput.js +15 -4
  31. package/lib/commonjs/components/searchInput/SearchInput.js.map +1 -1
  32. package/lib/commonjs/components/spacer/Spacer.js +1 -1
  33. package/lib/commonjs/components/spacer/Spacer.js.map +1 -1
  34. package/lib/commonjs/components/textInput/TextInputBase.js +18 -15
  35. package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
  36. package/lib/commonjs/components/textInput/TextInputValidation.js +8 -6
  37. package/lib/commonjs/components/textInput/TextInputValidation.js.map +1 -1
  38. package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +7 -7
  39. package/lib/commonjs/components/typography/__test__/typography.test.js +13 -13
  40. package/lib/commonjs/components/typography/__test__/typography.test.js.map +1 -1
  41. package/lib/commonjs/core/IOColors.js +21 -105
  42. package/lib/commonjs/core/IOColors.js.map +1 -1
  43. package/lib/commonjs/core/IOThemeContextProvider.js +14 -9
  44. package/lib/commonjs/core/IOThemeContextProvider.js.map +1 -1
  45. package/lib/module/components/alert/Alert.js.map +1 -1
  46. package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +0 -4
  47. package/lib/module/components/buttons/ButtonOutline.js +8 -8
  48. package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
  49. package/lib/module/components/buttons/IconButton.js +1 -1
  50. package/lib/module/components/buttons/IconButton.js.map +1 -1
  51. package/lib/module/components/buttons/IconButtonContained.js +3 -3
  52. package/lib/module/components/buttons/IconButtonContained.js.map +1 -1
  53. package/lib/module/components/icons/Icon.js +2 -2
  54. package/lib/module/components/icons/Icon.js.map +1 -1
  55. package/lib/module/components/icons/README.md +1 -1
  56. package/lib/module/components/layout/HeaderFirstLevel.js +37 -17
  57. package/lib/module/components/layout/HeaderFirstLevel.js.map +1 -1
  58. package/lib/module/components/listitems/ListItemHeader.js +9 -20
  59. package/lib/module/components/listitems/ListItemHeader.js.map +1 -1
  60. package/lib/module/components/listitems/ListItemInfo.js +48 -15
  61. package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
  62. package/lib/module/components/listitems/PressableListItemBase.js.map +1 -1
  63. package/lib/module/components/modules/PressableModuleBase.js +10 -2
  64. package/lib/module/components/modules/PressableModuleBase.js.map +1 -1
  65. package/lib/module/components/numberpad/NumberButton.js +14 -4
  66. package/lib/module/components/numberpad/NumberButton.js.map +1 -1
  67. package/lib/module/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +40 -20
  68. package/lib/module/components/otpInput/OTPInput.js +2 -1
  69. package/lib/module/components/otpInput/OTPInput.js.map +1 -1
  70. package/lib/module/components/pictograms/Pictogram.js +2 -22
  71. package/lib/module/components/pictograms/Pictogram.js.map +1 -1
  72. package/lib/module/components/pictograms/svg/{PictogramUmbrellaNew.js → PictogramUmbrella.js} +3 -3
  73. package/lib/module/components/pictograms/svg/PictogramUmbrella.js.map +1 -0
  74. package/lib/module/components/searchInput/SearchInput.js +15 -4
  75. package/lib/module/components/searchInput/SearchInput.js.map +1 -1
  76. package/lib/module/components/spacer/Spacer.js +1 -1
  77. package/lib/module/components/spacer/Spacer.js.map +1 -1
  78. package/lib/module/components/textInput/TextInputBase.js +19 -16
  79. package/lib/module/components/textInput/TextInputBase.js.map +1 -1
  80. package/lib/module/components/textInput/TextInputValidation.js +8 -6
  81. package/lib/module/components/textInput/TextInputValidation.js.map +1 -1
  82. package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +7 -7
  83. package/lib/module/components/typography/__test__/typography.test.js +13 -13
  84. package/lib/module/components/typography/__test__/typography.test.js.map +1 -1
  85. package/lib/module/core/IOColors.js +20 -103
  86. package/lib/module/core/IOColors.js.map +1 -1
  87. package/lib/module/core/IOThemeContextProvider.js +12 -8
  88. package/lib/module/core/IOThemeContextProvider.js.map +1 -1
  89. package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
  90. package/lib/typescript/components/layout/HeaderFirstLevel.d.ts +8 -28
  91. package/lib/typescript/components/layout/HeaderFirstLevel.d.ts.map +1 -1
  92. package/lib/typescript/components/listitems/ListItemHeader.d.ts.map +1 -1
  93. package/lib/typescript/components/listitems/ListItemInfo.d.ts +13 -11
  94. package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
  95. package/lib/typescript/components/listitems/PressableListItemBase.d.ts +2 -2
  96. package/lib/typescript/components/listitems/PressableListItemBase.d.ts.map +1 -1
  97. package/lib/typescript/components/modules/PressableModuleBase.d.ts.map +1 -1
  98. package/lib/typescript/components/numberpad/NumberButton.d.ts.map +1 -1
  99. package/lib/typescript/components/otpInput/OTPInput.d.ts.map +1 -1
  100. package/lib/typescript/components/pictograms/Pictogram.d.ts +3 -12
  101. package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
  102. package/lib/typescript/components/pictograms/svg/PictogramUmbrella.d.ts +5 -0
  103. package/lib/typescript/components/pictograms/svg/PictogramUmbrella.d.ts.map +1 -0
  104. package/lib/typescript/components/pictograms/types.d.ts +0 -1
  105. package/lib/typescript/components/pictograms/types.d.ts.map +1 -1
  106. package/lib/typescript/components/searchInput/SearchInput.d.ts.map +1 -1
  107. package/lib/typescript/components/textInput/TextInputBase.d.ts +2 -2
  108. package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
  109. package/lib/typescript/components/textInput/TextInputValidation.d.ts.map +1 -1
  110. package/lib/typescript/components/tooltip/styles.d.ts +2 -2
  111. package/lib/typescript/components/typography/BodyMonospace.d.ts +1 -1
  112. package/lib/typescript/components/typography/ButtonText.d.ts +1 -1
  113. package/lib/typescript/components/typography/Caption.d.ts +1 -1
  114. package/lib/typescript/components/typography/H1.d.ts +1 -1
  115. package/lib/typescript/components/typography/H2.d.ts +1 -1
  116. package/lib/typescript/components/typography/H3.d.ts +1 -1
  117. package/lib/typescript/components/typography/H4.d.ts +1 -1
  118. package/lib/typescript/components/typography/H5.d.ts +1 -1
  119. package/lib/typescript/components/typography/H6.d.ts +1 -1
  120. package/lib/typescript/components/typography/Hero.d.ts +1 -1
  121. package/lib/typescript/components/typography/markdown/MdH1.d.ts +1 -1
  122. package/lib/typescript/components/typography/markdown/MdH2.d.ts +1 -1
  123. package/lib/typescript/components/typography/markdown/MdH3.d.ts +1 -1
  124. package/lib/typescript/core/IOColors.d.ts +1 -40
  125. package/lib/typescript/core/IOColors.d.ts.map +1 -1
  126. package/lib/typescript/core/IOStyles.d.ts +2 -2
  127. package/lib/typescript/core/IOThemeContextProvider.d.ts +6 -6
  128. package/lib/typescript/core/IOThemeContextProvider.d.ts.map +1 -1
  129. package/lib/typescript/utils/fonts.d.ts +1 -1
  130. package/package.json +3 -3
  131. package/src/components/alert/Alert.tsx +3 -2
  132. package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +0 -4
  133. package/src/components/buttons/ButtonOutline.tsx +8 -8
  134. package/src/components/buttons/IconButton.tsx +1 -1
  135. package/src/components/buttons/IconButtonContained.tsx +3 -3
  136. package/src/components/icons/Icon.tsx +2 -2
  137. package/src/components/icons/README.md +1 -1
  138. package/src/components/layout/HeaderFirstLevel.tsx +50 -68
  139. package/src/components/listitems/ListItemHeader.tsx +9 -34
  140. package/src/components/listitems/ListItemInfo.tsx +107 -53
  141. package/src/components/listitems/PressableListItemBase.tsx +3 -2
  142. package/src/components/modules/PressableModuleBase.tsx +15 -4
  143. package/src/components/numberpad/NumberButton.tsx +19 -3
  144. package/src/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +40 -20
  145. package/src/components/otpInput/OTPInput.tsx +1 -0
  146. package/src/components/pictograms/Pictogram.tsx +2 -24
  147. package/src/components/pictograms/svg/{PictogramUmbrellaNew.tsx → PictogramUmbrella.tsx} +2 -2
  148. package/src/components/pictograms/types.ts +0 -1
  149. package/src/components/searchInput/SearchInput.tsx +25 -3
  150. package/src/components/spacer/Spacer.tsx +1 -1
  151. package/src/components/textInput/TextInputBase.tsx +28 -15
  152. package/src/components/textInput/TextInputValidation.tsx +18 -10
  153. package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +7 -7
  154. package/src/components/typography/__test__/typography.test.tsx +18 -16
  155. package/src/core/IOColors.ts +24 -104
  156. package/src/core/IOThemeContextProvider.tsx +25 -15
  157. package/lib/commonjs/components/Advice/Advice.js +0 -42
  158. package/lib/commonjs/components/Advice/Advice.js.map +0 -1
  159. package/lib/commonjs/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +0 -213
  160. package/lib/commonjs/components/Advice/__test__/advice.test.js +0 -26
  161. package/lib/commonjs/components/Advice/__test__/advice.test.js.map +0 -1
  162. package/lib/commonjs/components/Advice/index.js +0 -17
  163. package/lib/commonjs/components/Advice/index.js.map +0 -1
  164. package/lib/commonjs/components/pictograms/svg/PictogramCompleted.js +0 -33
  165. package/lib/commonjs/components/pictograms/svg/PictogramCompleted.js.map +0 -1
  166. package/lib/commonjs/components/pictograms/svg/PictogramProcessing.js +0 -33
  167. package/lib/commonjs/components/pictograms/svg/PictogramProcessing.js.map +0 -1
  168. package/lib/commonjs/components/pictograms/svg/PictogramUmbrellaNew.js.map +0 -1
  169. package/lib/commonjs/components/pictograms/svg/originals/PictogramCompleted.svg +0 -14
  170. package/lib/module/components/Advice/Advice.js +0 -34
  171. package/lib/module/components/Advice/Advice.js.map +0 -1
  172. package/lib/module/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +0 -213
  173. package/lib/module/components/Advice/__test__/advice.test.js +0 -21
  174. package/lib/module/components/Advice/__test__/advice.test.js.map +0 -1
  175. package/lib/module/components/Advice/index.js +0 -2
  176. package/lib/module/components/Advice/index.js.map +0 -1
  177. package/lib/module/components/pictograms/svg/PictogramCompleted.js +0 -25
  178. package/lib/module/components/pictograms/svg/PictogramCompleted.js.map +0 -1
  179. package/lib/module/components/pictograms/svg/PictogramProcessing.js +0 -25
  180. package/lib/module/components/pictograms/svg/PictogramProcessing.js.map +0 -1
  181. package/lib/module/components/pictograms/svg/PictogramUmbrellaNew.js.map +0 -1
  182. package/lib/module/components/pictograms/svg/originals/PictogramCompleted.svg +0 -14
  183. package/lib/typescript/components/Advice/Advice.d.ts +0 -16
  184. package/lib/typescript/components/Advice/Advice.d.ts.map +0 -1
  185. package/lib/typescript/components/Advice/__test__/advice.test.d.ts +0 -2
  186. package/lib/typescript/components/Advice/__test__/advice.test.d.ts.map +0 -1
  187. package/lib/typescript/components/Advice/index.d.ts +0 -2
  188. package/lib/typescript/components/Advice/index.d.ts.map +0 -1
  189. package/lib/typescript/components/pictograms/svg/PictogramCompleted.d.ts +0 -5
  190. package/lib/typescript/components/pictograms/svg/PictogramCompleted.d.ts.map +0 -1
  191. package/lib/typescript/components/pictograms/svg/PictogramProcessing.d.ts +0 -5
  192. package/lib/typescript/components/pictograms/svg/PictogramProcessing.d.ts.map +0 -1
  193. package/lib/typescript/components/pictograms/svg/PictogramUmbrellaNew.d.ts +0 -5
  194. package/lib/typescript/components/pictograms/svg/PictogramUmbrellaNew.d.ts.map +0 -1
  195. package/src/components/Advice/Advice.tsx +0 -42
  196. package/src/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +0 -213
  197. package/src/components/Advice/__test__/advice.test.tsx +0 -22
  198. package/src/components/Advice/index.tsx +0 -1
  199. package/src/components/pictograms/svg/PictogramCompleted.tsx +0 -22
  200. package/src/components/pictograms/svg/PictogramProcessing.tsx +0 -22
  201. package/src/components/pictograms/svg/originals/PictogramCompleted.svg +0 -14
  202. /package/lib/commonjs/components/pictograms/svg/originals/{PictogramUmbrellaNew.svg → PictogramUmbrella.svg} +0 -0
  203. /package/lib/module/components/pictograms/svg/originals/{PictogramUmbrellaNew.svg → PictogramUmbrella.svg} +0 -0
  204. /package/src/components/pictograms/svg/originals/{PictogramUmbrellaNew.svg → PictogramUmbrella.svg} +0 -0
@@ -30,10 +30,10 @@ describe("Test Typography Components", () => {
30
30
  // SemiBold weight, default weight
31
31
  const h3Default = TestRenderer.create(<H3>Text</H3>).toJSON();
32
32
  expect(h3Default).toMatchSnapshot();
33
- const h3bluegreyLight = TestRenderer.create(
34
- <H3 color={"bluegreyLight"}>Text</H3>
33
+ const h3grey200 = TestRenderer.create(
34
+ <H3 color={"grey-200"}>Text</H3>
35
35
  ).toJSON();
36
- expect(h3bluegreyLight).toMatchSnapshot();
36
+ expect(h3grey200).toMatchSnapshot();
37
37
  const h3white = TestRenderer.create(<H3 color={"white"}>Text</H3>).toJSON();
38
38
  expect(h3white).toMatchSnapshot();
39
39
  const h3whiteBold = TestRenderer.create(
@@ -49,7 +49,9 @@ describe("Test Typography Components", () => {
49
49
  // Bold weight, default weight
50
50
  const h4Default = TestRenderer.create(<H4>Text</H4>).toJSON();
51
51
  expect(h4Default).toMatchSnapshot();
52
- const h4Dblue = TestRenderer.create(<H4 color={"blue"}>Text</H4>).toJSON();
52
+ const h4Dblue = TestRenderer.create(
53
+ <H4 color={"blueIO-500"}>Text</H4>
54
+ ).toJSON();
53
55
  expect(h4Dblue).toMatchSnapshot();
54
56
  const h4white = TestRenderer.create(<H4 color={"white"}>Text</H4>).toJSON();
55
57
  expect(h4white).toMatchSnapshot();
@@ -59,11 +61,11 @@ describe("Test Typography Components", () => {
59
61
  const h5Default = TestRenderer.create(<H5>Text</H5>).toJSON();
60
62
  expect(h5Default).toMatchSnapshot();
61
63
  const h5Defaultbluegrey = TestRenderer.create(
62
- <H5 color={"bluegrey"}>Text</H5>
64
+ <H5 color={"grey-700"}>Text</H5>
63
65
  ).toJSON();
64
66
  expect(h5Defaultbluegrey).toMatchSnapshot();
65
67
  const h5Defaultblue = TestRenderer.create(
66
- <H5 color={"blue"}>Text</H5>
68
+ <H5 color={"blueIO-500"}>Text</H5>
67
69
  ).toJSON();
68
70
  expect(h5Defaultblue).toMatchSnapshot();
69
71
  const h5Defaultwhite = TestRenderer.create(
@@ -93,9 +95,9 @@ describe("Test Typography Components", () => {
93
95
  type BodyColors = React.ComponentProps<typeof BodySmall>["color"];
94
96
 
95
97
  const allowedColors: ReadonlyArray<BodyColors> = [
96
- "blue",
97
- "bluegrey",
98
- "red",
98
+ "blueIO-500",
99
+ "grey-700",
100
+ "error-600",
99
101
  "white"
100
102
  ];
101
103
 
@@ -126,26 +128,26 @@ describe("Test Typography common", () => {
126
128
  it("Test calculateWeightColor behaviour", () => {
127
129
  const noValues = calculateWeightColor<IOFontWeight, IOColors>(
128
130
  "Bold",
129
- "red"
131
+ "error-600"
130
132
  );
131
- expect(noValues.color).toBe("red");
133
+ expect(noValues.color).toBe("error-600");
132
134
  expect(noValues.weight).toBe("Bold");
133
135
 
134
136
  const weightProvided = calculateWeightColor<IOFontWeight, IOColors>(
135
137
  "Bold",
136
- "red",
138
+ "error-600",
137
139
  "Regular"
138
140
  );
139
- expect(weightProvided.color).toBe("red");
141
+ expect(weightProvided.color).toBe("error-600");
140
142
  expect(weightProvided.weight).toBe("Regular");
141
143
 
142
144
  const allValuesProvided = calculateWeightColor<IOFontWeight, IOColors>(
143
145
  "Bold",
144
- "red",
146
+ "error-600",
145
147
  "Regular",
146
- "bluegrey"
148
+ "grey-700"
147
149
  );
148
- expect(allValuesProvided.color).toBe("bluegrey");
150
+ expect(allValuesProvided.color).toBe("grey-700");
149
151
  expect(allValuesProvided.weight).toBe("Regular");
150
152
  });
151
153
  });
@@ -81,26 +81,7 @@ export const IOColors = asIOColors({
81
81
  "blueItalia-600": "#0052A3",
82
82
  "blueItalia-500": "#0066CC" /* pagoPA service */,
83
83
  "blueItalia-100": "#C4DCF5",
84
- "blueItalia-50": "#DDEBFA",
85
- /* Temporary scale based on legacy Blue */
86
- "blue-600": "#0353A3",
87
- "blue-50": "#EFF7FF",
88
- /* Legacy */
89
- greyUltraLight: "#F5F6F7",
90
- greyLight: "#E6E9F2",
91
- bluegreyLight: "#CCD4DC",
92
- grey: "#909DA8",
93
- bluegrey: "#475A6D",
94
- bluegreyDark: "#17324D",
95
- blue: "#0073E6",
96
- blueUltraLight: "#99CCFF" /* Almost deprecated, avoid if possible */,
97
- aqua: "#00C5CA",
98
- aquaUltraLight: "#C1F4F2",
99
- antiqueFuchsia: "#9B5897" /* used in the CgnDiscountValueBox only */,
100
- orange: "#EA7614",
101
- red: "#C02927",
102
- green: "#005C3C",
103
- greenLight: "#5CA85A"
84
+ "blueItalia-50": "#DDEBFA"
104
85
  });
105
86
 
106
87
  export type IOColors = keyof typeof IOColors;
@@ -136,47 +117,6 @@ export const getGradientColorValues = (
136
117
  ░░░ COLORS SETS ░░░
137
118
  */
138
119
 
139
- const {
140
- white,
141
- greyUltraLight,
142
- greyLight,
143
- bluegreyLight,
144
- grey,
145
- bluegrey,
146
- bluegreyDark,
147
- black,
148
- blue,
149
- blueUltraLight,
150
- aqua,
151
- aquaUltraLight,
152
- antiqueFuchsia,
153
- orange,
154
- red,
155
- green,
156
- greenLight
157
- } = IOColors;
158
-
159
- export const IOColorsLegacy = {
160
- white,
161
- greyUltraLight,
162
- greyLight,
163
- bluegreyLight,
164
- grey,
165
- bluegrey,
166
- bluegreyDark,
167
- black,
168
- blue,
169
- blueUltraLight,
170
- aqua,
171
- aquaUltraLight,
172
- antiqueFuchsia,
173
- orange,
174
- red,
175
- green,
176
- greenLight
177
- };
178
- export type IOColorLegacy = keyof typeof IOColorsLegacy;
179
-
180
120
  export const IOColorsNeutral = asIOColors({
181
121
  black: IOColors.black,
182
122
  "grey-850": IOColors["grey-850"],
@@ -248,10 +188,9 @@ export const IOColorsExtra = {
248
188
  "blueItalia-600": IOColors["blueItalia-600"],
249
189
  "blueItalia-500": IOColors["blueItalia-500"],
250
190
  "blueItalia-100": IOColors["blueItalia-100"],
251
- "blueItalia-50": IOColors["blueItalia-50"],
252
- "blue-600": IOColors["blue-600"],
253
- "blue-50": IOColors["blue-50"]
191
+ "blueItalia-50": IOColors["blueItalia-50"]
254
192
  };
193
+
255
194
  export type IOColorsExtra = keyof typeof IOColorsExtra;
256
195
 
257
196
  /*
@@ -276,12 +215,19 @@ const themeKeys = [
276
215
  "textBody-tertiary",
277
216
  // Design System related
278
217
  "cardBorder-default",
218
+ "textInputBorder-default",
279
219
  "icon-default",
280
220
  "icon-decorative",
221
+ // Inputs
222
+ "textInputBorder-default",
223
+ "textInputLabel-default",
224
+ "textInputValue-default",
225
+ "textInputValue-disabled",
281
226
  // Layout
282
227
  "divider-header",
283
228
  "divider-default",
284
229
  "divider-bottomBar",
230
+ "pdfViewer-background",
285
231
  // Status
286
232
  "errorIcon",
287
233
  "errorText",
@@ -320,10 +266,16 @@ export const IOThemeLight: IOTheme = {
320
266
  "cardBorder-default": "grey-100",
321
267
  "icon-default": "grey-650",
322
268
  "icon-decorative": "grey-300",
269
+ // Inputs
270
+ "textInputBorder-default": "grey-200",
271
+ "textInputLabel-default": "grey-700",
272
+ "textInputValue-default": "black",
273
+ "textInputValue-disabled": "grey-850",
323
274
  // Layout
324
275
  "divider-header": "grey-100",
325
276
  "divider-default": "grey-200",
326
277
  "divider-bottomBar": "grey-200",
278
+ "pdfViewer-background": "grey-700",
327
279
  // Status
328
280
  errorIcon: "error-600",
329
281
  errorText: "error-600",
@@ -358,6 +310,11 @@ export const IOThemeDark: IOTheme = {
358
310
  "cardBorder-default": "grey-850",
359
311
  "icon-default": "grey-450",
360
312
  "icon-decorative": "grey-650",
313
+ // Inputs
314
+ "textInputBorder-default": "grey-850",
315
+ "textInputLabel-default": "grey-450",
316
+ "textInputValue-default": "white",
317
+ "textInputValue-disabled": "grey-100",
361
318
  // Layout
362
319
  "divider-header": "grey-850",
363
320
  "divider-default": "grey-850",
@@ -446,45 +403,8 @@ REFACTORING REFERENCES
446
403
  Alias tokens:
447
404
  */
448
405
  /*
449
- tabUnderlineColorgreyUltraLight
450
- headerIconLightgreyLight
451
- colorSkeleton → bluegreyLight
452
- itemSeparator → bluegreyLight
453
- btnLightBorderColor → grey
454
- disabledService → grey, not referenced though
455
- headerIconDark → milderGray
456
- textColor → bluegrey
457
- topTabBarTextColor → bluegrey
458
- unselectedColor → bluegrey
459
- textColorDark → bluegreyDark
460
- cardTextColor → bluegreyDark
406
+ itemSeparatorgrey-200
407
+ textColorgrey-700
461
408
  footerShadowColor → black
462
- topTabBarActiveTextColor → blue
463
- selectedColor → blue
464
- contentPrimaryBackground → blue
465
- textLinkColor → blue
466
- colorHighlight → aqua
467
- toastColor → aquaUltraLight
468
- brandDanger → red
469
- calendarExpirableColor → red
470
- brandSuccess → green
471
- */
472
-
473
- /* NEW PALETTE → OLD PALETTE
474
- That is, which color replaces the other? */
475
- /*
476
- `blackNew` replaces `black`
477
- `grey50` → `greyUltraLight`
478
- `grey100` → `greyLight`
479
- `grey200` → `blueGreyLight`
480
- `grey450` → `grey`
481
- `grey650` → `milderGrey`
482
- `grey700` → `bluegrey`
483
- `grey850` → `bluegreyDark`
484
- `blueNew` → `blue`
485
- `turquoise` → `aqua`
486
- `turquoiseLight` → `aquaUltraLight`
487
- `warning` → `yellow`
488
- `error` → `red`
489
- `success` → `green`
409
+ contentPrimaryBackground → blue-500
490
410
  */
@@ -1,46 +1,56 @@
1
- import React from "react";
2
- import { Appearance } from "react-native";
1
+ import React, {
2
+ createContext,
3
+ PropsWithChildren,
4
+ useCallback,
5
+ useContext,
6
+ useState
7
+ } from "react";
8
+ import { Appearance, ColorSchemeName } from "react-native";
3
9
  import { IOTheme, IOThemeDark, IOThemeLight } from "./IOColors";
4
10
 
5
11
  export const IOThemes = { light: IOThemeLight, dark: IOThemeDark };
6
- type IOThemeType = keyof typeof IOThemes;
7
12
 
8
13
  type IOThemeContextType = {
9
- themeType: IOThemeType;
14
+ themeType: ColorSchemeName;
10
15
  theme: IOTheme;
11
- setTheme: (theme: IOThemeType) => void;
16
+ setTheme: (theme: ColorSchemeName) => void;
12
17
  };
13
18
 
14
19
  export const IOThemeContext: React.Context<IOThemeContextType> =
15
- React.createContext<IOThemeContextType>({
16
- themeType: Appearance.getColorScheme() === "dark" ? "dark" : "light",
20
+ createContext<IOThemeContextType>({
21
+ themeType: Appearance.getColorScheme(),
17
22
  theme:
18
23
  Appearance.getColorScheme() === "dark" ? IOThemes.dark : IOThemes.light,
19
- setTheme: () => void 0
24
+ setTheme: (theme: ColorSchemeName) => Appearance.setColorScheme(theme)
20
25
  });
21
26
 
22
- export const useIOThemeContext = () => React.useContext(IOThemeContext);
27
+ export const useIOThemeContext = () => useContext(IOThemeContext);
23
28
 
24
29
  export const useIOTheme = () => useIOThemeContext().theme;
25
30
 
26
31
  type IOThemeContextProviderProps = {
27
- theme?: IOThemeType;
32
+ theme?: ColorSchemeName;
28
33
  };
29
34
 
30
35
  export const IOThemeContextProvider = ({
31
36
  children,
32
37
  theme
33
- }: React.PropsWithChildren<IOThemeContextProviderProps>) => {
34
- const [currentTheme, setCurrentTheme] = React.useState<IOThemeType>(
35
- theme ?? "light"
38
+ }: PropsWithChildren<IOThemeContextProviderProps>) => {
39
+ const [currentTheme, setCurrentTheme] = useState<ColorSchemeName>(
40
+ theme ?? Appearance.getColorScheme()
36
41
  );
37
42
 
43
+ const handleThemeChange = useCallback((newTheme: ColorSchemeName) => {
44
+ setCurrentTheme(newTheme);
45
+ Appearance.setColorScheme(newTheme);
46
+ }, []);
47
+
38
48
  return (
39
49
  <IOThemeContext.Provider
40
50
  value={{
41
51
  themeType: currentTheme,
42
- theme: IOThemes[currentTheme],
43
- setTheme: setCurrentTheme
52
+ theme: IOThemes[currentTheme ?? "light"],
53
+ setTheme: handleThemeChange
44
54
  }}
45
55
  >
46
56
  {children}
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Advice = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _core = require("../../core");
10
- var _icons = require("../icons");
11
- var _spacer = require("../spacer");
12
- var _typography = require("../typography");
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
- const styles = _reactNative.StyleSheet.create({
15
- icon: {
16
- marginTop: 4
17
- }
18
- });
19
- const defaultIconSize = 20;
20
-
21
- /**
22
- * This component displays an info icon on top-left and a text message
23
- * @constructor
24
- */
25
- const Advice = /*#__PURE__*/_react.default.memo(({
26
- text,
27
- iconName = "notice",
28
- iconSize = defaultIconSize,
29
- iconColor = "blue"
30
- }) => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
31
- style: _core.IOStyles.row
32
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
33
- style: styles.icon
34
- }, /*#__PURE__*/_react.default.createElement(_icons.Icon, {
35
- name: iconName,
36
- size: iconSize,
37
- color: iconColor
38
- })), /*#__PURE__*/_react.default.createElement(_spacer.HSpacer, {
39
- size: 8
40
- }), /*#__PURE__*/_react.default.createElement(_typography.Body, null, text)));
41
- exports.Advice = Advice;
42
- //# sourceMappingURL=Advice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_core","_icons","_spacer","_typography","obj","__esModule","default","styles","StyleSheet","create","icon","marginTop","defaultIconSize","Advice","React","memo","text","iconName","iconSize","iconColor","createElement","View","style","IOStyles","row","Icon","name","size","color","HSpacer","Body","exports"],"sourceRoot":"../../../../src","sources":["components/Advice/Advice.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAAqC,SAAAD,uBAAAO,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AASrC,MAAMG,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,IAAI,EAAE;IACJC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,MAAMC,eAAgC,GAAG,EAAE;;AAE3C;AACA;AACA;AACA;AACO,MAAMC,MAAuB,gBAAGC,cAAK,CAACC,IAAI,CAC/C,CAAC;EACCC,IAAI;EACJC,QAAQ,GAAG,QAAQ;EACnBC,QAAQ,GAAGN,eAAe;EAC1BO,SAAS,GAAG;AACd,CAAC,kBACCvB,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACrB,YAAA,CAAAsB,IAAI;EAACC,KAAK,EAAEC,cAAQ,CAACC;AAAI,gBACxB5B,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACrB,YAAA,CAAAsB,IAAI;EAACC,KAAK,EAAEf,MAAM,CAACG;AAAK,gBACvBd,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACnB,MAAA,CAAAwB,IAAI;EAACC,IAAI,EAAET,QAAS;EAACU,IAAI,EAAET,QAAS;EAACU,KAAK,EAAET;AAAU,CAAE,CACrD,CAAC,eACPvB,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAAClB,OAAA,CAAA2B,OAAO;EAACF,IAAI,EAAE;AAAE,CAAE,CAAC,eACpB/B,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACjB,WAAA,CAAA2B,IAAI,QAAEd,IAAW,CACd,CAEV,CAAC;AAACe,OAAA,CAAAlB,MAAA,GAAAA,MAAA"}
@@ -1,213 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Test Advice Components - Experimental Enabled Advice Snapshot 1`] = `
4
- <View
5
- style={
6
- {
7
- "flexDirection": "row",
8
- }
9
- }
10
- >
11
- <View
12
- style={
13
- {
14
- "marginTop": 4,
15
- }
16
- }
17
- >
18
- <RNSVGSvgView
19
- accessibilityElementsHidden={true}
20
- accessibilityLabel=""
21
- accessible={false}
22
- align="xMidYMid"
23
- bbHeight={20}
24
- bbWidth={20}
25
- focusable={false}
26
- height={20}
27
- importantForAccessibility="no-hide-descendants"
28
- meetOrSlice={0}
29
- minX={0}
30
- minY={0}
31
- style={
32
- [
33
- {
34
- "backgroundColor": "transparent",
35
- "borderWidth": 0,
36
- },
37
- {
38
- "color": "#0073E6",
39
- },
40
- {
41
- "flex": 0,
42
- "height": 20,
43
- "width": 20,
44
- },
45
- ]
46
- }
47
- tintColor="#0073E6"
48
- vbHeight={24}
49
- vbWidth={24}
50
- width={20}
51
- >
52
- <RNSVGGroup
53
- fill={
54
- {
55
- "payload": 4278190080,
56
- "type": 0,
57
- }
58
- }
59
- >
60
- <RNSVGPath
61
- clipRule={0}
62
- d="M0 12C0 5.3726 5.3726 0 12 0s12 5.3726 12 12-5.3726 12-12 12S0 18.6274 0 12Zm2 0C2 6.47717 6.47717 2 12 2c5.5228 0 10 4.47717 10 10 0 5.5228-4.4772 10-10 10-5.52283 0-10-4.4772-10-10Zm10.0281 7.5c.8439 0 1.5281-.6842 1.5281-1.5281s-.6842-1.5281-1.5281-1.5281c-.844 0-1.5281.6842-1.5281 1.5281S11.1841 19.5 12.0281 19.5Zm0-15.05618h.0005c.5678 0 1.0281.46029 1.0281 1.02808v8.0046c0 .5678-.4603 1.028-1.0281 1.028h-.0005c-.5678 0-1.0281-.4602-1.0281-1.028V5.4719c0-.56779.4603-1.02808 1.0281-1.02808Z"
63
- fill={
64
- {
65
- "type": 2,
66
- }
67
- }
68
- fillRule={0}
69
- propList={
70
- [
71
- "fill",
72
- "fillRule",
73
- ]
74
- }
75
- />
76
- </RNSVGGroup>
77
- </RNSVGSvgView>
78
- </View>
79
- <View
80
- style={
81
- {
82
- "width": 8,
83
- }
84
- }
85
- />
86
- <Text
87
- allowFontScaling={true}
88
- dynamicTypeRamp="body"
89
- maxFontSizeMultiplier={1.5}
90
- style={
91
- [
92
- {},
93
- {
94
- "color": "#555C70",
95
- "fontFamily": "Titillio",
96
- "fontSize": 16,
97
- "fontStyle": "normal",
98
- "fontWeight": "400",
99
- "lineHeight": 24,
100
- },
101
- ]
102
- }
103
- >
104
- Text
105
- </Text>
106
- </View>
107
- `;
108
-
109
- exports[`Test Advice Components Advice Snapshot 1`] = `
110
- <View
111
- style={
112
- {
113
- "flexDirection": "row",
114
- }
115
- }
116
- >
117
- <View
118
- style={
119
- {
120
- "marginTop": 4,
121
- }
122
- }
123
- >
124
- <RNSVGSvgView
125
- accessibilityElementsHidden={true}
126
- accessibilityLabel=""
127
- accessible={false}
128
- align="xMidYMid"
129
- bbHeight={20}
130
- bbWidth={20}
131
- focusable={false}
132
- height={20}
133
- importantForAccessibility="no-hide-descendants"
134
- meetOrSlice={0}
135
- minX={0}
136
- minY={0}
137
- style={
138
- [
139
- {
140
- "backgroundColor": "transparent",
141
- "borderWidth": 0,
142
- },
143
- {
144
- "color": "#0073E6",
145
- },
146
- {
147
- "flex": 0,
148
- "height": 20,
149
- "width": 20,
150
- },
151
- ]
152
- }
153
- tintColor="#0073E6"
154
- vbHeight={24}
155
- vbWidth={24}
156
- width={20}
157
- >
158
- <RNSVGGroup
159
- fill={
160
- {
161
- "payload": 4278190080,
162
- "type": 0,
163
- }
164
- }
165
- >
166
- <RNSVGPath
167
- clipRule={0}
168
- d="M0 12C0 5.3726 5.3726 0 12 0s12 5.3726 12 12-5.3726 12-12 12S0 18.6274 0 12Zm2 0C2 6.47717 6.47717 2 12 2c5.5228 0 10 4.47717 10 10 0 5.5228-4.4772 10-10 10-5.52283 0-10-4.4772-10-10Zm10.0281 7.5c.8439 0 1.5281-.6842 1.5281-1.5281s-.6842-1.5281-1.5281-1.5281c-.844 0-1.5281.6842-1.5281 1.5281S11.1841 19.5 12.0281 19.5Zm0-15.05618h.0005c.5678 0 1.0281.46029 1.0281 1.02808v8.0046c0 .5678-.4603 1.028-1.0281 1.028h-.0005c-.5678 0-1.0281-.4602-1.0281-1.028V5.4719c0-.56779.4603-1.02808 1.0281-1.02808Z"
169
- fill={
170
- {
171
- "type": 2,
172
- }
173
- }
174
- fillRule={0}
175
- propList={
176
- [
177
- "fill",
178
- "fillRule",
179
- ]
180
- }
181
- />
182
- </RNSVGGroup>
183
- </RNSVGSvgView>
184
- </View>
185
- <View
186
- style={
187
- {
188
- "width": 8,
189
- }
190
- }
191
- />
192
- <Text
193
- allowFontScaling={true}
194
- dynamicTypeRamp="body"
195
- maxFontSizeMultiplier={1.5}
196
- style={
197
- [
198
- {},
199
- {
200
- "color": "#555C70",
201
- "fontFamily": "Titillio",
202
- "fontSize": 16,
203
- "fontStyle": "normal",
204
- "fontWeight": "400",
205
- "lineHeight": 24,
206
- },
207
- ]
208
- }
209
- >
210
- Text
211
- </Text>
212
- </View>
213
- `;
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- var _react = _interopRequireDefault(require("react"));
4
- var TestRenderer = _interopRequireWildcard(require("react-test-renderer"));
5
- var _testing = require("../../../utils/testing");
6
- var _Advice = require("../Advice");
7
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
8
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- describe("Test Advice Components", () => {
11
- it("Advice Snapshot", () => {
12
- const advice = TestRenderer.create( /*#__PURE__*/_react.default.createElement(_Advice.Advice, {
13
- text: "Text"
14
- })).toJSON();
15
- expect(advice).toMatchSnapshot();
16
- });
17
- });
18
- describe("Test Advice Components - Experimental Enabled", () => {
19
- it("Advice Snapshot", () => {
20
- const advice = (0, _testing.TestRendererWithExperimentalEnabledContextProvider)( /*#__PURE__*/_react.default.createElement(_Advice.Advice, {
21
- text: "Text"
22
- })).toJSON();
23
- expect(advice).toMatchSnapshot();
24
- });
25
- });
26
- //# sourceMappingURL=advice.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","TestRenderer","_interopRequireWildcard","_testing","_Advice","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","describe","it","advice","create","createElement","Advice","text","toJSON","expect","toMatchSnapshot","TestRendererWithExperimentalEnabledContextProvider"],"sourceRoot":"../../../../../src","sources":["components/Advice/__test__/advice.test.tsx"],"mappings":";;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAAmC,SAAAK,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA;AAAA,SAAAjB,uBAAAW,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnCiB,QAAQ,CAAC,wBAAwB,EAAE,MAAM;EACvCC,EAAE,CAAC,iBAAiB,EAAE,MAAM;IAC1B,MAAMC,MAAM,GAAG5B,YAAY,CAAC6B,MAAM,eAChChC,MAAA,CAAAc,OAAA,CAAAmB,aAAA,CAAC3B,OAAA,CAAA4B,MAAM;MAACC,IAAI,EAAE;IAAO,CAAS,CAChC,CAAC,CAACC,MAAM,CAAC,CAAC;IACVC,MAAM,CAACN,MAAM,CAAC,CAACO,eAAe,CAAC,CAAC;EAClC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEFT,QAAQ,CAAC,+CAA+C,EAAE,MAAM;EAC9DC,EAAE,CAAC,iBAAiB,EAAE,MAAM;IAC1B,MAAMC,MAAM,GAAG,IAAAQ,2DAAkD,gBAC/DvC,MAAA,CAAAc,OAAA,CAAAmB,aAAA,CAAC3B,OAAA,CAAA4B,MAAM;MAACC,IAAI,EAAE;IAAO,CAAS,CAChC,CAAC,CAACC,MAAM,CAAC,CAAC;IACVC,MAAM,CAACN,MAAM,CAAC,CAACO,eAAe,CAAC,CAAC;EAClC,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _Advice = require("./Advice");
7
- Object.keys(_Advice).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Advice[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _Advice[key];
14
- }
15
- });
16
- });
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_Advice","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../src","sources":["components/Advice/index.tsx"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}