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
|
@@ -1,160 +1,158 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Textarea 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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* Textarea 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
|
+
.ta-root {
|
|
13
|
+
--ta-fg: var(--gbs-fg, var(--dg-fg, light-dark(#18181b, #f4f4f5)));
|
|
14
|
+
--ta-muted: var(--gbs-muted, var(--dg-muted, light-dark(#71717a, #a1a1aa)));
|
|
15
|
+
--ta-border: var(--gbs-border, var(--dg-border, light-dark(#e4e4e7, #27272a)));
|
|
16
|
+
--ta-input-bg: var(--gbs-input-bg, var(--dg-input-bg, light-dark(#ffffff, #121216)));
|
|
17
|
+
--ta-readonly-bg: var(--gbs-readonly-bg, light-dark(#fafafa, #0e0e12));
|
|
18
|
+
--ta-focus: var(--gbs-focus, var(--dg-focus, light-dark(#2563eb, #60a5fa)));
|
|
19
|
+
--ta-danger: var(--gbs-danger, var(--dg-danger, light-dark(#dc2626, #f87171)));
|
|
20
|
+
--ta-radius: var(--gbs-radius, var(--dg-radius, 8px));
|
|
21
|
+
--ta-font-size: var(--gbs-font-size, var(--dg-font-size, 13px));
|
|
22
|
+
--ta-px: 10px;
|
|
23
|
+
--ta-py: 8px;
|
|
24
|
+
|
|
25
|
+
color-scheme: inherit;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: 4px;
|
|
29
|
+
width: 100%;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
font-size: var(--ta-font-size);
|
|
32
|
+
line-height: 1.4;
|
|
33
|
+
color: var(--ta-fg);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where(.dark, [data-theme="dark"]) .ta-root {
|
|
37
|
+
color-scheme: dark;
|
|
38
|
+
}
|
|
39
|
+
:where(.light, [data-theme="light"]) .ta-root {
|
|
40
|
+
color-scheme: light;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:where(.ta-root) *,
|
|
44
|
+
:where(.ta-root) *::before,
|
|
45
|
+
:where(.ta-root) *::after {
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ta-root[data-size="sm"] {
|
|
50
|
+
--ta-font-size: 12px;
|
|
51
|
+
--ta-px: 8px;
|
|
52
|
+
--ta-py: 6px;
|
|
53
|
+
}
|
|
54
|
+
.ta-root[data-size="lg"] {
|
|
55
|
+
--ta-font-size: 14px;
|
|
56
|
+
--ta-px: 12px;
|
|
57
|
+
--ta-py: 10px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ta-label {
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
}
|
|
63
|
+
.ta-label[data-required]::after {
|
|
64
|
+
content: " *";
|
|
65
|
+
color: var(--ta-danger);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ta-input {
|
|
69
|
+
display: block;
|
|
70
|
+
width: 100%;
|
|
71
|
+
min-height: calc(1lh + 2 * var(--ta-py) + 2px);
|
|
72
|
+
margin: 0;
|
|
73
|
+
padding: var(--ta-py) var(--ta-px);
|
|
74
|
+
border: 1px solid var(--ta-border);
|
|
75
|
+
border-radius: var(--ta-radius);
|
|
76
|
+
background: var(--ta-input-bg);
|
|
77
|
+
color: inherit;
|
|
78
|
+
font: inherit;
|
|
79
|
+
line-height: 1.5;
|
|
80
|
+
}
|
|
81
|
+
.ta-input::placeholder {
|
|
82
|
+
color: var(--ta-muted);
|
|
83
|
+
}
|
|
84
|
+
.ta-input:hover:not(:disabled) {
|
|
85
|
+
border-color: color-mix(in oklab, var(--ta-border), var(--ta-fg) 25%);
|
|
86
|
+
}
|
|
87
|
+
.ta-input:focus-visible {
|
|
88
|
+
outline: 2px solid var(--ta-focus);
|
|
89
|
+
outline-offset: -1px;
|
|
90
|
+
}
|
|
91
|
+
.ta-input[data-invalid] {
|
|
92
|
+
border-color: var(--ta-danger);
|
|
93
|
+
outline-color: var(--ta-danger);
|
|
94
|
+
}
|
|
95
|
+
.ta-input:read-only {
|
|
96
|
+
background: var(--ta-readonly-bg);
|
|
97
|
+
}
|
|
98
|
+
.ta-input:disabled {
|
|
99
|
+
opacity: 0.55;
|
|
100
|
+
cursor: not-allowed;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.ta-input[data-resize="none"] {
|
|
104
|
+
resize: none;
|
|
105
|
+
}
|
|
106
|
+
.ta-input[data-resize="vertical"] {
|
|
107
|
+
resize: vertical;
|
|
108
|
+
}
|
|
109
|
+
.ta-input[data-resize="horizontal"] {
|
|
110
|
+
resize: horizontal;
|
|
111
|
+
}
|
|
112
|
+
.ta-input[data-resize="both"] {
|
|
113
|
+
resize: both;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/*
|
|
117
|
+
* Auto-resize in CSS where supported. The row limits come from the
|
|
118
|
+
* component; `--ta-max-rows: none` makes max-height invalid, which means no limit.
|
|
119
|
+
*/
|
|
120
|
+
@supports (field-sizing: content) {
|
|
121
|
+
.ta-input[data-autoresize] {
|
|
122
|
+
field-sizing: content;
|
|
123
|
+
min-height: calc(var(--ta-min-rows, 3) * 1lh + 2 * var(--ta-py) + 2px);
|
|
124
|
+
max-height: calc(var(--ta-max-rows) * 1lh + 2 * var(--ta-py) + 2px);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.ta-footer {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: baseline;
|
|
131
|
+
gap: 8px;
|
|
132
|
+
}
|
|
133
|
+
.ta-description {
|
|
134
|
+
flex: 1 1 auto;
|
|
135
|
+
min-width: 0;
|
|
136
|
+
color: var(--ta-muted);
|
|
137
|
+
font-size: 0.92em;
|
|
138
|
+
}
|
|
139
|
+
.ta-count {
|
|
140
|
+
flex: none;
|
|
141
|
+
margin-inline-start: auto;
|
|
142
|
+
color: var(--ta-muted);
|
|
143
|
+
font-size: 0.92em;
|
|
144
|
+
font-variant-numeric: tabular-nums;
|
|
145
|
+
}
|
|
146
|
+
.ta-count[data-over] {
|
|
147
|
+
color: var(--ta-danger);
|
|
148
|
+
}
|
|
149
|
+
.ta-error {
|
|
150
|
+
color: var(--ta-danger);
|
|
151
|
+
font-size: 0.92em;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@media (forced-colors: active) {
|
|
155
|
+
.ta-input:focus-visible {
|
|
156
|
+
outline-color: Highlight;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
{
|
|
2
|
+
"passportVersion": "1.0.0",
|
|
3
|
+
"identity": {
|
|
4
|
+
"component": "Toaster",
|
|
5
|
+
"folder": "toaster",
|
|
6
|
+
"exports": [
|
|
7
|
+
"DEFAULT_DURATION",
|
|
8
|
+
"DEFAULT_LIMIT",
|
|
9
|
+
"EXIT_DURATION",
|
|
10
|
+
"Toaster"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"source": {
|
|
14
|
+
"libraryVersion": "2.3.0",
|
|
15
|
+
"files": [
|
|
16
|
+
"core/api.ts",
|
|
17
|
+
"core/index.ts",
|
|
18
|
+
"core/store.ts",
|
|
19
|
+
"core/toast.ts",
|
|
20
|
+
"core/types.ts",
|
|
21
|
+
"index.ts",
|
|
22
|
+
"react/ToastItem.tsx",
|
|
23
|
+
"react/Toaster.tsx",
|
|
24
|
+
"react/icons.tsx",
|
|
25
|
+
"react/locale.ts",
|
|
26
|
+
"react/props.ts",
|
|
27
|
+
"react/useToasts.ts"
|
|
28
|
+
],
|
|
29
|
+
"sourceHash": "sha256:84c41d93aba1f4c7690d206e574f8e9f6cc55420859f12cd3eb362ab9d768ea4"
|
|
30
|
+
},
|
|
31
|
+
"props": [
|
|
32
|
+
{
|
|
33
|
+
"name": "className",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"typeText": "string | undefined",
|
|
36
|
+
"required": false,
|
|
37
|
+
"origin": "derived"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "classNames",
|
|
41
|
+
"type": "other",
|
|
42
|
+
"typeText": "Partial<Record<ToasterSlot, string>> | undefined",
|
|
43
|
+
"required": false,
|
|
44
|
+
"origin": "derived"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "closeButton",
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"typeText": "boolean | undefined",
|
|
50
|
+
"required": false,
|
|
51
|
+
"default": true,
|
|
52
|
+
"origin": "derived",
|
|
53
|
+
"description": "Show a close button on dismissible toasts. Default true.",
|
|
54
|
+
"descriptionOrigin": "jsdoc"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "dir",
|
|
58
|
+
"type": "enum",
|
|
59
|
+
"values": [
|
|
60
|
+
"auto",
|
|
61
|
+
"ltr",
|
|
62
|
+
"rtl"
|
|
63
|
+
],
|
|
64
|
+
"typeText": "'ltr' | 'rtl' | 'auto' | undefined",
|
|
65
|
+
"required": false,
|
|
66
|
+
"origin": "derived"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "duration",
|
|
70
|
+
"type": "number",
|
|
71
|
+
"typeText": "number | undefined",
|
|
72
|
+
"required": false,
|
|
73
|
+
"origin": "derived",
|
|
74
|
+
"description": "Default auto-close delay in milliseconds. Default 5000.",
|
|
75
|
+
"descriptionOrigin": "jsdoc"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "hotkey",
|
|
79
|
+
"type": "other",
|
|
80
|
+
"typeText": "readonly string[] | undefined",
|
|
81
|
+
"required": false,
|
|
82
|
+
"default": "DEFAULT_HOTKEY",
|
|
83
|
+
"origin": "derived",
|
|
84
|
+
"description": "Keys that move focus to the notifications: `KeyboardEvent` modifier names\nplus a `code`. Default `[\"altKey\", \"KeyT\"]`.",
|
|
85
|
+
"descriptionOrigin": "jsdoc"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "icons",
|
|
89
|
+
"type": "other",
|
|
90
|
+
"typeText": "Partial<Record<ToastType, ReactNode>> | undefined",
|
|
91
|
+
"required": false,
|
|
92
|
+
"origin": "derived",
|
|
93
|
+
"description": "Replace the icon per type; `null` hides it.",
|
|
94
|
+
"descriptionOrigin": "jsdoc"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "limit",
|
|
98
|
+
"type": "number",
|
|
99
|
+
"typeText": "number | undefined",
|
|
100
|
+
"required": false,
|
|
101
|
+
"origin": "derived",
|
|
102
|
+
"description": "Open toasts on screen at once; the rest wait their turn. Default 3.",
|
|
103
|
+
"descriptionOrigin": "jsdoc"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "localeText",
|
|
107
|
+
"type": "other",
|
|
108
|
+
"typeText": "Partial<ToasterLocaleText> | undefined",
|
|
109
|
+
"required": false,
|
|
110
|
+
"origin": "derived"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "position",
|
|
114
|
+
"type": "enum",
|
|
115
|
+
"values": [
|
|
116
|
+
"bottom-center",
|
|
117
|
+
"bottom-left",
|
|
118
|
+
"bottom-right",
|
|
119
|
+
"top-center",
|
|
120
|
+
"top-left",
|
|
121
|
+
"top-right"
|
|
122
|
+
],
|
|
123
|
+
"typeText": "ToastPosition | undefined",
|
|
124
|
+
"required": false,
|
|
125
|
+
"default": "top-right",
|
|
126
|
+
"origin": "derived",
|
|
127
|
+
"description": "Default `\"top-right\"`.",
|
|
128
|
+
"descriptionOrigin": "jsdoc"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "store",
|
|
132
|
+
"type": "other",
|
|
133
|
+
"typeText": "ToastStore | undefined",
|
|
134
|
+
"required": false,
|
|
135
|
+
"default": "toastStore",
|
|
136
|
+
"origin": "derived",
|
|
137
|
+
"description": "A store from `createToastStore()`. Defaults to the one behind `toast()`.",
|
|
138
|
+
"descriptionOrigin": "jsdoc"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "style",
|
|
142
|
+
"type": "other",
|
|
143
|
+
"typeText": "CSSProperties | undefined",
|
|
144
|
+
"required": false,
|
|
145
|
+
"origin": "derived"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"events": [],
|
|
149
|
+
"slots": [
|
|
150
|
+
"region",
|
|
151
|
+
"list",
|
|
152
|
+
"toast",
|
|
153
|
+
"icon",
|
|
154
|
+
"content",
|
|
155
|
+
"title",
|
|
156
|
+
"description",
|
|
157
|
+
"actions",
|
|
158
|
+
"action",
|
|
159
|
+
"cancel",
|
|
160
|
+
"close"
|
|
161
|
+
],
|
|
162
|
+
"states": [
|
|
163
|
+
{
|
|
164
|
+
"attr": "data-custom"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"attr": "data-position"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"attr": "data-state",
|
|
171
|
+
"values": [
|
|
172
|
+
"closing"
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"attr": "data-swiping"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"attr": "data-theme",
|
|
180
|
+
"values": [
|
|
181
|
+
"dark",
|
|
182
|
+
"light"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"attr": "data-type",
|
|
187
|
+
"values": [
|
|
188
|
+
"default",
|
|
189
|
+
"error",
|
|
190
|
+
"info",
|
|
191
|
+
"loading",
|
|
192
|
+
"success",
|
|
193
|
+
"warning"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"attr": "data-variant",
|
|
198
|
+
"values": [
|
|
199
|
+
"action",
|
|
200
|
+
"cancel"
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"accessibility": {
|
|
205
|
+
"supplied": [],
|
|
206
|
+
"required": []
|
|
207
|
+
},
|
|
208
|
+
"composition": {},
|
|
209
|
+
"operations": {},
|
|
210
|
+
"intentDomains": [],
|
|
211
|
+
"safeMutations": {},
|
|
212
|
+
"examples": [],
|
|
213
|
+
"coverage": {
|
|
214
|
+
"propsTotal": 12,
|
|
215
|
+
"propsDescribed": 7,
|
|
216
|
+
"describedPct": 58,
|
|
217
|
+
"authoredSections": [
|
|
218
|
+
"accessibility"
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
}
|