@transcodes/ui-components 0.2.0 → 0.3.1
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 +76 -0
- package/README.md +124 -79
- package/dist/controllers/animation.controller.js +32 -0
- package/dist/controllers/base.controller.js +8 -0
- package/dist/controllers/form-validation.controller.js +49 -0
- package/dist/controllers/history.controller.js +26 -0
- package/dist/controllers/loading.controller.js +27 -0
- package/dist/controllers/match-media.controller.js +20 -0
- package/dist/controllers/message-bus.controller.js +45 -0
- package/dist/controllers/storage.controller.js +40 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.js +80 -0
- package/dist/primitives/tc-box.js +38 -0
- package/dist/primitives/tc-button.js +167 -0
- package/dist/primitives/tc-callout.js +86 -0
- package/dist/primitives/tc-card.js +76 -0
- package/dist/primitives/tc-chip.js +79 -0
- package/dist/primitives/tc-container.js +62 -0
- package/dist/primitives/tc-divider.js +76 -0
- package/dist/primitives/tc-error-message.js +74 -0
- package/dist/primitives/tc-form-header.js +120 -0
- package/dist/primitives/tc-icon.js +95 -0
- package/dist/primitives/tc-input-with-chip.js +242 -0
- package/dist/primitives/tc-input.js +262 -0
- package/dist/primitives/tc-item-button.js +168 -0
- package/dist/primitives/tc-item.js +93 -0
- package/dist/primitives/tc-otp-input.js +230 -0
- package/dist/primitives/tc-section.js +48 -0
- package/dist/primitives/tc-spinner.js +87 -0
- package/dist/primitives/tc-symbol.js +56 -0
- package/dist/primitives/tc-text.js +145 -0
- package/dist/primitives/tc-toast.js +189 -0
- package/dist/screens/tc-error-screen.js +119 -0
- package/dist/screens/tc-loading-screen.js +77 -0
- package/dist/screens/tc-success-screen.js +192 -0
- package/dist/styles/shared.js +7 -0
- package/dist/widgets/tc-authenticator-card.js +213 -0
- package/dist/widgets/tc-floating-button.js +132 -0
- package/dist/widgets/tc-iframe-modal.js +263 -0
- package/dist/widgets/tc-installation-banner.js +234 -0
- package/dist/widgets/tc-ios-installation-guide.js +240 -0
- package/dist/widgets/tc-notification-modal.js +230 -0
- package/dist/widgets/tc-offline-modal.js +202 -0
- package/dist/widgets/tc-page-decoration.js +126 -0
- package/package.json +25 -7
- package/dist/ui-components.css +0 -1
- package/dist/ui-components.js +0 -4468
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { LitElement as c, html as h, css as p } from "lit";
|
|
2
|
+
import { property as o, state as f, customElement as v } from "lit/decorators.js";
|
|
3
|
+
import { AnimationController as m } from "../controllers/animation.controller.js";
|
|
4
|
+
import { sharedStyles as y } from "../styles/shared.js";
|
|
5
|
+
var u = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (d, a, s, n) => {
|
|
6
|
+
for (var e = n > 1 ? void 0 : n ? b(a, s) : a, r = d.length - 1, l; r >= 0; r--)
|
|
7
|
+
(l = d[r]) && (e = (n ? l(a, s, e) : l(e)) || e);
|
|
8
|
+
return n && e && u(a, s, e), e;
|
|
9
|
+
};
|
|
10
|
+
let t = class extends c {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments), this.title = "No Connection", this.description = "Please check your internet connection and try again.", this.retryLabel = "Try Again", this.autoDetect = !0, this.isOffline = !1, this.animation = new m(this, {
|
|
13
|
+
showDuration: 300,
|
|
14
|
+
hideDuration: 200
|
|
15
|
+
}), this.handleOnline = () => {
|
|
16
|
+
this.isOffline = !1, this.hide(), this.dispatchEvent(
|
|
17
|
+
new CustomEvent("tc-online", {
|
|
18
|
+
bubbles: !0,
|
|
19
|
+
composed: !0
|
|
20
|
+
})
|
|
21
|
+
);
|
|
22
|
+
}, this.handleOffline = () => {
|
|
23
|
+
this.isOffline = !0, this.show(), this.dispatchEvent(
|
|
24
|
+
new CustomEvent("tc-offline", {
|
|
25
|
+
bubbles: !0,
|
|
26
|
+
composed: !0
|
|
27
|
+
})
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
connectedCallback() {
|
|
32
|
+
super.connectedCallback(), this.updateDataState(), this.autoDetect && (this.isOffline = !navigator.onLine, this.isOffline && this.show(), window.addEventListener("online", this.handleOnline), window.addEventListener("offline", this.handleOffline));
|
|
33
|
+
}
|
|
34
|
+
disconnectedCallback() {
|
|
35
|
+
super.disconnectedCallback(), window.removeEventListener("online", this.handleOnline), window.removeEventListener("offline", this.handleOffline);
|
|
36
|
+
}
|
|
37
|
+
updateDataState() {
|
|
38
|
+
this.dataset.state = this.animation.state;
|
|
39
|
+
}
|
|
40
|
+
async show() {
|
|
41
|
+
await this.animation.show(), this.updateDataState();
|
|
42
|
+
}
|
|
43
|
+
async hide() {
|
|
44
|
+
await this.animation.hide(), this.updateDataState();
|
|
45
|
+
}
|
|
46
|
+
handleRetry() {
|
|
47
|
+
this.dispatchEvent(
|
|
48
|
+
new CustomEvent("tc-retry", {
|
|
49
|
+
bubbles: !0,
|
|
50
|
+
composed: !0
|
|
51
|
+
})
|
|
52
|
+
), navigator.onLine && this.handleOnline();
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
return h`
|
|
56
|
+
<div part="overlay" class="overlay">
|
|
57
|
+
<div
|
|
58
|
+
part="modal"
|
|
59
|
+
class="modal"
|
|
60
|
+
role="alertdialog"
|
|
61
|
+
aria-modal="true"
|
|
62
|
+
aria-labelledby="offline-title"
|
|
63
|
+
aria-describedby="offline-description"
|
|
64
|
+
>
|
|
65
|
+
<div part="icon" class="icon-container">
|
|
66
|
+
<tc-icon name="wifi-off" size="2rem"></tc-icon>
|
|
67
|
+
</div>
|
|
68
|
+
<tc-section part="content" class="content" gap="var(--space-sm)">
|
|
69
|
+
<tc-text
|
|
70
|
+
id="offline-title"
|
|
71
|
+
part="title"
|
|
72
|
+
class="title"
|
|
73
|
+
tag="h2"
|
|
74
|
+
size="lg"
|
|
75
|
+
weight="600"
|
|
76
|
+
>
|
|
77
|
+
${this.title}
|
|
78
|
+
</tc-text>
|
|
79
|
+
<tc-text
|
|
80
|
+
id="offline-description"
|
|
81
|
+
part="description"
|
|
82
|
+
size="base"
|
|
83
|
+
color="tertiary"
|
|
84
|
+
>
|
|
85
|
+
${this.description}
|
|
86
|
+
</tc-text>
|
|
87
|
+
</tc-section>
|
|
88
|
+
<div part="action" class="action">
|
|
89
|
+
<tc-button variant="primary" @tc-click=${this.handleRetry}>
|
|
90
|
+
${this.retryLabel}
|
|
91
|
+
</tc-button>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
`;
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
t.styles = [
|
|
99
|
+
y,
|
|
100
|
+
p`
|
|
101
|
+
:host {
|
|
102
|
+
display: contents;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.overlay {
|
|
106
|
+
position: fixed;
|
|
107
|
+
inset: 0;
|
|
108
|
+
z-index: 1001;
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
padding: var(--space-lg);
|
|
113
|
+
background: var(--overlay-dark);
|
|
114
|
+
opacity: 0;
|
|
115
|
+
visibility: hidden;
|
|
116
|
+
transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:host([data-state='showing']) .overlay,
|
|
120
|
+
:host([data-state='visible']) .overlay {
|
|
121
|
+
opacity: 1;
|
|
122
|
+
visibility: visible;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:host([data-state='hiding']) .overlay {
|
|
126
|
+
opacity: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:host([data-state='hidden']) .overlay {
|
|
130
|
+
visibility: hidden;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.modal {
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
align-items: center;
|
|
137
|
+
width: 100%;
|
|
138
|
+
max-width: 320px;
|
|
139
|
+
padding: var(--space-xl);
|
|
140
|
+
background: var(--paper-white);
|
|
141
|
+
border-radius: var(--radius-lg);
|
|
142
|
+
box-shadow: 0 20px 60px var(--overlay-shadow-heavy);
|
|
143
|
+
text-align: center;
|
|
144
|
+
transform: scale(0.95);
|
|
145
|
+
transition: transform var(--transition-smooth);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:host([data-state='showing']) .modal,
|
|
149
|
+
:host([data-state='visible']) .modal {
|
|
150
|
+
transform: scale(1);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:host([data-state='hiding']) .modal {
|
|
154
|
+
transform: scale(0.95);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.icon-container {
|
|
158
|
+
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
justify-content: center;
|
|
161
|
+
width: 4rem;
|
|
162
|
+
height: 4rem;
|
|
163
|
+
margin-bottom: var(--space-lg);
|
|
164
|
+
background: var(--error-bg);
|
|
165
|
+
border-radius: var(--radius-full);
|
|
166
|
+
color: var(--error-base);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.content {
|
|
170
|
+
margin-bottom: var(--space-xl);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.title {
|
|
174
|
+
margin-bottom: var(--space-sm);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.action {
|
|
178
|
+
width: 100%;
|
|
179
|
+
}
|
|
180
|
+
`
|
|
181
|
+
];
|
|
182
|
+
i([
|
|
183
|
+
o({ type: String })
|
|
184
|
+
], t.prototype, "title", 2);
|
|
185
|
+
i([
|
|
186
|
+
o({ type: String })
|
|
187
|
+
], t.prototype, "description", 2);
|
|
188
|
+
i([
|
|
189
|
+
o({ type: String, attribute: "retry-label" })
|
|
190
|
+
], t.prototype, "retryLabel", 2);
|
|
191
|
+
i([
|
|
192
|
+
o({ type: Boolean, attribute: "auto-detect" })
|
|
193
|
+
], t.prototype, "autoDetect", 2);
|
|
194
|
+
i([
|
|
195
|
+
f()
|
|
196
|
+
], t.prototype, "isOffline", 2);
|
|
197
|
+
t = i([
|
|
198
|
+
v("tc-offline-modal")
|
|
199
|
+
], t);
|
|
200
|
+
export {
|
|
201
|
+
t as TcOfflineModal
|
|
202
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { LitElement as c, html as b, css as d } from "lit";
|
|
2
|
+
import { property as m, customElement as p } from "lit/decorators.js";
|
|
3
|
+
import { sharedStyles as v } from "../styles/shared.js";
|
|
4
|
+
var u = Object.defineProperty, f = Object.getOwnPropertyDescriptor, l = (s, e, o, t) => {
|
|
5
|
+
for (var r = t > 1 ? void 0 : t ? f(e, o) : e, i = s.length - 1, n; i >= 0; i--)
|
|
6
|
+
(n = s[i]) && (r = (t ? n(e, o, r) : n(r)) || r);
|
|
7
|
+
return t && r && u(e, o, r), r;
|
|
8
|
+
};
|
|
9
|
+
let a = class extends c {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.variant = "primary";
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return b`
|
|
15
|
+
<div part="decoration" class="decoration">
|
|
16
|
+
<div part="blob" class="blob blob-1"></div>
|
|
17
|
+
<div part="blob" class="blob blob-2"></div>
|
|
18
|
+
<div part="blob" class="blob blob-3"></div>
|
|
19
|
+
</div>
|
|
20
|
+
`;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
a.styles = [
|
|
24
|
+
v,
|
|
25
|
+
d`
|
|
26
|
+
:host {
|
|
27
|
+
position: fixed;
|
|
28
|
+
inset: 0;
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
z-index: 0;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.decoration {
|
|
35
|
+
position: absolute;
|
|
36
|
+
inset: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.blob {
|
|
40
|
+
position: absolute;
|
|
41
|
+
border-radius: 50%;
|
|
42
|
+
opacity: 0.35;
|
|
43
|
+
filter: blur(0.0625rem);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Primary (purple) variant */
|
|
47
|
+
:host([variant='primary']) .blob {
|
|
48
|
+
background: radial-gradient(
|
|
49
|
+
circle,
|
|
50
|
+
var(--accent-primary) 0%,
|
|
51
|
+
transparent 70%
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Success (green) variant */
|
|
56
|
+
:host([variant='success']) .blob {
|
|
57
|
+
background: radial-gradient(
|
|
58
|
+
circle,
|
|
59
|
+
var(--accent-success) 0%,
|
|
60
|
+
transparent 70%
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Error (red) variant */
|
|
65
|
+
:host([variant='error']) .blob {
|
|
66
|
+
background: radial-gradient(
|
|
67
|
+
circle,
|
|
68
|
+
var(--error-base) 0%,
|
|
69
|
+
transparent 70%
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.blob-1 {
|
|
74
|
+
width: 18rem;
|
|
75
|
+
height: 18rem;
|
|
76
|
+
top: -6rem;
|
|
77
|
+
left: -5rem;
|
|
78
|
+
animation: decorFloat 12s ease-in-out infinite;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.blob-2 {
|
|
82
|
+
width: 14rem;
|
|
83
|
+
height: 14rem;
|
|
84
|
+
top: 30%;
|
|
85
|
+
right: -6rem;
|
|
86
|
+
animation: decorFloat 10s ease-in-out infinite reverse;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.blob-3 {
|
|
90
|
+
width: 20rem;
|
|
91
|
+
height: 20rem;
|
|
92
|
+
bottom: -8rem;
|
|
93
|
+
left: 20%;
|
|
94
|
+
animation: decorFloat 14s ease-in-out infinite 2s;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@keyframes decorFloat {
|
|
98
|
+
0%,
|
|
99
|
+
100% {
|
|
100
|
+
transform: translate(0, 0) scale(1);
|
|
101
|
+
}
|
|
102
|
+
33% {
|
|
103
|
+
transform: translate(0.375rem, -0.5rem) scale(1.08);
|
|
104
|
+
}
|
|
105
|
+
66% {
|
|
106
|
+
transform: translate(-0.25rem, -0.25rem) scale(1.15);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Reduced motion */
|
|
111
|
+
@media (prefers-reduced-motion: reduce) {
|
|
112
|
+
.blob {
|
|
113
|
+
animation: none;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
`
|
|
117
|
+
];
|
|
118
|
+
l([
|
|
119
|
+
m({ type: String })
|
|
120
|
+
], a.prototype, "variant", 2);
|
|
121
|
+
a = l([
|
|
122
|
+
p("tc-page-decoration")
|
|
123
|
+
], a);
|
|
124
|
+
export {
|
|
125
|
+
a as TcPageDecoration
|
|
126
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transcodes/ui-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Lit 3.x component library with Reactive Controllers",
|
|
6
6
|
"keywords": [
|
|
@@ -28,19 +28,37 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"type": "module",
|
|
31
|
-
"main": "./dist/
|
|
32
|
-
"module": "./dist/
|
|
31
|
+
"main": "./dist/index.js",
|
|
32
|
+
"module": "./dist/index.js",
|
|
33
33
|
"types": "./dist/index.d.ts",
|
|
34
|
+
"sideEffects": false,
|
|
34
35
|
"exports": {
|
|
35
36
|
".": {
|
|
36
37
|
"types": "./dist/index.d.ts",
|
|
37
|
-
"import": "./dist/
|
|
38
|
+
"import": "./dist/index.js"
|
|
38
39
|
},
|
|
39
|
-
"./
|
|
40
|
+
"./primitives": {
|
|
41
|
+
"types": "./dist/primitives/index.d.ts",
|
|
42
|
+
"import": "./dist/primitives/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./widgets": {
|
|
45
|
+
"types": "./dist/widgets/index.d.ts",
|
|
46
|
+
"import": "./dist/widgets/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./screens": {
|
|
49
|
+
"types": "./dist/screens/index.d.ts",
|
|
50
|
+
"import": "./dist/screens/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./controllers": {
|
|
53
|
+
"types": "./dist/controllers/index.d.ts",
|
|
54
|
+
"import": "./dist/controllers/index.js"
|
|
55
|
+
}
|
|
40
56
|
},
|
|
41
57
|
"files": [
|
|
42
58
|
"dist",
|
|
43
|
-
"README.md"
|
|
59
|
+
"README.md",
|
|
60
|
+
"CHANGELOG.md",
|
|
61
|
+
"LICENSE"
|
|
44
62
|
],
|
|
45
63
|
"scripts": {
|
|
46
64
|
"build": "tsc && vite build",
|
|
@@ -54,7 +72,7 @@
|
|
|
54
72
|
"lit": "^3.0.0"
|
|
55
73
|
},
|
|
56
74
|
"dependencies": {
|
|
57
|
-
"@transcodes/design-tokens": "^0.
|
|
75
|
+
"@transcodes/design-tokens": "^0.3.1"
|
|
58
76
|
},
|
|
59
77
|
"devDependencies": {
|
|
60
78
|
"@storybook/addon-a11y": "^10.1.5",
|
package/dist/ui-components.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[data-theme=dark]{--ink-black: #ffffff;--ink-dark: #e5e5e5;--ink-medium: #a3a3a3;--ink-light: #737373;--ink-faint: #525252;--paper-white: #1a1a1a;--paper-cream: #2d2d2d;--paper-warm: #404040;--accent-primary: #a78bfa;--accent-primary-hover: #c4b5fd;--accent-primary-pressed: #8b5cf6;--accent-success: #4ade80;--accent-success-hover: #86efac;--accent-success-pressed: #22c55e;--semantic-warning: #fbbf24;--semantic-warning-hover: #fcd34d;--semantic-info: #38bdf8;--semantic-info-hover: #7dd3fc;--error-base: #f87171;--error-bg: rgba(248, 113, 113, .12);--error-border: rgba(248, 113, 113, .3)}@keyframes fadeInUp{0%{opacity:0;transform:translateY(1rem)}to{opacity:1;transform:translateY(0)}}@keyframes slideDown{0%{opacity:0;transform:translateY(-.5rem)}to{opacity:1;transform:translateY(0)}}@keyframes slideUp{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-.25rem)}75%{transform:translate(.25rem)}}@keyframes inkFloat{0%,to{transform:translate(0) scale(1);opacity:.5}50%{transform:translate(.625rem,-.625rem) scale(1.1);opacity:.7}}@keyframes inkDrift{0%,to{transform:translate(0) rotate(0);opacity:.4}33%{transform:translate(-.5rem,.5rem) rotate(-5deg);opacity:.6}66%{transform:translate(.375rem,-.375rem) rotate(3deg);opacity:.5}}@keyframes inkSpread{0%{transform:scale(0);opacity:.4}to{transform:scale(var(--ink-effect-spread-scale, 2.5));opacity:0}}.page-container{position:relative;width:100%;max-width:var(--page-container-max-width);margin:0 auto;padding:0 var(--page-container-padding);animation:fadeInUp .6s var(--transition-smooth) both}.page-container--wide{max-width:var(--page-container-max-width-wide)}.page-card{background:var(--paper-white);padding:var(--page-card-padding);border-radius:var(--page-card-radius);box-shadow:var(--shadow-card);position:relative;overflow:hidden}.page-card:before{content:"";position:absolute;inset:0;border-radius:inherit;padding:var(--space-fixed-2xs);background:linear-gradient(135deg,var(--alpha-primary08) 0%,transparent 50%,var(--alpha-primary04) 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}.page-card--centered{text-align:center}.page-decoration{position:absolute;border-radius:50%;filter:blur(3.75rem);pointer-events:none;z-index:0}.page-decoration--primary{background:var(--alpha-primary15)}.page-decoration--success{background:var(--alpha-success15)}.page-decoration--float{animation:inkFloat 4s ease-in-out infinite}.page-decoration--drift{animation:inkDrift 5s ease-in-out infinite}.button{height:var(--button-height);padding:0 var(--space-lg);font-family:var(--font-body);font-size:var(--button-font-size);font-weight:var(--button-font-weight);letter-spacing:var(--button-letter-spacing);border:var(--space-fixed-2xs) solid transparent;border-radius:var(--button-radius);cursor:pointer;transition:background var(--transition-fast),transform var(--transition-fast)}.button-primary{background:var(--accent-primary);color:var(--paper-white)}.button-primary:hover:not(:disabled){background:var(--accent-primary-hover);box-shadow:var(--shadow-button-hover-primary);transform:translateY(calc(-1 * var(--space-fixed-2xs)))}.button-success{background:var(--accent-success);color:var(--paper-white)}.button-success:hover:not(:disabled){background:var(--accent-success-hover);box-shadow:var(--shadow-button-hover-success);transform:translateY(calc(-1 * var(--space-fixed-2xs)))}.button-secondary{height:var(--button-height-secondary);background:transparent;color:var(--ink-dark);border:var(--space-fixed-2xs) solid var(--ink-faint)}.button-secondary:hover:not(:disabled){color:var(--accent-primary);border-color:var(--accent-primary);background:var(--alpha-primary04)}.button:disabled{cursor:not-allowed;opacity:.7}.text-button{display:inline-flex;align-items:center;justify-content:center;height:var(--button-text-height);padding:var(--space-sm) var(--space-md);font-family:var(--font-body);font-size:var(--button-text-font-size);font-weight:500;color:var(--ink-dark);background:transparent;border:none;border-radius:var(--radius-md);cursor:pointer;transition:background var(--transition-fast),color var(--transition-fast)}.text-button:hover{background:var(--paper-cream);color:var(--accent-primary)}.text-button-sm{height:auto;padding:var(--space-xs) var(--space-sm);font-size:.8125rem}.text-button-md{height:auto;padding:var(--space-sm) var(--space-md)}.button-content{display:flex;align-items:center;justify-content:center;gap:var(--button-content-gap)}.button-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0}.button-text{flex:1;text-align:center}.button-spinner{width:var(--button-spinner-size);height:var(--button-spinner-size);border:var(--button-spinner-border-width) solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin .6s linear infinite}.button-ink{position:relative;overflow:hidden}.button-ink:after{content:"";position:absolute;top:50%;left:50%;width:21.875rem;height:21.875rem;background:radial-gradient(circle,rgba(255,255,255,.5) 0%,transparent 70%);transform:translate(-50%,-50%) scale(0);border-radius:50%;pointer-events:none;transition:transform var(--ink-effect-ripple-duration, .6s) var(--ink-effect-ripple-easing, cubic-bezier(.4, 0, .2, 1)),opacity var(--ink-effect-fade-duration, .3s) ease;opacity:0}.button-ink:hover:after{transform:translate(-50%,-50%) scale(1);opacity:1}.button-ink:active:after{transform:translate(-50%,-50%) scale(.8);opacity:.8}.card{background:var(--paper-white);padding:var(--card-padding);border-radius:var(--card-radius);box-shadow:var(--shadow-card);position:relative;overflow:hidden}.container{position:relative;width:100%;max-width:var(--container-max-width)}.container-wide{max-width:var(--container-max-width-wide)}.form-header{text-align:center;margin-bottom:var(--form-header-margin-bottom)}.form-title{font-family:var(--font-body);font-size:var(--title-font-size);font-weight:var(--title-font-weight);color:var(--ink-black);letter-spacing:var(--title-letter-spacing);animation:slideDown .4s var(--transition-smooth) .2s both}.form-subtitle{font-size:var(--form-subtitle-font-size);color:var(--ink-medium);margin-top:var(--space-sm);animation:fadeInUp .4s var(--transition-smooth) .4s both}.form-fields{display:flex;flex-direction:column;gap:var(--form-fields-gap)}.form-footer{margin-top:var(--form-footer-margin-top);text-align:center;animation:fadeInUp .4s var(--transition-smooth) .6s both}.field-group{display:flex;flex-direction:column;gap:var(--field-group-gap)}.field-label{display:block;font-size:var(--label-font-size);font-weight:var(--label-font-weight);text-transform:uppercase;letter-spacing:var(--label-letter-spacing);color:var(--ink-medium);transition:color var(--transition-fast)}.field-group.focused .field-label{color:var(--accent-primary)}.required-mark{color:var(--accent-primary);margin-left:var(--space-2xs)}.input{width:100%;padding:var(--input-padding-y) var(--input-padding-x);font-family:var(--font-body);font-size:var(--input-font-size);color:var(--ink-black);background:var(--paper-cream);border:var(--space-fixed-2xs) solid transparent;border-radius:var(--input-radius);transition:background var(--transition-smooth),border-color var(--transition-smooth),box-shadow var(--transition-smooth)}.input::placeholder{color:var(--ink-faint)}.input:hover{background:var(--paper-warm)}.input:focus{outline:none;background:var(--paper-white);border-color:var(--ink-faint);box-shadow:var(--shadow-input-focus)}.label{display:block;font-size:var(--label-font-size);font-weight:var(--label-font-weight);text-transform:uppercase;letter-spacing:var(--label-letter-spacing);color:var(--ink-medium);margin-bottom:var(--space-sm);transition:color var(--transition-fast)}.title{font-family:var(--font-body);font-size:var(--title-font-size);font-weight:var(--title-font-weight);color:var(--ink-black);letter-spacing:var(--title-letter-spacing)}.error-message{display:flex;align-items:flex-start;gap:var(--feedback-error-gap);padding:var(--feedback-error-padding);background:var(--error-bg);border:var(--space-fixed-2xs) solid var(--error-border);border-radius:var(--feedback-error-radius);color:var(--error-base);animation:slideDown .3s var(--transition-smooth) both}.error-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--feedback-error-icon-size);height:var(--feedback-error-icon-size);color:var(--error-base)}.error-message.shake{animation:shake .4s var(--transition-smooth)}.notice{display:flex;align-items:flex-start;gap:var(--feedback-notice-gap);padding:var(--feedback-notice-padding);border-radius:var(--feedback-notice-radius);animation:slideUp .4s var(--transition-smooth) both}.notice-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--feedback-notice-icon-size);height:var(--feedback-notice-icon-size)}.notice-success{background:#357a4614;border:var(--space-fixed-2xs) solid rgba(53,122,70,.2);color:var(--accent-success)}.notice-warning{background:#b4530914;border:var(--space-fixed-2xs) solid rgba(180,83,9,.2);color:var(--semantic-warning)}.notice-info{background:#0369a114;border:var(--space-fixed-2xs) solid rgba(3,105,161,.2);color:var(--semantic-info)}
|