@apextelemed/partner-core 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/LICENSE +64 -0
  2. package/README.md +363 -0
  3. package/dist/api/index.d.ts +12 -0
  4. package/dist/api/index.js +8 -0
  5. package/dist/api/index.js.map +1 -0
  6. package/dist/api/index.jsx +127 -0
  7. package/dist/cart-CBH8Em8f.d.ts +189 -0
  8. package/dist/cart-D4mVX_zx.d.ts +66 -0
  9. package/dist/chunk/2OXI5TKO.jsx +249 -0
  10. package/dist/chunk/3A3MF7R2.jsx +1 -0
  11. package/dist/chunk/3VEOP7TZ.jsx +16679 -0
  12. package/dist/chunk/5XGPFYIJ.js +26 -0
  13. package/dist/chunk/5XGPFYIJ.js.map +1 -0
  14. package/dist/chunk/67KHO66G.js +26 -0
  15. package/dist/chunk/67KHO66G.js.map +1 -0
  16. package/dist/chunk/6TFBQECC.jsx +135 -0
  17. package/dist/chunk/AN3WPMEP.js +3 -0
  18. package/dist/chunk/AN3WPMEP.js.map +1 -0
  19. package/dist/chunk/DHII7L5Y.js +686 -0
  20. package/dist/chunk/DHII7L5Y.js.map +1 -0
  21. package/dist/chunk/DS4E7FAI.js +132 -0
  22. package/dist/chunk/DS4E7FAI.js.map +1 -0
  23. package/dist/chunk/DY5BJ6UG.js +1195 -0
  24. package/dist/chunk/DY5BJ6UG.js.map +1 -0
  25. package/dist/chunk/E7722UPF.js +378 -0
  26. package/dist/chunk/E7722UPF.js.map +1 -0
  27. package/dist/chunk/HLXKWRRW.js +16774 -0
  28. package/dist/chunk/HLXKWRRW.js.map +1 -0
  29. package/dist/chunk/I46Y2J5W.jsx +144 -0
  30. package/dist/chunk/J63XPQP4.jsx +21 -0
  31. package/dist/chunk/J6KNY37T.js +122 -0
  32. package/dist/chunk/J6KNY37T.js.map +1 -0
  33. package/dist/chunk/KNTZTYXE.jsx +3315 -0
  34. package/dist/chunk/KZZSQ7LP.jsx +409 -0
  35. package/dist/chunk/L46OKCKG.jsx +733 -0
  36. package/dist/chunk/LDZIUFDM.jsx +31 -0
  37. package/dist/chunk/LZWA44KD.js +3 -0
  38. package/dist/chunk/LZWA44KD.js.map +1 -0
  39. package/dist/chunk/NVRAOAVV.js +3 -0
  40. package/dist/chunk/NVRAOAVV.js.map +1 -0
  41. package/dist/chunk/O3QK7YZR.jsx +1 -0
  42. package/dist/chunk/UZCST66N.jsx +21 -0
  43. package/dist/chunk/V42CGY2S.jsx +1229 -0
  44. package/dist/chunk/YJEHCCLY.js +467 -0
  45. package/dist/chunk/YJEHCCLY.js.map +1 -0
  46. package/dist/chunk/ZMOG2IIC.js +3194 -0
  47. package/dist/chunk/ZMOG2IIC.js.map +1 -0
  48. package/dist/client-BzSg2DEK.d.ts +1539 -0
  49. package/dist/config/index.d.ts +55 -0
  50. package/dist/config/index.js +3 -0
  51. package/dist/config/index.js.map +1 -0
  52. package/dist/config/index.jsx +11 -0
  53. package/dist/flows/index.d.ts +1322 -0
  54. package/dist/flows/index.js +9 -0
  55. package/dist/flows/index.js.map +1 -0
  56. package/dist/flows/index.jsx +124 -0
  57. package/dist/index/index.d.ts +71 -0
  58. package/dist/index/index.js +15 -0
  59. package/dist/index/index.js.map +1 -0
  60. package/dist/index/index.jsx +311 -0
  61. package/dist/pages/index.d.ts +617 -0
  62. package/dist/pages/index.js +10 -0
  63. package/dist/pages/index.js.map +1 -0
  64. package/dist/pages/index.jsx +50 -0
  65. package/dist/primitives/default/index.d.ts +6 -0
  66. package/dist/primitives/default/index.js +3 -0
  67. package/dist/primitives/default/index.js.map +1 -0
  68. package/dist/primitives/default/index.jsx +7 -0
  69. package/dist/primitives/index.d.ts +122 -0
  70. package/dist/primitives/index.js +3 -0
  71. package/dist/primitives/index.js.map +1 -0
  72. package/dist/primitives/index.jsx +9 -0
  73. package/dist/stores/index.d.ts +48 -0
  74. package/dist/stores/index.js +6 -0
  75. package/dist/stores/index.js.map +1 -0
  76. package/dist/stores/index.jsx +16 -0
  77. package/dist/surveyV2-BgQHK0GE.d.ts +48 -0
  78. package/dist/testing/adapter.d.ts +104 -0
  79. package/dist/testing/adapter.d.ts.map +1 -0
  80. package/dist/testing/adapter.js +14 -0
  81. package/dist/testing/adapter.js.map +1 -0
  82. package/dist/testing/env.d.ts +29 -0
  83. package/dist/testing/env.d.ts.map +1 -0
  84. package/dist/testing/env.js +42 -0
  85. package/dist/testing/env.js.map +1 -0
  86. package/dist/testing/fixtures.d.ts +70 -0
  87. package/dist/testing/fixtures.d.ts.map +1 -0
  88. package/dist/testing/fixtures.js +74 -0
  89. package/dist/testing/fixtures.js.map +1 -0
  90. package/dist/testing/index.d.ts +15 -0
  91. package/dist/testing/index.d.ts.map +1 -0
  92. package/dist/testing/index.js +14 -0
  93. package/dist/testing/index.js.map +1 -0
  94. package/dist/testing/mocks.d.ts +53 -0
  95. package/dist/testing/mocks.d.ts.map +1 -0
  96. package/dist/testing/mocks.js +90 -0
  97. package/dist/testing/mocks.js.map +1 -0
  98. package/dist/testing/seam-suite.d.ts +39 -0
  99. package/dist/testing/seam-suite.d.ts.map +1 -0
  100. package/dist/testing/seam-suite.js +196 -0
  101. package/dist/testing/seam-suite.js.map +1 -0
  102. package/dist/testing/storage.d.ts +40 -0
  103. package/dist/testing/storage.d.ts.map +1 -0
  104. package/dist/testing/storage.js +71 -0
  105. package/dist/testing/storage.js.map +1 -0
  106. package/dist/theme/admin.css +579 -0
  107. package/dist/theme/affiliate.css +191 -0
  108. package/dist/theme/flow.css +497 -0
  109. package/dist/theme/index.d.ts +84 -0
  110. package/dist/theme/index.js +94 -0
  111. package/dist/theme/index.js.map +1 -0
  112. package/dist/theme/index.jsx +97 -0
  113. package/dist/theme/member-portal.css +1762 -0
  114. package/package.json +199 -0
