orbital-ds 0.13.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +3 -1
- package/components.manifest.json +1 -1
- package/dist/hooks/use-ds-messages.js +1 -1
- package/dist/hooks/use-ds-motion.js +1 -1
- package/dist/lib/echarts-server.js +2 -2
- package/dist/ui/accordion.js +1 -1
- package/dist/ui/alert-dialog.js +2 -2
- package/dist/ui/alert.js +1 -1
- package/dist/ui/aspect-ratio.js +1 -1
- package/dist/ui/attachment.js +2 -2
- package/dist/ui/avatar.js +1 -1
- package/dist/ui/ayuda.js +1 -1
- package/dist/ui/badge.js +1 -1
- package/dist/ui/banner.js +1 -1
- package/dist/ui/breadcrumb.js +2 -2
- package/dist/ui/bubble.js +1 -1
- package/dist/ui/button-group.js +2 -2
- package/dist/ui/button.js +1 -1
- package/dist/ui/calendar.js +3 -3
- package/dist/ui/card.js +1 -1
- package/dist/ui/carousel.js +3 -3
- package/dist/ui/chart.js +1 -1
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/code-block.js +3 -3
- package/dist/ui/combobox.js +3 -3
- package/dist/ui/command.js +4 -4
- package/dist/ui/context-menu.js +1 -1
- package/dist/ui/data-table.js +12 -12
- package/dist/ui/date-picker.js +6 -6
- package/dist/ui/dialog.js +3 -3
- package/dist/ui/drawer.js +1 -1
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/dropzone.js +4 -4
- package/dist/ui/echart.js +5 -5
- package/dist/ui/empty.js +1 -1
- package/dist/ui/eyebrow.js +1 -1
- package/dist/ui/field.js +3 -3
- package/dist/ui/filter-bar.js +5 -5
- package/dist/ui/gauge.js +3 -3
- package/dist/ui/heatmap-grid.js +4 -4
- package/dist/ui/hover-card.js +1 -1
- package/dist/ui/i18n-provider.js +2 -2
- package/dist/ui/icon-tile.js +1 -1
- package/dist/ui/input-group.js +4 -4
- package/dist/ui/input-otp.js +1 -1
- package/dist/ui/input.js +1 -1
- package/dist/ui/item.js +2 -2
- package/dist/ui/kbd.js +1 -1
- package/dist/ui/label.js +1 -1
- package/dist/ui/legend.js +1 -1
- package/dist/ui/level-meter.js +3 -3
- package/dist/ui/marker.js +1 -1
- package/dist/ui/menubar.js +2 -2
- package/dist/ui/message-scroller.js +3 -3
- package/dist/ui/message.js +1 -1
- package/dist/ui/motion-provider.js +1 -1
- package/dist/ui/native-select.js +1 -1
- package/dist/ui/navigation-menu.js +1 -1
- package/dist/ui/notifications.js +8 -8
- package/dist/ui/page-header.js +2 -2
- package/dist/ui/pagination.js +3 -3
- package/dist/ui/panel.js +1 -1
- package/dist/ui/password-strength.js +3 -3
- package/dist/ui/popover.js +1 -1
- package/dist/ui/progress.js +1 -1
- package/dist/ui/proportion-bar.js +3 -3
- package/dist/ui/questionnaire.js +3 -3
- package/dist/ui/radio-group.js +1 -1
- package/dist/ui/resizable.js +1 -1
- package/dist/ui/scroll-area.js +1 -1
- package/dist/ui/select.js +1 -1
- package/dist/ui/separator.js +1 -1
- package/dist/ui/sheet.js +3 -3
- package/dist/ui/shield.js +4 -4
- package/dist/ui/sidebar.js +9 -9
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.js +1 -1
- package/dist/ui/sparkline.js +1 -1
- package/dist/ui/spinner.js +2 -2
- package/dist/ui/stat.js +6 -6
- package/dist/ui/status-badge.js +3 -3
- package/dist/ui/status-hero.js +3 -3
- package/dist/ui/step-dots.js +3 -3
- package/dist/ui/step-ring.js +3 -3
- package/dist/ui/stepper.js +3 -3
- package/dist/ui/switch.js +1 -1
- package/dist/ui/table.js +1 -1
- package/dist/ui/tabs.js +1 -1
- package/dist/ui/task-loader.js +2 -2
- package/dist/ui/task-progress.js +3 -3
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/timeline.js +3 -3
- package/dist/ui/toast.js +3 -3
- package/dist/ui/toggle-group.js +2 -2
- package/dist/ui/toggle.js +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -162,7 +162,9 @@ Si `pnpm check:ds` falla, **corrige la causa**; no lo desactives ni lo rodees.
|
|
|
162
162
|
|
|
163
163
|
1. Fichero en `src/ui/<nombre>.tsx` (un componente = un fichero; sin barril).
|
|
164
164
|
2. `data-slot="<nombre>"` en su raíz y en las partes relevantes.
|
|
165
|
-
3. Solo tokens. Importa `cn` de `../lib/utils`; los demás componentes, de `./<otro
|
|
165
|
+
3. Solo tokens. Importa `cn` de `../lib/utils.js`; los demás componentes, de `./<otro>.js`. **Los imports relativos llevan
|
|
166
|
+
siempre `.js`**: el paquete es `"type": "module"` y Node (tests, SSR sin bundler) no completa la ruta; `check:pack`
|
|
167
|
+
importa cada export con Node puro.
|
|
166
168
|
4. Dependencias de terceros de un COMPONENTE: opcionales (`peerDependenciesMeta`), nunca
|
|
167
169
|
obligatorias. Las herramientas de terminal del paquete (`orbital-ds-init`) sí pueden
|
|
168
170
|
tener las suyas (`@clack/prompts`), porque no llegan al bundle de la app.
|
package/components.manifest.json
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import {
|
|
3
3
|
readDsTransition,
|
|
4
4
|
readDsMotion
|
|
5
|
-
} from "../lib/motion";
|
|
5
|
+
} from "../lib/motion.js";
|
|
6
6
|
function useDsTransition(duration = "base", ease = "standard") {
|
|
7
7
|
const [transition, setTransition] = React.useState(
|
|
8
8
|
() => readDsTransition(duration, ease)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { dsEcharts } from "./echarts-setup";
|
|
2
|
-
import { dsEchartsThemeFromTokens } from "./echarts-theme";
|
|
1
|
+
import { dsEcharts } from "./echarts-setup.js";
|
|
2
|
+
import { dsEchartsThemeFromTokens } from "./echarts-theme.js";
|
|
3
3
|
function renderEChartToSvg(option, { width, height, tokens, theme, animation = false }) {
|
|
4
4
|
const tema = theme ?? (tokens ? dsEchartsThemeFromTokens(tokens, { reducedMotion: !animation }) : void 0);
|
|
5
5
|
const chart = dsEcharts().init(null, tema, { renderer: "svg", ssr: true, width, height });
|
package/dist/ui/accordion.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
4
4
|
import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
5
5
|
function Accordion({ className, ...props }) {
|
|
6
6
|
return /* @__PURE__ */ jsx(
|
package/dist/ui/alert-dialog.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
import { Button } from "./button";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
4
|
+
import { Button } from "./button.js";
|
|
5
5
|
function AlertDialog({ ...props }) {
|
|
6
6
|
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
|
|
7
7
|
}
|
package/dist/ui/alert.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
4
4
|
const alertVariants = cva(
|
|
5
5
|
"group/alert relative grid w-full gap-0.5 rounded-lg border px-(--ds-alert-px) py-(--ds-alert-py) text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",
|
|
6
6
|
{
|
package/dist/ui/aspect-ratio.js
CHANGED
package/dist/ui/attachment.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
|
-
import { cn } from "../lib/utils";
|
|
6
|
-
import { Button } from "./button";
|
|
5
|
+
import { cn } from "../lib/utils.js";
|
|
6
|
+
import { Button } from "./button.js";
|
|
7
7
|
const attachmentVariants = cva(
|
|
8
8
|
"group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-chip border bg-card text-card-foreground transition-colors duration-(--ds-motion-snap) focus-within:ring-(length:--ds-ring-width) focus-within:ring-(--ds-ring-color) has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-danger/30 data-[state=idle]:border-dashed",
|
|
9
9
|
{
|
package/dist/ui/avatar.js
CHANGED
package/dist/ui/ayuda.js
CHANGED
package/dist/ui/badge.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
5
|
const badgeVariants = cva(
|
|
6
6
|
"group/badge inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-badge border border-transparent px-(--ds-badge-px) py-(--ds-badge-py) text-xs font-(--ds-badge-weight) whitespace-nowrap transition-all duration-(--ds-motion-snap) focus-visible:border-ring focus-visible:ring-(length:--ds-ring-width) focus-visible:ring-(--ds-ring-color) has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-(--ds-invalid-border) aria-invalid:ring-(--ds-invalid-ring) [&>svg]:pointer-events-none [&>svg]:size-3!",
|
|
7
7
|
{
|
package/dist/ui/banner.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
4
4
|
const bannerVariants = cva(
|
|
5
5
|
"group/banner flex w-full items-center gap-3 border-b px-(--ds-banner-px) py-(--ds-banner-py) text-sm [&>svg]:shrink-0 [&>svg:not([class*='size-'])]:size-4",
|
|
6
6
|
{
|
package/dist/ui/breadcrumb.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
4
4
|
import { useRender } from "@base-ui/react/use-render";
|
|
5
|
-
import { cn } from "../lib/utils";
|
|
5
|
+
import { cn } from "../lib/utils.js";
|
|
6
6
|
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
7
|
-
import { useDsMessages } from "../hooks/use-ds-messages";
|
|
7
|
+
import { useDsMessages } from "../hooks/use-ds-messages.js";
|
|
8
8
|
function Breadcrumb({ className, ...props }) {
|
|
9
9
|
const t = useDsMessages();
|
|
10
10
|
return /* @__PURE__ */ jsx(
|
package/dist/ui/bubble.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
|
-
import { cn } from "../lib/utils";
|
|
5
|
+
import { cn } from "../lib/utils.js";
|
|
6
6
|
function BubbleGroup({ className, ...props }) {
|
|
7
7
|
return /* @__PURE__ */ jsx(
|
|
8
8
|
"div",
|
package/dist/ui/button-group.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
|
-
import { cn } from "../lib/utils";
|
|
6
|
-
import { Separator } from "./separator";
|
|
5
|
+
import { cn } from "../lib/utils.js";
|
|
6
|
+
import { Separator } from "./separator.js";
|
|
7
7
|
const buttonGroupVariants = cva(
|
|
8
8
|
"flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-(--ds-z-raised) has-[>[data-slot=button-group]]:gap-2 [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
|
|
9
9
|
{
|
package/dist/ui/button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
5
|
const buttonVariants = cva(
|
|
6
6
|
"group/button inline-flex shrink-0 items-center justify-center rounded-button border border-transparent bg-clip-padding text-sm font-(--ds-button-weight) whitespace-nowrap transition-all duration-(--ds-motion-snap) outline-none select-none focus-visible:border-ring focus-visible:ring-(length:--ds-ring-width) focus-visible:ring-(--ds-ring-color) active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-(--ds-button-disabled-opacity) aria-invalid:border-(--ds-invalid-border) aria-invalid:ring-(length:--ds-ring-width) aria-invalid:ring-(--ds-invalid-ring) [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
7
7
|
{
|
package/dist/ui/calendar.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
5
|
import {
|
|
6
6
|
DayPicker,
|
|
7
7
|
getDefaultClassNames
|
|
8
8
|
} from "react-day-picker";
|
|
9
|
-
import { Button, buttonVariants } from "./button";
|
|
10
|
-
import { useDsMessages } from "../hooks/use-ds-messages";
|
|
9
|
+
import { Button, buttonVariants } from "./button.js";
|
|
10
|
+
import { useDsMessages } from "../hooks/use-ds-messages.js";
|
|
11
11
|
import { ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon } from "lucide-react";
|
|
12
12
|
function Calendar({
|
|
13
13
|
className,
|
package/dist/ui/card.js
CHANGED
package/dist/ui/carousel.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
5
|
import useEmblaCarousel from "embla-carousel-react";
|
|
6
|
-
import { Button } from "./button";
|
|
6
|
+
import { Button } from "./button.js";
|
|
7
7
|
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
8
|
-
import { useDsMessages } from "../hooks/use-ds-messages";
|
|
8
|
+
import { useDsMessages } from "../hooks/use-ds-messages.js";
|
|
9
9
|
const CarouselContext = React.createContext(null);
|
|
10
10
|
function useCarousel() {
|
|
11
11
|
const context = React.useContext(CarouselContext);
|
package/dist/ui/chart.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as RechartsPrimitive from "recharts";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
5
|
const THEMES = { light: "", dark: ".dark" };
|
|
6
6
|
const INITIAL_DIMENSION = { width: 320, height: 200 };
|
|
7
7
|
const ChartContext = React.createContext(null);
|
package/dist/ui/checkbox.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
5
|
import { CheckIcon } from "lucide-react";
|
|
6
6
|
function Checkbox({ className, ...props }) {
|
|
7
7
|
return /* @__PURE__ */ jsx(
|
package/dist/ui/code-block.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { CheckIcon, CopyIcon } from "lucide-react";
|
|
5
|
-
import { useDsMessages } from "../hooks/use-ds-messages";
|
|
6
|
-
import { cn } from "../lib/utils";
|
|
7
|
-
import { Button } from "./button";
|
|
5
|
+
import { useDsMessages } from "../hooks/use-ds-messages.js";
|
|
6
|
+
import { cn } from "../lib/utils.js";
|
|
7
|
+
import { Button } from "./button.js";
|
|
8
8
|
function CodeBlock({
|
|
9
9
|
code,
|
|
10
10
|
html,
|
package/dist/ui/combobox.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { Combobox as ComboboxPrimitive } from "@base-ui/react";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
5
|
-
import { Button } from "./button";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
|
+
import { Button } from "./button.js";
|
|
6
6
|
import {
|
|
7
7
|
InputGroup,
|
|
8
8
|
InputGroupAddon,
|
|
9
9
|
InputGroupButton,
|
|
10
10
|
InputGroupInput
|
|
11
|
-
} from "./input-group";
|
|
11
|
+
} from "./input-group.js";
|
|
12
12
|
import { ChevronDownIcon, XIcon, CheckIcon } from "lucide-react";
|
|
13
13
|
const Combobox = ComboboxPrimitive.Root;
|
|
14
14
|
function ComboboxValue({ ...props }) {
|
package/dist/ui/command.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Command as CommandPrimitive } from "cmdk";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
5
|
import {
|
|
6
6
|
Dialog,
|
|
7
7
|
DialogContent,
|
|
8
8
|
DialogDescription,
|
|
9
9
|
DialogHeader,
|
|
10
10
|
DialogTitle
|
|
11
|
-
} from "./dialog";
|
|
11
|
+
} from "./dialog.js";
|
|
12
12
|
import {
|
|
13
13
|
InputGroup,
|
|
14
14
|
InputGroupAddon
|
|
15
|
-
} from "./input-group";
|
|
15
|
+
} from "./input-group.js";
|
|
16
16
|
import { SearchIcon, CheckIcon } from "lucide-react";
|
|
17
|
-
import { useDsMessages } from "../hooks/use-ds-messages";
|
|
17
|
+
import { useDsMessages } from "../hooks/use-ds-messages.js";
|
|
18
18
|
function Command({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
package/dist/ui/context-menu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { ContextMenu as ContextMenuPrimitive } from "@base-ui/react/context-menu";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
5
|
import { ChevronRightIcon, CheckIcon } from "lucide-react";
|
|
6
6
|
function ContextMenu({ ...props }) {
|
|
7
7
|
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
|
package/dist/ui/data-table.js
CHANGED
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
SearchIcon
|
|
31
31
|
} from "lucide-react";
|
|
32
32
|
import * as React from "react";
|
|
33
|
-
import { useDsLocale, useDsMessages } from "../hooks/use-ds-messages";
|
|
34
|
-
import { dsFormat } from "../lib/i18n";
|
|
35
|
-
import { cn } from "../lib/utils";
|
|
36
|
-
import { Button } from "./button";
|
|
37
|
-
import { Checkbox } from "./checkbox";
|
|
33
|
+
import { useDsLocale, useDsMessages } from "../hooks/use-ds-messages.js";
|
|
34
|
+
import { dsFormat } from "../lib/i18n.js";
|
|
35
|
+
import { cn } from "../lib/utils.js";
|
|
36
|
+
import { Button } from "./button.js";
|
|
37
|
+
import { Checkbox } from "./checkbox.js";
|
|
38
38
|
import {
|
|
39
39
|
DropdownMenu,
|
|
40
40
|
DropdownMenuCheckboxItem,
|
|
@@ -42,12 +42,12 @@ import {
|
|
|
42
42
|
DropdownMenuGroup,
|
|
43
43
|
DropdownMenuLabel,
|
|
44
44
|
DropdownMenuTrigger
|
|
45
|
-
} from "./dropdown-menu";
|
|
46
|
-
import { Empty, EmptyHeader, EmptyTitle } from "./empty";
|
|
47
|
-
import { Input } from "./input";
|
|
48
|
-
import { NativeSelect, NativeSelectOption } from "./native-select";
|
|
49
|
-
import { ProportionBar } from "./proportion-bar";
|
|
50
|
-
import { Skeleton } from "./skeleton";
|
|
45
|
+
} from "./dropdown-menu.js";
|
|
46
|
+
import { Empty, EmptyHeader, EmptyTitle } from "./empty.js";
|
|
47
|
+
import { Input } from "./input.js";
|
|
48
|
+
import { NativeSelect, NativeSelectOption } from "./native-select.js";
|
|
49
|
+
import { ProportionBar } from "./proportion-bar.js";
|
|
50
|
+
import { Skeleton } from "./skeleton.js";
|
|
51
51
|
import {
|
|
52
52
|
Table,
|
|
53
53
|
TableBody,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
TableHead,
|
|
56
56
|
TableHeader,
|
|
57
57
|
TableRow
|
|
58
|
-
} from "./table";
|
|
58
|
+
} from "./table.js";
|
|
59
59
|
const sortFn_number = constructSortFn({
|
|
60
60
|
sort: (a, b) => {
|
|
61
61
|
const x = Number(a);
|
package/dist/ui/date-picker.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { CalendarIcon } from "lucide-react";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { useDsLocale, useDsMessages } from "../hooks/use-ds-messages";
|
|
6
|
-
import { dsFormat } from "../lib/i18n";
|
|
7
|
-
import { cn } from "../lib/utils";
|
|
8
|
-
import { Button } from "./button";
|
|
9
|
-
import { Calendar } from "./calendar";
|
|
10
|
-
import { Popover, PopoverContent, PopoverTrigger } from "./popover";
|
|
5
|
+
import { useDsLocale, useDsMessages } from "../hooks/use-ds-messages.js";
|
|
6
|
+
import { dsFormat } from "../lib/i18n.js";
|
|
7
|
+
import { cn } from "../lib/utils.js";
|
|
8
|
+
import { Button } from "./button.js";
|
|
9
|
+
import { Calendar } from "./calendar.js";
|
|
10
|
+
import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
|
|
11
11
|
const DAY = 864e5;
|
|
12
12
|
const startOfDay = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
13
13
|
const addDays = (d, n) => new Date(d.getFullYear(), d.getMonth(), d.getDate() + n);
|
package/dist/ui/dialog.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
5
|
-
import { Button } from "./button";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
|
+
import { Button } from "./button.js";
|
|
6
6
|
import { XIcon } from "lucide-react";
|
|
7
|
-
import { useDsMessages } from "../hooks/use-ds-messages";
|
|
7
|
+
import { useDsMessages } from "../hooks/use-ds-messages.js";
|
|
8
8
|
function Dialog({ ...props }) {
|
|
9
9
|
return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
10
10
|
}
|
package/dist/ui/drawer.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
|
|
5
|
-
import { cn } from "../lib/utils";
|
|
5
|
+
import { cn } from "../lib/utils.js";
|
|
6
6
|
const DrawerContext = React.createContext(null);
|
|
7
7
|
function useDrawer() {
|
|
8
8
|
const context = React.useContext(DrawerContext);
|
package/dist/ui/dropdown-menu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Menu as DropdownMenuPrimitive } from "@base-ui/react/menu";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
5
|
import { CheckIcon, ChevronRightIcon } from "lucide-react";
|
|
6
6
|
function DropdownMenu({ ...props }) {
|
|
7
7
|
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
package/dist/ui/dropzone.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { UploadIcon } from "lucide-react";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { useDsLocale, useDsMessages } from "../hooks/use-ds-messages";
|
|
6
|
-
import { dsFormat } from "../lib/i18n";
|
|
7
|
-
import { cn } from "../lib/utils";
|
|
8
|
-
import { IconTile } from "./icon-tile";
|
|
5
|
+
import { useDsLocale, useDsMessages } from "../hooks/use-ds-messages.js";
|
|
6
|
+
import { dsFormat } from "../lib/i18n.js";
|
|
7
|
+
import { cn } from "../lib/utils.js";
|
|
8
|
+
import { IconTile } from "./icon-tile.js";
|
|
9
9
|
function formatBytes(bytes, locale) {
|
|
10
10
|
const units = ["byte", "kilobyte", "megabyte", "gigabyte"];
|
|
11
11
|
let value = bytes;
|
package/dist/ui/echart.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { DownloadIcon } from "lucide-react";
|
|
5
|
-
import { useDsMessages } from "../hooks/use-ds-messages";
|
|
6
|
-
import { dsEcharts } from "../lib/echarts-setup";
|
|
7
|
-
import { dsEchartsTheme } from "../lib/echarts-theme";
|
|
8
|
-
import { cn } from "../lib/utils";
|
|
9
|
-
import { Button } from "./button";
|
|
5
|
+
import { useDsMessages } from "../hooks/use-ds-messages.js";
|
|
6
|
+
import { dsEcharts } from "../lib/echarts-setup.js";
|
|
7
|
+
import { dsEchartsTheme } from "../lib/echarts-theme.js";
|
|
8
|
+
import { cn } from "../lib/utils.js";
|
|
9
|
+
import { Button } from "./button.js";
|
|
10
10
|
const EChart = React.forwardRef(function EChart2({ option, height = 320, renderer = "svg", notMerge = false, exportable = false, fileName = "grafico", empty = false, onEvents, className, ...props }, ref) {
|
|
11
11
|
const t = useDsMessages();
|
|
12
12
|
const box = React.useRef(null);
|
package/dist/ui/empty.js
CHANGED
package/dist/ui/eyebrow.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
4
4
|
const eyebrowClassName = "text-xs leading-tight font-(--ds-label-weight) tracking-(--ds-label-tracking) text-muted-foreground uppercase";
|
|
5
5
|
function Eyebrow({ className, render, ...props }) {
|
|
6
6
|
return useRender({
|
package/dist/ui/field.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
5
|
-
import { Label } from "./label";
|
|
6
|
-
import { Separator } from "./separator";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
|
+
import { Label } from "./label.js";
|
|
6
|
+
import { Separator } from "./separator.js";
|
|
7
7
|
function FieldSet({ className, ...props }) {
|
|
8
8
|
return /* @__PURE__ */ jsx(
|
|
9
9
|
"fieldset",
|
package/dist/ui/filter-bar.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { ChevronDownIcon, XIcon } from "lucide-react";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { useDsMessages } from "../hooks/use-ds-messages";
|
|
6
|
-
import { cn } from "../lib/utils";
|
|
7
|
-
import { Button } from "./button";
|
|
5
|
+
import { useDsMessages } from "../hooks/use-ds-messages.js";
|
|
6
|
+
import { cn } from "../lib/utils.js";
|
|
7
|
+
import { Button } from "./button.js";
|
|
8
8
|
import {
|
|
9
9
|
DropdownMenu,
|
|
10
10
|
DropdownMenuContent,
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
DropdownMenuRadioItem,
|
|
13
13
|
DropdownMenuSeparator,
|
|
14
14
|
DropdownMenuTrigger
|
|
15
|
-
} from "./dropdown-menu";
|
|
16
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip";
|
|
15
|
+
} from "./dropdown-menu.js";
|
|
16
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.js";
|
|
17
17
|
function FilterBar({
|
|
18
18
|
className,
|
|
19
19
|
children,
|
package/dist/ui/gauge.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { useDsLocale, useDsMessages } from "../hooks/use-ds-messages";
|
|
5
|
-
import { cn } from "../lib/utils";
|
|
6
|
-
import { dataToneSoftVar, dataToneVar } from "./legend";
|
|
4
|
+
import { useDsLocale, useDsMessages } from "../hooks/use-ds-messages.js";
|
|
5
|
+
import { cn } from "../lib/utils.js";
|
|
6
|
+
import { dataToneSoftVar, dataToneVar } from "./legend.js";
|
|
7
7
|
const GaugeContext = React.createContext({ tone: "primary" });
|
|
8
8
|
const R = 64;
|
|
9
9
|
const C = 70;
|
package/dist/ui/heatmap-grid.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { useDsLocale, useDsMessages } from "../hooks/use-ds-messages";
|
|
5
|
-
import { cn } from "../lib/utils";
|
|
6
|
-
import { dataToneVar } from "./legend";
|
|
7
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip";
|
|
4
|
+
import { useDsLocale, useDsMessages } from "../hooks/use-ds-messages.js";
|
|
5
|
+
import { cn } from "../lib/utils.js";
|
|
6
|
+
import { dataToneVar } from "./legend.js";
|
|
7
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.js";
|
|
8
8
|
const HATCH = "var(--ds-hatch)";
|
|
9
9
|
function HeatmapGrid({
|
|
10
10
|
className,
|
package/dist/ui/hover-card.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
5
|
function HoverCard({ ...props }) {
|
|
6
6
|
return /* @__PURE__ */ jsx(PreviewCardPrimitive.Root, { "data-slot": "hover-card", ...props });
|
|
7
7
|
}
|
package/dist/ui/i18n-provider.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { DirectionProvider } from "@base-ui/react/direction-provider";
|
|
5
|
-
import { DsLocaleContext, DsMessagesContext } from "../hooks/use-ds-messages";
|
|
6
|
-
import { DS_DEFAULT_LOCALE, dsDirection, dsMessagesFor } from "../lib/i18n";
|
|
5
|
+
import { DsLocaleContext, DsMessagesContext } from "../hooks/use-ds-messages.js";
|
|
6
|
+
import { DS_DEFAULT_LOCALE, dsDirection, dsMessagesFor } from "../lib/i18n.js";
|
|
7
7
|
function DsI18nProvider({
|
|
8
8
|
locale,
|
|
9
9
|
messages,
|
package/dist/ui/icon-tile.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
4
4
|
const iconTileVariants = cva(
|
|
5
5
|
"inline-flex shrink-0 items-center justify-center rounded-(--ds-icon-tile-radius) [&>svg]:size-1/2",
|
|
6
6
|
{
|
package/dist/ui/input-group.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
5
|
-
import { Button } from "./button";
|
|
6
|
-
import { Input } from "./input";
|
|
7
|
-
import { Textarea } from "./textarea";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
|
+
import { Button } from "./button.js";
|
|
6
|
+
import { Input } from "./input.js";
|
|
7
|
+
import { Textarea } from "./textarea.js";
|
|
8
8
|
function InputGroup({ className, ...props }) {
|
|
9
9
|
return /* @__PURE__ */ jsx(
|
|
10
10
|
"div",
|
package/dist/ui/input-otp.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
4
4
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
5
5
|
import { MinusIcon } from "lucide-react";
|
|
6
6
|
function InputOTP({
|
package/dist/ui/input.js
CHANGED
package/dist/ui/item.js
CHANGED
|
@@ -3,8 +3,8 @@ import * as React from "react";
|
|
|
3
3
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
4
4
|
import { useRender } from "@base-ui/react/use-render";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
|
-
import { cn } from "../lib/utils";
|
|
7
|
-
import { Separator } from "./separator";
|
|
6
|
+
import { cn } from "../lib/utils.js";
|
|
7
|
+
import { Separator } from "./separator.js";
|
|
8
8
|
const ItemGroupContext = React.createContext(false);
|
|
9
9
|
function ItemGroup({ className, ...props }) {
|
|
10
10
|
return /* @__PURE__ */ jsx(ItemGroupContext.Provider, { value: true, children: /* @__PURE__ */ jsx(
|