@stokelp/ui 1.21.0 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/drawer/Drawer.d.ts +4 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/table/Table.d.ts +36 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/theme/recipes/index.d.ts +4 -0
- package/dist/theme/recipes/table-container.d.ts +2 -0
- package/dist/theme/recipes/table-empty-row.d.ts +2 -0
- package/dist/theme/recipes/table-group-title.d.ts +2 -0
- package/dist/theme/recipes/table.d.ts +2 -0
- package/dist/ui.cjs +3 -3
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.js +533 -376
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dialog as ArkDrawer, PolymorphicProps } from '@ark-ui/react';
|
|
2
|
-
import { ComponentProps, ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES, RefObject, RefAttributes } from 'react';
|
|
2
|
+
import { ComponentProps, ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES, RefObject, RefAttributes, ReactNode } from 'react';
|
|
3
3
|
import { ComponentVariants } from '../../utils/slots';
|
|
4
4
|
import { DrawerRecipe } from '@stokelp/styled-system/recipes';
|
|
5
5
|
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
@@ -22,6 +22,7 @@ export declare const DrawerTrigger: StyledComponent<ForwardRefExoticComponent<Ar
|
|
|
22
22
|
declare const DrawerPositioner: StyledComponent<ForwardRefExoticComponent<ArkDrawer.PositionerProps & RefAttributes<HTMLDivElement>>, {}>;
|
|
23
23
|
declare const DrawerBackdrop: StyledComponent<ForwardRefExoticComponent<ArkDrawer.BackdropProps & RefAttributes<HTMLDivElement>>, {}>;
|
|
24
24
|
export declare const DrawerContent: StyledComponent<ForwardRefExoticComponent<Omit<ArkDrawer.ContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>, {}>;
|
|
25
|
+
export declare const DrawerContext: (props: ArkDrawer.ContextProps) => ReactNode;
|
|
25
26
|
export interface DrawerProps extends ComponentProps<typeof Drawer> {
|
|
26
27
|
}
|
|
27
28
|
export interface DrawerBackdropProps extends ComponentProps<typeof DrawerBackdrop> {
|
|
@@ -42,4 +43,6 @@ export interface DrawerTitleProps extends ComponentProps<typeof DrawerTitle> {
|
|
|
42
43
|
}
|
|
43
44
|
export interface DrawerTriggerProps extends ComponentProps<typeof DrawerTrigger> {
|
|
44
45
|
}
|
|
46
|
+
export interface DrawerContextProps extends ComponentProps<typeof DrawerContext> {
|
|
47
|
+
}
|
|
45
48
|
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ComponentProps, FC, ReactNode } from 'react';
|
|
2
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
+
import { TableContainerVariantProps, TableRecipe, TableGroupTitleVariantProps, TableEmptyRowVariantProps } from '@stokelp/styled-system/recipes';
|
|
4
|
+
import { ComponentVariants } from '../../utils/slots';
|
|
5
|
+
|
|
6
|
+
export declare const TableContainer: StyledComponent<"div", TableContainerVariantProps>;
|
|
7
|
+
export declare const Table: ComponentVariants<StyledComponent<"table", {}>, TableRecipe>;
|
|
8
|
+
export declare const Thead: StyledComponent<"thead", {}>;
|
|
9
|
+
export declare const Tbody: StyledComponent<"tbody", {}>;
|
|
10
|
+
export declare const Tr: StyledComponent<"tr", {}>;
|
|
11
|
+
declare const StyledTh: StyledComponent<"th", {}>;
|
|
12
|
+
type StyledThProps = ComponentProps<typeof StyledTh>;
|
|
13
|
+
export interface ThProps extends StyledThProps {
|
|
14
|
+
addon?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const Th: FC<ThProps>;
|
|
17
|
+
export declare const Td: StyledComponent<"td", {}>;
|
|
18
|
+
declare const StyledTableGroupTitle: StyledComponent<"td", TableGroupTitleVariantProps>;
|
|
19
|
+
export type TableGroupTitleProps = ComponentProps<typeof StyledTableGroupTitle>;
|
|
20
|
+
export declare const TableGroupTitle: FC<TableGroupTitleProps>;
|
|
21
|
+
declare const StyledTableEmptyRow: StyledComponent<"td", TableEmptyRowVariantProps>;
|
|
22
|
+
export type TableEmptyRowProps = ComponentProps<typeof StyledTableEmptyRow>;
|
|
23
|
+
export declare const TableEmptyRow: FC<TableEmptyRowProps>;
|
|
24
|
+
export interface TableProps extends ComponentProps<typeof Table> {
|
|
25
|
+
}
|
|
26
|
+
export interface TheadProps extends ComponentProps<typeof Thead> {
|
|
27
|
+
}
|
|
28
|
+
export interface TbodyProps extends ComponentProps<typeof Tbody> {
|
|
29
|
+
}
|
|
30
|
+
export interface TrProps extends ComponentProps<typeof Tr> {
|
|
31
|
+
}
|
|
32
|
+
export interface TdProps extends ComponentProps<typeof Td> {
|
|
33
|
+
}
|
|
34
|
+
export interface TableContainerProps extends ComponentProps<typeof TableContainer> {
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Table';
|