@dimasbaguspm/versaur 0.0.44 → 0.0.45

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/js/index.js CHANGED
@@ -1,57 +1,58 @@
1
- import { L as t, P as s, S as r } from "./skeleton-BNZyaRjo.js";
2
- import { A as n, a as u, B as p, b as i, F as l, f as I, P as c, c as S, d as m, e as B, S as g, T as d } from "./top-bar-CKo6k1eW.js";
3
- import { B as T, C as x, b as f, a as h, D as P, k as C, E as M, M as A, P as k, R as F, d as L, c as D, S as H, e as R, j as w, i as G, h as j, f as q, T as v, g as y } from "./bottom-sheet-input-C9Ht9cxQ.js";
4
- import { B as N, D as z, M as J } from "./bottom-sheet-BSN0J8ji.js";
5
- import { A as O, a as Q, b as U, c as V, d as W, e as X, B as Y, s as Z, f as _, g as $, j as aa, k as ea, h as ta, i as sa, C as ra, l as oa, F as na, H as ua, m as pa, I as ia, p as la, r as Ia, q as ca, M as Sa, N as ma, T as Ba, n as ga, o as da } from "./image-rectangle-DjuCYHbk.js";
6
- import { T as Ta } from "./tooltip-nOXyn9AX.js";
7
- import { S as fa } from "./snackbar-DH8jCh2V.js";
8
- import { B as Pa, T as Ca } from "./tabs-CiZ2DPDD.js";
9
- import { S as Aa, u as ka } from "./use-snackbars-Cou8L41F.js";
1
+ import { L as e, P as s, S as r } from "./skeleton-BNZyaRjo.js";
2
+ import { A as n, a as u, B as p, b as i, F as l, f as I, P as c, c as S, d as m, e as B, S as g, T as d } from "./top-bar-vvLnMBwo.js";
3
+ import { B as T, C as x, b as f, a as h, D as C, k as P, E as A, M, P as k, R as F, d as L, c as D, S as H, e as R, j as w, i as G, h as j, f as q, T as v, g as y } from "./bottom-sheet-input-CxLwoZLr.js";
4
+ import { B as N, D as z, M as J } from "./bottom-sheet-QdQ5L8Wo.js";
5
+ import { A as O, a as Q, b as U, c as V, d as W, e as X, f as Y, B as Z, t as _, g as $, h as aa, k as ta, l as ea, i as sa, j as ra, C as oa, m as na, F as ua, H as pa, n as ia, I as la, q as Ia, s as ca, r as Sa, M as ma, N as Ba, T as ga, o as da, p as ba } from "./image-rectangle-BijhERaV.js";
6
+ import { T as xa } from "./tooltip-D80OXyWL.js";
7
+ import { S as ha } from "./snackbar-DH8jCh2V.js";
8
+ import { B as Pa, T as Aa } from "./tabs-D5aWU0pC.js";
9
+ import { S as ka, u as Fa } from "./use-snackbars-Cou8L41F.js";
10
10
  export {
11
11
  O as Accordion,
12
- Q as Alert,
13
- U as Anchor,
12
+ Q as ActionCard,
13
+ U as Alert,
14
+ V as Anchor,
14
15
  n as AppBar,
15
- V as Attribute,
16
- W as AttributeList,
17
- X as Avatar,
18
- Y as Badge,
16
+ W as Attribute,
17
+ X as AttributeList,
18
+ Y as Avatar,
19
+ Z as Badge,
19
20
  u as BadgeGroup,
20
- Z as BaseImage,
21
+ _ as BaseImage,
21
22
  p as BottomBar,
22
23
  N as BottomSheet,
23
24
  T as BottomSheetInput,
24
- _ as Brand,
25
+ $ as Brand,
25
26
  Pa as Breadcrumbs,
26
- $ as Button,
27
- aa as ButtonFloat,
27
+ aa as Button,
28
+ ta as ButtonFloat,
28
29
  i as ButtonGroup,
29
30
  ea as ButtonIcon,
30
- ta as ButtonMenu,
31
- sa as ButtonMenuIcon,
32
- ra as Calculator,
33
- oa as Card,
31
+ sa as ButtonMenu,
32
+ ra as ButtonMenuIcon,
33
+ oa as Calculator,
34
+ na as Card,
34
35
  x as CheckboxInput,
35
36
  f as ChipMultipleInput,
36
37
  h as ChipSingleInput,
37
- P as DateSinglePickerInput,
38
+ C as DateSinglePickerInput,
38
39
  z as Drawer,
39
- C as DrawerInput,
40
- M as EmailInput,
41
- na as FilterChip,
40
+ P as DrawerInput,
41
+ A as EmailInput,
42
+ ua as FilterChip,
42
43
  l as FilterChipGroup,
43
44
  I as FormLayout,
44
- ua as Heading,
45
- pa as Hr,
46
- ia as Icon,
47
- la as ImageCircle,
48
- Ia as ImageRectangle,
49
- ca as ImageSquare,
50
- t as LoadingIndicator,
51
- Sa as Menu,
45
+ pa as Heading,
46
+ ia as Hr,
47
+ la as Icon,
48
+ Ia as ImageCircle,
49
+ ca as ImageRectangle,
50
+ Sa as ImageSquare,
51
+ e as LoadingIndicator,
52
+ ma as Menu,
52
53
  J as Modal,
53
- A as ModalInput,
54
- ma as NoResults,
54
+ M as ModalInput,
55
+ Ba as NoResults,
55
56
  c as PageContent,
56
57
  S as PageHeader,
57
58
  m as PageLayout,
@@ -67,17 +68,17 @@ export {
67
68
  G as SelectableSingleInput,
68
69
  g as SideBar,
69
70
  r as Skeleton,
70
- fa as Snackbar,
71
- Aa as SnackbarsProvider,
71
+ ha as Snackbar,
72
+ ka as SnackbarsProvider,
72
73
  j as SwitchInput,
73
- Ba as Table,
74
- Ca as Tabs,
75
- ga as Text,
74
+ ga as Table,
75
+ Aa as Tabs,
76
+ da as Text,
76
77
  q as TextAreaInput,
77
78
  v as TextInput,
78
- da as Tile,
79
+ ba as Tile,
79
80
  y as TimePickerInput,
80
- Ta as Tooltip,
81
+ xa as Tooltip,
81
82
  d as TopBar,
82
- ka as useSnackbars
83
+ Fa as useSnackbars
83
84
  };
@@ -1,4 +1,4 @@
1
- import { A as e, a as r, B as s, b as t, F as p, f as B, P as u, c as d, d as g, e as P, S as i, T as m } from "../top-bar-CKo6k1eW.js";
1
+ import { A as e, a as r, B as s, b as t, F as p, f as B, P as u, c as d, d as g, e as P, S as i, T as m } from "../top-bar-vvLnMBwo.js";
2
2
  export {
3
3
  e as AppBar,
4
4
  r as BadgeGroup,
@@ -1,4 +1,4 @@
1
- import { B as s, T as b } from "../tabs-CiZ2DPDD.js";
1
+ import { B as s, T as b } from "../tabs-D5aWU0pC.js";
2
2
  export {
3
3
  s as Breadcrumbs,
4
4
  b as Tabs
@@ -1,6 +1,6 @@
1
- import { B as a, D as e, M as t } from "../bottom-sheet-BSN0J8ji.js";
2
- import { M as m } from "../image-rectangle-DjuCYHbk.js";
3
- import { T as M } from "../tooltip-nOXyn9AX.js";
1
+ import { B as a, D as e, M as t } from "../bottom-sheet-QdQ5L8Wo.js";
2
+ import { M as m } from "../image-rectangle-BijhERaV.js";
3
+ import { T as M } from "../tooltip-D80OXyWL.js";
4
4
  export {
5
5
  a as BottomSheet,
6
6
  e as Drawer,
@@ -1,32 +1,33 @@
1
- import { A as t, a as e, b as o, c as r, d as n, e as u, B as c, s as l, f as i, g as B, j as g, k as I, h as m, i as A, C as d, l as b, F as C, H as p, m as T, I as f, p as h, r as x, q as F, N as H, T as S, n as k, o as q } from "../image-rectangle-DjuCYHbk.js";
2
- import { S as N } from "../snackbar-DH8jCh2V.js";
1
+ import { A as t, a as e, b as o, c as r, d as n, e as c, f as u, B as i, t as l, g as B, h as g, k as A, l as I, i as d, j as m, C, m as b, F as p, H as T, n as f, I as h, q as x, s as F, r as H, N as S, T as k, o as q, p as M } from "../image-rectangle-BijhERaV.js";
2
+ import { S as R } from "../snackbar-DH8jCh2V.js";
3
3
  export {
4
4
  t as Accordion,
5
- e as Alert,
6
- o as Anchor,
7
- r as Attribute,
8
- n as AttributeList,
5
+ e as ActionCard,
6
+ o as Alert,
7
+ r as Anchor,
8
+ n as Attribute,
9
+ c as AttributeList,
9
10
  u as Avatar,
10
- c as Badge,
11
+ i as Badge,
11
12
  l as BaseImage,
12
- i as Brand,
13
- B as Button,
14
- g as ButtonFloat,
13
+ B as Brand,
14
+ g as Button,
15
+ A as ButtonFloat,
15
16
  I as ButtonIcon,
16
- m as ButtonMenu,
17
- A as ButtonMenuIcon,
18
- d as Calculator,
17
+ d as ButtonMenu,
18
+ m as ButtonMenuIcon,
19
+ C as Calculator,
19
20
  b as Card,
20
- C as FilterChip,
21
- p as Heading,
22
- T as Hr,
23
- f as Icon,
24
- h as ImageCircle,
25
- x as ImageRectangle,
26
- F as ImageSquare,
27
- H as NoResults,
28
- N as Snackbar,
29
- S as Table,
30
- k as Text,
31
- q as Tile
21
+ p as FilterChip,
22
+ T as Heading,
23
+ f as Hr,
24
+ h as Icon,
25
+ x as ImageCircle,
26
+ F as ImageRectangle,
27
+ H as ImageSquare,
28
+ S as NoResults,
29
+ R as Snackbar,
30
+ k as Table,
31
+ q as Text,
32
+ M as Tile
32
33
  };
@@ -1,6 +1,6 @@
1
1
  import { c as d, j as s, a as u } from "./index-DOdDlCoL.js";
2
2
  import { forwardRef as f, createContext as x, useContext as g, useState as p, useLayoutEffect as y, useRef as h } from "react";
3
- import { I as w } from "./image-rectangle-DjuCYHbk.js";
3
+ import { I as w } from "./image-rectangle-BijhERaV.js";
4
4
  import "./snackbar-DH8jCh2V.js";
5
5
  import { ChevronRight as T } from "lucide-react";
6
6
  const j = d(
@@ -1,6 +1,6 @@
1
1
  import { c as v, j as c, a as w } from "./index-DOdDlCoL.js";
2
2
  import { useRef as m, useState as d, useEffect as h, useId as T, cloneElement as j } from "react";
3
- import { n as y } from "./image-rectangle-DjuCYHbk.js";
3
+ import { o as y } from "./image-rectangle-BijhERaV.js";
4
4
  function P(e = "auto") {
5
5
  const n = m(null), [a, t] = d("bottom");
6
6
  return h(() => {
@@ -1,7 +1,7 @@
1
1
  import { c as i, j as s, a as l } from "./index-DOdDlCoL.js";
2
2
  import * as v from "react";
3
3
  import { forwardRef as o } from "react";
4
- import { n as f } from "./image-rectangle-DjuCYHbk.js";
4
+ import { o as f } from "./image-rectangle-BijhERaV.js";
5
5
  import "./snackbar-DH8jCh2V.js";
6
6
  import { L as h } from "./skeleton-BNZyaRjo.js";
7
7
  const j = i(
@@ -0,0 +1,18 @@
1
+ import { ActionCardGroupProps } from './types';
2
+ /**
3
+ * ActionCard.Group - Container component for grouping multiple ActionCards
4
+ *
5
+ * Provides a clean container with proper spacing and borders for multiple ActionCards.
6
+ * ActionCards within a group are automatically spaced and can be configured with
7
+ * consistent sizing.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * <ActionCard.Group>
12
+ * <ActionCard icon={<WalletIcon />} title="Account Groups" badge={<Badge>Popular</Badge>} />
13
+ * <ActionCard icon={<TagsIcon />} title="Category Groups" />
14
+ * <ActionCard icon={<DatabaseIcon />} title="Backup & Restore" />
15
+ * </ActionCard.Group>
16
+ * ```
17
+ */
18
+ export declare const ActionCardGroup: import('react').ForwardRefExoticComponent<ActionCardGroupProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,4 @@
1
+ import { ActionCardProps } from './types';
2
+ export declare const ActionCard: import('react').ForwardRefExoticComponent<ActionCardProps & import('react').RefAttributes<HTMLDivElement | HTMLButtonElement>> & {
3
+ Group: import('react').ForwardRefExoticComponent<import('./types').ActionCardGroupProps & import('react').RefAttributes<HTMLDivElement>>;
4
+ };
@@ -0,0 +1,2 @@
1
+ export { ActionCard } from './action-card';
2
+ export type { ActionCardProps, ActionCardGroupProps } from './types';
@@ -0,0 +1,57 @@
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { actionCardVariants } from './helpers';
4
+ /**
5
+ * Props for the ActionCard component
6
+ */
7
+ export interface ActionCardProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'title' | 'children'>, VariantProps<typeof actionCardVariants> {
8
+ /**
9
+ * Size variant affecting padding and spacing
10
+ * @default 'md'
11
+ */
12
+ size?: 'sm' | 'md' | 'lg';
13
+ /**
14
+ * Icon element to display in the icon container
15
+ */
16
+ icon?: ReactNode;
17
+ /**
18
+ * Main title text
19
+ */
20
+ title: ReactNode;
21
+ /**
22
+ * Subtitle or description text
23
+ */
24
+ subtitle?: ReactNode;
25
+ /**
26
+ * Badge element to display next to the title
27
+ */
28
+ badge?: ReactNode;
29
+ /**
30
+ * Whether to show the chevron arrow
31
+ * @default true
32
+ */
33
+ showArrow?: boolean;
34
+ /**
35
+ * Is the action card a button or a div?
36
+ * @default 'button'
37
+ */
38
+ as?: 'button' | 'div';
39
+ }
40
+ /**
41
+ * Props for the ActionCard Group container
42
+ */
43
+ export interface ActionCardGroupProps {
44
+ /**
45
+ * ActionCard components to display as a group
46
+ */
47
+ children: ReactNode;
48
+ /**
49
+ * Additional CSS classes
50
+ */
51
+ className?: string;
52
+ /**
53
+ * Size variant for all cards in the group
54
+ * @default 'md'
55
+ */
56
+ size?: 'sm' | 'md' | 'lg';
57
+ }
@@ -6,7 +6,7 @@ export interface BrandProps extends HTMLAttributes<HTMLSpanElement> {
6
6
  /**
7
7
  * The app name to display (predefined, default: 'spenicle')
8
8
  */
9
- name: 'spenicle' | 'hub';
9
+ name: 'spenicle' | 'hub' | 'notunic';
10
10
  /**
11
11
  * The size of the brand icon and text
12
12
  * @default 'md'
@@ -1,4 +1,5 @@
1
1
  export * from './accordion';
2
+ export * from './action-card';
2
3
  export * from './alert';
3
4
  export * from './anchor';
4
5
  export * from './attribute';
@@ -47,6 +47,7 @@ const symbolToSubpath = {
47
47
  "Modal": "overlays",
48
48
  "Tooltip": "overlays",
49
49
  "Accordion": "primitive",
50
+ "ActionCard": "primitive",
50
51
  "Alert": "primitive",
51
52
  "Anchor": "primitive",
52
53
  "Attribute": "primitive",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimasbaguspm/versaur",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "description": "React UI library with Tailwind CSS",
5
5
  "author": "Dimas Bagus Prayogo Mukti<dimas.bagus.pm@gmail.com>",
6
6
  "license": "MIT",