@telepix-lab/telepix-ui 0.4.4 → 0.4.7

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.
@@ -12347,8 +12347,8 @@ const DialogTrigger = (props) => {
12347
12347
  };
12348
12348
  const DialogPortal = Portal$3;
12349
12349
  const DialogClose = Close;
12350
- const DialogContent = ({ className, children, ...rest }) => {
12351
- return (jsxRuntime.jsxs(Portal$3, { children: [jsxRuntime.jsx(Overlay, { className: "fixed top-0 bottom-0 left-0 right-0 bg-pure-black-50 inset-0 z-[1000] animate-fade-in" }), jsxRuntime.jsxs(Content$1, { className: cn("fixed top-1/2 left-1/2 z-[1001] transform -translate-x-1/2 -translate-y-1/2 animate-content-fade-in", className), ...rest, children: [jsxRuntime.jsx(Title, { "data-slot": "dialog-title", ...rest, children: jsxRuntime.jsx(Root$4, {}) }), jsxRuntime.jsx(Description, {}), jsxRuntime.jsx(Card, { children: children })] })] }));
12350
+ const DialogContent = ({ className, overlayClassName, children, ...rest }) => {
12351
+ return (jsxRuntime.jsxs(Portal$3, { children: [jsxRuntime.jsx(Overlay, { className: cn("fixed top-0 bottom-0 left-0 right-0 bg-pure-black-50 inset-0 z-[1000] animate-fade-in", overlayClassName) }), jsxRuntime.jsxs(Content$1, { className: cn("fixed top-1/2 left-1/2 z-[1001] transform -translate-x-1/2 -translate-y-1/2 animate-content-fade-in", className), ...rest, children: [jsxRuntime.jsx(Title, { "data-slot": "dialog-title", ...rest, children: jsxRuntime.jsx(Root$4, {}) }), jsxRuntime.jsx(Description, {}), jsxRuntime.jsx(Card, { children: children })] })] }));
12352
12352
  };
12353
12353
  const DialogDescription = (props) => {
12354
12354
  return jsxRuntime.jsx(CardBody, { ...props, children: props.children });
@@ -12402,9 +12402,9 @@ const SelectTrigger = ({ placeholder, variant = "outline", size = "regular", ico
12402
12402
  "py-1.5 px-2 text-body font-medium leading-body-compact gap-2", size === SELECT_TRIGGER_SIZES.LARGE &&
12403
12403
  "py-3 px-4 text-base leading-base-compact font-medium gap-3", className), ...otherProps, children: [icon && jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: icon }), jsxRuntime.jsx(Value, { placeholder: placeholder }), jsxRuntime.jsx(Icon$1, { className: "flex items-center justify-center", children: jsxRuntime.jsx(CaretDownIcon, {}) })] }));
12404
12404
  };
