athameui 0.0.10 → 0.0.12
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/components/Button/Button.tsx +3 -0
- package/components/Button/button.variants.ts +1 -0
- package/components/Carousel/Carousel.tsx +6 -2
- package/components/FormField/FormField.tsx +1 -0
- package/dist/athameui.cjs +44 -5
- package/dist/athameui.cjs.map +1 -1
- package/dist/athameui.mjs +29 -6
- package/dist/athameui.mjs.map +1 -1
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/button.variants.d.ts +1 -0
- package/dist/components/Button/button.variants.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/FormField/FormField.d.ts.map +1 -1
- package/dist/styles/breakpoints.d.ts +16 -0
- package/dist/styles/breakpoints.d.ts.map +1 -1
- package/dist/styles/breakpoints.ts +21 -0
- package/dist/styles/components/button.css +4 -1
- package/dist/styles/components/carousel.css +9 -2
- package/dist/styles/components/form-input.css +27 -7
- package/dist/styles/tokens.css +0 -3
- package/package.json +1 -1
- package/styles/breakpoints.ts +21 -0
- package/styles/components/button.css +4 -1
- package/styles/components/carousel.css +9 -2
- package/styles/components/form-input.css +27 -7
- package/styles/tokens.css +0 -3
|
@@ -20,6 +20,7 @@ export type ButtonProps = {
|
|
|
20
20
|
textPosition?: "left" | "center" | "right";
|
|
21
21
|
type?: "button" | "submit" | "reset";
|
|
22
22
|
variant?: ButtonVariant;
|
|
23
|
+
wrap?: boolean;
|
|
23
24
|
onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
24
25
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
25
26
|
onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAA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CAAC;IACpD,YAAY,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,MAAM,2GAgGlB,CAAC"}
|
|
@@ -21,6 +21,7 @@ export declare const buttonVariants: {
|
|
|
21
21
|
readonly ghost: "ath-button-ghost";
|
|
22
22
|
};
|
|
23
23
|
readonly dark: "ath-button-dark";
|
|
24
|
+
readonly wrap: "ath-button-wrap";
|
|
24
25
|
};
|
|
25
26
|
export type ButtonSize = keyof typeof buttonVariants.size;
|
|
26
27
|
export type ButtonVariant = keyof typeof buttonVariants.variant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.variants.d.ts","sourceRoot":"","sources":["../../../components/Button/button.variants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"button.variants.d.ts","sourceRoot":"","sources":["../../../components/Button/button.variants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;CAwBjB,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,cAAc,CAAC,IAAI,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,cAAc,CAAC,OAAO,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;AACpD,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,cAAc,CAAC,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../components/Carousel/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAM3C,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE;QACV,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;KAC9C,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,EAAE,CAAC,EAAE;QACH,QAAQ,CAAC,EAAE,SAAS,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,4CAKtB,aAAa,
|
|
1
|
+
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../components/Carousel/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAM3C,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE;QACV,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;KAC9C,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,EAAE,CAAC,EAAE;QACH,QAAQ,CAAC,EAAE,SAAS,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,4CAKtB,aAAa,qDAgEf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../components/FormField/FormField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAA2B,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAI3C,OAAO,kBAAkB,CAAC;AAE1B,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE;QACV,SAAS,CAAC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AC,mBAAmB,CAAC,KACvC,IAAI,CAAC;IACV,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CACpC,gBAAgB,GAAG,mBAAmB,CACvC,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiL9C,CAAC"}
|
|
@@ -10,4 +10,20 @@ export declare const breakpoints: {
|
|
|
10
10
|
};
|
|
11
11
|
export type Breakpoints = typeof breakpoints;
|
|
12
12
|
export type Breakpoint = keyof typeof breakpoints;
|
|
13
|
+
export declare const minXs: string;
|
|
14
|
+
export declare const minSm: string;
|
|
15
|
+
export declare const minMd: string;
|
|
16
|
+
export declare const minLg: string;
|
|
17
|
+
export declare const minXl: string;
|
|
18
|
+
export declare const min2xl: string;
|
|
19
|
+
export declare const min3xl: string;
|
|
20
|
+
export declare const min4xl: string;
|
|
21
|
+
export declare const maxXs: string;
|
|
22
|
+
export declare const maxSm: string;
|
|
23
|
+
export declare const maxMd: string;
|
|
24
|
+
export declare const maxLg: string;
|
|
25
|
+
export declare const maxXl: string;
|
|
26
|
+
export declare const max2xl: string;
|
|
27
|
+
export declare const max3xl: string;
|
|
28
|
+
export declare const max4xl: string;
|
|
13
29
|
//# sourceMappingURL=breakpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../styles/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;CASd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAC7C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../styles/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;CASd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAC7C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC;AAKlD,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,MAAM,QAA+B,CAAC;AACnD,eAAO,MAAM,MAAM,QAA+B,CAAC;AACnD,eAAO,MAAM,MAAM,QAA+B,CAAC;AAEnD,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,MAAM,QAA+B,CAAC;AACnD,eAAO,MAAM,MAAM,QAA+B,CAAC;AACnD,eAAO,MAAM,MAAM,QAA+B,CAAC"}
|
|
@@ -11,3 +11,24 @@ export const breakpoints = {
|
|
|
11
11
|
|
|
12
12
|
export type Breakpoints = typeof breakpoints;
|
|
13
13
|
export type Breakpoint = keyof typeof breakpoints;
|
|
14
|
+
|
|
15
|
+
const minWidth = (width: number) => `@media (min-width: ${width}px)`;
|
|
16
|
+
const maxWidth = (width: number) => `@media (max-width: ${width - 1}px)`;
|
|
17
|
+
|
|
18
|
+
export const minXs = minWidth(breakpoints.xs);
|
|
19
|
+
export const minSm = minWidth(breakpoints.sm);
|
|
20
|
+
export const minMd = minWidth(breakpoints.md);
|
|
21
|
+
export const minLg = minWidth(breakpoints.lg);
|
|
22
|
+
export const minXl = minWidth(breakpoints.xl);
|
|
23
|
+
export const min2xl = minWidth(breakpoints["2xl"]);
|
|
24
|
+
export const min3xl = minWidth(breakpoints["3xl"]);
|
|
25
|
+
export const min4xl = minWidth(breakpoints["4xl"]);
|
|
26
|
+
|
|
27
|
+
export const maxXs = maxWidth(breakpoints.xs);
|
|
28
|
+
export const maxSm = maxWidth(breakpoints.sm);
|
|
29
|
+
export const maxMd = maxWidth(breakpoints.md);
|
|
30
|
+
export const maxLg = maxWidth(breakpoints.lg);
|
|
31
|
+
export const maxXl = maxWidth(breakpoints.xl);
|
|
32
|
+
export const max2xl = maxWidth(breakpoints["2xl"]);
|
|
33
|
+
export const max3xl = maxWidth(breakpoints["3xl"]);
|
|
34
|
+
export const max4xl = maxWidth(breakpoints["4xl"]);
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
white-space: nowrap;
|
|
11
10
|
|
|
12
11
|
transition:
|
|
13
12
|
box-shadow 0.2s ease-in-out,
|
|
@@ -68,6 +67,10 @@
|
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
|
|
70
|
+
.ath-button-wrap {
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
}
|
|
73
|
+
|
|
71
74
|
.ath-button-small {
|
|
72
75
|
font-size: var(--font-size-md);
|
|
73
76
|
line-height: var(--font-size-md);
|
|
@@ -30,14 +30,21 @@
|
|
|
30
30
|
transition: opacity 0.2s ease-in-out;
|
|
31
31
|
}
|
|
32
32
|
.ath-carousel-left-arrow {
|
|
33
|
-
left:
|
|
33
|
+
left: 10px;
|
|
34
34
|
}
|
|
35
35
|
.ath-carousel-right-arrow {
|
|
36
|
-
right:
|
|
36
|
+
right: 10px;
|
|
37
37
|
}
|
|
38
38
|
.ath-carousel-hover {
|
|
39
39
|
.ath-carousel-arrow {
|
|
40
40
|
opacity: 0.75;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
+
.ath-carousel-empty {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
min-height: 4rem;
|
|
47
|
+
padding: 1rem;
|
|
48
|
+
color: var(--color-tertiary-300);
|
|
49
|
+
}
|
|
43
50
|
}
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
gap: 0.75rem;
|
|
15
15
|
align-items: center;
|
|
16
16
|
}
|
|
17
|
+
.ath-form-input-container-readonly {
|
|
18
|
+
width: 100%;
|
|
19
|
+
margin-top: 1rem;
|
|
20
|
+
line-height: 1.25;
|
|
21
|
+
}
|
|
17
22
|
|
|
18
23
|
/* Base input styles */
|
|
19
24
|
.ath-form-text-input {
|
|
@@ -24,12 +29,6 @@
|
|
|
24
29
|
outline-offset: -1px;
|
|
25
30
|
transition: all 0.2s ease;
|
|
26
31
|
min-width: 0;
|
|
27
|
-
&:read-only {
|
|
28
|
-
background-color: transparent;
|
|
29
|
-
outline: none;
|
|
30
|
-
color: var(--color-tertiary-600);
|
|
31
|
-
padding-left: 0;
|
|
32
|
-
}
|
|
33
32
|
}
|
|
34
33
|
.ath-form-text-input:focus {
|
|
35
34
|
outline: 2px solid var(--color-primary-vibrant-500);
|
|
@@ -102,13 +101,34 @@
|
|
|
102
101
|
cursor: not-allowed;
|
|
103
102
|
}
|
|
104
103
|
|
|
104
|
+
.ath-form-text-input:read-only,
|
|
105
|
+
.ath-form-text-input-readonly,
|
|
106
|
+
.ath-form-textarea:read-only,
|
|
107
|
+
.ath-form-textarea-readonly,
|
|
105
108
|
.ath-form-input-readonly,
|
|
106
|
-
.ath-form-
|
|
109
|
+
.ath-form-input-shared-readonly {
|
|
110
|
+
margin-top: 0.2rem;
|
|
111
|
+
padding: 0;
|
|
112
|
+
color: var(--color-tertiary-600);
|
|
107
113
|
background-color: transparent;
|
|
108
114
|
outline: none;
|
|
109
115
|
border: none;
|
|
116
|
+
box-shadow: none;
|
|
110
117
|
cursor: default;
|
|
111
118
|
}
|
|
119
|
+
.ath-form-text-input:read-only:focus,
|
|
120
|
+
.ath-form-text-input-readonly:focus,
|
|
121
|
+
.ath-form-textarea:read-only:focus,
|
|
122
|
+
.ath-form-textarea-readonly:focus {
|
|
123
|
+
outline: none;
|
|
124
|
+
border: none;
|
|
125
|
+
}
|
|
126
|
+
.ath-form-textarea:read-only,
|
|
127
|
+
.ath-form-textarea-readonly {
|
|
128
|
+
min-height: 0;
|
|
129
|
+
resize: none;
|
|
130
|
+
overflow: hidden;
|
|
131
|
+
}
|
|
112
132
|
|
|
113
133
|
/* Error message */
|
|
114
134
|
.ath-form-input-error-message {
|
package/dist/styles/tokens.css
CHANGED
|
@@ -165,7 +165,6 @@
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
@layer base {
|
|
168
|
-
|
|
169
168
|
*,
|
|
170
169
|
::before,
|
|
171
170
|
::after {
|
|
@@ -175,7 +174,6 @@
|
|
|
175
174
|
background-color: var(--color-primary-500);
|
|
176
175
|
color: var(--color-text-light);
|
|
177
176
|
font-family: var(--font-family-sans);
|
|
178
|
-
font-size: var(--font-size-md);
|
|
179
177
|
-webkit-font-smoothing: antialiased;
|
|
180
178
|
-moz-osx-font-smoothing: grayscale;
|
|
181
179
|
margin: 0;
|
|
@@ -184,7 +182,6 @@
|
|
|
184
182
|
h1 {
|
|
185
183
|
color: var(--color-text-light);
|
|
186
184
|
font-size: var(--font-size-2xl);
|
|
187
|
-
/* font-size: var(--font-size-3xl); */
|
|
188
185
|
font-weight: 300;
|
|
189
186
|
margin: 0 0 1rem;
|
|
190
187
|
line-height: normal;
|
package/package.json
CHANGED
package/styles/breakpoints.ts
CHANGED
|
@@ -11,3 +11,24 @@ export const breakpoints = {
|
|
|
11
11
|
|
|
12
12
|
export type Breakpoints = typeof breakpoints;
|
|
13
13
|
export type Breakpoint = keyof typeof breakpoints;
|
|
14
|
+
|
|
15
|
+
const minWidth = (width: number) => `@media (min-width: ${width}px)`;
|
|
16
|
+
const maxWidth = (width: number) => `@media (max-width: ${width - 1}px)`;
|
|
17
|
+
|
|
18
|
+
export const minXs = minWidth(breakpoints.xs);
|
|
19
|
+
export const minSm = minWidth(breakpoints.sm);
|
|
20
|
+
export const minMd = minWidth(breakpoints.md);
|
|
21
|
+
export const minLg = minWidth(breakpoints.lg);
|
|
22
|
+
export const minXl = minWidth(breakpoints.xl);
|
|
23
|
+
export const min2xl = minWidth(breakpoints["2xl"]);
|
|
24
|
+
export const min3xl = minWidth(breakpoints["3xl"]);
|
|
25
|
+
export const min4xl = minWidth(breakpoints["4xl"]);
|
|
26
|
+
|
|
27
|
+
export const maxXs = maxWidth(breakpoints.xs);
|
|
28
|
+
export const maxSm = maxWidth(breakpoints.sm);
|
|
29
|
+
export const maxMd = maxWidth(breakpoints.md);
|
|
30
|
+
export const maxLg = maxWidth(breakpoints.lg);
|
|
31
|
+
export const maxXl = maxWidth(breakpoints.xl);
|
|
32
|
+
export const max2xl = maxWidth(breakpoints["2xl"]);
|
|
33
|
+
export const max3xl = maxWidth(breakpoints["3xl"]);
|
|
34
|
+
export const max4xl = maxWidth(breakpoints["4xl"]);
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
white-space: nowrap;
|
|
11
10
|
|
|
12
11
|
transition:
|
|
13
12
|
box-shadow 0.2s ease-in-out,
|
|
@@ -68,6 +67,10 @@
|
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
|
|
70
|
+
.ath-button-wrap {
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
}
|
|
73
|
+
|
|
71
74
|
.ath-button-small {
|
|
72
75
|
font-size: var(--font-size-md);
|
|
73
76
|
line-height: var(--font-size-md);
|
|
@@ -30,14 +30,21 @@
|
|
|
30
30
|
transition: opacity 0.2s ease-in-out;
|
|
31
31
|
}
|
|
32
32
|
.ath-carousel-left-arrow {
|
|
33
|
-
left:
|
|
33
|
+
left: 10px;
|
|
34
34
|
}
|
|
35
35
|
.ath-carousel-right-arrow {
|
|
36
|
-
right:
|
|
36
|
+
right: 10px;
|
|
37
37
|
}
|
|
38
38
|
.ath-carousel-hover {
|
|
39
39
|
.ath-carousel-arrow {
|
|
40
40
|
opacity: 0.75;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
+
.ath-carousel-empty {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
min-height: 4rem;
|
|
47
|
+
padding: 1rem;
|
|
48
|
+
color: var(--color-tertiary-300);
|
|
49
|
+
}
|
|
43
50
|
}
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
gap: 0.75rem;
|
|
15
15
|
align-items: center;
|
|
16
16
|
}
|
|
17
|
+
.ath-form-input-container-readonly {
|
|
18
|
+
width: 100%;
|
|
19
|
+
margin-top: 1rem;
|
|
20
|
+
line-height: 1.25;
|
|
21
|
+
}
|
|
17
22
|
|
|
18
23
|
/* Base input styles */
|
|
19
24
|
.ath-form-text-input {
|
|
@@ -24,12 +29,6 @@
|
|
|
24
29
|
outline-offset: -1px;
|
|
25
30
|
transition: all 0.2s ease;
|
|
26
31
|
min-width: 0;
|
|
27
|
-
&:read-only {
|
|
28
|
-
background-color: transparent;
|
|
29
|
-
outline: none;
|
|
30
|
-
color: var(--color-tertiary-600);
|
|
31
|
-
padding-left: 0;
|
|
32
|
-
}
|
|
33
32
|
}
|
|
34
33
|
.ath-form-text-input:focus {
|
|
35
34
|
outline: 2px solid var(--color-primary-vibrant-500);
|
|
@@ -102,13 +101,34 @@
|
|
|
102
101
|
cursor: not-allowed;
|
|
103
102
|
}
|
|
104
103
|
|
|
104
|
+
.ath-form-text-input:read-only,
|
|
105
|
+
.ath-form-text-input-readonly,
|
|
106
|
+
.ath-form-textarea:read-only,
|
|
107
|
+
.ath-form-textarea-readonly,
|
|
105
108
|
.ath-form-input-readonly,
|
|
106
|
-
.ath-form-
|
|
109
|
+
.ath-form-input-shared-readonly {
|
|
110
|
+
margin-top: 0.2rem;
|
|
111
|
+
padding: 0;
|
|
112
|
+
color: var(--color-tertiary-600);
|
|
107
113
|
background-color: transparent;
|
|
108
114
|
outline: none;
|
|
109
115
|
border: none;
|
|
116
|
+
box-shadow: none;
|
|
110
117
|
cursor: default;
|
|
111
118
|
}
|
|
119
|
+
.ath-form-text-input:read-only:focus,
|
|
120
|
+
.ath-form-text-input-readonly:focus,
|
|
121
|
+
.ath-form-textarea:read-only:focus,
|
|
122
|
+
.ath-form-textarea-readonly:focus {
|
|
123
|
+
outline: none;
|
|
124
|
+
border: none;
|
|
125
|
+
}
|
|
126
|
+
.ath-form-textarea:read-only,
|
|
127
|
+
.ath-form-textarea-readonly {
|
|
128
|
+
min-height: 0;
|
|
129
|
+
resize: none;
|
|
130
|
+
overflow: hidden;
|
|
131
|
+
}
|
|
112
132
|
|
|
113
133
|
/* Error message */
|
|
114
134
|
.ath-form-input-error-message {
|
package/styles/tokens.css
CHANGED
|
@@ -165,7 +165,6 @@
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
@layer base {
|
|
168
|
-
|
|
169
168
|
*,
|
|
170
169
|
::before,
|
|
171
170
|
::after {
|
|
@@ -175,7 +174,6 @@
|
|
|
175
174
|
background-color: var(--color-primary-500);
|
|
176
175
|
color: var(--color-text-light);
|
|
177
176
|
font-family: var(--font-family-sans);
|
|
178
|
-
font-size: var(--font-size-md);
|
|
179
177
|
-webkit-font-smoothing: antialiased;
|
|
180
178
|
-moz-osx-font-smoothing: grayscale;
|
|
181
179
|
margin: 0;
|
|
@@ -184,7 +182,6 @@
|
|
|
184
182
|
h1 {
|
|
185
183
|
color: var(--color-text-light);
|
|
186
184
|
font-size: var(--font-size-2xl);
|
|
187
|
-
/* font-size: var(--font-size-3xl); */
|
|
188
185
|
font-weight: 300;
|
|
189
186
|
margin: 0 0 1rem;
|
|
190
187
|
line-height: normal;
|