@starci/grammar 0.12.1 → 0.12.4
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/README.md +119 -35
- package/dist/.build-stamp.json +4 -4
- package/dist/common/components-avatar-group.css +7 -0
- package/dist/common/components-forms.css +12 -74
- package/dist/common/components-list-panel.css +36 -7
- package/dist/common/components-navigation.css +46 -157
- package/dist/common/components-overlays.css +1 -85
- package/dist/common/registry.d.ts +6 -6
- package/dist/common/renderers-navigation.d.ts +6 -5
- package/dist/common/renderers-navigation.d.ts.map +1 -1
- package/dist/common/renderers-navigation.js.map +1 -1
- package/dist/common/renderers.d.ts +5 -1
- package/dist/common/renderers.d.ts.map +1 -1
- package/dist/common/renderers.js +3 -0
- package/dist/common/renderers.js.map +1 -1
- package/dist/common/styles.css +7 -132
- package/dist/core/branch/AlertDialog/index.d.ts.map +1 -1
- package/dist/core/branch/AlertDialog/index.js +4 -1
- package/dist/core/branch/AlertDialog/index.js.map +1 -1
- package/dist/core/branch/DataTable/index.d.ts +0 -2
- package/dist/core/branch/DataTable/index.d.ts.map +1 -1
- package/dist/core/branch/DataTable/index.js +3 -2
- package/dist/core/branch/DataTable/index.js.map +1 -1
- package/dist/core/branch/Dialog/index.d.ts.map +1 -1
- package/dist/core/branch/Dialog/index.js +2 -1
- package/dist/core/branch/Dialog/index.js.map +1 -1
- package/dist/core/branch/DragItem/index.d.ts +2 -1
- package/dist/core/branch/DragItem/index.d.ts.map +1 -1
- package/dist/core/branch/DragItem/index.js +1 -1
- package/dist/core/branch/DragItem/index.js.map +1 -1
- package/dist/core/branch/Drawer/index.d.ts.map +1 -1
- package/dist/core/branch/Drawer/index.js +2 -1
- package/dist/core/branch/Drawer/index.js.map +1 -1
- package/dist/core/branch/DropdownMenu/index.d.ts +5 -2
- package/dist/core/branch/DropdownMenu/index.d.ts.map +1 -1
- package/dist/core/branch/DropdownMenu/index.js +6 -4
- package/dist/core/branch/DropdownMenu/index.js.map +1 -1
- package/dist/core/branch/FlowGraph/index.d.ts +4 -1
- package/dist/core/branch/FlowGraph/index.d.ts.map +1 -1
- package/dist/core/branch/FlowGraph/index.js +1 -1
- package/dist/core/branch/FlowGraph/index.js.map +1 -1
- package/dist/core/branch/ListBox/index.d.ts +22 -3
- package/dist/core/branch/ListBox/index.d.ts.map +1 -1
- package/dist/core/branch/ListBox/index.js +9 -5
- package/dist/core/branch/ListBox/index.js.map +1 -1
- package/dist/core/branch/Rail/index.d.ts.map +1 -1
- package/dist/core/branch/Rail/index.js +2 -4
- package/dist/core/branch/Rail/index.js.map +1 -1
- package/dist/core/branch/Select/index.d.ts +3 -0
- package/dist/core/branch/Select/index.d.ts.map +1 -1
- package/dist/core/branch/Select/index.js +7 -3
- package/dist/core/branch/Select/index.js.map +1 -1
- package/dist/core/branch/SurfaceAccordionCard/classNames.d.ts +1 -1
- package/dist/core/branch/SurfaceAccordionCard/classNames.d.ts.map +1 -1
- package/dist/core/branch/SurfaceAccordionCard/classNames.js +3 -3
- package/dist/core/branch/SurfaceAccordionCard/classNames.js.map +1 -1
- package/dist/core/branch/SurfaceAccordionCard/index.d.ts +2 -2
- package/dist/core/branch/SurfaceAccordionCard/index.d.ts.map +1 -1
- package/dist/core/branch/SurfaceAccordionCard/index.js +10 -9
- package/dist/core/branch/SurfaceAccordionCard/index.js.map +1 -1
- package/dist/core/branch/SurfaceCard/classNames.d.ts +0 -4
- package/dist/core/branch/SurfaceCard/classNames.d.ts.map +1 -1
- package/dist/core/branch/SurfaceCard/classNames.js +0 -4
- package/dist/core/branch/SurfaceCard/classNames.js.map +1 -1
- package/dist/core/branch/SurfaceCard/index.d.ts +0 -3
- package/dist/core/branch/SurfaceCard/index.d.ts.map +1 -1
- package/dist/core/branch/SurfaceCard/index.js +11 -29
- package/dist/core/branch/SurfaceCard/index.js.map +1 -1
- package/dist/core/branch/SurfaceListCard/index.d.ts.map +1 -1
- package/dist/core/branch/SurfaceListCard/index.js +2 -1
- package/dist/core/branch/SurfaceListCard/index.js.map +1 -1
- package/dist/core/branch/Tabs/classNames.d.ts +1 -3
- package/dist/core/branch/Tabs/classNames.d.ts.map +1 -1
- package/dist/core/branch/Tabs/classNames.js +1 -4
- package/dist/core/branch/Tabs/classNames.js.map +1 -1
- package/dist/core/branch/Tabs/index.d.ts +5 -8
- package/dist/core/branch/Tabs/index.d.ts.map +1 -1
- package/dist/core/branch/Tabs/index.js +8 -4
- package/dist/core/branch/Tabs/index.js.map +1 -1
- package/dist/core/branch/Toast/index.js +2 -2
- package/dist/core/branch/Toast/index.js.map +1 -1
- package/dist/core/branch/Tooltip/classNames.d.ts +1 -2
- package/dist/core/branch/Tooltip/classNames.d.ts.map +1 -1
- package/dist/core/branch/Tooltip/classNames.js +1 -2
- package/dist/core/branch/Tooltip/classNames.js.map +1 -1
- package/dist/core/branch/Tooltip/index.d.ts +10 -14
- package/dist/core/branch/Tooltip/index.d.ts.map +1 -1
- package/dist/core/branch/Tooltip/index.js +10 -48
- package/dist/core/branch/Tooltip/index.js.map +1 -1
- package/dist/core/buttonIntent.d.ts +27 -0
- package/dist/core/buttonIntent.d.ts.map +1 -0
- package/dist/core/buttonIntent.js +29 -0
- package/dist/core/buttonIntent.js.map +1 -0
- package/dist/core/collectionItem.d.ts +16 -0
- package/dist/core/collectionItem.d.ts.map +1 -0
- package/dist/core/collectionItem.js +12 -0
- package/dist/core/collectionItem.js.map +1 -0
- package/dist/core/composite/AvatarButton/index.d.ts +5 -4
- package/dist/core/composite/AvatarButton/index.d.ts.map +1 -1
- package/dist/core/composite/AvatarButton/index.js +2 -2
- package/dist/core/composite/AvatarButton/index.js.map +1 -1
- package/dist/core/composite/AvatarGroup/index.d.ts +6 -4
- package/dist/core/composite/AvatarGroup/index.d.ts.map +1 -1
- package/dist/core/composite/AvatarGroup/index.js +4 -3
- package/dist/core/composite/AvatarGroup/index.js.map +1 -1
- package/dist/core/composite/CollectionItem/index.d.ts +8 -0
- package/dist/core/composite/CollectionItem/index.d.ts.map +1 -0
- package/dist/core/composite/CollectionItem/index.js +5 -0
- package/dist/core/composite/CollectionItem/index.js.map +1 -0
- package/dist/core/composite/Fieldset/index.js +2 -2
- package/dist/core/composite/Fieldset/index.js.map +1 -1
- package/dist/core/composite/IdentityLockup/index.d.ts +2 -2
- package/dist/core/composite/IdentityLockup/index.d.ts.map +1 -1
- package/dist/core/composite/IdentityLockup/index.js +1 -1
- package/dist/core/composite/ItemActions/index.d.ts +8 -0
- package/dist/core/composite/ItemActions/index.d.ts.map +1 -0
- package/dist/core/composite/ItemActions/index.js +5 -0
- package/dist/core/composite/ItemActions/index.js.map +1 -0
- package/dist/core/composite/ListRow/index.d.ts.map +1 -1
- package/dist/core/composite/ListRow/index.js +2 -1
- package/dist/core/composite/ListRow/index.js.map +1 -1
- package/dist/core/composite/SegmentedControl/index.d.ts.map +1 -1
- package/dist/core/composite/SegmentedControl/index.js +2 -2
- package/dist/core/composite/SegmentedControl/index.js.map +1 -1
- package/dist/core/composite/TagGroup/index.d.ts +3 -3
- package/dist/core/composite/TagGroup/index.d.ts.map +1 -1
- package/dist/core/composite/TagGroup/index.js +1 -1
- package/dist/core/composite/TagGroup/index.js.map +1 -1
- package/dist/core/composite/ToolbarActions/index.d.ts +8 -0
- package/dist/core/composite/ToolbarActions/index.d.ts.map +1 -0
- package/dist/core/composite/ToolbarActions/index.js +5 -0
- package/dist/core/composite/ToolbarActions/index.js.map +1 -0
- package/dist/core/composition/ChatWorkspace/index.d.ts.map +1 -1
- package/dist/core/composition/ChatWorkspace/index.js +2 -1
- package/dist/core/composition/ChatWorkspace/index.js.map +1 -1
- package/dist/core/composition/NavigationFeatureNav/index.d.ts.map +1 -1
- package/dist/core/composition/NavigationFeatureNav/index.js +3 -1
- package/dist/core/composition/NavigationFeatureNav/index.js.map +1 -1
- package/dist/core/composition/Sidebar/index.d.ts +4 -0
- package/dist/core/composition/Sidebar/index.d.ts.map +1 -1
- package/dist/core/composition/Sidebar/index.js +10 -4
- package/dist/core/composition/Sidebar/index.js.map +1 -1
- package/dist/core/composition/TopBar/index.d.ts.map +1 -1
- package/dist/core/composition/TopBar/index.js +3 -1
- package/dist/core/composition/TopBar/index.js.map +1 -1
- package/dist/core/composition/WorkspaceShell/index.d.ts.map +1 -1
- package/dist/core/composition/WorkspaceShell/index.js +4 -2
- package/dist/core/composition/WorkspaceShell/index.js.map +1 -1
- package/dist/core/dna.d.ts +63 -2
- package/dist/core/dna.d.ts.map +1 -1
- package/dist/core/dna.js +38 -2
- package/dist/core/dna.js.map +1 -1
- package/dist/core/primitive/Avatar/index.d.ts +32 -24
- package/dist/core/primitive/Avatar/index.d.ts.map +1 -1
- package/dist/core/primitive/Avatar/index.js +57 -30
- package/dist/core/primitive/Avatar/index.js.map +1 -1
- package/dist/core/primitive/Button/index.d.ts +5 -2
- package/dist/core/primitive/Button/index.d.ts.map +1 -1
- package/dist/core/primitive/Button/index.js +6 -3
- package/dist/core/primitive/Button/index.js.map +1 -1
- package/dist/core/primitive/Divider/index.d.ts.map +1 -1
- package/dist/core/primitive/Divider/index.js +3 -4
- package/dist/core/primitive/Divider/index.js.map +1 -1
- package/dist/core/primitive/Field/index.d.ts +10 -1
- package/dist/core/primitive/Field/index.d.ts.map +1 -1
- package/dist/core/primitive/Field/index.js +16 -1
- package/dist/core/primitive/Field/index.js.map +1 -1
- package/dist/core/primitive/FileDropzone/index.d.ts.map +1 -1
- package/dist/core/primitive/FileDropzone/index.js +2 -2
- package/dist/core/primitive/FileDropzone/index.js.map +1 -1
- package/dist/core/primitive/GrammarRoot/index.d.ts.map +1 -1
- package/dist/core/primitive/GrammarRoot/index.js +3 -1
- package/dist/core/primitive/GrammarRoot/index.js.map +1 -1
- package/dist/core/primitive/IconButton/index.d.ts +17 -10
- package/dist/core/primitive/IconButton/index.d.ts.map +1 -1
- package/dist/core/primitive/IconButton/index.js +4 -1
- package/dist/core/primitive/IconButton/index.js.map +1 -1
- package/dist/core/primitive/Input/index.d.ts.map +1 -1
- package/dist/core/primitive/Input/index.js +3 -18
- package/dist/core/primitive/Input/index.js.map +1 -1
- package/dist/core/primitive/ListItem/index.d.ts.map +1 -1
- package/dist/core/primitive/ListItem/index.js +2 -1
- package/dist/core/primitive/ListItem/index.js.map +1 -1
- package/dist/core/primitive/Progress/index.d.ts.map +1 -1
- package/dist/core/primitive/Progress/index.js +1 -1
- package/dist/core/primitive/Progress/index.js.map +1 -1
- package/dist/core/primitive/RelativeTime/index.d.ts +19 -6
- package/dist/core/primitive/RelativeTime/index.d.ts.map +1 -1
- package/dist/core/primitive/RelativeTime/index.js +44 -23
- package/dist/core/primitive/RelativeTime/index.js.map +1 -1
- package/dist/core/primitive/Skeleton/index.js +1 -1
- package/dist/core/primitive/Skeleton/index.js.map +1 -1
- package/dist/core/primitive/Slider/index.d.ts.map +1 -1
- package/dist/core/primitive/Slider/index.js +2 -2
- package/dist/core/primitive/Slider/index.js.map +1 -1
- package/dist/core/primitive/Switch/index.d.ts +3 -6
- package/dist/core/primitive/Switch/index.d.ts.map +1 -1
- package/dist/core/primitive/Switch/index.js +1 -1
- package/dist/core/primitive/Switch/index.js.map +1 -1
- package/dist/core/primitive/Text/index.d.ts +1 -0
- package/dist/core/primitive/Text/index.d.ts.map +1 -1
- package/dist/core/primitive/Text/index.js +1 -2
- package/dist/core/primitive/Text/index.js.map +1 -1
- package/dist/core/primitive/TextAction/index.d.ts +3 -3
- package/dist/core/primitive/TextAction/index.d.ts.map +1 -1
- package/dist/core/primitive/TextAction/index.js +2 -2
- package/dist/core/primitive/TextAction/index.js.map +1 -1
- package/dist/core/styles.css +0 -2
- package/dist/heritage/dna.d.ts +62 -0
- package/dist/heritage/dna.d.ts.map +1 -0
- package/dist/heritage/dna.js +37 -0
- package/dist/heritage/dna.js.map +1 -0
- package/dist/offset-pop/conformance.d.ts +1 -1
- package/dist/offset-pop/conformance.js +1 -1
- package/dist/offset-pop/conformance.js.map +1 -1
- package/dist/offset-pop/dna.d.ts +56 -0
- package/dist/offset-pop/dna.d.ts.map +1 -1
- package/dist/offset-pop/dna.js +31 -0
- package/dist/offset-pop/dna.js.map +1 -1
- package/package.json +7 -4
|
@@ -9,8 +9,8 @@ type ExtensionWithoutCommonCollisions<Common extends GrammarRendererRegistry, Ex
|
|
|
9
9
|
};
|
|
10
10
|
export declare const COMMON_GRAMMAR_COMPONENTS: Readonly<{
|
|
11
11
|
readonly Accordion: ({ label, items, expandedIds, defaultExpandedIds, onExpandedChange, allowsMultipleExpanded, headingLevel, className, }: import("./renderers-navigation.js").AccordionProps) => import("react").JSX.Element;
|
|
12
|
-
readonly Avatar: ({ name, src, seed, fallback, size, shape, isDecorative, isCurrent, className, isSkeleton }: import("./renderers-navigation.js").AvatarProps) => import("react").JSX.Element;
|
|
13
|
-
readonly AvatarButton: ({ name, src, seed, fallback, size, onPress, isDisabled }: import("./renderers-navigation.js").AvatarButtonProps) => import("react").JSX.Element;
|
|
12
|
+
readonly Avatar: ({ name, src, seed, kind, fallback, size, shape, isDecorative, isCurrent, className, isSkeleton }: import("./renderers-navigation.js").AvatarProps) => import("react").JSX.Element;
|
|
13
|
+
readonly AvatarButton: ({ name, src, seed, kind, fallback, size, onPress, isDisabled }: import("./renderers-navigation.js").AvatarButtonProps) => import("react").JSX.Element;
|
|
14
14
|
readonly AvatarGroup: ({ label, items, layout, max, size, overflowLabel, className }: import("./renderers-navigation.js").AvatarGroupProps) => import("react").JSX.Element;
|
|
15
15
|
readonly BottomNav: ({ label, items, currentId, onSelect, position, visibility, className }: import("./renderers-navigation.js").BottomNavProps) => import("react").JSX.Element;
|
|
16
16
|
readonly Breadcrumbs: ({ label, items, separator, onAction, className }: import("./renderers-navigation.js").BreadcrumbsProps) => import("react").JSX.Element;
|
|
@@ -24,7 +24,7 @@ export declare const COMMON_GRAMMAR_COMPONENTS: Readonly<{
|
|
|
24
24
|
readonly IdentityLockup: ({ title, subtitle, logoSrc, markShape, size, onPress, isDisabled }: import("./renderers-navigation.js").IdentityLockupProps) => import("react").JSX.Element;
|
|
25
25
|
readonly Image: ({ src, alt, aspect, fit, fallback, loading, srcSet, sizes, width, height, onLoadStateChange, plate, className, ...assetSlot }: import("./renderers-navigation.js").ImageProps) => import("react").JSX.Element;
|
|
26
26
|
readonly Link: ({ children, href, kind, isCurrent, visited, externalHint, externalIcon, isDisabled, onFollow, className, }: import("./renderers-navigation.js").LinkProps) => import("react").JSX.Element;
|
|
27
|
-
readonly ListBox: ({ label, items, sections, inset, selectionMode, selectedIds, defaultSelectedIds, onSelectionChange, onAction, emptyContent, isLoading, loadingRows, className, }: import("./renderers-navigation.js").ListBoxProps) => import("react").JSX.Element;
|
|
27
|
+
readonly ListBox: ({ label, items, sections, inset, size, selectionMode, selectedIds, defaultSelectedIds, onSelectionChange, onAction, emptyContent, isLoading, loadingRows, className, }: import("./renderers-navigation.js").ListBoxProps) => import("react").JSX.Element;
|
|
28
28
|
readonly Pagination: ({ label, page, pageCount, onPageChange, siblingCount, previousLabel, nextLabel, pageLabel, summary, className, }: import("./renderers-navigation.js").PaginationProps) => import("react").JSX.Element;
|
|
29
29
|
readonly PlainPressable: ({ children, "aria-label": ariaLabel, onPress, isDisabled, shape, size, className }: import("./renderers-navigation.js").PlainPressableProps) => import("react").JSX.Element;
|
|
30
30
|
readonly Rating: ({ label, value, defaultValue, onChange, max, isReadOnly, isDisabled, valueLabel, icon, name, className, }: import("./renderers-navigation.js").RatingProps) => import("react").JSX.Element;
|
|
@@ -79,7 +79,7 @@ export declare const COMMON_GRAMMAR_COMPONENTS: Readonly<{
|
|
|
79
79
|
readonly Heading: ({ children, level, scale, isSkeleton, isVisuallyHidden, }: import("./renderers.js").HeadingProps) => import("react").JSX.Element;
|
|
80
80
|
readonly HorizontalScrollRegion: import("react").ForwardRefExoticComponent<Omit<import("./renderers.js").HorizontalScrollRegionProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
81
81
|
readonly Icon: ({ source: Source, usage, ariaLabel, isSkeleton }: import("./renderers.js").IconProps) => import("react").JSX.Element;
|
|
82
|
-
readonly IconButton: ({ source, label, variant, size, isFloating, isActive, isDisabled, isSkeleton, onPress, "aria-controls": controls, "aria-expanded": expanded, badge, badgeLabel, badgeMax, }: import("./renderers.js").IconButtonProps) => import("react").JSX.Element;
|
|
82
|
+
readonly IconButton: ({ source, label, intent, step, variant: legacyVariant, size, isFloating, isActive, isDisabled, isSkeleton, onPress, "aria-controls": controls, "aria-expanded": expanded, badge, badgeLabel, badgeMax, }: import("./renderers.js").IconButtonProps) => import("react").JSX.Element;
|
|
83
83
|
readonly IconTile: ({ source, artwork, ariaLabel, tone, size, isSkeleton, }: import("./renderers.js").IconTileProps) => import("react").JSX.Element;
|
|
84
84
|
readonly IncludedMark: ({ className, label, ...props }: import("./renderers.js").IncludedMarkProps) => import("react").JSX.Element;
|
|
85
85
|
readonly Input: ({ id, name, label, isLabelHidden, kind: kindName, variant: requestedVariant, size, placeholder, defaultValue, value, hint, errorMessage, isError, isDisabled, isRequired, isSkeleton, isReadOnly, isCopyable, copyLabel, copiedLabel, copyIcon: CopyIcon, copiedIcon: CopiedIcon, onCopy, revealLabel, hideLabel, revealIcon: RevealIcon, hideIcon: HideIcon, onValueChange, onBlur, onPaste, autoFocus, }: import("./renderers.js").InputProps) => import("react").JSX.Element;
|
|
@@ -110,7 +110,7 @@ export declare const COMMON_GRAMMAR_COMPONENTS: Readonly<{
|
|
|
110
110
|
readonly Rail: (props: import("./renderers.js").RailProps) => import("react").JSX.Element;
|
|
111
111
|
readonly RankArtwork: ({ className, kind, label, ...props }: import("./renderers.js").RankArtworkProps) => import("react").JSX.Element;
|
|
112
112
|
readonly Region: (props: import("./renderers.js").RegionProps) => import("react").JSX.Element;
|
|
113
|
-
readonly RelativeTime: ({ dateTime, locale, mode, fallback, id, size, tone }: import("./renderers.js").RelativeTimeProps) => import("react").JSX.Element;
|
|
113
|
+
readonly RelativeTime: ({ dateTime, locale, mode, format, expiredLabel, template, fallback, id, size, tone }: import("./renderers.js").RelativeTimeProps) => import("react").JSX.Element;
|
|
114
114
|
readonly SectionHeader: ({ title, description, eyebrow, action, count, meta, level, className, id, composition, isSkeleton, }: import("./renderers.js").SectionHeaderProps) => import("react").JSX.Element;
|
|
115
115
|
readonly Sidebar: ({ label, groups, selectedKey, presentation, isCollapsed, collapseLabel, expandLabel, toggleSource, header, footer, onAction, onCollapsedChange, }: import("./renderers.js").SidebarProps) => import("react").JSX.Element;
|
|
116
116
|
readonly StateMark: (props: import("./renderers.js").StateMarkProps) => import("react").JSX.Element | null;
|
|
@@ -123,7 +123,7 @@ export declare const COMMON_GRAMMAR_COMPONENTS: Readonly<{
|
|
|
123
123
|
readonly Tabs: (props: import("./renderers.js").TabsProps) => import("react").JSX.Element;
|
|
124
124
|
readonly Text: ({ as: Element, id, children, startContent, size, tone, weight, live, overflow, isSkeleton, isSuperseded, parentEmphasis, }: import("./renderers.js").TextProps) => import("react").JSX.Element;
|
|
125
125
|
readonly TextAction: (props: import("./renderers.js").TextActionProps) => import("react").JSX.Element;
|
|
126
|
-
readonly Tooltip: ({ content, children, placement
|
|
126
|
+
readonly Tooltip: ({ content, children, placement }: import("./renderers.js").TooltipProps) => import("react").JSX.Element;
|
|
127
127
|
readonly VerticalScrollRegion: (props: import("./renderers.js").VerticalScrollRegionProps) => import("react").JSX.Element;
|
|
128
128
|
readonly WorkspaceShell: (props: import("./renderers.js").WorkspaceShellProps) => import("react").JSX.Element;
|
|
129
129
|
}>;
|
|
@@ -4,7 +4,8 @@ export { DataTable, type DataTableCellInteraction, type DataTableColumn, type Da
|
|
|
4
4
|
export { DragItem, type DragItemProps } from "../core/branch/DragItem/index.js";
|
|
5
5
|
export { Disclosure, type DisclosureProps } from "../core/branch/Disclosure/index.js";
|
|
6
6
|
export { FlowGraph, radialPositions, type FlowGraphEdge, type FlowGraphHeight, type FlowGraphLayout, type FlowGraphNode, type FlowGraphNodeSize, type FlowGraphProps, type FlowGraphTone } from "../core/branch/FlowGraph/index.js";
|
|
7
|
-
export { ListBox, type ListBoxItem, type ListBoxSection, type ListBoxProps } from "../core/branch/ListBox/index.js";
|
|
7
|
+
export { ListBox, type ListBoxItem, type ListBoxSection, type ListBoxProps, type ListBoxSize } from "../core/branch/ListBox/index.js";
|
|
8
|
+
export type { ItemDescriptionLines } from "../core/collectionItem.js";
|
|
8
9
|
export { AvatarButton, type AvatarButtonProps } from "../core/composite/AvatarButton/index.js";
|
|
9
10
|
export { IdentityLockup, type IdentityLockupProps } from "../core/composite/IdentityLockup/index.js";
|
|
10
11
|
export { PlainPressable, type PlainPressableProps, type PlainPressableShape } from "../core/primitive/PlainPressable/index.js";
|
|
@@ -18,7 +19,7 @@ export { Timeline, type TimelineItem, type TimelineProps } from "../core/composi
|
|
|
18
19
|
export { BottomNav, type BottomNavItem, type BottomNavProps } from "../core/composition/BottomNav/index.js";
|
|
19
20
|
export { Footer, type FooterLink, type FooterLinkGroup, type FooterProps } from "../core/composition/Footer/index.js";
|
|
20
21
|
export { TopBar, type TopBarMenu, type TopBarProps } from "../core/composition/TopBar/index.js";
|
|
21
|
-
export { Avatar, avatarInitials, type AvatarProps, type AvatarShape, type AvatarSize } from "../core/primitive/Avatar/index.js";
|
|
22
|
+
export { Avatar, avatarInitials, type AvatarKind, type AvatarProps, type AvatarShape, type AvatarSize } from "../core/primitive/Avatar/index.js";
|
|
22
23
|
export { Image, type AssetSlotProps, type ImageAspect, type ImageLoadState, type ImageProps } from "../core/primitive/Image/index.js";
|
|
23
24
|
export { Link, type LinkKind, type LinkProps } from "../core/primitive/Link/index.js";
|
|
24
25
|
export { Rating, type RatingProps } from "../core/primitive/Rating/index.js";
|
|
@@ -26,8 +27,8 @@ export { Video, type VideoCaptionsTrack, type VideoProps } from "../core/primiti
|
|
|
26
27
|
/** Every navigation-group renderer, spread into `COMMON_GRAMMAR_COMPONENTS`. */
|
|
27
28
|
export declare const COMMON_NAVIGATION_COMPONENTS: Readonly<{
|
|
28
29
|
readonly Accordion: ({ label, items, expandedIds, defaultExpandedIds, onExpandedChange, allowsMultipleExpanded, headingLevel, className, }: import("./renderers-navigation.js").AccordionProps) => import("react").JSX.Element;
|
|
29
|
-
readonly Avatar: ({ name, src, seed, fallback, size, shape, isDecorative, isCurrent, className, isSkeleton }: import("./renderers-navigation.js").AvatarProps) => import("react").JSX.Element;
|
|
30
|
-
readonly AvatarButton: ({ name, src, seed, fallback, size, onPress, isDisabled }: import("./renderers-navigation.js").AvatarButtonProps) => import("react").JSX.Element;
|
|
30
|
+
readonly Avatar: ({ name, src, seed, kind, fallback, size, shape, isDecorative, isCurrent, className, isSkeleton }: import("./renderers-navigation.js").AvatarProps) => import("react").JSX.Element;
|
|
31
|
+
readonly AvatarButton: ({ name, src, seed, kind, fallback, size, onPress, isDisabled }: import("./renderers-navigation.js").AvatarButtonProps) => import("react").JSX.Element;
|
|
31
32
|
readonly AvatarGroup: ({ label, items, layout, max, size, overflowLabel, className }: import("./renderers-navigation.js").AvatarGroupProps) => import("react").JSX.Element;
|
|
32
33
|
readonly BottomNav: ({ label, items, currentId, onSelect, position, visibility, className }: import("./renderers-navigation.js").BottomNavProps) => import("react").JSX.Element;
|
|
33
34
|
readonly Breadcrumbs: ({ label, items, separator, onAction, className }: import("./renderers-navigation.js").BreadcrumbsProps) => import("react").JSX.Element;
|
|
@@ -41,7 +42,7 @@ export declare const COMMON_NAVIGATION_COMPONENTS: Readonly<{
|
|
|
41
42
|
readonly IdentityLockup: ({ title, subtitle, logoSrc, markShape, size, onPress, isDisabled }: import("./renderers-navigation.js").IdentityLockupProps) => import("react").JSX.Element;
|
|
42
43
|
readonly Image: ({ src, alt, aspect, fit, fallback, loading, srcSet, sizes, width, height, onLoadStateChange, plate, className, ...assetSlot }: import("./renderers-navigation.js").ImageProps) => import("react").JSX.Element;
|
|
43
44
|
readonly Link: ({ children, href, kind, isCurrent, visited, externalHint, externalIcon, isDisabled, onFollow, className, }: import("./renderers-navigation.js").LinkProps) => import("react").JSX.Element;
|
|
44
|
-
readonly ListBox: ({ label, items, sections, inset, selectionMode, selectedIds, defaultSelectedIds, onSelectionChange, onAction, emptyContent, isLoading, loadingRows, className, }: import("./renderers-navigation.js").ListBoxProps) => import("react").JSX.Element;
|
|
45
|
+
readonly ListBox: ({ label, items, sections, inset, size, selectionMode, selectedIds, defaultSelectedIds, onSelectionChange, onAction, emptyContent, isLoading, loadingRows, className, }: import("./renderers-navigation.js").ListBoxProps) => import("react").JSX.Element;
|
|
45
46
|
readonly Pagination: ({ label, page, pageCount, onPageChange, siblingCount, previousLabel, nextLabel, pageLabel, summary, className, }: import("./renderers-navigation.js").PaginationProps) => import("react").JSX.Element;
|
|
46
47
|
readonly PlainPressable: ({ children, "aria-label": ariaLabel, onPress, isDisabled, shape, size, className }: import("./renderers-navigation.js").PlainPressableProps) => import("react").JSX.Element;
|
|
47
48
|
readonly Rating: ({ label, value, defaultValue, onChange, max, isReadOnly, isDisabled, valueLabel, icon, name, className, }: import("./renderers-navigation.js").RatingProps) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderers-navigation.d.ts","sourceRoot":"","sources":["../../src/common/renderers-navigation.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,mCAAmC,CAAA;AACtG,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,SAAS,EAAE,KAAK,wBAAwB,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAC9K,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,oCAAoC,CAAA;AACrF,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAA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A;AAC5E,OAAO,EAAE,KAAK,EAA4C,MAAM,kCAAkC,CAAA;AAElG,gFAAgF;AAChF,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,CAAC;IACtD,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe;IAC1G,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK;CACvJ,CAAC,CAAA"}
|
|
@@ -2,6 +2,10 @@ export { GrammarRoot, type GrammarRootProps } from "../core/primitive/GrammarRoo
|
|
|
2
2
|
export { PageContainer, type PageContainerProps } from "../core/primitive/PageContainer/index.js";
|
|
3
3
|
export { Badge, type BadgeProps, type BadgeTone } from "../core/primitive/Badge/index.js";
|
|
4
4
|
export { Button, type ButtonProps, type ButtonSize, type ButtonType, type ButtonVariant } from "../core/primitive/Button/index.js";
|
|
5
|
+
export type { ButtonIntent, ButtonIntentProps, DestructiveStep } from "../core/buttonIntent.js";
|
|
6
|
+
export { CollectionItem, type CollectionItemProps } from "../core/composite/CollectionItem/index.js";
|
|
7
|
+
export { ItemActions, type ItemActionsProps } from "../core/composite/ItemActions/index.js";
|
|
8
|
+
export { ToolbarActions, type ToolbarActionsProps } from "../core/composite/ToolbarActions/index.js";
|
|
5
9
|
export { Divider, type DividerProps, type DividerSemantics } from "../core/primitive/Divider/index.js";
|
|
6
10
|
export { NavLandmark, type NavLandmarkLayout, type NavLandmarkProps } from "../core/primitive/NavLandmark/index.js";
|
|
7
11
|
export { Region, type RegionProps, type RegionSpacing } from "../core/primitive/Region/index.js";
|
|
@@ -16,7 +20,7 @@ export { Input, type InputKind, type InputProps, type InputVariant } from "../co
|
|
|
16
20
|
export { PressableField, type PressableFieldProps } from "../core/primitive/PressableField/index.js";
|
|
17
21
|
export { Progress, type ProgressProps } from "../core/primitive/Progress/index.js";
|
|
18
22
|
export { Text, type TextAs, type TextLive, type TextProps, type TextSize, type TextTone, type TextWeight } from "../core/primitive/Text/index.js";
|
|
19
|
-
export { RelativeTime, type RelativeTimeMode, type RelativeTimeProps } from "../core/primitive/RelativeTime/index.js";
|
|
23
|
+
export { RelativeTime, type RelativeTimeFormat, type RelativeTimeMode, type RelativeTimeProps } from "../core/primitive/RelativeTime/index.js";
|
|
20
24
|
export { TextAction, type TextActionAppearance, type TextActionProps, type TextActionSize } from "../core/primitive/TextAction/index.js";
|
|
21
25
|
export { SectionHeader, type SectionHeaderProps } from "../core/primitive/SectionHeader/index.js";
|
|
22
26
|
export { MediaFrame, type MediaFrameProps } from "../core/primitive/MediaFrame/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderers.d.ts","sourceRoot":"","sources":["../../src/common/renderers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AAC3F,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,kCAAkC,CAAA;AACzF,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAClI,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AACtG,OAAO,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACnH,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,a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sB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA"}
|
package/dist/common/renderers.js
CHANGED
|
@@ -4,6 +4,9 @@ export { GrammarRoot } from "../core/primitive/GrammarRoot/index.js";
|
|
|
4
4
|
export { PageContainer } from "../core/primitive/PageContainer/index.js";
|
|
5
5
|
export { Badge } from "../core/primitive/Badge/index.js";
|
|
6
6
|
export { Button } from "../core/primitive/Button/index.js";
|
|
7
|
+
export { CollectionItem } from "../core/composite/CollectionItem/index.js";
|
|
8
|
+
export { ItemActions } from "../core/composite/ItemActions/index.js";
|
|
9
|
+
export { ToolbarActions } from "../core/composite/ToolbarActions/index.js";
|
|
7
10
|
export { Divider } from "../core/primitive/Divider/index.js";
|
|
8
11
|
export { NavLandmark } from "../core/primitive/NavLandmark/index.js";
|
|
9
12
|
export { Region } from "../core/primitive/Region/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderers.js","sourceRoot":"","sources":["../../src/common/renderers.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,uCAAuC;AACvC,OAAO,EAAE,WAAW,EAAyB,MAAM,wCAAwC,CAAA;AAC3F,OAAO,EAAE,aAAa,EAA2B,MAAM,0CAA0C,CAAA;AACjG,OAAO,EAAE,KAAK,EAAmC,MAAM,kCAAkC,CAAA;AACzF,OAAO,EAAE,MAAM,EAA0E,MAAM,mCAAmC,CAAA;
|
|
1
|
+
{"version":3,"file":"renderers.js","sourceRoot":"","sources":["../../src/common/renderers.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,uCAAuC;AACvC,OAAO,EAAE,WAAW,EAAyB,MAAM,wCAAwC,CAAA;AAC3F,OAAO,EAAE,aAAa,EAA2B,MAAM,0CAA0C,CAAA;AACjG,OAAO,EAAE,KAAK,EAAmC,MAAM,kCAAkC,CAAA;AACzF,OAAO,EAAE,MAAM,EAA0E,MAAM,mCAAmC,CAAA;AAElI,OAAO,EAAE,cAAc,EAA4B,M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8BAA8B,CAAA;AACjF,OAAO,EAAE,OAAO,EAA4C,MAAM,iCAAiC,CAAA;AACnG,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAA;AAC9N,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA"}
|
package/dist/common/styles.css
CHANGED
|
@@ -334,7 +334,7 @@
|
|
|
334
334
|
.starci-core-section-skeleton-meta > .starci-core-skeleton-group { inline-size: 6rem; }
|
|
335
335
|
.starci-core-section-skeleton-meta .starci-core-skeleton { block-size: 0.75rem; }
|
|
336
336
|
.starci-core-section-skeleton-action { display: block; inline-size: 6rem; block-size: 2.5rem; }
|
|
337
|
-
.starci-core-section-skeleton-action > .starci-core-skeleton { block-size: 100%; aspect-ratio: auto;
|
|
337
|
+
.starci-core-section-skeleton-action > .starci-core-skeleton { block-size: 100%; aspect-ratio: auto; }
|
|
338
338
|
|
|
339
339
|
/*
|
|
340
340
|
* Keyboard-reachable scroll owners (VerticalScrollRegion / HorizontalScrollRegion when focusable,
|
|
@@ -369,7 +369,6 @@
|
|
|
369
369
|
position: absolute;
|
|
370
370
|
width: 1px;
|
|
371
371
|
height: 1px;
|
|
372
|
-
padding: 0;
|
|
373
372
|
margin: -1px;
|
|
374
373
|
overflow: hidden;
|
|
375
374
|
clip: rect(0, 0, 0, 0);
|
|
@@ -728,68 +727,6 @@
|
|
|
728
727
|
line-height: 1rem;
|
|
729
728
|
}
|
|
730
729
|
|
|
731
|
-
.starci-core-tooltip {
|
|
732
|
-
position: relative;
|
|
733
|
-
max-width: fit-content;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
.starci-core-tooltip-content {
|
|
737
|
-
position: absolute;
|
|
738
|
-
z-index: 20;
|
|
739
|
-
pointer-events: none;
|
|
740
|
-
white-space: nowrap;
|
|
741
|
-
border-radius: var(--starci-core-control-radius, 0.75rem);
|
|
742
|
-
background: var(--starci-core-foreground, var(--foreground, CanvasText));
|
|
743
|
-
color: var(--starci-core-canvas, var(--background, Canvas));
|
|
744
|
-
padding: 0.25rem 0.5rem;
|
|
745
|
-
font-size: 0.75rem;
|
|
746
|
-
line-height: 1rem;
|
|
747
|
-
font-weight: 500;
|
|
748
|
-
opacity: 0;
|
|
749
|
-
transition:
|
|
750
|
-
opacity var(--starci-core-motion-duration, 180ms) var(--starci-core-motion-easing, cubic-bezier(0.2, 0, 0, 1)),
|
|
751
|
-
visibility var(--starci-core-motion-duration, 180ms) var(--starci-core-motion-easing, cubic-bezier(0.2, 0, 0, 1));
|
|
752
|
-
visibility: hidden;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
/* Collection annotations use the native top layer to escape scroll clipping without leaving Grammar scope. */
|
|
756
|
-
.starci-core-tooltip-content[data-grammar-tooltip-annotation="true"] {
|
|
757
|
-
position: fixed;
|
|
758
|
-
inset: auto;
|
|
759
|
-
box-sizing: border-box;
|
|
760
|
-
max-inline-size: calc(100dvw - 1rem);
|
|
761
|
-
margin: 0;
|
|
762
|
-
border: 0;
|
|
763
|
-
white-space: normal;
|
|
764
|
-
overflow-wrap: anywhere;
|
|
765
|
-
opacity: 1;
|
|
766
|
-
visibility: visible;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
.starci-core-tooltip:hover > .starci-core-tooltip-content,
|
|
770
|
-
.starci-core-tooltip:focus-within > .starci-core-tooltip-content {
|
|
771
|
-
opacity: 1;
|
|
772
|
-
visibility: visible;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
.starci-core-tooltip[data-grammar-tooltip-placement="top"] > .starci-core-tooltip-content {
|
|
776
|
-
bottom: calc(100% + 0.375rem);
|
|
777
|
-
left: 50%;
|
|
778
|
-
transform: translateX(-50%);
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
.starci-core-tooltip[data-grammar-tooltip-placement="bottom"] > .starci-core-tooltip-content {
|
|
782
|
-
top: calc(100% + 0.375rem);
|
|
783
|
-
left: 50%;
|
|
784
|
-
transform: translateX(-50%);
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
@media (prefers-reduced-motion: reduce) {
|
|
788
|
-
.starci-core-tooltip-content {
|
|
789
|
-
transition: none;
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
|
|
793
730
|
.starci-core-surface {
|
|
794
731
|
position: relative;
|
|
795
732
|
min-width: 0;
|
|
@@ -1201,8 +1138,7 @@
|
|
|
1201
1138
|
align-items: center;
|
|
1202
1139
|
}
|
|
1203
1140
|
|
|
1204
|
-
.starci-core-tabs-frame
|
|
1205
|
-
.starci-core-tabs-scroll {
|
|
1141
|
+
.starci-core-tabs-frame {
|
|
1206
1142
|
width: 100%;
|
|
1207
1143
|
min-width: 0;
|
|
1208
1144
|
}
|
|
@@ -1224,17 +1160,13 @@
|
|
|
1224
1160
|
align-items: flex-end;
|
|
1225
1161
|
}
|
|
1226
1162
|
|
|
1227
|
-
.starci-core-tabs-scroll {
|
|
1228
|
-
overflow-x: auto;
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
1163
|
.starci-core-tabs-frame[data-grammar-tabs-inset="page"] {
|
|
1232
1164
|
padding-inline: 1.5rem;
|
|
1233
1165
|
}
|
|
1234
1166
|
|
|
1235
1167
|
.starci-core-tabs {
|
|
1236
|
-
width:
|
|
1237
|
-
min-width:
|
|
1168
|
+
width: 100%;
|
|
1169
|
+
min-width: 0;
|
|
1238
1170
|
white-space: nowrap;
|
|
1239
1171
|
}
|
|
1240
1172
|
|
|
@@ -1353,7 +1285,7 @@
|
|
|
1353
1285
|
.starci-core-list-row[data-grammar-skeleton="true"] .starci-core-list-row-name { flex: 0 1 55%; }
|
|
1354
1286
|
.starci-core-list-row[data-grammar-skeleton="true"] .starci-core-list-row-description { inline-size: 85%; }
|
|
1355
1287
|
.starci-core-list-row-skeleton-action { display: block; inline-size: 4.5rem; block-size: 2rem; }
|
|
1356
|
-
.starci-core-list-row-skeleton-action > .starci-core-skeleton { block-size: 100%; aspect-ratio: auto;
|
|
1288
|
+
.starci-core-list-row-skeleton-action > .starci-core-skeleton { block-size: 100%; aspect-ratio: auto; }
|
|
1357
1289
|
|
|
1358
1290
|
.starci-core-list-row-detail {
|
|
1359
1291
|
display: flex;
|
|
@@ -1958,23 +1890,6 @@
|
|
|
1958
1890
|
border-bottom-width: 0 !important;
|
|
1959
1891
|
}
|
|
1960
1892
|
|
|
1961
|
-
/* Feature tabs share the dashboard rail's left inset; scroll chrome must not reclaim it. */
|
|
1962
|
-
.starci-core-navigation-feature-nav-feature .starci-core-tabs-scroll {
|
|
1963
|
-
padding-block: 0;
|
|
1964
|
-
padding-inline-start: 0;
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
.starci-core-navigation-feature-nav-feature .tabs__list-container__scroll-prev[disabled],
|
|
1968
|
-
.starci-core-navigation-feature-nav-feature .tabs__list-container__scroll-prev[tabindex="-1"] {
|
|
1969
|
-
width: 0;
|
|
1970
|
-
min-width: 0;
|
|
1971
|
-
padding: 0;
|
|
1972
|
-
margin: 0;
|
|
1973
|
-
overflow: hidden;
|
|
1974
|
-
opacity: 0;
|
|
1975
|
-
pointer-events: none;
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
1893
|
.starci-core-navigation-feature-nav-feature .starci-core-tabs .tabs__indicator {
|
|
1979
1894
|
bottom: 0 !important;
|
|
1980
1895
|
inset-block-end: 0 !important;
|
|
@@ -2849,9 +2764,7 @@
|
|
|
2849
2764
|
}
|
|
2850
2765
|
|
|
2851
2766
|
.starci-core-divider-rule {
|
|
2852
|
-
height: 1px;
|
|
2853
2767
|
flex: 1 1 0%;
|
|
2854
|
-
background: var(--border, var(--separator, var(--starci-core-separator, GrayText)));
|
|
2855
2768
|
}
|
|
2856
2769
|
|
|
2857
2770
|
/* Region, List, ListItem: semantic page structure that draws nothing of its own. */
|
|
@@ -2875,18 +2788,6 @@
|
|
|
2875
2788
|
overflow-x: auto;
|
|
2876
2789
|
}
|
|
2877
2790
|
|
|
2878
|
-
/* The unlabelled hairline (0.6.0): BOUNDARY-1, one pixel of --separator across its container, no margin. */
|
|
2879
|
-
.starci-core-divider-bare {
|
|
2880
|
-
display: block;
|
|
2881
|
-
width: 100%;
|
|
2882
|
-
height: 0;
|
|
2883
|
-
flex: none;
|
|
2884
|
-
margin: 0;
|
|
2885
|
-
border: 0;
|
|
2886
|
-
/* A border, not a background: forced colours keep a border and drop a background. */
|
|
2887
|
-
border-block-start: 1px solid var(--separator, var(--starci-core-separator, GrayText));
|
|
2888
|
-
}
|
|
2889
|
-
|
|
2890
2791
|
/* --- Pinned action bar (0.6.0): the narrow-screen page command, sticky at the bottom edge. --- */
|
|
2891
2792
|
.starci-core-pinned-action-bar {
|
|
2892
2793
|
position: sticky;
|
|
@@ -2941,7 +2842,6 @@
|
|
|
2941
2842
|
}
|
|
2942
2843
|
|
|
2943
2844
|
/* --- Icon button: a HeroUI `Button` worn as a circle. --- */
|
|
2944
|
-
[data-grammar-control-size="control"],
|
|
2945
2845
|
.starci-core-control-size .starci-core-field-skeleton-control {
|
|
2946
2846
|
box-sizing: border-box;
|
|
2947
2847
|
block-size: var(--starci-core-control-min-size, 2.75rem) !important;
|
|
@@ -3104,8 +3004,7 @@
|
|
|
3104
3004
|
/*
|
|
3105
3005
|
* --- Input ---
|
|
3106
3006
|
*
|
|
3107
|
-
* The reveal
|
|
3108
|
-
* letting the value slide underneath, at every width.
|
|
3007
|
+
* The reveal and copy actions are the suffix of HeroUI's InputGroup, so the value never slides under them.
|
|
3109
3008
|
*/
|
|
3110
3009
|
.starci-core-input {
|
|
3111
3010
|
display: grid !important;
|
|
@@ -3118,44 +3017,29 @@
|
|
|
3118
3017
|
}
|
|
3119
3018
|
|
|
3120
3019
|
.starci-core-input-control {
|
|
3121
|
-
position: relative;
|
|
3122
3020
|
display: flex;
|
|
3123
3021
|
min-width: 0;
|
|
3124
3022
|
align-items: center;
|
|
3125
3023
|
}
|
|
3126
3024
|
|
|
3127
|
-
.starci-core-input-control[data-reveal="true"] .starci-core-input-field {
|
|
3128
|
-
padding-inline-end: 2.75rem !important;
|
|
3129
|
-
}
|
|
3130
|
-
|
|
3131
3025
|
.starci-core-input-reveal {
|
|
3132
|
-
position: absolute;
|
|
3133
|
-
inset-inline-end: 0.5rem;
|
|
3134
|
-
top: 50%;
|
|
3135
3026
|
display: inline-flex;
|
|
3136
3027
|
align-items: center;
|
|
3137
3028
|
justify-content: center;
|
|
3138
|
-
transform: translateY(-50%);
|
|
3139
3029
|
border: 0;
|
|
3140
3030
|
background: transparent;
|
|
3141
3031
|
color: var(--muted, var(--starci-core-muted, GrayText));
|
|
3142
3032
|
cursor: pointer;
|
|
3143
3033
|
}
|
|
3144
3034
|
|
|
3145
|
-
/* In-field actions (reveal, copy): one group
|
|
3035
|
+
/* In-field actions (reveal, copy): one group in the InputGroup suffix. */
|
|
3146
3036
|
.starci-core-input-actions {
|
|
3147
|
-
position: absolute;
|
|
3148
|
-
inset-inline-end: 0.5rem;
|
|
3149
|
-
top: 50%;
|
|
3150
3037
|
display: inline-flex;
|
|
3151
3038
|
align-items: center;
|
|
3152
3039
|
gap: 0.25rem;
|
|
3153
|
-
transform: translateY(-50%);
|
|
3154
3040
|
}
|
|
3155
3041
|
|
|
3156
3042
|
.starci-core-input-actions .starci-core-input-reveal {
|
|
3157
|
-
position: static;
|
|
3158
|
-
transform: none;
|
|
3159
3043
|
min-height: 1.75rem;
|
|
3160
3044
|
padding-inline: 0.375rem;
|
|
3161
3045
|
border-radius: var(--radius-sm, calc(var(--radius, 0.5rem) * 0.5));
|
|
@@ -3184,11 +3068,6 @@
|
|
|
3184
3068
|
white-space: nowrap;
|
|
3185
3069
|
}
|
|
3186
3070
|
|
|
3187
|
-
.starci-core-input-control[data-reveal="true"] .starci-core-input-field,
|
|
3188
|
-
.starci-core-input-control[data-copyable="true"] .starci-core-input-field {
|
|
3189
|
-
padding-inline-end: calc(var(--starci-core-input-actions-width, 2rem) + 0.75rem) !important;
|
|
3190
|
-
}
|
|
3191
|
-
|
|
3192
3071
|
.starci-core-input-reveal:disabled {
|
|
3193
3072
|
cursor: default;
|
|
3194
3073
|
}
|
|
@@ -3206,13 +3085,11 @@
|
|
|
3206
3085
|
.starci-core-input-resting-label {
|
|
3207
3086
|
width: 33.333333% !important;
|
|
3208
3087
|
height: 1rem !important;
|
|
3209
|
-
border-radius: var(--radius-md, calc(var(--radius, 0.5rem) * 0.75)) !important;
|
|
3210
3088
|
}
|
|
3211
3089
|
|
|
3212
3090
|
.starci-core-input-resting-control {
|
|
3213
3091
|
width: 100% !important;
|
|
3214
3092
|
height: 2.5rem !important;
|
|
3215
|
-
border-radius: var(--field-radius, calc(var(--radius, 0.5rem) * 1.5)) !important;
|
|
3216
3093
|
}
|
|
3217
3094
|
|
|
3218
3095
|
/* --- Heading: the FONT rank each level stamps, drawn from the family's own sheet. --- */
|
|
@@ -3487,8 +3364,6 @@
|
|
|
3487
3364
|
.starci-core-button[data-width="fill"] {
|
|
3488
3365
|
width: 100% !important;
|
|
3489
3366
|
max-width: 100% !important;
|
|
3490
|
-
height: auto !important;
|
|
3491
|
-
min-height: var(--starci-core-control-min-size, 2.75rem);
|
|
3492
3367
|
white-space: normal !important;
|
|
3493
3368
|
}
|
|
3494
3369
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/branch/AlertDialog/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,EAAuF,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/branch/AlertDialog/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,EAAuF,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAIlJ,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG;IAC9C,kEAAkE;IAClE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,oDAAoD;IACpD,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAA;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAA;IACjC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IACjD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B,6EAA6E;IAC7E,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;IACnC,gFAAgF;IAChF,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAA;IAC5B,sFAAsF;IACtF,QAAQ,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAA;CAC/C,CAAA;AAeD;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,GAAI,4JAazB,gBAAgB,gCAsGlB,CAAA"}
|
|
@@ -5,6 +5,7 @@ import { useEffect, useId, useRef, useState } from "react";
|
|
|
5
5
|
import { SurfaceNesting } from "../../surfaceContext.js";
|
|
6
6
|
import { overlayOpenProps, resolveTriggerlessOpenProps, useOverlayContainer, vendorStatusFor } from "../../overlayScope.js";
|
|
7
7
|
import { Button } from "../../primitive/Button/index.js";
|
|
8
|
+
import { ButtonPlacementProvider } from "../../buttonIntent.js";
|
|
8
9
|
/** Holds the safe (cancel) action and takes initial focus when the dialog opens (WAI-ARIA APG). */
|
|
9
10
|
const SafeAction = ({ children }) => {
|
|
10
11
|
const ref = useRef(null);
|
|
@@ -56,7 +57,9 @@ export const AlertDialog = ({ title, description, children, tone = "negative", c
|
|
|
56
57
|
close();
|
|
57
58
|
}, () => { setIsRunning(false); });
|
|
58
59
|
};
|
|
59
|
-
return (_jsxs(SurfaceNesting, { children: [_jsxs(HeroAlertDialog.Header, { className: "starci-core-overlay-header", children: [_jsx(HeroAlertDialog.Icon, { status: vendorStatusFor(tone), className: "starci-core-alert-dialog-icon" }), _jsxs("div", { className: "starci-core-overlay-heading-group", children: [_jsx(HeroAlertDialog.Heading, { className: "starci-core-overlay-title", children: title }), description === undefined ? null : (_jsx("p", { id: descriptionId, className: "starci-core-overlay-description", children: description }))] })] }), children === undefined ? null : (_jsx(HeroAlertDialog.Body, { className: "starci-core-overlay-body", children: children })), _jsxs(HeroAlertDialog.Footer, { className: "starci-core-overlay-footer", children: [_jsx(SafeAction, { children: _jsx(Button, {
|
|
60
|
+
return (_jsx(ButtonPlacementProvider, { placement: "decision", children: _jsxs(SurfaceNesting, { children: [_jsxs(HeroAlertDialog.Header, { className: "starci-core-overlay-header", children: [_jsx(HeroAlertDialog.Icon, { status: vendorStatusFor(tone), className: "starci-core-alert-dialog-icon" }), _jsxs("div", { className: "starci-core-overlay-heading-group", children: [_jsx(HeroAlertDialog.Heading, { className: "starci-core-overlay-title", children: title }), description === undefined ? null : (_jsx("p", { id: descriptionId, className: "starci-core-overlay-description", children: description }))] })] }), children === undefined ? null : (_jsx(HeroAlertDialog.Body, { className: "starci-core-overlay-body", children: children })), _jsxs(HeroAlertDialog.Footer, { className: "starci-core-overlay-footer", children: [_jsx(SafeAction, { children: _jsx(Button, { intent: "dismiss", isDisabled: pending, onPress: close, children: cancelLabel }) }), _jsx("span", { "data-grammar-overlay-action": "confirm", "data-grammar-tone": tone, "data-contract": "CTA-4 ACTION-2 FEEDBACK-3", children: tone === "negative"
|
|
61
|
+
? _jsx(Button, { intent: "destructive", step: "confirm", isPending: pending, onPress: confirm, children: confirmLabel })
|
|
62
|
+
: _jsx(Button, { intent: "commit", isPending: pending, onPress: confirm, children: confirmLabel }) })] })] }) }));
|
|
60
63
|
} }) }) }));
|
|
61
64
|
// With no trigger there is no `DialogTrigger` root (its PressResponder has no pressable child):
|
|
62
65
|
// the Backdrop, React Aria's `ModalOverlay`, owns the open state itself (see `resolveTriggerlessOpenProps`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/branch/AlertDialog/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AAE1E,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,eAAe,EAAyB,MAAM,uBAAuB,CAAA;AAClJ,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/branch/AlertDialog/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AAE1E,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,eAAe,EAAyB,MAAM,uBAAuB,CAAA;AAClJ,OAAO,EA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O,EAAE,KAAK,YAAG,WAAW,GAAU,GAC3E,EACb,8CAAkC,SAAS,uBAAoB,IAAI,mBAAgB,2BAA2B,YACzG,IAAI,KAAK,UAAU;gDAChB,CAAC,CAAC,KAAC,MAAM,IAAC,MAAM,EAAC,aAAa,EAAC,IAAI,EAAC,SAAS,EAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,YAAG,YAAY,GAAU;gDAC3G,CAAC,CAAC,KAAC,MAAM,IAAC,MAAM,EAAC,QAAQ,EAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,YAAG,YAAY,GAAU,GACxF,IACc,IACZ,GACS,CAC7B,CAAA;gBACL,CAAC,GACoB,GACD,GACL,CAC9B,CAAA;IAED,gGAAgG;IAChG,6GAA6G;IAC7G,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,CAC3B,8BACK,MAAM,EACN,OAAO,IACT,CACN,CAAC,CAAC,CAAC,CACA,MAAC,eAAe,OAAK,SAAS,aACzB,OAAO,EACP,MAAM,EACN,OAAO,IACM,CACrB,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -21,8 +21,6 @@ export type DataTableCellInteraction = {
|
|
|
21
21
|
readonly onDragOver?: DragEventHandler<HTMLDivElement>;
|
|
22
22
|
readonly onDragLeave?: DragEventHandler<HTMLDivElement>;
|
|
23
23
|
readonly onDrop?: DragEventHandler<HTMLDivElement>;
|
|
24
|
-
readonly isHighlighted?: boolean;
|
|
25
|
-
readonly tone?: "neutral" | "muted";
|
|
26
24
|
};
|
|
27
25
|
export type DataTableProps<Row extends DataTableRow> = {
|
|
28
26
|
/** Names the table, e.g. "Invoices". */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/branch/DataTable/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAgC,KAAK,gBAAgB,EAAuC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+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AQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAA;AA4CD;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,GAAG,SAAS,YAAY,EAAE,4RAsBjD,cAAc,CAAC,GAAG,CAAC,gCAiJrB,CAAA"}
|
|
@@ -4,6 +4,7 @@ import { Checkbox as HeroCheckbox, Table as HeroTable } from "@heroui/react";
|
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { Skeleton } from "../../primitive/Skeleton/index.js";
|
|
6
6
|
import { navigationClassName } from "../../navigationClassNames.js";
|
|
7
|
+
import { ButtonPlacementProvider } from "../../buttonIntent.js";
|
|
7
8
|
/** The row primitive filters aria-hidden out of its props, so the skeleton rows take it by ref (knowledge STATE-8). */
|
|
8
9
|
const hideFromAssistiveTechnology = (node) => node?.setAttribute("aria-hidden", "true");
|
|
9
10
|
const SELECTION_COLUMN = "starci-data-table-selection";
|
|
@@ -80,7 +81,7 @@ export const DataTable = ({ label, columns, rows, renderCell, getCellInteraction
|
|
|
80
81
|
? _jsx("div", { className: "starci-core-data-table-placeholder", "data-grammar-table-loading": "true", role: "status", children: loadingContent })
|
|
81
82
|
: _jsx("div", { className: "starci-core-data-table-placeholder", "data-contract": "STATE-3", "data-grammar-table-empty": "true", children: emptyContent }), children: [skeletonRows.map((row) => (_jsxs(HeroTable.Row, { id: row.id, ref: hideFromAssistiveTechnology, className: "starci-core-data-table-row", "data-grammar-table-row": "true", "data-grammar-skeleton": "true", "data-grammar-selected": "false", children: [multiple ? _jsx(HeroTable.Cell, { className: "starci-core-data-table-cell", "data-grammar-table-selection": "true", children: null }) : null, columns.map((column) => (_jsx(HeroTable.Cell, { className: "starci-core-data-table-cell", "data-grammar-table-align": column.align ?? "start", children: _jsx(Skeleton, { shape: "text" }) }, column.id)))] }, row.id))), visibleRows.map((row) => (_jsxs(HeroTable.Row, { id: row.id, className: "starci-core-data-table-row", "data-contract": "FOCUS-1", "data-grammar-table-row": "true", "data-grammar-selected": selectionMode !== "none" && isRowSelected(row.id) ? "true" : "false", children: [multiple ? (_jsx(HeroTable.Cell, { className: "starci-core-data-table-cell", "data-grammar-table-selection": "true", children: _jsx(SelectionCheckbox, { label: selectRowLabel?.(row) }) })) : null, columns.map((column) => {
|
|
82
83
|
const interaction = getCellInteraction?.(row, column.id);
|
|
83
|
-
return _jsx(HeroTable.Cell, { className: "starci-core-data-table-cell", "data-grammar-table-align": column.align ?? "start", "data-grammar-cell-
|
|
84
|
+
return _jsx(HeroTable.Cell, { className: "starci-core-data-table-cell", "data-grammar-table-align": column.align ?? "start", "data-grammar-cell-interaction": interaction === undefined ? "false" : "true", "data-grammar-row-id": row.id, "data-grammar-column-id": column.id, ...(interaction?.onAction === undefined ? {} : {
|
|
84
85
|
focusMode: "cell",
|
|
85
86
|
onClick: (event) => {
|
|
86
87
|
// Descendant controls keep their own actions; plain cell content activates the cell.
|
|
@@ -89,7 +90,7 @@ export const DataTable = ({ label, columns, rows, renderCell, getCellInteraction
|
|
|
89
90
|
event.stopPropagation();
|
|
90
91
|
interaction.onAction?.();
|
|
91
92
|
},
|
|
92
|
-
}), children: interaction === undefined ? renderCell(row, column.id) : (_jsx("div", { className: "starci-core-data-table-cell-content", ...(interaction.onDragOver === undefined ? {} : { onDragOver: interaction.onDragOver }), ...(interaction.onDragLeave === undefined ? {} : { onDragLeave: interaction.onDragLeave }), ...(interaction.onDrop === undefined ? {} : { onDrop: interaction.onDrop }), children: renderCell(row, column.id) })) }, column.id);
|
|
93
|
+
}), children: _jsx(ButtonPlacementProvider, { placement: "item", children: interaction === undefined ? renderCell(row, column.id) : (_jsx("div", { className: "starci-core-data-table-cell-content", ...(interaction.onDragOver === undefined ? {} : { onDragOver: interaction.onDragOver }), ...(interaction.onDragLeave === undefined ? {} : { onDragLeave: interaction.onDragLeave }), ...(interaction.onDrop === undefined ? {} : { onDrop: interaction.onDrop }), children: renderCell(row, column.id) })) }) }, column.id);
|
|
93
94
|
})] }, row.id)))] })] }) }) }));
|
|
94
95
|
};
|
|
95
96
|
//# sourceMappingURL=index.js.map
|