@yuno-payments/dashboard-design-system 0.0.166 → 0.0.170
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/components/atoms/access-denied-alert/access-denied-alert.d.ts +0 -16
- package/dist/components/atoms/accordion/accordion.d.ts +0 -66
- package/dist/components/atoms/alert/alert.d.ts +1 -26
- package/dist/components/atoms/alert/alert.js +8 -9
- package/dist/components/atoms/avatar/avatar-group.d.ts +0 -28
- package/dist/components/atoms/avatar/avatar.d.ts +0 -25
- package/dist/components/atoms/avatar/avatar.js +9 -9
- package/dist/components/atoms/badge/badge.d.ts +2 -30
- package/dist/components/atoms/badge/badge.js +11 -27
- package/dist/components/atoms/button/button.d.ts +0 -44
- package/dist/components/atoms/card/card.d.ts +3 -137
- package/dist/components/atoms/card/card.js +28 -56
- package/dist/components/atoms/checkbox/checkbox.d.ts +2 -38
- package/dist/components/atoms/checkbox/checkbox.js +27 -61
- package/dist/components/atoms/combobox/combobox.d.ts +0 -18
- package/dist/components/atoms/combobox/combobox.js +41 -41
- package/dist/components/atoms/combobox/types.d.ts +1 -90
- package/dist/components/atoms/currency-field/currency-field.d.ts +0 -38
- package/dist/components/atoms/currency-field/currency-field.js +19 -22
- package/dist/components/atoms/date-picker/date-picker.d.ts +0 -15
- package/dist/components/atoms/date-range-picker/date-range-picker.d.ts +0 -15
- package/dist/components/atoms/dots-menu/dots-menu.d.ts +0 -16
- package/dist/components/atoms/dots-menu/dots-menu.js +8 -8
- package/dist/components/atoms/dots-menu/dots-menu.types.d.ts +0 -52
- package/dist/components/atoms/dropdown-menu/dropdown-menu.d.ts +0 -50
- package/dist/components/atoms/field/field.d.ts +0 -55
- package/dist/components/atoms/field/field.js +46 -53
- package/dist/components/atoms/filter/filter-date-range.d.ts +2 -12
- package/dist/components/atoms/filter/filter-date-range.js +168 -203
- package/dist/components/atoms/filter/filter.d.ts +0 -6
- package/dist/components/atoms/filter/filter.js +76 -91
- package/dist/components/atoms/filter/index.d.ts +1 -1
- package/dist/components/atoms/filter-dropdown/filter-dropdown.d.ts +2 -208
- package/dist/components/atoms/filter-dropdown/filter-dropdown.js +160 -214
- package/dist/components/atoms/icon/icon-list.d.ts +0 -5
- package/dist/components/atoms/icon/icon-list.js +384 -394
- package/dist/components/atoms/icon/icon.d.ts +0 -29
- package/dist/components/atoms/index.d.ts +2 -3
- package/dist/components/atoms/label/index.d.ts +1 -1
- package/dist/components/atoms/link/link.d.ts +0 -20
- package/dist/components/atoms/multi-select/multi-select.d.ts +1 -1
- package/dist/components/atoms/multi-select/multi-select.js +6 -6
- package/dist/components/atoms/multi-values-field/multi-values-field.d.ts +0 -16
- package/dist/components/atoms/multi-values-field/multi-values-field.js +87 -109
- package/dist/components/atoms/multi-values-field/multi-values-field.types.d.ts +0 -81
- package/dist/components/atoms/otp-field/otp-field.d.ts +0 -32
- package/dist/components/atoms/password-field/password-field.d.ts +0 -23
- package/dist/components/atoms/password-field/password-field.js +1 -1
- package/dist/components/atoms/progress/progress.d.ts +0 -15
- package/dist/components/atoms/protected-field/protected-field.d.ts +0 -10
- package/dist/components/atoms/protected-field/protected-field.types.d.ts +0 -14
- package/dist/components/atoms/radio-group/radio-group-option.js +11 -11
- package/dist/components/atoms/radio-group/radio-group.d.ts +1 -50
- package/dist/components/atoms/radio-group/radio-group.js +12 -13
- package/dist/components/atoms/search-field/search-field.d.ts +0 -14
- package/dist/components/atoms/search-field/search-field.js +17 -17
- package/dist/components/atoms/search-field/search-field.types.d.ts +0 -57
- package/dist/components/atoms/select/index.d.ts +0 -2
- package/dist/components/atoms/select/select.d.ts +1 -83
- package/dist/components/atoms/select/select.js +21 -21
- package/dist/components/atoms/separator/separator.d.ts +0 -17
- package/dist/components/atoms/skeleton/index.d.ts +0 -9
- package/dist/components/atoms/switch/switch.d.ts +2 -56
- package/dist/components/atoms/switch/switch.js +32 -64
- package/dist/components/atoms/tabs/index.d.ts +0 -16
- package/dist/components/atoms/textarea/textarea.d.ts +0 -32
- package/dist/components/atoms/textarea/textarea.js +1 -1
- package/dist/components/atoms/time-picker/time-picker.d.ts +2 -73
- package/dist/components/atoms/time-picker/time-picker.js +3 -218
- package/dist/components/atoms/toaster/index.d.ts +0 -15
- package/dist/components/atoms/toggle-group/toggle-group.d.ts +1 -26
- package/dist/components/atoms/toggle-group/toggle-group.js +14 -15
- package/dist/components/atoms/tooltip/tooltip.d.ts +2 -53
- package/dist/components/atoms/typography/typography.d.ts +0 -18
- package/dist/components/molecules/breadcrumb/breadcrumb.d.ts +0 -50
- package/dist/components/molecules/breadcrumb/breadcrumb.js +17 -17
- package/dist/components/molecules/dialog-content/dialog-content.d.ts +0 -16
- package/dist/components/molecules/dialog-footer/dialog-footer.d.ts +0 -20
- package/dist/components/molecules/dialog-header/dialog-header.d.ts +0 -31
- package/dist/components/molecules/empty/empty-icon.js +6 -6
- package/dist/components/molecules/empty/empty.d.ts +1 -16
- package/dist/components/molecules/empty/empty.js +34 -37
- package/dist/components/molecules/highlight-banner/highlight-banner.d.ts +0 -17
- package/dist/components/molecules/pagination/pagination.d.ts +0 -49
- package/dist/components/organisms/data-table/components/cells/data-table-list-cell.d.ts +0 -41
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header-content.js +1 -1
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.js +18 -18
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header.d.ts +0 -18
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header.js +10 -10
- package/dist/components/organisms/data-table/components/data-table-body.d.ts +0 -18
- package/dist/components/organisms/data-table/components/data-table-header.d.ts +0 -12
- package/dist/components/organisms/data-table/components/data-table-header.js +7 -7
- package/dist/components/organisms/data-table/components/states/data-table-loading.d.ts +0 -24
- package/dist/components/organisms/data-table/components/states/data-table-loading.js +6 -6
- package/dist/components/organisms/data-table/data-table.d.ts +3 -115
- package/dist/components/organisms/data-table/data-table.js +104 -131
- package/dist/components/organisms/data-table/data-table.types.d.ts +24 -23
- package/dist/components/organisms/data-table/hooks/use-data-table-columns.js +41 -57
- package/dist/components/organisms/data-table/hooks/use-data-table-state.d.ts +2 -7
- package/dist/components/organisms/data-table/hooks/use-data-table-state.js +46 -80
- package/dist/components/organisms/data-table/utils/data-table-constants.d.ts +2 -8
- package/dist/components/organisms/data-table/utils/data-table-constants.js +10 -16
- package/dist/components/organisms/data-table/utils/data-table-styles.d.ts +0 -1652
- package/dist/components/organisms/data-table/utils/data-table-styles.js +14 -29
- package/dist/components/organisms/dialog/dialog.d.ts +1 -67
- package/dist/components/organisms/dialog/dialog.js +61 -78
- package/dist/components/organisms/index.d.ts +0 -2
- package/dist/components/organisms/sheet/sheet.d.ts +0 -69
- package/dist/components/organisms/sheet/sheet.js +33 -34
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +162 -173
- package/dist/vendor/shadcn/avatar.js +19 -19
- package/dist/vendor/shadcn/badge.js +15 -15
- package/dist/vendor/shadcn/card.js +7 -7
- package/dist/vendor/shadcn/date-picker.d.ts +2 -2
- package/dist/vendor/shadcn/date-picker.js +1 -1
- package/dist/vendor/shadcn/date-range-picker.d.ts +2 -2
- package/dist/vendor/shadcn/date-range-picker.js +1 -1
- package/dist/vendor/shadcn/dialog.js +2 -2
- package/dist/vendor/shadcn/input-group.js +17 -17
- package/dist/vendor/shadcn/input.js +7 -7
- package/dist/vendor/shadcn/popover.js +1 -1
- package/dist/vendor/shadcn/select.js +2 -2
- package/dist/vendor/shadcn/sonner.d.ts +1 -26
- package/dist/vendor/shadcn/sonner.js +8 -12
- package/dist/vendor/shadcn/table.js +30 -30
- package/dist/vendor/shadcn/textarea.js +9 -9
- package/dist/vendor/shadcn/time-picker.d.ts +2 -1
- package/dist/vendor/shadcn/time-picker.js +23 -17
- package/dist/vendor/shadcn/toggle.js +13 -13
- package/dist/vendor/shadcn/tooltip.js +15 -25
- package/package.json +1 -1
- package/dist/components/atoms/icon/aida-logo.d.ts +0 -3
- package/dist/components/atoms/icon/aida-logo.js +0 -64
- package/dist/components/atoms/label/label.d.ts +0 -11
- package/dist/components/atoms/label/label.js +0 -28
- package/dist/components/atoms/loading/index.d.ts +0 -1
- package/dist/components/atoms/loading/loading.d.ts +0 -39
- package/dist/components/atoms/loading/loading.js +0 -37
- package/dist/components/atoms/select/search-select.d.ts +0 -22
- package/dist/components/atoms/select/search-select.js +0 -201
- package/dist/components/organisms/tutorial/index.d.ts +0 -2
- package/dist/components/organisms/tutorial/tutorial.d.ts +0 -16
- package/dist/components/organisms/tutorial/tutorial.js +0 -114
- package/dist/components/organisms/tutorial/tutorial.types.d.ts +0 -15
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/use-body-scroll-lock.d.ts +0 -13
- package/dist/hooks/use-escape-key.d.ts +0 -14
- package/dist/hooks/use-media-query.d.ts +0 -20
- package/dist/hooks/use-media-query.js +0 -21
- package/dist/lib/notification-alert.d.ts +0 -42
- package/dist/lib/notification-alert.js +0 -75
- package/dist/node_modules/@phosphor-icons/react/dist/csr/File.es.js +0 -8
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Microphone.es.js +0 -8
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Stop.es.js +0 -8
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Table.es.js +0 -8
- package/dist/node_modules/@phosphor-icons/react/dist/defs/File.es.js +0 -30
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Microphone.es.js +0 -36
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Stop.es.js +0 -36
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Table.es.js +0 -30
|
@@ -1,66 +1,15 @@
|
|
|
1
|
-
import { ComponentProps
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
2
|
import { Tooltip as ShadcnTooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../../../vendor/shadcn/tooltip';
|
|
3
3
|
type ShadcnTooltipRootProps = ComponentProps<typeof ShadcnTooltip>;
|
|
4
4
|
type TooltipContentProps = ComponentProps<typeof TooltipContent>;
|
|
5
5
|
type TooltipProviderProps = ComponentProps<typeof TooltipProvider>;
|
|
6
6
|
type TooltipTriggerProps = ComponentProps<typeof TooltipTrigger>;
|
|
7
|
-
/**
|
|
8
|
-
* Props for the Tooltip component
|
|
9
|
-
*/
|
|
10
7
|
interface TooltipProps extends ShadcnTooltipRootProps {
|
|
11
|
-
|
|
12
|
-
* Content to display in the tooltip
|
|
13
|
-
* Can be a string, JSX element, or any React node
|
|
14
|
-
*/
|
|
15
|
-
content: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Additional props for the tooltip content
|
|
18
|
-
*/
|
|
8
|
+
content: string;
|
|
19
9
|
contentProps?: TooltipContentProps;
|
|
20
|
-
/**
|
|
21
|
-
* Additional props for the tooltip provider
|
|
22
|
-
*/
|
|
23
10
|
providerProps?: TooltipProviderProps;
|
|
24
|
-
/**
|
|
25
|
-
* Additional props for the tooltip trigger
|
|
26
|
-
*/
|
|
27
11
|
triggerProps?: TooltipTriggerProps;
|
|
28
|
-
/**
|
|
29
|
-
* Whether to show the tooltip
|
|
30
|
-
* @default true
|
|
31
|
-
*/
|
|
32
12
|
show?: boolean;
|
|
33
13
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Tooltip component for displaying helpful content on hover or focus.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```tsx
|
|
39
|
-
* // Simple text tooltip
|
|
40
|
-
* <Tooltip content="Click to edit">
|
|
41
|
-
* <Button>Edit</Button>
|
|
42
|
-
* </Tooltip>
|
|
43
|
-
*
|
|
44
|
-
* // Conditional tooltip
|
|
45
|
-
* <Tooltip content="Info" show={showTooltip}>
|
|
46
|
-
* <Icon name="Info" />
|
|
47
|
-
* </Tooltip>
|
|
48
|
-
*
|
|
49
|
-
* // ReactNode content with formatting
|
|
50
|
-
* <Tooltip content={<div><strong>Bold</strong> and <em>italic</em> text</div>}>
|
|
51
|
-
* <Button>Rich Content</Button>
|
|
52
|
-
* </Tooltip>
|
|
53
|
-
*
|
|
54
|
-
* // Complex JSX content
|
|
55
|
-
* <Tooltip content={
|
|
56
|
-
* <div className="space-y-1">
|
|
57
|
-
* <Typography variant="sm" weight="semibold">Title</Typography>
|
|
58
|
-
* <Typography variant="sm">Description here</Typography>
|
|
59
|
-
* </div>
|
|
60
|
-
* }>
|
|
61
|
-
* <Icon name="Info" />
|
|
62
|
-
* </Tooltip>
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
14
|
declare const Tooltip: import('react').ForwardRefExoticComponent<TooltipProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
66
15
|
export { Tooltip, TooltipProvider, type TooltipProps, type TooltipProviderProps, };
|
|
@@ -4,26 +4,8 @@ declare const typographyVariants: (props?: ({
|
|
|
4
4
|
variant?: "blockquote" | "h1" | "h2" | "h3" | "h4" | "p" | "list" | "muted" | "xs" | "sm" | "lg" | "xl" | "lead" | null | undefined;
|
|
5
5
|
weight?: "bold" | "regular" | "semibold" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
/**
|
|
8
|
-
* Props for the Typography component
|
|
9
|
-
*/
|
|
10
7
|
export interface TypographyProps extends HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
|
|
11
|
-
/**
|
|
12
|
-
* HTML element to render (overrides the default element for the variant)
|
|
13
|
-
* @example "div", "span", "h1", "p"
|
|
14
|
-
*/
|
|
15
8
|
as?: keyof JSX.IntrinsicElements;
|
|
16
9
|
}
|
|
17
|
-
/**
|
|
18
|
-
* Flexible typography component with predefined text styles and semantic HTML elements.
|
|
19
|
-
* Automatically renders the appropriate HTML element based on the variant.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```tsx
|
|
23
|
-
* <Typography variant="h1">Page Title</Typography>
|
|
24
|
-
* <Typography variant="muted">Helper text</Typography>
|
|
25
|
-
* <Typography as="span" variant="lg">Custom span with lg style</Typography>
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
10
|
declare const Typography: import('react').ForwardRefExoticComponent<TypographyProps & import('react').RefAttributes<HTMLElement>>;
|
|
29
11
|
export { Typography };
|
|
@@ -1,67 +1,17 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Represents a single breadcrumb item
|
|
4
|
-
*/
|
|
5
2
|
interface BreadcrumbItemData {
|
|
6
|
-
/**
|
|
7
|
-
* Display text for the breadcrumb item
|
|
8
|
-
*/
|
|
9
3
|
label: string;
|
|
10
|
-
/**
|
|
11
|
-
* URL to navigate to when the breadcrumb is clicked
|
|
12
|
-
*/
|
|
13
4
|
href?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Optional dropdown menu items for this breadcrumb
|
|
16
|
-
*/
|
|
17
5
|
dropdown?: Array<{
|
|
18
|
-
/**
|
|
19
|
-
* Display text for dropdown item
|
|
20
|
-
*/
|
|
21
6
|
label: string;
|
|
22
|
-
/**
|
|
23
|
-
* URL for dropdown item
|
|
24
|
-
*/
|
|
25
7
|
href: string;
|
|
26
8
|
}>;
|
|
27
9
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Props for the Breadcrumb component
|
|
30
|
-
*/
|
|
31
10
|
interface BreadcrumbProps {
|
|
32
|
-
/**
|
|
33
|
-
* Array of breadcrumb items to display
|
|
34
|
-
*/
|
|
35
11
|
items: BreadcrumbItemData[];
|
|
36
|
-
/**
|
|
37
|
-
* Custom separator element between breadcrumb items
|
|
38
|
-
*/
|
|
39
12
|
separator?: ReactNode;
|
|
40
|
-
/**
|
|
41
|
-
* Maximum number of items before collapsing with ellipsis
|
|
42
|
-
* @default 0 (no collapsing)
|
|
43
|
-
*/
|
|
44
13
|
maxItems?: number;
|
|
45
|
-
/**
|
|
46
|
-
* Additional CSS classes
|
|
47
|
-
*/
|
|
48
14
|
className?: string;
|
|
49
15
|
}
|
|
50
|
-
/**
|
|
51
|
-
* Navigation breadcrumb component with support for collapsing and dropdown menus.
|
|
52
|
-
* Automatically collapses middle items when maxItems is exceeded.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```tsx
|
|
56
|
-
* <Breadcrumb
|
|
57
|
-
* items={[
|
|
58
|
-
* { label: 'Home', href: '/' },
|
|
59
|
-
* { label: 'Products', href: '/products' },
|
|
60
|
-
* { label: 'Item Detail' }
|
|
61
|
-
* ]}
|
|
62
|
-
* maxItems={3}
|
|
63
|
-
* />
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
16
|
declare const Breadcrumb: import('react').ForwardRefExoticComponent<BreadcrumbProps & import('react').RefAttributes<HTMLElement>>;
|
|
67
17
|
export { Breadcrumb, type BreadcrumbProps, type BreadcrumbItemData };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { j as r } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { forwardRef as L, Fragment as i } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { Breadcrumb as M, BreadcrumbList as E, BreadcrumbItem as h, BreadcrumbEllipsis as I, BreadcrumbSeparator as N, BreadcrumbPage as V, BreadcrumbLink as k } from "../../../vendor/shadcn/breadcrumb.js";
|
|
3
|
+
import { Breadcrumb as C, BreadcrumbList as M, BreadcrumbItem as h, BreadcrumbEllipsis as E, BreadcrumbSeparator as I, BreadcrumbPage as N, BreadcrumbLink as V } from "../../../vendor/shadcn/breadcrumb.js";
|
|
5
4
|
import { DropdownMenu as u, DropdownMenuTrigger as x, DropdownMenuContent as j, DropdownMenuItem as p } from "../../../vendor/shadcn/dropdown-menu.js";
|
|
5
|
+
import { Icon as k } from "../../atoms/icon/icon.js";
|
|
6
6
|
const v = L(
|
|
7
|
-
({ items: s, separator:
|
|
8
|
-
const
|
|
7
|
+
({ items: s, separator: b, maxItems: l = 0, className: f }, m) => {
|
|
8
|
+
const a = l > 0 && s.length > l, c = a ? [
|
|
9
9
|
s[0],
|
|
10
10
|
// First item always visible
|
|
11
11
|
null,
|
|
12
12
|
// Placeholder for ellipsis
|
|
13
13
|
...s.slice(-(l - 2))
|
|
14
14
|
// Last items
|
|
15
|
-
] : s,
|
|
15
|
+
] : s, d = a ? s.slice(1, s.length - (l - 2)) : [], g = ((e) => {
|
|
16
16
|
for (let n = e.length - 1; n >= 0; n--)
|
|
17
17
|
if (e[n]) return n;
|
|
18
18
|
return -1;
|
|
19
|
-
})(
|
|
20
|
-
/* @__PURE__ */ r.jsxs(x, { className: "flex items-center gap-1 text-sm text-
|
|
19
|
+
})(c), t = () => /* @__PURE__ */ r.jsx(I, { children: b }), B = (e) => /* @__PURE__ */ r.jsxs(u, { children: [
|
|
20
|
+
/* @__PURE__ */ r.jsxs(x, { className: "flex items-center gap-1 text-sm text-neutral-500 hover:text-neutral-700 transition-colors", children: [
|
|
21
21
|
e.label,
|
|
22
|
-
/* @__PURE__ */ r.jsx(
|
|
22
|
+
/* @__PURE__ */ r.jsx(k, { name: "CaretDown", className: "size-4" })
|
|
23
23
|
] }),
|
|
24
|
-
/* @__PURE__ */ r.jsx(j, { children: e.dropdown?.map((n,
|
|
25
|
-
] }), w = (e, n) => n ? /* @__PURE__ */ r.jsx(
|
|
24
|
+
/* @__PURE__ */ r.jsx(j, { children: e.dropdown?.map((n, o) => /* @__PURE__ */ r.jsx(p, { asChild: !0, children: /* @__PURE__ */ r.jsx("a", { href: n.href, children: n.label }) }, o)) })
|
|
25
|
+
] }), w = (e, n) => n ? /* @__PURE__ */ r.jsx(N, { children: e.label }) : /* @__PURE__ */ r.jsx(V, { href: e.href, children: e.label }), D = () => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
26
26
|
/* @__PURE__ */ r.jsx(h, { children: /* @__PURE__ */ r.jsxs(u, { children: [
|
|
27
|
-
/* @__PURE__ */ r.jsx(x, { children: /* @__PURE__ */ r.jsx(
|
|
28
|
-
/* @__PURE__ */ r.jsx(j, { children:
|
|
27
|
+
/* @__PURE__ */ r.jsx(x, { children: /* @__PURE__ */ r.jsx(E, {}) }),
|
|
28
|
+
/* @__PURE__ */ r.jsx(j, { children: d.map((e, n) => /* @__PURE__ */ r.jsx(p, { asChild: !0, children: /* @__PURE__ */ r.jsx("a", { href: e.href, children: e.label }) }, n)) })
|
|
29
29
|
] }) }),
|
|
30
30
|
t()
|
|
31
31
|
] });
|
|
32
|
-
return /* @__PURE__ */ r.jsx(
|
|
33
|
-
if (e === null &&
|
|
32
|
+
return /* @__PURE__ */ r.jsx(C, { ref: m, className: f, children: /* @__PURE__ */ r.jsx(M, { children: c.map((e, n) => {
|
|
33
|
+
if (e === null && d.length > 0)
|
|
34
34
|
return /* @__PURE__ */ r.jsx(i, { children: D() }, n);
|
|
35
35
|
if (!e) return null;
|
|
36
|
-
const
|
|
36
|
+
const o = n === g;
|
|
37
37
|
return /* @__PURE__ */ r.jsxs(i, { children: [
|
|
38
|
-
/* @__PURE__ */ r.jsx(h, { children: e.dropdown ? B(e) : w(e,
|
|
39
|
-
n <
|
|
38
|
+
/* @__PURE__ */ r.jsx(h, { children: e.dropdown ? B(e) : w(e, o) }),
|
|
39
|
+
n < c.length - 1 && e && t()
|
|
40
40
|
] }, n);
|
|
41
41
|
}) }) });
|
|
42
42
|
}
|
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Props for the DialogContent component
|
|
4
|
-
*/
|
|
5
2
|
export interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
/**
|
|
7
|
-
* Content to display in the dialog body
|
|
8
|
-
*/
|
|
9
3
|
children: React.ReactNode;
|
|
10
4
|
}
|
|
11
|
-
/**
|
|
12
|
-
* Scrollable content area for dialog body.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* <DialogContent>
|
|
17
|
-
* <p>Your dialog content goes here...</p>
|
|
18
|
-
* </DialogContent>
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
5
|
export declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from '../../atoms/button';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
/**
|
|
4
|
-
* Props for the DialogFooter component
|
|
5
|
-
*/
|
|
6
3
|
export interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
-
/**
|
|
8
|
-
* Array of button configurations to display in the footer
|
|
9
|
-
*/
|
|
10
4
|
buttons?: ButtonProps[];
|
|
11
5
|
}
|
|
12
|
-
/**
|
|
13
|
-
* Dialog footer component for action buttons.
|
|
14
|
-
* Renders nothing if no buttons are provided.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <DialogFooter
|
|
19
|
-
* buttons={[
|
|
20
|
-
* { children: 'Cancel', variant: 'outline', onClick: handleCancel },
|
|
21
|
-
* { children: 'Save', variant: 'default', onClick: handleSave }
|
|
22
|
-
* ]}
|
|
23
|
-
* />
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
6
|
export declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,40 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Props for the DialogHeader component
|
|
4
|
-
*/
|
|
5
2
|
export interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
/**
|
|
7
|
-
* Dialog title (text or custom element)
|
|
8
|
-
*/
|
|
9
3
|
title?: React.ReactElement | string;
|
|
10
|
-
/**
|
|
11
|
-
* Callback fired when the close button is clicked
|
|
12
|
-
*/
|
|
13
4
|
onClose?: () => void;
|
|
14
|
-
/**
|
|
15
|
-
* Callback fired when the back button is clicked
|
|
16
|
-
*/
|
|
17
5
|
onBack?: () => void;
|
|
18
|
-
/**
|
|
19
|
-
* Additional action elements to display before the close button
|
|
20
|
-
*/
|
|
21
6
|
otherActions?: React.ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* Whether to show the close button
|
|
24
|
-
* @default true
|
|
25
|
-
*/
|
|
26
7
|
showCloseButton?: boolean;
|
|
27
8
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Dialog header component with title, back button, and close button.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```tsx
|
|
33
|
-
* <DialogHeader
|
|
34
|
-
* title="Edit Profile"
|
|
35
|
-
* onClose={() => setOpen(false)}
|
|
36
|
-
* onBack={() => goToPreviousStep()}
|
|
37
|
-
* />
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
9
|
export declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { j as o } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Icon as
|
|
4
|
-
function
|
|
3
|
+
import { Icon as i } from "../../atoms/icon/icon.js";
|
|
4
|
+
function x({
|
|
5
5
|
name: r,
|
|
6
|
-
size:
|
|
7
|
-
className:
|
|
6
|
+
size: t = "xl",
|
|
7
|
+
className: m,
|
|
8
8
|
children: s
|
|
9
9
|
}) {
|
|
10
|
-
return /* @__PURE__ */ o.jsx("div", { className: "p-4 bg-
|
|
10
|
+
return /* @__PURE__ */ o.jsx("div", { className: "p-4 bg-white rounded-lg shadow-sm", children: s || /* @__PURE__ */ o.jsx(i, { name: r, size: t, className: m }) });
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
x as EmptyIcon
|
|
14
14
|
};
|
|
@@ -2,10 +2,8 @@ import { HTMLAttributes, ReactNode } from 'react';
|
|
|
2
2
|
export interface EmptyProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
/**
|
|
4
4
|
* Media content to display (image, icon, or any ReactNode)
|
|
5
|
-
* @default <img src="https://dashboard-assets.y.uno/common/empty_illustration.svg" alt="" />
|
|
6
|
-
* Pass `null` to hide the media content
|
|
7
5
|
*/
|
|
8
|
-
media?: ReactNode
|
|
6
|
+
media?: ReactNode;
|
|
9
7
|
/**
|
|
10
8
|
* Title text displayed prominently
|
|
11
9
|
*/
|
|
@@ -19,18 +17,5 @@ export interface EmptyProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
19
17
|
*/
|
|
20
18
|
actions?: ReactNode;
|
|
21
19
|
}
|
|
22
|
-
/**
|
|
23
|
-
* Empty state component for displaying when there's no content or data.
|
|
24
|
-
* Shows an optional image/icon, title, description, and action buttons.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* <Empty
|
|
29
|
-
* title="No results found"
|
|
30
|
-
* description="Try adjusting your search or filter criteria"
|
|
31
|
-
* actions={<Button>Clear filters</Button>}
|
|
32
|
-
* />
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
20
|
declare const Empty: import('react').ForwardRefExoticComponent<EmptyProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
36
21
|
export { Empty };
|
|
@@ -1,41 +1,38 @@
|
|
|
1
1
|
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { Typography as
|
|
5
|
-
const
|
|
6
|
-
({ className:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children: [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
}
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { cn as x } from "../../../lib/utils.js";
|
|
4
|
+
import { Typography as t } from "../../atoms/typography/typography.js";
|
|
5
|
+
const o = i(
|
|
6
|
+
({ className: a, media: s, title: c, description: l, actions: r, ...m }, n) => /* @__PURE__ */ e.jsxs(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
ref: n,
|
|
10
|
+
className: x(
|
|
11
|
+
"flex flex-col items-center gap-6 bg-secondary px-6 py-12 rounded-lg",
|
|
12
|
+
a
|
|
13
|
+
),
|
|
14
|
+
...m,
|
|
15
|
+
children: [
|
|
16
|
+
s && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: s }),
|
|
17
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-6 items-center w-full", children: [
|
|
18
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 items-center w-full", children: [
|
|
19
|
+
/* @__PURE__ */ e.jsx(
|
|
20
|
+
t,
|
|
21
|
+
{
|
|
22
|
+
as: "h3",
|
|
23
|
+
className: "text-base font-semibold text-center leading-none",
|
|
24
|
+
children: c
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
l && /* @__PURE__ */ e.jsx(t, { variant: "muted", className: "text-center", children: l })
|
|
28
|
+
] }),
|
|
29
|
+
r && /* @__PURE__ */ e.jsx("div", { className: "flex gap-3 items-center justify-center", children: r })
|
|
30
|
+
] })
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
)
|
|
37
34
|
);
|
|
38
|
-
|
|
35
|
+
o.displayName = "Empty";
|
|
39
36
|
export {
|
|
40
|
-
|
|
37
|
+
o as Empty
|
|
41
38
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { IconName } from '../../atoms/icon';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the HighlightBanner component
|
|
5
|
-
*/
|
|
6
3
|
interface HighlightBannerProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
7
4
|
/**
|
|
8
5
|
* Icon name to display on the left side of the banner.
|
|
@@ -24,19 +21,5 @@ interface HighlightBannerProps extends Omit<HTMLAttributes<HTMLDivElement>, "tit
|
|
|
24
21
|
*/
|
|
25
22
|
button?: ReactNode;
|
|
26
23
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Prominent banner component for highlighting important information or calls-to-action.
|
|
29
|
-
* Features an icon in a circular container, title, description, and optional action button.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```tsx
|
|
33
|
-
* <HighlightBanner
|
|
34
|
-
* icon="Lightbulb"
|
|
35
|
-
* title="Get started with our API"
|
|
36
|
-
* description="Learn how to integrate our payment solution in minutes"
|
|
37
|
-
* button={<Button>View Documentation</Button>}
|
|
38
|
-
* />
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
24
|
declare const HighlightBanner: import('react').ForwardRefExoticComponent<HighlightBannerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
42
25
|
export { HighlightBanner, type HighlightBannerProps };
|
|
@@ -1,63 +1,14 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Props for the Pagination component
|
|
4
|
-
*/
|
|
5
2
|
interface PaginationProps extends ComponentProps<"nav"> {
|
|
6
|
-
/**
|
|
7
|
-
* Current active page number (1-indexed)
|
|
8
|
-
*/
|
|
9
3
|
currentPage: number;
|
|
10
|
-
/**
|
|
11
|
-
* Total number of pages available
|
|
12
|
-
*/
|
|
13
4
|
totalPages?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Callback fired when a page number is clicked
|
|
16
|
-
*/
|
|
17
5
|
onPageClick?: (page: number) => void;
|
|
18
|
-
/**
|
|
19
|
-
* Callback fired when the next button is clicked
|
|
20
|
-
*/
|
|
21
6
|
onClickNext?: () => void;
|
|
22
|
-
/**
|
|
23
|
-
* Callback fired when the previous button is clicked
|
|
24
|
-
*/
|
|
25
7
|
onClickPrev?: () => void;
|
|
26
|
-
/**
|
|
27
|
-
* Whether the previous button is disabled
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
8
|
disablePrevious?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Whether the next button is disabled
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
9
|
disableNext?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Whether to show previous/next navigation buttons
|
|
38
|
-
* @default true
|
|
39
|
-
*/
|
|
40
10
|
showPreviousNext?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Maximum number of page numbers to display before using ellipsis
|
|
43
|
-
* @default 5
|
|
44
|
-
*/
|
|
45
11
|
maxVisiblePages?: number;
|
|
46
12
|
}
|
|
47
|
-
/**
|
|
48
|
-
* Pagination component for navigating through multiple pages of content.
|
|
49
|
-
* Supports custom page number display with ellipsis for large page counts.
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```tsx
|
|
53
|
-
* <Pagination
|
|
54
|
-
* currentPage={5}
|
|
55
|
-
* totalPages={20}
|
|
56
|
-
* onPageClick={(page) => console.log('Go to page', page)}
|
|
57
|
-
* onClickNext={() => console.log('Next')}
|
|
58
|
-
* onClickPrev={() => console.log('Previous')}
|
|
59
|
-
* />
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
13
|
declare const Pagination: import('react').ForwardRefExoticComponent<Omit<PaginationProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
63
14
|
export { Pagination, type PaginationProps };
|
|
@@ -1,53 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a single item in the list cell
|
|
3
|
-
*/
|
|
4
1
|
export interface DataTableListCellItem {
|
|
5
|
-
/**
|
|
6
|
-
* Item name/label
|
|
7
|
-
*/
|
|
8
2
|
name: string;
|
|
9
|
-
/**
|
|
10
|
-
* Optional icon
|
|
11
|
-
*/
|
|
12
3
|
icon?: string;
|
|
13
4
|
}
|
|
14
|
-
/**
|
|
15
|
-
* Props for the DataTableListCell component
|
|
16
|
-
*/
|
|
17
5
|
export interface DataTableListCellProps {
|
|
18
|
-
/**
|
|
19
|
-
* Array of items to display
|
|
20
|
-
*/
|
|
21
6
|
items: DataTableListCellItem[];
|
|
22
|
-
/**
|
|
23
|
-
* Maximum length for item names before truncation
|
|
24
|
-
* @default 7
|
|
25
|
-
*/
|
|
26
7
|
maxLength?: number;
|
|
27
|
-
/**
|
|
28
|
-
* Whether to show remaining items count
|
|
29
|
-
* @default true
|
|
30
|
-
*/
|
|
31
8
|
showRemainingCount?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Additional CSS classes
|
|
34
|
-
*/
|
|
35
9
|
className?: string;
|
|
36
10
|
}
|
|
37
|
-
/**
|
|
38
|
-
* Table cell component for displaying a list of items with badges.
|
|
39
|
-
* Shows first item and remaining count with tooltip.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```tsx
|
|
43
|
-
* <DataTableListCell
|
|
44
|
-
* items={[
|
|
45
|
-
* { name: 'Item 1' },
|
|
46
|
-
* { name: 'Item 2' }
|
|
47
|
-
* ]}
|
|
48
|
-
* maxLength={10}
|
|
49
|
-
* />
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
11
|
declare const DataTableListCell: import('react').ForwardRefExoticComponent<DataTableListCellProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
53
12
|
export { DataTableListCell };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "../../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Icon as o } from "../../../../atoms/icon/icon.js";
|
|
3
2
|
import { cn as u } from "../../../../../lib/utils.js";
|
|
4
3
|
import { DataTableSortIndicator as f } from "./data-table-sort-indicator.js";
|
|
5
4
|
import { COLUMN_HEADER_CONFIG as t } from "../../utils/data-table-constants.js";
|
|
5
|
+
import { Icon as o } from "../../../../atoms/icon/icon.js";
|
|
6
6
|
import { DropdownMenuTrigger as d } from "../../../../atoms/dropdown-menu/dropdown-menu.js";
|
|
7
7
|
function N({
|
|
8
8
|
title: r,
|