@plasmicapp/react-web 0.2.95 → 0.2.98
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/dist/all.d.ts +253 -252
- package/dist/plume/menu/context.d.ts +2 -2
- package/dist/plume/menu-button/menu-trigger.d.ts +1 -1
- package/dist/plume/select/context.d.ts +1 -1
- package/dist/plume/triggered-overlay/context.d.ts +3 -3
- package/dist/react-web.cjs.development.js +65 -49
- package/dist/react-web.cjs.development.js.map +1 -1
- package/dist/react-web.cjs.production.min.js +1 -1
- package/dist/react-web.cjs.production.min.js.map +1 -1
- package/dist/react-web.esm.js +27 -11
- package/dist/react-web.esm.js.map +1 -1
- package/dist/render/ssr.d.ts +1 -1
- package/package.json +23 -7
- package/skinny/dist/collection-utils-2745acd4.js +238 -0
- package/skinny/dist/collection-utils-2745acd4.js.map +1 -0
- package/skinny/dist/context-034b8d25.js.map +1 -1
- package/skinny/dist/index.js +3 -2
- package/skinny/dist/index.js.map +1 -1
- package/skinny/dist/plume/checkbox/index.js +5 -3
- package/skinny/dist/plume/checkbox/index.js.map +1 -1
- package/skinny/dist/plume/menu/context.d.ts +2 -2
- package/skinny/dist/plume/menu/index.js +7 -4
- package/skinny/dist/plume/menu/index.js.map +1 -1
- package/skinny/dist/plume/menu-button/index.js +6 -3
- package/skinny/dist/plume/menu-button/index.js.map +1 -1
- package/skinny/dist/plume/menu-button/menu-trigger.d.ts +1 -1
- package/skinny/dist/plume/select/context.d.ts +1 -1
- package/skinny/dist/plume/select/index.js +9 -4
- package/skinny/dist/plume/select/index.js.map +1 -1
- package/skinny/dist/plume/switch/index.js +5 -3
- package/skinny/dist/plume/switch/index.js.map +1 -1
- package/skinny/dist/plume/text-input/index.js +1 -1
- package/skinny/dist/plume/text-input/index.js.map +1 -1
- package/skinny/dist/plume/triggered-overlay/context.d.ts +3 -3
- package/skinny/dist/plume/triggered-overlay/index.js +2 -1
- package/skinny/dist/plume/triggered-overlay/index.js.map +1 -1
- package/skinny/dist/render/PlasmicImg/index.js +8 -5
- package/skinny/dist/render/PlasmicImg/index.js.map +1 -1
- package/skinny/dist/render/ssr.d.ts +1 -1
- package/skinny/dist/ssr-fbf922f6.js +108 -0
- package/skinny/dist/ssr-fbf922f6.js.map +1 -0
package/dist/react-web.esm.js
CHANGED
|
@@ -2,8 +2,22 @@ import classNames$1 from 'classnames';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { forwardRef, createElement, Fragment, isValidElement, useState, useRef, useMemo, createContext, useContext, useImperativeHandle, useCallback, cloneElement } from 'react';
|
|
4
4
|
import ReactDOM__default, { createPortal } from 'react-dom';
|
|
5
|
-
import { SSRProvider, useIsSSR as useIsSSR$1
|
|
6
|
-
import {
|
|
5
|
+
import { SSRProvider, useIsSSR as useIsSSR$1 } from '@react-aria/ssr';
|
|
6
|
+
import { useFocusRing, useFocusable, FocusScope } from '@react-aria/focus';
|
|
7
|
+
import { useCheckbox as useCheckbox$1 } from '@react-aria/checkbox';
|
|
8
|
+
import { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
9
|
+
import { useToggleState } from '@react-stately/toggle';
|
|
10
|
+
import { useMenu as useMenu$1, useMenuSection, useMenuItem as useMenuItem$1, useMenuTrigger as useMenuTrigger$1 } from '@react-aria/menu';
|
|
11
|
+
import { useTreeState } from '@react-stately/tree';
|
|
12
|
+
import { Item, Section } from '@react-stately/collections';
|
|
13
|
+
import { useSeparator } from '@react-aria/separator';
|
|
14
|
+
import { useMenuTriggerState } from '@react-stately/menu';
|
|
15
|
+
import { usePress } from '@react-aria/interactions';
|
|
16
|
+
import { useSelect as useSelect$1, HiddenSelect } from '@react-aria/select';
|
|
17
|
+
import { useListBox, useOption, useListBoxSection } from '@react-aria/listbox';
|
|
18
|
+
import { useSelectState } from '@react-stately/select';
|
|
19
|
+
import { useSwitch as useSwitch$1 } from '@react-aria/switch';
|
|
20
|
+
import { useOverlay, useOverlayPosition, DismissButton } from '@react-aria/overlays';
|
|
7
21
|
|
|
8
22
|
function _extends() {
|
|
9
23
|
_extends = Object.assign || function (target) {
|
|
@@ -890,10 +904,10 @@ var PlasmicImg = /*#__PURE__*/React__default.forwardRef(function PlasmicImg(prop
|
|
|
890
904
|
if (displayWidth != null && displayWidth !== "auto") {
|
|
891
905
|
// If width is set, set it on the wrapper along with min/max width
|
|
892
906
|
// and just use `width: 100%` on the spacer
|
|
893
|
-
spacerStyle.width = "100%";
|
|
894
|
-
wrapperStyle.width = displayWidth;
|
|
895
|
-
wrapperStyle.minWidth = displayMinWidth;
|
|
896
|
-
wrapperStyle.maxWidth = displayMaxWidth;
|
|
907
|
+
spacerStyle.width = "100%"; // Rely on the styles set by `classname` on the wrapper:
|
|
908
|
+
// wrapperStyle.width = displayWidth;
|
|
909
|
+
// wrapperStyle.minWidth = displayMinWidth;
|
|
910
|
+
// wrapperStyle.maxWidth = displayMaxWidth;
|
|
897
911
|
} else {
|
|
898
912
|
// Otherwise, we want auto sizing from the spacer, so set width there.
|
|
899
913
|
//
|
|
@@ -906,13 +920,13 @@ var PlasmicImg = /*#__PURE__*/React__default.forwardRef(function PlasmicImg(prop
|
|
|
906
920
|
wrapperStyle.width = "auto";
|
|
907
921
|
|
|
908
922
|
if (displayMinWidth) {
|
|
909
|
-
spacerStyle.minWidth = "100%";
|
|
910
|
-
wrapperStyle.minWidth = displayMinWidth;
|
|
923
|
+
spacerStyle.minWidth = "100%"; // Rely on min-width set by `classname` on the wrapper:
|
|
924
|
+
// wrapperStyle.minWidth = displayMinWidth;
|
|
911
925
|
}
|
|
912
926
|
|
|
913
927
|
if (displayMaxWidth != null && displayMaxWidth !== "none") {
|
|
914
|
-
spacerStyle.maxWidth = "100%";
|
|
915
|
-
wrapperStyle.maxWidth = displayMaxWidth;
|
|
928
|
+
spacerStyle.maxWidth = "100%"; // Rely on max-width set by `classname` on the wrapper:
|
|
929
|
+
// wrapperStyle.maxWidth = displayMaxWidth;
|
|
916
930
|
}
|
|
917
931
|
}
|
|
918
932
|
|
|
@@ -2960,7 +2974,9 @@ function useTextInput(plasmicClass, props, config, ref) {
|
|
|
2960
2974
|
style: style
|
|
2961
2975
|
}
|
|
2962
2976
|
}, _overrides[config.input] = {
|
|
2963
|
-
props: _extends({}, omit.apply(void 0, [rest].concat(plasmicClass.internalArgProps
|
|
2977
|
+
props: _extends({}, omit.apply(void 0, [rest].concat(plasmicClass.internalArgProps.filter(function (prop) {
|
|
2978
|
+
return prop !== "required";
|
|
2979
|
+
}), plasmicClass.internalVariantProps)), {
|
|
2964
2980
|
disabled: isDisabled,
|
|
2965
2981
|
ref: inputRef,
|
|
2966
2982
|
className: inputClassName,
|