@twentyfirstmedia/elements 0.1.0 → 0.2.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.
@@ -55,6 +55,22 @@
55
55
  "text": "ThemeValues | ThemeInput"
56
56
  },
57
57
  "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."
58
+ },
59
+ {
60
+ "name": "surface",
61
+ "fieldName": "surface",
62
+ "type": {
63
+ "text": "Surface"
64
+ },
65
+ "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."
66
+ },
67
+ {
68
+ "name": "motion",
69
+ "fieldName": "motion",
70
+ "type": {
71
+ "text": "Motion"
72
+ },
73
+ "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."
58
74
  }
59
75
  ],
60
76
  "members": [
@@ -102,6 +118,24 @@
102
118
  },
103
119
  "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.",
104
120
  "attribute": "tokens"
121
+ },
122
+ {
123
+ "kind": "field",
124
+ "name": "surface",
125
+ "type": {
126
+ "text": "Surface"
127
+ },
128
+ "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.",
129
+ "attribute": "surface"
130
+ },
131
+ {
132
+ "kind": "field",
133
+ "name": "motion",
134
+ "type": {
135
+ "text": "Motion"
136
+ },
137
+ "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.",
138
+ "attribute": "motion"
105
139
  }
106
140
  ],
107
141
  "events": [],
@@ -818,8 +852,9 @@
818
852
  "name": "height",
819
853
  "fieldName": "height",
820
854
  "type": {
821
- "text": "number"
822
- }
855
+ "text": "number | string"
856
+ },
857
+ "description": "Height in px (default 320) or any CSS length, e.g. \"100%\" to fill a FloatingLayout."
823
858
  },
824
859
  {
825
860
  "name": "label",
@@ -827,6 +862,14 @@
827
862
  "type": {
828
863
  "text": "string"
829
864
  }
865
+ },
866
+ {
867
+ "name": "surface",
868
+ "fieldName": "surface",
869
+ "type": {
870
+ "text": "Surface"
871
+ },
872
+ "description": "`\"glass\"`: the legend, controls and popup float as glass over the map (for a live map in `background`)."
830
873
  }
831
874
  ],
832
875
  "members": [
@@ -897,8 +940,9 @@
897
940
  "kind": "field",
898
941
  "name": "height",
899
942
  "type": {
900
- "text": "number"
943
+ "text": "number | string"
901
944
  },
945
+ "description": "Height in px (default 320) or any CSS length, e.g. \"100%\" to fill a FloatingLayout.",
902
946
  "attribute": "height"
903
947
  },
904
948
  {
@@ -908,6 +952,15 @@
908
952
  "text": "string"
909
953
  },
910
954
  "attribute": "label"
955
+ },
956
+ {
957
+ "kind": "field",
958
+ "name": "surface",
959
+ "type": {
960
+ "text": "Surface"
961
+ },
962
+ "description": "`\"glass\"`: the legend, controls and popup float as glass over the map (for a live map in `background`).",
963
+ "attribute": "surface"
911
964
  }
912
965
  ],
913
966
  "events": [
@@ -9620,6 +9673,14 @@
9620
9673
  "type": {
9621
9674
  "text": "ReactNode"
9622
9675
  }
9676
+ },
9677
+ {
9678
+ "name": "surface",
9679
+ "fieldName": "surface",
9680
+ "type": {
9681
+ "text": "Surface"
9682
+ },
9683
+ "description": "`\"glass\"`: translucent glass over what is behind (maps, 3D, video, photos); `\"solid\"` opts out inside a glass `UIProvider`."
9623
9684
  }
9624
9685
  ],
9625
9686
  "members": [
@@ -9686,6 +9747,15 @@
9686
9747
  "text": "ReactNode"
9687
9748
  },
9688
9749
  "attribute": "eyebrow"
9750
+ },
9751
+ {
9752
+ "kind": "field",
9753
+ "name": "surface",
9754
+ "type": {
9755
+ "text": "Surface"
9756
+ },
9757
+ "description": "`\"glass\"`: translucent glass over what is behind (maps, 3D, video, photos); `\"solid\"` opts out inside a glass `UIProvider`.",
9758
+ "attribute": "surface"
9689
9759
  }
9690
9760
  ],
