@nextui-org/react 1.0.0-beta.10 → 1.0.0-beta.11
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 -0
- package/cjs/avatar/avatar.js +1 -1
- package/cjs/backdrop/backdrop.styles.js +1 -1
- package/cjs/button/button-icon.js +1 -1
- package/cjs/button/utils.js +1 -1
- package/cjs/card/card.styles.js +1 -1
- package/cjs/checkbox/checkbox.js +1 -1
- package/cjs/checkbox/checkbox.styles.js +1 -1
- package/cjs/checkbox/use-checkbox.js +1 -1
- package/cjs/divider/divider.js +1 -1
- package/cjs/dropdown/dropdown-menu.js +1 -1
- package/cjs/dropdown/dropdown.js +1 -1
- package/cjs/dropdown/use-dropdown.js +1 -1
- package/cjs/grid/grid.js +1 -1
- package/cjs/input/index.js +1 -1
- package/cjs/input/input.js +1 -1
- package/cjs/input/input.styles.js +1 -1
- package/cjs/link/link.js +1 -1
- package/cjs/link/link.styles.js +1 -1
- package/cjs/loading/loading.js +1 -1
- package/cjs/navbar/navbar-link.js +1 -1
- package/cjs/navbar/navbar.styles.js +1 -1
- package/cjs/pagination/pagination.js +1 -1
- package/cjs/popover/popover-content.js +1 -1
- package/cjs/popover/popover-trigger.js +1 -1
- package/cjs/popover/popover.styles.js +1 -1
- package/cjs/popover/use-popover.js +1 -1
- package/cjs/radio/radio.js +1 -1
- package/cjs/radio/use-radio-group.js +1 -1
- package/cjs/radio/use-radio.js +1 -1
- package/cjs/spacer/spacer.js +1 -1
- package/cjs/switch/switch.js +1 -1
- package/cjs/table/table-body.js +1 -1
- package/cjs/table/table-cell.js +1 -1
- package/cjs/table/table.js +1 -1
- package/cjs/table/table.styles.js +1 -1
- package/cjs/textarea/textarea.js +1 -1
- package/cjs/theme/dark-theme.js +1 -1
- package/cjs/theme/light-theme.js +1 -1
- package/cjs/theme/shared-css.js +1 -1
- package/cjs/theme/utils.js +1 -1
- package/cjs/tooltip/tooltip.js +1 -1
- package/cjs/use-pagination/index.js +1 -1
- package/cjs/user/user.js +1 -1
- package/cjs/user/user.styles.js +1 -1
- package/cjs/utils/checkmark.js +1 -1
- package/cjs/utils/css-transition.js +1 -1
- package/esm/avatar/avatar.js +1 -1
- package/esm/backdrop/backdrop.styles.js +1 -1
- package/esm/button/button-icon.js +1 -1
- package/esm/button/utils.js +1 -1
- package/esm/card/card.styles.js +1 -1
- package/esm/checkbox/checkbox.js +1 -1
- package/esm/checkbox/checkbox.styles.js +1 -1
- package/esm/checkbox/use-checkbox.js +1 -1
- package/esm/divider/divider.js +1 -1
- package/esm/dropdown/dropdown-menu.js +1 -1
- package/esm/dropdown/dropdown.js +1 -1
- package/esm/dropdown/use-dropdown.js +1 -1
- package/esm/grid/grid.js +1 -1
- package/esm/input/index.js +1 -1
- package/esm/input/input.js +1 -1
- package/esm/input/input.styles.js +1 -1
- package/esm/link/link.js +1 -1
- package/esm/link/link.styles.js +1 -1
- package/esm/loading/loading.js +1 -1
- package/esm/navbar/navbar-link.js +1 -1
- package/esm/navbar/navbar.styles.js +1 -1
- package/esm/pagination/pagination.js +1 -1
- package/esm/popover/popover-content.js +1 -1
- package/esm/popover/popover-trigger.js +1 -1
- package/esm/popover/popover.styles.js +1 -1
- package/esm/popover/use-popover.js +1 -1
- package/esm/radio/radio.js +1 -1
- package/esm/radio/use-radio-group.js +1 -1
- package/esm/radio/use-radio.js +1 -1
- package/esm/spacer/spacer.js +1 -1
- package/esm/switch/switch.js +1 -1
- package/esm/table/table-body.js +1 -1
- package/esm/table/table-cell.js +1 -1
- package/esm/table/table.js +1 -1
- package/esm/table/table.styles.js +1 -1
- package/esm/textarea/textarea.js +1 -1
- package/esm/theme/dark-theme.js +1 -1
- package/esm/theme/light-theme.js +1 -1
- package/esm/theme/shared-css.js +1 -1
- package/esm/theme/utils.js +1 -1
- package/esm/tooltip/tooltip.js +1 -1
- package/esm/use-pagination/index.js +1 -1
- package/esm/user/user.js +1 -1
- package/esm/user/user.styles.js +1 -1
- package/esm/utils/checkmark.js +1 -1
- package/esm/utils/css-transition.js +1 -1
- package/package.json +31 -29
- package/types/avatar/avatar-group.styles.d.ts +4 -0
- package/types/avatar/avatar.d.ts +5 -1
- package/types/avatar/avatar.styles.d.ts +4 -0
- package/types/backdrop/backdrop.d.ts +3 -2
- package/types/backdrop/backdrop.styles.d.ts +7 -1
- package/types/badge/badge.styles.d.ts +6 -0
- package/types/button/button-group.d.ts +8 -1
- package/types/button/button-group.styles.d.ts +2 -0
- package/types/button/button-icon.d.ts +35 -2
- package/types/button/button.d.ts +1 -1
- package/types/button/button.styles.d.ts +4 -0
- package/types/button/utils.d.ts +3 -51
- package/types/card/card.d.ts +1 -1
- package/types/card/card.styles.d.ts +40 -0
- package/types/checkbox/checkbox.styles.d.ts +21 -1
- package/types/checkbox/use-checkbox-group.d.ts +2 -2
- package/types/checkbox/use-checkbox.d.ts +3 -0
- package/types/code/code.d.ts +25 -1
- package/types/code/code.styles.d.ts +4 -0
- package/types/col/col.d.ts +27 -2
- package/types/col/col.styles.d.ts +2 -0
- package/types/collapse/collapse-group.d.ts +2 -1
- package/types/collapse/collapse.d.ts +1 -0
- package/types/collapse/collapse.styles.d.ts +12 -0
- package/types/container/container.d.ts +2 -1
- package/types/container/container.styles.d.ts +2 -0
- package/types/divider/divider.d.ts +26 -2
- package/types/divider/divider.styles.d.ts +4 -0
- package/types/dropdown/dropdown-context.d.ts +58 -14
- package/types/dropdown/dropdown-menu.d.ts +2 -1
- package/types/dropdown/dropdown.styles.d.ts +22 -0
- package/types/dropdown/use-dropdown.d.ts +29 -7
- package/types/grid/grid-container.d.ts +2 -1
- package/types/grid/grid-item.d.ts +2 -1
- package/types/grid/grid.styles.d.ts +4 -0
- package/types/image/image.d.ts +1 -1
- package/types/image/image.skeleton.d.ts +1 -1
- package/types/image/image.styles.d.ts +6 -0
- package/types/input/input-password.d.ts +2 -1
- package/types/input/input.d.ts +1 -3
- package/types/input/input.styles.d.ts +22 -0
- package/types/link/link.styles.d.ts +6 -0
- package/types/loading/loading.d.ts +32 -2
- package/types/loading/loading.styles.d.ts +12 -0
- package/types/loading/spinner.d.ts +2 -1
- package/types/modal/modal-footer.d.ts +31 -2
- package/types/modal/modal-header.d.ts +31 -2
- package/types/modal/modal-wrapper.d.ts +2 -1
- package/types/modal/modal.d.ts +1 -0
- package/types/modal/modal.styles.d.ts +12 -0
- package/types/navbar/navbar.styles.d.ts +277 -196
- package/types/pagination/pagination-highlight.d.ts +1 -1
- package/types/pagination/pagination-item.d.ts +2 -1
- package/types/pagination/pagination.d.ts +1 -0
- package/types/pagination/pagination.styles.d.ts +12 -0
- package/types/popover/popover-content.d.ts +1 -1
- package/types/popover/popover-context.d.ts +8 -6
- package/types/popover/popover-trigger.d.ts +1 -1
- package/types/popover/popover.styles.d.ts +27 -0
- package/types/popover/use-popover.d.ts +4 -3
- package/types/progress/progress.d.ts +1 -1
- package/types/progress/progress.styles.d.ts +4 -0
- package/types/radio/index.d.ts +2 -0
- package/types/radio/radio-context.d.ts +4 -4
- package/types/radio/radio.styles.d.ts +16 -0
- package/types/radio/use-radio-group.d.ts +2 -2
- package/types/radio/use-radio.d.ts +2 -1
- package/types/row/row.d.ts +26 -2
- package/types/row/row.styles.d.ts +2 -0
- package/types/snippet/snippet.d.ts +37 -1
- package/types/snippet/snippet.styles.d.ts +8 -0
- package/types/spacer/spacer.d.ts +1 -1
- package/types/spacer/spacer.styles.d.ts +2 -0
- package/types/switch/switch.d.ts +1 -0
- package/types/switch/switch.styles.d.ts +8 -0
- package/types/table/table-body.d.ts +4 -2
- package/types/table/table-cell.d.ts +1 -0
- package/types/table/table-column-header.d.ts +5 -3
- package/types/table/table-context.d.ts +1 -1
- package/types/table/table-footer.d.ts +5 -4
- package/types/table/table-header-row.d.ts +1 -2
- package/types/table/table-row-group.d.ts +2 -1
- package/types/table/table-row.d.ts +1 -2
- package/types/table/table-sort-icon.d.ts +2 -0
- package/types/table/table.d.ts +1 -1
- package/types/table/table.styles.d.ts +48 -7
- package/types/text/child.d.ts +17 -1
- package/types/text/text.styles.d.ts +10 -0
- package/types/textarea/textarea.d.ts +1 -1
- package/types/theme/dark-theme.d.ts +2 -0
- package/types/theme/light-theme.d.ts +2 -0
- package/types/theme/shared-css.d.ts +20 -0
- package/types/theme/stitches.config.d.ts +20 -0
- package/types/theme/theme-provider.d.ts +2 -1
- package/types/tooltip/tooltip-content.d.ts +3 -2
- package/types/tooltip/tooltip.d.ts +6 -2
- package/types/tooltip/tooltip.styles.d.ts +8 -0
- package/types/user/user.d.ts +1 -1
- package/types/user/user.styles.d.ts +8 -0
- package/types/utils/css-transition.d.ts +6 -20
- package/types/utils/drip.d.ts +2 -0
- package/types/utils/expand.d.ts +2 -1
- package/umd/nextui.js +27257 -12247
- package/umd/nextui.min.js +1 -1
|
@@ -61,7 +61,9 @@ export declare const StyledCheckboxLabel: import("@stitches/react/types/styled-c
|
|
|
61
61
|
xl: string;
|
|
62
62
|
};
|
|
63
63
|
colors: {
|
|
64
|
+
textLight: string;
|
|
64
65
|
text: string;
|
|
66
|
+
linkLight: string;
|
|
65
67
|
link: string;
|
|
66
68
|
codeLight: string;
|
|
67
69
|
code: string;
|
|
@@ -1137,7 +1139,9 @@ export declare const StyledIconCheckFirstLine: import("@stitches/react/types/sty
|
|
|
1137
1139
|
xl: string;
|
|
1138
1140
|
};
|
|
1139
1141
|
colors: {
|
|
1142
|
+
textLight: string;
|
|
1140
1143
|
text: string;
|
|
1144
|
+
linkLight: string;
|
|
1141
1145
|
link: string;
|
|
1142
1146
|
codeLight: string;
|
|
1143
1147
|
code: string;
|
|
@@ -2213,7 +2217,9 @@ export declare const StyledIconCheckSecondLine: import("@stitches/react/types/st
|
|
|
2213
2217
|
xl: string;
|
|
2214
2218
|
};
|
|
2215
2219
|
colors: {
|
|
2220
|
+
textLight: string;
|
|
2216
2221
|
text: string;
|
|
2222
|
+
linkLight: string;
|
|
2217
2223
|
link: string;
|
|
2218
2224
|
codeLight: string;
|
|
2219
2225
|
code: string;
|
|
@@ -3290,7 +3296,9 @@ export declare const StyledIconCheck: import("@stitches/react/types/styled-compo
|
|
|
3290
3296
|
xl: string;
|
|
3291
3297
|
};
|
|
3292
3298
|
colors: {
|
|
3299
|
+
textLight: string;
|
|
3293
3300
|
text: string;
|
|
3301
|
+
linkLight: string;
|
|
3294
3302
|
link: string;
|
|
3295
3303
|
codeLight: string;
|
|
3296
3304
|
code: string;
|
|
@@ -4366,7 +4374,9 @@ export declare const StyledCheckboxMask: import("@stitches/react/types/styled-co
|
|
|
4366
4374
|
xl: string;
|
|
4367
4375
|
};
|
|
4368
4376
|
colors: {
|
|
4377
|
+
textLight: string;
|
|
4369
4378
|
text: string;
|
|
4379
|
+
linkLight: string;
|
|
4370
4380
|
link: string;
|
|
4371
4381
|
codeLight: string;
|
|
4372
4382
|
code: string;
|
|
@@ -5444,7 +5454,9 @@ export declare const StyledCheckboxText: import("@stitches/react/types/styled-co
|
|
|
5444
5454
|
xl: string;
|
|
5445
5455
|
};
|
|
5446
5456
|
colors: {
|
|
5457
|
+
textLight: string;
|
|
5447
5458
|
text: string;
|
|
5459
|
+
linkLight: string;
|
|
5448
5460
|
link: string;
|
|
5449
5461
|
codeLight: string;
|
|
5450
5462
|
code: string;
|
|
@@ -6515,7 +6527,7 @@ export declare const StyledCheckboxContainer: import("@stitches/react/types/styl
|
|
|
6515
6527
|
};
|
|
6516
6528
|
isRounded: {
|
|
6517
6529
|
true: {
|
|
6518
|
-
|
|
6530
|
+
$$checkboxBorderRadius: string;
|
|
6519
6531
|
};
|
|
6520
6532
|
};
|
|
6521
6533
|
isDisabled: {
|
|
@@ -6604,7 +6616,9 @@ export declare const StyledCheckboxContainer: import("@stitches/react/types/styl
|
|
|
6604
6616
|
xl: string;
|
|
6605
6617
|
};
|
|
6606
6618
|
colors: {
|
|
6619
|
+
textLight: string;
|
|
6607
6620
|
text: string;
|
|
6621
|
+
linkLight: string;
|
|
6608
6622
|
link: string;
|
|
6609
6623
|
codeLight: string;
|
|
6610
6624
|
code: string;
|
|
@@ -7675,7 +7689,9 @@ export declare const StyledCheckboxContainer: import("@stitches/react/types/styl
|
|
|
7675
7689
|
xl: string;
|
|
7676
7690
|
};
|
|
7677
7691
|
colors: {
|
|
7692
|
+
textLight: string;
|
|
7678
7693
|
text: string;
|
|
7694
|
+
linkLight: string;
|
|
7679
7695
|
link: string;
|
|
7680
7696
|
codeLight: string;
|
|
7681
7697
|
code: string;
|
|
@@ -8750,7 +8766,9 @@ export declare const StyledCheckboxGroup: import("@stitches/react/types/styled-c
|
|
|
8750
8766
|
xl: string;
|
|
8751
8767
|
};
|
|
8752
8768
|
colors: {
|
|
8769
|
+
textLight: string;
|
|
8753
8770
|
text: string;
|
|
8771
|
+
linkLight: string;
|
|
8754
8772
|
link: string;
|
|
8755
8773
|
codeLight: string;
|
|
8756
8774
|
code: string;
|
|
@@ -9824,7 +9842,9 @@ export declare const StyledCheckboxGroupContainer: import("@stitches/react/types
|
|
|
9824
9842
|
xl: string;
|
|
9825
9843
|
};
|
|
9826
9844
|
colors: {
|
|
9845
|
+
textLight: string;
|
|
9827
9846
|
text: string;
|
|
9847
|
+
linkLight: string;
|
|
9828
9848
|
link: string;
|
|
9829
9849
|
codeLight: string;
|
|
9830
9850
|
code: string;
|
|
@@ -23,8 +23,8 @@ export declare const useCheckboxGroup: (props?: UseCheckboxGroupProps) => {
|
|
|
23
23
|
color: "default" | "primary" | "secondary" | "success" | "warning" | "error" | "gradient";
|
|
24
24
|
labelColor: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
25
25
|
groupState: import("@react-stately/checkbox").CheckboxGroupState;
|
|
26
|
-
labelProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
|
|
27
|
-
groupProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
|
|
26
|
+
labelProps: import("@react-types/shared/src/dom").DOMAttributes<import("@react-types/shared/src/dom").FocusableElement>;
|
|
27
|
+
groupProps: import("@react-types/shared/src/dom").DOMAttributes<import("@react-types/shared/src/dom").FocusableElement>;
|
|
28
28
|
};
|
|
29
29
|
export declare type UseCheckboxGroupReturn = Omit<ReturnType<typeof useCheckboxGroup>, "css">;
|
|
30
30
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { AriaCheckboxProps } from "@react-types/checkbox";
|
|
3
3
|
import type { NormalSizes, NormalColors, SimpleColors } from "../utils/prop-types";
|
|
4
|
+
import { CSS } from "../theme";
|
|
4
5
|
export interface UseCheckboxProps extends AriaCheckboxProps {
|
|
5
6
|
isRounded?: boolean;
|
|
6
7
|
lineThrough?: boolean;
|
|
@@ -8,6 +9,7 @@ export interface UseCheckboxProps extends AriaCheckboxProps {
|
|
|
8
9
|
size?: NormalSizes;
|
|
9
10
|
color?: NormalColors;
|
|
10
11
|
labelColor?: SimpleColors;
|
|
12
|
+
containerCss?: CSS;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* @internal
|
|
@@ -22,5 +24,6 @@ export declare const useCheckbox: (props: UseCheckboxProps) => {
|
|
|
22
24
|
isIndeterminate: boolean;
|
|
23
25
|
inputRef: import("react").RefObject<HTMLInputElement>;
|
|
24
26
|
inputProps: import("react").InputHTMLAttributes<HTMLInputElement>;
|
|
27
|
+
containerCss: CSS | undefined;
|
|
25
28
|
};
|
|
26
29
|
export declare type UseCheckboxReturn = ReturnType<typeof useCheckbox>;
|
package/types/code/code.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { CodeVariantsProps } from "./code.styles";
|
|
|
4
4
|
interface Props {
|
|
5
5
|
block?: boolean;
|
|
6
6
|
as?: keyof JSX.IntrinsicElements;
|
|
7
|
+
children?: React.ReactNode;
|
|
7
8
|
}
|
|
8
9
|
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props>;
|
|
9
10
|
export declare type CodeProps = Props & NativeAttrs & CodeVariantsProps & {
|
|
@@ -11,5 +12,28 @@ export declare type CodeProps = Props & NativeAttrs & CodeVariantsProps & {
|
|
|
11
12
|
};
|
|
12
13
|
declare const _default: React.ComponentType<Partial<{
|
|
13
14
|
block: boolean;
|
|
14
|
-
}> & Omit<
|
|
15
|
+
}> & Omit<Props & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{}, {
|
|
16
|
+
xs: string;
|
|
17
|
+
sm: string;
|
|
18
|
+
md: string;
|
|
19
|
+
lg: string;
|
|
20
|
+
xl: string;
|
|
21
|
+
xsMin: string;
|
|
22
|
+
smMin: string;
|
|
23
|
+
mdMin: string;
|
|
24
|
+
lgMin: string;
|
|
25
|
+
xlMin: string;
|
|
26
|
+
xsMax: string;
|
|
27
|
+
smMax: string;
|
|
28
|
+
mdMax: string;
|
|
29
|
+
lgMax: string;
|
|
30
|
+
xlMax: string;
|
|
31
|
+
motion: string;
|
|
32
|
+
safari: string;
|
|
33
|
+
hover: string;
|
|
34
|
+
dark: string;
|
|
35
|
+
light: string;
|
|
36
|
+
}> & {
|
|
37
|
+
css?: CSS | undefined;
|
|
38
|
+
}, "block">>;
|
|
15
39
|
export default _default;
|
|
@@ -57,7 +57,9 @@ export declare const StyledCode: import("@stitches/react/types/styled-component"
|
|
|
57
57
|
xl: string;
|
|
58
58
|
};
|
|
59
59
|
colors: {
|
|
60
|
+
textLight: string;
|
|
60
61
|
text: string;
|
|
62
|
+
linkLight: string;
|
|
61
63
|
link: string;
|
|
62
64
|
codeLight: string;
|
|
63
65
|
code: string;
|
|
@@ -1129,7 +1131,9 @@ export declare const StyledPre: import("@stitches/react/types/styled-component")
|
|
|
1129
1131
|
xl: string;
|
|
1130
1132
|
};
|
|
1131
1133
|
colors: {
|
|
1134
|
+
textLight: string;
|
|
1132
1135
|
text: string;
|
|
1136
|
+
linkLight: string;
|
|
1133
1137
|
link: string;
|
|
1134
1138
|
codeLight: string;
|
|
1135
1139
|
code: string;
|
package/types/col/col.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import { CSS } from "../theme/stitches.config";
|
|
3
3
|
import { ColVariantsProps } from "./col.styles";
|
|
4
4
|
interface Props {
|
|
5
5
|
span?: number;
|
|
6
6
|
offset?: number;
|
|
7
7
|
css?: CSS;
|
|
8
8
|
as?: keyof JSX.IntrinsicElements;
|
|
9
|
+
children?: React.ReactNode;
|
|
9
10
|
}
|
|
10
11
|
declare const defaultProps: {
|
|
11
12
|
span: number;
|
|
@@ -16,5 +17,29 @@ export declare type ColProps = Props & typeof defaultProps & ColVariantsProps &
|
|
|
16
17
|
declare const _default: React.ComponentType<Partial<{
|
|
17
18
|
span: number;
|
|
18
19
|
offset: number;
|
|
19
|
-
}> & Omit<
|
|
20
|
+
}> & Omit<Props & {
|
|
21
|
+
span: number;
|
|
22
|
+
offset: number;
|
|
23
|
+
} & import("@stitches/react/types/styled-component").TransformProps<{}, {
|
|
24
|
+
xs: string;
|
|
25
|
+
sm: string;
|
|
26
|
+
md: string;
|
|
27
|
+
lg: string;
|
|
28
|
+
xl: string;
|
|
29
|
+
xsMin: string;
|
|
30
|
+
smMin: string;
|
|
31
|
+
mdMin: string;
|
|
32
|
+
lgMin: string;
|
|
33
|
+
xlMin: string;
|
|
34
|
+
xsMax: string;
|
|
35
|
+
smMax: string;
|
|
36
|
+
mdMax: string;
|
|
37
|
+
lgMax: string;
|
|
38
|
+
xlMax: string;
|
|
39
|
+
motion: string;
|
|
40
|
+
safari: string;
|
|
41
|
+
hover: string;
|
|
42
|
+
dark: string;
|
|
43
|
+
light: string;
|
|
44
|
+
}> & NativeAttrs, "span" | "offset">>;
|
|
20
45
|
export default _default;
|
|
@@ -7,6 +7,7 @@ interface Props {
|
|
|
7
7
|
divider?: boolean;
|
|
8
8
|
onChange?: (index?: number | undefined, value?: boolean) => void;
|
|
9
9
|
as?: keyof JSX.IntrinsicElements;
|
|
10
|
+
children?: React.ReactNode;
|
|
10
11
|
}
|
|
11
12
|
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props>;
|
|
12
13
|
export declare type CollapseGroupProps = Props & NativeAttrs & CollapseGroupVariantsProps & {
|
|
@@ -14,5 +15,5 @@ export declare type CollapseGroupProps = Props & NativeAttrs & CollapseGroupVari
|
|
|
14
15
|
};
|
|
15
16
|
declare const _default: React.ComponentType<Partial<{
|
|
16
17
|
accordion: boolean;
|
|
17
|
-
}> & Omit<
|
|
18
|
+
}> & Omit<CollapseGroupProps, "accordion">>;
|
|
18
19
|
export default _default;
|
|
@@ -18,6 +18,7 @@ interface Props {
|
|
|
18
18
|
preventDefault?: boolean;
|
|
19
19
|
onChange?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, index?: number | undefined, value?: boolean) => void;
|
|
20
20
|
as?: keyof JSX.IntrinsicElements;
|
|
21
|
+
children?: React.ReactNode;
|
|
21
22
|
}
|
|
22
23
|
declare const defaultProps: {
|
|
23
24
|
shadow: boolean;
|
|
@@ -64,7 +64,9 @@ export declare const StyledCollapse: import("@stitches/react/types/styled-compon
|
|
|
64
64
|
xl: string;
|
|
65
65
|
};
|
|
66
66
|
colors: {
|
|
67
|
+
textLight: string;
|
|
67
68
|
text: string;
|
|
69
|
+
linkLight: string;
|
|
68
70
|
link: string;
|
|
69
71
|
codeLight: string;
|
|
70
72
|
code: string;
|
|
@@ -1157,7 +1159,9 @@ export declare const StyledCollapseView: import("@stitches/react/types/styled-co
|
|
|
1157
1159
|
xl: string;
|
|
1158
1160
|
};
|
|
1159
1161
|
colors: {
|
|
1162
|
+
textLight: string;
|
|
1160
1163
|
text: string;
|
|
1164
|
+
linkLight: string;
|
|
1161
1165
|
link: string;
|
|
1162
1166
|
codeLight: string;
|
|
1163
1167
|
code: string;
|
|
@@ -2228,7 +2232,9 @@ export declare const StyledCollapseView: import("@stitches/react/types/styled-co
|
|
|
2228
2232
|
xl: string;
|
|
2229
2233
|
};
|
|
2230
2234
|
colors: {
|
|
2235
|
+
textLight: string;
|
|
2231
2236
|
text: string;
|
|
2237
|
+
linkLight: string;
|
|
2232
2238
|
link: string;
|
|
2233
2239
|
codeLight: string;
|
|
2234
2240
|
code: string;
|
|
@@ -3300,7 +3306,9 @@ export declare const StyledCollapseContent: import("@stitches/react/types/styled
|
|
|
3300
3306
|
xl: string;
|
|
3301
3307
|
};
|
|
3302
3308
|
colors: {
|
|
3309
|
+
textLight: string;
|
|
3303
3310
|
text: string;
|
|
3311
|
+
linkLight: string;
|
|
3304
3312
|
link: string;
|
|
3305
3313
|
codeLight: string;
|
|
3306
3314
|
code: string;
|
|
@@ -4372,7 +4380,9 @@ export declare const StyledCollapseIcon: import("@stitches/react/types/styled-co
|
|
|
4372
4380
|
xl: string;
|
|
4373
4381
|
};
|
|
4374
4382
|
colors: {
|
|
4383
|
+
textLight: string;
|
|
4375
4384
|
text: string;
|
|
4385
|
+
linkLight: string;
|
|
4376
4386
|
link: string;
|
|
4377
4387
|
codeLight: string;
|
|
4378
4388
|
code: string;
|
|
@@ -5449,7 +5459,9 @@ export declare const StyledCollapseGroup: import("@stitches/react/types/styled-c
|
|
|
5449
5459
|
xl: string;
|
|
5450
5460
|
};
|
|
5451
5461
|
colors: {
|
|
5462
|
+
textLight: string;
|
|
5452
5463
|
text: string;
|
|
5464
|
+
linkLight: string;
|
|
5453
5465
|
link: string;
|
|
5454
5466
|
codeLight: string;
|
|
5455
5467
|
code: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import { CSS } from "../theme/stitches.config";
|
|
3
3
|
import { Wrap, Display, Justify, Direction, AlignItems, AlignContent } from "../utils/prop-types";
|
|
4
4
|
interface Props {
|
|
5
5
|
gap?: number;
|
|
@@ -18,6 +18,7 @@ interface Props {
|
|
|
18
18
|
alignContent?: AlignContent;
|
|
19
19
|
as?: keyof JSX.IntrinsicElements;
|
|
20
20
|
css?: CSS;
|
|
21
|
+
children?: React.ReactNode;
|
|
21
22
|
}
|
|
22
23
|
declare const defaultProps: {
|
|
23
24
|
gap: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { DividerAlign, SimpleColors } from "../utils/prop-types";
|
|
3
|
-
import { CSS } from "../theme/stitches.config";
|
|
4
4
|
import { DividerVariantsProps } from "./divider.styles";
|
|
5
5
|
interface Props {
|
|
6
6
|
x?: number;
|
|
@@ -10,6 +10,7 @@ interface Props {
|
|
|
10
10
|
align?: DividerAlign;
|
|
11
11
|
css?: CSS;
|
|
12
12
|
as?: keyof JSX.IntrinsicElements;
|
|
13
|
+
children?: React.ReactNode;
|
|
13
14
|
}
|
|
14
15
|
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props>;
|
|
15
16
|
export declare type DividerProps = Props & DividerVariantsProps & NativeAttrs;
|
|
@@ -18,5 +19,28 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
18
19
|
y: number;
|
|
19
20
|
height: number;
|
|
20
21
|
align: "left" | "right" | "start" | "center" | "end";
|
|
21
|
-
}> & Omit<
|
|
22
|
+
}> & Omit<Props & import("@stitches/react/types/styled-component").TransformProps<{
|
|
23
|
+
color?: "default" | "primary" | "secondary" | "success" | "warning" | "error" | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
xs: string;
|
|
26
|
+
sm: string;
|
|
27
|
+
md: string;
|
|
28
|
+
lg: string;
|
|
29
|
+
xl: string;
|
|
30
|
+
xsMin: string;
|
|
31
|
+
smMin: string;
|
|
32
|
+
mdMin: string;
|
|
33
|
+
lgMin: string;
|
|
34
|
+
xlMin: string;
|
|
35
|
+
xsMax: string;
|
|
36
|
+
smMax: string;
|
|
37
|
+
mdMax: string;
|
|
38
|
+
lgMax: string;
|
|
39
|
+
xlMax: string;
|
|
40
|
+
motion: string;
|
|
41
|
+
safari: string;
|
|
42
|
+
hover: string;
|
|
43
|
+
dark: string;
|
|
44
|
+
light: string;
|
|
45
|
+
}> & NativeAttrs, "height" | "x" | "y" | "align">>;
|
|
22
46
|
export default _default;
|
|
@@ -59,7 +59,9 @@ export declare const StyledDivider: import("@stitches/react/types/styled-compone
|
|
|
59
59
|
xl: string;
|
|
60
60
|
};
|
|
61
61
|
colors: {
|
|
62
|
+
textLight: string;
|
|
62
63
|
text: string;
|
|
64
|
+
linkLight: string;
|
|
63
65
|
link: string;
|
|
64
66
|
codeLight: string;
|
|
65
67
|
code: string;
|
|
@@ -1133,7 +1135,9 @@ export declare const StyledDividerText: import("@stitches/react/types/styled-com
|
|
|
1133
1135
|
xl: string;
|
|
1134
1136
|
};
|
|
1135
1137
|
colors: {
|
|
1138
|
+
textLight: string;
|
|
1136
1139
|
text: string;
|
|
1140
|
+
linkLight: string;
|
|
1137
1141
|
link: string;
|
|
1138
1142
|
codeLight: string;
|
|
1139
1143
|
code: string;
|
|
@@ -80,6 +80,31 @@ export declare const DropdownProvider: import("react").Provider<{
|
|
|
80
80
|
} & {
|
|
81
81
|
[x: string]: boolean | "true" | undefined;
|
|
82
82
|
}) | undefined;
|
|
83
|
+
isPositioned?: boolean | "true" | "false" | ({
|
|
84
|
+
"@xs"?: boolean | "true" | "false" | undefined;
|
|
85
|
+
"@sm"?: boolean | "true" | "false" | undefined;
|
|
86
|
+
"@md"?: boolean | "true" | "false" | undefined;
|
|
87
|
+
"@lg"?: boolean | "true" | "false" | undefined;
|
|
88
|
+
"@xl"?: boolean | "true" | "false" | undefined;
|
|
89
|
+
"@dark"?: boolean | "true" | "false" | undefined;
|
|
90
|
+
"@light"?: boolean | "true" | "false" | undefined;
|
|
91
|
+
"@hover"?: boolean | "true" | "false" | undefined;
|
|
92
|
+
"@motion"?: boolean | "true" | "false" | undefined;
|
|
93
|
+
"@xsMin"?: boolean | "true" | "false" | undefined;
|
|
94
|
+
"@smMin"?: boolean | "true" | "false" | undefined;
|
|
95
|
+
"@mdMin"?: boolean | "true" | "false" | undefined;
|
|
96
|
+
"@lgMin"?: boolean | "true" | "false" | undefined;
|
|
97
|
+
"@xlMin"?: boolean | "true" | "false" | undefined;
|
|
98
|
+
"@xsMax"?: boolean | "true" | "false" | undefined;
|
|
99
|
+
"@smMax"?: boolean | "true" | "false" | undefined;
|
|
100
|
+
"@mdMax"?: boolean | "true" | "false" | undefined;
|
|
101
|
+
"@lgMax"?: boolean | "true" | "false" | undefined;
|
|
102
|
+
"@xlMax"?: boolean | "true" | "false" | undefined;
|
|
103
|
+
"@safari"?: boolean | "true" | "false" | undefined;
|
|
104
|
+
"@initial"?: boolean | "true" | "false" | undefined;
|
|
105
|
+
} & {
|
|
106
|
+
[x: string]: boolean | "true" | "false" | undefined;
|
|
107
|
+
}) | undefined;
|
|
83
108
|
scrollRef?: import("react").RefObject<HTMLElement> | undefined;
|
|
84
109
|
shouldFlip?: boolean | undefined;
|
|
85
110
|
isDismissable?: boolean | undefined;
|
|
@@ -87,14 +112,11 @@ export declare const DropdownProvider: import("react").Provider<{
|
|
|
87
112
|
shouldCloseOnBlur?: boolean | undefined;
|
|
88
113
|
isKeyboardDismissDisabled?: boolean | undefined;
|
|
89
114
|
shouldCloseOnInteractOutside?: ((element: HTMLElement) => boolean) | undefined;
|
|
90
|
-
isOpen?: boolean | undefined;
|
|
91
|
-
defaultOpen?: boolean | undefined;
|
|
92
|
-
onOpenChange?: ((isOpen: boolean) => void) | undefined;
|
|
93
115
|
};
|
|
94
116
|
state: import("@react-stately/menu").MenuTriggerState;
|
|
95
117
|
ref: import("react").RefObject<HTMLUListElement>;
|
|
96
118
|
onClose: () => void;
|
|
97
|
-
autoFocus: import("@react-types/shared").FocusStrategy;
|
|
119
|
+
autoFocus: import("@react-types/shared/src/selection").FocusStrategy;
|
|
98
120
|
disableAnimation: boolean;
|
|
99
121
|
disableTriggerPressedAnimation: boolean;
|
|
100
122
|
menuRef: import("react").RefObject<HTMLUListElement>;
|
|
@@ -128,19 +150,19 @@ export declare const DropdownProvider: import("react").Provider<{
|
|
|
128
150
|
closeOnSelect: boolean | undefined;
|
|
129
151
|
getMenuTriggerProps: (props?: any, _ref?: any) => any;
|
|
130
152
|
isVirtualized?: boolean | undefined;
|
|
131
|
-
keyboardDelegate?: import("@react-types/shared").KeyboardDelegate | undefined;
|
|
153
|
+
keyboardDelegate?: import("@react-types/shared/src/collections").KeyboardDelegate | undefined;
|
|
132
154
|
id?: string | undefined;
|
|
133
155
|
'aria-describedby'?: string | undefined;
|
|
134
156
|
'aria-details'?: string | undefined;
|
|
135
157
|
'aria-label'?: string | undefined;
|
|
136
158
|
'aria-labelledby'?: string | undefined;
|
|
137
|
-
selectionMode?: import("@react-types/shared").SelectionMode | undefined;
|
|
159
|
+
selectionMode?: import("@react-types/shared/src/selection").SelectionMode | undefined;
|
|
138
160
|
items?: Iterable<unknown> | undefined;
|
|
139
161
|
disabledKeys?: Iterable<import("react").Key> | undefined;
|
|
140
162
|
disallowEmptySelection?: boolean | undefined;
|
|
141
163
|
selectedKeys?: "all" | Iterable<import("react").Key> | undefined;
|
|
142
164
|
defaultSelectedKeys?: "all" | Iterable<import("react").Key> | undefined;
|
|
143
|
-
onSelectionChange?: ((keys: import("@react-types/shared").Selection) => any) | undefined;
|
|
165
|
+
onSelectionChange?: ((keys: import("@react-types/shared/src/selection").Selection) => any) | undefined;
|
|
144
166
|
shouldFocusWrap?: boolean | undefined;
|
|
145
167
|
onAction?: ((key: import("react").Key) => void) | undefined;
|
|
146
168
|
}>, useDropdownContext: () => {
|
|
@@ -224,6 +246,31 @@ export declare const DropdownProvider: import("react").Provider<{
|
|
|
224
246
|
} & {
|
|
225
247
|
[x: string]: boolean | "true" | undefined;
|
|
226
248
|
}) | undefined;
|
|
249
|
+
isPositioned?: boolean | "true" | "false" | ({
|
|
250
|
+
"@xs"?: boolean | "true" | "false" | undefined;
|
|
251
|
+
"@sm"?: boolean | "true" | "false" | undefined;
|
|
252
|
+
"@md"?: boolean | "true" | "false" | undefined;
|
|
253
|
+
"@lg"?: boolean | "true" | "false" | undefined;
|
|
254
|
+
"@xl"?: boolean | "true" | "false" | undefined;
|
|
255
|
+
"@dark"?: boolean | "true" | "false" | undefined;
|
|
256
|
+
"@light"?: boolean | "true" | "false" | undefined;
|
|
257
|
+
"@hover"?: boolean | "true" | "false" | undefined;
|
|
258
|
+
"@motion"?: boolean | "true" | "false" | undefined;
|
|
259
|
+
"@xsMin"?: boolean | "true" | "false" | undefined;
|
|
260
|
+
"@smMin"?: boolean | "true" | "false" | undefined;
|
|
261
|
+
"@mdMin"?: boolean | "true" | "false" | undefined;
|
|
262
|
+
"@lgMin"?: boolean | "true" | "false" | undefined;
|
|
263
|
+
"@xlMin"?: boolean | "true" | "false" | undefined;
|
|
264
|
+
"@xsMax"?: boolean | "true" | "false" | undefined;
|
|
265
|
+
"@smMax"?: boolean | "true" | "false" | undefined;
|
|
266
|
+
"@mdMax"?: boolean | "true" | "false" | undefined;
|
|
267
|
+
"@lgMax"?: boolean | "true" | "false" | undefined;
|
|
268
|
+
"@xlMax"?: boolean | "true" | "false" | undefined;
|
|
269
|
+
"@safari"?: boolean | "true" | "false" | undefined;
|
|
270
|
+
"@initial"?: boolean | "true" | "false" | undefined;
|
|
271
|
+
} & {
|
|
272
|
+
[x: string]: boolean | "true" | "false" | undefined;
|
|
273
|
+
}) | undefined;
|
|
227
274
|
scrollRef?: import("react").RefObject<HTMLElement> | undefined;
|
|
228
275
|
shouldFlip?: boolean | undefined;
|
|
229
276
|
isDismissable?: boolean | undefined;
|
|
@@ -231,14 +278,11 @@ export declare const DropdownProvider: import("react").Provider<{
|
|
|
231
278
|
shouldCloseOnBlur?: boolean | undefined;
|
|
232
279
|
isKeyboardDismissDisabled?: boolean | undefined;
|
|
233
280
|
shouldCloseOnInteractOutside?: ((element: HTMLElement) => boolean) | undefined;
|
|
234
|
-
isOpen?: boolean | undefined;
|
|
235
|
-
defaultOpen?: boolean | undefined;
|
|
236
|
-
onOpenChange?: ((isOpen: boolean) => void) | undefined;
|
|
237
281
|
};
|
|
238
282
|
state: import("@react-stately/menu").MenuTriggerState;
|
|
239
283
|
ref: import("react").RefObject<HTMLUListElement>;
|
|
240
284
|
onClose: () => void;
|
|
241
|
-
autoFocus: import("@react-types/shared").FocusStrategy;
|
|
285
|
+
autoFocus: import("@react-types/shared/src/selection").FocusStrategy;
|
|
242
286
|
disableAnimation: boolean;
|
|
243
287
|
disableTriggerPressedAnimation: boolean;
|
|
244
288
|
menuRef: import("react").RefObject<HTMLUListElement>;
|
|
@@ -272,19 +316,19 @@ export declare const DropdownProvider: import("react").Provider<{
|
|
|
272
316
|
closeOnSelect: boolean | undefined;
|
|
273
317
|
getMenuTriggerProps: (props?: any, _ref?: any) => any;
|
|
274
318
|
isVirtualized?: boolean | undefined;
|
|
275
|
-
keyboardDelegate?: import("@react-types/shared").KeyboardDelegate | undefined;
|
|
319
|
+
keyboardDelegate?: import("@react-types/shared/src/collections").KeyboardDelegate | undefined;
|
|
276
320
|
id?: string | undefined;
|
|
277
321
|
'aria-describedby'?: string | undefined;
|
|
278
322
|
'aria-details'?: string | undefined;
|
|
279
323
|
'aria-label'?: string | undefined;
|
|
280
324
|
'aria-labelledby'?: string | undefined;
|
|
281
|
-
selectionMode?: import("@react-types/shared").SelectionMode | undefined;
|
|
325
|
+
selectionMode?: import("@react-types/shared/src/selection").SelectionMode | undefined;
|
|
282
326
|
items?: Iterable<unknown> | undefined;
|
|
283
327
|
disabledKeys?: Iterable<import("react").Key> | undefined;
|
|
284
328
|
disallowEmptySelection?: boolean | undefined;
|
|
285
329
|
selectedKeys?: "all" | Iterable<import("react").Key> | undefined;
|
|
286
330
|
defaultSelectedKeys?: "all" | Iterable<import("react").Key> | undefined;
|
|
287
|
-
onSelectionChange?: ((keys: import("@react-types/shared").Selection) => any) | undefined;
|
|
331
|
+
onSelectionChange?: ((keys: import("@react-types/shared/src/selection").Selection) => any) | undefined;
|
|
288
332
|
shouldFocusWrap?: boolean | undefined;
|
|
289
333
|
onAction?: ((key: import("react").Key) => void) | undefined;
|
|
290
334
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { SimpleColors, DropdownVariants } from "../utils/prop-types";
|
|
2
|
+
import type { CSS } from "../theme/stitches.config";
|
|
2
3
|
import React, { RefAttributes, PropsWithoutRef } from "react";
|
|
3
4
|
import { DOMProps, AriaLabelingProps } from "@react-types/shared";
|
|
4
5
|
import { AriaMenuProps } from "@react-types/menu";
|
|
5
|
-
import { CSS } from "../theme/stitches.config";
|
|
6
6
|
interface Props<T> extends AriaMenuProps<T>, DOMProps, AriaLabelingProps {
|
|
7
7
|
as?: keyof JSX.IntrinsicElements;
|
|
8
8
|
/**
|
|
@@ -24,6 +24,7 @@ interface Props<T> extends AriaMenuProps<T>, DOMProps, AriaLabelingProps {
|
|
|
24
24
|
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props<object>>;
|
|
25
25
|
export declare type DropdownMenuProps<T = object> = Props<T> & NativeAttrs & {
|
|
26
26
|
css?: CSS;
|
|
27
|
+
containerCss?: CSS;
|
|
27
28
|
};
|
|
28
29
|
declare type DropdownComponent<T, P = {}> = React.ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
|
|
29
30
|
declare const _default: DropdownComponent<HTMLUListElement, DropdownMenuProps<object>>;
|