@dimasbaguspm/versaur 0.0.20 → 0.0.21
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 +22 -6
- package/dist/js/{bottom-sheet-DbtyWwsy.js → bottom-sheet-Eqduh3eY.js} +17 -15
- package/dist/js/{bottom-sheet-input-C7cYfBaK.js → bottom-sheet-input-DFGibm1I.js} +2 -2
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle-DH7v2xvp.js → image-rectangle-C6cgL8R9.js} +329 -284
- package/dist/js/index.js +30 -29
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/overlays/index.js +1 -1
- package/dist/js/primitive/index.js +12 -11
- package/dist/js/{side-bar-CHhcp0yS.js → side-bar-BUACYQUo.js} +4 -4
- package/dist/types/primitive/icon/types.d.ts +1 -1
- package/dist/types/primitive/index.d.ts +1 -0
- package/dist/types/primitive/no-results/index.d.ts +2 -0
- package/dist/types/primitive/no-results/no-results.d.ts +15 -0
- package/dist/types/primitive/no-results/types.d.ts +30 -0
- package/dist/utils/enforce-subpath-import.js +1 -0
- package/package.json +1 -1
package/dist/js/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { L as
|
|
2
|
-
import { A as n, B as p, F as u, P as l, S as i, T as I } from "./side-bar-
|
|
3
|
-
import { B as S, C as m, b as B, a as g, D as T, k as d, E as x, M as f, P as b, R as h, d as k, c as M, S as P, e as C, j as A, i as D, h as L, f as
|
|
4
|
-
import { B as v, D as y, M as E } from "./bottom-sheet-
|
|
5
|
-
import { M as
|
|
6
|
-
import { A as
|
|
7
|
-
import { S as
|
|
8
|
-
import { T as
|
|
9
|
-
import { B as
|
|
10
|
-
import { S as
|
|
1
|
+
import { L as s, P as t, S as r } from "./skeleton-BNZyaRjo.js";
|
|
2
|
+
import { A as n, B as p, F as u, P as l, S as i, T as I } from "./side-bar-BUACYQUo.js";
|
|
3
|
+
import { B as S, C as m, b as B, a as g, D as T, k as d, E as x, M as f, P as b, R as h, d as k, c as M, S as P, e as C, j as A, i as D, h as L, f as R, T as w, g as F } from "./bottom-sheet-input-DFGibm1I.js";
|
|
4
|
+
import { B as v, D as y, M as E } from "./bottom-sheet-Eqduh3eY.js";
|
|
5
|
+
import { M as q, T as z } from "./tooltip-CDdl1U3A.js";
|
|
6
|
+
import { A as H, a as J, b as K, B as O, l as Q, c as U, d as V, e as W, f as X, C as Y, g as Z, D as _, I as $, i as aa, k as ea, j as sa, N as ta, T as ra, h as oa } from "./image-rectangle-C6cgL8R9.js";
|
|
7
|
+
import { S as pa } from "./snackbar-DH8jCh2V.js";
|
|
8
|
+
import { T as la } from "./text-CRsIInRA.js";
|
|
9
|
+
import { B as Ia, T as ca } from "./tabs-BbOkYchB.js";
|
|
10
|
+
import { S as ma, u as Ba } from "./use-snackbars-oPoF7J5t.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
H as Alert,
|
|
13
|
+
J as Anchor,
|
|
14
14
|
n as AppBar,
|
|
15
|
-
|
|
15
|
+
K as Avatar,
|
|
16
16
|
O as Badge,
|
|
17
17
|
Q as BaseImage,
|
|
18
18
|
p as BottomBar,
|
|
19
19
|
v as BottomSheet,
|
|
20
20
|
S as BottomSheetInput,
|
|
21
21
|
U as Brand,
|
|
22
|
-
|
|
22
|
+
Ia as Breadcrumbs,
|
|
23
23
|
V as Button,
|
|
24
24
|
W as ButtonFloat,
|
|
25
25
|
X as ButtonIcon,
|
|
@@ -37,14 +37,15 @@ export {
|
|
|
37
37
|
$ as Icon,
|
|
38
38
|
aa as ImageCircle,
|
|
39
39
|
ea as ImageRectangle,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
sa as ImageSquare,
|
|
41
|
+
s as LoadingIndicator,
|
|
42
|
+
q as Menu,
|
|
43
43
|
E as Modal,
|
|
44
44
|
f as ModalInput,
|
|
45
|
+
ta as NoResults,
|
|
45
46
|
l as PageLayout,
|
|
46
47
|
b as PriceInput,
|
|
47
|
-
|
|
48
|
+
t as ProgressIndicator,
|
|
48
49
|
h as RadioInput,
|
|
49
50
|
k as SearchInput,
|
|
50
51
|
M as SegmentMultipleInput,
|
|
@@ -54,17 +55,17 @@ export {
|
|
|
54
55
|
D as SelectableSingleInput,
|
|
55
56
|
i as SideBar,
|
|
56
57
|
r as Skeleton,
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
pa as Snackbar,
|
|
59
|
+
ma as SnackbarsProvider,
|
|
59
60
|
L as SwitchInput,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
ra as Table,
|
|
62
|
+
ca as Tabs,
|
|
63
|
+
la as Text,
|
|
64
|
+
R as TextAreaInput,
|
|
65
|
+
w as TextInput,
|
|
66
|
+
oa as Tile,
|
|
67
|
+
F as TimePickerInput,
|
|
68
|
+
z as Tooltip,
|
|
68
69
|
I as TopBar,
|
|
69
|
-
|
|
70
|
+
Ba as useSnackbars
|
|
70
71
|
};
|
package/dist/js/layouts/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as e, a as t, b as
|
|
2
|
-
import { S as
|
|
3
|
-
import { T as
|
|
1
|
+
import { A as e, a as t, b as o, B as r, l, c as n, d as c, e as g, f as m, C as B, g as I, D as i, I as u, i as T, k as d, j as f, N as p, T as x, h as A } from "../image-rectangle-C6cgL8R9.js";
|
|
2
|
+
import { S as b } from "../snackbar-DH8jCh2V.js";
|
|
3
|
+
import { T as h } from "../text-CRsIInRA.js";
|
|
4
4
|
export {
|
|
5
5
|
e as Alert,
|
|
6
6
|
t as Anchor,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
o as Avatar,
|
|
8
|
+
r as Badge,
|
|
9
|
+
l as BaseImage,
|
|
10
|
+
n as Brand,
|
|
11
11
|
c as Button,
|
|
12
12
|
g as ButtonFloat,
|
|
13
13
|
m as ButtonIcon,
|
|
@@ -18,8 +18,9 @@ export {
|
|
|
18
18
|
T as ImageCircle,
|
|
19
19
|
d as ImageRectangle,
|
|
20
20
|
f as ImageSquare,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
p as NoResults,
|
|
22
|
+
b as Snackbar,
|
|
23
|
+
x as Table,
|
|
24
|
+
h as Text,
|
|
25
|
+
A as Tile
|
|
25
26
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as i, j as s, a as l } from "./index-DOdDlCoL.js";
|
|
2
2
|
import * as f from "react";
|
|
3
3
|
import { forwardRef as n } from "react";
|
|
4
|
-
import "./image-rectangle-
|
|
4
|
+
import "./image-rectangle-C6cgL8R9.js";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
6
|
import { T as d } from "./text-CRsIInRA.js";
|
|
7
7
|
const b = i(
|
|
@@ -225,9 +225,9 @@ const b = i(
|
|
|
225
225
|
}), E = i("w-full mx-auto relative", {
|
|
226
226
|
variants: {
|
|
227
227
|
type: {
|
|
228
|
-
desktop: "max-w-7xl px-6
|
|
229
|
-
tablet: "max-w-3xl",
|
|
230
|
-
mobile: "w-full"
|
|
228
|
+
desktop: "max-w-7xl px-6 pb-10",
|
|
229
|
+
tablet: "max-w-3xl px-4",
|
|
230
|
+
mobile: "w-full px-4"
|
|
231
231
|
}
|
|
232
232
|
},
|
|
233
233
|
defaultVariants: {
|
|
@@ -23,7 +23,7 @@ export type IconProps = Omit<React.SVGProps<SVGSVGElement>, 'children'> & {
|
|
|
23
23
|
/**
|
|
24
24
|
* Color variant
|
|
25
25
|
*/
|
|
26
|
-
color?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger' | 'inherit';
|
|
26
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger' | 'black' | 'gray' | 'white' | 'inherit';
|
|
27
27
|
/**
|
|
28
28
|
* Size of the icon
|
|
29
29
|
*/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NoResultsProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* NoResults component for Versaur UI
|
|
5
|
+
* Displays an empty state with icon, title, subtitle, and optional action
|
|
6
|
+
* Uses semantic HTML structure with proper headings and landmarks
|
|
7
|
+
* @example
|
|
8
|
+
* <NoResults
|
|
9
|
+
* icon={SearchIcon}
|
|
10
|
+
* title="No results found"
|
|
11
|
+
* subtitle="Try adjusting your search criteria"
|
|
12
|
+
* action={<Button onClick={clearSearch}>Clear filters</Button>}
|
|
13
|
+
* />
|
|
14
|
+
*/
|
|
15
|
+
export declare const NoResults: React.ForwardRefExoticComponent<NoResultsProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes, ComponentType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* NoResultsProps defines the props for the NoResults component
|
|
4
|
+
* @property icon - Icon component to display (typically from lucide-react)
|
|
5
|
+
* @property title - Main heading text for the no results state
|
|
6
|
+
* @property subtitle - Secondary descriptive text
|
|
7
|
+
* @property action - Optional action element (typically a Button)
|
|
8
|
+
*/
|
|
9
|
+
export interface NoResultsProps extends HTMLAttributes<HTMLElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Icon to display at the top of the no results state
|
|
12
|
+
* Should be a Lucide icon component
|
|
13
|
+
*/
|
|
14
|
+
icon: ComponentType;
|
|
15
|
+
/**
|
|
16
|
+
* Main heading text that describes the empty state
|
|
17
|
+
*/
|
|
18
|
+
title: string;
|
|
19
|
+
/**
|
|
20
|
+
* Secondary descriptive text that provides more context
|
|
21
|
+
* Can be a string or ReactNode for more complex content
|
|
22
|
+
*/
|
|
23
|
+
subtitle?: string | ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Optional action element to render below the content
|
|
26
|
+
* Typically a Button component for user interaction
|
|
27
|
+
*/
|
|
28
|
+
action?: ReactNode;
|
|
29
|
+
hasGrayBackground?: boolean;
|
|
30
|
+
}
|