@veracity/vui 4.1.0-alpha.381237.2603131513 → 4.1.0-alpha.381237.2603160811
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/textarea/theme.js
CHANGED
|
@@ -18,10 +18,22 @@ const parts = [
|
|
|
18
18
|
"label"
|
|
19
19
|
];
|
|
20
20
|
const sizes = {
|
|
21
|
-
sm: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
sm: {
|
|
22
|
+
container: { fontSize: "sm" },
|
|
23
|
+
label: { fontSize: "sm" }
|
|
24
|
+
},
|
|
25
|
+
md: {
|
|
26
|
+
container: { fontSize: "md" },
|
|
27
|
+
label: { fontSize: "md" }
|
|
28
|
+
},
|
|
29
|
+
lg: {
|
|
30
|
+
container: { fontSize: "md" },
|
|
31
|
+
label: { fontSize: "md" }
|
|
32
|
+
},
|
|
33
|
+
xl: {
|
|
34
|
+
container: { fontSize: "lg" },
|
|
35
|
+
label: { fontSize: "md" }
|
|
36
|
+
}
|
|
25
37
|
};
|
|
26
38
|
const variants = {
|
|
27
39
|
grey: { textarea: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","names":[],"sources":["../../src/textarea/theme.ts"],"sourcesContent":["import { inputColors } from '../input/consts'\n\nconst baseStyle = {\n textarea: {\n focusWithinRing: 3,\n color: inputColors.inputText,\n },\n input: {\n color: { placeholder: inputColors.placeholder },\n },\n}\n\nconst defaultProps = {\n size: 'lg',\n variant: 'grey',\n}\n\nconst parts = ['container', 'textarea', 'label']\n\nconst sizes = {\n sm: {\n label: { fontSize: 'sm' },\n },\n md: {\n label: { fontSize: 'md' },\n },\n lg: {\n label: { fontSize: 'md' },\n },\n xl: {\n label: { fontSize: 'md' },\n },\n}\n\nconst variants = {\n grey: {\n textarea: {\n borderColor: inputColors.border,\n focusWithinRingColor: inputColors.focus,\n },\n },\n green: {\n textarea: {\n borderColor: inputColors.success,\n focusWithinRingColor: inputColors.success,\n },\n },\n red: {\n textarea: {\n borderColor: inputColors.error,\n focusWithinRingColor: inputColors.error,\n },\n },\n}\n\nexport default {\n baseStyle,\n defaultProps,\n parts,\n sizes,\n variants,\n}\n"],"mappings":";;;AAEA,MAAM,YAAY;CAChB,UAAU;EACR,iBAAiB;EACjB,OAAO,YAAY;EACpB;CACD,OAAO,EACL,OAAO,EAAE,aAAa,YAAY,aAAa,EAChD;CACF;AAED,MAAM,eAAe;CACnB,MAAM;CACN,SAAS;CACV;AAED,MAAM,QAAQ;CAAC;CAAa;CAAY;CAAQ;AAEhD,MAAM,QAAQ;CACZ,IAAI
|
|
1
|
+
{"version":3,"file":"theme.js","names":[],"sources":["../../src/textarea/theme.ts"],"sourcesContent":["import { inputColors } from '../input/consts'\n\nconst baseStyle = {\n textarea: {\n focusWithinRing: 3,\n color: inputColors.inputText,\n },\n input: {\n color: { placeholder: inputColors.placeholder },\n },\n}\n\nconst defaultProps = {\n size: 'lg',\n variant: 'grey',\n}\n\nconst parts = ['container', 'textarea', 'label']\n\nconst sizes = {\n sm: {\n container: { fontSize: 'sm' },\n label: { fontSize: 'sm' },\n },\n md: {\n container: { fontSize: 'md' },\n label: { fontSize: 'md' },\n },\n lg: {\n container: { fontSize: 'md' },\n label: { fontSize: 'md' },\n },\n xl: {\n container: { fontSize: 'lg' },\n label: { fontSize: 'md' },\n },\n}\n\nconst variants = {\n grey: {\n textarea: {\n borderColor: inputColors.border,\n focusWithinRingColor: inputColors.focus,\n },\n },\n green: {\n textarea: {\n borderColor: inputColors.success,\n focusWithinRingColor: inputColors.success,\n },\n },\n red: {\n textarea: {\n borderColor: inputColors.error,\n focusWithinRingColor: inputColors.error,\n },\n },\n}\n\nexport default {\n baseStyle,\n defaultProps,\n parts,\n sizes,\n variants,\n}\n"],"mappings":";;;AAEA,MAAM,YAAY;CAChB,UAAU;EACR,iBAAiB;EACjB,OAAO,YAAY;EACpB;CACD,OAAO,EACL,OAAO,EAAE,aAAa,YAAY,aAAa,EAChD;CACF;AAED,MAAM,eAAe;CACnB,MAAM;CACN,SAAS;CACV;AAED,MAAM,QAAQ;CAAC;CAAa;CAAY;CAAQ;AAEhD,MAAM,QAAQ;CACZ,IAAI;EACF,WAAW,EAAE,UAAU,MAAM;EAC7B,OAAO,EAAE,UAAU,MAAM;EAC1B;CACD,IAAI;EACF,WAAW,EAAE,UAAU,MAAM;EAC7B,OAAO,EAAE,UAAU,MAAM;EAC1B;CACD,IAAI;EACF,WAAW,EAAE,UAAU,MAAM;EAC7B,OAAO,EAAE,UAAU,MAAM;EAC1B;CACD,IAAI;EACF,WAAW,EAAE,UAAU,MAAM;EAC7B,OAAO,EAAE,UAAU,MAAM;EAC1B;CACF;AAED,MAAM,WAAW;CACf,MAAM,EACJ,UAAU;EACR,aAAa,YAAY;EACzB,sBAAsB,YAAY;EACnC,EACF;CACD,OAAO,EACL,UAAU;EACR,aAAa,YAAY;EACzB,sBAAsB,YAAY;EACnC,EACF;CACD,KAAK,EACH,UAAU;EACR,aAAa,YAAY;EACzB,sBAAsB,YAAY;EACnC,EACF;CACF;AAED,oBAAe;CACb;CACA;CACA;CACA;CACA;CACD"}
|
|
@@ -2901,21 +2901,33 @@ declare const _default: {
|
|
|
2901
2901
|
parts: string[];
|
|
2902
2902
|
sizes: {
|
|
2903
2903
|
sm: {
|
|
2904
|
+
container: {
|
|
2905
|
+
fontSize: string;
|
|
2906
|
+
};
|
|
2904
2907
|
label: {
|
|
2905
2908
|
fontSize: string;
|
|
2906
2909
|
};
|
|
2907
2910
|
};
|
|
2908
2911
|
md: {
|
|
2912
|
+
container: {
|
|
2913
|
+
fontSize: string;
|
|
2914
|
+
};
|
|
2909
2915
|
label: {
|
|
2910
2916
|
fontSize: string;
|
|
2911
2917
|
};
|
|
2912
2918
|
};
|
|
2913
2919
|
lg: {
|
|
2920
|
+
container: {
|
|
2921
|
+
fontSize: string;
|
|
2922
|
+
};
|
|
2914
2923
|
label: {
|
|
2915
2924
|
fontSize: string;
|
|
2916
2925
|
};
|
|
2917
2926
|
};
|
|
2918
2927
|
xl: {
|
|
2928
|
+
container: {
|
|
2929
|
+
fontSize: string;
|
|
2930
|
+
};
|
|
2919
2931
|
label: {
|
|
2920
2932
|
fontSize: string;
|
|
2921
2933
|
};
|
|
@@ -3419,21 +3419,33 @@ declare const defaultTheme: {
|
|
|
3419
3419
|
parts: string[];
|
|
3420
3420
|
sizes: {
|
|
3421
3421
|
sm: {
|
|
3422
|
+
container: {
|
|
3423
|
+
fontSize: string;
|
|
3424
|
+
};
|
|
3422
3425
|
label: {
|
|
3423
3426
|
fontSize: string;
|
|
3424
3427
|
};
|
|
3425
3428
|
};
|
|
3426
3429
|
md: {
|
|
3430
|
+
container: {
|
|
3431
|
+
fontSize: string;
|
|
3432
|
+
};
|
|
3427
3433
|
label: {
|
|
3428
3434
|
fontSize: string;
|
|
3429
3435
|
};
|
|
3430
3436
|
};
|
|
3431
3437
|
lg: {
|
|
3438
|
+
container: {
|
|
3439
|
+
fontSize: string;
|
|
3440
|
+
};
|
|
3432
3441
|
label: {
|
|
3433
3442
|
fontSize: string;
|
|
3434
3443
|
};
|
|
3435
3444
|
};
|
|
3436
3445
|
xl: {
|
|
3446
|
+
container: {
|
|
3447
|
+
fontSize: string;
|
|
3448
|
+
};
|
|
3437
3449
|
label: {
|
|
3438
3450
|
fontSize: string;
|
|
3439
3451
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veracity/vui",
|
|
3
|
-
"version": "4.1.0-alpha.381237.
|
|
3
|
+
"version": "4.1.0-alpha.381237.2603160811",
|
|
4
4
|
"description": "Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Veracity",
|