playbook-ui 14.14.0 → 14.15.0-alpha.play1910emptystatekitreactbeta6579
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/.vite/manifest.json +30 -30
- package/dist/chunks/_typeahead-D2Wtk1Vx.js +36 -0
- package/dist/chunks/_weekday_stacked-toeDpRDd.js +45 -0
- package/dist/chunks/lazysizes-B7xYodB-.js +1 -0
- package/dist/chunks/{lib-D3us1bGD.js → lib-5OzNgeeu.js} +2 -2
- package/dist/chunks/{pb_form_validation-BpihMSOQ.js → pb_form_validation-DGhKbZtO.js} +1 -1
- package/dist/chunks/vendor.js +1 -1
- package/dist/pb_advanced_table/Components/CustomCell.d.ts +14 -0
- package/dist/pb_advanced_table/Context/AdvancedTableContext.d.ts +7 -0
- package/dist/pb_advanced_table/Hooks/useTableActions.d.ts +15 -0
- package/dist/pb_advanced_table/Hooks/useTableState.d.ts +31 -0
- package/dist/pb_advanced_table/Utilities/CellRendererUtils.d.ts +18 -0
- package/dist/pb_advanced_table/Utilities/ExpansionControlHelpers.d.ts +3 -0
- package/dist/pb_advanced_table/Utilities/RowUtils.d.ts +18 -0
- package/dist/pb_advanced_table/Utilities/TableContainerStyles.d.ts +17 -0
- package/dist/pb_checkbox/_checkbox.d.ts +515 -0
- package/dist/pb_date_picker/index.d.ts +6 -0
- package/dist/pb_draggable/_draggable.d.ts +2 -2
- package/dist/pb_dropdown/utilities/subComponentHelper.d.ts +1 -1
- package/dist/pb_typeahead/index.d.ts +3 -0
- package/dist/playbook-doc.js +1 -1
- package/dist/playbook-rails-react-bindings.js +1 -1
- package/dist/playbook-rails.js +1 -1
- package/dist/playbook.css +1 -1
- package/dist/playbook.js +1 -1
- package/dist/utilities/object.d.ts +5 -1
- package/package.json +4 -2
- package/dist/chunks/_typeahead-PqkcDf1H.js +0 -36
- package/dist/chunks/_weekday_stacked-B_pw5Znc.js +0 -45
- package/dist/chunks/lazysizes-DHz07jlL.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as PbEnhancedElement,d as debounce}from"./lib-
|
|
1
|
+
import{P as PbEnhancedElement,d as debounce}from"./lib-5OzNgeeu.js";const KIT_SELECTOR='[class^="pb_"][class*="_kit"]';const ERROR_MESSAGE_SELECTOR=".pb_body_kit_negative";const FORM_SELECTOR='form[data-pb-form-validation="true"]';const REQUIRED_FIELDS_SELECTOR="input[required],textarea[required],select[required]";const FIELD_EVENTS=["change","valid","invalid"];class PbFormValidation extends PbEnhancedElement{static get selector(){return FORM_SELECTOR}connect(){this.formValidationFields.forEach((field=>{FIELD_EVENTS.forEach((e=>{field.addEventListener(e,debounce((event=>{this.validateFormField(event)}),250),false)}))}))}validateFormField(event){event.preventDefault();const{target:target}=event;target.setCustomValidity("");const isValid=event.target.validity.valid;if(isValid){this.clearError(target)}else{this.showValidationMessage(target)}}showValidationMessage(target){const{parentElement:parentElement}=target;this.clearError(target);parentElement.closest(KIT_SELECTOR).classList.add("error");const errorMessageContainer=this.errorMessageContainer;if(target.dataset.message)target.setCustomValidity(target.dataset.message);errorMessageContainer.innerHTML=target.validationMessage;parentElement.appendChild(errorMessageContainer)}clearError(target){const{parentElement:parentElement}=target;parentElement.closest(KIT_SELECTOR).classList.remove("error");const errorMessageContainer=parentElement.querySelector(ERROR_MESSAGE_SELECTOR);if(errorMessageContainer)errorMessageContainer.remove()}get errorMessageContainer(){const errorContainer=document.createElement("div");const kitClassName=ERROR_MESSAGE_SELECTOR.replace(/\./,"");errorContainer.classList.add(kitClassName);return errorContainer}get formValidationFields(){return this._formValidationFields=this._formValidationFields||this.element.querySelectorAll(REQUIRED_FIELDS_SELECTOR)}}window.PbFormValidation=PbFormValidation;
|
package/dist/chunks/vendor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_weekday_stacked-
|
|
1
|
+
import"./_weekday_stacked-toeDpRDd.js";import"./lazysizes-B7xYodB-.js";import"./_typeahead-D2Wtk1Vx.js";import"./lib-5OzNgeeu.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-trix";import"trix";import"react-is";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Getter, Row } from "@tanstack/react-table";
|
|
3
|
+
import { GenericObject } from "../../types";
|
|
4
|
+
import { GlobalProps } from "../../utilities/globalProps";
|
|
5
|
+
interface CustomCellProps {
|
|
6
|
+
getValue?: Getter<string>;
|
|
7
|
+
onRowToggleClick?: (arg: Row<GenericObject>) => void;
|
|
8
|
+
row: Row<GenericObject>;
|
|
9
|
+
value?: string;
|
|
10
|
+
customRenderer?: (row: Row<GenericObject>, value: string | undefined) => React.ReactNode;
|
|
11
|
+
selectableRows?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const CustomCell: ({ getValue, onRowToggleClick, row, value, customRenderer, selectableRows, }: CustomCellProps & GlobalProps) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const AdvancedTableContext: React.Context<any>;
|
|
3
|
+
export declare const AdvancedTableProvider: ({ children, ...props }: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}) => JSX.Element;
|
|
7
|
+
export default AdvancedTableContext;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Row } from "@tanstack/react-table";
|
|
2
|
+
import { GenericObject } from "../../types";
|
|
3
|
+
interface UseTableActionsProps {
|
|
4
|
+
table: any;
|
|
5
|
+
expanded: GenericObject;
|
|
6
|
+
setExpanded: (expanded: GenericObject) => void;
|
|
7
|
+
onToggleExpansionClick?: (arg: Row<GenericObject>) => void;
|
|
8
|
+
onRowSelectionChange?: (rowSelection: any) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function useTableActions({ table, expanded, setExpanded, onToggleExpansionClick, onRowSelectionChange }: UseTableActionsProps): {
|
|
11
|
+
handleExpandOrCollapse: (row: Row<GenericObject>) => Promise<void>;
|
|
12
|
+
onPageChange: (page: number) => void;
|
|
13
|
+
fetchMoreOnBottomReached: (containerRefElement: HTMLDivElement | null, fetchNextPage: () => void, isFetching: boolean, totalFetched: number, totalDBRowCount: number) => void;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { RowSelectionState, Row } from "@tanstack/react-table";
|
|
2
|
+
import { GenericObject } from "../../types";
|
|
3
|
+
interface UseTableStateProps {
|
|
4
|
+
tableData: GenericObject[];
|
|
5
|
+
columnDefinitions: GenericObject[];
|
|
6
|
+
expandedControl?: GenericObject;
|
|
7
|
+
sortControl?: GenericObject;
|
|
8
|
+
onRowToggleClick?: (arg: Row<GenericObject>) => void;
|
|
9
|
+
selectableRows?: boolean;
|
|
10
|
+
initialLoadingRowsCount?: number;
|
|
11
|
+
loading?: boolean | string;
|
|
12
|
+
pagination?: boolean;
|
|
13
|
+
paginationProps?: GenericObject;
|
|
14
|
+
virtualizedRows?: boolean;
|
|
15
|
+
tableOptions?: GenericObject;
|
|
16
|
+
onRowSelectionChange?: (arg: RowSelectionState) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function useTableState({ tableData, columnDefinitions, expandedControl, sortControl, onRowToggleClick, selectableRows, initialLoadingRowsCount, loading, pagination, paginationProps, virtualizedRows, tableOptions }: UseTableStateProps): {
|
|
19
|
+
table: import("@tanstack/react-table").Table<any>;
|
|
20
|
+
expanded: any;
|
|
21
|
+
setExpanded: any;
|
|
22
|
+
hasAnySubRows: boolean;
|
|
23
|
+
selectedRowsLength: number;
|
|
24
|
+
fetchNextPage: () => void;
|
|
25
|
+
updateLoadingStateRowCount: () => void;
|
|
26
|
+
rowSelection: RowSelectionState;
|
|
27
|
+
fullData: GenericObject[];
|
|
28
|
+
totalFetched: number;
|
|
29
|
+
isFetching: boolean;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Row, Getter } from "@tanstack/react-table";
|
|
2
|
+
import { GenericObject } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Creates a cell render function for table columns
|
|
5
|
+
*
|
|
6
|
+
* @param cellAccessors Array of accessors to use based on row depth
|
|
7
|
+
* @param customRenderer Optional custom renderer function
|
|
8
|
+
* @param isFirstColumn Whether this is the first column (special handling)
|
|
9
|
+
* @param onRowToggleClick Optional callback for row toggle
|
|
10
|
+
* @param selectableRows Whether rows are selectable
|
|
11
|
+
*/
|
|
12
|
+
export declare const createCellFunction: (cellAccessors: string[], customRenderer?: (row: Row<GenericObject>, value: any) => JSX.Element, isFirstColumn?: boolean, onRowToggleClick?: (row: Row<GenericObject>) => void, selectableRows?: boolean) => {
|
|
13
|
+
({ row, getValue, }: {
|
|
14
|
+
row: Row<GenericObject>;
|
|
15
|
+
getValue: Getter<string>;
|
|
16
|
+
}): string | JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Row } from "@tanstack/react-table";
|
|
2
|
+
import { GenericObject } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Determines the background color class for a row
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRowColorClass: (row: Row<GenericObject>, inlineRowLoading: boolean) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Determines if loading indicator should be shown for a row
|
|
9
|
+
*/
|
|
10
|
+
export declare const shouldShowLoadingIndicator: (row: Row<GenericObject>, inlineRowLoading: boolean, cellAccessorsLength: number) => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a virtual item style object for virtualized rows
|
|
13
|
+
*/
|
|
14
|
+
export declare const createVirtualItemStyle: (startPosition: number) => React.CSSProperties;
|
|
15
|
+
/**
|
|
16
|
+
* Calculates padding left based on row depth
|
|
17
|
+
*/
|
|
18
|
+
export declare const getDepthPaddingLeft: (depth: number) => string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions to generate styles for table container
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Creates styles for a virtualized table container
|
|
6
|
+
* These styles are critical for the virtualizer to work properly
|
|
7
|
+
*/
|
|
8
|
+
export declare const getVirtualizedContainerStyles: (maxHeight?: string) => React.CSSProperties;
|
|
9
|
+
/**
|
|
10
|
+
* Creates consistent row styles for virtualized table rows
|
|
11
|
+
* Matches the virtualized row height to the standard table
|
|
12
|
+
*/
|
|
13
|
+
export declare const getVirtualizedRowStyle: (startPosition: number) => React.CSSProperties;
|
|
14
|
+
/**
|
|
15
|
+
* Get height estimates for different row types
|
|
16
|
+
*/
|
|
17
|
+
export declare const getRowHeightEstimate: (rowType: 'header' | 'row' | 'loading') => 40 | 30;
|
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Checkbox: React.ForwardRefExoticComponent<(Pick<{
|
|
3
|
+
aria?: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
children?: React.ReactChild[] | React.ReactChild;
|
|
8
|
+
className?: string;
|
|
9
|
+
dark?: boolean;
|
|
10
|
+
data?: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
error?: boolean;
|
|
15
|
+
htmlOptions?: {
|
|
16
|
+
[key: string]: string | number | boolean | (() => void);
|
|
17
|
+
};
|
|
18
|
+
id?: string;
|
|
19
|
+
indeterminate?: boolean;
|
|
20
|
+
name?: string;
|
|
21
|
+
onChange?: (event: React.FormEvent<HTMLInputElement>) => void;
|
|
22
|
+
tabIndex?: number;
|
|
23
|
+
text?: string;
|
|
24
|
+
value?: string;
|
|
25
|
+
} & {
|
|
26
|
+
alignContent?: never;
|
|
27
|
+
} & {
|
|
28
|
+
alignItems?: ("start" | "end" | "center") | "flexStart" | "flexEnd" | "stretch" | "baseline";
|
|
29
|
+
} & {
|
|
30
|
+
alignSelf?: never;
|
|
31
|
+
} & {
|
|
32
|
+
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "rounded";
|
|
33
|
+
} & {
|
|
34
|
+
cursor?: "default" | "none" | "auto" | "contextMenu" | "help" | "pointer" | "progress" | "wait" | "cell" | "crosshair" | "text" | "verticalText" | "alias" | "copy" | "move" | "noDrop" | "notAllowed" | "grab" | "grabbing" | "eResize" | "nResize" | "neResize" | "nwResize" | "sResize" | "seResize" | "swResize" | "wResize" | "ewResize" | "nsResize" | "neswResize" | "nwseResize" | "colResize" | "rowResize" | "allScroll" | "zoomIn" | "zoomOut";
|
|
35
|
+
} & {
|
|
36
|
+
dark?: boolean;
|
|
37
|
+
} & {
|
|
38
|
+
display?: import("../types").DisplayType;
|
|
39
|
+
} & import("../types").DisplaySizes & {
|
|
40
|
+
flex?: "none" | "auto" | "initial" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
41
|
+
} & {
|
|
42
|
+
flexDirection?: "row" | "column" | "rowReverse" | "columnReverse";
|
|
43
|
+
} & {
|
|
44
|
+
flexGrow?: 0 | 1;
|
|
45
|
+
} & {
|
|
46
|
+
flexShrink?: 0 | 1;
|
|
47
|
+
} & {
|
|
48
|
+
flexWrap?: "wrap" | "nowrap" | "wrapReverse";
|
|
49
|
+
} & {
|
|
50
|
+
justifyContent?: never;
|
|
51
|
+
} & {
|
|
52
|
+
justifySelf?: never;
|
|
53
|
+
} & {
|
|
54
|
+
lineHeight?: "loosest" | "looser" | "loose" | "normal" | "tight" | "tighter" | "tightest";
|
|
55
|
+
} & {
|
|
56
|
+
marginRight?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
57
|
+
marginLeft?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
58
|
+
marginTop?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
59
|
+
marginBottom?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
60
|
+
marginX?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
61
|
+
marginY?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
62
|
+
margin?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
63
|
+
break?: string;
|
|
64
|
+
default?: string;
|
|
65
|
+
} & {
|
|
66
|
+
width?: string;
|
|
67
|
+
} & {
|
|
68
|
+
minWidth?: string;
|
|
69
|
+
} & {
|
|
70
|
+
maxWidth?: string;
|
|
71
|
+
} & {
|
|
72
|
+
gap?: string;
|
|
73
|
+
} & {
|
|
74
|
+
numberSpacing?: "tabular";
|
|
75
|
+
} & {
|
|
76
|
+
order?: 1 | 2 | "none" | "first" | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
77
|
+
} & {
|
|
78
|
+
overflowX?: "auto" | "scroll" | "visible" | "hidden";
|
|
79
|
+
overflowY?: "auto" | "scroll" | "visible" | "hidden";
|
|
80
|
+
overflow?: "auto" | "scroll" | "visible" | "hidden";
|
|
81
|
+
} & {
|
|
82
|
+
paddingRight?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
83
|
+
paddingLeft?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
84
|
+
paddingTop?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
85
|
+
paddingBottom?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
86
|
+
paddingX?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
87
|
+
paddingY?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
88
|
+
padding?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
89
|
+
break?: string;
|
|
90
|
+
default?: string;
|
|
91
|
+
} & {
|
|
92
|
+
position?: "relative" | "absolute" | "fixed" | "sticky" | "static";
|
|
93
|
+
} & {
|
|
94
|
+
shadow?: "none" | "deep" | "deeper" | "deepest";
|
|
95
|
+
} & {
|
|
96
|
+
textAlign?: "start" | "end" | "center" | "left" | "right" | "justify" | "justifyAll" | "matchParent";
|
|
97
|
+
} & {
|
|
98
|
+
truncate?: 1 | 2 | "none" | 3 | 4 | 5;
|
|
99
|
+
} & {
|
|
100
|
+
verticalAlign?: "baseline" | "super" | "top" | "middle" | "bottom" | "sub" | "text-top" | "text-bottom";
|
|
101
|
+
} & {
|
|
102
|
+
[key: string]: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
103
|
+
} & {
|
|
104
|
+
hover?: string;
|
|
105
|
+
} & {
|
|
106
|
+
top?: import("../types").Sizes | {
|
|
107
|
+
value: string;
|
|
108
|
+
inset: boolean;
|
|
109
|
+
};
|
|
110
|
+
} & {
|
|
111
|
+
right?: import("../types").Sizes | {
|
|
112
|
+
value: string;
|
|
113
|
+
inset: boolean;
|
|
114
|
+
};
|
|
115
|
+
} & {
|
|
116
|
+
bottom?: import("../types").Sizes | {
|
|
117
|
+
value: string;
|
|
118
|
+
inset: boolean;
|
|
119
|
+
};
|
|
120
|
+
} & {
|
|
121
|
+
left?: import("../types").Sizes | {
|
|
122
|
+
value: string;
|
|
123
|
+
inset: boolean;
|
|
124
|
+
};
|
|
125
|
+
} & {
|
|
126
|
+
height?: string;
|
|
127
|
+
} & {
|
|
128
|
+
maxHeight?: string;
|
|
129
|
+
} & {
|
|
130
|
+
minHeight?: string;
|
|
131
|
+
}, string | number> | Pick<{
|
|
132
|
+
aria?: {
|
|
133
|
+
[key: string]: string;
|
|
134
|
+
};
|
|
135
|
+
checked?: boolean;
|
|
136
|
+
children?: React.ReactChild[] | React.ReactChild;
|
|
137
|
+
className?: string;
|
|
138
|
+
dark?: boolean;
|
|
139
|
+
data?: {
|
|
140
|
+
[key: string]: string;
|
|
141
|
+
};
|
|
142
|
+
disabled?: boolean;
|
|
143
|
+
error?: boolean;
|
|
144
|
+
htmlOptions?: {
|
|
145
|
+
[key: string]: string | number | boolean | (() => void);
|
|
146
|
+
};
|
|
147
|
+
id?: string;
|
|
148
|
+
indeterminate?: boolean;
|
|
149
|
+
name?: string;
|
|
150
|
+
onChange?: (event: React.FormEvent<HTMLInputElement>) => void;
|
|
151
|
+
tabIndex?: number;
|
|
152
|
+
text?: string;
|
|
153
|
+
value?: string;
|
|
154
|
+
} & {
|
|
155
|
+
alignContent?: never;
|
|
156
|
+
} & {
|
|
157
|
+
alignItems?: ("start" | "end" | "center") | "flexStart" | "flexEnd" | "stretch" | "baseline";
|
|
158
|
+
} & {
|
|
159
|
+
alignSelf?: never;
|
|
160
|
+
} & {
|
|
161
|
+
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "rounded";
|
|
162
|
+
} & {
|
|
163
|
+
cursor?: "default" | "none" | "auto" | "contextMenu" | "help" | "pointer" | "progress" | "wait" | "cell" | "crosshair" | "text" | "verticalText" | "alias" | "copy" | "move" | "noDrop" | "notAllowed" | "grab" | "grabbing" | "eResize" | "nResize" | "neResize" | "nwResize" | "sResize" | "seResize" | "swResize" | "wResize" | "ewResize" | "nsResize" | "neswResize" | "nwseResize" | "colResize" | "rowResize" | "allScroll" | "zoomIn" | "zoomOut";
|
|
164
|
+
} & {
|
|
165
|
+
dark?: boolean;
|
|
166
|
+
} & {
|
|
167
|
+
display?: import("../types").DisplayType;
|
|
168
|
+
} & import("../types").DisplaySizes & {
|
|
169
|
+
flex?: "none" | "auto" | "initial" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
170
|
+
} & {
|
|
171
|
+
flexDirection?: "row" | "column" | "rowReverse" | "columnReverse";
|
|
172
|
+
} & {
|
|
173
|
+
flexGrow?: 0 | 1;
|
|
174
|
+
} & {
|
|
175
|
+
flexShrink?: 0 | 1;
|
|
176
|
+
} & {
|
|
177
|
+
flexWrap?: "wrap" | "nowrap" | "wrapReverse";
|
|
178
|
+
} & {
|
|
179
|
+
justifyContent?: never;
|
|
180
|
+
} & {
|
|
181
|
+
justifySelf?: never;
|
|
182
|
+
} & {
|
|
183
|
+
lineHeight?: "loosest" | "looser" | "loose" | "normal" | "tight" | "tighter" | "tightest";
|
|
184
|
+
} & {
|
|
185
|
+
marginRight?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
186
|
+
marginLeft?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
187
|
+
marginTop?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
188
|
+
marginBottom?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
189
|
+
marginX?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
190
|
+
marginY?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
191
|
+
margin?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
192
|
+
break?: string;
|
|
193
|
+
default?: string;
|
|
194
|
+
} & {
|
|
195
|
+
width?: string;
|
|
196
|
+
} & {
|
|
197
|
+
minWidth?: string;
|
|
198
|
+
} & {
|
|
199
|
+
maxWidth?: string;
|
|
200
|
+
} & {
|
|
201
|
+
gap?: string;
|
|
202
|
+
} & {
|
|
203
|
+
numberSpacing?: "tabular";
|
|
204
|
+
} & {
|
|
205
|
+
order?: 1 | 2 | "none" | "first" | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
206
|
+
} & {
|
|
207
|
+
overflowX?: "auto" | "scroll" | "visible" | "hidden";
|
|
208
|
+
overflowY?: "auto" | "scroll" | "visible" | "hidden";
|
|
209
|
+
overflow?: "auto" | "scroll" | "visible" | "hidden";
|
|
210
|
+
} & {
|
|
211
|
+
paddingRight?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
212
|
+
paddingLeft?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
213
|
+
paddingTop?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
214
|
+
paddingBottom?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
215
|
+
paddingX?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
216
|
+
paddingY?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
217
|
+
padding?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
218
|
+
break?: string;
|
|
219
|
+
default?: string;
|
|
220
|
+
} & {
|
|
221
|
+
position?: "relative" | "absolute" | "fixed" | "sticky" | "static";
|
|
222
|
+
} & {
|
|
223
|
+
shadow?: "none" | "deep" | "deeper" | "deepest";
|
|
224
|
+
} & {
|
|
225
|
+
textAlign?: "start" | "end" | "center" | "left" | "right" | "justify" | "justifyAll" | "matchParent";
|
|
226
|
+
} & {
|
|
227
|
+
truncate?: 1 | 2 | "none" | 3 | 4 | 5;
|
|
228
|
+
} & {
|
|
229
|
+
verticalAlign?: "baseline" | "super" | "top" | "middle" | "bottom" | "sub" | "text-top" | "text-bottom";
|
|
230
|
+
} & {
|
|
231
|
+
zIndex?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
232
|
+
} & {
|
|
233
|
+
hover?: string;
|
|
234
|
+
} & {
|
|
235
|
+
top?: import("../types").Sizes | {
|
|
236
|
+
value: string;
|
|
237
|
+
inset: boolean;
|
|
238
|
+
};
|
|
239
|
+
} & {
|
|
240
|
+
right?: import("../types").Sizes | {
|
|
241
|
+
value: string;
|
|
242
|
+
inset: boolean;
|
|
243
|
+
};
|
|
244
|
+
} & {
|
|
245
|
+
bottom?: import("../types").Sizes | {
|
|
246
|
+
value: string;
|
|
247
|
+
inset: boolean;
|
|
248
|
+
};
|
|
249
|
+
} & {
|
|
250
|
+
left?: import("../types").Sizes | {
|
|
251
|
+
value: string;
|
|
252
|
+
inset: boolean;
|
|
253
|
+
};
|
|
254
|
+
} & {
|
|
255
|
+
height?: string;
|
|
256
|
+
} & {
|
|
257
|
+
maxHeight?: string;
|
|
258
|
+
} & {
|
|
259
|
+
minHeight?: string;
|
|
260
|
+
}, string | number> | Pick<{
|
|
261
|
+
aria?: {
|
|
262
|
+
[key: string]: string;
|
|
263
|
+
};
|
|
264
|
+
checked?: boolean;
|
|
265
|
+
children?: React.ReactChild[] | React.ReactChild;
|
|
266
|
+
className?: string;
|
|
267
|
+
dark?: boolean;
|
|
268
|
+
data?: {
|
|
269
|
+
[key: string]: string;
|
|
270
|
+
};
|
|
271
|
+
disabled?: boolean;
|
|
272
|
+
error?: boolean;
|
|
273
|
+
htmlOptions?: {
|
|
274
|
+
[key: string]: string | number | boolean | (() => void);
|
|
275
|
+
};
|
|
276
|
+
id?: string;
|
|
277
|
+
indeterminate?: boolean;
|
|
278
|
+
name?: string;
|
|
279
|
+
onChange?: (event: React.FormEvent<HTMLInputElement>) => void;
|
|
280
|
+
tabIndex?: number;
|
|
281
|
+
text?: string;
|
|
282
|
+
value?: string;
|
|
283
|
+
} & {
|
|
284
|
+
alignContent?: never;
|
|
285
|
+
} & {
|
|
286
|
+
alignItems?: ("start" | "end" | "center") | "flexStart" | "flexEnd" | "stretch" | "baseline";
|
|
287
|
+
} & {
|
|
288
|
+
alignSelf?: never;
|
|
289
|
+
} & {
|
|
290
|
+
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "rounded";
|
|
291
|
+
} & {
|
|
292
|
+
cursor?: "default" | "none" | "auto" | "contextMenu" | "help" | "pointer" | "progress" | "wait" | "cell" | "crosshair" | "text" | "verticalText" | "alias" | "copy" | "move" | "noDrop" | "notAllowed" | "grab" | "grabbing" | "eResize" | "nResize" | "neResize" | "nwResize" | "sResize" | "seResize" | "swResize" | "wResize" | "ewResize" | "nsResize" | "neswResize" | "nwseResize" | "colResize" | "rowResize" | "allScroll" | "zoomIn" | "zoomOut";
|
|
293
|
+
} & {
|
|
294
|
+
dark?: boolean;
|
|
295
|
+
} & import("../types").DisplaySizes & {
|
|
296
|
+
flex?: "none" | "auto" | "initial" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
297
|
+
} & {
|
|
298
|
+
flexDirection?: "row" | "column" | "rowReverse" | "columnReverse";
|
|
299
|
+
} & {
|
|
300
|
+
flexGrow?: 0 | 1;
|
|
301
|
+
} & {
|
|
302
|
+
flexShrink?: 0 | 1;
|
|
303
|
+
} & {
|
|
304
|
+
flexWrap?: "wrap" | "nowrap" | "wrapReverse";
|
|
305
|
+
} & {
|
|
306
|
+
justifyContent?: never;
|
|
307
|
+
} & {
|
|
308
|
+
justifySelf?: never;
|
|
309
|
+
} & {
|
|
310
|
+
lineHeight?: "loosest" | "looser" | "loose" | "normal" | "tight" | "tighter" | "tightest";
|
|
311
|
+
} & {
|
|
312
|
+
marginRight?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
313
|
+
marginLeft?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
314
|
+
marginTop?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
315
|
+
marginBottom?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
316
|
+
marginX?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
317
|
+
marginY?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
318
|
+
margin?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
319
|
+
break?: string;
|
|
320
|
+
default?: string;
|
|
321
|
+
} & {
|
|
322
|
+
width?: string;
|
|
323
|
+
} & {
|
|
324
|
+
minWidth?: string;
|
|
325
|
+
} & {
|
|
326
|
+
maxWidth?: string;
|
|
327
|
+
} & {
|
|
328
|
+
gap?: string;
|
|
329
|
+
} & {
|
|
330
|
+
numberSpacing?: "tabular";
|
|
331
|
+
} & {
|
|
332
|
+
order?: 1 | 2 | "none" | "first" | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
333
|
+
} & {
|
|
334
|
+
overflowX?: "auto" | "scroll" | "visible" | "hidden";
|
|
335
|
+
overflowY?: "auto" | "scroll" | "visible" | "hidden";
|
|
336
|
+
overflow?: "auto" | "scroll" | "visible" | "hidden";
|
|
337
|
+
} & {
|
|
338
|
+
paddingRight?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
339
|
+
paddingLeft?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
340
|
+
paddingTop?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
341
|
+
paddingBottom?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
342
|
+
paddingX?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
343
|
+
paddingY?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
344
|
+
padding?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
345
|
+
break?: string;
|
|
346
|
+
default?: string;
|
|
347
|
+
} & {
|
|
348
|
+
position?: "relative" | "absolute" | "fixed" | "sticky" | "static";
|
|
349
|
+
} & {
|
|
350
|
+
shadow?: "none" | "deep" | "deeper" | "deepest";
|
|
351
|
+
} & {
|
|
352
|
+
textAlign?: "start" | "end" | "center" | "left" | "right" | "justify" | "justifyAll" | "matchParent";
|
|
353
|
+
} & {
|
|
354
|
+
truncate?: 1 | 2 | "none" | 3 | 4 | 5;
|
|
355
|
+
} & {
|
|
356
|
+
verticalAlign?: "baseline" | "super" | "top" | "middle" | "bottom" | "sub" | "text-top" | "text-bottom";
|
|
357
|
+
} & {
|
|
358
|
+
[key: string]: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
359
|
+
} & {
|
|
360
|
+
hover?: string;
|
|
361
|
+
} & {
|
|
362
|
+
top?: import("../types").Sizes | {
|
|
363
|
+
value: string;
|
|
364
|
+
inset: boolean;
|
|
365
|
+
};
|
|
366
|
+
} & {
|
|
367
|
+
right?: import("../types").Sizes | {
|
|
368
|
+
value: string;
|
|
369
|
+
inset: boolean;
|
|
370
|
+
};
|
|
371
|
+
} & {
|
|
372
|
+
bottom?: import("../types").Sizes | {
|
|
373
|
+
value: string;
|
|
374
|
+
inset: boolean;
|
|
375
|
+
};
|
|
376
|
+
} & {
|
|
377
|
+
left?: import("../types").Sizes | {
|
|
378
|
+
value: string;
|
|
379
|
+
inset: boolean;
|
|
380
|
+
};
|
|
381
|
+
} & {
|
|
382
|
+
height?: string;
|
|
383
|
+
} & {
|
|
384
|
+
maxHeight?: string;
|
|
385
|
+
} & {
|
|
386
|
+
minHeight?: string;
|
|
387
|
+
}, string | number> | Pick<{
|
|
388
|
+
aria?: {
|
|
389
|
+
[key: string]: string;
|
|
390
|
+
};
|
|
391
|
+
checked?: boolean;
|
|
392
|
+
children?: React.ReactChild[] | React.ReactChild;
|
|
393
|
+
className?: string;
|
|
394
|
+
dark?: boolean;
|
|
395
|
+
data?: {
|
|
396
|
+
[key: string]: string;
|
|
397
|
+
};
|
|
398
|
+
disabled?: boolean;
|
|
399
|
+
error?: boolean;
|
|
400
|
+
htmlOptions?: {
|
|
401
|
+
[key: string]: string | number | boolean | (() => void);
|
|
402
|
+
};
|
|
403
|
+
id?: string;
|
|
404
|
+
indeterminate?: boolean;
|
|
405
|
+
name?: string;
|
|
406
|
+
onChange?: (event: React.FormEvent<HTMLInputElement>) => void;
|
|
407
|
+
tabIndex?: number;
|
|
408
|
+
text?: string;
|
|
409
|
+
value?: string;
|
|
410
|
+
} & {
|
|
411
|
+
alignContent?: never;
|
|
412
|
+
} & {
|
|
413
|
+
alignItems?: ("start" | "end" | "center") | "flexStart" | "flexEnd" | "stretch" | "baseline";
|
|
414
|
+
} & {
|
|
415
|
+
alignSelf?: never;
|
|
416
|
+
} & {
|
|
417
|
+
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "rounded";
|
|
418
|
+
} & {
|
|
419
|
+
cursor?: "default" | "none" | "auto" | "contextMenu" | "help" | "pointer" | "progress" | "wait" | "cell" | "crosshair" | "text" | "verticalText" | "alias" | "copy" | "move" | "noDrop" | "notAllowed" | "grab" | "grabbing" | "eResize" | "nResize" | "neResize" | "nwResize" | "sResize" | "seResize" | "swResize" | "wResize" | "ewResize" | "nsResize" | "neswResize" | "nwseResize" | "colResize" | "rowResize" | "allScroll" | "zoomIn" | "zoomOut";
|
|
420
|
+
} & {
|
|
421
|
+
dark?: boolean;
|
|
422
|
+
} & import("../types").DisplaySizes & {
|
|
423
|
+
flex?: "none" | "auto" | "initial" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
424
|
+
} & {
|
|
425
|
+
flexDirection?: "row" | "column" | "rowReverse" | "columnReverse";
|
|
426
|
+
} & {
|
|
427
|
+
flexGrow?: 0 | 1;
|
|
428
|
+
} & {
|
|
429
|
+
flexShrink?: 0 | 1;
|
|
430
|
+
} & {
|
|
431
|
+
flexWrap?: "wrap" | "nowrap" | "wrapReverse";
|
|
432
|
+
} & {
|
|
433
|
+
justifyContent?: never;
|
|
434
|
+
} & {
|
|
435
|
+
justifySelf?: never;
|
|
436
|
+
} & {
|
|
437
|
+
lineHeight?: "loosest" | "looser" | "loose" | "normal" | "tight" | "tighter" | "tightest";
|
|
438
|
+
} & {
|
|
439
|
+
marginRight?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
440
|
+
marginLeft?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
441
|
+
marginTop?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
442
|
+
marginBottom?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
443
|
+
marginX?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
444
|
+
marginY?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
445
|
+
margin?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
446
|
+
break?: string;
|
|
447
|
+
default?: string;
|
|
448
|
+
} & {
|
|
449
|
+
width?: string;
|
|
450
|
+
} & {
|
|
451
|
+
minWidth?: string;
|
|
452
|
+
} & {
|
|
453
|
+
maxWidth?: string;
|
|
454
|
+
} & {
|
|
455
|
+
gap?: string;
|
|
456
|
+
} & {
|
|
457
|
+
numberSpacing?: "tabular";
|
|
458
|
+
} & {
|
|
459
|
+
order?: 1 | 2 | "none" | "first" | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
460
|
+
} & {
|
|
461
|
+
overflowX?: "auto" | "scroll" | "visible" | "hidden";
|
|
462
|
+
overflowY?: "auto" | "scroll" | "visible" | "hidden";
|
|
463
|
+
overflow?: "auto" | "scroll" | "visible" | "hidden";
|
|
464
|
+
} & {
|
|
465
|
+
paddingRight?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
466
|
+
paddingLeft?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
467
|
+
paddingTop?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
468
|
+
paddingBottom?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
469
|
+
paddingX?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
470
|
+
paddingY?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
471
|
+
padding?: "none" | import("../types").Sizes | "auto" | "initial" | "inherit";
|
|
472
|
+
break?: string;
|
|
473
|
+
default?: string;
|
|
474
|
+
} & {
|
|
475
|
+
position?: "relative" | "absolute" | "fixed" | "sticky" | "static";
|
|
476
|
+
} & {
|
|
477
|
+
shadow?: "none" | "deep" | "deeper" | "deepest";
|
|
478
|
+
} & {
|
|
479
|
+
textAlign?: "start" | "end" | "center" | "left" | "right" | "justify" | "justifyAll" | "matchParent";
|
|
480
|
+
} & {
|
|
481
|
+
truncate?: 1 | 2 | "none" | 3 | 4 | 5;
|
|
482
|
+
} & {
|
|
483
|
+
verticalAlign?: "baseline" | "super" | "top" | "middle" | "bottom" | "sub" | "text-top" | "text-bottom";
|
|
484
|
+
} & {
|
|
485
|
+
zIndex?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
486
|
+
} & {
|
|
487
|
+
hover?: string;
|
|
488
|
+
} & {
|
|
489
|
+
top?: import("../types").Sizes | {
|
|
490
|
+
value: string;
|
|
491
|
+
inset: boolean;
|
|
492
|
+
};
|
|
493
|
+
} & {
|
|
494
|
+
right?: import("../types").Sizes | {
|
|
495
|
+
value: string;
|
|
496
|
+
inset: boolean;
|
|
497
|
+
};
|
|
498
|
+
} & {
|
|
499
|
+
bottom?: import("../types").Sizes | {
|
|
500
|
+
value: string;
|
|
501
|
+
inset: boolean;
|
|
502
|
+
};
|
|
503
|
+
} & {
|
|
504
|
+
left?: import("../types").Sizes | {
|
|
505
|
+
value: string;
|
|
506
|
+
inset: boolean;
|
|
507
|
+
};
|
|
508
|
+
} & {
|
|
509
|
+
height?: string;
|
|
510
|
+
} & {
|
|
511
|
+
maxHeight?: string;
|
|
512
|
+
} & {
|
|
513
|
+
minHeight?: string;
|
|
514
|
+
}, string | number>) & React.RefAttributes<HTMLInputElement>>;
|
|
515
|
+
export default Checkbox;
|