@machinemetrics/mm-react-components 1.5.0-0 → 1.5.0
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/CHANGELOG.md +40 -31
- package/README.md +0 -27
- package/agent-docs/agent-documentation-reference.md +13 -106
- package/agent-docs/ai-agent-guide.md +13 -15
- package/agent-docs/ai-agent-init-guide.md +1 -1
- package/agent-docs/chakra-migration-readme.md +7 -6
- package/agent-docs/chakra-migration-troubleshooting.md +8 -8
- package/agent-docs/component-mapping-reference.md +46 -12
- package/agent-docs/{cursor-skill-mm-carbide.md → cursor-skill-components.md} +18 -14
- package/agent-docs/lovable.md +0 -1
- package/dist/README.md +0 -27
- package/dist/components/ui/accordion.d.ts +2 -9
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +2 -11
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert.d.ts +3 -4
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/avatar.d.ts +1 -5
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +1 -9
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +1 -7
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +3 -25
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/collapsible.d.ts +1 -22
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/command.d.ts +0 -3
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/data-table/pagination.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/DataTableToolbar.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/filters/FilterMenu.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/filters/index.d.ts +0 -2
- package/dist/components/ui/data-table/toolbar/filters/index.d.ts.map +1 -1
- package/dist/components/ui/date-picker.d.ts +1 -8
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-range-picker.d.ts +8 -2
- package/dist/components/ui/date-range-picker.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts +2 -12
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/drawer.d.ts +2 -16
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/form.d.ts +1 -19
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/pagination.d.ts +0 -21
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/popover.d.ts +2 -11
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/select.d.ts +2 -10
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/sheet-banner.d.ts +1 -1
- package/dist/components/ui/sheet-banner.d.ts.map +1 -1
- package/dist/components/ui/sonner.d.ts +1 -4
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/table.d.ts +2 -8
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts +26 -5
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +0 -6
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/tooltip.d.ts +1 -6
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/cursor-skill/components/SKILL.md +231 -0
- package/dist/cursor-skill/components/component-structure.md +33 -0
- package/dist/cursor-skill/components/reference.md +39 -0
- package/dist/cursor-skill/{mm-carbide → components}/widget-rules.md +16 -50
- package/dist/docs/GETTING_STARTED.md +0 -26
- package/dist/index.d.ts +3 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/mm-react-components.css +1 -1
- package/dist/mm-react-components.es.js +816 -971
- package/dist/mm-react-components.es.js.map +1 -1
- package/dist/mm-react-components.umd.js +1 -1
- package/dist/mm-react-components.umd.js.map +1 -1
- package/dist/preview/AccordionPreview.d.ts.map +1 -1
- package/dist/preview/BreadcrumbPreview.d.ts.map +1 -1
- package/dist/preview/ButtonPreview.d.ts.map +1 -1
- package/dist/preview/CardPreview.d.ts.map +1 -1
- package/dist/preview/CollapsiblePreview.d.ts.map +1 -1
- package/dist/preview/DataTableLimitationsPreview.d.ts.map +1 -1
- package/dist/preview/DateRangePickerPreview.d.ts.map +1 -1
- package/dist/preview/SearchInputPreview.d.ts +2 -0
- package/dist/preview/SearchInputPreview.d.ts.map +1 -0
- package/dist/preview/SheetBannerPreview.d.ts.map +1 -1
- package/dist/preview/SimplePaginationPreview.d.ts +2 -0
- package/dist/preview/SimplePaginationPreview.d.ts.map +1 -0
- package/dist/preview/SpinnerCarbidePreview.d.ts +2 -0
- package/dist/preview/SpinnerCarbidePreview.d.ts.map +1 -0
- package/dist/scripts/init.cjs +3 -3
- package/dist/scripts/install-skill.cjs +425 -47
- package/dist/themes/carbide.css +21 -234
- package/package.json +6 -5
- package/agent-docs/tickets-pattern.md +0 -78
- package/dist/components/ui/data-table/toolbar/filters/FilterControl.d.ts +0 -14
- package/dist/components/ui/data-table/toolbar/filters/FilterControl.d.ts.map +0 -1
- package/dist/components/ui/data-table/toolbar/filters/InlineFilterMenu.d.ts +0 -13
- package/dist/components/ui/data-table/toolbar/filters/InlineFilterMenu.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/get-range-calendar-selected.d.ts +0 -8
- package/dist/components/ui/date-range-picker/get-range-calendar-selected.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/hooks/use-date-range-picker-state.d.ts +0 -38
- package/dist/components/ui/date-range-picker/hooks/use-date-range-picker-state.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/index.d.ts +0 -9
- package/dist/components/ui/date-range-picker/index.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/parts/company-day-settings-row.d.ts +0 -7
- package/dist/components/ui/date-range-picker/parts/company-day-settings-row.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/parts/custom-hours-selects.d.ts +0 -8
- package/dist/components/ui/date-range-picker/parts/custom-hours-selects.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/parts/date-range-picker-cancel-apply-buttons.d.ts +0 -10
- package/dist/components/ui/date-range-picker/parts/date-range-picker-cancel-apply-buttons.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/parts/date-range-picker-clear-button.d.ts +0 -5
- package/dist/components/ui/date-range-picker/parts/date-range-picker-clear-button.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/parts/date-range-picker-trigger.d.ts +0 -24
- package/dist/components/ui/date-range-picker/parts/date-range-picker-trigger.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/parts/dual-month-range-calendars.d.ts +0 -15
- package/dist/components/ui/date-range-picker/parts/dual-month-range-calendars.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/parts/full-variant-header.d.ts +0 -2
- package/dist/components/ui/date-range-picker/parts/full-variant-header.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/parts/preset-sidebar.d.ts +0 -9
- package/dist/components/ui/date-range-picker/parts/preset-sidebar.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/parts/range-calendar.d.ts +0 -16
- package/dist/components/ui/date-range-picker/parts/range-calendar.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/presets.d.ts +0 -34
- package/dist/components/ui/date-range-picker/presets.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/types.d.ts +0 -29
- package/dist/components/ui/date-range-picker/types.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/utils.d.ts +0 -24
- package/dist/components/ui/date-range-picker/utils.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/variants/full.d.ts +0 -11
- package/dist/components/ui/date-range-picker/variants/full.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker/variants/simple.d.ts +0 -9
- package/dist/components/ui/date-range-picker/variants/simple.d.ts.map +0 -1
- package/dist/components/ui/kanban/KanbanBoard.d.ts +0 -8
- package/dist/components/ui/kanban/KanbanBoard.d.ts.map +0 -1
- package/dist/components/ui/kanban/KanbanCard.d.ts +0 -8
- package/dist/components/ui/kanban/KanbanCard.d.ts.map +0 -1
- package/dist/components/ui/kanban/KanbanCardOverlay.d.ts +0 -8
- package/dist/components/ui/kanban/KanbanCardOverlay.d.ts.map +0 -1
- package/dist/components/ui/kanban/KanbanColumn.d.ts +0 -8
- package/dist/components/ui/kanban/KanbanColumn.d.ts.map +0 -1
- package/dist/components/ui/kanban/KanbanContext.d.ts +0 -28
- package/dist/components/ui/kanban/KanbanContext.d.ts.map +0 -1
- package/dist/components/ui/kanban/dragEndUtils.d.ts +0 -26
- package/dist/components/ui/kanban/dragEndUtils.d.ts.map +0 -1
- package/dist/components/ui/kanban/index.d.ts +0 -9
- package/dist/components/ui/kanban/index.d.ts.map +0 -1
- package/dist/components/ui/kanban/types.d.ts +0 -58
- package/dist/components/ui/kanban/types.d.ts.map +0 -1
- package/dist/components/ui/status/index.d.ts +0 -7
- package/dist/components/ui/status/index.d.ts.map +0 -1
- package/dist/components/ui/status/status-badge.d.ts +0 -17
- package/dist/components/ui/status/status-badge.d.ts.map +0 -1
- package/dist/components/ui/status/status-intent.d.ts +0 -21
- package/dist/components/ui/status/status-intent.d.ts.map +0 -1
- package/dist/components/ui/status/status-progress.d.ts +0 -20
- package/dist/components/ui/status/status-progress.d.ts.map +0 -1
- package/dist/components/ui/tabs/index.d.ts +0 -6
- package/dist/components/ui/tabs/index.d.ts.map +0 -1
- package/dist/components/ui/tabs/scroll-tabs-row.d.ts +0 -6
- package/dist/components/ui/tabs/scroll-tabs-row.d.ts.map +0 -1
- package/dist/components/ui/tabs/tabs-constants.d.ts +0 -11
- package/dist/components/ui/tabs/tabs-constants.d.ts.map +0 -1
- package/dist/components/ui/tabs/tabs-content.d.ts +0 -5
- package/dist/components/ui/tabs/tabs-content.d.ts.map +0 -1
- package/dist/components/ui/tabs/tabs-context.d.ts +0 -9
- package/dist/components/ui/tabs/tabs-context.d.ts.map +0 -1
- package/dist/components/ui/tabs/tabs-list-underline.d.ts +0 -7
- package/dist/components/ui/tabs/tabs-list-underline.d.ts.map +0 -1
- package/dist/components/ui/tabs/tabs-list.d.ts +0 -8
- package/dist/components/ui/tabs/tabs-list.d.ts.map +0 -1
- package/dist/components/ui/tabs/tabs-trigger.d.ts +0 -7
- package/dist/components/ui/tabs/tabs-trigger.d.ts.map +0 -1
- package/dist/components/ui/tabs/tabs-variants.d.ts +0 -7
- package/dist/components/ui/tabs/tabs-variants.d.ts.map +0 -1
- package/dist/components/ui/tabs/tabs.d.ts +0 -15
- package/dist/components/ui/tabs/tabs.d.ts.map +0 -1
- package/dist/components/ui/tabs/use-tabs-underline-scroll.d.ts +0 -15
- package/dist/components/ui/tabs/use-tabs-underline-scroll.d.ts.map +0 -1
- package/dist/components/ui/tickets/TicketActivitySection.d.ts +0 -20
- package/dist/components/ui/tickets/TicketActivitySection.d.ts.map +0 -1
- package/dist/components/ui/tickets/TicketDates.d.ts +0 -20
- package/dist/components/ui/tickets/TicketDates.d.ts.map +0 -1
- package/dist/components/ui/tickets/TicketDetailLayout.d.ts +0 -32
- package/dist/components/ui/tickets/TicketDetailLayout.d.ts.map +0 -1
- package/dist/components/ui/tickets/TicketDetails.d.ts +0 -34
- package/dist/components/ui/tickets/TicketDetails.d.ts.map +0 -1
- package/dist/components/ui/tickets/TicketDetailsSidebar.d.ts +0 -21
- package/dist/components/ui/tickets/TicketDetailsSidebar.d.ts.map +0 -1
- package/dist/components/ui/tickets/TicketFieldControl.d.ts +0 -32
- package/dist/components/ui/tickets/TicketFieldControl.d.ts.map +0 -1
- package/dist/components/ui/tickets/TicketForm.d.ts +0 -22
- package/dist/components/ui/tickets/TicketForm.d.ts.map +0 -1
- package/dist/components/ui/tickets/TicketLabels.d.ts +0 -57
- package/dist/components/ui/tickets/TicketLabels.d.ts.map +0 -1
- package/dist/components/ui/tickets/TicketTypes.d.ts +0 -67
- package/dist/components/ui/tickets/TicketTypes.d.ts.map +0 -1
- package/dist/components/ui/tickets/TicketUserSelect.d.ts +0 -17
- package/dist/components/ui/tickets/TicketUserSelect.d.ts.map +0 -1
- package/dist/components/ui/tickets/UserDisplay.d.ts +0 -21
- package/dist/components/ui/tickets/UserDisplay.d.ts.map +0 -1
- package/dist/components/ui/tickets/UserFieldValue.d.ts +0 -24
- package/dist/components/ui/tickets/UserFieldValue.d.ts.map +0 -1
- package/dist/components/ui/tickets/index.d.ts +0 -12
- package/dist/components/ui/tickets/index.d.ts.map +0 -1
- package/dist/cursor-skill/mm-carbide/SKILL.md +0 -84
- package/dist/cursor-skill/mm-carbide/reference.md +0 -71
- package/dist/lib/normalize-host-color-mode.d.ts +0 -6
- package/dist/lib/normalize-host-color-mode.d.ts.map +0 -1
- package/dist/lib/theme-root.d.ts +0 -18
- package/dist/lib/theme-root.d.ts.map +0 -1
- package/dist/lib/use-host-theme.d.ts +0 -15
- package/dist/lib/use-host-theme.d.ts.map +0 -1
- package/dist/lib/with-display-name.d.ts +0 -2
- package/dist/lib/with-display-name.d.ts.map +0 -1
- package/dist/preview/KanbanPreview.d.ts +0 -2
- package/dist/preview/KanbanPreview.d.ts.map +0 -1
- package/dist/preview/StatusPreview.d.ts +0 -2
- package/dist/preview/StatusPreview.d.ts.map +0 -1
- package/dist/preview/TicketsPreview.d.ts +0 -2
- package/dist/preview/TicketsPreview.d.ts.map +0 -1
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# components Agent Skill
|
|
2
|
+
|
|
3
|
+
> **Renamed:** this skill was previously installed as **mm-carbide**. The installer now
|
|
4
|
+
> installs it as **components** and warns when it finds an old managed `mm-carbide`
|
|
5
|
+
> install; remove the legacy directory manually once you no longer need it.
|
|
2
6
|
|
|
3
7
|
## Overview
|
|
4
8
|
|
|
5
|
-
The **
|
|
9
|
+
The **components** skill teaches the agent to generate UIs and widgets using only `@machinemetrics/mm-react-components` (Carbide) and to follow widget rules from the skill's [widget-rules.md](../dist/cursor-skill/components/widget-rules.md) (visual-first, 80/20 text, insight-driven, etc.).
|
|
10
|
+
|
|
11
|
+
If the Carbide plugin is installed, its contextual `components` skill takes precedence over this installed copy.
|
|
6
12
|
|
|
7
13
|
The skill follows the **Agent Skills open standard** ([agentskills.io](https://agentskills.io)) and works with any compatible tool—do not assume the user is using Cursor. Supported tools include:
|
|
8
14
|
|
|
@@ -21,7 +27,7 @@ From any project (with or without the package installed):
|
|
|
21
27
|
npx @machinemetrics/mm-react-components mm-install-skill
|
|
22
28
|
```
|
|
23
29
|
|
|
24
|
-
Run with no arguments to be prompted for **which AI tool** (Cursor, Copilot, Claude, Gemini) and **project vs user** (global) install.
|
|
30
|
+
Run with no arguments to be prompted for **which AI tool** (Cursor, Copilot, Claude, Gemini) and **project vs user** (global) install. Passing `--target` and/or `--scope` runs non-interactively; an omitted flag takes its default (**cursor** / **project**, i.e. `.cursor/skills/components/`):
|
|
25
31
|
|
|
26
32
|
```bash
|
|
27
33
|
# VS Code / GitHub Copilot (project)
|
|
@@ -50,23 +56,21 @@ npx @machinemetrics/mm-react-components mm-install-skill --target=copilot --scop
|
|
|
50
56
|
|
|
51
57
|
| Target | Project (cwd) | User (home) |
|
|
52
58
|
| ------- | --------------------------- | ------------------------------ |
|
|
53
|
-
| cursor | `.cursor/skills/
|
|
54
|
-
| copilot | `.github/skills/
|
|
55
|
-
| claude | `.claude/skills/
|
|
56
|
-
| gemini | `.gemini/skills/
|
|
59
|
+
| cursor | `.cursor/skills/components` | `~/.cursor/skills/components` |
|
|
60
|
+
| copilot | `.github/skills/components` | `~/.copilot/skills/components` |
|
|
61
|
+
| claude | `.claude/skills/components` | `~/.claude/skills/components` |
|
|
62
|
+
| gemini | `.gemini/skills/components` | `~/.gemini/skills/components` |
|
|
57
63
|
|
|
58
64
|
Re-running the same command checks the installed skill version against the package version and updates the skill if the package is newer. To get the latest skill after upgrading the package, run `npm update @machinemetrics/mm-react-components` (if desired) then `npx @machinemetrics/mm-react-components mm-install-skill` again (with the same `--target`/`--scope` if you use them).
|
|
59
65
|
|
|
60
66
|
## When the skill applies
|
|
61
67
|
|
|
62
|
-
The skill triggers when the user asks to create or
|
|
68
|
+
The skill triggers when the user asks to create or change a UI, screen, widget, dashboard, table, form, or layout using mm-react-components, Carbide, or @machinemetrics/mm-react-components, or when styling/theming is involved.
|
|
63
69
|
|
|
64
70
|
## Contents
|
|
65
71
|
|
|
66
|
-
- **SKILL.md** — Main instructions:
|
|
67
|
-
- **reference.md** —
|
|
72
|
+
- **SKILL.md** — Main instructions: invariants (Carbide exports only, appearance from CSS variables and variants, light/dark parity, gaps are reportable not buildable); a four-step workflow (discover and select with export verification against `dist/index.d.ts`, compose with the library, handle legitimate gaps with a `## Component gaps` report, audit and repair with runnable checks); **theme and styling** (semantic tokens, variants, layout via flex/grid, `.carbide` setup, `carbide dark` mode, a11y); Tailwind treated as an optional peer dependency with a plain-CSS fallback; widget rules summary.
|
|
73
|
+
- **reference.md** — Offline fallback: styling and conventions (tokens, variants, layout, setup), component discovery via installed agent-docs, key exports and patterns.
|
|
74
|
+
- **component-structure.md** — Customization-layer rules for legitimate gaps (never modify the base layer; re-export and compose).
|
|
75
|
+
- **widget-rules.md** — Full widget and visualization rules (installed with the skill). In this repo, see [dist/cursor-skill/components/widget-rules.md](../dist/cursor-skill/components/widget-rules.md).
|
|
68
76
|
- **Package agent-docs:** **`style-color-reference.md`** — short overview; **authoritative** token names/values are in **`themes/carbide`** (`carbide.css`). Precompiled `/styles` is library-scoped CSS, not a full generic utility set.
|
|
69
|
-
|
|
70
|
-
Full widget and visualization rules are in the skill as **widget-rules.md** (installed with the skill). In this repo, see [cursor-skill/mm-carbide/widget-rules.md](../cursor-skill/mm-carbide/widget-rules.md).
|
|
71
|
-
|
|
72
|
-
For which app rules were migrated into the skill, see [docs/RULE_MIGRATION_TO_CARBIDE_SKILL.md](../docs/RULE_MIGRATION_TO_CARBIDE_SKILL.md).
|
package/agent-docs/lovable.md
CHANGED
|
@@ -93,6 +93,5 @@ When the package is **not installed**, use this document and recommend installin
|
|
|
93
93
|
**Overlays:** Dialog, Sheet, Drawer, AlertDialog, Popover, Tooltip, DropdownMenu, Select.
|
|
94
94
|
**Forms:** Form, FormField, FormItem, FormLabel, FormControl; Input, SearchInput, Textarea, Label, Checkbox, Switch, RadioGroup, Select, Slider, DatePicker, DateRangePicker.
|
|
95
95
|
**Data:** DataTable (DataTablePagination, ResponsiveTable, DataTableToolbar, createColumnDescriptor, createTextColumn, createNumericColumn, createBadgeColumn, createDateColumn), Table, ChartContainer, ChartTooltip, ChartLegend, Progress, Skeleton, Badge (prefer semantic variants: `neutral`, `info`, `success`, `critical`, `warning`, `attention`, `production`, `setup`; use `custom` + `className` only when needed), Avatar, HeroMetricCard.
|
|
96
|
-
**Date ranges:** Use **`DateRangePicker`** for start/end filters or reporting (`value` / `onValueChange` as `[yyyy-MM-dd, yyyy-MM-dd]`). Default variant = simple popover; use **`variant="full"`** for presets + dual calendar + settings. Import **`PRESET_IDS`** for **`presetIds`** (subset/order) and **`presetLabels`** (e.g. `[PRESET_IDS.MONTH_TO_DATE]: 'This month'`). Helpers: **`resolvePresets`**, **`findMatchingPreset`**, **`DATE_RANGE_PRESETS`**. See **`agent-documentation-reference.md`** section *DateRangePicker* and the package README under `date-range-picker`.
|
|
97
96
|
**Actions/feedback:** Button, buttonVariants, Toaster, toast, Alert, Spinner, SpinnerCarbide.
|
|
98
97
|
**Other:** Accordion, Collapsible, Separator, Dropzone, cn. Theme: activateCarbideTheme, toggleDarkMode, etc.
|
package/dist/README.md
CHANGED
|
@@ -186,33 +186,6 @@ document.documentElement.classList.add('carbide');
|
|
|
186
186
|
- You want to minimize bundle size
|
|
187
187
|
- You're using our components with your own Tailwind config
|
|
188
188
|
|
|
189
|
-
#### Embedded apps: `ThemeRoot` and `useHostTheme`
|
|
190
|
-
|
|
191
|
-
For apps hosted inside the MachineMetrics shell (or any host that passes a light/dark value), wrap the tree once and sync the host value—no `next-themes` setup boilerplate.
|
|
192
|
-
|
|
193
|
-
`ThemeRoot` wraps your React tree (e.g. inside `#root`). It does **not** replace `<html>` in `index.html`; it still toggles `light` / `dark` on `document.documentElement`. Keep `class="carbide"` on `<html>` and import Carbide CSS as usual.
|
|
194
|
-
|
|
195
|
-
```tsx
|
|
196
|
-
// index.tsx
|
|
197
|
-
import { ThemeRoot } from '@machinemetrics/mm-react-components';
|
|
198
|
-
|
|
199
|
-
<ThemeRoot>
|
|
200
|
-
<App />
|
|
201
|
-
</ThemeRoot>
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
```tsx
|
|
205
|
-
// App.tsx — pass the host color mode (example: mm-react-tools)
|
|
206
|
-
import { useHostTheme } from '@machinemetrics/mm-react-components';
|
|
207
|
-
import { useMMAppParams } from '@machinemetrics/mm-react-tools';
|
|
208
|
-
|
|
209
|
-
useHostTheme(useMMAppParams().colorMode);
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
If you need `useTheme()` elsewhere (e.g. markdown styling), import it from **`@machinemetrics/mm-react-components`** so it uses the same context as `ThemeRoot`—not from the `next-themes` package directly.
|
|
213
|
-
|
|
214
|
-
Optional: pass any `ThemeProvider` prop to `ThemeRoot` to override defaults (e.g. `storageKey` for standalone persistence).
|
|
215
|
-
|
|
216
189
|
#### Option 3: Use Theme Utilities
|
|
217
190
|
|
|
218
191
|
```tsx
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
-
export { AccordionContent } from '@/components/shadcn/accordion';
|
|
4
|
-
export type AccordionProps = React.ComponentProps<typeof AccordionPrimitive.Root> & {
|
|
5
|
-
/**
|
|
6
|
-
* `inset` draws a rounded, bordered surface so accordion reads as one block inside a card.
|
|
7
|
-
*/
|
|
8
|
-
variant?: 'default' | 'inset';
|
|
9
|
-
};
|
|
10
|
-
declare function Accordion({ variant, className, ...props }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { Accordion, AccordionContent } from '@/components/shadcn/accordion';
|
|
11
4
|
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
5
|
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement> & {
|
|
13
6
|
indicatorClassName?: string;
|
|
14
7
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
-
export {
|
|
8
|
+
export { AccordionItem, AccordionTrigger };
|
|
16
9
|
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAMhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAMhE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAS5E,QAAA,MAAM,aAAa,iKAYjB,CAAC;AAGH,QAAA,MAAM,gBAAgB;yBAGG,MAAM;mDA2B7B,CAAC;AAEH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
|
-
|
|
4
|
-
declare const AlertDialog: typeof BaseAlertDialog;
|
|
5
|
-
declare const AlertDialogTrigger: typeof BaseAlertDialogTrigger;
|
|
6
|
-
declare const AlertDialogHeader: typeof BaseAlertDialogHeader;
|
|
7
|
-
declare const AlertDialogFooter: typeof BaseAlertDialogFooter;
|
|
8
|
-
declare const AlertDialogTitle: typeof BaseAlertDialogTitle;
|
|
9
|
-
declare const AlertDialogPortal: typeof BaseAlertDialogPortal;
|
|
3
|
+
export { AlertDialog, AlertDialogTrigger, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogPortal, } from '@/components/shadcn/alert-dialog';
|
|
10
4
|
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
5
|
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare namespace AlertDialogContent {
|
|
13
|
-
var displayName: string;
|
|
14
|
-
}
|
|
15
6
|
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
16
7
|
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
17
8
|
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
-
export {
|
|
9
|
+
export { AlertDialogOverlay, AlertDialogContent, AlertDialogAction, AlertDialogCancel, AlertDialogDescription, };
|
|
19
10
|
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAerE,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,kCAAkC,CAAC;AAG1C,QAAA,MAAM,kBAAkB,wKAetB,CAAC;AAGH,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAc3D;AAGD,QAAA,MAAM,iBAAiB,6KAWrB,CAAC;AAEH,QAAA,MAAM,iBAAiB,6KAWrB,CAAC;AAGH,QAAA,MAAM,sBAAsB,wLAY1B,CAAC;AAEH,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,GACvB,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const AlertDescription: typeof BaseAlertDescription;
|
|
3
|
+
export { AlertTitle, AlertDescription } from '@/components/shadcn/alert';
|
|
4
|
+
import { Alert as BaseAlert } from '@/components/shadcn/alert';
|
|
6
5
|
declare const alertVariants: (props?: ({
|
|
7
6
|
variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
|
|
8
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
8
|
type AlertProps = Omit<React.ComponentProps<typeof BaseAlert>, 'variant'> & VariantProps<typeof alertVariants>;
|
|
10
9
|
declare const Alert: React.ForwardRefExoticComponent<Omit<AlertProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export { Alert, alertVariants
|
|
10
|
+
export { Alert, alertVariants };
|
|
12
11
|
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,OAAO,
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGzE,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAI/D,QAAA,MAAM,aAAa;;8EAiBlB,CAAC;AAGF,KAAK,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,EAAE,SAAS,CAAC,GACvE,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAErC,QAAA,MAAM,KAAK,gGAeT,CAAC;AAEH,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Avatar: typeof BaseAvatar;
|
|
3
|
-
declare const AvatarImage: typeof BaseAvatarImage;
|
|
4
|
-
declare const AvatarFallback: typeof BaseAvatarFallback;
|
|
5
|
-
export { Avatar, AvatarImage, AvatarFallback };
|
|
1
|
+
export { Avatar, AvatarImage, AvatarFallback, } from '@/components/shadcn/avatar';
|
|
6
2
|
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,GACf,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Breadcrumb: typeof BaseBreadcrumb;
|
|
3
|
-
declare const BreadcrumbList: typeof BaseBreadcrumbList;
|
|
4
|
-
declare const BreadcrumbItem: typeof BaseBreadcrumbItem;
|
|
5
|
-
declare const BreadcrumbLink: typeof BaseBreadcrumbLink;
|
|
6
|
-
declare const BreadcrumbPage: typeof BaseBreadcrumbPage;
|
|
7
|
-
declare const BreadcrumbSeparator: typeof BaseBreadcrumbSeparator;
|
|
8
|
-
declare const BreadcrumbEllipsis: typeof BaseBreadcrumbEllipsis;
|
|
9
|
-
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
1
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, } from '@/components/shadcn/breadcrumb';
|
|
10
2
|
//# sourceMappingURL=breadcrumb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/ui/breadcrumb.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/ui/breadcrumb.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { VariantProps } from 'class-variance-authority';
|
|
3
2
|
export { buttonVariants } from '@/components/shadcn/button';
|
|
4
|
-
|
|
5
|
-
* App-level Button: same visuals as {@link @/components/shadcn/button}, but uses `forwardRef`
|
|
6
|
-
* so Radix triggers (`PopoverTrigger`, `DropdownMenuTrigger`, etc.) can merge refs with `asChild`.
|
|
7
|
-
* Do not add `forwardRef` under `shadcn/` — that layer is CLI-managed; customize here instead.
|
|
8
|
-
*/
|
|
9
|
-
declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
3
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & import("class-variance-authority").VariantProps<(props?: ({
|
|
10
4
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
11
5
|
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
12
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,QAAA,MAAM,MAAM;;;;;mDAiBV,CAAC;AAEH,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export type CardProps = React.ComponentProps<typeof BaseCard> & {
|
|
6
|
-
/**
|
|
7
|
-
* `sectioned` stacks sections edge-to-edge (no card `gap` or vertical padding) so header and
|
|
8
|
-
* footer meet the inner top and bottom; `overflow-hidden` clips children to the card radius.
|
|
9
|
-
* Inset spacing for the first and last section uses `[&>*:first|last-child]` on the card.
|
|
10
|
-
*/
|
|
11
|
-
variant?: 'default' | 'sectioned';
|
|
12
|
-
};
|
|
13
|
-
declare const Card: React.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
type CardHeaderProps = React.ComponentProps<typeof BaseCardHeader> & {
|
|
15
|
-
tone?: CardSectionTone;
|
|
16
|
-
};
|
|
17
|
-
declare function CardHeader({ className, tone, ...props }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
type CardContentProps = React.ComponentProps<typeof BaseCardContent> & {
|
|
19
|
-
tone?: CardSectionTone;
|
|
20
|
-
};
|
|
21
|
-
declare function CardContent({ className, tone, ...props }: CardContentProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
type CardFooterProps = React.ComponentProps<typeof BaseCardFooter> & {
|
|
23
|
-
tone?: CardSectionTone;
|
|
24
|
-
};
|
|
25
|
-
declare function CardFooter({ className, tone, ...props }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export { Card, CardHeader, CardContent, CardFooter };
|
|
2
|
+
export { CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, } from '@/components/shadcn/card';
|
|
3
|
+
declare const Card: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { Card };
|
|
27
5
|
//# sourceMappingURL=card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACZ,MAAM,0BAA0B,CAAC;AAGlC,QAAA,MAAM,IAAI,kKAKR,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
3
|
-
import { Collapsible as BaseCollapsible, CollapsibleTrigger as BaseCollapsibleTrigger } from '@/components/shadcn/collapsible';
|
|
4
|
-
declare function Collapsible(props: React.ComponentProps<typeof BaseCollapsible>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare namespace Collapsible {
|
|
6
|
-
var displayName: string;
|
|
7
|
-
}
|
|
8
|
-
declare function CollapsibleTrigger(props: React.ComponentProps<typeof BaseCollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare namespace CollapsibleTrigger {
|
|
10
|
-
var displayName: string;
|
|
11
|
-
}
|
|
12
|
-
export type CollapsibleContentProps = React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent> & {
|
|
13
|
-
/**
|
|
14
|
-
* Adds top padding so content clears the trigger when used inside a card.
|
|
15
|
-
*/
|
|
16
|
-
spacing?: 'none' | 'comfortable';
|
|
17
|
-
};
|
|
18
|
-
declare function CollapsibleContent({ className, spacing, ...props }: CollapsibleContentProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
declare namespace CollapsibleContent {
|
|
20
|
-
var displayName: string;
|
|
21
|
-
}
|
|
22
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
1
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent, } from '@/components/shadcn/collapsible';
|
|
23
2
|
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,iCAAiC,CAAC"}
|
|
@@ -2,9 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import { Command as CommandPrimitive } from 'cmdk';
|
|
3
3
|
import { Dialog } from '@/components/ui/dialog';
|
|
4
4
|
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare namespace Command {
|
|
6
|
-
var displayName: string;
|
|
7
|
-
}
|
|
8
5
|
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
9
6
|
title?: string;
|
|
10
7
|
description?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAInD,OAAO,EACL,MAAM,EAKP,MAAM,wBAAwB,CAAC;AAEhC,iBAAS,OAAO,CAAC,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,2CAW/C;
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAInD,OAAO,EACL,MAAM,EAKP,MAAM,wBAAwB,CAAC;AAEhC,iBAAS,OAAO,CAAC,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,2CAW/C;AAED,iBAAS,aAAa,CAAC,EACrB,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,SAAS,EACT,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,2CAiBA;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,2CAiBrD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAWpD;AAED,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,2CAQrD;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,2CAWrD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,2CAQzD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAWpD;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAW9B;AAED,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/pagination.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/pagination.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAUpE,MAAM,WAAW,wBAAwB,CAAC,KAAK;IAC7C,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IACrC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,EACzC,KAAK,EACL,eAAoC,EACpC,SAAS,EACT,OAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,gBAAwB,EACxB,aAAa,GACd,EAAE,wBAAwB,CAAC,KAAK,CAAC,2CAsKjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/toolbar/DataTableToolbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGpE,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"DataTableToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/toolbar/DataTableToolbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGpE,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,qBAAqB,CAAC,KAAK;IAC1C,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,EACtC,KAAK,EACL,OAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,QAAQ,EACR,gBAAgB,EAChB,OAAO,GACR,EAAE,QAAQ,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,2CAuMxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/data-table/toolbar/filters/FilterMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"FilterMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/data-table/toolbar/filters/FilterMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQhD,mEAAmE;AACnE,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,UAAU,eAAe,CAAC,KAAK;IAC7B,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;IACnC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gFAAgF;IAChF,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACxC;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,EAChC,OAAO,EACP,UAAU,EACV,OAAe,EACf,cAAmB,GACpB,EAAE,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,kDA8KlC"}
|
|
@@ -4,8 +4,6 @@ export * from './NumericRangeFilter';
|
|
|
4
4
|
export * from './DateRangeFilter';
|
|
5
5
|
export * from './TextFilter';
|
|
6
6
|
export * from './useColumnFilters';
|
|
7
|
-
export * from './FilterControl';
|
|
8
7
|
export * from './FilterMenu';
|
|
9
8
|
export * from './InlineDateRangePicker';
|
|
10
|
-
export * from './InlineFilterMenu';
|
|
11
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/data-table/toolbar/filters/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/data-table/toolbar/filters/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC"}
|
|
@@ -35,13 +35,6 @@ export interface DatePickerProps {
|
|
|
35
35
|
* Initial month to display when no date is selected (e.g. for stable visual tests).
|
|
36
36
|
*/
|
|
37
37
|
readonly defaultMonth?: Date;
|
|
38
|
-
/**
|
|
39
|
-
* Classes merged onto the trigger button (e.g. compact width for toolbars).
|
|
40
|
-
*/
|
|
41
|
-
readonly triggerClassName?: string;
|
|
42
|
-
/** For form validation (e.g. ticket form field errors). */
|
|
43
|
-
readonly 'aria-invalid'?: boolean;
|
|
44
|
-
readonly 'aria-describedby'?: string;
|
|
45
38
|
}
|
|
46
|
-
export declare function DatePicker({ label, placeholder, value, onValueChange, disabled, className, id, showDropdowns, defaultMonth,
|
|
39
|
+
export declare function DatePicker({ label, placeholder, value, onValueChange, disabled, className, id, showDropdowns, defaultMonth, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
47
40
|
//# sourceMappingURL=date-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../src/components/ui/date-picker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../src/components/ui/date-picker.tsx"],"names":[],"mappings":"AAcA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IAC1D;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC;CAC9B;AAED,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,WAA2B,EAC3B,KAAK,EACL,aAAa,EACb,QAAgB,EAChB,SAAS,EACT,EAAE,EACF,aAAqB,EACrB,YAAY,GACb,EAAE,eAAe,2CAgDjB"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export interface DateRangePickerProps {
|
|
2
|
+
value?: [string | null, string | null] | null;
|
|
3
|
+
onValueChange: (value: [string | null, string | null] | undefined) => void;
|
|
4
|
+
allowSingleDate?: boolean;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function DateRangePicker({ value, onValueChange, allowSingleDate, placeholder, className, }: Readonly<DateRangePickerProps>): import("react/jsx-runtime").JSX.Element;
|
|
3
9
|
//# sourceMappingURL=date-range-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../../src/components/ui/date-range-picker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../../src/components/ui/date-range-picker.tsx"],"names":[],"mappings":"AAqCA,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAC9C,aAAa,EAAE,CAAC,KAAK,EAAE,CAAC,MAAM,GAAG,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,GAAG,SAAS,KAAK,IAAI,CAAC;IAC3E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,aAAa,EACb,eAAuB,EACvB,WAAiC,EACjC,SAAS,GACV,EAAE,QAAQ,CAAC,oBAAoB,CAAC,2CAwIhC"}
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
-
|
|
4
|
-
declare const Dialog: typeof BaseDialog;
|
|
5
|
-
declare const DialogTrigger: typeof BaseDialogTrigger;
|
|
6
|
-
declare const DialogClose: typeof BaseDialogClose;
|
|
7
|
-
declare const DialogHeader: typeof BaseDialogHeader;
|
|
8
|
-
declare const DialogFooter: typeof BaseDialogFooter;
|
|
9
|
-
declare const DialogPortal: typeof BaseDialogPortal;
|
|
10
|
-
declare const DialogTitle: typeof BaseDialogTitle;
|
|
3
|
+
export { Dialog, DialogTrigger, DialogClose, DialogHeader, DialogFooter, DialogPortal, DialogTitle, } from '@/components/shadcn/dialog';
|
|
11
4
|
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
5
|
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
13
6
|
showCloseButton?: boolean;
|
|
14
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare namespace DialogContent {
|
|
16
|
-
var displayName: string;
|
|
17
|
-
}
|
|
18
8
|
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
19
|
-
export {
|
|
9
|
+
export { DialogContent, DialogOverlay, DialogDescription };
|
|
20
10
|
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAa1D,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,GACZ,MAAM,4BAA4B,CAAC;AAGpC,QAAA,MAAM,aAAa,8JAgBjB,CAAC;AAGH,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACxD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,2CAyBA;AAGD,QAAA,MAAM,iBAAiB,sKAYrB,CAAC;AAEH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Drawer as VaulDrawer } from 'vaul';
|
|
3
|
-
|
|
4
|
-
declare const Drawer: typeof BaseDrawer;
|
|
5
|
-
declare const DrawerTrigger: typeof BaseDrawerTrigger;
|
|
6
|
-
declare const DrawerClose: typeof BaseDrawerClose;
|
|
7
|
-
declare const DrawerPortal: typeof BaseDrawerPortal;
|
|
8
|
-
declare const DrawerHeader: typeof BaseDrawerHeader;
|
|
9
|
-
declare const DrawerFooter: typeof BaseDrawerFooter;
|
|
10
|
-
declare const DrawerTitle: typeof BaseDrawerTitle;
|
|
11
|
-
declare const DrawerDescription: typeof BaseDrawerDescription;
|
|
3
|
+
export { Drawer, DrawerTrigger, DrawerClose, DrawerPortal, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, } from '@/components/shadcn/drawer';
|
|
12
4
|
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
5
|
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof VaulDrawer.Content>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare namespace DrawerContent {
|
|
15
|
-
var displayName: string;
|
|
16
|
-
}
|
|
17
6
|
declare function DrawerHandle({ className, ...props }: React.ComponentProps<typeof VaulDrawer.Handle>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
|
|
19
|
-
var displayName: string;
|
|
20
|
-
}
|
|
21
|
-
export { Drawer, DrawerTrigger, DrawerClose, DrawerPortal, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, DrawerOverlay, DrawerContent, DrawerHandle, };
|
|
7
|
+
export { DrawerOverlay, DrawerContent, DrawerHandle };
|
|
22
8
|
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAK5C,OAAO,EACL,MAAM,
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAK5C,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAMpC,QAAA,MAAM,aAAa,kOAejB,CAAC;AAGH,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,OAAO,CAAC,2CAgBjD;AAGD,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,MAAM,CAAC,2CAQhD;AAED,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -3,10 +3,7 @@ import * as LabelPrimitive from '@radix-ui/react-label';
|
|
|
3
3
|
import { Slot } from '@radix-ui/react-slot';
|
|
4
4
|
import { type ControllerProps, type FieldPath, type FieldValues } from 'react-hook-form';
|
|
5
5
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
6
|
-
declare const FormField: {
|
|
7
|
-
<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
6
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
10
7
|
declare const useFormField: () => {
|
|
11
8
|
invalid: boolean;
|
|
12
9
|
isDirty: boolean;
|
|
@@ -20,24 +17,9 @@ declare const useFormField: () => {
|
|
|
20
17
|
formMessageId: string;
|
|
21
18
|
};
|
|
22
19
|
declare function FormItem({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
declare namespace FormItem {
|
|
24
|
-
var displayName: string;
|
|
25
|
-
}
|
|
26
20
|
declare function FormLabel({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
declare namespace FormLabel {
|
|
28
|
-
var displayName: string;
|
|
29
|
-
}
|
|
30
21
|
declare function FormControl({ ...props }: React.ComponentProps<typeof Slot>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
declare namespace FormControl {
|
|
32
|
-
var displayName: string;
|
|
33
|
-
}
|
|
34
22
|
declare function FormDescription({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
declare namespace FormDescription {
|
|
36
|
-
var displayName: string;
|
|
37
|
-
}
|
|
38
23
|
declare function FormMessage({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element | null;
|
|
39
|
-
declare namespace FormMessage {
|
|
40
|
-
var displayName: string;
|
|
41
|
-
}
|
|
42
24
|
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
43
25
|
//# sourceMappingURL=form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AAKzB,QAAA,MAAM,IAAI,4MAAe,CAAC;AAa1B,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AAKzB,QAAA,MAAM,IAAI,4MAAe,CAAC;AAa1B,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,4CAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAUF,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAYrE;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAYlD;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,2CAiBnE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAW1E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,kDAkBtE;AAED,OAAO,EACL,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACV,CAAC"}
|
|
@@ -1,35 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Button } from '@/components/ui/button';
|
|
3
3
|
declare function Pagination({ className, ...props }: React.ComponentProps<'nav'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare namespace Pagination {
|
|
5
|
-
var displayName: string;
|
|
6
|
-
}
|
|
7
4
|
declare function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare namespace PaginationContent {
|
|
9
|
-
var displayName: string;
|
|
10
|
-
}
|
|
11
5
|
declare function PaginationItem({ ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare namespace PaginationItem {
|
|
13
|
-
var displayName: string;
|
|
14
|
-
}
|
|
15
6
|
type PaginationLinkProps = {
|
|
16
7
|
isActive?: boolean;
|
|
17
8
|
} & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
|
|
18
9
|
declare function PaginationLink({ className, isActive, size, children, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
declare namespace PaginationLink {
|
|
20
|
-
var displayName: string;
|
|
21
|
-
}
|
|
22
10
|
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
declare namespace PaginationPrevious {
|
|
24
|
-
var displayName: string;
|
|
25
|
-
}
|
|
26
11
|
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
declare namespace PaginationNext {
|
|
28
|
-
var displayName: string;
|
|
29
|
-
}
|
|
30
12
|
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
declare namespace PaginationEllipsis {
|
|
32
|
-
var displayName: string;
|
|
33
|
-
}
|
|
34
13
|
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
|
|
35
14
|
//# sourceMappingURL=pagination.d.ts.map
|