@sereno-ds/ui 0.27.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/CharCount.js +1 -1
- package/dist/_internal/Field.js +1 -1
- package/dist/core/Avatar.js +1 -1
- package/dist/core/Badge.js +1 -1
- package/dist/core/Brand.js +1 -1
- package/dist/core/Button.js +1 -1
- package/dist/core/Card.js +2 -2
- package/dist/core/IconButton.js +2 -2
- package/dist/core/Menu.js +1 -1
- package/dist/core/Table.js +1 -1
- package/dist/feedback/Alert.js +1 -1
- package/dist/feedback/Dialog.js +1 -1
- package/dist/feedback/EmptyState.js +1 -1
- package/dist/feedback/Skeleton.js +1 -1
- package/dist/feedback/Toast.js +1 -1
- package/dist/feedback/ToastProvider.js +2 -2
- package/dist/forms/AvatarUpload.js +3 -3
- package/dist/forms/Checkbox.js +1 -1
- package/dist/forms/DatePicker.js +4 -4
- package/dist/forms/DateTimePicker.js +2 -2
- package/dist/forms/FileUpload.js +2 -2
- package/dist/forms/Input.js +4 -4
- package/dist/forms/Radio.js +1 -1
- package/dist/forms/SearchInput.js +2 -2
- package/dist/forms/Select.js +3 -3
- package/dist/forms/Switch.js +1 -1
- package/dist/forms/Textarea.js +3 -3
- package/dist/forms/_internal/CalendarGrid.js +2 -2
- package/dist/forms/_internal/fieldBoxStyle.js +1 -1
- package/dist/index.js +32 -32
- package/dist/navigation/BottomNav.js +1 -1
- package/dist/navigation/SidebarNav.js +2 -2
- package/dist/navigation/Stepper.js +1 -1
- package/dist/navigation/Tabs.js +1 -1
- package/dist/navigation/TopBar.js +1 -1
- package/dist/theme/ThemeToggle.js +1 -1
- package/package.json +1 -1
package/dist/_internal/Field.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sx } from "./style";
|
|
3
|
+
import { sx } from "./style.js";
|
|
4
4
|
function Field({ label, hint, error, required, htmlFor, counter, children, style }) {
|
|
5
5
|
return /* @__PURE__ */ jsxs("div", { style: sx({ display: "flex", flexDirection: "column", gap: "var(--space-2)", ...style }), children: [
|
|
6
6
|
label && /* @__PURE__ */ jsxs(
|
package/dist/core/Avatar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sx } from "../_internal/style";
|
|
3
|
+
import { sx } from "../_internal/style.js";
|
|
4
4
|
const S = { xs: 24, sm: 32, md: 40, lg: 56, xl: 80 };
|
|
5
5
|
function initials(name) {
|
|
6
6
|
return (name || "").trim().split(/\s+/).slice(0, 2).map((w) => w[0] || "").join("").toUpperCase();
|
package/dist/core/Badge.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sx } from "../_internal/style";
|
|
3
|
+
import { sx } from "../_internal/style.js";
|
|
4
4
|
const TONES = {
|
|
5
5
|
success: ["--status-success-bg", "--status-success-fg", "--status-success-dot"],
|
|
6
6
|
warning: ["--status-warning-bg", "--status-warning-fg", "--status-warning-dot"],
|
package/dist/core/Brand.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { sx } from "../_internal/style";
|
|
4
|
+
import { sx } from "../_internal/style.js";
|
|
5
5
|
const DROP = "M24 3 C 22 7.5 8 22 8 31.5 C 8 39 15 45 24 45 C 33 45 40 39 40 31.5 C 40 22 26 7.5 24 3 Z";
|
|
6
6
|
function Mark({ size, mono, decorative }) {
|
|
7
7
|
const gid = React.useId();
|
package/dist/core/Button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { sx } from "../_internal/style";
|
|
4
|
+
import { sx } from "../_internal/style.js";
|
|
5
5
|
function useInteract(disabled) {
|
|
6
6
|
const [hover, setHover] = React.useState(false);
|
|
7
7
|
const [press, setPress] = React.useState(false);
|
package/dist/core/Card.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { sx } from "../_internal/style";
|
|
4
|
-
import { useInteract } from "./Button";
|
|
3
|
+
import { sx } from "../_internal/style.js";
|
|
4
|
+
import { useInteract } from "./Button.js";
|
|
5
5
|
const PADS = { none: 0, sm: "var(--space-3)", md: "var(--space-4)", lg: "var(--space-5)" };
|
|
6
6
|
const DROP = { none: "", sm: "var(--shadow-xs)", md: "var(--shadow-md)", lg: "var(--shadow-lg)" };
|
|
7
7
|
function Card({ padding = "md", elevation = "sm", interactive = false, selected = false, children, style, onClick, onKeyDown, ...rest }) {
|
package/dist/core/IconButton.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { sx } from "../_internal/style";
|
|
4
|
-
import { useInteract } from "./Button";
|
|
3
|
+
import { sx } from "../_internal/style.js";
|
|
4
|
+
import { useInteract } from "./Button.js";
|
|
5
5
|
const S = { sm: 32, md: 40, lg: 48 };
|
|
6
6
|
const SOLID = {
|
|
7
7
|
primary: ["--interactive-primary", "--interactive-primary-hover", "--interactive-primary-fg"],
|
package/dist/core/Menu.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
|
-
import { sx } from "../_internal/style";
|
|
5
|
+
import { sx } from "../_internal/style.js";
|
|
6
6
|
const isItem = (e) => !("separator" in e) && !("heading" in e);
|
|
7
7
|
const GAP = 6;
|
|
8
8
|
const GUTTER = 12;
|
package/dist/core/Table.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { ChevronDown, ChevronsUpDown, ChevronUp } from "lucide-react";
|
|
4
|
-
import { sx } from "../_internal/style";
|
|
4
|
+
import { sx } from "../_internal/style.js";
|
|
5
5
|
function TableRoot({
|
|
6
6
|
caption,
|
|
7
7
|
density = "comfortable",
|
package/dist/feedback/Alert.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { X } from "lucide-react";
|
|
4
|
-
import { sx } from "../_internal/style";
|
|
4
|
+
import { sx } from "../_internal/style.js";
|
|
5
5
|
const TONES = {
|
|
6
6
|
info: ["--status-info-bg", "--status-info-fg"],
|
|
7
7
|
success: ["--status-success-bg", "--status-success-fg"],
|
package/dist/feedback/Dialog.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import { X } from "lucide-react";
|
|
6
|
-
import { sx } from "../_internal/style";
|
|
6
|
+
import { sx } from "../_internal/style.js";
|
|
7
7
|
const SIZE_W = { sm: 440, md: 600, lg: 800, xl: 1e3 };
|
|
8
8
|
const FOCUSABLE_SELECTOR = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
9
9
|
function focusableIn(el) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sx } from "../_internal/style";
|
|
3
|
+
import { sx } from "../_internal/style.js";
|
|
4
4
|
function EmptyState({ icon, title, description, action, compact = false, style, ...rest }) {
|
|
5
5
|
return /* @__PURE__ */ jsxs(
|
|
6
6
|
"div",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sx } from "../_internal/style";
|
|
3
|
+
import { sx } from "../_internal/style.js";
|
|
4
4
|
const BASE = { background: "var(--bg-subtle)", animation: "sereno-pulse 1.6s var(--ease-gentle) infinite" };
|
|
5
5
|
function Bar({ w, h, r }) {
|
|
6
6
|
return /* @__PURE__ */ jsx("span", { "aria-hidden": "true", style: sx({ ...BASE, display: "block", width: w, height: h, borderRadius: r, flex: "0 0 auto" }) });
|
package/dist/feedback/Toast.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { X } from "lucide-react";
|
|
4
|
-
import { sx } from "../_internal/style";
|
|
4
|
+
import { sx } from "../_internal/style.js";
|
|
5
5
|
const TONES = {
|
|
6
6
|
success: ["--status-success-bg", "--status-success-fg"],
|
|
7
7
|
warning: ["--status-warning-bg", "--status-warning-fg"],
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
|
-
import { Toast } from "./Toast";
|
|
6
|
-
import { sx } from "../_internal/style";
|
|
5
|
+
import { Toast } from "./Toast.js";
|
|
6
|
+
import { sx } from "../_internal/style.js";
|
|
7
7
|
const ToastContext = React.createContext(null);
|
|
8
8
|
const EXIT_MS = 180;
|
|
9
9
|
let seq = 0;
|
|
@@ -3,9 +3,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import { Camera, Check, ImagePlus, Pencil, Trash2, X, ZoomIn, ZoomOut } from "lucide-react";
|
|
6
|
-
import { sx } from "../_internal/style";
|
|
7
|
-
import { Field } from "../_internal/Field";
|
|
8
|
-
import { Dialog } from "../feedback/Dialog";
|
|
6
|
+
import { sx } from "../_internal/style.js";
|
|
7
|
+
import { Field } from "../_internal/Field.js";
|
|
8
|
+
import { Dialog } from "../feedback/Dialog.js";
|
|
9
9
|
const EN = {
|
|
10
10
|
trigger: "Change photo",
|
|
11
11
|
upload: "Upload a photo",
|
package/dist/forms/Checkbox.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { sx } from "../_internal/style";
|
|
4
|
+
import { sx } from "../_internal/style.js";
|
|
5
5
|
function Checkbox({ label, description, checked, defaultChecked, disabled, indeterminate, size = "md", onChange, style, ...rest }) {
|
|
6
6
|
const [hover, setHover] = React.useState(false);
|
|
7
7
|
const box = size === "sm" ? 16 : 20;
|
package/dist/forms/DatePicker.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { Calendar as CalendarIcon, X } from "lucide-react";
|
|
5
|
-
import { sx } from "../_internal/style";
|
|
6
|
-
import { Field } from "../_internal/Field";
|
|
7
|
-
import { CalendarGrid } from "./_internal/CalendarGrid";
|
|
8
|
-
import { fieldBoxStyle } from "./_internal/fieldBoxStyle";
|
|
5
|
+
import { sx } from "../_internal/style.js";
|
|
6
|
+
import { Field } from "../_internal/Field.js";
|
|
7
|
+
import { CalendarGrid } from "./_internal/CalendarGrid.js";
|
|
8
|
+
import { fieldBoxStyle } from "./_internal/fieldBoxStyle.js";
|
|
9
9
|
const TEXT = {
|
|
10
10
|
"pt-BR": { placeholder: "Selecionar data", dialogLabel: "Escolher data", clearLabel: "Limpar data" },
|
|
11
11
|
en: { placeholder: "Pick a date", dialogLabel: "Choose a date", clearLabel: "Clear date" }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sx } from "../_internal/style";
|
|
4
|
-
import { CalendarGrid } from "./_internal/CalendarGrid";
|
|
3
|
+
import { sx } from "../_internal/style.js";
|
|
4
|
+
import { CalendarGrid } from "./_internal/CalendarGrid.js";
|
|
5
5
|
const TEXT = {
|
|
6
6
|
"pt-BR": {
|
|
7
7
|
timeLabel: "Hor\xE1rios dispon\xEDveis",
|
package/dist/forms/FileUpload.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { File as FileIcon, FileArchive, FileSpreadsheet, FileText, RefreshCw, Trash2, UploadCloud } from "lucide-react";
|
|
5
|
-
import { sx } from "../_internal/style";
|
|
6
|
-
import { Field } from "../_internal/Field";
|
|
5
|
+
import { sx } from "../_internal/style.js";
|
|
6
|
+
import { Field } from "../_internal/Field.js";
|
|
7
7
|
function matchesAccept(file, accept) {
|
|
8
8
|
if (!accept || accept === "*" || accept === "*/*") return true;
|
|
9
9
|
const name = file.name.toLowerCase();
|
package/dist/forms/Input.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { Eye, EyeOff } from "lucide-react";
|
|
5
|
-
import { sx } from "../_internal/style";
|
|
6
|
-
import { Field } from "../_internal/Field";
|
|
7
|
-
import { CharCount } from "../_internal/CharCount";
|
|
8
|
-
import { formatMask, MASK_INPUTMODE, MASK_MAXLENGTH } from "../_internal/mask";
|
|
5
|
+
import { sx } from "../_internal/style.js";
|
|
6
|
+
import { Field } from "../_internal/Field.js";
|
|
7
|
+
import { CharCount } from "../_internal/CharCount.js";
|
|
8
|
+
import { formatMask, MASK_INPUTMODE, MASK_MAXLENGTH } from "../_internal/mask.js";
|
|
9
9
|
const H = { sm: "var(--control-height-sm)", md: "var(--control-height-md)", lg: "var(--control-height-lg)" };
|
|
10
10
|
function Input({
|
|
11
11
|
label,
|
package/dist/forms/Radio.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { sx } from "../_internal/style";
|
|
4
|
+
import { sx } from "../_internal/style.js";
|
|
5
5
|
function Radio({ label, description, checked, defaultChecked, disabled, size = "md", onChange, style, ...rest }) {
|
|
6
6
|
const [hover, setHover] = React.useState(false);
|
|
7
7
|
const box = size === "sm" ? 16 : 20;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { Search, X } from "lucide-react";
|
|
5
|
-
import { sx } from "../_internal/style";
|
|
6
|
-
import { Input } from "./Input";
|
|
5
|
+
import { sx } from "../_internal/style.js";
|
|
6
|
+
import { Input } from "./Input.js";
|
|
7
7
|
function SearchInput({
|
|
8
8
|
value,
|
|
9
9
|
defaultValue,
|
package/dist/forms/Select.js
CHANGED
|
@@ -3,9 +3,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import { Check, ChevronDown } from "lucide-react";
|
|
6
|
-
import { sx } from "../_internal/style";
|
|
7
|
-
import { Field } from "../_internal/Field";
|
|
8
|
-
import { fieldBoxStyle } from "./_internal/fieldBoxStyle";
|
|
6
|
+
import { sx } from "../_internal/style.js";
|
|
7
|
+
import { Field } from "../_internal/Field.js";
|
|
8
|
+
import { fieldBoxStyle } from "./_internal/fieldBoxStyle.js";
|
|
9
9
|
const OPTION_PAD_Y = { sm: 6, md: 8, lg: 10 };
|
|
10
10
|
const useIsoLayoutEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
11
11
|
function useCoarsePointer() {
|
package/dist/forms/Switch.js
CHANGED
package/dist/forms/Textarea.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { sx } from "../_internal/style";
|
|
5
|
-
import { Field } from "../_internal/Field";
|
|
6
|
-
import { CharCount } from "../_internal/CharCount";
|
|
4
|
+
import { sx } from "../_internal/style.js";
|
|
5
|
+
import { Field } from "../_internal/Field.js";
|
|
6
|
+
import { CharCount } from "../_internal/CharCount.js";
|
|
7
7
|
function Textarea({ label, hint, error, required, rows = 4, showCount, disabled, id, style, containerStyle, ...rest }) {
|
|
8
8
|
const [focus, setFocus] = React.useState(false);
|
|
9
9
|
const autoId = React.useId();
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ChevronDown, ChevronLeft, ChevronRight } from "lucide-react";
|
|
5
|
-
import { sx } from "../../_internal/style";
|
|
6
|
-
import { IconButton } from "../../core/IconButton";
|
|
5
|
+
import { sx } from "../../_internal/style.js";
|
|
6
|
+
import { IconButton } from "../../core/IconButton.js";
|
|
7
7
|
const I18N = {
|
|
8
8
|
"pt-BR": {
|
|
9
9
|
dow: ["D", "S", "T", "Q", "Q", "S", "S"],
|
package/dist/index.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { Button } from "./core/Button";
|
|
2
|
-
import { IconButton } from "./core/IconButton";
|
|
3
|
-
import { Badge } from "./core/Badge";
|
|
4
|
-
import { Card } from "./core/Card";
|
|
5
|
-
import { Avatar } from "./core/Avatar";
|
|
6
|
-
import { Brand } from "./core/Brand";
|
|
7
|
-
import { Menu } from "./core/Menu";
|
|
1
|
+
import { Button } from "./core/Button.js";
|
|
2
|
+
import { IconButton } from "./core/IconButton.js";
|
|
3
|
+
import { Badge } from "./core/Badge.js";
|
|
4
|
+
import { Card } from "./core/Card.js";
|
|
5
|
+
import { Avatar } from "./core/Avatar.js";
|
|
6
|
+
import { Brand } from "./core/Brand.js";
|
|
7
|
+
import { Menu } from "./core/Menu.js";
|
|
8
8
|
import {
|
|
9
9
|
Table
|
|
10
|
-
} from "./core/Table";
|
|
11
|
-
import { Input } from "./forms/Input";
|
|
12
|
-
import { Textarea } from "./forms/Textarea";
|
|
13
|
-
import { Select } from "./forms/Select";
|
|
14
|
-
import { Checkbox } from "./forms/Checkbox";
|
|
15
|
-
import { Radio } from "./forms/Radio";
|
|
16
|
-
import { Switch } from "./forms/Switch";
|
|
17
|
-
import { DateTimePicker } from "./forms/DateTimePicker";
|
|
18
|
-
import { DatePicker } from "./forms/DatePicker";
|
|
19
|
-
import { FileUpload } from "./forms/FileUpload";
|
|
20
|
-
import { AvatarUpload } from "./forms/AvatarUpload";
|
|
21
|
-
import { SearchInput } from "./forms/SearchInput";
|
|
22
|
-
import { TopBar } from "./navigation/TopBar";
|
|
23
|
-
import { Tabs } from "./navigation/Tabs";
|
|
24
|
-
import { BottomNav } from "./navigation/BottomNav";
|
|
10
|
+
} from "./core/Table.js";
|
|
11
|
+
import { Input } from "./forms/Input.js";
|
|
12
|
+
import { Textarea } from "./forms/Textarea.js";
|
|
13
|
+
import { Select } from "./forms/Select.js";
|
|
14
|
+
import { Checkbox } from "./forms/Checkbox.js";
|
|
15
|
+
import { Radio } from "./forms/Radio.js";
|
|
16
|
+
import { Switch } from "./forms/Switch.js";
|
|
17
|
+
import { DateTimePicker } from "./forms/DateTimePicker.js";
|
|
18
|
+
import { DatePicker } from "./forms/DatePicker.js";
|
|
19
|
+
import { FileUpload } from "./forms/FileUpload.js";
|
|
20
|
+
import { AvatarUpload } from "./forms/AvatarUpload.js";
|
|
21
|
+
import { SearchInput } from "./forms/SearchInput.js";
|
|
22
|
+
import { TopBar } from "./navigation/TopBar.js";
|
|
23
|
+
import { Tabs } from "./navigation/Tabs.js";
|
|
24
|
+
import { BottomNav } from "./navigation/BottomNav.js";
|
|
25
25
|
import {
|
|
26
26
|
SidebarNav
|
|
27
|
-
} from "./navigation/SidebarNav";
|
|
28
|
-
import { Stepper } from "./navigation/Stepper";
|
|
29
|
-
import { Alert } from "./feedback/Alert";
|
|
30
|
-
import { Toast } from "./feedback/Toast";
|
|
27
|
+
} from "./navigation/SidebarNav.js";
|
|
28
|
+
import { Stepper } from "./navigation/Stepper.js";
|
|
29
|
+
import { Alert } from "./feedback/Alert.js";
|
|
30
|
+
import { Toast } from "./feedback/Toast.js";
|
|
31
31
|
import {
|
|
32
32
|
ToastProvider,
|
|
33
33
|
useToast
|
|
34
|
-
} from "./feedback/ToastProvider";
|
|
35
|
-
import { Dialog } from "./feedback/Dialog";
|
|
36
|
-
import { Skeleton } from "./feedback/Skeleton";
|
|
37
|
-
import { EmptyState } from "./feedback/EmptyState";
|
|
38
|
-
import { ThemeProvider } from "./theme/ThemeProvider";
|
|
39
|
-
import { ThemeToggle } from "./theme/ThemeToggle";
|
|
34
|
+
} from "./feedback/ToastProvider.js";
|
|
35
|
+
import { Dialog } from "./feedback/Dialog.js";
|
|
36
|
+
import { Skeleton } from "./feedback/Skeleton.js";
|
|
37
|
+
import { EmptyState } from "./feedback/EmptyState.js";
|
|
38
|
+
import { ThemeProvider } from "./theme/ThemeProvider.js";
|
|
39
|
+
import { ThemeToggle } from "./theme/ThemeToggle.js";
|
|
40
40
|
export {
|
|
41
41
|
Alert,
|
|
42
42
|
Avatar,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { sx } from "../_internal/style";
|
|
4
|
+
import { sx } from "../_internal/style.js";
|
|
5
5
|
const BottomNavContext = React.createContext(null);
|
|
6
6
|
function useBottomNavContext(component) {
|
|
7
7
|
const ctx = React.useContext(BottomNavContext);
|
|
@@ -3,8 +3,8 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import { ChevronDown, ChevronLeft } from "lucide-react";
|
|
6
|
-
import { sx } from "../_internal/style";
|
|
7
|
-
import { useInteract } from "../core/Button";
|
|
6
|
+
import { sx } from "../_internal/style.js";
|
|
7
|
+
import { useInteract } from "../core/Button.js";
|
|
8
8
|
const EXPANDED = 248;
|
|
9
9
|
const COLLAPSED = 72;
|
|
10
10
|
const groupHead = sx({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { sx } from "../_internal/style";
|
|
4
|
+
import { sx } from "../_internal/style.js";
|
|
5
5
|
const defaultStepLabel = (current, total) => `Step ${current} of ${total}`;
|
|
6
6
|
const StepperContext = React.createContext(null);
|
|
7
7
|
function useStepperContext(component) {
|
package/dist/navigation/Tabs.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 { ChevronLeft, ChevronRight } from "lucide-react";
|
|
5
|
-
import { sx } from "../_internal/style";
|
|
5
|
+
import { sx } from "../_internal/style.js";
|
|
6
6
|
const CHEVRON_W = 56;
|
|
7
7
|
const TabsContext = React.createContext(null);
|
|
8
8
|
function useTabsContext(component) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sx } from "../_internal/style";
|
|
3
|
+
import { sx } from "../_internal/style.js";
|
|
4
4
|
function TopBarRoot({ sticky = true, transparent = false, children, style, ...rest }) {
|
|
5
5
|
return /* @__PURE__ */ jsx(
|
|
6
6
|
"header",
|
|
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { useTheme } from "next-themes";
|
|
5
5
|
import { Moon, Sun } from "lucide-react";
|
|
6
|
-
import { IconButton } from "../core/IconButton";
|
|
6
|
+
import { IconButton } from "../core/IconButton.js";
|
|
7
7
|
function ThemeToggle({ variant = "secondary" }) {
|
|
8
8
|
const { resolvedTheme, setTheme } = useTheme();
|
|
9
9
|
const [mounted, setMounted] = React.useState(false);
|