@nextui-org/react 1.0.2-alpha.1 → 1.0.2-beta.3
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 +18 -4
- package/cjs/avatar/avatar-group.styles.d.ts +66 -0
- package/cjs/avatar/avatar.styles.d.ts +33 -0
- package/cjs/backdrop/backdrop.d.ts +1 -1
- package/cjs/backdrop/backdrop.styles.d.ts +99 -0
- package/cjs/button/button-group.styles.d.ts +33 -0
- package/cjs/button/button-icon.d.ts +33 -0
- package/cjs/button/button.styles.d.ts +34 -1
- package/cjs/button/button.styles.js +36 -5
- package/cjs/card/card.styles.d.ts +132 -0
- package/cjs/card/card.styles.js +3 -3
- package/cjs/checkbox/checkbox.js +1 -1
- package/cjs/checkbox/checkbox.styles.d.ts +297 -0
- package/cjs/code/code.styles.d.ts +66 -0
- package/cjs/col/col.styles.d.ts +33 -0
- package/cjs/collapse/collapse.d.ts +5 -3
- package/cjs/collapse/collapse.js +10 -4
- package/cjs/collapse/collapse.styles.d.ts +165 -0
- package/cjs/collapse/collapse.styles.js +4 -2
- package/cjs/container/container.styles.d.ts +33 -0
- package/cjs/divider/divider.styles.d.ts +66 -0
- package/cjs/grid/grid.styles.d.ts +66 -0
- package/cjs/image/image.styles.d.ts +99 -0
- package/cjs/input/input.js +1 -0
- package/cjs/input/input.styles.d.ts +363 -0
- package/cjs/link/link.styles.d.ts +66 -0
- package/cjs/loading/loading.styles.d.ts +198 -0
- package/cjs/modal/modal.styles.d.ts +198 -0
- package/cjs/pagination/pagination.styles.d.ts +198 -0
- package/cjs/progress/progress.styles.d.ts +66 -0
- package/cjs/radio/radio.styles.d.ts +198 -0
- package/cjs/row/row.styles.d.ts +33 -0
- package/cjs/snippet/snippet.styles.d.ts +132 -0
- package/cjs/spacer/spacer.styles.d.ts +33 -0
- package/cjs/switch/index.d.ts +1 -1
- package/cjs/switch/switch.styles.d.ts +132 -0
- package/cjs/text/child.d.ts +2 -0
- package/cjs/text/text.d.ts +3 -3
- package/cjs/text/text.js +1 -1
- package/cjs/text/text.styles.d.ts +33 -0
- package/cjs/theme/common.d.ts +60 -0
- package/cjs/theme/common.js +13 -0
- package/cjs/theme/stitches.config.d.ts +1345 -1041
- package/cjs/theme/stitches.config.js +17 -17
- package/cjs/theme/theme-provider.js +16 -13
- package/cjs/theme/types.d.ts +1 -0
- package/cjs/theme/utils.d.ts +1 -0
- package/cjs/theme/utils.js +12 -2
- package/cjs/tooltip/tooltip.d.ts +4 -1
- package/cjs/tooltip/tooltip.js +4 -2
- package/cjs/tooltip/tooltip.styles.d.ts +132 -0
- package/cjs/tooltip/tooltip.styles.js +2 -8
- package/cjs/user/user.styles.d.ts +165 -0
- package/cjs/utils/drip.d.ts +33 -0
- package/esm/avatar/avatar-group.styles.d.ts +66 -0
- package/esm/avatar/avatar.styles.d.ts +33 -0
- package/esm/backdrop/backdrop.d.ts +1 -1
- package/esm/backdrop/backdrop.styles.d.ts +99 -0
- package/esm/button/button-group.styles.d.ts +33 -0
- package/esm/button/button-icon.d.ts +33 -0
- package/esm/button/button.styles.d.ts +34 -1
- package/esm/button/button.styles.js +36 -5
- package/esm/card/card.styles.d.ts +132 -0
- package/esm/card/card.styles.js +3 -3
- package/esm/checkbox/checkbox.js +1 -1
- package/esm/checkbox/checkbox.styles.d.ts +297 -0
- package/esm/code/code.styles.d.ts +66 -0
- package/esm/col/col.styles.d.ts +33 -0
- package/esm/collapse/collapse.d.ts +5 -3
- package/esm/collapse/collapse.js +10 -4
- package/esm/collapse/collapse.styles.d.ts +165 -0
- package/esm/collapse/collapse.styles.js +4 -2
- package/esm/container/container.styles.d.ts +33 -0
- package/esm/divider/divider.styles.d.ts +66 -0
- package/esm/grid/grid.styles.d.ts +66 -0
- package/esm/image/image.styles.d.ts +99 -0
- package/esm/input/input.js +1 -0
- package/esm/input/input.styles.d.ts +363 -0
- package/esm/link/link.styles.d.ts +66 -0
- package/esm/loading/loading.styles.d.ts +198 -0
- package/esm/modal/modal.styles.d.ts +198 -0
- package/esm/pagination/pagination.styles.d.ts +198 -0
- package/esm/progress/progress.styles.d.ts +66 -0
- package/esm/radio/radio.styles.d.ts +198 -0
- package/esm/row/row.styles.d.ts +33 -0
- package/esm/snippet/snippet.styles.d.ts +132 -0
- package/esm/spacer/spacer.styles.d.ts +33 -0
- package/esm/switch/index.d.ts +1 -1
- package/esm/switch/switch.styles.d.ts +132 -0
- package/esm/text/child.d.ts +2 -0
- package/esm/text/text.d.ts +3 -3
- package/esm/text/text.js +1 -1
- package/esm/text/text.styles.d.ts +33 -0
- package/esm/theme/common.d.ts +60 -0
- package/esm/theme/common.js +13 -0
- package/esm/theme/stitches.config.d.ts +1345 -1041
- package/esm/theme/stitches.config.js +17 -17
- package/esm/theme/theme-provider.js +16 -13
- package/esm/theme/types.d.ts +1 -0
- package/esm/theme/utils.d.ts +1 -0
- package/esm/theme/utils.js +12 -2
- package/esm/tooltip/tooltip.d.ts +4 -1
- package/esm/tooltip/tooltip.js +4 -2
- package/esm/tooltip/tooltip.styles.d.ts +132 -0
- package/esm/tooltip/tooltip.styles.js +2 -8
- package/esm/user/user.styles.d.ts +165 -0
- package/esm/utils/drip.d.ts +33 -0
- package/package.json +3 -2
- package/umd/nextui.js +198 -188
- package/umd/nextui.min.js +1 -1
- package/cjs/theme/ssr-provider.d.ts +0 -7
- package/cjs/theme/ssr-provider.js +0 -51
- package/esm/theme/ssr-provider.d.ts +0 -7
- package/esm/theme/ssr-provider.js +0 -51
|
@@ -20,16 +20,7 @@ const getStitchesTheme = targetTheme => {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
exports.getStitchesTheme = getStitchesTheme;
|
|
23
|
-
const {
|
|
24
|
-
styled,
|
|
25
|
-
css,
|
|
26
|
-
theme,
|
|
27
|
-
createTheme: createThemeBase,
|
|
28
|
-
getCssText,
|
|
29
|
-
globalCss,
|
|
30
|
-
keyframes,
|
|
31
|
-
config
|
|
32
|
-
} = (0, _react.createStitches)({ ..._common.default,
|
|
23
|
+
const stitches = (0, _react.createStitches)({ ..._common.default,
|
|
33
24
|
theme: { ..._common.default.theme,
|
|
34
25
|
shadows: { ..._lightTheme.default.shadows
|
|
35
26
|
},
|
|
@@ -38,14 +29,22 @@ const {
|
|
|
38
29
|
}
|
|
39
30
|
}
|
|
40
31
|
});
|
|
41
|
-
|
|
42
|
-
exports.
|
|
32
|
+
const createThemeBase = stitches.createTheme;
|
|
33
|
+
exports.createThemeBase = createThemeBase;
|
|
34
|
+
const styled = stitches.styled;
|
|
35
|
+
exports.styled = styled;
|
|
36
|
+
const css = stitches.css;
|
|
37
|
+
exports.css = css;
|
|
38
|
+
const globalCss = stitches.globalCss;
|
|
43
39
|
exports.globalCss = globalCss;
|
|
40
|
+
const keyframes = stitches.keyframes;
|
|
41
|
+
exports.keyframes = keyframes;
|
|
42
|
+
const getCssText = stitches.getCssText;
|
|
44
43
|
exports.getCssText = getCssText;
|
|
45
|
-
|
|
44
|
+
const theme = stitches.theme;
|
|
46
45
|
exports.theme = theme;
|
|
47
|
-
|
|
48
|
-
exports.
|
|
46
|
+
const config = stitches.config;
|
|
47
|
+
exports.config = config;
|
|
49
48
|
const sharedFocus = css({
|
|
50
49
|
WebkitTapHighlightColor: 'transparent',
|
|
51
50
|
'&:focus:not(&:focus-visible)': {
|
|
@@ -76,13 +75,14 @@ exports.sharedVisuallyHidden = sharedVisuallyHidden;
|
|
|
76
75
|
|
|
77
76
|
const createTheme = ({
|
|
78
77
|
type,
|
|
79
|
-
theme
|
|
78
|
+
theme,
|
|
79
|
+
className
|
|
80
80
|
}) => {
|
|
81
81
|
if (!type) {
|
|
82
82
|
throw new Error('Theme type is required');
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
return createThemeBase(`${type}-theme`, (0, _deepMerge.default)(type === 'dark' ? _darkTheme.default : _lightTheme.default, theme));
|
|
85
|
+
return createThemeBase(className || `${type}-theme`, (0, _deepMerge.default)(type === 'dark' ? _darkTheme.default : _lightTheme.default, theme));
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
exports.createTheme = createTheme;
|
|
@@ -17,8 +17,6 @@ var _deepMerge = _interopRequireDefault(require("../utils/deep-merge"));
|
|
|
17
17
|
|
|
18
18
|
var _object = require("../utils/object");
|
|
19
19
|
|
|
20
|
-
var _ssrProvider = require("./ssr-provider");
|
|
21
|
-
|
|
22
20
|
var _utils = require("./utils");
|
|
23
21
|
|
|
24
22
|
var _useSsr = _interopRequireDefault(require("../use-ssr"));
|
|
@@ -55,10 +53,11 @@ const ThemeProvider = ({
|
|
|
55
53
|
const providerValue = (0, _react.useMemo)(() => {
|
|
56
54
|
const themeTokens = isBrowser ? (0, _utils.getDocumentCSSTokens)() : {};
|
|
57
55
|
const theme = (0, _deepMerge.default)((0, _object.copyObject)(_themeContext.defaultContext.theme), themeTokens);
|
|
56
|
+
const themeName = (0, _utils.getThemeName)(currentTheme);
|
|
58
57
|
return {
|
|
59
58
|
theme,
|
|
60
|
-
type:
|
|
61
|
-
isDark:
|
|
59
|
+
type: themeName,
|
|
60
|
+
isDark: themeName === 'dark'
|
|
62
61
|
};
|
|
63
62
|
}, [currentTheme, isBrowser]);
|
|
64
63
|
(0, _react.useEffect)(() => {
|
|
@@ -90,15 +89,19 @@ const ThemeProvider = ({
|
|
|
90
89
|
});
|
|
91
90
|
return () => observer.disconnect();
|
|
92
91
|
}, []);
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
92
|
+
(0, _react.useEffect)(() => {
|
|
93
|
+
if (!isBrowser || !userTheme) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (userTheme != null && userTheme.className) {
|
|
98
|
+
(0, _utils.changeTheme)(userTheme.className);
|
|
99
|
+
changeCurrentTheme((0, _utils.getThemeName)(userTheme.className));
|
|
100
|
+
}
|
|
101
|
+
}, [isBrowser, userTheme]);
|
|
102
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_themeContext.default.Provider, {
|
|
103
|
+
value: providerValue,
|
|
104
|
+
children: [!disableBaseline && /*#__PURE__*/(0, _jsxRuntime.jsx)(_cssBaseline.default, {}), children]
|
|
102
105
|
});
|
|
103
106
|
};
|
|
104
107
|
|
package/esm/theme/types.d.ts
CHANGED
package/esm/theme/utils.d.ts
CHANGED
|
@@ -12,4 +12,5 @@ export declare const getDocumentCSSTokens: () => {
|
|
|
12
12
|
* Returns active theme according to the given document
|
|
13
13
|
*/
|
|
14
14
|
export declare const getDocumentTheme: (el: HTMLElement) => string;
|
|
15
|
+
export declare const getThemeName: (theme: ThemeType | string) => string;
|
|
15
16
|
export declare const changeTheme: (theme: ThemeType | string) => void;
|
package/esm/theme/utils.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.getTokenValue = exports.getDocumentTheme = exports.getDocumentCSSTokens = exports.changeTheme = void 0;
|
|
6
|
+
exports.getTokenValue = exports.getThemeName = exports.getDocumentTheme = exports.getDocumentCSSTokens = exports.changeTheme = void 0;
|
|
7
7
|
|
|
8
8
|
var _common = _interopRequireDefault(require("./common"));
|
|
9
9
|
|
|
@@ -89,6 +89,16 @@ const getDocumentTheme = el => {
|
|
|
89
89
|
|
|
90
90
|
exports.getDocumentTheme = getDocumentTheme;
|
|
91
91
|
|
|
92
|
+
const getThemeName = theme => {
|
|
93
|
+
if (typeof theme === 'string') {
|
|
94
|
+
return theme != null && theme.includes('-theme') ? theme == null ? void 0 : theme.replace('-theme', '') : theme;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return theme;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
exports.getThemeName = getThemeName;
|
|
101
|
+
|
|
92
102
|
const changeTheme = theme => {
|
|
93
103
|
var _el$getAttribute2, _el$getAttribute3;
|
|
94
104
|
|
|
@@ -96,7 +106,7 @@ const changeTheme = theme => {
|
|
|
96
106
|
const el = document.documentElement;
|
|
97
107
|
const prevClasses = (el == null ? void 0 : (_el$getAttribute2 = el.getAttribute('class')) == null ? void 0 : _el$getAttribute2.split(' ').filter(cls => !cls.includes('theme') && !cls.includes('light') && !cls.includes('dark'))) || [];
|
|
98
108
|
const prevStyles = (el == null ? void 0 : (_el$getAttribute3 = el.getAttribute('style')) == null ? void 0 : _el$getAttribute3.split(';').filter(stl => !stl.includes('color-scheme')).map(el => `${el};`)) || [];
|
|
99
|
-
el == null ? void 0 : el.setAttribute('class', (0, _clsx.default)(prevClasses, `${theme}-theme`));
|
|
109
|
+
el == null ? void 0 : el.setAttribute('class', (0, _clsx.default)(prevClasses, `${getThemeName(theme)}-theme`));
|
|
100
110
|
el == null ? void 0 : el.setAttribute('style', (0, _clsx.default)(prevStyles, `color-scheme: ${theme};`));
|
|
101
111
|
};
|
|
102
112
|
|
package/esm/tooltip/tooltip.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ interface Props {
|
|
|
19
19
|
leaveDelay?: number;
|
|
20
20
|
offset?: number;
|
|
21
21
|
className?: string;
|
|
22
|
+
keepMounted?: boolean;
|
|
22
23
|
portalClassName?: string;
|
|
23
24
|
onClick?: () => void;
|
|
24
25
|
onVisibleChange?: TooltipOnVisibleChange;
|
|
@@ -31,6 +32,7 @@ declare const defaultProps: {
|
|
|
31
32
|
animated: boolean;
|
|
32
33
|
shadow: boolean;
|
|
33
34
|
rounded: boolean;
|
|
35
|
+
keepMounted: boolean;
|
|
34
36
|
trigger: "hover" | "click";
|
|
35
37
|
enterDelay: number;
|
|
36
38
|
leaveDelay: number;
|
|
@@ -46,11 +48,12 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
46
48
|
animated: boolean;
|
|
47
49
|
shadow: boolean;
|
|
48
50
|
rounded: boolean;
|
|
51
|
+
keepMounted: boolean;
|
|
49
52
|
trigger: "hover" | "click";
|
|
50
53
|
enterDelay: number;
|
|
51
54
|
leaveDelay: number;
|
|
52
55
|
className: string;
|
|
53
56
|
portalClassName: string;
|
|
54
57
|
onVisibleChange: TooltipOnVisibleChange;
|
|
55
|
-
}> & Omit<React.PropsWithChildren<TooltipProps>, "rounded" | "className" | "animated" | "shadow" | "hideArrow" | "initialVisible" | "trigger" | "enterDelay" | "leaveDelay" | "portalClassName" | "onVisibleChange">>;
|
|
58
|
+
}> & Omit<React.PropsWithChildren<TooltipProps>, "rounded" | "className" | "animated" | "shadow" | "hideArrow" | "initialVisible" | "trigger" | "enterDelay" | "leaveDelay" | "keepMounted" | "portalClassName" | "onVisibleChange">>;
|
|
56
59
|
export default _default;
|
package/esm/tooltip/tooltip.js
CHANGED
|
@@ -27,6 +27,7 @@ const defaultProps = {
|
|
|
27
27
|
animated: true,
|
|
28
28
|
shadow: true,
|
|
29
29
|
rounded: false,
|
|
30
|
+
keepMounted: false,
|
|
30
31
|
trigger: 'hover',
|
|
31
32
|
enterDelay: 0,
|
|
32
33
|
leaveDelay: 0,
|
|
@@ -56,6 +57,7 @@ const Tooltip = ({
|
|
|
56
57
|
css,
|
|
57
58
|
triggerCss,
|
|
58
59
|
onClick,
|
|
60
|
+
keepMounted,
|
|
59
61
|
visible: customVisible,
|
|
60
62
|
...props
|
|
61
63
|
}) => {
|
|
@@ -63,9 +65,9 @@ const Tooltip = ({
|
|
|
63
65
|
const ref = (0, _react.useRef)(null);
|
|
64
66
|
const [visible, setVisible] = (0, _react.useState)(initialVisible);
|
|
65
67
|
const contentProps = {
|
|
66
|
-
css,
|
|
67
68
|
animated,
|
|
68
69
|
visible,
|
|
70
|
+
css,
|
|
69
71
|
shadow,
|
|
70
72
|
offset,
|
|
71
73
|
placement,
|
|
@@ -108,7 +110,7 @@ const Tooltip = ({
|
|
|
108
110
|
onClick == null ? void 0 : onClick();
|
|
109
111
|
};
|
|
110
112
|
|
|
111
|
-
(0, _useClickAway.default)(ref, () => trigger === 'click' && changeVisible(false));
|
|
113
|
+
(0, _useClickAway.default)(ref, () => trigger === 'click' && !keepMounted && changeVisible(false));
|
|
112
114
|
(0, _react.useEffect)(() => {
|
|
113
115
|
if (customVisible === undefined) return;
|
|
114
116
|
changeVisible(customVisible);
|
|
@@ -835,6 +835,22 @@ export declare const StyledTooltipTrigger: import("@stitches/react/types/styled-
|
|
|
835
835
|
readonly [$$PropertyValue]: "width";
|
|
836
836
|
};
|
|
837
837
|
};
|
|
838
|
+
minSize: (value: {
|
|
839
|
+
readonly [$$PropertyValue]: "width";
|
|
840
|
+
}) => {
|
|
841
|
+
minWidth: {
|
|
842
|
+
readonly [$$PropertyValue]: "width";
|
|
843
|
+
};
|
|
844
|
+
minHeight: {
|
|
845
|
+
readonly [$$PropertyValue]: "width";
|
|
846
|
+
};
|
|
847
|
+
width: {
|
|
848
|
+
readonly [$$PropertyValue]: "width";
|
|
849
|
+
};
|
|
850
|
+
height: {
|
|
851
|
+
readonly [$$PropertyValue]: "width";
|
|
852
|
+
};
|
|
853
|
+
};
|
|
838
854
|
sizeMin: (value: {
|
|
839
855
|
readonly [$$PropertyValue]: "width";
|
|
840
856
|
}) => {
|
|
@@ -851,6 +867,16 @@ export declare const StyledTooltipTrigger: import("@stitches/react/types/styled-
|
|
|
851
867
|
readonly [$$PropertyValue]: "width";
|
|
852
868
|
};
|
|
853
869
|
};
|
|
870
|
+
maxSize: (value: {
|
|
871
|
+
readonly [$$PropertyValue]: "width";
|
|
872
|
+
}) => {
|
|
873
|
+
maxWidth: {
|
|
874
|
+
readonly [$$PropertyValue]: "width";
|
|
875
|
+
};
|
|
876
|
+
maxHeight: {
|
|
877
|
+
readonly [$$PropertyValue]: "width";
|
|
878
|
+
};
|
|
879
|
+
};
|
|
854
880
|
sizeMax: (value: {
|
|
855
881
|
readonly [$$PropertyValue]: "width";
|
|
856
882
|
}) => {
|
|
@@ -881,6 +907,13 @@ export declare const StyledTooltipTrigger: import("@stitches/react/types/styled-
|
|
|
881
907
|
}) => {
|
|
882
908
|
backgroundImage: string;
|
|
883
909
|
};
|
|
910
|
+
tdl: (value: {
|
|
911
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
912
|
+
}) => {
|
|
913
|
+
textDecorationLine: {
|
|
914
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
915
|
+
};
|
|
916
|
+
};
|
|
884
917
|
textGradient: (value: {
|
|
885
918
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
886
919
|
}) => {
|
|
@@ -1725,6 +1758,22 @@ export declare const StyledTooltipArrow: import("@stitches/react/types/styled-co
|
|
|
1725
1758
|
readonly [$$PropertyValue]: "width";
|
|
1726
1759
|
};
|
|
1727
1760
|
};
|
|
1761
|
+
minSize: (value: {
|
|
1762
|
+
readonly [$$PropertyValue]: "width";
|
|
1763
|
+
}) => {
|
|
1764
|
+
minWidth: {
|
|
1765
|
+
readonly [$$PropertyValue]: "width";
|
|
1766
|
+
};
|
|
1767
|
+
minHeight: {
|
|
1768
|
+
readonly [$$PropertyValue]: "width";
|
|
1769
|
+
};
|
|
1770
|
+
width: {
|
|
1771
|
+
readonly [$$PropertyValue]: "width";
|
|
1772
|
+
};
|
|
1773
|
+
height: {
|
|
1774
|
+
readonly [$$PropertyValue]: "width";
|
|
1775
|
+
};
|
|
1776
|
+
};
|
|
1728
1777
|
sizeMin: (value: {
|
|
1729
1778
|
readonly [$$PropertyValue]: "width";
|
|
1730
1779
|
}) => {
|
|
@@ -1741,6 +1790,16 @@ export declare const StyledTooltipArrow: import("@stitches/react/types/styled-co
|
|
|
1741
1790
|
readonly [$$PropertyValue]: "width";
|
|
1742
1791
|
};
|
|
1743
1792
|
};
|
|
1793
|
+
maxSize: (value: {
|
|
1794
|
+
readonly [$$PropertyValue]: "width";
|
|
1795
|
+
}) => {
|
|
1796
|
+
maxWidth: {
|
|
1797
|
+
readonly [$$PropertyValue]: "width";
|
|
1798
|
+
};
|
|
1799
|
+
maxHeight: {
|
|
1800
|
+
readonly [$$PropertyValue]: "width";
|
|
1801
|
+
};
|
|
1802
|
+
};
|
|
1744
1803
|
sizeMax: (value: {
|
|
1745
1804
|
readonly [$$PropertyValue]: "width";
|
|
1746
1805
|
}) => {
|
|
@@ -1771,6 +1830,13 @@ export declare const StyledTooltipArrow: import("@stitches/react/types/styled-co
|
|
|
1771
1830
|
}) => {
|
|
1772
1831
|
backgroundImage: string;
|
|
1773
1832
|
};
|
|
1833
|
+
tdl: (value: {
|
|
1834
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
1835
|
+
}) => {
|
|
1836
|
+
textDecorationLine: {
|
|
1837
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
1838
|
+
};
|
|
1839
|
+
};
|
|
1774
1840
|
textGradient: (value: {
|
|
1775
1841
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
1776
1842
|
}) => {
|
|
@@ -2617,6 +2683,22 @@ export declare const StyledTooltip: import("@stitches/react/types/styled-compone
|
|
|
2617
2683
|
readonly [$$PropertyValue]: "width";
|
|
2618
2684
|
};
|
|
2619
2685
|
};
|
|
2686
|
+
minSize: (value: {
|
|
2687
|
+
readonly [$$PropertyValue]: "width";
|
|
2688
|
+
}) => {
|
|
2689
|
+
minWidth: {
|
|
2690
|
+
readonly [$$PropertyValue]: "width";
|
|
2691
|
+
};
|
|
2692
|
+
minHeight: {
|
|
2693
|
+
readonly [$$PropertyValue]: "width";
|
|
2694
|
+
};
|
|
2695
|
+
width: {
|
|
2696
|
+
readonly [$$PropertyValue]: "width";
|
|
2697
|
+
};
|
|
2698
|
+
height: {
|
|
2699
|
+
readonly [$$PropertyValue]: "width";
|
|
2700
|
+
};
|
|
2701
|
+
};
|
|
2620
2702
|
sizeMin: (value: {
|
|
2621
2703
|
readonly [$$PropertyValue]: "width";
|
|
2622
2704
|
}) => {
|
|
@@ -2633,6 +2715,16 @@ export declare const StyledTooltip: import("@stitches/react/types/styled-compone
|
|
|
2633
2715
|
readonly [$$PropertyValue]: "width";
|
|
2634
2716
|
};
|
|
2635
2717
|
};
|
|
2718
|
+
maxSize: (value: {
|
|
2719
|
+
readonly [$$PropertyValue]: "width";
|
|
2720
|
+
}) => {
|
|
2721
|
+
maxWidth: {
|
|
2722
|
+
readonly [$$PropertyValue]: "width";
|
|
2723
|
+
};
|
|
2724
|
+
maxHeight: {
|
|
2725
|
+
readonly [$$PropertyValue]: "width";
|
|
2726
|
+
};
|
|
2727
|
+
};
|
|
2636
2728
|
sizeMax: (value: {
|
|
2637
2729
|
readonly [$$PropertyValue]: "width";
|
|
2638
2730
|
}) => {
|
|
@@ -2663,6 +2755,13 @@ export declare const StyledTooltip: import("@stitches/react/types/styled-compone
|
|
|
2663
2755
|
}) => {
|
|
2664
2756
|
backgroundImage: string;
|
|
2665
2757
|
};
|
|
2758
|
+
tdl: (value: {
|
|
2759
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
2760
|
+
}) => {
|
|
2761
|
+
textDecorationLine: {
|
|
2762
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
2763
|
+
};
|
|
2764
|
+
};
|
|
2666
2765
|
textGradient: (value: {
|
|
2667
2766
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
2668
2767
|
}) => {
|
|
@@ -3513,6 +3612,22 @@ export declare const StyledTooltipContent: import("@stitches/react/types/styled-
|
|
|
3513
3612
|
readonly [$$PropertyValue]: "width";
|
|
3514
3613
|
};
|
|
3515
3614
|
};
|
|
3615
|
+
minSize: (value: {
|
|
3616
|
+
readonly [$$PropertyValue]: "width";
|
|
3617
|
+
}) => {
|
|
3618
|
+
minWidth: {
|
|
3619
|
+
readonly [$$PropertyValue]: "width";
|
|
3620
|
+
};
|
|
3621
|
+
minHeight: {
|
|
3622
|
+
readonly [$$PropertyValue]: "width";
|
|
3623
|
+
};
|
|
3624
|
+
width: {
|
|
3625
|
+
readonly [$$PropertyValue]: "width";
|
|
3626
|
+
};
|
|
3627
|
+
height: {
|
|
3628
|
+
readonly [$$PropertyValue]: "width";
|
|
3629
|
+
};
|
|
3630
|
+
};
|
|
3516
3631
|
sizeMin: (value: {
|
|
3517
3632
|
readonly [$$PropertyValue]: "width";
|
|
3518
3633
|
}) => {
|
|
@@ -3529,6 +3644,16 @@ export declare const StyledTooltipContent: import("@stitches/react/types/styled-
|
|
|
3529
3644
|
readonly [$$PropertyValue]: "width";
|
|
3530
3645
|
};
|
|
3531
3646
|
};
|
|
3647
|
+
maxSize: (value: {
|
|
3648
|
+
readonly [$$PropertyValue]: "width";
|
|
3649
|
+
}) => {
|
|
3650
|
+
maxWidth: {
|
|
3651
|
+
readonly [$$PropertyValue]: "width";
|
|
3652
|
+
};
|
|
3653
|
+
maxHeight: {
|
|
3654
|
+
readonly [$$PropertyValue]: "width";
|
|
3655
|
+
};
|
|
3656
|
+
};
|
|
3532
3657
|
sizeMax: (value: {
|
|
3533
3658
|
readonly [$$PropertyValue]: "width";
|
|
3534
3659
|
}) => {
|
|
@@ -3559,6 +3684,13 @@ export declare const StyledTooltipContent: import("@stitches/react/types/styled-
|
|
|
3559
3684
|
}) => {
|
|
3560
3685
|
backgroundImage: string;
|
|
3561
3686
|
};
|
|
3687
|
+
tdl: (value: {
|
|
3688
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
3689
|
+
}) => {
|
|
3690
|
+
textDecorationLine: {
|
|
3691
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
3692
|
+
};
|
|
3693
|
+
};
|
|
3562
3694
|
textGradient: (value: {
|
|
3563
3695
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
3564
3696
|
}) => {
|
|
@@ -73,6 +73,7 @@ const StyledTooltipContent = (0, _stitches.styled)('div', {
|
|
|
73
73
|
},
|
|
74
74
|
invert: {
|
|
75
75
|
$$tooltipColor: '$colors$foreground',
|
|
76
|
+
$$tooltipTextColor: '$colors$background',
|
|
76
77
|
bg: '$$tooltipColor'
|
|
77
78
|
}
|
|
78
79
|
},
|
|
@@ -121,14 +122,7 @@ const StyledTooltipContent = (0, _stitches.styled)('div', {
|
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
},
|
|
124
|
-
compoundVariants: [// color='
|
|
125
|
-
{
|
|
126
|
-
color: 'invert',
|
|
127
|
-
contentColor: 'default',
|
|
128
|
-
css: {
|
|
129
|
-
$$tooltipTextColor: '$colors$white'
|
|
130
|
-
}
|
|
131
|
-
}, // color='primary' && contentColor='default'
|
|
125
|
+
compoundVariants: [// color='primary' && contentColor='default'
|
|
132
126
|
{
|
|
133
127
|
color: 'primary',
|
|
134
128
|
contentColor: 'default',
|