@kerfjs/ui 5.0.0-beta.46 → 5.0.0-beta.48

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.
Files changed (39) hide show
  1. package/ai/component-catalog-v2-overrides.json +12 -0
  2. package/ai/component-catalog-v2.json +36 -60
  3. package/ai/component-catalog.json +54 -134
  4. package/ai/public-api-signatures-v1.md +12 -3
  5. package/ai/skill.md +2 -2
  6. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  7. package/dist/catalog.js +5 -20
  8. package/dist/catalog.js.map +1 -1
  9. package/dist/{chunk-SE7MQMW7.js → chunk-GYGM363P.js} +2 -2
  10. package/dist/{chunk-SE7MQMW7.js.map → chunk-GYGM363P.js.map} +1 -1
  11. package/dist/chunk-XKFRMGMW.js +31 -0
  12. package/dist/chunk-XKFRMGMW.js.map +1 -0
  13. package/dist/index.d.ts +1 -1
  14. package/dist/index.js +2 -2
  15. package/dist/list-header.js +1 -1
  16. package/dist/styles/catalog.css +5 -3
  17. package/dist/styles/text.css +16 -0
  18. package/dist/styles/webawesome.css +61 -0
  19. package/dist/text.d.ts +11 -2
  20. package/dist/text.js +1 -1
  21. package/docs/component-selection.md +36 -36
  22. package/docs/examples/command-palette-adapter.tsx +1 -1
  23. package/docs/layout.md +8 -0
  24. package/docs/ux-demo.md +6 -5
  25. package/docs/webawesome-theme.md +21 -5
  26. package/llms.txt +10 -3
  27. package/package.json +1 -1
  28. package/ux-demo/recipes/app-shell.tsx +2 -2
  29. package/ux-demo/recipes/collapsible-sidebar.tsx +2 -2
  30. package/ux-demo/recipes/compact-toolbar.tsx +1 -1
  31. package/ux-demo/recipes/composer-form.tsx +1 -1
  32. package/ux-demo/recipes/list-detail-dialog.tsx +1 -2
  33. package/ux-demo/recipes/list-workspace-states.tsx +1 -1
  34. package/ux-demo/recipes/loading-inspector.tsx +2 -6
  35. package/ux-demo/recipes/navigation-sidebar.tsx +2 -2
  36. package/ux-demo/recipes/navigation-stack.tsx +2 -4
  37. package/ux-demo/recipes/workspace-header.tsx +2 -5
  38. package/dist/chunk-QM4GQ7W3.js +0 -17
  39. package/dist/chunk-QM4GQ7W3.js.map +0 -1
@@ -167,7 +167,7 @@ export const createRecipe: RecipeFactory = (announce) => {
167
167
  />
168
168
  <div class="recipe-list__body kui-pane__content kui-content">
169
169
  {renderBody()}
170
- <Text variant="p" class="kui-recipe__ownership kui-content-item">
170
+ <Text class="kui-recipe__ownership kui-content-item">
171
171
  The recipe owns feedback placement and stable content. The app owns
172
172
  fetching, cache age, retry policy, and domain rows.
173
173
  </Text>
@@ -70,11 +70,7 @@ export const createRecipe: RecipeFactory = (announce) => {
70
70
  </ToolbarControlGroup>
71
71
  }
72
72
  />
73
- <Text
74
- variant="p"
75
- class="kui-recipe__heading-summary"
76
- id="recipe-inspector-summary"
77
- >
73
+ <Text class="kui-recipe__heading-summary" id="recipe-inspector-summary">
78
74
  {p ? (
79
75
  <Skeleton width={em(18)} />
80
76
  ) : (
@@ -169,7 +165,7 @@ export const createRecipe: RecipeFactory = (announce) => {
169
165
  icon={icon(FileText, 'file-text')}
170
166
  />
171
167
  )}
172
- <Text variant="p" class="kui-recipe__ownership kui-content-item">
168
+ <Text class="kui-recipe__ownership kui-content-item">
173
169
  Each value-bearing component's <code>placeholder</code> prop renders
174
170
  skeletons in its value slots while loading, so the recipe composes a
175
171
  faithful loading inspector from real chrome. The app owns the
@@ -78,14 +78,14 @@ export const createRecipe: RecipeFactory = (announce) => {
78
78
  />
79
79
  <div class="kui-content-item">
80
80
  <strong>Quarterly goal</strong>
81
- <Text variant="p" class="kui-recipe__muted">
81
+ <Text class="kui-recipe__muted">
82
82
  Ship accessible navigation patterns to every workspace.
83
83
  </Text>
84
84
  </div>
85
85
  </>
86
86
  )}
87
87
  </section>
88
- <Text variant="p" class="kui-recipe__ownership kui-content-item">
88
+ <Text class="kui-recipe__ownership kui-content-item">
89
89
  The recipe owns pane, content-item, and toolbar geometry. The app owns
90
90
  routes, permissions, labels, and disclosure state.
91
91
  </Text>
@@ -58,7 +58,7 @@ export const createRecipe: RecipeFactory = (announce) => {
58
58
  />
59
59
  ))}
