@cryptlex/web-components 5.0.0 → 5.1.0
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/data-table/data-table-filter.es.js +46 -44
- package/dist/components/data-table/data-table-filter.es.js.map +1 -1
- package/dist/components/data-table/data-table.es.js +160 -159
- package/dist/components/data-table/data-table.es.js.map +1 -1
- package/dist/components/data-table/table-commons.es.js +51 -217
- package/dist/components/data-table/table-commons.es.js.map +1 -1
- package/dist/components/inputs/date-picker.es.js +61 -41
- package/dist/components/inputs/date-picker.es.js.map +1 -1
- package/dist/components/inputs/datefield.es.js +9 -9
- package/dist/components/inputs/datefield.es.js.map +1 -1
- package/dist/components/inputs/field.es.js +36 -35
- package/dist/components/inputs/field.es.js.map +1 -1
- package/dist/components/inputs/id-search.es.js +36 -33
- package/dist/components/inputs/id-search.es.js.map +1 -1
- package/dist/components/inputs/multi-select.es.js +32 -39
- package/dist/components/inputs/multi-select.es.js.map +1 -1
- package/dist/components/inputs/{country-select.es.js → select-options.es.js} +26 -24
- package/dist/components/inputs/select-options.es.js.map +1 -0
- package/dist/components/inputs/select.es.js +46 -45
- package/dist/components/inputs/select.es.js.map +1 -1
- package/dist/components/ui/button.es.js +22 -24
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/menu.es.js +44 -43
- package/dist/components/ui/menu.es.js.map +1 -1
- package/dist/components/ui/popover.es.js +1 -1
- package/dist/components/ui/popover.es.js.map +1 -1
- package/dist/index.es.d.ts +44 -54
- package/dist/index.es.js +206 -207
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/CalendarDate.es.js +13 -13
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/conversion.es.js +5 -5
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/string.es.js +48 -39
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/string.es.js.map +1 -1
- package/dist/utils/form-hook.es.js +10 -14
- package/dist/utils/form-hook.es.js.map +1 -1
- package/dist/utils/primitives.es.js.map +1 -1
- package/dist/utils/resource-names.es.js +182 -0
- package/dist/utils/resource-names.es.js.map +1 -0
- package/package.json +1 -1
- package/dist/components/inputs/country-select.es.js.map +0 -1
- package/dist/components/inputs/license-type-select.es.js +0 -31
- package/dist/components/inputs/license-type-select.es.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as o, jsxs as i, Fragment as
|
|
1
|
+
import { jsx as o, jsxs as i, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import { composeRenderProps as s } from "../../node_modules/.pnpm/react-aria-components@1.11.0_react-dom@19.1.0_react@19.1.0/node_modules/react-aria-components/dist/utils.es.js";
|
|
3
|
-
import { Header as
|
|
4
|
-
import { Keyboard as
|
|
5
|
-
import { MenuTrigger as
|
|
6
|
-
import { Separator as
|
|
7
|
-
import { Dot as
|
|
8
|
-
import { SelectPopover as
|
|
9
|
-
import { Button as
|
|
10
|
-
import { ListBoxCollection as
|
|
3
|
+
import { Header as l } from "../../node_modules/.pnpm/react-aria-components@1.11.0_react-dom@19.1.0_react@19.1.0/node_modules/react-aria-components/dist/Header.es.js";
|
|
4
|
+
import { Keyboard as f } from "../../node_modules/.pnpm/react-aria-components@1.11.0_react-dom@19.1.0_react@19.1.0/node_modules/react-aria-components/dist/Keyboard.es.js";
|
|
5
|
+
import { MenuTrigger as p, SubmenuTrigger as d, Menu as b, MenuItem as x } from "../../node_modules/.pnpm/react-aria-components@1.11.0_react-dom@19.1.0_react@19.1.0/node_modules/react-aria-components/dist/Menu.es.js";
|
|
6
|
+
import { Separator as $ } from "../../node_modules/.pnpm/react-aria-components@1.11.0_react-dom@19.1.0_react@19.1.0/node_modules/react-aria-components/dist/Separator.es.js";
|
|
7
|
+
import { Dot as g, Check as M, ChevronRight as h } from "lucide-react";
|
|
8
|
+
import { SelectPopover as y } from "../inputs/select.es.js";
|
|
9
|
+
import { Button as N } from "./button.es.js";
|
|
10
|
+
import { ListBoxCollection as v } from "./list-box.es.js";
|
|
11
11
|
import { cn as n } from "../../utils/primitives.es.js";
|
|
12
|
-
const
|
|
13
|
-
function
|
|
12
|
+
const S = p, D = d, E = v;
|
|
13
|
+
function _({ className: e, ...t }) {
|
|
14
14
|
return /* @__PURE__ */ o(
|
|
15
|
-
|
|
15
|
+
y,
|
|
16
16
|
{
|
|
17
17
|
className: s(
|
|
18
18
|
e,
|
|
@@ -22,9 +22,9 @@ function S({ className: e, ...t }) {
|
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function z({ className: e, ...t }) {
|
|
26
26
|
return /* @__PURE__ */ o(
|
|
27
|
-
|
|
27
|
+
b,
|
|
28
28
|
{
|
|
29
29
|
className: n(
|
|
30
30
|
"overflow-auto p-1 outline-0 [clip-path:inset(0_0_0_0_round_calc(var(--radius)-2px))]",
|
|
@@ -35,9 +35,9 @@ function _({ className: e, ...t }) {
|
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function F({ children: e, className: t, ...c }) {
|
|
39
39
|
return /* @__PURE__ */ o(
|
|
40
|
-
|
|
40
|
+
x,
|
|
41
41
|
{
|
|
42
42
|
textValue: c.textValue || (typeof e == "string" ? e : void 0),
|
|
43
43
|
className: s(
|
|
@@ -54,25 +54,25 @@ function E({ children: e, className: t, ...c }) {
|
|
|
54
54
|
)
|
|
55
55
|
),
|
|
56
56
|
...c,
|
|
57
|
-
children: s(e, (r, a) => /* @__PURE__ */ i(
|
|
58
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex size-icon items-center justify-center", children: a.isSelected && /* @__PURE__ */ i(
|
|
59
|
-
a.selectionMode == "single" && /* @__PURE__ */ o(
|
|
60
|
-
a.selectionMode == "multiple" && /* @__PURE__ */ o(
|
|
57
|
+
children: s(e, (r, a) => /* @__PURE__ */ i(m, { children: [
|
|
58
|
+
/* @__PURE__ */ o("span", { className: "absolute left-2 flex size-icon items-center justify-center", children: a.isSelected && /* @__PURE__ */ i(m, { children: [
|
|
59
|
+
a.selectionMode == "single" && /* @__PURE__ */ o(g, { className: "size-icon fill-current" }),
|
|
60
|
+
a.selectionMode == "multiple" && /* @__PURE__ */ o(M, { className: "size-icon" })
|
|
61
61
|
] }) }),
|
|
62
62
|
r,
|
|
63
|
-
a.hasSubmenu && /* @__PURE__ */ o(
|
|
63
|
+
a.hasSubmenu && /* @__PURE__ */ o(h, { className: "ml-auto size-icon" })
|
|
64
64
|
] }))
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function L({
|
|
69
69
|
className: e,
|
|
70
70
|
inset: t,
|
|
71
71
|
separator: c = !0,
|
|
72
72
|
...r
|
|
73
73
|
}) {
|
|
74
74
|
return /* @__PURE__ */ o(
|
|
75
|
-
|
|
75
|
+
l,
|
|
76
76
|
{
|
|
77
77
|
className: n(
|
|
78
78
|
"px-3 py-1.5 text-sm font-semibold",
|
|
@@ -84,49 +84,50 @@ function F({
|
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function q({ className: e, ...t }) {
|
|
88
88
|
return /* @__PURE__ */ o(
|
|
89
|
-
|
|
89
|
+
$,
|
|
90
90
|
{
|
|
91
91
|
className: n("-mx-1 my-1 h-px bg-muted", e),
|
|
92
92
|
...t
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function A({
|
|
97
97
|
className: e,
|
|
98
98
|
...t
|
|
99
99
|
}) {
|
|
100
100
|
return /* @__PURE__ */ o(
|
|
101
|
-
|
|
101
|
+
f,
|
|
102
102
|
{
|
|
103
103
|
className: n("ml-auto text-xs tracking-widest opacity-60", e),
|
|
104
104
|
...t
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function G({
|
|
109
109
|
label: e,
|
|
110
110
|
children: t,
|
|
111
111
|
variant: c,
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
isDisabled: r,
|
|
113
|
+
size: a,
|
|
114
|
+
...u
|
|
114
115
|
}) {
|
|
115
|
-
return /* @__PURE__ */ i(
|
|
116
|
-
/* @__PURE__ */ o(
|
|
117
|
-
/* @__PURE__ */ o(
|
|
116
|
+
return /* @__PURE__ */ i(S, { ...u, children: [
|
|
117
|
+
/* @__PURE__ */ o(N, { isDisabled: r, type: "button", variant: c, size: a, children: e }),
|
|
118
|
+
/* @__PURE__ */ o(_, { className: "overflow-auto", children: /* @__PURE__ */ o(z, { ...u, children: t }) })
|
|
118
119
|
] });
|
|
119
120
|
}
|
|
120
121
|
export {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
122
|
+
G as EasyMenu,
|
|
123
|
+
z as Menu,
|
|
124
|
+
E as MenuCollection,
|
|
125
|
+
L as MenuHeader,
|
|
126
|
+
F as MenuItem,
|
|
127
|
+
A as MenuKeyboard,
|
|
128
|
+
_ as MenuPopover,
|
|
129
|
+
q as MenuSeparator,
|
|
130
|
+
D as MenuSubTrigger,
|
|
131
|
+
S as MenuTrigger
|
|
131
132
|
};
|
|
132
133
|
//# sourceMappingURL=menu.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.es.js","sources":["../../../lib/components/ui/menu.tsx"],"sourcesContent":["import { VariantProps } from \"class-variance-authority\"\nimport * as React from \"react\"\nimport {\n Header as AriaHeader,\n Keyboard as AriaKeyboard,\n Menu as AriaMenu,\n MenuItem as AriaMenuItem,\n MenuItemProps as AriaMenuItemProps,\n MenuProps as AriaMenuProps,\n MenuTrigger as AriaMenuTrigger,\n MenuTriggerProps as AriaMenuTriggerProps,\n Separator as AriaSeparator,\n SeparatorProps as AriaSeparatorProps,\n SubmenuTrigger as AriaSubmenuTrigger,\n composeRenderProps,\n PopoverProps,\n} from \"react-aria-components\"\n\nimport { cn } from \"@/utils/index\"\n\nimport { Check, ChevronRight, Dot } from \"lucide-react\"\nimport { SelectPopover } from \"../inputs/select\"\nimport { Button, buttonVariants } from \"./button\"\nimport { ListBoxCollection } from \"./list-box\"\n\nexport const MenuTrigger = AriaMenuTrigger\nexport const MenuSubTrigger = AriaSubmenuTrigger\nexport const MenuCollection = ListBoxCollection\n\nexport function MenuPopover({ className, ...props }: PopoverProps) {\n return (\n <SelectPopover\n className={composeRenderProps(className, (className) =>\n cn(className)\n )}\n {...props}\n />\n )\n}\n\nexport function Menu<T extends object>({ className, ...props }: AriaMenuProps<T>) {\n return (\n <AriaMenu\n className={cn(\n \"overflow-auto p-1 outline-0 [clip-path:inset(0_0_0_0_round_calc(var(--radius)-2px))]\",\n className\n )}\n escapeKeyBehavior=\"none\"\n {...props}\n />\n )\n}\n\nexport function MenuItem({ children, className, ...props }: AriaMenuItemProps & { ref?: React.Ref<HTMLDivElement> }) {\n return (\n <AriaMenuItem\n textValue={\n props.textValue || (typeof children === \"string\" ? children : undefined)\n }\n className={composeRenderProps(className, (className) =>\n cn(\n \"relative flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none transition-colors\",\n /* Disabled */\n \"disabled-muted\",\n /* Focused */\n \"data-[focused]:bg-accent data-[focused]:text-accent-foreground \",\n /* Selection Mode */\n \"data-[selection-mode]:pl-input\",\n className\n )\n )}\n {...props}\n >\n {composeRenderProps(children, (children, renderProps) => (\n <>\n <span className=\"absolute left-2 flex size-icon items-center justify-center\">\n {renderProps.isSelected && (\n <>\n {renderProps.selectionMode == \"single\" && (\n <Dot className=\"size-icon fill-current\" />\n )}\n {renderProps.selectionMode == \"multiple\" && (\n <Check className=\"size-icon\" />\n )}\n </>\n )}\n </span>\n\n {children}\n\n {renderProps.hasSubmenu && <ChevronRight className=\"ml-auto size-icon\" />}\n </>\n ))}\n </AriaMenuItem>\n )\n}\n\ninterface MenuHeaderProps extends React.ComponentProps<typeof AriaHeader> {\n inset?: boolean\n separator?: boolean\n}\n\nexport function MenuHeader({\n className,\n inset,\n separator = true,\n ...props\n}: MenuHeaderProps) {\n return (\n <AriaHeader\n className={cn(\n \"px-3 py-1.5 text-sm font-semibold\",\n inset && \"pl-input\",\n separator && \"-mx-1 mb-1 border-b border-b-border pb-2.5\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport function MenuSeparator({ className, ...props }: AriaSeparatorProps) {\n return (\n <AriaSeparator\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n )\n}\n\nexport function MenuKeyboard({\n className,\n ...props\n}: React.ComponentProps<typeof AriaKeyboard>) {\n return (\n <AriaKeyboard\n className={cn(\"ml-auto text-xs tracking-widest opacity-60\", className)}\n {...props}\n />\n )\n}\ninterface MenuProps<T>\n extends AriaMenuProps<T>,\n VariantProps<typeof buttonVariants>,\n Omit<AriaMenuTriggerProps, \"children\"> {\n label?: React.ReactNode\n}\n// TODO name this better\nexport function EasyMenu<T extends object>({\n label,\n children,\n variant,\n size,\n ...props\n}: MenuProps<T>) {\n return (\n <MenuTrigger {...props}>\n <Button type=\"button\" variant={variant} size={size}>\n {label}\n </Button>\n <MenuPopover className=\"overflow-auto\">\n <Menu {...props}>{children}</Menu>\n </MenuPopover>\n </MenuTrigger>\n )\n}\n"],"names":["MenuTrigger","AriaMenuTrigger","MenuSubTrigger","AriaSubmenuTrigger","MenuCollection","ListBoxCollection","MenuPopover","className","props","jsx","SelectPopover","composeRenderProps","cn","Menu","AriaMenu","MenuItem","children","AriaMenuItem","renderProps","jsxs","Fragment","Dot","Check","ChevronRight","MenuHeader","inset","separator","AriaHeader","MenuSeparator","AriaSeparator","MenuKeyboard","AriaKeyboard","EasyMenu","label","variant","size","Button"],"mappings":";;;;;;;;;;;AAyBO,MAAMA,I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AA,QAEAE,EAAY,cAAc,gBAAAT,EAACc,GAAA,EAAa,WAAU,oBAAA,CAAoB;AAAA,MAAA,GACzE,CACD;AAAA,IAAA;AAAA,EAAA;AAGP;AAOO,SAASC,EAAW;AAAA,EACzB,WAAAjB;AAAA,EACA,OAAAkB;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGlB;AACL,GAAoB;AAClB,SACE,gBAAAC;AAAA,IAACkB;AAAAA,IAAA;AAAA,MACC,WAAWf;AAAA,QACT;AAAA,QACAa,KAAS;AAAA,QACTC,KAAa;AAAA,QACbnB;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEO,SAASoB,EAAc,EAAE,WAAArB,GAAW,GAAGC,KAA6B;AACzE,SACE,gBAAAC;AAAA,IAACoB;AAAAA,IAAA;AAAA,MACC,WAAWjB,EAAG,4BAA4BL,CAAS;AAAA,MAClD,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEO,SAASsB,EAAa;AAAA,EAC3B,WAAAvB;AAAA,EACA,GAAGC;AACL,GAA8C;AAC5C,SACE,gBAAAC;AAAA,IAACsB;AAAAA,IAAA;AAAA,MACC,WAAWnB,EAAG,8CAA8CL,CAAS;AAAA,MACpE,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;
|
|
1
|
+
{"version":3,"file":"menu.es.js","sources":["../../../lib/components/ui/menu.tsx"],"sourcesContent":["import { VariantProps } from \"class-variance-authority\"\nimport * as React from \"react\"\nimport {\n Header as AriaHeader,\n Keyboard as AriaKeyboard,\n Menu as AriaMenu,\n MenuItem as AriaMenuItem,\n MenuItemProps as AriaMenuItemProps,\n MenuProps as AriaMenuProps,\n MenuTrigger as AriaMenuTrigger,\n MenuTriggerProps as AriaMenuTriggerProps,\n Separator as AriaSeparator,\n SeparatorProps as AriaSeparatorProps,\n SubmenuTrigger as AriaSubmenuTrigger,\n composeRenderProps,\n PopoverProps,\n} from \"react-aria-components\"\n\nimport { cn } from \"@/utils/index\"\n\nimport { Check, ChevronRight, Dot } from \"lucide-react\"\nimport { SelectPopover } from \"../inputs/select\"\nimport { Button, buttonVariants } from \"./button\"\nimport { ListBoxCollection } from \"./list-box\"\n\nexport const MenuTrigger = AriaMenuTrigger\nexport const MenuSubTrigger = AriaSubmenuTrigger\nexport const MenuCollection = ListBoxCollection\n\nexport function MenuPopover({ className, ...props }: PopoverProps) {\n return (\n <SelectPopover\n className={composeRenderProps(className, (className) =>\n cn(className)\n )}\n {...props}\n />\n )\n}\n\nexport function Menu<T extends object>({ className, ...props }: AriaMenuProps<T>) {\n return (\n <AriaMenu\n className={cn(\n \"overflow-auto p-1 outline-0 [clip-path:inset(0_0_0_0_round_calc(var(--radius)-2px))]\",\n className\n )}\n escapeKeyBehavior=\"none\"\n {...props}\n />\n )\n}\n\nexport function MenuItem({ children, className, ...props }: AriaMenuItemProps & { ref?: React.Ref<HTMLDivElement> }) {\n return (\n <AriaMenuItem\n textValue={\n props.textValue || (typeof children === \"string\" ? children : undefined)\n }\n className={composeRenderProps(className, (className) =>\n cn(\n \"relative flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none transition-colors\",\n /* Disabled */\n \"disabled-muted\",\n /* Focused */\n \"data-[focused]:bg-accent data-[focused]:text-accent-foreground \",\n /* Selection Mode */\n \"data-[selection-mode]:pl-input\",\n className\n )\n )}\n {...props}\n >\n {composeRenderProps(children, (children, renderProps) => (\n <>\n <span className=\"absolute left-2 flex size-icon items-center justify-center\">\n {renderProps.isSelected && (\n <>\n {renderProps.selectionMode == \"single\" && (\n <Dot className=\"size-icon fill-current\" />\n )}\n {renderProps.selectionMode == \"multiple\" && (\n <Check className=\"size-icon\" />\n )}\n </>\n )}\n </span>\n\n {children}\n\n {renderProps.hasSubmenu && <ChevronRight className=\"ml-auto size-icon\" />}\n </>\n ))}\n </AriaMenuItem>\n )\n}\n\ninterface MenuHeaderProps extends React.ComponentProps<typeof AriaHeader> {\n inset?: boolean\n separator?: boolean\n}\n\nexport function MenuHeader({\n className,\n inset,\n separator = true,\n ...props\n}: MenuHeaderProps) {\n return (\n <AriaHeader\n className={cn(\n \"px-3 py-1.5 text-sm font-semibold\",\n inset && \"pl-input\",\n separator && \"-mx-1 mb-1 border-b border-b-border pb-2.5\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport function MenuSeparator({ className, ...props }: AriaSeparatorProps) {\n return (\n <AriaSeparator\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n )\n}\n\nexport function MenuKeyboard({\n className,\n ...props\n}: React.ComponentProps<typeof AriaKeyboard>) {\n return (\n <AriaKeyboard\n className={cn(\"ml-auto text-xs tracking-widest opacity-60\", className)}\n {...props}\n />\n )\n}\ninterface MenuProps<T>\n extends AriaMenuProps<T>,\n VariantProps<typeof buttonVariants>,\n Omit<AriaMenuTriggerProps, \"children\"> {\n label?: React.ReactNode\n isDisabled?: boolean\n}\n// TODO name this better\nexport function EasyMenu<T extends object>({\n label,\n children,\n variant,\n isDisabled,\n size,\n ...props\n}: MenuProps<T>) {\n return (\n <MenuTrigger {...props}>\n <Button isDisabled={isDisabled} type=\"button\" variant={variant} size={size}>\n {label}\n </Button>\n <MenuPopover className=\"overflow-auto\">\n <Menu {...props}>{children}</Menu>\n </MenuPopover>\n </MenuTrigger>\n )\n}\n"],"names":["MenuTrigger","AriaMenuTrigger","MenuSubTrigger","AriaSubmenuTrigger","MenuCollection","ListBoxCollection","MenuPopover","className","props","jsx","SelectPopover","composeRenderProps","cn","Menu","AriaMenu","MenuItem","children","AriaMenuItem","renderProps","jsxs","Fragment","Dot","Check","ChevronRight","MenuHeader","inset","separator","AriaHeader","MenuSeparator","AriaSeparator","MenuKeyboard","AriaKeyboard","EasyMenu","label","variant","isDisabled","size","Button"],"mappings":";;;;;;;;;;;AAyBO,MAAMA,IAAcC,GACdC,IAAiBC,GACjBC,IAAiBC;AAEvB,SAASC,EAAY,EAAE,WAAAC,GAAW,GAAGC,KAAuB;AACjE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PURE__ */ t(
|
|
|
10
10
|
className: n(
|
|
11
11
|
e,
|
|
12
12
|
(i) => a(
|
|
13
|
-
"z-50 border bg-popover text-popover-foreground outline-none max-w-
|
|
13
|
+
"z-50 border bg-popover text-popover-foreground outline-none max-w-lg",
|
|
14
14
|
/* Entering */
|
|
15
15
|
"data-[entering]:animate-in data-[entering]:fade-in-0 data-[entering]:zoom-in-95",
|
|
16
16
|
/* Exiting */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.es.js","sources":["../../../lib/components/ui/popover.tsx"],"sourcesContent":["import {\n\tDialog as AriaDialog,\n\tDialogProps as AriaDialogProps,\n\tDialogTrigger as AriaDialogTrigger,\n\tPopover as AriaPopover,\n\tPopoverProps as AriaPopoverProps,\n\tcomposeRenderProps,\n} from \"react-aria-components\"\n\nimport { cn } from \"@/utils/index\"\n\nexport const PopoverTrigger = AriaDialogTrigger\n\nexport const Popover = ({ className, offset = 4, ...props }: AriaPopoverProps) => (\n\t<AriaPopover\n\t\toffset={offset}\n\t\tclassName={composeRenderProps(className, (className) =>\n\t\t\tcn(\n\t\t\t\t\"z-50 border bg-popover text-popover-foreground outline-none max-w-
|
|
1
|
+
{"version":3,"file":"popover.es.js","sources":["../../../lib/components/ui/popover.tsx"],"sourcesContent":["import {\n\tDialog as AriaDialog,\n\tDialogProps as AriaDialogProps,\n\tDialogTrigger as AriaDialogTrigger,\n\tPopover as AriaPopover,\n\tPopoverProps as AriaPopoverProps,\n\tcomposeRenderProps,\n} from \"react-aria-components\"\n\nimport { cn } from \"@/utils/index\"\n\nexport const PopoverTrigger = AriaDialogTrigger\n\nexport const Popover = ({ className, offset = 4, ...props }: AriaPopoverProps) => (\n\t<AriaPopover\n\t\toffset={offset}\n\t\tclassName={composeRenderProps(className, (className) =>\n\t\t\tcn(\n\t\t\t\t\"z-50 border bg-popover text-popover-foreground outline-none max-w-lg\",\n\t\t\t\t/* Entering */\n\t\t\t\t\"data-[entering]:animate-in data-[entering]:fade-in-0 data-[entering]:zoom-in-95\",\n\t\t\t\t/* Exiting */\n\t\t\t\t\"data-[exiting]:animate-out data-[exiting]:fade-out-0 data-[exiting]:zoom-out-95\",\n\t\t\t\t/* Placement */\n\t\t\t\t\"data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2\",\n\t\t\t\tclassName\n\t\t\t)\n\t\t)}\n\t\t{...props}\n\t/>\n)\n\nexport function PopoverDialog({ className, ...props }: AriaDialogProps) {\n\treturn (\n\t\t<AriaDialog className={cn(\"p-icon outline-0\", className)} {...props} />\n\t)\n}\n"],"names":["PopoverTrigger","AriaDialogTrigger","Popover","className","offset","props","jsx","AriaPopover","composeRenderProps","cn","PopoverDialog","AriaDialog"],"mappings":";;;;;AAWO,MAAMA,IAAiBC,GAEjBC,IAAU,CAAC,EAAE,WAAAC,GAAW,QAAAC,IAAS,GAAG,GAAGC,QACnD,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACA,QAAAH;AAAA,IACA,WAAWI;AAAAA,MAAmBL;AAAA,MAAW,CAACA,MACzCM;AAAA,QACC;AAAA;AAAA,QAEA;AAAA;AAAA,QAEA;AAAA;AAAA,QAEA;AAAA,QACAN;AAAAA,MAAA;AAAA,IACD;AAAA,IAEA,GAAGE;AAAA,EAAA;AACL;AAGM,SAASK,EAAc,EAAE,WAAAP,GAAW,GAAGE,KAA0B;AACvE,SACC,gBAAAC,EAACK,KAAW,WAAWF,EAAG,oBAAoBN,CAAS,GAAI,GAAGE,GAAO;AAEvE;"}
|
package/dist/index.es.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ import { TabProps } from 'react-aria-components';
|
|
|
80
80
|
import { TabsProps } from 'react-aria-components';
|
|
81
81
|
import { TextFieldProps as TextFieldProps_2 } from 'react-aria-components';
|
|
82
82
|
import { TextProps } from 'react-aria-components';
|
|
83
|
-
import { TimeFieldProps } from 'react-aria-components';
|
|
83
|
+
import { TimeFieldProps as TimeFieldProps_2 } from 'react-aria-components';
|
|
84
84
|
import { TimeValue } from 'react-aria-components';
|
|
85
85
|
import { Toaster as Toaster_2 } from 'sonner';
|
|
86
86
|
import { TooltipProps } from 'react-aria-components';
|
|
@@ -88,6 +88,7 @@ import { TooltipTrigger as TooltipTrigger_2 } from 'react-aria-components';
|
|
|
88
88
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
89
89
|
import { VariantProps } from 'class-variance-authority';
|
|
90
90
|
import { VisibilityState as VisibilityState_2 } from '@tanstack/react-table';
|
|
91
|
+
import { ZonedDateTime } from '@internationalized/date';
|
|
91
92
|
|
|
92
93
|
/** Reserved name for actions column */
|
|
93
94
|
export declare const ACTIONS_COLUMN_ID = "tableActions";
|
|
@@ -198,9 +199,9 @@ export declare const COMPARISON_OPERATOR_LABELS: Record<FilterComparisonOperator
|
|
|
198
199
|
|
|
199
200
|
/**
|
|
200
201
|
* Converts a string from 'camelCase' to 'Title Case'
|
|
201
|
-
* @param
|
|
202
|
+
* @param input String to convert to `Title Case`
|
|
202
203
|
*/
|
|
203
|
-
export declare function convertCamelCaseToTitleCase(
|
|
204
|
+
export declare function convertCamelCaseToTitleCase(input: string): string;
|
|
204
205
|
|
|
205
206
|
/**
|
|
206
207
|
*
|
|
@@ -210,20 +211,12 @@ export declare function convertCamelCaseToTitleCase(string: string): string;
|
|
|
210
211
|
export declare function convertToTitleCase(input: string): string;
|
|
211
212
|
|
|
212
213
|
/** Options for MultiSelect component */
|
|
213
|
-
export declare const COUNTRY_OPTIONS:
|
|
214
|
-
label: JSX.Element;
|
|
215
|
-
value: string;
|
|
216
|
-
}[];
|
|
217
|
-
|
|
218
|
-
export declare function CountrySelect({ ...props }: Omit<MultiSelectProps, "options">): JSX.Element;
|
|
214
|
+
export declare const COUNTRY_OPTIONS: SelectOption[];
|
|
219
215
|
|
|
220
216
|
export declare function createTableFetchFn<Return, Operation extends keyof operations>(ctxclient: Client, path: GetPaths): TableFetchFn<Return, Operation>;
|
|
221
217
|
|
|
222
218
|
export declare type CtxPortals = "customer-portal" | "system-portal" | "reseller-portal" | "admin-portal";
|
|
223
219
|
|
|
224
|
-
/** Application Names */
|
|
225
|
-
export declare type CtxProjectName = "admin-portal" | "customer-portal" | "internal-portal" | "reseller-portal";
|
|
226
|
-
|
|
227
220
|
export declare function DataTable({ tableActions, className, ...props }: DataTableProps): JSX.Element;
|
|
228
221
|
|
|
229
222
|
export declare const DataTableContext: default_2.Context<{
|
|
@@ -343,13 +336,7 @@ export declare type DisplayField<T> = {
|
|
|
343
336
|
transform?: (value: any) => React.ReactNode;
|
|
344
337
|
};
|
|
345
338
|
|
|
346
|
-
export declare
|
|
347
|
-
USER = 0,
|
|
348
|
-
ORGANIZATION = 1,
|
|
349
|
-
RESELLER = 2
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
export declare function EasyMenu<T extends object>({ label, children, variant, size, ...props }: MenuProps<T>): JSX.Element;
|
|
339
|
+
export declare function EasyMenu<T extends object>({ label, children, variant, isDisabled, size, ...props }: MenuProps<T>): JSX.Element;
|
|
353
340
|
|
|
354
341
|
export declare const fieldContext: Context<AnyFieldApi>;
|
|
355
342
|
|
|
@@ -371,7 +358,7 @@ export declare type FilterComparisonOperator = (typeof FILTER_COMPARISON_OPERATO
|
|
|
371
358
|
|
|
372
359
|
export declare type FilterConfig = {
|
|
373
360
|
type: 'enum';
|
|
374
|
-
options: MultiSelectProps['
|
|
361
|
+
options: MultiSelectProps['items'];
|
|
375
362
|
} | {
|
|
376
363
|
type: 'id-search';
|
|
377
364
|
search: () => Promise<{
|
|
@@ -419,8 +406,6 @@ declare type GetPaths = {
|
|
|
419
406
|
} ? P : never;
|
|
420
407
|
}[keyof paths];
|
|
421
408
|
|
|
422
|
-
export declare function getResourceDisplayName(resourceName: string, portal: CtxProjectName): string;
|
|
423
|
-
|
|
424
409
|
/**
|
|
425
410
|
*
|
|
426
411
|
* @returns
|
|
@@ -453,9 +438,6 @@ export declare function InputOTPSlot({ index, className, ...props }: React_2.Com
|
|
|
453
438
|
index: number;
|
|
454
439
|
}): JSX.Element;
|
|
455
440
|
|
|
456
|
-
declare interface JollyTimeFieldProps<T extends TimeValue> extends TimeFieldProps<T>, FormFieldProps {
|
|
457
|
-
}
|
|
458
|
-
|
|
459
441
|
export declare type JwtDecode = {
|
|
460
442
|
aud: string;
|
|
461
443
|
email: string;
|
|
@@ -484,10 +466,7 @@ export declare interface KeyValueCardProps<T> {
|
|
|
484
466
|
|
|
485
467
|
export declare const labelVariants: (props?: ClassProp | undefined) => string;
|
|
486
468
|
|
|
487
|
-
export declare const LICENSE_TYPE_OPTIONS:
|
|
488
|
-
label: JSX.Element;
|
|
489
|
-
id: string;
|
|
490
|
-
}[];
|
|
469
|
+
export declare const LICENSE_TYPE_OPTIONS: SelectOption[];
|
|
491
470
|
|
|
492
471
|
export declare function ListBox<T extends object>({ className, ...props }: ListBoxProps<T>): JSX.Element;
|
|
493
472
|
|
|
@@ -526,6 +505,7 @@ export declare function MenuPopover({ className, ...props }: PopoverProps): JSX.
|
|
|
526
505
|
|
|
527
506
|
declare interface MenuProps<T> extends MenuProps_2<T>, VariantProps<typeof buttonVariants>, Omit<MenuTriggerProps, "children"> {
|
|
528
507
|
label?: React_2.ReactNode;
|
|
508
|
+
isDisabled?: boolean;
|
|
529
509
|
}
|
|
530
510
|
|
|
531
511
|
export declare function MenuSeparator({ className, ...props }: SeparatorProps): JSX.Element;
|
|
@@ -534,9 +514,16 @@ export declare const MenuSubTrigger: (props: SubmenuTriggerProps & React_2.RefAt
|
|
|
534
514
|
|
|
535
515
|
export declare const MenuTrigger: typeof MenuTrigger_2;
|
|
536
516
|
|
|
537
|
-
|
|
517
|
+
declare interface MultipleSelectionProps {
|
|
518
|
+
value: Set<string | number>;
|
|
519
|
+
onChange: (v: Set<string | number>) => void;
|
|
520
|
+
buttonLabel?: default_2.ReactNode;
|
|
521
|
+
items: SelectOption[];
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export declare function MultiSelect({ items, value, onChange: setValue, label, errorMessage, description, ...props }: MultiSelectProps): JSX.Element;
|
|
538
525
|
|
|
539
|
-
export declare interface MultiSelectProps extends
|
|
526
|
+
export declare interface MultiSelectProps extends MultipleSelectionProps, FormFieldProps, Omit<default_2.ComponentProps<typeof EasyMenu>, 'label' | 'items'> {
|
|
540
527
|
}
|
|
541
528
|
|
|
542
529
|
declare type NestedKeyOf<T> = T extends object ? {
|
|
@@ -557,6 +544,11 @@ export declare function PopoverDialog({ className, ...props }: DialogProps): JSX
|
|
|
557
544
|
|
|
558
545
|
export declare const PopoverTrigger: typeof DialogTrigger_2;
|
|
559
546
|
|
|
547
|
+
export declare function ProjectProvider({ projectName, children }: {
|
|
548
|
+
projectName: CtxPortals;
|
|
549
|
+
children: React.ReactNode;
|
|
550
|
+
}): JSX.Element;
|
|
551
|
+
|
|
560
552
|
export declare function RangeCalendar<T extends DateValue>({ errorMessage, className, ...props }: RangeCalendarProps<T>): JSX.Element;
|
|
561
553
|
|
|
562
554
|
declare interface RangeCalendarProps<T extends DateValue> extends RangeCalendarProps_2<T> {
|
|
@@ -594,19 +586,14 @@ export declare const SelectCollection: Collection;
|
|
|
594
586
|
|
|
595
587
|
export declare const SelectHeader: typeof ListBoxHeader;
|
|
596
588
|
|
|
597
|
-
export declare interface SelectionProps<V extends number | string | Set<string | number>> {
|
|
598
|
-
value: V;
|
|
599
|
-
setValue: (v: V) => void;
|
|
600
|
-
buttonLabel?: default_2.ReactNode;
|
|
601
|
-
options: {
|
|
602
|
-
value: string;
|
|
603
|
-
label: default_2.ReactElement;
|
|
604
|
-
disabled?: boolean;
|
|
605
|
-
}[];
|
|
606
|
-
}
|
|
607
|
-
|
|
608
589
|
export declare const SelectItem: typeof ListBoxItem;
|
|
609
590
|
|
|
591
|
+
export declare type SelectOption = {
|
|
592
|
+
id: string;
|
|
593
|
+
label: React.ReactNode;
|
|
594
|
+
disabled?: boolean;
|
|
595
|
+
};
|
|
596
|
+
|
|
610
597
|
export declare function SelectPopover({ className, ...props }: PopoverProps): JSX.Element;
|
|
611
598
|
|
|
612
599
|
export declare type SelectState = Set<number | string>;
|
|
@@ -693,9 +680,9 @@ export declare const SidebarRail: React_2.ForwardRefExoticComponent<Omit<React_2
|
|
|
693
680
|
|
|
694
681
|
export declare function SidebarTrigger({ className, onClick, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
|
|
695
682
|
|
|
696
|
-
export declare function SingleSelect<T extends
|
|
683
|
+
export declare function SingleSelect<T extends SelectOption>({ label, description, errorMessage, children, className, items, ...props }: SingleSelectProps<T>): JSX.Element;
|
|
697
684
|
|
|
698
|
-
export declare interface SingleSelectProps<T extends
|
|
685
|
+
export declare interface SingleSelectProps<T extends SelectOption> extends Omit<SelectProps<T>, "children">, FormFieldProps {
|
|
699
686
|
items: Iterable<T>;
|
|
700
687
|
children: React.ReactNode | ((item: T) => React.ReactNode);
|
|
701
688
|
}
|
|
@@ -754,29 +741,30 @@ export declare function TfCheckbox({ ...props }: TfCheckboxProps): JSX.Element;
|
|
|
754
741
|
|
|
755
742
|
export declare type TfCheckboxProps = Omit<React.ComponentProps<typeof Checkbox>, "onChange" | "onBlur" | "isChecked">;
|
|
756
743
|
|
|
757
|
-
export declare function
|
|
744
|
+
export declare function TfDatePicker({ ...props }: Omit<DatePickerProps<ZonedDateTime>, 'value' | 'onChange' | 'onBlur' | 'isInvalid' | 'errorMessage'>): JSX.Element;
|
|
758
745
|
|
|
759
746
|
export declare function TfIdSearchInput<T extends {
|
|
760
747
|
id: string;
|
|
761
748
|
name: string;
|
|
762
749
|
}>({ disabled, ...props }: Omit<SearchInputProps<T>, 'value' | 'onChange'>): JSX.Element;
|
|
763
750
|
|
|
764
|
-
export declare function TfLicenseTypeSelect({ ...props }: Omit<React.ComponentProps<typeof TfSingleSelect>, 'items' | 'children'>): JSX.Element;
|
|
765
|
-
|
|
766
751
|
export declare function TfMultiSelect({ ...props }: TfMultiSelectProps): JSX.Element;
|
|
767
752
|
|
|
768
|
-
export declare interface TfMultiSelectProps extends Omit<MultiSelectProps, "value" | "
|
|
753
|
+
export declare interface TfMultiSelectProps extends Omit<MultiSelectProps, "value" | "onChange"> {
|
|
769
754
|
}
|
|
770
755
|
|
|
771
756
|
declare function TfNumberField({ isDisabled, ...props }: Omit<default_2.ComponentProps<typeof NumberField>, 'value' | 'id' | 'onChange' | 'onBlur'>): JSX.Element;
|
|
772
757
|
|
|
773
|
-
export declare function TfSingleSelect<T extends
|
|
758
|
+
export declare function TfSingleSelect<T extends SelectOption>({ ...props }: TfSingleSelectProps<T>): JSX.Element;
|
|
774
759
|
|
|
775
|
-
declare type TfSingleSelectProps<T extends
|
|
760
|
+
declare type TfSingleSelectProps<T extends SelectOption> = Omit<SingleSelectProps<T>, "value" | "setValue" | 'children'>;
|
|
776
761
|
|
|
777
762
|
export declare function TfTextField({ isDisabled, ...props }: React.ComponentProps<typeof TextField>): JSX.Element;
|
|
778
763
|
|
|
779
|
-
export declare function TimeField<T extends TimeValue>({ label, description, errorMessage, className, ...props }:
|
|
764
|
+
export declare function TimeField<T extends TimeValue>({ label, description, errorMessage, className, ...props }: TimeFieldProps<T>): JSX.Element;
|
|
765
|
+
|
|
766
|
+
declare interface TimeFieldProps<T extends TimeValue> extends TimeFieldProps_2<T>, FormFieldProps {
|
|
767
|
+
}
|
|
780
768
|
|
|
781
769
|
export declare function Timeline({ className, ...props }: React.ComponentProps<'ol'>): JSX.Element;
|
|
782
770
|
|
|
@@ -814,11 +802,9 @@ export declare const useAppForm: <TFormData, TOnMount extends FormValidateOrFn<T
|
|
|
814
802
|
AppField: FieldComponent<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, NoInfer<{
|
|
815
803
|
readonly TfTextField: typeof TfTextField;
|
|
816
804
|
readonly TfNumberField: typeof TfNumberField;
|
|
817
|
-
readonly TfCountrySelect: typeof TfCountrySelect;
|
|
818
|
-
readonly TfLicenseTypeSelect: typeof TfLicenseTypeSelect;
|
|
819
805
|
readonly TfMultiSelect: typeof TfMultiSelect;
|
|
820
|
-
readonly TfCheckbox: typeof TfCheckbox;
|
|
821
806
|
readonly TfSingleSelect: typeof TfSingleSelect;
|
|
807
|
+
readonly TfCheckbox: typeof TfCheckbox;
|
|
822
808
|
}>>;
|
|
823
809
|
AppForm: ComponentType<PropsWithChildren>;
|
|
824
810
|
};
|
|
@@ -862,6 +848,10 @@ export declare const useFieldContext: <TData>() => FieldApi<any, string, TData,
|
|
|
862
848
|
|
|
863
849
|
export declare function useIsMobile(): boolean;
|
|
864
850
|
|
|
851
|
+
export declare function useProjectName(): CtxPortals;
|
|
852
|
+
|
|
853
|
+
export declare function useResourceFormatter(): (resourceName: string) => string;
|
|
854
|
+
|
|
865
855
|
export declare function useSidebar(): SidebarContextProps;
|
|
866
856
|
|
|
867
857
|
export declare type VisibilityState<T> = {
|