@kerfjs/ui 5.0.0-beta.4 → 5.0.0-beta.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +342 -108
- package/ai/application-ui-diagnostic-ids-v1.json +100 -0
- package/ai/application-ui-profile-sync.cjs +529 -0
- package/ai/application-ui-profile.d.mts +1 -0
- package/ai/application-ui-profile.d.ts +102 -0
- package/ai/application-ui-profile.defaults.json +41 -0
- package/ai/application-ui-profile.mjs +626 -0
- package/ai/application-ui-profile.schema.json +130 -0
- package/ai/catalog-authoring.json +25 -0
- package/ai/catalog-authoring.schema.json +61 -0
- package/ai/compile-time-contracts-v1.json +132 -0
- package/ai/compile-time-contracts-v1.schema.json +51 -0
- package/ai/component-catalog-extension-v2.d.ts +7 -0
- package/ai/component-catalog-extension-v2.schema.json +7 -0
- package/ai/component-catalog-extension.schema.json +79 -0
- package/ai/component-catalog-v2-overrides.json +496 -0
- package/ai/component-catalog-v2.d.ts +90 -0
- package/ai/component-catalog-v2.json +5678 -0
- package/ai/component-catalog-v2.schema.json +298 -0
- package/ai/component-catalog.json +2694 -417
- package/ai/component-catalog.schema.json +39 -0
- package/ai/public-api-signatures-v1.md +1591 -126
- package/ai/skill.md +140 -54
- package/ai/webawesome-jsx-signatures-v1.md +2 -1
- package/analyzer/cli.mjs +49 -0
- package/analyzer/index.d.mts +46 -0
- package/analyzer/index.mjs +1086 -0
- package/analyzer/report.schema.json +66 -0
- package/dist/app-tab.d.ts +15 -4
- package/dist/app-tab.js +3 -1
- package/dist/browser/app-tab.js +1 -0
- package/dist/browser/floating-toolbar.js +3 -0
- package/dist/browser/list-action-row.js +5 -0
- package/dist/browser/list-header.js +7 -0
- package/dist/browser/list-inset-control.js +3 -0
- package/dist/browser/list-inset-text.js +3 -0
- package/dist/browser/list-item.js +5 -0
- package/dist/browser/list.js +3 -0
- package/dist/browser/pane.js +3 -0
- package/dist/browser/row.js +3 -0
- package/dist/browser/segmented-control.js +1 -0
- package/dist/browser/select.js +1 -0
- package/dist/browser/skeleton.js +3 -0
- package/dist/browser/spacer.js +3 -0
- package/dist/browser/state-banner.js +1 -0
- package/dist/browser/sunken-panel.js +3 -0
- package/dist/browser/surface-scaffold.js +3 -0
- package/dist/browser/text.js +3 -0
- package/dist/browser/toolbar-text.js +1 -0
- package/dist/browser/value-table.js +1 -0
- package/dist/catalog-resources.d.ts +35 -0
- package/dist/catalog-resources.js +22 -0
- package/dist/catalog-resources.js.map +1 -0
- package/dist/catalog.d.ts +151 -0
- package/dist/catalog.js +396 -0
- package/dist/catalog.js.map +1 -0
- package/dist/chunk-2TYUFZUC.js +22 -0
- package/dist/chunk-2TYUFZUC.js.map +1 -0
- package/dist/chunk-6NDBE2OK.js +32 -0
- package/dist/chunk-6NDBE2OK.js.map +1 -0
- package/dist/chunk-6WTETUZ6.js +21 -0
- package/dist/chunk-6WTETUZ6.js.map +1 -0
- package/dist/chunk-AQFWBG23.js +83 -0
- package/dist/chunk-AQFWBG23.js.map +1 -0
- package/dist/chunk-B6JYRX3P.js +51 -0
- package/dist/chunk-B6JYRX3P.js.map +1 -0
- package/dist/chunk-C34NZOLJ.js +53 -0
- package/dist/chunk-C34NZOLJ.js.map +1 -0
- package/dist/chunk-CAB6NQ2T.js +102 -0
- package/dist/chunk-CAB6NQ2T.js.map +1 -0
- package/dist/chunk-CK6P5AUK.js +136 -0
- package/dist/chunk-CK6P5AUK.js.map +1 -0
- package/dist/chunk-DAO2VFTT.js +129 -0
- package/dist/chunk-DAO2VFTT.js.map +1 -0
- package/dist/chunk-DEYOGDE7.js +141 -0
- package/dist/chunk-DEYOGDE7.js.map +1 -0
- package/dist/chunk-DYBPI5O2.js +25 -0
- package/dist/chunk-DYBPI5O2.js.map +1 -0
- package/dist/{chunk-TRNBHPNW.js → chunk-E34TE2ZI.js} +12 -8
- package/dist/chunk-E34TE2ZI.js.map +1 -0
- package/dist/chunk-EYALJQQD.js +25 -0
- package/dist/chunk-EYALJQQD.js.map +1 -0
- package/dist/chunk-I45QO2IZ.js +88 -0
- package/dist/chunk-I45QO2IZ.js.map +1 -0
- package/dist/chunk-I4V3UDSA.js +79 -0
- package/dist/chunk-I4V3UDSA.js.map +1 -0
- package/dist/chunk-OGTJNHRG.js +42 -0
- package/dist/chunk-OGTJNHRG.js.map +1 -0
- package/dist/chunk-OL4TC3U2.js +156 -0
- package/dist/chunk-OL4TC3U2.js.map +1 -0
- package/dist/chunk-OMSRSL3B.js +120 -0
- package/dist/chunk-OMSRSL3B.js.map +1 -0
- package/dist/chunk-R3EBGEAW.js +46 -0
- package/dist/chunk-R3EBGEAW.js.map +1 -0
- package/dist/chunk-SOK5EUF7.js +25 -0
- package/dist/chunk-SOK5EUF7.js.map +1 -0
- package/dist/{chunk-7BR3DO2A.js → chunk-SRSJO5QE.js} +13 -4
- package/dist/chunk-SRSJO5QE.js.map +1 -0
- package/dist/chunk-T7DOWS6T.js +61 -0
- package/dist/chunk-T7DOWS6T.js.map +1 -0
- package/dist/chunk-TIGSG6BX.js +218 -0
- package/dist/chunk-TIGSG6BX.js.map +1 -0
- package/dist/chunk-UDHHKZWO.js +41 -0
- package/dist/chunk-UDHHKZWO.js.map +1 -0
- package/dist/{chunk-MQIZAD4A.js → chunk-UKKSMZYT.js} +76 -22
- package/dist/chunk-UKKSMZYT.js.map +1 -0
- package/dist/chunk-V6GQKOX2.js +39 -0
- package/dist/chunk-V6GQKOX2.js.map +1 -0
- package/dist/chunk-V6HCTCVD.js +46 -0
- package/dist/chunk-V6HCTCVD.js.map +1 -0
- package/dist/chunk-VDUJZF5G.js +515 -0
- package/dist/chunk-VDUJZF5G.js.map +1 -0
- package/dist/chunk-VXFGMDA7.js +31 -0
- package/dist/chunk-VXFGMDA7.js.map +1 -0
- package/dist/chunk-WN52USHV.js +115 -0
- package/dist/chunk-WN52USHV.js.map +1 -0
- package/dist/chunk-WSXUPSID.js +43 -0
- package/dist/chunk-WSXUPSID.js.map +1 -0
- package/dist/chunk-X5GRDQ7V.js +50 -0
- package/dist/chunk-X5GRDQ7V.js.map +1 -0
- package/dist/{chunk-56RJXPHG.js → chunk-Y6LYKFXY.js} +1 -1
- package/dist/{chunk-56RJXPHG.js.map → chunk-Y6LYKFXY.js.map} +1 -1
- package/dist/chunk-ZASJJMGV.js +17 -0
- package/dist/chunk-ZASJJMGV.js.map +1 -0
- package/dist/chunk-ZPWZIVI6.js +47 -0
- package/dist/chunk-ZPWZIVI6.js.map +1 -0
- package/dist/collapsible-panel.d.ts +77 -0
- package/dist/collapsible-panel.js +84 -0
- package/dist/collapsible-panel.js.map +1 -0
- package/dist/css-values.d.ts +75 -0
- package/dist/css-values.js +3 -0
- package/dist/css-values.js.map +1 -0
- package/dist/device-class.d.ts +62 -0
- package/dist/device-class.js +103 -0
- package/dist/device-class.js.map +1 -0
- package/dist/disclosure-arrow.js +1 -1
- package/dist/divider-sides-BzB6rphT.d.ts +6 -0
- package/dist/empty-state.d.ts +3 -2
- package/dist/empty-state.js +1 -1
- package/dist/flex-alignment-CF8NLj7i.d.ts +4 -0
- package/dist/floating-toolbar.d.ts +29 -0
- package/dist/floating-toolbar.js +3 -0
- package/dist/floating-toolbar.js.map +1 -0
- package/dist/index.d.ts +28 -14
- package/dist/index.js +34 -23
- package/dist/{menu-action-row.d.ts → list-action-row.d.ts} +19 -8
- package/dist/list-action-row.js +7 -0
- package/dist/list-action-row.js.map +1 -0
- package/dist/list-header.d.ts +80 -0
- package/dist/list-header.js +9 -0
- package/dist/list-header.js.map +1 -0
- package/dist/list-inset-control.d.ts +20 -0
- package/dist/list-inset-control.js +3 -0
- package/dist/list-inset-control.js.map +1 -0
- package/dist/list-inset-text.d.ts +29 -0
- package/dist/list-inset-text.js +3 -0
- package/dist/list-inset-text.js.map +1 -0
- package/dist/list-item.d.ts +45 -0
- package/dist/list-item.js +7 -0
- package/dist/list-item.js.map +1 -0
- package/dist/list.d.ts +30 -0
- package/dist/list.js +5 -0
- package/dist/list.js.map +1 -0
- package/dist/loading-spinner.js +1 -1
- package/dist/nav-stack.d.ts +41 -0
- package/dist/nav-stack.js +6 -0
- package/dist/nav-stack.js.map +1 -0
- package/dist/pane.d.ts +50 -0
- package/dist/pane.js +4 -0
- package/dist/pane.js.map +1 -0
- package/dist/resizable-region.d.ts +21 -3
- package/dist/resizable-region.js +1 -1
- package/dist/row.d.ts +28 -0
- package/dist/row.js +5 -0
- package/dist/row.js.map +1 -0
- package/dist/segmented-control.d.ts +11 -8
- package/dist/segmented-control.js +3 -1
- package/dist/select-register.d.ts +5 -1
- package/dist/select-register.js +129 -1
- package/dist/select-register.js.map +1 -1
- package/dist/select.d.ts +34 -8
- package/dist/select.js +3 -1
- package/dist/semantic-content-BbzjvSu9.d.ts +14 -0
- package/dist/skeleton.d.ts +25 -0
- package/dist/skeleton.js +4 -0
- package/dist/skeleton.js.map +1 -0
- package/dist/spacer.d.ts +16 -0
- package/dist/spacer.js +4 -0
- package/dist/spacer.js.map +1 -0
- package/dist/split-view.d.ts +43 -0
- package/dist/split-view.js +82 -0
- package/dist/split-view.js.map +1 -0
- package/dist/state-banner.d.ts +11 -5
- package/dist/state-banner.js +3 -1
- package/dist/styles/app-tab.css +26 -0
- package/dist/styles/catalog.css +582 -0
- package/dist/styles/collapsible-panel.css +212 -0
- package/dist/styles/floating-toolbar.css +38 -0
- package/dist/styles/foundation.css +80 -0
- package/dist/styles/layout.css +2 -20
- package/dist/styles/list-action-row.css +224 -0
- package/dist/styles/list-header.css +224 -0
- package/dist/styles/list-inset-control.css +23 -0
- package/dist/styles/list-inset-text.css +30 -0
- package/dist/styles/list-item.css +171 -0
- package/dist/styles/list.css +118 -0
- package/dist/styles/nav-stack.css +141 -0
- package/dist/styles/pane.css +62 -0
- package/dist/styles/resizable-region.css +158 -0
- package/dist/styles/row.css +92 -0
- package/dist/styles/segmented-control.css +10 -7
- package/dist/styles/select.css +115 -2
- package/dist/styles/skeleton.css +31 -0
- package/dist/styles/spacer.css +11 -0
- package/dist/styles/split-view.css +35 -0
- package/dist/styles/state-banner.css +49 -10
- package/dist/styles/styles.css +10 -5
- package/dist/styles/sunken-panel.css +22 -0
- package/dist/styles/surface-scaffold.css +51 -0
- package/dist/styles/tab-bar.css +24 -0
- package/dist/styles/tab-scaffold.css +85 -0
- package/dist/styles/text.css +6 -0
- package/dist/styles/token-search-field.css +14 -2
- package/dist/styles/toolbar-control-group.css +235 -8
- package/dist/styles/toolbar-text.css +65 -2
- package/dist/styles/toolbar.css +47 -2
- package/dist/styles/webawesome.css +171 -0
- package/dist/styles/workbench.css +187 -0
- package/dist/sunken-panel.d.ts +20 -0
- package/dist/sunken-panel.js +3 -0
- package/dist/sunken-panel.js.map +1 -0
- package/dist/surface-scaffold.d.ts +26 -0
- package/dist/surface-scaffold.js +3 -0
- package/dist/surface-scaffold.js.map +1 -0
- package/dist/tab-bar.d.ts +24 -6
- package/dist/tab-bar.js +1 -1
- package/dist/tab-scaffold.d.ts +31 -0
- package/dist/tab-scaffold.js +51 -0
- package/dist/tab-scaffold.js.map +1 -0
- package/dist/text.d.ts +20 -0
- package/dist/text.js +3 -0
- package/dist/text.js.map +1 -0
- package/dist/token-search-field.d.ts +30 -13
- package/dist/token-search-field.js +1 -1
- package/dist/toolbar-control-group.d.ts +33 -7
- package/dist/toolbar-control-group.js +1 -1
- package/dist/toolbar-text.d.ts +31 -4
- package/dist/toolbar-text.js +3 -1
- package/dist/toolbar.d.ts +10 -7
- package/dist/toolbar.js +1 -1
- package/dist/value-table.d.ts +7 -3
- package/dist/value-table.js +3 -1
- package/dist/webawesome.d.ts +1 -0
- package/dist/wire-catalog.d.ts +57 -0
- package/dist/wire-catalog.js +302 -0
- package/dist/wire-catalog.js.map +1 -0
- package/dist/wire-nav-stack.d.ts +18 -0
- package/dist/wire-nav-stack.js +228 -0
- package/dist/wire-nav-stack.js.map +1 -0
- package/dist/wire-resizable-regions.d.ts +1 -1
- package/dist/wire-resizable-regions.js +1 -1
- package/dist/wire-sidebar.d.ts +48 -0
- package/dist/wire-sidebar.js +147 -0
- package/dist/wire-sidebar.js.map +1 -0
- package/dist/wire-tab-bars.d.ts +19 -2
- package/dist/wire-tab-bars.js +1 -1
- package/dist/wire-tab-scaffold.d.ts +11 -0
- package/dist/wire-tab-scaffold.js +21 -0
- package/dist/wire-tab-scaffold.js.map +1 -0
- package/dist/wire-token-search-fields.d.ts +104 -4
- package/dist/wire-token-search-fields.js +1 -1
- package/dist/workbench.d.ts +44 -0
- package/dist/workbench.js +106 -0
- package/dist/workbench.js.map +1 -0
- package/docs/accessibility.md +155 -20
- package/docs/app-layouts.md +61 -0
- package/docs/catalog.md +364 -0
- package/docs/collapsible-panel.md +142 -0
- package/docs/component-contract.md +258 -28
- package/docs/component-integration.md +63 -0
- package/docs/component-selection.md +219 -57
- package/docs/design/templates/empty-state/filtered-dark.svg +1 -0
- package/docs/design/templates/empty-state/filtered.svg +1 -0
- package/docs/design/templates/empty-state/with-action-dark.svg +1 -0
- package/docs/design/templates/empty-state/with-action.svg +1 -0
- package/docs/design/templates/empty-state-dark.svg +1 -0
- package/docs/design/templates/empty-state.svg +1 -0
- package/docs/design/templates/list/compact-dark.svg +1 -0
- package/docs/design/templates/list/compact.svg +1 -0
- package/docs/design/templates/list/stack-dark.svg +1 -0
- package/docs/design/templates/list/stack.svg +1 -0
- package/docs/design/templates/list-action-row/default-dark.svg +1 -0
- package/docs/design/templates/list-action-row/default.svg +1 -0
- package/docs/design/templates/list-action-row/selected-dark.svg +1 -0
- package/docs/design/templates/list-action-row/selected.svg +1 -0
- package/docs/design/templates/list-action-row-dark.svg +1 -0
- package/docs/design/templates/list-action-row.svg +1 -0
- package/docs/design/templates/list-dark.svg +1 -0
- package/docs/design/templates/list-header/action-dark.svg +1 -0
- package/docs/design/templates/list-header/action.svg +1 -0
- package/docs/design/templates/list-header/count-dark.svg +1 -0
- package/docs/design/templates/list-header/count.svg +1 -0
- package/docs/design/templates/list-header/inline-action-dark.svg +1 -0
- package/docs/design/templates/list-header/inline-action.svg +1 -0
- package/docs/design/templates/list-header/toggle-collapsed-dark.svg +1 -0
- package/docs/design/templates/list-header/toggle-collapsed.svg +1 -0
- package/docs/design/templates/list-header/toggle-expanded-dark.svg +1 -0
- package/docs/design/templates/list-header/toggle-expanded.svg +1 -0
- package/docs/design/templates/list-header-dark.svg +1 -0
- package/docs/design/templates/list-header.svg +1 -0
- package/docs/design/templates/list-item/default-dark.svg +1 -0
- package/docs/design/templates/list-item/default.svg +1 -0
- package/docs/design/templates/list-item/multiline-dark.svg +1 -0
- package/docs/design/templates/list-item/multiline.svg +1 -0
- package/docs/design/templates/list-item/selected-dark.svg +1 -0
- package/docs/design/templates/list-item/selected.svg +1 -0
- package/docs/design/templates/list-item/trailing-dark.svg +1 -0
- package/docs/design/templates/list-item/trailing.svg +1 -0
- package/docs/design/templates/list-item-dark.svg +1 -0
- package/docs/design/templates/list-item.svg +1 -0
- package/docs/design/templates/list.svg +1 -0
- package/docs/design/templates/segmented-control/equal-dark.svg +1 -0
- package/docs/design/templates/segmented-control/equal.svg +1 -0
- package/docs/design/templates/segmented-control/pill-small-dark.svg +1 -0
- package/docs/design/templates/segmented-control/pill-small.svg +1 -0
- package/docs/design/templates/segmented-control-dark.svg +1 -0
- package/docs/design/templates/segmented-control.svg +1 -0
- package/docs/design/templates/skeleton/avatar-dark.svg +1 -0
- package/docs/design/templates/skeleton/avatar.svg +1 -0
- package/docs/design/templates/skeleton/block-dark.svg +1 -0
- package/docs/design/templates/skeleton/block.svg +1 -0
- package/docs/design/templates/skeleton/lines-dark.svg +1 -0
- package/docs/design/templates/skeleton/lines.svg +1 -0
- package/docs/design/templates/skeleton-dark.svg +1 -0
- package/docs/design/templates/skeleton.svg +1 -0
- package/docs/design/templates/state-banner/danger-dark.svg +1 -0
- package/docs/design/templates/state-banner/danger.svg +1 -0
- package/docs/design/templates/state-banner/info-badge-dark.svg +1 -0
- package/docs/design/templates/state-banner/info-badge.svg +1 -0
- package/docs/design/templates/state-banner/info-dark.svg +1 -0
- package/docs/design/templates/state-banner/info.svg +1 -0
- package/docs/design/templates/state-banner/success-dark.svg +1 -0
- package/docs/design/templates/state-banner/success.svg +1 -0
- package/docs/design/templates/state-banner/warning-dark.svg +1 -0
- package/docs/design/templates/state-banner/warning.svg +1 -0
- package/docs/design/templates/state-banner-dark.svg +1 -0
- package/docs/design/templates/state-banner.svg +1 -0
- package/docs/design/templates/tab-bar/workspace-tabs-dark.svg +1 -0
- package/docs/design/templates/tab-bar/workspace-tabs.svg +1 -0
- package/docs/design/templates/tab-bar-dark.svg +1 -0
- package/docs/design/templates/tab-bar.svg +1 -0
- package/docs/design/templates/token-search-field/empty-dark.svg +1 -0
- package/docs/design/templates/token-search-field/empty.svg +1 -0
- package/docs/design/templates/token-search-field/tokens-dark.svg +1 -0
- package/docs/design/templates/token-search-field/tokens.svg +1 -0
- package/docs/design/templates/token-search-field-dark.svg +1 -0
- package/docs/design/templates/token-search-field.svg +1 -0
- package/docs/design/templates/toolbar/title-and-actions-dark.svg +1 -0
- package/docs/design/templates/toolbar/title-and-actions.svg +1 -0
- package/docs/design/templates/toolbar-control-group/borderless-single-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/borderless-single.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-buttons-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-buttons.svg +1 -0
- package/docs/design/templates/toolbar-control-group/push-buttons-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/push-buttons.svg +1 -0
- package/docs/design/templates/toolbar-control-group/with-text-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/with-text.svg +1 -0
- package/docs/design/templates/toolbar-control-group-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group.svg +1 -0
- package/docs/design/templates/toolbar-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/default-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/default.svg +1 -0
- package/docs/design/templates/toolbar-text/large-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/large.svg +1 -0
- package/docs/design/templates/toolbar-text/small-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/small.svg +1 -0
- package/docs/design/templates/toolbar-text-dark.svg +1 -0
- package/docs/design/templates/toolbar-text.svg +1 -0
- package/docs/design/templates/toolbar.svg +1 -0
- package/docs/design/templates/value-table/details-dark.svg +1 -0
- package/docs/design/templates/value-table/details.svg +1 -0
- package/docs/design/templates/value-table-dark.svg +1 -0
- package/docs/design/templates/value-table.svg +1 -0
- package/docs/design/templates.md +128 -0
- package/docs/design-philosophy.md +33 -11
- package/docs/device-class.md +54 -0
- package/docs/examples/application-ui-profile.json +60 -0
- package/docs/examples/command-palette-adapter.tsx +68 -17
- package/docs/examples/component-catalog-extension-v2.json +80 -0
- package/docs/examples/component-catalog-extension.json +45 -0
- package/docs/layout.md +169 -38
- package/docs/nav-stack.md +77 -0
- package/docs/recipes.md +64 -16
- package/docs/split-view.md +55 -0
- package/docs/sunken-panel.md +53 -0
- package/docs/surface-scaffold.md +25 -0
- package/docs/tab-scaffold.md +52 -0
- package/docs/type-contracts.md +127 -0
- package/docs/ui-analyzer.md +118 -0
- package/docs/ui-doctor.md +91 -0
- package/docs/ui-evaluator.md +122 -0
- package/docs/ux-demo.md +29 -10
- package/docs/webawesome-theme.md +82 -8
- package/docs/workbench.md +123 -0
- package/doctor/cli.mjs +115 -0
- package/doctor/config.schema.json +68 -0
- package/doctor/eslint-diagnostics.d.mts +24 -0
- package/doctor/eslint-diagnostics.mjs +24 -0
- package/doctor/index.d.mts +116 -0
- package/doctor/index.mjs +1272 -0
- package/doctor/report.schema.json +118 -0
- package/evaluator/cli.mjs +89 -0
- package/evaluator/index.d.mts +90 -0
- package/evaluator/index.mjs +1138 -0
- package/evaluator/report.schema.json +152 -0
- package/llms.txt +260 -32
- package/package.json +205 -38
- package/traversal-exclusions.mjs +27 -0
- package/ux-demo/recipes/app-shell.tsx +223 -13
- package/ux-demo/recipes/collapsible-sidebar.tsx +230 -0
- package/ux-demo/recipes/compact-toolbar.tsx +116 -12
- package/ux-demo/recipes/composer-form.tsx +120 -19
- package/ux-demo/recipes/list-detail-dialog.tsx +205 -0
- package/ux-demo/recipes/list-workspace-states.tsx +176 -9
- package/ux-demo/recipes/loaders.ts +13 -4
- package/ux-demo/recipes/loading-inspector.tsx +191 -0
- package/ux-demo/recipes/mount-recipe.ts +31 -5
- package/ux-demo/recipes/navigation-sidebar.tsx +123 -11
- package/ux-demo/recipes/navigation-stack.tsx +121 -0
- package/ux-demo/recipes/recipes.css +125 -16
- package/ux-demo/recipes/types.ts +9 -1
- package/ux-demo/recipes/workspace-header.tsx +72 -3
- package/dist/browser/dialog-header.js +0 -5
- package/dist/browser/menu-action-row.js +0 -3
- package/dist/browser/menu-header.js +0 -5
- package/dist/browser/menu-item.js +0 -3
- package/dist/browser/page-header.js +0 -3
- package/dist/chunk-2PES33HS.js +0 -13
- package/dist/chunk-2PES33HS.js.map +0 -1
- package/dist/chunk-55DATV3A.js +0 -10
- package/dist/chunk-55DATV3A.js.map +0 -1
- package/dist/chunk-7BR3DO2A.js.map +0 -1
- package/dist/chunk-7LDCTU7D.js +0 -134
- package/dist/chunk-7LDCTU7D.js.map +0 -1
- package/dist/chunk-AQNKJRFH.js +0 -79
- package/dist/chunk-AQNKJRFH.js.map +0 -1
- package/dist/chunk-CTQKI2XL.js +0 -28
- package/dist/chunk-CTQKI2XL.js.map +0 -1
- package/dist/chunk-DAFFDO33.js +0 -14
- package/dist/chunk-DAFFDO33.js.map +0 -1
- package/dist/chunk-EGHL5S4P.js +0 -33
- package/dist/chunk-EGHL5S4P.js.map +0 -1
- package/dist/chunk-GY5WH7TO.js +0 -10
- package/dist/chunk-GY5WH7TO.js.map +0 -1
- package/dist/chunk-H5AGGVU5.js +0 -75
- package/dist/chunk-H5AGGVU5.js.map +0 -1
- package/dist/chunk-K3G72I6D.js +0 -24
- package/dist/chunk-K3G72I6D.js.map +0 -1
- package/dist/chunk-M5JRI6MN.js +0 -27
- package/dist/chunk-M5JRI6MN.js.map +0 -1
- package/dist/chunk-MBR3TYNL.js +0 -14
- package/dist/chunk-MBR3TYNL.js.map +0 -1
- package/dist/chunk-MFKMHK5W.js +0 -10
- package/dist/chunk-MFKMHK5W.js.map +0 -1
- package/dist/chunk-MQIZAD4A.js.map +0 -1
- package/dist/chunk-NPPD2A6O.js +0 -40
- package/dist/chunk-NPPD2A6O.js.map +0 -1
- package/dist/chunk-R6JHHBKQ.js +0 -19
- package/dist/chunk-R6JHHBKQ.js.map +0 -1
- package/dist/chunk-S3TPM2LP.js +0 -23
- package/dist/chunk-S3TPM2LP.js.map +0 -1
- package/dist/chunk-TRNBHPNW.js.map +0 -1
- package/dist/chunk-VHW5YNIB.js +0 -17
- package/dist/chunk-VHW5YNIB.js.map +0 -1
- package/dist/chunk-WVPYVDXY.js +0 -15
- package/dist/chunk-WVPYVDXY.js.map +0 -1
- package/dist/chunk-XZXRLY5Q.js +0 -33
- package/dist/chunk-XZXRLY5Q.js.map +0 -1
- package/dist/dialog-header.d.ts +0 -15
- package/dist/dialog-header.js +0 -5
- package/dist/dialog-header.js.map +0 -1
- package/dist/menu-action-row.js +0 -4
- package/dist/menu-action-row.js.map +0 -1
- package/dist/menu-header.d.ts +0 -41
- package/dist/menu-header.js +0 -6
- package/dist/menu-header.js.map +0 -1
- package/dist/menu-item.d.ts +0 -31
- package/dist/menu-item.js +0 -4
- package/dist/menu-item.js.map +0 -1
- package/dist/page-header.d.ts +0 -9
- package/dist/page-header.js +0 -3
- package/dist/page-header.js.map +0 -1
- package/dist/styles/dialog-header.css +0 -87
- package/dist/styles/menu-action-row.css +0 -160
- package/dist/styles/menu-header.css +0 -143
- package/dist/styles/menu-item.css +0 -123
- package/dist/styles/page-header.css +0 -33
- package/ux-demo/recipes/master-detail-dialog.tsx +0 -45
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/brianwestphal/kerf/main/ui/ai/application-ui-profile.schema.json",
|
|
4
|
+
"title": "Kerf application UI profile",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["schemaVersion", "scope"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": { "type": "string" },
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"scope": { "enum": ["package", "workspace", "directory"] },
|
|
11
|
+
"catalogs": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": { "$ref": "#/$defs/catalog" },
|
|
14
|
+
"uniqueItems": true
|
|
15
|
+
},
|
|
16
|
+
"preferences": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"propertyNames": { "pattern": "^[a-z][a-z0-9-]*$" },
|
|
19
|
+
"additionalProperties": { "$ref": "#/$defs/preference" }
|
|
20
|
+
},
|
|
21
|
+
"theme": { "$ref": "#/$defs/theme" },
|
|
22
|
+
"tokens": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"propertyNames": { "pattern": "^--kui-[a-z0-9-]+$" },
|
|
25
|
+
"additionalProperties": { "type": "string", "minLength": 1 }
|
|
26
|
+
},
|
|
27
|
+
"layout": { "$ref": "#/$defs/layout" },
|
|
28
|
+
"exceptions": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": { "$ref": "#/$defs/exception" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"$defs": {
|
|
35
|
+
"stringList": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": { "type": "string", "minLength": 1 },
|
|
38
|
+
"uniqueItems": true
|
|
39
|
+
},
|
|
40
|
+
"catalogLocation": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"required": ["path", "schemaVersion"],
|
|
43
|
+
"properties": {
|
|
44
|
+
"path": { "type": "string", "minLength": 1 },
|
|
45
|
+
"schemaVersion": { "type": "integer", "minimum": 1 }
|
|
46
|
+
},
|
|
47
|
+
"additionalProperties": false
|
|
48
|
+
},
|
|
49
|
+
"catalog": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"required": ["package", "composition"],
|
|
52
|
+
"properties": {
|
|
53
|
+
"package": { "type": "string", "minLength": 1 },
|
|
54
|
+
"selection": { "$ref": "#/$defs/catalogLocation" },
|
|
55
|
+
"composition": { "$ref": "#/$defs/catalogLocation" }
|
|
56
|
+
},
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"allOf": [
|
|
59
|
+
{
|
|
60
|
+
"if": {
|
|
61
|
+
"required": ["package"],
|
|
62
|
+
"properties": { "package": { "const": "@kerfjs/ui" } }
|
|
63
|
+
},
|
|
64
|
+
"then": { "required": ["selection"] }
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"preference": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"required": ["preferred"],
|
|
71
|
+
"properties": {
|
|
72
|
+
"preferred": { "type": "string", "pattern": "^.+:.+$" },
|
|
73
|
+
"avoid": { "$ref": "#/$defs/stringList" },
|
|
74
|
+
"rationale": { "type": "string", "minLength": 1 }
|
|
75
|
+
},
|
|
76
|
+
"additionalProperties": false
|
|
77
|
+
},
|
|
78
|
+
"theme": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"properties": {
|
|
81
|
+
"colorScheme": { "enum": ["light", "dark", "invert", "system"] },
|
|
82
|
+
"allowedColorSchemes": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"items": { "enum": ["light", "dark", "invert", "system"] },
|
|
85
|
+
"minItems": 1,
|
|
86
|
+
"uniqueItems": true
|
|
87
|
+
},
|
|
88
|
+
"density": { "enum": ["standard", "compact"] },
|
|
89
|
+
"allowedDensities": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": { "enum": ["standard", "compact"] },
|
|
92
|
+
"minItems": 1,
|
|
93
|
+
"uniqueItems": true
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"additionalProperties": false
|
|
97
|
+
},
|
|
98
|
+
"layout": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"shell": { "type": "string", "pattern": "^.+:.+$" },
|
|
102
|
+
"pane": { "type": "string", "pattern": "^.+:.+$" },
|
|
103
|
+
"responsiveStrategy": {
|
|
104
|
+
"enum": ["device-class", "container", "application"]
|
|
105
|
+
},
|
|
106
|
+
"compactNavigation": {
|
|
107
|
+
"enum": ["nav-stack", "tab-scaffold", "application"]
|
|
108
|
+
},
|
|
109
|
+
"scrollOwnership": { "enum": ["one-per-pane", "application"] },
|
|
110
|
+
"spacingScale": { "enum": ["kerf-five-step", "application"] }
|
|
111
|
+
},
|
|
112
|
+
"additionalProperties": false
|
|
113
|
+
},
|
|
114
|
+
"exception": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"required": ["id", "rules", "target", "rationale"],
|
|
117
|
+
"properties": {
|
|
118
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
|
|
119
|
+
"rules": { "$ref": "#/$defs/stringList" },
|
|
120
|
+
"target": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"minLength": 1,
|
|
123
|
+
"pattern": "^(?!/)(?!.*(^|/)\\.\\.(/|$))(?!.*[?*]).+"
|
|
124
|
+
},
|
|
125
|
+
"rationale": { "type": "string", "minLength": 12 }
|
|
126
|
+
},
|
|
127
|
+
"additionalProperties": false
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./catalog-authoring.schema.json",
|
|
3
|
+
"schemaVersion": 1,
|
|
4
|
+
"package": "@kerfjs/ui",
|
|
5
|
+
"scope": "catalog-demo-authoring",
|
|
6
|
+
"authoritativeGuide": "docs/catalog.md#catalog-demo-authoring-contract",
|
|
7
|
+
"apiSignatures": "ai/public-api-signatures-v1.md#kerfjsuicatalog",
|
|
8
|
+
"imports": {
|
|
9
|
+
"layout": "@kerfjs/ui/catalog",
|
|
10
|
+
"wiring": "@kerfjs/ui/wire-catalog"
|
|
11
|
+
},
|
|
12
|
+
"helpers": [
|
|
13
|
+
"Catalog",
|
|
14
|
+
"CatalogExample",
|
|
15
|
+
"CatalogExampleStack",
|
|
16
|
+
"wireCatalog",
|
|
17
|
+
"wireCatalogGeometryOverlay",
|
|
18
|
+
"revealCatalogEntry"
|
|
19
|
+
],
|
|
20
|
+
"metadata": {
|
|
21
|
+
"slot": "rootAttributes",
|
|
22
|
+
"demo": "data-demo",
|
|
23
|
+
"geometryOverlaySkip": "data-catalog-geometry-overlay-skip"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/brianwestphal/kerf/main/ui/ai/catalog-authoring.schema.json",
|
|
4
|
+
"title": "Kerf UI Catalog authoring discovery",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"package",
|
|
9
|
+
"scope",
|
|
10
|
+
"authoritativeGuide",
|
|
11
|
+
"apiSignatures",
|
|
12
|
+
"imports",
|
|
13
|
+
"helpers",
|
|
14
|
+
"metadata"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"$schema": { "type": "string" },
|
|
18
|
+
"schemaVersion": { "const": 1 },
|
|
19
|
+
"package": { "const": "@kerfjs/ui" },
|
|
20
|
+
"scope": { "const": "catalog-demo-authoring" },
|
|
21
|
+
"authoritativeGuide": { "type": "string", "minLength": 1 },
|
|
22
|
+
"apiSignatures": { "type": "string", "minLength": 1 },
|
|
23
|
+
"imports": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"required": ["layout", "wiring"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"layout": { "const": "@kerfjs/ui/catalog" },
|
|
28
|
+
"wiring": { "const": "@kerfjs/ui/wire-catalog" }
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
},
|
|
32
|
+
"helpers": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"enum": [
|
|
36
|
+
"Catalog",
|
|
37
|
+
"CatalogExample",
|
|
38
|
+
"CatalogExampleStack",
|
|
39
|
+
"wireCatalog",
|
|
40
|
+
"wireCatalogGeometryOverlay",
|
|
41
|
+
"revealCatalogEntry"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"minItems": 6,
|
|
45
|
+
"uniqueItems": true
|
|
46
|
+
},
|
|
47
|
+
"metadata": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"required": ["slot", "demo", "geometryOverlaySkip"],
|
|
50
|
+
"properties": {
|
|
51
|
+
"slot": { "const": "rootAttributes" },
|
|
52
|
+
"demo": { "const": "data-demo" },
|
|
53
|
+
"geometryOverlaySkip": {
|
|
54
|
+
"const": "data-catalog-geometry-overlay-skip"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"additionalProperties": false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./compile-time-contracts-v1.schema.json",
|
|
3
|
+
"schemaVersion": 1,
|
|
4
|
+
"package": "@kerfjs/ui",
|
|
5
|
+
"fixture": "tests/consumer-types/contracts/consumer.ts",
|
|
6
|
+
"contracts": [
|
|
7
|
+
{
|
|
8
|
+
"id": "KUI-T001",
|
|
9
|
+
"catalogKey": "@kerfjs/ui:list-header",
|
|
10
|
+
"publicImport": "@kerfjs/ui/list-header",
|
|
11
|
+
"symbols": ["ListHeaderProps"],
|
|
12
|
+
"kind": "discriminated-union",
|
|
13
|
+
"summary": "ListHeader passive, trailing-action, and disclosure modes require only the inputs their rendered behavior uses."
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "KUI-T002",
|
|
17
|
+
"catalogKey": "@kerfjs/ui:select",
|
|
18
|
+
"publicImport": "@kerfjs/ui/select",
|
|
19
|
+
"symbols": ["SelectProps"],
|
|
20
|
+
"kind": "accessible-name",
|
|
21
|
+
"summary": "Select requires either a visible label or an explicit ARIA label."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "KUI-T003",
|
|
25
|
+
"catalogKey": "@kerfjs/ui:select",
|
|
26
|
+
"publicImport": "@kerfjs/ui/select",
|
|
27
|
+
"symbols": ["SelectChoice", "SelectProps"],
|
|
28
|
+
"kind": "literal-identity",
|
|
29
|
+
"summary": "Literal Select values are constrained to the declared choice values; dynamic integrations may widen the generic to string."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "KUI-T004",
|
|
33
|
+
"catalogKey": "@kerfjs/ui:segmented-control",
|
|
34
|
+
"publicImport": "@kerfjs/ui/segmented-control",
|
|
35
|
+
"symbols": ["SegmentedControlChoice", "SegmentedControlProps"],
|
|
36
|
+
"kind": "literal-identity",
|
|
37
|
+
"summary": "Literal SegmentedControl values are constrained to the declared choice values; dynamic integrations may widen the generic to string."
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "KUI-T005",
|
|
41
|
+
"catalogKey": "@kerfjs/ui:token-search-field",
|
|
42
|
+
"publicImport": "@kerfjs/ui/token-search-field",
|
|
43
|
+
"symbols": ["TokenSearchFieldProps"],
|
|
44
|
+
"kind": "discriminated-union",
|
|
45
|
+
"summary": "Expanded state and expand-action inputs exist only for collapsible TokenSearchField variants."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "KUI-T006",
|
|
49
|
+
"catalogKey": "@kerfjs/ui:token-search-field",
|
|
50
|
+
"publicImport": "@kerfjs/ui/token-search-field",
|
|
51
|
+
"symbols": ["TokenSearchEditorAttributes"],
|
|
52
|
+
"kind": "protected-attributes",
|
|
53
|
+
"summary": "TokenSearchField editor metadata cannot replace component-owned identity, morph, count, or placeholder attributes."
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "KUI-T007",
|
|
57
|
+
"catalogKey": "@kerfjs/ui:toolbar-text",
|
|
58
|
+
"publicImport": "@kerfjs/ui/toolbar-text",
|
|
59
|
+
"symbols": ["ToolbarTextProps"],
|
|
60
|
+
"kind": "conditional-property",
|
|
61
|
+
"summary": "ToolbarText maxLines is accepted only when wrapping is enabled."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "KUI-T008",
|
|
65
|
+
"publicImport": "@kerfjs/ui/tab-scaffold",
|
|
66
|
+
"symbols": ["TabScaffoldTab", "TabScaffoldProps"],
|
|
67
|
+
"kind": "literal-identity",
|
|
68
|
+
"summary": "Literal TabScaffold active ids are constrained to the declared tab ids; dynamic integrations may widen the generic to string."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "KUI-T009",
|
|
72
|
+
"catalogKey": "@kerfjs/ui:token-search-field",
|
|
73
|
+
"publicImport": "@kerfjs/ui/wire-token-search-fields",
|
|
74
|
+
"symbols": ["TokenSearchKeyboardOptions", "WireTokenSearchFieldsOptions"],
|
|
75
|
+
"kind": "controlled-callback",
|
|
76
|
+
"summary": "Adjacent-token removal requires the callback that commits removal to application-owned state."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "KUI-T010",
|
|
80
|
+
"publicImport": "@kerfjs/ui",
|
|
81
|
+
"symbols": [
|
|
82
|
+
"DividerSides",
|
|
83
|
+
"StateBannerUrgency",
|
|
84
|
+
"TabActivation",
|
|
85
|
+
"TextVariant",
|
|
86
|
+
"ToolbarControlGroupAppearance",
|
|
87
|
+
"ToolbarControlGroupButtonAppearance",
|
|
88
|
+
"ToolbarControlGroupShape",
|
|
89
|
+
"ToolbarControlGroupTone"
|
|
90
|
+
],
|
|
91
|
+
"kind": "finite-vocabulary",
|
|
92
|
+
"summary": "Finite public variant vocabularies, including canonical divider-edge combinations, are named exported unions rather than anonymous string sets."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "KUI-T011",
|
|
96
|
+
"publicImport": "@kerfjs/ui",
|
|
97
|
+
"symbols": ["KerfUiContent"],
|
|
98
|
+
"kind": "recursive-semantic-content",
|
|
99
|
+
"summary": "Semantic UI content zones accept SafeHtml, runtime-empty boolean/nullish values, and readonly nested arrays while rejecting arbitrary strings, numbers, and signals."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "KUI-T012",
|
|
103
|
+
"catalogKey": "@kerfjs/ui:list",
|
|
104
|
+
"publicImport": "@kerfjs/ui/css-values",
|
|
105
|
+
"symbols": [
|
|
106
|
+
"CssValue",
|
|
107
|
+
"CssLength",
|
|
108
|
+
"CssLengthExpression",
|
|
109
|
+
"UiSpaceName",
|
|
110
|
+
"space",
|
|
111
|
+
"plus",
|
|
112
|
+
"calc"
|
|
113
|
+
],
|
|
114
|
+
"kind": "property-specific-css-value",
|
|
115
|
+
"summary": "List gap accepts finite spacing shorthands or branded complete length-percentage values, while raw CSS strings and non-standalone arithmetic expressions remain rejected."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "KUI-T013",
|
|
119
|
+
"publicImport": "@kerfjs/ui/css-values",
|
|
120
|
+
"symbols": [
|
|
121
|
+
"CssFlex",
|
|
122
|
+
"CssSize",
|
|
123
|
+
"CssColor",
|
|
124
|
+
"flex",
|
|
125
|
+
"uiColor",
|
|
126
|
+
"colorVar"
|
|
127
|
+
],
|
|
128
|
+
"kind": "property-specific-css-value",
|
|
129
|
+
"summary": "List flex, Skeleton dimensions, and Select icon colors use separate typed CSS grammars; row declaration-string props are absent rather than sharing a generic CSS escape hatch."
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/brianwestphal/kerf/main/ui/ai/compile-time-contracts-v1.schema.json",
|
|
4
|
+
"title": "Kerf UI compile-time contracts",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["schemaVersion", "package", "fixture", "contracts"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": { "type": "string" },
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"package": { "const": "@kerfjs/ui" },
|
|
11
|
+
"fixture": { "type": "string", "minLength": 1 },
|
|
12
|
+
"contracts": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"minItems": 1,
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"required": ["id", "publicImport", "symbols", "kind", "summary"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"id": { "type": "string", "pattern": "^KUI-T[0-9]{3}$" },
|
|
20
|
+
"catalogKey": { "type": "string", "minLength": 1 },
|
|
21
|
+
"publicImport": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^@kerfjs/ui(?:/[-a-z]+)?$"
|
|
24
|
+
},
|
|
25
|
+
"symbols": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"minItems": 1,
|
|
28
|
+
"uniqueItems": true,
|
|
29
|
+
"items": { "type": "string", "minLength": 1 }
|
|
30
|
+
},
|
|
31
|
+
"kind": {
|
|
32
|
+
"enum": [
|
|
33
|
+
"accessible-name",
|
|
34
|
+
"conditional-property",
|
|
35
|
+
"controlled-callback",
|
|
36
|
+
"discriminated-union",
|
|
37
|
+
"finite-vocabulary",
|
|
38
|
+
"literal-identity",
|
|
39
|
+
"property-specific-css-value",
|
|
40
|
+
"protected-attributes",
|
|
41
|
+
"recursive-semantic-content"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"summary": { "type": "string", "minLength": 1 }
|
|
45
|
+
},
|
|
46
|
+
"additionalProperties": false
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/brianwestphal/kerf/main/ui/ai/component-catalog-extension-v2.schema.json",
|
|
4
|
+
"title": "Kerf UI consumer composition catalog extension v2",
|
|
5
|
+
"allOf": [{ "$ref": "./component-catalog-v2.schema.json" }],
|
|
6
|
+
"description": "Consumer catalogs use the v2 entry contract with their own non-empty package identity; keys are always package:id."
|
|
7
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/brianwestphal/kerf/main/ui/ai/component-catalog-extension.schema.json",
|
|
4
|
+
"title": "Kerf UI consumer component catalog extension",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["schemaVersion", "package", "description", "entries"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": { "type": "string" },
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"package": { "type": "string", "minLength": 1 },
|
|
11
|
+
"description": { "type": "string", "minLength": 1 },
|
|
12
|
+
"entries": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": { "$ref": "#/$defs/entry" }
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"$defs": {
|
|
19
|
+
"entry": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"required": [
|
|
22
|
+
"id",
|
|
23
|
+
"name",
|
|
24
|
+
"kind",
|
|
25
|
+
"purpose",
|
|
26
|
+
"useWhen",
|
|
27
|
+
"avoidWhen",
|
|
28
|
+
"geometry"
|
|
29
|
+
],
|
|
30
|
+
"properties": {
|
|
31
|
+
"id": { "type": "string", "minLength": 1 },
|
|
32
|
+
"name": { "type": "string", "minLength": 1 },
|
|
33
|
+
"kind": { "enum": ["component", "composition"] },
|
|
34
|
+
"purpose": { "type": "string", "minLength": 1 },
|
|
35
|
+
"useWhen": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": { "type": "string" },
|
|
38
|
+
"minItems": 1
|
|
39
|
+
},
|
|
40
|
+
"avoidWhen": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": { "type": "string" },
|
|
43
|
+
"minItems": 1
|
|
44
|
+
},
|
|
45
|
+
"publicClasses": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": { "type": "string" },
|
|
48
|
+
"uniqueItems": true
|
|
49
|
+
},
|
|
50
|
+
"publicTokens": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": { "type": "string" },
|
|
53
|
+
"uniqueItems": true
|
|
54
|
+
},
|
|
55
|
+
"geometry": { "$ref": "#/$defs/geometry" },
|
|
56
|
+
"documentation": { "type": "string", "minLength": 1 }
|
|
57
|
+
},
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
},
|
|
60
|
+
"geometry": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"required": ["margin", "border", "padding"],
|
|
63
|
+
"properties": {
|
|
64
|
+
"margin": { "$ref": "#/$defs/geometryOwner" },
|
|
65
|
+
"border": { "$ref": "#/$defs/geometryOwner" },
|
|
66
|
+
"padding": { "$ref": "#/$defs/geometryOwner" },
|
|
67
|
+
"notes": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": { "type": "string", "minLength": 1 },
|
|
70
|
+
"minItems": 1
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"additionalProperties": false
|
|
74
|
+
},
|
|
75
|
+
"geometryOwner": {
|
|
76
|
+
"enum": ["self", "parent", "child", "none", "conditional"]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|