@twentyfirstmedia/elements 0.1.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +477 -4
- package/dist/elements.d.ts +71 -1
- package/dist/elements.global.js +24 -24
- package/dist/elements.js +24 -24
- package/dist/vscode.html-custom-data.json +125 -2
- package/package.json +2 -2
|
@@ -32,6 +32,14 @@
|
|
|
32
32
|
{
|
|
33
33
|
"name": "tokens",
|
|
34
34
|
"description": "Theme colours for everything inside, like a shadcn theme: shadcn variable names without the dashes (`{ primary: \"#2563eb\", ring: \"#2563eb\" }`), or `{ light, dark, radius }` for values per mode. For a fixed theme, CSS is simpler (see `themeCss`); this is for runtime brands. (ThemeValues | ThemeInput)"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "surface",
|
|
38
|
+
"description": "`\"glass\"` turns every top-level surface (Panel, Card, Dock, map legend and controls) and every floating layer (menus, popovers, dialogs, drawers) inside into translucent glass, for UI that floats over a map, a 3D scene, video or photos (sets `data-surface`). Single surfaces take `surface=\"glass\"` themselves; `surface=\"solid\"` on one opts it out. (Surface)"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "motion",
|
|
42
|
+
"description": "Motion level for everything inside (sets `data-motion`): `\"standard\"` (default), `\"expressive\"` for orchestrated page entrances, or `\"off\"`, e.g. for a setting in your app. The reader's reduced-motion setting always turns motion off. (Motion)"
|
|
35
43
|
}
|
|
36
44
|
],
|
|
37
45
|
"references": [
|
|
@@ -285,11 +293,15 @@
|
|
|
285
293
|
},
|
|
286
294
|
{
|
|
287
295
|
"name": "height",
|
|
288
|
-
"description": "(number)"
|
|
296
|
+
"description": "Height in px (default 320) or any CSS length, e.g. \"100%\" to fill a FloatingLayout. (number | string)"
|
|
289
297
|
},
|
|
290
298
|
{
|
|
291
299
|
"name": "label",
|
|
292
300
|
"description": "(string)"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"name": "surface",
|
|
304
|
+
"description": "`\"glass\"`: the legend, controls and popup float as glass over the map (for a live map in `background`). (Surface)"
|
|
293
305
|
}
|
|
294
306
|
],
|
|
295
307
|
"references": [
|
|
@@ -3207,6 +3219,10 @@
|
|
|
3207
3219
|
{
|
|
3208
3220
|
"name": "eyebrow",
|
|
3209
3221
|
"description": "(ReactNode)"
|
|
3222
|
+
},
|
|
3223
|
+
{
|
|
3224
|
+
"name": "surface",
|
|
3225
|
+
"description": "`\"glass\"`: translucent glass over what is behind (maps, 3D, video, photos); `\"solid\"` opts out inside a glass `UIProvider`. (Surface)"
|
|
3210
3226
|
}
|
|
3211
3227
|
],
|
|
3212
3228
|
"references": [
|
|
@@ -3294,6 +3310,10 @@
|
|
|
3294
3310
|
{
|
|
3295
3311
|
"name": "action",
|
|
3296
3312
|
"description": "(ReactNode)"
|
|
3313
|
+
},
|
|
3314
|
+
{
|
|
3315
|
+
"name": "surface",
|
|
3316
|
+
"description": "`\"glass\"`: translucent glass over what is behind (maps, 3D, video, photos); `\"solid\"` opts out inside a glass `UIProvider`. (Surface)"
|
|
3297
3317
|
}
|
|
3298
3318
|
],
|
|
3299
3319
|
"references": [
|
|
@@ -3341,7 +3361,12 @@
|
|
|
3341
3361
|
},
|
|
3342
3362
|
{
|
|
3343
3363
|
"name": "delay",
|
|
3344
|
-
"description": "(number)"
|
|
3364
|
+
"description": "Extra delay before the first child, in ms. (number)"
|
|
3365
|
+
},
|
|
3366
|
+
{
|
|
3367
|
+
"name": "reveal",
|
|
3368
|
+
"description": "Below the fold, wait until the group scrolls into view (default true). (boolean)",
|
|
3369
|
+
"valueSet": "v"
|
|
3345
3370
|
}
|
|
3346
3371
|
],
|
|
3347
3372
|
"references": [
|
|
@@ -4065,6 +4090,11 @@
|
|
|
4065
4090
|
{
|
|
4066
4091
|
"name": "actions",
|
|
4067
4092
|
"description": "(ReactNode[])"
|
|
4093
|
+
},
|
|
4094
|
+
{
|
|
4095
|
+
"name": "open",
|
|
4096
|
+
"description": "Optional: with `open` the component stays mounted while it animates out; without it, render it only while open. (boolean)",
|
|
4097
|
+
"valueSet": "v"
|
|
4068
4098
|
}
|
|
4069
4099
|
],
|
|
4070
4100
|
"references": [
|
|
@@ -7050,6 +7080,10 @@
|
|
|
7050
7080
|
{
|
|
7051
7081
|
"name": "label",
|
|
7052
7082
|
"description": "(string)"
|
|
7083
|
+
},
|
|
7084
|
+
{
|
|
7085
|
+
"name": "surface",
|
|
7086
|
+
"description": "`\"glass\"`: translucent glass over what is behind (maps, 3D, video, photos); `\"solid\"` opts out inside a glass `UIProvider`. (Surface)"
|
|
7053
7087
|
}
|
|
7054
7088
|
],
|
|
7055
7089
|
"references": [
|
|
@@ -7059,6 +7093,85 @@
|
|
|
7059
7093
|
}
|
|
7060
7094
|
]
|
|
7061
7095
|
},
|
|
7096
|
+
{
|
|
7097
|
+
"name": "tf-floating-layout",
|
|
7098
|
+
"description": "UI floating over a full-bleed background: a map, a 3D scene, a video or a photo.",
|
|
7099
|
+
"attributes": [
|
|
7100
|
+
{
|
|
7101
|
+
"name": "background",
|
|
7102
|
+
"description": "What the UI floats over, filling the layout: a map, a 3D canvas, a video, a photo. (ReactNode)"
|
|
7103
|
+
},
|
|
7104
|
+
{
|
|
7105
|
+
"name": "top",
|
|
7106
|
+
"description": "Bar along the top edge (search, filters, title). (ReactNode)"
|
|
7107
|
+
},
|
|
7108
|
+
{
|
|
7109
|
+
"name": "start",
|
|
7110
|
+
"description": "Column on the start side (layers, lists, settings). (ReactNode)"
|
|
7111
|
+
},
|
|
7112
|
+
{
|
|
7113
|
+
"name": "end",
|
|
7114
|
+
"description": "Column on the end side (details of the selected thing). (ReactNode)"
|
|
7115
|
+
},
|
|
7116
|
+
{
|
|
7117
|
+
"name": "bottom",
|
|
7118
|
+
"description": "Bar along the bottom edge (dock, playback, a summary). (ReactNode)"
|
|
7119
|
+
},
|
|
7120
|
+
{
|
|
7121
|
+
"name": "height",
|
|
7122
|
+
"description": "Height of the layout (default 640). Below 720px of width the slots stack: top, start, end, bottom. (number | string)"
|
|
7123
|
+
},
|
|
7124
|
+
{
|
|
7125
|
+
"name": "surface",
|
|
7126
|
+
"description": "Glass for every surface in the slots (default) or solid surfaces. (Surface)"
|
|
7127
|
+
},
|
|
7128
|
+
{
|
|
7129
|
+
"name": "label",
|
|
7130
|
+
"description": "Accessible name of the region. (string)"
|
|
7131
|
+
}
|
|
7132
|
+
],
|
|
7133
|
+
"references": [
|
|
7134
|
+
{
|
|
7135
|
+
"name": "Docs",
|
|
7136
|
+
"url": "https://ui.twentyfirst.media/halo/components/FloatingLayout/"
|
|
7137
|
+
}
|
|
7138
|
+
]
|
|
7139
|
+
},
|
|
7140
|
+
{
|
|
7141
|
+
"name": "tf-ambient",
|
|
7142
|
+
"description": "A calm, living background for glass UI: soft colour fields from the kit (pastels in Halo, a faint aurora in Pro) that drift slowly, a photo or video under a scrim, or your own layer.",
|
|
7143
|
+
"attributes": [
|
|
7144
|
+
{
|
|
7145
|
+
"name": "colors",
|
|
7146
|
+
"description": "Colours of the soft fields (any CSS colour); default the kit's `--ambient-1…4`. (string[])"
|
|
7147
|
+
},
|
|
7148
|
+
{
|
|
7149
|
+
"name": "src",
|
|
7150
|
+
"description": "A photo (or, with `video`, a video) instead of the fields, under a scrim that keeps it calm. (string)"
|
|
7151
|
+
},
|
|
7152
|
+
{
|
|
7153
|
+
"name": "video",
|
|
7154
|
+
"description": "Treat `src` as a video (muted, looping, still with motion off). (boolean)",
|
|
7155
|
+
"valueSet": "v"
|
|
7156
|
+
},
|
|
7157
|
+
{
|
|
7158
|
+
"name": "animate",
|
|
7159
|
+
"description": "Let the fields drift slowly (default true). Still with motion off; paused off screen. (boolean)",
|
|
7160
|
+
"valueSet": "v"
|
|
7161
|
+
},
|
|
7162
|
+
{
|
|
7163
|
+
"name": "fixed",
|
|
7164
|
+
"description": "Cover the window behind the page instead of the nearest container. (boolean)",
|
|
7165
|
+
"valueSet": "v"
|
|
7166
|
+
}
|
|
7167
|
+
],
|
|
7168
|
+
"references": [
|
|
7169
|
+
{
|
|
7170
|
+
"name": "Docs",
|
|
7171
|
+
"url": "https://ui.twentyfirst.media/halo/components/Ambient/"
|
|
7172
|
+
}
|
|
7173
|
+
]
|
|
7174
|
+
},
|
|
7062
7175
|
{
|
|
7063
7176
|
"name": "tf-app-shell",
|
|
7064
7177
|
"description": "The AppShell component as a custom element.",
|
|
@@ -7410,6 +7523,11 @@
|
|
|
7410
7523
|
"description": "(boolean)",
|
|
7411
7524
|
"valueSet": "v"
|
|
7412
7525
|
},
|
|
7526
|
+
{
|
|
7527
|
+
"name": "open",
|
|
7528
|
+
"description": "Optional: with `open` the component stays mounted while it animates out; without it, render it only while open. (boolean)",
|
|
7529
|
+
"valueSet": "v"
|
|
7530
|
+
},
|
|
7413
7531
|
{
|
|
7414
7532
|
"name": "side",
|
|
7415
7533
|
"description": "Edge the sheet slides in from (default right). (\"right\" | \"left\" | \"top\" | \"bottom\")",
|
|
@@ -7461,6 +7579,11 @@
|
|
|
7461
7579
|
{
|
|
7462
7580
|
"name": "empty",
|
|
7463
7581
|
"description": "Shown when nothing matches (default: \"Nothing matches …\"). (ReactNode)"
|
|
7582
|
+
},
|
|
7583
|
+
{
|
|
7584
|
+
"name": "open",
|
|
7585
|
+
"description": "Optional: with `open` the component stays mounted while it animates out; without it, render it only while open. (boolean)",
|
|
7586
|
+
"valueSet": "v"
|
|
7464
7587
|
}
|
|
7465
7588
|
],
|
|
7466
7589
|
"references": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twentyfirstmedia/elements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Every Twentyfirst UI component as a custom element: <tf-button>, <tf-data-table> … for plain HTML, Vue, Svelte, Angular, Astro and server templates.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Twentyfirst Media (https://twentyfirst.media)",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dist"
|
|
55
55
|
],
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@twentyfirstmedia/ui-core": "0.
|
|
57
|
+
"@twentyfirstmedia/ui-core": "0.2.1",
|
|
58
58
|
"@types/node": "26.6.6",
|
|
59
59
|
"@types/react": "19.3.0",
|
|
60
60
|
"@types/react-dom": "19.3.0",
|