9691
9761
  "events": [
@@ -9883,6 +9953,14 @@
9883
9953
  "type": {
9884
9954
  "text": "ReactNode"
9885
9955
  }
9956
+ },
9957
+ {
9958
+ "name": "surface",
9959
+ "fieldName": "surface",
9960
+ "type": {
9961
+ "text": "Surface"
9962
+ },
9963
+ "description": "`\"glass\"`: translucent glass over what is behind (maps, 3D, video, photos); `\"solid\"` opts out inside a glass `UIProvider`."
9886
9964
  }
9887
9965
  ],
9888
9966
  "members": [
@@ -9917,6 +9995,15 @@
9917
9995
  "text": "ReactNode"
9918
9996
  },
9919
9997
  "attribute": "action"
9998
+ },
9999
+ {
10000
+ "kind": "field",
10001
+ "name": "surface",
10002
+ "type": {
10003
+ "text": "Surface"
10004
+ },
10005
+ "description": "`\"glass\"`: translucent glass over what is behind (maps, 3D, video, photos); `\"solid\"` opts out inside a glass `UIProvider`.",
10006
+ "attribute": "surface"
9920
10007
  }
9921
10008
  ],
9922
10009
  "events": [],
@@ -10034,7 +10121,16 @@
10034
10121
  "fieldName": "delay",
10035
10122
  "type": {
10036
10123
  "text": "number"
10037
- }
10124
+ },
10125
+ "description": "Extra delay before the first child, in ms."
10126
+ },
10127
+ {
10128
+ "name": "reveal",
10129
+ "fieldName": "reveal",
10130
+ "type": {
10131
+ "text": "boolean"
10132
+ },
10133
+ "description": "Below the fold, wait until the group scrolls into view (default true)."
10038
10134
  }
10039
10135
  ],
10040
10136
  "members": [
@@ -10052,7 +10148,17 @@
10052
10148
  "type": {
10053
10149
  "text": "number"
10054
10150
  },
10151
+ "description": "Extra delay before the first child, in ms.",
10055
10152
  "attribute": "delay"
10153
+ },
10154
+ {
10155
+ "kind": "field",
10156
+ "name": "reveal",
10157
+ "type": {
10158
+ "text": "boolean"
10159
+ },
10160
+ "description": "Below the fold, wait until the group scrolls into view (default true).",
10161
+ "attribute": "reveal"
10056
10162
  }
10057
10163
  ],
10058
10164
  "events": [],
@@ -12098,6 +12204,14 @@
12098
12204
  "type": {
12099
12205
  "text": "ReactNode[]"
12100
12206
  }
12207
+ },
12208
+ {
12209
+ "name": "open",
12210
+ "fieldName": "open",
12211
+ "type": {
12212
+ "text": "boolean"
12213
+ },
12214
+ "description": "Optional: with `open` the component stays mounted while it animates out; without it, render it only while open."
12101
12215
  }
12102
12216
  ],
12103
12217
  "members": [
@@ -12140,6 +12254,15 @@
12140
12254
  "text": "ReactNode[]"
12141
12255
  },
12142
12256
  "attribute": "actions"
12257
+ },
12258
+ {
12259
+ "kind": "field",
12260
+ "name": "open",
12261
+ "type": {
12262
+ "text": "boolean"
12263
+ },
12264
+ "description": "Optional: with `open` the component stays mounted while it animates out; without it, render it only while open.",
12265
+ "attribute": "open"
12143
12266
  }
12144
12267
  ],
12145
12268
  "events": [
@@ -20806,6 +20929,14 @@
20806
20929
  "type": {
20807
20930
  "text": "string"
20808
20931
  }
20932
+ },
20933
+ {
20934
+ "name": "surface",
20935
+ "fieldName": "surface",
20936
+ "type": {
20937
+ "text": "Surface"
20938
+ },
20939
+ "description": "`\"glass\"`: translucent glass over what is behind (maps, 3D, video, photos); `\"solid\"` opts out inside a glass `UIProvider`."
20809
20940
  }
20810
20941
  ],
20811
20942
  "members": [
@@ -20824,11 +20955,303 @@
20824
20955
  "text": "string"
20825
20956
  },
20826
20957
  "attribute": "label"
