@raystack/apsara 0.41.0 → 0.41.2
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/avatar/avatar.d.ts +3 -3
- package/dist/avatar/avatar.d.ts.map +1 -1
- package/dist/badge/badge.d.ts +1 -1
- package/dist/body/body.d.ts +1 -1
- package/dist/body/body.d.ts.map +1 -1
- package/dist/box/box.d.ts +1 -1
- package/dist/box/box.d.ts.map +1 -1
- package/dist/button/button.d.ts +1 -1
- package/dist/checkbox/checkbox.d.ts +2 -2
- package/dist/checkbox/checkbox.d.ts.map +1 -1
- package/dist/container/container.d.ts +1 -1
- package/dist/container/container.d.ts.map +1 -1
- package/dist/dialog/dialog.d.ts +2 -2
- package/dist/dialog/dialog.d.ts.map +1 -1
- package/dist/display/display.d.ts +1 -1
- package/dist/display/display.d.ts.map +1 -1
- package/dist/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/emptystate/emptystate.d.ts +1 -1
- package/dist/emptystate/emptystate.d.ts.map +1 -1
- package/dist/errorstate/errorstate.d.ts +1 -1
- package/dist/errorstate/errorstate.d.ts.map +1 -1
- package/dist/flex/flex.d.ts +1 -1
- package/dist/grid/grid.d.ts +1 -1
- package/dist/grid/grid.d.ts.map +1 -1
- package/dist/headline/headline.d.ts +1 -1
- package/dist/headline/headline.d.ts.map +1 -1
- package/dist/image/image.d.ts +1 -1
- package/dist/image/image.d.ts.map +1 -1
- package/dist/inputfield/inputfield.d.ts +1 -1
- package/dist/inputfield/inputfield.d.ts.map +1 -1
- package/dist/label/label.d.ts +1 -1
- package/dist/label/label.d.ts.map +1 -1
- package/dist/link/link.d.ts +1 -1
- package/dist/link/link.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js +2 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/dist/radio/radio.d.ts +2 -2
- package/dist/radio/radio.d.ts.map +1 -1
- package/dist/scroll-area/scrollarea.d.ts +2 -2
- package/dist/select/select.d.ts +2 -2
- package/dist/separator/separator.d.ts +1 -1
- package/dist/separator/separator.d.ts.map +1 -1
- package/dist/sheet/sheet.d.ts +2 -2
- package/dist/sheet/sheet.d.ts.map +1 -1
- package/dist/sidebar/sidebar.d.ts +3 -3
- package/dist/sidebar/sidebar.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/switch/switch.d.ts +2 -2
- package/dist/switch/switch.d.ts.map +1 -1
- package/dist/table/table.d.ts +7 -7
- package/dist/tabs/tabs.d.ts +4 -4
- package/dist/tabs/tabs.d.ts.map +1 -1
- package/dist/text/text.d.ts +1 -1
- package/dist/text/text.d.ts.map +1 -1
- package/dist/textarea/textarea.d.ts +2 -2
- package/dist/textarea/textarea.d.ts.map +1 -1
- package/dist/textfield/textfield.d.ts +2 -2
- package/dist/textfield/textfield.d.ts.map +1 -1
- package/dist/title/title.d.ts +1 -1
- package/dist/title/title.d.ts.map +1 -1
- package/dist/toggle-group/togglegroup.d.ts +2 -2
- package/dist/toggle-group/togglegroup.d.ts.map +1 -1
- package/dist/v1/components/announcement-bar/announcement-bar.d.ts +1 -1
- package/dist/v1/components/announcement-bar/announcement-bar.d.ts.map +1 -1
- package/dist/v1/components/avatar/avatar.d.ts +1 -1
- package/dist/v1/components/avatar/avatar.d.ts.map +1 -1
- package/dist/v1/components/badge/badge.d.ts +1 -1
- package/dist/v1/components/badge/badge.d.ts.map +1 -1
- package/dist/v1/components/box/box.d.ts +1 -1
- package/dist/v1/components/box/box.d.ts.map +1 -1
- package/dist/v1/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/v1/components/button/button.d.ts +1 -1
- package/dist/v1/components/callout/callout.d.ts +1 -1
- package/dist/v1/components/callout/callout.d.ts.map +1 -1
- package/dist/v1/components/checkbox/checkbox.d.ts +1 -1
- package/dist/v1/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/v1/components/chip/chip.d.ts +1 -1
- package/dist/v1/components/chip/chip.d.ts.map +1 -1
- package/dist/v1/components/container/container.d.ts +1 -1
- package/dist/v1/components/container/container.d.ts.map +1 -1
- package/dist/v1/components/data-table/data-table.cjs +29 -6
- package/dist/v1/components/data-table/data-table.cjs.map +1 -1
- package/dist/v1/components/data-table/data-table.d.ts.map +1 -1
- package/dist/v1/components/data-table/data-table.js +30 -7
- package/dist/v1/components/data-table/data-table.js.map +1 -1
- package/dist/v1/components/dialog/dialog.d.ts +1 -1
- package/dist/v1/components/dialog/dialog.d.ts.map +1 -1
- package/dist/v1/components/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/v1/components/flex/flex.d.ts +1 -1
- package/dist/v1/components/headline/headline.cjs +8 -4
- package/dist/v1/components/headline/headline.cjs.map +1 -1
- package/dist/v1/components/headline/headline.d.ts +20 -4
- package/dist/v1/components/headline/headline.d.ts.map +1 -1
- package/dist/v1/components/headline/headline.js +8 -4
- package/dist/v1/components/headline/headline.js.map +1 -1
- package/dist/v1/components/headline/headline.module.css.cjs +1 -1
- package/dist/v1/components/headline/headline.module.css.js +1 -1
- package/dist/v1/components/headline/index.d.ts +1 -1
- package/dist/v1/components/headline/index.d.ts.map +1 -1
- package/dist/v1/components/icon-button/icon-button.d.ts +1 -1
- package/dist/v1/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/v1/components/image/image.d.ts +1 -1
- package/dist/v1/components/image/image.d.ts.map +1 -1
- package/dist/v1/components/indicator/indicator.d.ts +1 -1
- package/dist/v1/components/indicator/indicator.d.ts.map +1 -1
- package/dist/v1/components/input-field/input-field.d.ts +1 -1
- package/dist/v1/components/input-field/input-field.d.ts.map +1 -1
- package/dist/v1/components/label/label.d.ts +1 -1
- package/dist/v1/components/label/label.d.ts.map +1 -1
- package/dist/v1/components/link/link.cjs +17 -63
- package/dist/v1/components/link/link.cjs.map +1 -1
- package/dist/v1/components/link/link.d.ts +2 -11
- package/dist/v1/components/link/link.d.ts.map +1 -1
- package/dist/v1/components/link/link.js +17 -63
- package/dist/v1/components/link/link.js.map +1 -1
- package/dist/v1/components/link/link.module.css.cjs +1 -1
- package/dist/v1/components/link/link.module.css.js +1 -1
- package/dist/v1/components/list/list.d.ts +1 -1
- package/dist/v1/components/list/list.d.ts.map +1 -1
- package/dist/v1/components/radio/radio.d.ts +1 -1
- package/dist/v1/components/radio/radio.d.ts.map +1 -1
- package/dist/v1/components/select/select.d.ts +4 -5
- package/dist/v1/components/select/select.d.ts.map +1 -1
- package/dist/v1/components/sheet/sheet.d.ts +2 -2
- package/dist/v1/components/sheet/sheet.d.ts.map +1 -1
- package/dist/v1/components/side-panel/side-panel.d.ts +1 -1
- package/dist/v1/components/side-panel/side-panel.d.ts.map +1 -1
- package/dist/v1/components/slider/slider.d.ts +1 -1
- package/dist/v1/components/slider/slider.d.ts.map +1 -1
- package/dist/v1/components/spinner/spinner.d.ts +1 -1
- package/dist/v1/components/spinner/spinner.d.ts.map +1 -1
- package/dist/v1/components/table/table.d.ts +4 -4
- package/dist/v1/components/tabs/tabs.d.ts +1 -1
- package/dist/v1/components/tabs/tabs.d.ts.map +1 -1
- package/dist/v1/components/text/index.d.ts +1 -1
- package/dist/v1/components/text/index.d.ts.map +1 -1
- package/dist/v1/components/text/text.cjs +61 -7
- package/dist/v1/components/text/text.cjs.map +1 -1
- package/dist/v1/components/text/text.d.ts +40 -8
- package/dist/v1/components/text/text.d.ts.map +1 -1
- package/dist/v1/components/text/text.js +92 -39
- package/dist/v1/components/text/text.js.map +1 -1
- package/dist/v1/components/text/text.module.css.cjs +2 -2
- package/dist/v1/components/text/text.module.css.js +2 -2
- package/dist/v1/components/textfield/textfield.d.ts +2 -2
- package/dist/v1/components/textfield/textfield.d.ts.map +1 -1
- package/dist/v1/components/tooltip/tooltip.d.ts +1 -1
- package/dist/v1/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js +2 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/dist/v1/style.css +1 -1
- package/package.json +1 -1
package/dist/switch/switch.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import { ComponentPropsWithoutRef } from "react";
|
|
4
|
-
declare const switchVariants: (props?: import("class-variance-authority/
|
|
4
|
+
declare const switchVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
5
|
export interface SwitchProps extends ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, VariantProps<typeof switchVariants>, SwitchPrimitive.SwitchProps {
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated Use Switch from '@raystack/apsara/v1' instead.
|
|
9
9
|
*/
|
|
10
10
|
export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
|
-
declare const thumb: (props?: import("class-variance-authority/
|
|
11
|
+
declare const thumb: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
12
12
|
export interface thumbProps extends ComponentPropsWithoutRef<typeof SwitchPrimitive.Thumb>, VariantProps<typeof thumb> {
|
|
13
13
|
}
|
|
14
14
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../switch/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAA0B,MAAM,OAAO,CAAC;AAGzE,QAAA,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../switch/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAA0B,MAAM,OAAO,CAAC;AAGzE,QAAA,MAAM,cAAc,oFAAqB,CAAC;AAE1C,MAAM,WAAW,WACf,SAAQ,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EAC3D,YAAY,CAAC,OAAO,cAAc,CAAC,EACnC,eAAe,CAAC,WAAW;CAAG;AAElC;;GAEG;AACH,eAAO,MAAM,MAAM,2GAWjB,CAAC;AAEH,QAAA,MAAM,KAAK,oFAAoB,CAAC;AAChC,MAAM,WAAW,UACf,SAAQ,wBAAwB,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,EAC5D,YAAY,CAAC,OAAO,KAAK,CAAC;CAAG"}
|
package/dist/table/table.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
export declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & VariantProps<(props?: import("class-variance-authority/
|
|
3
|
+
export declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
} & React.RefAttributes<HTMLTableElement>> & {
|
|
6
|
-
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & VariantProps<(props?: import("class-variance-authority/
|
|
6
|
+
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
} & React.RefAttributes<HTMLTableSectionElement>>;
|
|
9
|
-
Body: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & VariantProps<(props?: import("class-variance-authority/
|
|
9
|
+
Body: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
} & React.RefAttributes<HTMLTableSectionElement>>;
|
|
12
|
-
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & VariantProps<(props?: import("class-variance-authority/
|
|
12
|
+
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
} & React.RefAttributes<HTMLTableSectionElement>>;
|
|
15
|
-
Head: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & VariantProps<(props?: import("class-variance-authority/
|
|
15
|
+
Head: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
} & React.RefAttributes<HTMLTableCellElement>>;
|
|
18
|
-
Row: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & VariantProps<(props?: import("class-variance-authority/
|
|
18
|
+
Row: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
19
19
|
children?: React.ReactNode;
|
|
20
20
|
} & React.RefAttributes<HTMLTableRowElement>>;
|
|
21
|
-
Cell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & VariantProps<(props?: import("class-variance-authority/
|
|
21
|
+
Cell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
22
22
|
children?: React.ReactNode;
|
|
23
23
|
} & React.RefAttributes<HTMLTableCellElement>>;
|
|
24
24
|
Caption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
package/dist/tabs/tabs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import React, { ComponentPropsWithoutRef } from "react";
|
|
4
|
-
declare const root: (props?: import("class-variance-authority/
|
|
4
|
+
declare const root: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use Tabs from '@raystack/apsara/v1' instead.
|
|
7
7
|
*/
|
|
@@ -10,19 +10,19 @@ export interface TabsRootProps extends ComponentPropsWithoutRef<typeof TabsPrimi
|
|
|
10
10
|
declare const tablist: (props?: ({
|
|
11
11
|
underline?: boolean | null | undefined;
|
|
12
12
|
elevated?: boolean | null | undefined;
|
|
13
|
-
} & import("class-variance-authority/
|
|
13
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
14
14
|
/**
|
|
15
15
|
* @deprecated Use TabsListProps from '@raystack/apsara/v1' instead.
|
|
16
16
|
*/
|
|
17
17
|
export interface TabsListProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.List>, VariantProps<typeof tablist> {
|
|
18
18
|
}
|
|
19
|
-
declare const content: (props?: import("class-variance-authority/
|
|
19
|
+
declare const content: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
20
20
|
/**
|
|
21
21
|
* @deprecated Use ContentProps from '@raystack/apsara/v1' instead.
|
|
22
22
|
*/
|
|
23
23
|
export interface ContentProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.Content>, VariantProps<typeof content> {
|
|
24
24
|
}
|
|
25
|
-
declare const trigger: (props?: import("class-variance-authority/
|
|
25
|
+
declare const trigger: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
26
26
|
/**
|
|
27
27
|
* @deprecated Use Tabs from '@raystack/apsara/v1' instead.
|
|
28
28
|
*/
|
package/dist/tabs/tabs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGxD,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGxD,QAAA,MAAM,IAAI,oFAAmB,CAAC;AAE9B;;GAEG;AACH,MAAM,WAAW,aACf,SAAQ,wBAAwB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,EACzD,YAAY,CAAC,OAAO,IAAI,CAAC;CAAG;AAahC,QAAA,MAAM,OAAO;;;8EASX,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,aACf,SAAQ,wBAAwB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,EACzD,YAAY,CAAC,OAAO,OAAO,CAAC;CAAG;AAmBnC,QAAA,MAAM,OAAO,oFAAsB,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,YACf,SAAQ,wBAAwB,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,EAC5D,YAAY,CAAC,OAAO,OAAO,CAAC;CAAG;AAanC,QAAA,MAAM,OAAO,oFAAsB,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,gBACf,SAAQ,wBAAwB,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,EAC5D,YAAY,CAAC,OAAO,OAAO,CAAC;CAAG;AAWnC;;GAEG;AACH,eAAO,MAAM,IAAI;8BAnF0B,aAAa;;;;kCA0EV,gBAAgB;;;;kCAnBhB,YAAY;;;;CAgCxD,CAAC"}
|
package/dist/text/text.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { HTMLAttributes, PropsWithChildren } from "react";
|
|
|
3
3
|
declare const text: (props?: ({
|
|
4
4
|
size?: 1 | 4 | 3 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | null | undefined;
|
|
5
5
|
weight?: "bold" | "normal" | "bolder" | "lighter" | 400 | 100 | 200 | 300 | 500 | 600 | 700 | 800 | 900 | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated Use TextProps from '@raystack/apsara/v1' instead.
|
|
9
9
|
*/
|
package/dist/text/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1D,QAAA,MAAM,IAAI;;;
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1D,QAAA,MAAM,IAAI;;;8EAkCR,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,GAClE,cAAc,CAAC,eAAe,CAAC,CAAC;AAElC;;GAEG;AACH,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,MAAM,EACN,GAAG,KAAK,EACT,EAAE,SAAS,2CAMX"}
|
|
@@ -5,7 +5,7 @@ declare const textarea: (props?: ({
|
|
|
5
5
|
size?: "small" | "medium" | null | undefined;
|
|
6
6
|
state?: "invalid" | "valid" | null | undefined;
|
|
7
7
|
leading?: boolean | null | undefined;
|
|
8
|
-
} & import("class-variance-authority/
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated Use TextAreaProps from @raystack/apsara/v1 instead.
|
|
11
11
|
*/
|
|
@@ -14,7 +14,7 @@ declare const Textarea: React.ForwardRefExoticComponent<VariantProps<(props?: ({
|
|
|
14
14
|
size?: "small" | "medium" | null | undefined;
|
|
15
15
|
state?: "invalid" | "valid" | null | undefined;
|
|
16
16
|
leading?: boolean | null | undefined;
|
|
17
|
-
} & import("class-variance-authority/
|
|
17
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
18
18
|
children?: React.ReactNode;
|
|
19
19
|
} & React.HTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
20
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAW,MAAM,0BAA0B,CAAC;AAIjE,QAAA,MAAM,QAAQ;;;;
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAW,MAAM,0BAA0B,CAAC;AAIjE,QAAA,MAAM,QAAQ;;;;8EAmBZ,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAC,GAC1E,cAAc,CAAC,mBAAmB,CAAC,CAAC;AAEtC,QAAA,MAAM,QAAQ;;;;;;yFAUb,CAAC;AAGF;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -5,7 +5,7 @@ declare const textfield: (props?: ({
|
|
|
5
5
|
state?: "invalid" | "valid" | null | undefined;
|
|
6
6
|
hasLeadingElement?: boolean | null | undefined;
|
|
7
7
|
hasTrailingElement?: boolean | null | undefined;
|
|
8
|
-
} & import("class-variance-authority/
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export type TextfieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & PropsWithChildren<VariantProps<typeof textfield>> & {
|
|
10
10
|
leading?: React.ReactElement;
|
|
11
11
|
trailing?: React.ReactElement;
|
|
@@ -19,7 +19,7 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<I
|
|
|
19
19
|
state?: "invalid" | "valid" | null | undefined;
|
|
20
20
|
hasLeadingElement?: boolean | null | undefined;
|
|
21
21
|
hasTrailingElement?: boolean | null | undefined;
|
|
22
|
-
} & import("class-variance-authority/
|
|
22
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
23
23
|
children?: import("react").ReactNode;
|
|
24
24
|
} & {
|
|
25
25
|
leading?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textfield.d.ts","sourceRoot":"","sources":["../../textfield/textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAc,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI3E,QAAA,MAAM,SAAS;;;;;
|
|
1
|
+
{"version":3,"file":"textfield.d.ts","sourceRoot":"","sources":["../../textfield/textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAc,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI3E,QAAA,MAAM,SAAS;;;;;8EAsBb,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,CACP,GACC,iBAAiB,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,GAAG;IAClD,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC9B,SAAS,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7D,CAAC;AAEJ,eAAO,MAAM,SAAS;;;;;;;;;;;;;;oDAsDrB,CAAC"}
|
package/dist/title/title.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import { HTMLAttributes, PropsWithChildren } from "react";
|
|
3
3
|
declare const title: (props?: ({
|
|
4
4
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
type TitleProps = PropsWithChildren<VariantProps<typeof title>> & HTMLAttributes<HTMLSpanElement>;
|
|
7
7
|
export declare function Title({ children, className, size, ...props }: TitleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../title/title.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1D,QAAA,MAAM,KAAK;;
|
|
1
|
+
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../title/title.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1D,QAAA,MAAM,KAAK;;8EAWT,CAAC;AAEH,KAAK,UAAU,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC,GAC7D,cAAc,CAAC,eAAe,CAAC,CAAC;AAElC,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAMxE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from "react";
|
|
2
2
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
declare const root: (props?: import("class-variance-authority/
|
|
4
|
+
declare const root: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
5
|
export type ToggleGroupProps = ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof root>;
|
|
6
6
|
export declare const ToggleGroupRoot: {
|
|
7
7
|
({ className, ...props }: ToggleGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,7 +9,7 @@ export declare const ToggleGroupRoot: {
|
|
|
9
9
|
type: string;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
declare const item: (props?: import("class-variance-authority/
|
|
12
|
+
declare const item: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
13
13
|
export interface ToggleGroupItemProps extends ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>, VariantProps<typeof item> {
|
|
14
14
|
}
|
|
15
15
|
export declare const ToggleGroupItem: ({ className, ...props }: ToggleGroupItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"togglegroup.d.ts","sourceRoot":"","sources":["../../toggle-group/togglegroup.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"togglegroup.d.ts","sourceRoot":"","sources":["../../toggle-group/togglegroup.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,QAAA,MAAM,IAAI,oFAAmB,CAAC;AAE9B,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,CACrD,OAAO,oBAAoB,CAAC,IAAI,CACjC,GACC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC;AAK5B,eAAO,MAAM,eAAe;8BAA6B,gBAAgB;;;;CAIxE,CAAC;AAIF,QAAA,MAAM,IAAI,oFAAmB,CAAC;AAK9B,MAAM,WAAW,oBACf,SAAQ,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,EAChE,YAAY,CAAC,OAAO,IAAI,CAAC;CAAG;AAKhC,eAAO,MAAM,eAAe,4BAGzB,oBAAoB,4CAItB,CAAC;AAKF,eAAO,MAAM,WAAW;8BAhCiC,gBAAgB;;;;;oCAuBtE,oBAAoB;CAWrB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
declare const announementBar: (props?: ({
|
|
4
4
|
variant?: "normal" | "gradient" | "error" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
type AnnouncementBarProps = VariantProps<typeof announementBar> & {
|
|
7
7
|
leadingIcon?: ReactNode;
|
|
8
8
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"announcement-bar.d.ts","sourceRoot":"","sources":["../../../../v1/components/announcement-bar/announcement-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,QAAA,MAAM,cAAc;;
|
|
1
|
+
{"version":3,"file":"announcement-bar.d.ts","sourceRoot":"","sources":["../../../../v1/components/announcement-bar/announcement-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,QAAA,MAAM,cAAc;;8EAWlB,CAAC;AAEH,KAAK,oBAAoB,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IAChE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,eAAe,gGASzB,oBAAoB,4CA0BtB,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const avatar: (props?: ({
|
|
|
7
7
|
variant?: "solid" | "soft" | null | undefined;
|
|
8
8
|
disabled?: boolean | null | undefined;
|
|
9
9
|
color?: "indigo" | "orange" | "mint" | "neutral" | "sky" | "lime" | "grass" | "cyan" | "iris" | "purple" | "pink" | "crimson" | "gold" | null | undefined;
|
|
10
|
-
} & import("class-variance-authority/
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
11
|
export interface AvatarProps extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatar> {
|
|
12
12
|
size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13;
|
|
13
13
|
src?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../v1/components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA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AAY,CAAC,WAAW,CAAC,EAAE,CAAC;IAC5C,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,WAAW,6GA8BvB,CAAC"}
|
|
@@ -4,7 +4,7 @@ declare const badge: (props?: ({
|
|
|
4
4
|
variant?: "accent" | "danger" | "success" | "gradient" | "neutral" | "warning" | null | undefined;
|
|
5
5
|
size?: "small" | "micro" | "regular" | null | undefined;
|
|
6
6
|
defaultVariants?: "variant" | "size" | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
type BadgeProps = VariantProps<typeof badge> & {
|
|
9
9
|
icon?: ReactNode;
|
|
10
10
|
children: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../v1/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,QAAA,MAAM,KAAK;;;;
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../v1/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,QAAA,MAAM,KAAK;;;;8EAoBT,CAAC;AAEH,KAAK,UAAU,GAAG,YAAY,CAAC,OAAO,KAAK,CAAC,GAAG;IAC7C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAA;AAED,eAAO,MAAM,KAAK;qEAOf,UAAU;;CAUZ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
import { HTMLAttributes, PropsWithChildren } from "react";
|
|
3
|
-
declare const box: (props?: import("class-variance-authority/
|
|
3
|
+
declare const box: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
4
|
type BoxProps = PropsWithChildren<VariantProps<typeof box>> & HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
ref?: React.RefObject<HTMLDivElement>;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../../v1/components/box/box.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1D,QAAA,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../../v1/components/box/box.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1D,QAAA,MAAM,GAAG,oFAAkB,CAAC;AAE5B,KAAK,QAAQ,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,GAAG,CAAC,CAAC,GACzD,cAAc,CAAC,cAAc,CAAC,GAAG;IAC/B,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CACvC,CAAC;AAEJ,wBAAgB,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,2CAMnE;yBANe,GAAG"}
|
|
@@ -11,7 +11,7 @@ interface BreadcrumbItem {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<VariantProps<(props?: ({
|
|
13
13
|
size?: "small" | "medium" | null | undefined;
|
|
14
|
-
} & import("class-variance-authority/
|
|
14
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string>, "size"> & {
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
} & {
|
|
17
17
|
items: BreadcrumbItem[];
|
|
@@ -6,7 +6,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<VariantPr
|
|
|
6
6
|
disabled?: boolean | null | undefined;
|
|
7
7
|
loading?: boolean | null | undefined;
|
|
8
8
|
color?: "accent" | "danger" | "success" | "neutral" | null | undefined;
|
|
9
|
-
} & import("class-variance-authority/
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
10
10
|
children?: ReactNode;
|
|
11
11
|
} & ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
12
12
|
asChild?: boolean | undefined;
|
|
@@ -5,7 +5,7 @@ declare const callout: (props?: ({
|
|
|
5
5
|
type?: "alert" | "accent" | "attention" | "success" | "normal" | "gradient" | "grey" | null | undefined;
|
|
6
6
|
outline?: boolean | null | undefined;
|
|
7
7
|
highContrast?: boolean | null | undefined;
|
|
8
|
-
} & import("class-variance-authority/
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export interface CalloutProps extends ComponentPropsWithoutRef<'div'>, VariantProps<typeof callout> {
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
action?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callout.d.ts","sourceRoot":"","sources":["../../../../v1/components/callout/callout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,OAAO;;;;
|
|
1
|
+
{"version":3,"file":"callout.d.ts","sourceRoot":"","sources":["../../../../v1/components/callout/callout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,OAAO;;;;8EAqBX,CAAC;AAEH,MAAM,WAAW,YAAa,SAAQ,wBAAwB,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,OAAO,CAAC;IACjG,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,OAAO,qFA2FnB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import { ComponentPropsWithoutRef } from "react";
|
|
4
|
-
declare const checkbox: (props?: import("class-variance-authority/
|
|
4
|
+
declare const checkbox: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
5
|
type CheckboxVariants = VariantProps<typeof checkbox>;
|
|
6
6
|
type CheckedState = boolean | 'indeterminate';
|
|
7
7
|
export interface CheckboxProps extends Omit<ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, keyof CheckboxVariants>, CheckboxVariants {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../v1/components/checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,wBAAwB,EAA0B,MAAM,OAAO,CAAC;AAyCzE,QAAA,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../v1/components/checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,wBAAwB,EAA0B,MAAM,OAAO,CAAC;AAyCzE,QAAA,MAAM,QAAQ,oFAAuB,CAAC;AAEtC,KAAK,gBAAgB,GAAG,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAC;AACtD,KAAK,YAAY,GAAG,OAAO,GAAG,eAAe,CAAC;AAE9C,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAAE,MAAM,gBAAgB,CAAC,EAC3F,gBAAgB;IAClB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;CACnD;AAED,eAAO,MAAM,QAAQ,6GAmCnB,CAAC"}
|
|
@@ -4,7 +4,7 @@ declare const chip: (props?: ({
|
|
|
4
4
|
variant?: "outline" | "filled" | null | undefined;
|
|
5
5
|
size?: "small" | "large" | null | undefined;
|
|
6
6
|
color?: "accent" | "neutral" | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
type ChipProps = VariantProps<typeof chip> & {
|
|
9
9
|
trailingIcon?: ReactNode;
|
|
10
10
|
leadingIcon?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../../v1/components/chip/chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,QAAA,MAAM,IAAI;;;;
|
|
1
|
+
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../../v1/components/chip/chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,QAAA,MAAM,IAAI;;;;8EAoBR,CAAC;AAEH,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,IAAI,CAAC,GAAG;IAC3C,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,IAAI;6JAcd,SAAS;;CA+DX,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { HTMLAttributes, PropsWithChildren } from "react";
|
|
|
3
3
|
declare const container: (props?: ({
|
|
4
4
|
size?: "small" | "medium" | "large" | "none" | null | undefined;
|
|
5
5
|
align?: "center" | "right" | "left" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
type ContainerProps = PropsWithChildren<VariantProps<typeof container>> & HTMLAttributes<HTMLElement> & {
|
|
8
8
|
"aria-label"?: string;
|
|
9
9
|
"aria-labelledby"?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../v1/components/container/container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1D,QAAA,MAAM,SAAS;;;
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../v1/components/container/container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1D,QAAA,MAAM,SAAS;;;8EAkBb,CAAC;AAEH,KAAK,cAAc,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,GACrE,cAAc,CAAC,WAAW,CAAC,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEJ,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,SAAS,EACT,IAAe,EACf,GAAG,KAAK,EACT,EAAE,cAAc,2CAUhB"}
|
|
@@ -18,10 +18,10 @@ function DataTableRoot({ data = [], columns, query, mode = "client", isLoading =
|
|
|
18
18
|
const [tableQuery, setTableQuery] = React.useState(defaultTableQuery);
|
|
19
19
|
const oldQueryRef = React.useRef(null);
|
|
20
20
|
const reactTableState = React.useMemo(() => index.queryToTableState(tableQuery), [tableQuery]);
|
|
21
|
-
|
|
21
|
+
const onDisplaySettingsReset = React.useCallback(() => {
|
|
22
22
|
setTableQuery((prev) => ({ ...prev, ...defaultTableQuery }));
|
|
23
23
|
setColumnVisibility(initialColumnVisibility);
|
|
24
|
-
}
|
|
24
|
+
}, [defaultTableQuery, initialColumnVisibility]);
|
|
25
25
|
const group_by = tableQuery.group_by?.[0];
|
|
26
26
|
const columnsWithFilters = React.useMemo(() => index.getColumnsWithFilterFn(columns, tableQuery.filters), [columns, tableQuery.filters]);
|
|
27
27
|
const groupedData = React.useMemo(() => index.groupData(data, group_by, columns), [data, group_by, columns]);
|
|
@@ -59,12 +59,35 @@ function DataTableRoot({ data = [], columns, query, mode = "client", isLoading =
|
|
|
59
59
|
function updateTableQuery(fn) {
|
|
60
60
|
setTableQuery((prev) => fn(prev));
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
const loadMoreData = React.useCallback(() => {
|
|
63
63
|
if (mode === "server" && onLoadMore) {
|
|
64
64
|
onLoadMore();
|
|
65
65
|
}
|
|
66
|
-
}
|
|
67
|
-
const
|
|
66
|
+
}, [mode, onLoadMore]);
|
|
67
|
+
const searchQuery = query?.search;
|
|
68
|
+
React.useEffect(() => {
|
|
69
|
+
if (searchQuery) {
|
|
70
|
+
updateTableQuery((prev) => ({
|
|
71
|
+
...prev,
|
|
72
|
+
search: searchQuery,
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
}, [searchQuery]);
|
|
76
|
+
const contextValue = React.useMemo(() => {
|
|
77
|
+
return {
|
|
78
|
+
table,
|
|
79
|
+
columns,
|
|
80
|
+
mode,
|
|
81
|
+
isLoading,
|
|
82
|
+
loadMoreData,
|
|
83
|
+
tableQuery,
|
|
84
|
+
updateTableQuery,
|
|
85
|
+
onDisplaySettingsReset,
|
|
86
|
+
defaultSort,
|
|
87
|
+
loadingRowCount,
|
|
88
|
+
onRowClick,
|
|
89
|
+
};
|
|
90
|
+
}, [
|
|
68
91
|
table,
|
|
69
92
|
columns,
|
|
70
93
|
mode,
|
|
@@ -76,7 +99,7 @@ function DataTableRoot({ data = [], columns, query, mode = "client", isLoading =
|
|
|
76
99
|
defaultSort,
|
|
77
100
|
loadingRowCount,
|
|
78
101
|
onRowClick,
|
|
79
|
-
|
|
102
|
+
]);
|
|
80
103
|
return (jsxRuntime.jsxRuntimeExports.jsx(context.TableContext.Provider, { value: contextValue, children: children }));
|
|
81
104
|
}
|
|
82
105
|
const DataTable = Object.assign(DataTableRoot, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.cjs","sources":["../../../../v1/components/data-table/data-table.tsx"],"sourcesContent":["import { useEffect, useMemo, useRef, useState } from \"react\";\nimport { TableContext } from \"./context\";\nimport {\n DataTableProps,\n DataTableQuery,\n GroupedData,\n TableContextType,\n TableQueryUpdateFn,\n defaultGroupOption,\n} from \"./data-table.types\";\nimport {\n VisibilityState,\n getCoreRowModel,\n getFilteredRowModel,\n getSortedRowModel,\n useReactTable,\n getExpandedRowModel,\n} from \"@tanstack/react-table\";\nimport {\n getColumnsWithFilterFn,\n getDefaultTableQuery,\n getInitialColumnVisibility,\n groupData,\n hasQueryChanged,\n queryToTableState,\n sanitizeTableQuery,\n} from \"./utils\";\nimport { Content } from \"./components/content\";\nimport { Toolbar } from \"./components/toolbar\";\nimport { TableSearch } from \"./components/search\";\n\nfunction DataTableRoot<TData, TValue>({\n data = [],\n columns,\n query,\n mode = \"client\",\n isLoading = false,\n loadingRowCount = 3,\n defaultSort,\n children,\n onTableQueryChange,\n onLoadMore,\n onRowClick,\n}: React.PropsWithChildren<DataTableProps<TData, TValue>>) {\n const defaultTableQuery = getDefaultTableQuery(defaultSort, query);\n const initialColumnVisibility = getInitialColumnVisibility(columns);\n\n const [columnVisibility, setColumnVisibility] = useState<VisibilityState>(\n initialColumnVisibility\n );\n const [tableQuery, setTableQuery] =\n useState<DataTableQuery>(defaultTableQuery);\n\n const oldQueryRef = useRef<DataTableQuery | null>(null);\n\n const reactTableState = useMemo(\n () => queryToTableState(tableQuery),\n [tableQuery]\n );\n\n
|
|
1
|
+
{"version":3,"file":"data-table.cjs","sources":["../../../../v1/components/data-table/data-table.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { TableContext } from \"./context\";\nimport {\n DataTableProps,\n DataTableQuery,\n GroupedData,\n TableContextType,\n TableQueryUpdateFn,\n defaultGroupOption,\n} from \"./data-table.types\";\nimport {\n VisibilityState,\n getCoreRowModel,\n getFilteredRowModel,\n getSortedRowModel,\n useReactTable,\n getExpandedRowModel,\n} from \"@tanstack/react-table\";\nimport {\n getColumnsWithFilterFn,\n getDefaultTableQuery,\n getInitialColumnVisibility,\n groupData,\n hasQueryChanged,\n queryToTableState,\n sanitizeTableQuery,\n} from \"./utils\";\nimport { Content } from \"./components/content\";\nimport { Toolbar } from \"./components/toolbar\";\nimport { TableSearch } from \"./components/search\";\n\nfunction DataTableRoot<TData, TValue>({\n data = [],\n columns,\n query,\n mode = \"client\",\n isLoading = false,\n loadingRowCount = 3,\n defaultSort,\n children,\n onTableQueryChange,\n onLoadMore,\n onRowClick,\n}: React.PropsWithChildren<DataTableProps<TData, TValue>>) {\n const defaultTableQuery = getDefaultTableQuery(defaultSort, query);\n const initialColumnVisibility = getInitialColumnVisibility(columns);\n\n const [columnVisibility, setColumnVisibility] = useState<VisibilityState>(\n initialColumnVisibility\n );\n const [tableQuery, setTableQuery] =\n useState<DataTableQuery>(defaultTableQuery);\n\n const oldQueryRef = useRef<DataTableQuery | null>(null);\n\n const reactTableState = useMemo(\n () => queryToTableState(tableQuery),\n [tableQuery]\n );\n\n const onDisplaySettingsReset = useCallback(() => {\n setTableQuery((prev) => ({ ...prev, ...defaultTableQuery }));\n setColumnVisibility(initialColumnVisibility);\n }, [defaultTableQuery, initialColumnVisibility]);\n\n const group_by = tableQuery.group_by?.[0];\n\n const columnsWithFilters = useMemo(\n () => getColumnsWithFilterFn<TData, TValue>(columns, tableQuery.filters),\n [columns, tableQuery.filters]\n );\n\n const groupedData = useMemo(\n () => groupData(data, group_by, columns),\n [data, group_by, columns]\n );\n\n useEffect(() => {\n if (\n tableQuery &&\n onTableQueryChange &&\n hasQueryChanged(oldQueryRef.current, tableQuery) &&\n mode === \"server\"\n ) {\n onTableQueryChange(sanitizeTableQuery(tableQuery));\n oldQueryRef.current = tableQuery;\n }\n }, [tableQuery, onTableQueryChange]);\n\n const table = useReactTable({\n data: groupedData as unknown as TData[],\n columns: columnsWithFilters,\n getCoreRowModel: getCoreRowModel(),\n getExpandedRowModel: getExpandedRowModel(),\n getSubRows: (row) => (row as unknown as GroupedData<TData>)?.subRows || [],\n getSortedRowModel: mode === \"server\" ? undefined : getSortedRowModel(),\n getFilteredRowModel: mode === \"server\" ? undefined : getFilteredRowModel(),\n manualSorting: mode === \"server\",\n manualFiltering: mode === \"server\",\n onColumnVisibilityChange: setColumnVisibility,\n globalFilterFn: mode === \"server\" ? undefined : \"auto\",\n initialState: {\n columnVisibility: initialColumnVisibility,\n },\n filterFromLeafRows: true,\n state: {\n ...reactTableState,\n columnVisibility: columnVisibility,\n expanded:\n group_by && group_by !== defaultGroupOption.id ? true : undefined,\n },\n });\n\n function updateTableQuery(fn: TableQueryUpdateFn) {\n setTableQuery((prev) => fn(prev));\n }\n\n const loadMoreData = useCallback(() => {\n if (mode === \"server\" && onLoadMore) {\n onLoadMore();\n }\n }, [mode, onLoadMore]);\n\n const searchQuery = query?.search;\n useEffect(() => {\n if (searchQuery) {\n updateTableQuery((prev) => ({\n ...prev,\n search: searchQuery,\n }));\n }\n }, [searchQuery]);\n\n const contextValue: TableContextType<TData, TValue> = useMemo(() => {\n return {\n table,\n columns,\n mode,\n isLoading,\n loadMoreData,\n tableQuery,\n updateTableQuery,\n onDisplaySettingsReset,\n defaultSort,\n loadingRowCount,\n onRowClick,\n };\n }, [\n table,\n columns,\n mode,\n isLoading,\n loadMoreData,\n tableQuery,\n updateTableQuery,\n onDisplaySettingsReset,\n defaultSort,\n loadingRowCount,\n onRowClick,\n ]);\n\n return (\n <TableContext.Provider value={contextValue}>\n {children}\n </TableContext.Provider>\n );\n}\n\nexport const DataTable = Object.assign(DataTableRoot, {\n Content: Content,\n Toolbar: Toolbar,\n Search: TableSearch,\n});\n"],"names":["getDefaultTableQuery","getInitialColumnVisibility","useState","useRef","useMemo","queryToTableState","useCallback","getColumnsWithFilterFn","groupData","useEffect","hasQueryChanged","sanitizeTableQuery","useReactTable","getCoreRowModel","getExpandedRowModel","getSortedRowModel","getFilteredRowModel","defaultGroupOption","_jsx","TableContext","Content","Toolbar","TableSearch"],"mappings":";;;;;;;;;;;;;AA+BA,SAAS,aAAa,CAAgB,EACpC,IAAI,GAAG,EAAE,EACT,OAAO,EACP,KAAK,EACL,IAAI,GAAG,QAAQ,EACf,SAAS,GAAG,KAAK,EACjB,eAAe,GAAG,CAAC,EACnB,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,UAAU,EACV,UAAU,GAC6C,EAAA;IACvD,MAAM,iBAAiB,GAAGA,0BAAoB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AACnE,IAAA,MAAM,uBAAuB,GAAGC,gCAA0B,CAAC,OAAO,CAAC,CAAC;IAEpE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAGC,cAAQ,CACtD,uBAAuB,CACxB,CAAC;IACF,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAC/BA,cAAQ,CAAiB,iBAAiB,CAAC,CAAC;AAE9C,IAAA,MAAM,WAAW,GAAGC,YAAM,CAAwB,IAAI,CAAC,CAAC;AAExD,IAAA,MAAM,eAAe,GAAGC,aAAO,CAC7B,MAAMC,uBAAiB,CAAC,UAAU,CAAC,EACnC,CAAC,UAAU,CAAC,CACb,CAAC;AAEF,IAAA,MAAM,sBAAsB,GAAGC,iBAAW,CAAC,MAAK;AAC9C,QAAA,aAAa,CAAC,CAAC,IAAI,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,iBAAiB,EAAE,CAAC,CAAC,CAAC;QAC7D,mBAAmB,CAAC,uBAAuB,CAAC,CAAC;AAC/C,KAAC,EAAE,CAAC,iBAAiB,EAAE,uBAAuB,C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ACL,OAAO;QACP,IAAI;QACJ,SAAS;QACT,YAAY;QACZ,UAAU;QACV,gBAAgB;QAChB,sBAAsB;QACtB,WAAW;QACX,eAAe;QACf,UAAU;AACX,KAAA,CAAC,CAAC;AAEH,IAAA,QACEc,gCAAA,CAACC,oBAAY,CAAC,QAAQ,EAAA,EAAC,KAAK,EAAE,YAAY,EAAA,QAAA,EACvC,QAAQ,EAAA,CACa,EACxB;AACJ,CAAC;MAEY,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE;AACpD,IAAA,OAAO,EAAEC,eAAO;AAChB,IAAA,OAAO,EAAEC,eAAO;AAChB,IAAA,MAAM,EAAEC,kBAAW;AACpB,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../../v1/components/data-table/data-table.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EAMf,MAAM,oBAAoB,CAAC;AAkB5B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EACpC,IAAS,EACT,OAAO,EACP,KAAK,EACL,IAAe,EACf,SAAiB,EACjB,eAAmB,EACnB,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,UAAU,EACV,UAAU,GACX,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../../v1/components/data-table/data-table.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EAMf,MAAM,oBAAoB,CAAC;AAkB5B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EACpC,IAAS,EACT,OAAO,EACP,KAAK,EACL,IAAe,EACf,SAAiB,EACjB,eAAmB,EACnB,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,UAAU,EACV,UAAU,GACX,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,2CA2HxD;AAED,eAAO,MAAM,SAAS;;;;CAIpB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
|
|
2
|
-
import { useState, useRef, useMemo, useEffect } from 'react';
|
|
2
|
+
import { useState, useRef, useMemo, useCallback, useEffect } from 'react';
|
|
3
3
|
import { TableContext } from './context.js';
|
|
4
4
|
import { defaultGroupOption } from './data-table.types.js';
|
|
5
5
|
import { useReactTable } from '../../node_modules/.pnpm/@tanstack_react-table@8.9.2_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-table/build/lib/index.js';
|
|
@@ -16,10 +16,10 @@ function DataTableRoot({ data = [], columns, query, mode = "client", isLoading =
|
|
|
16
16
|
const [tableQuery, setTableQuery] = useState(defaultTableQuery);
|
|
17
17
|
const oldQueryRef = useRef(null);
|
|
18
18
|
const reactTableState = useMemo(() => queryToTableState(tableQuery), [tableQuery]);
|
|
19
|
-
|
|
19
|
+
const onDisplaySettingsReset = useCallback(() => {
|
|
20
20
|
setTableQuery((prev) => ({ ...prev, ...defaultTableQuery }));
|
|
21
21
|
setColumnVisibility(initialColumnVisibility);
|
|
22
|
-
}
|
|
22
|
+
}, [defaultTableQuery, initialColumnVisibility]);
|
|
23
23
|
const group_by = tableQuery.group_by?.[0];
|
|
24
24
|
const columnsWithFilters = useMemo(() => getColumnsWithFilterFn(columns, tableQuery.filters), [columns, tableQuery.filters]);
|
|
25
25
|
const groupedData = useMemo(() => groupData(data, group_by, columns), [data, group_by, columns]);
|
|
@@ -57,12 +57,35 @@ function DataTableRoot({ data = [], columns, query, mode = "client", isLoading =
|
|
|
57
57
|
function updateTableQuery(fn) {
|
|
58
58
|
setTableQuery((prev) => fn(prev));
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
const loadMoreData = useCallback(() => {
|
|
61
61
|
if (mode === "server" && onLoadMore) {
|
|
62
62
|
onLoadMore();
|
|
63
63
|
}
|
|
64
|
-
}
|
|
65
|
-
const
|
|
64
|
+
}, [mode, onLoadMore]);
|
|
65
|
+
const searchQuery = query?.search;
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
if (searchQuery) {
|
|
68
|
+
updateTableQuery((prev) => ({
|
|
69
|
+
...prev,
|
|
70
|
+
search: searchQuery,
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
}, [searchQuery]);
|
|
74
|
+
const contextValue = useMemo(() => {
|
|
75
|
+
return {
|
|
76
|
+
table,
|
|
77
|
+
columns,
|
|
78
|
+
mode,
|
|
79
|
+
isLoading,
|
|
80
|
+
loadMoreData,
|
|
81
|
+
tableQuery,
|
|
82
|
+
updateTableQuery,
|
|
83
|
+
onDisplaySettingsReset,
|
|
84
|
+
defaultSort,
|
|
85
|
+
loadingRowCount,
|
|
86
|
+
onRowClick,
|
|
87
|
+
};
|
|
88
|
+
}, [
|
|
66
89
|
table,
|
|
67
90
|
columns,
|
|
68
91
|
mode,
|
|
@@ -74,7 +97,7 @@ function DataTableRoot({ data = [], columns, query, mode = "client", isLoading =
|
|
|
74
97
|
defaultSort,
|
|
75
98
|
loadingRowCount,
|
|
76
99
|
onRowClick,
|
|
77
|
-
|
|
100
|
+
]);
|
|
78
101
|
return (jsxRuntimeExports.jsx(TableContext.Provider, { value: contextValue, children: children }));
|
|
79
102
|
}
|
|
80
103
|
const DataTable = Object.assign(DataTableRoot, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.js","sources":["../../../../v1/components/data-table/data-table.tsx"],"sourcesContent":["import { useEffect, useMemo, useRef, useState } from \"react\";\nimport { TableContext } from \"./context\";\nimport {\n DataTableProps,\n DataTableQuery,\n GroupedData,\n TableContextType,\n TableQueryUpdateFn,\n defaultGroupOption,\n} from \"./data-table.types\";\nimport {\n VisibilityState,\n getCoreRowModel,\n getFilteredRowModel,\n getSortedRowModel,\n useReactTable,\n getExpandedRowModel,\n} from \"@tanstack/react-table\";\nimport {\n getColumnsWithFilterFn,\n getDefaultTableQuery,\n getInitialColumnVisibility,\n groupData,\n hasQueryChanged,\n queryToTableState,\n sanitizeTableQuery,\n} from \"./utils\";\nimport { Content } from \"./components/content\";\nimport { Toolbar } from \"./components/toolbar\";\nimport { TableSearch } from \"./components/search\";\n\nfunction DataTableRoot<TData, TValue>({\n data = [],\n columns,\n query,\n mode = \"client\",\n isLoading = false,\n loadingRowCount = 3,\n defaultSort,\n children,\n onTableQueryChange,\n onLoadMore,\n onRowClick,\n}: React.PropsWithChildren<DataTableProps<TData, TValue>>) {\n const defaultTableQuery = getDefaultTableQuery(defaultSort, query);\n const initialColumnVisibility = getInitialColumnVisibility(columns);\n\n const [columnVisibility, setColumnVisibility] = useState<VisibilityState>(\n initialColumnVisibility\n );\n const [tableQuery, setTableQuery] =\n useState<DataTableQuery>(defaultTableQuery);\n\n const oldQueryRef = useRef<DataTableQuery | null>(null);\n\n const reactTableState = useMemo(\n () => queryToTableState(tableQuery),\n [tableQuery]\n );\n\n
|
|
1
|
+
{"version":3,"file":"data-table.js","sources":["../../../../v1/components/data-table/data-table.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { TableContext } from \"./context\";\nimport {\n DataTableProps,\n DataTableQuery,\n GroupedData,\n TableContextType,\n TableQueryUpdateFn,\n defaultGroupOption,\n} from \"./data-table.types\";\nimport {\n VisibilityState,\n getCoreRowModel,\n getFilteredRowModel,\n getSortedRowModel,\n useReactTable,\n getExpandedRowModel,\n} from \"@tanstack/react-table\";\nimport {\n getColumnsWithFilterFn,\n getDefaultTableQuery,\n getInitialColumnVisibility,\n groupData,\n hasQueryChanged,\n queryToTableState,\n sanitizeTableQuery,\n} from \"./utils\";\nimport { Content } from \"./components/content\";\nimport { Toolbar } from \"./components/toolbar\";\nimport { TableSearch } from \"./components/search\";\n\nfunction DataTableRoot<TData, TValue>({\n data = [],\n columns,\n query,\n mode = \"client\",\n isLoading = false,\n loadingRowCount = 3,\n defaultSort,\n children,\n onTableQueryChange,\n onLoadMore,\n onRowClick,\n}: React.PropsWithChildren<DataTableProps<TData, TValue>>) {\n const defaultTableQuery = getDefaultTableQuery(defaultSort, query);\n const initialColumnVisibility = getInitialColumnVisibility(columns);\n\n const [columnVisibility, setColumnVisibility] = useState<VisibilityState>(\n initialColumnVisibility\n );\n const [tableQuery, setTableQuery] =\n useState<DataTableQuery>(defaultTableQuery);\n\n const oldQueryRef = useRef<DataTableQuery | null>(null);\n\n const reactTableState = useMemo(\n () => queryToTableState(tableQuery),\n [tableQuery]\n );\n\n const onDisplaySettingsReset = useCallback(() => {\n setTableQuery((prev) => ({ ...prev, ...defaultTableQuery }));\n setColumnVisibility(initialColumnVisibility);\n }, [defaultTableQuery, initialColumnVisibility]);\n\n const group_by = tableQuery.group_by?.[0];\n\n const columnsWithFilters = useMemo(\n () => getColumnsWithFilterFn<TData, TValue>(columns, tableQuery.filters),\n [columns, tableQuery.filters]\n );\n\n const groupedData = useMemo(\n () => groupData(data, group_by, columns),\n [data, group_by, columns]\n );\n\n useEffect(() => {\n if (\n tableQuery &&\n onTableQueryChange &&\n hasQueryChanged(oldQueryRef.current, tableQuery) &&\n mode === \"server\"\n ) {\n onTableQueryChange(sanitizeTableQuery(tableQuery));\n oldQueryRef.current = tableQuery;\n }\n }, [tableQuery, onTableQueryChange]);\n\n const table = useReactTable({\n data: groupedData as unknown as TData[],\n columns: columnsWithFilters,\n getCoreRowModel: getCoreRowModel(),\n getExpandedRowModel: getExpandedRowModel(),\n getSubRows: (row) => (row as unknown as GroupedData<TData>)?.subRows || [],\n getSortedRowModel: mode === \"server\" ? undefined : getSortedRowModel(),\n getFilteredRowModel: mode === \"server\" ? undefined : getFilteredRowModel(),\n manualSorting: mode === \"server\",\n manualFiltering: mode === \"server\",\n onColumnVisibilityChange: setColumnVisibility,\n globalFilterFn: mode === \"server\" ? undefined : \"auto\",\n initialState: {\n columnVisibility: initialColumnVisibility,\n },\n filterFromLeafRows: true,\n state: {\n ...reactTableState,\n columnVisibility: columnVisibility,\n expanded:\n group_by && group_by !== defaultGroupOption.id ? true : undefined,\n },\n });\n\n function updateTableQuery(fn: TableQueryUpdateFn) {\n setTableQuery((prev) => fn(prev));\n }\n\n const loadMoreData = useCallback(() => {\n if (mode === \"server\" && onLoadMore) {\n onLoadMore();\n }\n }, [mode, onLoadMore]);\n\n const searchQuery = query?.search;\n useEffect(() => {\n if (searchQuery) {\n updateTableQuery((prev) => ({\n ...prev,\n search: searchQuery,\n }));\n }\n }, [searchQuery]);\n\n const contextValue: TableContextType<TData, TValue> = useMemo(() => {\n return {\n table,\n columns,\n mode,\n isLoading,\n loadMoreData,\n tableQuery,\n updateTableQuery,\n onDisplaySettingsReset,\n defaultSort,\n loadingRowCount,\n onRowClick,\n };\n }, [\n table,\n columns,\n mode,\n isLoading,\n loadMoreData,\n tableQuery,\n updateTableQuery,\n onDisplaySettingsReset,\n defaultSort,\n loadingRowCount,\n onRowClick,\n ]);\n\n return (\n <TableContext.Provider value={contextValue}>\n {children}\n </TableContext.Provider>\n );\n}\n\nexport const DataTable = Object.assign(DataTableRoot, {\n Content: Content,\n Toolbar: Toolbar,\n Search: TableSearch,\n});\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;AA+BA,SAAS,aAAa,CAAgB,EACpC,IAAI,GAAG,EAAE,EACT,OAAO,EACP,KAAK,EACL,IAAI,GAAG,QAAQ,EACf,SAAS,GAAG,KAAK,EACjB,eAAe,GAAG,CAAC,EACnB,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,UAAU,EACV,U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