@plasmicpkgs/react-aria 0.0.152 → 0.0.154
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/.tsbuildinfo +1 -1
- package/dist/react-aria.esm.js +276 -287
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +275 -286
- package/dist/react-aria.js.map +1 -1
- package/dist/registerListBox.d.ts +1 -1
- package/dist/variant-utils.d.ts +4 -3
- package/package.json +3 -3
- package/skinny/registerButton.cjs.js +27 -22
- package/skinny/registerButton.cjs.js.map +1 -1
- package/skinny/registerButton.esm.js +27 -22
- package/skinny/registerButton.esm.js.map +1 -1
- package/skinny/registerCheckbox.cjs.js +18 -16
- package/skinny/registerCheckbox.cjs.js.map +1 -1
- package/skinny/registerCheckbox.esm.js +18 -16
- package/skinny/registerCheckbox.esm.js.map +1 -1
- package/skinny/registerCheckboxGroup.cjs.js +12 -12
- package/skinny/registerCheckboxGroup.cjs.js.map +1 -1
- package/skinny/registerCheckboxGroup.esm.js +12 -12
- package/skinny/registerCheckboxGroup.esm.js.map +1 -1
- package/skinny/registerComboBox.cjs.js +11 -16
- package/skinny/registerComboBox.cjs.js.map +1 -1
- package/skinny/registerComboBox.esm.js +11 -16
- package/skinny/registerComboBox.esm.js.map +1 -1
- package/skinny/registerDialogTrigger.cjs.js +1 -1
- package/skinny/registerDialogTrigger.esm.js +1 -1
- package/skinny/registerInput.cjs.js +1 -1
- package/skinny/registerInput.esm.js +1 -1
- package/skinny/{registerListBox-7a50077e.cjs.js → registerListBox-28474381.cjs.js} +24 -32
- package/skinny/registerListBox-28474381.cjs.js.map +1 -0
- package/skinny/{registerListBox-14503b0a.esm.js → registerListBox-7197abae.esm.js} +26 -34
- package/skinny/registerListBox-7197abae.esm.js.map +1 -0
- package/skinny/registerListBox.cjs.js +4 -3
- package/skinny/registerListBox.cjs.js.map +1 -1
- package/skinny/registerListBox.d.ts +1 -1
- package/skinny/registerListBox.esm.js +4 -3
- package/skinny/registerListBox.esm.js.map +1 -1
- package/skinny/registerListBoxItem.cjs.js +20 -17
- package/skinny/registerListBoxItem.cjs.js.map +1 -1
- package/skinny/registerListBoxItem.esm.js +20 -17
- package/skinny/registerListBoxItem.esm.js.map +1 -1
- package/skinny/registerOverlayArrow.cjs.js +12 -12
- package/skinny/registerOverlayArrow.cjs.js.map +1 -1
- package/skinny/registerOverlayArrow.esm.js +12 -12
- package/skinny/registerOverlayArrow.esm.js.map +1 -1
- package/skinny/registerRadio.cjs.js +17 -15
- package/skinny/registerRadio.cjs.js.map +1 -1
- package/skinny/registerRadio.esm.js +17 -15
- package/skinny/registerRadio.esm.js.map +1 -1
- package/skinny/registerRadioGroup.cjs.js +12 -10
- package/skinny/registerRadioGroup.cjs.js.map +1 -1
- package/skinny/registerRadioGroup.esm.js +12 -10
- package/skinny/registerRadioGroup.esm.js.map +1 -1
- package/skinny/registerSection.cjs.js +3 -2
- package/skinny/registerSection.cjs.js.map +1 -1
- package/skinny/registerSection.esm.js +3 -2
- package/skinny/registerSection.esm.js.map +1 -1
- package/skinny/registerSelect.cjs.js +19 -25
- package/skinny/registerSelect.cjs.js.map +1 -1
- package/skinny/registerSelect.esm.js +19 -25
- package/skinny/registerSelect.esm.js.map +1 -1
- package/skinny/registerSlider.cjs.js +10 -8
- package/skinny/registerSlider.cjs.js.map +1 -1
- package/skinny/registerSlider.esm.js +10 -8
- package/skinny/registerSlider.esm.js.map +1 -1
- package/skinny/registerSliderOutput.cjs.js +10 -10
- package/skinny/registerSliderOutput.cjs.js.map +1 -1
- package/skinny/registerSliderOutput.esm.js +10 -10
- package/skinny/registerSliderOutput.esm.js.map +1 -1
- package/skinny/registerSliderThumb.cjs.js +9 -15
- package/skinny/registerSliderThumb.cjs.js.map +1 -1
- package/skinny/registerSliderThumb.esm.js +9 -15
- package/skinny/registerSliderThumb.esm.js.map +1 -1
- package/skinny/registerSliderTrack.cjs.js +20 -20
- package/skinny/registerSliderTrack.cjs.js.map +1 -1
- package/skinny/registerSliderTrack.esm.js +20 -20
- package/skinny/registerSliderTrack.esm.js.map +1 -1
- package/skinny/registerSwitch.cjs.js +16 -14
- package/skinny/registerSwitch.cjs.js.map +1 -1
- package/skinny/registerSwitch.esm.js +16 -14
- package/skinny/registerSwitch.esm.js.map +1 -1
- package/skinny/registerTextArea.cjs.js +1 -1
- package/skinny/registerTextArea.esm.js +1 -1
- package/skinny/registerTextField.cjs.js +11 -9
- package/skinny/registerTextField.cjs.js.map +1 -1
- package/skinny/registerTextField.esm.js +11 -9
- package/skinny/registerTextField.esm.js.map +1 -1
- package/skinny/{variant-utils-0ad70db8.cjs.js → variant-utils-1c84aebb.cjs.js} +5 -9
- package/skinny/variant-utils-1c84aebb.cjs.js.map +1 -0
- package/skinny/{variant-utils-4405ebb0.esm.js → variant-utils-5f356d53.esm.js} +5 -10
- package/skinny/variant-utils-5f356d53.esm.js.map +1 -0
- package/skinny/variant-utils.d.ts +4 -3
- package/skinny/registerListBox-14503b0a.esm.js.map +0 -1
- package/skinny/registerListBox-7a50077e.cjs.js.map +0 -1
- package/skinny/variant-utils-0ad70db8.cjs.js.map +0 -1
- package/skinny/variant-utils-4405ebb0.esm.js.map +0 -1
package/dist/react-aria.esm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { usePlasmicCanvasContext, usePlasmicCanvasComponentInfo, usePlasmicLink } from '@plasmicapp/host';
|
|
2
2
|
import React, { useEffect, useMemo, useState, useCallback, forwardRef, useImperativeHandle, useContext, useRef } from 'react';
|
|
3
3
|
import { mergeProps, useLink, useHover, useFocusRing, useButton, useFocusWithin, useId } from 'react-aria';
|
|
4
|
-
import { Button, Checkbox, Text, Label, CheckboxGroup, useContextProps, InputContext, ListBoxItem, ListBox,
|
|
4
|
+
import { Button, Checkbox, Text, Label, CheckboxGroup, useContextProps, InputContext, ListBoxItem, ListBox, ListBoxSection, Header, PopoverContext, Popover, ComboBox, ComboBoxStateContext, Dialog, ModalOverlay, Modal, DialogTrigger, Heading, TooltipTriggerStateContext, OverlayArrow, Radio, RadioGroup, Select, SelectStateContext, SelectValue, SliderOutput, Slider, SliderTrackContext, SliderThumb, SliderTrack, Switch, TextAreaContext, TextField, Provider, Tooltip } from 'react-aria-components';
|
|
5
5
|
import registerComponent from '@plasmicapp/host/registerComponent';
|
|
6
6
|
import { mergeProps as mergeProps$1 } from '@react-aria/utils';
|
|
7
7
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
8
8
|
import { useTooltipTriggerState } from 'react-stately';
|
|
9
9
|
|
|
10
10
|
var __defProp$t = Object.defineProperty;
|
|
11
|
-
var __defProps$
|
|
12
|
-
var __getOwnPropDescs$
|
|
11
|
+
var __defProps$o = Object.defineProperties;
|
|
12
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
13
13
|
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
14
14
|
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
15
15
|
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
@@ -25,7 +25,7 @@ var __spreadValues$t = (a, b) => {
|
|
|
25
25
|
}
|
|
26
26
|
return a;
|
|
27
27
|
};
|
|
28
|
-
var __spreadProps$
|
|
28
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
29
29
|
var __objRest$p = (source, exclude) => {
|
|
30
30
|
var target = {};
|
|
31
31
|
for (var prop in source)
|
|
@@ -88,7 +88,7 @@ function useAutoOpen({
|
|
|
88
88
|
}
|
|
89
89
|
function registerComponentHelper(loader, component, meta, overrides) {
|
|
90
90
|
if (overrides) {
|
|
91
|
-
meta = __spreadProps$
|
|
91
|
+
meta = __spreadProps$o(__spreadValues$t(__spreadValues$t({}, meta), overrides), {
|
|
92
92
|
props: __spreadValues$t(__spreadValues$t({}, meta.props), overrides.props)
|
|
93
93
|
});
|
|
94
94
|
if (overrides.parentComponentName) {
|
|
@@ -682,8 +682,7 @@ const ARIA_COMPONENTS_VARIANTS = {
|
|
|
682
682
|
displayName: "Placement (Bottom)"
|
|
683
683
|
}
|
|
684
684
|
};
|
|
685
|
-
function
|
|
686
|
-
children,
|
|
685
|
+
function VariantUpdater({
|
|
687
686
|
changes,
|
|
688
687
|
updateVariant
|
|
689
688
|
}) {
|
|
@@ -692,23 +691,19 @@ function ChangesObserver({
|
|
|
692
691
|
updateVariant(changes);
|
|
693
692
|
}
|
|
694
693
|
}, [changes, updateVariant]);
|
|
695
|
-
return
|
|
696
|
-
}
|
|
697
|
-
function realWithObservedValues(children, changes, updateVariant) {
|
|
698
|
-
return /* @__PURE__ */ React.createElement(ChangesObserver, { changes, updateVariant }, children);
|
|
694
|
+
return null;
|
|
699
695
|
}
|
|
700
696
|
function pickAriaComponentVariants(keys) {
|
|
701
697
|
return {
|
|
702
698
|
variants: Object.fromEntries(
|
|
703
699
|
keys.map((key) => [key, ARIA_COMPONENTS_VARIANTS[key]])
|
|
704
|
-
)
|
|
705
|
-
withObservedValues: realWithObservedValues
|
|
700
|
+
)
|
|
706
701
|
};
|
|
707
702
|
}
|
|
708
703
|
|
|
709
704
|
var __defProp$r = Object.defineProperty;
|
|
710
|
-
var __defProps$
|
|
711
|
-
var __getOwnPropDescs$
|
|
705
|
+
var __defProps$n = Object.defineProperties;
|
|
706
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
712
707
|
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
713
708
|
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
714
709
|
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
@@ -724,7 +719,7 @@ var __spreadValues$r = (a, b) => {
|
|
|
724
719
|
}
|
|
725
720
|
return a;
|
|
726
721
|
};
|
|
727
|
-
var __spreadProps$
|
|
722
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
728
723
|
var __objRest$o = (source, exclude) => {
|
|
729
724
|
var target = {};
|
|
730
725
|
for (var prop in source)
|
|
@@ -744,7 +739,7 @@ const BUTTON_VARIANTS = [
|
|
|
744
739
|
"focusVisible",
|
|
745
740
|
"disabled"
|
|
746
741
|
];
|
|
747
|
-
const { variants: variants$
|
|
742
|
+
const { variants: variants$e } = pickAriaComponentVariants(BUTTON_VARIANTS);
|
|
748
743
|
const BaseButton = React.forwardRef(function BaseButtonInner(props, ref) {
|
|
749
744
|
const { href } = props;
|
|
750
745
|
if (href) {
|
|
@@ -763,17 +758,19 @@ const BaseButton = React.forwardRef(function BaseButtonInner(props, ref) {
|
|
|
763
758
|
style: COMMON_STYLES,
|
|
764
759
|
ref
|
|
765
760
|
});
|
|
766
|
-
return /* @__PURE__ */ React.createElement(Button, __spreadValues$r({}, buttonProps), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) =>
|
|
767
|
-
|
|
761
|
+
return /* @__PURE__ */ React.createElement(Button, __spreadValues$r({}, buttonProps), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
762
|
+
VariantUpdater,
|
|
768
763
|
{
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
764
|
+
changes: {
|
|
765
|
+
hovered: isHovered,
|
|
766
|
+
pressed: isPressed,
|
|
767
|
+
focused: isFocused,
|
|
768
|
+
focusVisible: isFocusVisible,
|
|
769
|
+
disabled: isDisabled
|
|
770
|
+
},
|
|
771
|
+
updateVariant: plasmicUpdateVariant
|
|
772
|
+
}
|
|
773
|
+
), children));
|
|
777
774
|
}
|
|
778
775
|
});
|
|
779
776
|
function LinkButton({
|
|
@@ -795,24 +792,27 @@ function LinkButton({
|
|
|
795
792
|
});
|
|
796
793
|
return /* @__PURE__ */ React.createElement(
|
|
797
794
|
PlasmicLink,
|
|
798
|
-
__spreadProps$
|
|
795
|
+
__spreadProps$n(__spreadValues$r({}, combinedLinkProps), {
|
|
799
796
|
"data-focused": isFocused || void 0,
|
|
800
797
|
"data-hovered": isHovered || void 0,
|
|
801
798
|
"data-pressed": isPressed || void 0,
|
|
802
799
|
"data-focus-visible": isFocusVisible || void 0,
|
|
803
800
|
"data-disabled": props.isDisabled || void 0
|
|
804
801
|
}),
|
|
805
|
-
|
|
806
|
-
|
|
802
|
+
/* @__PURE__ */ React.createElement(
|
|
803
|
+
VariantUpdater,
|
|
807
804
|
{
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
805
|
+
changes: {
|
|
806
|
+
hovered: isHovered,
|
|
807
|
+
pressed: isPressed,
|
|
808
|
+
focused: isFocused,
|
|
809
|
+
focusVisible: isFocusVisible,
|
|
810
|
+
disabled: !!rest.isDisabled
|
|
811
|
+
},
|
|
812
|
+
updateVariant: plasmicUpdateVariant
|
|
813
|
+
}
|
|
814
|
+
),
|
|
815
|
+
children
|
|
816
816
|
);
|
|
817
817
|
}
|
|
818
818
|
const BUTTON_COMPONENT_NAME = makeComponentName("button");
|
|
@@ -825,7 +825,7 @@ function registerButton(loader, overrides) {
|
|
|
825
825
|
displayName: "Aria Button",
|
|
826
826
|
importPath: "@plasmicpkgs/react-aria/skinny/registerButton",
|
|
827
827
|
importName: "BaseButton",
|
|
828
|
-
variants: variants$
|
|
828
|
+
variants: variants$e,
|
|
829
829
|
defaultStyles: {
|
|
830
830
|
// Ensure consistent design across rendered elements (button, anchor tag).
|
|
831
831
|
backgroundColor: "#EFEFEF",
|
|
@@ -895,17 +895,6 @@ function registerButton(loader, overrides) {
|
|
|
895
895
|
);
|
|
896
896
|
}
|
|
897
897
|
|
|
898
|
-
const PlasmicTextFieldContext = React.createContext(void 0);
|
|
899
|
-
const PlasmicCheckboxGroupContext = React.createContext(void 0);
|
|
900
|
-
const PlasmicRadioGroupContext = React.createContext(void 0);
|
|
901
|
-
const PlasmicDialogTriggerContext = React.createContext(void 0);
|
|
902
|
-
const PlasmicSliderContext = React.createContext(void 0);
|
|
903
|
-
React.createContext(void 0);
|
|
904
|
-
const PlasmicPopoverTriggerContext = React.createContext(void 0);
|
|
905
|
-
const PlasmicListBoxContext = React.createContext(void 0);
|
|
906
|
-
React.createContext(void 0);
|
|
907
|
-
const PlasmicInputContext = React.createContext(void 0);
|
|
908
|
-
|
|
909
898
|
class OptionsItemIdManager {
|
|
910
899
|
constructor() {
|
|
911
900
|
this._ids = /* @__PURE__ */ new Set();
|
|
@@ -1007,9 +996,20 @@ function useIdManager(callback, existing) {
|
|
|
1007
996
|
return idManager;
|
|
1008
997
|
}
|
|
1009
998
|
|
|
999
|
+
const PlasmicTextFieldContext = React.createContext(void 0);
|
|
1000
|
+
const PlasmicCheckboxGroupContext = React.createContext(void 0);
|
|
1001
|
+
const PlasmicRadioGroupContext = React.createContext(void 0);
|
|
1002
|
+
const PlasmicDialogTriggerContext = React.createContext(void 0);
|
|
1003
|
+
const PlasmicSliderContext = React.createContext(void 0);
|
|
1004
|
+
React.createContext(void 0);
|
|
1005
|
+
const PlasmicPopoverTriggerContext = React.createContext(void 0);
|
|
1006
|
+
const PlasmicListBoxContext = React.createContext(void 0);
|
|
1007
|
+
React.createContext(void 0);
|
|
1008
|
+
const PlasmicInputContext = React.createContext(void 0);
|
|
1009
|
+
|
|
1010
1010
|
var __defProp$q = Object.defineProperty;
|
|
1011
|
-
var __defProps$
|
|
1012
|
-
var __getOwnPropDescs$
|
|
1011
|
+
var __defProps$m = Object.defineProperties;
|
|
1012
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
1013
1013
|
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
1014
1014
|
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
1015
1015
|
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
@@ -1025,7 +1025,7 @@ var __spreadValues$q = (a, b) => {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
return a;
|
|
1027
1027
|
};
|
|
1028
|
-
var __spreadProps$
|
|
1028
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
1029
1029
|
var __objRest$n = (source, exclude) => {
|
|
1030
1030
|
var target = {};
|
|
1031
1031
|
for (var prop in source)
|
|
@@ -1048,7 +1048,7 @@ const CHECKBOX_VARIANTS = [
|
|
|
1048
1048
|
"selected",
|
|
1049
1049
|
"readonly"
|
|
1050
1050
|
];
|
|
1051
|
-
const { variants: variants$
|
|
1051
|
+
const { variants: variants$d } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
|
|
1052
1052
|
function BaseCheckbox(props) {
|
|
1053
1053
|
const _a = props, {
|
|
1054
1054
|
children,
|
|
@@ -1072,7 +1072,7 @@ function BaseCheckbox(props) {
|
|
|
1072
1072
|
});
|
|
1073
1073
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1074
1074
|
Checkbox,
|
|
1075
|
-
__spreadProps$
|
|
1075
|
+
__spreadProps$m(__spreadValues$q({}, rest), {
|
|
1076
1076
|
value: registeredId,
|
|
1077
1077
|
key: registeredId,
|
|
1078
1078
|
style: COMMON_STYLES
|
|
@@ -1086,20 +1086,22 @@ function BaseCheckbox(props) {
|
|
|
1086
1086
|
isIndeterminate,
|
|
1087
1087
|
isSelected,
|
|
1088
1088
|
isReadOnly
|
|
1089
|
-
}) =>
|
|
1090
|
-
|
|
1089
|
+
}) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1090
|
+
VariantUpdater,
|
|
1091
1091
|
{
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1092
|
+
changes: {
|
|
1093
|
+
hovered: isHovered,
|
|
1094
|
+
pressed: isPressed,
|
|
1095
|
+
focused: isFocused,
|
|
1096
|
+
focusVisible: isFocusVisible,
|
|
1097
|
+
disabled: isDisabled,
|
|
1098
|
+
indeterminate: isIndeterminate,
|
|
1099
|
+
selected: isSelected,
|
|
1100
|
+
readonly: isReadOnly
|
|
1101
|
+
},
|
|
1102
|
+
updateVariant: plasmicUpdateVariant
|
|
1103
|
+
}
|
|
1104
|
+
), children)
|
|
1103
1105
|
));
|
|
1104
1106
|
}
|
|
1105
1107
|
const makeDefaultCheckboxChildren = ({
|
|
@@ -1158,7 +1160,7 @@ function registerCheckbox(loader, overrides) {
|
|
|
1158
1160
|
displayName: "Aria Checkbox",
|
|
1159
1161
|
importPath: "@plasmicpkgs/react-aria/skinny/registerCheckbox",
|
|
1160
1162
|
importName: "BaseCheckbox",
|
|
1161
|
-
variants: variants$
|
|
1163
|
+
variants: variants$d,
|
|
1162
1164
|
props: {
|
|
1163
1165
|
id: createIdProp("Checkbox"),
|
|
1164
1166
|
name: createNameProp(),
|
|
@@ -1235,8 +1237,8 @@ function registerCheckbox(loader, overrides) {
|
|
|
1235
1237
|
}
|
|
1236
1238
|
|
|
1237
1239
|
var __defProp$p = Object.defineProperty;
|
|
1238
|
-
var __defProps$
|
|
1239
|
-
var __getOwnPropDescs$
|
|
1240
|
+
var __defProps$l = Object.defineProperties;
|
|
1241
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
1240
1242
|
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
1241
1243
|
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
1242
1244
|
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
@@ -1252,7 +1254,7 @@ var __spreadValues$p = (a, b) => {
|
|
|
1252
1254
|
}
|
|
1253
1255
|
return a;
|
|
1254
1256
|
};
|
|
1255
|
-
var __spreadProps$
|
|
1257
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
1256
1258
|
var __objRest$m = (source, exclude) => {
|
|
1257
1259
|
var target = {};
|
|
1258
1260
|
for (var prop in source)
|
|
@@ -1270,7 +1272,7 @@ function BaseText(_a) {
|
|
|
1270
1272
|
const dataProps = extractPlasmicDataProps(rest);
|
|
1271
1273
|
return /* @__PURE__ */ React.createElement(
|
|
1272
1274
|
Text,
|
|
1273
|
-
__spreadProps$
|
|
1275
|
+
__spreadProps$l(__spreadValues$p(__spreadValues$p({}, rest), dataProps), {
|
|
1274
1276
|
slot,
|
|
1275
1277
|
className,
|
|
1276
1278
|
style: COMMON_STYLES
|
|
@@ -1312,8 +1314,8 @@ function registerText(loader, overrides) {
|
|
|
1312
1314
|
}
|
|
1313
1315
|
|
|
1314
1316
|
var __defProp$o = Object.defineProperty;
|
|
1315
|
-
var __defProps$
|
|
1316
|
-
var __getOwnPropDescs$
|
|
1317
|
+
var __defProps$k = Object.defineProperties;
|
|
1318
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
1317
1319
|
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
1318
1320
|
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
1319
1321
|
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
@@ -1329,10 +1331,10 @@ var __spreadValues$o = (a, b) => {
|
|
|
1329
1331
|
}
|
|
1330
1332
|
return a;
|
|
1331
1333
|
};
|
|
1332
|
-
var __spreadProps$
|
|
1334
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
1333
1335
|
const DESCRIPTION_COMPONENT_NAME = makeComponentName("description");
|
|
1334
1336
|
function registerDescription(loader, overrides) {
|
|
1335
|
-
return registerText(loader, __spreadProps$
|
|
1337
|
+
return registerText(loader, __spreadProps$k(__spreadValues$o({}, overrides), {
|
|
1336
1338
|
name: DESCRIPTION_COMPONENT_NAME,
|
|
1337
1339
|
displayName: "Aria Description",
|
|
1338
1340
|
props: {
|
|
@@ -1346,8 +1348,8 @@ function registerDescription(loader, overrides) {
|
|
|
1346
1348
|
}
|
|
1347
1349
|
|
|
1348
1350
|
var __defProp$n = Object.defineProperty;
|
|
1349
|
-
var __defProps$
|
|
1350
|
-
var __getOwnPropDescs$
|
|
1351
|
+
var __defProps$j = Object.defineProperties;
|
|
1352
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
1351
1353
|
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
1352
1354
|
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
1353
1355
|
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
@@ -1363,7 +1365,7 @@ var __spreadValues$n = (a, b) => {
|
|
|
1363
1365
|
}
|
|
1364
1366
|
return a;
|
|
1365
1367
|
};
|
|
1366
|
-
var __spreadProps$
|
|
1368
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
1367
1369
|
var __objRest$l = (source, exclude) => {
|
|
1368
1370
|
var target = {};
|
|
1369
1371
|
for (var prop in source)
|
|
@@ -1381,7 +1383,7 @@ function BaseLabel(_a) {
|
|
|
1381
1383
|
const dataProps = extractPlasmicDataProps(rest);
|
|
1382
1384
|
return /* @__PURE__ */ React.createElement(
|
|
1383
1385
|
Label,
|
|
1384
|
-
__spreadProps$
|
|
1386
|
+
__spreadProps$j(__spreadValues$n({}, dataProps), {
|
|
1385
1387
|
id,
|
|
1386
1388
|
className,
|
|
1387
1389
|
style: COMMON_STYLES,
|
|
@@ -1422,8 +1424,8 @@ function registerLabel(loader, overrides) {
|
|
|
1422
1424
|
}
|
|
1423
1425
|
|
|
1424
1426
|
var __defProp$m = Object.defineProperty;
|
|
1425
|
-
var __defProps$
|
|
1426
|
-
var __getOwnPropDescs$
|
|
1427
|
+
var __defProps$i = Object.defineProperties;
|
|
1428
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
1427
1429
|
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
1428
1430
|
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
1429
1431
|
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
@@ -1439,7 +1441,7 @@ var __spreadValues$m = (a, b) => {
|
|
|
1439
1441
|
}
|
|
1440
1442
|
return a;
|
|
1441
1443
|
};
|
|
1442
|
-
var __spreadProps$
|
|
1444
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
1443
1445
|
var __objRest$k = (source, exclude) => {
|
|
1444
1446
|
var target = {};
|
|
1445
1447
|
for (var prop in source)
|
|
@@ -1453,9 +1455,7 @@ var __objRest$k = (source, exclude) => {
|
|
|
1453
1455
|
return target;
|
|
1454
1456
|
};
|
|
1455
1457
|
const CHECKBOX_GROUP_VARIANTS = ["disabled", "readonly"];
|
|
1456
|
-
const { variants: variants$
|
|
1457
|
-
CHECKBOX_GROUP_VARIANTS
|
|
1458
|
-
);
|
|
1458
|
+
const { variants: variants$c } = pickAriaComponentVariants(CHECKBOX_GROUP_VARIANTS);
|
|
1459
1459
|
function BaseCheckboxGroup(props) {
|
|
1460
1460
|
const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$k(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
|
|
1461
1461
|
const updateIds = useCallback(
|
|
@@ -1469,14 +1469,16 @@ function BaseCheckboxGroup(props) {
|
|
|
1469
1469
|
const idManager = useIdManager(updateIds);
|
|
1470
1470
|
return (
|
|
1471
1471
|
// PlasmicCheckboxGroupContext is used by BaseCheckbox
|
|
1472
|
-
/* @__PURE__ */ React.createElement(PlasmicCheckboxGroupContext.Provider, { value: __spreadProps$
|
|
1473
|
-
|
|
1472
|
+
/* @__PURE__ */ React.createElement(PlasmicCheckboxGroupContext.Provider, { value: __spreadProps$i(__spreadValues$m({}, rest), { idManager }) }, /* @__PURE__ */ React.createElement(CheckboxGroup, __spreadProps$i(__spreadValues$m({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1473
|
+
VariantUpdater,
|
|
1474
1474
|
{
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1475
|
+
changes: {
|
|
1476
|
+
disabled: isDisabled,
|
|
1477
|
+
readonly: isReadOnly
|
|
1478
|
+
},
|
|
1479
|
+
updateVariant: plasmicUpdateVariant
|
|
1480
|
+
}
|
|
1481
|
+
), children)))
|
|
1480
1482
|
);
|
|
1481
1483
|
}
|
|
1482
1484
|
const componentName = makeComponentName("checkboxGroup");
|
|
@@ -1489,7 +1491,7 @@ function registerCheckboxGroup(loader, overrides) {
|
|
|
1489
1491
|
displayName: "Aria Checkbox Group",
|
|
1490
1492
|
importPath: "@plasmicpkgs/react-aria/skinny/registerCheckboxGroup",
|
|
1491
1493
|
importName: "BaseCheckboxGroup",
|
|
1492
|
-
variants: variants$
|
|
1494
|
+
variants: variants$c,
|
|
1493
1495
|
props: {
|
|
1494
1496
|
id: createIdProp("Checkbox Group"),
|
|
1495
1497
|
name: createNameProp(),
|
|
@@ -1606,8 +1608,8 @@ function registerCheckboxGroup(loader, overrides) {
|
|
|
1606
1608
|
}
|
|
1607
1609
|
|
|
1608
1610
|
var __defProp$l = Object.defineProperty;
|
|
1609
|
-
var __defProps$
|
|
1610
|
-
var __getOwnPropDescs$
|
|
1611
|
+
var __defProps$h = Object.defineProperties;
|
|
1612
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
1611
1613
|
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
1612
1614
|
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
1613
1615
|
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
@@ -1623,7 +1625,7 @@ var __spreadValues$l = (a, b) => {
|
|
|
1623
1625
|
}
|
|
1624
1626
|
return a;
|
|
1625
1627
|
};
|
|
1626
|
-
var __spreadProps$
|
|
1628
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
1627
1629
|
var __objRest$j = (source, exclude) => {
|
|
1628
1630
|
var target = {};
|
|
1629
1631
|
for (var prop in source)
|
|
@@ -1642,7 +1644,7 @@ const INPUT_VARIANTS = [
|
|
|
1642
1644
|
"hovered",
|
|
1643
1645
|
"disabled"
|
|
1644
1646
|
];
|
|
1645
|
-
const { variants: variants$
|
|
1647
|
+
const { variants: variants$b } = pickAriaComponentVariants(INPUT_VARIANTS);
|
|
1646
1648
|
const inputHelpers$1 = {
|
|
1647
1649
|
states: {
|
|
1648
1650
|
value: {
|
|
@@ -1706,7 +1708,7 @@ function BaseInput_(props, ref) {
|
|
|
1706
1708
|
}, [isFocused, isFocusVisible, isHovered, isDisabled, plasmicUpdateVariant]);
|
|
1707
1709
|
return /* @__PURE__ */ React.createElement(
|
|
1708
1710
|
"input",
|
|
1709
|
-
__spreadProps$
|
|
1711
|
+
__spreadProps$h(__spreadValues$l({}, mergedProps), {
|
|
1710
1712
|
ref: inputRef,
|
|
1711
1713
|
"data-focused": isFocused || void 0,
|
|
1712
1714
|
"data-disabled": isDisabled || void 0,
|
|
@@ -1727,7 +1729,7 @@ function registerInput(loader, overrides) {
|
|
|
1727
1729
|
displayName: "Aria Input",
|
|
1728
1730
|
importPath: "@plasmicpkgs/react-aria/skinny/registerInput",
|
|
1729
1731
|
importName: "BaseInput",
|
|
1730
|
-
variants: variants$
|
|
1732
|
+
variants: variants$b,
|
|
1731
1733
|
defaultStyles: {
|
|
1732
1734
|
width: "300px",
|
|
1733
1735
|
borderWidth: "1px",
|
|
@@ -1774,8 +1776,8 @@ function registerInput(loader, overrides) {
|
|
|
1774
1776
|
}
|
|
1775
1777
|
|
|
1776
1778
|
var __defProp$k = Object.defineProperty;
|
|
1777
|
-
var __defProps$
|
|
1778
|
-
var __getOwnPropDescs$
|
|
1779
|
+
var __defProps$g = Object.defineProperties;
|
|
1780
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
1779
1781
|
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
1780
1782
|
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
1781
1783
|
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
@@ -1791,7 +1793,7 @@ var __spreadValues$k = (a, b) => {
|
|
|
1791
1793
|
}
|
|
1792
1794
|
return a;
|
|
1793
1795
|
};
|
|
1794
|
-
var __spreadProps$
|
|
1796
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
1795
1797
|
var __objRest$i = (source, exclude) => {
|
|
1796
1798
|
var target = {};
|
|
1797
1799
|
for (var prop in source)
|
|
@@ -1812,20 +1814,21 @@ const LIST_BOX_ITEM_VARIANTS = [
|
|
|
1812
1814
|
"selected",
|
|
1813
1815
|
"disabled"
|
|
1814
1816
|
];
|
|
1815
|
-
const { variants: variants$
|
|
1816
|
-
LIST_BOX_ITEM_VARIANTS
|
|
1817
|
-
);
|
|
1817
|
+
const { variants: variants$a } = pickAriaComponentVariants(LIST_BOX_ITEM_VARIANTS);
|
|
1818
1818
|
function BaseListBoxItem(props) {
|
|
1819
1819
|
const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$i(_a, ["children", "setControlContextData", "plasmicUpdateVariant", "id"]);
|
|
1820
1820
|
const listboxContext = React.useContext(PlasmicListBoxContext);
|
|
1821
1821
|
const isStandalone = !listboxContext;
|
|
1822
|
-
const { registeredId, idError } = useOptionsItemId(
|
|
1822
|
+
const { registeredId, idError } = useOptionsItemId(
|
|
1823
|
+
id,
|
|
1824
|
+
listboxContext == null ? void 0 : listboxContext.idManager
|
|
1825
|
+
);
|
|
1823
1826
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
1824
1827
|
idError
|
|
1825
1828
|
});
|
|
1826
1829
|
const listboxItem = /* @__PURE__ */ React.createElement(
|
|
1827
1830
|
ListBoxItem,
|
|
1828
|
-
__spreadProps$
|
|
1831
|
+
__spreadProps$g(__spreadValues$k({
|
|
1829
1832
|
key: registeredId,
|
|
1830
1833
|
id: registeredId
|
|
1831
1834
|
}, rest), {
|
|
@@ -1838,18 +1841,20 @@ function BaseListBoxItem(props) {
|
|
|
1838
1841
|
isFocusVisible,
|
|
1839
1842
|
isSelected,
|
|
1840
1843
|
isDisabled
|
|
1841
|
-
}) =>
|
|
1842
|
-
|
|
1844
|
+
}) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1845
|
+
VariantUpdater,
|
|
1843
1846
|
{
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1847
|
+
changes: {
|
|
1848
|
+
hovered: isHovered,
|
|
1849
|
+
pressed: isPressed,
|
|
1850
|
+
focused: isFocused,
|
|
1851
|
+
focusVisible: isFocusVisible,
|
|
1852
|
+
selected: isSelected,
|
|
1853
|
+
disabled: isDisabled
|
|
1854
|
+
},
|
|
1855
|
+
updateVariant: plasmicUpdateVariant
|
|
1856
|
+
}
|
|
1857
|
+
), children)
|
|
1853
1858
|
);
|
|
1854
1859
|
if (isStandalone) {
|
|
1855
1860
|
return /* @__PURE__ */ React.createElement(ListBox, { selectionMode: "single" }, listboxItem);
|
|
@@ -1902,7 +1907,7 @@ function registerListBoxItem(loader, overrides) {
|
|
|
1902
1907
|
displayName: "Aria ListBoxItem",
|
|
1903
1908
|
importPath: "@plasmicpkgs/react-aria/skinny/registerListBoxItem",
|
|
1904
1909
|
importName: "BaseListBoxItem",
|
|
1905
|
-
variants: variants$
|
|
1910
|
+
variants: variants$a,
|
|
1906
1911
|
props: {
|
|
1907
1912
|
id: {
|
|
1908
1913
|
type: "string",
|
|
@@ -1934,8 +1939,8 @@ function registerListBoxItem(loader, overrides) {
|
|
|
1934
1939
|
}
|
|
1935
1940
|
|
|
1936
1941
|
var __defProp$j = Object.defineProperty;
|
|
1937
|
-
var __defProps$
|
|
1938
|
-
var __getOwnPropDescs$
|
|
1942
|
+
var __defProps$f = Object.defineProperties;
|
|
1943
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
1939
1944
|
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
1940
1945
|
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
1941
1946
|
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
@@ -1951,7 +1956,7 @@ var __spreadValues$j = (a, b) => {
|
|
|
1951
1956
|
}
|
|
1952
1957
|
return a;
|
|
1953
1958
|
};
|
|
1954
|
-
var __spreadProps$
|
|
1959
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
1955
1960
|
var __objRest$h = (source, exclude) => {
|
|
1956
1961
|
var target = {};
|
|
1957
1962
|
for (var prop in source)
|
|
@@ -1968,7 +1973,7 @@ function BaseSection(props) {
|
|
|
1968
1973
|
const _a = props, { header, items } = _a, rest = __objRest$h(_a, ["header", "items"]);
|
|
1969
1974
|
const contextProps = React.useContext(PlasmicListBoxContext);
|
|
1970
1975
|
const isStandalone = !contextProps;
|
|
1971
|
-
const section = /* @__PURE__ */ React.createElement(
|
|
1976
|
+
const section = /* @__PURE__ */ React.createElement(ListBoxSection, __spreadProps$f(__spreadValues$j({}, rest), { style: COMMON_STYLES }), /* @__PURE__ */ React.createElement(Header, null, header), items);
|
|
1972
1977
|
if (isStandalone) {
|
|
1973
1978
|
return (
|
|
1974
1979
|
// BaseListbox should give section a listbox context (that it can't be used without)
|
|
@@ -2016,6 +2021,8 @@ function registerSection(loader, overrides) {
|
|
|
2016
2021
|
}
|
|
2017
2022
|
|
|
2018
2023
|
var __defProp$i = Object.defineProperty;
|
|
2024
|
+
var __defProps$e = Object.defineProperties;
|
|
2025
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
2019
2026
|
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
2020
2027
|
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
2021
2028
|
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
@@ -2031,6 +2038,7 @@ var __spreadValues$i = (a, b) => {
|
|
|
2031
2038
|
}
|
|
2032
2039
|
return a;
|
|
2033
2040
|
};
|
|
2041
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
2034
2042
|
var __objRest$g = (source, exclude) => {
|
|
2035
2043
|
var target = {};
|
|
2036
2044
|
for (var prop in source)
|
|
@@ -2043,8 +2051,8 @@ var __objRest$g = (source, exclude) => {
|
|
|
2043
2051
|
}
|
|
2044
2052
|
return target;
|
|
2045
2053
|
};
|
|
2046
|
-
const LISTBOX_VARIANTS = ["focused"
|
|
2047
|
-
const { variants:
|
|
2054
|
+
const LISTBOX_VARIANTS = ["focused"];
|
|
2055
|
+
const { variants: LISTBOX_VARIANTS_DATA } = pickAriaComponentVariants(LISTBOX_VARIANTS);
|
|
2048
2056
|
const listboxHelpers = {
|
|
2049
2057
|
states: {
|
|
2050
2058
|
selectedValue: {
|
|
@@ -2061,14 +2069,12 @@ function BaseListBox(props) {
|
|
|
2061
2069
|
const _a = props, {
|
|
2062
2070
|
setControlContextData,
|
|
2063
2071
|
children,
|
|
2064
|
-
className,
|
|
2065
2072
|
selectedKeys,
|
|
2066
2073
|
defaultSelectedKeys,
|
|
2067
2074
|
plasmicUpdateVariant
|
|
2068
2075
|
} = _a, rest = __objRest$g(_a, [
|
|
2069
2076
|
"setControlContextData",
|
|
2070
2077
|
"children",
|
|
2071
|
-
"className",
|
|
2072
2078
|
"selectedKeys",
|
|
2073
2079
|
"defaultSelectedKeys",
|
|
2074
2080
|
"plasmicUpdateVariant"
|
|
@@ -2078,32 +2084,22 @@ function BaseListBox(props) {
|
|
|
2078
2084
|
const [ids, setIds] = useState([]);
|
|
2079
2085
|
const inEditor = usePlasmicCanvasContext();
|
|
2080
2086
|
const idManager = useIdManager(setIds, context == null ? void 0 : context.idManager);
|
|
2087
|
+
const mergedProps = mergeProps(rest, __spreadProps$e(__spreadValues$i({
|
|
2088
|
+
onFocusChange: (focused) => {
|
|
2089
|
+
plasmicUpdateVariant == null ? void 0 : plasmicUpdateVariant({ focused });
|
|
2090
|
+
}
|
|
2091
|
+
}, inEditor ? { shouldUseVirtualFocus: true } : {}), {
|
|
2092
|
+
style: COMMON_STYLES,
|
|
2093
|
+
selectedKeys: normalizeSelectedKeys(selectedKeys),
|
|
2094
|
+
defaultSelectedKeys: normalizeSelectedKeys(defaultSelectedKeys)
|
|
2095
|
+
}));
|
|
2081
2096
|
useEffect(() => {
|
|
2082
2097
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
2083
2098
|
itemIds: ids,
|
|
2084
2099
|
isStandalone
|
|
2085
2100
|
});
|
|
2086
2101
|
}, [ids, isStandalone, setControlContextData]);
|
|
2087
|
-
const
|
|
2088
|
-
({ isFocusVisible, isFocused }) => {
|
|
2089
|
-
plasmicUpdateVariant == null ? void 0 : plasmicUpdateVariant({
|
|
2090
|
-
focused: isFocused,
|
|
2091
|
-
focusVisible: isFocusVisible
|
|
2092
|
-
});
|
|
2093
|
-
return className != null ? className : "";
|
|
2094
|
-
},
|
|
2095
|
-
[className, plasmicUpdateVariant]
|
|
2096
|
-
);
|
|
2097
|
-
const listbox = /* @__PURE__ */ React.createElement(
|
|
2098
|
-
ListBox,
|
|
2099
|
-
__spreadValues$i(__spreadValues$i({
|
|
2100
|
-
selectedKeys: normalizeSelectedKeys(selectedKeys),
|
|
2101
|
-
defaultSelectedKeys: normalizeSelectedKeys(defaultSelectedKeys),
|
|
2102
|
-
className: classNameProp,
|
|
2103
|
-
style: COMMON_STYLES
|
|
2104
|
-
}, inEditor ? { shouldUseVirtualFocus: true } : {}), rest),
|
|
2105
|
-
children
|
|
2106
|
-
);
|
|
2102
|
+
const listbox = /* @__PURE__ */ React.createElement(ListBox, __spreadValues$i({}, mergedProps), children);
|
|
2107
2103
|
if (isStandalone) {
|
|
2108
2104
|
return /* @__PURE__ */ React.createElement(
|
|
2109
2105
|
PlasmicListBoxContext.Provider,
|
|
@@ -2182,7 +2178,7 @@ function registerListBox(loader, overrides) {
|
|
|
2182
2178
|
displayName: "Aria ListBox",
|
|
2183
2179
|
importPath: "@plasmicpkgs/react-aria/skinny/registerListBox",
|
|
2184
2180
|
importName: "BaseListBox",
|
|
2185
|
-
variants:
|
|
2181
|
+
variants: LISTBOX_VARIANTS_DATA,
|
|
2186
2182
|
defaultStyles: {
|
|
2187
2183
|
width: "250px",
|
|
2188
2184
|
borderWidth: "1px",
|
|
@@ -2485,7 +2481,6 @@ function BaseComboBox(props) {
|
|
|
2485
2481
|
plasmicUpdateVariant,
|
|
2486
2482
|
__plasmic_selection_prop__,
|
|
2487
2483
|
plasmicNotifyAutoOpenedContent,
|
|
2488
|
-
className,
|
|
2489
2484
|
isOpen: _isOpen
|
|
2490
2485
|
} = _a, rest = __objRest$e(_a, [
|
|
2491
2486
|
"children",
|
|
@@ -2493,18 +2488,8 @@ function BaseComboBox(props) {
|
|
|
2493
2488
|
"plasmicUpdateVariant",
|
|
2494
2489
|
"__plasmic_selection_prop__",
|
|
2495
2490
|
"plasmicNotifyAutoOpenedContent",
|
|
2496
|
-
"className",
|
|
2497
2491
|
"isOpen"
|
|
2498
2492
|
]);
|
|
2499
|
-
const classNameProp = useCallback(
|
|
2500
|
-
({ isDisabled }) => {
|
|
2501
|
-
plasmicUpdateVariant == null ? void 0 : plasmicUpdateVariant({
|
|
2502
|
-
disabled: isDisabled
|
|
2503
|
-
});
|
|
2504
|
-
return className != null ? className : "";
|
|
2505
|
-
},
|
|
2506
|
-
[className, plasmicUpdateVariant]
|
|
2507
|
-
);
|
|
2508
2493
|
const updateIds = useCallback(
|
|
2509
2494
|
(ids) => {
|
|
2510
2495
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
@@ -2514,7 +2499,13 @@ function BaseComboBox(props) {
|
|
|
2514
2499
|
[setControlContextData]
|
|
2515
2500
|
);
|
|
2516
2501
|
const idManager = useIdManager(updateIds);
|
|
2517
|
-
return /* @__PURE__ */ React.createElement(ComboBox, __spreadProps$d(__spreadValues$g({
|
|
2502
|
+
return /* @__PURE__ */ React.createElement(ComboBox, __spreadProps$d(__spreadValues$g({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
2503
|
+
VariantUpdater,
|
|
2504
|
+
{
|
|
2505
|
+
changes: { disabled: isDisabled },
|
|
2506
|
+
updateVariant: plasmicUpdateVariant
|
|
2507
|
+
}
|
|
2508
|
+
), /* @__PURE__ */ React.createElement(PlasmicPopoverTriggerContext.Provider, { value: true }, /* @__PURE__ */ React.createElement(
|
|
2518
2509
|
PlasmicListBoxContext.Provider,
|
|
2519
2510
|
{
|
|
2520
2511
|
value: {
|
|
@@ -2528,7 +2519,7 @@ function BaseComboBox(props) {
|
|
|
2528
2519
|
plasmicNotifyAutoOpenedContent
|
|
2529
2520
|
}
|
|
2530
2521
|
), children)
|
|
2531
|
-
)));
|
|
2522
|
+
))));
|
|
2532
2523
|
}
|
|
2533
2524
|
function registerComboBox(loader) {
|
|
2534
2525
|
registerComponentHelper(loader, BaseComboBox, {
|
|
@@ -3169,9 +3160,7 @@ const OVERLAY_ARROW_VARIANTS = [
|
|
|
3169
3160
|
"placementLeft",
|
|
3170
3161
|
"placementRight"
|
|
3171
3162
|
];
|
|
3172
|
-
const { variants: variants$9
|
|
3173
|
-
OVERLAY_ARROW_VARIANTS
|
|
3174
|
-
);
|
|
3163
|
+
const { variants: variants$9 } = pickAriaComponentVariants(OVERLAY_ARROW_VARIANTS);
|
|
3175
3164
|
function BaseOverlayArrow({
|
|
3176
3165
|
children,
|
|
3177
3166
|
plasmicUpdateVariant,
|
|
@@ -3188,15 +3177,17 @@ function BaseOverlayArrow({
|
|
|
3188
3177
|
id,
|
|
3189
3178
|
style: __spreadValues$b({ lineHeight: "0" }, COMMON_STYLES)
|
|
3190
3179
|
},
|
|
3191
|
-
({ placement }) =>
|
|
3192
|
-
|
|
3180
|
+
({ placement }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
3181
|
+
VariantUpdater,
|
|
3193
3182
|
{
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3183
|
+
changes: {
|
|
3184
|
+
placementTop: placement === "top",
|
|
3185
|
+
placementLeft: placement === "left",
|
|
3186
|
+
placementRight: placement === "right"
|
|
3187
|
+
},
|
|
3188
|
+
updateVariant: plasmicUpdateVariant
|
|
3189
|
+
}
|
|
3190
|
+
), children)
|
|
3200
3191
|
);
|
|
3201
3192
|
if (isStandalone) {
|
|
3202
3193
|
return /* @__PURE__ */ React.createElement("div", { style: { position: "relative" } }, overlayArrow);
|
|
@@ -3268,7 +3259,7 @@ const RADIO_VARIANTS = [
|
|
|
3268
3259
|
"readonly",
|
|
3269
3260
|
"selected"
|
|
3270
3261
|
];
|
|
3271
|
-
const { variants: variants$8
|
|
3262
|
+
const { variants: variants$8 } = pickAriaComponentVariants(RADIO_VARIANTS);
|
|
3272
3263
|
function BaseRadio(props) {
|
|
3273
3264
|
const _a = props, {
|
|
3274
3265
|
children,
|
|
@@ -3306,19 +3297,21 @@ function BaseRadio(props) {
|
|
|
3306
3297
|
isSelected,
|
|
3307
3298
|
isDisabled,
|
|
3308
3299
|
isReadOnly
|
|
3309
|
-
}) =>
|
|
3310
|
-
|
|
3300
|
+
}) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
3301
|
+
VariantUpdater,
|
|
3311
3302
|
{
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3303
|
+
changes: {
|
|
3304
|
+
hovered: isHovered,
|
|
3305
|
+
pressed: isPressed,
|
|
3306
|
+
focused: isFocused,
|
|
3307
|
+
focusVisible: isFocusVisible,
|
|
3308
|
+
selected: isSelected,
|
|
3309
|
+
disabled: isDisabled,
|
|
3310
|
+
readonly: isReadOnly
|
|
3311
|
+
},
|
|
3312
|
+
updateVariant: plasmicUpdateVariant
|
|
3313
|
+
}
|
|
3314
|
+
), children)
|
|
3322
3315
|
);
|
|
3323
3316
|
if (isStandalone) {
|
|
3324
3317
|
return /* @__PURE__ */ React.createElement(RadioGroup, null, radio);
|
|
@@ -3426,7 +3419,7 @@ var __objRest$8 = (source, exclude) => {
|
|
|
3426
3419
|
return target;
|
|
3427
3420
|
};
|
|
3428
3421
|
const RADIO_GROUP_VARIANTS = ["disabled", "readonly"];
|
|
3429
|
-
const { variants: variants$7
|
|
3422
|
+
const { variants: variants$7 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
|
|
3430
3423
|
function BaseRadioGroup(props) {
|
|
3431
3424
|
const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$8(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
|
|
3432
3425
|
const updateIds = useCallback(
|
|
@@ -3440,14 +3433,16 @@ function BaseRadioGroup(props) {
|
|
|
3440
3433
|
const idManager = useIdManager(updateIds);
|
|
3441
3434
|
return (
|
|
3442
3435
|
// PlasmicRadioGroupContext is used by BaseRadio
|
|
3443
|
-
/* @__PURE__ */ React.createElement(PlasmicRadioGroupContext.Provider, { value: __spreadProps$7(__spreadValues$9({}, props), { idManager }) }, /* @__PURE__ */ React.createElement(RadioGroup, __spreadProps$7(__spreadValues$9({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) =>
|
|
3444
|
-
|
|
3436
|
+
/* @__PURE__ */ React.createElement(PlasmicRadioGroupContext.Provider, { value: __spreadProps$7(__spreadValues$9({}, props), { idManager }) }, /* @__PURE__ */ React.createElement(RadioGroup, __spreadProps$7(__spreadValues$9({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
3437
|
+
VariantUpdater,
|
|
3445
3438
|
{
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3439
|
+
changes: {
|
|
3440
|
+
disabled: isDisabled,
|
|
3441
|
+
readonly: isReadOnly
|
|
3442
|
+
},
|
|
3443
|
+
updateVariant: plasmicUpdateVariant
|
|
3444
|
+
}
|
|
3445
|
+
), children)))
|
|
3451
3446
|
);
|
|
3452
3447
|
}
|
|
3453
3448
|
const RADIO_GROUP_COMPONENT_NAME = makeComponentName("radioGroup");
|
|
@@ -3612,12 +3607,12 @@ function BaseSelect(props) {
|
|
|
3612
3607
|
onSelectionChange,
|
|
3613
3608
|
onOpenChange,
|
|
3614
3609
|
isDisabled,
|
|
3615
|
-
className,
|
|
3616
3610
|
children,
|
|
3617
3611
|
disabledKeys,
|
|
3618
3612
|
name,
|
|
3619
|
-
|
|
3613
|
+
className,
|
|
3620
3614
|
plasmicUpdateVariant,
|
|
3615
|
+
setControlContextData,
|
|
3621
3616
|
plasmicNotifyAutoOpenedContent,
|
|
3622
3617
|
__plasmic_selection_prop__,
|
|
3623
3618
|
defaultSelectedKey,
|
|
@@ -3632,21 +3627,6 @@ function BaseSelect(props) {
|
|
|
3632
3627
|
[setControlContextData]
|
|
3633
3628
|
);
|
|
3634
3629
|
const idManager = useIdManager(updateIds);
|
|
3635
|
-
const classNameProp = useCallback(
|
|
3636
|
-
({
|
|
3637
|
-
isDisabled: isDisabled2,
|
|
3638
|
-
isFocusVisible,
|
|
3639
|
-
isFocused
|
|
3640
|
-
}) => {
|
|
3641
|
-
plasmicUpdateVariant == null ? void 0 : plasmicUpdateVariant({
|
|
3642
|
-
disabled: isDisabled2,
|
|
3643
|
-
focused: isFocused,
|
|
3644
|
-
focusVisible: isFocusVisible
|
|
3645
|
-
});
|
|
3646
|
-
return className != null ? className : "";
|
|
3647
|
-
},
|
|
3648
|
-
[className, plasmicUpdateVariant]
|
|
3649
|
-
);
|
|
3650
3630
|
return /* @__PURE__ */ React.createElement(
|
|
3651
3631
|
Select,
|
|
3652
3632
|
__spreadValues$8({
|
|
@@ -3655,21 +3635,30 @@ function BaseSelect(props) {
|
|
|
3655
3635
|
onSelectionChange,
|
|
3656
3636
|
onOpenChange,
|
|
3657
3637
|
isDisabled,
|
|
3658
|
-
className: classNameProp,
|
|
3659
3638
|
style: COMMON_STYLES,
|
|
3639
|
+
className,
|
|
3660
3640
|
name,
|
|
3661
3641
|
disabledKeys,
|
|
3662
3642
|
"aria-label": ariaLabel,
|
|
3663
3643
|
id: props.id
|
|
3664
3644
|
}, extractPlasmicDataProps(props)),
|
|
3665
|
-
/* @__PURE__ */ React.createElement(
|
|
3645
|
+
({ isFocused, isFocusVisible, isDisabled: isDisabled2 }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
3646
|
+
VariantUpdater,
|
|
3647
|
+
{
|
|
3648
|
+
changes: {
|
|
3649
|
+
focused: isFocused,
|
|
3650
|
+
focusVisible: isFocusVisible,
|
|
3651
|
+
disabled: isDisabled2
|
|
3652
|
+
},
|
|
3653
|
+
updateVariant: plasmicUpdateVariant
|
|
3654
|
+
}
|
|
3655
|
+
), /* @__PURE__ */ React.createElement(
|
|
3666
3656
|
SelectAutoOpen,
|
|
3667
3657
|
{
|
|
3668
3658
|
__plasmic_selection_prop__,
|
|
3669
3659
|
plasmicNotifyAutoOpenedContent
|
|
3670
3660
|
}
|
|
3671
|
-
),
|
|
3672
|
-
/* @__PURE__ */ React.createElement(PlasmicPopoverTriggerContext.Provider, { value: true }, /* @__PURE__ */ React.createElement(
|
|
3661
|
+
), /* @__PURE__ */ React.createElement(PlasmicPopoverTriggerContext.Provider, { value: true }, /* @__PURE__ */ React.createElement(
|
|
3673
3662
|
PlasmicListBoxContext.Provider,
|
|
3674
3663
|
{
|
|
3675
3664
|
value: {
|
|
@@ -3677,7 +3666,7 @@ function BaseSelect(props) {
|
|
|
3677
3666
|
}
|
|
3678
3667
|
},
|
|
3679
3668
|
children
|
|
3680
|
-
))
|
|
3669
|
+
)))
|
|
3681
3670
|
);
|
|
3682
3671
|
}
|
|
3683
3672
|
function registerSelect(loader) {
|
|
@@ -3883,19 +3872,19 @@ var __objRest$7 = (source, exclude) => {
|
|
|
3883
3872
|
return target;
|
|
3884
3873
|
};
|
|
3885
3874
|
const SLIDER_OUTPUT_VARIANTS = ["disabled"];
|
|
3886
|
-
const { variants: variants$6
|
|
3887
|
-
SLIDER_OUTPUT_VARIANTS
|
|
3888
|
-
);
|
|
3875
|
+
const { variants: variants$6 } = pickAriaComponentVariants(SLIDER_OUTPUT_VARIANTS);
|
|
3889
3876
|
function BaseSliderOutput(props) {
|
|
3890
3877
|
const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$7(_a, ["plasmicUpdateVariant", "children"]);
|
|
3891
3878
|
const isStandalone = !React.useContext(PlasmicSliderContext);
|
|
3892
|
-
const sliderOutput = /* @__PURE__ */ React.createElement(SliderOutput, __spreadProps$6(__spreadValues$7({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) =>
|
|
3893
|
-
|
|
3879
|
+
const sliderOutput = /* @__PURE__ */ React.createElement(SliderOutput, __spreadProps$6(__spreadValues$7({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
3880
|
+
VariantUpdater,
|
|
3894
3881
|
{
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3882
|
+
changes: {
|
|
3883
|
+
disabled: isDisabled
|
|
3884
|
+
},
|
|
3885
|
+
updateVariant: plasmicUpdateVariant
|
|
3886
|
+
}
|
|
3887
|
+
), children));
|
|
3899
3888
|
if (isStandalone) {
|
|
3900
3889
|
return /* @__PURE__ */ React.createElement(Slider, { style: { height: "100%", width: "100%" } }, sliderOutput);
|
|
3901
3890
|
}
|
|
@@ -3963,9 +3952,7 @@ const SLIDER_THUMB_VARIANTS = [
|
|
|
3963
3952
|
"focusVisible",
|
|
3964
3953
|
"disabled"
|
|
3965
3954
|
];
|
|
3966
|
-
const { variants: variants$5
|
|
3967
|
-
SLIDER_THUMB_VARIANTS
|
|
3968
|
-
);
|
|
3955
|
+
const { variants: variants$5 } = pickAriaComponentVariants(SLIDER_THUMB_VARIANTS);
|
|
3969
3956
|
function BaseSliderThumb(_a) {
|
|
3970
3957
|
var _b = _a, {
|
|
3971
3958
|
children,
|
|
@@ -3977,23 +3964,19 @@ function BaseSliderThumb(_a) {
|
|
|
3977
3964
|
"plasmicUpdateVariant"
|
|
3978
3965
|
]);
|
|
3979
3966
|
const isStandalone = !React.useContext(SliderTrackContext);
|
|
3980
|
-
const thumb = /* @__PURE__ */ React.createElement(
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
}),
|
|
3985
|
-
({ isDragging, isHovered, isFocused, isFocusVisible, isDisabled }) => withObservedValues$4(
|
|
3986
|
-
/* @__PURE__ */ React.createElement(React.Fragment, null, advanced ? children : void 0),
|
|
3987
|
-
{
|
|
3967
|
+
const thumb = /* @__PURE__ */ React.createElement(SliderThumb, __spreadProps$5(__spreadValues$6({}, rest), { style: COMMON_STYLES }), ({ isDragging, isHovered, isFocused, isFocusVisible, isDisabled }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
3968
|
+
VariantUpdater,
|
|
3969
|
+
{
|
|
3970
|
+
changes: {
|
|
3988
3971
|
dragging: isDragging,
|
|
3989
3972
|
hovered: isHovered,
|
|
3990
3973
|
focused: isFocused,
|
|
3991
3974
|
focusVisible: isFocusVisible,
|
|
3992
3975
|
disabled: isDisabled
|
|
3993
3976
|
},
|
|
3994
|
-
plasmicUpdateVariant
|
|
3995
|
-
|
|
3996
|
-
);
|
|
3977
|
+
updateVariant: plasmicUpdateVariant
|
|
3978
|
+
}
|
|
3979
|
+
), advanced ? children : void 0));
|
|
3997
3980
|
if (isStandalone) {
|
|
3998
3981
|
return /* @__PURE__ */ React.createElement(Slider, { style: { height: "100%", width: "100%" } }, /* @__PURE__ */ React.createElement(SliderTrack, null, thumb));
|
|
3999
3982
|
}
|
|
@@ -4069,9 +4052,7 @@ var __objRest$5 = (source, exclude) => {
|
|
|
4069
4052
|
return target;
|
|
4070
4053
|
};
|
|
4071
4054
|
const SLIDER_TRACK_VARIANTS = ["hovered"];
|
|
4072
|
-
const { variants: variants$4
|
|
4073
|
-
SLIDER_TRACK_VARIANTS
|
|
4074
|
-
);
|
|
4055
|
+
const { variants: variants$4 } = pickAriaComponentVariants(SLIDER_TRACK_VARIANTS);
|
|
4075
4056
|
function isMultiValueGuard(value) {
|
|
4076
4057
|
return Array.isArray(value) && value.length > 1;
|
|
4077
4058
|
}
|
|
@@ -4113,25 +4094,27 @@ function BaseSliderTrack(props) {
|
|
|
4113
4094
|
});
|
|
4114
4095
|
});
|
|
4115
4096
|
}, [children, value]);
|
|
4116
|
-
const track = /* @__PURE__ */ React.createElement(SliderTrack, __spreadValues$5({ style: { position: "relative" } }, rest), ({ state, isHovered }) => /* @__PURE__ */ React.createElement(React.Fragment, null,
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
{
|
|
4120
|
-
|
|
4121
|
-
width: `${(!isMultiValue ? state.getThumbPercent(minIndex) : state.getThumbPercent(maxIndex) - state.getThumbPercent(minIndex)) * 100}%`,
|
|
4122
|
-
height: "100%",
|
|
4123
|
-
position: "absolute",
|
|
4124
|
-
top: 0,
|
|
4125
|
-
left: !isMultiValue ? 0 : state.getThumbPercent(minIndex) * 100 + "%"
|
|
4126
|
-
}
|
|
4097
|
+
const track = /* @__PURE__ */ React.createElement(SliderTrack, __spreadValues$5({ style: { position: "relative" } }, rest), ({ state, isHovered }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
4098
|
+
VariantUpdater,
|
|
4099
|
+
{
|
|
4100
|
+
changes: {
|
|
4101
|
+
hovered: isHovered
|
|
4127
4102
|
},
|
|
4128
|
-
|
|
4129
|
-
|
|
4103
|
+
updateVariant: plasmicUpdateVariant
|
|
4104
|
+
}
|
|
4105
|
+
), /* @__PURE__ */ React.createElement(
|
|
4106
|
+
"div",
|
|
4130
4107
|
{
|
|
4131
|
-
|
|
4108
|
+
style: {
|
|
4109
|
+
width: `${(!isMultiValue ? state.getThumbPercent(minIndex) : state.getThumbPercent(maxIndex) - state.getThumbPercent(minIndex)) * 100}%`,
|
|
4110
|
+
height: "100%",
|
|
4111
|
+
position: "absolute",
|
|
4112
|
+
top: 0,
|
|
4113
|
+
left: !isMultiValue ? 0 : state.getThumbPercent(minIndex) * 100 + "%"
|
|
4114
|
+
}
|
|
4132
4115
|
},
|
|
4133
|
-
|
|
4134
|
-
)));
|
|
4116
|
+
progressBar
|
|
4117
|
+
), thumbs));
|
|
4135
4118
|
if (isStandalone) {
|
|
4136
4119
|
return /* @__PURE__ */ React.createElement(Slider, { style: __spreadValues$5({ height: "100%", width: "100%" }, COMMON_STYLES) }, track);
|
|
4137
4120
|
}
|
|
@@ -4243,7 +4226,7 @@ var __objRest$4 = (source, exclude) => {
|
|
|
4243
4226
|
const SLIDER_COMPONENT_NAME = makeComponentName("slider");
|
|
4244
4227
|
const RANGE_SLIDER_COMPONENT_NAME = makeComponentName("range-slider");
|
|
4245
4228
|
const SLIDER_VARIANTS = ["disabled"];
|
|
4246
|
-
const { variants: variants$3
|
|
4229
|
+
const { variants: variants$3 } = pickAriaComponentVariants(SLIDER_VARIANTS);
|
|
4247
4230
|
function BaseSlider(props) {
|
|
4248
4231
|
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$4(_a, ["children", "plasmicUpdateVariant"]);
|
|
4249
4232
|
return (
|
|
@@ -4257,13 +4240,15 @@ function BaseSlider(props) {
|
|
|
4257
4240
|
onChangeEnd: rest.onChangeEnd
|
|
4258
4241
|
})
|
|
4259
4242
|
},
|
|
4260
|
-
/* @__PURE__ */ React.createElement(Slider, __spreadProps$4(__spreadValues$4({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) =>
|
|
4261
|
-
|
|
4243
|
+
/* @__PURE__ */ React.createElement(Slider, __spreadProps$4(__spreadValues$4({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
4244
|
+
VariantUpdater,
|
|
4262
4245
|
{
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4246
|
+
changes: {
|
|
4247
|
+
disabled: isDisabled
|
|
4248
|
+
},
|
|
4249
|
+
updateVariant: plasmicUpdateVariant
|
|
4250
|
+
}
|
|
4251
|
+
), children))
|
|
4267
4252
|
)
|
|
4268
4253
|
);
|
|
4269
4254
|
}
|
|
@@ -4543,7 +4528,7 @@ const SWITCH_VARIANTS = [
|
|
|
4543
4528
|
"disabled",
|
|
4544
4529
|
"readonly"
|
|
4545
4530
|
];
|
|
4546
|
-
const { variants: variants$2
|
|
4531
|
+
const { variants: variants$2 } = pickAriaComponentVariants(SWITCH_VARIANTS);
|
|
4547
4532
|
function BaseSwitch(props) {
|
|
4548
4533
|
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$3(_a, ["children", "plasmicUpdateVariant"]);
|
|
4549
4534
|
return /* @__PURE__ */ React.createElement(Switch, __spreadProps$3(__spreadValues$3({}, rest), { style: COMMON_STYLES }), ({
|
|
@@ -4554,19 +4539,21 @@ function BaseSwitch(props) {
|
|
|
4554
4539
|
isSelected,
|
|
4555
4540
|
isDisabled,
|
|
4556
4541
|
isReadOnly
|
|
4557
|
-
}) =>
|
|
4558
|
-
|
|
4542
|
+
}) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
4543
|
+
VariantUpdater,
|
|
4559
4544
|
{
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4545
|
+
changes: {
|
|
4546
|
+
hovered: isHovered,
|
|
4547
|
+
pressed: isPressed,
|
|
4548
|
+
focused: isFocused,
|
|
4549
|
+
focusVisible: isFocusVisible,
|
|
4550
|
+
selected: isSelected,
|
|
4551
|
+
disabled: isDisabled,
|
|
4552
|
+
readonly: isReadOnly
|
|
4553
|
+
},
|
|
4554
|
+
updateVariant: plasmicUpdateVariant
|
|
4555
|
+
}
|
|
4556
|
+
), children));
|
|
4570
4557
|
}
|
|
4571
4558
|
function registerSwitch(loader, overrides) {
|
|
4572
4559
|
registerComponentHelper(
|
|
@@ -4912,7 +4899,7 @@ var __objRest$1 = (source, exclude) => {
|
|
|
4912
4899
|
return target;
|
|
4913
4900
|
};
|
|
4914
4901
|
const TEXT_FIELD_VARIANTS = ["disabled", "readonly"];
|
|
4915
|
-
const { variants
|
|
4902
|
+
const { variants } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
|
|
4916
4903
|
function BaseTextField(props) {
|
|
4917
4904
|
const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest$1(_a, ["children", "plasmicUpdateVariant", "autoComplete"]);
|
|
4918
4905
|
const contextValue = React.useMemo(() => {
|
|
@@ -4932,14 +4919,16 @@ function BaseTextField(props) {
|
|
|
4932
4919
|
}, rest), {
|
|
4933
4920
|
style: COMMON_STYLES
|
|
4934
4921
|
}),
|
|
4935
|
-
({ isDisabled, isReadOnly }) =>
|
|
4936
|
-
|
|
4922
|
+
({ isDisabled, isReadOnly }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
4923
|
+
VariantUpdater,
|
|
4937
4924
|
{
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4925
|
+
changes: {
|
|
4926
|
+
disabled: isDisabled,
|
|
4927
|
+
readonly: isReadOnly
|
|
4928
|
+
},
|
|
4929
|
+
updateVariant: plasmicUpdateVariant
|
|
4930
|
+
}
|
|
4931
|
+
), children)
|
|
4943
4932
|
))
|
|
4944
4933
|
);
|
|
4945
4934
|
}
|