60
60
  </section>
61
- <Text variant="p" class="kui-recipe__ownership kui-content-item">
61
+ <Text class="kui-recipe__ownership kui-content-item">
62
62
  The recipe owns the stack as a signal of views and pushes/pops it;
63
63
  `NavStack` renders the stack and `wireNavStack` slides the content and
64
64
  settles the chrome. The app owns selection, data, and routing.
@@ -75,9 +75,7 @@ export const createRecipe: RecipeFactory = (announce) => {
75
75
  <div class="kui-content-item">
76
76
  <LucideIcon icon={FileText} name="file-text" />
77
77
  <strong>{item.label}</strong>
78
- <Text variant="p" class="kui-recipe__muted">
79
- {item.detail}
80
- </Text>
78
+ <Text class="kui-recipe__muted">{item.detail}</Text>
81
79
  </div>
82
80
  </div>
83
81
  ),
@@ -15,10 +15,7 @@ export const createRecipe: RecipeFactory = (announce) => ({
15
15
  class="kui-recipe recipe-header kui-recipe__surface kui-content"
16
16
  data-recipe="recipe-workspace-header"
17
17
  >
18
- <Text
19
- variant="p"
20
- class="recipe-header__context kui-inline-metadata kui-content-item"
21
- >
18
+ <Text class="recipe-header__context kui-inline-metadata kui-content-item">
22
19
  <span>Northstar workspace</span>
23
20
  <span>·</span>
24
21
  <span>Product planning</span>
@@ -69,7 +66,7 @@ export const createRecipe: RecipeFactory = (announce) => ({
69
66
  detail="All required checks passed 18 minutes ago."
70
67
  tone="success"
71
68
  />
72
- <Text variant="p" class="kui-recipe__ownership kui-content-item">
69
+ <Text class="kui-recipe__ownership kui-content-item">
73
70
  The recipe owns page hierarchy and action relocation. The app owns
74
71
  authorization, command behavior, breadcrumbs, and product copy.
75
72
  </Text>
@@ -1,17 +0,0 @@
1
- import { jsx } from 'kerfjs/jsx-runtime';
2
-
3
- // src/text.tsx
4
- function Text({
5
- variant: Variant = "p",
6
- children,
7
- class: classValue = "",
8
- className = "",
9
- ...attributes
10
- }) {
11
- const classes = `kui-text ${classValue} ${className}`.trim();
12
- return /* @__PURE__ */ jsx(Variant, { ...attributes, class: classes, "data-component": "text", children });
13
- }
14
-
15
- export { Text };
16
-
17
- //# sourceMappingURL=chunk-QM4GQ7W3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/text.tsx"],"names":[],"mappings":";;;AAwBO,SAAS,IAAA,CAAK;AAAA,EACnB,SAAS,OAAA,GAAU,GAAA;AAAA,EACnB,QAAA;AAAA,EACA,OAAO,UAAA,GAAa,EAAA;AAAA,EACpB,SAAA,GAAY,EAAA;AAAA,EACZ,GAAG;AACL,CAAA,EAAc;AACZ,EAAA,MAAM,UAAU,CAAA,SAAA,EAAY,UAAU,CAAA,CAAA,EAAI,SAAS,GAAG,IAAA,EAAK;AAC3D,EAAA,uBACE,GAAA,CAAC,WAAS,GAAG,UAAA,EAAY,OAAO,OAAA,EAAS,gBAAA,EAAe,QACrD,QAAA,EACH,CAAA;AAEJ","file":"chunk-QM4GQ7W3.js","sourcesContent":["import type { KerfBaseAttrs } from 'kerfjs/jsx-runtime';\n\nimport type { KerfUiContent } from './semantic-content.js';\n\nexport type TextVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p';\n\nexport type TextContent =\n KerfUiContent | string | number | readonly TextContent[];\n\nexport type TextProps = Omit<\n KerfBaseAttrs,\n 'children' | 'class' | 'className'\n> & {\n /** Native heading or paragraph element to render. Defaults to `p`. */\n variant?: TextVariant;\n children: TextContent;\n class?: string;\n className?: string;\n};\n\n/**\n * Semantic heading or paragraph text with the standard content-item padding.\n * All ordinary native heading/paragraph attributes pass through to the element.\n */\nexport function Text({\n variant: Variant = 'p',\n children,\n class: classValue = '',\n className = '',\n ...attributes\n}: TextProps) {\n const classes = `kui-text ${classValue} ${className}`.trim();\n return (\n <Variant {...attributes} class={classes} data-component=\"text\">\n {children}\n </Variant>\n );\n}\n"]}