@raystack/apsara 0.10.5 → 0.10.6
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/index.cjs +221 -129
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +350 -258
- package/dist/index.js.map +1 -1
- package/dist/table/datatable.d.ts +3 -2
- package/dist/table/datatable.d.ts.map +1 -1
- package/dist/themprovider/index.d.ts +1 -1
- package/dist/themprovider/index.d.ts.map +1 -1
- package/dist/themprovider/theme.d.ts +5 -0
- package/dist/themprovider/theme.d.ts.map +1 -0
- package/dist/themprovider/types.d.ts +43 -0
- package/dist/themprovider/types.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnDef } from "@tanstack/react-table";
|
|
2
|
-
import React, { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import React, { CSSProperties, ComponentProps, ReactNode } from "react";
|
|
3
3
|
import { DataTableClearFilter } from "./DataTableClearFilter";
|
|
4
4
|
import { DataTableFilterChips } from "./DataTableFilterChips";
|
|
5
5
|
import { DataTableFilterOptions } from "./DataTableFilterOptions";
|
|
@@ -14,8 +14,9 @@ declare type DataTableProps<TData, TValue> = {
|
|
|
14
14
|
multiRowSelectionEnabled?: boolean;
|
|
15
15
|
children?: ReactNode;
|
|
16
16
|
emptyState?: ReactNode;
|
|
17
|
+
parentStyle?: CSSProperties;
|
|
17
18
|
} & ComponentProps<typeof Table>;
|
|
18
|
-
declare function DataTableRoot<TData, TValue>({ columns, data, emptyState, children, ...props }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function DataTableRoot<TData, TValue>({ columns, data, emptyState, children, parentStyle, ...props }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export declare const DataTable: typeof DataTableRoot & {
|
|
20
21
|
Toolbar: typeof DataTableToolbar;
|
|
21
22
|
GloabalSearch: typeof DataTableGloabalSearch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datatable.d.ts","sourceRoot":"","sources":["../../table/datatable.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAYV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"datatable.d.ts","sourceRoot":"","sources":["../../table/datatable.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAYV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,EACZ,aAAa,EAEb,cAAc,EAEd,SAAS,EACV,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAK9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,aAAK,cAAc,CAAC,KAAK,EAAE,MAAM,IAAI;IACnC,OAAO,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC;IACpC,IAAI,EAAE,KAAK,EAAE,CAAC;IACd,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,aAAa,CAAC;CAC7B,GAAG,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC;AAEjC,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EACpC,OAAO,EACP,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,WAAW,EACX,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,2CA2H/B;AAED,eAAO,MAAM,SAAS;;;;;;;;;CASpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../themprovider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../themprovider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../themprovider/theme.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAQjE,eAAO,MAAM,QAAQ,qBAAmD,CAAC;AAEzE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAMtD,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ValueObject {
|
|
3
|
+
[themeName: string]: string;
|
|
4
|
+
}
|
|
5
|
+
export interface UseThemeProps {
|
|
6
|
+
/** List of all available theme names */
|
|
7
|
+
themes: string[];
|
|
8
|
+
/** Forced theme name for the current page */
|
|
9
|
+
forcedTheme?: string;
|
|
10
|
+
/** Update the theme */
|
|
11
|
+
setTheme: (theme: string) => void;
|
|
12
|
+
/** Active theme name */
|
|
13
|
+
theme?: string;
|
|
14
|
+
/** If `enableSystem` is true and the active theme is "system", this returns whether the system preference resolved to "dark" or "light". Otherwise, identical to `theme` */
|
|
15
|
+
resolvedTheme?: string;
|
|
16
|
+
/** If enableSystem is true, returns the System theme preference ("dark" or "light"), regardless what the active theme is */
|
|
17
|
+
systemTheme?: "dark" | "light";
|
|
18
|
+
}
|
|
19
|
+
export interface ThemeProviderProps {
|
|
20
|
+
/** List of all available theme names */
|
|
21
|
+
themes?: string[];
|
|
22
|
+
/** Forced theme name for the current page */
|
|
23
|
+
forcedTheme?: string;
|
|
24
|
+
/** Whether to switch between dark and light themes based on prefers-color-scheme */
|
|
25
|
+
enableSystem?: boolean;
|
|
26
|
+
/** Disable all CSS transitions when switching themes */
|
|
27
|
+
disableTransitionOnChange?: boolean;
|
|
28
|
+
/** Whether to indicate to browsers which color scheme is used (dark or light) for built-in UI like inputs and buttons */
|
|
29
|
+
enableColorScheme?: boolean;
|
|
30
|
+
/** Key used to store theme setting in localStorage */
|
|
31
|
+
storageKey?: string;
|
|
32
|
+
/** Default theme name (for v0.0.12 and lower the default was light). If `enableSystem` is false, the default theme is light */
|
|
33
|
+
defaultTheme?: string;
|
|
34
|
+
/** HTML attribute modified based on the active theme. Accepts `class` and `data-*` (meaning any data attribute, `data-mode`, `data-color`, etc.) */
|
|
35
|
+
attribute?: string | "class";
|
|
36
|
+
/** Mapping of theme name to HTML attribute value. Object where key is the theme name and value is the attribute value */
|
|
37
|
+
value?: ValueObject;
|
|
38
|
+
/** Nonce string to pass to the inline script for CSP headers */
|
|
39
|
+
nonce?: string;
|
|
40
|
+
children?: React.ReactNode;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../themprovider/types.ts"],"names":[],"mappings":";AAAA,UAAU,WAAW;IACnB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,aAAa;IAC5B,wCAAwC;IACxC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4KAA4K;IAC5K,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4HAA4H;IAC5H,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oFAAoF;IACpF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wDAAwD;IACxD,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,yHAAyH;IACzH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+HAA+H;IAC/H,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oJAAoJ;IACpJ,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,yHAAyH;IACzH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
|