@sereno-ds/ui 0.26.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.d.ts +14 -3
- package/dist/forms/DatePicker.js +96 -41
- package/dist/forms/DatePicker.js.map +1 -1
- package/dist/forms/DateTimePicker.d.ts +23 -3
- package/dist/forms/DateTimePicker.js +63 -14
- package/dist/forms/DateTimePicker.js.map +1 -1
- 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.d.ts +7 -1
- package/dist/forms/_internal/CalendarGrid.js +39 -14
- package/dist/forms/_internal/CalendarGrid.js.map +1 -1
- 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/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);
|