12405
- const SelectContent = ({ children, viewportClassName, ...rest }) => {
12405
+ const SelectContent = ({ children, viewportClassName, viewportWrapperClassName, ...rest }) => {
12406
12406
  const { className, position, sideOffset, ...otherProps } = rest;
12407
- return (jsxRuntime.jsx(Portal$1, { children: jsxRuntime.jsx(Content2$1, { position: "popper", sideOffset: 7, className: cn("p-2 min-w-[var(--radix-select-trigger-width)] border border-border-overlay rounded-lg bg-page-l1 shadow-medium", className), asChild: true, ...otherProps, children: jsxRuntime.jsx("div", { className: "z-10", children: jsxRuntime.jsx(Viewport, { className: cn("flex flex-col gap-1", viewportClassName), children: children }) }) }) }));
12407
+ return (jsxRuntime.jsx(Portal$1, { children: jsxRuntime.jsx(Content2$1, { position: "popper", sideOffset: 7, className: cn("p-2 min-w-[var(--radix-select-trigger-width)] border border-border-overlay rounded-lg bg-page-l1 shadow-medium", className), asChild: true, ...otherProps, children: jsxRuntime.jsx("div", { className: cn("z-10", viewportWrapperClassName), children: jsxRuntime.jsx(Viewport, { className: cn("flex flex-col gap-1", viewportClassName), children: children }) }) }) }));
12408
12408
  };
12409
12409
  const SelectGroup = Group;
12410
12410
  const SelectLabel = (props) => {
@@ -12804,7 +12804,7 @@ const DataTable = ({ config, data, emptyMessage, onRowClick, enableSelection = f
12804
12804
  delete itemWithoutRandomId.randomId;
12805
12805
  onRowClick?.(itemWithoutRandomId);
12806
12806
  };
12807
- return (jsxRuntime.jsxs(Table, { className: classNames?.table, ref: refs?.tableRef, children: [jsxRuntime.jsx(TableHeader, { className: classNames?.header, ref: refs?.headerRef, children: config.map((col) => (jsxRuntime.jsx(TableHead, { style: { minWidth: col.minWidth, maxWidth: col.maxWidth }, className: classNames?.head, ref: refs?.headRef, children: col.header }, col.header))) }), jsxRuntime.jsx(TableBody, { className: classNames?.body, ref: refs?.bodyRef, children: rowData.length > 0 ? (rowData.map((item, index) => (jsxRuntime.jsx(TableRow, { id: item.randomId, onClick: () => handleRowClick(item, item.randomId), isSelected: selectedRow === item.randomId, shouldLastBorderRender: shouldLastBorderRender, className: classNames?.row, ref: refs?.rowRef, children: config.map((col, colIndex) => (jsxRuntime.jsx(TableCell, { className: classNames?.cell, ref: refs?.cellRef, showTooltip: col.showTooltip, children: col.renderFn(item) || "-" }, colIndex))) }, index)))) : emptyMessage ? (jsxRuntime.jsx(TableRow, { ref: refs?.rowRef, className: classNames?.row, children: jsxRuntime.jsx(TableCell, { colSpan: config.length, className: classNames?.cell, ref: refs?.cellRef, children: emptyMessage }) })) : null })] }));
12807
+ return (jsxRuntime.jsxs(Table, { className: classNames?.table, ref: refs?.tableRef, children: [jsxRuntime.jsx(TableHeader, { className: classNames?.header, ref: refs?.headerRef, children: config.map((col) => (jsxRuntime.jsx(TableHead, { style: { minWidth: col.minWidth, maxWidth: col.maxWidth }, className: classNames?.head, ref: refs?.headRef, children: col.header }, col.header))) }), jsxRuntime.jsx(TableBody, { className: classNames?.body, ref: refs?.bodyRef, children: rowData.length > 0 ? (rowData.map((item, index) => (jsxRuntime.jsx(TableRow, { id: item.randomId, onClick: () => handleRowClick(item, item.randomId), isSelected: selectedRow === item.randomId, shouldLastBorderRender: shouldLastBorderRender, className: classNames?.row, ref: refs?.rowRef, children: config.map((col, colIndex) => (jsxRuntime.jsx(TableCell, { className: classNames?.cell, ref: refs?.cellRef, showTooltip: col.showTooltip, style: { minWidth: col.minWidth, maxWidth: col.maxWidth }, children: col.renderFn(item) || "-" }, colIndex))) }, index)))) : emptyMessage ? (jsxRuntime.jsx(TableRow, { ref: refs?.rowRef, className: classNames?.row, children: jsxRuntime.jsx(TableCell, { colSpan: config.length, className: classNames?.cell, ref: refs?.cellRef, children: emptyMessage }) })) : null })] }));
12808
12808
  };
12809
12809
 
12810
12810
  const InteractiveListItemContext = React.createContext({
@@ -29,7 +29,12 @@ export declare const Dialog: React.FC<DialogRadix.DialogProps>;
29
29
  export declare const DialogTrigger: (props: React.ComponentProps<typeof DialogRadix.Trigger>) => import("react/jsx-runtime").JSX.Element;
30
30
  export declare const DialogPortal: React.FC<DialogRadix.DialogPortalProps>;
31
31
  export declare const DialogClose: React.FC<DialogRadix.DialogCloseProps>;
32
- export declare const DialogContent: ({ className, children, ...rest }: React.ComponentProps<typeof DialogRadix.Content>) => import("react/jsx-runtime").JSX.Element;
32
+ export interface DialogContentProps extends React.ComponentProps<typeof DialogRadix.Content> {
33
+ overlayClassName?: string;
34
+ className?: string;
35
+ children: React.ReactNode;
36
+ }
37
+ export declare const DialogContent: ({ className, overlayClassName, children, ...rest }: DialogContentProps) => import("react/jsx-runtime").JSX.Element;
33
38
  export declare const DialogDescription: (props: React.ComponentProps<typeof CardBody>) => import("react/jsx-runtime").JSX.Element;
34
39
  export declare const DialogHeader: ({ className, ...rest }: React.ComponentProps<typeof CardHeader>) => import("react/jsx-runtime").JSX.Element;
35
40
  export declare const DialogFooter: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -37,9 +37,10 @@ export declare const SelectTrigger: {
37
37
  interface SelectContent extends React.ComponentProps<typeof SelectRadix.Content> {
38
38
  children: React.ReactNode;
39
39
  viewportClassName?: string;
40
+ viewportWrapperClassName?: string;
40
41
  }
41
42
  export declare const SelectContent: {
42
- ({ children, viewportClassName, ...rest }: SelectContent): import("react/jsx-runtime").JSX.Element;
43
+ ({ children, viewportClassName, viewportWrapperClassName, ...rest }: SelectContent): import("react/jsx-runtime").JSX.Element;
43
44
  displayName: string;
44
45
  };
45
46
  export declare const SelectGroup: React.ForwardRefExoticComponent<SelectRadix.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
package/dist/client.d.ts CHANGED
@@ -95,7 +95,12 @@ declare const Dialog: React$1.FC<Dialog$1.DialogProps>;
95
95
  declare const DialogTrigger: (props: React$1.ComponentProps<typeof Dialog$1.Trigger>) => react_jsx_runtime.JSX.Element;
96
96
  declare const DialogPortal: React$1.FC<Dialog$1.DialogPortalProps>;
97
97
  declare const DialogClose: React$1.FC<Dialog$1.DialogCloseProps>;
98
- declare const DialogContent: ({ className, children, ...rest }: React$1.ComponentProps<typeof Dialog$1.Content>) => react_jsx_runtime.JSX.Element;
98
+ interface DialogContentProps extends React$1.ComponentProps<typeof Dialog$1.Content> {
99
+ overlayClassName?: string;
100
+ className?: string;
101
+ children: React$1.ReactNode;
102
+ }
103
+ declare const DialogContent: ({ className, overlayClassName, children, ...rest }: DialogContentProps) => react_jsx_runtime.JSX.Element;
99
104
  declare const DialogDescription: (props: React$1.ComponentProps<typeof CardBody>) => react_jsx_runtime.JSX.Element;
100
105
  declare const DialogHeader: ({ className, ...rest }: React$1.ComponentProps<typeof CardHeader>) => react_jsx_runtime.JSX.Element;
101
106
  declare const DialogFooter: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
@@ -148,9 +153,10 @@ declare const SelectTrigger: {
148
153
  interface SelectContent extends React__default.ComponentProps<typeof Select$1.Content> {
149
154
  children: React__default.ReactNode;
150
155
  viewportClassName?: string;
156
+ viewportWrapperClassName?: string;
151
157
  }
152
158
  declare const SelectContent: {
153
- ({ children, viewportClassName, ...rest }: SelectContent): react_jsx_runtime.JSX.Element;
159
+ ({ children, viewportClassName, viewportWrapperClassName, ...rest }: SelectContent): react_jsx_runtime.JSX.Element;
154
160
  displayName: string;
155
161
  };
156
162
  declare const SelectGroup: any;
@@ -12327,8 +12327,8 @@ const DialogTrigger = (props) => {
12327
12327
  };
12328
12328
  const DialogPortal = Portal$3;
12329
12329
  const DialogClose = Close;
12330
- const DialogContent = ({ className, children, ...rest }) => {
12331
- return (jsxs(Portal$3, { children: [jsx(Overlay, { className: "fixed top-0 bottom-0 left-0 right-0 bg-pure-black-50 inset-0 z-[1000] animate-fade-in" }), jsxs(Content$1, { className: cn("fixed top-1/2 left-1/2 z-[1001] transform -translate-x-1/2 -translate-y-1/2 animate-content-fade-in", className), ...rest, children: [jsx(Title, { "data-slot": "dialog-title", ...rest, children: jsx(Root$4, {}) }), jsx(Description, {}), jsx(Card, { children: children })] })] }));
12330
+ const DialogContent = ({ className, overlayClassName, children, ...rest }) => {
12331
+ return (jsxs(Portal$3, { children: [jsx(Overlay, { className: cn("fixed top-0 bottom-0 left-0 right-0 bg-pure-black-50 inset-0 z-[1000] animate-fade-in", overlayClassName) }), jsxs(Content$1, { className: cn("fixed top-1/2 left-1/2 z-[1001] transform -translate-x-1/2 -translate-y-1/2 animate-content-fade-in", className), ...rest, children: [jsx(Title, { "data-slot": "dialog-title", ...rest, children: jsx(Root$4, {}) }), jsx(Description, {}), jsx(Card, { children: children })] })] }));
12332
12332
  };
12333
12333
  const DialogDescription = (props) => {
12334
12334
  return jsx(CardBody, { ...props, children: props.children });
@@ -12382,9 +12382,9 @@ const SelectTrigger = ({ placeholder, variant = "outline", size = "regular", ico
12382
12382
  "py-1.5 px-2 text-body font-medium leading-body-compact gap-2", size === SELECT_TRIGGER_SIZES.LARGE &&
12383
12383
  "py-3 px-4 text-base leading-base-compact font-medium gap-3", className), ...otherProps, children: [icon && jsx("div", { className: "flex items-center justify-center", children: icon }), jsx(Value, { placeholder: placeholder }), jsx(Icon$1, { className: "flex items-center justify-center", children: jsx(CaretDownIcon, {}) })] }));
12384
12384
  };
12385
- const SelectContent = ({ children, viewportClassName, ...rest }) => {
12385
+ const SelectContent = ({ children, viewportClassName, viewportWrapperClassName, ...rest }) => {
12386
12386
  const { className, position, sideOffset, ...otherProps } = rest;
12387
- return (jsx(Portal$1, { children: jsx(Content2$1, { position: "popper", sideOffset: 7, className: cn("p-2 min-w-[var(--radix-select-trigger-width)] border border-border-overlay rounded-lg bg-page-l1 shadow-medium", className), asChild: true, ...otherProps, children: jsx("div", { className: "z-10", children: jsx(Viewport, { className: cn("flex flex-col gap-1", viewportClassName), children: children }) }) }) }));
12387
+ return (jsx(Portal$1, { children: jsx(Content2$1, { position: "popper", sideOffset: 7, className: cn("p-2 min-w-[var(--radix-select-trigger-width)] border border-border-overlay rounded-lg bg-page-l1 shadow-medium", className), asChild: true, ...otherProps, children: jsx("div", { className: cn("z-10", viewportWrapperClassName), children: jsx(Viewport, { className: cn("flex flex-col gap-1", viewportClassName), children: children }) }) }) }));
12388
12388
  };
12389
12389
  const SelectGroup = Group;
12390
12390
  const SelectLabel = (props) => {
@@ -12784,7 +12784,7 @@ const DataTable = ({ config, data, emptyMessage, onRowClick, enableSelection = f
12784
12784
  delete itemWithoutRandomId.randomId;
12785
12785
  onRowClick?.(itemWithoutRandomId);
12786
12786
  };
12787
- return (jsxs(Table, { className: classNames?.table, ref: refs?.tableRef, children: [jsx(TableHeader, { className: classNames?.header, ref: refs?.headerRef, children: config.map((col) => (jsx(TableHead, { style: { minWidth: col.minWidth, maxWidth: col.maxWidth }, className: classNames?.head, ref: refs?.headRef, children: col.header }, col.header))) }), jsx(TableBody, { className: classNames?.body, ref: refs?.bodyRef, children: rowData.length > 0 ? (rowData.map((item, index) => (jsx(TableRow, { id: item.randomId, onClick: () => handleRowClick(item, item.randomId), isSelected: selectedRow === item.randomId, shouldLastBorderRender: shouldLastBorderRender, className: classNames?.row, ref: refs?.rowRef, children: config.map((col, colIndex) => (jsx(TableCell, { className: classNames?.cell, ref: refs?.cellRef, showTooltip: col.showTooltip, children: col.renderFn(item) || "-" }, colIndex))) }, index)))) : emptyMessage ? (jsx(TableRow, { ref: refs?.rowRef, className: classNames?.row, children: jsx(TableCell, { colSpan: config.length, className: classNames?.cell, ref: refs?.cellRef, children: emptyMessage }) })) : null })] }));
12787
+ return (jsxs(Table, { className: classNames?.table, ref: refs?.tableRef, children: [jsx(TableHeader, { className: classNames?.header, ref: refs?.headerRef, children: config.map((col) => (jsx(TableHead, { style: { minWidth: col.minWidth, maxWidth: col.maxWidth }, className: classNames?.head, ref: refs?.headRef, children: col.header }, col.header))) }), jsx(TableBody, { className: classNames?.body, ref: refs?.bodyRef, children: rowData.length > 0 ? (rowData.map((item, index) => (jsx(TableRow, { id: item.randomId, onClick: () => handleRowClick(item, item.randomId), isSelected: selectedRow === item.randomId, shouldLastBorderRender: shouldLastBorderRender, className: classNames?.row, ref: refs?.rowRef, children: config.map((col, colIndex) => (jsx(TableCell, { className: classNames?.cell, ref: refs?.cellRef, showTooltip: col.showTooltip, style: { minWidth: col.minWidth, maxWidth: col.maxWidth }, children: col.renderFn(item) || "-" }, colIndex))) }, index)))) : emptyMessage ? (jsx(TableRow, { ref: refs?.rowRef, className: classNames?.row, children: jsx(TableCell, { colSpan: config.length, className: classNames?.cell, ref: refs?.cellRef, children: emptyMessage }) })) : null })] }));
12788
12788
  };
12789
12789
 
12790
12790
  const InteractiveListItemContext = createContext({
@@ -29,7 +29,12 @@ export declare const Dialog: React.FC<DialogRadix.DialogProps>;
29
29
  export declare const DialogTrigger: (props: React.ComponentProps<typeof DialogRadix.Trigger>) => import("react/jsx-runtime").JSX.Element;
30
30
  export declare const DialogPortal: React.FC<DialogRadix.DialogPortalProps>;
31
31
  export declare const DialogClose: React.FC<DialogRadix.DialogCloseProps>;
32
- export declare const DialogContent: ({ className, children, ...rest }: React.ComponentProps<typeof DialogRadix.Content>) => import("react/jsx-runtime").JSX.Element;
32
+ export interface DialogContentProps extends React.ComponentProps<typeof DialogRadix.Content> {
33
+ overlayClassName?: string;
34
+ className?: string;
35
+ children: React.ReactNode;
36
+ }
37
+ export declare const DialogContent: ({ className, overlayClassName, children, ...rest }: DialogContentProps) => import("react/jsx-runtime").JSX.Element;
33
38
  export declare const DialogDescription: (props: React.ComponentProps<typeof CardBody>) => import("react/jsx-runtime").JSX.Element;
34
39
  export declare const DialogHeader: ({ className, ...rest }: React.ComponentProps<typeof CardHeader>) => import("react/jsx-runtime").JSX.Element;
35
40
  export declare const DialogFooter: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -37,9 +37,10 @@ export declare const SelectTrigger: {
37
37
  interface SelectContent extends React.ComponentProps<typeof SelectRadix.Content> {
38
38
  children: React.ReactNode;
39
39
  viewportClassName?: string;
40
+ viewportWrapperClassName?: string;
40
41
  }
41
42
  export declare const SelectContent: {
42
- ({ children, viewportClassName, ...rest }: SelectContent): import("react/jsx-runtime").JSX.Element;
43
+ ({ children, viewportClassName, viewportWrapperClassName, ...rest }: SelectContent): import("react/jsx-runtime").JSX.Element;
43
44
  displayName: string;
44
45
  };
45
46
  export declare const SelectGroup: React.ForwardRefExoticComponent<SelectRadix.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telepix-lab/telepix-ui",
3
- "version": "0.4.4",
3
+ "version": "0.4.7",
4
4
  "description": "A UI kit for TelePIX",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {