@azx-pbc/axiom-native 0.0.0-stage → 0.0.6
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/LICENSE +21 -0
- package/README.md +95 -2
- package/dist/configurator.d.ts +39 -0
- package/dist/configurator.d.ts.map +1 -0
- package/dist/configurator.js +420 -0
- package/dist/configurator.js.map +1 -0
- package/dist/controls.d.ts +64 -0
- package/dist/controls.d.ts.map +1 -0
- package/dist/controls.js +8 -0
- package/dist/controls.js.map +1 -0
- package/dist/copy.d.ts +216 -0
- package/dist/copy.d.ts.map +1 -0
- package/dist/copy.js +2574 -0
- package/dist/copy.js.map +1 -0
- package/dist/fields.d.ts +9 -0
- package/dist/fields.d.ts.map +1 -0
- package/dist/fields.js +1365 -0
- package/dist/fields.js.map +1 -0
- package/dist/host.d.ts +90 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +8 -0
- package/dist/host.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/input-chain.d.ts +28 -0
- package/dist/input-chain.d.ts.map +1 -0
- package/dist/input-chain.js +64 -0
- package/dist/input-chain.js.map +1 -0
- package/dist/render/layout.d.ts +47 -0
- package/dist/render/layout.d.ts.map +1 -0
- package/dist/render/layout.js +8 -0
- package/dist/render/layout.js.map +1 -0
- package/dist/render/native.d.ts +85 -0
- package/dist/render/native.d.ts.map +1 -0
- package/dist/render/native.js +124 -0
- package/dist/render/native.js.map +1 -0
- package/dist/render/tree.d.ts +50 -0
- package/dist/render/tree.d.ts.map +1 -0
- package/dist/render/tree.js +636 -0
- package/dist/render/tree.js.map +1 -0
- package/dist/theme.d.ts +113 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +211 -0
- package/dist/theme.js.map +1 -0
- package/package.json +78 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.js","sourceR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,SAAS;QAAE,OAAO,MAAM,CAAC;IACxC,MAAM,OAAO,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAC9C,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IACtC,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import {\n freeNaturalKey,\n renderDisplayText,\n renderErrorSummary,\n renderLayout,\n renderRowName,\n renderValueText,\n useField,\n useFieldArray,\n useFormState,\n useIdPrefix,\n useLayout,\n useLayoutNode,\n useWizard,\n} from '@azx-pbc/axiom-react';\nimport type {\n RenderHeadingLevel,\n RenderNode,\n RenderRecordNode,\n RenderRecordsNode,\n RenderTranslate,\n} from '@azx-pbc/axiom-react';\nimport type { CompiledField, FormBlocker, WireRecord } from '@azx-pbc/axiom-runtime';\nimport type { ReactElement } from 'react';\nimport {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport {\n AccessibilityInfo,\n Platform,\n Pressable,\n StyleSheet,\n Text,\n View,\n findNodeHandle,\n} from 'react-native';\nimport type { PressableInstance, ViewProps } from 'react-native';\nimport { useHostCopy } from '../copy.js';\nimport type { HostCopy } from '../copy.js';\nimport { ControlComponentsContext, useControlComponents } from '../controls.js';\nimport type { ControlComponents } from '../controls.js';\nimport { Control } from '../fields.js';\nimport { InputChainContext, InputOrderContext, createInputChain } from '../input-chain.js';\nimport { NativeThemeProvider, useNativeTheme } from '../theme.js';\nimport type { NativeTheme, NativeThemeOverrides } from '../theme.js';\nimport { LayoutComponentsContext, useLayoutComponents } from './layout.js';\nimport type { LayoutComponents } from './layout.js';\nimport { columnStyle, toNativeProps } from './native.js';\nimport type { NativeNodeProps } from './native.js';\n\n/**\n * Projects heading accessibility props onto a `View`.\n *\n * `react-native-web` reads `accessibilityLevel` when `accessibilityRole` is `'header'` to emit\n * `<h2>`..`<h6>` and `aria-level`. Real React Native on iOS and Android has no numeric heading\n * rank in `ViewProps` (native header traits are rank-free), so native devices ignore the extra\n * prop and announce the `'header'` role without rank.\n */\nfunction headingViewProps(\n props: NativeNodeProps,\n testID?: string,\n): ViewProps & { readonly accessibilityLevel?: RenderHeadingLevel } {\n return {\n accessibilityRole: props.accessibilityRole,\n accessibilityLabel: props.accessibilityLabel,\n ...(props.accessibilityLevel === undefined\n ? {}\n : { accessibilityLevel: props.accessibilityLevel }),\n ...(testID === undefined ? {} : { testID }),\n };\n}\n\n/** The heading level a container slot receives: the node's own when stated, else the enclosing level. */\nfunction slotLevelOf(\n node: Exclude<RenderNode, { readonly kind: 'field' }>,\n enclosingLevel: RenderHeadingLevel,\n): RenderHeadingLevel {\n switch (node.kind) {\n case 'section':\n case 'group':\n case 'step':\n case 'heading':\n case 'sop_block':\n case 'summary_card':\n return node.level;\n case 'wizard':\n return node.children[0]?.level ?? enclosingLevel;\n case 'record':\n case 'records':\n case 'callout':\n case 'divider':\n case 'error_summary':\n return enclosingLevel;\n default:\n return assertNeverNode(node);\n }\n}\n\n/** Props for `LayoutTree`. */\nexport interface LayoutTreeProps {\n readonly nodes: readonly RenderNode[];\n readonly translate: RenderTranslate;\n /** Host controls that replace default control entries; composes over outer context when supplied. */\n readonly components?: ControlComponents | undefined;\n /** Host containers that replace rendered containers; composes over outer context when supplied. */\n readonly layout?: LayoutComponents | undefined;\n /** Complete or partial theme overrides; composes over outer `NativeThemeProvider` when supplied. */\n readonly theme?: NativeTheme | NativeThemeOverrides | undefined;\n}\n\nfunction LayoutTreeBody({\n nodes,\n translate,\n}: {\n readonly nodes: readonly RenderNode[];\n readonly translate: RenderTranslate;\n}): ReactElement {\n const activeTheme = useNativeTheme();\n const styles = treeStylesFor(activeTheme);\n const parentChain = useContext(InputChainContext);\n const parentOrder = useContext(InputOrderContext);\n const [localChain] = useState(createInputChain);\n const chain = parentChain ?? localChain;\n return (\n <InputChainContext.Provider value={chain}>\n <View style={styles.root}>\n {nodes.map((node, index) => (\n <NodeView\n key={node.nodeId}\n node={node}\n translate={translate}\n enclosingLevel={2}\n orderPath={\n parentOrder === undefined ? String(index) : `${parentOrder}.${String(index)}`\n }\n />\n ))}\n </View>\n </InputChainContext.Provider>\n );\n}\n\n/**\n * The React Native adapter: the same render tree, painted with native primitives.\n *\n * Every node takes its accessibility props from `toNativeProps`, so the header, label and invalid\n * facts are the contract the node test asserts rather than a per-screen decision. The tree is the\n * one `renderLayout` produced; nothing here asks which document it is in.\n */\nexport function LayoutTree({\n nodes,\n translate,\n components,\n layout,\n theme: themeOverride,\n}: LayoutTreeProps): ReactElement {\n const outerComponents = useControlComponents();\n const outerLayout = useLayoutComponents();\n const mergedComponents = useMemo(\n () =>\n components === undefined\n ? outerComponents\n : outerComponents === undefined\n ? components\n : { ...outerComponents, ...components },\n [outerComponents, components],\n );\n const mergedLayout = useMemo(\n () =>\n layout === undefined\n ? outerLayout\n : outerLayout === undefined\n ? layout\n : { ...outerLayout, ...layout },\n [outerLayout, layout],\n );\n let tree: ReactElement = <LayoutTreeBody nodes={nodes} translate={translate} />;\n if (layout !== undefined && mergedLayout !== undefined) {\n tree = (\n <LayoutComponentsContext.Provider value={mergedLayout}>\n {tree}\n </LayoutComponentsContext.Provider>\n );\n }\n if (components !== undefined && mergedComponents !== undefined) {\n tree = (\n <ControlComponentsContext.Provider value={mergedComponents}>\n {tree}\n </ControlComponentsContext.Provider>\n );\n }\n if (themeOverride !== undefined) {\n tree = <NativeThemeProvider theme={themeOverride}>{tree}</NativeThemeProvider>;\n }\n return tree;\n}\n\nfunction NodeView({\n node,\n translate,\n enclosingLevel,\n orderPath,\n}: {\n readonly node: RenderNode;\n readonly translate: RenderTranslate;\n readonly enclosingLevel: RenderHeadingLevel;\n readonly orderPath: string;\n}): ReactElement {\n if (node.kind === 'field') {\n return (\n <InputOrderContext.Provider value={orderPath}>\n <Control node={node} translate={translate} />\n </InputOrderContext.Provider>\n );\n }\n return (\n <ContainerNodeView\n node={node}\n translate={translate}\n enclosingLevel={enclosingLevel}\n orderPath={orderPath}\n />\n );\n}\n\nfunction ContainerNodeView({\n node,\n translate,\n enclosingLevel,\n orderPath,\n}: {\n readonly node: Exclude<RenderNode, { readonly kind: 'field' }>;\n readonly translate: RenderTranslate;\n readonly enclosingLevel: RenderHeadingLevel;\n readonly orderPath: string;\n}): ReactElement {\n const layoutComponents = useLayoutComponents();\n const activeTheme = useNativeTheme();\n const Custom = layoutComponents?.[node.kind];\n if (Custom !== undefined) {\n return (\n <Custom\n node={node}\n translate={translate}\n level={slotLevelOf(node, enclosingLevel)}\n theme={activeTheme}\n >\n {defaultNodeView(node, translate, enclosingLevel, activeTheme, orderPath)}\n </Custom>\n );\n }\n return defaultNodeView(node, translate, enclosingLevel, activeTheme, orderPath);\n}\n\nfunction defaultNodeView(\n node: Exclude<RenderNode, { readonly kind: 'field' }>,\n translate: RenderTranslate,\n enclosingLevel: RenderHeadingLevel,\n activeTheme: NativeTheme,\n orderPath: string,\n): ReactElement {\n switch (node.kind) {\n case 'error_summary':\n return <ErrorSummaryView node={node} />;\n case 'section':\n case 'group':\n return <SectionView node={node} translate={translate} orderPath={orderPath} />;\n case 'wizard':\n return <WizardView node={node} translate={translate} orderPath={orderPath} />;\n case 'step':\n return <StepView node={node} translate={translate} orderPath={orderPath} />;\n case 'record':\n return (\n <RecordView\n node={node}\n translate={translate}\n enclosingLevel={enclosingLevel}\n orderPath={orderPath}\n />\n );\n case 'records':\n return (\n <RecordsView\n node={node}\n translate={translate}\n enclosingLevel={enclosingLevel}\n orderPath={orderPath}\n />\n );\n case 'heading':\n case 'sop_block': {\n const styles = treeStylesFor(activeTheme);\n const props = toNativeProps(node);\n return (\n <View {...headingViewProps(props)}>\n <Text style={node.kind === 'heading' ? styles.heading : styles.subheading}>\n {node.title}\n </Text>\n {node.body === undefined ? null : <Text style={styles.body}>{node.body}</Text>}\n </View>\n );\n }\n case 'callout': {\n const styles = treeStylesFor(activeTheme);\n const props = toNativeProps(node);\n return (\n <View\n accessibilityRole={props.accessibilityRole}\n accessibilityLabel={props.accessibilityLabel}\n style={node.tone === 'danger' ? styles.calloutDanger : styles.callout}\n >\n {node.title === undefined ? null : <Text style={styles.subheading}>{node.title}</Text>}\n <Text style={styles.body}>{node.body}</Text>\n </View>\n );\n }\n case 'divider':\n return <View style={treeStylesFor(activeTheme).divider} />;\n case 'summary_card':\n return <SummaryView node={node} />;\n default:\n return assertNeverNode(node);\n }\n}\n\nfunction assertNeverNode(value: never): never {\n throw new Error(`unreachable render node: ${JSON.stringify(value)}`);\n}\n\n/** A row-mutation refusal held for display beside a repeating record container. */\ninterface RowRefusalState {\n readonly sentence: string;\n readonly detail?: string;\n}\n\n/**\n * UI state preserved across wizard step switches while only the active step is painted.\n *\n * `WizardView` renders one step at a time so inactive controls do not enter the mounted DOM or\n * the return-key focus chain; lifting section collapse and row refusal state here keeps both\n * intact when a respondent visits another step and returns.\n */\ninterface WizardUiState {\n readonly expanded: Readonly<Record<string, boolean>>;\n readonly setExpanded: (nodeId: string, next: boolean) => void;\n readonly refusals: Readonly<Record<string, RowRefusalState | undefined>>;\n readonly setRefusal: (nodeId: string, next: RowRefusalState | undefined) => void;\n}\n\nconst WizardUiContext = createContext<WizardUiState | undefined>(undefined);\n\nfunction SectionView({\n node,\n translate,\n orderPath,\n}: {\n readonly node: Extract<RenderNode, { kind: 'section' | 'group' }>;\n readonly translate: RenderTranslate;\n readonly orderPath: string;\n}): ReactElement {\n const activeTheme = useNativeTheme();\n const styles = treeStylesFor(activeTheme);\n const props = toNativeProps(node);\n const wizardUi = useContext(WizardUiContext);\n const [localExpanded, setLocalExpanded] = useState(node.defaultExpanded ?? true);\n const expanded = wizardUi?.expanded[node.nodeId] ?? localExpanded;\n const shown = node.collapsible ? expanded : true;\n const toggleExpanded = (): void => {\n const next = !expanded;\n if (wizardUi !== undefined) wizardUi.setExpanded(node.nodeId, next);\n else setLocalExpanded(next);\n };\n // A group may state no title and a translated one may be empty: `toNativeProps` then answers\n // no header role, and painting a `Text` heading would show a heading with nothing in it.\n const heading = props.accessibilityRole === 'header' ? props.accessibilityLabel : undefined;\n return (\n <View {...headingViewProps(props)}>\n {heading === undefined ? null : <Text style={styles.sectionHeading}>{heading}</Text>}\n {node.description === undefined ? null : <Text style={styles.muted}>{node.description}</Text>}\n {node.collapsible ? (\n <SectionToggle\n nodeId={node.nodeId}\n heading={heading}\n expanded={expanded}\n onToggle={toggleExpanded}\n styles={styles}\n />\n ) : null}\n {shown ? (\n <View style={styles.grid}>\n {node.children.map((child, index) => (\n <View key={child.nodeId} style={columnStyle(node.columns, spanOf(child))}>\n <NodeView\n node={child}\n translate={translate}\n enclosingLevel={node.level}\n orderPath={`${orderPath}.${String(index)}`}\n />\n </View>\n ))}\n </View>\n ) : null}\n </View>\n );\n}\n\n/** The columns one node occupies in its parent's grid. */\nfunction spanOf(node: RenderNode): number {\n switch (node.kind) {\n case 'field':\n case 'record':\n case 'records':\n return node.colSpan;\n default:\n return Number.POSITIVE_INFINITY;\n }\n}\n\n/** The collapse toggle and the failure count it hides, subscribing on its own. */\nfunction SectionToggle({\n nodeId,\n heading,\n expanded,\n onToggle,\n styles,\n}: {\n readonly nodeId: string;\n readonly heading: string | undefined;\n readonly expanded: boolean;\n readonly onToggle: () => void;\n readonly styles: TreeStyles;\n}): ReactElement {\n const slice = useLayoutNode(nodeId);\n const copy = useHostCopy();\n const name = copy.sectionToggle(heading, expanded);\n return (\n <Pressable\n accessibilityRole=\"button\"\n accessibilityState={{ expanded }}\n aria-expanded={expanded}\n accessibilityLabel={name}\n onPress={onToggle}\n style={styles.option}\n >\n <Text style={styles.body}>\n {name}\n {slice.errorCount === 0 ? '' : ` (${String(slice.errorCount)})`}\n </Text>\n </Pressable>\n );\n}\n\nfunction WizardView({\n node,\n translate,\n orderPath,\n}: {\n readonly node: Extract<RenderNode, { kind: 'wizard' }>;\n readonly translate: RenderTranslate;\n readonly orderPath: string;\n}): ReactElement {\n const activeTheme = useNativeTheme();\n const styles = treeStylesFor(activeTheme);\n const wizard = useWizard();\n const current = node.children.find((step) => step.stepId === wizard.stepId) ?? node.children[0];\n const [expanded, setExpandedMap] = useState<Readonly<Record<string, boolean>>>({});\n const [refusals, setRefusalMap] = useState<Readonly<Record<string, RowRefusalState | undefined>>>(\n {},\n );\n const setExpanded = useCallback((nodeId: string, next: boolean): void => {\n setExpandedMap((previous) => ({ ...previous, [nodeId]: next }));\n }, []);\n const setRefusal = useCallback((nodeId: string, next: RowRefusalState | undefined): void => {\n setRefusalMap((previous) => ({ ...previous, [nodeId]: next }));\n }, []);\n const uiState = useMemo<WizardUiState>(\n () => ({ expanded, setExpanded, refusals, setRefusal }),\n [expanded, setExpanded, refusals, setRefusal],\n );\n return (\n <WizardUiContext.Provider value={uiState}>\n <View>\n <View style={styles.row}>\n {node.children.map((step) => {\n const isCurrent = step.stepId === current?.stepId;\n return (\n <Pressable\n key={step.stepId}\n accessibilityRole=\"button\"\n accessibilityLabel={step.title}\n accessibilityState={{ selected: isCurrent }}\n aria-selected={isCurrent}\n onPress={() => wizard.setStepId(step.stepId)}\n style={isCurrent ? styles.selected : styles.option}\n >\n <Text style={styles.body}>{step.title}</Text>\n </Pressable>\n );\n })}\n </View>\n {current === undefined ? null : (\n <NodeView\n node={current}\n translate={translate}\n enclosingLevel={current.level}\n orderPath={orderPath}\n />\n )}\n </View>\n </WizardUiContext.Provider>\n );\n}\n\nfunction StepView({\n node,\n translate,\n orderPath,\n}: {\n readonly node: Extract<RenderNode, { kind: 'step' }>;\n readonly translate: RenderTranslate;\n readonly orderPath: string;\n}): ReactElement {\n const activeTheme = useNativeTheme();\n const styles = treeStylesFor(activeTheme);\n const props = toNativeProps(node);\n return (\n <View {...headingViewProps(props, `step:${node.stepId}`)}>\n <Text style={styles.subheading}>{node.title}</Text>\n {node.description === undefined ? null : <Text style={styles.muted}>{node.description}</Text>}\n <View style={styles.grid}>\n {node.children.map((child, index) => (\n <View key={child.nodeId} style={columnStyle(node.columns, spanOf(child))}>\n <NodeView\n node={child}\n translate={translate}\n enclosingLevel={node.level}\n orderPath={`${orderPath}.${String(index)}`}\n />\n </View>\n ))}\n </View>\n </View>\n );\n}\n\nfunction SummaryView({\n node,\n}: {\n readonly node: Extract<RenderNode, { kind: 'summary_card' }>;\n}): ReactElement {\n const activeTheme = useNativeTheme();\n const styles = treeStylesFor(activeTheme);\n const copy = useHostCopy();\n const props = toNativeProps(node);\n return (\n <View\n accessibilityRole={props.accessibilityRole}\n accessibilityLabel={props.accessibilityLabel}\n style={styles.summaryCard}\n >\n <Text style={styles.subheading}>{node.title}</Text>\n {node.body === undefined ? null : <Text style={styles.body}>{node.body}</Text>}\n {node.readouts.map((readout, index) => (\n <Text\n key={`${String(index)}:${readout.label}`}\n style={styles.body}\n >{`${readout.label}: ${renderDisplayText(\n renderValueText(readout.value, copy.display),\n )}`}</Text>\n ))}\n {node.fields.map((field) => (\n <SummaryField\n key={field.fieldId}\n fieldId={field.fieldId}\n label={field.label}\n styles={styles}\n />\n ))}\n </View>\n );\n}\n\nfunction SummaryField({\n fieldId,\n label,\n styles,\n}: {\n readonly fieldId: string;\n readonly label: string;\n readonly styles: TreeStyles;\n}): ReactElement {\n const field = useField(fieldId);\n // `field.text` is the provider's display answer, so a boolean or list reads as the host\n // states it; an undecided value uses the shared dash projection instead of painting blank.\n return <Text style={styles.body}>{`${label}: ${renderDisplayText(field.text)}`}</Text>;\n}\n\n/** Where focus goes once the row list has committed the removal. */\ntype RowFocusTarget =\n | { readonly kind: 'remove'; readonly rowKey: string | number }\n | { readonly kind: 'add' };\n\n/** A structural refusal's detail: the engine's own message, or the host's fallback sentence. */\nfunction refusalDetail(error: unknown, copy: HostCopy): string {\n return error instanceof Error ? error.message : copy.rowRefused();\n}\n\n/** The captured-media constraint this renderer writes a sentence for, `MODEL-2.1.20`. */\ntype MediaBlocker = Extract<FormBlocker, { kind: 'media' }>;\n\n/** Names the array entry when a media constraint was raised by one, so the sentence is unambiguous. */\nfunction mediaLabel(label: string, blocker: MediaBlocker): string {\n return blocker.index === undefined ? label : `${label} #${String(blocker.index + 1)}`;\n}\n\n/**\n * Moves focus to a row control after a removal.\n *\n * A host element exposes `focus`; on a device a non-text control has only the platform's\n * accessibility focus, which is addressed through the native tag.\n */\nfunction focusRowControl(target: PressableInstance | null): void {\n if (target === null) return;\n const focus = Reflect.get(target, 'focus');\n if (typeof focus === 'function') {\n Reflect.apply(focus, target, []);\n return;\n }\n if (Platform.OS === 'web') return;\n const handle = findNodeHandle(target);\n if (typeof handle === 'number') AccessibilityInfo.setAccessibilityFocus(handle);\n}\n\n/**\n * A single record: one named group of its members' controls.\n *\n * A record has exactly one value, so there is no row key and no structural operation: each\n * member binds by its own identifier and reads or writes its cell inside the container.\n */\nfunction RecordView({\n node,\n translate,\n enclosingLevel,\n orderPath,\n rowKey,\n}: {\n readonly node: RenderRecordNode;\n readonly translate: RenderTranslate;\n readonly enclosingLevel: RenderHeadingLevel;\n readonly orderPath: string;\n readonly rowKey?: string | number;\n}): ReactElement {\n const activeTheme = useNativeTheme();\n const styles = treeStylesFor(activeTheme);\n return (\n <View accessibilityRole=\"summary\" accessibilityLabel={node.label}>\n <Text style={styles.subheading}>{node.label}</Text>\n {node.description === undefined ? null : <Text style={styles.muted}>{node.description}</Text>}\n {node.members.map((member, index) => (\n <MemberView\n key={member.nodeId}\n member={member}\n translate={translate}\n enclosingLevel={enclosingLevel}\n orderPath={`${orderPath}.${String(index)}`}\n {...(rowKey === undefined ? {} : { rowKey })}\n />\n ))}\n </View>\n );\n}\n\n/** One record member: a control, a nested record, or a nested repeating record. */\nfunction MemberView({\n member,\n translate,\n enclosingLevel,\n orderPath,\n rowKey,\n}: {\n readonly member: RenderRecordNode['members'][number];\n readonly translate: RenderTranslate;\n readonly enclosingLevel: RenderHeadingLevel;\n readonly orderPath: string;\n readonly rowKey?: string | number;\n}): ReactElement {\n if (member.kind === 'field') {\n return (\n <InputOrderContext.Provider value={orderPath}>\n <Control\n node={member}\n translate={translate}\n {...(rowKey === undefined ? {} : { rowKey })}\n />\n </InputOrderContext.Provider>\n );\n }\n return (\n <ContainerMemberView\n member={member}\n translate={translate}\n enclosingLevel={enclosingLevel}\n orderPath={orderPath}\n {...(rowKey === undefined ? {} : { rowKey })}\n />\n );\n}\n\nfunction ContainerMemberView({\n member,\n translate,\n enclosingLevel,\n orderPath,\n rowKey,\n}: {\n readonly member: Exclude<RenderRecordNode['members'][number], { readonly kind: 'field' }>;\n readonly translate: RenderTranslate;\n readonly enclosingLevel: RenderHeadingLevel;\n readonly orderPath: string;\n readonly rowKey?: string | number;\n}): ReactElement {\n const copy = useHostCopy();\n const layoutComponents = useLayoutComponents();\n const activeTheme = useNativeTheme();\n switch (member.kind) {\n case 'record': {\n const content = (\n <RecordView\n node={member}\n translate={translate}\n enclosingLevel={enclosingLevel}\n orderPath={orderPath}\n {...(rowKey === undefined ? {} : { rowKey })}\n />\n );\n const CustomRecord = layoutComponents?.record;\n if (CustomRecord !== undefined) {\n return (\n <CustomRecord\n node={member}\n translate={translate}\n level={enclosingLevel}\n theme={activeTheme}\n >\n {content}\n </CustomRecord>\n );\n }\n return content;\n }\n case 'records':\n // v1 addresses no row for an array nested inside another array's row: the engine refuses\n // the binding (`IDENTITY_UNSUPPORTED`), so there is no list a host could paint here. Say\n // so in a localized sentence instead of throwing out of render.\n return rowKey === undefined ? (\n <NodeView\n node={member}\n translate={translate}\n enclosingLevel={enclosingLevel}\n orderPath={orderPath}\n />\n ) : (\n <Text style={treeStylesFor(activeTheme).muted} testID={`nested-records:${member.fieldId}`}>\n {copy.nestedListRefused()}\n </Text>\n );\n }\n}\n\n/** Runs `array.remove` outside `RecordsView` so the component compiles with zero compiler bailouts. */\nfunction tryRemoveRow(\n remove: (rowKey: string | number) => void,\n rowKey: string | number,\n copy: HostCopy,\n): RowRefusalState | undefined {\n try {\n remove(rowKey);\n return undefined;\n } catch (error) {\n return {\n sentence: copy.rowRemoveFailed(),\n detail: refusalDetail(error, copy),\n };\n }\n}\n\n/** Runs `array.append` outside `RecordsView` so the component compiles with zero compiler bailouts. */\nfunction tryAppendRow(\n append: (row: WireRecord) => void,\n row: WireRecord,\n copy: HostCopy,\n): RowRefusalState | undefined {\n try {\n append(row);\n return undefined;\n } catch (error) {\n return {\n sentence: copy.rowAddFailed(),\n detail: refusalDetail(error, copy),\n };\n }\n}\n\n/**\n * A repeating record: one row per committed identity, each member bound by its row key.\n *\n * The rows are the session's own identities, so an edit in one row re-renders that row and the\n * list does not move. A row the container permits removing gets a control that names the row's\n * own key, because a position is not an identity once a row has been removed. A structural\n * refusal is painted rather than thrown out of the handler, and a successful removal moves\n * accessibility focus to the next row's control and announces how many remain.\n */\nfunction RecordsView({\n node,\n translate,\n enclosingLevel,\n orderPath,\n}: {\n readonly node: RenderRecordsNode;\n readonly translate: RenderTranslate;\n readonly enclosingLevel: RenderHeadingLevel;\n readonly orderPath: string;\n}): ReactElement {\n const activeTheme = useNativeTheme();\n const styles = treeStylesFor(activeTheme);\n const array = useFieldArray(node.fieldId);\n const copy = useHostCopy();\n const wizardUi = useContext(WizardUiContext);\n const [localRefusal, setLocalRefusal] = useState<RowRefusalState | undefined>(undefined);\n const refusal = wizardUi !== undefined ? wizardUi.refusals[node.nodeId] : localRefusal;\n const setRefusal = (next: RowRefusalState | undefined): void => {\n if (wizardUi !== undefined) wizardUi.setRefusal(node.nodeId, next);\n else setLocalRefusal(next);\n };\n const [status, setStatus] = useState<string | undefined>(undefined);\n const [focusTarget, setFocusTarget] = useState<RowFocusTarget | undefined>(undefined);\n const removeButtons = useRef<Map<string, PressableInstance> | null>(null);\n const addButton = useRef<PressableInstance | null>(null);\n const props = toNativeProps(node);\n useEffect(() => {\n if (focusTarget === undefined) return;\n focusRowControl(\n focusTarget.kind === 'add'\n ? addButton.current\n : (removeButtons.current?.get(String(focusTarget.rowKey)) ?? null),\n );\n }, [focusTarget]);\n const removeRow = (rowKey: string | number, index: number): void => {\n const next = array.rows[index + 1] ?? array.rows[index - 1];\n setRefusal(undefined);\n const error = tryRemoveRow(array.remove, rowKey, copy);\n if (error !== undefined) {\n setRefusal(error);\n return;\n }\n const announcement = copy.rowRemoved(array.rows.length - 1);\n setStatus(announcement);\n AccessibilityInfo.announceForAccessibility(announcement);\n setFocusTarget(next === undefined ? { kind: 'add' } : { kind: 'remove', rowKey: next.rowKey });\n };\n const appendRow = (): void => {\n setRefusal(undefined);\n const row: WireRecord =\n node.naturalKey === undefined ? {} : { [node.naturalKey]: freeNaturalKey(array.rows) };\n const error = tryAppendRow(array.append, row, copy);\n if (error !== undefined) setRefusal(error);\n };\n return (\n <View accessibilityRole={props.accessibilityRole} accessibilityLabel={props.accessibilityLabel}>\n <Text style={styles.subheading}>{node.label}</Text>\n {array.rows.length === 0 ? <Text style={styles.muted}>{copy.rowsEmpty()}</Text> : null}\n {array.rows.map((row, index) => {\n const rowName = renderRowName(node.label, row.rowName, index);\n return (\n <View\n key={row.bindingKey}\n accessibilityLabel={rowName}\n testID={`row:${node.fieldId}:${String(row.rowKey)}`}\n >\n {node.members.map((member, memberIndex) => (\n <MemberView\n key={member.nodeId}\n member={member}\n rowKey={row.rowKey}\n enclosingLevel={enclosingLevel}\n orderPath={`${orderPath}.${String(index)}.${String(memberIndex)}`}\n translate={translate}\n />\n ))}\n {array.mutations.remove ? (\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={copy.removeRow(rowName)}\n style={styles.option}\n ref={(instance) => {\n const key = String(row.rowKey);\n if (instance === null) {\n removeButtons.current?.delete(key);\n return;\n }\n if (removeButtons.current === null) {\n removeButtons.current = new Map();\n }\n removeButtons.current.set(key, instance);\n }}\n onPress={() => removeRow(row.rowKey, index)}\n >\n <Text style={styles.body}>{copy.removeRow(rowName)}</Text>\n </Pressable>\n ) : null}\n </View>\n );\n })}\n {array.mutations.append ? (\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={copy.addRow()}\n style={styles.option}\n ref={(instance) => {\n addButton.current = instance;\n }}\n onPress={appendRow}\n >\n <Text style={styles.body}>{copy.addRow()}</Text>\n </Pressable>\n ) : null}\n {refusal === undefined ? null : (\n <View>\n <Text style={styles.danger} accessibilityRole=\"alert\">\n {refusal.sentence}\n </Text>\n {refusal.detail === undefined ? null : <Text style={styles.muted}>{refusal.detail}</Text>}\n </View>\n )}\n <Text style={styles.muted} accessibilityLiveRegion=\"polite\">\n {status}\n </Text>\n </View>\n );\n}\n\n/**\n * Stable keys for one derived list: the item's own identity, with an occurrence suffix only for\n * items whose identities are identical (which are interchangeable, so the position never becomes\n * the key).\n */\nfunction withKeys<T>(\n items: readonly T[],\n identity: (item: T) => string,\n): readonly { readonly item: T; readonly key: string }[] {\n const seen = new Map<string, number>();\n return items.map((item) => {\n const base = identity(item);\n const occurrence = seen.get(base) ?? 0;\n seen.set(base, occurrence + 1);\n return { item, key: occurrence === 0 ? base : `${base}\\u0000${String(occurrence)}` };\n });\n}\n\nfunction ErrorSummaryView({\n node,\n}: {\n readonly node: Extract<RenderNode, { kind: 'error_summary' }>;\n}): ReactElement {\n const activeTheme = useNativeTheme();\n const styles = treeStylesFor(activeTheme);\n const props = toNativeProps(node);\n return (\n <View\n accessibilityRole={props.accessibilityRole}\n accessibilityLabel={props.accessibilityLabel}\n style={styles.calloutDanger}\n >\n {withKeys(node.items, (item) => `${item.targetId}\\u0000${item.message}`).map(\n ({ item, key }) => (\n <Text key={key} style={styles.danger}>\n {item.label === undefined ? item.message : `${item.label}: ${item.message}`}\n </Text>\n ),\n )}\n </View>\n );\n}\n\n/** Props for `RenderedForm`. */\nexport interface RenderedFormProps {\n readonly fields: readonly CompiledField[];\n readonly translate: RenderTranslate;\n /** Host controls that replace default control entries; composes over outer context when supplied. */\n readonly components?: ControlComponents | undefined;\n /** Host containers that replace rendered containers; composes over outer context when supplied. */\n readonly layout?: LayoutComponents | undefined;\n /** Complete or partial theme overrides; composes over outer `NativeThemeProvider` when supplied. */\n readonly theme?: NativeTheme | NativeThemeOverrides | undefined;\n}\n\n/**\n * The chrome the layout states, and nothing that a value edit moves.\n *\n * The tree is built from the layout and memoised on its identity, so a keystroke that changes no\n * visibility, message or readout does not rebuild it. The announced failures are their own\n * component for the same reason.\n */\nexport function RenderedForm({\n fields,\n translate,\n components,\n layout: layoutOverride,\n theme: themeOverride,\n}: RenderedFormProps): ReactElement {\n const layout = useLayout();\n const nodes = useMemo(\n () => renderLayout({ layout, fields, translate }),\n [layout, fields, translate],\n );\n return (\n <LayoutTree\n nodes={nodes}\n translate={translate}\n {...(components === undefined ? {} : { components })}\n {...(layoutOverride === undefined ? {} : { layout: layoutOverride })}\n {...(themeOverride === undefined ? {} : { theme: themeOverride })}\n />\n );\n}\n\n/** The announced failures, above the form. */\nexport function ErrorSummary({\n fields,\n translate,\n}: {\n readonly fields: readonly CompiledField[];\n readonly translate: RenderTranslate;\n}): ReactElement | null {\n const summary = useFormState();\n const copy = useHostCopy();\n // The session's own prefix, so the announcement names this form's controls rather than the\n // first provider's on a page that renders two.\n const idPrefix = useIdPrefix();\n const node = renderErrorSummary({\n errors: blockingOf(summary.blockers, fields, translate, copy),\n fields,\n translate,\n idPrefix,\n });\n return node === undefined ? null : (\n <NodeView node={node} translate={translate} enclosingLevel={2} orderPath=\"0\" />\n );\n}\n\n/**\n * Every blocking reason as the summary states it, resolved to text.\n *\n * A rule or gate blocker carries a message key and no field name, so the tree is told which field\n * it belongs to and prepends that field's label. A missing required value is a `required` blocker\n * whose binding is named; the host writes the whole sentence in the selected locale, and naming\n * the field again in the tree would announce \"Full name: Full name is required\", so it is\n * announced from `missingRequiredFields` instead.\n */\nfunction blockingOf(\n blockers: readonly FormBlocker[],\n fields: readonly CompiledField[],\n translate: RenderTranslate,\n copy: HostCopy,\n): readonly { fieldId?: string; message: string }[] {\n const labels = new Map(fields.map((field) => [field.fieldId, field.labelKey]));\n const items: { fieldId?: string; message: string }[] = [];\n const required: { fieldId?: string; message: string }[] = [];\n for (const blocker of blockers) {\n // A required blocker states the host's own sentence, with the row name the runtime resolved.\n if (blocker.kind === 'required') {\n const labelKey = labels.get(blocker.fieldId);\n required.push({\n fieldId: blocker.fieldId,\n message: copy.required(\n labelKey === undefined ? blocker.fieldId : translate(labelKey),\n blocker.rowName,\n ),\n });\n continue;\n }\n const fieldId = 'fieldId' in blocker ? blocker.fieldId : undefined;\n if (blocker.kind === 'cardinality') {\n const labelKey = labels.get(blocker.fieldId);\n const label = labelKey === undefined ? blocker.fieldId : translate(labelKey);\n const message = copy.cardinality(label, blocker.bound, blocker.count, blocker.limit);\n if (message === undefined) continue;\n items.push({ fieldId: blocker.fieldId, message });\n continue;\n }\n if (blocker.kind === 'media') {\n // The artifact states no message for a capture constraint, so the host writes the sentence\n // and names the field, the limit and the offending value (`MODEL-2.1.20`).\n const labelKey = labels.get(blocker.fieldId);\n const label = labelKey === undefined ? blocker.fieldId : translate(labelKey);\n const named = mediaLabel(label, blocker);\n items.push({\n fieldId: blocker.fieldId,\n message:\n blocker.member === 'accept'\n ? copy.mediaConstraint(named, 'accept', blocker.limit, blocker.value)\n : copy.mediaConstraint(named, blocker.member, blocker.limit, blocker.value),\n });\n continue;\n }\n if (blocker.kind === 'rowCount') {\n // A `rowsFrom` count is host copy for the same reason: the declaration states an\n // expectation, not a message (`MODEL-2.1.22`).\n const labelKey = labels.get(blocker.fieldId);\n const label = labelKey === undefined ? blocker.fieldId : translate(labelKey);\n items.push({\n fieldId: blocker.fieldId,\n message: copy.rowCount(\n label,\n blocker.expected,\n blocker.actual,\n blocker.source,\n blocker.reason,\n blocker.ceiling,\n ),\n });\n continue;\n }\n if (blocker.kind === 'invalidOption') {\n // A held value the offered domain no longer lists carries no artifact message, so the\n // host writes the sentence and names the control (`[DATA-5.1.3]`).\n const labelKey = labels.get(blocker.fieldId);\n const label = labelKey === undefined ? blocker.fieldId : translate(labelKey);\n items.push({ fieldId: blocker.fieldId, message: copy.invalidValue(label) });\n continue;\n }\n if (blocker.kind === 'unavailableOption') {\n // The domain offers the held code and this record may not choose it, which is a different\n // cause from an unoffered value (`RULES-7.1.6`). A declaration or page that states its\n // reason speaks it; otherwise the host writes the sentence.\n const labelKey = labels.get(blocker.fieldId);\n const label = labelKey === undefined ? blocker.fieldId : translate(labelKey);\n items.push({\n fieldId: blocker.fieldId,\n message:\n blocker.messageKey === undefined\n ? copy.unavailableOption(label)\n : translate(blocker.messageKey, blocker.params),\n });\n continue;\n }\n if (blocker.kind === 'scale') {\n // The declaration requires `maxScaleMessageKey`, so the artifact states the sentence; a\n // hand-built artifact that omitted it names the field rather than inventing host copy.\n items.push({\n fieldId: blocker.fieldId,\n message: blocker.messageKey === undefined ? blocker.fieldId : translate(blocker.messageKey),\n });\n continue;\n }\n if (blocker.kind === 'screen') {\n // A screen's decision is form-level; its declared sentence and reasons are the words.\n items.push({ message: translate(blocker.messageKey ?? blocker.screenId) });\n for (const reason of blocker.reasons) {\n items.push({ message: translate(reason.messageKey, reason.params) });\n }\n continue;\n }\n items.push({\n ...(fieldId === undefined ? {} : { fieldId }),\n message: translate(blocker.messageKey, blocker.params),\n });\n }\n items.push(...required);\n return items;\n}\n\nfunction createTreeStyles(activeTheme: NativeTheme) {\n return StyleSheet.create({\n root: {\n backgroundColor: activeTheme.color.background,\n },\n heading: {\n fontSize: activeTheme.text.title,\n fontWeight: activeTheme.weight.bold,\n color: activeTheme.color.ink,\n },\n sectionHeading: {\n fontSize: activeTheme.text.section,\n fontWeight: activeTheme.weight.bold,\n marginTop: activeTheme.space.large,\n color: activeTheme.color.ink,\n },\n subheading: {\n fontSize: activeTheme.text.section,\n fontWeight: activeTheme.weight.semibold,\n marginTop: activeTheme.space.medium,\n color: activeTheme.color.ink,\n },\n body: {\n fontSize: activeTheme.text.body,\n color: activeTheme.color.ink,\n },\n muted: {\n fontSize: activeTheme.text.caption,\n color: activeTheme.color.muted,\n },\n danger: {\n fontSize: activeTheme.text.body,\n color: activeTheme.color.danger,\n },\n callout: {\n padding: activeTheme.space.medium,\n borderWidth: 1,\n borderColor: activeTheme.color.border,\n borderRadius: activeTheme.radius.panel,\n backgroundColor: activeTheme.color.surface,\n gap: activeTheme.space.tight,\n },\n calloutDanger: {\n padding: activeTheme.space.medium,\n borderWidth: 1,\n borderColor: activeTheme.color.danger,\n borderRadius: activeTheme.radius.panel,\n backgroundColor: activeTheme.color.surface,\n gap: activeTheme.space.tight,\n },\n summaryCard: {\n padding: activeTheme.space.medium,\n borderWidth: 1,\n borderColor: activeTheme.color.border,\n borderRadius: activeTheme.radius.panel,\n backgroundColor: activeTheme.color.surface,\n gap: activeTheme.space.tight,\n },\n divider: {\n height: 1,\n backgroundColor: activeTheme.color.border,\n marginVertical: activeTheme.space.medium,\n },\n row: { flexDirection: 'row', flexWrap: 'wrap', gap: activeTheme.space.small },\n grid: { flexDirection: 'row', flexWrap: 'wrap' },\n option: {\n paddingHorizontal: activeTheme.space.medium,\n paddingVertical: activeTheme.space.tight,\n minHeight: activeTheme.size.target,\n minWidth: activeTheme.size.target,\n justifyContent: 'center',\n borderWidth: 1,\n borderColor: activeTheme.color.border,\n borderRadius: activeTheme.radius.chip,\n backgroundColor: activeTheme.color.surface,\n },\n selected: {\n paddingHorizontal: activeTheme.space.medium,\n paddingVertical: activeTheme.space.tight,\n minHeight: activeTheme.size.target,\n minWidth: activeTheme.size.target,\n justifyContent: 'center',\n borderWidth: 2,\n borderColor: activeTheme.color.accent,\n borderRadius: activeTheme.radius.chip,\n backgroundColor: activeTheme.color.surface,\n },\n });\n}\n\ntype TreeStyles = ReturnType<typeof createTreeStyles>;\n\nconst TREE_STYLES = new WeakMap<NativeTheme, TreeStyles>();\n\nfunction treeStylesFor(activeTheme: NativeTheme): TreeStyles {\n const cached = TREE_STYLES.get(activeTheme);\n if (cached !== undefined) return cached;\n const created = createTreeStyles(activeTheme);\n TREE_STYLES.set(activeTheme, created);\n return created;\n}\n"]}
|
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { Context, ReactElement, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Portable React Native font weight values accepted across iOS, Android, and react-native-web.
|
|
4
|
+
*/
|
|
5
|
+
export type NativeFontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
6
|
+
/** Color roles read by every native control, layout container, and confirmation surface. */
|
|
7
|
+
export interface NativeThemeColors {
|
|
8
|
+
/** The one accent: the primary action and the selected chip's border. */
|
|
9
|
+
readonly accent: string;
|
|
10
|
+
/** Ink on the accent, for a filled button. */
|
|
11
|
+
readonly onAccent: string;
|
|
12
|
+
/** Body and heading text. */
|
|
13
|
+
readonly ink: string;
|
|
14
|
+
/** Secondary text: a description, a reason. */
|
|
15
|
+
readonly muted: string;
|
|
16
|
+
/** A refusal or a failed check. */
|
|
17
|
+
readonly danger: string;
|
|
18
|
+
/** The page background. */
|
|
19
|
+
readonly background: string;
|
|
20
|
+
/** The raised surface a panel sits on. */
|
|
21
|
+
readonly surface: string;
|
|
22
|
+
/** Hairline and control borders. */
|
|
23
|
+
readonly border: string;
|
|
24
|
+
}
|
|
25
|
+
/** Spacing scale in points. */
|
|
26
|
+
export interface NativeThemeSpace {
|
|
27
|
+
readonly none: number;
|
|
28
|
+
readonly tight: number;
|
|
29
|
+
readonly small: number;
|
|
30
|
+
readonly medium: number;
|
|
31
|
+
readonly large: number;
|
|
32
|
+
readonly section: number;
|
|
33
|
+
}
|
|
34
|
+
/** Corner radii in points. */
|
|
35
|
+
export interface NativeThemeRadius {
|
|
36
|
+
readonly chip: number;
|
|
37
|
+
readonly panel: number;
|
|
38
|
+
}
|
|
39
|
+
/** Minimum interactive dimensions in points. */
|
|
40
|
+
export interface NativeThemeSize {
|
|
41
|
+
/** The smallest pressable a touch can reliably hit, in points. */
|
|
42
|
+
readonly target: number;
|
|
43
|
+
}
|
|
44
|
+
/** Typography scale in points. */
|
|
45
|
+
export interface NativeThemeText {
|
|
46
|
+
readonly title: number;
|
|
47
|
+
readonly section: number;
|
|
48
|
+
readonly body: number;
|
|
49
|
+
readonly label: number;
|
|
50
|
+
readonly caption: number;
|
|
51
|
+
}
|
|
52
|
+
/** Font weights for body, labels, and headings. */
|
|
53
|
+
export interface NativeThemeWeight {
|
|
54
|
+
readonly regular: NativeFontWeight;
|
|
55
|
+
readonly semibold: NativeFontWeight;
|
|
56
|
+
readonly bold: NativeFontWeight;
|
|
57
|
+
}
|
|
58
|
+
/** The complete design-token shape read by `@azx-pbc/axiom-native`. */
|
|
59
|
+
export interface NativeTheme {
|
|
60
|
+
readonly color: NativeThemeColors;
|
|
61
|
+
readonly space: NativeThemeSpace;
|
|
62
|
+
readonly radius: NativeThemeRadius;
|
|
63
|
+
readonly size: NativeThemeSize;
|
|
64
|
+
readonly text: NativeThemeText;
|
|
65
|
+
readonly weight: NativeThemeWeight;
|
|
66
|
+
}
|
|
67
|
+
/** Partial nested token overrides accepted by `createNativeTheme` and `NativeThemeProvider`. */
|
|
68
|
+
export interface NativeThemeOverrides {
|
|
69
|
+
readonly color?: Partial<NativeThemeColors>;
|
|
70
|
+
readonly space?: Partial<NativeThemeSpace>;
|
|
71
|
+
readonly radius?: Partial<NativeThemeRadius>;
|
|
72
|
+
readonly size?: Partial<NativeThemeSize>;
|
|
73
|
+
readonly text?: Partial<NativeThemeText>;
|
|
74
|
+
readonly weight?: Partial<NativeThemeWeight>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The default light design tokens.
|
|
78
|
+
*
|
|
79
|
+
* A host rebrands a React Native screen by passing partial overrides to `NativeThemeProvider` or
|
|
80
|
+
* `createNativeTheme` rather than editing every component: the controls, the layout adapter, and
|
|
81
|
+
* the confirmation surface all read these names. The scale is deliberately small: accent roles, a
|
|
82
|
+
* danger role, a short spacing scale, two radii, and five type sizes.
|
|
83
|
+
*
|
|
84
|
+
* The values are points, the unit every React Native style takes. They are also the numbers the
|
|
85
|
+
* accessibility contract needs: a pressable is at least `theme.size.target` in both dimensions, and
|
|
86
|
+
* body text is at least 15 points so the platform's own text scaling stays legible.
|
|
87
|
+
*/
|
|
88
|
+
export declare const theme: NativeTheme;
|
|
89
|
+
/**
|
|
90
|
+
* Merges partial token overrides onto a base theme without mutating `base` or the default `theme`.
|
|
91
|
+
*/
|
|
92
|
+
export declare function createNativeTheme(overrides?: NativeThemeOverrides, base?: NativeTheme): NativeTheme;
|
|
93
|
+
/** The active runtime theme context; defaults to the shipped light `theme`. */
|
|
94
|
+
export declare const NativeThemeContext: Context<NativeTheme>;
|
|
95
|
+
/** Props for `NativeThemeProvider`. */
|
|
96
|
+
export interface NativeThemeProviderProps {
|
|
97
|
+
/** Complete theme or partial overrides merged onto the inherited parent theme. */
|
|
98
|
+
readonly theme?: NativeTheme | NativeThemeOverrides | undefined;
|
|
99
|
+
readonly children: ReactNode;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Provides runtime design tokens to descendant native controls and containers.
|
|
103
|
+
*
|
|
104
|
+
* Nested providers compose cleanly: passing partial `NativeThemeOverrides` merges over the nearest
|
|
105
|
+
* parent `NativeThemeContext` value rather than resetting unspecified tokens back to defaults.
|
|
106
|
+
* Merged token values are memoized by primitive equality so an inline override literal such as
|
|
107
|
+
* `theme={{ color: { accent: '#12b886' } }}` keeps a stable context identity across parent
|
|
108
|
+
* re-renders instead of churning downstream `StyleSheet.create` caches.
|
|
109
|
+
*/
|
|
110
|
+
export declare function NativeThemeProvider({ theme: overrides, children, }: NativeThemeProviderProps): ReactElement;
|
|
111
|
+
/** Reads the active `NativeTheme` from `NativeThemeContext`. */
|
|
112
|
+
export declare function useNativeTheme(): NativeTheme;
|
|
113
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,G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GAAE,WAAmB,GACxB,WAAW,CAkDb;AAED,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,WAAW,CAAqC,CAAC;AAE1F,uCAAuC;AACvC,MAAM,WAAW,wBAAwB;IACvC,kFAAkF;IAClF,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,oBAAoB,GAAG,SAAS,CAAC;IAChE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EAAE,SAAS,EAChB,QAAQ,GACT,EAAE,wBAAwB,GAAG,YAAY,CA8FzC;AAED,gEAAgE;AAChE,wBAAgB,cAAc,IAAI,WAAW,CAE5C"}
|
package/dist/theme.js
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { createContext, createElement, useContext, useMemo } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The default light design tokens.
|
|
4
|
+
*
|
|
5
|
+
* A host rebrands a React Native screen by passing partial overrides to `NativeThemeProvider` or
|
|
6
|
+
* `createNativeTheme` rather than editing every component: the controls, the layout adapter, and
|
|
7
|
+
* the confirmation surface all read these names. The scale is deliberately small: accent roles, a
|
|
8
|
+
* danger role, a short spacing scale, two radii, and five type sizes.
|
|
9
|
+
*
|
|
10
|
+
* The values are points, the unit every React Native style takes. They are also the numbers the
|
|
11
|
+
* accessibility contract needs: a pressable is at least `theme.size.target` in both dimensions, and
|
|
12
|
+
* body text is at least 15 points so the platform's own text scaling stays legible.
|
|
13
|
+
*/
|
|
14
|
+
export const theme = Object.freeze({
|
|
15
|
+
color: Object.freeze({
|
|
16
|
+
accent: '#2b5cff',
|
|
17
|
+
onAccent: '#ffffff',
|
|
18
|
+
ink: '#111113',
|
|
19
|
+
muted: '#52525b',
|
|
20
|
+
danger: '#b3261e',
|
|
21
|
+
background: '#ffffff',
|
|
22
|
+
surface: '#f4f4f5',
|
|
23
|
+
border: '#d4d4d8',
|
|
24
|
+
}),
|
|
25
|
+
space: Object.freeze({
|
|
26
|
+
none: 0,
|
|
27
|
+
tight: 4,
|
|
28
|
+
small: 8,
|
|
29
|
+
medium: 12,
|
|
30
|
+
large: 16,
|
|
31
|
+
section: 24,
|
|
32
|
+
}),
|
|
33
|
+
radius: Object.freeze({
|
|
34
|
+
chip: 4,
|
|
35
|
+
panel: 8,
|
|
36
|
+
}),
|
|
37
|
+
size: Object.freeze({
|
|
38
|
+
target: 44,
|
|
39
|
+
}),
|
|
40
|
+
text: Object.freeze({
|
|
41
|
+
title: 22,
|
|
42
|
+
section: 17,
|
|
43
|
+
body: 15,
|
|
44
|
+
label: 13,
|
|
45
|
+
caption: 12,
|
|
46
|
+
}),
|
|
47
|
+
weight: Object.freeze({
|
|
48
|
+
regular: '400',
|
|
49
|
+
semibold: '600',
|
|
50
|
+
bold: '700',
|
|
51
|
+
}),
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* Merges partial token overrides onto a base theme without mutating `base` or the default `theme`.
|
|
55
|
+
*/
|
|
56
|
+
export function createNativeTheme(overrides, base = theme) {
|
|
57
|
+
if (overrides === undefined) {
|
|
58
|
+
return {
|
|
59
|
+
color: { ...base.color },
|
|
60
|
+
space: { ...base.space },
|
|
61
|
+
radius: { ...base.radius },
|
|
62
|
+
size: { ...base.size },
|
|
63
|
+
text: { ...base.text },
|
|
64
|
+
weight: { ...base.weight },
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
color: {
|
|
69
|
+
accent: overrides.color?.accent ?? base.color.accent,
|
|
70
|
+
onAccent: overrides.color?.onAccent ?? base.color.onAccent,
|
|
71
|
+
ink: overrides.color?.ink ?? base.color.ink,
|
|
72
|
+
muted: overrides.color?.muted ?? base.color.muted,
|
|
73
|
+
danger: overrides.color?.danger ?? base.color.danger,
|
|
74
|
+
background: overrides.color?.background ?? base.color.background,
|
|
75
|
+
surface: overrides.color?.surface ?? base.color.surface,
|
|
76
|
+
border: overrides.color?.border ?? base.color.border,
|
|
77
|
+
},
|
|
78
|
+
space: {
|
|
79
|
+
none: overrides.space?.none ?? base.space.none,
|
|
80
|
+
tight: overrides.space?.tight ?? base.space.tight,
|
|
81
|
+
small: overrides.space?.small ?? base.space.small,
|
|
82
|
+
medium: overrides.space?.medium ?? base.space.medium,
|
|
83
|
+
large: overrides.space?.large ?? base.space.large,
|
|
84
|
+
section: overrides.space?.section ?? base.space.section,
|
|
85
|
+
},
|
|
86
|
+
radius: {
|
|
87
|
+
chip: overrides.radius?.chip ?? base.radius.chip,
|
|
88
|
+
panel: overrides.radius?.panel ?? base.radius.panel,
|
|
89
|
+
},
|
|
90
|
+
size: {
|
|
91
|
+
target: overrides.size?.target ?? base.size.target,
|
|
92
|
+
},
|
|
93
|
+
text: {
|
|
94
|
+
title: overrides.text?.title ?? base.text.title,
|
|
95
|
+
section: overrides.text?.section ?? base.text.section,
|
|
96
|
+
body: overrides.text?.body ?? base.text.body,
|
|
97
|
+
label: overrides.text?.label ?? base.text.label,
|
|
98
|
+
caption: overrides.text?.caption ?? base.text.caption,
|
|
99
|
+
},
|
|
100
|
+
weight: {
|
|
101
|
+
regular: overrides.weight?.regular ?? base.weight.regular,
|
|
102
|
+
semibold: overrides.weight?.semibold ?? base.weight.semibold,
|
|
103
|
+
bold: overrides.weight?.bold ?? base.weight.bold,
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
/** The active runtime theme context; defaults to the shipped light `theme`. */
|
|
108
|
+
export const NativeThemeContext = createContext(theme);
|
|
109
|
+
/**
|
|
110
|
+
* Provides runtime design tokens to descendant native controls and containers.
|
|
111
|
+
*
|
|
112
|
+
* Nested providers compose cleanly: passing partial `NativeThemeOverrides` merges over the nearest
|
|
113
|
+
* parent `NativeThemeContext` value rather than resetting unspecified tokens back to defaults.
|
|
114
|
+
* Merged token values are memoized by primitive equality so an inline override literal such as
|
|
115
|
+
* `theme={{ color: { accent: '#12b886' } }}` keeps a stable context identity across parent
|
|
116
|
+
* re-renders instead of churning downstream `StyleSheet.create` caches.
|
|
117
|
+
*/
|
|
118
|
+
export function NativeThemeProvider({ theme: overrides, children, }) {
|
|
119
|
+
const parent = useContext(NativeThemeContext);
|
|
120
|
+
const accent = overrides?.color?.accent ?? parent.color.accent;
|
|
121
|
+
const onAccent = overrides?.color?.onAccent ?? parent.color.onAccent;
|
|
122
|
+
const ink = overrides?.color?.ink ?? parent.color.ink;
|
|
123
|
+
const muted = overrides?.color?.muted ?? parent.color.muted;
|
|
124
|
+
const danger = overrides?.color?.danger ?? parent.color.danger;
|
|
125
|
+
const background = overrides?.color?.background ?? parent.color.background;
|
|
126
|
+
const surface = overrides?.color?.surface ?? parent.color.surface;
|
|
127
|
+
const border = overrides?.color?.border ?? parent.color.border;
|
|
128
|
+
const none = overrides?.space?.none ?? parent.space.none;
|
|
129
|
+
const tight = overrides?.space?.tight ?? parent.space.tight;
|
|
130
|
+
const small = overrides?.space?.small ?? parent.space.small;
|
|
131
|
+
const medium = overrides?.space?.medium ?? parent.space.medium;
|
|
132
|
+
const large = overrides?.space?.large ?? parent.space.large;
|
|
133
|
+
const section = overrides?.space?.section ?? parent.space.section;
|
|
134
|
+
const chip = overrides?.radius?.chip ?? parent.radius.chip;
|
|
135
|
+
const panel = overrides?.radius?.panel ?? parent.radius.panel;
|
|
136
|
+
const target = overrides?.size?.target ?? parent.size.target;
|
|
137
|
+
const title = overrides?.text?.title ?? parent.text.title;
|
|
138
|
+
const textSection = overrides?.text?.section ?? parent.text.section;
|
|
139
|
+
const body = overrides?.text?.body ?? parent.text.body;
|
|
140
|
+
const label = overrides?.text?.label ?? parent.text.label;
|
|
141
|
+
const caption = overrides?.text?.caption ?? parent.text.caption;
|
|
142
|
+
const regular = overrides?.weight?.regular ?? parent.weight.regular;
|
|
143
|
+
const semibold = overrides?.weight?.semibold ?? parent.weight.semibold;
|
|
144
|
+
const bold = overrides?.weight?.bold ?? parent.weight.bold;
|
|
145
|
+
const sameAsParent = accent === parent.color.accent &&
|
|
146
|
+
onAccent === parent.color.onAccent &&
|
|
147
|
+
ink === parent.color.ink &&
|
|
148
|
+
muted === parent.color.muted &&
|
|
149
|
+
danger === parent.color.danger &&
|
|
150
|
+
background === parent.color.background &&
|
|
151
|
+
surface === parent.color.surface &&
|
|
152
|
+
border === parent.color.border &&
|
|
153
|
+
none === parent.space.none &&
|
|
154
|
+
tight === parent.space.tight &&
|
|
155
|
+
small === parent.space.small &&
|
|
156
|
+
medium === parent.space.medium &&
|
|
157
|
+
large === parent.space.large &&
|
|
158
|
+
section === parent.space.section &&
|
|
159
|
+
chip === parent.radius.chip &&
|
|
160
|
+
panel === parent.radius.panel &&
|
|
161
|
+
target === parent.size.target &&
|
|
162
|
+
title === parent.text.title &&
|
|
163
|
+
textSection === parent.text.section &&
|
|
164
|
+
body === parent.text.body &&
|
|
165
|
+
label === parent.text.label &&
|
|
166
|
+
caption === parent.text.caption &&
|
|
167
|
+
regular === parent.weight.regular &&
|
|
168
|
+
semibold === parent.weight.semibold &&
|
|
169
|
+
bold === parent.weight.bold;
|
|
170
|
+
const merged = useMemo(() => ({
|
|
171
|
+
color: { accent, onAccent, ink, muted, danger, background, surface, border },
|
|
172
|
+
space: { none, tight, small, medium, large, section },
|
|
173
|
+
radius: { chip, panel },
|
|
174
|
+
size: { target },
|
|
175
|
+
text: { title, section: textSection, body, label, caption },
|
|
176
|
+
weight: { regular, semibold, bold },
|
|
177
|
+
}), [
|
|
178
|
+
accent,
|
|
179
|
+
onAccent,
|
|
180
|
+
ink,
|
|
181
|
+
muted,
|
|
182
|
+
danger,
|
|
183
|
+
background,
|
|
184
|
+
surface,
|
|
185
|
+
border,
|
|
186
|
+
none,
|
|
187
|
+
tight,
|
|
188
|
+
small,
|
|
189
|
+
medium,
|
|
190
|
+
large,
|
|
191
|
+
section,
|
|
192
|
+
chip,
|
|
193
|
+
panel,
|
|
194
|
+
target,
|
|
195
|
+
title,
|
|
196
|
+
textSection,
|
|
197
|
+
body,
|
|
198
|
+
label,
|
|
199
|
+
caption,
|
|
200
|
+
regular,
|
|
201
|
+
semibold,
|
|
202
|
+
bold,
|
|
203
|
+
]);
|
|
204
|
+
const resolved = sameAsParent ? parent : merged;
|
|
205
|
+
return createElement(NativeThemeContext.Provider, { value: resolved }, children);
|
|
206
|
+
}
|
|
207
|
+
/** Reads the active `NativeTheme` from `NativeThemeContext`. */
|
|
208
|
+
export function useNativeTheme() {
|
|
209
|
+
return useContext(NativeThemeContext);
|
|
210
|
+
}
|
|
211
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAiG1E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,KAAK,GAAgB,MAAM,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACnB,MAAM,EAAE,SAAS;QACjB,QAAQ,EAAE,SAAS;QACnB,GAAG,EAAE,SAAS;QACd,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,SAAS;KAClB,CAAC;IACF,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACnB,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,EAAE;KACZ,CAAC;IACF,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;KACT,CAAC;IACF,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;QAClB,MAAM,EAAE,EAAE;KACX,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E,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE;QAC3D,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;KACpC,CAAC,EACF;QACE,MAAM;QACN,QAAQ;QACR,GAAG;QACH,KAAK;QACL,MAAM;QACN,UAAU;QACV,OAAO;QACP,MAAM;QACN,IAAI;QACJ,KAAK;QACL,KAAK;QACL,MAAM;QACN,KAAK;QACL,OAAO;QACP,IAAI;QACJ,KAAK;QACL,MAAM;QACN,KAAK;QACL,WAAW;QACX,IAAI;QACJ,KAAK;QACL,OAAO;QACP,OAAO;QACP,QAAQ;QACR,IAAI;KACL,CACF,CAAC;IACF,MAAM,QAAQ,GAAG,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAChD,OAAO,aAAa,CAAC,kBAAkB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC;AACnF,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,cAAc;IAC5B,OAAO,UAAU,CAAC,kBAAkB,CAAC,CAAC;AACxC,CAAC","sourcesContent":["import { createContext, createElement, useContext, useMemo } from 'react';\nimport type { Context, ReactElement, ReactNode } from 'react';\n\n/**\n * Portable React Native font weight values accepted across iOS, Android, and react-native-web.\n */\nexport type NativeFontWeight =\n | 'normal'\n | 'bold'\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900';\n\n/** Color roles read by every native control, layout container, and confirmation surface. */\nexport interface NativeThemeColors {\n /** The one accent: the primary action and the selected chip's border. */\n readonly accent: string;\n /** Ink on the accent, for a filled button. */\n readonly onAccent: string;\n /** Body and heading text. */\n readonly ink: string;\n /** Secondary text: a description, a reason. */\n readonly muted: string;\n /** A refusal or a failed check. */\n readonly danger: string;\n /** The page background. */\n readonly background: string;\n /** The raised surface a panel sits on. */\n readonly surface: string;\n /** Hairline and control borders. */\n readonly border: string;\n}\n\n/** Spacing scale in points. */\nexport interface NativeThemeSpace {\n readonly none: number;\n readonly tight: number;\n readonly small: number;\n readonly medium: number;\n readonly large: number;\n readonly section: number;\n}\n\n/** Corner radii in points. */\nexport interface NativeThemeRadius {\n readonly chip: number;\n readonly panel: number;\n}\n\n/** Minimum interactive dimensions in points. */\nexport interface NativeThemeSize {\n /** The smallest pressable a touch can reliably hit, in points. */\n readonly target: number;\n}\n\n/** Typography scale in points. */\nexport interface NativeThemeText {\n readonly title: number;\n readonly section: number;\n readonly body: number;\n readonly label: number;\n readonly caption: number;\n}\n\n/** Font weights for body, labels, and headings. */\nexport interface NativeThemeWeight {\n readonly regular: NativeFontWeight;\n readonly semibold: NativeFontWeight;\n readonly bold: NativeFontWeight;\n}\n\n/** The complete design-token shape read by `@azx-pbc/axiom-native`. */\nexport interface NativeTheme {\n readonly color: NativeThemeColors;\n readonly space: NativeThemeSpace;\n readonly radius: NativeThemeRadius;\n readonly size: NativeThemeSize;\n readonly text: NativeThemeText;\n readonly weight: NativeThemeWeight;\n}\n\n/** Partial nested token overrides accepted by `createNativeTheme` and `NativeThemeProvider`. */\nexport interface NativeThemeOverrides {\n readonly color?: Partial<NativeThemeColors>;\n readonly space?: Partial<NativeThemeSpace>;\n readonly radius?: Partial<NativeThemeRadius>;\n readonly size?: Partial<NativeThemeSize>;\n readonly text?: Partial<NativeThemeText>;\n readonly weight?: Partial<NativeThemeWeight>;\n}\n\n/**\n * The default light design tokens.\n *\n * A host rebrands a React Native screen by passing partial overrides to `NativeThemeProvider` or\n * `createNativeTheme` rather than editing every component: the controls, the layout adapter, and\n * the confirmation surface all read these names. The scale is deliberately small: accent roles, a\n * danger role, a short spacing scale, two radii, and five type sizes.\n *\n * The values are points, the unit every React Native style takes. They are also the numbers the\n * accessibility contract needs: a pressable is at least `theme.size.target` in both dimensions, and\n * body text is at least 15 points so the platform's own text scaling stays legible.\n */\nexport const theme: NativeTheme = Object.freeze({\n color: Object.freeze({\n accent: '#2b5cff',\n onAccent: '#ffffff',\n ink: '#111113',\n muted: '#52525b',\n danger: '#b3261e',\n background: '#ffffff',\n surface: '#f4f4f5',\n border: '#d4d4d8',\n }),\n space: Object.freeze({\n none: 0,\n tight: 4,\n small: 8,\n medium: 12,\n large: 16,\n section: 24,\n }),\n radius: Object.freeze({\n chip: 4,\n panel: 8,\n }),\n size: Object.freeze({\n target: 44,\n }),\n text: Object.freeze({\n title: 22,\n section: 17,\n body: 15,\n label: 13,\n caption: 12,\n }),\n weight: Object.freeze({\n regular: '400',\n semibold: '600',\n bold: '700',\n }),\n});\n\n/**\n * Merges partial token overrides onto a base theme without mutating `base` or the default `theme`.\n */\nexport function createNativeTheme(\n overrides?: NativeThemeOverrides,\n base: NativeTheme = theme,\n): NativeTheme {\n if (overrides === undefined) {\n return {\n color: { ...base.color },\n space: { ...base.space },\n radius: { ...base.radius },\n size: { ...base.size },\n text: { ...base.text },\n weight: { ...base.weight },\n };\n }\n return {\n color: {\n accent: overrides.color?.accent ?? base.color.accent,\n onAccent: overrides.color?.onAccent ?? base.color.onAccent,\n ink: overrides.color?.ink ?? base.color.ink,\n muted: overrides.color?.muted ?? base.color.muted,\n danger: overrides.color?.danger ?? base.color.danger,\n background: overrides.color?.background ?? base.color.background,\n surface: overrides.color?.surface ?? base.color.surface,\n border: overrides.color?.border ?? base.color.border,\n },\n space: {\n none: overrides.space?.none ?? base.space.none,\n tight: overrides.space?.tight ?? base.space.tight,\n small: overrides.space?.small ?? base.space.small,\n medium: overrides.space?.medium ?? base.space.medium,\n large: overrides.space?.large ?? base.space.large,\n section: overrides.space?.section ?? base.space.section,\n },\n radius: {\n chip: overrides.radius?.chip ?? base.radius.chip,\n panel: overrides.radius?.panel ?? base.radius.panel,\n },\n size: {\n target: overrides.size?.target ?? base.size.target,\n },\n text: {\n title: overrides.text?.title ?? base.text.title,\n section: overrides.text?.section ?? base.text.section,\n body: overrides.text?.body ?? base.text.body,\n label: overrides.text?.label ?? base.text.label,\n caption: overrides.text?.caption ?? base.text.caption,\n },\n weight: {\n regular: overrides.weight?.regular ?? base.weight.regular,\n semibold: overrides.weight?.semibold ?? base.weight.semibold,\n bold: overrides.weight?.bold ?? base.weight.bold,\n },\n };\n}\n\n/** The active runtime theme context; defaults to the shipped light `theme`. */\nexport const NativeThemeContext: Context<NativeTheme> = createContext<NativeTheme>(theme);\n\n/** Props for `NativeThemeProvider`. */\nexport interface NativeThemeProviderProps {\n /** Complete theme or partial overrides merged onto the inherited parent theme. */\n readonly theme?: NativeTheme | NativeThemeOverrides | undefined;\n readonly children: ReactNode;\n}\n\n/**\n * Provides runtime design tokens to descendant native controls and containers.\n *\n * Nested providers compose cleanly: passing partial `NativeThemeOverrides` merges over the nearest\n * parent `NativeThemeContext` value rather than resetting unspecified tokens back to defaults.\n * Merged token values are memoized by primitive equality so an inline override literal such as\n * `theme={{ color: { accent: '#12b886' } }}` keeps a stable context identity across parent\n * re-renders instead of churning downstream `StyleSheet.create` caches.\n */\nexport function NativeThemeProvider({\n theme: overrides,\n children,\n}: NativeThemeProviderProps): ReactElement {\n const parent = useContext(NativeThemeContext);\n const accent = overrides?.color?.accent ?? parent.color.accent;\n const onAccent = overrides?.color?.onAccent ?? parent.color.onAccent;\n const ink = overrides?.color?.ink ?? parent.color.ink;\n const muted = overrides?.color?.muted ?? parent.color.muted;\n const danger = overrides?.color?.danger ?? parent.color.danger;\n const background = overrides?.color?.background ?? parent.color.background;\n const surface = overrides?.color?.surface ?? parent.color.surface;\n const border = overrides?.color?.border ?? parent.color.border;\n const none = overrides?.space?.none ?? parent.space.none;\n const tight = overrides?.space?.tight ?? parent.space.tight;\n const small = overrides?.space?.small ?? parent.space.small;\n const medium = overrides?.space?.medium ?? parent.space.medium;\n const large = overrides?.space?.large ?? parent.space.large;\n const section = overrides?.space?.section ?? parent.space.section;\n const chip = overrides?.radius?.chip ?? parent.radius.chip;\n const panel = overrides?.radius?.panel ?? parent.radius.panel;\n const target = overrides?.size?.target ?? parent.size.target;\n const title = overrides?.text?.title ?? parent.text.title;\n const textSection = overrides?.text?.section ?? parent.text.section;\n const body = overrides?.text?.body ?? parent.text.body;\n const label = overrides?.text?.label ?? parent.text.label;\n const caption = overrides?.text?.caption ?? parent.text.caption;\n const regular = overrides?.weight?.regular ?? parent.weight.regular;\n const semibold = overrides?.weight?.semibold ?? parent.weight.semibold;\n const bold = overrides?.weight?.bold ?? parent.weight.bold;\n\n const sameAsParent =\n accent === parent.color.accent &&\n onAccent === parent.color.onAccent &&\n ink === parent.color.ink &&\n muted === parent.color.muted &&\n danger === parent.color.danger &&\n background === parent.color.background &&\n surface === parent.color.surface &&\n border === parent.color.border &&\n none === parent.space.none &&\n tight === parent.space.tight &&\n small === parent.space.small &&\n medium === parent.space.medium &&\n large === parent.space.large &&\n section === parent.space.section &&\n chip === parent.radius.chip &&\n panel === parent.radius.panel &&\n target === parent.size.target &&\n title === parent.text.title &&\n textSection === parent.text.section &&\n body === parent.text.body &&\n label === parent.text.label &&\n caption === parent.text.caption &&\n regular === parent.weight.regular &&\n semibold === parent.weight.semibold &&\n bold === parent.weight.bold;\n\n const merged = useMemo<NativeTheme>(\n () => ({\n color: { accent, onAccent, ink, muted, danger, background, surface, border },\n space: { none, tight, small, medium, large, section },\n radius: { chip, panel },\n size: { target },\n text: { title, section: textSection, body, label, caption },\n weight: { regular, semibold, bold },\n }),\n [\n accent,\n onAccent,\n ink,\n muted,\n danger,\n background,\n surface,\n border,\n none,\n tight,\n small,\n medium,\n large,\n section,\n chip,\n panel,\n target,\n title,\n textSection,\n body,\n label,\n caption,\n regular,\n semibold,\n bold,\n ],\n );\n const resolved = sameAsParent ? parent : merged;\n return createElement(NativeThemeContext.Provider, { value: resolved }, children);\n}\n\n/** Reads the active `NativeTheme` from `NativeThemeContext`. */\nexport function useNativeTheme(): NativeTheme {\n return useContext(NativeThemeContext);\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,81 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azx-pbc/axiom-native",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"description": "The reference React Native renderer for a compiled artifact: layout containers, all 31 controls, nine-locale copy, theme tokens, and capture action ports over @azx-pbc/axiom-react.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "AZX, PBC",
|
|
7
|
+
"homepage": "https://github.com/AZX-PBC-OSS/axiom",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/AZX-PBC-OSS/axiom/issues"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"axiom",
|
|
13
|
+
"react",
|
|
14
|
+
"react-native",
|
|
15
|
+
"expo",
|
|
16
|
+
"forms",
|
|
17
|
+
"renderer",
|
|
18
|
+
"accessibility",
|
|
19
|
+
"theming"
|
|
20
|
+
],
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=24"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/AZX-PBC-OSS/axiom.git",
|
|
27
|
+
"directory": "packages/native"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public",
|
|
31
|
+
"provenance": true
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"type": "module",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"react-native": "./dist/index.js",
|
|
39
|
+
"default": "./dist/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./copy": {
|
|
42
|
+
"types": "./dist/copy.d.ts",
|
|
43
|
+
"react-native": "./dist/copy.js",
|
|
44
|
+
"default": "./dist/copy.js"
|
|
45
|
+
},
|
|
46
|
+
"./projection": {
|
|
47
|
+
"types": "./dist/render/native.d.ts",
|
|
48
|
+
"react-native": "./dist/render/native.js",
|
|
49
|
+
"default": "./dist/render/native.js"
|
|
50
|
+
},
|
|
51
|
+
"./package.json": "./package.json"
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"dist",
|
|
55
|
+
"LICENSE"
|
|
56
|
+
],
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"react": "^19.0.0",
|
|
59
|
+
"react-native": ">=0.78.0",
|
|
60
|
+
"expo": ">=53.0.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependenciesMeta": {
|
|
63
|
+
"expo": {
|
|
64
|
+
"optional": true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@azx-pbc/axiom-react": "0.0.6",
|
|
69
|
+
"@azx-pbc/axiom-runtime": "0.0.6"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@types/react": "19.3.3",
|
|
73
|
+
"react": "19.3.1",
|
|
74
|
+
"react-native": "0.88.1",
|
|
75
|
+
"vitest": "5.1.2"
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"build": "tsc -b",
|
|
79
|
+
"check:publish": "publint && attw --pack . --profile esm-only"
|
|
80
|
+
}
|
|
6
81
|
}
|