@react-spectrum/contextualhelp 3.6.11-nightly.4623 → 3.6.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.
|
@@ -41,15 +41,15 @@ $parcel$export(module.exports, "ContextualHelp", () => $05e6407aa891f27c$export$
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
function $05e6407aa891f27c$var$ContextualHelp(props, ref) {
|
|
44
|
-
let { variant: variant =
|
|
45
|
-
let stringFormatter = (0, $i0m3o$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($ab07f09ac8b48f11$exports))),
|
|
46
|
-
let icon = variant ===
|
|
44
|
+
let { variant: variant = 'help', placement: placement = 'bottom start', children: children, ...otherProps } = props;
|
|
45
|
+
let stringFormatter = (0, $i0m3o$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($ab07f09ac8b48f11$exports))), '@react-spectrum/contextualhelp');
|
|
46
|
+
let icon = variant === 'info' ? /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).createElement((0, ($parcel$interopDefault($i0m3o$spectrumiconsworkflowInfoOutline))), null) : /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).createElement((0, ($parcel$interopDefault($i0m3o$spectrumiconsworkflowHelpOutline))), null);
|
|
47
47
|
let slots = {
|
|
48
48
|
content: {
|
|
49
|
-
UNSAFE_className: (0, ($parcel$interopDefault($a10e565ec42bcf96$exports)))[
|
|
49
|
+
UNSAFE_className: (0, ($parcel$interopDefault($a10e565ec42bcf96$exports)))['react-spectrum-ContextualHelp-content']
|
|
50
50
|
},
|
|
51
51
|
footer: {
|
|
52
|
-
UNSAFE_className: (0, ($parcel$interopDefault($a10e565ec42bcf96$exports)))[
|
|
52
|
+
UNSAFE_className: (0, ($parcel$interopDefault($a10e565ec42bcf96$exports)))['react-spectrum-ContextualHelp-footer']
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
let labelProps = (0, $i0m3o$reactariautils.useLabels)(otherProps, stringFormatter.format(variant));
|
|
@@ -63,12 +63,12 @@ function $05e6407aa891f27c$var$ContextualHelp(props, ref) {
|
|
|
63
63
|
isDisabled: false
|
|
64
64
|
}),
|
|
65
65
|
ref: ref,
|
|
66
|
-
UNSAFE_className: (0, $i0m3o$reactspectrumutils.classNames)((0, ($parcel$interopDefault($a10e565ec42bcf96$exports))),
|
|
66
|
+
UNSAFE_className: (0, $i0m3o$reactspectrumutils.classNames)((0, ($parcel$interopDefault($a10e565ec42bcf96$exports))), 'react-spectrum-ContextualHelp-button', otherProps.UNSAFE_className),
|
|
67
67
|
isQuiet: true
|
|
68
68
|
}, icon), /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).createElement((0, $i0m3o$reactspectrumutils.ClearSlots), null, /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).createElement((0, $i0m3o$reactspectrumutils.SlotProvider), {
|
|
69
69
|
slots: slots
|
|
70
70
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).createElement((0, $i0m3o$reactspectrumdialog.Dialog), {
|
|
71
|
-
UNSAFE_className: (0, $i0m3o$reactspectrumutils.classNames)((0, ($parcel$interopDefault($a10e565ec42bcf96$exports))),
|
|
71
|
+
UNSAFE_className: (0, $i0m3o$reactspectrumutils.classNames)((0, ($parcel$interopDefault($a10e565ec42bcf96$exports))), 'react-spectrum-ContextualHelp-dialog')
|
|
72
72
|
}, children))));
|
|
73
73
|
}
|
|
74
74
|
/**
|
package/dist/ContextualHelp.mjs
CHANGED
|
@@ -35,15 +35,15 @@ function $parcel$interopDefault(a) {
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
function $9d9069cfc9959198$var$ContextualHelp(props, ref) {
|
|
38
|
-
let { variant: variant =
|
|
39
|
-
let stringFormatter = (0, $eIPk4$useLocalizedStringFormatter)((0, ($parcel$interopDefault($eIPk4$intlStringsmodulejs))),
|
|
40
|
-
let icon = variant ===
|
|
38
|
+
let { variant: variant = 'help', placement: placement = 'bottom start', children: children, ...otherProps } = props;
|
|
39
|
+
let stringFormatter = (0, $eIPk4$useLocalizedStringFormatter)((0, ($parcel$interopDefault($eIPk4$intlStringsmodulejs))), '@react-spectrum/contextualhelp');
|
|
40
|
+
let icon = variant === 'info' ? /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$spectrumiconsworkflowInfoOutline), null) : /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$spectrumiconsworkflowHelpOutline), null);
|
|
41
41
|
let slots = {
|
|
42
42
|
content: {
|
|
43
|
-
UNSAFE_className: (0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs)))[
|
|
43
|
+
UNSAFE_className: (0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs)))['react-spectrum-ContextualHelp-content']
|
|
44
44
|
},
|
|
45
45
|
footer: {
|
|
46
|
-
UNSAFE_className: (0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs)))[
|
|
46
|
+
UNSAFE_className: (0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs)))['react-spectrum-ContextualHelp-footer']
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
let labelProps = (0, $eIPk4$useLabels)(otherProps, stringFormatter.format(variant));
|
|
@@ -57,12 +57,12 @@ function $9d9069cfc9959198$var$ContextualHelp(props, ref) {
|
|
|
57
57
|
isDisabled: false
|
|
58
58
|
}),
|
|
59
59
|
ref: ref,
|
|
60
|
-
UNSAFE_className: (0, $eIPk4$classNames)((0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs))),
|
|
60
|
+
UNSAFE_className: (0, $eIPk4$classNames)((0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs))), 'react-spectrum-ContextualHelp-button', otherProps.UNSAFE_className),
|
|
61
61
|
isQuiet: true
|
|
62
62
|
}, icon), /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$ClearSlots), null, /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$SlotProvider), {
|
|
63
63
|
slots: slots
|
|
64
64
|
}, /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$Dialog), {
|
|
65
|
-
UNSAFE_className: (0, $eIPk4$classNames)((0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs))),
|
|
65
|
+
UNSAFE_className: (0, $eIPk4$classNames)((0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs))), 'react-spectrum-ContextualHelp-dialog')
|
|
66
66
|
}, children))));
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -35,15 +35,15 @@ function $parcel$interopDefault(a) {
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
function $9d9069cfc9959198$var$ContextualHelp(props, ref) {
|
|
38
|
-
let { variant: variant =
|
|
39
|
-
let stringFormatter = (0, $eIPk4$useLocalizedStringFormatter)((0, ($parcel$interopDefault($eIPk4$intlStringsmodulejs))),
|
|
40
|
-
let icon = variant ===
|
|
38
|
+
let { variant: variant = 'help', placement: placement = 'bottom start', children: children, ...otherProps } = props;
|
|
39
|
+
let stringFormatter = (0, $eIPk4$useLocalizedStringFormatter)((0, ($parcel$interopDefault($eIPk4$intlStringsmodulejs))), '@react-spectrum/contextualhelp');
|
|
40
|
+
let icon = variant === 'info' ? /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$spectrumiconsworkflowInfoOutline), null) : /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$spectrumiconsworkflowHelpOutline), null);
|
|
41
41
|
let slots = {
|
|
42
42
|
content: {
|
|
43
|
-
UNSAFE_className: (0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs)))[
|
|
43
|
+
UNSAFE_className: (0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs)))['react-spectrum-ContextualHelp-content']
|
|
44
44
|
},
|
|
45
45
|
footer: {
|
|
46
|
-
UNSAFE_className: (0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs)))[
|
|
46
|
+
UNSAFE_className: (0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs)))['react-spectrum-ContextualHelp-footer']
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
let labelProps = (0, $eIPk4$useLabels)(otherProps, stringFormatter.format(variant));
|
|
@@ -57,12 +57,12 @@ function $9d9069cfc9959198$var$ContextualHelp(props, ref) {
|
|
|
57
57
|
isDisabled: false
|
|
58
58
|
}),
|
|
59
59
|
ref: ref,
|
|
60
|
-
UNSAFE_className: (0, $eIPk4$classNames)((0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs))),
|
|
60
|
+
UNSAFE_className: (0, $eIPk4$classNames)((0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs))), 'react-spectrum-ContextualHelp-button', otherProps.UNSAFE_className),
|
|
61
61
|
isQuiet: true
|
|
62
62
|
}, icon), /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$ClearSlots), null, /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$SlotProvider), {
|
|
63
63
|
slots: slots
|
|
64
64
|
}, /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$Dialog), {
|
|
65
|
-
UNSAFE_className: (0, $eIPk4$classNames)((0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs))),
|
|
65
|
+
UNSAFE_className: (0, $eIPk4$classNames)((0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs))), 'react-spectrum-ContextualHelp-dialog')
|
|
66
66
|
}, children))));
|
|
67
67
|
}
|
|
68
68
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/contextualhelp",
|
|
3
|
-
"version": "3.6.11
|
|
3
|
+
"version": "3.6.11",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/i18n": "3.
|
|
40
|
-
"@react-aria/utils": "3.
|
|
41
|
-
"@react-spectrum/button": "3.
|
|
42
|
-
"@react-spectrum/dialog": "3.
|
|
43
|
-
"@react-spectrum/utils": "3.
|
|
44
|
-
"@react-types/contextualhelp": "3.2.10
|
|
45
|
-
"@react-types/shared": "3.
|
|
46
|
-
"@spectrum-icons/workflow": "
|
|
39
|
+
"@react-aria/i18n": "^3.11.1",
|
|
40
|
+
"@react-aria/utils": "^3.24.1",
|
|
41
|
+
"@react-spectrum/button": "^3.16.4",
|
|
42
|
+
"@react-spectrum/dialog": "^3.8.11",
|
|
43
|
+
"@react-spectrum/utils": "^3.11.7",
|
|
44
|
+
"@react-types/contextualhelp": "^3.2.10",
|
|
45
|
+
"@react-types/shared": "^3.23.1",
|
|
46
|
+
"@spectrum-icons/workflow": "^4.2.12",
|
|
47
47
|
"@swc/helpers": "^0.5.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@adobe/spectrum-css-temp": "3.0.0-
|
|
51
|
-
"@react-spectrum/link": "3.
|
|
52
|
-
"@react-spectrum/view": "3.
|
|
50
|
+
"@adobe/spectrum-css-temp": "3.0.0-alpha.1",
|
|
51
|
+
"@react-spectrum/link": "^3.2.0",
|
|
52
|
+
"@react-spectrum/view": "^3.1.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@react-spectrum/provider": "^3.0.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
|
|
63
63
|
}
|