20958
+ },
20959
+ {
20960
+ "kind": "field",
20961
+ "name": "surface",
20962
+ "type": {
20963
+ "text": "Surface"
20964
+ },
20965
+ "description": "`\"glass\"`: translucent glass over what is behind (maps, 3D, video, photos); `\"solid\"` opts out inside a glass `UIProvider`.",
20966
+ "attribute": "surface"
20827
20967
  }
20828
20968
  ],
20829
20969
  "events": [],
20830
20970
  "slots": []
20831
20971
  },
20972
+ {
20973
+ "kind": "class",
20974
+ "customElement": true,
20975
+ "name": "TfFloatingLayoutElement",
20976
+ "tagName": "tf-floating-layout",
20977
+ "description": "UI floating over a full-bleed background: a map, a 3D scene, a video or a photo.",
20978
+ "superclass": {
20979
+ "name": "HTMLElement"
20980
+ },
20981
+ "attributes": [
20982
+ {
20983
+ "name": "background",
20984
+ "fieldName": "background",
20985
+ "type": {
20986
+ "text": "ReactNode"
20987
+ },
20988
+ "description": "What the UI floats over, filling the layout: a map, a 3D canvas, a video, a photo."
20989
+ },
20990
+ {
20991
+ "name": "top",
20992
+ "fieldName": "top",
20993
+ "type": {
20994
+ "text": "ReactNode"
20995
+ },
20996
+ "description": "Bar along the top edge (search, filters, title)."
20997
+ },
20998
+ {
20999
+ "name": "start",
21000
+ "fieldName": "start",
21001
+ "type": {
21002
+ "text": "ReactNode"
21003
+ },
21004
+ "description": "Column on the start side (layers, lists, settings)."
21005
+ },
21006
+ {
21007
+ "name": "end",
21008
+ "fieldName": "end",
21009
+ "type": {
21010
+ "text": "ReactNode"
21011
+ },
21012
+ "description": "Column on the end side (details of the selected thing)."
21013
+ },
21014
+ {
21015
+ "name": "bottom",
21016
+ "fieldName": "bottom",
21017
+ "type": {
21018
+ "text": "ReactNode"
21019
+ },
21020
+ "description": "Bar along the bottom edge (dock, playback, a summary)."
21021
+ },
21022
+ {
21023
+ "name": "height",
21024
+ "fieldName": "height",
21025
+ "type": {
21026
+ "text": "number | string"
21027
+ },
21028
+ "description": "Height of the layout (default 640). Below 720px of width the slots stack: top, start, end, bottom."
21029
+ },
21030
+ {
21031
+ "name": "surface",
21032
+ "fieldName": "surface",
21033
+ "type": {
21034
+ "text": "Surface"
21035
+ },
21036
+ "description": "Glass for every surface in the slots (default) or solid surfaces."
21037
+ },
21038
+ {
21039
+ "name": "label",
21040
+ "fieldName": "label",
21041
+ "type": {
21042
+ "text": "string"
21043
+ },
21044
+ "description": "Accessible name of the region."
21045
+ }
21046
+ ],
21047
+ "members": [
21048
+ {
21049
+ "kind": "field",
21050
+ "name": "background",
21051
+ "type": {
21052
+ "text": "ReactNode"
21053
+ },
21054
+ "description": "What the UI floats over, filling the layout: a map, a 3D canvas, a video, a photo.",
21055
+ "attribute": "background"
21056
+ },
21057
+ {
21058
+ "kind": "field",
21059
+ "name": "top",
21060
+ "type": {
21061
+ "text": "ReactNode"
21062
+ },
21063
+ "description": "Bar along the top edge (search, filters, title).",
21064
+ "attribute": "top"
21065
+ },
21066
+ {
21067
+ "kind": "field",
21068
+ "name": "start",
21069
+ "type": {
21070
+ "text": "ReactNode"
21071
+ },
21072
+ "description": "Column on the start side (layers, lists, settings).",
21073
+ "attribute": "start"
21074
+ },
21075
+ {
21076
+ "kind": "field",
21077
+ "name": "end",
21078
+ "type": {
21079
+ "text": "ReactNode"
21080
+ },
21081
+ "description": "Column on the end side (details of the selected thing).",
21082
+ "attribute": "end"
21083
+ },
21084
+ {
21085
+ "kind": "field",
21086
+ "name": "bottom",
21087
+ "type": {
21088
+ "text": "ReactNode"
21089
+ },
21090
+ "description": "Bar along the bottom edge (dock, playback, a summary).",
21091
+ "attribute": "bottom"
21092
+ },
21093
+ {
21094
+ "kind": "field",
21095
+ "name": "height",
21096
+ "type": {
21097
+ "text": "number | string"
21098
+ },
21099
+ "description": "Height of the layout (default 640). Below 720px of width the slots stack: top, start, end, bottom.",
21100
+ "attribute": "height"
21101
+ },
21102
+ {
21103
+ "kind": "field",
21104
+ "name": "surface",
21105
+ "type": {
21106
+ "text": "Surface"
21107
+ },
21108
+ "description": "Glass for every surface in the slots (default) or solid surfaces.",
21109
+ "attribute": "surface"
21110
+ },
21111
+ {
21112
+ "kind": "field",
21113
+ "name": "label",
21114
+ "type": {
21115
+ "text": "string"
21116
+ },
21117
+ "description": "Accessible name of the region.",
21118
+ "attribute": "label"
21119
+ }
21120
+ ],
21121
+ "events": [],
21122
+ "slots": [
21123
+ {
21124
+ "name": "background",
21125
+ "description": "What the UI floats over, filling the layout: a map, a 3D canvas, a video, a photo."
21126
+ },
21127
+ {
21128
+ "name": "top",
21129
+ "description": "Bar along the top edge (search, filters, title)."
21130
+ },
21131
+ {
21132
+ "name": "start",
21133
+ "description": "Column on the start side (layers, lists, settings)."
21134
+ },
21135
+ {
21136
+ "name": "end",
21137
+ "description": "Column on the end side (details of the selected thing)."
21138
+ },
21139
+ {
21140
+ "name": "bottom",
21141
+ "description": "Bar along the bottom edge (dock, playback, a summary)."
21142
+ },
21143
+ {
21144
+ "name": "",
21145
+ "description": "Content (any HTML or tf-* elements)."
21146
+ }
21147
+ ]
21148
+ },
21149
+ {
21150
+ "kind": "class",
21151
+ "customElement": true,
21152
+ "name": "TfAmbientElement",
21153
+ "tagName": "tf-ambient",
21154
+ "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.",
21155
+ "superclass": {
21156
+ "name": "HTMLElement"
21157
+ },
21158
+ "attributes": [
21159
+ {
21160
+ "name": "colors",
21161
+ "fieldName": "colors",
21162
+ "type": {
21163
+ "text": "string[]"
21164
+ },
21165
+ "description": "Colours of the soft fields (any CSS colour); default the kit's `--ambient-1…4`."
21166
+ },
21167
+ {
21168
+ "name": "src",
21169
+ "fieldName": "src",
21170
+ "type": {
21171
+ "text": "string"
21172
+ },
21173
+ "description": "A photo (or, with `video`, a video) instead of the fields, under a scrim that keeps it calm."
21174
+ },
21175
+ {
21176
+ "name": "video",
21177
+ "fieldName": "video",
21178
+ "type": {
21179
+ "text": "boolean"
21180
+ },
21181
+ "description": "Treat `src` as a video (muted, looping, still with motion off)."
21182
+ },
21183
+ {
21184
+ "name": "animate",
21185
+ "fieldName": "animate",
21186
+ "type": {
21187
+ "text": "boolean"
21188
+ },
21189
+ "description": "Let the fields drift slowly (default true). Still with motion off; paused off screen."
21190
+ },
21191
+ {
21192
+ "name": "fixed",
21193
+ "fieldName": "fixed",
21194
+ "type": {
21195
+ "text": "boolean"
21196
+ },
21197
+ "description": "Cover the window behind the page instead of the nearest container."
21198
+ }
21199
+ ],
21200
+ "members": [
21201
+ {
21202
+ "kind": "field",
21203
+ "name": "colors",
21204
+ "type": {
21205
+ "text": "string[]"
21206
+ },
21207
+ "description": "Colours of the soft fields (any CSS colour); default the kit's `--ambient-1…4`.",
21208
+ "attribute": "colors"
21209
+ },
21210
+ {
21211
+ "kind": "field",
21212
+ "name": "src",
21213
+ "type": {
21214
+ "text": "string"
21215
+ },
21216
+ "description": "A photo (or, with `video`, a video) instead of the fields, under a scrim that keeps it calm.",
21217
+ "attribute": "src"
21218
+ },
21219
+ {
21220
+ "kind": "field",
21221
+ "name": "video",
21222
+ "type": {
21223
+ "text": "boolean"
21224
+ },
21225
+ "description": "Treat `src` as a video (muted, looping, still with motion off).",
21226
+ "attribute": "video"
21227
+ },
21228
+ {
21229
+ "kind": "field",
21230
+ "name": "animate",
21231
+ "type": {
21232
+ "text": "boolean"
21233
+ },
21234
+ "description": "Let the fields drift slowly (default true). Still with motion off; paused off screen.",
21235
+ "attribute": "animate"
21236
+ },
21237
+ {
21238
+ "kind": "field",
21239
+ "name": "fixed",
21240
+ "type": {
21241
+ "text": "boolean"
21242
+ },
21243
+ "description": "Cover the window behind the page instead of the nearest container.",
21244
+ "attribute": "fixed"
21245
+ }
21246
+ ],
21247
+ "events": [],
21248
+ "slots": [
21249
+ {
21250
+ "name": "",
21251
+ "description": "Your own layer (a canvas, WebGL, a map) instead of fields or media."
21252
+ }
21253
+ ]
21254
+ },
20832
21255
  {
20833
21256
  "kind": "class",
20834
21257
  "customElement": true,
@@ -21929,6 +22352,14 @@
21929
22352
  "text": "boolean"
21930
22353
  }
