@rango-dev/ui 0.17.1-next.0 → 0.17.1-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/translations/es.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts +12 -0
- package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/BestRoute/BestRoute.styles.d.ts +36 -0
- package/dist/widget/ui/src/components/BestRoute/BestRoute.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/BestRoute/BestRouteSkeleton.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/BestRoute/BestRouteSkeleton.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/BestRoute/RouteSummary.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/BestRoute/RouteSummary.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/BottomLogo/BottomLogo.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/BottomLogo/BottomLogo.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Button/Button.styles.d.ts +12 -0
- package/dist/widget/ui/src/components/Button/Button.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/ChainToken/ChainToken.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Checkbox/Checkbox.styles.d.ts +16 -0
- package/dist/widget/ui/src/components/Checkbox/Checkbox.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Chip/Chip.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/Chip/Chip.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Collapsible/Collapsible.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/Collapsible/Collapsible.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Drawer/Drawer.styles.d.ts +20 -0
- package/dist/widget/ui/src/components/Drawer/Drawer.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Flags/English.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/English.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Flags.constants.d.ts +2 -0
- package/dist/widget/ui/src/components/Flags/Flags.constants.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Flags.types.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Flags.types.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/French.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/French.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Japanese.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Japanese.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Spanish.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Spanish.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/index.d.ts +7 -0
- package/dist/widget/ui/src/components/Flags/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Header/Header.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/Header/Header.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/I18nManager/I18nManager.d.ts +1 -1
- package/dist/widget/ui/src/components/I18nManager/I18nManager.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Icon/CloseIcon.d.ts +4 -0
- package/dist/widget/ui/src/components/Icon/CloseIcon.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Icon/common.d.ts +8 -0
- package/dist/widget/ui/src/components/Icon/common.d.ts.map +1 -1
- package/dist/widget/ui/src/components/List/List.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/List/List.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ListItem/ListItem.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/ListItem/ListItem.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ListItemButton/ListItemButton.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/ListItemButton/ListItemButton.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/MessageBox/CollapsibleMessageBox.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/MessageBox/CollapsibleMessageBox.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/MessageBox/MessageBox.styles.d.ts +12 -0
- package/dist/widget/ui/src/components/MessageBox/MessageBox.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Modal/Modal.styles.d.ts +24 -0
- package/dist/widget/ui/src/components/Modal/Modal.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/NotFound/NotFound.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/NotFound/NotFound.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Popover/Popover.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/Popover/Popover.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Radio/Radio.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/Radio/Radio.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/RadioGroup/RadioGroup.styles.d.ts +16 -0
- package/dist/widget/ui/src/components/RadioGroup/RadioGroup.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/RouteCost/RouteCost.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/RouteCost/RouteCost.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/RoutesOverview/RoutesOverview.d.ts +4 -0
- package/dist/widget/ui/src/components/RoutesOverview/RoutesOverview.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts +12 -0
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Skeleton/Skeleton.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/Skeleton/Skeleton.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/StepDetail/StepDetail.d.ts +2 -1
- package/dist/widget/ui/src/components/StepDetail/StepDetail.d.ts.map +1 -1
- package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts +20 -0
- package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SvgIcon/SvgIcon.style.d.ts +4 -0
- package/dist/widget/ui/src/components/SvgIcon/SvgIcon.style.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.d.ts +4 -0
- package/dist/widget/ui/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.styles.d.ts +24 -0
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapToken.styles.d.ts +36 -0
- package/dist/widget/ui/src/components/SwapListItem/SwapToken.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Switch/Switch.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/Switch/Switch.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TextField/TextField.styles.d.ts +12 -0
- package/dist/widget/ui/src/components/TextField/TextField.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts +12 -0
- package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Typography/Typography.styles.d.ts +8 -4
- package/dist/widget/ui/src/components/Typography/Typography.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Wallet/Content.d.ts +1 -1
- package/dist/widget/ui/src/components/Wallet/Content.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Wallet/Wallet.styles.d.ts +20 -0
- package/dist/widget/ui/src/components/Wallet/Wallet.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/common/FilledCircle.d.ts +4 -0
- package/dist/widget/ui/src/components/common/FilledCircle.d.ts.map +1 -1
- package/dist/widget/ui/src/components/common/styles.d.ts +4 -0
- package/dist/widget/ui/src/components/common/styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/index.d.ts +1 -1
- package/dist/widget/ui/src/components/index.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.d.ts +40 -0
- package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts +12 -0
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts +8 -0
- package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/TokenSelector/TokenSelector.d.ts +4 -0
- package/dist/widget/ui/src/containers/TokenSelector/TokenSelector.d.ts.map +1 -1
- package/dist/widget/ui/src/icons/Colors.d.ts +5 -0
- package/dist/widget/ui/src/icons/Colors.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/CustomColors.d.ts +5 -0
- package/dist/widget/ui/src/icons/CustomColors.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/Style.d.ts.map +1 -1
- package/dist/widget/ui/src/icons/index.d.ts +2 -0
- package/dist/widget/ui/src/icons/index.d.ts.map +1 -1
- package/dist/widget/ui/src/theme.d.ts +62 -0
- package/dist/widget/ui/src/theme.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/components/Alert/Alert.styles.ts +2 -2
- package/src/components/BestRoute/BestRoute.styles.ts +1 -0
- package/src/components/BestRoute/BestRoute.tsx +1 -1
- package/src/components/BestRoute/BestRouteSkeleton.styles.ts +1 -1
- package/src/components/BottomLogo/BottomLogo.tsx +2 -2
- package/src/components/Button/Button.styles.tsx +6 -6
- package/src/components/Checkbox/Checkbox.styles.ts +1 -1
- package/src/components/Chip/Chip.tsx +1 -1
- package/src/components/Flags/English.tsx +35 -0
- package/src/components/Flags/Flags.constants.ts +1 -0
- package/src/components/Flags/Flags.types.ts +3 -0
- package/src/components/Flags/French.tsx +26 -0
- package/src/components/Flags/Japanese.tsx +25 -0
- package/src/components/Flags/Spanish.tsx +85 -0
- package/src/components/Flags/index.ts +8 -0
- package/src/components/I18nManager/I18nManager.tsx +16 -7
- package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +2 -2
- package/src/components/ListItem/ListItem.tsx +1 -1
- package/src/components/MessageBox/DefaultMessageBox.tsx +1 -1
- package/src/components/NotFound/NotFound.tsx +1 -1
- package/src/components/PriceImpact/PriceImpact.tsx +2 -2
- package/src/components/Radio/Radio.styles.tsx +1 -1
- package/src/components/RoutesOverview/RoutesOverview.tsx +1 -1
- package/src/components/StepDetail/StepDetail.tsx +7 -4
- package/src/components/StepDetails/StepDetails.tsx +2 -2
- package/src/components/SvgIcon/SvgIcon.style.ts +2 -6
- package/src/components/SwapListItem/SwapListItem.tsx +1 -1
- package/src/components/SwapListItem/SwapToken.tsx +3 -3
- package/src/components/Switch/Switch.styles.tsx +2 -2
- package/src/components/TextField/TextField.styles.ts +2 -2
- package/src/components/TokenAmount/TokenAmount.tsx +2 -2
- package/src/components/TokenList/TokenItem.tsx +1 -1
- package/src/components/TokenPreview/TokenPreview.tsx +2 -2
- package/src/components/Wallet/Content.tsx +5 -3
- package/src/components/Wallet/SelectableWallet.tsx +1 -1
- package/src/components/Wallet/Wallet.helpers.ts +2 -2
- package/src/components/index.ts +1 -1
- package/src/containers/SwapHistory/SwapHistory.tsx +4 -4
- package/src/containers/SwapInput/SwapInput.tsx +3 -3
- package/src/containers/SwapInput/TokenSection.styles.ts +2 -2
- package/src/containers/SwapInput/TokenSection.tsx +1 -1
- package/src/containers/TokenInfo/TokenInfo.tsx +4 -4
- package/src/containers/Warnings/BalanceErrors.tsx +1 -1
- package/src/icons/Colors.tsx +33 -0
- package/src/icons/CustomColors.tsx +21 -0
- package/src/icons/LogoWithText.tsx +16 -16
- package/src/icons/Style.tsx +29 -25
- package/src/icons/index.ts +2 -0
- package/src/theme.ts +36 -28
- package/dist/widget/ui/src/components/ColorPicker/ColorPicker.d.ts +0 -10
- package/dist/widget/ui/src/components/ColorPicker/ColorPicker.d.ts.map +0 -1
- package/dist/widget/ui/src/components/ColorPicker/ColorPicker.stories.d.ts +0 -6
- package/dist/widget/ui/src/components/ColorPicker/ColorPicker.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/ColorPicker/index.d.ts +0 -2
- package/dist/widget/ui/src/components/ColorPicker/index.d.ts.map +0 -1
- package/src/components/ColorPicker/ColorPicker.stories.tsx +0 -46
- package/src/components/ColorPicker/ColorPicker.tsx +0 -107
- package/src/components/ColorPicker/index.ts +0 -1
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
import type { DefaultThemeMap } from '@stitches/react/types/config';
|
|
3
3
|
export declare const theme: {
|
|
4
4
|
colors: {
|
|
5
|
+
primary: string;
|
|
5
6
|
primary500: string;
|
|
6
7
|
primary600: string;
|
|
8
|
+
secondary: string;
|
|
7
9
|
secondary100: string;
|
|
8
10
|
secondary200: string;
|
|
9
11
|
secondary300: string;
|
|
@@ -13,6 +15,7 @@ export declare const theme: {
|
|
|
13
15
|
secondary700: string;
|
|
14
16
|
secondary800: string;
|
|
15
17
|
secondary900: string;
|
|
18
|
+
neutral: string;
|
|
16
19
|
neutral100: string;
|
|
17
20
|
neutral200: string;
|
|
18
21
|
neutral300: string;
|
|
@@ -32,6 +35,7 @@ export declare const theme: {
|
|
|
32
35
|
warning500: string;
|
|
33
36
|
warning600: string;
|
|
34
37
|
warning700: string;
|
|
38
|
+
info: string;
|
|
35
39
|
info100: string;
|
|
36
40
|
info300: string;
|
|
37
41
|
info500: string;
|
|
@@ -145,6 +149,26 @@ export declare const theme: {
|
|
|
145
149
|
zIndices: {};
|
|
146
150
|
transitions: {};
|
|
147
151
|
};
|
|
152
|
+
export declare const darkColors: {
|
|
153
|
+
secondary: string;
|
|
154
|
+
secondary400: string;
|
|
155
|
+
secondary500: string;
|
|
156
|
+
secondary600: string;
|
|
157
|
+
neutral: string;
|
|
158
|
+
neutral900: string;
|
|
159
|
+
neutral800: string;
|
|
160
|
+
neutral700: string;
|
|
161
|
+
neutral600: string;
|
|
162
|
+
neutral500: string;
|
|
163
|
+
neutral400: string;
|
|
164
|
+
neutral300: string;
|
|
165
|
+
neutral200: string;
|
|
166
|
+
neutral100: string;
|
|
167
|
+
error500: string;
|
|
168
|
+
warning500: string;
|
|
169
|
+
background: string;
|
|
170
|
+
foreground: string;
|
|
171
|
+
};
|
|
148
172
|
export declare const styled: <Type extends import("react").ComponentType<any> | import("@stitches/react/types/util").Function | keyof JSX.IntrinsicElements, Composers extends (string | import("react").ComponentType<any> | import("@stitches/react/types/util").Function | {
|
|
149
173
|
[name: string]: unknown;
|
|
150
174
|
})[], CSS = import("@stitches/react/types/css-util").CSS<{
|
|
@@ -153,8 +177,10 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
153
177
|
lg: string;
|
|
154
178
|
}, {
|
|
155
179
|
colors: {
|
|
180
|
+
primary: string;
|
|
156
181
|
primary500: string;
|
|
157
182
|
primary600: string;
|
|
183
|
+
secondary: string;
|
|
158
184
|
secondary100: string;
|
|
159
185
|
secondary200: string;
|
|
160
186
|
secondary300: string;
|
|
@@ -164,6 +190,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
164
190
|
secondary700: string;
|
|
165
191
|
secondary800: string;
|
|
166
192
|
secondary900: string;
|
|
193
|
+
neutral: string;
|
|
167
194
|
neutral100: string;
|
|
168
195
|
neutral200: string;
|
|
169
196
|
neutral300: string;
|
|
@@ -183,6 +210,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
183
210
|
warning500: string;
|
|
184
211
|
warning600: string;
|
|
185
212
|
warning700: string;
|
|
213
|
+
info: string;
|
|
186
214
|
info100: string;
|
|
187
215
|
info300: string;
|
|
188
216
|
info500: string;
|
|
@@ -316,8 +344,10 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
316
344
|
lg: string;
|
|
317
345
|
}, {
|
|
318
346
|
colors: {
|
|
347
|
+
primary: string;
|
|
319
348
|
primary500: string;
|
|
320
349
|
primary600: string;
|
|
350
|
+
secondary: string;
|
|
321
351
|
secondary100: string;
|
|
322
352
|
secondary200: string;
|
|
323
353
|
secondary300: string;
|
|
@@ -327,6 +357,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
327
357
|
secondary700: string;
|
|
328
358
|
secondary800: string;
|
|
329
359
|
secondary900: string;
|
|
360
|
+
neutral: string;
|
|
330
361
|
neutral100: string;
|
|
331
362
|
neutral200: string;
|
|
332
363
|
neutral300: string;
|
|
@@ -346,6 +377,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
346
377
|
warning500: string;
|
|
347
378
|
warning600: string;
|
|
348
379
|
warning700: string;
|
|
380
|
+
info: string;
|
|
349
381
|
info100: string;
|
|
350
382
|
info300: string;
|
|
351
383
|
info500: string;
|
|
@@ -466,8 +498,10 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
466
498
|
lg: string;
|
|
467
499
|
}, {
|
|
468
500
|
colors: {
|
|
501
|
+
primary: string;
|
|
469
502
|
primary500: string;
|
|
470
503
|
primary600: string;
|
|
504
|
+
secondary: string;
|
|
471
505
|
secondary100: string;
|
|
472
506
|
secondary200: string;
|
|
473
507
|
secondary300: string;
|
|
@@ -477,6 +511,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
477
511
|
secondary700: string;
|
|
478
512
|
secondary800: string;
|
|
479
513
|
secondary900: string;
|
|
514
|
+
neutral: string;
|
|
480
515
|
neutral100: string;
|
|
481
516
|
neutral200: string;
|
|
482
517
|
neutral300: string;
|
|
@@ -496,6 +531,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
496
531
|
warning500: string;
|
|
497
532
|
warning600: string;
|
|
498
533
|
warning700: string;
|
|
534
|
+
info: string;
|
|
499
535
|
info100: string;
|
|
500
536
|
info300: string;
|
|
501
537
|
info500: string;
|
|
@@ -625,8 +661,10 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
625
661
|
lg: string;
|
|
626
662
|
}, CSS>, createTheme: <Argument0 extends string | ({
|
|
627
663
|
colors?: {
|
|
664
|
+
primary?: string | number | boolean | undefined;
|
|
628
665
|
primary500?: string | number | boolean | undefined;
|
|
629
666
|
primary600?: string | number | boolean | undefined;
|
|
667
|
+
secondary?: string | number | boolean | undefined;
|
|
630
668
|
secondary100?: string | number | boolean | undefined;
|
|
631
669
|
secondary200?: string | number | boolean | undefined;
|
|
632
670
|
secondary300?: string | number | boolean | undefined;
|
|
@@ -636,6 +674,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
636
674
|
secondary700?: string | number | boolean | undefined;
|
|
637
675
|
secondary800?: string | number | boolean | undefined;
|
|
638
676
|
secondary900?: string | number | boolean | undefined;
|
|
677
|
+
neutral?: string | number | boolean | undefined;
|
|
639
678
|
neutral100?: string | number | boolean | undefined;
|
|
640
679
|
neutral200?: string | number | boolean | undefined;
|
|
641
680
|
neutral300?: string | number | boolean | undefined;
|
|
@@ -655,6 +694,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
655
694
|
warning500?: string | number | boolean | undefined;
|
|
656
695
|
warning600?: string | number | boolean | undefined;
|
|
657
696
|
warning700?: string | number | boolean | undefined;
|
|
697
|
+
info?: string | number | boolean | undefined;
|
|
658
698
|
info100?: string | number | boolean | undefined;
|
|
659
699
|
info300?: string | number | boolean | undefined;
|
|
660
700
|
info500?: string | number | boolean | undefined;
|
|
@@ -774,8 +814,10 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
774
814
|
};
|
|
775
815
|
}), Argument1 extends string | ({
|
|
776
816
|
colors?: {
|
|
817
|
+
primary?: string | number | boolean | undefined;
|
|
777
818
|
primary500?: string | number | boolean | undefined;
|
|
778
819
|
primary600?: string | number | boolean | undefined;
|
|
820
|
+
secondary?: string | number | boolean | undefined;
|
|
779
821
|
secondary100?: string | number | boolean | undefined;
|
|
780
822
|
secondary200?: string | number | boolean | undefined;
|
|
781
823
|
secondary300?: string | number | boolean | undefined;
|
|
@@ -785,6 +827,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
785
827
|
secondary700?: string | number | boolean | undefined;
|
|
786
828
|
secondary800?: string | number | boolean | undefined;
|
|
787
829
|
secondary900?: string | number | boolean | undefined;
|
|
830
|
+
neutral?: string | number | boolean | undefined;
|
|
788
831
|
neutral100?: string | number | boolean | undefined;
|
|
789
832
|
neutral200?: string | number | boolean | undefined;
|
|
790
833
|
neutral300?: string | number | boolean | undefined;
|
|
@@ -804,6 +847,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
804
847
|
warning500?: string | number | boolean | undefined;
|
|
805
848
|
warning600?: string | number | boolean | undefined;
|
|
806
849
|
warning700?: string | number | boolean | undefined;
|
|
850
|
+
info?: string | number | boolean | undefined;
|
|
807
851
|
info100?: string | number | boolean | undefined;
|
|
808
852
|
info300?: string | number | boolean | undefined;
|
|
809
853
|
info500?: string | number | boolean | undefined;
|
|
@@ -931,8 +975,10 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
931
975
|
lg: string;
|
|
932
976
|
}, {
|
|
933
977
|
colors: {
|
|
978
|
+
primary: string;
|
|
934
979
|
primary500: string;
|
|
935
980
|
primary600: string;
|
|
981
|
+
secondary: string;
|
|
936
982
|
secondary100: string;
|
|
937
983
|
secondary200: string;
|
|
938
984
|
secondary300: string;
|
|
@@ -942,6 +988,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
942
988
|
secondary700: string;
|
|
943
989
|
secondary800: string;
|
|
944
990
|
secondary900: string;
|
|
991
|
+
neutral: string;
|
|
945
992
|
neutral100: string;
|
|
946
993
|
neutral200: string;
|
|
947
994
|
neutral300: string;
|
|
@@ -961,6 +1008,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
961
1008
|
warning500: string;
|
|
962
1009
|
warning600: string;
|
|
963
1010
|
warning700: string;
|
|
1011
|
+
info: string;
|
|
964
1012
|
info100: string;
|
|
965
1013
|
info300: string;
|
|
966
1014
|
info500: string;
|
|
@@ -1089,8 +1137,10 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1089
1137
|
lg: string;
|
|
1090
1138
|
}, {
|
|
1091
1139
|
colors: {
|
|
1140
|
+
primary: string;
|
|
1092
1141
|
primary500: string;
|
|
1093
1142
|
primary600: string;
|
|
1143
|
+
secondary: string;
|
|
1094
1144
|
secondary100: string;
|
|
1095
1145
|
secondary200: string;
|
|
1096
1146
|
secondary300: string;
|
|
@@ -1100,6 +1150,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1100
1150
|
secondary700: string;
|
|
1101
1151
|
secondary800: string;
|
|
1102
1152
|
secondary900: string;
|
|
1153
|
+
neutral: string;
|
|
1103
1154
|
neutral100: string;
|
|
1104
1155
|
neutral200: string;
|
|
1105
1156
|
neutral300: string;
|
|
@@ -1119,6 +1170,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1119
1170
|
warning500: string;
|
|
1120
1171
|
warning600: string;
|
|
1121
1172
|
warning700: string;
|
|
1173
|
+
info: string;
|
|
1122
1174
|
info100: string;
|
|
1123
1175
|
info300: string;
|
|
1124
1176
|
info500: string;
|
|
@@ -1238,8 +1290,10 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1238
1290
|
lg: string;
|
|
1239
1291
|
}, {
|
|
1240
1292
|
colors: {
|
|
1293
|
+
primary: string;
|
|
1241
1294
|
primary500: string;
|
|
1242
1295
|
primary600: string;
|
|
1296
|
+
secondary: string;
|
|
1243
1297
|
secondary100: string;
|
|
1244
1298
|
secondary200: string;
|
|
1245
1299
|
secondary300: string;
|
|
@@ -1249,6 +1303,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1249
1303
|
secondary700: string;
|
|
1250
1304
|
secondary800: string;
|
|
1251
1305
|
secondary900: string;
|
|
1306
|
+
neutral: string;
|
|
1252
1307
|
neutral100: string;
|
|
1253
1308
|
neutral200: string;
|
|
1254
1309
|
neutral300: string;
|
|
@@ -1268,6 +1323,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1268
1323
|
warning500: string;
|
|
1269
1324
|
warning600: string;
|
|
1270
1325
|
warning700: string;
|
|
1326
|
+
info: string;
|
|
1271
1327
|
info100: string;
|
|
1272
1328
|
info300: string;
|
|
1273
1329
|
info500: string;
|
|
@@ -1389,8 +1445,10 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1389
1445
|
};
|
|
1390
1446
|
theme: {
|
|
1391
1447
|
colors: {
|
|
1448
|
+
primary: string;
|
|
1392
1449
|
primary500: string;
|
|
1393
1450
|
primary600: string;
|
|
1451
|
+
secondary: string;
|
|
1394
1452
|
secondary100: string;
|
|
1395
1453
|
secondary200: string;
|
|
1396
1454
|
secondary300: string;
|
|
@@ -1400,6 +1458,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1400
1458
|
secondary700: string;
|
|
1401
1459
|
secondary800: string;
|
|
1402
1460
|
secondary900: string;
|
|
1461
|
+
neutral: string;
|
|
1403
1462
|
neutral100: string;
|
|
1404
1463
|
neutral200: string;
|
|
1405
1464
|
neutral300: string;
|
|
@@ -1419,6 +1478,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1419
1478
|
warning500: string;
|
|
1420
1479
|
warning600: string;
|
|
1421
1480
|
warning700: string;
|
|
1481
|
+
info: string;
|
|
1422
1482
|
info100: string;
|
|
1423
1483
|
info300: string;
|
|
1424
1484
|
info500: string;
|
|
@@ -1544,9 +1604,11 @@ export declare const darkTheme: string & {
|
|
|
1544
1604
|
selector: string;
|
|
1545
1605
|
} & import("@stitches/react/types/stitches").ThemeTokens<{
|
|
1546
1606
|
colors: {
|
|
1607
|
+
secondary: string;
|
|
1547
1608
|
secondary400: string;
|
|
1548
1609
|
secondary500: string;
|
|
1549
1610
|
secondary600: string;
|
|
1611
|
+
neutral: string;
|
|
1550
1612
|
neutral900: string;
|
|
1551
1613
|
neutral800: string;
|
|
1552
1614
|
neutral700: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/theme.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAMpE,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/theme.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAMpE,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+JjB,CAAC;AAYF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CAuBtB,CAAC;AAMF,eAAO,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4KAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjE,CAAC;AAEL,eAAO,MAAM,UAAU;;;gEAAoC,CAAC;AAE5D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKpB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/ui",
|
|
3
|
-
"version": "0.17.1-next.
|
|
3
|
+
"version": "0.17.1-next.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
"lint": "eslint \"**/*.{ts,tsx}\" --ignore-path ../../.eslintignore"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
+
"@lingui/core": "4.2.1",
|
|
27
|
+
"@lingui/react": "4.2.1",
|
|
26
28
|
"@rango-dev/queue-manager-rango-preset": "*",
|
|
27
29
|
"react": ">=16"
|
|
28
30
|
},
|
|
@@ -31,6 +33,8 @@
|
|
|
31
33
|
"@babel/preset-env": "^7.21.4",
|
|
32
34
|
"@babel/preset-react": "^7.18.6",
|
|
33
35
|
"@babel/preset-typescript": "^7.21.4",
|
|
36
|
+
"@lingui/core": "4.2.1",
|
|
37
|
+
"@lingui/react": "4.2.1",
|
|
34
38
|
"@storybook/addon-essentials": "^7.1.1",
|
|
35
39
|
"@storybook/addon-info": "^5.3.21",
|
|
36
40
|
"@storybook/addon-links": "^7.1.1",
|
|
@@ -55,19 +59,15 @@
|
|
|
55
59
|
"typescript": "^4.8.4"
|
|
56
60
|
},
|
|
57
61
|
"dependencies": {
|
|
58
|
-
"@lingui/core": "4.2.1",
|
|
59
|
-
"@lingui/react": "4.2.1",
|
|
60
62
|
"@radix-ui/react-checkbox": "^1.0.1",
|
|
61
63
|
"@radix-ui/react-collapsible": "^1.0.3",
|
|
62
64
|
"@radix-ui/react-popover": "^1.0.6",
|
|
63
65
|
"@radix-ui/react-radio-group": "^1.1.1",
|
|
64
66
|
"@radix-ui/react-switch": "^1.0.1",
|
|
65
67
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
66
|
-
"@rango-dev/wallets-shared": "^0.17.0",
|
|
68
|
+
"@rango-dev/wallets-shared": "^0.17.1-next.0",
|
|
67
69
|
"@stitches/react": "^1.2.8",
|
|
68
|
-
"@types/react-color": "^3.0.6",
|
|
69
70
|
"rango-sdk": "^0.1.35",
|
|
70
|
-
"react-color": "^2.19.3",
|
|
71
71
|
"react-virtualized-auto-sizer": "^1.0.7",
|
|
72
72
|
"react-window": "^1.8.8",
|
|
73
73
|
"react-window-infinite-loader": "^1.0.8",
|
|
@@ -20,9 +20,9 @@ export const Container = styled('div', {
|
|
|
20
20
|
paddingLeft: '$24',
|
|
21
21
|
},
|
|
22
22
|
'.description': {
|
|
23
|
-
$$color: '$colors$
|
|
23
|
+
$$color: '$colors$neutral700',
|
|
24
24
|
[`.${darkTheme} &`]: {
|
|
25
|
-
$$color: '$colors$
|
|
25
|
+
$$color: '$colors$neutral600',
|
|
26
26
|
},
|
|
27
27
|
color: '$$color',
|
|
28
28
|
fontSize: '$10',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Collapsible from '@radix-ui/react-collapsible';
|
|
2
2
|
|
|
3
3
|
import { darkTheme, styled } from '../../theme';
|
|
4
|
+
import { Image } from '../common';
|
|
4
5
|
import { CollapsibleContent } from '../common/styles';
|
|
5
6
|
|
|
6
7
|
export const EXPANDABLE_ROUTES_TRANSITION_DURATION = 300;
|
|
@@ -10,7 +10,7 @@ import { Container, StyledAnchor } from './BottomLogo.styles';
|
|
|
10
10
|
export function BottomLogo() {
|
|
11
11
|
return (
|
|
12
12
|
<Container>
|
|
13
|
-
<Typography variant="body" size="xsmall" color="$
|
|
13
|
+
<Typography variant="body" size="xsmall" color="$neutral700">
|
|
14
14
|
{i18n.t('Powered By')}
|
|
15
15
|
</Typography>
|
|
16
16
|
<Divider direction="horizontal" size={8} />
|
|
@@ -18,7 +18,7 @@ export function BottomLogo() {
|
|
|
18
18
|
<Logo size={16} color="gray" />
|
|
19
19
|
<Divider direction="horizontal" size={4} />
|
|
20
20
|
|
|
21
|
-
<Typography variant="body" size="xsmall" color="
|
|
21
|
+
<Typography variant="body" size="xsmall" color="neutral700">
|
|
22
22
|
RANGO
|
|
23
23
|
</Typography>
|
|
24
24
|
</StyledAnchor>
|
|
@@ -61,7 +61,7 @@ export const ButtonBase = styled('button', {
|
|
|
61
61
|
[`.${darkTheme} &`]: {
|
|
62
62
|
$$color: '$colors$foreground',
|
|
63
63
|
},
|
|
64
|
-
backgroundColor: '$
|
|
64
|
+
backgroundColor: '$neutral600',
|
|
65
65
|
color: '$$color',
|
|
66
66
|
pointerEvents: 'none',
|
|
67
67
|
},
|
|
@@ -80,16 +80,16 @@ export const ButtonBase = styled('button', {
|
|
|
80
80
|
outline: 0,
|
|
81
81
|
},
|
|
82
82
|
'&:disabled': {
|
|
83
|
-
borderColor: '$
|
|
84
|
-
color: '$
|
|
83
|
+
borderColor: '$neutral600',
|
|
84
|
+
color: '$neutral600',
|
|
85
85
|
pointerEvents: 'none',
|
|
86
86
|
},
|
|
87
87
|
},
|
|
88
88
|
ghost: {
|
|
89
89
|
backgroundColor: 'transparent',
|
|
90
|
-
color: '$
|
|
90
|
+
color: '$neutral700',
|
|
91
91
|
'&:disabled': {
|
|
92
|
-
color: '$
|
|
92
|
+
color: '$neutral600',
|
|
93
93
|
pointerEvents: 'none',
|
|
94
94
|
},
|
|
95
95
|
'&:focus-visible': {
|
|
@@ -140,7 +140,7 @@ export const ButtonBase = styled('button', {
|
|
|
140
140
|
[`.${darkTheme} &`]: {
|
|
141
141
|
$$color: '$colors$foreground',
|
|
142
142
|
},
|
|
143
|
-
background: '$
|
|
143
|
+
background: '$neutral600',
|
|
144
144
|
color: '$$color',
|
|
145
145
|
pointerEvents: 'none',
|
|
146
146
|
},
|
|
@@ -13,7 +13,7 @@ export const CheckboxRoot = styled(RadixCheckbox.Root, {
|
|
|
13
13
|
width: '1rem',
|
|
14
14
|
height: '1rem',
|
|
15
15
|
padding: 0,
|
|
16
|
-
border: '1px solid $
|
|
16
|
+
border: '1px solid $neutral600',
|
|
17
17
|
backgroundColor: 'transparent',
|
|
18
18
|
cursor: 'pointer',
|
|
19
19
|
'&[data-state="checked"]': {
|
|
@@ -12,7 +12,7 @@ export function Chip(props: PropTypes) {
|
|
|
12
12
|
<ChipContainer selected={selected} {...otherProps}>
|
|
13
13
|
{prefix || null}
|
|
14
14
|
<Typography
|
|
15
|
-
color={!selected ? '
|
|
15
|
+
color={!selected ? 'neutral700' : undefined}
|
|
16
16
|
variant="body"
|
|
17
17
|
size="medium">
|
|
18
18
|
{label}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants';
|
|
6
|
+
|
|
7
|
+
export default function English(props: FlagPropTypes) {
|
|
8
|
+
const { size = DEFAULT_SIZE } = props;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<svg
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 512 512">
|
|
16
|
+
<mask id="a">
|
|
17
|
+
<circle cx="256" cy="256" r="256" fill="#fff" />
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#a)">
|
|
20
|
+
<path
|
|
21
|
+
fill="#eee"
|
|
22
|
+
d="m0 0 8 22-8 23v23l32 54-32 54v32l32 48-32 48v32l32 54-32 54v68l22-8 23 8h23l54-32 54 32h32l48-32 48 32h32l54-32 54 32h68l-8-22 8-23v-23l-32-54 32-54v-32l-32-48 32-48v-32l-32-54 32-54V0l-22 8-23-8h-23l-54 32-54-32h-32l-48 32-48-32h-32l-54 32L68 0H0z"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
fill="#0052b4"
|
|
26
|
+
d="M336 0v108L444 0Zm176 68L404 176h108zM0 176h108L0 68ZM68 0l108 108V0Zm108 512V404L68 512ZM0 444l108-108H0Zm512-108H404l108 108Zm-68 176L336 404v108z"
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
fill="#d80027"
|
|
30
|
+
d="M0 0v45l131 131h45L0 0zm208 0v208H0v96h208v208h96V304h208v-96H304V0h-96zm259 0L336 131v45L512 0h-45zM176 336 0 512h45l131-131v-45zm160 0 176 176v-45L381 336h-45z"
|
|
31
|
+
/>
|
|
32
|
+
</g>
|
|
33
|
+
</svg>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DEFAULT_SIZE = '1em';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants';
|
|
6
|
+
|
|
7
|
+
export default function French(props: FlagPropTypes) {
|
|
8
|
+
const { size = DEFAULT_SIZE } = props;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<svg
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 512 512">
|
|
16
|
+
<mask id="a">
|
|
17
|
+
<circle cx="256" cy="256" r="256" fill="#fff" />
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#a)">
|
|
20
|
+
<path fill="#eee" d="M167 0h178l25.9 252.3L345 512H167l-29.8-253.4z" />
|
|
21
|
+
<path fill="#0052b4" d="M0 0h167v512H0z" />
|
|
22
|
+
<path fill="#d80027" d="M345 0h167v512H345z" />
|
|
23
|
+
</g>
|
|
24
|
+
</svg>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants';
|
|
6
|
+
|
|
7
|
+
export default function Japanese(props: FlagPropTypes) {
|
|
8
|
+
const { size = DEFAULT_SIZE } = props;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<svg
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 512 512">
|
|
16
|
+
<mask id="a">
|
|
17
|
+
<circle cx="256" cy="256" r="256" fill="#fff" />
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#a)">
|
|
20
|
+
<path fill="#eee" d="M0 0h512v512H0z" />
|
|
21
|
+
<circle cx="256" cy="256" r="111.3" fill="#d80027" />
|
|
22
|
+
</g>
|
|
23
|
+
</svg>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants';
|
|
6
|
+
|
|
7
|
+
export default function Spanish(props: FlagPropTypes) {
|
|
8
|
+
const { size = DEFAULT_SIZE } = props;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<svg
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 512 512">
|
|
16
|
+
<mask id="a">
|
|
17
|
+
<circle cx="256" cy="256" r="256" fill="#fff" />
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#a)">
|
|
20
|
+
<path fill="#ffda44" d="m0 128 256-32 256 32v256l-256 32L0 384Z" />
|
|
21
|
+
<path fill="#d80027" d="M0 0h512v128H0zm0 384h512v128H0z" />
|
|
22
|
+
<g fill="#eee">
|
|
23
|
+
<path d="M144 304h-16v-80h16zm128 0h16v-80h-16z" />
|
|
24
|
+
<ellipse cx="208" cy="296" rx="48" ry="32" />
|
|
25
|
+
</g>
|
|
26
|
+
<g fill="#d80027">
|
|
27
|
+
<rect width="16" height="24" x="128" y="192" rx="8" />
|
|
28
|
+
<rect width="16" height="24" x="272" y="192" rx="8" />
|
|
29
|
+
<path d="M208 272v24a24 24 0 0 0 24 24 24 24 0 0 0 24-24v-24h-24z" />
|
|
30
|
+
</g>
|
|
31
|
+
<rect width="32" height="16" x="120" y="208" fill="#ff9811" ry="8" />
|
|
32
|
+
<rect width="32" height="16" x="264" y="208" fill="#ff9811" ry="8" />
|
|
33
|
+
<rect width="32" height="16" x="120" y="304" fill="#ff9811" rx="8" />
|
|
34
|
+
<rect width="32" height="16" x="264" y="304" fill="#ff9811" rx="8" />
|
|
35
|
+
<path
|
|
36
|
+
fill="#ff9811"
|
|
37
|
+
d="M160 272v24c0 8 4 14 9 19l5-6 5 10a21 21 0 0 0 10 0l5-10 5 6c6-5 9-11 9-19v-24h-9l-5 8-5-8h-10l-5 8-5-8z"
|
|
38
|
+
/>
|
|
39
|
+
<path d="M122 252h172m-172 24h28m116 0h28" />
|
|
40
|
+
<path
|
|
41
|
+
fill="#d80027"
|
|
42
|
+
d="M122 248a4 4 0 0 0-4 4 4 4 0 0 0 4 4h172a4 4 0 0 0 4-4 4 4 0 0 0-4-4zm0 24a4 4 0 0 0-4 4 4 4 0 0 0 4 4h28a4 4 0 0 0 4-4 4 4 0 0 0-4-4zm144 0a4 4 0 0 0-4 4 4 4 0 0 0 4 4h28a4 4 0 0 0 4-4 4 4 0 0 0-4-4z"
|
|
43
|
+
/>
|
|
44
|
+
<path
|
|
45
|
+
fill="#eee"
|
|
46
|
+
d="M196 168c-7 0-13 5-15 11l-5-1c-9 0-16 7-16 16s7 16 16 16c7 0 13-4 15-11a16 16 0 0 0 17-4 16 16 0 0 0 17 4 16 16 0 1 0 10-20 16 16 0 0 0-27-5c-3-4-7-6-12-6zm0 8c5 0 8 4 8 8 0 5-3 8-8 8-4 0-8-3-8-8 0-4 4-8 8-8zm24 0c5 0 8 4 8 8 0 5-3 8-8 8-4 0-8-3-8-8 0-4 4-8 8-8zm-44 10 4 1 4 8c0 4-4 7-8 7s-8-3-8-8c0-4 4-8 8-8zm64 0c5 0 8 4 8 8 0 5-3 8-8 8-4 0-8-3-8-7l4-8z"
|
|
47
|
+
/>
|
|
48
|
+
<path fill="none" d="M220 284v12c0 7 5 12 12 12s12-5 12-12v-12z" />
|
|
49
|
+
<path fill="#ff9811" d="M200 160h16v32h-16z" />
|
|
50
|
+
<path fill="#eee" d="M208 224h48v48h-48z" />
|
|
51
|
+
<path
|
|
52
|
+
fill="#d80027"
|
|
53
|
+
d="m248 208-8 8h-64l-8-8c0-13 18-24 40-24s40 11 40 24zm-88 16h48v48h-48z"
|
|
54
|
+
/>
|
|
55
|
+
<rect
|
|
56
|
+
width="20"
|
|
57
|
+
height="32"
|
|
58
|
+
x="222"
|
|
59
|
+
y="232"
|
|
60
|
+
fill="#d80027"
|
|
61
|
+
rx="10"
|
|
62
|
+
ry="10"
|
|
63
|
+
/>
|
|
64
|
+
<path
|
|
65
|
+
fill="#ff9811"
|
|
66
|
+
d="M168 232v8h8v16h-8v8h32v-8h-8v-16h8v-8zm8-16h64v8h-64z"
|
|
67
|
+
/>
|
|
68
|
+
<g fill="#ffda44">
|
|
69
|
+
<circle cx="186" cy="202" r="6" />
|
|
70
|
+
<circle cx="208" cy="202" r="6" />
|
|
71
|
+
<circle cx="230" cy="202" r="6" />
|
|
72
|
+
</g>
|
|
73
|
+
<path
|
|
74
|
+
fill="#d80027"
|
|
75
|
+
d="M169 272v43a24 24 0 0 0 10 4v-47h-10zm20 0v47a24 24 0 0 0 10-4v-43h-10z"
|
|
76
|
+
/>
|
|
77
|
+
<g fill="#338af3">
|
|
78
|
+
<circle cx="208" cy="272" r="16" />
|
|
79
|
+
<rect width="32" height="16" x="264" y="320" ry="8" />
|
|
80
|
+
<rect width="32" height="16" x="120" y="320" ry="8" />
|
|
81
|
+
</g>
|
|
82
|
+
</g>
|
|
83
|
+
</svg>
|
|
84
|
+
);
|
|
85
|
+
}
|