@kubuild/components 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks/forms.d.ts +6 -0
- package/dist/blocks/forms.d.ts.map +1 -0
- package/dist/blocks/index.cjs +1661 -0
- package/dist/blocks/index.cjs.map +1 -0
- package/dist/blocks/index.d.ts +11 -0
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/index.js +15 -0
- package/dist/blocks/index.js.map +1 -0
- package/dist/blocks/layout.d.ts +6 -0
- package/dist/blocks/layout.d.ts.map +1 -0
- package/dist/blocks/sections.d.ts +6 -0
- package/dist/blocks/sections.d.ts.map +1 -0
- package/dist/{blocks.d.ts → blocks/types.d.ts} +2 -5
- package/dist/blocks/types.d.ts.map +1 -0
- package/dist/chunk-JTQ35OQQ.js +1631 -0
- package/dist/chunk-JTQ35OQQ.js.map +1 -0
- package/dist/chunk-K6I6U7F3.js +2707 -0
- package/dist/chunk-K6I6U7F3.js.map +1 -0
- package/dist/chunk-OK53DS7G.js +911 -0
- package/dist/chunk-OK53DS7G.js.map +1 -0
- package/dist/definitions/constants.d.ts +10 -0
- package/dist/definitions/constants.d.ts.map +1 -0
- package/dist/definitions/data/collection.d.ts +3 -0
- package/dist/definitions/data/collection.d.ts.map +1 -0
- package/dist/definitions/data/index.d.ts +4 -0
- package/dist/definitions/data/index.d.ts.map +1 -0
- package/dist/definitions/data/list.d.ts +4 -0
- package/dist/definitions/data/list.d.ts.map +1 -0
- package/dist/definitions/data/table.d.ts +5 -0
- package/dist/definitions/data/table.d.ts.map +1 -0
- package/dist/definitions/form/button.d.ts +4 -0
- package/dist/definitions/form/button.d.ts.map +1 -0
- package/dist/definitions/form/checkbox.d.ts +3 -0
- package/dist/definitions/form/checkbox.d.ts.map +1 -0
- package/dist/definitions/form/file-upload.d.ts +3 -0
- package/dist/definitions/form/file-upload.d.ts.map +1 -0
- package/dist/definitions/form/form.d.ts +3 -0
- package/dist/definitions/form/form.d.ts.map +1 -0
- package/dist/definitions/form/index.d.ts +10 -0
- package/dist/definitions/form/index.d.ts.map +1 -0
- package/dist/definitions/form/input.d.ts +3 -0
- package/dist/definitions/form/input.d.ts.map +1 -0
- package/dist/definitions/form/radio.d.ts +5 -0
- package/dist/definitions/form/radio.d.ts.map +1 -0
- package/dist/definitions/form/select.d.ts +3 -0
- package/dist/definitions/form/select.d.ts.map +1 -0
- package/dist/definitions/form/switch.d.ts +3 -0
- package/dist/definitions/form/switch.d.ts.map +1 -0
- package/dist/definitions/form/textarea.d.ts +3 -0
- package/dist/definitions/form/textarea.d.ts.map +1 -0
- package/dist/definitions/index.cjs +3512 -0
- package/dist/definitions/index.cjs.map +1 -0
- package/dist/definitions/index.d.ts +12 -0
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/definitions/index.js +90 -0
- package/dist/definitions/index.js.map +1 -0
- package/dist/definitions/interactive/collapsible.d.ts +3 -0
- package/dist/definitions/interactive/collapsible.d.ts.map +1 -0
- package/dist/definitions/interactive/drawer.d.ts +3 -0
- package/dist/definitions/interactive/drawer.d.ts.map +1 -0
- package/dist/definitions/interactive/index.d.ts +4 -0
- package/dist/definitions/interactive/index.d.ts.map +1 -0
- package/dist/definitions/interactive/modal.d.ts +3 -0
- package/dist/definitions/interactive/modal.d.ts.map +1 -0
- package/dist/definitions/layout/columns.d.ts +3 -0
- package/dist/definitions/layout/columns.d.ts.map +1 -0
- package/dist/definitions/layout/container.d.ts +3 -0
- package/dist/definitions/layout/container.d.ts.map +1 -0
- package/dist/definitions/layout/flex.d.ts +7 -0
- package/dist/definitions/layout/flex.d.ts.map +1 -0
- package/dist/definitions/layout/grid.d.ts +7 -0
- package/dist/definitions/layout/grid.d.ts.map +1 -0
- package/dist/definitions/layout/index.d.ts +7 -0
- package/dist/definitions/layout/index.d.ts.map +1 -0
- package/dist/definitions/layout/page.d.ts +3 -0
- package/dist/definitions/layout/page.d.ts.map +1 -0
- package/dist/definitions/layout/section.d.ts +3 -0
- package/dist/definitions/layout/section.d.ts.map +1 -0
- package/dist/definitions/media/html-embed.d.ts +3 -0
- package/dist/definitions/media/html-embed.d.ts.map +1 -0
- package/dist/definitions/media/icon.d.ts +3 -0
- package/dist/definitions/media/icon.d.ts.map +1 -0
- package/dist/definitions/media/image.d.ts +3 -0
- package/dist/definitions/media/image.d.ts.map +1 -0
- package/dist/definitions/media/index.d.ts +5 -0
- package/dist/definitions/media/index.d.ts.map +1 -0
- package/dist/definitions/media/video.d.ts +3 -0
- package/dist/definitions/media/video.d.ts.map +1 -0
- package/dist/definitions/types.d.ts +5 -0
- package/dist/definitions/types.d.ts.map +1 -0
- package/dist/definitions/typography/badge.d.ts +3 -0
- package/dist/definitions/typography/badge.d.ts.map +1 -0
- package/dist/definitions/typography/blockquote.d.ts +3 -0
- package/dist/definitions/typography/blockquote.d.ts.map +1 -0
- package/dist/definitions/typography/code-block.d.ts +3 -0
- package/dist/definitions/typography/code-block.d.ts.map +1 -0
- package/dist/definitions/typography/heading.d.ts +3 -0
- package/dist/definitions/typography/heading.d.ts.map +1 -0
- package/dist/definitions/typography/index.d.ts +8 -0
- package/dist/definitions/typography/index.d.ts.map +1 -0
- package/dist/definitions/typography/link.d.ts +3 -0
- package/dist/definitions/typography/link.d.ts.map +1 -0
- package/dist/definitions/typography/paragraph.d.ts +3 -0
- package/dist/definitions/typography/paragraph.d.ts.map +1 -0
- package/dist/definitions/typography/text.d.ts +3 -0
- package/dist/definitions/typography/text.d.ts.map +1 -0
- package/dist/index.cjs +1568 -814
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +120 -4332
- package/dist/index.js.map +1 -1
- package/dist/traits/common.d.ts +8 -0
- package/dist/traits/common.d.ts.map +1 -0
- package/dist/{traits.d.ts → traits/form.d.ts} +2 -109
- package/dist/traits/form.d.ts.map +1 -0
- package/dist/traits/index.cjs +998 -0
- package/dist/traits/index.cjs.map +1 -0
- package/dist/traits/index.d.ts +7 -0
- package/dist/traits/index.d.ts.map +1 -0
- package/dist/traits/index.js +129 -0
- package/dist/traits/index.js.map +1 -0
- package/dist/traits/link.d.ts +8 -0
- package/dist/traits/link.d.ts.map +1 -0
- package/dist/traits/media.d.ts +18 -0
- package/dist/traits/media.d.ts.map +1 -0
- package/dist/traits/structure.d.ts +10 -0
- package/dist/traits/structure.d.ts.map +1 -0
- package/dist/traits/types.d.ts +69 -0
- package/dist/traits/types.d.ts.map +1 -0
- package/package.json +20 -4
- package/dist/blocks.d.ts.map +0 -1
- package/dist/definitions.d.ts +0 -37
- package/dist/definitions.d.ts.map +0 -1
- package/dist/traits.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/traits/index.ts","../../src/traits/types.ts","../../src/traits/common.ts","../../src/traits/link.ts","../../src/traits/media.ts","../../src/traits/structure.ts","../../src/traits/form.ts"],"sourcesContent":["export * from './types';\nexport * from './common';\nexport * from './link';\nexport * from './media';\nexport * from './structure';\nexport * from './form';\n\n","/**\n * Trait metadata (STORA-210).\n *\n * A **trait** is a *functional* prop — it carries behavior, semantics, or\n * identity rather than pure visual styling. Examples: `href`, `target`, `alt`,\n * `title`, `placeholder`, `aria-label`, and a custom `id`.\n */\n\n/** The primitive data types a trait value can take. */\nexport type TraitType = 'string' | 'number' | 'boolean' | 'select';\n\n/** A constrained choice for `select`-typed traits. */\nexport interface TraitOption {\n label: string;\n value: unknown;\n}\n\n/**\n * Logical grouping used to organize traits in an inspector UI. Kept as a\n * closed union so hosts can render a stable, ordered set of trait sections.\n */\nexport type TraitGroup =\n | 'link'\n | 'media'\n | 'form'\n | 'accessibility'\n | 'identity'\n | 'behavior'\n | 'semantic';\n\n/** Ordered display order for trait groups in an inspector. */\nexport const TRAIT_GROUP_ORDER: TraitGroup[] = [\n 'identity',\n 'link',\n 'media',\n 'form',\n 'behavior',\n 'semantic',\n 'accessibility',\n];\n\n/** Human-readable labels for each trait group. */\nexport const TRAIT_GROUP_LABELS: Record<TraitGroup, string> = {\n identity: 'Identity',\n link: 'Link',\n media: 'Media',\n form: 'Form',\n behavior: 'Behavior',\n semantic: 'Semantic',\n accessibility: 'Accessibility',\n};\n\n/**\n * Metadata describing a single functional trait on a component.\n *\n * `name` is the prop key on the node's `props` object; `attribute` is the HTML\n * attribute it maps to at render time (when they differ, e.g. `name` → `id`).\n */\nexport interface ComponentTraitDefinition {\n /** Prop key on the node's `props` object (e.g. `'href'`, `'alt'`). */\n name: string;\n /** Human-readable label shown in the inspector. */\n label: string;\n /** Data type of the trait value. */\n type: TraitType;\n /** Default value applied when the trait is not set. */\n defaultValue?: unknown;\n /** Constrained choices for `select`-typed traits. */\n options?: TraitOption[];\n /** Short description of the trait's purpose. */\n description?: string;\n /** The HTML attribute this trait maps to at render time (e.g. `'href'`). */\n attribute?: string;\n /** Whether the trait must be present for the component to be valid. */\n required?: boolean;\n /** Logical grouping for inspector organization. */\n group?: TraitGroup;\n}\n\n/** Convenience alias for a list of trait definitions. */\nexport type ComponentTraits = ComponentTraitDefinition[];\n\n/**\n * Merge helper: applies partial overrides on top of a base trait definition.\n * Used by the factories below so callers can tweak label/default/group without\n * repeating the full shape.\n */\nexport function withOverrides(\n base: ComponentTraitDefinition,\n overrides?: Partial<ComponentTraitDefinition>,\n): ComponentTraitDefinition {\n return overrides ? { ...base, ...overrides } : base;\n}\n\n/**\n * Sort a component's traits into a stable, inspector-friendly order:\n * identity first, then the remaining groups in `TRAIT_GROUP_ORDER`, with\n * ungrouped traits last. Preserves relative order within each group.\n */\nexport function sortTraits(traits: ComponentTraits): ComponentTraits {\n const groupRank = (group?: TraitGroup): number => {\n if (!group) return Number.MAX_SAFE_INTEGER;\n const idx = TRAIT_GROUP_ORDER.indexOf(group);\n return idx === -1 ? Number.MAX_SAFE_INTEGER : idx;\n };\n return [...traits].sort((a, b) => groupRank(a.group) - groupRank(b.group));\n}\n\n/**\n * Collect the union of all trait names declared across a set of component\n * definitions. Useful for building a global trait catalog / search index.\n */\nexport function collectTraitNames(traitsList: ComponentTraits[]): string[] {\n const names = new Set<string>();\n for (const traits of traitsList) {\n for (const trait of traits) {\n names.add(trait.name);\n }\n }\n return Array.from(names);\n}\n\n","import { ComponentTraitDefinition, withOverrides } from './types';\n\n/** `id` — a custom, document-unique identifier for the element. */\nexport function idTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'id',\n label: 'Element ID',\n type: 'string',\n attribute: 'id',\n group: 'identity',\n description: 'A custom, document-unique identifier used for anchors, CSS, and scripting.',\n },\n overrides,\n );\n}\n\n/** `title` — advisory title shown on hover / used as a fallback label. */\nexport function titleTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'title',\n label: 'Title',\n type: 'string',\n attribute: 'title',\n group: 'semantic',\n description: 'Advisory title for the element (tooltip / document title).',\n },\n overrides,\n );\n}\n\n/** `aria-label` — accessible name for elements without visible text. */\nexport function ariaLabelTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'ariaLabel',\n label: 'Accessible Label (aria-label)',\n type: 'string',\n attribute: 'aria-label',\n group: 'accessibility',\n description: 'Accessible name for assistive technology when no visible label exists.',\n },\n overrides,\n );\n}\n\n","import { ComponentTraitDefinition, withOverrides } from './types';\n\n/** `href` — the destination URL for links, buttons, and form actions. */\nexport function hrefTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'href',\n label: 'Link URL',\n type: 'string',\n defaultValue: '#',\n attribute: 'href',\n group: 'link',\n description: 'The destination URL the element navigates to when activated.',\n },\n overrides,\n );\n}\n\n/** `target` — where the linked resource opens (`_self`, `_blank`, ...). */\nexport function targetTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'target',\n label: 'Open In',\n type: 'select',\n defaultValue: '_self',\n attribute: 'target',\n group: 'link',\n options: [\n { label: 'Same tab (_self)', value: '_self' },\n { label: 'New tab (_blank)', value: '_blank' },\n { label: 'Parent frame (_parent)', value: '_parent' },\n { label: 'Top frame (_top)', value: '_top' },\n ],\n description: 'Where the linked resource should open.',\n },\n overrides,\n );\n}\n\n/** `rel` — relationship between the current document and the linked resource. */\nexport function relTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'rel',\n label: 'Relationship (rel)',\n type: 'string',\n defaultValue: '',\n attribute: 'rel',\n group: 'link',\n description: 'Space-separated relationship tokens (e.g. \"noopener noreferrer\").',\n },\n overrides,\n );\n}\n\n","import { ComponentTraitDefinition, withOverrides } from './types';\n\n/** `src` — the source URL for media (image, video). */\nexport function srcTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'src',\n label: 'Source URL',\n type: 'string',\n attribute: 'src',\n group: 'media',\n required: true,\n description: 'The source URL of the media resource.',\n },\n overrides,\n );\n}\n\n/** `alt` — alternative text for media, required for accessibility. */\nexport function altTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'alt',\n label: 'Alt Text',\n type: 'string',\n attribute: 'alt',\n group: 'accessibility',\n required: true,\n description: 'Alternative text describing the media for screen readers and fallback.',\n },\n overrides,\n );\n}\n\n/** `poster` — a preview image shown before a video plays. */\nexport function posterTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'poster',\n label: 'Poster Image URL',\n type: 'string',\n attribute: 'poster',\n group: 'media',\n description: 'A preview image shown before the video starts playing.',\n },\n overrides,\n );\n}\n\n/** `controls` — whether native media controls are shown. */\nexport function controlsTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'controls',\n label: 'Show Controls',\n type: 'boolean',\n defaultValue: true,\n attribute: 'controls',\n group: 'media',\n description: 'Whether to show the native play/pause/volume controls.',\n },\n overrides,\n );\n}\n\n/** `autoplay` — whether media starts playing automatically. */\nexport function autoplayTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'autoplay',\n label: 'Autoplay',\n type: 'boolean',\n defaultValue: false,\n attribute: 'autoplay',\n group: 'media',\n description: 'Whether the media starts playing automatically on load.',\n },\n overrides,\n );\n}\n\n/** `loop` — whether media restarts from the beginning when it ends. */\nexport function loopTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'loop',\n label: 'Loop',\n type: 'boolean',\n defaultValue: false,\n attribute: 'loop',\n group: 'media',\n description: 'Whether the media restarts automatically when it reaches the end.',\n },\n overrides,\n );\n}\n\n/** `muted` — whether media starts with sound muted. */\nexport function mutedTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'muted',\n label: 'Muted',\n type: 'boolean',\n defaultValue: false,\n attribute: 'muted',\n group: 'media',\n description: 'Whether the media starts with the audio muted.',\n },\n overrides,\n );\n}\n\n/** `loading` — native lazy/eager loading hint for images (STORA-213). */\nexport function loadingTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'loading',\n label: 'Loading Mode',\n type: 'select',\n defaultValue: 'lazy',\n attribute: 'loading',\n group: 'media',\n options: [\n { label: 'Lazy (load when near viewport)', value: 'lazy' },\n { label: 'Eager (load immediately)', value: 'eager' },\n ],\n description: 'Native loading hint: lazy defers offscreen images, eager loads immediately.',\n },\n overrides,\n );\n}\n\n","import { ComponentTraitDefinition, withOverrides } from './types';\n\n/** `cite` — the source URL for a blockquote. */\nexport function citeTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'cite',\n label: 'Citation URL (cite)',\n type: 'string',\n attribute: 'cite',\n group: 'semantic',\n description: 'The URL of the source document the quote is taken from.',\n },\n overrides,\n );\n}\n\n/** `colSpan` — the number of columns a table cell spans. */\nexport function colSpanTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'colSpan',\n label: 'Column Span (colSpan)',\n type: 'number',\n defaultValue: 1,\n attribute: 'colspan',\n group: 'semantic',\n description: 'The number of columns the cell spans.',\n },\n overrides,\n );\n}\n\n/** `rowSpan` — the number of rows a table cell spans. */\nexport function rowSpanTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'rowSpan',\n label: 'Row Span (rowSpan)',\n type: 'number',\n defaultValue: 1,\n attribute: 'rowspan',\n group: 'semantic',\n description: 'The number of rows the cell spans.',\n },\n overrides,\n );\n}\n\n/** `tag` — the semantic HTML tag a component renders as (e.g. `ul`/`ol`, `td`/`th`). */\nexport function tagTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'tag',\n label: 'HTML Tag',\n type: 'select',\n attribute: 'tag',\n group: 'semantic',\n description: 'The semantic HTML tag the component renders as.',\n },\n overrides,\n );\n}\n\n","import { ComponentTraitDefinition, withOverrides } from './types';\n\n/** `placeholder` — hint text shown inside an empty form control. */\nexport function placeholderTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'placeholder',\n label: 'Placeholder',\n type: 'string',\n attribute: 'placeholder',\n group: 'form',\n description: 'Hint text shown inside the control when it is empty.',\n },\n overrides,\n );\n}\n\n/** `name` — the form field name submitted with the form data. */\nexport function fieldNameTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'name',\n label: 'Field Name',\n type: 'string',\n attribute: 'name',\n group: 'form',\n required: true,\n description: 'The name submitted with the form data for this field.',\n },\n overrides,\n );\n}\n\n/** `required` — whether the form field must be filled before submission. */\nexport function requiredTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'required',\n label: 'Required',\n type: 'boolean',\n defaultValue: false,\n attribute: 'required',\n group: 'form',\n description: 'Whether the field must be filled before the form can be submitted.',\n },\n overrides,\n );\n}\n\n/** `disabled` — whether the control is non-interactive. */\nexport function disabledTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'disabled',\n label: 'Disabled',\n type: 'boolean',\n defaultValue: false,\n attribute: 'disabled',\n group: 'behavior',\n description: 'Disables the control so it cannot be focused or activated.',\n },\n overrides,\n );\n}\n\n/** `readOnly` — whether the control value can be changed by the user. */\nexport function readOnlyTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'readOnly',\n label: 'Read Only',\n type: 'boolean',\n defaultValue: false,\n attribute: 'readonly',\n group: 'behavior',\n description: 'Prevents the user from modifying the control value.',\n },\n overrides,\n );\n}\n\n/** `action` — the URL a form submits to. */\nexport function actionTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'action',\n label: 'Action URL',\n type: 'string',\n attribute: 'action',\n group: 'form',\n description: 'The URL the form data is submitted to.',\n },\n overrides,\n );\n}\n\n/** `method` — the HTTP method a form uses to submit. */\nexport function methodTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'method',\n label: 'Method',\n type: 'select',\n defaultValue: 'POST',\n attribute: 'method',\n group: 'form',\n options: [\n { label: 'POST', value: 'POST' },\n { label: 'GET', value: 'GET' },\n ],\n description: 'The HTTP method used to submit the form.',\n },\n overrides,\n );\n}\n\n/** `autoComplete` — whether the browser may autofill the form. */\nexport function autoCompleteTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'autoComplete',\n label: 'Auto Complete',\n type: 'select',\n defaultValue: 'on',\n attribute: 'autocomplete',\n group: 'form',\n options: [\n { label: 'On', value: 'on' },\n { label: 'Off', value: 'off' },\n ],\n description: 'Whether the browser may autofill values for this form.',\n },\n overrides,\n );\n}\n\n/** `value` — the value submitted for a checkbox/radio when checked. */\nexport function valueTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'value',\n label: 'Value',\n type: 'string',\n attribute: 'value',\n group: 'form',\n description: 'The value submitted with the form data when the control is selected.',\n },\n overrides,\n );\n}\n\n/** `defaultChecked` — whether a checkbox/radio starts checked. */\nexport function defaultCheckedTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'defaultChecked',\n label: 'Default Checked',\n type: 'boolean',\n defaultValue: false,\n attribute: 'checked',\n group: 'form',\n description: 'Whether the control starts in the checked state.',\n },\n overrides,\n );\n}\n\n/** `defaultValue` — the initial value of a form control. */\nexport function defaultValueTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'defaultValue',\n label: 'Default Value',\n type: 'string',\n attribute: 'value',\n group: 'form',\n description: 'The initial value of the control before the user edits it.',\n },\n overrides,\n );\n}\n\n/** `rows` — the visible number of lines in a textarea. */\nexport function rowsTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'rows',\n label: 'Rows',\n type: 'number',\n defaultValue: 4,\n attribute: 'rows',\n group: 'form',\n description: 'The number of visible text lines in the textarea.',\n },\n overrides,\n );\n}\n\n/** `type` — the input type of a form control (text, email, number, ...). */\nexport function inputTypeTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'type',\n label: 'Input Type',\n type: 'select',\n defaultValue: 'text',\n attribute: 'type',\n group: 'form',\n description: 'The semantic input type of the control.',\n },\n overrides,\n );\n}\n\n/** `buttonType` — the button's form behavior (`button`, `submit`, `reset`). */\nexport function buttonTypeTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'buttonType',\n label: 'Button Type',\n type: 'select',\n defaultValue: 'button',\n attribute: 'type',\n group: 'form',\n options: [\n { label: 'Button', value: 'button' },\n { label: 'Submit Form (submit)', value: 'submit' },\n { label: 'Reset Form (reset)', value: 'reset' },\n ],\n description: 'The button’s behavior inside a form.',\n },\n overrides,\n );\n}\n\n/** `preventDefault` — whether the form intercepts the native submit and handles it in JS. */\nexport function preventDefaultTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'preventDefault',\n label: 'Prevent Default',\n type: 'boolean',\n defaultValue: true,\n group: 'form',\n description: 'Intercept the native browser submit and handle it via the KUBUILD action pipeline instead.',\n },\n overrides,\n );\n}\n\n/** `scrollToFirstError` — whether the form auto-scrolls to the first invalid field on submit. */\nexport function scrollToFirstErrorTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'scrollToFirstError',\n label: 'Scroll to First Error',\n type: 'boolean',\n defaultValue: true,\n group: 'form',\n description: 'Automatically scroll to and focus the first invalid field when submission fails validation.',\n },\n overrides,\n );\n}\n\n/** `resetOnSubmit` — whether the form resets all fields to their initial values after a successful submit. */\nexport function resetOnSubmitTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'resetOnSubmit',\n label: 'Reset on Submit',\n type: 'boolean',\n defaultValue: false,\n group: 'form',\n description: 'Reset all fields to their initial values after a successful form submission.',\n },\n overrides,\n );\n}\n\n/** `pattern` — a regex the field value must match for the input to be valid. */\nexport function patternTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'pattern',\n label: 'Pattern (regex)',\n type: 'string',\n attribute: 'pattern',\n group: 'form',\n description: 'A regular expression the input value must match to pass validation.',\n },\n overrides,\n );\n}\n\n/** `minLength` — the minimum number of characters required. */\nexport function minLengthTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'minLength',\n label: 'Min Length',\n type: 'number',\n attribute: 'minlength',\n group: 'form',\n description: 'The minimum number of characters the user must enter.',\n },\n overrides,\n );\n}\n\n/** `maxLength` — the maximum number of characters allowed. */\nexport function maxLengthTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'maxLength',\n label: 'Max Length',\n type: 'number',\n attribute: 'maxlength',\n group: 'form',\n description: 'The maximum number of characters the user is allowed to enter.',\n },\n overrides,\n );\n}\n\n/** `prefixIcon` — an icon name displayed before the input content (e.g. Lucide icon name). */\nexport function prefixIconTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'prefixIcon',\n label: 'Prefix Icon',\n type: 'string',\n group: 'form',\n description: 'Lucide icon name displayed before the input value (e.g. \"mail\", \"search\").',\n },\n overrides,\n );\n}\n\n/** `suffixIcon` — an icon name displayed after the input content (e.g. Lucide icon name). */\nexport function suffixIconTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'suffixIcon',\n label: 'Suffix Icon',\n type: 'string',\n group: 'form',\n description: 'Lucide icon name displayed after the input value (e.g. \"eye\", \"check\").',\n },\n overrides,\n );\n}\n\n/** `helperText` — a short hint displayed below the input describing its expected value. */\nexport function helperTextTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'helperText',\n label: 'Helper Text',\n type: 'string',\n group: 'form',\n description: 'A short message displayed below the input to guide the user (e.g. \"Must be at least 8 characters\").',\n },\n overrides,\n );\n}\n\n/** `resize` — the CSS resize behavior of a textarea. */\nexport function resizeTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'resize',\n label: 'Resize',\n type: 'select',\n defaultValue: 'vertical',\n group: 'form',\n options: [\n { label: 'Vertical only', value: 'vertical' },\n { label: 'Horizontal only', value: 'horizontal' },\n { label: 'Both', value: 'both' },\n { label: 'None', value: 'none' },\n ],\n description: 'Controls whether and how the user can resize the textarea.',\n },\n overrides,\n );\n}\n\n/** `autoGrow` — whether the textarea automatically grows in height as the user types. */\nexport function autoGrowTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'autoGrow',\n label: 'Auto Grow',\n type: 'boolean',\n defaultValue: false,\n group: 'form',\n description: 'Automatically expand the textarea height to fit the content without scrolling.',\n },\n overrides,\n );\n}\n\n/** `maxCharCount` — the maximum character count with a visible counter shown below the textarea. */\nexport function maxCharCountTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'maxCharCount',\n label: 'Max Character Count',\n type: 'number',\n group: 'form',\n description: 'Maximum character limit displayed as a counter below the textarea (e.g. \"120 / 500\").',\n },\n overrides,\n );\n}\n\n/** `optionsList` — the list of options for a select dropdown, each with a label and value. */\nexport function optionsListTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'options',\n label: 'Options',\n type: 'string',\n group: 'form',\n description: 'The list of dropdown options, each with a label and value. Editable via the inspector trait panel.',\n },\n overrides,\n );\n}\n\n/** `labelText` — the visible label text displayed next to a boolean control. */\nexport function labelTextTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'label',\n label: 'Label Text',\n type: 'string',\n group: 'form',\n description: 'The visible text label displayed alongside the control.',\n },\n overrides,\n );\n}\n\n/** `indeterminate` — whether the checkbox renders in the indeterminate (mixed) visual state. */\nexport function indeterminateTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'indeterminate',\n label: 'Indeterminate',\n type: 'boolean',\n defaultValue: false,\n group: 'form',\n description: 'Renders the checkbox in a mixed/indeterminate visual state (neither checked nor unchecked).',\n },\n overrides,\n );\n}\n\n/** `switchSize` — the visual size of a switch control. */\nexport function switchSizeTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'switchSize',\n label: 'Size',\n type: 'select',\n defaultValue: 'md',\n group: 'form',\n options: [\n { label: 'Small', value: 'sm' },\n { label: 'Medium', value: 'md' },\n { label: 'Large', value: 'lg' },\n ],\n description: 'The visual size of the switch toggle.',\n },\n overrides,\n );\n}\n\n/** `orientation` — the layout direction for a group of controls (horizontal or vertical). */\nexport function orientationTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'orientation',\n label: 'Orientation',\n type: 'select',\n defaultValue: 'vertical',\n group: 'form',\n options: [\n { label: 'Vertical', value: 'vertical' },\n { label: 'Horizontal', value: 'horizontal' },\n ],\n description: 'The layout direction of the child controls (vertical stack or horizontal row).',\n },\n overrides,\n );\n}\n\n/** `defaultSelected` — the initially selected value in a radio group. */\nexport function defaultSelectedTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'defaultSelected',\n label: 'Default Selected',\n type: 'string',\n group: 'form',\n description: 'The value of the radio item that is selected by default.',\n },\n overrides,\n );\n}\n\n/** `accept` — the allowed file MIME types or extensions (e.g. \"image/*,.pdf\"). */\nexport function acceptTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'accept',\n label: 'Accepted File Types',\n type: 'string',\n attribute: 'accept',\n defaultValue: '*/*',\n group: 'form',\n description: 'Comma-separated list of MIME types or file extensions accepted (e.g. \"image/*,.pdf,.docx\").',\n },\n overrides,\n );\n}\n\n/** `maxFileSize` — the maximum permitted file size in megabytes (MB). */\nexport function maxFileSizeTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'maxFileSize',\n label: 'Max File Size (MB)',\n type: 'number',\n defaultValue: 10,\n group: 'form',\n description: 'The maximum allowable file size in megabytes (MB).',\n },\n overrides,\n );\n}\n\n/** `multiple` — whether the user may select multiple files simultaneously. */\nexport function multipleTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'multiple',\n label: 'Allow Multiple Files',\n type: 'boolean',\n attribute: 'multiple',\n defaultValue: false,\n group: 'form',\n description: 'Allow multiple files to be selected and uploaded at once.',\n },\n overrides,\n );\n}\n\n/** `showPreview` — whether to render a thumbnail or list preview for selected files. */\nexport function showPreviewTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'showPreview',\n label: 'Show Preview',\n type: 'boolean',\n defaultValue: true,\n group: 'form',\n description: 'Display an interactive preview (image thumbnail or file list with badges) for selected files.',\n },\n overrides,\n );\n}\n\n/** `loadingText` — alternative label displayed while form is submitting. */\nexport function loadingTextTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'loadingText',\n label: 'Loading Text',\n type: 'string',\n defaultValue: 'Submitting...',\n group: 'behavior',\n description: 'Text displayed on the button while the form submission is in progress.',\n },\n overrides,\n );\n}\n\n/** `showSpinner` — whether an animated loading spinner is displayed during submission. */\nexport function showSpinnerTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'showSpinner',\n label: 'Show Loading Spinner',\n type: 'boolean',\n defaultValue: true,\n group: 'behavior',\n description: 'Automatically show an animated loading spinner icon while form is submitting.',\n },\n overrides,\n );\n}\n\n/** `autoDisableOnSubmit` — whether the submit button is automatically disabled during submission. */\nexport function autoDisableOnSubmitTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition {\n return withOverrides(\n {\n name: 'autoDisableOnSubmit',\n label: 'Auto Disable on Submit',\n type: 'boolean',\n defaultValue: true,\n group: 'behavior',\n description: 'Automatically disable the button to prevent duplicate submissions while the form is submitting.',\n },\n overrides,\n );\n}\n\n"],"mappings":";;;;;;;;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WAAyE;AACxG,SAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,MACN,cAAc;AAAA,MACd,OAAO;AAAA,MACP,aAAa;AAAA,IACf;AAAA,IACA;AAAA,EACF;AACF;AAGO,SAAS,cAAc,WAAyE;AACrG,SAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,MACN,WAAW;AAAA,MACX,cAAc;AAAA,MACd,OAAO;AAAA,MACP,aAAa;AAAA,IACf;AAAA,IACA;AAAA,EACF;AACF;AAGO,SAAS,iBAAiB,WAAyE;AACxG,SAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,MACN,cAAc;AAAA,MACd,OAAO;AAAA,MACP,aAAa;AAAA,IACf;AAAA,IACA;AAAA,EACF;AACF;AAGO,SAAS,iBAAiB,WAAyE;AACxG,SAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,MACN,cAAc;AAAA,MACd,OAAO;AAAA,MACP,aAAa;AAAA,IACf;AAAA,IACA;AAAA,EACF;AACF;AAGO,SAAS,iBAAiB,WAAyE;AACxG,SAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,MACN,cAAc;AAAA,MACd,OAAO;AAAA,MACP,aAAa;AAAA,IACf;AAAA,IACA;AAAA,EACF;AACF;AAGO,SAAS,yBAAyB,WAAyE;AAChH,SAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,MACN,cAAc;AAAA,MACd,OAAO;AAAA,MACP,aAAa;AAAA,IACf;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/traits/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TRAIT_GROUP_LABELS,
|
|
3
|
+
TRAIT_GROUP_ORDER,
|
|
4
|
+
acceptTrait,
|
|
5
|
+
actionTrait,
|
|
6
|
+
altTrait,
|
|
7
|
+
ariaLabelTrait,
|
|
8
|
+
autoCompleteTrait,
|
|
9
|
+
autoDisableOnSubmitTrait,
|
|
10
|
+
autoGrowTrait,
|
|
11
|
+
autoplayTrait,
|
|
12
|
+
buttonTypeTrait,
|
|
13
|
+
citeTrait,
|
|
14
|
+
colSpanTrait,
|
|
15
|
+
collectTraitNames,
|
|
16
|
+
controlsTrait,
|
|
17
|
+
defaultCheckedTrait,
|
|
18
|
+
defaultSelectedTrait,
|
|
19
|
+
defaultValueTrait,
|
|
20
|
+
disabledTrait,
|
|
21
|
+
fieldNameTrait,
|
|
22
|
+
helperTextTrait,
|
|
23
|
+
hrefTrait,
|
|
24
|
+
idTrait,
|
|
25
|
+
indeterminateTrait,
|
|
26
|
+
inputTypeTrait,
|
|
27
|
+
labelTextTrait,
|
|
28
|
+
loadingTextTrait,
|
|
29
|
+
loadingTrait,
|
|
30
|
+
loopTrait,
|
|
31
|
+
maxCharCountTrait,
|
|
32
|
+
maxFileSizeTrait,
|
|
33
|
+
maxLengthTrait,
|
|
34
|
+
methodTrait,
|
|
35
|
+
minLengthTrait,
|
|
36
|
+
multipleTrait,
|
|
37
|
+
mutedTrait,
|
|
38
|
+
optionsListTrait,
|
|
39
|
+
orientationTrait,
|
|
40
|
+
patternTrait,
|
|
41
|
+
placeholderTrait,
|
|
42
|
+
posterTrait,
|
|
43
|
+
prefixIconTrait,
|
|
44
|
+
preventDefaultTrait,
|
|
45
|
+
readOnlyTrait,
|
|
46
|
+
relTrait,
|
|
47
|
+
requiredTrait,
|
|
48
|
+
resetOnSubmitTrait,
|
|
49
|
+
resizeTrait,
|
|
50
|
+
rowSpanTrait,
|
|
51
|
+
rowsTrait,
|
|
52
|
+
scrollToFirstErrorTrait,
|
|
53
|
+
showPreviewTrait,
|
|
54
|
+
showSpinnerTrait,
|
|
55
|
+
sortTraits,
|
|
56
|
+
srcTrait,
|
|
57
|
+
suffixIconTrait,
|
|
58
|
+
switchSizeTrait,
|
|
59
|
+
tagTrait,
|
|
60
|
+
targetTrait,
|
|
61
|
+
titleTrait,
|
|
62
|
+
valueTrait,
|
|
63
|
+
withOverrides
|
|
64
|
+
} from "../chunk-OK53DS7G.js";
|
|
65
|
+
export {
|
|
66
|
+
TRAIT_GROUP_LABELS,
|
|
67
|
+
TRAIT_GROUP_ORDER,
|
|
68
|
+
acceptTrait,
|
|
69
|
+
actionTrait,
|
|
70
|
+
altTrait,
|
|
71
|
+
ariaLabelTrait,
|
|
72
|
+
autoCompleteTrait,
|
|
73
|
+
autoDisableOnSubmitTrait,
|
|
74
|
+
autoGrowTrait,
|
|
75
|
+
autoplayTrait,
|
|
76
|
+
buttonTypeTrait,
|
|
77
|
+
citeTrait,
|
|
78
|
+
colSpanTrait,
|
|
79
|
+
collectTraitNames,
|
|
80
|
+
controlsTrait,
|
|
81
|
+
defaultCheckedTrait,
|
|
82
|
+
defaultSelectedTrait,
|
|
83
|
+
defaultValueTrait,
|
|
84
|
+
disabledTrait,
|
|
85
|
+
fieldNameTrait,
|
|
86
|
+
helperTextTrait,
|
|
87
|
+
hrefTrait,
|
|
88
|
+
idTrait,
|
|
89
|
+
indeterminateTrait,
|
|
90
|
+
inputTypeTrait,
|
|
91
|
+
labelTextTrait,
|
|
92
|
+
loadingTextTrait,
|
|
93
|
+
loadingTrait,
|
|
94
|
+
loopTrait,
|
|
95
|
+
maxCharCountTrait,
|
|
96
|
+
maxFileSizeTrait,
|
|
97
|
+
maxLengthTrait,
|
|
98
|
+
methodTrait,
|
|
99
|
+
minLengthTrait,
|
|
100
|
+
multipleTrait,
|
|
101
|
+
mutedTrait,
|
|
102
|
+
optionsListTrait,
|
|
103
|
+
orientationTrait,
|
|
104
|
+
patternTrait,
|
|
105
|
+
placeholderTrait,
|
|
106
|
+
posterTrait,
|
|
107
|
+
prefixIconTrait,
|
|
108
|
+
preventDefaultTrait,
|
|
109
|
+
readOnlyTrait,
|
|
110
|
+
relTrait,
|
|
111
|
+
requiredTrait,
|
|
112
|
+
resetOnSubmitTrait,
|
|
113
|
+
resizeTrait,
|
|
114
|
+
rowSpanTrait,
|
|
115
|
+
rowsTrait,
|
|
116
|
+
scrollToFirstErrorTrait,
|
|
117
|
+
showPreviewTrait,
|
|
118
|
+
showSpinnerTrait,
|
|
119
|
+
sortTraits,
|
|
120
|
+
srcTrait,
|
|
121
|
+
suffixIconTrait,
|
|
122
|
+
switchSizeTrait,
|
|
123
|
+
tagTrait,
|
|
124
|
+
targetTrait,
|
|
125
|
+
titleTrait,
|
|
126
|
+
valueTrait,
|
|
127
|
+
withOverrides
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentTraitDefinition } from './types';
|
|
2
|
+
/** `href` — the destination URL for links, buttons, and form actions. */
|
|
3
|
+
export declare function hrefTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
4
|
+
/** `target` — where the linked resource opens (`_self`, `_blank`, ...). */
|
|
5
|
+
export declare function targetTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
6
|
+
/** `rel` — relationship between the current document and the linked resource. */
|
|
7
|
+
export declare function relTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
8
|
+
//# sourceMappingURL=link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/traits/link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAiB,MAAM,SAAS,CAAC;AAElE,yEAAyE;AACzE,wBAAgB,SAAS,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAajG;AAED,2EAA2E;AAC3E,wBAAgB,WAAW,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAmBnG;AAED,iFAAiF;AACjF,wBAAgB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAahG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentTraitDefinition } from './types';
|
|
2
|
+
/** `src` — the source URL for media (image, video). */
|
|
3
|
+
export declare function srcTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
4
|
+
/** `alt` — alternative text for media, required for accessibility. */
|
|
5
|
+
export declare function altTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
6
|
+
/** `poster` — a preview image shown before a video plays. */
|
|
7
|
+
export declare function posterTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
8
|
+
/** `controls` — whether native media controls are shown. */
|
|
9
|
+
export declare function controlsTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
10
|
+
/** `autoplay` — whether media starts playing automatically. */
|
|
11
|
+
export declare function autoplayTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
12
|
+
/** `loop` — whether media restarts from the beginning when it ends. */
|
|
13
|
+
export declare function loopTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
14
|
+
/** `muted` — whether media starts with sound muted. */
|
|
15
|
+
export declare function mutedTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
16
|
+
/** `loading` — native lazy/eager loading hint for images (STORA-213). */
|
|
17
|
+
export declare function loadingTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
18
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../src/traits/media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAiB,MAAM,SAAS,CAAC;AAElE,uDAAuD;AACvD,wBAAgB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAahG;AAED,sEAAsE;AACtE,wBAAgB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAahG;AAED,6DAA6D;AAC7D,wBAAgB,WAAW,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAYnG;AAED,4DAA4D;AAC5D,wBAAgB,aAAa,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAarG;AAED,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAarG;AAED,uEAAuE;AACvE,wBAAgB,SAAS,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAajG;AAED,uDAAuD;AACvD,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAalG;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAiBpG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentTraitDefinition } from './types';
|
|
2
|
+
/** `cite` — the source URL for a blockquote. */
|
|
3
|
+
export declare function citeTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
4
|
+
/** `colSpan` — the number of columns a table cell spans. */
|
|
5
|
+
export declare function colSpanTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
6
|
+
/** `rowSpan` — the number of rows a table cell spans. */
|
|
7
|
+
export declare function rowSpanTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
8
|
+
/** `tag` — the semantic HTML tag a component renders as (e.g. `ul`/`ol`, `td`/`th`). */
|
|
9
|
+
export declare function tagTrait(overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
10
|
+
//# sourceMappingURL=structure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../src/traits/structure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAiB,MAAM,SAAS,CAAC;AAElE,gDAAgD;AAChD,wBAAgB,SAAS,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAYjG;AAED,4DAA4D;AAC5D,wBAAgB,YAAY,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAapG;AAED,yDAAyD;AACzD,wBAAgB,YAAY,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAapG;AAED,wFAAwF;AACxF,wBAAgB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAYhG"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trait metadata (STORA-210).
|
|
3
|
+
*
|
|
4
|
+
* A **trait** is a *functional* prop — it carries behavior, semantics, or
|
|
5
|
+
* identity rather than pure visual styling. Examples: `href`, `target`, `alt`,
|
|
6
|
+
* `title`, `placeholder`, `aria-label`, and a custom `id`.
|
|
7
|
+
*/
|
|
8
|
+
/** The primitive data types a trait value can take. */
|
|
9
|
+
export type TraitType = 'string' | 'number' | 'boolean' | 'select';
|
|
10
|
+
/** A constrained choice for `select`-typed traits. */
|
|
11
|
+
export interface TraitOption {
|
|
12
|
+
label: string;
|
|
13
|
+
value: unknown;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Logical grouping used to organize traits in an inspector UI. Kept as a
|
|
17
|
+
* closed union so hosts can render a stable, ordered set of trait sections.
|
|
18
|
+
*/
|
|
19
|
+
export type TraitGroup = 'link' | 'media' | 'form' | 'accessibility' | 'identity' | 'behavior' | 'semantic';
|
|
20
|
+
/** Ordered display order for trait groups in an inspector. */
|
|
21
|
+
export declare const TRAIT_GROUP_ORDER: TraitGroup[];
|
|
22
|
+
/** Human-readable labels for each trait group. */
|
|
23
|
+
export declare const TRAIT_GROUP_LABELS: Record<TraitGroup, string>;
|
|
24
|
+
/**
|
|
25
|
+
* Metadata describing a single functional trait on a component.
|
|
26
|
+
*
|
|
27
|
+
* `name` is the prop key on the node's `props` object; `attribute` is the HTML
|
|
28
|
+
* attribute it maps to at render time (when they differ, e.g. `name` → `id`).
|
|
29
|
+
*/
|
|
30
|
+
export interface ComponentTraitDefinition {
|
|
31
|
+
/** Prop key on the node's `props` object (e.g. `'href'`, `'alt'`). */
|
|
32
|
+
name: string;
|
|
33
|
+
/** Human-readable label shown in the inspector. */
|
|
34
|
+
label: string;
|
|
35
|
+
/** Data type of the trait value. */
|
|
36
|
+
type: TraitType;
|
|
37
|
+
/** Default value applied when the trait is not set. */
|
|
38
|
+
defaultValue?: unknown;
|
|
39
|
+
/** Constrained choices for `select`-typed traits. */
|
|
40
|
+
options?: TraitOption[];
|
|
41
|
+
/** Short description of the trait's purpose. */
|
|
42
|
+
description?: string;
|
|
43
|
+
/** The HTML attribute this trait maps to at render time (e.g. `'href'`). */
|
|
44
|
+
attribute?: string;
|
|
45
|
+
/** Whether the trait must be present for the component to be valid. */
|
|
46
|
+
required?: boolean;
|
|
47
|
+
/** Logical grouping for inspector organization. */
|
|
48
|
+
group?: TraitGroup;
|
|
49
|
+
}
|
|
50
|
+
/** Convenience alias for a list of trait definitions. */
|
|
51
|
+
export type ComponentTraits = ComponentTraitDefinition[];
|
|
52
|
+
/**
|
|
53
|
+
* Merge helper: applies partial overrides on top of a base trait definition.
|
|
54
|
+
* Used by the factories below so callers can tweak label/default/group without
|
|
55
|
+
* repeating the full shape.
|
|
56
|
+
*/
|
|
57
|
+
export declare function withOverrides(base: ComponentTraitDefinition, overrides?: Partial<ComponentTraitDefinition>): ComponentTraitDefinition;
|
|
58
|
+
/**
|
|
59
|
+
* Sort a component's traits into a stable, inspector-friendly order:
|
|
60
|
+
* identity first, then the remaining groups in `TRAIT_GROUP_ORDER`, with
|
|
61
|
+
* ungrouped traits last. Preserves relative order within each group.
|
|
62
|
+
*/
|
|
63
|
+
export declare function sortTraits(traits: ComponentTraits): ComponentTraits;
|
|
64
|
+
/**
|
|
65
|
+
* Collect the union of all trait names declared across a set of component
|
|
66
|
+
* definitions. Useful for building a global trait catalog / search index.
|
|
67
|
+
*/
|
|
68
|
+
export declare function collectTraitNames(traitsList: ComponentTraits[]): string[];
|
|
69
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/traits/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,uDAAuD;AACvD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEnE,sDAAsD;AACtD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,MAAM,UAAU,GAClB,MAAM,GAC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": "Component registry and base definitions for KUBUILD",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -11,6 +11,21 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.js",
|
|
13
13
|
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./definitions": {
|
|
16
|
+
"types": "./dist/definitions/index.d.ts",
|
|
17
|
+
"import": "./dist/definitions/index.js",
|
|
18
|
+
"require": "./dist/definitions/index.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./traits": {
|
|
21
|
+
"types": "./dist/traits/index.d.ts",
|
|
22
|
+
"import": "./dist/traits/index.js",
|
|
23
|
+
"require": "./dist/traits/index.cjs"
|
|
24
|
+
},
|
|
25
|
+
"./blocks": {
|
|
26
|
+
"types": "./dist/blocks/index.d.ts",
|
|
27
|
+
"import": "./dist/blocks/index.js",
|
|
28
|
+
"require": "./dist/blocks/index.cjs"
|
|
14
29
|
}
|
|
15
30
|
},
|
|
16
31
|
"files": [
|
|
@@ -22,7 +37,8 @@
|
|
|
22
37
|
},
|
|
23
38
|
"repository": {
|
|
24
39
|
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/kustora/kubuild.git"
|
|
40
|
+
"url": "git+https://github.com/kustora/kubuild.git",
|
|
41
|
+
"directory": "packages/components"
|
|
26
42
|
},
|
|
27
43
|
"keywords": [
|
|
28
44
|
"page-builder",
|
|
@@ -39,8 +55,8 @@
|
|
|
39
55
|
},
|
|
40
56
|
"homepage": "https://github.com/kustora/kubuild#readme",
|
|
41
57
|
"dependencies": {
|
|
42
|
-
"@kubuild/core": "0.
|
|
43
|
-
"@kubuild/schema": "0.
|
|
58
|
+
"@kubuild/core": "0.3.0",
|
|
59
|
+
"@kubuild/schema": "0.3.0"
|
|
44
60
|
},
|
|
45
61
|
"devDependencies": {
|
|
46
62
|
"tsup": "^8.3.6",
|
package/dist/blocks.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../src/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAoB,MAAM,iBAAiB,CAAC;AAEzD,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;IAC9E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,KAAK,IAAI,CAAC;CACpE;AAOD;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,eAAe,EA+uC3C,CAAC"}
|
package/dist/definitions.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ComponentDefinition, ComponentRegistry } from './registry';
|
|
2
|
-
export declare const pageDefinition: ComponentDefinition;
|
|
3
|
-
export declare const sectionDefinition: ComponentDefinition;
|
|
4
|
-
export declare const containerDefinition: ComponentDefinition;
|
|
5
|
-
export declare const columnsDefinition: ComponentDefinition;
|
|
6
|
-
export declare const headingDefinition: ComponentDefinition;
|
|
7
|
-
export declare const textDefinition: ComponentDefinition;
|
|
8
|
-
export declare const imageDefinition: ComponentDefinition;
|
|
9
|
-
export declare const buttonDefinition: ComponentDefinition;
|
|
10
|
-
export declare const collectionDefinition: ComponentDefinition;
|
|
11
|
-
export declare const listDefinition: ComponentDefinition;
|
|
12
|
-
export declare const listItemDefinition: ComponentDefinition;
|
|
13
|
-
export declare const paragraphDefinition: ComponentDefinition;
|
|
14
|
-
export declare const linkDefinition: ComponentDefinition;
|
|
15
|
-
export declare const blockquoteDefinition: ComponentDefinition;
|
|
16
|
-
export declare const badgeDefinition: ComponentDefinition;
|
|
17
|
-
export declare const codeBlockDefinition: ComponentDefinition;
|
|
18
|
-
export declare const videoDefinition: ComponentDefinition;
|
|
19
|
-
export declare const iconDefinition: ComponentDefinition;
|
|
20
|
-
export declare const htmlEmbedDefinition: ComponentDefinition;
|
|
21
|
-
export declare const tableDefinition: ComponentDefinition;
|
|
22
|
-
export declare const tableRowDefinition: ComponentDefinition;
|
|
23
|
-
export declare const tableCellDefinition: ComponentDefinition;
|
|
24
|
-
export declare const formDefinition: ComponentDefinition;
|
|
25
|
-
export declare const inputDefinition: ComponentDefinition;
|
|
26
|
-
export declare const textareaDefinition: ComponentDefinition;
|
|
27
|
-
export declare const selectDefinition: ComponentDefinition;
|
|
28
|
-
export declare const checkboxDefinition: ComponentDefinition;
|
|
29
|
-
export declare const switchDefinition: ComponentDefinition;
|
|
30
|
-
export declare const radioGroupDefinition: ComponentDefinition;
|
|
31
|
-
export declare const radioDefinition: ComponentDefinition;
|
|
32
|
-
export declare const radioItemDefinition: ComponentDefinition;
|
|
33
|
-
export declare const fileUploadDefinition: ComponentDefinition;
|
|
34
|
-
export declare const buttonSubmitDefinition: ComponentDefinition;
|
|
35
|
-
export declare const coreComponentDefinitions: ComponentDefinition[];
|
|
36
|
-
export declare function createDefaultComponentRegistry(): ComponentRegistry;
|
|
37
|
-
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../src/definitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAmGpE,eAAO,MAAM,cAAc,EAAE,mBAc5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,mBA8B/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,mBA0BjC,CAAC;AAEF,eAAO,MAAM,iB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