@uselets/ui 1.7.2 → 1.9.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/README.md +10 -3
- package/dist/{chart-DHS2QeM8.d.ts → chart-lqgodZYQ.d.ts} +11 -7
- package/dist/cli/uselets.mjs.map +1 -1
- package/dist/components/accordion.d.ts +5 -5
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.js.map +1 -1
- package/dist/components/alert-dialog.d.ts +13 -13
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.d.ts +5 -5
- package/dist/components/alert.js +1 -1
- package/dist/components/alert.js.map +1 -1
- package/dist/components/anchor.d.ts +2 -2
- package/dist/components/anchor.js +1 -1
- package/dist/components/anchor.js.map +1 -1
- package/dist/components/area-chart.d.ts +7 -3
- package/dist/components/area-chart.js +1 -1
- package/dist/components/area-chart.js.map +1 -1
- package/dist/components/avatar.d.ts +7 -7
- package/dist/components/avatar.js +1 -1
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.d.ts +3 -3
- package/dist/components/badge.js +1 -1
- package/dist/components/badge.js.map +1 -1
- package/dist/components/bar-chart.d.ts +7 -3
- package/dist/components/bar-chart.js +1 -1
- package/dist/components/bar-chart.js.map +1 -1
- package/dist/components/breadcrumb.d.ts +8 -8
- package/dist/components/breadcrumb.js +1 -1
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button-group.d.ts +4 -4
- package/dist/components/button-group.js +1 -1
- package/dist/components/button-group.js.map +1 -1
- package/dist/components/button.d.ts +3 -3
- package/dist/components/button.js +1 -1
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar.d.ts +3 -3
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/card.d.ts +9 -9
- package/dist/components/card.js +1 -1
- package/dist/components/card.js.map +1 -1
- package/dist/components/carousel.d.ts +7 -7
- package/dist/components/carousel.js +1 -1
- package/dist/components/carousel.js.map +1 -1
- package/dist/components/carousel.spec.js +1 -1
- package/dist/components/carousel.spec.js.map +1 -1
- package/dist/components/center.d.ts +2 -2
- package/dist/components/center.js +1 -1
- package/dist/components/center.js.map +1 -1
- package/dist/components/chart.d.ts +2 -2
- package/dist/components/chart.js +2 -2
- package/dist/components/chart.js.map +1 -1
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/code.d.ts +2 -2
- package/dist/components/code.js +1 -1
- package/dist/components/code.js.map +1 -1
- package/dist/components/collapsible.d.ts +4 -4
- package/dist/components/collapsible.js +1 -1
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/combobox.d.ts +16 -16
- package/dist/components/combobox.js +1 -1
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.d.ts +10 -10
- package/dist/components/command.js +1 -1
- package/dist/components/command.js.map +1 -1
- package/dist/components/container.d.ts +2 -2
- package/dist/components/container.js +1 -1
- package/dist/components/container.js.map +1 -1
- package/dist/components/data-table.d.ts +9 -9
- package/dist/components/data-table.js +1 -1
- package/dist/components/data-table.js.map +1 -1
- package/dist/components/date-range-picker.d.ts +12 -12
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-range-picker.js.map +1 -1
- package/dist/components/dialog.d.ts +12 -12
- package/dist/components/dialog.js +1 -1
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/donut-chart.d.ts +2 -2
- package/dist/components/donut-chart.js +1 -1
- package/dist/components/donut-chart.js.map +1 -1
- package/dist/components/drawer.d.ts +14 -12
- package/dist/components/drawer.js +1 -1
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.d.ts +16 -16
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/dropzone.d.ts +2 -2
- package/dist/components/dropzone.js +1 -1
- package/dist/components/dropzone.js.map +1 -1
- package/dist/components/empty.d.ts +7 -7
- package/dist/components/empty.js +1 -1
- package/dist/components/empty.js.map +1 -1
- package/dist/components/field.d.ts +11 -11
- package/dist/components/field.js +1 -1
- package/dist/components/field.js.map +1 -1
- package/dist/components/field.spec.js +1 -1
- package/dist/components/field.spec.js.map +1 -1
- package/dist/components/flex.d.ts +2 -2
- package/dist/components/flex.js +1 -1
- package/dist/components/flex.js.map +1 -1
- package/dist/components/grid.d.ts +3 -3
- package/dist/components/grid.js +1 -1
- package/dist/components/grid.js.map +1 -1
- package/dist/components/group.d.ts +2 -2
- package/dist/components/group.js +1 -1
- package/dist/components/group.js.map +1 -1
- package/dist/components/heading.d.ts +2 -2
- package/dist/components/heading.js +1 -1
- package/dist/components/heading.js.map +1 -1
- package/dist/components/hover-card.d.ts +4 -4
- package/dist/components/hover-card.js +1 -1
- package/dist/components/hover-card.js.map +1 -1
- package/dist/components/input-group.d.ts +7 -7
- package/dist/components/input-group.js +1 -1
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input-otp.d.ts +5 -5
- package/dist/components/input-otp.js +1 -1
- package/dist/components/input-otp.js.map +1 -1
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +1 -1
- package/dist/components/input.js.map +1 -1
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/kbd.js +1 -1
- package/dist/components/kbd.js.map +1 -1
- package/dist/components/label.d.ts +2 -2
- package/dist/components/label.js +1 -1
- package/dist/components/label.js.map +1 -1
- package/dist/components/list.d.ts +4 -4
- package/dist/components/list.js +1 -1
- package/dist/components/list.js.map +1 -1
- package/dist/components/mask-input.d.ts +2 -2
- package/dist/components/mask-input.js +1 -1
- package/dist/components/mask-input.js.map +1 -1
- package/dist/components/native-select.d.ts +4 -4
- package/dist/components/native-select.js +1 -1
- package/dist/components/native-select.js.map +1 -1
- package/dist/components/navigation-menu.d.ts +9 -9
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/navigation-menu.js.map +1 -1
- package/dist/components/pagination.d.ts +8 -8
- package/dist/components/pagination.js +1 -1
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/pie-chart.d.ts +10 -4
- package/dist/components/pie-chart.js +1 -1
- package/dist/components/pie-chart.js.map +1 -1
- package/dist/components/popover.d.ts +8 -8
- package/dist/components/popover.js +1 -1
- package/dist/components/popover.js.map +1 -1
- package/dist/components/progress.d.ts +2 -2
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.js.map +1 -1
- package/dist/components/radio-group.d.ts +3 -3
- package/dist/components/radio-group.js +1 -1
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/resizable.d.ts +4 -4
- package/dist/components/resizable.js +1 -1
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/scroll-area.d.ts +3 -3
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.d.ts +11 -11
- package/dist/components/select.js +1 -1
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.d.ts +2 -2
- package/dist/components/separator.js +1 -1
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sidebar.d.ts +25 -25
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.js.map +1 -1
- package/dist/components/simple-grid.d.ts +2 -2
- package/dist/components/simple-grid.js +1 -1
- package/dist/components/simple-grid.js.map +1 -1
- package/dist/components/skeleton.d.ts +2 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/skeleton.spec.js +1 -1
- package/dist/components/skeleton.spec.js.map +1 -1
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.js.map +1 -1
- package/dist/components/sonner.d.ts +2 -2
- package/dist/components/sonner.js +1 -1
- package/dist/components/sonner.js.map +1 -1
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/spinner.js +1 -1
- package/dist/components/spinner.js.map +1 -1
- package/dist/components/stack.d.ts +2 -2
- package/dist/components/stack.js +1 -1
- package/dist/components/stack.js.map +1 -1
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.d.ts +10 -10
- package/dist/components/table.js +1 -1
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.d.ts +5 -5
- package/dist/components/tabs.js +1 -1
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/text.d.ts +2 -2
- package/dist/components/text.js +1 -1
- package/dist/components/text.js.map +1 -1
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +1 -1
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/theme.d.ts +3 -3
- package/dist/components/theme.js +1 -1
- package/dist/components/theme.js.map +1 -1
- package/dist/components/timeline.d.ts +3 -3
- package/dist/components/timeline.js +1 -1
- package/dist/components/timeline.js.map +1 -1
- package/dist/components/toggle-group.d.ts +3 -3
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/toggle-group.js.map +1 -1
- package/dist/components/toggle.d.ts +2 -2
- package/dist/components/toggle.js +1 -1
- package/dist/components/toggle.js.map +1 -1
- package/dist/components/tooltip.d.ts +6 -6
- package/dist/components/tooltip.js +1 -1
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/unstyled-button.d.ts +2 -2
- package/dist/components/unstyled-button.js +1 -1
- package/dist/components/unstyled-button.js.map +1 -1
- package/dist/components/visibility.d.ts +3 -3
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.js.map +1 -1
- package/dist/{dist-C35vdEt2.js → dist-B-hwiqYg.js} +13 -13
- package/dist/dist-B-hwiqYg.js.map +1 -0
- package/dist/hooks/use-breakpoint-value.d.ts +1 -1
- package/dist/hooks/use-breakpoint-value.js +1 -1
- package/dist/hooks/use-breakpoint-value.js.map +1 -1
- package/dist/hooks/use-breakpoint-value.spec.js +1 -1
- package/dist/hooks/use-breakpoint-value.spec.js.map +1 -1
- package/dist/hooks/use-breakpoint.d.ts +1 -1
- package/dist/hooks/use-breakpoint.js +1 -1
- package/dist/hooks/use-breakpoint.js.map +1 -1
- package/dist/hooks/use-breakpoint.spec.js +1 -1
- package/dist/hooks/use-breakpoint.spec.js.map +1 -1
- package/dist/hooks/use-disclosure.d.ts +1 -1
- package/dist/hooks/use-disclosure.js +1 -1
- package/dist/hooks/use-disclosure.js.map +1 -1
- package/dist/hooks/use-disclosure.spec.js +1 -1
- package/dist/hooks/use-disclosure.spec.js.map +1 -1
- package/dist/hooks/use-document-visibility.d.ts +1 -1
- package/dist/hooks/use-document-visibility.js +1 -1
- package/dist/hooks/use-document-visibility.js.map +1 -1
- package/dist/hooks/use-document-visibility.spec.js +1 -1
- package/dist/hooks/use-document-visibility.spec.js.map +1 -1
- package/dist/hooks/use-idle.d.ts +1 -1
- package/dist/hooks/use-idle.js +1 -1
- package/dist/hooks/use-idle.js.map +1 -1
- package/dist/hooks/use-idle.spec.js +1 -1
- package/dist/hooks/use-idle.spec.js.map +1 -1
- package/dist/hooks/use-interval.d.ts +1 -1
- package/dist/hooks/use-interval.js +1 -1
- package/dist/hooks/use-interval.js.map +1 -1
- package/dist/hooks/use-interval.spec.js +1 -1
- package/dist/hooks/use-interval.spec.js.map +1 -1
- package/dist/hooks/use-local-storage.d.ts +1 -1
- package/dist/hooks/use-local-storage.js +1 -1
- package/dist/hooks/use-local-storage.js.map +1 -1
- package/dist/hooks/use-local-storage.spec.js +1 -1
- package/dist/hooks/use-local-storage.spec.js.map +1 -1
- package/dist/hooks/use-mask.d.ts +1 -1
- package/dist/hooks/use-mask.js +1 -1
- package/dist/hooks/use-mask.js.map +1 -1
- package/dist/hooks/use-mobile.d.ts +1 -1
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/hooks/use-mobile.spec.js +1 -1
- package/dist/hooks/use-mobile.spec.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/lib/badge.d.ts +11 -11
- package/dist/lib/badge.js +1 -1
- package/dist/lib/badge.js.map +1 -1
- package/dist/lib/button.d.ts +11 -11
- package/dist/lib/button.js +1 -1
- package/dist/lib/button.js.map +1 -1
- package/dist/lib/color.d.ts +11 -11
- package/dist/lib/color.js +1 -1
- package/dist/lib/color.js.map +1 -1
- package/dist/lib/compose-refs.d.ts +1 -1
- package/dist/lib/compose-refs.js +1 -1
- package/dist/lib/compose-refs.js.map +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/{magic-string.es-C-uSEkg2.js → magic-string.es-DbBO8R0S.js} +2 -2
- package/dist/{magic-string.es-C-uSEkg2.js.map → magic-string.es-DbBO8R0S.js.map} +1 -1
- package/dist/{react.esm-BagSCtI3.js → react.esm-D88qr0ij.js} +12 -12
- package/dist/{react.esm-BagSCtI3.js.map → react.esm-D88qr0ij.js.map} +1 -1
- package/dist/skills/uselets-ui/references/component-catalog.md +8 -7
- package/dist/skills/uselets-ui/references/package-guide.md +7 -1
- package/dist/styles/gomax.css +16 -0
- package/dist/styles/max.css +16 -0
- package/dist/styles/theme.css +8 -0
- package/package.json +17 -14
- package/skills/uselets-ui/references/component-catalog.md +8 -7
- package/skills/uselets-ui/references/package-guide.md +7 -1
- package/dist/dist-C35vdEt2.js.map +0 -1
- /package/dist/{chunk-CHh1Zzun.js → rolldown-runtime-Bdj-bS2b.js} +0 -0
|
@@ -105,7 +105,7 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
105
105
|
- Notes: confirmation dialog composition
|
|
106
106
|
- `badge`
|
|
107
107
|
- Exports: `Badge`, `badgeVariants`
|
|
108
|
-
- Notes: pill-shaped tag with `size: 'xs' | 'sm' | 'md' | 'lg' | 'xl'` (default `md`), `solid`/`outline`/`subtle
|
|
108
|
+
- Notes: pill-shaped tag with `size: 'xs' | 'sm' | 'md' | 'lg' | 'xl'` (default `md`), `solid`/`secondary`/`outline`/`subtle` variants, `color: UIColor` (`primary` default), and `asChild`
|
|
109
109
|
- `button`
|
|
110
110
|
- Exports: `Button`, `buttonVariants`
|
|
111
111
|
- Notes: action button with `solid`, `secondary`, `outline`, `subtle`, `ghost`, and `link` variants, `color: UIColor` (`primary` default), sizes from `xs` through `xl` plus icon sizes through `icon-xl`, and `loading`
|
|
@@ -221,25 +221,26 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
221
221
|
- Exports: `Avatar`, `AvatarBadge`, `AvatarFallback`, `AvatarGroup`, `AvatarGroupCount`, `AvatarImage`
|
|
222
222
|
- `card`
|
|
223
223
|
- Exports: `Card`, `CardAction`, `CardContent`, `CardDescription`, `CardFooter`, `CardHeader`, `CardTitle`
|
|
224
|
+
- Notes: supports `size: 'sm' | 'md' | 'lg'` with default `md`
|
|
224
225
|
- `carousel`
|
|
225
226
|
- Exports: `Carousel`, `CarouselContent`, `CarouselItem`, `CarouselPrevious`, `CarouselNext`, `CarouselIndicators`, `useCarousel`
|
|
226
227
|
- `center`
|
|
227
228
|
- Exports: `Center`, `centerVariants`
|
|
228
229
|
- `chart`
|
|
229
|
-
- Exports: `ChartContainer`, `ChartLegend`, `ChartLegendContent`, `ChartStyle`, `ChartTooltip`, `ChartTooltipContent`, `ChartConfig`
|
|
230
|
-
- Notes: low-level chart primitives. For app usage prefer the high-level `area-chart`, `bar-chart`, `pie-chart`, `donut-chart` modules. Import raw recharts primitives (`Bar`, `XAxis`, etc.) directly from `recharts` when composing with `ChartContainer`.
|
|
230
|
+
- Exports: `ChartContainer`, `ChartLegend`, `ChartLegendContent`, `ChartStyle`, `ChartTooltip`, `ChartTooltipContent`, `ChartConfig`, `ChartColorKey`, `CHART_COLOR_KEYS`, `DEFAULT_CHART_PALETTE`, `resolveChartColor`
|
|
231
|
+
- Notes: low-level chart primitives. For app usage prefer the high-level `area-chart`, `bar-chart`, `pie-chart`, `donut-chart` modules. Import raw recharts primitives (`Bar`, `XAxis`, etc.) directly from `recharts` when composing with `ChartContainer`. `ChartColorKey` is the union of theme color tokens accepted by every high-level chart (`primary | brand | gray | zinc | red | yellow | green | blue | indigo | pink`) and resolves to `var(--{key}-500)` via `resolveChartColor`.
|
|
231
232
|
- `area-chart`
|
|
232
233
|
- Exports: `AreaChart`, `AreaChartSeries`, `AreaChartType`, `AreaChartCurveType`, `AreaChartGridAxis`
|
|
233
|
-
- Notes: high-level area chart. Pass `data`, `series` (array of `{ name, label?, color? }`), and `dataKey` (X axis field). Supports `type` (default/stacked/percent/split), `curveType`, `withXAxis`, `withYAxis`, `gridAxis`, `withDots`, `withTooltip`, `withLegend`. Defaults to chart colors `--chart-1..5`.
|
|
234
|
+
- Notes: high-level area chart. Pass `data`, `series` (array of `{ name, label?, color?, colorKey? }`), and `dataKey` (X axis field). Supports `type` (default/stacked/percent/split), `curveType`, `withXAxis`, `withYAxis`, `gridAxis`, `withDots`, `withTooltip`, `withLegend`. Use `colorKey: ChartColorKey` for theme colors (`'blue'`, `'primary'`, etc.) or `color` for raw CSS values; explicit `color` wins. Defaults to chart colors `--chart-1..5`. Pass `areaProps` to spread props (e.g. `onClick`) onto each underlying recharts `<Area>`.
|
|
234
235
|
- `bar-chart`
|
|
235
236
|
- Exports: `BarChart`, `BarChartSeries`, `BarChartType`, `BarChartOrientation`, `BarChartGridAxis`
|
|
236
|
-
- Notes: high-level bar chart. Same shape as `area-chart` plus `orientation` (vertical/horizontal), `barSize`, `radius`. Supports stacked and percent types.
|
|
237
|
+
- Notes: high-level bar chart. Same shape as `area-chart` plus `orientation` (vertical/horizontal), `barSize`, `radius`. Series accept `color` / `colorKey`. Supports stacked and percent types. Pass `barProps` to spread props (e.g. `onClick`, `cursor`) onto each underlying recharts `<Bar>`.
|
|
237
238
|
- `pie-chart`
|
|
238
239
|
- Exports: `PieChart`, `PieChartBase`, `PieChartDatum`, `buildPieConfig`
|
|
239
|
-
- Notes: high-level pie chart. Pass `data` as `Array<{ name, value, color? }>`. Supports `withLabels`, `labelsPosition`, `startAngle`, `endAngle`, `paddingAngle`, `withLegend`, `withTooltip
|
|
240
|
+
- Notes: high-level pie chart. Pass `data` as `Array<{ name, value, color?, colorKey? }>`. Supports `withLabels`, `labelsPosition`, `startAngle`, `endAngle`, `paddingAngle`, `withLegend`, `withTooltip`, `strokeWidth`, and `strokeColor` (theme key or CSS value, defaults to `var(--background)` so segment gaps match the page background). Pass `pieProps` to spread props (e.g. `onClick`) onto the underlying recharts `<Pie>`. `PieChartBase` is the shared internal renderer used by `donut-chart`.
|
|
240
241
|
- `donut-chart`
|
|
241
242
|
- Exports: `DonutChart`
|
|
242
|
-
- Notes: same data shape as `pie-chart`. Adds `thickness` (donut hole size in px) and `withTotal` + `totalLabel` (renders sum in the center).
|
|
243
|
+
- Notes: same data shape as `pie-chart`. Adds `thickness` (donut hole size in px) and `withTotal` + `totalLabel` (renders sum in the center). Inherits `colorKey`, `strokeColor`, and `pieProps` from `PieChart`.
|
|
243
244
|
- `collapsible`
|
|
244
245
|
- Exports: `Collapsible`, `CollapsibleTrigger`, `CollapsibleContent`
|
|
245
246
|
- `container`
|
|
@@ -266,10 +266,16 @@ The package stylesheet exposes these palette families:
|
|
|
266
266
|
|
|
267
267
|
The same palette family names are exported as `uiColors` and `UIColor`. `Button`, `Toggle`, `Checkbox`, `RadioGroupItem`, and `Switch` use `UIColor` for color props. `ButtonColor` remains available as a compatibility alias, but new public APIs should use `UIColor`.
|
|
268
268
|
|
|
269
|
-
Each palette family is exposed
|
|
269
|
+
Each palette family is exposed in four layers:
|
|
270
270
|
|
|
271
271
|
- CSS variables such as `--primary-500`, `--brand-500`, and `--zinc-900`
|
|
272
|
+
- Semantic CSS aliases such as `--green`, `--red`, and `--gray`, mapped to `500` in light mode and `400` in dark mode
|
|
272
273
|
- Tailwind v4 utilities such as `bg-primary-500`, `text-zinc-900`, `border-red-300`
|
|
274
|
+
- Tailwind v4 semantic utilities such as `bg-green`, `text-red`, and `border-gray`
|
|
275
|
+
|
|
276
|
+
Color-aware components use semantic family aliases for their primary color. For example, `color="green"` resolves
|
|
277
|
+
to `--green-500` in light mode and `--green-400` in dark mode, while hover and subtle surfaces keep explicit
|
|
278
|
+
palette steps.
|
|
273
279
|
|
|
274
280
|
Primary semantic tokens:
|
|
275
281
|
|
package/dist/styles/gomax.css
CHANGED
|
@@ -138,6 +138,14 @@
|
|
|
138
138
|
--primary-foreground: oklch(1 0 0);
|
|
139
139
|
--brand: var(--brand-500);
|
|
140
140
|
--brand-foreground: oklch(1 0 0);
|
|
141
|
+
--gray: var(--gray-500);
|
|
142
|
+
--zinc: var(--zinc-500);
|
|
143
|
+
--red: var(--red-500);
|
|
144
|
+
--yellow: var(--yellow-500);
|
|
145
|
+
--blue: var(--blue-500);
|
|
146
|
+
--indigo: var(--indigo-500);
|
|
147
|
+
--pink: var(--pink-500);
|
|
148
|
+
--green: var(--green-500);
|
|
141
149
|
--secondary: var(--gray-100);
|
|
142
150
|
--secondary-foreground: var(--gray-900);
|
|
143
151
|
--muted: var(--gray-100);
|
|
@@ -175,6 +183,14 @@
|
|
|
175
183
|
--primary-foreground: oklch(1 0 0);
|
|
176
184
|
--brand: var(--brand-400);
|
|
177
185
|
--brand-foreground: oklch(1 0 0);
|
|
186
|
+
--gray: var(--gray-400);
|
|
187
|
+
--zinc: var(--zinc-400);
|
|
188
|
+
--red: var(--red-400);
|
|
189
|
+
--yellow: var(--yellow-400);
|
|
190
|
+
--blue: var(--blue-400);
|
|
191
|
+
--indigo: var(--indigo-400);
|
|
192
|
+
--pink: var(--pink-400);
|
|
193
|
+
--green: var(--green-400);
|
|
178
194
|
--secondary: var(--zinc-800);
|
|
179
195
|
--secondary-foreground: var(--zinc-50);
|
|
180
196
|
--muted: var(--zinc-800);
|
package/dist/styles/max.css
CHANGED
|
@@ -139,6 +139,14 @@
|
|
|
139
139
|
--primary-foreground: var(--zinc-50);
|
|
140
140
|
--brand: var(--brand-500);
|
|
141
141
|
--brand-foreground: var(--zinc-50);
|
|
142
|
+
--gray: var(--gray-500);
|
|
143
|
+
--zinc: var(--zinc-500);
|
|
144
|
+
--red: var(--red-500);
|
|
145
|
+
--yellow: var(--yellow-500);
|
|
146
|
+
--blue: var(--blue-500);
|
|
147
|
+
--indigo: var(--indigo-500);
|
|
148
|
+
--pink: var(--pink-500);
|
|
149
|
+
--green: var(--green-500);
|
|
142
150
|
--secondary: var(--zinc-100);
|
|
143
151
|
--secondary-foreground: var(--zinc-900);
|
|
144
152
|
--muted: var(--zinc-100);
|
|
@@ -176,6 +184,14 @@
|
|
|
176
184
|
--primary-foreground: var(--zinc-50);
|
|
177
185
|
--brand: var(--brand-400);
|
|
178
186
|
--brand-foreground: var(--zinc-50);
|
|
187
|
+
--gray: var(--gray-400);
|
|
188
|
+
--zinc: var(--zinc-400);
|
|
189
|
+
--red: var(--red-400);
|
|
190
|
+
--yellow: var(--yellow-400);
|
|
191
|
+
--blue: var(--blue-400);
|
|
192
|
+
--indigo: var(--indigo-400);
|
|
193
|
+
--pink: var(--pink-400);
|
|
194
|
+
--green: var(--green-400);
|
|
179
195
|
--secondary: var(--zinc-800);
|
|
180
196
|
--secondary-foreground: var(--zinc-50);
|
|
181
197
|
--muted: var(--zinc-800);
|
package/dist/styles/theme.css
CHANGED
|
@@ -154,6 +154,14 @@
|
|
|
154
154
|
--color-green-900: var(--green-900);
|
|
155
155
|
--color-green-950: var(--green-950);
|
|
156
156
|
|
|
157
|
+
--color-gray: var(--gray);
|
|
158
|
+
--color-zinc: var(--zinc);
|
|
159
|
+
--color-red: var(--red);
|
|
160
|
+
--color-yellow: var(--yellow);
|
|
161
|
+
--color-blue: var(--blue);
|
|
162
|
+
--color-indigo: var(--indigo);
|
|
163
|
+
--color-pink: var(--pink);
|
|
164
|
+
--color-green: var(--green);
|
|
157
165
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
158
166
|
--color-sidebar-border: var(--sidebar-border);
|
|
159
167
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uselets/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "React component library for the LET'S design system.",
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"package.json",
|
|
28
28
|
"README.md"
|
|
29
29
|
],
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=22.12.0"
|
|
32
|
+
},
|
|
30
33
|
"exports": {
|
|
31
34
|
".": {
|
|
32
35
|
"types": "./dist/index.d.ts",
|
|
@@ -55,7 +58,7 @@
|
|
|
55
58
|
}
|
|
56
59
|
},
|
|
57
60
|
"dependencies": {
|
|
58
|
-
"@base-ui/react": "1.
|
|
61
|
+
"@base-ui/react": "1.5.0",
|
|
59
62
|
"@fontsource-variable/inter": "5.2.8",
|
|
60
63
|
"@react-input/mask": "2.0.4",
|
|
61
64
|
"@tabler/icons-react": "3.44.0",
|
|
@@ -63,17 +66,17 @@
|
|
|
63
66
|
"class-variance-authority": "0.7.1",
|
|
64
67
|
"clsx": "2.1.1",
|
|
65
68
|
"cmdk": "1.1.1",
|
|
66
|
-
"commander": "
|
|
67
|
-
"date-fns": "4.
|
|
69
|
+
"commander": "15.0.0",
|
|
70
|
+
"date-fns": "4.4.0",
|
|
68
71
|
"embla-carousel-react": "8.6.0",
|
|
69
72
|
"input-otp": "1.4.2",
|
|
70
73
|
"next-themes": "0.4.6",
|
|
71
|
-
"radix-ui": "1.
|
|
72
|
-
"react-day-picker": "
|
|
74
|
+
"radix-ui": "1.5.0",
|
|
75
|
+
"react-day-picker": "10.0.1",
|
|
73
76
|
"react-dropzone": "15.0.0",
|
|
74
|
-
"react-resizable-panels": "4.11.
|
|
77
|
+
"react-resizable-panels": "4.11.2",
|
|
75
78
|
"recharts": "3.8.1",
|
|
76
|
-
"shadcn": "4.
|
|
79
|
+
"shadcn": "4.11.0",
|
|
77
80
|
"sonner": "2.0.7",
|
|
78
81
|
"tailwind-merge": "3.6.0",
|
|
79
82
|
"tailwind-scrollbar": "4.0.2",
|
|
@@ -87,15 +90,15 @@
|
|
|
87
90
|
"@bosh-code/tsdown-plugin-tailwindcss": "1.0.1",
|
|
88
91
|
"@tailwindcss/postcss": "4.3.0",
|
|
89
92
|
"@testing-library/react": "16.3.2",
|
|
90
|
-
"@tsdown/css": "0.22.
|
|
91
|
-
"@turbo/gen": "2.9.
|
|
92
|
-
"@types/node": "25.9.
|
|
93
|
-
"@types/react": "19.2.
|
|
93
|
+
"@tsdown/css": "0.22.2",
|
|
94
|
+
"@turbo/gen": "2.9.18",
|
|
95
|
+
"@types/node": "25.9.3",
|
|
96
|
+
"@types/react": "19.2.17",
|
|
94
97
|
"@types/react-dom": "19.2.3",
|
|
95
98
|
"jsdom": "29.1.1",
|
|
96
99
|
"tailwindcss": "4.3.0",
|
|
97
|
-
"tsdown": "0.22.
|
|
100
|
+
"tsdown": "0.22.2",
|
|
98
101
|
"typescript": "6.0.3",
|
|
99
|
-
"vitest": "4.1.
|
|
102
|
+
"vitest": "4.1.8"
|
|
100
103
|
}
|
|
101
104
|
}
|
|
@@ -105,7 +105,7 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
105
105
|
- Notes: confirmation dialog composition
|
|
106
106
|
- `badge`
|
|
107
107
|
- Exports: `Badge`, `badgeVariants`
|
|
108
|
-
- Notes: pill-shaped tag with `size: 'xs' | 'sm' | 'md' | 'lg' | 'xl'` (default `md`), `solid`/`outline`/`subtle
|
|
108
|
+
- Notes: pill-shaped tag with `size: 'xs' | 'sm' | 'md' | 'lg' | 'xl'` (default `md`), `solid`/`secondary`/`outline`/`subtle` variants, `color: UIColor` (`primary` default), and `asChild`
|
|
109
109
|
- `button`
|
|
110
110
|
- Exports: `Button`, `buttonVariants`
|
|
111
111
|
- Notes: action button with `solid`, `secondary`, `outline`, `subtle`, `ghost`, and `link` variants, `color: UIColor` (`primary` default), sizes from `xs` through `xl` plus icon sizes through `icon-xl`, and `loading`
|
|
@@ -221,25 +221,26 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
221
221
|
- Exports: `Avatar`, `AvatarBadge`, `AvatarFallback`, `AvatarGroup`, `AvatarGroupCount`, `AvatarImage`
|
|
222
222
|
- `card`
|
|
223
223
|
- Exports: `Card`, `CardAction`, `CardContent`, `CardDescription`, `CardFooter`, `CardHeader`, `CardTitle`
|
|
224
|
+
- Notes: supports `size: 'sm' | 'md' | 'lg'` with default `md`
|
|
224
225
|
- `carousel`
|
|
225
226
|
- Exports: `Carousel`, `CarouselContent`, `CarouselItem`, `CarouselPrevious`, `CarouselNext`, `CarouselIndicators`, `useCarousel`
|
|
226
227
|
- `center`
|
|
227
228
|
- Exports: `Center`, `centerVariants`
|
|
228
229
|
- `chart`
|
|
229
|
-
- Exports: `ChartContainer`, `ChartLegend`, `ChartLegendContent`, `ChartStyle`, `ChartTooltip`, `ChartTooltipContent`, `ChartConfig`
|
|
230
|
-
- Notes: low-level chart primitives. For app usage prefer the high-level `area-chart`, `bar-chart`, `pie-chart`, `donut-chart` modules. Import raw recharts primitives (`Bar`, `XAxis`, etc.) directly from `recharts` when composing with `ChartContainer`.
|
|
230
|
+
- Exports: `ChartContainer`, `ChartLegend`, `ChartLegendContent`, `ChartStyle`, `ChartTooltip`, `ChartTooltipContent`, `ChartConfig`, `ChartColorKey`, `CHART_COLOR_KEYS`, `DEFAULT_CHART_PALETTE`, `resolveChartColor`
|
|
231
|
+
- Notes: low-level chart primitives. For app usage prefer the high-level `area-chart`, `bar-chart`, `pie-chart`, `donut-chart` modules. Import raw recharts primitives (`Bar`, `XAxis`, etc.) directly from `recharts` when composing with `ChartContainer`. `ChartColorKey` is the union of theme color tokens accepted by every high-level chart (`primary | brand | gray | zinc | red | yellow | green | blue | indigo | pink`) and resolves to `var(--{key}-500)` via `resolveChartColor`.
|
|
231
232
|
- `area-chart`
|
|
232
233
|
- Exports: `AreaChart`, `AreaChartSeries`, `AreaChartType`, `AreaChartCurveType`, `AreaChartGridAxis`
|
|
233
|
-
- Notes: high-level area chart. Pass `data`, `series` (array of `{ name, label?, color? }`), and `dataKey` (X axis field). Supports `type` (default/stacked/percent/split), `curveType`, `withXAxis`, `withYAxis`, `gridAxis`, `withDots`, `withTooltip`, `withLegend`. Defaults to chart colors `--chart-1..5`.
|
|
234
|
+
- Notes: high-level area chart. Pass `data`, `series` (array of `{ name, label?, color?, colorKey? }`), and `dataKey` (X axis field). Supports `type` (default/stacked/percent/split), `curveType`, `withXAxis`, `withYAxis`, `gridAxis`, `withDots`, `withTooltip`, `withLegend`. Use `colorKey: ChartColorKey` for theme colors (`'blue'`, `'primary'`, etc.) or `color` for raw CSS values; explicit `color` wins. Defaults to chart colors `--chart-1..5`. Pass `areaProps` to spread props (e.g. `onClick`) onto each underlying recharts `<Area>`.
|
|
234
235
|
- `bar-chart`
|
|
235
236
|
- Exports: `BarChart`, `BarChartSeries`, `BarChartType`, `BarChartOrientation`, `BarChartGridAxis`
|
|
236
|
-
- Notes: high-level bar chart. Same shape as `area-chart` plus `orientation` (vertical/horizontal), `barSize`, `radius`. Supports stacked and percent types.
|
|
237
|
+
- Notes: high-level bar chart. Same shape as `area-chart` plus `orientation` (vertical/horizontal), `barSize`, `radius`. Series accept `color` / `colorKey`. Supports stacked and percent types. Pass `barProps` to spread props (e.g. `onClick`, `cursor`) onto each underlying recharts `<Bar>`.
|
|
237
238
|
- `pie-chart`
|
|
238
239
|
- Exports: `PieChart`, `PieChartBase`, `PieChartDatum`, `buildPieConfig`
|
|
239
|
-
- Notes: high-level pie chart. Pass `data` as `Array<{ name, value, color? }>`. Supports `withLabels`, `labelsPosition`, `startAngle`, `endAngle`, `paddingAngle`, `withLegend`, `withTooltip
|
|
240
|
+
- Notes: high-level pie chart. Pass `data` as `Array<{ name, value, color?, colorKey? }>`. Supports `withLabels`, `labelsPosition`, `startAngle`, `endAngle`, `paddingAngle`, `withLegend`, `withTooltip`, `strokeWidth`, and `strokeColor` (theme key or CSS value, defaults to `var(--background)` so segment gaps match the page background). Pass `pieProps` to spread props (e.g. `onClick`) onto the underlying recharts `<Pie>`. `PieChartBase` is the shared internal renderer used by `donut-chart`.
|
|
240
241
|
- `donut-chart`
|
|
241
242
|
- Exports: `DonutChart`
|
|
242
|
-
- Notes: same data shape as `pie-chart`. Adds `thickness` (donut hole size in px) and `withTotal` + `totalLabel` (renders sum in the center).
|
|
243
|
+
- Notes: same data shape as `pie-chart`. Adds `thickness` (donut hole size in px) and `withTotal` + `totalLabel` (renders sum in the center). Inherits `colorKey`, `strokeColor`, and `pieProps` from `PieChart`.
|
|
243
244
|
- `collapsible`
|
|
244
245
|
- Exports: `Collapsible`, `CollapsibleTrigger`, `CollapsibleContent`
|
|
245
246
|
- `container`
|
|
@@ -266,10 +266,16 @@ The package stylesheet exposes these palette families:
|
|
|
266
266
|
|
|
267
267
|
The same palette family names are exported as `uiColors` and `UIColor`. `Button`, `Toggle`, `Checkbox`, `RadioGroupItem`, and `Switch` use `UIColor` for color props. `ButtonColor` remains available as a compatibility alias, but new public APIs should use `UIColor`.
|
|
268
268
|
|
|
269
|
-
Each palette family is exposed
|
|
269
|
+
Each palette family is exposed in four layers:
|
|
270
270
|
|
|
271
271
|
- CSS variables such as `--primary-500`, `--brand-500`, and `--zinc-900`
|
|
272
|
+
- Semantic CSS aliases such as `--green`, `--red`, and `--gray`, mapped to `500` in light mode and `400` in dark mode
|
|
272
273
|
- Tailwind v4 utilities such as `bg-primary-500`, `text-zinc-900`, `border-red-300`
|
|
274
|
+
- Tailwind v4 semantic utilities such as `bg-green`, `text-red`, and `border-gray`
|
|
275
|
+
|
|
276
|
+
Color-aware components use semantic family aliases for their primary color. For example, `color="green"` resolves
|
|
277
|
+
to `--green-500` in light mode and `--green-400` in dark mode, while hover and subtle surfaces keep explicit
|
|
278
|
+
palette steps.
|
|
273
279
|
|
|
274
280
|
Primary semantic tokens:
|
|
275
281
|
|