21931
22354
  },
22355
+ {
22356
+ "name": "open",
22357
+ "fieldName": "open",
22358
+ "type": {
22359
+ "text": "boolean"
22360
+ },
22361
+ "description": "Optional: with `open` the component stays mounted while it animates out; without it, render it only while open."
22362
+ },
21932
22363
  {
21933
22364
  "name": "side",
21934
22365
  "fieldName": "side",
@@ -21979,6 +22410,15 @@
21979
22410
  },
21980
22411
  "attribute": "inline"
21981
22412
  },
22413
+ {
22414
+ "kind": "field",
22415
+ "name": "open",
22416
+ "type": {
22417
+ "text": "boolean"
22418
+ },
22419
+ "description": "Optional: with `open` the component stays mounted while it animates out; without it, render it only while open.",
22420
+ "attribute": "open"
22421
+ },
21982
22422
  {
21983
22423
  "kind": "field",
21984
22424
  "name": "side",
@@ -22055,6 +22495,14 @@
22055
22495
  "text": "ReactNode"
22056
22496
  },
22057
22497
  "description": "Shown when nothing matches (default: \"Nothing matches …\")."
22498
+ },
22499
+ {
22500
+ "name": "open",
22501
+ "fieldName": "open",
22502
+ "type": {
22503
+ "text": "boolean"
22504
+ },
22505
+ "description": "Optional: with `open` the component stays mounted while it animates out; without it, render it only while open."
22058
22506
  }
