@easypost/easy-ui 1.0.0-alpha.5 → 1.0.0-alpha.7
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/Badge/index.js +16 -16
- package/Badge/index.mjs +14 -14
- package/Banner/index.js +7 -7
- package/Banner/index.mjs +5 -5
- package/Button/Button.d.ts +61 -0
- package/Button/Button.d.ts.map +1 -1
- package/Button/index.js +23 -23
- package/Button/index.mjs +20 -20
- package/CHANGELOG.md +22 -0
- package/Card/index.js +84 -5
- package/Card/index.mjs +84 -5
- package/Checkbox/index.js +28 -28
- package/Checkbox/index.mjs +26 -26
- package/CodeBlock/CodeBlock.d.ts +49 -61
- package/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/CodeBlock/CodeBlock.stories.d.ts +3 -2
- package/CodeBlock/CodeBlock.stories.d.ts.map +1 -1
- package/CodeBlock/CopyButton.d.ts +9 -0
- package/CodeBlock/CopyButton.d.ts.map +1 -0
- package/CodeBlock/LanguageMenu.d.ts +18 -0
- package/CodeBlock/LanguageMenu.d.ts.map +1 -0
- package/CodeBlock/context.d.ts +11 -0
- package/CodeBlock/context.d.ts.map +1 -0
- package/CodeBlock/index.js +310 -5335
- package/CodeBlock/index.mjs +299 -5340
- package/CodeSnippet/CodeSnippet.d.ts +82 -0
- package/CodeSnippet/CodeSnippet.d.ts.map +1 -0
- package/CodeSnippet/CodeSnippet.stories.d.ts +14 -0
- package/CodeSnippet/CodeSnippet.stories.d.ts.map +1 -0
- package/CodeSnippet/CodeSnippet.test.d.ts +2 -0
- package/CodeSnippet/CodeSnippet.test.d.ts.map +1 -0
- package/CodeSnippet/SyntaxHighlighter.d.ts +8 -0
- package/CodeSnippet/SyntaxHighlighter.d.ts.map +1 -0
- package/CodeSnippet/index.d.ts +2 -0
- package/CodeSnippet/index.d.ts.map +1 -0
- package/CodeSnippet/index.js +11 -0
- package/CodeSnippet/index.mjs +11 -0
- package/CodeSnippet/theme.d.ts.map +1 -0
- package/CodeSnippet/useScrollbar.d.ts.map +1 -0
- package/DropdownButton/DropdownButton.d.ts +48 -0
- package/DropdownButton/DropdownButton.d.ts.map +1 -1
- package/DropdownButton/index.js +17 -17
- package/DropdownButton/index.mjs +15 -15
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +48 -4
- package/HorizontalStack/index.mjs +48 -4
- package/Icon/Icon.d.ts +51 -0
- package/Icon/Icon.d.ts.map +1 -1
- package/Icon/index.js +38 -4
- package/Icon/index.mjs +38 -4
- package/IconButton/IconButton.d.ts +62 -0
- package/IconButton/IconButton.d.ts.map +1 -1
- package/IconButton/index.js +18 -18
- package/IconButton/index.mjs +15 -15
- package/InputField/index.js +282 -11
- package/InputField/index.mjs +266 -11
- package/Menu/index.js +57 -15
- package/Menu/index.mjs +58 -16
- package/Notification/index.js +1534 -14
- package/Notification/index.mjs +1518 -14
- package/Provider/index.js +9 -9
- package/Provider/index.mjs +9 -9
- package/RadioGroup/index.js +24 -24
- package/RadioGroup/index.mjs +22 -22
- package/Select/index.js +71 -29
- package/Select/index.mjs +71 -29
- package/SelectorErrorTooltip/index.js +99 -8
- package/SelectorErrorTooltip/index.mjs +85 -10
- package/Text/index.js +85 -4
- package/Text/index.mjs +85 -4
- package/TextField/index.js +7 -7
- package/TextField/index.mjs +8 -8
- package/Textarea/index.js +7 -7
- package/Textarea/index.mjs +8 -8
- package/Theme/index.js +145 -9
- package/Theme/index.mjs +145 -9
- package/Toggle/index.js +14 -14
- package/Toggle/index.mjs +14 -14
- package/Tooltip/Tooltip.stories.d.ts +1 -0
- package/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/Tooltip/index.js +5 -5
- package/Tooltip/index.mjs +6 -6
- package/UnstyledButton/index.js +3 -3
- package/UnstyledButton/index.mjs +3 -3
- package/VerticalStack/index.js +3 -3
- package/VerticalStack/index.mjs +3 -3
- package/__chunks__/{InputIcon-4a8e5243.mjs → InputIcon-1f2ed127.mjs} +26 -26
- package/__chunks__/{InputIcon-70dad3e5.js → InputIcon-f456e366.js} +29 -29
- package/__chunks__/{import-87c465c9.js → import-0f8555a4.js} +1 -1
- package/__chunks__/{import-fbe7cc7e.mjs → import-19bc38ac.mjs} +26 -26
- package/__chunks__/{import-9581a2dc.js → import-26676303.js} +44 -1
- package/__chunks__/{import-d2e79ac1.mjs → import-29af6941.mjs} +3 -3
- package/__chunks__/{import-a6cadfe8.mjs → import-3faba3a6.mjs} +58 -15
- package/__chunks__/{import-d52cd5cf.js → import-890ae60e.js} +1 -1
- package/__chunks__/{import-29edaaea.mjs → import-c4caaddf.mjs} +9 -9
- package/__chunks__/{import-9c958e32.mjs → import-eb35a9b9.mjs} +2 -2
- package/__chunks__/{UnstyledButton-981cd9af.mjs → index-45f05366.mjs} +2 -2
- package/__chunks__/{UnstyledButton-5bbb3c5e.js → index-5f429325.js} +1 -1
- package/__chunks__/index-72137376.mjs +5421 -0
- package/__chunks__/index-a7b6b429.js +5420 -0
- package/__chunks__/{Tooltip-c5076ca7.js → index-affe5510.js} +13 -12
- package/__chunks__/{Tooltip-b4e23b78.mjs → index-e989a741.mjs} +14 -13
- package/__chunks__/{overlayscrollbars-react.es-c8369a03.mjs → overlayscrollbars-react.es-7f332a3b.mjs} +4 -4
- package/__chunks__/{overlayscrollbars-react.es-20563393.js → overlayscrollbars-react.es-f2a0bcff.js} +4 -4
- package/__chunks__/{real-module-2f165429.mjs → real-module-515df21d.mjs} +4 -4
- package/__chunks__/{tokens-6be8e137.mjs → tokens-3c27019b.mjs} +1 -0
- package/__chunks__/{tokens-e696ca96.js → tokens-ad06cd2c.js} +1 -0
- package/__chunks__/{useTriggerWidth-29becc21.mjs → useTriggerWidth-b554acaf.mjs} +50 -8
- package/__chunks__/{useTriggerWidth-9528009c.js → useTriggerWidth-e11bf6d6.js} +48 -6
- package/package.json +10 -8
- package/style.css +2182 -2110
- package/utilities/react.d.ts +15 -0
- package/utilities/react.d.ts.map +1 -0
- package/utilities/react.js +333 -0
- package/utilities/react.mjs +333 -0
- package/CodeBlock/SyntaxHighlighter.d.ts +0 -5
- package/CodeBlock/SyntaxHighlighter.d.ts.map +0 -1
- package/CodeBlock/theme.d.ts.map +0 -1
- package/CodeBlock/useScrollbar.d.ts.map +0 -1
- package/__chunks__/Card-2bd533c4.js +0 -85
- package/__chunks__/Card-4ad318ba.mjs +0 -86
- package/__chunks__/HorizontalStack-65adb570.mjs +0 -50
- package/__chunks__/HorizontalStack-f331bfc7.js +0 -49
- package/__chunks__/Icon-1a25dcae.js +0 -39
- package/__chunks__/Icon-6eb724b4.mjs +0 -40
- package/__chunks__/InputField-cc829736.mjs +0 -268
- package/__chunks__/InputField-f5072e37.js +0 -283
- package/__chunks__/Notification-8d749bd1.mjs +0 -1533
- package/__chunks__/Notification-b7a2c277.js +0 -1548
- package/__chunks__/SelectorErrorTooltip-4d820c45.mjs +0 -83
- package/__chunks__/SelectorErrorTooltip-b7bb5b9d.js +0 -98
- package/__chunks__/Text-2efbe1fe.js +0 -86
- package/__chunks__/Text-ec2b8d8a.mjs +0 -87
- package/__chunks__/Theme-123ba2c3.mjs +0 -147
- package/__chunks__/Theme-57f8311c.js +0 -146
- /package/{CodeBlock → CodeSnippet}/theme.d.ts +0 -0
- /package/{CodeBlock → CodeSnippet}/useScrollbar.d.ts +0 -0
package/Theme/index.mjs
CHANGED
|
@@ -1,11 +1,147 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "../
|
|
4
|
-
import "../utilities/
|
|
5
|
-
|
|
1
|
+
import React__default, { createContext, useContext, useState, useMemo } from "react";
|
|
2
|
+
import { e as ezuiTokens } from "../__chunks__/tokens-3c27019b.mjs";
|
|
3
|
+
import { getTokenAliases } from "../utilities/tokens.mjs";
|
|
4
|
+
import { tokenSafeKebabCase } from "../utilities/css.mjs";
|
|
5
|
+
const defaultTheme = createTheme(() => {
|
|
6
|
+
return getThemeFromTokens("theme.base");
|
|
7
|
+
});
|
|
8
|
+
const invertedColorSchemes = {
|
|
9
|
+
light: "dark",
|
|
10
|
+
dark: "light",
|
|
11
|
+
system: "inverted",
|
|
12
|
+
inverted: "system"
|
|
13
|
+
};
|
|
14
|
+
function NoopComponent(props) {
|
|
15
|
+
return React__default.createElement(React__default.Fragment, null, props.children);
|
|
16
|
+
}
|
|
17
|
+
const TrackerContext = createContext(0);
|
|
18
|
+
const ThemeContext = createContext(null);
|
|
19
|
+
const ColorSchemeContext = createContext(null);
|
|
20
|
+
function ThemeProvider({ children, colorScheme: colorSchemeFromUser, theme: themeFromUser }) {
|
|
21
|
+
const parentTheme = useContext(ThemeContext);
|
|
22
|
+
const isRoot = !parentTheme;
|
|
23
|
+
if (!isRoot && !themeFromUser && !colorSchemeFromUser) {
|
|
24
|
+
throw new Error("Must supply theme or colorScheme to ThemeProvider");
|
|
25
|
+
}
|
|
26
|
+
const parentContext = useContext(TrackerContext);
|
|
27
|
+
const [count] = useState(() => parentContext + 1);
|
|
28
|
+
const ThemeContextComponent = isRoot || themeFromUser ? ThemeContextProvider : NoopComponent;
|
|
29
|
+
const ColorSchemeContextComponent = isRoot || colorSchemeFromUser ? ColorSchemeContextProvider : NoopComponent;
|
|
30
|
+
const theme = themeFromUser ? themeFromUser : defaultTheme;
|
|
31
|
+
const colorScheme = colorSchemeFromUser ? colorSchemeFromUser : "system";
|
|
32
|
+
return React__default.createElement(TrackerContext.Provider, {
|
|
33
|
+
value: count
|
|
34
|
+
}, React__default.createElement(ThemeContextComponent, {
|
|
35
|
+
theme
|
|
36
|
+
}, React__default.createElement(ColorSchemeContextComponent, {
|
|
37
|
+
colorScheme
|
|
38
|
+
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Style, {
|
|
39
|
+
isRoot
|
|
40
|
+
}), children))));
|
|
41
|
+
}
|
|
42
|
+
function createTheme(themeCreator) {
|
|
43
|
+
return themeCreator;
|
|
44
|
+
}
|
|
45
|
+
function useTheme() {
|
|
46
|
+
const themeContext = useContext(ThemeContext);
|
|
47
|
+
if (!themeContext) {
|
|
48
|
+
throw new Error("useTheme() must be used within a ThemeProvier");
|
|
49
|
+
}
|
|
50
|
+
return themeContext;
|
|
51
|
+
}
|
|
52
|
+
function useColorScheme() {
|
|
53
|
+
const colorSchemeContext = useContext(ColorSchemeContext);
|
|
54
|
+
if (!colorSchemeContext) {
|
|
55
|
+
throw new Error("useColorScheme() must be used within a ThemeProvider");
|
|
56
|
+
}
|
|
57
|
+
return colorSchemeContext;
|
|
58
|
+
}
|
|
59
|
+
function Style({ isRoot }) {
|
|
60
|
+
const parentContext = useContext(TrackerContext);
|
|
61
|
+
const themeCreator = useTheme();
|
|
62
|
+
const { resolvedColorScheme } = useColorScheme();
|
|
63
|
+
const fingerprint = useMemo(() => {
|
|
64
|
+
return `ezui-theme-style-level-${parentContext}`;
|
|
65
|
+
}, [parentContext]);
|
|
66
|
+
const selector = isRoot ? ":root" : `#${fingerprint} ~ *`;
|
|
67
|
+
const css = useMemo(() => {
|
|
68
|
+
return resolvedColorScheme === "system" ? `${selector} {
|
|
69
|
+
${renderThemeVariables(themeCreator({
|
|
70
|
+
colorScheme: "light"
|
|
71
|
+
}))}
|
|
72
|
+
}
|
|
73
|
+
@media (prefers-color-scheme: dark) {
|
|
74
|
+
${selector} {
|
|
75
|
+
${renderThemeVariables(themeCreator({
|
|
76
|
+
colorScheme: "dark"
|
|
77
|
+
}))}
|
|
78
|
+
}
|
|
79
|
+
}` : resolvedColorScheme === "inverted" ? `${selector} {
|
|
80
|
+
${renderThemeVariables(themeCreator({
|
|
81
|
+
colorScheme: "dark"
|
|
82
|
+
}))}
|
|
83
|
+
}
|
|
84
|
+
@media (prefers-color-scheme: dark) {
|
|
85
|
+
${selector} {
|
|
86
|
+
${renderThemeVariables(themeCreator({
|
|
87
|
+
colorScheme: "light"
|
|
88
|
+
}))}
|
|
89
|
+
}
|
|
90
|
+
}` : `${selector} {
|
|
91
|
+
${renderThemeVariables(themeCreator({
|
|
92
|
+
colorScheme: resolvedColorScheme
|
|
93
|
+
}))}
|
|
94
|
+
}`;
|
|
95
|
+
}, [resolvedColorScheme, selector, themeCreator]);
|
|
96
|
+
return React__default.createElement("style", {
|
|
97
|
+
id: fingerprint,
|
|
98
|
+
dangerouslySetInnerHTML: {
|
|
99
|
+
__html: css
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function ThemeContextProvider({ theme, children }) {
|
|
104
|
+
return React__default.createElement(ThemeContext.Provider, {
|
|
105
|
+
value: theme
|
|
106
|
+
}, children);
|
|
107
|
+
}
|
|
108
|
+
function ColorSchemeContextProvider({ colorScheme, children }) {
|
|
109
|
+
const parentColorSchemeContext = useContext(ColorSchemeContext);
|
|
110
|
+
const colorSchemeContextValue = useMemo(() => {
|
|
111
|
+
const resolvedColorScheme = colorScheme === "inverted" && parentColorSchemeContext ? invertedColorSchemes[parentColorSchemeContext.resolvedColorScheme] : colorScheme;
|
|
112
|
+
return {
|
|
113
|
+
userColorScheme: colorScheme,
|
|
114
|
+
resolvedColorScheme
|
|
115
|
+
};
|
|
116
|
+
}, [colorScheme, parentColorSchemeContext]);
|
|
117
|
+
return React__default.createElement(ColorSchemeContext.Provider, {
|
|
118
|
+
value: colorSchemeContextValue
|
|
119
|
+
}, children);
|
|
120
|
+
}
|
|
121
|
+
function getThemeInstanceVariables(theme) {
|
|
122
|
+
return Object.fromEntries(Object.entries(theme).map(([key, value]) => {
|
|
123
|
+
const property = tokenSafeKebabCase(key);
|
|
124
|
+
return [`--ezui-t-${property}`, value];
|
|
125
|
+
}));
|
|
126
|
+
}
|
|
127
|
+
function renderThemeVariables(theme) {
|
|
128
|
+
const variables = getThemeInstanceVariables(theme);
|
|
129
|
+
const css = Object.entries(variables).map((entry) => entry.join(": ") + ";").join("\n");
|
|
130
|
+
return css;
|
|
131
|
+
}
|
|
132
|
+
function getThemeFromTokens(prefix) {
|
|
133
|
+
const theme = Object.fromEntries(Object.keys(ezuiTokens).filter((key) => key.startsWith(`${prefix}.`)).map((key) => key.replace(new RegExp(`^${prefix}.`), "")).map((key) => {
|
|
134
|
+
const value = `var(--ezui-${tokenSafeKebabCase(prefix)}-${tokenSafeKebabCase(key)})`;
|
|
135
|
+
return [key, value];
|
|
136
|
+
}));
|
|
137
|
+
return theme;
|
|
138
|
+
}
|
|
139
|
+
function getThemeTokenAliases(pattern) {
|
|
140
|
+
return getTokenAliases(getThemeFromTokens("theme.base"), pattern);
|
|
141
|
+
}
|
|
6
142
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
143
|
+
ThemeProvider,
|
|
144
|
+
createTheme,
|
|
145
|
+
defaultTheme,
|
|
146
|
+
getThemeTokenAliases
|
|
11
147
|
};
|
package/Toggle/index.js
CHANGED
|
@@ -20,10 +20,10 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
22
22
|
const React = require("react");
|
|
23
|
-
const
|
|
23
|
+
const Text_index = require("../Text/index.js");
|
|
24
24
|
const utilities_css = require("../utilities/css.js");
|
|
25
|
-
const _import = require("../__chunks__/import-
|
|
26
|
-
const _import$1 = require("../__chunks__/import-
|
|
25
|
+
const _import = require("../__chunks__/import-890ae60e.js");
|
|
26
|
+
const _import$1 = require("../__chunks__/import-26676303.js");
|
|
27
27
|
const _import$2 = require("../__chunks__/import-a1e0f814.js");
|
|
28
28
|
require("../__chunks__/import-dea5a24d.js");
|
|
29
29
|
function $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {
|
|
@@ -39,13 +39,13 @@ function $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {
|
|
|
39
39
|
isReadOnly
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
const Switch$1 = "
|
|
43
|
-
const focusVisible = "
|
|
44
|
-
const track = "
|
|
45
|
-
const thumb = "
|
|
46
|
-
const hovered = "
|
|
47
|
-
const disabled = "
|
|
48
|
-
const selected = "
|
|
42
|
+
const Switch$1 = "_Switch_90k8g_5";
|
|
43
|
+
const focusVisible = "_focusVisible_90k8g_13";
|
|
44
|
+
const track = "_track_90k8g_25";
|
|
45
|
+
const thumb = "_thumb_90k8g_29";
|
|
46
|
+
const hovered = "_hovered_90k8g_33";
|
|
47
|
+
const disabled = "_disabled_90k8g_33";
|
|
48
|
+
const selected = "_selected_90k8g_37";
|
|
49
49
|
const styles$1 = {
|
|
50
50
|
Switch: Switch$1,
|
|
51
51
|
focusVisible,
|
|
@@ -78,9 +78,9 @@ function Switch(props) {
|
|
|
78
78
|
r: 6
|
|
79
79
|
})));
|
|
80
80
|
}
|
|
81
|
-
const Toggle$1 = "
|
|
82
|
-
const text = "
|
|
83
|
-
const input = "
|
|
81
|
+
const Toggle$1 = "_Toggle_14qt2_5";
|
|
82
|
+
const text = "_text_14qt2_25";
|
|
83
|
+
const input = "_input_14qt2_26";
|
|
84
84
|
const styles = {
|
|
85
85
|
Toggle: Toggle$1,
|
|
86
86
|
text,
|
|
@@ -111,7 +111,7 @@ function Toggle(props) {
|
|
|
111
111
|
isSelected
|
|
112
112
|
}), children && React.createElement("span", {
|
|
113
113
|
className: styles.text
|
|
114
|
-
}, React.createElement(
|
|
114
|
+
}, React.createElement(Text_index.Text, {
|
|
115
115
|
variant: "body1",
|
|
116
116
|
color: textColor
|
|
117
117
|
}, children)));
|
package/Toggle/index.mjs
CHANGED
|
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import React__default from "react";
|
|
21
|
-
import {
|
|
21
|
+
import { Text } from "../Text/index.mjs";
|
|
22
22
|
import { classNames } from "../utilities/css.mjs";
|
|
23
|
-
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577, a as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../__chunks__/import-
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
23
|
+
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577, a as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../__chunks__/import-eb35a9b9.mjs";
|
|
24
|
+
import { e as $f7dceffc5ad7768b$export$4e328f61c538687f, f as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/import-3faba3a6.mjs";
|
|
25
|
+
import { a as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/import-19bc38ac.mjs";
|
|
26
26
|
import "../__chunks__/import-6a831ca1.mjs";
|
|
27
27
|
function $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {
|
|
28
28
|
let { inputProps, isSelected, isPressed, isDisabled, isReadOnly } = $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref);
|
|
@@ -37,13 +37,13 @@ function $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {
|
|
|
37
37
|
isReadOnly
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
const Switch$1 = "
|
|
41
|
-
const focusVisible = "
|
|
42
|
-
const track = "
|
|
43
|
-
const thumb = "
|
|
44
|
-
const hovered = "
|
|
45
|
-
const disabled = "
|
|
46
|
-
const selected = "
|
|
40
|
+
const Switch$1 = "_Switch_90k8g_5";
|
|
41
|
+
const focusVisible = "_focusVisible_90k8g_13";
|
|
42
|
+
const track = "_track_90k8g_25";
|
|
43
|
+
const thumb = "_thumb_90k8g_29";
|
|
44
|
+
const hovered = "_hovered_90k8g_33";
|
|
45
|
+
const disabled = "_disabled_90k8g_33";
|
|
46
|
+
const selected = "_selected_90k8g_37";
|
|
47
47
|
const styles$1 = {
|
|
48
48
|
Switch: Switch$1,
|
|
49
49
|
focusVisible,
|
|
@@ -76,9 +76,9 @@ function Switch(props) {
|
|
|
76
76
|
r: 6
|
|
77
77
|
})));
|
|
78
78
|
}
|
|
79
|
-
const Toggle$1 = "
|
|
80
|
-
const text = "
|
|
81
|
-
const input = "
|
|
79
|
+
const Toggle$1 = "_Toggle_14qt2_5";
|
|
80
|
+
const text = "_text_14qt2_25";
|
|
81
|
+
const input = "_input_14qt2_26";
|
|
82
82
|
const styles = {
|
|
83
83
|
Toggle: Toggle$1,
|
|
84
84
|
text,
|
|
@@ -8,6 +8,7 @@ export declare const Placement: Story;
|
|
|
8
8
|
export declare const Immediate: Story;
|
|
9
9
|
export declare const Disabled: Story;
|
|
10
10
|
export declare const FocusOnly: Story;
|
|
11
|
+
export declare const LongText: Story;
|
|
11
12
|
export declare const ButtonTrigger: Story;
|
|
12
13
|
export declare const Controls: Story;
|
|
13
14
|
//# sourceMappingURL=Tooltip.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQlD,OAAO,EAAE,OAAO,EAAgB,MAAM,WAAW,CAAC;AAElD,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAItC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAyB9B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAevB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAK3B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC"}
|
|
1
|
+
{"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQlD,OAAO,EAAE,OAAO,EAAgB,MAAM,WAAW,CAAC;AAElD,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAItC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAyB9B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAevB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAK3B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC"}
|
package/Tooltip/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const Tooltip_index = require("../__chunks__/index-affe5510.js");
|
|
4
4
|
require("react");
|
|
5
|
-
require("../
|
|
5
|
+
require("../Text/index.js");
|
|
6
6
|
require("../utilities/css.js");
|
|
7
|
-
require("../__chunks__/import-
|
|
7
|
+
require("../__chunks__/import-0f8555a4.js");
|
|
8
8
|
require("../__chunks__/import-a1e0f814.js");
|
|
9
|
-
require("../__chunks__/import-
|
|
9
|
+
require("../__chunks__/import-26676303.js");
|
|
10
10
|
require("react-dom");
|
|
11
11
|
require("../__chunks__/import-dea5a24d.js");
|
|
12
12
|
require("../__chunks__/real-module-e36b1436.js");
|
|
13
|
-
exports.Tooltip =
|
|
13
|
+
exports.Tooltip = Tooltip_index.Tooltip;
|
package/Tooltip/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { T } from "../__chunks__/
|
|
1
|
+
import { T } from "../__chunks__/index-e989a741.mjs";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../
|
|
3
|
+
import "../Text/index.mjs";
|
|
4
4
|
import "../utilities/css.mjs";
|
|
5
|
-
import "../__chunks__/import-
|
|
6
|
-
import "../__chunks__/import-
|
|
7
|
-
import "../__chunks__/import-
|
|
5
|
+
import "../__chunks__/import-c4caaddf.mjs";
|
|
6
|
+
import "../__chunks__/import-19bc38ac.mjs";
|
|
7
|
+
import "../__chunks__/import-3faba3a6.mjs";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import "../__chunks__/import-6a831ca1.mjs";
|
|
10
|
-
import "../__chunks__/real-module-
|
|
10
|
+
import "../__chunks__/real-module-515df21d.mjs";
|
|
11
11
|
export {
|
|
12
12
|
T as Tooltip
|
|
13
13
|
};
|
package/UnstyledButton/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const UnstyledButton_index = require("../__chunks__/index-5f429325.js");
|
|
4
4
|
require("../__chunks__/import-a1e0f814.js");
|
|
5
5
|
require("react");
|
|
6
6
|
require("../utilities/css.js");
|
|
7
7
|
require("../__chunks__/omit-fca26542.js");
|
|
8
|
-
require("../__chunks__/import-
|
|
9
|
-
exports.UnstyledButton =
|
|
8
|
+
require("../__chunks__/import-26676303.js");
|
|
9
|
+
exports.UnstyledButton = UnstyledButton_index.UnstyledButton;
|
package/UnstyledButton/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { U } from "../__chunks__/
|
|
2
|
-
import "../__chunks__/import-
|
|
1
|
+
import { U } from "../__chunks__/index-45f05366.mjs";
|
|
2
|
+
import "../__chunks__/import-19bc38ac.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../utilities/css.mjs";
|
|
5
5
|
import "../__chunks__/omit-f17deb8f.mjs";
|
|
6
|
-
import "../__chunks__/import-
|
|
6
|
+
import "../__chunks__/import-3faba3a6.mjs";
|
|
7
7
|
export {
|
|
8
8
|
U as UnstyledButton
|
|
9
9
|
};
|
package/VerticalStack/index.js
CHANGED
|
@@ -33,9 +33,9 @@ var __objRest = (source, exclude) => {
|
|
|
33
33
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
34
34
|
const React = require("react");
|
|
35
35
|
const utilities_css = require("../utilities/css.js");
|
|
36
|
-
const VerticalStack$1 = "
|
|
37
|
-
const listReset = "
|
|
38
|
-
const fieldsetReset = "
|
|
36
|
+
const VerticalStack$1 = "_VerticalStack_1s219_5";
|
|
37
|
+
const listReset = "_listReset_1s219_44";
|
|
38
|
+
const fieldsetReset = "_fieldsetReset_1s219_51";
|
|
39
39
|
const styles = {
|
|
40
40
|
VerticalStack: VerticalStack$1,
|
|
41
41
|
listReset,
|
package/VerticalStack/index.mjs
CHANGED
|
@@ -31,9 +31,9 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
import React__default, { forwardRef } from "react";
|
|
33
33
|
import { classNames, getResponsiveDesignToken, getComponentToken, sanitizeCustomProperties } from "../utilities/css.mjs";
|
|
34
|
-
const VerticalStack$1 = "
|
|
35
|
-
const listReset = "
|
|
36
|
-
const fieldsetReset = "
|
|
34
|
+
const VerticalStack$1 = "_VerticalStack_1s219_5";
|
|
35
|
+
const listReset = "_listReset_1s219_44";
|
|
36
|
+
const fieldsetReset = "_fieldsetReset_1s219_51";
|
|
37
37
|
const styles = {
|
|
38
38
|
VerticalStack: VerticalStack$1,
|
|
39
39
|
listReset,
|
|
@@ -30,33 +30,33 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
32
|
import React__default from "react";
|
|
33
|
-
import {
|
|
33
|
+
import { Text } from "../Text/index.mjs";
|
|
34
34
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
35
|
-
import {
|
|
36
|
-
const root = "
|
|
37
|
-
const inputIconContainer = "
|
|
38
|
-
const label = "
|
|
39
|
-
const labelHidden = "
|
|
40
|
-
const input = "
|
|
41
|
-
const errorInput = "
|
|
42
|
-
const inputSizeSm = "
|
|
43
|
-
const inputSizeLg = "
|
|
44
|
-
const passwordInput = "
|
|
45
|
-
const passwordBtn = "
|
|
46
|
-
const hovered = "
|
|
47
|
-
const textArea = "
|
|
48
|
-
const passwordBtnError = "
|
|
49
|
-
const passwordBtnSm = "
|
|
50
|
-
const passwordBtnLg = "
|
|
51
|
-
const icon = "
|
|
52
|
-
const iconDisabled = "
|
|
53
|
-
const iconStart = "
|
|
54
|
-
const iconEnd = "
|
|
55
|
-
const iconStartInput = "
|
|
56
|
-
const iconEndInput = "
|
|
57
|
-
const inputIconPlacementSm = "
|
|
58
|
-
const inputIconPlacementLg = "
|
|
59
|
-
const caption = "
|
|
35
|
+
import { Icon } from "../Icon/index.mjs";
|
|
36
|
+
const root = "_root_ljrev_5";
|
|
37
|
+
const inputIconContainer = "_inputIconContainer_ljrev_26";
|
|
38
|
+
const label = "_label_ljrev_32";
|
|
39
|
+
const labelHidden = "_labelHidden_ljrev_36";
|
|
40
|
+
const input = "_input_ljrev_26";
|
|
41
|
+
const errorInput = "_errorInput_ljrev_74";
|
|
42
|
+
const inputSizeSm = "_inputSizeSm_ljrev_82";
|
|
43
|
+
const inputSizeLg = "_inputSizeLg_ljrev_96";
|
|
44
|
+
const passwordInput = "_passwordInput_ljrev_104";
|
|
45
|
+
const passwordBtn = "_passwordBtn_ljrev_114";
|
|
46
|
+
const hovered = "_hovered_ljrev_145";
|
|
47
|
+
const textArea = "_textArea_ljrev_154";
|
|
48
|
+
const passwordBtnError = "_passwordBtnError_ljrev_159";
|
|
49
|
+
const passwordBtnSm = "_passwordBtnSm_ljrev_165";
|
|
50
|
+
const passwordBtnLg = "_passwordBtnLg_ljrev_174";
|
|
51
|
+
const icon = "_icon_ljrev_183";
|
|
52
|
+
const iconDisabled = "_iconDisabled_ljrev_193";
|
|
53
|
+
const iconStart = "_iconStart_ljrev_197";
|
|
54
|
+
const iconEnd = "_iconEnd_ljrev_201";
|
|
55
|
+
const iconStartInput = "_iconStartInput_ljrev_205";
|
|
56
|
+
const iconEndInput = "_iconEndInput_ljrev_209";
|
|
57
|
+
const inputIconPlacementSm = "_inputIconPlacementSm_ljrev_213";
|
|
58
|
+
const inputIconPlacementLg = "_inputIconPlacementLg_ljrev_217";
|
|
59
|
+
const caption = "_caption_ljrev_221";
|
|
60
60
|
const styles = {
|
|
61
61
|
root,
|
|
62
62
|
inputIconContainer,
|
|
@@ -31,33 +31,33 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
const React = require("react");
|
|
34
|
-
const
|
|
34
|
+
const Text_index = require("../Text/index.js");
|
|
35
35
|
const utilities_css = require("../utilities/css.js");
|
|
36
|
-
const
|
|
37
|
-
const root = "
|
|
38
|
-
const inputIconContainer = "
|
|
39
|
-
const label = "
|
|
40
|
-
const labelHidden = "
|
|
41
|
-
const input = "
|
|
42
|
-
const errorInput = "
|
|
43
|
-
const inputSizeSm = "
|
|
44
|
-
const inputSizeLg = "
|
|
45
|
-
const passwordInput = "
|
|
46
|
-
const passwordBtn = "
|
|
47
|
-
const hovered = "
|
|
48
|
-
const textArea = "
|
|
49
|
-
const passwordBtnError = "
|
|
50
|
-
const passwordBtnSm = "
|
|
51
|
-
const passwordBtnLg = "
|
|
52
|
-
const icon = "
|
|
53
|
-
const iconDisabled = "
|
|
54
|
-
const iconStart = "
|
|
55
|
-
const iconEnd = "
|
|
56
|
-
const iconStartInput = "
|
|
57
|
-
const iconEndInput = "
|
|
58
|
-
const inputIconPlacementSm = "
|
|
59
|
-
const inputIconPlacementLg = "
|
|
60
|
-
const caption = "
|
|
36
|
+
const Icon_index = require("../Icon/index.js");
|
|
37
|
+
const root = "_root_ljrev_5";
|
|
38
|
+
const inputIconContainer = "_inputIconContainer_ljrev_26";
|
|
39
|
+
const label = "_label_ljrev_32";
|
|
40
|
+
const labelHidden = "_labelHidden_ljrev_36";
|
|
41
|
+
const input = "_input_ljrev_26";
|
|
42
|
+
const errorInput = "_errorInput_ljrev_74";
|
|
43
|
+
const inputSizeSm = "_inputSizeSm_ljrev_82";
|
|
44
|
+
const inputSizeLg = "_inputSizeLg_ljrev_96";
|
|
45
|
+
const passwordInput = "_passwordInput_ljrev_104";
|
|
46
|
+
const passwordBtn = "_passwordBtn_ljrev_114";
|
|
47
|
+
const hovered = "_hovered_ljrev_145";
|
|
48
|
+
const textArea = "_textArea_ljrev_154";
|
|
49
|
+
const passwordBtnError = "_passwordBtnError_ljrev_159";
|
|
50
|
+
const passwordBtnSm = "_passwordBtnSm_ljrev_165";
|
|
51
|
+
const passwordBtnLg = "_passwordBtnLg_ljrev_174";
|
|
52
|
+
const icon = "_icon_ljrev_183";
|
|
53
|
+
const iconDisabled = "_iconDisabled_ljrev_193";
|
|
54
|
+
const iconStart = "_iconStart_ljrev_197";
|
|
55
|
+
const iconEnd = "_iconEnd_ljrev_201";
|
|
56
|
+
const iconStartInput = "_iconStartInput_ljrev_205";
|
|
57
|
+
const iconEndInput = "_iconEndInput_ljrev_209";
|
|
58
|
+
const inputIconPlacementSm = "_inputIconPlacementSm_ljrev_213";
|
|
59
|
+
const inputIconPlacementLg = "_inputIconPlacementLg_ljrev_217";
|
|
60
|
+
const caption = "_caption_ljrev_221";
|
|
61
61
|
const styles = {
|
|
62
62
|
root,
|
|
63
63
|
inputIconContainer,
|
|
@@ -91,7 +91,7 @@ function Label(props) {
|
|
|
91
91
|
const color = hasError ? "danger" : void 0;
|
|
92
92
|
return React.createElement("label", __spreadProps(__spreadValues({}, labelProps), {
|
|
93
93
|
className: utilities_css.classNames(styles.label, isLabelVisuallyHidden && styles.labelHidden)
|
|
94
|
-
}), React.createElement(
|
|
94
|
+
}), React.createElement(Text_index.Text, {
|
|
95
95
|
variant: textVariant,
|
|
96
96
|
as,
|
|
97
97
|
color,
|
|
@@ -102,7 +102,7 @@ function InputCaption(props) {
|
|
|
102
102
|
const _a = props, { variant, children } = _a, captionTextProps = __objRest(_a, ["variant", "children"]);
|
|
103
103
|
return React.createElement("div", __spreadProps(__spreadValues({}, captionTextProps), {
|
|
104
104
|
className: styles.caption
|
|
105
|
-
}), React.createElement(
|
|
105
|
+
}), React.createElement(Text_index.Text, {
|
|
106
106
|
variant: "caption",
|
|
107
107
|
color: variant === "helper" ? "subdued" : "danger"
|
|
108
108
|
}, children));
|
|
@@ -133,7 +133,7 @@ function InputIcon(props) {
|
|
|
133
133
|
const { alignment = "start", size = "md", isDisabled = false, icon: icon2 } = props;
|
|
134
134
|
return React.createElement("div", {
|
|
135
135
|
className: utilities_css.classNames(styles.icon, alignment === "start" ? styles.iconStart : styles.iconEnd, isDisabled && styles.iconDisabled, styles[utilities_css.variationName("inputIconPlacement", size)])
|
|
136
|
-
}, React.createElement(
|
|
136
|
+
}, React.createElement(Icon_index.Icon, {
|
|
137
137
|
symbol: icon2,
|
|
138
138
|
size: mapIconSize(size)
|
|
139
139
|
}));
|
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
const React = require("react");
|
|
34
34
|
const _import = require("./import-a1e0f814.js");
|
|
35
|
-
const _import$1 = require("./import-
|
|
35
|
+
const _import$1 = require("./import-26676303.js");
|
|
36
36
|
const $k7QOs$reactdom = require("react-dom");
|
|
37
37
|
const _import$2 = require("./import-dea5a24d.js");
|
|
38
38
|
const realModule = require("./real-module-e36b1436.js");
|
|
@@ -649,31 +649,31 @@ function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
|
|
|
649
649
|
return event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
650
650
|
}
|
|
651
651
|
export {
|
|
652
|
-
$
|
|
653
|
-
$
|
|
652
|
+
$bdb11010cef70236$export$b4cc09c592e8fdb8 as $,
|
|
653
|
+
$3ef42575df84b30b$export$9d1611c77c2fe928 as a,
|
|
654
654
|
$bdb11010cef70236$export$f680877a34711e37 as b,
|
|
655
|
-
$
|
|
656
|
-
$
|
|
657
|
-
$
|
|
658
|
-
$
|
|
659
|
-
$
|
|
660
|
-
$
|
|
661
|
-
$
|
|
662
|
-
$
|
|
663
|
-
$
|
|
664
|
-
$
|
|
665
|
-
$
|
|
666
|
-
$
|
|
667
|
-
$
|
|
668
|
-
$
|
|
669
|
-
$
|
|
670
|
-
$
|
|
671
|
-
$
|
|
672
|
-
$62d8ded9296f3872$export$
|
|
673
|
-
$
|
|
674
|
-
$
|
|
675
|
-
$
|
|
676
|
-
$
|
|
677
|
-
$
|
|
678
|
-
$
|
|
655
|
+
$313b98861ee5dd6c$export$d6875122194c7b44 as c,
|
|
656
|
+
$65484d02dcb7eb3e$export$457c3d6518dd4c6f as d,
|
|
657
|
+
$704cf1d3b684cc5c$export$535bd6ca7f90a273 as e,
|
|
658
|
+
$03deb23ff14920c4$export$4eaf04e54aa8eed6 as f,
|
|
659
|
+
$8ae05eaa5c114e9c$export$7f54fc3180508a52 as g,
|
|
660
|
+
$6a7db85432448f7f$export$29bf1b5f2c56cf63 as h,
|
|
661
|
+
$7215afc6de606d6b$export$de79e2c695e052f3 as i,
|
|
662
|
+
$6a7db85432448f7f$export$60278871457622de as j,
|
|
663
|
+
$ef06256079686ba0$export$f8aeda7b10753fa1 as k,
|
|
664
|
+
$c87311424ea30a05$export$fedb369cb70207f1 as l,
|
|
665
|
+
$bbed8b41f857bcc0$export$24490316f764c430 as m,
|
|
666
|
+
$e7801be82b4b2a53$export$4debdb1a3f0fa79e as n,
|
|
667
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as o,
|
|
668
|
+
$c87311424ea30a05$export$9ac100e40613ea10 as p,
|
|
669
|
+
$9daab02d461809db$export$683480f191c0e3ea as q,
|
|
670
|
+
$ff5963eb1fccf552$export$e08e3b67e392101e as r,
|
|
671
|
+
$62d8ded9296f3872$export$cfa2225e87938781 as s,
|
|
672
|
+
$62d8ded9296f3872$export$2bb74740c4e19def as t,
|
|
673
|
+
$e9faafb641e167db$export$90fc3a17d93f704c as u,
|
|
674
|
+
$2f04cbc44ee30ce0$export$53a0910f038337bd as v,
|
|
675
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b as w,
|
|
676
|
+
$c87311424ea30a05$export$e1865c3bedcd822b as x,
|
|
677
|
+
$c87311424ea30a05$export$78551043582a6a98 as y,
|
|
678
|
+
$5dc95899b306f630$export$c9058316764c140e as z
|
|
679
679
|
};
|