@bitforgehq/ui 0.4.0 → 0.5.0-next.3
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/CHANGELOG.md +303 -0
- package/README.md +12 -12
- package/ai/MANIFEST.index.json +65 -2
- package/ai/MANIFEST.json +2221 -737
- package/ai/REFERENCE.index.json +161 -0
- package/ai/REFERENCE.json +1336 -27
- package/ai/UI_GUIDE.md +61 -20
- package/ai/components/app-frame.md +1 -1
- package/ai/components/chat-composer.md +357 -0
- package/ai/components/chat-message.md +251 -0
- package/ai/components/chat-thread.md +521 -0
- package/ai/components/checkbox.md +7 -0
- package/ai/components/combobox.md +12 -0
- package/ai/components/date-input.md +9 -0
- package/ai/components/datetime-input.md +2 -0
- package/ai/components/field.md +10 -0
- package/ai/components/file-input.md +498 -0
- package/ai/components/header.md +1 -1
- package/ai/components/image-input.md +368 -0
- package/ai/components/image-viewer.md +309 -0
- package/ai/components/media-card.md +478 -0
- package/ai/components/menu-button.md +2 -0
- package/ai/components/menu.md +10 -0
- package/ai/components/multi-combobox.md +7 -0
- package/ai/components/nav-group.md +10 -3
- package/ai/components/nav-item.md +11 -2
- package/ai/components/number-input.md +2 -7
- package/ai/components/popover.md +13 -0
- package/ai/components/radio-group.md +6 -0
- package/ai/components/segmented.md +14 -2
- package/ai/components/select.md +100 -42
- package/ai/components/sidebar-toggle.md +16 -9
- package/ai/components/sidebar.md +41 -13
- package/ai/components/tab-group.md +18 -2
- package/ai/components/table.md +17 -2
- package/ai/components/theme-menu-button.md +1 -0
- package/ai/components/time-input.md +2 -0
- package/ai/components/toolbar.md +7 -18
- package/ai/reference/bf-chat-composer-harness.md +64 -0
- package/ai/reference/bf-chat-message-role.md +27 -0
- package/ai/reference/bf-chat-message-status.md +28 -0
- package/ai/reference/bf-fade-in-directive.md +18 -0
- package/ai/reference/bf-file-input-harness.md +67 -0
- package/ai/reference/bf-file-input-variant.md +27 -0
- package/ai/reference/bf-image-input-harness.md +67 -0
- package/ai/reference/bf-image-input-shape.md +27 -0
- package/ai/reference/bf-image-viewer-actions-context.md +29 -0
- package/ai/reference/bf-image-viewer-harness.md +87 -0
- package/ai/reference/bf-image-viewer-image.md +25 -0
- package/ai/reference/bf-image-viewer-options.md +33 -0
- package/ai/reference/bf-image-viewer-origin.md +23 -0
- package/ai/reference/bf-image-viewer-ref.md +55 -0
- package/ai/reference/bf-image-viewer-service.md +32 -0
- package/ai/reference/bf-labels.md +105 -75
- package/ai/reference/bf-media-card-aspect.md +28 -0
- package/ai/reference/bf-media-card-harness.md +66 -0
- package/ai/reference/bf-motion-list-directive.md +22 -0
- package/ai/reference/bf-prose-directive.md +16 -0
- package/ai/reference/bf-rejected-file-reason.md +28 -0
- package/ai/reference/bf-rejected-file.md +28 -0
- package/ai/reference/bf-select-harness.md +14 -5
- package/ai/reference/bf-select-option.md +2 -0
- package/ai/reference/bf-size.md +3 -0
- package/ai/reference/bf_table_sort_select.md +23 -0
- package/ai/reference/provide-bf-labels.md +10 -3
- package/ai/reference/provide-bf-select.md +20 -0
- package/bin/bf-ui.js +1 -0
- package/fesm2022/bitforgehq-ui-overlay.mjs +2649 -606
- package/fesm2022/bitforgehq-ui-overlay.mjs.map +1 -1
- package/fesm2022/bitforgehq-ui-testing.mjs +356 -10
- package/fesm2022/bitforgehq-ui-testing.mjs.map +1 -1
- package/fesm2022/bitforgehq-ui.mjs +7531 -3989
- package/fesm2022/bitforgehq-ui.mjs.map +1 -1
- package/llms-full.txt +4151 -130
- package/llms.txt +31 -1
- package/package.json +1 -1
- package/theme.css +60 -0
- package/types/bitforgehq-ui-overlay.d.ts +684 -7
- package/types/bitforgehq-ui-testing.d.ts +434 -6
- package/types/bitforgehq-ui.d.ts +1473 -182
package/ai/REFERENCE.index.json
CHANGED
|
@@ -64,6 +64,13 @@
|
|
|
64
64
|
"entryPoint": "@bitforgehq/ui",
|
|
65
65
|
"summary": "Injection token that turns a projected tab bar into a navigation of links"
|
|
66
66
|
},
|
|
67
|
+
{
|
|
68
|
+
"name": "BF_TABLE_SORT_SELECT",
|
|
69
|
+
"slug": "bf_table_sort_select",
|
|
70
|
+
"kind": "token",
|
|
71
|
+
"entryPoint": "@bitforgehq/ui",
|
|
72
|
+
"summary": "The component a stacked table renders as its Sort by select"
|
|
73
|
+
},
|
|
67
74
|
{
|
|
68
75
|
"name": "BfActionDirective",
|
|
69
76
|
"slug": "bf-action-directive",
|
|
@@ -190,6 +197,20 @@
|
|
|
190
197
|
"entryPoint": "@bitforgehq/ui",
|
|
191
198
|
"summary": "The four card surfaces, from a raised panel to a flat outline"
|
|
192
199
|
},
|
|
200
|
+
{
|
|
201
|
+
"name": "BfChatMessageRole",
|
|
202
|
+
"slug": "bf-chat-message-role",
|
|
203
|
+
"kind": "type",
|
|
204
|
+
"entryPoint": "@bitforgehq/ui",
|
|
205
|
+
"summary": "Who wrote a chat message, the user or the assistant"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "BfChatMessageStatus",
|
|
209
|
+
"slug": "bf-chat-message-status",
|
|
210
|
+
"kind": "type",
|
|
211
|
+
"entryPoint": "@bitforgehq/ui",
|
|
212
|
+
"summary": "How a chat message ended: done, stopped by the user, or failed"
|
|
213
|
+
},
|
|
193
214
|
{
|
|
194
215
|
"name": "BfChipGroupMode",
|
|
195
216
|
"slug": "bf-chip-group-mode",
|
|
@@ -267,6 +288,13 @@
|
|
|
267
288
|
"entryPoint": "@bitforgehq/ui",
|
|
268
289
|
"summary": "The labels a phone keyboard can put on its Enter key"
|
|
269
290
|
},
|
|
291
|
+
{
|
|
292
|
+
"name": "BfFadeInDirective",
|
|
293
|
+
"slug": "bf-fade-in-directive",
|
|
294
|
+
"kind": "directive",
|
|
295
|
+
"entryPoint": "@bitforgehq/ui",
|
|
296
|
+
"summary": "Fades an image in once it has loaded instead of popping in"
|
|
297
|
+
},
|
|
270
298
|
{
|
|
271
299
|
"name": "bfFieldControlClass",
|
|
272
300
|
"slug": "bf-field-control-class",
|
|
@@ -288,6 +316,13 @@
|
|
|
288
316
|
"entryPoint": "@bitforgehq/ui",
|
|
289
317
|
"summary": "Former name of the shared size scale for text fields, kept until 1.0.0"
|
|
290
318
|
},
|
|
319
|
+
{
|
|
320
|
+
"name": "BfFileInputVariant",
|
|
321
|
+
"slug": "bf-file-input-variant",
|
|
322
|
+
"kind": "type",
|
|
323
|
+
"entryPoint": "@bitforgehq/ui",
|
|
324
|
+
"summary": "The two looks of a file picker, a compact field or a drop zone"
|
|
325
|
+
},
|
|
291
326
|
{
|
|
292
327
|
"name": "BfIconButtonVariant",
|
|
293
328
|
"slug": "bf-icon-button-variant",
|
|
@@ -295,6 +330,13 @@
|
|
|
295
330
|
"entryPoint": "@bitforgehq/ui",
|
|
296
331
|
"summary": "The four visual styles of an icon button, from tonal to plain text"
|
|
297
332
|
},
|
|
333
|
+
{
|
|
334
|
+
"name": "BfImageInputShape",
|
|
335
|
+
"slug": "bf-image-input-shape",
|
|
336
|
+
"kind": "type",
|
|
337
|
+
"entryPoint": "@bitforgehq/ui",
|
|
338
|
+
"summary": "The two tile shapes of an image picker, a circle or a rounded square"
|
|
339
|
+
},
|
|
298
340
|
{
|
|
299
341
|
"name": "BfInputAutocapitalize",
|
|
300
342
|
"slug": "bf-input-autocapitalize",
|
|
@@ -344,6 +386,20 @@
|
|
|
344
386
|
"entryPoint": "@bitforgehq/ui",
|
|
345
387
|
"summary": "The strings provideBfLabels replaces, each one falling back to the parent"
|
|
346
388
|
},
|
|
389
|
+
{
|
|
390
|
+
"name": "BfMediaCardAspect",
|
|
391
|
+
"slug": "bf-media-card-aspect",
|
|
392
|
+
"kind": "type",
|
|
393
|
+
"entryPoint": "@bitforgehq/ui",
|
|
394
|
+
"summary": "The four aspect ratios of a media card's image area, wide to portrait"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "BfMotionListDirective",
|
|
398
|
+
"slug": "bf-motion-list-directive",
|
|
399
|
+
"kind": "directive",
|
|
400
|
+
"entryPoint": "@bitforgehq/ui",
|
|
401
|
+
"summary": "Glides the items of a list or grid to their new place when it changes"
|
|
402
|
+
},
|
|
347
403
|
{
|
|
348
404
|
"name": "BfPageHeaderHeadingLevel",
|
|
349
405
|
"slug": "bf-page-header-heading-level",
|
|
@@ -365,6 +421,13 @@
|
|
|
365
421
|
"entryPoint": "@bitforgehq/ui",
|
|
366
422
|
"summary": "The four fill colours of a progress bar, from primary to danger"
|
|
367
423
|
},
|
|
424
|
+
{
|
|
425
|
+
"name": "BfProseDirective",
|
|
426
|
+
"slug": "bf-prose-directive",
|
|
427
|
+
"kind": "directive",
|
|
428
|
+
"entryPoint": "@bitforgehq/ui",
|
|
429
|
+
"summary": "Styles rendered markdown with the library tokens: headings, lists, code and quotes"
|
|
430
|
+
},
|
|
368
431
|
{
|
|
369
432
|
"name": "BfRadioGroupOrientation",
|
|
370
433
|
"slug": "bf-radio-group-orientation",
|
|
@@ -379,6 +442,20 @@
|
|
|
379
442
|
"entryPoint": "@bitforgehq/ui",
|
|
380
443
|
"summary": "One choice of a radio group with its value, label and optional description"
|
|
381
444
|
},
|
|
445
|
+
{
|
|
446
|
+
"name": "BfRejectedFile",
|
|
447
|
+
"slug": "bf-rejected-file",
|
|
448
|
+
"kind": "interface",
|
|
449
|
+
"entryPoint": "@bitforgehq/ui",
|
|
450
|
+
"summary": "A picked or dropped file that broke a rule, with the rule and its message"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"name": "BfRejectedFileReason",
|
|
454
|
+
"slug": "bf-rejected-file-reason",
|
|
455
|
+
"kind": "type",
|
|
456
|
+
"entryPoint": "@bitforgehq/ui",
|
|
457
|
+
"summary": "The rule a refused file broke, its type, its size or the file count"
|
|
458
|
+
},
|
|
382
459
|
{
|
|
383
460
|
"name": "BfSegmentedSize",
|
|
384
461
|
"slug": "bf-segmented-size",
|
|
@@ -771,6 +848,48 @@
|
|
|
771
848
|
"entryPoint": "@bitforgehq/ui/overlay",
|
|
772
849
|
"summary": "The context a template opened as a dialog receives: its ref and its data"
|
|
773
850
|
},
|
|
851
|
+
{
|
|
852
|
+
"name": "BfImageViewerActionsContext",
|
|
853
|
+
"slug": "bf-image-viewer-actions-context",
|
|
854
|
+
"kind": "interface",
|
|
855
|
+
"entryPoint": "@bitforgehq/ui/overlay",
|
|
856
|
+
"summary": "What the viewer's actions template receives: the shown image, its index and the ref"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"name": "BfImageViewerImage",
|
|
860
|
+
"slug": "bf-image-viewer-image",
|
|
861
|
+
"kind": "interface",
|
|
862
|
+
"entryPoint": "@bitforgehq/ui/overlay",
|
|
863
|
+
"summary": "One image the viewer shows: its URL, its name as alternative text and a caption"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "BfImageViewerOptions",
|
|
867
|
+
"slug": "bf-image-viewer-options",
|
|
868
|
+
"kind": "interface",
|
|
869
|
+
"entryPoint": "@bitforgehq/ui/overlay",
|
|
870
|
+
"summary": "Options of an image viewer: its images, the first one, its thumbnail and actions"
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"name": "BfImageViewerOrigin",
|
|
874
|
+
"slug": "bf-image-viewer-origin",
|
|
875
|
+
"kind": "type",
|
|
876
|
+
"entryPoint": "@bitforgehq/ui/overlay",
|
|
877
|
+
"summary": "The thumbnail an image viewer zooms from and back into, or a lookup per image"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"name": "BfImageViewerRef",
|
|
881
|
+
"slug": "bf-image-viewer-ref",
|
|
882
|
+
"kind": "class",
|
|
883
|
+
"entryPoint": "@bitforgehq/ui/overlay",
|
|
884
|
+
"summary": "Handle on an open image viewer that steps through its images and closes it"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"name": "BfImageViewerService",
|
|
888
|
+
"slug": "bf-image-viewer-service",
|
|
889
|
+
"kind": "service",
|
|
890
|
+
"entryPoint": "@bitforgehq/ui/overlay",
|
|
891
|
+
"summary": "Opens a full-screen image viewer that zooms from a thumbnail and steps through a set"
|
|
892
|
+
},
|
|
774
893
|
{
|
|
775
894
|
"name": "BfMenuButtonVariant",
|
|
776
895
|
"slug": "bf-menu-button-variant",
|
|
@@ -1086,6 +1205,13 @@
|
|
|
1086
1205
|
"entryPoint": "@bitforgehq/ui/overlay",
|
|
1087
1206
|
"summary": "Sets where desktop toasts appear and how many show at once, app-wide"
|
|
1088
1207
|
},
|
|
1208
|
+
{
|
|
1209
|
+
"name": "provideBfSelect",
|
|
1210
|
+
"slug": "provide-bf-select",
|
|
1211
|
+
"kind": "function",
|
|
1212
|
+
"entryPoint": "@bitforgehq/ui/overlay",
|
|
1213
|
+
"summary": "Makes a stacked table's Sort by select the styled bf-select, app-wide"
|
|
1214
|
+
},
|
|
1089
1215
|
{
|
|
1090
1216
|
"name": "scaleIn",
|
|
1091
1217
|
"slug": "scale-in",
|
|
@@ -1793,6 +1919,13 @@
|
|
|
1793
1919
|
"entryPoint": "@bitforgehq/ui/testing",
|
|
1794
1920
|
"summary": "Test harness for the charts: reads the series, toggles one and reads the data table"
|
|
1795
1921
|
},
|
|
1922
|
+
{
|
|
1923
|
+
"name": "BfChatComposerHarness",
|
|
1924
|
+
"slug": "bf-chat-composer-harness",
|
|
1925
|
+
"kind": "class",
|
|
1926
|
+
"entryPoint": "@bitforgehq/ui/testing",
|
|
1927
|
+
"summary": "Test harness for the chat composer: types, sends, stops and reads its state"
|
|
1928
|
+
},
|
|
1796
1929
|
{
|
|
1797
1930
|
"name": "BfComboboxHarness",
|
|
1798
1931
|
"slug": "bf-combobox-harness",
|
|
@@ -1828,6 +1961,13 @@
|
|
|
1828
1961
|
"entryPoint": "@bitforgehq/ui/testing",
|
|
1829
1962
|
"summary": "Test harness for a dialog: its title, text and role, its buttons and Escape"
|
|
1830
1963
|
},
|
|
1964
|
+
{
|
|
1965
|
+
"name": "BfFileInputHarness",
|
|
1966
|
+
"slug": "bf-file-input-harness",
|
|
1967
|
+
"kind": "class",
|
|
1968
|
+
"entryPoint": "@bitforgehq/ui/testing",
|
|
1969
|
+
"summary": "Test harness for the file input: drops files and reads the list and rejections"
|
|
1970
|
+
},
|
|
1831
1971
|
{
|
|
1832
1972
|
"name": "BfHarnessFilters",
|
|
1833
1973
|
"slug": "bf-harness-filters",
|
|
@@ -1835,6 +1975,20 @@
|
|
|
1835
1975
|
"entryPoint": "@bitforgehq/ui/testing",
|
|
1836
1976
|
"summary": "Filters a library harness query by selector, ancestor and the widget label"
|
|
1837
1977
|
},
|
|
1978
|
+
{
|
|
1979
|
+
"name": "BfImageInputHarness",
|
|
1980
|
+
"slug": "bf-image-input-harness",
|
|
1981
|
+
"kind": "class",
|
|
1982
|
+
"entryPoint": "@bitforgehq/ui/testing",
|
|
1983
|
+
"summary": "Test harness for the image input: drops an image on it and reads the preview"
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
"name": "BfImageViewerHarness",
|
|
1987
|
+
"slug": "bf-image-viewer-harness",
|
|
1988
|
+
"kind": "class",
|
|
1989
|
+
"entryPoint": "@bitforgehq/ui/testing",
|
|
1990
|
+
"summary": "Test harness for an image viewer: its image, index, caption, steps and close"
|
|
1991
|
+
},
|
|
1838
1992
|
{
|
|
1839
1993
|
"name": "BfJsdomShimOptions",
|
|
1840
1994
|
"slug": "bf-jsdom-shim-options",
|
|
@@ -1842,6 +1996,13 @@
|
|
|
1842
1996
|
"entryPoint": "@bitforgehq/ui/testing",
|
|
1843
1997
|
"summary": "Options of the jsdom shims: the matchMedia stub and its reduced-motion answer"
|
|
1844
1998
|
},
|
|
1999
|
+
{
|
|
2000
|
+
"name": "BfMediaCardHarness",
|
|
2001
|
+
"slug": "bf-media-card-harness",
|
|
2002
|
+
"kind": "class",
|
|
2003
|
+
"entryPoint": "@bitforgehq/ui/testing",
|
|
2004
|
+
"summary": "Test harness for a media card: its image state, its messages and its selection"
|
|
2005
|
+
},
|
|
1845
2006
|
{
|
|
1846
2007
|
"name": "BfMenuButtonHarness",
|
|
1847
2008
|
"slug": "bf-menu-button-harness",
|