22059
22507
  ],
22060
22508
  "members": [
@@ -22099,6 +22547,15 @@
22099
22547
  },
22100
22548
  "description": "Shown when nothing matches (default: \"Nothing matches …\").",
22101
22549
  "attribute": "empty"
22550
+ },
22551
+ {
22552
+ "kind": "field",
22553
+ "name": "open",
22554
+ "type": {
22555
+ "text": "boolean"
22556
+ },
22557
+ "description": "Optional: with `open` the component stays mounted while it animates out; without it, render it only while open.",
22558
+ "attribute": "open"
22102
22559
  }
22103
22560
  ],
22104
22561
  "events": [
@@ -24431,6 +24888,22 @@
24431
24888
  "module": "dist/elements.js"
24432
24889
  }
24433
24890
  },
24891
+ {
24892
+ "kind": "custom-element-definition",
24893
+ "name": "tf-floating-layout",
24894
+ "declaration": {
24895
+ "name": "TfFloatingLayoutElement",
24896
+ "module": "dist/elements.js"
24897
+ }
24898
+ },
24899
+ {
24900
+ "kind": "custom-element-definition",
24901
+ "name": "tf-ambient",
24902
+ "declaration": {
24903
+ "name": "TfAmbientElement",
24904
+ "module": "dist/elements.js"
24905
+ }
24906
+ },
24434
24907
  {
24435
24908
  "kind": "custom-element-definition",
24436
24909
  "name": "tf-app-shell",