@wheelhouse/ui 0.2.0 → 0.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/dist/blocks/index.d.ts +2 -0
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/index.js +1 -0
- package/dist/blocks/navigation/index.d.ts +2 -0
- package/dist/blocks/navigation/index.d.ts.map +1 -0
- package/dist/blocks/navigation/index.js +1 -0
- package/dist/blocks/navigation/pattern-1/index.d.ts +3 -0
- package/dist/blocks/navigation/pattern-1/index.d.ts.map +1 -0
- package/dist/blocks/navigation/pattern-1/index.js +1 -0
- package/dist/blocks/navigation/pattern-1/pattern-1.config.d.ts +47 -0
- package/dist/blocks/navigation/pattern-1/pattern-1.config.d.ts.map +1 -0
- package/dist/blocks/navigation/pattern-1/pattern-1.config.js +55 -0
- package/dist/blocks/navigation/pattern-1/pattern-1.d.ts +7 -0
- package/dist/blocks/navigation/pattern-1/pattern-1.d.ts.map +1 -0
- package/dist/blocks/navigation/pattern-1/pattern-1.js +50 -0
- package/dist/blocks/navigation/pattern-1/pattern-1.stories.d.ts +16 -0
- package/dist/blocks/navigation/pattern-1/pattern-1.stories.d.ts.map +1 -0
- package/dist/blocks/navigation/pattern-1/pattern-1.stories.js +20 -0
- package/dist/components/accordion/accordion.js +2 -2
- package/dist/components/alert/alert.stories.js +4 -4
- package/dist/components/alert-dialog/alert-dialog.stories.js +2 -2
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +3 -4
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/calendar/calendar.d.ts +34 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/calendar.js +82 -0
- package/dist/components/calendar/calendar.stories.d.ts +16 -0
- package/dist/components/calendar/calendar.stories.d.ts.map +1 -0
- package/dist/components/calendar/calendar.stories.js +33 -0
- package/dist/components/calendar/index.d.ts +3 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +1 -0
- package/dist/components/checkbox/checkbox.js +2 -2
- package/dist/components/collapsible/collapsible.stories.js +4 -4
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +5 -7
- package/dist/components/command/command.d.ts.map +1 -1
- package/dist/components/command/command.js +3 -4
- package/dist/components/context-menu/context-menu.d.ts.map +1 -1
- package/dist/components/context-menu/context-menu.js +4 -5
- package/dist/components/date-selector/date-selector-context.d.ts +6 -0
- package/dist/components/date-selector/date-selector-context.d.ts.map +1 -0
- package/dist/components/date-selector/date-selector-context.js +11 -0
- package/dist/components/date-selector/date-selector-parts.d.ts +68 -0
- package/dist/components/date-selector/date-selector-parts.d.ts.map +1 -0
- package/dist/components/date-selector/date-selector-parts.js +131 -0
- package/dist/components/date-selector/date-selector-types.d.ts +118 -0
- package/dist/components/date-selector/date-selector-types.d.ts.map +1 -0
- package/dist/components/date-selector/date-selector-types.js +32 -0
- package/dist/components/date-selector/date-selector-value.d.ts +47 -0
- package/dist/components/date-selector/date-selector-value.d.ts.map +1 -0
- package/dist/components/date-selector/date-selector-value.js +183 -0
- package/dist/components/date-selector/date-selector.d.ts +6 -0
- package/dist/components/date-selector/date-selector.d.ts.map +1 -0
- package/dist/components/date-selector/date-selector.js +144 -0
- package/dist/components/date-selector/date-selector.stories.d.ts +135 -0
- package/dist/components/date-selector/date-selector.stories.d.ts.map +1 -0
- package/dist/components/date-selector/date-selector.stories.js +144 -0
- package/dist/components/date-selector/index.d.ts +7 -0
- package/dist/components/date-selector/index.d.ts.map +1 -0
- package/dist/components/date-selector/index.js +5 -0
- package/dist/components/date-selector/use-date-selector.d.ts +50 -0
- package/dist/components/date-selector/use-date-selector.d.ts.map +1 -0
- package/dist/components/date-selector/use-date-selector.js +305 -0
- package/dist/components/dialog/dialog.js +2 -2
- package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +5 -6
- package/dist/components/empty/empty.stories.js +2 -2
- package/dist/components/filters/filters.js +4 -4
- package/dist/components/filters/filters.stories.js +3 -3
- package/dist/components/frame/frame.d.ts +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -0
- package/dist/components/input-group/input-group.d.ts +2 -2
- package/dist/components/input-group/input-group.stories.js +3 -3
- package/dist/components/item/item.d.ts +2 -2
- package/dist/components/item/item.stories.d.ts.map +1 -1
- package/dist/components/item/item.stories.js +5 -6
- package/dist/components/kbd/kbd.stories.js +2 -2
- package/dist/components/menubar/menubar.js +3 -3
- package/dist/components/native-select/native-select.js +2 -2
- package/dist/components/navigation-menu/navigation-menu.js +2 -2
- package/dist/components/pagination/pagination.js +4 -4
- package/dist/components/select/select.js +5 -5
- package/dist/components/sheet/sheet.js +2 -2
- package/dist/components/sonner/sonner.d.ts +1 -1
- package/dist/components/sonner/sonner.js +7 -7
- package/dist/components/sortable/index.d.ts +3 -0
- package/dist/components/sortable/index.d.ts.map +1 -0
- package/dist/components/sortable/index.js +1 -0
- package/dist/components/sortable/sortable.d.ts +94 -0
- package/dist/components/sortable/sortable.d.ts.map +1 -0
- package/dist/components/sortable/sortable.js +210 -0
- package/dist/components/sortable/sortable.stories.d.ts +14 -0
- package/dist/components/sortable/sortable.stories.d.ts.map +1 -0
- package/dist/components/sortable/sortable.stories.js +38 -0
- package/dist/components/spinner/spinner.d.ts +3 -3
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/status-indicator/index.d.ts +3 -0
- package/dist/components/status-indicator/index.d.ts.map +1 -0
- package/dist/components/status-indicator/index.js +1 -0
- package/dist/components/status-indicator/status-indicator.d.ts +51 -0
- package/dist/components/status-indicator/status-indicator.d.ts.map +1 -0
- package/dist/components/status-indicator/status-indicator.js +48 -0
- package/dist/components/status-indicator/status-indicator.stories.d.ts +20 -0
- package/dist/components/status-indicator/status-indicator.stories.d.ts.map +1 -0
- package/dist/components/status-indicator/status-indicator.stories.js +97 -0
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/text/text.d.ts +1 -1
- package/dist/components/text/text.js +1 -1
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/llms.txt +11 -4
- package/package.json +9 -6
- package/src/styles/globals.css +4 -12
package/llms.txt
CHANGED
|
@@ -4,23 +4,30 @@
|
|
|
4
4
|
Wheelhouse React component library: Base UI primitives, shadcn-style patterns, Tailwind CSS v4, CVA for variants. Published as ESM with TypeScript declarations (`dist/`).
|
|
5
5
|
|
|
6
6
|
## Package entry points (`package.json` → `exports`)
|
|
7
|
-
- **`@wheelhouse/ui`** — components and `cn` from `src/index.ts` (dev: TS sources; prod: `dist/index.js` + `.d.ts`).
|
|
7
|
+
- **`@wheelhouse/ui`** — components, **blocks** (composed patterns), and `cn` from `src/index.ts` (dev: TS sources; prod: `dist/index.js` + `.d.ts`).
|
|
8
8
|
- **`@wheelhouse/ui/globals.css`** — CSS entry for tokens, Tailwind, and theme wiring (`src/styles/globals.css`).
|
|
9
9
|
|
|
10
10
|
## Stack & peers
|
|
11
11
|
- **`@wheelhouse/tokens`** — CSS variables via `globals.css`.
|
|
12
|
-
- **Runtime (as used):** `class-variance-authority`, `clsx`, `tailwind-merge`, `zod`. **Icons:**
|
|
12
|
+
- **Runtime (as used):** `class-variance-authority`, `clsx`, `tailwind-merge`, `zod`. **Icons:** `lucide-react` where needed.
|
|
13
13
|
- **Peer dependencies:** `react`, `react-dom`, `@base-ui/react`, `tailwindcss` (v4+).
|
|
14
14
|
|
|
15
15
|
## Consuming apps
|
|
16
16
|
1. `@import '@wheelhouse/ui/globals.css';`
|
|
17
17
|
2. With Tailwind v4, `@source` the published bundle (see `README.md`).
|
|
18
|
-
3. `import { Button } from '@wheelhouse/ui'` (and other named exports).
|
|
18
|
+
3. `import { Button } from '@wheelhouse/ui'` (and other named exports, including blocks such as `NavigationPattern1`).
|
|
19
19
|
|
|
20
20
|
## Full documentation (LLM-friendly)
|
|
21
21
|
Canonical narrative, examples, and props live in the **Wheelhouse docs** app (`apps/docs` in this monorepo). When deployed, it exposes `/llms.txt` (page index), `/llms-full.txt` (concatenated markdown), and `/llms-raw.mdx/...` (per-page markdown). Use your docs base URL or run the docs app locally — this file is only a short offline pointer.
|
|
22
22
|
|
|
23
|
+
## Blocks (composed patterns under `src/blocks/`)
|
|
24
|
+
Higher-level layouts built from components — import from `@wheelhouse/ui` like primitives. Source lives next to optional colocated config (nav labels, URLs, menus).
|
|
25
|
+
|
|
26
|
+
| Block | Export | Source (monorepo) | Docs slug |
|
|
27
|
+
| --- | --- | --- | --- |
|
|
28
|
+
| Navigation — pattern 1 | `NavigationPattern1` | `src/blocks/navigation/pattern-1/pattern-1.tsx` (+ `pattern-1.config.ts` for nav data) | `/docs/blocks/navigation-pattern-1` |
|
|
29
|
+
|
|
23
30
|
## Component modules (barrels under `src/components/`)
|
|
24
31
|
Named exports are grouped by folder. Alphabetical list of barrels re-exported from `@wheelhouse/ui`:
|
|
25
32
|
|
|
26
|
-
accordion, alert, alert-dialog, aspect-ratio, avatar, badge, breadcrumb, button, button-group, card, checkbox, collapsible, command, combobox, context-menu, dialog, direction, drawer, dropdown-menu, empty, field, filters, frame, hover-card, input, input-group, item, kbd, label, menubar, native-select, navigation-menu, pagination, popover, progress, radio-group, resizable, scroll-area, select, separator, sheet, slider, sonner, spinner, switch, tabs, text, textarea, toggle, toggle-group, tooltip
|
|
33
|
+
accordion, alert, alert-dialog, aspect-ratio, avatar, badge, breadcrumb, button, button-group, calendar, card, checkbox, collapsible, command, combobox, context-menu, date-selector, dialog, direction, drawer, dropdown-menu, empty, field, filters, frame, hover-card, input, input-group, item, kbd, label, menubar, native-select, navigation-menu, pagination, popover, progress, radio-group, resizable, scroll-area, select, separator, sheet, slider, sonner, sortable, spinner, status-indicator, switch, tabs, text, textarea, toggle, toggle-group, tooltip
|
package/package.json
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wheelhouse/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@
|
|
11
|
-
"@
|
|
12
|
-
"@
|
|
10
|
+
"@dnd-kit/core": "^6.3.1",
|
|
11
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
12
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
13
|
+
"lucide-react": "^0.469.0",
|
|
13
14
|
"class-variance-authority": "^0.7.1",
|
|
14
15
|
"clsx": "^2.1.1",
|
|
15
16
|
"cmdk": "^1.1.1",
|
|
17
|
+
"date-fns": "^4.1.0",
|
|
18
|
+
"react-day-picker": "^9.14.0",
|
|
16
19
|
"react-resizable-panels": "^4.9.0",
|
|
17
20
|
"shadcn": "^4.1.0",
|
|
18
21
|
"sonner": "^2.0.7",
|
|
@@ -52,8 +55,8 @@
|
|
|
52
55
|
"typescript-eslint": "^8.54.0",
|
|
53
56
|
"vite": "^7.2.4",
|
|
54
57
|
"vitest": "^3.0.0",
|
|
55
|
-
"@wheelhouse/
|
|
56
|
-
"@wheelhouse/
|
|
58
|
+
"@wheelhouse/eslint-config": "0.0.0",
|
|
59
|
+
"@wheelhouse/tsconfig": "0.0.0"
|
|
57
60
|
},
|
|
58
61
|
"exports": {
|
|
59
62
|
".": {
|
package/src/styles/globals.css
CHANGED
|
@@ -2,22 +2,14 @@
|
|
|
2
2
|
@import 'tailwindcss';
|
|
3
3
|
@import 'tw-animate-css';
|
|
4
4
|
@import 'shadcn/tailwind.css';
|
|
5
|
-
/*
|
|
6
|
-
|
|
7
|
-
to system fonts in apps that forget to import the faces separately.
|
|
8
|
-
|
|
9
|
-
To move this to individual apps:
|
|
10
|
-
1. Remove these imports
|
|
11
|
-
2. Remove @fontsource-variable/geist (and geist-mono) from packages/ui/package.json
|
|
12
|
-
3. Add the same packages to each app and import them in each app's CSS entry */
|
|
13
|
-
@import '@fontsource-variable/geist';
|
|
14
|
-
@import '@fontsource-variable/geist-mono';
|
|
5
|
+
/* Sans / mono use the system stack (no bundled webfonts). Swap --font-sans / --font-mono in
|
|
6
|
+
@theme below if you adopt a custom family (e.g. Fontsource or next/font). */
|
|
15
7
|
|
|
16
8
|
@custom-variant dark (&:is(.dark *));
|
|
17
9
|
|
|
18
10
|
@theme inline {
|
|
19
11
|
--font-heading: var(--font-sans);
|
|
20
|
-
--font-mono: '
|
|
12
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
21
13
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
22
14
|
--color-sidebar-border: var(--sidebar-border);
|
|
23
15
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
@@ -56,7 +48,7 @@
|
|
|
56
48
|
--radius-2xl: calc(var(--radius) * 1.8);
|
|
57
49
|
--radius-3xl: calc(var(--radius) * 2.2);
|
|
58
50
|
--radius-4xl: calc(var(--radius) * 2.6);
|
|
59
|
-
--font-sans:
|
|
51
|
+
--font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
60
52
|
--color-warning-foreground: var(--warning-foreground);
|
|
61
53
|
--color-warning: var(--warning);
|
|
62
54
|
--color-info-foreground: var(--info-foreground);
|