@keboola/design 4.1.2 → 4.2.1
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/AGENTS.md +17 -10
- package/dist/editors.cjs +2 -2
- package/dist/editors.cjs.map +1 -1
- package/dist/editors.js +2 -2
- package/dist/editors.js.map +1 -1
- package/dist/index.cjs +4739 -356
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -6
- package/dist/index.d.ts +18 -6
- package/dist/index.js +4478 -95
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +5 -5
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.js +5 -5
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.cjs +2 -2
- package/dist/mermaid.cjs.map +1 -1
- package/dist/mermaid.js +2 -2
- package/dist/mermaid.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -130,22 +130,29 @@ This file answers **which** component to use; [`COMPONENT-API.md`](./COMPONENT-A
|
|
|
130
130
|
|
|
131
131
|
**No** `Stack` / `Flex` / `Box` component exists, by design — shadcn doesn't ship them, and adding wrappers creates a third way to do layout. Use Tailwind utility classes directly.
|
|
132
132
|
|
|
133
|
-
| Use | When
|
|
134
|
-
| ---------------- |
|
|
135
|
-
| Tailwind classes | All ad-hoc layout: `tw-flex tw-flex-col tw-gap-4`, `tw-grid …`, `tw-p-6`
|
|
136
|
-
| `AppShell` | App-root shell that follows the active brand (sidebar vs top-nav)
|
|
137
|
-
| `PageLayout` | Top-level page shape: header, tabs, toolbar, content, footer
|
|
138
|
-
| `PageToolbar` | Index-page toolbar: search + filters / sort / actions / view + chips row
|
|
139
|
-
| `Card` | Semantic content surface with header / content / footer slots
|
|
140
|
-
| `Sidebar` | App-shell left navigation rail (host inside `AppShell.Sidebar`)
|
|
133
|
+
| Use | When |
|
|
134
|
+
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
135
|
+
| Tailwind classes | All ad-hoc layout: `tw-flex tw-flex-col tw-gap-4`, `tw-grid …`, `tw-p-6` |
|
|
136
|
+
| `AppShell` | App-root shell that follows the active brand (sidebar vs top-nav) |
|
|
137
|
+
| `PageLayout` | Top-level page shape: header, tabs, toolbar, content, footer |
|
|
138
|
+
| `PageToolbar` | Index-page toolbar: search + filters / sort / actions / view + chips row |
|
|
139
|
+
| `Card` | Semantic content surface with header / content / footer slots |
|
|
140
|
+
| `Sidebar` | App-shell left navigation rail (host inside `AppShell.Sidebar`) |
|
|
141
|
+
| `Navbar` | Top navigation bar (host inside `AppShell.Header`) — brand mark, primary nav, search / account. Pairs with the top-nav shell |
|
|
141
142
|
|
|
142
143
|
Vertical rhythm: prefer `tw-gap-*` on a flex column parent over `tw-mt-*` on children — avoids margin-collapse. Page-level max width: use `PageLayout`'s `maxWidth` prop (`narrow` / `default` / `wide` / `full`), not `tw-max-w-[…]` literals.
|
|
143
144
|
|
|
144
|
-
**Page gutter
|
|
145
|
+
**Page gutter: `AppShell.Main` owns it, with an opinionated default.** `AppShell.Main` applies a default page gutter (`tw-p-6`) so content looks right out of the box. Because `cn` is tailwind-merge, override it from the call site when the app owns its own gutter — e.g. `className="tw-p-0"` (kbc-ui does this; it centralizes the gutter on its own shell wrapper). `PageLayout` still adds **no** gutter of its own, so header and content align inside whatever gutter `AppShell.Main` provides.
|
|
145
146
|
|
|
146
147
|
```tsx
|
|
148
|
+
// Default gutter — nothing to add:
|
|
147
149
|
<AppShell.Main>
|
|
148
|
-
<
|
|
150
|
+
<PageLayout>{/* header + content share the default gutter */}</PageLayout>
|
|
151
|
+
</AppShell.Main>
|
|
152
|
+
|
|
153
|
+
// Own your gutter — opt out and add your own:
|
|
154
|
+
<AppShell.Main className="tw-p-0">
|
|
155
|
+
<div className="tw-px-8 tw-py-6">{/* custom gutter */}</div>
|
|
149
156
|
</AppShell.Main>
|
|
150
157
|
```
|
|
151
158
|
|
package/dist/editors.cjs
CHANGED
|
@@ -363,9 +363,9 @@ var variants = classVarianceAuthority.cva(
|
|
|
363
363
|
"focus-visible:tw-outline",
|
|
364
364
|
"focus-visible:tw-outline-1",
|
|
365
365
|
"focus-visible:-tw-outline-offset-1",
|
|
366
|
-
"focus-visible:tw-outline-
|
|
366
|
+
"focus-visible:tw-outline-ring",
|
|
367
367
|
"focus-visible:tw-ring-4",
|
|
368
|
-
"focus-visible:tw-ring-
|
|
368
|
+
"focus-visible:tw-ring-ring/30",
|
|
369
369
|
// disabled
|
|
370
370
|
"disabled:tw-opacity-40",
|
|
371
371
|
"disabled:tw-cursor-not-allowed",
|