@spfx-fast/sharepoint-ui 0.4.2 → 0.5.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/QUICKSTART.md +18 -0
- package/README.md +19 -24
- package/components.json +240 -5694
- package/dist/accordion.d.ts +11 -0
- package/dist/accordion.js +4 -0
- package/dist/alert.d.ts +3 -0
- package/dist/alert.js +4 -0
- package/dist/attachment-list.d.ts +15 -0
- package/dist/attachment-list.js +14 -0
- package/dist/avatar-group.d.ts +12 -0
- package/dist/avatar-group.js +7 -0
- package/dist/avatar.d.ts +6 -0
- package/dist/avatar.js +5 -0
- package/dist/badge.d.ts +3 -0
- package/dist/badge.js +4 -0
- package/dist/breadcrumb.d.ts +10 -0
- package/dist/breadcrumb.js +9 -0
- package/dist/button-group.d.ts +6 -0
- package/dist/button-group.js +4 -0
- package/dist/button.d.ts +3 -0
- package/dist/button.js +4 -0
- package/dist/card.d.ts +3 -0
- package/dist/card.js +4 -0
- package/dist/carousel.d.ts +11 -0
- package/dist/carousel.js +6 -0
- package/dist/checkbox.d.ts +3 -0
- package/dist/checkbox.js +4 -0
- package/dist/combobox.d.ts +9 -0
- package/dist/combobox.js +6 -0
- package/dist/command-bar.d.ts +6 -0
- package/dist/command-bar.js +4 -0
- package/dist/copy-button.d.ts +7 -0
- package/dist/copy-button.js +19 -0
- package/dist/data-grid.d.ts +25 -0
- package/dist/data-grid.js +39 -0
- package/dist/date-range-picker.d.ts +12 -0
- package/dist/date-range-picker.js +4 -0
- package/dist/dialog.d.ts +9 -0
- package/dist/dialog.js +21 -0
- package/dist/divider.d.ts +3 -0
- package/dist/divider.js +4 -0
- package/dist/drawer.d.ts +6 -0
- package/dist/drawer.js +5 -0
- package/dist/empty-state.d.ts +7 -0
- package/dist/empty-state.js +5 -0
- package/dist/field.d.ts +15 -0
- package/dist/field.js +11 -0
- package/dist/file-dropzone.d.ts +15 -0
- package/dist/file-dropzone.js +21 -0
- package/dist/filter-bar.d.ts +9 -0
- package/dist/filter-bar.js +9 -0
- package/dist/image.d.ts +5 -0
- package/dist/image.js +4 -0
- package/dist/index.d.ts +68 -76
- package/dist/index.js +60 -66
- package/dist/input.d.ts +3 -0
- package/dist/input.js +4 -0
- package/dist/label.d.ts +3 -0
- package/dist/label.js +4 -0
- package/dist/link.d.ts +3 -0
- package/dist/link.js +9 -0
- package/dist/list-view.d.ts +29 -0
- package/dist/list-view.js +14 -0
- package/dist/list.d.ts +6 -0
- package/dist/list.js +5 -0
- package/dist/lookup-picker.d.ts +12 -0
- package/dist/lookup-picker.js +4 -0
- package/dist/menu.d.ts +6 -0
- package/dist/menu.js +4 -0
- package/dist/nav.d.ts +12 -0
- package/dist/nav.js +4 -0
- package/dist/pagination.d.ts +11 -0
- package/dist/pagination.js +5 -0
- package/dist/person-picker.d.ts +13 -0
- package/dist/person-picker.js +4 -0
- package/dist/persona.d.ts +7 -0
- package/dist/persona.js +5 -0
- package/dist/popover.d.ts +6 -0
- package/dist/popover.js +4 -0
- package/dist/progress-bar.d.ts +5 -0
- package/dist/progress-bar.js +5 -0
- package/dist/radio-group.d.ts +6 -0
- package/dist/radio-group.js +4 -0
- package/dist/radio.d.ts +3 -0
- package/dist/radio.js +4 -0
- package/dist/rating.d.ts +8 -0
- package/dist/rating.js +5 -0
- package/dist/react.d.ts +1 -4583
- package/dist/react.js +1 -6837
- package/dist/select.d.ts +3 -0
- package/dist/select.js +4 -0
- package/dist/sharepoint-field.d.ts +18 -0
- package/dist/sharepoint-field.js +54 -0
- package/dist/skeleton.d.ts +6 -0
- package/dist/skeleton.js +9 -0
- package/dist/spinner.d.ts +5 -0
- package/dist/spinner.js +4 -0
- package/dist/swatch-picker.d.ts +17 -0
- package/dist/swatch-picker.js +11 -0
- package/dist/switch.d.ts +3 -0
- package/dist/switch.js +4 -0
- package/dist/table.d.ts +6 -0
- package/dist/table.js +4 -0
- package/dist/tabs.d.ts +14 -0
- package/dist/tabs.js +30 -0
- package/dist/tag-group.d.ts +6 -0
- package/dist/tag-group.js +4 -0
- package/dist/tag-picker.d.ts +12 -0
- package/dist/tag-picker.js +4 -0
- package/dist/tag.d.ts +7 -0
- package/dist/tag.js +5 -0
- package/dist/text.d.ts +5 -0
- package/dist/text.js +4 -0
- package/dist/textarea.d.ts +3 -0
- package/dist/textarea.js +4 -0
- package/dist/theme.d.ts +15 -167
- package/dist/theme.js +36 -162
- package/dist/toast.d.ts +9 -0
- package/dist/toast.js +12 -0
- package/dist/tree.d.ts +13 -0
- package/dist/tree.js +9 -0
- package/dist/view-card.d.ts +8 -0
- package/dist/view-card.js +4 -0
- package/dist/view-switcher.d.ts +13 -0
- package/dist/view-switcher.js +7 -0
- package/dist/virtual-list.d.ts +11 -0
- package/dist/virtual-list.js +25 -0
- package/measurements.json +365 -0
- package/package.json +19 -42
- package/src/theme.css +125 -0
- package/AGENTS.md +0 -211
- package/dist/appearance.d.ts +0 -6
- package/dist/appearance.js +0 -217
- package/dist/elements/accordion.d.ts +0 -9
- package/dist/elements/accordion.js +0 -338
- package/dist/elements/alert.d.ts +0 -2
- package/dist/elements/alert.js +0 -62
- package/dist/elements/avatar-group-primitives.d.ts +0 -3
- package/dist/elements/avatar-group-primitives.js +0 -189
- package/dist/elements/avatar-group.d.ts +0 -2
- package/dist/elements/avatar-group.js +0 -110
- package/dist/elements/avatar.d.ts +0 -4
- package/dist/elements/avatar.js +0 -251
- package/dist/elements/badge.d.ts +0 -8
- package/dist/elements/badge.js +0 -182
- package/dist/elements/breadcrumb.d.ts +0 -4
- package/dist/elements/breadcrumb.js +0 -233
- package/dist/elements/button-group.d.ts +0 -1
- package/dist/elements/button-group.js +0 -20
- package/dist/elements/button-variants.d.ts +0 -6
- package/dist/elements/button-variants.js +0 -339
- package/dist/elements/button.d.ts +0 -5
- package/dist/elements/button.js +0 -233
- package/dist/elements/card-primitives.d.ts +0 -3
- package/dist/elements/card-primitives.js +0 -83
- package/dist/elements/card.d.ts +0 -5
- package/dist/elements/card.js +0 -213
- package/dist/elements/carousel.d.ts +0 -92
- package/dist/elements/carousel.js +0 -1112
- package/dist/elements/color-picker.d.ts +0 -24
- package/dist/elements/color-picker.js +0 -1004
- package/dist/elements/combobox.d.ts +0 -1
- package/dist/elements/combobox.js +0 -1012
- package/dist/elements/data-grid-model.d.ts +0 -117
- package/dist/elements/data-grid-model.js +0 -294
- package/dist/elements/data-grid.d.ts +0 -29
- package/dist/elements/data-grid.js +0 -1567
- package/dist/elements/date-picker.d.ts +0 -1
- package/dist/elements/date-picker.js +0 -486
- package/dist/elements/dialog.d.ts +0 -23
- package/dist/elements/dialog.js +0 -409
- package/dist/elements/divider.d.ts +0 -2
- package/dist/elements/divider.js +0 -66
- package/dist/elements/drawer.d.ts +0 -3
- package/dist/elements/drawer.js +0 -308
- package/dist/elements/field-composition.d.ts +0 -26
- package/dist/elements/field-composition.js +0 -133
- package/dist/elements/field.d.ts +0 -1
- package/dist/elements/field.js +0 -67
- package/dist/elements/file-upload.d.ts +0 -6
- package/dist/elements/file-upload.js +0 -211
- package/dist/elements/floating-position.d.ts +0 -26
- package/dist/elements/floating-position.js +0 -39
- package/dist/elements/image.d.ts +0 -28
- package/dist/elements/image.js +0 -38
- package/dist/elements/info.d.ts +0 -9
- package/dist/elements/info.js +0 -102
- package/dist/elements/input.d.ts +0 -5
- package/dist/elements/input.js +0 -255
- package/dist/elements/label.d.ts +0 -15
- package/dist/elements/label.js +0 -56
- package/dist/elements/link.d.ts +0 -1
- package/dist/elements/link.js +0 -92
- package/dist/elements/list.d.ts +0 -19
- package/dist/elements/list.js +0 -297
- package/dist/elements/menu.d.ts +0 -33
- package/dist/elements/menu.js +0 -1103
- package/dist/elements/message-bar.d.ts +0 -10
- package/dist/elements/message-bar.js +0 -299
- package/dist/elements/nav.d.ts +0 -32
- package/dist/elements/nav.js +0 -791
- package/dist/elements/overflow.d.ts +0 -9
- package/dist/elements/overflow.js +0 -218
- package/dist/elements/persona.d.ts +0 -3
- package/dist/elements/persona.js +0 -125
- package/dist/elements/popover.d.ts +0 -77
- package/dist/elements/popover.js +0 -840
- package/dist/elements/progress-bar.d.ts +0 -4
- package/dist/elements/progress-bar.js +0 -82
- package/dist/elements/radio-group.d.ts +0 -1
- package/dist/elements/radio-group.js +0 -303
- package/dist/elements/rating-display.d.ts +0 -2
- package/dist/elements/rating-display.js +0 -125
- package/dist/elements/rating.d.ts +0 -2
- package/dist/elements/rating.js +0 -206
- package/dist/elements/rich-text-editor.d.ts +0 -18
- package/dist/elements/rich-text-editor.js +0 -508
- package/dist/elements/search.d.ts +0 -3
- package/dist/elements/search.js +0 -207
- package/dist/elements/select.d.ts +0 -6
- package/dist/elements/select.js +0 -291
- package/dist/elements/shared.d.ts +0 -19
- package/dist/elements/shared.js +0 -396
- package/dist/elements/skeleton.d.ts +0 -6
- package/dist/elements/skeleton.js +0 -91
- package/dist/elements/slider.d.ts +0 -1
- package/dist/elements/slider.js +0 -248
- package/dist/elements/spin-button.d.ts +0 -7
- package/dist/elements/spin-button.js +0 -499
- package/dist/elements/spinner.d.ts +0 -4
- package/dist/elements/spinner.js +0 -124
- package/dist/elements/swatch-picker.d.ts +0 -5
- package/dist/elements/swatch-picker.js +0 -363
- package/dist/elements/table.d.ts +0 -21
- package/dist/elements/table.js +0 -261
- package/dist/elements/tabs.d.ts +0 -1
- package/dist/elements/tabs.js +0 -276
- package/dist/elements/tag-picker.d.ts +0 -29
- package/dist/elements/tag-picker.js +0 -697
- package/dist/elements/tags.d.ts +0 -21
- package/dist/elements/tags.js +0 -421
- package/dist/elements/teaching-popover.d.ts +0 -32
- package/dist/elements/teaching-popover.js +0 -412
- package/dist/elements/text.d.ts +0 -9
- package/dist/elements/text.js +0 -75
- package/dist/elements/textarea.d.ts +0 -1
- package/dist/elements/textarea.js +0 -182
- package/dist/elements/toast.d.ts +0 -25
- package/dist/elements/toast.js +0 -337
- package/dist/elements/toaster.d.ts +0 -6
- package/dist/elements/toaster.js +0 -356
- package/dist/elements/toggle.d.ts +0 -2
- package/dist/elements/toggle.js +0 -246
- package/dist/elements/toolbar.d.ts +0 -12
- package/dist/elements/toolbar.js +0 -381
- package/dist/elements/tooltip.d.ts +0 -76
- package/dist/elements/tooltip.js +0 -510
- package/dist/elements/tree-model.d.ts +0 -19
- package/dist/elements/tree-model.js +0 -34
- package/dist/elements/tree.d.ts +0 -5
- package/dist/elements/tree.js +0 -273
- package/dist/elements/view-card.d.ts +0 -2
- package/dist/elements/view-card.js +0 -78
- package/dist/elements/virtual-list.d.ts +0 -41
- package/dist/elements/virtual-list.js +0 -369
- package/dist/elements.d.ts +0 -72
- package/dist/elements.js +0 -207
- package/dist/virtualizer-hooks.d.ts +0 -80
- package/dist/virtualizer-hooks.js +0 -253
- package/scripts/generate-token-index.mjs +0 -43
- package/scripts/sync-component-catalog-signatures.mjs +0 -55
- package/scripts/validate-component-catalog.mjs +0 -44
- package/skills/sharepoint-ui/SKILL.md +0 -12
- package/skills/sharepoint-ui/references/choosing-components.md +0 -20
- package/skills/sharepoint-ui/references/sharepoint-patterns.md +0 -17
- package/tokens.json +0 -3777
package/dist/index.d.ts
CHANGED
|
@@ -1,76 +1,68 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export
|
|
60
|
-
export {
|
|
61
|
-
export
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
export
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
-
export
|
|
69
|
-
export { defineBreadcrumb, defineBreadcrumbButton, defineBreadcrumbDivider, defineBreadcrumbItem } from "./elements/breadcrumb.js";
|
|
70
|
-
export { defineTabs } from "./elements/tabs.js";
|
|
71
|
-
export { defineTooltip, type TooltipAppearance, type TooltipPosition, type TooltipPositioning, type TooltipPositioningBoundary, type TooltipPositioningEndData, type TooltipPositioningImperativeRef, type TooltipPositioningOffset, type TooltipPositioningOffsetParams, type TooltipPositioningOptions, type TooltipPositioningPlacement, type TooltipPositioningRect, type TooltipPositioningRef, type TooltipPositioningShorthand, type TooltipPositioningTarget, type TooltipPositioningTargetRect, type TooltipRelationship, type TooltipVisibleChangeData } from "./elements/tooltip.js";
|
|
72
|
-
export { definePopover, definePopoverSurface, definePopoverTrigger } from "./elements/popover.js";
|
|
73
|
-
export type { PopoverAlignment, PopoverAutoSize, PopoverBoundary, PopoverBoundaryPadding, PopoverBoundaryRect, PopoverOffset, PopoverOffsetParams, PopoverOpenChangeData, PopoverPosition, PopoverPositioning, PopoverPositioningEndData, PopoverPositioningImperativeRef, PopoverPositioningOptions, PopoverPositioningPlacement, PopoverPositioningRef, PopoverPositioningTargetRect, PopoverTarget } from "./elements/popover.js";
|
|
74
|
-
export { defineTeachingPopover } from "./elements/teaching-popover.js";
|
|
75
|
-
export type { SharePointTeachingPopoverCarouselElement, TeachingPopoverAnnouncementFunction, TeachingPopoverAnnouncementDetail, TeachingPopoverCarouselValueChangeType, TeachingPopoverCarouselValueChangeDetail, TeachingPopoverFinishDetail } from "./elements/teaching-popover.js";
|
|
76
|
-
export { defineMenu, defineMenuItem, defineMenuItemLink, defineMenuDivider, defineMenuGroup, defineMenuGroupHeader, defineMenuList, defineMenuPopover, defineMenuSplitGroup, defineMenuTrigger, defineMenuBar, defineMenuBarItem, type MenuOpenChangeData, type MenuOpenChangeType } from "./elements/menu.js";
|
|
1
|
+
export { Button } from "./button.js";
|
|
2
|
+
export { Checkbox } from "./checkbox.js";
|
|
3
|
+
export { Field } from "./field.js";
|
|
4
|
+
export { FilterBar } from "./filter-bar.js";
|
|
5
|
+
export { FileDropzone } from "./file-dropzone.js";
|
|
6
|
+
export { AttachmentList } from "./attachment-list.js";
|
|
7
|
+
export type { AttachmentItem, AttachmentListProps } from "./attachment-list.js";
|
|
8
|
+
export { ListView } from "./list-view.js";
|
|
9
|
+
export type { ListViewPage, ListViewProps } from "./list-view.js";
|
|
10
|
+
export { ViewSwitcher } from "./view-switcher.js";
|
|
11
|
+
export type { ViewOption, ViewSwitcherProps } from "./view-switcher.js";
|
|
12
|
+
export { TextArea } from "./textarea.js";
|
|
13
|
+
export { Radio } from "./radio.js";
|
|
14
|
+
export { RadioGroup } from "./radio-group.js";
|
|
15
|
+
export { Switch } from "./switch.js";
|
|
16
|
+
export { Select } from "./select.js";
|
|
17
|
+
export { ComboBox } from "./combobox.js";
|
|
18
|
+
export { DateRangePicker } from "./date-range-picker.js";
|
|
19
|
+
export { PersonPicker } from "./person-picker.js";
|
|
20
|
+
export { LookupPicker } from "./lookup-picker.js";
|
|
21
|
+
export { Text } from "./text.js";
|
|
22
|
+
export { Label } from "./label.js";
|
|
23
|
+
export { ButtonGroup } from "./button-group.js";
|
|
24
|
+
export { CommandBar } from "./command-bar.js";
|
|
25
|
+
export { CopyButton } from "./copy-button.js";
|
|
26
|
+
export { Link } from "./link.js";
|
|
27
|
+
export { Menu } from "./menu.js";
|
|
28
|
+
export { Badge } from "./badge.js";
|
|
29
|
+
export { Tag } from "./tag.js";
|
|
30
|
+
export { TagGroup } from "./tag-group.js";
|
|
31
|
+
export { Image } from "./image.js";
|
|
32
|
+
export { Avatar } from "./avatar.js";
|
|
33
|
+
export { Persona } from "./persona.js";
|
|
34
|
+
export { AvatarGroup } from "./avatar-group.js";
|
|
35
|
+
export { ViewCard } from "./view-card.js";
|
|
36
|
+
export { EmptyState } from "./empty-state.js";
|
|
37
|
+
export { Divider } from "./divider.js";
|
|
38
|
+
export { List } from "./list.js";
|
|
39
|
+
export { Accordion } from "./accordion.js";
|
|
40
|
+
export { Tabs } from "./tabs.js";
|
|
41
|
+
export { Breadcrumb } from "./breadcrumb.js";
|
|
42
|
+
export { Pagination } from "./pagination.js";
|
|
43
|
+
export { Rating } from "./rating.js";
|
|
44
|
+
export { ProgressBar } from "./progress-bar.js";
|
|
45
|
+
export { Spinner } from "./spinner.js";
|
|
46
|
+
export { Skeleton } from "./skeleton.js";
|
|
47
|
+
export { Alert } from "./alert.js";
|
|
48
|
+
export { Toast } from "./toast.js";
|
|
49
|
+
export { Table } from "./table.js";
|
|
50
|
+
export { DataGrid } from "./data-grid.js";
|
|
51
|
+
export type { DataGridColumn, DataGridSort, DataGridProps } from "./data-grid.js";
|
|
52
|
+
export { Tree } from "./tree.js";
|
|
53
|
+
export type { TreeNode, TreeProps } from "./tree.js";
|
|
54
|
+
export { Nav } from "./nav.js";
|
|
55
|
+
export { Carousel } from "./carousel.js";
|
|
56
|
+
export { TagPicker } from "./tag-picker.js";
|
|
57
|
+
export { SwatchPicker } from "./swatch-picker.js";
|
|
58
|
+
export { SharePointField } from "./sharepoint-field.js";
|
|
59
|
+
export type { SharePointFieldType, SharePointFieldProps } from "./sharepoint-field.js";
|
|
60
|
+
export { VirtualList } from "./virtual-list.js";
|
|
61
|
+
export type { VirtualListProps } from "./virtual-list.js";
|
|
62
|
+
export { Dialog } from "./dialog.js";
|
|
63
|
+
export { Drawer } from "./drawer.js";
|
|
64
|
+
export { Popover } from "./popover.js";
|
|
65
|
+
export { Card } from "./card.js";
|
|
66
|
+
export { Input } from "./input.js";
|
|
67
|
+
export { SharePointThemeProvider, createSharePointTheme, useSharePointTheme } from "./theme.js";
|
|
68
|
+
export type { SharePointTheme } from "./theme.js";
|
package/dist/index.js
CHANGED
|
@@ -1,66 +1,60 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export { defineBreadcrumb, defineBreadcrumbButton, defineBreadcrumbDivider, defineBreadcrumbItem } from "./elements/breadcrumb.js";
|
|
62
|
-
export { defineTabs } from "./elements/tabs.js";
|
|
63
|
-
export { defineTooltip } from "./elements/tooltip.js";
|
|
64
|
-
export { definePopover, definePopoverSurface, definePopoverTrigger } from "./elements/popover.js";
|
|
65
|
-
export { defineTeachingPopover } from "./elements/teaching-popover.js";
|
|
66
|
-
export { defineMenu, defineMenuItem, defineMenuItemLink, defineMenuDivider, defineMenuGroup, defineMenuGroupHeader, defineMenuList, defineMenuPopover, defineMenuSplitGroup, defineMenuTrigger, defineMenuBar, defineMenuBarItem } from "./elements/menu.js";
|
|
1
|
+
export { Button } from "./button.js";
|
|
2
|
+
export { Checkbox } from "./checkbox.js";
|
|
3
|
+
export { Field } from "./field.js";
|
|
4
|
+
export { FilterBar } from "./filter-bar.js";
|
|
5
|
+
export { FileDropzone } from "./file-dropzone.js";
|
|
6
|
+
export { AttachmentList } from "./attachment-list.js";
|
|
7
|
+
export { ListView } from "./list-view.js";
|
|
8
|
+
export { ViewSwitcher } from "./view-switcher.js";
|
|
9
|
+
export { TextArea } from "./textarea.js";
|
|
10
|
+
export { Radio } from "./radio.js";
|
|
11
|
+
export { RadioGroup } from "./radio-group.js";
|
|
12
|
+
export { Switch } from "./switch.js";
|
|
13
|
+
export { Select } from "./select.js";
|
|
14
|
+
export { ComboBox } from "./combobox.js";
|
|
15
|
+
export { DateRangePicker } from "./date-range-picker.js";
|
|
16
|
+
export { PersonPicker } from "./person-picker.js";
|
|
17
|
+
export { LookupPicker } from "./lookup-picker.js";
|
|
18
|
+
export { Text } from "./text.js";
|
|
19
|
+
export { Label } from "./label.js";
|
|
20
|
+
export { ButtonGroup } from "./button-group.js";
|
|
21
|
+
export { CommandBar } from "./command-bar.js";
|
|
22
|
+
export { CopyButton } from "./copy-button.js";
|
|
23
|
+
export { Link } from "./link.js";
|
|
24
|
+
export { Menu } from "./menu.js";
|
|
25
|
+
export { Badge } from "./badge.js";
|
|
26
|
+
export { Tag } from "./tag.js";
|
|
27
|
+
export { TagGroup } from "./tag-group.js";
|
|
28
|
+
export { Image } from "./image.js";
|
|
29
|
+
export { Avatar } from "./avatar.js";
|
|
30
|
+
export { Persona } from "./persona.js";
|
|
31
|
+
export { AvatarGroup } from "./avatar-group.js";
|
|
32
|
+
export { ViewCard } from "./view-card.js";
|
|
33
|
+
export { EmptyState } from "./empty-state.js";
|
|
34
|
+
export { Divider } from "./divider.js";
|
|
35
|
+
export { List } from "./list.js";
|
|
36
|
+
export { Accordion } from "./accordion.js";
|
|
37
|
+
export { Tabs } from "./tabs.js";
|
|
38
|
+
export { Breadcrumb } from "./breadcrumb.js";
|
|
39
|
+
export { Pagination } from "./pagination.js";
|
|
40
|
+
export { Rating } from "./rating.js";
|
|
41
|
+
export { ProgressBar } from "./progress-bar.js";
|
|
42
|
+
export { Spinner } from "./spinner.js";
|
|
43
|
+
export { Skeleton } from "./skeleton.js";
|
|
44
|
+
export { Alert } from "./alert.js";
|
|
45
|
+
export { Toast } from "./toast.js";
|
|
46
|
+
export { Table } from "./table.js";
|
|
47
|
+
export { DataGrid } from "./data-grid.js";
|
|
48
|
+
export { Tree } from "./tree.js";
|
|
49
|
+
export { Nav } from "./nav.js";
|
|
50
|
+
export { Carousel } from "./carousel.js";
|
|
51
|
+
export { TagPicker } from "./tag-picker.js";
|
|
52
|
+
export { SwatchPicker } from "./swatch-picker.js";
|
|
53
|
+
export { SharePointField } from "./sharepoint-field.js";
|
|
54
|
+
export { VirtualList } from "./virtual-list.js";
|
|
55
|
+
export { Dialog } from "./dialog.js";
|
|
56
|
+
export { Drawer } from "./drawer.js";
|
|
57
|
+
export { Popover } from "./popover.js";
|
|
58
|
+
export { Card } from "./card.js";
|
|
59
|
+
export { Input } from "./input.js";
|
|
60
|
+
export { SharePointThemeProvider, createSharePointTheme, useSharePointTheme } from "./theme.js";
|
package/dist/input.d.ts
ADDED
package/dist/input.js
ADDED
package/dist/label.d.ts
ADDED
package/dist/label.js
ADDED
package/dist/link.d.ts
ADDED
package/dist/link.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
export function Link({ className = "", target, rel, ...props }) {
|
|
3
|
+
return createElement("a", {
|
|
4
|
+
...props,
|
|
5
|
+
target,
|
|
6
|
+
rel: target === "_blank" ? [rel, "noopener", "noreferrer"].filter(Boolean).join(" ") : rel,
|
|
7
|
+
className: `spui-link ${className}`.trim(),
|
|
8
|
+
});
|
|
9
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import { type DataGridColumn, type DataGridSort } from "./data-grid.js";
|
|
3
|
+
export type ListViewPage = {
|
|
4
|
+
currentPage: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
onPageChange: (page: number) => void;
|
|
7
|
+
};
|
|
8
|
+
export type ListViewProps<Row extends Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children" | "aria-label"> & {
|
|
9
|
+
label: string;
|
|
10
|
+
rows: readonly Row[];
|
|
11
|
+
columns: readonly DataGridColumn<Row>[];
|
|
12
|
+
getRowId: (row: Row) => string;
|
|
13
|
+
rowLabel?: (row: Row) => string;
|
|
14
|
+
selectable?: boolean;
|
|
15
|
+
selectedIds?: readonly string[];
|
|
16
|
+
onSelectionChange?: (ids: string[]) => void;
|
|
17
|
+
initialSort?: DataGridSort<Row>;
|
|
18
|
+
onSortChange?: (sort: DataGridSort<Row>) => void;
|
|
19
|
+
caption?: ReactNode;
|
|
20
|
+
toolbar?: ReactNode;
|
|
21
|
+
filters?: ReactNode;
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
loadingLabel?: string;
|
|
24
|
+
emptyTitle?: ReactNode;
|
|
25
|
+
emptyDescription?: ReactNode;
|
|
26
|
+
emptyAction?: ReactNode;
|
|
27
|
+
page?: ListViewPage;
|
|
28
|
+
};
|
|
29
|
+
export declare function ListView<Row extends Record<string, unknown>>({ label, rows, columns, getRowId, rowLabel, selectable, selectedIds, onSelectionChange, initialSort, onSortChange, caption, toolbar, filters, loading, loadingLabel, emptyTitle, emptyDescription, emptyAction, page, className, ...props }: ListViewProps<Row>): ReactElement;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
import { DataGrid } from "./data-grid.js";
|
|
3
|
+
import { EmptyState } from "./empty-state.js";
|
|
4
|
+
import { Pagination } from "./pagination.js";
|
|
5
|
+
import { Spinner } from "./spinner.js";
|
|
6
|
+
export function ListView({ label, rows, columns, getRowId, rowLabel, selectable, selectedIds, onSelectionChange, initialSort, onSortChange, caption, toolbar, filters, loading = false, loadingLabel = `Loading ${label}`, emptyTitle = "No items found", emptyDescription = "Try changing or clearing the filters.", emptyAction, page, className = "", ...props }) {
|
|
7
|
+
return createElement("section", { ...props, "aria-label": label, className: `spui-list-view ${className}`.trim() }, (toolbar || filters) && createElement("div", { className: "spui-list-view-tools" }, toolbar, filters), loading ? createElement(Spinner, { label: loadingLabel })
|
|
8
|
+
: rows.length ? createElement((DataGrid), {
|
|
9
|
+
label: `${label} results`, caption, rows, columns, getRowId, rowLabel, selectable,
|
|
10
|
+
selectedIds, onSelectionChange, initialSort, onSortChange,
|
|
11
|
+
}) : createElement(EmptyState, { title: emptyTitle, description: emptyDescription, children: emptyAction }), !loading && page && createElement(Pagination, {
|
|
12
|
+
label: `${label} pages`, ...page,
|
|
13
|
+
}));
|
|
14
|
+
}
|
package/dist/list.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactElement } from "react";
|
|
2
|
+
export type ListProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
3
|
+
ordered?: boolean;
|
|
4
|
+
children?: ReactElement | ReactElement[];
|
|
5
|
+
};
|
|
6
|
+
export declare function List({ ordered, className, children, ...props }: ListProps): ReactElement;
|
package/dist/list.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactElement, type SelectHTMLAttributes } from "react";
|
|
2
|
+
export type LookupOption = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
export type LookupPickerProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, "children" | "id"> & {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
options: readonly LookupOption[];
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function LookupPicker({ id, label, options, placeholder, className, ...props }: LookupPickerProps): ReactElement;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
export function LookupPicker({ id, label, options, placeholder = "Choose an item", className = "", ...props }) {
|
|
3
|
+
return createElement("div", { className: "spui-field" }, createElement("label", { htmlFor: id }, label), createElement("select", { ...props, id, className: `spui-select ${className}`.trim() }, createElement("option", { value: "" }, placeholder), options.map(item => createElement("option", { key: item.id, value: item.id }, item.label))));
|
|
4
|
+
}
|
package/dist/menu.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type DetailsHTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
export type MenuProps = Omit<DetailsHTMLAttributes<HTMLDetailsElement>, "children"> & {
|
|
3
|
+
label: string;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare function Menu({ label, className, children, ...props }: MenuProps): ReactElement;
|
package/dist/menu.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
export function Menu({ label, className = "", children, ...props }) {
|
|
3
|
+
return createElement("details", { ...props, className: `spui-menu ${className}`.trim() }, createElement("summary", null, label), createElement("div", { role: "group", className: "spui-menu-items", "aria-label": `${label} actions` }, children));
|
|
4
|
+
}
|
package/dist/nav.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
export type NavItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
href: string;
|
|
6
|
+
current?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type NavProps = Omit<HTMLAttributes<HTMLElement>, "children" | "aria-label"> & {
|
|
9
|
+
label: string;
|
|
10
|
+
items: readonly NavItem[];
|
|
11
|
+
};
|
|
12
|
+
export declare function Nav({ label, items, className, ...props }: NavProps): ReactElement;
|
package/dist/nav.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
export function Nav({ label, items, className = "", ...props }) {
|
|
3
|
+
return createElement("nav", { ...props, "aria-label": label, className: `spui-nav ${className}`.trim() }, createElement("ul", null, items.map(item => createElement("li", { key: item.id }, createElement("a", { href: item.href, "aria-current": item.current ? "page" : undefined }, item.label)))));
|
|
4
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactElement } from "react";
|
|
2
|
+
export type PaginationProps = Omit<HTMLAttributes<HTMLElement>, "children" | "aria-label"> & {
|
|
3
|
+
label?: string;
|
|
4
|
+
currentPage: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
onPageChange: (page: number) => void;
|
|
7
|
+
previousLabel?: string;
|
|
8
|
+
nextLabel?: string;
|
|
9
|
+
pageLabel?: (page: number, total: number) => string;
|
|
10
|
+
};
|
|
11
|
+
export declare function Pagination({ label, currentPage, totalPages, onPageChange, previousLabel, nextLabel, pageLabel, className, ...props }: PaginationProps): ReactElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
export function Pagination({ label = "Pagination", currentPage, totalPages, onPageChange, previousLabel = "Previous page", nextLabel = "Next page", pageLabel = (page, total) => total > 0 ? `Page ${page} of ${total}` : "No pages", className = "", ...props }) {
|
|
3
|
+
const page = Math.min(Math.max(1, currentPage), Math.max(1, totalPages));
|
|
4
|
+
return createElement("nav", { ...props, "aria-label": label, className: `spui-pagination ${className}`.trim() }, createElement("button", { type: "button", disabled: page <= 1, onClick: () => onPageChange(page - 1) }, previousLabel), createElement("span", { "aria-live": "polite" }, pageLabel(page, totalPages)), createElement("button", { type: "button", disabled: page >= totalPages, onClick: () => onPageChange(page + 1) }, nextLabel));
|
|
5
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ReactElement, type SelectHTMLAttributes } from "react";
|
|
2
|
+
export type PersonOption = {
|
|
3
|
+
value: string;
|
|
4
|
+
name: string;
|
|
5
|
+
detail?: string;
|
|
6
|
+
};
|
|
7
|
+
export type PersonPickerProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, "children" | "id"> & {
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
options: readonly PersonOption[];
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function PersonPicker({ id, label, options, placeholder, className, ...props }: PersonPickerProps): ReactElement;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
export function PersonPicker({ id, label, options, placeholder = "Choose a person", className = "", ...props }) {
|
|
3
|
+
return createElement("div", { className: "spui-field" }, createElement("label", { htmlFor: id }, label), createElement("select", { ...props, id, className: `spui-select ${className}`.trim() }, createElement("option", { value: "" }, placeholder), options.map(person => createElement("option", { key: person.value, value: person.value }, person.detail ? `${person.name} — ${person.detail}` : person.name))));
|
|
4
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
export type PersonaProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
3
|
+
name: string;
|
|
4
|
+
description?: ReactNode;
|
|
5
|
+
src?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function Persona({ name, description, src, className, ...props }: PersonaProps): ReactElement;
|
package/dist/persona.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
import { Avatar } from "./avatar.js";
|
|
3
|
+
export function Persona({ name, description, src, className = "", ...props }) {
|
|
4
|
+
return createElement("div", { ...props, className: `spui-persona ${className}`.trim() }, createElement(Avatar, { name, src }), createElement("span", { className: "spui-persona-copy" }, createElement("strong", null, name), description && createElement("span", null, description)));
|
|
5
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type DetailsHTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
export type PopoverProps = Omit<DetailsHTMLAttributes<HTMLDetailsElement>, "children"> & {
|
|
3
|
+
label: string;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare function Popover({ label, className, children, ...props }: PopoverProps): ReactElement;
|
package/dist/popover.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
export function Popover({ label, className = "", children, ...props }) {
|
|
3
|
+
return createElement("details", { ...props, className: `spui-popover ${className}`.trim() }, createElement("summary", null, label), createElement("div", { role: "region", "aria-label": `${label} details` }, children));
|
|
4
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ProgressHTMLAttributes, type ReactElement } from "react";
|
|
2
|
+
export type ProgressBarProps = Omit<ProgressHTMLAttributes<HTMLProgressElement>, "children" | "aria-label"> & {
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function ProgressBar({ label, className, ...props }: ProgressBarProps): ReactElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createElement, useId } from "react";
|
|
2
|
+
export function ProgressBar({ label, className = "", ...props }) {
|
|
3
|
+
const id = useId();
|
|
4
|
+
return createElement("div", { className: "spui-progress" }, createElement("label", { htmlFor: id }, label), createElement("progress", { ...props, id, className: `spui-progress-bar ${className}`.trim() }));
|
|
5
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type FieldsetHTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
export type RadioGroupProps = Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>, "children"> & {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare function RadioGroup({ label, className, children, ...props }: RadioGroupProps): ReactElement;
|
package/dist/radio.d.ts
ADDED
package/dist/radio.js
ADDED
package/dist/rating.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type InputHTMLAttributes, type ReactElement } from "react";
|
|
2
|
+
export type RatingProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "min" | "max" | "step"> & {
|
|
3
|
+
label: string;
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
step?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function Rating({ label, min, max, step, className, ...props }: RatingProps): ReactElement;
|
package/dist/rating.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createElement, useId } from "react";
|
|
2
|
+
export function Rating({ label, min = 0, max = 5, step = 1, className = "", ...props }) {
|
|
3
|
+
const id = useId();
|
|
4
|
+
return createElement("div", { className: "spui-field" }, createElement("label", { htmlFor: id }, label), createElement("input", { ...props, id, type: "number", min, max, step, className: `spui-input ${className}`.trim() }));
|
|
5
|
+
}
|