@fairfox/polly 0.70.0 → 0.72.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.
- package/dist/src/client/index.js +2 -2
- package/dist/src/client/index.js.map +2 -2
- package/dist/src/mesh.js +407 -156
- package/dist/src/mesh.js.map +9 -8
- package/dist/src/peer.js +92 -5
- package/dist/src/peer.js.map +4 -4
- package/dist/src/polly-ui/ActionInput.d.ts +10 -1
- package/dist/src/polly-ui/ActionSelect.d.ts +35 -0
- package/dist/src/polly-ui/Cluster.d.ts +35 -0
- package/dist/src/polly-ui/Code.d.ts +17 -0
- package/dist/src/polly-ui/Text.d.ts +31 -0
- package/dist/src/polly-ui/index.css +278 -185
- package/dist/src/polly-ui/index.d.ts +5 -1
- package/dist/src/polly-ui/index.js +480 -284
- package/dist/src/polly-ui/index.js.map +11 -6
- package/dist/src/polly-ui/internal/dispatch-action.d.ts +13 -0
- package/dist/src/polly-ui/markdown.js +3 -3
- package/dist/src/polly-ui/markdown.js.map +2 -2
- package/dist/src/polly-ui/styles.css +288 -185
- package/dist/src/shared/lib/mesh-client.d.ts +29 -0
- package/dist/src/shared/lib/mesh-diagnostics.d.ts +31 -0
- package/dist/src/shared/lib/mesh-network-adapter.d.ts +91 -0
- package/dist/src/shared/lib/revocation-summary.d.ts +54 -0
- package/dist/tools/quality/src/cli.js +6 -2
- package/dist/tools/quality/src/cli.js.map +3 -3
- package/dist/tools/quality/src/index.js +6 -2
- package/dist/tools/quality/src/index.js.map +3 -3
- package/dist/tools/test/src/browser/run.js +75 -44
- package/dist/tools/test/src/browser/run.js.map +3 -3
- package/dist/tools/test/src/e2e-mesh/index.d.ts +1 -1
- package/dist/tools/test/src/e2e-mesh/index.js +95 -1
- package/dist/tools/test/src/e2e-mesh/index.js.map +4 -4
- package/dist/tools/test/src/e2e-mesh/launch-peer.d.ts +29 -1
- package/dist/tools/test/src/visual/index.js +24 -24
- package/dist/tools/test/src/visual/index.js.map +2 -2
- package/dist/tools/verify/src/cli.js +82 -51
- package/dist/tools/verify/src/cli.js.map +7 -6
- package/package.json +2 -2
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cluster — wrapping row of variable-width items.
|
|
3
|
+
*
|
|
4
|
+
* The flex-wrap counterpart to <Layout>. Where Layout owns CSS grid
|
|
5
|
+
* tracks, Cluster owns a row of items that differ in width and must
|
|
6
|
+
* reflow as space runs out — filter chips, tag and badge lists, groups
|
|
7
|
+
* of small buttons. Items keep even spacing on both axes via `gap`; the
|
|
8
|
+
* row wraps automatically at narrow widths. Like Layout, props map to
|
|
9
|
+
* CSS custom properties so consumers can override any of them in a
|
|
10
|
+
* media query without touching specificity.
|
|
11
|
+
*
|
|
12
|
+
* This is the second (and final) layout primitive: a consumer never
|
|
13
|
+
* writes `display: flex` or `display: grid` themselves — grid goes
|
|
14
|
+
* through <Layout>, a wrapping cluster goes through <Cluster>.
|
|
15
|
+
*/
|
|
16
|
+
import { type ComponentChildren, type JSX } from "preact";
|
|
17
|
+
export type ClusterProps = {
|
|
18
|
+
children: ComponentChildren;
|
|
19
|
+
/** Polymorphic element (div, nav, ul, …). Defaults to 'div'. */
|
|
20
|
+
as?: keyof JSX.IntrinsicElements;
|
|
21
|
+
/** Space between items, both axes. Typically a `--polly-space-*` token. */
|
|
22
|
+
gap?: string;
|
|
23
|
+
padding?: string;
|
|
24
|
+
/** Main-axis distribution — maps to justify-content. Default: start. */
|
|
25
|
+
justify?: string;
|
|
26
|
+
/** Cross-axis alignment within a wrapped row — maps to align-items. Default: center. */
|
|
27
|
+
align?: string;
|
|
28
|
+
/** Render as inline-flex so the cluster flows inline with surrounding text. */
|
|
29
|
+
inline?: boolean;
|
|
30
|
+
className?: string;
|
|
31
|
+
id?: string;
|
|
32
|
+
role?: JSX.AriaRole;
|
|
33
|
+
"aria-label"?: string;
|
|
34
|
+
};
|
|
35
|
+
export declare function Cluster(props: ClusterProps): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code — inline monospace code span.
|
|
3
|
+
*
|
|
4
|
+
* Renders a `<code>` with the `--polly-font-mono` stack, a faint sunken
|
|
5
|
+
* tint, and snug padding so a consumer never hand-rolls a `.mono` class
|
|
6
|
+
* for inline code, identifiers, or keyboard hints. For multi-line code
|
|
7
|
+
* blocks, pass `block`, which switches to a pre-wrapped <pre><code>.
|
|
8
|
+
*/
|
|
9
|
+
import type { ComponentChildren, JSX } from "preact";
|
|
10
|
+
export type CodeProps = {
|
|
11
|
+
children: ComponentChildren;
|
|
12
|
+
/** Render as a block (<pre><code>) instead of an inline span. */
|
|
13
|
+
block?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
id?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function Code(props: CodeProps): JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text — typographic primitive for secondary and sized copy.
|
|
3
|
+
*
|
|
4
|
+
* Renders subtitles, captions, field labels, and empty-state copy
|
|
5
|
+
* without the consumer reaching for a `style` attribute or a hand-rolled
|
|
6
|
+
* `.muted` class. `tone` and `size` map to the semantic `--polly-text-*`
|
|
7
|
+
* token family; `as` keeps the element polymorphic so the same
|
|
8
|
+
* primitive backs a <span>, <p>, <label>, or <figcaption>. A no-prop
|
|
9
|
+
* <Text> is an ordinary <span> at body size and default colour.
|
|
10
|
+
*/
|
|
11
|
+
import { type ComponentChildren, type JSX } from "preact";
|
|
12
|
+
export type TextTone = "default" | "muted";
|
|
13
|
+
export type TextSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
14
|
+
export type TextWeight = "normal" | "medium" | "bold";
|
|
15
|
+
export type TextProps = {
|
|
16
|
+
children: ComponentChildren;
|
|
17
|
+
/** Polymorphic element (span, p, label, figcaption, …). Defaults to 'span'. */
|
|
18
|
+
as?: keyof JSX.IntrinsicElements;
|
|
19
|
+
/** Colour role. 'muted' renders de-emphasised secondary text. Default: 'default'. */
|
|
20
|
+
tone?: TextTone;
|
|
21
|
+
/** Token-backed font size. Default: inherit from context. */
|
|
22
|
+
size?: TextSize;
|
|
23
|
+
/** Token-backed font weight. Default: inherit from context. */
|
|
24
|
+
weight?: TextWeight;
|
|
25
|
+
className?: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
/** Forwarded so <Text as="label"> can point at a control. */
|
|
28
|
+
htmlFor?: string;
|
|
29
|
+
"aria-hidden"?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare function Text(props: TextProps): JSX.Element;
|
|
@@ -55,6 +55,191 @@
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
/* src/polly-ui/Dropdown.module.css */
|
|
59
|
+
@layer polly-components {
|
|
60
|
+
.dropdown_HX48zA {
|
|
61
|
+
position: relative;
|
|
62
|
+
display: inline-block;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.trigger_HX48zA {
|
|
66
|
+
display: inline-block;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.menu_HX48zA {
|
|
70
|
+
position: absolute;
|
|
71
|
+
inset: unset;
|
|
72
|
+
z-index: var(--polly-z-raised);
|
|
73
|
+
margin: var(--polly-space-xs) 0 0;
|
|
74
|
+
padding: var(--polly-space-xs) 0;
|
|
75
|
+
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
76
|
+
border-radius: var(--polly-radius-md);
|
|
77
|
+
background-color: var(--polly-surface);
|
|
78
|
+
box-shadow: var(--polly-shadow-md);
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
overflow-y: auto;
|
|
81
|
+
min-width: 160px;
|
|
82
|
+
max-height: 280px;
|
|
83
|
+
top: 100%;
|
|
84
|
+
left: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.alignRight_HX48zA {
|
|
88
|
+
left: auto;
|
|
89
|
+
right: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* src/polly-ui/Layout.module.css */
|
|
94
|
+
@layer polly-components {
|
|
95
|
+
.layout_QgwWPg {
|
|
96
|
+
--l-cols: none;
|
|
97
|
+
--l-rows: none;
|
|
98
|
+
--l-gap: 0;
|
|
99
|
+
--l-p: 0;
|
|
100
|
+
--l-h: auto;
|
|
101
|
+
--l-mh: auto;
|
|
102
|
+
--l-mis: none;
|
|
103
|
+
--l-ji: stretch;
|
|
104
|
+
--l-ai: start;
|
|
105
|
+
--l-jc: normal;
|
|
106
|
+
--l-ac: normal;
|
|
107
|
+
--l-js: auto;
|
|
108
|
+
--l-as: auto;
|
|
109
|
+
--l-flow: row;
|
|
110
|
+
--l-arows: auto;
|
|
111
|
+
--l-acols: auto;
|
|
112
|
+
--l-col: auto;
|
|
113
|
+
display: grid;
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
max-inline-size: var(--l-mis);
|
|
116
|
+
grid-template-columns: var(--l-cols);
|
|
117
|
+
grid-template-rows: var(--l-rows);
|
|
118
|
+
gap: var(--l-gap);
|
|
119
|
+
padding: var(--l-p);
|
|
120
|
+
height: var(--l-h);
|
|
121
|
+
min-height: var(--l-mh);
|
|
122
|
+
justify-items: var(--l-ji);
|
|
123
|
+
align-items: var(--l-ai);
|
|
124
|
+
justify-content: var(--l-jc);
|
|
125
|
+
align-content: var(--l-ac);
|
|
126
|
+
justify-self: var(--l-js);
|
|
127
|
+
align-self: var(--l-as);
|
|
128
|
+
grid-auto-flow: var(--l-flow);
|
|
129
|
+
grid-auto-rows: var(--l-arows);
|
|
130
|
+
grid-auto-columns: var(--l-acols);
|
|
131
|
+
grid-column: var(--l-col);
|
|
132
|
+
inline-size: 100%;
|
|
133
|
+
margin-inline-start: auto;
|
|
134
|
+
margin-inline-end: auto;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.inline_QgwWPg {
|
|
138
|
+
display: inline-grid;
|
|
139
|
+
inline-size: auto;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@media (max-width: 640px) {
|
|
143
|
+
.stackOnMobile_QgwWPg {
|
|
144
|
+
grid-template-columns: 1fr;
|
|
145
|
+
grid-auto-flow: row;
|
|
146
|
+
grid-column: auto;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* src/polly-ui/Select.module.css */
|
|
152
|
+
@layer polly-components {
|
|
153
|
+
.select_daofbw {
|
|
154
|
+
display: inline-block;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.label_daofbw {
|
|
158
|
+
display: block;
|
|
159
|
+
margin-bottom: var(--polly-space-xs);
|
|
160
|
+
font-size: var(--polly-text-sm);
|
|
161
|
+
font-weight: var(--polly-weight-medium);
|
|
162
|
+
color: var(--polly-text-muted);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.trigger_daofbw {
|
|
166
|
+
display: inline-block;
|
|
167
|
+
padding: var(--polly-space-sm) var(--polly-space-md);
|
|
168
|
+
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
169
|
+
border-radius: var(--polly-radius-sm);
|
|
170
|
+
background-color: var(--polly-surface);
|
|
171
|
+
font-family: inherit;
|
|
172
|
+
font-size: var(--polly-text-md);
|
|
173
|
+
color: var(--polly-text);
|
|
174
|
+
text-align: left;
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
white-space: nowrap;
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
text-overflow: ellipsis;
|
|
179
|
+
min-width: 140px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.trigger_daofbw:disabled {
|
|
183
|
+
opacity: var(--polly-opacity-disabled);
|
|
184
|
+
cursor: not-allowed;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.placeholder_daofbw {
|
|
188
|
+
color: var(--polly-text-muted);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.actions_daofbw {
|
|
192
|
+
padding: var(--polly-space-xs) var(--polly-space-sm);
|
|
193
|
+
border-bottom: var(--polly-border-width-default) solid var(--polly-border);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.actionBtn_daofbw {
|
|
197
|
+
display: inline-block;
|
|
198
|
+
padding: var(--polly-space-xs) var(--polly-space-sm);
|
|
199
|
+
border-radius: var(--polly-radius-sm);
|
|
200
|
+
font-family: inherit;
|
|
201
|
+
font-size: var(--polly-text-xs);
|
|
202
|
+
color: var(--polly-accent);
|
|
203
|
+
cursor: pointer;
|
|
204
|
+
text-align: center;
|
|
205
|
+
background: none;
|
|
206
|
+
border: none;
|
|
207
|
+
width: 100%;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.actionBtn_daofbw:hover {
|
|
211
|
+
background-color: var(--polly-surface-sunken);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.option_daofbw {
|
|
215
|
+
display: block;
|
|
216
|
+
padding: var(--polly-space-sm) var(--polly-space-md);
|
|
217
|
+
font-family: inherit;
|
|
218
|
+
font-size: var(--polly-text-sm);
|
|
219
|
+
color: var(--polly-text);
|
|
220
|
+
text-align: left;
|
|
221
|
+
cursor: pointer;
|
|
222
|
+
background: none;
|
|
223
|
+
border: none;
|
|
224
|
+
width: 100%;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.option_daofbw:hover {
|
|
228
|
+
background-color: var(--polly-surface-sunken);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.optionSelected_daofbw {
|
|
232
|
+
background-color: color-mix(in srgb, var(--polly-accent) 8%, var(--polly-surface));
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.optionCheck_daofbw {
|
|
236
|
+
accent-color: var(--polly-accent);
|
|
237
|
+
margin-right: var(--polly-space-sm);
|
|
238
|
+
vertical-align: middle;
|
|
239
|
+
pointer-events: none;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
58
243
|
/* src/polly-ui/Badge.module.css */
|
|
59
244
|
@layer polly-components {
|
|
60
245
|
.badge_cZd0Aw {
|
|
@@ -203,64 +388,6 @@
|
|
|
203
388
|
}
|
|
204
389
|
}
|
|
205
390
|
|
|
206
|
-
/* src/polly-ui/Layout.module.css */
|
|
207
|
-
@layer polly-components {
|
|
208
|
-
.layout_QgwWPg {
|
|
209
|
-
--l-cols: none;
|
|
210
|
-
--l-rows: none;
|
|
211
|
-
--l-gap: 0;
|
|
212
|
-
--l-p: 0;
|
|
213
|
-
--l-h: auto;
|
|
214
|
-
--l-mh: auto;
|
|
215
|
-
--l-mis: none;
|
|
216
|
-
--l-ji: stretch;
|
|
217
|
-
--l-ai: start;
|
|
218
|
-
--l-jc: normal;
|
|
219
|
-
--l-ac: normal;
|
|
220
|
-
--l-js: auto;
|
|
221
|
-
--l-as: auto;
|
|
222
|
-
--l-flow: row;
|
|
223
|
-
--l-arows: auto;
|
|
224
|
-
--l-acols: auto;
|
|
225
|
-
--l-col: auto;
|
|
226
|
-
display: grid;
|
|
227
|
-
box-sizing: border-box;
|
|
228
|
-
max-inline-size: var(--l-mis);
|
|
229
|
-
grid-template-columns: var(--l-cols);
|
|
230
|
-
grid-template-rows: var(--l-rows);
|
|
231
|
-
gap: var(--l-gap);
|
|
232
|
-
padding: var(--l-p);
|
|
233
|
-
height: var(--l-h);
|
|
234
|
-
min-height: var(--l-mh);
|
|
235
|
-
justify-items: var(--l-ji);
|
|
236
|
-
align-items: var(--l-ai);
|
|
237
|
-
justify-content: var(--l-jc);
|
|
238
|
-
align-content: var(--l-ac);
|
|
239
|
-
justify-self: var(--l-js);
|
|
240
|
-
align-self: var(--l-as);
|
|
241
|
-
grid-auto-flow: var(--l-flow);
|
|
242
|
-
grid-auto-rows: var(--l-arows);
|
|
243
|
-
grid-auto-columns: var(--l-acols);
|
|
244
|
-
grid-column: var(--l-col);
|
|
245
|
-
inline-size: 100%;
|
|
246
|
-
margin-inline-start: auto;
|
|
247
|
-
margin-inline-end: auto;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.inline_QgwWPg {
|
|
251
|
-
display: inline-grid;
|
|
252
|
-
inline-size: auto;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
@media (max-width: 640px) {
|
|
256
|
-
.stackOnMobile_QgwWPg {
|
|
257
|
-
grid-template-columns: 1fr;
|
|
258
|
-
grid-auto-flow: row;
|
|
259
|
-
grid-column: auto;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
391
|
/* src/polly-ui/Surface.module.css */
|
|
265
392
|
@layer polly-components {
|
|
266
393
|
.surface_pQCFqA {
|
|
@@ -361,6 +488,55 @@
|
|
|
361
488
|
}
|
|
362
489
|
}
|
|
363
490
|
|
|
491
|
+
/* src/polly-ui/Cluster.module.css */
|
|
492
|
+
@layer polly-components {
|
|
493
|
+
.cluster_pNLz5g {
|
|
494
|
+
--c-gap: 0;
|
|
495
|
+
--c-p: 0;
|
|
496
|
+
--c-jc: flex-start;
|
|
497
|
+
--c-ai: center;
|
|
498
|
+
display: flex;
|
|
499
|
+
box-sizing: border-box;
|
|
500
|
+
gap: var(--c-gap);
|
|
501
|
+
padding: var(--c-p);
|
|
502
|
+
justify-content: var(--c-jc);
|
|
503
|
+
align-items: var(--c-ai);
|
|
504
|
+
flex-wrap: wrap;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.inline_pNLz5g {
|
|
508
|
+
display: inline-flex;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/* src/polly-ui/Code.module.css */
|
|
513
|
+
@layer polly-components {
|
|
514
|
+
.code_Vc8yiw {
|
|
515
|
+
font-family: var(--polly-font-mono);
|
|
516
|
+
font-size: var(--polly-text-sm);
|
|
517
|
+
padding: .1em var(--polly-space-xs);
|
|
518
|
+
border-radius: var(--polly-radius-sm);
|
|
519
|
+
background-color: var(--polly-surface-sunken);
|
|
520
|
+
color: var(--polly-text);
|
|
521
|
+
word-break: break-word;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.block_Vc8yiw {
|
|
525
|
+
padding: var(--polly-space-md);
|
|
526
|
+
border-radius: var(--polly-radius-md);
|
|
527
|
+
background-color: var(--polly-surface-sunken);
|
|
528
|
+
overflow-x: auto;
|
|
529
|
+
margin: 0;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.block_Vc8yiw code {
|
|
533
|
+
font-family: var(--polly-font-mono);
|
|
534
|
+
font-size: var(--polly-text-sm);
|
|
535
|
+
color: var(--polly-text);
|
|
536
|
+
white-space: pre;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
364
540
|
/* src/polly-ui/Collapsible.module.css */
|
|
365
541
|
@layer polly-components {
|
|
366
542
|
.collapsible_sEhnPw {
|
|
@@ -530,133 +706,6 @@
|
|
|
530
706
|
}
|
|
531
707
|
}
|
|
532
708
|
|
|
533
|
-
/* src/polly-ui/Dropdown.module.css */
|
|
534
|
-
@layer polly-components {
|
|
535
|
-
.dropdown_HX48zA {
|
|
536
|
-
position: relative;
|
|
537
|
-
display: inline-block;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
.trigger_HX48zA {
|
|
541
|
-
display: inline-block;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
.menu_HX48zA {
|
|
545
|
-
position: absolute;
|
|
546
|
-
inset: unset;
|
|
547
|
-
z-index: var(--polly-z-raised);
|
|
548
|
-
margin: var(--polly-space-xs) 0 0;
|
|
549
|
-
padding: var(--polly-space-xs) 0;
|
|
550
|
-
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
551
|
-
border-radius: var(--polly-radius-md);
|
|
552
|
-
background-color: var(--polly-surface);
|
|
553
|
-
box-shadow: var(--polly-shadow-md);
|
|
554
|
-
box-sizing: border-box;
|
|
555
|
-
overflow-y: auto;
|
|
556
|
-
min-width: 160px;
|
|
557
|
-
max-height: 280px;
|
|
558
|
-
top: 100%;
|
|
559
|
-
left: 0;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
.alignRight_HX48zA {
|
|
563
|
-
left: auto;
|
|
564
|
-
right: 0;
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
/* src/polly-ui/Select.module.css */
|
|
569
|
-
@layer polly-components {
|
|
570
|
-
.select_daofbw {
|
|
571
|
-
display: inline-block;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
.label_daofbw {
|
|
575
|
-
display: block;
|
|
576
|
-
margin-bottom: var(--polly-space-xs);
|
|
577
|
-
font-size: var(--polly-text-sm);
|
|
578
|
-
font-weight: var(--polly-weight-medium);
|
|
579
|
-
color: var(--polly-text-muted);
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
.trigger_daofbw {
|
|
583
|
-
display: inline-block;
|
|
584
|
-
padding: var(--polly-space-sm) var(--polly-space-md);
|
|
585
|
-
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
586
|
-
border-radius: var(--polly-radius-sm);
|
|
587
|
-
background-color: var(--polly-surface);
|
|
588
|
-
font-family: inherit;
|
|
589
|
-
font-size: var(--polly-text-md);
|
|
590
|
-
color: var(--polly-text);
|
|
591
|
-
text-align: left;
|
|
592
|
-
cursor: pointer;
|
|
593
|
-
white-space: nowrap;
|
|
594
|
-
overflow: hidden;
|
|
595
|
-
text-overflow: ellipsis;
|
|
596
|
-
min-width: 140px;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
.trigger_daofbw:disabled {
|
|
600
|
-
opacity: var(--polly-opacity-disabled);
|
|
601
|
-
cursor: not-allowed;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
.placeholder_daofbw {
|
|
605
|
-
color: var(--polly-text-muted);
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
.actions_daofbw {
|
|
609
|
-
padding: var(--polly-space-xs) var(--polly-space-sm);
|
|
610
|
-
border-bottom: var(--polly-border-width-default) solid var(--polly-border);
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
.actionBtn_daofbw {
|
|
614
|
-
display: inline-block;
|
|
615
|
-
padding: var(--polly-space-xs) var(--polly-space-sm);
|
|
616
|
-
border-radius: var(--polly-radius-sm);
|
|
617
|
-
font-family: inherit;
|
|
618
|
-
font-size: var(--polly-text-xs);
|
|
619
|
-
color: var(--polly-accent);
|
|
620
|
-
cursor: pointer;
|
|
621
|
-
text-align: center;
|
|
622
|
-
background: none;
|
|
623
|
-
border: none;
|
|
624
|
-
width: 100%;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
.actionBtn_daofbw:hover {
|
|
628
|
-
background-color: var(--polly-surface-sunken);
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
.option_daofbw {
|
|
632
|
-
display: block;
|
|
633
|
-
padding: var(--polly-space-sm) var(--polly-space-md);
|
|
634
|
-
font-family: inherit;
|
|
635
|
-
font-size: var(--polly-text-sm);
|
|
636
|
-
color: var(--polly-text);
|
|
637
|
-
text-align: left;
|
|
638
|
-
cursor: pointer;
|
|
639
|
-
background: none;
|
|
640
|
-
border: none;
|
|
641
|
-
width: 100%;
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
.option_daofbw:hover {
|
|
645
|
-
background-color: var(--polly-surface-sunken);
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
.optionSelected_daofbw {
|
|
649
|
-
background-color: color-mix(in srgb, var(--polly-accent) 8%, var(--polly-surface));
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
.optionCheck_daofbw {
|
|
653
|
-
accent-color: var(--polly-accent);
|
|
654
|
-
margin-right: var(--polly-space-sm);
|
|
655
|
-
vertical-align: middle;
|
|
656
|
-
pointer-events: none;
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
|
|
660
709
|
/* src/polly-ui/Skeleton.module.css */
|
|
661
710
|
@layer polly-components {
|
|
662
711
|
@keyframes pollyShimmer_gpBHJA {
|
|
@@ -736,6 +785,50 @@
|
|
|
736
785
|
}
|
|
737
786
|
}
|
|
738
787
|
|
|
788
|
+
/* src/polly-ui/Text.module.css */
|
|
789
|
+
@layer polly-components {
|
|
790
|
+
.text_75HKdQ {
|
|
791
|
+
color: var(--polly-text);
|
|
792
|
+
font-family: inherit;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.muted_75HKdQ {
|
|
796
|
+
color: var(--polly-text-muted);
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.xs_75HKdQ {
|
|
800
|
+
font-size: var(--polly-text-xs);
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
.sm_75HKdQ {
|
|
804
|
+
font-size: var(--polly-text-sm);
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.md_75HKdQ {
|
|
808
|
+
font-size: var(--polly-text-md);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.lg_75HKdQ {
|
|
812
|
+
font-size: var(--polly-text-lg);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.xl_75HKdQ {
|
|
816
|
+
font-size: var(--polly-text-xl);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.normal_75HKdQ {
|
|
820
|
+
font-weight: var(--polly-weight-normal);
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.medium_75HKdQ {
|
|
824
|
+
font-weight: var(--polly-weight-medium);
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
.bold_75HKdQ {
|
|
828
|
+
font-weight: var(--polly-weight-bold);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
|
|
739
832
|
/* src/polly-ui/TextInput.module.css */
|
|
740
833
|
@layer polly-components {
|
|
741
834
|
.input_ez4_Vg {
|
|
@@ -8,11 +8,14 @@
|
|
|
8
8
|
* the default look; redefine variables to re-theme.
|
|
9
9
|
*/
|
|
10
10
|
export { ActionForm, type ActionFormProps } from "./ActionForm.tsx";
|
|
11
|
-
export { ActionInput, type ActionInputProps, type ActionInputSaveOn, type ActionInputVariant, } from "./ActionInput.tsx";
|
|
11
|
+
export { ActionInput, type ActionInputProps, type ActionInputSaveOn, type ActionInputType, type ActionInputVariant, } from "./ActionInput.tsx";
|
|
12
|
+
export { ActionSelect, type ActionSelectProps } from "./ActionSelect.tsx";
|
|
12
13
|
export { Badge, type BadgeProps, type BadgeVariant } from "./Badge.tsx";
|
|
13
14
|
export { Button, type ButtonColor, type ButtonProps, type ButtonSize, type ButtonTier, } from "./Button.tsx";
|
|
14
15
|
export { Card, type CardProps, type CardSlotProps } from "./Card.tsx";
|
|
15
16
|
export { Checkbox, type CheckboxProps } from "./Checkbox.tsx";
|
|
17
|
+
export { Cluster, type ClusterProps } from "./Cluster.tsx";
|
|
18
|
+
export { Code, type CodeProps } from "./Code.tsx";
|
|
16
19
|
export { Collapsible, type CollapsibleProps } from "./Collapsible.tsx";
|
|
17
20
|
export { ConfirmDialog, type ConfirmOptions, confirm } from "./ConfirmDialog.tsx";
|
|
18
21
|
export { Dropdown, type DropdownProps } from "./Dropdown.tsx";
|
|
@@ -23,6 +26,7 @@ export { Select, type SelectOption, type SelectProps } from "./Select.tsx";
|
|
|
23
26
|
export { Skeleton, type SkeletonProps, type SkeletonVariant } from "./Skeleton.tsx";
|
|
24
27
|
export { Surface, type SurfaceProps, type SurfaceVariant } from "./Surface.tsx";
|
|
25
28
|
export { type Tab, Tabs, type TabsProps } from "./Tabs.tsx";
|
|
29
|
+
export { Text, type TextProps, type TextSize, type TextTone, type TextWeight, } from "./Text.tsx";
|
|
26
30
|
export { TextInput, type TextInputProps } from "./TextInput.tsx";
|
|
27
31
|
export { Toast, type ToastViewportProps } from "./Toast.tsx";
|
|
28
32
|
export { Toggle, type ToggleProps } from "./Toggle.tsx";
|