@loykin/designkit 0.0.1-dev.4 → 0.0.1-dev.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Loykin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -13,21 +13,28 @@ npm install @loykin/designkit
13
13
 
14
14
  Requires React 19 and Tailwind CSS v4. UI components are based on [shadcn/ui](https://ui.shadcn.com) — if your app has shadcn set up, theming integrates automatically via shared CSS variables (`--primary`, `--background`, `--radius`, etc.).
15
15
 
16
- Import the styles in your global CSS:
16
+ shadcn/ui is the component and semantic-token convention, not a runtime
17
+ dependency. Consumers do not need to install the shadcn CLI, but they must use
18
+ Tailwind CSS v4 and should define the shared semantic variables they want to
19
+ customize.
20
+
21
+ Import Tailwind and DesignKit from the same global CSS entry:
17
22
 
18
23
  ```css
19
24
  /* globals.css */
25
+ @import "tailwindcss";
20
26
  @import "@loykin/designkit/styles";
21
27
  ```
22
28
 
23
- The styles file includes pre-built Tailwind utility classes — no `@source` configuration required. You can also import the stylesheet from your app entry, as shown below.
29
+ `@loykin/designkit/styles` registers the package's compiled JavaScript as a
30
+ Tailwind source. The consuming application's Tailwind v4 build generates the
31
+ utilities for both the application and DesignKit in one cascade. DesignKit does
32
+ not ship a second, pre-built copy of Tailwind utilities.
24
33
 
25
34
  ## Quick Start
26
35
 
27
36
  ```tsx
28
37
  import { DataBodyTemplate, PageTopBar, Button } from '@loykin/designkit'
29
- import '@loykin/designkit/styles'
30
-
31
38
  export function UsersPage() {
32
39
  return (
33
40
  <DataBodyTemplate
@@ -68,6 +75,7 @@ General-purpose page shell. Accepts `.Body`, `.Tab`, and `.Section` child slots
68
75
  | `topBar` | `ReactNode` | Top breadcrumb bar. Pass `<PageTopBar left="..." />` or omit. |
69
76
  | `title` | `ReactNode` | Page title |
70
77
  | `description` | `ReactNode` | Subtitle below the title |
78
+ | `status` | `ReactNode` | Badge or tag rendered inline next to the title |
71
79
  | `actions` | `ReactNode` | Page-level actions (Add, Export, etc.) next to the title |
72
80
  | `toolbarLeft` / `toolbarRight` | `ReactNode` | Toolbar slots above the content area |
73
81
  | `theme` | `CSSProperties` | Inline CSS variable overrides |
@@ -334,6 +342,7 @@ export function SqlEditorPage() {
334
342
  |---|---|---|
335
343
  | `topBar` | `ReactNode` | Top bar above the workbench |
336
344
  | `title` / `description` | `ReactNode` | Header copy above the panes |
345
+ | `status` | `ReactNode` | Badge or tag rendered inline next to the title |
337
346
  | `headerRight` / `actions` | `ReactNode` | Header action slots |
338
347
  | `leftPane` / `rightPane` | `ReactNode` | Optional side panes |
339
348
  | `mainPane` | `ReactNode` | Primary editor or preview area |