gbs-add-block 2.1.0 → 2.3.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/.gbs/skills/gbs-components/SKILL.md +190 -134
- package/.gbs/skills/gbs-components/references/install.md +25 -3
- package/.gbs/skills/gbs-components/references/styling.md +246 -207
- package/CHANGELOG.md +74 -0
- package/README.md +154 -23
- package/index.cjs +212 -3
- package/package.json +41 -10
- package/schema/passport-v1.schema.json +204 -0
- package/source/beta-components/accordion/passport.json +259 -0
- package/source/beta-components/accordion/styles.css +207 -208
- package/source/beta-components/alert/passport.json +250 -0
- package/source/beta-components/alert/styles.css +154 -155
- package/source/beta-components/avatar/passport.json +294 -0
- package/source/beta-components/avatar/styles.css +225 -226
- package/source/beta-components/badge/passport.json +332 -0
- package/source/beta-components/badge/styles.css +203 -204
- package/source/beta-components/breadcrumb/passport.json +243 -0
- package/source/beta-components/breadcrumb/styles.css +138 -140
- package/source/beta-components/button/passport.json +402 -0
- package/source/beta-components/button/passport.manual.json +31 -0
- package/source/beta-components/button/styles.css +232 -234
- package/source/beta-components/card/passport.json +337 -0
- package/source/beta-components/card/styles.css +230 -232
- package/source/beta-components/checkbox/passport.json +456 -0
- package/source/beta-components/checkbox/styles.css +211 -213
- package/source/beta-components/combobox/passport.json +456 -0
- package/source/beta-components/combobox/styles.css +419 -417
- package/source/beta-components/data-grid/agent/coerce.ts +368 -0
- package/source/beta-components/data-grid/agent/contract.ts +410 -0
- package/source/beta-components/data-grid/agent/dataset.ts +92 -0
- package/source/beta-components/data-grid/agent/engine.ts +470 -0
- package/source/beta-components/data-grid/agent/executors.ts +155 -0
- package/source/beta-components/data-grid/agent/index.ts +79 -0
- package/source/beta-components/data-grid/agent/intent.ts +324 -0
- package/source/beta-components/data-grid/agent/operations.ts +335 -0
- package/source/beta-components/data-grid/agent/validate.ts +630 -0
- package/source/beta-components/data-grid/agent/webmcp.ts +107 -0
- package/source/beta-components/data-grid/index.ts +14 -7
- package/source/beta-components/data-grid/passport.json +1051 -0
- package/source/beta-components/data-grid/passport.manual.json +255 -0
- package/source/beta-components/data-grid/react/AskGrid.tsx +164 -0
- package/source/beta-components/data-grid/react/DataGrid.tsx +39 -0
- package/source/beta-components/data-grid/styles.css +874 -716
- package/source/beta-components/date-picker/passport.json +407 -0
- package/source/beta-components/date-picker/styles.css +445 -446
- package/source/beta-components/dialog/passport.json +344 -0
- package/source/beta-components/dialog/styles.css +280 -279
- package/source/beta-components/file-uploader/passport.json +518 -0
- package/source/beta-components/file-uploader/styles.css +394 -396
- package/source/beta-components/input/passport.json +536 -0
- package/source/beta-components/input/styles.css +295 -297
- package/source/beta-components/menu/passport.json +322 -0
- package/source/beta-components/menu/styles.css +224 -223
- package/source/beta-components/modal/passport.json +289 -0
- package/source/beta-components/modal/styles.css +241 -240
- package/source/beta-components/number-input/passport.json +541 -0
- package/source/beta-components/number-input/styles.css +230 -231
- package/source/beta-components/popover/passport.json +238 -0
- package/source/beta-components/popover/styles.css +148 -147
- package/source/beta-components/progress/passport.json +270 -0
- package/source/beta-components/progress/styles.css +200 -201
- package/source/beta-components/radio-group/passport.json +477 -0
- package/source/beta-components/radio-group/styles.css +269 -270
- package/source/beta-components/shared/core/agent/adapter.ts +65 -0
- package/source/beta-components/shared/core/agent/history.ts +120 -0
- package/source/beta-components/shared/core/agent/index.ts +46 -0
- package/source/beta-components/shared/core/agent/numbers.ts +217 -0
- package/source/beta-components/shared/core/agent/schema.ts +180 -0
- package/source/beta-components/shared/core/agent/types.ts +169 -0
- package/source/beta-components/shared/core/agent/webmcp.ts +328 -0
- package/source/beta-components/shared/index.ts +9 -0
- package/source/beta-components/shared/react/GramproAIProvider.tsx +50 -0
- package/source/beta-components/shared/react/useAskAgent.ts +217 -0
- package/source/beta-components/shared/styles.css +79 -0
- package/source/beta-components/shared/version.json +4 -4
- package/source/beta-components/shared/version.ts +6 -6
- package/source/beta-components/skeleton/passport.json +251 -0
- package/source/beta-components/skeleton/styles.css +185 -187
- package/source/beta-components/spinner/passport.json +245 -0
- package/source/beta-components/spinner/styles.css +173 -174
- package/source/beta-components/switch/passport.json +421 -0
- package/source/beta-components/switch/styles.css +227 -229
- package/source/beta-components/tabs/passport.json +315 -0
- package/source/beta-components/tabs/styles.css +263 -264
- package/source/beta-components/textarea/passport.json +382 -0
- package/source/beta-components/textarea/styles.css +158 -160
- package/source/beta-components/toaster/passport.json +221 -0
- package/source/beta-components/toaster/styles.css +282 -282
- package/source/beta-components/tooltip/passport.json +170 -0
- package/source/beta-components/tooltip/styles.css +71 -73
- package/tools/env.cjs +61 -0
- package/tools/passport/cli.cjs +79 -0
- package/tools/passport/extract.cjs +493 -0
- package/tools/passport/index.cjs +185 -0
- package/tools/passport/merge.cjs +131 -0
- package/tools/passport/policy.cjs +65 -0
- package/tools/passport/validate.cjs +277 -0
- package/tools/ts-require.cjs +79 -0
- package/source/beta-components/accordion/__tests__/core.test.ts +0 -58
- package/source/beta-components/alert/__tests__/core.test.ts +0 -17
- package/source/beta-components/avatar/__tests__/core.test.ts +0 -88
- package/source/beta-components/badge/__tests__/core.test.ts +0 -46
- package/source/beta-components/breadcrumb/__tests__/core.test.ts +0 -58
- package/source/beta-components/button/__tests__/core.test.ts +0 -31
- package/source/beta-components/card/__tests__/core.test.ts +0 -57
- package/source/beta-components/checkbox/__tests__/core.test.ts +0 -40
- package/source/beta-components/combobox/__tests__/core.test.ts +0 -134
- package/source/beta-components/data-grid/__tests__/core.test.ts +0 -356
- package/source/beta-components/data-grid/__tests__/export.test.ts +0 -70
- package/source/beta-components/data-grid/__tests__/pdf.test.ts +0 -209
- package/source/beta-components/date-picker/__tests__/core.test.ts +0 -273
- package/source/beta-components/dialog/__tests__/core.test.ts +0 -86
- package/source/beta-components/file-uploader/__tests__/core.test.ts +0 -395
- package/source/beta-components/input/__tests__/core.test.ts +0 -75
- package/source/beta-components/menu/__tests__/core.test.ts +0 -120
- package/source/beta-components/modal/__tests__/core.test.ts +0 -55
- package/source/beta-components/number-input/__tests__/core.test.ts +0 -151
- package/source/beta-components/progress/__tests__/core.test.ts +0 -56
- package/source/beta-components/radio-group/__tests__/core.test.ts +0 -64
- package/source/beta-components/shared/__tests__/boundaries.test.ts +0 -95
- package/source/beta-components/shared/__tests__/core.test.ts +0 -55
- package/source/beta-components/shared/__tests__/position.test.ts +0 -143
- package/source/beta-components/skeleton/__tests__/core.test.ts +0 -41
- package/source/beta-components/spinner/__tests__/core.test.ts +0 -48
- package/source/beta-components/switch/__tests__/core.test.ts +0 -64
- package/source/beta-components/tabs/__tests__/core.test.ts +0 -51
- package/source/beta-components/textarea/__tests__/core.test.ts +0 -38
- package/source/beta-components/toaster/__tests__/core.test.ts +0 -256
- package/source/beta-components/tooltip/__tests__/core.test.ts +0 -42
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
{
|
|
2
|
+
"passportVersion": "1.0.0",
|
|
3
|
+
"identity": {
|
|
4
|
+
"component": "Popover",
|
|
5
|
+
"folder": "popover",
|
|
6
|
+
"exports": [
|
|
7
|
+
"Popover"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"source": {
|
|
11
|
+
"libraryVersion": "2.3.0",
|
|
12
|
+
"files": [
|
|
13
|
+
"core/index.ts",
|
|
14
|
+
"core/types.ts",
|
|
15
|
+
"index.ts",
|
|
16
|
+
"react/Popover.tsx",
|
|
17
|
+
"react/locale.ts",
|
|
18
|
+
"react/props.ts"
|
|
19
|
+
],
|
|
20
|
+
"sourceHash": "sha256:1d654ca03fa59b72acd7820668095bf86052efaf96480f3d8c5981a03a55891e"
|
|
21
|
+
},
|
|
22
|
+
"props": [
|
|
23
|
+
{
|
|
24
|
+
"name": "align",
|
|
25
|
+
"type": "enum",
|
|
26
|
+
"values": [
|
|
27
|
+
"end",
|
|
28
|
+
"start"
|
|
29
|
+
],
|
|
30
|
+
"typeText": "PopoverAlign | undefined",
|
|
31
|
+
"required": false,
|
|
32
|
+
"default": "start",
|
|
33
|
+
"origin": "derived",
|
|
34
|
+
"description": "Default `start`.",
|
|
35
|
+
"descriptionOrigin": "jsdoc"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "aria-label",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"typeText": "string | undefined",
|
|
41
|
+
"required": false,
|
|
42
|
+
"origin": "derived",
|
|
43
|
+
"description": "Names the panel when there is no `title`.",
|
|
44
|
+
"descriptionOrigin": "jsdoc"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "autoFocus",
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"typeText": "boolean | undefined",
|
|
50
|
+
"required": false,
|
|
51
|
+
"default": true,
|
|
52
|
+
"origin": "derived",
|
|
53
|
+
"description": "Move focus into the panel when it opens. Default true.",
|
|
54
|
+
"descriptionOrigin": "jsdoc"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "children",
|
|
58
|
+
"type": "other",
|
|
59
|
+
"typeText": "ReactNode | ((props: PopoverRenderProps) => ReactNode)",
|
|
60
|
+
"required": false,
|
|
61
|
+
"origin": "derived"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "className",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"typeText": "string | undefined",
|
|
67
|
+
"required": false,
|
|
68
|
+
"origin": "derived"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "classNames",
|
|
72
|
+
"type": "other",
|
|
73
|
+
"typeText": "Partial<Record<PopoverSlot, string>> | undefined",
|
|
74
|
+
"required": false,
|
|
75
|
+
"origin": "derived"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "defaultOpen",
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"typeText": "boolean | undefined",
|
|
81
|
+
"required": false,
|
|
82
|
+
"default": false,
|
|
83
|
+
"origin": "derived"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "description",
|
|
87
|
+
"type": "other",
|
|
88
|
+
"typeText": "ReactNode",
|
|
89
|
+
"required": false,
|
|
90
|
+
"origin": "derived"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "gap",
|
|
94
|
+
"type": "number",
|
|
95
|
+
"typeText": "number | undefined",
|
|
96
|
+
"required": false,
|
|
97
|
+
"default": 6,
|
|
98
|
+
"origin": "derived",
|
|
99
|
+
"description": "Distance from the trigger, in pixels. Default 6.",
|
|
100
|
+
"descriptionOrigin": "jsdoc"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "id",
|
|
104
|
+
"type": "string",
|
|
105
|
+
"typeText": "string | undefined",
|
|
106
|
+
"required": false,
|
|
107
|
+
"origin": "derived"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "localeText",
|
|
111
|
+
"type": "other",
|
|
112
|
+
"typeText": "Partial<PopoverLocaleText> | undefined",
|
|
113
|
+
"required": false,
|
|
114
|
+
"origin": "derived"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "onOpenChange",
|
|
118
|
+
"type": "function",
|
|
119
|
+
"signature": "((open: boolean, reason?: PopoverCloseReason) => void) | undefined",
|
|
120
|
+
"required": false,
|
|
121
|
+
"origin": "derived"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "open",
|
|
125
|
+
"type": "boolean",
|
|
126
|
+
"typeText": "boolean | undefined",
|
|
127
|
+
"required": false,
|
|
128
|
+
"origin": "derived"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "ref",
|
|
132
|
+
"type": "other",
|
|
133
|
+
"typeText": "Ref<PopoverHandle> | undefined",
|
|
134
|
+
"required": false,
|
|
135
|
+
"origin": "derived"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "scrollable",
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"typeText": "boolean | undefined",
|
|
141
|
+
"required": false,
|
|
142
|
+
"default": false,
|
|
143
|
+
"origin": "derived",
|
|
144
|
+
"description": "Cap the panel to the space available and let it scroll. Default false.",
|
|
145
|
+
"descriptionOrigin": "jsdoc"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "side",
|
|
149
|
+
"type": "enum",
|
|
150
|
+
"values": [
|
|
151
|
+
"bottom",
|
|
152
|
+
"left",
|
|
153
|
+
"right",
|
|
154
|
+
"top"
|
|
155
|
+
],
|
|
156
|
+
"typeText": "PopoverSide | undefined",
|
|
157
|
+
"required": false,
|
|
158
|
+
"default": "bottom",
|
|
159
|
+
"origin": "derived",
|
|
160
|
+
"description": "Side of the trigger to open on, before flipping for space. Default `bottom`.",
|
|
161
|
+
"descriptionOrigin": "jsdoc"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "style",
|
|
165
|
+
"type": "other",
|
|
166
|
+
"typeText": "CSSProperties | undefined",
|
|
167
|
+
"required": false,
|
|
168
|
+
"origin": "derived"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "title",
|
|
172
|
+
"type": "other",
|
|
173
|
+
"typeText": "ReactNode",
|
|
174
|
+
"required": false,
|
|
175
|
+
"origin": "derived",
|
|
176
|
+
"description": "Heading inside the panel, which also names it.",
|
|
177
|
+
"descriptionOrigin": "jsdoc"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "trigger",
|
|
181
|
+
"type": "other",
|
|
182
|
+
"typeText": "ReactElement<{ [attribute: string]: unknown; ref?: Ref<HTMLElement>; }, string | import(\"react\").JSXElementConstructor<any>>",
|
|
183
|
+
"required": true,
|
|
184
|
+
"origin": "derived",
|
|
185
|
+
"description": "The element that opens it. It is cloned with a ref and the ARIA attributes\r\nthat tie it to the panel, so pass a single element that forwards both — any\r\nbutton in this library does.",
|
|
186
|
+
"descriptionOrigin": "jsdoc"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"events": [
|
|
190
|
+
{
|
|
191
|
+
"name": "onOpenChange",
|
|
192
|
+
"signature": "((open: boolean, reason?: PopoverCloseReason) => void) | undefined"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"slots": [
|
|
196
|
+
"root",
|
|
197
|
+
"panel",
|
|
198
|
+
"header",
|
|
199
|
+
"title",
|
|
200
|
+
"description",
|
|
201
|
+
"body",
|
|
202
|
+
"arrow"
|
|
203
|
+
],
|
|
204
|
+
"states": [
|
|
205
|
+
{
|
|
206
|
+
"attr": "data-side",
|
|
207
|
+
"values": [
|
|
208
|
+
"left",
|
|
209
|
+
"right",
|
|
210
|
+
"top"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"attr": "data-theme",
|
|
215
|
+
"values": [
|
|
216
|
+
"dark",
|
|
217
|
+
"light"
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"accessibility": {
|
|
222
|
+
"supplied": [],
|
|
223
|
+
"required": []
|
|
224
|
+
},
|
|
225
|
+
"composition": {},
|
|
226
|
+
"operations": {},
|
|
227
|
+
"intentDomains": [],
|
|
228
|
+
"safeMutations": {},
|
|
229
|
+
"examples": [],
|
|
230
|
+
"coverage": {
|
|
231
|
+
"propsTotal": 19,
|
|
232
|
+
"propsDescribed": 8,
|
|
233
|
+
"describedPct": 42,
|
|
234
|
+
"authoredSections": [
|
|
235
|
+
"accessibility"
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
}
|
|
@@ -1,147 +1,148 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Popover styles.
|
|
3
|
-
*
|
|
4
|
-
* Tokens read the shared --gbs-* variables when they are set on an ancestor
|
|
5
|
-
* (set them on :root to theme every component at once) and fall back to the
|
|
6
|
-
* same default palette otherwise. Rules
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* Popover styles.
|
|
3
|
+
*
|
|
4
|
+
* Tokens read the shared --gbs-* variables when they are set on an ancestor
|
|
5
|
+
* (set them on :root to theme every component at once) and fall back to the
|
|
6
|
+
* same default palette otherwise. Rules are unlayered: they beat a framework
|
|
7
|
+
* reset on specificity, and lose to anything you pass through `className`.
|
|
8
|
+
* With Tailwind v4, import this file after the framework and inside its
|
|
9
|
+
* components layer - see the README.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
.pv-root {
|
|
13
|
+
--pv-bg: var(--gbs-bg, var(--dg-bg, light-dark(#ffffff, #0b0b0e)));
|
|
14
|
+
--pv-fg: var(--gbs-fg, var(--dg-fg, light-dark(#18181b, #f4f4f5)));
|
|
15
|
+
--pv-muted: var(--gbs-muted, var(--dg-muted, light-dark(#71717a, #a1a1aa)));
|
|
16
|
+
--pv-border: var(--gbs-border, var(--dg-border, light-dark(#e4e4e7, #27272a)));
|
|
17
|
+
--pv-focus: var(--gbs-focus, var(--dg-focus, light-dark(#2563eb, #60a5fa)));
|
|
18
|
+
--pv-shadow: var(--gbs-shadow, var(--dg-shadow, 0 10px 30px -8px light-dark(rgb(0 0 0 / 0.18), rgb(0 0 0 / 0.6))));
|
|
19
|
+
--pv-radius: var(--gbs-radius, var(--dg-radius, 8px));
|
|
20
|
+
--pv-font-size: var(--gbs-font-size, var(--dg-font-size, 13px));
|
|
21
|
+
--pv-px: 12px;
|
|
22
|
+
--pv-width: 280px;
|
|
23
|
+
--pv-duration: 140ms;
|
|
24
|
+
|
|
25
|
+
position: fixed;
|
|
26
|
+
inset: auto;
|
|
27
|
+
z-index: 60;
|
|
28
|
+
width: max-content;
|
|
29
|
+
max-width: min(var(--pv-width), calc(100vw - 16px));
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding: 0;
|
|
32
|
+
overflow: auto;
|
|
33
|
+
overscroll-behavior: contain;
|
|
34
|
+
border: 1px solid var(--pv-border);
|
|
35
|
+
border-radius: var(--pv-radius);
|
|
36
|
+
background: var(--pv-bg);
|
|
37
|
+
color: var(--pv-fg);
|
|
38
|
+
box-shadow: var(--pv-shadow);
|
|
39
|
+
color-scheme: inherit;
|
|
40
|
+
font-size: var(--pv-font-size);
|
|
41
|
+
line-height: 1.5;
|
|
42
|
+
scrollbar-width: var(--gbs-scrollbar-width, thin);
|
|
43
|
+
scrollbar-color: var(--gbs-scrollbar-thumb, light-dark(#c4c4ca, #3f3f46))
|
|
44
|
+
var(--gbs-scrollbar-track, transparent);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where(.dark, [data-theme="dark"]) .pv-root {
|
|
48
|
+
color-scheme: dark;
|
|
49
|
+
}
|
|
50
|
+
:where(.light, [data-theme="light"]) .pv-root {
|
|
51
|
+
color-scheme: light;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:where(.pv-root) *,
|
|
55
|
+
:where(.pv-root) *::before,
|
|
56
|
+
:where(.pv-root) *::after {
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* The panel is focused when it opens, which should not draw a ring unless
|
|
61
|
+
the person is actually navigating by keyboard. */
|
|
62
|
+
.pv-root:focus {
|
|
63
|
+
outline: none;
|
|
64
|
+
}
|
|
65
|
+
.pv-root:focus-visible {
|
|
66
|
+
outline: 2px solid var(--pv-focus);
|
|
67
|
+
outline-offset: 2px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.pv-root:popover-open {
|
|
71
|
+
animation: pv-in var(--pv-duration) ease;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Grows from the edge it is anchored to, so it reads as coming from the
|
|
75
|
+
trigger rather than appearing from nowhere. */
|
|
76
|
+
@keyframes pv-in {
|
|
77
|
+
from {
|
|
78
|
+
opacity: 0;
|
|
79
|
+
translate: 0 -2px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.pv-root[data-side="top"]:popover-open {
|
|
83
|
+
animation-name: pv-in-top;
|
|
84
|
+
}
|
|
85
|
+
@keyframes pv-in-top {
|
|
86
|
+
from {
|
|
87
|
+
opacity: 0;
|
|
88
|
+
translate: 0 2px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.pv-root[data-side="left"]:popover-open {
|
|
92
|
+
animation-name: pv-in-left;
|
|
93
|
+
}
|
|
94
|
+
@keyframes pv-in-left {
|
|
95
|
+
from {
|
|
96
|
+
opacity: 0;
|
|
97
|
+
translate: 2px 0;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
.pv-root[data-side="right"]:popover-open {
|
|
101
|
+
animation-name: pv-in-right;
|
|
102
|
+
}
|
|
103
|
+
@keyframes pv-in-right {
|
|
104
|
+
from {
|
|
105
|
+
opacity: 0;
|
|
106
|
+
translate: -2px 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* -------------------------------------------------------------- content */
|
|
111
|
+
|
|
112
|
+
.pv-panel {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
gap: 8px;
|
|
116
|
+
padding: var(--pv-px);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.pv-header {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
gap: 2px;
|
|
123
|
+
}
|
|
124
|
+
.pv-title {
|
|
125
|
+
margin: 0;
|
|
126
|
+
font-size: 1.02em;
|
|
127
|
+
font-weight: 600;
|
|
128
|
+
}
|
|
129
|
+
.pv-description {
|
|
130
|
+
margin: 0;
|
|
131
|
+
color: var(--pv-muted);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.pv-body:empty {
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@media (prefers-reduced-motion: reduce) {
|
|
139
|
+
.pv-root:popover-open {
|
|
140
|
+
animation: none;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@media (forced-colors: active) {
|
|
145
|
+
.pv-root {
|
|
146
|
+
border: 1px solid CanvasText;
|
|
147
|
+
}
|
|
148
|
+
}
|