@coinbase/cds-mobile 9.0.0-rc.2 → 9.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.
- package/CHANGELOG.md +99 -5
- package/README.md +2 -2
- package/dts/buttons/Button.d.ts.map +1 -1
- package/dts/buttons/IconButton.d.ts +19 -1
- package/dts/buttons/IconButton.d.ts.map +1 -1
- package/dts/cells/Cell.d.ts +2 -1
- package/dts/cells/Cell.d.ts.map +1 -1
- package/dts/controls/InputIconButton.d.ts +5 -0
- package/dts/controls/InputIconButton.d.ts.map +1 -1
- package/dts/controls/InputLabel.d.ts.map +1 -1
- package/dts/controls/NativeInput.d.ts +12 -2
- package/dts/controls/NativeInput.d.ts.map +1 -1
- package/dts/controls/SearchInput.d.ts +5 -1
- package/dts/controls/SearchInput.d.ts.map +1 -1
- package/dts/controls/TextInput.d.ts +5 -2
- package/dts/controls/TextInput.d.ts.map +1 -1
- package/dts/core/theme.d.ts +12 -0
- package/dts/core/theme.d.ts.map +1 -1
- package/dts/illustrations/createIllustration.d.ts +3 -0
- package/dts/illustrations/createIllustration.d.ts.map +1 -1
- package/dts/page/PageFooter.d.ts +8 -0
- package/dts/page/PageFooter.d.ts.map +1 -1
- package/dts/system/ThemeProvider.d.ts.map +1 -1
- package/dts/tabs/DefaultTab.d.ts +4 -2
- package/dts/tabs/DefaultTab.d.ts.map +1 -1
- package/dts/tabs/DefaultTabsActiveIndicator.d.ts.map +1 -1
- package/dts/tabs/SegmentedTab.d.ts +4 -4
- package/dts/tabs/Tabs.d.ts +10 -1
- package/dts/tabs/Tabs.d.ts.map +1 -1
- package/dts/tag/Tag.d.ts +5 -3
- package/dts/tag/Tag.d.ts.map +1 -1
- package/dts/themes/coinbaseDenseTheme.d.ts +34 -2
- package/dts/themes/coinbaseDenseTheme.d.ts.map +1 -1
- package/dts/themes/coinbaseHighContrastTheme.d.ts +32 -0
- package/dts/themes/coinbaseHighContrastTheme.d.ts.map +1 -1
- package/dts/themes/coinbaseTheme.d.ts +34 -2
- package/dts/themes/coinbaseTheme.d.ts.map +1 -1
- package/dts/themes/defaultHighContrastTheme.d.ts +32 -0
- package/dts/themes/defaultHighContrastTheme.d.ts.map +1 -1
- package/dts/themes/defaultTheme.d.ts +34 -2
- package/dts/themes/defaultTheme.d.ts.map +1 -1
- package/dts/utils/convertThemedSvgToHex.d.ts +6 -0
- package/dts/utils/convertThemedSvgToHex.d.ts.map +1 -0
- package/dts/utils/testHelpers.d.ts +34 -2
- package/dts/utils/testHelpers.d.ts.map +1 -1
- package/dts/visualizations/chart/PeriodSelector.d.ts.map +1 -1
- package/dts/visualizations/chart/gradient/Gradient.d.ts.map +1 -1
- package/esm/buttons/IconButton.js +11 -3
- package/esm/buttons/__stories__/IconButton.stories.js +65 -0
- package/esm/controls/InputLabel.js +4 -3
- package/esm/controls/NativeInput.js +3 -1
- package/esm/controls/TextInput.js +25 -15
- package/esm/illustrations/__stories__/ThemedIllustrations.stories.js +214 -0
- package/esm/illustrations/__stories__/illustrationThemes.js +122 -0
- package/esm/illustrations/createIllustration.js +31 -5
- package/esm/page/PageFooter.js +16 -5
- package/esm/page/__figma__/PageFooter.figma.js +49 -6
- package/esm/system/ThemeProvider.js +3 -1
- package/esm/system/__stories__/componentConfigStickerSheet/StickerSheet.js +4 -0
- package/esm/system/__stories__/componentConfigStickerSheet/customComponentConfig.js +24 -12
- package/esm/system/__stories__/componentConfigStickerSheet/examples/ListCell.js +2 -0
- package/esm/system/__stories__/componentConfigStickerSheet/examples/Tabs.js +24 -0
- package/esm/system/__stories__/componentConfigStickerSheet/examples/TextInput.js +12 -0
- package/esm/tabs/DefaultTab.js +7 -9
- package/esm/tabs/DefaultTabsActiveIndicator.js +1 -2
- package/esm/tabs/Tabs.js +18 -12
- package/esm/tabs/__stories__/SegmentedTabs.stories.js +8 -1
- package/esm/tabs/__stories__/Tabs.stories.js +0 -1
- package/esm/tag/Tag.js +14 -4
- package/esm/themes/coinbaseHighContrastTheme.js +32 -0
- package/esm/themes/coinbaseTheme.js +34 -2
- package/esm/themes/defaultHighContrastTheme.js +32 -0
- package/esm/themes/defaultTheme.js +34 -2
- package/esm/utils/convertThemedSvgToHex.js +9 -0
- package/esm/visualizations/chart/PeriodSelector.js +3 -4
- package/esm/visualizations/chart/area/__stories__/AreaChart.stories.js +44 -2
- package/esm/visualizations/chart/gradient/Gradient.js +11 -2
- package/package.json +3 -3
|
@@ -430,7 +430,7 @@ export declare const coinbaseDenseTheme: {
|
|
|
430
430
|
readonly bgNegativeWash: 'rgb(255,245,246)';
|
|
431
431
|
readonly bgPositive: 'rgb(9,133,81)';
|
|
432
432
|
readonly bgPositiveWash: 'rgb(245,255,251)';
|
|
433
|
-
readonly bgWarning: 'rgb(
|
|
433
|
+
readonly bgWarning: 'rgb(207,71,14)';
|
|
434
434
|
readonly bgWarningWash: 'rgb(255,250,245)';
|
|
435
435
|
readonly currentColor: 'currentColor';
|
|
436
436
|
readonly bgLine: 'rgba(91,97,110,0.2)';
|
|
@@ -475,7 +475,7 @@ export declare const coinbaseDenseTheme: {
|
|
|
475
475
|
readonly bgNegativeWash: 'rgb(51,0,4)';
|
|
476
476
|
readonly bgPositive: 'rgb(39,173,117)';
|
|
477
477
|
readonly bgPositiveWash: 'rgb(0,31,18)';
|
|
478
|
-
readonly bgWarning: 'rgb(
|
|
478
|
+
readonly bgWarning: 'rgb(240,120,54)';
|
|
479
479
|
readonly bgWarningWash: 'rgb(51,13,0)';
|
|
480
480
|
readonly currentColor: 'currentColor';
|
|
481
481
|
readonly bgLine: 'rgba(138,145,158,0.2)';
|
|
@@ -555,5 +555,37 @@ export declare const coinbaseDenseTheme: {
|
|
|
555
555
|
readonly shadowRadius: 24;
|
|
556
556
|
};
|
|
557
557
|
};
|
|
558
|
+
readonly lightIllustrationColor: {
|
|
559
|
+
readonly primary: 'rgb(0,82,255)';
|
|
560
|
+
readonly black: 'rgb(10,11,13)';
|
|
561
|
+
readonly white: 'rgb(255,255,255)';
|
|
562
|
+
readonly gray: 'rgb(206,210,219)';
|
|
563
|
+
readonly gray2: 'rgb(10, 11, 15)';
|
|
564
|
+
readonly gray3: 'rgb(206, 210, 220)';
|
|
565
|
+
readonly positive: 'rgb(60,194,138)';
|
|
566
|
+
readonly negative: 'rgb(225,57,71)';
|
|
567
|
+
readonly accent1: 'rgb(255, 210, 0)';
|
|
568
|
+
readonly accent2: 'rgb(93,226,248)';
|
|
569
|
+
readonly accent3: 'rgb(237,112,47)';
|
|
570
|
+
readonly accent4: 'rgb(115,162,255)';
|
|
571
|
+
readonly invert: 'rgb(10, 11, 14)';
|
|
572
|
+
readonly invert2: 'rgb(255, 255, 254)';
|
|
573
|
+
};
|
|
574
|
+
readonly darkIllustrationColor: {
|
|
575
|
+
readonly primary: 'rgb(87,139,250)';
|
|
576
|
+
readonly black: 'rgb(10,11,13)';
|
|
577
|
+
readonly white: 'rgb(255,255,255)';
|
|
578
|
+
readonly gray: 'rgb(70,75,85)';
|
|
579
|
+
readonly gray2: 'rgb(70,75,85)';
|
|
580
|
+
readonly gray3: 'rgb(255,255,255)';
|
|
581
|
+
readonly positive: 'rgb(68,194,141)';
|
|
582
|
+
readonly negative: 'rgb(240,97,109)';
|
|
583
|
+
readonly accent1: 'rgb(236, 208, 105)';
|
|
584
|
+
readonly accent2: 'rgb(69,217,245)';
|
|
585
|
+
readonly accent3: 'rgb(240,120,54)';
|
|
586
|
+
readonly accent4: 'rgb(132,170,253)';
|
|
587
|
+
readonly invert: 'rgb(255,255,255)';
|
|
588
|
+
readonly invert2: 'rgb(114,120,134)';
|
|
589
|
+
};
|
|
558
590
|
};
|
|
559
591
|
//# sourceMappingURL=coinbaseDenseTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinbaseDenseTheme.d.ts","sourceRoot":"","sources":["../../src/themes/coinbaseDenseTheme.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"coinbaseDenseTheme.d.ts","sourceRoot":"","sources":["../../src/themes/coinbaseDenseTheme.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHC,CAAC"}
|
|
@@ -551,5 +551,37 @@ export declare const coinbaseHighContrastTheme: {
|
|
|
551
551
|
readonly shadowRadius: 24;
|
|
552
552
|
};
|
|
553
553
|
};
|
|
554
|
+
readonly lightIllustrationColor: {
|
|
555
|
+
readonly primary: 'rgb(0,82,255)';
|
|
556
|
+
readonly black: 'rgb(10,11,13)';
|
|
557
|
+
readonly white: 'rgb(255,255,255)';
|
|
558
|
+
readonly gray: 'rgb(206,210,219)';
|
|
559
|
+
readonly gray2: 'rgb(10, 11, 15)';
|
|
560
|
+
readonly gray3: 'rgb(206, 210, 220)';
|
|
561
|
+
readonly positive: 'rgb(60,194,138)';
|
|
562
|
+
readonly negative: 'rgb(225,57,71)';
|
|
563
|
+
readonly accent1: 'rgb(255, 210, 0)';
|
|
564
|
+
readonly accent2: 'rgb(93,226,248)';
|
|
565
|
+
readonly accent3: 'rgb(237,112,47)';
|
|
566
|
+
readonly accent4: 'rgb(115,162,255)';
|
|
567
|
+
readonly invert: 'rgb(10, 11, 14)';
|
|
568
|
+
readonly invert2: 'rgb(255, 255, 254)';
|
|
569
|
+
};
|
|
570
|
+
readonly darkIllustrationColor: {
|
|
571
|
+
readonly primary: 'rgb(87,139,250)';
|
|
572
|
+
readonly black: 'rgb(10,11,13)';
|
|
573
|
+
readonly white: 'rgb(255,255,255)';
|
|
574
|
+
readonly gray: 'rgb(70,75,85)';
|
|
575
|
+
readonly gray2: 'rgb(70,75,85)';
|
|
576
|
+
readonly gray3: 'rgb(255,255,255)';
|
|
577
|
+
readonly positive: 'rgb(68,194,141)';
|
|
578
|
+
readonly negative: 'rgb(240,97,109)';
|
|
579
|
+
readonly accent1: 'rgb(236, 208, 105)';
|
|
580
|
+
readonly accent2: 'rgb(69,217,245)';
|
|
581
|
+
readonly accent3: 'rgb(240,120,54)';
|
|
582
|
+
readonly accent4: 'rgb(143,178,255)';
|
|
583
|
+
readonly invert: 'rgb(255,255,255)';
|
|
584
|
+
readonly invert2: 'rgb(114,120,134)';
|
|
585
|
+
};
|
|
554
586
|
};
|
|
555
587
|
//# sourceMappingURL=coinbaseHighContrastTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinbaseHighContrastTheme.d.ts","sourceRoot":"","sources":["../../src/themes/coinbaseHighContrastTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,2BAA2B,CAAC;AAsSpE,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"coinbaseHighContrastTheme.d.ts","sourceRoot":"","sources":["../../src/themes/coinbaseHighContrastTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,2BAA2B,CAAC;AAsSpE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8SN,CAAC"}
|
|
@@ -312,7 +312,7 @@ export declare const coinbaseTheme: {
|
|
|
312
312
|
readonly bgNegativeWash: 'rgb(255,245,246)';
|
|
313
313
|
readonly bgPositive: 'rgb(9,133,81)';
|
|
314
314
|
readonly bgPositiveWash: 'rgb(245,255,251)';
|
|
315
|
-
readonly bgWarning: 'rgb(
|
|
315
|
+
readonly bgWarning: 'rgb(207,71,14)';
|
|
316
316
|
readonly bgWarningWash: 'rgb(255,250,245)';
|
|
317
317
|
readonly currentColor: 'currentColor';
|
|
318
318
|
readonly bgLine: 'rgba(91,97,110,0.2)';
|
|
@@ -357,7 +357,7 @@ export declare const coinbaseTheme: {
|
|
|
357
357
|
readonly bgNegativeWash: 'rgb(51,0,4)';
|
|
358
358
|
readonly bgPositive: 'rgb(39,173,117)';
|
|
359
359
|
readonly bgPositiveWash: 'rgb(0,31,18)';
|
|
360
|
-
readonly bgWarning: 'rgb(
|
|
360
|
+
readonly bgWarning: 'rgb(240,120,54)';
|
|
361
361
|
readonly bgWarningWash: 'rgb(51,13,0)';
|
|
362
362
|
readonly currentColor: 'currentColor';
|
|
363
363
|
readonly bgLine: 'rgba(138,145,158,0.2)';
|
|
@@ -551,5 +551,37 @@ export declare const coinbaseTheme: {
|
|
|
551
551
|
readonly shadowRadius: 24;
|
|
552
552
|
};
|
|
553
553
|
};
|
|
554
|
+
readonly lightIllustrationColor: {
|
|
555
|
+
readonly primary: 'rgb(0,82,255)';
|
|
556
|
+
readonly black: 'rgb(10,11,13)';
|
|
557
|
+
readonly white: 'rgb(255,255,255)';
|
|
558
|
+
readonly gray: 'rgb(206,210,219)';
|
|
559
|
+
readonly gray2: 'rgb(10, 11, 15)';
|
|
560
|
+
readonly gray3: 'rgb(206, 210, 220)';
|
|
561
|
+
readonly positive: 'rgb(60,194,138)';
|
|
562
|
+
readonly negative: 'rgb(225,57,71)';
|
|
563
|
+
readonly accent1: 'rgb(255, 210, 0)';
|
|
564
|
+
readonly accent2: 'rgb(93,226,248)';
|
|
565
|
+
readonly accent3: 'rgb(237,112,47)';
|
|
566
|
+
readonly accent4: 'rgb(115,162,255)';
|
|
567
|
+
readonly invert: 'rgb(10, 11, 14)';
|
|
568
|
+
readonly invert2: 'rgb(255, 255, 254)';
|
|
569
|
+
};
|
|
570
|
+
readonly darkIllustrationColor: {
|
|
571
|
+
readonly primary: 'rgb(87,139,250)';
|
|
572
|
+
readonly black: 'rgb(10,11,13)';
|
|
573
|
+
readonly white: 'rgb(255,255,255)';
|
|
574
|
+
readonly gray: 'rgb(70,75,85)';
|
|
575
|
+
readonly gray2: 'rgb(70,75,85)';
|
|
576
|
+
readonly gray3: 'rgb(255,255,255)';
|
|
577
|
+
readonly positive: 'rgb(68,194,141)';
|
|
578
|
+
readonly negative: 'rgb(240,97,109)';
|
|
579
|
+
readonly accent1: 'rgb(236, 208, 105)';
|
|
580
|
+
readonly accent2: 'rgb(69,217,245)';
|
|
581
|
+
readonly accent3: 'rgb(240,120,54)';
|
|
582
|
+
readonly accent4: 'rgb(132,170,253)';
|
|
583
|
+
readonly invert: 'rgb(255,255,255)';
|
|
584
|
+
readonly invert2: 'rgb(114,120,134)';
|
|
585
|
+
};
|
|
554
586
|
};
|
|
555
587
|
//# sourceMappingURL=coinbaseTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinbaseTheme.d.ts","sourceRoot":"","sources":["../../src/themes/coinbaseTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,aAAa,CAAC;AAsS1C,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"coinbaseTheme.d.ts","sourceRoot":"","sources":["../../src/themes/coinbaseTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,aAAa,CAAC;AAsS1C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8SM,CAAC"}
|
|
@@ -551,5 +551,37 @@ export declare const defaultHighContrastTheme: {
|
|
|
551
551
|
readonly shadowRadius: 24;
|
|
552
552
|
};
|
|
553
553
|
};
|
|
554
|
+
readonly lightIllustrationColor: {
|
|
555
|
+
readonly primary: 'rgb(0,82,255)';
|
|
556
|
+
readonly black: 'rgb(10,11,13)';
|
|
557
|
+
readonly white: 'rgb(255,255,255)';
|
|
558
|
+
readonly gray: 'rgb(206,210,219)';
|
|
559
|
+
readonly gray2: 'rgb(10, 11, 15)';
|
|
560
|
+
readonly gray3: 'rgb(206, 210, 220)';
|
|
561
|
+
readonly positive: 'rgb(60,194,138)';
|
|
562
|
+
readonly negative: 'rgb(225,57,71)';
|
|
563
|
+
readonly accent1: 'rgb(255, 210, 0)';
|
|
564
|
+
readonly accent2: 'rgb(93,226,248)';
|
|
565
|
+
readonly accent3: 'rgb(237,112,47)';
|
|
566
|
+
readonly accent4: 'rgb(115,162,255)';
|
|
567
|
+
readonly invert: 'rgb(10, 11, 14)';
|
|
568
|
+
readonly invert2: 'rgb(255, 255, 254)';
|
|
569
|
+
};
|
|
570
|
+
readonly darkIllustrationColor: {
|
|
571
|
+
readonly primary: 'rgb(87,139,250)';
|
|
572
|
+
readonly black: 'rgb(10,11,13)';
|
|
573
|
+
readonly white: 'rgb(255,255,255)';
|
|
574
|
+
readonly gray: 'rgb(70,75,85)';
|
|
575
|
+
readonly gray2: 'rgb(70,75,85)';
|
|
576
|
+
readonly gray3: 'rgb(255,255,255)';
|
|
577
|
+
readonly positive: 'rgb(68,194,141)';
|
|
578
|
+
readonly negative: 'rgb(240,97,109)';
|
|
579
|
+
readonly accent1: 'rgb(236, 208, 105)';
|
|
580
|
+
readonly accent2: 'rgb(69,217,245)';
|
|
581
|
+
readonly accent3: 'rgb(240,120,54)';
|
|
582
|
+
readonly accent4: 'rgb(143,178,255)';
|
|
583
|
+
readonly invert: 'rgb(255,255,255)';
|
|
584
|
+
readonly invert2: 'rgb(114,120,134)';
|
|
585
|
+
};
|
|
554
586
|
};
|
|
555
587
|
//# sourceMappingURL=defaultHighContrastTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultHighContrastTheme.d.ts","sourceRoot":"","sources":["../../src/themes/defaultHighContrastTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,8BAA8B,CAAC;AAsStE,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"defaultHighContrastTheme.d.ts","sourceRoot":"","sources":["../../src/themes/defaultHighContrastTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,8BAA8B,CAAC;AAsStE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8SL,CAAC"}
|
|
@@ -312,7 +312,7 @@ export declare const defaultTheme: {
|
|
|
312
312
|
readonly bgNegativeWash: 'rgb(255,245,246)';
|
|
313
313
|
readonly bgPositive: 'rgb(9,133,81)';
|
|
314
314
|
readonly bgPositiveWash: 'rgb(245,255,251)';
|
|
315
|
-
readonly bgWarning: 'rgb(
|
|
315
|
+
readonly bgWarning: 'rgb(207,71,14)';
|
|
316
316
|
readonly bgWarningWash: 'rgb(255,250,245)';
|
|
317
317
|
readonly currentColor: 'currentColor';
|
|
318
318
|
readonly bgLine: 'rgba(91,97,110,0.2)';
|
|
@@ -357,7 +357,7 @@ export declare const defaultTheme: {
|
|
|
357
357
|
readonly bgNegativeWash: 'rgb(51,0,4)';
|
|
358
358
|
readonly bgPositive: 'rgb(39,173,117)';
|
|
359
359
|
readonly bgPositiveWash: 'rgb(0,31,18)';
|
|
360
|
-
readonly bgWarning: 'rgb(
|
|
360
|
+
readonly bgWarning: 'rgb(240,120,54)';
|
|
361
361
|
readonly bgWarningWash: 'rgb(51,13,0)';
|
|
362
362
|
readonly currentColor: 'currentColor';
|
|
363
363
|
readonly bgLine: 'rgba(138,145,158,0.2)';
|
|
@@ -381,6 +381,38 @@ export declare const defaultTheme: {
|
|
|
381
381
|
readonly accentBoldGray: 'rgb(193,198,207)';
|
|
382
382
|
readonly transparent: 'rgba(10,11,13,0)';
|
|
383
383
|
};
|
|
384
|
+
readonly lightIllustrationColor: {
|
|
385
|
+
readonly primary: 'rgb(0,82,255)';
|
|
386
|
+
readonly black: 'rgb(10,11,13)';
|
|
387
|
+
readonly white: 'rgb(255,255,255)';
|
|
388
|
+
readonly gray: 'rgb(206,210,219)';
|
|
389
|
+
readonly gray2: 'rgb(10, 11, 15)';
|
|
390
|
+
readonly gray3: 'rgb(206, 210, 220)';
|
|
391
|
+
readonly positive: 'rgb(60,194,138)';
|
|
392
|
+
readonly negative: 'rgb(225,57,71)';
|
|
393
|
+
readonly accent1: 'rgb(255, 210, 0)';
|
|
394
|
+
readonly accent2: 'rgb(93,226,248)';
|
|
395
|
+
readonly accent3: 'rgb(237,112,47)';
|
|
396
|
+
readonly accent4: 'rgb(115,162,255)';
|
|
397
|
+
readonly invert: 'rgb(10, 11, 14)';
|
|
398
|
+
readonly invert2: 'rgb(255, 255, 254)';
|
|
399
|
+
};
|
|
400
|
+
readonly darkIllustrationColor: {
|
|
401
|
+
readonly primary: 'rgb(87,139,250)';
|
|
402
|
+
readonly black: 'rgb(10,11,13)';
|
|
403
|
+
readonly white: 'rgb(255,255,255)';
|
|
404
|
+
readonly gray: 'rgb(70,75,85)';
|
|
405
|
+
readonly gray2: 'rgb(70,75,85)';
|
|
406
|
+
readonly gray3: 'rgb(255,255,255)';
|
|
407
|
+
readonly positive: 'rgb(68,194,141)';
|
|
408
|
+
readonly negative: 'rgb(240,97,109)';
|
|
409
|
+
readonly accent1: 'rgb(236, 208, 105)';
|
|
410
|
+
readonly accent2: 'rgb(69,217,245)';
|
|
411
|
+
readonly accent3: 'rgb(240,120,54)';
|
|
412
|
+
readonly accent4: 'rgb(132,170,253)';
|
|
413
|
+
readonly invert: 'rgb(255,255,255)';
|
|
414
|
+
readonly invert2: 'rgb(114,120,134)';
|
|
415
|
+
};
|
|
384
416
|
readonly space: {
|
|
385
417
|
readonly '0': 0;
|
|
386
418
|
readonly '0.25': 2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../../src/themes/defaultTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAsS5C,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../../src/themes/defaultTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAsS5C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8SO,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ThemeVars } from '@coinbase/cds-common/core/theme';
|
|
2
|
+
export declare const convertThemedSvgToHex: (
|
|
3
|
+
xml: string,
|
|
4
|
+
illustrationPalette: { [key in ThemeVars.IllustrationColor]: string },
|
|
5
|
+
) => string;
|
|
6
|
+
//# sourceMappingURL=convertThemedSvgToHex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convertThemedSvgToHex.d.ts","sourceRoot":"","sources":["../../src/utils/convertThemedSvgToHex.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAEjE,eAAO,MAAM,qBAAqB,GAChC,KAAK,MAAM,EACX,qBAAqB,GAAG,GAAG,IAAI,SAAS,CAAC,iBAAiB,GAAG,MAAM,GAAE,WAStE,CAAC"}
|
|
@@ -333,7 +333,7 @@ export declare const theme: {
|
|
|
333
333
|
readonly bgNegativeWash: 'rgb(255,245,246)';
|
|
334
334
|
readonly bgPositive: 'rgb(9,133,81)';
|
|
335
335
|
readonly bgPositiveWash: 'rgb(245,255,251)';
|
|
336
|
-
readonly bgWarning: 'rgb(
|
|
336
|
+
readonly bgWarning: 'rgb(207,71,14)';
|
|
337
337
|
readonly bgWarningWash: 'rgb(255,250,245)';
|
|
338
338
|
readonly currentColor: 'currentColor';
|
|
339
339
|
readonly bgLine: 'rgba(91,97,110,0.2)';
|
|
@@ -378,7 +378,7 @@ export declare const theme: {
|
|
|
378
378
|
readonly bgNegativeWash: 'rgb(51,0,4)';
|
|
379
379
|
readonly bgPositive: 'rgb(39,173,117)';
|
|
380
380
|
readonly bgPositiveWash: 'rgb(0,31,18)';
|
|
381
|
-
readonly bgWarning: 'rgb(
|
|
381
|
+
readonly bgWarning: 'rgb(240,120,54)';
|
|
382
382
|
readonly bgWarningWash: 'rgb(51,13,0)';
|
|
383
383
|
readonly currentColor: 'currentColor';
|
|
384
384
|
readonly bgLine: 'rgba(138,145,158,0.2)';
|
|
@@ -402,6 +402,38 @@ export declare const theme: {
|
|
|
402
402
|
readonly accentBoldGray: 'rgb(193,198,207)';
|
|
403
403
|
readonly transparent: 'rgba(10,11,13,0)';
|
|
404
404
|
};
|
|
405
|
+
readonly lightIllustrationColor: {
|
|
406
|
+
readonly primary: 'rgb(0,82,255)';
|
|
407
|
+
readonly black: 'rgb(10,11,13)';
|
|
408
|
+
readonly white: 'rgb(255,255,255)';
|
|
409
|
+
readonly gray: 'rgb(206,210,219)';
|
|
410
|
+
readonly gray2: 'rgb(10, 11, 15)';
|
|
411
|
+
readonly gray3: 'rgb(206, 210, 220)';
|
|
412
|
+
readonly positive: 'rgb(60,194,138)';
|
|
413
|
+
readonly negative: 'rgb(225,57,71)';
|
|
414
|
+
readonly accent1: 'rgb(255, 210, 0)';
|
|
415
|
+
readonly accent2: 'rgb(93,226,248)';
|
|
416
|
+
readonly accent3: 'rgb(237,112,47)';
|
|
417
|
+
readonly accent4: 'rgb(115,162,255)';
|
|
418
|
+
readonly invert: 'rgb(10, 11, 14)';
|
|
419
|
+
readonly invert2: 'rgb(255, 255, 254)';
|
|
420
|
+
};
|
|
421
|
+
readonly darkIllustrationColor: {
|
|
422
|
+
readonly primary: 'rgb(87,139,250)';
|
|
423
|
+
readonly black: 'rgb(10,11,13)';
|
|
424
|
+
readonly white: 'rgb(255,255,255)';
|
|
425
|
+
readonly gray: 'rgb(70,75,85)';
|
|
426
|
+
readonly gray2: 'rgb(70,75,85)';
|
|
427
|
+
readonly gray3: 'rgb(255,255,255)';
|
|
428
|
+
readonly positive: 'rgb(68,194,141)';
|
|
429
|
+
readonly negative: 'rgb(240,97,109)';
|
|
430
|
+
readonly accent1: 'rgb(236, 208, 105)';
|
|
431
|
+
readonly accent2: 'rgb(69,217,245)';
|
|
432
|
+
readonly accent3: 'rgb(240,120,54)';
|
|
433
|
+
readonly accent4: 'rgb(132,170,253)';
|
|
434
|
+
readonly invert: 'rgb(255,255,255)';
|
|
435
|
+
readonly invert2: 'rgb(114,120,134)';
|
|
436
|
+
};
|
|
405
437
|
readonly space: {
|
|
406
438
|
readonly '0': 0;
|
|
407
439
|
readonly '0.25': 2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testHelpers.d.ts","sourceRoot":"","sources":["../../src/utils/testHelpers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAIjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAG7B,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,iBAAiB,CAAC,EAAE,WAAW,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"testHelpers.d.ts","sourceRoot":"","sources":["../../src/utils/testHelpers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAIjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAG7B,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,iBAAiB,CAAC,EAAE,WAAW,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAe,CAAC;AAElC,eAAO,MAAM,oBAAoB,GAAI,yCAIlC,yBAAyB,4CAM3B,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAK3E;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,EACb,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,GACrD,OAAO,CAkBT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeriodSelector.d.ts","sourceRoot":"","sources":["../../../src/visualizations/chart/PeriodSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAc,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIhE,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,wBAAwB,EAC9B,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG5D,eAAO,MAAM,6BAA6B,GAAI,wDAK3C,wBAAwB,wDAmD1B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG;IAClD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAStD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;IAxBvB;;;OAGG;YACK,MAAM;IACd;;OAEG;cACO,OAAO;IACjB;;OAEG;YACK,GAAG;8BAyCZ,CAAC;
|
|
1
|
+
{"version":3,"file":"PeriodSelector.d.ts","sourceRoot":"","sources":["../../../src/visualizations/chart/PeriodSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAc,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIhE,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,wBAAwB,EAC9B,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG5D,eAAO,MAAM,6BAA6B,GAAI,wDAK3C,wBAAwB,wDAmD1B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG;IAClD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAStD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;IAxBvB;;;OAGG;YACK,MAAM;IACd;;OAEG;cACO,OAAO;IACjB;;OAEG;YACK,GAAG;8BAyCZ,CAAC;AAQF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,cAAc;;YAhHK,CAAC;WACH,CAAC;uBAG5B,CAAC;;6BAwIH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gradient.d.ts","sourceRoot":"","sources":["../../../../src/visualizations/chart/gradient/Gradient.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAyD,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAClG,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,kBAAkB,CAAC;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG;IAC9C;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Gradient.d.ts","sourceRoot":"","sources":["../../../../src/visualizations/chart/gradient/Gradient.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAyD,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAClG,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,kBAAkB,CAAC;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG;IAC9C;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,qDAyJpB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["name", "active", "variant", "transparent", "compact", "background", "color", "borderColor", "iconSize", "borderWidth", "borderRadius", "feedback", "flush", "padding", "loading", "progressCircleSize", "accessibilityHint", "accessibilityLabel"];
|
|
1
|
+
const _excluded = ["name", "active", "variant", "alignSelf", "transparent", "compact", "background", "color", "borderColor", "iconSize", "borderWidth", "borderRadius", "feedback", "flush", "padding", "loading", "progressCircleSize", "style", "styles", "accessibilityHint", "accessibilityLabel"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import { forwardRef, memo } from 'react';
|
|
@@ -15,6 +15,8 @@ export const IconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
15
15
|
name,
|
|
16
16
|
active,
|
|
17
17
|
variant = 'secondary',
|
|
18
|
+
alignSelf = 'flex-start',
|
|
19
|
+
// prevents stretching when placed in a flex container
|
|
18
20
|
transparent,
|
|
19
21
|
compact = true,
|
|
20
22
|
background,
|
|
@@ -29,6 +31,7 @@ export const IconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
29
31
|
padding = compact ? 1.5 : 2,
|
|
30
32
|
loading,
|
|
31
33
|
progressCircleSize,
|
|
34
|
+
styles,
|
|
32
35
|
accessibilityHint,
|
|
33
36
|
accessibilityLabel
|
|
34
37
|
} = mergedProps,
|
|
@@ -46,7 +49,7 @@ export const IconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
46
49
|
accessibilityHint: accessibilityHint,
|
|
47
50
|
accessibilityLabel: loading ? (accessibilityLabel != null ? accessibilityLabel : '') + ", loading" : accessibilityLabel,
|
|
48
51
|
alignItems: "center",
|
|
49
|
-
alignSelf:
|
|
52
|
+
alignSelf: alignSelf,
|
|
50
53
|
background: backgroundValue,
|
|
51
54
|
borderColor: borderColorValue,
|
|
52
55
|
borderRadius: borderRadius,
|
|
@@ -58,12 +61,14 @@ export const IconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
58
61
|
marginEnd: flush === 'end' ? flushMargin : undefined,
|
|
59
62
|
marginStart: flush === 'start' ? flushMargin : undefined,
|
|
60
63
|
padding: padding,
|
|
64
|
+
style: styles == null ? void 0 : styles.root,
|
|
61
65
|
transparentWhileInactive: transparent
|
|
62
66
|
}, props, {
|
|
63
67
|
children: loading ? /*#__PURE__*/_jsx(ProgressCircle, {
|
|
64
68
|
indeterminate: true,
|
|
65
69
|
color: colorValue,
|
|
66
70
|
size: progressCircleSize != null ? progressCircleSize : iconSizeValue,
|
|
71
|
+
style: styles == null ? void 0 : styles.progressCircle,
|
|
67
72
|
testID: props.testID ? props.testID + "-progress-circle" : undefined,
|
|
68
73
|
weight: "thin"
|
|
69
74
|
}) :
|
|
@@ -73,7 +78,10 @@ export const IconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
73
78
|
active: active,
|
|
74
79
|
color: colorValue,
|
|
75
80
|
name: name,
|
|
76
|
-
size: iconSize
|
|
81
|
+
size: iconSize,
|
|
82
|
+
styles: {
|
|
83
|
+
icon: styles == null ? void 0 : styles.icon
|
|
84
|
+
}
|
|
77
85
|
})
|
|
78
86
|
}));
|
|
79
87
|
}));
|
|
@@ -177,6 +177,71 @@ const IconButtonScreen = () => {
|
|
|
177
177
|
})]
|
|
178
178
|
})
|
|
179
179
|
})
|
|
180
|
+
}), /*#__PURE__*/_jsx(Example, {
|
|
181
|
+
inline: true,
|
|
182
|
+
title: "Icon Glyph Styles",
|
|
183
|
+
children: /*#__PURE__*/_jsxs(VStack, {
|
|
184
|
+
gap: 2,
|
|
185
|
+
children: [/*#__PURE__*/_jsxs(Box, {
|
|
186
|
+
alignItems: "center",
|
|
187
|
+
flexDirection: "row",
|
|
188
|
+
gap: 2,
|
|
189
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
190
|
+
accessibilityLabel: "Custom color via styles.icon",
|
|
191
|
+
name: iconName,
|
|
192
|
+
styles: {
|
|
193
|
+
icon: {
|
|
194
|
+
color: 'dodgerblue'
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
198
|
+
font: "body",
|
|
199
|
+
children: "Custom color via styles.icon"
|
|
200
|
+
})]
|
|
201
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
202
|
+
alignItems: "center",
|
|
203
|
+
flexDirection: "row",
|
|
204
|
+
gap: 2,
|
|
205
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
206
|
+
accessibilityLabel: "Rotated icon via styles.icon",
|
|
207
|
+
name: iconName,
|
|
208
|
+
styles: {
|
|
209
|
+
icon: {
|
|
210
|
+
transform: [{
|
|
211
|
+
rotate: '45deg'
|
|
212
|
+
}]
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
216
|
+
font: "body",
|
|
217
|
+
children: "Rotated icon via styles.icon"
|
|
218
|
+
})]
|
|
219
|
+
})]
|
|
220
|
+
})
|
|
221
|
+
}), /*#__PURE__*/_jsx(Example, {
|
|
222
|
+
inline: true,
|
|
223
|
+
title: "Progress Circle Styles",
|
|
224
|
+
children: /*#__PURE__*/_jsx(VStack, {
|
|
225
|
+
gap: 2,
|
|
226
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
227
|
+
alignItems: "center",
|
|
228
|
+
flexDirection: "row",
|
|
229
|
+
gap: 2,
|
|
230
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
231
|
+
loading: true,
|
|
232
|
+
accessibilityLabel: "Reduced opacity progress circle",
|
|
233
|
+
name: iconName,
|
|
234
|
+
styles: {
|
|
235
|
+
progressCircle: {
|
|
236
|
+
opacity: 0.3
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
240
|
+
font: "body",
|
|
241
|
+
children: "Reduced opacity"
|
|
242
|
+
})]
|
|
243
|
+
})
|
|
244
|
+
})
|
|
180
245
|
}), /*#__PURE__*/_jsx(Example, {
|
|
181
246
|
inline: true,
|
|
182
247
|
title: "Loading",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["color"];
|
|
1
|
+
const _excluded = ["color", "font"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { memo } from 'react';
|
|
@@ -6,12 +6,13 @@ import { Text } from '../typography/Text';
|
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export const InputLabel = /*#__PURE__*/memo(function InputLabel(_ref) {
|
|
8
8
|
let {
|
|
9
|
-
color
|
|
9
|
+
color = 'fg',
|
|
10
|
+
font = 'label1'
|
|
10
11
|
} = _ref,
|
|
11
12
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
12
13
|
return /*#__PURE__*/_jsx(Text, _extends({
|
|
13
14
|
color: color,
|
|
14
|
-
font:
|
|
15
|
+
font: font,
|
|
15
16
|
paddingY: 0.5
|
|
16
17
|
}, props));
|
|
17
18
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["containerSpacing", "testID", "align", "disabled", "textAlign", "font", "accessibilityLabel", "compact", "style"];
|
|
1
|
+
const _excluded = ["containerSpacing", "testID", "align", "disabled", "textAlign", "font", "accessibilityLabel", "compact", "selectionColor", "style"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { forwardRef, memo, useMemo } from 'react';
|
|
@@ -16,6 +16,7 @@ export const NativeInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref)
|
|
|
16
16
|
font = 'body',
|
|
17
17
|
accessibilityLabel,
|
|
18
18
|
compact,
|
|
19
|
+
selectionColor = 'fgPrimary',
|
|
19
20
|
style
|
|
20
21
|
} = _ref,
|
|
21
22
|
editableInputAddonProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
@@ -57,6 +58,7 @@ export const NativeInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref)
|
|
|
57
58
|
editable: !disabled,
|
|
58
59
|
keyboardAppearance: theme.activeColorScheme,
|
|
59
60
|
placeholderTextColor: theme.color.fgMuted,
|
|
61
|
+
selectionColor: theme.color[selectionColor],
|
|
60
62
|
style: inputRootStyles,
|
|
61
63
|
testID: testID,
|
|
62
64
|
textAlign: textAlign !== 'unset' ? textAlign : undefined
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["label", "helperText", "variant", "testID", "testIDMap", "start", "end", "width", "disabled", "align", "font", "compact", "suffix", "accessibilityLabel", "borderRadius", "enableColorSurge", "helperTextErrorIconAccessibilityLabel", "bordered", "focusedBorderWidth", "labelVariant", "labelNode", "inputBackground"];
|
|
1
|
+
const _excluded = ["label", "labelFont", "labelColor", "helperText", "variant", "testID", "testIDMap", "start", "end", "width", "disabled", "align", "font", "compact", "suffix", "accessibilityLabel", "borderRadius", "enableColorSurge", "helperTextErrorIconAccessibilityLabel", "bordered", "focusedBorderWidth", "labelVariant", "labelNode", "inputBackground"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { cloneElement, forwardRef, isValidElement, memo, useCallback, useMemo, useRef, useState } from 'react';
|
|
@@ -27,10 +27,12 @@ const variantColorMap = {
|
|
|
27
27
|
secondary: 'bgSecondary'
|
|
28
28
|
};
|
|
29
29
|
export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) => {
|
|
30
|
-
var _testIDMap$end, _testIDMap$helperText, _testIDMap$label;
|
|
30
|
+
var _testIDMap$end, _testIDMap$helperText, _testIDMap$label, _testIDMap$label2;
|
|
31
31
|
const mergedProps = useComponentConfig('TextInput', _props);
|
|
32
32
|
const {
|
|
33
33
|
label,
|
|
34
|
+
labelFont = 'label1',
|
|
35
|
+
labelColor = 'fg',
|
|
34
36
|
helperText = '',
|
|
35
37
|
variant = 'foregroundMuted',
|
|
36
38
|
testID,
|
|
@@ -164,27 +166,33 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
164
166
|
containerSpacing: containerSpacing,
|
|
165
167
|
disabled: disabled,
|
|
166
168
|
font: font,
|
|
169
|
+
selectionColor: variantColorMap[focusedVariant],
|
|
167
170
|
testID: testID
|
|
168
171
|
}, editableInputAddonProps)),
|
|
169
172
|
labelNode: !compact && (labelNode && labelVariant !== 'inside' ? labelNode : hasLabel && /*#__PURE__*/_jsx(Pressable, {
|
|
170
173
|
accessibilityRole: "button",
|
|
171
174
|
disabled: disabled,
|
|
172
175
|
onPress: handleNodePress,
|
|
173
|
-
children:
|
|
174
|
-
|
|
176
|
+
children: labelVariant === 'inside' && labelNode ? /*#__PURE__*/_jsx(Box, {
|
|
177
|
+
background: readOnlyInputBackground,
|
|
178
|
+
paddingEnd: 2,
|
|
175
179
|
paddingStart: start ? 0.5 : 2,
|
|
180
|
+
children: labelNode
|
|
181
|
+
}) : labelVariant === 'inside' ? /*#__PURE__*/_jsx(InputLabel, {
|
|
182
|
+
background: readOnlyInputBackground,
|
|
183
|
+
color: labelColor,
|
|
184
|
+
font: labelFont,
|
|
176
185
|
paddingEnd: 2,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}))
|
|
186
|
+
paddingStart: start ? 0.5 : 2,
|
|
187
|
+
paddingY: 0,
|
|
188
|
+
testID: (_testIDMap$label = testIDMap == null ? void 0 : testIDMap.label) != null ? _testIDMap$label : '',
|
|
189
|
+
children: label
|
|
190
|
+
}) : /*#__PURE__*/_jsx(InputLabel, {
|
|
191
|
+
color: labelColor,
|
|
192
|
+
font: labelFont,
|
|
193
|
+
testID: (_testIDMap$label2 = testIDMap == null ? void 0 : testIDMap.label) != null ? _testIDMap$label2 : '',
|
|
194
|
+
children: label
|
|
195
|
+
})
|
|
188
196
|
})),
|
|
189
197
|
labelVariant: labelVariant,
|
|
190
198
|
startNode: (compact && hasLabel || !!start) && /*#__PURE__*/_jsx(Box, {
|
|
@@ -203,6 +211,8 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
203
211
|
children: /*#__PURE__*/_jsxs(HStack, {
|
|
204
212
|
paddingStart: compact && hasLabel ? 2 : undefined,
|
|
205
213
|
children: [compact && (labelNode ? labelNode : !!label && /*#__PURE__*/_jsx(InputLabel, {
|
|
214
|
+
color: labelColor,
|
|
215
|
+
font: labelFont,
|
|
206
216
|
children: label
|
|
207
217
|
})), !!start && /*#__PURE__*/_jsx(TextInputFocusVariantContext.Provider, {
|
|
208
218
|
value: focusedVariant,
|