@estiva-app/ui 0.74.1 → 0.75.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/CardUnder.d.ts +10 -0
- package/dist/CardUnder.d.ts.map +1 -0
- package/dist/InlineChip.d.ts +2 -0
- package/dist/InlineChip.d.ts.map +1 -1
- package/dist/LinkCard.d.ts +17 -0
- package/dist/LinkCard.d.ts.map +1 -0
- package/dist/LinkChip.d.ts +8 -0
- package/dist/LinkChip.d.ts.map +1 -0
- package/dist/LinkParts.d.ts +45 -0
- package/dist/LinkParts.d.ts.map +1 -0
- package/dist/LinkPreview.d.ts +21 -0
- package/dist/LinkPreview.d.ts.map +1 -0
- package/dist/LinkRow.d.ts +24 -0
- package/dist/LinkRow.d.ts.map +1 -0
- package/dist/PartCard.d.ts +32 -0
- package/dist/PartCard.d.ts.map +1 -0
- package/dist/Skeleton.d.ts +12 -2
- package/dist/Skeleton.d.ts.map +1 -1
- package/dist/eslint/index.js +1 -0
- package/dist/eslint/index.js.map +2 -2
- package/dist/eslint/no-restyled-part.d.ts.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +480 -71
- package/dist/index.js.map +4 -4
- package/dist/linked.d.ts +168 -0
- package/dist/linked.d.ts.map +1 -0
- package/dist/linked.examples.d.ts +27 -0
- package/dist/linked.examples.d.ts.map +1 -0
- package/package.json +1 -1
- package/registry.json +784 -7
- package/src/CardUnder.mdx +53 -0
- package/src/CardUnder.stories.tsx +45 -0
- package/src/CardUnder.test.tsx +40 -0
- package/src/CardUnder.tsx +45 -0
- package/src/InlineChip.tsx +2 -0
- package/src/LinkCard.mdx +58 -0
- package/src/LinkCard.stories.tsx +68 -0
- package/src/LinkCard.test.tsx +103 -0
- package/src/LinkCard.tsx +209 -0
- package/src/LinkChip.mdx +51 -0
- package/src/LinkChip.stories.tsx +40 -0
- package/src/LinkChip.test.tsx +83 -0
- package/src/LinkChip.tsx +51 -0
- package/src/LinkParts.mdx +49 -0
- package/src/LinkParts.stories.tsx +61 -0
- package/src/LinkParts.tsx +147 -0
- package/src/LinkPreview.mdx +47 -0
- package/src/LinkPreview.stories.tsx +38 -0
- package/src/LinkPreview.tsx +55 -0
- package/src/LinkRow.mdx +47 -0
- package/src/LinkRow.stories.tsx +49 -0
- package/src/LinkRow.test.tsx +38 -0
- package/src/LinkRow.tsx +107 -0
- package/src/PartCard.mdx +43 -0
- package/src/PartCard.stories.tsx +35 -0
- package/src/PartCard.test.tsx +30 -0
- package/src/PartCard.tsx +59 -0
- package/src/Skeleton.tsx +7 -3
- package/src/eslint/no-native-title.test.ts +3 -2
- package/src/eslint/no-restyled-part.ts +1 -0
- package/src/index.ts +25 -0
- package/src/linked.examples.ts +107 -0
- package/src/linked.test.ts +58 -0
- package/src/linked.ts +217 -0
- package/src/registry/registry.test.ts +8 -8
- package/stories/Choosing.mdx +7 -0
package/registry.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"kind": "package",
|
|
5
5
|
"repo": "estiva-ui",
|
|
6
6
|
"package": "@estiva-app/ui",
|
|
7
|
-
"packageVersion": "0.
|
|
8
|
-
"exports":
|
|
9
|
-
"typeExports":
|
|
7
|
+
"packageVersion": "0.75.0",
|
|
8
|
+
"exports": 197,
|
|
9
|
+
"typeExports": 185,
|
|
10
10
|
"files": null
|
|
11
11
|
},
|
|
12
12
|
"storybook": {
|
|
@@ -972,6 +972,46 @@
|
|
|
972
972
|
"rounded-lg border bg-bg-surface border-border-default border-warning-muted hover:border-warning-muted border-dashed overflow-hidden"
|
|
973
973
|
]
|
|
974
974
|
},
|
|
975
|
+
{
|
|
976
|
+
"name": "CardUnder",
|
|
977
|
+
"repo": "estiva-ui",
|
|
978
|
+
"kind": "component",
|
|
979
|
+
"importPath": "@estiva-app/ui",
|
|
980
|
+
"sourceFile": "src/CardUnder.tsx",
|
|
981
|
+
"purpose": "The one card added under a piece of text, and the ✕ that removes it.",
|
|
982
|
+
"purposeFrom": "page",
|
|
983
|
+
"props": [
|
|
984
|
+
{
|
|
985
|
+
"name": "link",
|
|
986
|
+
"takes": "LinkState",
|
|
987
|
+
"required": true,
|
|
988
|
+
"note": null
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"name": "onRemove",
|
|
992
|
+
"takes": "a handler",
|
|
993
|
+
"required": false,
|
|
994
|
+
"note": "Draws the ✕. Without it the card shows with none, as it does to anyone but the author."
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"name": "revealOnHover",
|
|
998
|
+
"takes": "true/false",
|
|
999
|
+
"required": false,
|
|
1000
|
+
"note": "The ✕ waits for hover or focus: under text already sent."
|
|
1001
|
+
}
|
|
1002
|
+
],
|
|
1003
|
+
"variants": [],
|
|
1004
|
+
"ownsBehaviours": [],
|
|
1005
|
+
"status": "stable",
|
|
1006
|
+
"migrationStage": null,
|
|
1007
|
+
"docsId": "components-cardunder--docs",
|
|
1008
|
+
"storyId": "components-cardunder--while-writing",
|
|
1009
|
+
"docPage": "src/CardUnder.mdx",
|
|
1010
|
+
"app": null,
|
|
1011
|
+
"looks": [
|
|
1012
|
+
"opacity-0 transition-opacity focus-within:opacity-100 [@media(hover:none)]:opacity-100"
|
|
1013
|
+
]
|
|
1014
|
+
},
|
|
975
1015
|
{
|
|
976
1016
|
"name": "Checkbox",
|
|
977
1017
|
"repo": "estiva-ui",
|
|
@@ -1291,6 +1331,25 @@
|
|
|
1291
1331
|
"text-body-2 border-none bg-transparent text-text-primary placeholder:text-text-muted outline-none"
|
|
1292
1332
|
]
|
|
1293
1333
|
},
|
|
1334
|
+
{
|
|
1335
|
+
"name": "chosenOf",
|
|
1336
|
+
"repo": "estiva-ui",
|
|
1337
|
+
"kind": "helper",
|
|
1338
|
+
"importPath": "@estiva-app/ui",
|
|
1339
|
+
"sourceFile": "src/linked.ts",
|
|
1340
|
+
"purpose": "A picker's chosen option, or none.",
|
|
1341
|
+
"purposeFrom": "comment",
|
|
1342
|
+
"props": [],
|
|
1343
|
+
"variants": [],
|
|
1344
|
+
"ownsBehaviours": [],
|
|
1345
|
+
"status": "stable",
|
|
1346
|
+
"migrationStage": null,
|
|
1347
|
+
"docsId": null,
|
|
1348
|
+
"storyId": null,
|
|
1349
|
+
"docPage": null,
|
|
1350
|
+
"app": null,
|
|
1351
|
+
"looks": []
|
|
1352
|
+
},
|
|
1294
1353
|
{
|
|
1295
1354
|
"name": "cn",
|
|
1296
1355
|
"repo": "estiva-ui",
|
|
@@ -1851,6 +1910,42 @@
|
|
|
1851
1910
|
"app": null,
|
|
1852
1911
|
"looks": []
|
|
1853
1912
|
},
|
|
1913
|
+
{
|
|
1914
|
+
"name": "CommentCount",
|
|
1915
|
+
"repo": "estiva-ui",
|
|
1916
|
+
"kind": "component",
|
|
1917
|
+
"importPath": "@estiva-app/ui",
|
|
1918
|
+
"sourceFile": "src/LinkParts.tsx",
|
|
1919
|
+
"purpose": "The count of what was said, a link to where it is read.",
|
|
1920
|
+
"purposeFrom": "comment",
|
|
1921
|
+
"props": [
|
|
1922
|
+
{
|
|
1923
|
+
"name": "conversation",
|
|
1924
|
+
"takes": "LinkedConversation",
|
|
1925
|
+
"required": true,
|
|
1926
|
+
"note": null
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
"name": "noun",
|
|
1930
|
+
"takes": "text",
|
|
1931
|
+
"required": false,
|
|
1932
|
+
"note": null
|
|
1933
|
+
}
|
|
1934
|
+
],
|
|
1935
|
+
"variants": [],
|
|
1936
|
+
"ownsBehaviours": [],
|
|
1937
|
+
"status": "stable",
|
|
1938
|
+
"migrationStage": null,
|
|
1939
|
+
"docsId": "components-linkparts--docs",
|
|
1940
|
+
"storyId": "components-linkparts--pickers",
|
|
1941
|
+
"docPage": null,
|
|
1942
|
+
"app": null,
|
|
1943
|
+
"looks": [
|
|
1944
|
+
"-mx-1 rounded-sm text-caption tabular-nums hover:bg-bg-active font-medium text-text-primary",
|
|
1945
|
+
"-mx-1 rounded-sm text-caption tabular-nums hover:bg-bg-active text-text-secondary",
|
|
1946
|
+
"-mx-1 rounded-sm text-caption tabular-nums hover:bg-bg-active"
|
|
1947
|
+
]
|
|
1948
|
+
},
|
|
1854
1949
|
{
|
|
1855
1950
|
"name": "commentElement",
|
|
1856
1951
|
"repo": "estiva-ui",
|
|
@@ -4017,6 +4112,111 @@
|
|
|
4017
4112
|
"underline underline-offset-2 hover:text-text-primary truncate after:rounded-md focus-visible:outline-none"
|
|
4018
4113
|
]
|
|
4019
4114
|
},
|
|
4115
|
+
{
|
|
4116
|
+
"name": "LinkCard",
|
|
4117
|
+
"repo": "estiva-ui",
|
|
4118
|
+
"kind": "component",
|
|
4119
|
+
"importPath": "@estiva-app/ui",
|
|
4120
|
+
"sourceFile": "src/LinkCard.tsx",
|
|
4121
|
+
"purpose": "A link's card: what a row cannot hold, and the changes the reader may make from it.",
|
|
4122
|
+
"purposeFrom": "page",
|
|
4123
|
+
"props": [
|
|
4124
|
+
{
|
|
4125
|
+
"name": "link",
|
|
4126
|
+
"takes": "LinkState",
|
|
4127
|
+
"required": true,
|
|
4128
|
+
"note": null
|
|
4129
|
+
},
|
|
4130
|
+
{
|
|
4131
|
+
"name": "readOnly",
|
|
4132
|
+
"takes": "true/false",
|
|
4133
|
+
"required": false,
|
|
4134
|
+
"note": "The values read as words, never pickers: the hover preview."
|
|
4135
|
+
},
|
|
4136
|
+
{
|
|
4137
|
+
"name": "bare",
|
|
4138
|
+
"takes": "true/false",
|
|
4139
|
+
"required": false,
|
|
4140
|
+
"note": "No frame of its own: inside a box that draws one, as the hover preview's."
|
|
4141
|
+
}
|
|
4142
|
+
],
|
|
4143
|
+
"variants": [],
|
|
4144
|
+
"ownsBehaviours": [],
|
|
4145
|
+
"status": "stable",
|
|
4146
|
+
"migrationStage": null,
|
|
4147
|
+
"docsId": "components-linkcard--docs",
|
|
4148
|
+
"storyId": "components-linkcard--default",
|
|
4149
|
+
"docPage": "src/LinkCard.mdx",
|
|
4150
|
+
"app": null,
|
|
4151
|
+
"looks": []
|
|
4152
|
+
},
|
|
4153
|
+
{
|
|
4154
|
+
"name": "LinkCardLoading",
|
|
4155
|
+
"repo": "estiva-ui",
|
|
4156
|
+
"kind": "component",
|
|
4157
|
+
"importPath": "@estiva-app/ui",
|
|
4158
|
+
"sourceFile": "src/LinkCard.tsx",
|
|
4159
|
+
"purpose": "The card it will become, drawn in bars at the card's own height.",
|
|
4160
|
+
"purposeFrom": "comment",
|
|
4161
|
+
"props": [
|
|
4162
|
+
{
|
|
4163
|
+
"name": "kind",
|
|
4164
|
+
"takes": "LinkedKind",
|
|
4165
|
+
"required": true,
|
|
4166
|
+
"note": null
|
|
4167
|
+
},
|
|
4168
|
+
{
|
|
4169
|
+
"name": "shape",
|
|
4170
|
+
"takes": "LoadingShape",
|
|
4171
|
+
"required": false,
|
|
4172
|
+
"note": "What the card will hold (`loadingShapeOf` from the last time it drew); the kind's usual card otherwise."
|
|
4173
|
+
}
|
|
4174
|
+
],
|
|
4175
|
+
"variants": [],
|
|
4176
|
+
"ownsBehaviours": [],
|
|
4177
|
+
"status": "stable",
|
|
4178
|
+
"migrationStage": null,
|
|
4179
|
+
"docsId": "components-linkcard--docs",
|
|
4180
|
+
"storyId": "components-linkcard--default",
|
|
4181
|
+
"docPage": null,
|
|
4182
|
+
"app": null,
|
|
4183
|
+
"looks": [
|
|
4184
|
+
"divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong",
|
|
4185
|
+
"rounded-md border border-border-subtle leaf:border-border-strong"
|
|
4186
|
+
]
|
|
4187
|
+
},
|
|
4188
|
+
{
|
|
4189
|
+
"name": "LinkChip",
|
|
4190
|
+
"repo": "estiva-ui",
|
|
4191
|
+
"kind": "component",
|
|
4192
|
+
"importPath": "@estiva-app/ui",
|
|
4193
|
+
"sourceFile": "src/LinkChip.tsx",
|
|
4194
|
+
"purpose": "A link in a sentence: its icon, its key, its title cut short, and its status as a shape.",
|
|
4195
|
+
"purposeFrom": "page",
|
|
4196
|
+
"props": [
|
|
4197
|
+
{
|
|
4198
|
+
"name": "link",
|
|
4199
|
+
"takes": "LinkState",
|
|
4200
|
+
"required": true,
|
|
4201
|
+
"note": null
|
|
4202
|
+
},
|
|
4203
|
+
{
|
|
4204
|
+
"name": "preview",
|
|
4205
|
+
"takes": "true/false",
|
|
4206
|
+
"required": false,
|
|
4207
|
+
"note": "Hovering shows its card. Off where a card would cover what the reader is choosing from."
|
|
4208
|
+
}
|
|
4209
|
+
],
|
|
4210
|
+
"variants": [],
|
|
4211
|
+
"ownsBehaviours": [],
|
|
4212
|
+
"status": "stable",
|
|
4213
|
+
"migrationStage": null,
|
|
4214
|
+
"docsId": "components-linkchip--docs",
|
|
4215
|
+
"storyId": "components-linkchip--in-a-sentence",
|
|
4216
|
+
"docPage": "src/LinkChip.mdx",
|
|
4217
|
+
"app": null,
|
|
4218
|
+
"looks": []
|
|
4219
|
+
},
|
|
4020
4220
|
{
|
|
4021
4221
|
"name": "LinkChips",
|
|
4022
4222
|
"repo": "estiva-ui",
|
|
@@ -4030,9 +4230,259 @@
|
|
|
4030
4230
|
"ownsBehaviours": [],
|
|
4031
4231
|
"status": "stable",
|
|
4032
4232
|
"migrationStage": null,
|
|
4033
|
-
"docsId": "primitives-linkchips--docs",
|
|
4034
|
-
"storyId": "primitives-linkchips--in-an-editor",
|
|
4035
|
-
"docPage": "src/LinkChips.mdx",
|
|
4233
|
+
"docsId": "primitives-linkchips--docs",
|
|
4234
|
+
"storyId": "primitives-linkchips--in-an-editor",
|
|
4235
|
+
"docPage": "src/LinkChips.mdx",
|
|
4236
|
+
"app": null,
|
|
4237
|
+
"looks": []
|
|
4238
|
+
},
|
|
4239
|
+
{
|
|
4240
|
+
"name": "LinkedIcon",
|
|
4241
|
+
"repo": "estiva-ui",
|
|
4242
|
+
"kind": "component",
|
|
4243
|
+
"importPath": "@estiva-app/ui",
|
|
4244
|
+
"sourceFile": "src/LinkParts.tsx",
|
|
4245
|
+
"purpose": "The icon for what a link stands for. A page of text has its own.",
|
|
4246
|
+
"purposeFrom": "comment",
|
|
4247
|
+
"props": [
|
|
4248
|
+
{
|
|
4249
|
+
"name": "kind",
|
|
4250
|
+
"takes": "LinkedKind",
|
|
4251
|
+
"required": true,
|
|
4252
|
+
"note": null
|
|
4253
|
+
},
|
|
4254
|
+
{
|
|
4255
|
+
"name": "size",
|
|
4256
|
+
"takes": "14 | 16",
|
|
4257
|
+
"required": false,
|
|
4258
|
+
"note": null
|
|
4259
|
+
},
|
|
4260
|
+
{
|
|
4261
|
+
"name": "tone",
|
|
4262
|
+
"takes": "secondary | inherit",
|
|
4263
|
+
"required": false,
|
|
4264
|
+
"note": null
|
|
4265
|
+
}
|
|
4266
|
+
],
|
|
4267
|
+
"variants": [
|
|
4268
|
+
{
|
|
4269
|
+
"prop": "tone",
|
|
4270
|
+
"values": [
|
|
4271
|
+
"secondary",
|
|
4272
|
+
"inherit"
|
|
4273
|
+
]
|
|
4274
|
+
}
|
|
4275
|
+
],
|
|
4276
|
+
"ownsBehaviours": [],
|
|
4277
|
+
"status": "stable",
|
|
4278
|
+
"migrationStage": null,
|
|
4279
|
+
"docsId": "components-linkparts--docs",
|
|
4280
|
+
"storyId": "components-linkparts--pickers",
|
|
4281
|
+
"docPage": null,
|
|
4282
|
+
"app": null,
|
|
4283
|
+
"looks": []
|
|
4284
|
+
},
|
|
4285
|
+
{
|
|
4286
|
+
"name": "LinkKey",
|
|
4287
|
+
"repo": "estiva-ui",
|
|
4288
|
+
"kind": "component",
|
|
4289
|
+
"importPath": "@estiva-app/ui",
|
|
4290
|
+
"sourceFile": "src/LinkParts.tsx",
|
|
4291
|
+
"purpose": "A key, the way people say it (\"ABC-2\"): before the title, quieter than it.",
|
|
4292
|
+
"purposeFrom": "comment",
|
|
4293
|
+
"props": [
|
|
4294
|
+
{
|
|
4295
|
+
"name": "children",
|
|
4296
|
+
"takes": "text",
|
|
4297
|
+
"required": true,
|
|
4298
|
+
"note": null
|
|
4299
|
+
}
|
|
4300
|
+
],
|
|
4301
|
+
"variants": [],
|
|
4302
|
+
"ownsBehaviours": [],
|
|
4303
|
+
"status": "stable",
|
|
4304
|
+
"migrationStage": null,
|
|
4305
|
+
"docsId": "components-linkparts--docs",
|
|
4306
|
+
"storyId": "components-linkparts--pickers",
|
|
4307
|
+
"docPage": null,
|
|
4308
|
+
"app": null,
|
|
4309
|
+
"looks": []
|
|
4310
|
+
},
|
|
4311
|
+
{
|
|
4312
|
+
"name": "LinkPickers",
|
|
4313
|
+
"repo": "estiva-ui",
|
|
4314
|
+
"kind": "component",
|
|
4315
|
+
"importPath": "@estiva-app/ui",
|
|
4316
|
+
"sourceFile": "src/LinkParts.tsx",
|
|
4317
|
+
"purpose": "A status and an owner, where the reader can change them from the card.",
|
|
4318
|
+
"purposeFrom": "comment",
|
|
4319
|
+
"props": [
|
|
4320
|
+
{
|
|
4321
|
+
"name": "status",
|
|
4322
|
+
"takes": "LinkedPicker",
|
|
4323
|
+
"required": false,
|
|
4324
|
+
"note": null
|
|
4325
|
+
},
|
|
4326
|
+
{
|
|
4327
|
+
"name": "owner",
|
|
4328
|
+
"takes": "LinkedPicker",
|
|
4329
|
+
"required": false,
|
|
4330
|
+
"note": null
|
|
4331
|
+
},
|
|
4332
|
+
{
|
|
4333
|
+
"name": "ownerLabel",
|
|
4334
|
+
"takes": "text",
|
|
4335
|
+
"required": false,
|
|
4336
|
+
"note": "The owner's word: \"Assignee\", \"Lead\"."
|
|
4337
|
+
},
|
|
4338
|
+
{
|
|
4339
|
+
"name": "readOnly",
|
|
4340
|
+
"takes": "true/false",
|
|
4341
|
+
"required": false,
|
|
4342
|
+
"note": "Draws the values as words even where they could be changed: the hover preview."
|
|
4343
|
+
}
|
|
4344
|
+
],
|
|
4345
|
+
"variants": [],
|
|
4346
|
+
"ownsBehaviours": [],
|
|
4347
|
+
"status": "stable",
|
|
4348
|
+
"migrationStage": null,
|
|
4349
|
+
"docsId": "components-linkparts--docs",
|
|
4350
|
+
"storyId": "components-linkparts--pickers",
|
|
4351
|
+
"docPage": null,
|
|
4352
|
+
"app": null,
|
|
4353
|
+
"looks": []
|
|
4354
|
+
},
|
|
4355
|
+
{
|
|
4356
|
+
"name": "LinkPreview",
|
|
4357
|
+
"repo": "estiva-ui",
|
|
4358
|
+
"kind": "component",
|
|
4359
|
+
"importPath": "@estiva-app/ui",
|
|
4360
|
+
"sourceFile": "src/LinkPreview.tsx",
|
|
4361
|
+
"purpose": "A link's card on hover over its chip or its row, read only, in the package's one elevated box.",
|
|
4362
|
+
"purposeFrom": "page",
|
|
4363
|
+
"props": [
|
|
4364
|
+
{
|
|
4365
|
+
"name": "linked",
|
|
4366
|
+
"takes": "Linked",
|
|
4367
|
+
"required": true,
|
|
4368
|
+
"note": null
|
|
4369
|
+
},
|
|
4370
|
+
{
|
|
4371
|
+
"name": "block",
|
|
4372
|
+
"takes": "true/false",
|
|
4373
|
+
"required": false,
|
|
4374
|
+
"note": "The trigger fills its column, as a row does; a chip is inline."
|
|
4375
|
+
},
|
|
4376
|
+
{
|
|
4377
|
+
"name": "children",
|
|
4378
|
+
"takes": "anything",
|
|
4379
|
+
"required": true,
|
|
4380
|
+
"note": null
|
|
4381
|
+
}
|
|
4382
|
+
],
|
|
4383
|
+
"variants": [],
|
|
4384
|
+
"ownsBehaviours": [],
|
|
4385
|
+
"status": "stable",
|
|
4386
|
+
"migrationStage": null,
|
|
4387
|
+
"docsId": "components-linkpreview--docs",
|
|
4388
|
+
"storyId": "components-linkpreview--on-hover",
|
|
4389
|
+
"docPage": "src/LinkPreview.mdx",
|
|
4390
|
+
"app": null,
|
|
4391
|
+
"looks": []
|
|
4392
|
+
},
|
|
4393
|
+
{
|
|
4394
|
+
"name": "LinkPreviewOpen",
|
|
4395
|
+
"repo": "estiva-ui",
|
|
4396
|
+
"kind": "component",
|
|
4397
|
+
"importPath": "@estiva-app/ui",
|
|
4398
|
+
"sourceFile": "src/LinkPreview.tsx",
|
|
4399
|
+
"purpose": "The preview drawn open, for a still picture of it: the same box PreviewCard draws.",
|
|
4400
|
+
"purposeFrom": "comment",
|
|
4401
|
+
"props": [
|
|
4402
|
+
{
|
|
4403
|
+
"name": "linked",
|
|
4404
|
+
"takes": "Linked",
|
|
4405
|
+
"required": true,
|
|
4406
|
+
"note": null
|
|
4407
|
+
}
|
|
4408
|
+
],
|
|
4409
|
+
"variants": [],
|
|
4410
|
+
"ownsBehaviours": [],
|
|
4411
|
+
"status": "stable",
|
|
4412
|
+
"migrationStage": null,
|
|
4413
|
+
"docsId": "components-linkpreview--docs",
|
|
4414
|
+
"storyId": "components-linkpreview--on-hover",
|
|
4415
|
+
"docPage": null,
|
|
4416
|
+
"app": null,
|
|
4417
|
+
"looks": []
|
|
4418
|
+
},
|
|
4419
|
+
{
|
|
4420
|
+
"name": "LinkRow",
|
|
4421
|
+
"repo": "estiva-ui",
|
|
4422
|
+
"kind": "component",
|
|
4423
|
+
"importPath": "@estiva-app/ui",
|
|
4424
|
+
"sourceFile": "src/LinkRow.tsx",
|
|
4425
|
+
"purpose": "A link alone on its line: one 36px row for every kind, with what it has in its corner.",
|
|
4426
|
+
"purposeFrom": "page",
|
|
4427
|
+
"props": [
|
|
4428
|
+
{
|
|
4429
|
+
"name": "link",
|
|
4430
|
+
"takes": "LinkState",
|
|
4431
|
+
"required": true,
|
|
4432
|
+
"note": null
|
|
4433
|
+
},
|
|
4434
|
+
{
|
|
4435
|
+
"name": "preview",
|
|
4436
|
+
"takes": "true/false",
|
|
4437
|
+
"required": false,
|
|
4438
|
+
"note": "Hovering shows its card."
|
|
4439
|
+
}
|
|
4440
|
+
],
|
|
4441
|
+
"variants": [],
|
|
4442
|
+
"ownsBehaviours": [],
|
|
4443
|
+
"status": "stable",
|
|
4444
|
+
"migrationStage": null,
|
|
4445
|
+
"docsId": "components-linkrow--docs",
|
|
4446
|
+
"storyId": "components-linkrow--default",
|
|
4447
|
+
"docPage": "src/LinkRow.mdx",
|
|
4448
|
+
"app": null,
|
|
4449
|
+
"looks": []
|
|
4450
|
+
},
|
|
4451
|
+
{
|
|
4452
|
+
"name": "LinkUnavailable",
|
|
4453
|
+
"repo": "estiva-ui",
|
|
4454
|
+
"kind": "component",
|
|
4455
|
+
"importPath": "@estiva-app/ui",
|
|
4456
|
+
"sourceFile": "src/LinkRow.tsx",
|
|
4457
|
+
"purpose": "Not available: deleted, or not this reader's to see, which read the same.",
|
|
4458
|
+
"purposeFrom": "comment",
|
|
4459
|
+
"props": [
|
|
4460
|
+
{
|
|
4461
|
+
"name": "kind",
|
|
4462
|
+
"takes": "LinkedKind",
|
|
4463
|
+
"required": true,
|
|
4464
|
+
"note": null
|
|
4465
|
+
},
|
|
4466
|
+
{
|
|
4467
|
+
"name": "noun",
|
|
4468
|
+
"takes": "text",
|
|
4469
|
+
"required": true,
|
|
4470
|
+
"note": "What it is, in a word: \"Item\". Drawn as \"Item — not available.\"."
|
|
4471
|
+
},
|
|
4472
|
+
{
|
|
4473
|
+
"name": "openIn",
|
|
4474
|
+
"takes": "{ app: string; href: string }",
|
|
4475
|
+
"required": false,
|
|
4476
|
+
"note": "Where it may still open, for someone who can: its app and address."
|
|
4477
|
+
}
|
|
4478
|
+
],
|
|
4479
|
+
"variants": [],
|
|
4480
|
+
"ownsBehaviours": [],
|
|
4481
|
+
"status": "stable",
|
|
4482
|
+
"migrationStage": null,
|
|
4483
|
+
"docsId": "components-linkrow--docs",
|
|
4484
|
+
"storyId": "components-linkrow--default",
|
|
4485
|
+
"docPage": null,
|
|
4036
4486
|
"app": null,
|
|
4037
4487
|
"looks": []
|
|
4038
4488
|
},
|
|
@@ -4104,6 +4554,140 @@
|
|
|
4104
4554
|
"app": null,
|
|
4105
4555
|
"looks": []
|
|
4106
4556
|
},
|
|
4557
|
+
{
|
|
4558
|
+
"name": "loadingShapeOf",
|
|
4559
|
+
"repo": "estiva-ui",
|
|
4560
|
+
"kind": "helper",
|
|
4561
|
+
"importPath": "@estiva-app/ui",
|
|
4562
|
+
"sourceFile": "src/linked.ts",
|
|
4563
|
+
"purpose": "The shape `linked`'s card takes, for its placeholder the next time it loads.",
|
|
4564
|
+
"purposeFrom": "comment",
|
|
4565
|
+
"props": [
|
|
4566
|
+
{
|
|
4567
|
+
"name": "id",
|
|
4568
|
+
"takes": "text",
|
|
4569
|
+
"required": true,
|
|
4570
|
+
"note": "Its address. Two `Linked` with the same `id` are the same thing (identity by value, not by object)."
|
|
4571
|
+
},
|
|
4572
|
+
{
|
|
4573
|
+
"name": "kind",
|
|
4574
|
+
"takes": "LinkedKind",
|
|
4575
|
+
"required": true,
|
|
4576
|
+
"note": null
|
|
4577
|
+
},
|
|
4578
|
+
{
|
|
4579
|
+
"name": "title",
|
|
4580
|
+
"takes": "text",
|
|
4581
|
+
"required": true,
|
|
4582
|
+
"note": null
|
|
4583
|
+
},
|
|
4584
|
+
{
|
|
4585
|
+
"name": "href",
|
|
4586
|
+
"takes": "text",
|
|
4587
|
+
"required": true,
|
|
4588
|
+
"note": "Opens it. An address in this app goes through `AppProvider`'s `navigate`."
|
|
4589
|
+
},
|
|
4590
|
+
{
|
|
4591
|
+
"name": "key",
|
|
4592
|
+
"takes": "text",
|
|
4593
|
+
"required": false,
|
|
4594
|
+
"note": "What the reader calls it, quietly before the title: \"ABC-2\"."
|
|
4595
|
+
},
|
|
4596
|
+
{
|
|
4597
|
+
"name": "subtitle",
|
|
4598
|
+
"takes": "text",
|
|
4599
|
+
"required": false,
|
|
4600
|
+
"note": "The line under a card's title: what it is in."
|
|
4601
|
+
},
|
|
4602
|
+
{
|
|
4603
|
+
"name": "summary",
|
|
4604
|
+
"takes": "text",
|
|
4605
|
+
"required": false,
|
|
4606
|
+
"note": "Its short summary, a sentence or two. Without one a card shows the title alone."
|
|
4607
|
+
},
|
|
4608
|
+
{
|
|
4609
|
+
"name": "status",
|
|
4610
|
+
"takes": "LinkedPicker",
|
|
4611
|
+
"required": false,
|
|
4612
|
+
"note": "Its status: each option carries its `colour`."
|
|
4613
|
+
},
|
|
4614
|
+
{
|
|
4615
|
+
"name": "owner",
|
|
4616
|
+
"takes": "LinkedPicker",
|
|
4617
|
+
"required": false,
|
|
4618
|
+
"note": "Who owns it, by the word the app uses (`ownerLabel`: \"Assignee\", \"Lead\")."
|
|
4619
|
+
},
|
|
4620
|
+
{
|
|
4621
|
+
"name": "ownerLabel",
|
|
4622
|
+
"takes": "text",
|
|
4623
|
+
"required": false,
|
|
4624
|
+
"note": null
|
|
4625
|
+
},
|
|
4626
|
+
{
|
|
4627
|
+
"name": "conversation",
|
|
4628
|
+
"takes": "LinkedConversation & { noun?: string }",
|
|
4629
|
+
"required": false,
|
|
4630
|
+
"note": "What was said about it. `noun` names it for a screen reader: \"comments\" by default."
|
|
4631
|
+
},
|
|
4632
|
+
{
|
|
4633
|
+
"name": "children",
|
|
4634
|
+
"takes": "LinkedChild[]",
|
|
4635
|
+
"required": false,
|
|
4636
|
+
"note": "Items inside it, drawn as rows in its card."
|
|
4637
|
+
},
|
|
4638
|
+
{
|
|
4639
|
+
"name": "done",
|
|
4640
|
+
"takes": "{ done: number; total: number }",
|
|
4641
|
+
"required": false,
|
|
4642
|
+
"note": "How far along it is, drawn as a ring."
|
|
4643
|
+
},
|
|
4644
|
+
{
|
|
4645
|
+
"name": "members",
|
|
4646
|
+
"takes": "LinkedPerson[]",
|
|
4647
|
+
"required": false,
|
|
4648
|
+
"note": "Who is in it, as faces."
|
|
4649
|
+
},
|
|
4650
|
+
{
|
|
4651
|
+
"name": "authors",
|
|
4652
|
+
"takes": "LinkedPerson[]",
|
|
4653
|
+
"required": false,
|
|
4654
|
+
"note": "Who wrote it, as faces."
|
|
4655
|
+
},
|
|
4656
|
+
{
|
|
4657
|
+
"name": "updated",
|
|
4658
|
+
"takes": "text",
|
|
4659
|
+
"required": false,
|
|
4660
|
+
"note": "When it last changed, in the app's words: \"2h ago\"."
|
|
4661
|
+
},
|
|
4662
|
+
{
|
|
4663
|
+
"name": "latest",
|
|
4664
|
+
"takes": "{ author: LinkedPerson; body: string; at: string }",
|
|
4665
|
+
"required": false,
|
|
4666
|
+
"note": "The newest thing said in it, drawn only when the reader may read it."
|
|
4667
|
+
},
|
|
4668
|
+
{
|
|
4669
|
+
"name": "body",
|
|
4670
|
+
"takes": "text",
|
|
4671
|
+
"required": false,
|
|
4672
|
+
"note": "Words a person wrote, linked as themselves: drawn with `author`'s face, not an icon."
|
|
4673
|
+
},
|
|
4674
|
+
{
|
|
4675
|
+
"name": "author",
|
|
4676
|
+
"takes": "LinkedPerson",
|
|
4677
|
+
"required": false,
|
|
4678
|
+
"note": null
|
|
4679
|
+
}
|
|
4680
|
+
],
|
|
4681
|
+
"variants": [],
|
|
4682
|
+
"ownsBehaviours": [],
|
|
4683
|
+
"status": "stable",
|
|
4684
|
+
"migrationStage": null,
|
|
4685
|
+
"docsId": null,
|
|
4686
|
+
"storyId": null,
|
|
4687
|
+
"docPage": null,
|
|
4688
|
+
"app": null,
|
|
4689
|
+
"looks": []
|
|
4690
|
+
},
|
|
4107
4691
|
{
|
|
4108
4692
|
"name": "MembersDialog",
|
|
4109
4693
|
"repo": "estiva-ui",
|
|
@@ -5080,6 +5664,83 @@
|
|
|
5080
5664
|
"app": null,
|
|
5081
5665
|
"looks": []
|
|
5082
5666
|
},
|
|
5667
|
+
{
|
|
5668
|
+
"name": "PartCard",
|
|
5669
|
+
"repo": "estiva-ui",
|
|
5670
|
+
"kind": "component",
|
|
5671
|
+
"importPath": "@estiva-app/ui",
|
|
5672
|
+
"sourceFile": "src/PartCard.tsx",
|
|
5673
|
+
"purpose": "A part of something longer, shared live: its blocks as they are now, under the header of what it is part of.",
|
|
5674
|
+
"purposeFrom": "page",
|
|
5675
|
+
"props": [
|
|
5676
|
+
{
|
|
5677
|
+
"name": "state",
|
|
5678
|
+
"takes": "ready | loading | unavailable",
|
|
5679
|
+
"required": false,
|
|
5680
|
+
"note": "Where its lookup stands. Default `ready`."
|
|
5681
|
+
},
|
|
5682
|
+
{
|
|
5683
|
+
"name": "kind",
|
|
5684
|
+
"takes": "LinkedKind",
|
|
5685
|
+
"required": true,
|
|
5686
|
+
"note": "What it is part of, by its icon."
|
|
5687
|
+
},
|
|
5688
|
+
{
|
|
5689
|
+
"name": "heading",
|
|
5690
|
+
"takes": "text",
|
|
5691
|
+
"required": false,
|
|
5692
|
+
"note": "The title of what it is part of."
|
|
5693
|
+
},
|
|
5694
|
+
{
|
|
5695
|
+
"name": "href",
|
|
5696
|
+
"takes": "text",
|
|
5697
|
+
"required": false,
|
|
5698
|
+
"note": "Opens what it is part of, at the part."
|
|
5699
|
+
},
|
|
5700
|
+
{
|
|
5701
|
+
"name": "partKey",
|
|
5702
|
+
"takes": "text",
|
|
5703
|
+
"required": false,
|
|
5704
|
+
"note": "The key of what it is part of: \"ABC-2\"."
|
|
5705
|
+
},
|
|
5706
|
+
{
|
|
5707
|
+
"name": "noun",
|
|
5708
|
+
"takes": "text",
|
|
5709
|
+
"required": false,
|
|
5710
|
+
"note": "What it is part of, in a word, for \"A part of this item — not available.\"."
|
|
5711
|
+
},
|
|
5712
|
+
{
|
|
5713
|
+
"name": "openIn",
|
|
5714
|
+
"takes": "{ app: string; href: string }",
|
|
5715
|
+
"required": false,
|
|
5716
|
+
"note": "Where it may still open, for someone who can, when it is not available."
|
|
5717
|
+
},
|
|
5718
|
+
{
|
|
5719
|
+
"name": "children",
|
|
5720
|
+
"takes": "anything",
|
|
5721
|
+
"required": false,
|
|
5722
|
+
"note": "The part's blocks, drawn by the app."
|
|
5723
|
+
}
|
|
5724
|
+
],
|
|
5725
|
+
"variants": [
|
|
5726
|
+
{
|
|
5727
|
+
"prop": "state",
|
|
5728
|
+
"values": [
|
|
5729
|
+
"ready",
|
|
5730
|
+
"loading",
|
|
5731
|
+
"unavailable"
|
|
5732
|
+
]
|
|
5733
|
+
}
|
|
5734
|
+
],
|
|
5735
|
+
"ownsBehaviours": [],
|
|
5736
|
+
"status": "stable",
|
|
5737
|
+
"migrationStage": null,
|
|
5738
|
+
"docsId": "components-partcard--docs",
|
|
5739
|
+
"storyId": "components-partcard--default",
|
|
5740
|
+
"docPage": "src/PartCard.mdx",
|
|
5741
|
+
"app": null,
|
|
5742
|
+
"looks": []
|
|
5743
|
+
},
|
|
5083
5744
|
{
|
|
5084
5745
|
"name": "pastedImageName",
|
|
5085
5746
|
"repo": "estiva-ui",
|
|
@@ -5623,6 +6284,38 @@
|
|
|
5623
6284
|
"rounded-full bg-success-muted transition-[width] duration-300"
|
|
5624
6285
|
]
|
|
5625
6286
|
},
|
|
6287
|
+
{
|
|
6288
|
+
"name": "ProgressRing",
|
|
6289
|
+
"repo": "estiva-ui",
|
|
6290
|
+
"kind": "component",
|
|
6291
|
+
"importPath": "@estiva-app/ui",
|
|
6292
|
+
"sourceFile": "src/LinkParts.tsx",
|
|
6293
|
+
"purpose": "Progress as a small ring, with the count beside it.",
|
|
6294
|
+
"purposeFrom": "comment",
|
|
6295
|
+
"props": [
|
|
6296
|
+
{
|
|
6297
|
+
"name": "done",
|
|
6298
|
+
"takes": "number",
|
|
6299
|
+
"required": true,
|
|
6300
|
+
"note": null
|
|
6301
|
+
},
|
|
6302
|
+
{
|
|
6303
|
+
"name": "total",
|
|
6304
|
+
"takes": "number",
|
|
6305
|
+
"required": true,
|
|
6306
|
+
"note": null
|
|
6307
|
+
}
|
|
6308
|
+
],
|
|
6309
|
+
"variants": [],
|
|
6310
|
+
"ownsBehaviours": [],
|
|
6311
|
+
"status": "stable",
|
|
6312
|
+
"migrationStage": null,
|
|
6313
|
+
"docsId": "components-linkparts--docs",
|
|
6314
|
+
"storyId": "components-linkparts--pickers",
|
|
6315
|
+
"docPage": null,
|
|
6316
|
+
"app": null,
|
|
6317
|
+
"looks": []
|
|
6318
|
+
},
|
|
5626
6319
|
{
|
|
5627
6320
|
"name": "Property",
|
|
5628
6321
|
"repo": "estiva-ui",
|
|
@@ -7018,9 +7711,29 @@
|
|
|
7018
7711
|
"takes": "CSSProperties",
|
|
7019
7712
|
"required": false,
|
|
7020
7713
|
"note": null
|
|
7714
|
+
},
|
|
7715
|
+
{
|
|
7716
|
+
"name": "on",
|
|
7717
|
+
"takes": "surface | inset",
|
|
7718
|
+
"required": false,
|
|
7719
|
+
"note": null
|
|
7720
|
+
},
|
|
7721
|
+
{
|
|
7722
|
+
"name": "shape",
|
|
7723
|
+
"takes": "keyof typeof SKELETON_SHAPE",
|
|
7724
|
+
"required": false,
|
|
7725
|
+
"note": null
|
|
7726
|
+
}
|
|
7727
|
+
],
|
|
7728
|
+
"variants": [
|
|
7729
|
+
{
|
|
7730
|
+
"prop": "on",
|
|
7731
|
+
"values": [
|
|
7732
|
+
"surface",
|
|
7733
|
+
"inset"
|
|
7734
|
+
]
|
|
7021
7735
|
}
|
|
7022
7736
|
],
|
|
7023
|
-
"variants": [],
|
|
7024
7737
|
"ownsBehaviours": [],
|
|
7025
7738
|
"status": "stable",
|
|
7026
7739
|
"migrationStage": null,
|
|
@@ -7126,6 +7839,32 @@
|
|
|
7126
7839
|
"app": null,
|
|
7127
7840
|
"looks": []
|
|
7128
7841
|
},
|
|
7842
|
+
{
|
|
7843
|
+
"name": "StatusMark",
|
|
7844
|
+
"repo": "estiva-ui",
|
|
7845
|
+
"kind": "component",
|
|
7846
|
+
"importPath": "@estiva-app/ui",
|
|
7847
|
+
"sourceFile": "src/LinkParts.tsx",
|
|
7848
|
+
"purpose": "A status as its shape, which reads without colour; its words on hover and to a screen reader.",
|
|
7849
|
+
"purposeFrom": "comment",
|
|
7850
|
+
"props": [
|
|
7851
|
+
{
|
|
7852
|
+
"name": "status",
|
|
7853
|
+
"takes": "LinkedStatus",
|
|
7854
|
+
"required": true,
|
|
7855
|
+
"note": null
|
|
7856
|
+
}
|
|
7857
|
+
],
|
|
7858
|
+
"variants": [],
|
|
7859
|
+
"ownsBehaviours": [],
|
|
7860
|
+
"status": "stable",
|
|
7861
|
+
"migrationStage": null,
|
|
7862
|
+
"docsId": "components-linkparts--docs",
|
|
7863
|
+
"storyId": "components-linkparts--pickers",
|
|
7864
|
+
"docPage": null,
|
|
7865
|
+
"app": null,
|
|
7866
|
+
"looks": []
|
|
7867
|
+
},
|
|
7129
7868
|
{
|
|
7130
7869
|
"name": "SuggestionMenu",
|
|
7131
7870
|
"repo": "estiva-ui",
|
|
@@ -8268,6 +9007,25 @@
|
|
|
8268
9007
|
"app": null,
|
|
8269
9008
|
"looks": []
|
|
8270
9009
|
},
|
|
9010
|
+
{
|
|
9011
|
+
"name": "unavailableMemory",
|
|
9012
|
+
"repo": "estiva-ui",
|
|
9013
|
+
"kind": "helper",
|
|
9014
|
+
"importPath": "@estiva-app/ui",
|
|
9015
|
+
"sourceFile": "src/linked.ts",
|
|
9016
|
+
"purpose": "The device's memory of links it could not show, under the app's own `storageKey`, keeping the newest `limit`.",
|
|
9017
|
+
"purposeFrom": "comment",
|
|
9018
|
+
"props": [],
|
|
9019
|
+
"variants": [],
|
|
9020
|
+
"ownsBehaviours": [],
|
|
9021
|
+
"status": "stable",
|
|
9022
|
+
"migrationStage": null,
|
|
9023
|
+
"docsId": null,
|
|
9024
|
+
"storyId": null,
|
|
9025
|
+
"docPage": null,
|
|
9026
|
+
"app": null,
|
|
9027
|
+
"looks": []
|
|
9028
|
+
},
|
|
8271
9029
|
{
|
|
8272
9030
|
"name": "UnknownBlock",
|
|
8273
9031
|
"repo": "estiva-ui",
|
|
@@ -8358,6 +9116,25 @@
|
|
|
8358
9116
|
"app": null,
|
|
8359
9117
|
"looks": []
|
|
8360
9118
|
},
|
|
9119
|
+
{
|
|
9120
|
+
"name": "useCanHover",
|
|
9121
|
+
"repo": "estiva-ui",
|
|
9122
|
+
"kind": "hook",
|
|
9123
|
+
"importPath": "@estiva-app/ui",
|
|
9124
|
+
"sourceFile": "src/LinkPreview.tsx",
|
|
9125
|
+
"purpose": "Whether this screen can hover. Without `matchMedia` (a test, a server) it is taken to.",
|
|
9126
|
+
"purposeFrom": "comment",
|
|
9127
|
+
"props": [],
|
|
9128
|
+
"variants": [],
|
|
9129
|
+
"ownsBehaviours": [],
|
|
9130
|
+
"status": "stable",
|
|
9131
|
+
"migrationStage": null,
|
|
9132
|
+
"docsId": "components-linkpreview--docs",
|
|
9133
|
+
"storyId": "components-linkpreview--on-hover",
|
|
9134
|
+
"docPage": null,
|
|
9135
|
+
"app": null,
|
|
9136
|
+
"looks": []
|
|
9137
|
+
},
|
|
8361
9138
|
{
|
|
8362
9139
|
"name": "useReferenceCards",
|
|
8363
9140
|
"repo": "estiva-ui",
|