@raystack/apsara 0.10.9 → 0.10.10
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/image/image.d.ts +1 -1
- package/dist/image/image.d.ts.map +1 -1
- package/dist/index.cjs +19 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +33 -33
- package/dist/index.js +19 -19
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
- package/dist/themprovider/OSPreference.d.ts +0 -4
- package/dist/themprovider/OSPreference.d.ts.map +0 -1
- package/dist/themprovider/storage.d.ts +0 -5
- package/dist/themprovider/storage.d.ts.map +0 -1
- package/dist/themprovider/themeprovider.d.ts +0 -19
- package/dist/themprovider/themeprovider.d.ts.map +0 -1
package/dist/image/image.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import { ImgHTMLAttributes, PropsWithChildren } from "react";
|
|
3
3
|
declare const image: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
4
4
|
declare type ImageProps = PropsWithChildren<VariantProps<typeof image>> & ImgHTMLAttributes<HTMLImageElement>;
|
|
5
|
-
export declare function Image({ children, className, ...props }: ImageProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function Image({ alt, children, className, ...props }: ImageProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
7
7
|
//# sourceMappingURL=image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../image/image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG7D,QAAA,MAAM,KAAK,yFAAoB,CAAC;AAEhC,aAAK,UAAU,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC,GAC7D,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AAEtC,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../image/image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG7D,QAAA,MAAM,KAAK,yFAAoB,CAAC;AAEhC,aAAK,UAAU,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC,GAC7D,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AAEtC,wBAAgB,KAAK,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAEvE"}
|
package/dist/index.cjs
CHANGED
|
@@ -9301,8 +9301,8 @@ function Grid({ children, align, justify, flow, columns, gap, gapX, gapY, classN
|
|
|
9301
9301
|
var styles$f = {"image":"image-module_image__KDN-Q"};
|
|
9302
9302
|
|
|
9303
9303
|
const image = cva(styles$f.image);
|
|
9304
|
-
function Image({ children, className, ...props }) {
|
|
9305
|
-
return jsxRuntimeExports.jsx("img", { className: image({ className }), ...props });
|
|
9304
|
+
function Image({ alt, children, className, ...props }) {
|
|
9305
|
+
return jsxRuntimeExports.jsx("img", { alt: alt, className: image({ className }), ...props });
|
|
9306
9306
|
}
|
|
9307
9307
|
|
|
9308
9308
|
const InputField = ({ label, children, ...props }) => {
|
|
@@ -15310,8 +15310,6 @@ function DataTableClearFilter({ children, ...props }) {
|
|
|
15310
15310
|
}, style: { width: "100%" }, ...props, children: children || (jsxRuntimeExports.jsxs(Flex, { gap: "small", align: "center", justify: "center", children: ["Clear filters ", jsxRuntimeExports.jsx(Cross2Icon, { width: 12, height: "12" })] })) }));
|
|
15311
15311
|
}
|
|
15312
15312
|
|
|
15313
|
-
var styles$4 = {"wrapper":"datatable-module_wrapper__Sxg2d","datatable":"datatable-module_datatable__z-Th2","head":"datatable-module_head__zCfCW","toolbar":"datatable-module_toolbar__lO-aI","chipWrapper":"datatable-module_chipWrapper__iz69x","chip":"datatable-module_chip__IiwTD"};
|
|
15314
|
-
|
|
15315
15313
|
function DataTableFilterOptions({ children, ...props }) {
|
|
15316
15314
|
const { table, filteredColumns, addFilterColumn } = useTable();
|
|
15317
15315
|
const availableColumns = table
|
|
@@ -15323,20 +15321,20 @@ function DataTableFilterOptions({ children, ...props }) {
|
|
|
15323
15321
|
})] })) : null] }));
|
|
15324
15322
|
}
|
|
15325
15323
|
|
|
15326
|
-
var styles$
|
|
15324
|
+
var styles$4 = {"textfield":"textfield-module_textfield__u4AGg","textfield-sm":"textfield-module_textfield-sm__OKPic","textfield-md":"textfield-module_textfield-md__e2ayW","textfield-invlid":"textfield-module_textfield-invlid__zo9MF","textfield-valid":"textfield-module_textfield-valid__6rMM9","textfield-leading":"textfield-module_textfield-leading__AE-ld"};
|
|
15327
15325
|
|
|
15328
|
-
const textfield = cva(styles$
|
|
15326
|
+
const textfield = cva(styles$4.textfield, {
|
|
15329
15327
|
variants: {
|
|
15330
15328
|
size: {
|
|
15331
|
-
small: styles$
|
|
15332
|
-
medium: styles$
|
|
15329
|
+
small: styles$4["textfield-sm"],
|
|
15330
|
+
medium: styles$4["textfield-md"],
|
|
15333
15331
|
},
|
|
15334
15332
|
state: {
|
|
15335
|
-
invalid: styles$
|
|
15336
|
-
valid: styles$
|
|
15333
|
+
invalid: styles$4["textfield-invalid"],
|
|
15334
|
+
valid: styles$4["textfield-valid"],
|
|
15337
15335
|
},
|
|
15338
15336
|
leading: {
|
|
15339
|
-
true: styles$
|
|
15337
|
+
true: styles$4["textfield-leading"],
|
|
15340
15338
|
},
|
|
15341
15339
|
},
|
|
15342
15340
|
defaultVariants: {
|
|
@@ -15348,6 +15346,8 @@ const TextField = ({ leading, className, src, size, state, style, ...props }) =>
|
|
|
15348
15346
|
};
|
|
15349
15347
|
TextField.displayName = "TextField";
|
|
15350
15348
|
|
|
15349
|
+
var styles$3 = {"wrapper":"datatable-module_wrapper__Sxg2d","datatable":"datatable-module_datatable__z-Th2","head":"datatable-module_head__zCfCW","toolbar":"datatable-module_toolbar__lO-aI","chipWrapper":"datatable-module_chipWrapper__iz69x","chip":"datatable-module_chip__IiwTD"};
|
|
15350
|
+
|
|
15351
15351
|
const FilteredChip = ({ column }) => {
|
|
15352
15352
|
const { table, removeFilterColumn } = useTable();
|
|
15353
15353
|
const { filterVariant } = column?.columnDef;
|
|
@@ -15381,7 +15381,7 @@ const FilteredChip = ({ column }) => {
|
|
|
15381
15381
|
}
|
|
15382
15382
|
}
|
|
15383
15383
|
};
|
|
15384
|
-
return (jsxRuntimeExports.jsxs(Box, { className: styles$
|
|
15384
|
+
return (jsxRuntimeExports.jsxs(Box, { className: styles$3.chip, children: [jsxRuntimeExports.jsx(Text, { children: column.id }), jsxRuntimeExports.jsx(Text, { children: "is" }), renderInputs(), jsxRuntimeExports.jsx(Flex, { children: jsxRuntimeExports.jsx(Cross1Icon, { height: "12", width: "12", onClick: () => {
|
|
15385
15385
|
column.setFilterValue(undefined);
|
|
15386
15386
|
removeFilterColumn(column.id);
|
|
15387
15387
|
} }) })] }));
|
|
@@ -15394,14 +15394,14 @@ function DataTableFilterChips(props) {
|
|
|
15394
15394
|
.filter((column) => typeof column.accessorFn !== "undefined" && column.getCanHide());
|
|
15395
15395
|
if (!filteredColumns.length)
|
|
15396
15396
|
return null;
|
|
15397
|
-
return (jsxRuntimeExports.jsxs(Flex, { gap: "small", align: "center", className: styles$
|
|
15397
|
+
return (jsxRuntimeExports.jsxs(Flex, { gap: "small", align: "center", className: styles$3.chipWrapper, ...props, children: [filteredColumns.map((filter, index) => {
|
|
15398
15398
|
const filteredColumn = table.getColumn(filter);
|
|
15399
|
-
return jsxRuntimeExports.jsx(FilteredChip, { column: filteredColumn });
|
|
15399
|
+
return jsxRuntimeExports.jsx(FilteredChip, { column: filteredColumn }, index);
|
|
15400
15400
|
}), filteredColumns.length < tableColumns.length && (jsxRuntimeExports.jsx(DataTableFilterOptions, { variant: "ghost", style: { border: "none", background: "none" }, children: jsxRuntimeExports.jsx(PlusIcon, { width: 16, height: 16 }) }))] }));
|
|
15401
15401
|
}
|
|
15402
15402
|
|
|
15403
15403
|
function DataTableFooter({ children, }) {
|
|
15404
|
-
return (jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$
|
|
15404
|
+
return (jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$3.toolbar, children: children }));
|
|
15405
15405
|
}
|
|
15406
15406
|
|
|
15407
15407
|
function DataTableGloabalSearch(props) {
|
|
@@ -15414,7 +15414,7 @@ function DataTableGloabalSearch(props) {
|
|
|
15414
15414
|
}
|
|
15415
15415
|
|
|
15416
15416
|
function DataTableToolbar({ children, ...props }) {
|
|
15417
|
-
return (jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$
|
|
15417
|
+
return (jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$3.toolbar, ...props, children: children }));
|
|
15418
15418
|
}
|
|
15419
15419
|
|
|
15420
15420
|
function DataTableViewOptions({ children, ...props }) {
|
|
@@ -15525,7 +15525,7 @@ function DataTableRoot({ columns, data, emptyState, children, parentStyle, ...pr
|
|
|
15525
15525
|
rowSelection,
|
|
15526
15526
|
},
|
|
15527
15527
|
});
|
|
15528
|
-
return (jsxRuntimeExports.jsx(Flex, { direction: "column", justify: "between", className: styles$
|
|
15528
|
+
return (jsxRuntimeExports.jsx(Flex, { direction: "column", justify: "between", className: styles$3.wrapper, children: jsxRuntimeExports.jsxs(TableContext.Provider, { value: {
|
|
15529
15529
|
table,
|
|
15530
15530
|
globalFilter,
|
|
15531
15531
|
filteredColumns,
|
|
@@ -15534,10 +15534,10 @@ function DataTableRoot({ columns, data, emptyState, children, parentStyle, ...pr
|
|
|
15534
15534
|
resetColumns,
|
|
15535
15535
|
onGlobalFilterChange: setGlobalFilter,
|
|
15536
15536
|
onChange: () => ({}),
|
|
15537
|
-
}, children: [jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$
|
|
15537
|
+
}, children: [jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$3.datatable, children: [header, jsxRuntimeExports.jsxs(Flex, { style: parentStyle, children: [jsxRuntimeExports.jsxs(Table, { ...props, children: [jsxRuntimeExports.jsx(Table.Header, { children: table.getHeaderGroups().map((headerGroup) => (jsxRuntimeExports.jsx(Table.Row, { children: headerGroup.headers.map((header) => {
|
|
15538
15538
|
return (jsxRuntimeExports.jsx(Table.Head, { style: {
|
|
15539
15539
|
...(header.column.columnDef?.meta?.style ?? {}),
|
|
15540
|
-
}, children: jsxRuntimeExports.jsxs(Text, { className: styles$
|
|
15540
|
+
}, children: jsxRuntimeExports.jsxs(Text, { className: styles$3.head, children: [header.isPlaceholder
|
|
15541
15541
|
? null
|
|
15542
15542
|
: flexRender(header.column.columnDef.header, header.getContext()), {
|
|
15543
15543
|
asc: jsxRuntimeExports.jsx(ArrowUpIcon, {}),
|