@s-works/s-works-ui 0.0.1 → 0.0.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/README.md +3 -3
- package/cjs/standard/index.cjs +2633 -6
- package/esm/standard/index.mjs +2633 -6
- package/package.json +3 -5
- package/tailwind.css +1598 -2
- package/tailwind.layer.css +1598 -2
- package/types/standard/components/Alert/Alert.d.ts +397 -0
- package/types/standard/components/Alert/icons.d.ts +58 -0
- package/types/standard/components/AppShell/AppShell.d.ts +31 -0
- package/types/standard/components/AppShell/AppShellTaskItem.d.ts +26 -0
- package/types/standard/components/AppShell/useAppShellSidebar.d.ts +19 -0
- package/types/standard/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/types/standard/components/Breadcrumbs/useBreadcrumbItems.d.ts +7 -0
- package/types/standard/components/Checkbox/Checkbox.d.ts +440 -0
- package/types/standard/components/Checkbox/icons.d.ts +4 -0
- package/types/standard/components/CloseButton/CloseButton.d.ts +18 -0
- package/types/standard/components/CloseButton/icons.d.ts +4 -0
- package/types/standard/components/DateInput/DateInput.d.ts +61 -0
- package/types/standard/components/DateInput/icons.d.ts +7 -0
- package/types/standard/components/DatePicker/DatePicker.d.ts +39 -0
- package/types/standard/components/DatePicker/icons.d.ts +3 -0
- package/types/standard/components/DateRangeShortcuts.d.ts +12 -0
- package/types/standard/components/InputBase/InputBase.d.ts +148 -0
- package/types/standard/components/InputBase/icons.d.ts +3 -0
- package/types/standard/components/Layout/Layout.d.ts +18 -0
- package/types/standard/components/Layout/use-layout-state.d.ts +18 -0
- package/types/standard/components/Loader/Loader.d.ts +25 -0
- package/types/standard/components/Loader/icons.d.ts +3 -0
- package/types/standard/components/Modal/Modal.d.ts +22 -0
- package/types/standard/components/Modal/icons.d.ts +9 -0
- package/types/standard/components/Pagination/Pagination.d.ts +34 -0
- package/types/standard/components/Radio/Radio.d.ts +432 -0
- package/types/standard/components/Select/Select.d.ts +43 -0
- package/types/standard/components/Select/icons.d.ts +5 -0
- package/types/standard/components/Skeleton/Skeleton.d.ts +6 -0
- package/types/standard/components/Space/Space.d.ts +1 -0
- package/types/standard/components/Switch/Switch.d.ts +434 -0
- package/types/standard/components/Table/Table.d.ts +39 -0
- package/types/standard/components/Tabs/Tabs.d.ts +33 -0
- package/types/standard/components/Tag/Tag.d.ts +115 -0
- package/types/standard/components/Tag/icons.d.ts +8 -0
- package/types/standard/components/TagsInput/TagsInput.d.ts +422 -0
- package/types/standard/components/TagsInput/controller.d.ts +713 -0
- package/types/standard/components/TagsInput/icons.d.ts +13 -0
- package/types/standard/components/TagsInput/types.d.ts +7 -0
- package/types/standard/components/ThreeColumnLayout/ThreeColumnLayout.d.ts +45 -0
- package/types/standard/components/ThreeColumnLayout/use-resizable-panel.d.ts +30 -0
- package/types/standard/components/TimePicker/TimePicker.d.ts +28 -0
- package/types/standard/components/Title/Title.d.ts +20 -0
- package/types/standard/components/Toast/Toast.d.ts +16 -0
- package/types/standard/components/Tooltip/Tooltip.d.ts +20 -0
- package/types/standard/index.d.mts +27 -0
- package/types/standard/index.d.ts +27 -0
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
import { Checkbox as MantineCheckbox, type CheckboxProps as MantineCheckboxProps } from "@s-works/s-works-ui/core";
|
|
2
|
+
export interface CheckboxProps extends MantineCheckboxProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const checkboxClassNames: {
|
|
5
|
+
root: string;
|
|
6
|
+
body: string;
|
|
7
|
+
labeledBody: string;
|
|
8
|
+
labeledInner: string;
|
|
9
|
+
input: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
label: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function CheckGlyph({ indeterminate, className, }: {
|
|
14
|
+
indeterminate?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function resolveCheckboxProps({ size, radius, color, iconColor, icon, ...props }?: CheckboxProps): {
|
|
18
|
+
size: import("@s-works/s-works-ui/core").MantineSize | (string & {});
|
|
19
|
+
radius: import("@s-works/s-works-ui/core").MantineRadius;
|
|
20
|
+
color: import("@s-works/s-works-ui/core").DefaultMantineColor;
|
|
21
|
+
iconColor: import("@s-works/s-works-ui/core").DefaultMantineColor;
|
|
22
|
+
icon: import("react").FC<{
|
|
23
|
+
indeterminate: boolean | undefined;
|
|
24
|
+
className: string;
|
|
25
|
+
}>;
|
|
26
|
+
id?: string;
|
|
27
|
+
label?: React.ReactNode;
|
|
28
|
+
wrapperProps?: React.ComponentPropsWithoutRef<"div"> & import("@s-works/s-works-ui/core").DataAttributes;
|
|
29
|
+
labelPosition?: "left" | "right";
|
|
30
|
+
description?: React.ReactNode;
|
|
31
|
+
error?: React.ReactNode;
|
|
32
|
+
indeterminate?: boolean;
|
|
33
|
+
rootRef?: React.ForwardedRef<HTMLDivElement>;
|
|
34
|
+
autoContrast?: boolean;
|
|
35
|
+
className?: string;
|
|
36
|
+
style?: import("@s-works/s-works-ui/core").MantineStyleProp;
|
|
37
|
+
__vars?: import("@s-works/s-works-ui/core").CssVarsProp;
|
|
38
|
+
__size?: string;
|
|
39
|
+
hiddenFrom?: import("@s-works/s-works-ui/core").MantineBreakpoint;
|
|
40
|
+
visibleFrom?: import("@s-works/s-works-ui/core").MantineBreakpoint;
|
|
41
|
+
lightHidden?: boolean;
|
|
42
|
+
darkHidden?: boolean;
|
|
43
|
+
mod?: import("@s-works/s-works-ui/core").BoxMod;
|
|
44
|
+
m?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
45
|
+
my?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
46
|
+
mx?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
47
|
+
mt?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
48
|
+
mb?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
49
|
+
ms?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
50
|
+
me?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
51
|
+
ml?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
52
|
+
mr?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
53
|
+
p?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
54
|
+
py?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
55
|
+
px?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
56
|
+
pt?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
57
|
+
pb?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
58
|
+
ps?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
59
|
+
pe?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
60
|
+
pl?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
61
|
+
pr?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
62
|
+
bd?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["border"]>;
|
|
63
|
+
bdrs?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineSpacing>;
|
|
64
|
+
bg?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineColor>;
|
|
65
|
+
c?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineColor>;
|
|
66
|
+
opacity?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["opacity"]>;
|
|
67
|
+
ff?: import("@s-works/s-works-ui/core").StyleProp<"monospace" | "text" | "heading" | (string & {})>;
|
|
68
|
+
fz?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineFontSize | `h${1 | 2 | 3 | 4 | 5 | 6}` | number | (string & {})>;
|
|
69
|
+
fw?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["fontWeight"]>;
|
|
70
|
+
lts?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["letterSpacing"]>;
|
|
71
|
+
ta?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["textAlign"]>;
|
|
72
|
+
lh?: import("@s-works/s-works-ui/core").StyleProp<import("@s-works/s-works-ui/core").MantineLineHeight | `h${1 | 2 | 3 | 4 | 5 | 6}` | number | (string & {})>;
|
|
73
|
+
fs?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["fontStyle"]>;
|
|
74
|
+
tt?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["textTransform"]>;
|
|
75
|
+
td?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["textDecoration"]>;
|
|
76
|
+
w?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["width"]>;
|
|
77
|
+
miw?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["minWidth"]>;
|
|
78
|
+
maw?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["maxWidth"]>;
|
|
79
|
+
h?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["height"]>;
|
|
80
|
+
mih?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["minHeight"]>;
|
|
81
|
+
mah?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["maxHeight"]>;
|
|
82
|
+
bgsz?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["backgroundSize"]>;
|
|
83
|
+
bgp?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["backgroundPosition"]>;
|
|
84
|
+
bgr?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["backgroundRepeat"]>;
|
|
85
|
+
bga?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["backgroundAttachment"]>;
|
|
86
|
+
pos?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["position"]>;
|
|
87
|
+
top?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["top"]>;
|
|
88
|
+
left?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["left"]>;
|
|
89
|
+
bottom?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["bottom"]>;
|
|
90
|
+
right?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["right"]>;
|
|
91
|
+
inset?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["inset"]>;
|
|
92
|
+
display?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["display"]>;
|
|
93
|
+
flex?: import("@s-works/s-works-ui/core").StyleProp<React.CSSProperties["flex"]>;
|
|
94
|
+
unstyled?: boolean;
|
|
95
|
+
variant?: (string & {}) | import("@s-works/s-works-ui/core").CheckboxVariant | undefined;
|
|
96
|
+
classNames?: Partial<Record<import("@s-works/s-works-ui/core").CheckboxStylesNames, string>> | ((theme: import("@s-works/s-works-ui/core").MantineTheme, props: MantineCheckboxProps, ctx: unknown) => Partial<Record<import("@s-works/s-works-ui/core").CheckboxStylesNames, string>>) | undefined;
|
|
97
|
+
styles?: Partial<Record<import("@s-works/s-works-ui/core").CheckboxStylesNames, import("@s-works/s-works-ui/core").CSSProperties>> | ((theme: import("@s-works/s-works-ui/core").MantineTheme, props: MantineCheckboxProps, ctx: unknown) => Partial<Record<import("@s-works/s-works-ui/core").CheckboxStylesNames, import("@s-works/s-works-ui/core").CSSProperties>>) | undefined;
|
|
98
|
+
vars?: import("@s-works/s-works-ui/core").PartialVarsResolver<{
|
|
99
|
+
props: MantineCheckboxProps;
|
|
100
|
+
ref: HTMLInputElement;
|
|
101
|
+
stylesNames: import("@s-works/s-works-ui/core").CheckboxStylesNames;
|
|
102
|
+
vars: import("@s-works/s-works-ui/core").CheckboxCssVariables;
|
|
103
|
+
variant: import("@s-works/s-works-ui/core").CheckboxVariant;
|
|
104
|
+
staticComponents: {
|
|
105
|
+
Group: typeof import("@s-works/s-works-ui/core").CheckboxGroup;
|
|
106
|
+
Indicator: typeof import("@s-works/s-works-ui/core").CheckboxIndicator;
|
|
107
|
+
Card: typeof import("@s-works/s-works-ui/core").CheckboxCard;
|
|
108
|
+
};
|
|
109
|
+
}> | undefined;
|
|
110
|
+
attributes?: {
|
|
111
|
+
root?: Record<string, any> | undefined;
|
|
112
|
+
inner?: Record<string, any> | undefined;
|
|
113
|
+
label?: Record<string, any> | undefined;
|
|
114
|
+
body?: Record<string, any> | undefined;
|
|
115
|
+
input?: Record<string, any> | undefined;
|
|
116
|
+
icon?: Record<string, any> | undefined;
|
|
117
|
+
description?: Record<string, any> | undefined;
|
|
118
|
+
error?: Record<string, any> | undefined;
|
|
119
|
+
labelWrapper?: Record<string, any> | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
disabled?: boolean | undefined | undefined;
|
|
122
|
+
height?: number | string | undefined | undefined;
|
|
123
|
+
value?: string | number | readonly string[] | undefined;
|
|
124
|
+
hidden?: boolean | undefined | undefined;
|
|
125
|
+
width?: number | string | undefined | undefined;
|
|
126
|
+
content?: string | undefined | undefined;
|
|
127
|
+
form?: string | undefined | undefined;
|
|
128
|
+
slot?: string | undefined | undefined;
|
|
129
|
+
title?: string | undefined | undefined;
|
|
130
|
+
pattern?: string | undefined | undefined;
|
|
131
|
+
key?: import("react").Key | null | undefined;
|
|
132
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
133
|
+
lang?: string | undefined | undefined;
|
|
134
|
+
max?: number | string | undefined | undefined;
|
|
135
|
+
min?: number | string | undefined | undefined;
|
|
136
|
+
name?: string | undefined | undefined;
|
|
137
|
+
type?: import("react").HTMLInputTypeAttribute | undefined;
|
|
138
|
+
role?: import("react").AriaRole | undefined;
|
|
139
|
+
tabIndex?: number | undefined | undefined;
|
|
140
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
141
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
142
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
143
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
144
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
145
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
146
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
147
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
148
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
149
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
150
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
151
|
+
"aria-controls"?: string | undefined | undefined;
|
|
152
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
153
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
154
|
+
"aria-description"?: string | undefined | undefined;
|
|
155
|
+
"aria-details"?: string | undefined | undefined;
|
|
156
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
157
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
158
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
159
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
160
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
161
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
162
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
163
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
164
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
165
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
166
|
+
"aria-label"?: string | undefined | undefined;
|
|
167
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
168
|
+
"aria-level"?: number | undefined | undefined;
|
|
169
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
170
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
171
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
172
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
173
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
174
|
+
"aria-owns"?: string | undefined | undefined;
|
|
175
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
176
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
177
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
178
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
179
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
180
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
181
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
182
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
183
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
184
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
185
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
186
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
187
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
188
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
189
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
190
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
191
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
192
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
193
|
+
dangerouslySetInnerHTML?: {
|
|
194
|
+
__html: string | TrustedHTML;
|
|
195
|
+
} | undefined | undefined;
|
|
196
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
197
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
198
|
+
onCut?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
199
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
200
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
201
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
202
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
203
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
204
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
205
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
206
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
207
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
208
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
209
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
210
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
211
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
212
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement> | undefined;
|
|
213
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
214
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLInputElement> | undefined;
|
|
215
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
216
|
+
onInput?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
217
|
+
onInputCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
218
|
+
onReset?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
219
|
+
onResetCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
220
|
+
onSubmit?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
221
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
222
|
+
onInvalid?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
223
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
224
|
+
onLoad?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
225
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
226
|
+
onError?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
227
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
228
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
229
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
230
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
231
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
232
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
233
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
234
|
+
onAbort?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
235
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
236
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
237
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
238
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
239
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
240
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
241
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
242
|
+
onEmptied?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
243
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
244
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
245
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
246
|
+
onEnded?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
247
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
248
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
249
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
250
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
251
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
252
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
253
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
254
|
+
onPause?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
255
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
256
|
+
onPlay?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
257
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
258
|
+
onPlaying?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
259
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
260
|
+
onProgress?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
261
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
262
|
+
onRateChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
263
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
264
|
+
onSeeked?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
265
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
266
|
+
onSeeking?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
267
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
268
|
+
onStalled?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
269
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
270
|
+
onSuspend?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
271
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
272
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
273
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
274
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
275
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
276
|
+
onWaiting?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
277
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
278
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
279
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
280
|
+
onClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
281
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
282
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
283
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
284
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
285
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
286
|
+
onDrag?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
287
|
+
onDragCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
288
|
+
onDragEnd?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
289
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
290
|
+
onDragEnter?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
291
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
292
|
+
onDragExit?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
293
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
294
|
+
onDragLeave?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
295
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
296
|
+
onDragOver?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
297
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
298
|
+
onDragStart?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
299
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
300
|
+
onDrop?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
301
|
+
onDropCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
302
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
303
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
304
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
305
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
306
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
307
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
308
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
309
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
310
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
311
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
312
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
313
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
314
|
+
onSelect?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
315
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
316
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
317
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
318
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
319
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
320
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
321
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
322
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
323
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
324
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
325
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
326
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
327
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
328
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
329
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
330
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
331
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
332
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
333
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
334
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
335
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
336
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
337
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
338
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
339
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
340
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
341
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
342
|
+
onScroll?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
343
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
344
|
+
onScrollEnd?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
345
|
+
onScrollEndCapture?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
346
|
+
onWheel?: import("react").WheelEventHandler<HTMLInputElement> | undefined;
|
|
347
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLInputElement> | undefined;
|
|
348
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
349
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
350
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
351
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
352
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
353
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
354
|
+
onToggle?: import("react").ToggleEventHandler<HTMLInputElement> | undefined;
|
|
355
|
+
onBeforeToggle?: import("react").ToggleEventHandler<HTMLInputElement> | undefined;
|
|
356
|
+
onTransitionCancel?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
357
|
+
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
358
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
359
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
360
|
+
onTransitionRun?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
361
|
+
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
362
|
+
onTransitionStart?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
363
|
+
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
364
|
+
list?: string | undefined | undefined;
|
|
365
|
+
step?: number | string | undefined | undefined;
|
|
366
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
367
|
+
formEncType?: string | undefined | undefined;
|
|
368
|
+
formMethod?: string | undefined | undefined;
|
|
369
|
+
formNoValidate?: boolean | undefined | undefined;
|
|
370
|
+
formTarget?: string | undefined | undefined;
|
|
371
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
372
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
373
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
374
|
+
accessKey?: string | undefined | undefined;
|
|
375
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
376
|
+
autoFocus?: boolean | undefined | undefined;
|
|
377
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
378
|
+
contextMenu?: string | undefined | undefined;
|
|
379
|
+
dir?: string | undefined | undefined;
|
|
380
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
381
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
382
|
+
nonce?: string | undefined | undefined;
|
|
383
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
384
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
385
|
+
radioGroup?: string | undefined | undefined;
|
|
386
|
+
about?: string | undefined | undefined;
|
|
387
|
+
datatype?: string | undefined | undefined;
|
|
388
|
+
inlist?: any;
|
|
389
|
+
prefix?: string | undefined | undefined;
|
|
390
|
+
property?: string | undefined | undefined;
|
|
391
|
+
rel?: string | undefined | undefined;
|
|
392
|
+
resource?: string | undefined | undefined;
|
|
393
|
+
rev?: string | undefined | undefined;
|
|
394
|
+
typeof?: string | undefined | undefined;
|
|
395
|
+
vocab?: string | undefined | undefined;
|
|
396
|
+
autoCorrect?: string | undefined | undefined;
|
|
397
|
+
autoSave?: string | undefined | undefined;
|
|
398
|
+
itemProp?: string | undefined | undefined;
|
|
399
|
+
itemScope?: boolean | undefined | undefined;
|
|
400
|
+
itemType?: string | undefined | undefined;
|
|
401
|
+
itemID?: string | undefined | undefined;
|
|
402
|
+
itemRef?: string | undefined | undefined;
|
|
403
|
+
results?: number | undefined | undefined;
|
|
404
|
+
security?: string | undefined | undefined;
|
|
405
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
406
|
+
popover?: "" | "auto" | "manual" | undefined | undefined;
|
|
407
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
408
|
+
popoverTarget?: string | undefined | undefined;
|
|
409
|
+
inert?: boolean | undefined | undefined;
|
|
410
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
411
|
+
is?: string | undefined | undefined;
|
|
412
|
+
exportparts?: string | undefined | undefined;
|
|
413
|
+
part?: string | undefined | undefined;
|
|
414
|
+
alt?: string | undefined | undefined;
|
|
415
|
+
accept?: string | undefined | undefined;
|
|
416
|
+
autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
|
|
417
|
+
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
418
|
+
checked?: boolean | undefined | undefined;
|
|
419
|
+
maxLength?: number | undefined | undefined;
|
|
420
|
+
minLength?: number | undefined | undefined;
|
|
421
|
+
multiple?: boolean | undefined | undefined;
|
|
422
|
+
placeholder?: string | undefined | undefined;
|
|
423
|
+
readOnly?: boolean | undefined | undefined;
|
|
424
|
+
required?: boolean | undefined | undefined;
|
|
425
|
+
src?: string | undefined | undefined;
|
|
426
|
+
};
|
|
427
|
+
export declare function resolveCheckboxClassNames({ label }?: Pick<CheckboxProps, 'label'>, overrides?: Partial<Record<import("@s-works/s-works-ui/core").CheckboxStylesNames, string>>): {
|
|
428
|
+
root: string;
|
|
429
|
+
body: string;
|
|
430
|
+
input: string;
|
|
431
|
+
icon: string;
|
|
432
|
+
inner: string;
|
|
433
|
+
label: string;
|
|
434
|
+
description?: string | undefined;
|
|
435
|
+
error?: string | undefined;
|
|
436
|
+
labelWrapper?: string | undefined;
|
|
437
|
+
};
|
|
438
|
+
declare const CheckboxRoot: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
439
|
+
export declare const Checkbox: typeof CheckboxRoot & Pick<typeof MantineCheckbox, 'Group' | 'Card' | 'Indicator'>;
|
|
440
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type CloseButtonProps as MantineCloseButtonProps } from "@s-works/s-works-ui/core";
|
|
2
|
+
export interface CloseButtonProps extends MantineCloseButtonProps {
|
|
3
|
+
'aria-label'?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function resolveCloseButtonProps({ size, radius, variant, ...props }: CloseButtonProps): CloseButtonProps;
|
|
6
|
+
export declare function resolveCloseButtonIcon({ size, icon, iconSize, }: CloseButtonProps): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export declare function resolveCloseButtonClassNames(overrides?: Partial<Record<'root', string>>): {
|
|
8
|
+
root: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const CloseButton: (<C = "button">(props: import("@s-works/s-works-ui/core").PolymorphicComponentProps<C, CloseButtonProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(CloseButtonProps & {
|
|
11
|
+
component?: any;
|
|
12
|
+
} & Omit<Omit<any, "ref">, "component" | keyof CloseButtonProps> & {
|
|
13
|
+
ref?: any;
|
|
14
|
+
renderRoot?: (props: any) => any;
|
|
15
|
+
}) | (CloseButtonProps & {
|
|
16
|
+
component: React.ElementType;
|
|
17
|
+
renderRoot?: (props: Record<string, any>) => any;
|
|
18
|
+
})>, never> & Record<string, never>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
export declare function CloseLargeIcon(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function CloseMediumIcon(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function CloseSmallIcon(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type DateInputProps as MantineDateInputProps, type DateInputStylesNames } from "@s-works/s-works-ui/dates";
|
|
2
|
+
export type DateInputSize = "sm" | "md";
|
|
3
|
+
export type DateInputAppearance = "filled" | "outlined";
|
|
4
|
+
export interface DateInputProps extends MantineDateInputProps {
|
|
5
|
+
size?: DateInputSize;
|
|
6
|
+
appearance?: DateInputAppearance;
|
|
7
|
+
}
|
|
8
|
+
interface VisualOptions {
|
|
9
|
+
size?: DateInputSize;
|
|
10
|
+
appearance?: DateInputAppearance;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function resolveDateInputClassNames({ size, appearance }?: VisualOptions, overrides?: Partial<Record<DateInputStylesNames, string>>): {
|
|
14
|
+
root: string;
|
|
15
|
+
wrapper: string | undefined;
|
|
16
|
+
input: string;
|
|
17
|
+
section: string;
|
|
18
|
+
label?: string | undefined;
|
|
19
|
+
required?: string | undefined;
|
|
20
|
+
description?: string | undefined;
|
|
21
|
+
error?: string | undefined;
|
|
22
|
+
month?: string | undefined;
|
|
23
|
+
day?: string | undefined;
|
|
24
|
+
weekday?: string | undefined;
|
|
25
|
+
weekdaysRow?: string | undefined;
|
|
26
|
+
monthRow?: string | undefined;
|
|
27
|
+
monthThead?: string | undefined;
|
|
28
|
+
monthTbody?: string | undefined;
|
|
29
|
+
monthCell?: string | undefined;
|
|
30
|
+
weekNumber?: string | undefined;
|
|
31
|
+
calendarHeader?: string | undefined;
|
|
32
|
+
calendarHeaderControl?: string | undefined;
|
|
33
|
+
calendarHeaderLevel?: string | undefined;
|
|
34
|
+
calendarHeaderControlIcon?: string | undefined;
|
|
35
|
+
levelsGroup?: string | undefined;
|
|
36
|
+
monthsList?: string | undefined;
|
|
37
|
+
monthsListCell?: string | undefined;
|
|
38
|
+
monthsListRow?: string | undefined;
|
|
39
|
+
monthsListControl?: string | undefined;
|
|
40
|
+
yearsListControl?: string | undefined;
|
|
41
|
+
yearsList?: string | undefined;
|
|
42
|
+
yearsListCell?: string | undefined;
|
|
43
|
+
yearsListRow?: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
export declare function DateInputCalendarIcon({ size, disabled, }: VisualOptions): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
declare const SingleDateInput: import("react").ForwardRefExoticComponent<DateInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
47
|
+
export interface DateInputRangeProps extends Omit<DateInputProps, "value" | "defaultValue" | "onChange" | "ref" | "placeholder" | "classNames"> {
|
|
48
|
+
value?: [string | null, string | null];
|
|
49
|
+
defaultValue?: [string | null, string | null];
|
|
50
|
+
onChange?: (value: [string | null, string | null]) => void;
|
|
51
|
+
classNames?: Partial<Record<DateInputStylesNames, string>>;
|
|
52
|
+
startPlaceholder?: string;
|
|
53
|
+
endPlaceholder?: string;
|
|
54
|
+
startLabel?: string;
|
|
55
|
+
endLabel?: string;
|
|
56
|
+
}
|
|
57
|
+
declare const RangeDateInput: import("react").ForwardRefExoticComponent<DateInputRangeProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
58
|
+
export declare const DateInput: typeof SingleDateInput & {
|
|
59
|
+
Range: typeof RangeDateInput;
|
|
60
|
+
};
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
export declare function Calendar(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function CalendarFocus(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function CalendarDisabled(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function CalendarMini(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function CalendarMiniFocus(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function CalendarMiniDisabled(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ForwardedRef, type ReactElement } from 'react';
|
|
2
|
+
import { type DatePickerProps as MantineDatePickerProps, type DatePickerType, type DatePickerStylesNames } from "@s-works/s-works-ui/dates";
|
|
3
|
+
type PickerValue<Type extends DatePickerType> = Parameters<NonNullable<MantineDatePickerProps<Type>['onChange']>>[0];
|
|
4
|
+
export interface DatePickerProps<Type extends DatePickerType = 'default'> extends Omit<MantineDatePickerProps<Type>, 'size' | 'numberOfColumns' | 'maxLevel' | 'minLevel' | 'level' | 'defaultLevel' | 'onLevelChange'> {
|
|
5
|
+
/** 控制底部按钮,单日为今天,区间为确定。 */
|
|
6
|
+
withFooter?: boolean;
|
|
7
|
+
onConfirm?: (value: PickerValue<Type>) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function resolveDatePickerClassNames(overrides?: Partial<Record<DatePickerStylesNames, string>>): {
|
|
10
|
+
calendarHeader: string;
|
|
11
|
+
levelsGroup: string;
|
|
12
|
+
month: string;
|
|
13
|
+
monthThead: string;
|
|
14
|
+
monthTbody: string;
|
|
15
|
+
weekdaysRow: string;
|
|
16
|
+
weekday: string;
|
|
17
|
+
monthRow: string;
|
|
18
|
+
monthCell: string;
|
|
19
|
+
day: string;
|
|
20
|
+
weekNumber?: string | undefined;
|
|
21
|
+
calendarHeaderControl?: string | undefined;
|
|
22
|
+
calendarHeaderLevel?: string | undefined;
|
|
23
|
+
calendarHeaderControlIcon?: string | undefined;
|
|
24
|
+
monthsList?: string | undefined;
|
|
25
|
+
monthsListCell?: string | undefined;
|
|
26
|
+
monthsListRow?: string | undefined;
|
|
27
|
+
monthsListControl?: string | undefined;
|
|
28
|
+
yearsListControl?: string | undefined;
|
|
29
|
+
yearsList?: string | undefined;
|
|
30
|
+
yearsListCell?: string | undefined;
|
|
31
|
+
yearsListRow?: string | undefined;
|
|
32
|
+
presetsList?: string | undefined;
|
|
33
|
+
presetButton?: string | undefined;
|
|
34
|
+
datePickerRoot?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
export declare const DatePicker: <Type extends DatePickerType = "default">(props: DatePickerProps<Type> & {
|
|
37
|
+
ref?: ForwardedRef<HTMLDivElement>;
|
|
38
|
+
}) => ReactElement;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DatePickerProps } from "@s-works/s-works-ui/dates";
|
|
2
|
+
type DateLimits = Pick<DatePickerProps, 'minDate' | 'maxDate' | 'excludeDate' | 'getDayProps'>;
|
|
3
|
+
export declare const dateShortcutClasses: {
|
|
4
|
+
root: string;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function isDateShortcutDisabled(date: string, { minDate, maxDate, excludeDate, getDayProps }: DateLimits): boolean;
|
|
8
|
+
export declare function DateRangeShortcuts({ disabled, onChange, ...limits }: DateLimits & {
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onChange: (range: [string, string]) => void;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|