@primer/react-brand 0.3.1 → 0.4.0-rc.420e2e9
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 +198 -0
- package/README.md +25 -9
- package/lib/Accordion/Accordion.d.ts +9 -9
- package/lib/Button/Button.d.ts +6 -2
- package/lib/FAQ/FAQ.d.ts +14 -15
- package/lib/Heading/Heading.d.ts +4 -3
- package/lib/Hero/Hero.d.ts +3 -3
- package/lib/InlineLink/InlineLink.d.ts +4 -7
- package/lib/River/River.d.ts +47 -16
- package/lib/component-helpers.d.ts +21 -3
- package/lib/css/main.css +782 -13
- package/lib/css/stylesheets.d.ts +1 -0
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/color-scales.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +25 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +9 -1
- package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/base.css +18 -0
- package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +55 -0
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +3 -5
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +149 -1
- package/lib/design-tokens/js/module/tokens/functional/components/control/base.js +195 -0
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +3 -35
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +9 -1
- package/lib/design-tokens/js/tokens/functional/components/control/base.js +16 -0
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +3 -5
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +13 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +13 -1
- package/lib/design-tokens/ts/tokens/functional/components/control/base.d.ts +31 -0
- package/lib/design-tokens/ts/tokens/functional/components/control/base.js +30 -0
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -3
- package/lib/design-tokens/ts/tokens/functional/size/size.js +3 -5
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/forms/Checkbox/Checkbox.d.ts +57 -0
- package/lib/forms/Checkbox/forms.visual.spec.d.ts +1 -0
- package/lib/forms/Checkbox/index.d.ts +1 -0
- package/lib/forms/FormControl/FormControl.d.ts +57 -0
- package/lib/forms/FormControl/forms.visual.spec.d.ts +1 -0
- package/lib/forms/FormControl/index.d.ts +1 -0
- package/lib/forms/Select/Select.d.ts +58 -0
- package/lib/forms/Select/index.d.ts +1 -0
- package/lib/forms/TextInput/TextInput.d.ts +87 -0
- package/lib/forms/TextInput/index.d.ts +1 -0
- package/lib/forms/form-types.d.ts +2 -0
- package/lib/forms/index.d.ts +10 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +17 -8
package/lib/css/main.css
CHANGED
|
@@ -91,7 +91,7 @@ select {
|
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Do not edit directly
|
|
94
|
-
* Generated on
|
|
94
|
+
* Generated on Mon, 12 Sep 2022 10:04:24 GMT
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
97
|
:root {
|
|
@@ -897,7 +897,7 @@ select {
|
|
|
897
897
|
|
|
898
898
|
/**
|
|
899
899
|
* Do not edit directly
|
|
900
|
-
* Generated on
|
|
900
|
+
* Generated on Mon, 12 Sep 2022 10:04:24 GMT
|
|
901
901
|
*/
|
|
902
902
|
|
|
903
903
|
:root {
|
|
@@ -922,7 +922,22 @@ select {
|
|
|
922
922
|
|
|
923
923
|
/**
|
|
924
924
|
* Do not edit directly
|
|
925
|
-
* Generated on
|
|
925
|
+
* Generated on Mon, 12 Sep 2022 10:04:23 GMT
|
|
926
|
+
*/
|
|
927
|
+
|
|
928
|
+
:root {
|
|
929
|
+
--base-text-weight-heavy: 900;
|
|
930
|
+
--base-text-weight-extrabold: 800;
|
|
931
|
+
--base-text-weight-bold: 700;
|
|
932
|
+
--base-text-weight-semibold: 600;
|
|
933
|
+
--base-text-weight-medium: 500;
|
|
934
|
+
--base-text-weight-normal: 400;
|
|
935
|
+
--base-text-weight-light: 300;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Do not edit directly
|
|
940
|
+
* Generated on Mon, 12 Sep 2022 10:04:24 GMT
|
|
926
941
|
*/
|
|
927
942
|
|
|
928
943
|
:root {
|
|
@@ -1101,7 +1116,7 @@ select {
|
|
|
1101
1116
|
|
|
1102
1117
|
/**
|
|
1103
1118
|
* Do not edit directly
|
|
1104
|
-
* Generated on
|
|
1119
|
+
* Generated on Mon, 12 Sep 2022 10:04:23 GMT
|
|
1105
1120
|
*/
|
|
1106
1121
|
|
|
1107
1122
|
:root {
|
|
@@ -1115,7 +1130,7 @@ select {
|
|
|
1115
1130
|
|
|
1116
1131
|
/**
|
|
1117
1132
|
* Do not edit directly
|
|
1118
|
-
* Generated on
|
|
1133
|
+
* Generated on Mon, 12 Sep 2022 10:04:23 GMT
|
|
1119
1134
|
*/
|
|
1120
1135
|
|
|
1121
1136
|
:root {
|
|
@@ -1133,10 +1148,18 @@ select {
|
|
|
1133
1148
|
|
|
1134
1149
|
/**
|
|
1135
1150
|
* Do not edit directly
|
|
1136
|
-
* Generated on
|
|
1151
|
+
* Generated on Mon, 12 Sep 2022 10:04:24 GMT
|
|
1137
1152
|
*/
|
|
1138
1153
|
|
|
1139
1154
|
:root {
|
|
1155
|
+
--brand-color-success-fg: var(--base-color-scale-green-5);
|
|
1156
|
+
--brand-color-success-emphasis: var(--base-color-scale-green-4);
|
|
1157
|
+
--brand-color-success-muted: hsl(var(--base-color-scale-green-3-hsl) / 60%);
|
|
1158
|
+
--brand-color-success-subtle: var(--base-color-scale-green-0);
|
|
1159
|
+
--brand-color-error-fg: var(--base-color-scale-red-5);
|
|
1160
|
+
--brand-color-error-emphasis: var(--base-color-scale-red-5);
|
|
1161
|
+
--brand-color-error-muted: hsl(var(--base-color-scale-red-3-hsl) / 60%);
|
|
1162
|
+
--brand-color-error-subtle: var(--base-color-scale-red-0);
|
|
1140
1163
|
--brand-color-accent-fg: var(--base-color-scale-pink-5);
|
|
1141
1164
|
--brand-color-accent-emphasis: var(--base-color-scale-pink-5);
|
|
1142
1165
|
--brand-color-accent-muted: hsl(var(--base-color-scale-pink-3-hsl) / 60%);
|
|
@@ -1160,6 +1183,14 @@ select {
|
|
|
1160
1183
|
}
|
|
1161
1184
|
|
|
1162
1185
|
[data-color-mode="light"] {
|
|
1186
|
+
--brand-color-success-fg: var(--base-color-scale-green-5);
|
|
1187
|
+
--brand-color-success-emphasis: var(--base-color-scale-green-4);
|
|
1188
|
+
--brand-color-success-muted: hsl(var(--base-color-scale-green-3-hsl) / 60%);
|
|
1189
|
+
--brand-color-success-subtle: var(--base-color-scale-green-0);
|
|
1190
|
+
--brand-color-error-fg: var(--base-color-scale-red-5);
|
|
1191
|
+
--brand-color-error-emphasis: var(--base-color-scale-red-5);
|
|
1192
|
+
--brand-color-error-muted: hsl(var(--base-color-scale-red-3-hsl) / 60%);
|
|
1193
|
+
--brand-color-error-subtle: var(--base-color-scale-red-0);
|
|
1163
1194
|
--brand-color-accent-fg: var(--base-color-scale-pink-5);
|
|
1164
1195
|
--brand-color-accent-emphasis: var(--base-color-scale-pink-5);
|
|
1165
1196
|
--brand-color-accent-muted: hsl(var(--base-color-scale-pink-3-hsl) / 60%);
|
|
@@ -1183,6 +1214,14 @@ select {
|
|
|
1183
1214
|
}
|
|
1184
1215
|
|
|
1185
1216
|
[data-color-mode="dark"] {
|
|
1217
|
+
--brand-color-success-fg: var(--base-color-scale-green-3);
|
|
1218
|
+
--brand-color-success-emphasis: var(--base-color-scale-green-5);
|
|
1219
|
+
--brand-color-success-muted: hsl(var(--base-color-scale-green-4-hsl) / 60%);
|
|
1220
|
+
--brand-color-success-subtle: hsl(var(--base-color-scale-green-4-hsl) / 85%);
|
|
1221
|
+
--brand-color-error-fg: var(--base-color-scale-red-4);
|
|
1222
|
+
--brand-color-error-emphasis: var(--base-color-scale-red-5);
|
|
1223
|
+
--brand-color-error-muted: hsl(var(--base-color-scale-red-4-hsl) / 60%);
|
|
1224
|
+
--brand-color-error-subtle: hsl(var(--base-color-scale-red-4-hsl) / 85%);
|
|
1186
1225
|
--brand-color-accent-fg: var(--base-color-scale-pink-3);
|
|
1187
1226
|
--brand-color-accent-emphasis: var(--base-color-scale-pink-5);
|
|
1188
1227
|
--brand-color-accent-muted: hsl(var(--base-color-scale-pink-4-hsl) / 60%);
|
|
@@ -1335,7 +1374,7 @@ select {
|
|
|
1335
1374
|
|
|
1336
1375
|
/**
|
|
1337
1376
|
* Do not edit directly
|
|
1338
|
-
* Generated on
|
|
1377
|
+
* Generated on Mon, 12 Sep 2022 10:04:24 GMT
|
|
1339
1378
|
*/
|
|
1340
1379
|
|
|
1341
1380
|
:root {
|
|
@@ -1474,7 +1513,7 @@ select {
|
|
|
1474
1513
|
|
|
1475
1514
|
/**
|
|
1476
1515
|
* Do not edit directly
|
|
1477
|
-
* Generated on
|
|
1516
|
+
* Generated on Mon, 12 Sep 2022 10:04:23 GMT
|
|
1478
1517
|
*/
|
|
1479
1518
|
|
|
1480
1519
|
:root {
|
|
@@ -1484,7 +1523,7 @@ select {
|
|
|
1484
1523
|
|
|
1485
1524
|
/**
|
|
1486
1525
|
* Do not edit directly
|
|
1487
|
-
* Generated on
|
|
1526
|
+
* Generated on Mon, 12 Sep 2022 10:04:23 GMT
|
|
1488
1527
|
*/
|
|
1489
1528
|
|
|
1490
1529
|
:root {
|
|
@@ -1607,7 +1646,7 @@ select {
|
|
|
1607
1646
|
|
|
1608
1647
|
/**
|
|
1609
1648
|
* Do not edit directly
|
|
1610
|
-
* Generated on
|
|
1649
|
+
* Generated on Mon, 12 Sep 2022 10:04:24 GMT
|
|
1611
1650
|
*/
|
|
1612
1651
|
|
|
1613
1652
|
:root {
|
|
@@ -1716,7 +1755,7 @@ select {
|
|
|
1716
1755
|
|
|
1717
1756
|
/**
|
|
1718
1757
|
* Do not edit directly
|
|
1719
|
-
* Generated on
|
|
1758
|
+
* Generated on Mon, 12 Sep 2022 10:04:24 GMT
|
|
1720
1759
|
*/
|
|
1721
1760
|
|
|
1722
1761
|
:root {
|
|
@@ -1872,7 +1911,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
1872
1911
|
|
|
1873
1912
|
/**
|
|
1874
1913
|
* Do not edit directly
|
|
1875
|
-
* Generated on
|
|
1914
|
+
* Generated on Mon, 12 Sep 2022 10:04:23 GMT
|
|
1876
1915
|
*/
|
|
1877
1916
|
|
|
1878
1917
|
:root {
|
|
@@ -1882,7 +1921,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
1882
1921
|
|
|
1883
1922
|
/**
|
|
1884
1923
|
* Do not edit directly
|
|
1885
|
-
* Generated on
|
|
1924
|
+
* Generated on Mon, 12 Sep 2022 10:04:24 GMT
|
|
1886
1925
|
*/
|
|
1887
1926
|
|
|
1888
1927
|
:root {
|
|
@@ -1953,3 +1992,733 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
1953
1992
|
}
|
|
1954
1993
|
}
|
|
1955
1994
|
|
|
1995
|
+
/**
|
|
1996
|
+
* Do not edit directly
|
|
1997
|
+
* Generated on Mon, 12 Sep 2022 10:04:23 GMT
|
|
1998
|
+
*/
|
|
1999
|
+
|
|
2000
|
+
:root {
|
|
2001
|
+
--brand-control-animation-easing: cubic-bezier(0.33, 1, 0.68, 1);
|
|
2002
|
+
--brand-control-animation-duration: 80ms;
|
|
2003
|
+
--brand-control-border-radius: var(--brand-borderRadius-medium);
|
|
2004
|
+
--brand-control-large-fontSize: var(--brand-text-size-300);
|
|
2005
|
+
--brand-control-large-fontWeight: var(--brand-text-weight-300);
|
|
2006
|
+
--brand-control-large-padding: var(--base-size-12);
|
|
2007
|
+
--brand-control-large-size: var(--base-size-48);
|
|
2008
|
+
--brand-control-medium-fontSize: var(--brand-text-size-200);
|
|
2009
|
+
--brand-control-medium-fontWeight: var(--brand-text-weight-200);
|
|
2010
|
+
--brand-control-medium-padding: 0.625rem;
|
|
2011
|
+
--brand-control-medium-size: 2.5rem;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
/**
|
|
2015
|
+
* Do not edit directly
|
|
2016
|
+
* Generated on Mon, 12 Sep 2022 10:04:24 GMT
|
|
2017
|
+
*/
|
|
2018
|
+
|
|
2019
|
+
:root {
|
|
2020
|
+
--brand-control-color-border-default: var(--base-color-scale-gray-4);
|
|
2021
|
+
--brand-control-color-border-disabled: var(--base-color-scale-gray-2);
|
|
2022
|
+
--brand-control-color-canvas-disabled: var(--base-color-scale-gray-1);
|
|
2023
|
+
--brand-control-color-fg-default: var(--brand-color-text-default);
|
|
2024
|
+
--brand-control-color-fg-disabled: var(--base-color-scale-gray-4);
|
|
2025
|
+
--brand-control-checkbox-bg-default: var(--base-color-scale-white-0);
|
|
2026
|
+
--brand-control-checkbox-bg-checked: var(--base-color-scale-black-0);
|
|
2027
|
+
--brand-control-checkbox-bg-indeterminate: var(--base-color-scale-black-0);
|
|
2028
|
+
--brand-control-checkbox-bg-disabled: var(--base-color-scale-gray-1);
|
|
2029
|
+
--brand-control-checkbox-fg-checked: var(--base-color-scale-white-0);
|
|
2030
|
+
--brand-control-checkbox-border-default: var(--base-color-scale-gray-4);
|
|
2031
|
+
--brand-control-checkbox-border-checked: var(--base-color-scale-black-0);
|
|
2032
|
+
--brand-control-checkbox-border-indeterminate: var(--base-color-scale-black-0);
|
|
2033
|
+
--brand-control-checkbox-border-disabled: var(--base-color-scale-gray-2);
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
[data-color-mode="light"] {
|
|
2037
|
+
--brand-control-color-border-default: var(--base-color-scale-gray-4);
|
|
2038
|
+
--brand-control-color-border-disabled: var(--base-color-scale-gray-2);
|
|
2039
|
+
--brand-control-color-canvas-disabled: var(--base-color-scale-gray-1);
|
|
2040
|
+
--brand-control-color-fg-default: var(--brand-color-text-default);
|
|
2041
|
+
--brand-control-color-fg-disabled: var(--base-color-scale-gray-4);
|
|
2042
|
+
--brand-control-checkbox-bg-default: var(--base-color-scale-white-0);
|
|
2043
|
+
--brand-control-checkbox-bg-checked: var(--base-color-scale-black-0);
|
|
2044
|
+
--brand-control-checkbox-bg-indeterminate: var(--base-color-scale-black-0);
|
|
2045
|
+
--brand-control-checkbox-bg-disabled: var(--base-color-scale-gray-1);
|
|
2046
|
+
--brand-control-checkbox-fg-checked: var(--base-color-scale-white-0);
|
|
2047
|
+
--brand-control-checkbox-border-default: var(--base-color-scale-gray-4);
|
|
2048
|
+
--brand-control-checkbox-border-checked: var(--base-color-scale-black-0);
|
|
2049
|
+
--brand-control-checkbox-border-indeterminate: var(--base-color-scale-black-0);
|
|
2050
|
+
--brand-control-checkbox-border-disabled: var(--base-color-scale-gray-2);
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
[data-color-mode="dark"] {
|
|
2054
|
+
--brand-control-color-border-default: var(--base-color-scale-gray-4);
|
|
2055
|
+
--brand-control-color-border-disabled: var(--base-color-scale-gray-5);
|
|
2056
|
+
--brand-control-color-canvas-disabled: var(--base-color-scale-gray-8);
|
|
2057
|
+
--brand-control-color-fg-default: var(--brand-color-text-default);
|
|
2058
|
+
--brand-control-color-fg-disabled: var(--base-color-scale-gray-5);
|
|
2059
|
+
--brand-control-checkbox-bg-default: var(--base-color-scale-gray-7);
|
|
2060
|
+
--brand-control-checkbox-bg-checked: var(--base-color-scale-white-0);
|
|
2061
|
+
--brand-control-checkbox-bg-indeterminate: var(--base-color-scale-white-0);
|
|
2062
|
+
--brand-control-checkbox-bg-disabled: var(--base-color-scale-gray-4);
|
|
2063
|
+
--brand-control-checkbox-fg-checked: var(--base-color-scale-black-0);
|
|
2064
|
+
--brand-control-checkbox-border-default: var(--base-color-scale-gray-4);
|
|
2065
|
+
--brand-control-checkbox-border-checked: var(--base-color-scale-white-0);
|
|
2066
|
+
--brand-control-checkbox-border-indeterminate: var(--base-color-scale-white-0);
|
|
2067
|
+
--brand-control-checkbox-border-disabled: var(--base-color-scale-gray-4);
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
/*
|
|
2071
|
+
* Default Checkbox styles
|
|
2072
|
+
*/
|
|
2073
|
+
.Primer_Brand__Checkbox-module__Checkbox-wrapper___qo8KL {
|
|
2074
|
+
position: relative;
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
.Primer_Brand__Checkbox-module__Checkbox___T8FJa {
|
|
2078
|
+
align-items: center;
|
|
2079
|
+
background-color: var(--brand-control-checkbox-bg-default);
|
|
2080
|
+
border: solid 1px var(--brand-control-color-border-default);
|
|
2081
|
+
border: solid var(--brand-borderWidth-normal, 1px) var(--brand-control-color-border-default);
|
|
2082
|
+
border-radius: var(--brand-borderRadius-small);
|
|
2083
|
+
cursor: pointer;
|
|
2084
|
+
display: inline-flex;
|
|
2085
|
+
height: 20px;
|
|
2086
|
+
justify-content: center;
|
|
2087
|
+
margin: 3px 0; /* mimic default browser-applied vertical margin */
|
|
2088
|
+
transition: all 0.35s ease-out;
|
|
2089
|
+
width: 20px;
|
|
2090
|
+
outline: 1px solid var(--brand-control-checkbox-bg-default);
|
|
2091
|
+
box-shadow: 0 0 0 3px transparent;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
/**
|
|
2095
|
+
* Checkbox native input - visually hidden
|
|
2096
|
+
*/
|
|
2097
|
+
.Primer_Brand__Checkbox-module__Checkbox-input___sux6s {
|
|
2098
|
+
border: 0;
|
|
2099
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
2100
|
+
height: 1px;
|
|
2101
|
+
overflow: hidden;
|
|
2102
|
+
padding: 0;
|
|
2103
|
+
position: absolute;
|
|
2104
|
+
width: 1px;
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
.Primer_Brand__Checkbox-module__Checkbox-checkmark___atiwt {
|
|
2108
|
+
height: 16px;
|
|
2109
|
+
width: 16px;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
.Primer_Brand__Checkbox-module__Checkbox-checkmark-path___qgsjb {
|
|
2113
|
+
stroke: var(--brand-color-focus);
|
|
2114
|
+
stroke-dashoffset: 111.46px;
|
|
2115
|
+
stroke-dasharray: 111.46px;
|
|
2116
|
+
transition: all 350ms var(--brand-control-animation-easing);
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
/*
|
|
2120
|
+
* Checked state
|
|
2121
|
+
*/
|
|
2122
|
+
|
|
2123
|
+
.Primer_Brand__Checkbox-module__Checkbox-input___sux6s:checked + .Primer_Brand__Checkbox-module__Checkbox___T8FJa,
|
|
2124
|
+
.Primer_Brand__Checkbox-module__Checkbox--indeterminate___U5S6k {
|
|
2125
|
+
background: var(--brand-control-checkbox-bg-checked);
|
|
2126
|
+
border-color: var(--brand-control-checkbox-border-checked);
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
.Primer_Brand__Checkbox-module__Checkbox--indeterminate___U5S6k .Primer_Brand__Checkbox-module__Checkbox-checkmark___atiwt {
|
|
2130
|
+
fill: var(--brand-control-checkbox-fg-checked);
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
.Primer_Brand__Checkbox-module__Checkbox-input___sux6s:checked + .Primer_Brand__Checkbox-module__Checkbox___T8FJa .Primer_Brand__Checkbox-module__Checkbox-checkmark-path___qgsjb,
|
|
2134
|
+
.Primer_Brand__Checkbox-module__Checkbox--indeterminate___U5S6k .Primer_Brand__Checkbox-module__Checkbox-checkmark-path___qgsjb {
|
|
2135
|
+
stroke: var(--brand-control-checkbox-fg-checked);
|
|
2136
|
+
stroke-dashoffset: 0;
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
.Primer_Brand__Checkbox-module__Checkbox-input___sux6s:focus + .Primer_Brand__Checkbox-module__Checkbox___T8FJa {
|
|
2140
|
+
box-shadow: 0 0 0 3px var(--brand-color-focus);
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
/* TODO: Check with a11y team */
|
|
2144
|
+
.Primer_Brand__Checkbox-module__Checkbox-input___sux6s:checked:focus + .Primer_Brand__Checkbox-module__Checkbox___T8FJa,
|
|
2145
|
+
.Primer_Brand__Checkbox-module__Checkbox-input___sux6s:focus + .Primer_Brand__Checkbox-module__Checkbox--indeterminate___U5S6k {
|
|
2146
|
+
border-color: var(--brand-control-checkbox-border-checked);
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
.Primer_Brand__Checkbox-module__Checkbox-input___sux6s[disabled] + .Primer_Brand__Checkbox-module__Checkbox___T8FJa,
|
|
2150
|
+
.Primer_Brand__Checkbox-module__Checkbox-input___sux6s[disabled]:checked + .Primer_Brand__Checkbox-module__Checkbox___T8FJa {
|
|
2151
|
+
-webkit-text-fill-color: var(--brand-control-color-fg-disabled);
|
|
2152
|
+
color: var(--brand-control-color-fg-disabled);
|
|
2153
|
+
cursor: not-allowed;
|
|
2154
|
+
background-color: var(--brand-control-checkbox-bg-disabled);
|
|
2155
|
+
border-color: var(--brand-control-color-border-disabled);
|
|
2156
|
+
opacity: 1;
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
/*
|
|
2160
|
+
* Default TextInput styles
|
|
2161
|
+
*/
|
|
2162
|
+
.Primer_Brand__TextInput-module__TextInput___EtKj3 {
|
|
2163
|
+
display: flex;
|
|
2164
|
+
color: var(--brand-control-color-fg-default);
|
|
2165
|
+
background-color: var(--brand-color-canvas-default);
|
|
2166
|
+
border: none;
|
|
2167
|
+
border-radius: var(--brand-control-border-radius);
|
|
2168
|
+
line-height: var(--brand-text-lineHeight-200);
|
|
2169
|
+
transition: var(--brand-control-animation-duration) var(--brand-control-animation-easing);
|
|
2170
|
+
transition-property: color, background-color, box-shadow;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
.Primer_Brand__TextInput-module__TextInput___EtKj3::-moz-placeholder {
|
|
2174
|
+
color: var(--brand-color-text-subtle);
|
|
2175
|
+
opacity: 1;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
.Primer_Brand__TextInput-module__TextInput___EtKj3:-ms-input-placeholder {
|
|
2179
|
+
color: var(--brand-color-text-subtle);
|
|
2180
|
+
opacity: 1;
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
.Primer_Brand__TextInput-module__TextInput___EtKj3::placeholder {
|
|
2184
|
+
color: var(--brand-color-text-subtle);
|
|
2185
|
+
opacity: 1;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
.Primer_Brand__TextInput-module__TextInput___EtKj3[disabled] {
|
|
2189
|
+
-webkit-text-fill-color: var(--brand-control-color-fg-disabled);
|
|
2190
|
+
color: var(--brand-control-color-fg-disabled);
|
|
2191
|
+
cursor: not-allowed;
|
|
2192
|
+
background-color: var(--brand-control-color-canvas-disabled);
|
|
2193
|
+
opacity: 1;
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
.Primer_Brand__TextInput-module__TextInput___EtKj3:focus {
|
|
2197
|
+
outline: none;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
/*
|
|
2201
|
+
* Sizes
|
|
2202
|
+
*/
|
|
2203
|
+
.Primer_Brand__TextInput-module__TextInput--medium___kJrew {
|
|
2204
|
+
font-weight: var(--brand-text-weight-200);
|
|
2205
|
+
font-size: var(--brand-text-size-200);
|
|
2206
|
+
height: 40px;
|
|
2207
|
+
height: var(--brand-control-medium-size, 40px);
|
|
2208
|
+
padding: 12px 10px 10px;
|
|
2209
|
+
padding: var(--brand-control-medium-padding, 12px 10px 10px);
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
.Primer_Brand__TextInput-module__TextInput--large___zpUvY {
|
|
2213
|
+
font-weight: var(--brand-text-weight-300);
|
|
2214
|
+
font-size: var(--brand-text-size-300);
|
|
2215
|
+
height: 48px;
|
|
2216
|
+
height: var(--brand-control-large-size, 48px);
|
|
2217
|
+
padding: 12px;
|
|
2218
|
+
padding: var(--brand-control-large-padding, 12px);
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
/*
|
|
2222
|
+
* Visual states
|
|
2223
|
+
*/
|
|
2224
|
+
.Primer_Brand__TextInput-module__TextInput--fullWidth___rbllM {
|
|
2225
|
+
width: 100%;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
/*
|
|
2229
|
+
* TextInput wrapper
|
|
2230
|
+
*/
|
|
2231
|
+
|
|
2232
|
+
.Primer_Brand__TextInput-module__TextInput-wrapper--disabled___HWTx_ {
|
|
2233
|
+
border-color: var(--brand-control-color-border-disabled);
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
.Primer_Brand__TextInput-module__TextInput-wrapper___HgxNu {
|
|
2237
|
+
font-family: var(--brand-body-fontFamily);
|
|
2238
|
+
display: inline-flex;
|
|
2239
|
+
position: relative;
|
|
2240
|
+
border: solid 1px var(--brand-control-color-border-default);
|
|
2241
|
+
border: solid var(--brand-borderWidth-thin, 1px) var(--brand-control-color-border-default);
|
|
2242
|
+
border-radius: var(--brand-control-border-radius);
|
|
2243
|
+
transition: var(--brand-control-animation-duration) var(--brand-control-animation-easing);
|
|
2244
|
+
transition-property: border;
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
.Primer_Brand__TextInput-module__TextInput-wrapper--fullWidth___eclO4 {
|
|
2248
|
+
display: flex;
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
.Primer_Brand__TextInput-module__TextInput-wrapper--monospace___y1fd6 {
|
|
2252
|
+
font-family: var(--brand-fontStack-monospace);
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
.Primer_Brand__TextInput-module__TextInput-wrapper___HgxNu[focus-within] {
|
|
2256
|
+
border-color: var(--brand-color-focus);
|
|
2257
|
+
box-shadow: 0 0 0 1px var(--brand-color-focus);
|
|
2258
|
+
outline: none;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
.Primer_Brand__TextInput-module__TextInput-wrapper___HgxNu:focus-within {
|
|
2262
|
+
border-color: var(--brand-color-focus);
|
|
2263
|
+
box-shadow: 0 0 0 1px var(--brand-color-focus);
|
|
2264
|
+
outline: none;
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
/*
|
|
2268
|
+
* Validation
|
|
2269
|
+
*/
|
|
2270
|
+
|
|
2271
|
+
.Primer_Brand__TextInput-module__TextInput-wrapper--success___g5ODK,
|
|
2272
|
+
.Primer_Brand__TextInput-module__TextInput-wrapper--success___g5ODK.Primer_Brand__TextInput-module__TextInput-wrapper--disabled___HWTx_ {
|
|
2273
|
+
border-color: var(--brand-color-success-fg);
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
.Primer_Brand__TextInput-module__TextInput-wrapper--error___V7qtN,
|
|
2277
|
+
.Primer_Brand__TextInput-module__TextInput-wrapper--error___V7qtN.Primer_Brand__TextInput-module__TextInput-wrapper--disabled___HWTx_ {
|
|
2278
|
+
border-color: var(--brand-color-error-fg);
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
/*
|
|
2282
|
+
* TextInput visuals
|
|
2283
|
+
*/
|
|
2284
|
+
[dir="ltr"] .Primer_Brand__TextInput-module__TextInput--has-leading-visual--medium___i7gLS {
|
|
2285
|
+
padding-left: calc(var(--base-size-12) * 2 + var(--base-size-12));
|
|
2286
|
+
}
|
|
2287
|
+
[dir="rtl"] .Primer_Brand__TextInput-module__TextInput--has-leading-visual--medium___i7gLS {
|
|
2288
|
+
padding-right: calc(var(--base-size-12) * 2 + var(--base-size-12));
|
|
2289
|
+
}
|
|
2290
|
+
.Primer_Brand__TextInput-module__TextInput--has-leading-visual--medium___i7gLS {
|
|
2291
|
+
-webkit-padding-start: calc(var(--base-size-12) * 2 + var(--base-size-12));
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
[dir="ltr"] .Primer_Brand__TextInput-module__TextInput--has-leading-visual--large___nCVT9 {
|
|
2295
|
+
padding-left: calc(var(--base-size-8) * 4 + var(--base-size-8));
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
[dir="rtl"] .Primer_Brand__TextInput-module__TextInput--has-leading-visual--large___nCVT9 {
|
|
2299
|
+
padding-right: calc(var(--base-size-8) * 4 + var(--base-size-8));
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
.Primer_Brand__TextInput-module__TextInput--has-leading-visual--large___nCVT9 {
|
|
2303
|
+
-webkit-padding-start: calc(var(--base-size-8) * 4 + var(--base-size-8));
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
[dir="ltr"] .Primer_Brand__TextInput-module__TextInput--has-trailing-visual--medium___pP4lM {
|
|
2307
|
+
padding-right: calc(var(--base-size-12) * 2 + var(--base-size-12));
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
[dir="rtl"] .Primer_Brand__TextInput-module__TextInput--has-trailing-visual--medium___pP4lM {
|
|
2311
|
+
padding-left: calc(var(--base-size-12) * 2 + var(--base-size-12));
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
.Primer_Brand__TextInput-module__TextInput--has-trailing-visual--medium___pP4lM {
|
|
2315
|
+
-webkit-padding-end: calc(var(--base-size-12) * 2 + var(--base-size-12));
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
[dir="ltr"] .Primer_Brand__TextInput-module__TextInput--has-trailing-visual--large___n1U0P {
|
|
2319
|
+
padding-right: calc(var(--base-size-8) * 4 + var(--base-size-8));
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
[dir="rtl"] .Primer_Brand__TextInput-module__TextInput--has-trailing-visual--large___n1U0P {
|
|
2323
|
+
padding-left: calc(var(--base-size-8) * 4 + var(--base-size-8));
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
.Primer_Brand__TextInput-module__TextInput--has-trailing-visual--large___n1U0P {
|
|
2327
|
+
-webkit-padding-end: calc(var(--base-size-8) * 4 + var(--base-size-8));
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
.Primer_Brand__TextInput-module__TextInput-leading-visual___tk7Yz,
|
|
2331
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-visual___k0E6L {
|
|
2332
|
+
display: grid;
|
|
2333
|
+
position: absolute;
|
|
2334
|
+
top: 0;
|
|
2335
|
+
display: flex;
|
|
2336
|
+
width: var(--base-size-16);
|
|
2337
|
+
height: 100%;
|
|
2338
|
+
align-items: center;
|
|
2339
|
+
color: var(--color-fg-muted);
|
|
2340
|
+
pointer-events: none;
|
|
2341
|
+
color: var(--brand-color-text-default);
|
|
2342
|
+
}
|
|
2343
|
+
.Primer_Brand__TextInput-module__TextInput-leading-visual___tk7Yz {
|
|
2344
|
+
left: var(--base-size-12);
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-visual___k0E6L {
|
|
2348
|
+
right: var(--base-size-12);
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
.Primer_Brand__TextInput-module__TextInput-leading-visual-icon--medium___y_4Pu {
|
|
2352
|
+
width: 16px;
|
|
2353
|
+
height: 16px;
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
.Primer_Brand__TextInput-module__TextInput-leading-visual-icon--large___VPOF7 {
|
|
2357
|
+
width: 20px;
|
|
2358
|
+
height: 20px;
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
/*
|
|
2362
|
+
* TextInput leading and trailing text
|
|
2363
|
+
*/
|
|
2364
|
+
|
|
2365
|
+
.Primer_Brand__TextInput-module__TextInput-leading-text___H5Cfr,
|
|
2366
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-text___ikt8X {
|
|
2367
|
+
display: flex;
|
|
2368
|
+
align-items: center;
|
|
2369
|
+
color: var(--brand-color-text-muted);
|
|
2370
|
+
pointer-events: none;
|
|
2371
|
+
white-space: nowrap;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
.Primer_Brand__TextInput-module__TextInput-leading-text--disabled___APVY0,
|
|
2375
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-text--disabled___oM2Ls {
|
|
2376
|
+
color: var(--brand-control-color-fg-disabled);
|
|
2377
|
+
background-color: var(--brand-control-color-canvas-disabled);
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
.Primer_Brand__TextInput-module__TextInput-leading-text___H5Cfr {
|
|
2381
|
+
border-top-left-radius: 6px;
|
|
2382
|
+
border-top-left-radius: var(--brand-borderRadius-medium, 6px);
|
|
2383
|
+
border-bottom-left-radius: 6px;
|
|
2384
|
+
border-bottom-left-radius: var(--brand-borderRadius-medium, 6px);
|
|
2385
|
+
border-right: 0;
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2388
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-text___ikt8X {
|
|
2389
|
+
border-top-right-radius: 6px;
|
|
2390
|
+
border-top-right-radius: var(--brand-borderRadius-medium, 6px);
|
|
2391
|
+
border-bottom-right-radius: 6px;
|
|
2392
|
+
border-bottom-right-radius: var(--brand-borderRadius-medium, 6px);
|
|
2393
|
+
border-left: 0;
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
.Primer_Brand__TextInput-module__TextInput-leading-text-inner___wsz6j,
|
|
2397
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-text-inner___hHCPx {
|
|
2398
|
+
display: inline-flex;
|
|
2399
|
+
padding: 0 10px 0;
|
|
2400
|
+
}
|
|
2401
|
+
|
|
2402
|
+
.Primer_Brand__TextInput-module__TextInput-leading-text-inner___wsz6j {
|
|
2403
|
+
border-right: 1px solid var(--brand-color-border-default);
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-text-inner___hHCPx {
|
|
2407
|
+
border-left: 1px solid var(--brand-color-border-default);
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
.Primer_Brand__TextInput-module__TextInput-leading-text-inner--medium___B7Rra,
|
|
2411
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-text-inner--medium___P9cYA {
|
|
2412
|
+
height: 20px; /*calc(fullheight / 2*/
|
|
2413
|
+
}
|
|
2414
|
+
.Primer_Brand__TextInput-module__TextInput-leading-text-inner--large___HfLcI,
|
|
2415
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-text-inner--large___LTt33 {
|
|
2416
|
+
height: 22px; /*calc(fullheight / 2*/
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
.Primer_Brand__TextInput-module__TextInput-leading-text--medium___AXLxn,
|
|
2420
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-text--medium___o1pNj {
|
|
2421
|
+
font-weight: var(--brand-text-weight-200);
|
|
2422
|
+
font-size: var(--brand-text-size-200);
|
|
2423
|
+
height: 40px;
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
.Primer_Brand__TextInput-module__TextInput-leading-text--large___z8lZE,
|
|
2427
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-text--large___nFFjq {
|
|
2428
|
+
font-weight: var(--brand-text-weight-300);
|
|
2429
|
+
font-size: var(--brand-text-size-300);
|
|
2430
|
+
height: 48px;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
.Primer_Brand__TextInput-module__TextInput--has-leading-text___u7qke {
|
|
2434
|
+
border-left: 0;
|
|
2435
|
+
border-top-left-radius: 0;
|
|
2436
|
+
border-bottom-left-radius: 0;
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
.Primer_Brand__TextInput-module__TextInput--has-trailing-text___Rsoog {
|
|
2440
|
+
border-right: 0;
|
|
2441
|
+
border-top-right-radius: 0;
|
|
2442
|
+
border-bottom-right-radius: 0;
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
.Primer_Brand__TextInput-module__TextInput-leading-text--success___LLFx7,
|
|
2446
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-text--success___EfLVd {
|
|
2447
|
+
border-color: var(--brand-color-success-fg);
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
.Primer_Brand__TextInput-module__TextInput-leading-text--error___TM77D,
|
|
2451
|
+
.Primer_Brand__TextInput-module__TextInput-trailing-text--error___R96jr {
|
|
2452
|
+
border-color: var(--brand-color-error-fg);
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
/*
|
|
2456
|
+
* Default Select styles
|
|
2457
|
+
*/
|
|
2458
|
+
.Primer_Brand__Select-module__Select___Jqn1f {
|
|
2459
|
+
-webkit-appearance: none;
|
|
2460
|
+
-moz-appearance: none;
|
|
2461
|
+
appearance: none;
|
|
2462
|
+
display: flex;
|
|
2463
|
+
color: var(--brand-control-color-fg-default);
|
|
2464
|
+
cursor: pointer;
|
|
2465
|
+
background-color: var(--brand-color-canvas-default);
|
|
2466
|
+
border: none;
|
|
2467
|
+
border-radius: var(--brand-control-border-radius);
|
|
2468
|
+
line-height: var(--brand-text-lineHeight-200);
|
|
2469
|
+
transition: var(--brand-control-animation-duration) var(--brand-control-animation-easing);
|
|
2470
|
+
transition-property: color, background-color, box-shadow, border-color;
|
|
2471
|
+
width: 100%;
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
@media screen and (forced-colors: active) {
|
|
2475
|
+
/* Maintain dark bg color in Firefox on Windows high-contrast mode */
|
|
2476
|
+
.Primer_Brand__Select-module__Select___Jqn1f:disabled {
|
|
2477
|
+
background-color: -moz-combobox;
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
.Primer_Brand__Select-module__Select___Jqn1f::-moz-placeholder {
|
|
2482
|
+
color: var(--brand-color-text-subtle);
|
|
2483
|
+
opacity: 1;
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
.Primer_Brand__Select-module__Select___Jqn1f:-ms-input-placeholder {
|
|
2487
|
+
color: var(--brand-color-text-subtle);
|
|
2488
|
+
opacity: 1;
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
.Primer_Brand__Select-module__Select___Jqn1f::placeholder {
|
|
2492
|
+
color: var(--brand-color-text-subtle);
|
|
2493
|
+
opacity: 1;
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
.Primer_Brand__Select-module__Select___Jqn1f.Primer_Brand__Select-module__focus-visible___viA1m {
|
|
2497
|
+
border-color: var(--brand-color-focus);
|
|
2498
|
+
outline: none;
|
|
2499
|
+
box-shadow: 0 0 0 2px var(--brand-color-focus);
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
.Primer_Brand__Select-module__Select___Jqn1f:focus-visible {
|
|
2503
|
+
border-color: var(--brand-color-focus);
|
|
2504
|
+
outline: none;
|
|
2505
|
+
box-shadow: 0 0 0 2px var(--brand-color-focus);
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
.Primer_Brand__Select-module__Select___Jqn1f[disabled] {
|
|
2509
|
+
-webkit-text-fill-color: var(--brand-control-color-fg-disabled);
|
|
2510
|
+
color: var(--brand-control-color-fg-disabled);
|
|
2511
|
+
cursor: not-allowed;
|
|
2512
|
+
background-color: var(--brand-control-color-canvas-disabled);
|
|
2513
|
+
border-color: var(--brand-control-color-border-disabled);
|
|
2514
|
+
opacity: 1;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
.Primer_Brand__Select-module__Select-arrow-indicator___LTpJz {
|
|
2518
|
+
display: flex;
|
|
2519
|
+
height: 16px;
|
|
2520
|
+
pointer-events: none;
|
|
2521
|
+
position: absolute;
|
|
2522
|
+
right: var(--base-size-12);
|
|
2523
|
+
top: 50%;
|
|
2524
|
+
transform: translateY(-50%);
|
|
2525
|
+
width: 16px;
|
|
2526
|
+
color: var(--brand-control-color-fg-default);
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
.Primer_Brand__Select-module__Select-arrow-indicator--disabled___dLMeI {
|
|
2530
|
+
color: var(--brand-control-color-fg-disabled);
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
.Primer_Brand__Select-module__Select-arrow-indicator___LTpJz svg {
|
|
2534
|
+
pointer-events: none;
|
|
2535
|
+
}
|
|
2536
|
+
|
|
2537
|
+
/*
|
|
2538
|
+
* Sizes
|
|
2539
|
+
*/
|
|
2540
|
+
.Primer_Brand__Select-module__Select--medium___kckBr {
|
|
2541
|
+
font-weight: var(--brand-text-weight-200);
|
|
2542
|
+
font-size: var(--brand-text-size-200);
|
|
2543
|
+
height: calc(40px - 2px);
|
|
2544
|
+
height: calc(var(--brand-control-medium-size, 40px) - 2px);
|
|
2545
|
+
padding: 12px 10px 10px;
|
|
2546
|
+
padding: var(--brand-control-medium-padding, 12px 10px 10px);
|
|
2547
|
+
padding-right: var(--base-size-44);
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
.Primer_Brand__Select-module__Select--large___A7u6F {
|
|
2551
|
+
font-weight: var(--brand-text-weight-300);
|
|
2552
|
+
font-size: var(--brand-text-size-300);
|
|
2553
|
+
height: calc(48px - 2px);
|
|
2554
|
+
height: calc(var(--brand-control-large-size, 48px) - 2px);
|
|
2555
|
+
padding: 12px;
|
|
2556
|
+
padding: var(--brand-control-large-padding, 12px);
|
|
2557
|
+
padding-right: var(--base-size-44);
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
/*
|
|
2561
|
+
* Visual states
|
|
2562
|
+
*/
|
|
2563
|
+
|
|
2564
|
+
.Primer_Brand__Select-module__Select--fullWidth___PLk5U {
|
|
2565
|
+
width: 100%;
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
/*
|
|
2569
|
+
* Select wrapper
|
|
2570
|
+
*/
|
|
2571
|
+
|
|
2572
|
+
.Primer_Brand__Select-module__Select-wrapper___iV0Tg {
|
|
2573
|
+
align-items: center;
|
|
2574
|
+
border: solid 1px var(--brand-control-color-border-default);
|
|
2575
|
+
border: solid var(--brand-borderWidth-thin, 1px) var(--brand-control-color-border-default);
|
|
2576
|
+
border-radius: 6px;
|
|
2577
|
+
border-radius: var(--brand-borderRadius-medium, 6px);
|
|
2578
|
+
font-family: var(--brand-body-fontFamily);
|
|
2579
|
+
display: inline-flex;
|
|
2580
|
+
position: relative;
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
.Primer_Brand__Select-module__Select-wrapper--disabled___Ka43y {
|
|
2584
|
+
border-color: var(--brand-control-color-border-disabled);
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
.Primer_Brand__Select-module__Select-wrapper--fullWidth___oOOo4 {
|
|
2588
|
+
display: flex;
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
/*
|
|
2592
|
+
* Validation
|
|
2593
|
+
*/
|
|
2594
|
+
|
|
2595
|
+
.Primer_Brand__Select-module__Select--success___pkmVg {
|
|
2596
|
+
border-color: var(--brand-color-success-fg);
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
.Primer_Brand__Select-module__Select--error___A9JuG {
|
|
2600
|
+
border-color: var(--brand-color-error-fg);
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
.Primer_Brand__FormControl-module__FormControl___ZJtXy {
|
|
2604
|
+
display: inline-flex;
|
|
2605
|
+
font-family: var(--brand-body-fontFamily);
|
|
2606
|
+
flex-direction: column;
|
|
2607
|
+
gap: var(--base-size-8);
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
.Primer_Brand__FormControl-module__FormControl--fullWidth___QyLCS {
|
|
2611
|
+
width: 100%;
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
.Primer_Brand__FormControl-module__FormControl--checkbox___R2ng7 {
|
|
2615
|
+
display: flex;
|
|
2616
|
+
align-items: flex-start;
|
|
2617
|
+
flex-direction: row-reverse;
|
|
2618
|
+
justify-content: flex-end;
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
.Primer_Brand__FormControl-module__FormControl--border___CRSaq {
|
|
2622
|
+
border: 1px solid var(--brand-color-border-default);
|
|
2623
|
+
border-radius: var(--brand-control-border-radius);
|
|
2624
|
+
padding: var(--base-size-12);
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
.Primer_Brand__FormControl-module__FormControl-label___meeuB {
|
|
2628
|
+
color: var(--brand-color-text-default);
|
|
2629
|
+
font-weight: var(--base-text-weight-semibold);
|
|
2630
|
+
font-family: var(--brand-text-fontFamily);
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
.Primer_Brand__FormControl-module__FormControl-label--visually-hidden___cFizI {
|
|
2634
|
+
position: absolute;
|
|
2635
|
+
width: 1px;
|
|
2636
|
+
height: 1px;
|
|
2637
|
+
padding: 0;
|
|
2638
|
+
margin: -1px;
|
|
2639
|
+
overflow: hidden;
|
|
2640
|
+
clip: rect(0, 0, 0, 0);
|
|
2641
|
+
white-space: nowrap;
|
|
2642
|
+
border-width: 0;
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
.Primer_Brand__FormControl-module__FormControl-label--medium___inrKd {
|
|
2646
|
+
letter-spacing: var(--brand-text-letterSpacing-200);
|
|
2647
|
+
font-size: var(--brand-text-size-200);
|
|
2648
|
+
line-height: var(--brand-text-lineHeight-200);
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
.Primer_Brand__FormControl-module__FormControl-label--large___okLn6 {
|
|
2652
|
+
letter-spacing: var(--brand-text-letterSpacing-300);
|
|
2653
|
+
font-size: var(--brand-text-size-300);
|
|
2654
|
+
line-height: var(--brand-text-lineHeight-300);
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
.Primer_Brand__FormControl-module__FormControl-label--checkbox___x2U9X {
|
|
2658
|
+
cursor: pointer;
|
|
2659
|
+
font-size: var(--brand-text-size-300);
|
|
2660
|
+
font-weight: var(--base-text-weight-semibold);
|
|
2661
|
+
letter-spacing: var(--brand-text-letterSpacing-300);
|
|
2662
|
+
line-height: var(--brand-text-lineHeight-300);
|
|
2663
|
+
position: relative;
|
|
2664
|
+
top: 1px;
|
|
2665
|
+
width: 100%;
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
.Primer_Brand__FormControl-module__FormControl-hint___dbP0O {
|
|
2669
|
+
color: var(--brand-color-text-muted);
|
|
2670
|
+
display: block;
|
|
2671
|
+
font-size: var(--brand-text-size-200);
|
|
2672
|
+
font-weight: var(--base-text-weight-normal);
|
|
2673
|
+
letter-spacing: var(--brand-text-letterSpacing-200);
|
|
2674
|
+
line-height: var(--brand-text-lineHeight-200);
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
/*Validation*/
|
|
2678
|
+
.Primer_Brand__FormControl-module__FormControl-validation___vG5tm {
|
|
2679
|
+
font-weight: var(--base-text-weight-normal);
|
|
2680
|
+
font-size: var(--brand-text-size-200);
|
|
2681
|
+
line-height: var(--brand-text-lineHeight-200);
|
|
2682
|
+
display: flex;
|
|
2683
|
+
gap: var(--base-size-4);
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
.Primer_Brand__FormControl-module__FormControl-validation--success___fGV4L {
|
|
2687
|
+
color: var(--brand-color-success-fg);
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
.Primer_Brand__FormControl-module__FormControl-validation--error___DJVR5 {
|
|
2691
|
+
color: var(--brand-color-error-fg);
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
.Primer_Brand__FormControl-module__FormControl-validation-icon___xh1go {
|
|
2695
|
+
padding-top: 1px;
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
.Primer_Brand__FormControl-module__FormControl-validation--animate-in___C_pxB {
|
|
2699
|
+
-webkit-animation: 170ms Primer_Brand__FormControl-module__FormControlValidationFadeIn___hRw_R cubic-bezier(0.44, 0.74, 0.36, 1);
|
|
2700
|
+
animation: 170ms Primer_Brand__FormControl-module__FormControlValidationFadeIn___hRw_R cubic-bezier(0.44, 0.74, 0.36, 1);
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
@-webkit-keyframes Primer_Brand__FormControl-module__FormControlValidationFadeIn___hRw_R {
|
|
2704
|
+
0% {
|
|
2705
|
+
opacity: 0;
|
|
2706
|
+
transform: translateY(-100%);
|
|
2707
|
+
}
|
|
2708
|
+
100% {
|
|
2709
|
+
opacity: 1;
|
|
2710
|
+
transform: translateY(0);
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
@keyframes Primer_Brand__FormControl-module__FormControlValidationFadeIn___hRw_R {
|
|
2715
|
+
0% {
|
|
2716
|
+
opacity: 0;
|
|
2717
|
+
transform: translateY(-100%);
|
|
2718
|
+
}
|
|
2719
|
+
100% {
|
|
2720
|
+
opacity: 1;
|
|
2721
|
+
transform: translateY(0);
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
|