@@ -0,0 +1,191 @@
1
+ /*
2
+ * @apextelemed/partner-core — affiliate portal theme
3
+ *
4
+ * Default values for the CSS variables the affiliate-portal components
5
+ * consume. Sites import this file once at app boot, then override
6
+ * individual variables in their own stylesheet to match their brand.
7
+ */
8
+
9
+ :root {
10
+ /* Page + surfaces */
11
+ --app-affiliate-bg: #0b0e14;
12
+ --app-affiliate-surface: #161b22;
13
+ --app-affiliate-surface-light: #1c232c;
14
+
15
+ /* Borders */
16
+ --app-affiliate-border: rgba(255, 255, 255, 0.08);
17
+ --app-affiliate-border-soft: rgba(255, 255, 255, 0.05);
18
+ --app-affiliate-border-strong: rgba(255, 255, 255, 0.12);
19
+
20
+ /* Text */
21
+ --app-affiliate-fg: #e6edf3;
22
+ --app-affiliate-fg-muted: #8b949e;
23
+ --app-affiliate-fg-subtle: rgba(139, 148, 158, 0.7);
24
+ --app-affiliate-font-display: 'Space Grotesk', system-ui, sans-serif;
25
+ --app-affiliate-font-body: inherit;
26
+ --app-affiliate-font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
27
+
28
+ /* Primary accent */
29
+ --app-affiliate-primary: #2f81f7;
30
+ --app-affiliate-primary-hover: #1f6feb;
31
+ --app-affiliate-primary-fg: #ffffff;
32
+ --app-affiliate-primary-soft: rgba(47, 129, 247, 0.15);
33
+ --app-affiliate-primary-soft-fg: #79b8ff;
34
+
35
+ /* Status — success */
36
+ --app-affiliate-success-bg: rgba(46, 160, 67, 0.15);
37
+ --app-affiliate-success-fg: #4ade80;
38
+
39
+ /* Status — warning */
40
+ --app-affiliate-warning-bg: rgba(255, 191, 0, 0.15);
41
+ --app-affiliate-warning-fg: #fbbf24;
42
+
43
+ /* Status — danger */
44
+ --app-affiliate-danger-bg: rgba(248, 81, 73, 0.1);
45
+ --app-affiliate-danger-fg: #f87171;
46
+
47
+ /* Sizing */
48
+ --app-affiliate-radius: 6px;
49
+ --app-affiliate-radius-sm: 4px;
50
+ }
51
+
52
+ /* ── Mobile baseline ─────────────────────────────────────────────── */
53
+
54
+ .app-affiliate-root {
55
+ overflow-wrap: anywhere;
56
+ }
57
+ .app-affiliate-root img,
58
+ .app-affiliate-root video {
59
+ max-width: 100%;
60
+ height: auto;
61
+ }
62
+
63
+ /* ── Shell layout ────────────────────────────────────────────────── */
64
+
65
+ .app-affiliate-shell {
66
+ display: flex;
67
+ }
68
+ .app-affiliate-shell-header {
69
+ display: none;
70
+ }
71
+ .app-affiliate-sidebar {
72
+ width: 14rem;
73
+ flex-shrink: 0;
74
+ background: var(--app-affiliate-surface);
75
+ border-right: 1px solid var(--app-affiliate-border);
76
+ overflow-y: auto;
77
+ }
78
+ .app-affiliate-content {
79
+ flex: 1;
80
+ padding: 2rem;
81
+ overflow-y: auto;
82
+ min-width: 0;
83
+ }
84
+ .app-affiliate-backdrop {
85
+ display: none;
86
+ }
87
+
88
+ @media (max-width: 767px) {
89
+ .app-affiliate-shell {
90
+ flex-direction: column;
91
+ }
92
+ .app-affiliate-shell-header {
93
+ display: flex;
94
+ align-items: center;
95
+ gap: 0.75rem;
96
+ padding: 0.5rem 0.75rem;
97
+ background: var(--app-affiliate-surface);
98
+ border-bottom: 1px solid var(--app-affiliate-border);
99
+ flex-shrink: 0;
100
+ }
101
+ .app-affiliate-shell-menu-trigger {
102
+ display: inline-flex;
103
+ align-items: center;
104
+ justify-content: center;
105
+ width: 44px;
106
+ height: 44px;
107
+ background: transparent;
108
+ border: none;
109
+ color: var(--app-affiliate-fg);
110
+ cursor: pointer;
111
+ border-radius: var(--app-affiliate-radius-sm);
112
+ }
113
+ .app-affiliate-shell-menu-trigger:hover {
114
+ background: var(--app-affiliate-surface-light);
115
+ }
116
+ .app-affiliate-shell-header-title {
117
+ font-family: var(--app-affiliate-font-display);
118
+ font-weight: 600;
119
+ font-size: 1rem;
120
+ color: var(--app-affiliate-fg);
121
+ }
122
+ .app-affiliate-sidebar {
123
+ position: fixed;
124
+ top: var(--app-affiliate-top-offset, 0px);
125
+ left: 0;
126
+ bottom: 0;
127
+ width: min(85vw, 18rem);
128
+ z-index: 40;
129
+ transform: translateX(-100%);
130
+ transition: transform 0.2s ease-out;
131
+ }
132
+ .app-affiliate-shell.is-drawer-open .app-affiliate-sidebar {
133
+ transform: translateX(0);
134
+ }
135
+ .app-affiliate-shell.is-drawer-open .app-affiliate-backdrop {
136
+ display: block;
137
+ position: fixed;
138
+ top: var(--app-affiliate-top-offset, 0px);
139
+ right: 0;
140
+ bottom: 0;
141
+ left: 0;
142
+ background: rgba(0, 0, 0, 0.5);
143
+ z-index: 35;
144
+ }
145
+ .app-affiliate-content {
146
+ padding: 1rem;
147
+ }
148
+
149
+ /* Affiliate Conversions table → stacked cards below md. Mirrors the
150
+ `.app-admin-table` treatment in admin.css. */
151
+ .app-affiliate-table,
152
+ .app-affiliate-table thead,
153
+ .app-affiliate-table tbody,
154
+ .app-affiliate-table tr,
155
+ .app-affiliate-table th,
156
+ .app-affiliate-table td {
157
+ display: block;
158
+ }
159
+ .app-affiliate-table thead {
160
+ position: absolute;
161
+ width: 1px;
162
+ height: 1px;
163
+ overflow: hidden;
164
+ clip: rect(0 0 0 0);
165
+ margin: -1px;
166
+ padding: 0;
167
+ border: 0;
168
+ }
169
+ .app-affiliate-table tbody tr {
170
+ border-top: 1px solid var(--app-affiliate-border);
171
+ padding: 0.75rem 1rem;
172
+ }
173
+ .app-affiliate-table td {
174
+ padding: 0.25rem 0;
175
+ display: flex;
176
+ justify-content: space-between;
177
+ align-items: center;
178
+ gap: 1rem;
179
+ text-align: right;
180
+ }
181
+ .app-affiliate-table td[data-label]::before {
182
+ content: attr(data-label);
183
+ font-size: 0.7rem;
184
+ text-transform: uppercase;
185
+ letter-spacing: 0.05em;
186
+ color: var(--app-affiliate-fg-muted);
187
+ font-weight: 500;
188
+ text-align: left;
189
+ flex-shrink: 0;
190
+ }
191
+ }
@@ -0,0 +1,497 @@
1
+ /*
2
+ * @apextelemed/partner-core — default flow-primitive theme
3
+ *
4
+ * Styling for `defaultPrimitives` (src/primitives.default.tsx): the drop-in
5
+ * implementation of the `Primitives` contract that renders the shared flow
6
+ * pages (Survey, Checkout, Signup, Subscribe, payment) with no per-site
7
+ * component code.
8
+ *
9
+ * This is the "cheap tier" of customization. A site that does NOT need its
10
+ * own component structure imports this file once at boot, sets the
11
+ * `--app-flow-*` variables below to its brand, and passes `defaultPrimitives`
12
+ * to <PrimitivesProvider>. A site that needs bespoke structure ignores this
13
+ * file and implements `Primitives` itself (the "full tier").
14
+ *
15
+ * The character knobs (--app-flow-radius, --app-flow-btn-*) exist so the two
16
+ * ends of the current spread reproduce from variables alone: soft/rounded
17
+ * (perihelion) at one end, sharp + uppercase display type (sculpted) at the
18
+ * other. Reach for the full tier only past what these knobs cover.
19
+ *
20
+ * Usage — import this file BEFORE your own brand variables. The defaults below
21
+ * live on `:root`, so a brand block imported earlier loses to them on source
22
+ * order and the page silently renders in the default palette.
23
+ *
24
+ * import '@apextelemed/partner-core/theme/flow.css';
25
+ * import './brand.css'; // wins
26
+ *
27
+ * // brand.css
28
+ * :root {
29
+ * --app-flow-primary: #6b46c1;
30
+ * --app-flow-radius: 0.75rem;
31
+ * --app-flow-font-display: 'Sora', system-ui, sans-serif;
32
+ * }
33
+ */
34
+
35
+ :root {
36
+ /* Surfaces */
37
+ --app-flow-surface: #ffffff;
38
+ --app-flow-surface-raised: #ffffff;
39
+ --app-flow-surface-inset: #f6f5f4;
40
+
41
+ /* Text */
42
+ --app-flow-fg: #1a1816;
43
+ --app-flow-fg-muted: #6e6a66; /* dark enough that 12px labels pass AA */
44
+ --app-flow-fg-on-primary: #ffffff;
45
+ /* Override alongside --app-flow-danger/-success if you set a light variant. */
46
+ --app-flow-fg-on-danger: #ffffff;
47
+ --app-flow-fg-on-success: #ffffff;
48
+
49
+ /* Fonts — `inherit` picks up the host page's stack unless overridden */
50
+ --app-flow-font-body: inherit;
51
+ --app-flow-font-display: inherit;
52
+
53
+ /* Borders */
54
+ --app-flow-border: #e5e2dd;
55
+ --app-flow-border-strong: #cfcbc4;
56
+
57
+ /* Primary / accent */
58
+ --app-flow-primary: #6b9b6b;
59
+ --app-flow-primary-hover: #5c8a5c;
60
+ --app-flow-primary-soft: #eef4ee;
61
+
62
+ /* Semantic */
63
+ --app-flow-danger: #9b3b3b;
64
+ --app-flow-danger-soft: #f6e9e9;
65
+ --app-flow-success: #2f7d55;
66
+ --app-flow-success-soft: #e6f1ec;
67
+ --app-flow-warning: #a86a1f;
68
+ --app-flow-warning-soft: #f6ecda;
69
+ --app-flow-info: #2f5f9e;
70
+ --app-flow-info-soft: #e6edf6;
71
+
72
+ /* Character knobs */
73
+ --app-flow-radius: 0.75rem;
74
+ --app-flow-radius-sm: 0.5rem;
75
+ --app-flow-btn-transform: none; /* set to `uppercase` for display-style buttons */
76
+ --app-flow-btn-tracking: normal; /* e.g. 0.05em to widen tracking */
77
+ --app-flow-btn-weight: 600;
78
+
79
+ /* Select chevron — `appearance: none` strips the native arrow, so this draws
80
+ it back. Override with any url() (or `none`) to restyle or recolor. */
81
+ --app-flow-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6a66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
82
+ }
83
+
84
+ /* ── Button ──────────────────────────────────────────────────────── */
85
+
86
+ .flow-btn {
87
+ display: inline-flex;
88
+ align-items: center;
89
+ justify-content: center;
90
+ gap: 0.5rem;
91
+ border: 1px solid transparent;
92
+ border-radius: var(--app-flow-radius);
93
+ font-family: var(--app-flow-font-display);
94
+ font-weight: var(--app-flow-btn-weight);
95
+ text-transform: var(--app-flow-btn-transform);
96
+ letter-spacing: var(--app-flow-btn-tracking);
97
+ line-height: 1.2;
98
+ cursor: pointer;
99
+ transition:
100
+ background-color 0.15s ease,
101
+ opacity 0.15s ease,
102
+ border-color 0.15s ease;
103
+ }
104
+ .flow-btn:disabled {
105
+ opacity: 0.5;
106
+ cursor: not-allowed;
107
+ }
108
+ .flow-btn--sm {
109
+ padding: 0.375rem 0.75rem;
110
+ font-size: 0.75rem;
111
+ }
112
+ .flow-btn--md {
113
+ padding: 0.625rem 1.25rem;
114
+ font-size: 0.875rem;
115
+ }
116
+ .flow-btn--lg {
117
+ padding: 0.875rem 1.5rem;
118
+ font-size: 1rem;
119
+ }
120
+ .flow-btn--full {
121
+ width: 100%;
122
+ }
123
+ .flow-btn--primary {
124
+ background: var(--app-flow-primary);
125
+ color: var(--app-flow-fg-on-primary);
126
+ }
127
+ .flow-btn--primary:not(:disabled):hover {
128
+ background: var(--app-flow-primary-hover);
129
+ }
130
+ .flow-btn--secondary {
131
+ background: var(--app-flow-surface-inset);
132
+ border-color: var(--app-flow-border);
133
+ color: var(--app-flow-fg);
134
+ }
135
+ .flow-btn--secondary:not(:disabled):hover {
136
+ background: var(--app-flow-surface-raised);
137
+ }
138
+ .flow-btn--ghost {
139
+ background: transparent;
140
+ border-color: var(--app-flow-border);
141
+ color: var(--app-flow-fg-muted);
142
+ }
143
+ .flow-btn--ghost:not(:disabled):hover {
144
+ background: var(--app-flow-surface-inset);
145
+ }
146
+ .flow-btn--danger {
147
+ background: var(--app-flow-danger);
148
+ color: var(--app-flow-fg-on-danger);
149
+ }
150
+ .flow-btn--danger:not(:disabled):hover {
151
+ opacity: 0.9;
152
+ }
153
+
154
+ .flow-btn-spinner {
155
+ width: 1rem;
156
+ height: 1rem;
157
+ border: 2px solid currentColor;
158
+ border-top-color: transparent;
159
+ border-radius: 50%;
160
+ animation: flow-spin 0.6s linear infinite;
161
+ }
162
+
163
+ /* ── Fields (TextField / Textarea / Select) ──────────────────────── */
164
+
165
+ .flow-field {
166
+ display: block;
167
+ }
168
+ .flow-label {
169
+ display: block;
170
+ font-family: var(--app-flow-font-body);
171
+ font-size: 0.875rem;
172
+ font-weight: 500;
173
+ color: var(--app-flow-fg);
174
+ margin-bottom: 0.375rem;
175
+ }
176
+ /* Generated content so the marker stays out of the control's accessible name;
177
+ the `required` attribute carries the semantics. */
178
+ .flow-label--required::after {
179
+ content: '*';
180
+ color: var(--app-flow-danger);
181
+ margin-left: 0.25rem;
182
+ }
183
+ .flow-input {
184
+ width: 100%;
185
+ padding: 0.75rem 1rem;
186
+ border-radius: var(--app-flow-radius);
187
+ background: var(--app-flow-surface-inset);
188
+ border: 1px solid var(--app-flow-border);
189
+ color: var(--app-flow-fg);
190
+ font-family: var(--app-flow-font-body);
191
+ font-size: 0.875rem;
192
+ outline: none;
193
+ transition: border-color 0.15s ease;
194
+ }
195
+ .flow-input::placeholder {
196
+ color: var(--app-flow-fg-muted);
197
+ opacity: 0.7;
198
+ }
199
+ .flow-input:focus {
200
+ border-color: var(--app-flow-primary);
201
+ }
202
+ /* outline is stripped above, so keyboard focus needs an explicit ring —
203
+ :focus-visible keeps it off mouse clicks */
204
+ .flow-input:focus-visible {
205
+ outline: 2px solid var(--app-flow-primary);
206
+ outline-offset: 1px;
207
+ }
208
+ .flow-input--error {
209
+ border-color: var(--app-flow-danger);
210
+ }
211
+ .flow-textarea {
212
+ resize: vertical;
213
+ min-height: 6rem;
214
+ }
215
+ .flow-select {
216
+ cursor: pointer;
217
+ appearance: none;
218
+ padding-right: 2.5rem;
219
+ background-image: var(--app-flow-select-chevron);
220
+ background-repeat: no-repeat;
221
+ background-position: right 1rem center;
222
+ background-size: 0.625rem auto;
223
+ }
224
+ .flow-error {
225
+ font-size: 0.75rem;
226
+ color: var(--app-flow-danger);
227
+ margin-top: 0.25rem;
228
+ }
229
+
230
+ /* ── Choice groups (RadioGroup / CheckboxGroup) ──────────────────── */
231
+
232
+ .flow-choices {
233
+ border: 1px solid var(--app-flow-border);
234
+ border-radius: var(--app-flow-radius);
235
+ overflow: hidden;
236
+ }
237
+ .flow-choice {
238
+ display: flex;
239
+ align-items: center;
240
+ gap: 0.75rem;
241
+ padding: 0.625rem 1rem;
242
+ background: var(--app-flow-surface-inset);
243
+ cursor: pointer;
244
+ transition: background-color 0.15s ease;
245
+ }
246
+ .flow-choice + .flow-choice {
247
+ border-top: 1px solid var(--app-flow-border);
248
+ }
249
+ .flow-choice:hover {
250
+ background: var(--app-flow-surface-raised);
251
+ }
252
+ .flow-choice input {
253
+ width: 1rem;
254
+ height: 1rem;
255
+ flex-shrink: 0;
256
+ accent-color: var(--app-flow-primary);
257
+ }
258
+ /* Column, not the default row — label and description are both spans, so
259
+ inline flow would run them together ("MonthlyBilled every month"). */
260
+ .flow-choice-body {
261
+ flex: 1;
262
+ display: flex;
263
+ flex-direction: column;
264
+ }
265
+ .flow-choice-label {
266
+ font-size: 0.875rem;
267
+ color: var(--app-flow-fg);
268
+ }
269
+ .flow-choice-desc {
270
+ font-size: 0.75rem;
271
+ color: var(--app-flow-fg-muted);
272
+ margin-top: 0.125rem;
273
+ }
274
+
275
+ /* ── Card ────────────────────────────────────────────────────────── */
276
+
277
+ .flow-card {
278
+ background: var(--app-flow-surface);
279
+ border: 1px solid var(--app-flow-border);
280
+ border-radius: var(--app-flow-radius);
281
+ }
282
+ .flow-card--inset {
283
+ background: var(--app-flow-surface-inset);
284
+ border-color: var(--app-flow-border);
285
+ }
286
+ .flow-card--pad-none {
287
+ padding: 0;
288
+ }
289
+ .flow-card--pad-sm {
290
+ padding: 0.75rem;
291
+ }
292
+ .flow-card--pad-md {
293
+ padding: 1.5rem;
294
+ }
295
+ .flow-card--pad-lg {
296
+ padding: 2rem;
297
+ }
298
+
299
+ /* ── Banner ──────────────────────────────────────────────────────── */
300
+
301
+ .flow-banner {
302
+ padding: 0.75rem 1rem;
303
+ border-radius: var(--app-flow-radius);
304
+ border: 1px solid transparent;
305
+ font-family: var(--app-flow-font-body);
306
+ font-size: 0.875rem;
307
+ }
308
+ .flow-banner--error {
309
+ background: var(--app-flow-danger-soft);
310
+ border-color: var(--app-flow-danger);
311
+ color: var(--app-flow-danger);
312
+ }
313
+ .flow-banner--success {
314
+ background: var(--app-flow-success-soft);
315
+ border-color: var(--app-flow-success);
316
+ color: var(--app-flow-success);
317
+ }
318
+ .flow-banner--warning {
319
+ background: var(--app-flow-warning-soft);
320
+ border-color: var(--app-flow-warning);
321
+ color: var(--app-flow-warning);
322
+ }
323
+ .flow-banner--info {
324
+ background: var(--app-flow-info-soft);
325
+ border-color: var(--app-flow-info);
326
+ color: var(--app-flow-info);
327
+ }
328
+
329
+ /* ── StatusPill ──────────────────────────────────────────────────── */
330
+
331
+ .flow-pill {
332
+ display: inline-flex;
333
+ align-items: center;
334
+ padding: 0.25rem 0.625rem;
335
+ border-radius: var(--app-flow-radius-sm);
336
+ border: 1px solid transparent;
337
+ font-family: var(--app-flow-font-body);
338
+ font-size: 0.75rem;
339
+ font-weight: 500;
340
+ }
341
+ .flow-pill--active,
342
+ .flow-pill--approved {
343
+ background: var(--app-flow-success-soft);
344
+ color: var(--app-flow-success);
345
+ border-color: var(--app-flow-success);
346
+ }
347
+ .flow-pill--pending,
348
+ .flow-pill--paused {
349
+ background: var(--app-flow-warning-soft);
350
+ color: var(--app-flow-warning);
351
+ border-color: var(--app-flow-warning);
352
+ }
353
+ .flow-pill--processing {
354
+ background: var(--app-flow-info-soft);
355
+ color: var(--app-flow-info);
356
+ border-color: var(--app-flow-info);
357
+ }
358
+ .flow-pill--completed {
359
+ background: var(--app-flow-primary-soft);
360
+ color: var(--app-flow-primary);
361
+ border-color: var(--app-flow-primary);
362
+ }
363
+ .flow-pill--denied,
364
+ .flow-pill--cancelled {
365
+ background: var(--app-flow-danger-soft);
366
+ color: var(--app-flow-danger);
367
+ border-color: var(--app-flow-danger);
368
+ }
369
+ .flow-pill--new {
370
+ background: var(--app-flow-surface-inset);
371
+ color: var(--app-flow-fg-muted);
372
+ border-color: var(--app-flow-border);
373
+ }
374
+
375
+ /* ── Spinner ─────────────────────────────────────────────────────── */
376
+
377
+ .flow-spinner {
378
+ display: inline-block;
379
+ border: 2px solid var(--app-flow-primary);
380
+ border-top-color: transparent;
381
+ border-radius: 50%;
382
+ animation: flow-spin 0.6s linear infinite;
383
+ }
384
+ .flow-spinner--sm {
385
+ width: 1rem;
386
+ height: 1rem;
387
+ border-width: 1px;
388
+ }
389
+ .flow-spinner--md {
390
+ width: 1.5rem;
391
+ height: 1.5rem;
392
+ }
393
+ .flow-spinner--lg {
394
+ width: 2rem;
395
+ height: 2rem;
396
+ }
397
+
398
+ @keyframes flow-spin {
399
+ to {
400
+ transform: rotate(360deg);
401
+ }
402
+ }
403
+
404
+ /* ── Heading ─────────────────────────────────────────────────────── */
405
+
406
+ .flow-heading {
407
+ font-family: var(--app-flow-font-display);
408
+ color: var(--app-flow-fg);
409
+ margin: 0;
410
+ }
411
+ .flow-heading--1 {
412
+ font-size: 1.875rem;
413
+ font-weight: 700;
414
+ }
415
+ .flow-heading--2 {
416
+ font-size: 1.25rem;
417
+ font-weight: 600;
418
+ }
419
+ .flow-heading--3 {
420
+ font-size: 1rem;
421
+ font-weight: 600;
422
+ }
423
+
424
+ /* ── StepIndicator ───────────────────────────────────────────────── */
425
+
426
+ .flow-steps {
427
+ display: flex;
428
+ align-items: center;
429
+ justify-content: center;
430
+ gap: 0.5rem;
431
+ }
432
+ .flow-step {
433
+ display: flex;
434
+ align-items: center;
435
+ gap: 0.5rem;
436
+ }
437
+ .flow-step-dot {
438
+ width: 2rem;
439
+ height: 2rem;
440
+ border-radius: 50%;
441
+ display: flex;
442
+ align-items: center;
443
+ justify-content: center;
444
+ font-size: 0.875rem;
445
+ font-weight: 600;
446
+ border: 1px solid var(--app-flow-border);
447
+ background: var(--app-flow-surface-inset);
448
+ color: var(--app-flow-fg-muted);
449
+ transition:
450
+ background-color 0.2s ease,
451
+ color 0.2s ease;
452
+ }
453
+ .flow-step-dot--done {
454
+ background: var(--app-flow-success);
455
+ border-color: var(--app-flow-success);
456
+ color: var(--app-flow-fg-on-success);
457
+ }
458
+ .flow-step-dot--current {
459
+ background: var(--app-flow-primary);
460
+ border-color: var(--app-flow-primary);
461
+ color: var(--app-flow-fg-on-primary);
462
+ }
463
+ .flow-step-label {
464
+ font-size: 0.75rem;
465
+ color: var(--app-flow-fg-muted);
466
+ }
467
+ .flow-step-label--current {
468
+ color: var(--app-flow-fg);
469
+ }
470
+ .flow-step-line {
471
+ width: 1.5rem;
472
+ height: 1px;
473
+ background: var(--app-flow-border);
474
+ margin: 0 0.25rem;
475
+ }
476
+ @media (max-width: 640px) {
477
+ .flow-step-label {
478
+ display: none;
479
+ }
480
+ }
481
+
482
+ /* ── Reduced motion ──────────────────────────────────────────────── */
483
+
484
+ /* Spinners keep turning — a frozen ring reads as "stuck", not "loading" — but
485
+ slow enough to stop being a vestibular trigger. Everything else drops. */
486
+ @media (prefers-reduced-motion: reduce) {
487
+ .flow-btn,
488
+ .flow-input,
489
+ .flow-choice,
490
+ .flow-step-dot {
491
+ transition: none;
492
+ }
493
+ .flow-btn-spinner,
494
+ .flow-spinner {
495
+ animation-duration: 1.5s;
496
+ }
497
+ }