@sikka/hawa 0.23.2-next → 0.23.7-next
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/accordion/index.js +30 -2399
- package/dist/accordion/index.mjs +19 -461
- package/dist/alert/index.mjs +0 -1
- package/dist/appStores/index.js +75 -0
- package/dist/appStores/index.mjs +38 -0
- package/dist/avatar/index.mjs +118 -3
- package/dist/backToTop/index.mjs +102 -4
- package/dist/badge/index.js +127 -0
- package/dist/badge/index.mjs +84 -0
- package/dist/blocks/auth/index.js +1173 -3092
- package/dist/blocks/auth/index.mjs +16 -10
- package/dist/blocks/feedback/index.js +864 -2913
- package/dist/blocks/feedback/index.mjs +14 -8
- package/dist/blocks/index.js +5714 -5316
- package/dist/blocks/index.mjs +390 -45
- package/dist/blocks/misc/index.js +634 -2409
- package/dist/blocks/misc/index.mjs +14 -8
- package/dist/blocks/pricing/index.js +522 -524
- package/dist/blocks/pricing/index.mjs +1861 -45
- package/dist/breadcrumb/index.js +63 -0
- package/dist/breadcrumb/index.mjs +26 -0
- package/dist/card/index.mjs +83 -8
- package/dist/checkbox/index.mjs +138 -3
- package/dist/chip/index.js +129 -0
- package/dist/chip/index.mjs +8 -0
- package/dist/{chunk-X6PCWJYD.mjs → chunk-2R2QPJT7.mjs} +761 -1104
- package/dist/chunk-677VOLD4.mjs +464 -0
- package/dist/chunk-72HYR6WB.mjs +88 -0
- package/dist/chunk-A25EXELT.mjs +131 -0
- package/dist/{chunk-OE27DSIY.mjs → chunk-F6TKEDDP.mjs} +2 -4
- package/dist/{chunk-YFC2GSJ6.mjs → chunk-P2O6R3S6.mjs} +66 -5
- package/dist/{chunk-GXXX5UB4.mjs → chunk-QGKW5R5F.mjs} +59 -20
- package/dist/chunk-TR56G3NM.mjs +2350 -0
- package/dist/chunk-UAVBFK53.mjs +346 -0
- package/dist/combobox/index.mjs +153 -7
- package/dist/dataTable/index.mjs +355 -8
- package/dist/elements/index.js +800 -1148
- package/dist/elements/index.mjs +1 -11
- package/dist/fileDropzone/index.mjs +226 -4
- package/dist/index.js +1721 -1721
- package/dist/index.mjs +1663 -1663
- package/dist/layout/index.js +493 -510
- package/dist/layout/index.mjs +1 -1
- package/dist/loading/index.mjs +0 -1
- package/dist/logos/index.mjs +204 -3
- package/dist/navigationMenu/index.mjs +155 -13
- package/dist/phoneInput/index.js +2074 -0
- package/dist/phoneInput/index.mjs +1776 -0
- package/dist/pinInput/index.js +130 -0
- package/dist/pinInput/index.mjs +88 -0
- package/dist/progress/index.js +71 -0
- package/dist/progress/index.mjs +29 -0
- package/dist/radio/index.mjs +202 -4
- package/dist/scrollArea/index.js +90 -0
- package/dist/scrollArea/index.mjs +47 -0
- package/dist/select/index.mjs +1 -1
- package/dist/sheet/index.mjs +137 -12
- package/dist/sortButton/index.mjs +40 -4
- package/dist/stopPropagationWrapper/index.js +48 -0
- package/dist/stopPropagationWrapper/index.mjs +11 -0
- package/dist/switch/index.mjs +79 -3
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.mjs +68 -6
- package/dist/textarea/index.mjs +54 -4
- package/package.json +2 -2
- package/dist/Chip-DJ6ThZc_.d.ts +0 -21
- package/dist/Chip-eal8vwDz.d.mts +0 -21
- package/dist/accordion/index.d.mts +0 -42
- package/dist/accordion/index.d.ts +0 -42
- package/dist/alert/index.d.mts +0 -28
- package/dist/alert/index.d.ts +0 -28
- package/dist/avatar/index.d.mts +0 -15
- package/dist/avatar/index.d.ts +0 -15
- package/dist/backToTop/index.d.mts +0 -15
- package/dist/backToTop/index.d.ts +0 -15
- package/dist/button/index.d.mts +0 -16
- package/dist/button/index.d.ts +0 -16
- package/dist/card/index.d.mts +0 -17
- package/dist/card/index.d.ts +0 -17
- package/dist/checkbox/index.d.mts +0 -20
- package/dist/checkbox/index.d.ts +0 -20
- package/dist/chunk-BK5WF7UO.mjs +0 -231
- package/dist/chunk-CXWYC6FS.mjs +0 -360
- package/dist/chunk-D2USGMDT.mjs +0 -208
- package/dist/chunk-DX4SLF2L.mjs +0 -45
- package/dist/chunk-ENNSA4VR.mjs +0 -5566
- package/dist/chunk-GXSYCLZZ.mjs +0 -158
- package/dist/chunk-IQPGAHUR.mjs +0 -107
- package/dist/chunk-POT2IP62.mjs +0 -123
- package/dist/chunk-TWDZB2VH.mjs +0 -151
- package/dist/chunk-VBTYVVA7.mjs +0 -93
- package/dist/chunk-VCGW5DIP.mjs +0 -170
- package/dist/chunk-X3SMPIA3.mjs +0 -0
- package/dist/chunk-XA646BZ2.mjs +0 -143
- package/dist/chunk-ZCUUQ5VV.mjs +0 -84
- package/dist/combobox/index.d.mts +0 -32
- package/dist/combobox/index.d.ts +0 -32
- package/dist/command/index.d.mts +0 -48
- package/dist/command/index.d.ts +0 -48
- package/dist/commonTypes-gbO4hPli.d.mts +0 -7
- package/dist/commonTypes-gbO4hPli.d.ts +0 -7
- package/dist/dataTable/index.d.mts +0 -39
- package/dist/dataTable/index.d.ts +0 -39
- package/dist/dialog/index.d.mts +0 -57
- package/dist/dialog/index.d.ts +0 -57
- package/dist/dropdownMenu/index.d.mts +0 -95
- package/dist/dropdownMenu/index.d.ts +0 -95
- package/dist/fileDropzone/index.d.mts +0 -37
- package/dist/fileDropzone/index.d.ts +0 -37
- package/dist/input/index.d.mts +0 -36
- package/dist/input/index.d.ts +0 -36
- package/dist/label/index.d.mts +0 -12
- package/dist/label/index.d.ts +0 -12
- package/dist/loading/index.d.mts +0 -15
- package/dist/loading/index.d.ts +0 -15
- package/dist/logos/index.d.mts +0 -27
- package/dist/logos/index.d.ts +0 -27
- package/dist/navigationMenu/index.d.mts +0 -39
- package/dist/navigationMenu/index.d.ts +0 -39
- package/dist/popover/index.d.mts +0 -23
- package/dist/popover/index.d.ts +0 -23
- package/dist/radio/index.d.mts +0 -28
- package/dist/radio/index.d.ts +0 -28
- package/dist/select/index.d.mts +0 -43
- package/dist/select/index.d.ts +0 -43
- package/dist/sheet/index.d.mts +0 -30
- package/dist/sheet/index.d.ts +0 -30
- package/dist/skeleton/index.d.mts +0 -10
- package/dist/skeleton/index.d.ts +0 -10
- package/dist/sortButton/index.d.mts +0 -10
- package/dist/sortButton/index.d.ts +0 -10
- package/dist/splitButton/index.d.mts +0 -15
- package/dist/splitButton/index.d.ts +0 -15
- package/dist/switch/index.d.mts +0 -12
- package/dist/switch/index.d.ts +0 -12
- package/dist/table/index.d.mts +0 -21
- package/dist/table/index.d.ts +0 -21
- package/dist/tabs/index.d.mts +0 -16
- package/dist/tabs/index.d.ts +0 -16
- package/dist/textarea/index.d.mts +0 -17
- package/dist/textarea/index.d.ts +0 -17
- package/dist/tooltip/index.d.mts +0 -26
- package/dist/tooltip/index.d.ts +0 -26
- /package/dist/{chunk-A7OPD7H7.mjs → chunk-B6UCD4GP.mjs} +0 -0
- /package/dist/{chunk-O2ALK7UE.mjs → chunk-Z4M72OD3.mjs} +0 -0
package/dist/chunk-VCGW5DIP.mjs
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-TE3BKEXL.mjs";
|
|
4
|
-
|
|
5
|
-
// components/elements/navigationMenu/NavigationMenu.tsx
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
8
|
-
import { cva } from "class-variance-authority";
|
|
9
|
-
var navigationMenuTriggerStyle = cva(
|
|
10
|
-
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 "
|
|
11
|
-
);
|
|
12
|
-
var NavigationMenuRoot = React.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
13
|
-
NavigationMenuPrimitive.Root,
|
|
14
|
-
{
|
|
15
|
-
ref,
|
|
16
|
-
className: cn(
|
|
17
|
-
"hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center",
|
|
18
|
-
// "hawa-max-w-max",
|
|
19
|
-
className
|
|
20
|
-
),
|
|
21
|
-
...props
|
|
22
|
-
},
|
|
23
|
-
children,
|
|
24
|
-
/* @__PURE__ */ React.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
|
25
|
-
));
|
|
26
|
-
var NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
27
|
-
NavigationMenuPrimitive.List,
|
|
28
|
-
{
|
|
29
|
-
ref,
|
|
30
|
-
className: cn(
|
|
31
|
-
"hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1",
|
|
32
|
-
className
|
|
33
|
-
),
|
|
34
|
-
...props
|
|
35
|
-
}
|
|
36
|
-
));
|
|
37
|
-
var NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
38
|
-
NavigationMenuPrimitive.Trigger,
|
|
39
|
-
{
|
|
40
|
-
ref,
|
|
41
|
-
className: cn(navigationMenuTriggerStyle(), "hawa-group", className),
|
|
42
|
-
...props
|
|
43
|
-
},
|
|
44
|
-
children,
|
|
45
|
-
/* @__PURE__ */ React.createElement(
|
|
46
|
-
"svg",
|
|
47
|
-
{
|
|
48
|
-
"aria-label": "Chevron Icon",
|
|
49
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
50
|
-
width: "24",
|
|
51
|
-
height: "24",
|
|
52
|
-
viewBox: "0 0 24 24",
|
|
53
|
-
fill: "none",
|
|
54
|
-
stroke: "currentColor",
|
|
55
|
-
strokeWidth: "2",
|
|
56
|
-
strokeLinecap: "round",
|
|
57
|
-
strokeLinejoin: "round",
|
|
58
|
-
"aria-hidden": "true",
|
|
59
|
-
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
60
|
-
},
|
|
61
|
-
/* @__PURE__ */ React.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
62
|
-
)
|
|
63
|
-
));
|
|
64
|
-
var NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
65
|
-
NavigationMenuPrimitive.Content,
|
|
66
|
-
{
|
|
67
|
-
ref,
|
|
68
|
-
className: cn(
|
|
69
|
-
"hawa-absolute hawa-left-0 hawa-top-0 hawa-w-full hawa-rounded ",
|
|
70
|
-
// "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
|
|
71
|
-
// animation
|
|
72
|
-
"data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52",
|
|
73
|
-
className
|
|
74
|
-
),
|
|
75
|
-
...props
|
|
76
|
-
}
|
|
77
|
-
));
|
|
78
|
-
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */ React.createElement(NavigationMenuLink, { ...linkProps }, /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-max-w-md hawa-cursor-pointer hawa-flex-row hawa-items-center hawa-gap-4 hawa-rounded-inner hawa-p-4 hawa-py-2 hawa-transition-all hover:hawa-bg-muted" }, icon && icon, /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React.createElement("h1", { className: "hawa-text-xl hawa-font-bold" }, title), /* @__PURE__ */ React.createElement("p", { className: "hawa-text-sm" }, subtitle))));
|
|
79
|
-
var NavigationMenuViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
80
|
-
"div",
|
|
81
|
-
{
|
|
82
|
-
className: cn(
|
|
83
|
-
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
|
84
|
-
)
|
|
85
|
-
},
|
|
86
|
-
/* @__PURE__ */ React.createElement(
|
|
87
|
-
NavigationMenuPrimitive.Viewport,
|
|
88
|
-
{
|
|
89
|
-
className: cn(
|
|
90
|
-
"hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ",
|
|
91
|
-
// hawa-h-[var(--radix-navigation-menu-viewport-height)]
|
|
92
|
-
// "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
|
93
|
-
className
|
|
94
|
-
),
|
|
95
|
-
style: {
|
|
96
|
-
height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
|
|
97
|
-
},
|
|
98
|
-
ref,
|
|
99
|
-
...props
|
|
100
|
-
}
|
|
101
|
-
)
|
|
102
|
-
));
|
|
103
|
-
var NavigationMenuIndicator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
104
|
-
NavigationMenuPrimitive.Indicator,
|
|
105
|
-
{
|
|
106
|
-
ref,
|
|
107
|
-
className: cn(
|
|
108
|
-
"hawa-top-full hawa-z-[1] hawa-flex hawa-h-1.5 hawa-items-end hawa-justify-center hawa-overflow-hidden data-[state=visible]:hawa-animate-in data-[state=hidden]:hawa-animate-out data-[state=hidden]:hawa-fade-out data-[state=visible]:hawa-fade-in",
|
|
109
|
-
className
|
|
110
|
-
),
|
|
111
|
-
...props
|
|
112
|
-
},
|
|
113
|
-
/* @__PURE__ */ React.createElement("div", { className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md" })
|
|
114
|
-
));
|
|
115
|
-
var NavigationMenu = ({
|
|
116
|
-
viewportClassNames,
|
|
117
|
-
rootClassNames,
|
|
118
|
-
triggerClassNames,
|
|
119
|
-
actionFirst,
|
|
120
|
-
...props
|
|
121
|
-
}) => {
|
|
122
|
-
return /* @__PURE__ */ React.createElement(
|
|
123
|
-
NavigationMenuRoot,
|
|
124
|
-
{
|
|
125
|
-
dir: props.direction,
|
|
126
|
-
delayDuration: 0,
|
|
127
|
-
className: rootClassNames,
|
|
128
|
-
viewportClassNames
|
|
129
|
-
},
|
|
130
|
-
/* @__PURE__ */ React.createElement(NavigationMenuList, null, props.items.map((item, i) => /* @__PURE__ */ React.createElement(NavigationMenuItem, { key: i }, item.content ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(NavigationMenuTrigger, { className: cn(triggerClassNames) }, item.trigger), /* @__PURE__ */ React.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React.createElement(
|
|
131
|
-
NavigationMenuLink,
|
|
132
|
-
{
|
|
133
|
-
href: actionFirst ? void 0 : item.path,
|
|
134
|
-
onClick: () => {
|
|
135
|
-
if (item.action) {
|
|
136
|
-
item.action();
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
className: cn(
|
|
140
|
-
navigationMenuTriggerStyle(),
|
|
141
|
-
"hawa-cursor-pointer hawa-select-none",
|
|
142
|
-
triggerClassNames
|
|
143
|
-
)
|
|
144
|
-
},
|
|
145
|
-
item.trigger
|
|
146
|
-
))))
|
|
147
|
-
);
|
|
148
|
-
};
|
|
149
|
-
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
150
|
-
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
151
|
-
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
152
|
-
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
153
|
-
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
154
|
-
NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
155
|
-
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
156
|
-
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
157
|
-
|
|
158
|
-
export {
|
|
159
|
-
navigationMenuTriggerStyle,
|
|
160
|
-
NavigationMenuRoot,
|
|
161
|
-
NavigationMenuList,
|
|
162
|
-
NavigationMenuTrigger,
|
|
163
|
-
NavigationMenuContent,
|
|
164
|
-
StandardNavigationMenuItem,
|
|
165
|
-
NavigationMenuViewport,
|
|
166
|
-
NavigationMenuIndicator,
|
|
167
|
-
NavigationMenu,
|
|
168
|
-
NavigationMenuItem,
|
|
169
|
-
NavigationMenuLink
|
|
170
|
-
};
|
package/dist/chunk-X3SMPIA3.mjs
DELETED
|
File without changes
|
package/dist/chunk-XA646BZ2.mjs
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-TE3BKEXL.mjs";
|
|
4
|
-
|
|
5
|
-
// components/elements/checkbox/Checkbox.tsx
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
8
|
-
var Checkbox = ({
|
|
9
|
-
id,
|
|
10
|
-
label,
|
|
11
|
-
sublabel,
|
|
12
|
-
helperText,
|
|
13
|
-
disabled,
|
|
14
|
-
size = "default",
|
|
15
|
-
radius = "inherit",
|
|
16
|
-
...props
|
|
17
|
-
}) => {
|
|
18
|
-
let labelLineHeightStyles = {
|
|
19
|
-
xs: sublabel || helperText ? 0.5 : 0.1,
|
|
20
|
-
sm: 0.6,
|
|
21
|
-
default: 0.7,
|
|
22
|
-
md: 0.8,
|
|
23
|
-
lg: 0.9,
|
|
24
|
-
xl: 1
|
|
25
|
-
};
|
|
26
|
-
return /* @__PURE__ */ React.createElement(
|
|
27
|
-
"div",
|
|
28
|
-
{
|
|
29
|
-
className: cn(
|
|
30
|
-
"hawa-flex hawa-gap-2",
|
|
31
|
-
"hawa-items-top",
|
|
32
|
-
sublabel || helperText ? "hawa-items-top" : "hawa-items-center"
|
|
33
|
-
)
|
|
34
|
-
},
|
|
35
|
-
/* @__PURE__ */ React.createElement(
|
|
36
|
-
CheckboxElement,
|
|
37
|
-
{
|
|
38
|
-
...props,
|
|
39
|
-
size,
|
|
40
|
-
radius,
|
|
41
|
-
disabled,
|
|
42
|
-
id
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
(label || helperText) && /* @__PURE__ */ React.createElement("div", { className: "hawa-grid hawa-gap-1.5 hawa-leading-none" }, label && /* @__PURE__ */ React.createElement(
|
|
46
|
-
"label",
|
|
47
|
-
{
|
|
48
|
-
htmlFor: id,
|
|
49
|
-
className: cn(
|
|
50
|
-
"hawa-w-fit hawa-select-none hawa-pt-0.5 hawa-text-sm hawa-font-medium hawa-leading-none",
|
|
51
|
-
disabled ? "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70 " : "hawa-cursor-pointer"
|
|
52
|
-
),
|
|
53
|
-
style: {
|
|
54
|
-
lineHeight: labelLineHeightStyles[size]
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
label
|
|
58
|
-
), sublabel && /* @__PURE__ */ React.createElement(
|
|
59
|
-
"label",
|
|
60
|
-
{
|
|
61
|
-
htmlFor: id,
|
|
62
|
-
className: cn(
|
|
63
|
-
"hawa-w-fit hawa-select-none hawa-text-sm hawa-text-muted-foreground",
|
|
64
|
-
disabled ? "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70" : "hawa-cursor-pointer"
|
|
65
|
-
)
|
|
66
|
-
},
|
|
67
|
-
sublabel
|
|
68
|
-
), helperText && !disabled && /* @__PURE__ */ React.createElement(
|
|
69
|
-
"label",
|
|
70
|
-
{
|
|
71
|
-
htmlFor: id,
|
|
72
|
-
className: cn(
|
|
73
|
-
"hawa-w-fit hawa-select-none hawa-text-xs hawa-text-helper-color",
|
|
74
|
-
disabled && "hawa-cursor-not-allowed hawa-opacity-70"
|
|
75
|
-
)
|
|
76
|
-
},
|
|
77
|
-
helperText
|
|
78
|
-
))
|
|
79
|
-
);
|
|
80
|
-
};
|
|
81
|
-
var CheckboxElement = React.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
|
82
|
-
let checkboxRadius = {
|
|
83
|
-
none: "hawa-rounded-none",
|
|
84
|
-
inherit: "hawa-rounded-sm",
|
|
85
|
-
full: "hawa-rounded-full"
|
|
86
|
-
};
|
|
87
|
-
let checkboxSizes = {
|
|
88
|
-
xs: "hawa-w-3 hawa-h-3",
|
|
89
|
-
sm: "hawa-w-6 hawa-h-6",
|
|
90
|
-
default: "hawa-icon",
|
|
91
|
-
md: "hawa-w-8 hawa-h-8",
|
|
92
|
-
lg: "hawa-w-10 hawa-h-10",
|
|
93
|
-
xl: "hawa-w-12 hawa-h-12"
|
|
94
|
-
};
|
|
95
|
-
let checkboxIndicatorSizes = {
|
|
96
|
-
xs: "0.5em",
|
|
97
|
-
default: "0.60em",
|
|
98
|
-
sm: "0.75em",
|
|
99
|
-
md: "0.875em",
|
|
100
|
-
lg: "1em",
|
|
101
|
-
xl: "1.25em"
|
|
102
|
-
};
|
|
103
|
-
return /* @__PURE__ */ React.createElement(
|
|
104
|
-
CheckboxPrimitive.Root,
|
|
105
|
-
{
|
|
106
|
-
ref,
|
|
107
|
-
className: cn(
|
|
108
|
-
"hawa-peer hawa-shrink-0 hawa-border hawa-border-primary hawa-ring-offset-background focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50 data-[state=checked]:hawa-bg-primary data-[state=checked]:hawa-text-primary-foreground",
|
|
109
|
-
checkboxSizes[size],
|
|
110
|
-
checkboxRadius[radius],
|
|
111
|
-
className
|
|
112
|
-
),
|
|
113
|
-
...props
|
|
114
|
-
},
|
|
115
|
-
/* @__PURE__ */ React.createElement(
|
|
116
|
-
CheckboxPrimitive.Indicator,
|
|
117
|
-
{
|
|
118
|
-
className: cn(
|
|
119
|
-
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
|
120
|
-
)
|
|
121
|
-
},
|
|
122
|
-
/* @__PURE__ */ React.createElement(
|
|
123
|
-
"svg",
|
|
124
|
-
{
|
|
125
|
-
"aria-label": "Check Mark",
|
|
126
|
-
stroke: "currentColor",
|
|
127
|
-
fill: "currentColor",
|
|
128
|
-
strokeWidth: "0",
|
|
129
|
-
viewBox: "0 0 512 512",
|
|
130
|
-
height: checkboxIndicatorSizes[size],
|
|
131
|
-
width: checkboxIndicatorSizes[size]
|
|
132
|
-
},
|
|
133
|
-
/* @__PURE__ */ React.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
|
134
|
-
),
|
|
135
|
-
" "
|
|
136
|
-
)
|
|
137
|
-
);
|
|
138
|
-
});
|
|
139
|
-
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
|
140
|
-
|
|
141
|
-
export {
|
|
142
|
-
Checkbox
|
|
143
|
-
};
|
package/dist/chunk-ZCUUQ5VV.mjs
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-TE3BKEXL.mjs";
|
|
4
|
-
|
|
5
|
-
// components/elements/switch/Switch.tsx
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
8
|
-
var Switch = React.forwardRef(
|
|
9
|
-
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
|
10
|
-
const [parentDirection, setParentDirection] = React.useState(
|
|
11
|
-
null
|
|
12
|
-
);
|
|
13
|
-
const parentRef = React.useRef(null);
|
|
14
|
-
React.useEffect(() => {
|
|
15
|
-
var _a;
|
|
16
|
-
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
|
17
|
-
if (parentNode) {
|
|
18
|
-
const dir = window.getComputedStyle(parentNode).direction;
|
|
19
|
-
setParentDirection(dir);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const rootSize = {
|
|
23
|
-
default: "hawa-h-[25px] hawa-w-[42px]",
|
|
24
|
-
sm: "hawa-h-[20px] hawa-w-[37px]",
|
|
25
|
-
lg: "hawa-h-[30px] hawa-w-[47px]"
|
|
26
|
-
};
|
|
27
|
-
const thumbSize = {
|
|
28
|
-
default: "hawa-h-[21px] hawa-w-[21px]",
|
|
29
|
-
sm: "hawa-h-[16px] hawa-w-[16px]",
|
|
30
|
-
lg: "hawa-h-[26px] hawa-w-[26px]"
|
|
31
|
-
};
|
|
32
|
-
const rootRoundednessStyles = {
|
|
33
|
-
none: "hawa-rounded-none",
|
|
34
|
-
full: "hawa-rounded-full",
|
|
35
|
-
inherit: "hawa-rounded"
|
|
36
|
-
};
|
|
37
|
-
const thumbRoundednessStyles = {
|
|
38
|
-
none: "hawa-rounded-none",
|
|
39
|
-
full: "hawa-rounded-full",
|
|
40
|
-
inherit: "hawa-rounded-inner"
|
|
41
|
-
};
|
|
42
|
-
return /* @__PURE__ */ React.createElement(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
className: "hawa-flex hawa-flex-row hawa-items-center",
|
|
46
|
-
ref: parentRef
|
|
47
|
-
},
|
|
48
|
-
/* @__PURE__ */ React.createElement(
|
|
49
|
-
SwitchPrimitives.Root,
|
|
50
|
-
{
|
|
51
|
-
className: cn(
|
|
52
|
-
"data-[state=unchecked]:hawa-bg-primary/20",
|
|
53
|
-
"data-[state=checked]:hawa-bg-primary",
|
|
54
|
-
"hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
|
|
55
|
-
rootRoundednessStyles[roundedness],
|
|
56
|
-
className,
|
|
57
|
-
rootSize[size]
|
|
58
|
-
),
|
|
59
|
-
...props,
|
|
60
|
-
ref
|
|
61
|
-
},
|
|
62
|
-
/* @__PURE__ */ React.createElement(
|
|
63
|
-
SwitchPrimitives.Thumb,
|
|
64
|
-
{
|
|
65
|
-
className: cn(
|
|
66
|
-
thumbSize[size],
|
|
67
|
-
"hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
|
|
68
|
-
"data-[state=checked]:hawa-bg-primary-foreground",
|
|
69
|
-
"hawa-bg-white dark:hawa-bg-background",
|
|
70
|
-
thumbRoundednessStyles[roundedness],
|
|
71
|
-
parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
|
|
72
|
-
)
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
),
|
|
76
|
-
label && /* @__PURE__ */ React.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
81
|
-
|
|
82
|
-
export {
|
|
83
|
-
Switch
|
|
84
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { LabelProps } from '../label/index.mjs';
|
|
3
|
-
import '../commonTypes-gbO4hPli.mjs';
|
|
4
|
-
|
|
5
|
-
type ComboboxTypes<T> = {
|
|
6
|
-
labelKey?: keyof T;
|
|
7
|
-
valueKey?: keyof T;
|
|
8
|
-
data: T[];
|
|
9
|
-
width?: string;
|
|
10
|
-
texts?: {
|
|
11
|
-
noItems?: string;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
searchPlaceholder?: string;
|
|
14
|
-
};
|
|
15
|
-
isLoading?: boolean;
|
|
16
|
-
helperText?: string;
|
|
17
|
-
popoverClassName?: string;
|
|
18
|
-
/** This the same value as the one with the key valueKey */
|
|
19
|
-
defaultValue?: string;
|
|
20
|
-
preview?: boolean;
|
|
21
|
-
hideInput?: boolean;
|
|
22
|
-
id?: string;
|
|
23
|
-
/** The label of the input field */
|
|
24
|
-
label?: any;
|
|
25
|
-
labelProps?: LabelProps;
|
|
26
|
-
/** If true, it will show a red asterisk next to the label*/
|
|
27
|
-
isRequired?: boolean;
|
|
28
|
-
onChange?: (e: any) => void;
|
|
29
|
-
};
|
|
30
|
-
declare const Combobox: React.ForwardRefExoticComponent<ComboboxTypes<any> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
-
|
|
32
|
-
export { Combobox };
|
package/dist/combobox/index.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { LabelProps } from '../label/index.js';
|
|
3
|
-
import '../commonTypes-gbO4hPli.js';
|
|
4
|
-
|
|
5
|
-
type ComboboxTypes<T> = {
|
|
6
|
-
labelKey?: keyof T;
|
|
7
|
-
valueKey?: keyof T;
|
|
8
|
-
data: T[];
|
|
9
|
-
width?: string;
|
|
10
|
-
texts?: {
|
|
11
|
-
noItems?: string;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
searchPlaceholder?: string;
|
|
14
|
-
};
|
|
15
|
-
isLoading?: boolean;
|
|
16
|
-
helperText?: string;
|
|
17
|
-
popoverClassName?: string;
|
|
18
|
-
/** This the same value as the one with the key valueKey */
|
|
19
|
-
defaultValue?: string;
|
|
20
|
-
preview?: boolean;
|
|
21
|
-
hideInput?: boolean;
|
|
22
|
-
id?: string;
|
|
23
|
-
/** The label of the input field */
|
|
24
|
-
label?: any;
|
|
25
|
-
labelProps?: LabelProps;
|
|
26
|
-
/** If true, it will show a red asterisk next to the label*/
|
|
27
|
-
isRequired?: boolean;
|
|
28
|
-
onChange?: (e: any) => void;
|
|
29
|
-
};
|
|
30
|
-
declare const Combobox: React.ForwardRefExoticComponent<ComboboxTypes<any> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
-
|
|
32
|
-
export { Combobox };
|
package/dist/command/index.d.mts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DialogProps } from '@radix-ui/react-dialog';
|
|
3
|
-
|
|
4
|
-
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
} & React.HTMLAttributes<HTMLDivElement> & {
|
|
7
|
-
label?: string | undefined;
|
|
8
|
-
shouldFilter?: boolean | undefined;
|
|
9
|
-
filter?: ((value: string, search: string) => number) | undefined;
|
|
10
|
-
value?: string | undefined;
|
|
11
|
-
onValueChange?: ((value: string) => void) | undefined;
|
|
12
|
-
loop?: boolean | undefined;
|
|
13
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
interface CommandDialogProps extends DialogProps {
|
|
15
|
-
}
|
|
16
|
-
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React.JSX.Element;
|
|
17
|
-
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "type" | "value"> & {
|
|
18
|
-
value?: string | undefined;
|
|
19
|
-
onValueChange?: ((search: string) => void) | undefined;
|
|
20
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
21
|
-
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
25
|
-
children?: React.ReactNode;
|
|
26
|
-
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
-
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
28
|
-
children?: React.ReactNode;
|
|
29
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "heading" | "value"> & {
|
|
30
|
-
heading?: React.ReactNode;
|
|
31
|
-
value?: string | undefined;
|
|
32
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & {
|
|
34
|
-
alwaysRender?: boolean | undefined;
|
|
35
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
-
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
37
|
-
children?: React.ReactNode;
|
|
38
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect" | "disabled" | "value"> & {
|
|
39
|
-
disabled?: boolean | undefined;
|
|
40
|
-
onSelect?: ((value: string) => void) | undefined;
|
|
41
|
-
value?: string | undefined;
|
|
42
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
-
declare const CommandShortcut: {
|
|
44
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
45
|
-
displayName: string;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
package/dist/command/index.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DialogProps } from '@radix-ui/react-dialog';
|
|
3
|
-
|
|
4
|
-
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
} & React.HTMLAttributes<HTMLDivElement> & {
|
|
7
|
-
label?: string | undefined;
|
|
8
|
-
shouldFilter?: boolean | undefined;
|
|
9
|
-
filter?: ((value: string, search: string) => number) | undefined;
|
|
10
|
-
value?: string | undefined;
|
|
11
|
-
onValueChange?: ((value: string) => void) | undefined;
|
|
12
|
-
loop?: boolean | undefined;
|
|
13
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
interface CommandDialogProps extends DialogProps {
|
|
15
|
-
}
|
|
16
|
-
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React.JSX.Element;
|
|
17
|
-
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "type" | "value"> & {
|
|
18
|
-
value?: string | undefined;
|
|
19
|
-
onValueChange?: ((search: string) => void) | undefined;
|
|
20
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
21
|
-
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
25
|
-
children?: React.ReactNode;
|
|
26
|
-
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
-
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
28
|
-
children?: React.ReactNode;
|
|
29
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "heading" | "value"> & {
|
|
30
|
-
heading?: React.ReactNode;
|
|
31
|
-
value?: string | undefined;
|
|
32
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & {
|
|
34
|
-
alwaysRender?: boolean | undefined;
|
|
35
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
-
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
37
|
-
children?: React.ReactNode;
|
|
38
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect" | "disabled" | "value"> & {
|
|
39
|
-
disabled?: boolean | undefined;
|
|
40
|
-
onSelect?: ((value: string) => void) | undefined;
|
|
41
|
-
value?: string | undefined;
|
|
42
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
-
declare const CommandShortcut: {
|
|
44
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
45
|
-
displayName: string;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
type DirectionType = "rtl" | "ltr";
|
|
2
|
-
type PositionType = "top" | "bottom" | "right" | "left";
|
|
3
|
-
type SeverityType = "info" | "warning" | "error" | "success" | "none";
|
|
4
|
-
type OrientationType = "vertical" | "horizontal";
|
|
5
|
-
type RadiusType = "full" | "inherit" | "none";
|
|
6
|
-
|
|
7
|
-
export type { DirectionType as D, OrientationType as O, PositionType as P, RadiusType as R, SeverityType as S };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
type DirectionType = "rtl" | "ltr";
|
|
2
|
-
type PositionType = "top" | "bottom" | "right" | "left";
|
|
3
|
-
type SeverityType = "info" | "warning" | "error" | "success" | "none";
|
|
4
|
-
type OrientationType = "vertical" | "horizontal";
|
|
5
|
-
type RadiusType = "full" | "inherit" | "none";
|
|
6
|
-
|
|
7
|
-
export type { DirectionType as D, OrientationType as O, PositionType as P, RadiusType as R, SeverityType as S };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RowData, ColumnDef } from '@tanstack/react-table';
|
|
3
|
-
import { D as DirectionType } from '../commonTypes-gbO4hPli.mjs';
|
|
4
|
-
|
|
5
|
-
type DataTableProps<DataProps = {}> = {
|
|
6
|
-
direction?: DirectionType;
|
|
7
|
-
columns: ColumnDef<DataProps>[];
|
|
8
|
-
enableSearch?: boolean;
|
|
9
|
-
enableHideColumns?: boolean;
|
|
10
|
-
enableGoTo?: boolean;
|
|
11
|
-
data: DataProps[];
|
|
12
|
-
itemsPerPage?: any[];
|
|
13
|
-
showCount?: boolean;
|
|
14
|
-
paginationPosition?: "top" | "bottom";
|
|
15
|
-
condensed?: boolean;
|
|
16
|
-
isLoading?: boolean;
|
|
17
|
-
defaultSort?: string;
|
|
18
|
-
translateFn?: any;
|
|
19
|
-
texts?: {
|
|
20
|
-
columns?: string;
|
|
21
|
-
searchPlaceholder?: string;
|
|
22
|
-
item?: string;
|
|
23
|
-
noData?: any;
|
|
24
|
-
page?: string;
|
|
25
|
-
filter?: string;
|
|
26
|
-
of?: string;
|
|
27
|
-
total?: string;
|
|
28
|
-
goTo?: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
declare module "@tanstack/table-core" {
|
|
32
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
33
|
-
padding?: "condensed" | "default" | "noPadding";
|
|
34
|
-
sortable?: boolean;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
declare const DataTable: <DataProps extends {}>({ columns, data, paginationPosition, translateFn, enableHideColumns, enableSearch, enableGoTo, ...props }: DataTableProps<DataProps>) => React.JSX.Element;
|
|
38
|
-
|
|
39
|
-
export { DataTable };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RowData, ColumnDef } from '@tanstack/react-table';
|
|
3
|
-
import { D as DirectionType } from '../commonTypes-gbO4hPli.js';
|
|
4
|
-
|
|
5
|
-
type DataTableProps<DataProps = {}> = {
|
|
6
|
-
direction?: DirectionType;
|
|
7
|
-
columns: ColumnDef<DataProps>[];
|
|
8
|
-
enableSearch?: boolean;
|
|
9
|
-
enableHideColumns?: boolean;
|
|
10
|
-
enableGoTo?: boolean;
|
|
11
|
-
data: DataProps[];
|
|
12
|
-
itemsPerPage?: any[];
|
|
13
|
-
showCount?: boolean;
|
|
14
|
-
paginationPosition?: "top" | "bottom";
|
|
15
|
-
condensed?: boolean;
|
|
16
|
-
isLoading?: boolean;
|
|
17
|
-
defaultSort?: string;
|
|
18
|
-
translateFn?: any;
|
|
19
|
-
texts?: {
|
|
20
|
-
columns?: string;
|
|
21
|
-
searchPlaceholder?: string;
|
|
22
|
-
item?: string;
|
|
23
|
-
noData?: any;
|
|
24
|
-
page?: string;
|
|
25
|
-
filter?: string;
|
|
26
|
-
of?: string;
|
|
27
|
-
total?: string;
|
|
28
|
-
goTo?: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
declare module "@tanstack/table-core" {
|
|
32
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
33
|
-
padding?: "condensed" | "default" | "noPadding";
|
|
34
|
-
sortable?: boolean;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
declare const DataTable: <DataProps extends {}>({ columns, data, paginationPosition, translateFn, enableHideColumns, enableSearch, enableGoTo, ...props }: DataTableProps<DataProps>) => React.JSX.Element;
|
|
38
|
-
|
|
39
|
-
export { DataTable };
|