@starci/grammar 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/index.d.ts +38 -37
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +4 -0
- package/dist/core/index.js.map +1 -1
- package/package.json +1 -1
package/dist/core/index.d.ts
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
import { defineGrammarFamily, type GrammarRootProps } from "../common/index.js";
|
|
2
|
+
export * from "../common/index.js";
|
|
2
3
|
export type { PresentationState } from "./state.js";
|
|
3
4
|
export { STARCI_CORE_DARK_TOKEN_DEFAULTS, STARCI_CORE_DNA, STARCI_CORE_SPACING_SCALE, STARCI_CORE_TOKEN_DEFAULTS, STARCI_CORE_TOKEN_NAMES, type StarCiCoreDna, type StarCiCoreSpacingStep, type StarCiCoreSpacingValue, type StarCiCoreTokenDefaults, type StarCiCoreTokenName, } from "./dna.js";
|
|
4
5
|
/** @deprecated Use COMMON_GRAMMAR_COMPONENTS from `@starci/grammar/common`. */
|
|
5
6
|
export declare const CORE_GRAMMAR_COMPONENTS: Readonly<{
|
|
6
|
-
readonly Badge: ({ children, startContent, tone, isSkeleton }: import("./
|
|
7
|
-
readonly Button: (props: import("./
|
|
8
|
-
readonly ChatWorkspace: (props: import("./
|
|
9
|
-
readonly Divider: ({ label }: import("./
|
|
10
|
-
readonly EmptyNotice: ({ message, description, iconSource, actionLabel, actionStartContent, actionVariant, isActionPending, onAction, }: import("./
|
|
11
|
-
readonly FencedCodeBlock: (props: import("./
|
|
7
|
+
readonly Badge: ({ children, startContent, tone, isSkeleton }: import("./index.js").BadgeProps) => import("react").JSX.Element;
|
|
8
|
+
readonly Button: (props: import("./index.js").ButtonProps) => import("react").JSX.Element;
|
|
9
|
+
readonly ChatWorkspace: (props: import("./index.js").ChatWorkspaceProps) => import("react").JSX.Element;
|
|
10
|
+
readonly Divider: ({ label }: import("./index.js").DividerProps) => import("react").JSX.Element;
|
|
11
|
+
readonly EmptyNotice: ({ message, description, iconSource, actionLabel, actionStartContent, actionVariant, isActionPending, onAction, }: import("./index.js").EmptyNoticeProps) => import("react").JSX.Element;
|
|
12
|
+
readonly FencedCodeBlock: (props: import("./index.js").FencedCodeBlockProps) => import("react").JSX.Element;
|
|
12
13
|
readonly GrammarRoot: ({ className, theme, ...props }: GrammarRootProps) => import("react").JSX.Element;
|
|
13
|
-
readonly Heading: ({ children, level, scale, isSkeleton, isVisuallyHidden, }: import("./
|
|
14
|
-
readonly HorizontalScrollRegion: import("react").ForwardRefExoticComponent<Omit<import("./
|
|
15
|
-
readonly Icon: ({ source: Source, usage, ariaLabel, isSkeleton }: import("./
|
|
16
|
-
readonly IconButton: ({ source, label, isActive, isDisabled, isSkeleton, onPress, }: import("./
|
|
17
|
-
readonly IconTile: ({ source, artwork, ariaLabel, tone, size, isSkeleton, }: import("./
|
|
18
|
-
readonly IncludedMark: ({ className, label, ...props }: import("./
|
|
19
|
-
readonly Input: ({ id, name, label, kind: kindName, variant, placeholder, defaultValue, value, hint, errorMessage, isError, isDisabled, isRequired, isSkeleton, revealLabel, hideLabel, revealIcon: RevealIcon, hideIcon: HideIcon, onValueChange, }: import("./
|
|
20
|
-
readonly Label: ({ id, children, depth, as }: import("./
|
|
14
|
+
readonly Heading: ({ children, level, scale, isSkeleton, isVisuallyHidden, }: import("./index.js").HeadingProps) => import("react").JSX.Element;
|
|
15
|
+
readonly HorizontalScrollRegion: import("react").ForwardRefExoticComponent<Omit<import("./index.js").HorizontalScrollRegionProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
readonly Icon: ({ source: Source, usage, ariaLabel, isSkeleton }: import("./index.js").IconProps) => import("react").JSX.Element;
|
|
17
|
+
readonly IconButton: ({ source, label, isActive, isDisabled, isSkeleton, onPress, }: import("./index.js").IconButtonProps) => import("react").JSX.Element;
|
|
18
|
+
readonly IconTile: ({ source, artwork, ariaLabel, tone, size, isSkeleton, }: import("./index.js").IconTileProps) => import("react").JSX.Element;
|
|
19
|
+
readonly IncludedMark: ({ className, label, ...props }: import("./index.js").IncludedMarkProps) => import("react").JSX.Element;
|
|
20
|
+
readonly Input: ({ id, name, label, kind: kindName, variant, placeholder, defaultValue, value, hint, errorMessage, isError, isDisabled, isRequired, isSkeleton, revealLabel, hideLabel, revealIcon: RevealIcon, hideIcon: HideIcon, onValueChange, }: import("./index.js").InputProps) => import("react").JSX.Element;
|
|
21
|
+
readonly Label: ({ id, children, depth, as }: import("./index.js").LabelProps) => import("react").JSX.Element;
|
|
21
22
|
readonly LeadingNumber: (props: import("./LeadingNumber.js").LeadingNumberProps) => import("react").JSX.Element;
|
|
22
|
-
readonly MarkdownArticle: (props: import("./
|
|
23
|
-
readonly MarkdownTableFrame: (props: import("./
|
|
24
|
-
readonly MediaFrame: ({ children, caption, aspect, fit, treatment, className, }: import("./
|
|
25
|
-
readonly NavigationFeatureNav: ({ identity, navigation, navigationLabel, compactNavigationTrigger, compactNavigationTriggerLabel, actions, actionsLabel, featureNavigation, featureNavigationLabel, measure, position, className, ...headerProps }: import("./
|
|
23
|
+
readonly MarkdownArticle: (props: import("./index.js").MarkdownArticleProps) => import("react").JSX.Element;
|
|
24
|
+
readonly MarkdownTableFrame: (props: import("./index.js").MarkdownTableFrameProps) => import("react").JSX.Element;
|
|
25
|
+
readonly MediaFrame: ({ children, caption, aspect, fit, treatment, className, }: import("./index.js").MediaFrameProps) => import("react").JSX.Element;
|
|
26
|
+
readonly NavigationFeatureNav: ({ identity, navigation, navigationLabel, compactNavigationTrigger, compactNavigationTriggerLabel, actions, actionsLabel, featureNavigation, featureNavigationLabel, measure, position, className, ...headerProps }: import("./index.js").NavigationFeatureNavProps) => import("react").JSX.Element;
|
|
26
27
|
readonly OtpInput: (props: import("./OtpInput.js").OtpInputProps) => import("react").JSX.Element;
|
|
27
|
-
readonly PageContainer: ({ className, measure, ...props }: import("./
|
|
28
|
-
readonly PrimaryRailLayout: ({ primary, rail, railWidth, align, className, }: import("./
|
|
29
|
-
readonly Progress: ({ label, value, isSkeleton }: import("./
|
|
30
|
-
readonly Rail: (props: import("./
|
|
31
|
-
readonly RankArtwork: ({ className, kind, label, ...props }: import("./
|
|
32
|
-
readonly SectionHeader: ({ title, description, eyebrow, action, level, className, id, composition, }: import("./
|
|
33
|
-
readonly Sidebar: ({ label, groups, selectedKey, presentation, isCollapsed, collapseLabel, expandLabel, toggleSource, header, footer, onAction, onCollapsedChange, }: import("./
|
|
28
|
+
readonly PageContainer: ({ className, measure, ...props }: import("./index.js").PageContainerProps) => import("react").JSX.Element;
|
|
29
|
+
readonly PrimaryRailLayout: ({ primary, rail, railWidth, align, className, }: import("./index.js").PrimaryRailLayoutProps) => import("react").JSX.Element;
|
|
30
|
+
readonly Progress: ({ label, value, isSkeleton }: import("./index.js").ProgressProps) => import("react").JSX.Element;
|
|
31
|
+
readonly Rail: (props: import("./index.js").RailProps) => import("react").JSX.Element;
|
|
32
|
+
readonly RankArtwork: ({ className, kind, label, ...props }: import("./index.js").RankArtworkProps) => import("react").JSX.Element;
|
|
33
|
+
readonly SectionHeader: ({ title, description, eyebrow, action, level, className, id, composition, }: import("./index.js").SectionHeaderProps) => import("react").JSX.Element;
|
|
34
|
+
readonly Sidebar: ({ label, groups, selectedKey, presentation, isCollapsed, collapseLabel, expandLabel, toggleSource, header, footer, onAction, onCollapsedChange, }: import("./index.js").SidebarProps) => import("react").JSX.Element;
|
|
34
35
|
readonly StateMark: (props: import("./StateMark.js").StateMarkProps) => import("react").JSX.Element | null;
|
|
35
|
-
readonly StaticStateRow: (props: import("./
|
|
36
|
-
readonly Subnav: ({ label, title, leading, menuIcon, openMenuLabel, closeMenuLabel, isMenuOpen, onMenuOpenChange, position, visibility, className, ...navProps }: import("./
|
|
37
|
-
readonly SurfaceAccordionCard: <Summary, Body>(props: import("./
|
|
38
|
-
readonly SurfaceCard: (props: import("./
|
|
39
|
-
readonly SurfaceCopyGroup: ({ className, density, ...props }: import("./
|
|
40
|
-
readonly SurfaceListCard: (props: import("./
|
|
41
|
-
readonly Tabs: (props: import("./
|
|
42
|
-
readonly Text: ({ as: Element, id, children, startContent, size, tone, weight, live, isSkeleton, isSuperseded, parentEmphasis, }: import("./
|
|
43
|
-
readonly TextAction: (props: import("./
|
|
44
|
-
readonly Tooltip: ({ content, children, placement, }: import("./
|
|
45
|
-
readonly VerticalScrollRegion: (props: import("./
|
|
46
|
-
readonly WorkspaceShell: (props: import("./
|
|
36
|
+
readonly StaticStateRow: (props: import("./index.js").StaticStateRowProps) => import("react").JSX.Element;
|
|
37
|
+
readonly Subnav: ({ label, title, leading, menuIcon, openMenuLabel, closeMenuLabel, isMenuOpen, onMenuOpenChange, position, visibility, className, ...navProps }: import("./index.js").SubnavProps) => import("react").JSX.Element;
|
|
38
|
+
readonly SurfaceAccordionCard: <Summary, Body>(props: import("./index.js").SurfaceAccordionCardProps<Summary, Body>) => import("react").JSX.Element;
|
|
39
|
+
readonly SurfaceCard: (props: import("./index.js").SurfaceCardProps) => import("react").JSX.Element;
|
|
40
|
+
readonly SurfaceCopyGroup: ({ className, density, ...props }: import("./index.js").SurfaceCopyGroupProps) => import("react").JSX.Element;
|
|
41
|
+
readonly SurfaceListCard: (props: import("./index.js").SurfaceListCardProps) => import("react").JSX.Element;
|
|
42
|
+
readonly Tabs: (props: import("./index.js").TabsProps) => import("react").JSX.Element;
|
|
43
|
+
readonly Text: ({ as: Element, id, children, startContent, size, tone, weight, live, isSkeleton, isSuperseded, parentEmphasis, }: import("./index.js").TextProps) => import("react").JSX.Element;
|
|
44
|
+
readonly TextAction: (props: import("./index.js").TextActionProps) => import("react").JSX.Element;
|
|
45
|
+
readonly Tooltip: ({ content, children, placement, }: import("./index.js").TooltipProps) => import("react").JSX.Element;
|
|
46
|
+
readonly VerticalScrollRegion: (props: import("./index.js").VerticalScrollRegionProps) => import("react").JSX.Element;
|
|
47
|
+
readonly WorkspaceShell: (props: import("./index.js").WorkspaceShellProps) => import("react").JSX.Element;
|
|
47
48
|
}>;
|
|
48
49
|
export type CoreGrammarComponentName = keyof typeof CORE_GRAMMAR_COMPONENTS;
|
|
49
50
|
export declare const coreGrammar: import("./index.js").GrammarFamilyContract<"core", {}>;
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,mBAAmB,EAGnB,KAAK,gBAAgB,EACxB,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,mBAAmB,EAGnB,KAAK,gBAAgB,EACxB,MAAM,oBAAoB,CAAA;AAM3B,cAAc,oBAAoB,CAAA;AAElC,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACnD,OAAO,EACH,+BAA+B,EAC/B,eAAe,EACf,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GAC3B,MAAM,UAAU,CAAA;AAEjB,+EAA+E;AAC/E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA;AAEhE,MAAM,MAAM,wBAAwB,GAAG,MAAM,OAAO,uBAAuB,CAAA;AAQ3E,eAAO,MAAM,WAAW,wDAOtB,CAAA;AAEF,eAAO,MAAM,eAAe,mFAAqC,CAAA;AAEjE,eAAO,MAAM,mBAAmB;;;;;;EAI9B,CAAA;AAGF,OAAO,EAAE,mBAAmB,EAAE,CAAA;AAC9B,YAAY,EACR,wBAAwB,EACxB,qBAAqB,EACrB,mBAAmB,GACtB,MAAM,oBAAoB,CAAA"}
|
package/dist/core/index.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { COMMON_GRAMMAR_COMPONENTS, COMMON_UI_RULE_IDS, defineGrammarFamily, defineGrammarRuleConformance, } from "../common/index.js";
|
|
3
3
|
import { createElement } from "react";
|
|
4
|
+
// The Core family inherits every Common renderer and type; the names Core defines itself (its root, tokens,
|
|
5
|
+
// DNA, conformance) win over the same names below. A consumer may import renderers from this entry or from
|
|
6
|
+
// @starci/grammar/common; both name the same Common components.
|
|
7
|
+
export * from "../common/index.js";
|
|
4
8
|
export { STARCI_CORE_DARK_TOKEN_DEFAULTS, STARCI_CORE_DNA, STARCI_CORE_SPACING_SCALE, STARCI_CORE_TOKEN_DEFAULTS, STARCI_CORE_TOKEN_NAMES, } from "./dna.js";
|
|
5
9
|
/** @deprecated Use COMMON_GRAMMAR_COMPONENTS from `@starci/grammar/common`. */
|
|
6
10
|
export const CORE_GRAMMAR_COMPONENTS = COMMON_GRAMMAR_COMPONENTS;
|
package/dist/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EACH,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,GAG/B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EACH,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,GAG/B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,4GAA4G;AAC5G,2GAA2G;AAC3G,gEAAgE;AAChE,cAAc,oBAAoB,CAAA;AAGlC,OAAO,EACH,+BAA+B,EAC/B,eAAe,EAC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