@plasmicpkgs/react-aria 0.0.127 → 0.0.129
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 +49 -86
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +49 -86
- package/dist/react-aria.js.map +1 -1
- package/dist/registerPopover.d.ts +1 -4
- package/dist/registerTooltip.d.ts +1 -4
- package/package.json +3 -3
- package/skinny/registerPopover.cjs.js +1 -21
- package/skinny/registerPopover.cjs.js.map +1 -1
- package/skinny/registerPopover.d.ts +1 -4
- package/skinny/registerPopover.esm.js +1 -21
- package/skinny/registerPopover.esm.js.map +1 -1
- package/skinny/registerTooltip.cjs.js +1 -20
- package/skinny/registerTooltip.cjs.js.map +1 -1
- package/skinny/registerTooltip.d.ts +1 -4
- package/skinny/registerTooltip.esm.js +1 -20
- package/skinny/registerTooltip.esm.js.map +1 -1
package/dist/react-aria.js
CHANGED
|
@@ -696,7 +696,7 @@ const BUTTON_VARIANTS = [
|
|
|
696
696
|
"focusVisible",
|
|
697
697
|
"disabled"
|
|
698
698
|
];
|
|
699
|
-
const { variants: variants$
|
|
699
|
+
const { variants: variants$f, withObservedValues: withObservedValues$c } = pickAriaComponentVariants(BUTTON_VARIANTS);
|
|
700
700
|
const BaseButton = React__default.default.forwardRef(function BaseButtonInner(props, ref) {
|
|
701
701
|
const { href } = props;
|
|
702
702
|
if (href) {
|
|
@@ -715,7 +715,7 @@ const BaseButton = React__default.default.forwardRef(function BaseButtonInner(pr
|
|
|
715
715
|
style: COMMON_STYLES,
|
|
716
716
|
ref
|
|
717
717
|
});
|
|
718
|
-
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Button, __spreadValues$q({}, buttonProps), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$
|
|
718
|
+
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Button, __spreadValues$q({}, buttonProps), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$c(
|
|
719
719
|
children,
|
|
720
720
|
{
|
|
721
721
|
hovered: isHovered,
|
|
@@ -752,7 +752,7 @@ function LinkButton({
|
|
|
752
752
|
"data-focus-visible": isFocusVisible || void 0,
|
|
753
753
|
"data-disabled": props.isDisabled || void 0
|
|
754
754
|
}),
|
|
755
|
-
withObservedValues$
|
|
755
|
+
withObservedValues$c(
|
|
756
756
|
children,
|
|
757
757
|
{
|
|
758
758
|
hovered: isHovered,
|
|
@@ -775,7 +775,7 @@ function registerButton(loader, overrides) {
|
|
|
775
775
|
displayName: "Aria Button",
|
|
776
776
|
importPath: "@plasmicpkgs/react-aria/skinny/registerButton",
|
|
777
777
|
importName: "BaseButton",
|
|
778
|
-
variants: variants$
|
|
778
|
+
variants: variants$f,
|
|
779
779
|
defaultStyles: {
|
|
780
780
|
// Ensure consistent design across rendered elements (button, anchor tag).
|
|
781
781
|
backgroundColor: "#EFEFEF",
|
|
@@ -998,7 +998,7 @@ const CHECKBOX_VARIANTS = [
|
|
|
998
998
|
"selected",
|
|
999
999
|
"readonly"
|
|
1000
1000
|
];
|
|
1001
|
-
const { variants: variants$
|
|
1001
|
+
const { variants: variants$e, withObservedValues: withObservedValues$b } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
|
|
1002
1002
|
function BaseCheckbox(props) {
|
|
1003
1003
|
const _a = props, {
|
|
1004
1004
|
children,
|
|
@@ -1036,7 +1036,7 @@ function BaseCheckbox(props) {
|
|
|
1036
1036
|
isIndeterminate,
|
|
1037
1037
|
isSelected,
|
|
1038
1038
|
isReadOnly
|
|
1039
|
-
}) => withObservedValues$
|
|
1039
|
+
}) => withObservedValues$b(
|
|
1040
1040
|
children,
|
|
1041
1041
|
{
|
|
1042
1042
|
hovered: isHovered,
|
|
@@ -1108,7 +1108,7 @@ function registerCheckbox(loader, overrides) {
|
|
|
1108
1108
|
displayName: "Aria Checkbox",
|
|
1109
1109
|
importPath: "@plasmicpkgs/react-aria/skinny/registerCheckbox",
|
|
1110
1110
|
importName: "BaseCheckbox",
|
|
1111
|
-
variants: variants$
|
|
1111
|
+
variants: variants$e,
|
|
1112
1112
|
props: __spreadProps$l(__spreadValues$p({}, getCommonProps("checkbox", [
|
|
1113
1113
|
"name",
|
|
1114
1114
|
"isDisabled",
|
|
@@ -1396,7 +1396,7 @@ var __objRest$j = (source, exclude) => {
|
|
|
1396
1396
|
return target;
|
|
1397
1397
|
};
|
|
1398
1398
|
const CHECKBOX_GROUP_VARIANTS = ["disabled", "readonly"];
|
|
1399
|
-
const { variants: variants$
|
|
1399
|
+
const { variants: variants$d, withObservedValues: withObservedValues$a } = pickAriaComponentVariants(
|
|
1400
1400
|
CHECKBOX_GROUP_VARIANTS
|
|
1401
1401
|
);
|
|
1402
1402
|
function BaseCheckboxGroup(props) {
|
|
@@ -1412,7 +1412,7 @@ function BaseCheckboxGroup(props) {
|
|
|
1412
1412
|
const idManager = useIdManager(updateIds);
|
|
1413
1413
|
return (
|
|
1414
1414
|
// PlasmicCheckboxGroupContext is used by BaseCheckbox
|
|
1415
|
-
/* @__PURE__ */ React__default.default.createElement(PlasmicCheckboxGroupContext.Provider, { value: __spreadProps$h(__spreadValues$l({}, rest), { idManager }) }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.CheckboxGroup, __spreadProps$h(__spreadValues$l({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => withObservedValues$
|
|
1415
|
+
/* @__PURE__ */ React__default.default.createElement(PlasmicCheckboxGroupContext.Provider, { value: __spreadProps$h(__spreadValues$l({}, rest), { idManager }) }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.CheckboxGroup, __spreadProps$h(__spreadValues$l({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => withObservedValues$a(
|
|
1416
1416
|
children,
|
|
1417
1417
|
{
|
|
1418
1418
|
disabled: isDisabled,
|
|
@@ -1432,7 +1432,7 @@ function registerCheckboxGroup(loader, overrides) {
|
|
|
1432
1432
|
displayName: "Aria Checkbox Group",
|
|
1433
1433
|
importPath: "@plasmicpkgs/react-aria/skinny/registerCheckboxGroup",
|
|
1434
1434
|
importName: "BaseCheckboxGroup",
|
|
1435
|
-
variants: variants$
|
|
1435
|
+
variants: variants$d,
|
|
1436
1436
|
props: __spreadProps$h(__spreadValues$l({}, getCommonProps("checkbox group", [
|
|
1437
1437
|
"name",
|
|
1438
1438
|
"isDisabled",
|
|
@@ -1585,7 +1585,7 @@ const INPUT_VARIANTS = [
|
|
|
1585
1585
|
"hovered",
|
|
1586
1586
|
"disabled"
|
|
1587
1587
|
];
|
|
1588
|
-
const { variants: variants$
|
|
1588
|
+
const { variants: variants$c } = pickAriaComponentVariants(INPUT_VARIANTS);
|
|
1589
1589
|
const inputHelpers$1 = {
|
|
1590
1590
|
states: {
|
|
1591
1591
|
value: {
|
|
@@ -1670,7 +1670,7 @@ function registerInput(loader, overrides) {
|
|
|
1670
1670
|
displayName: "Aria Input",
|
|
1671
1671
|
importPath: "@plasmicpkgs/react-aria/skinny/registerInput",
|
|
1672
1672
|
importName: "BaseInput",
|
|
1673
|
-
variants: variants$
|
|
1673
|
+
variants: variants$c,
|
|
1674
1674
|
defaultStyles: {
|
|
1675
1675
|
width: "300px",
|
|
1676
1676
|
borderWidth: "1px",
|
|
@@ -1765,7 +1765,7 @@ const LIST_BOX_ITEM_VARIANTS = [
|
|
|
1765
1765
|
"selected",
|
|
1766
1766
|
"disabled"
|
|
1767
1767
|
];
|
|
1768
|
-
const { variants: variants$
|
|
1768
|
+
const { variants: variants$b, withObservedValues: withObservedValues$9 } = pickAriaComponentVariants(
|
|
1769
1769
|
LIST_BOX_ITEM_VARIANTS
|
|
1770
1770
|
);
|
|
1771
1771
|
function BaseListBoxItem(props) {
|
|
@@ -1794,7 +1794,7 @@ function BaseListBoxItem(props) {
|
|
|
1794
1794
|
isFocusVisible,
|
|
1795
1795
|
isSelected,
|
|
1796
1796
|
isDisabled
|
|
1797
|
-
}) => withObservedValues$
|
|
1797
|
+
}) => withObservedValues$9(
|
|
1798
1798
|
children,
|
|
1799
1799
|
{
|
|
1800
1800
|
hovered: isHovered,
|
|
@@ -1858,7 +1858,7 @@ function registerListBoxItem(loader, overrides) {
|
|
|
1858
1858
|
displayName: "Aria ListBoxItem",
|
|
1859
1859
|
importPath: "@plasmicpkgs/react-aria/skinny/registerListBoxItem",
|
|
1860
1860
|
importName: "BaseListBoxItem",
|
|
1861
|
-
variants: variants$
|
|
1861
|
+
variants: variants$b,
|
|
1862
1862
|
props: {
|
|
1863
1863
|
id: {
|
|
1864
1864
|
type: "string",
|
|
@@ -1999,7 +1999,7 @@ var __objRest$f = (source, exclude) => {
|
|
|
1999
1999
|
return target;
|
|
2000
2000
|
};
|
|
2001
2001
|
const LISTBOX_VARIANTS = ["focused", "focusVisible"];
|
|
2002
|
-
const { variants: variants$
|
|
2002
|
+
const { variants: variants$a } = pickAriaComponentVariants(LISTBOX_VARIANTS);
|
|
2003
2003
|
const listboxHelpers = {
|
|
2004
2004
|
states: {
|
|
2005
2005
|
selectedValue: {
|
|
@@ -2136,7 +2136,7 @@ function registerListBox(loader, overrides) {
|
|
|
2136
2136
|
displayName: "Aria ListBox",
|
|
2137
2137
|
importPath: "@plasmicpkgs/react-aria/skinny/registerListBox",
|
|
2138
2138
|
importName: "BaseListBox",
|
|
2139
|
-
variants: variants$
|
|
2139
|
+
variants: variants$a,
|
|
2140
2140
|
defaultStyles: {
|
|
2141
2141
|
width: "250px",
|
|
2142
2142
|
borderWidth: "1px",
|
|
@@ -2268,22 +2268,13 @@ var __objRest$e = (source, exclude) => {
|
|
|
2268
2268
|
}
|
|
2269
2269
|
return target;
|
|
2270
2270
|
};
|
|
2271
|
-
const POPOVER_VARIANTS = [
|
|
2272
|
-
"placementTop",
|
|
2273
|
-
"placementBottom",
|
|
2274
|
-
"placementLeft",
|
|
2275
|
-
"placementRight"
|
|
2276
|
-
];
|
|
2277
|
-
const { variants: variants$b, withObservedValues: withObservedValues$a } = pickAriaComponentVariants(POPOVER_VARIANTS);
|
|
2278
2271
|
function BasePopover(props) {
|
|
2279
2272
|
const _a = props, {
|
|
2280
2273
|
resetClassName,
|
|
2281
|
-
plasmicUpdateVariant,
|
|
2282
2274
|
setControlContextData,
|
|
2283
2275
|
matchTriggerWidth
|
|
2284
2276
|
} = _a, restProps = __objRest$e(_a, [
|
|
2285
2277
|
"resetClassName",
|
|
2286
|
-
"plasmicUpdateVariant",
|
|
2287
2278
|
"setControlContextData",
|
|
2288
2279
|
"matchTriggerWidth"
|
|
2289
2280
|
]);
|
|
@@ -2319,16 +2310,7 @@ function BasePopover(props) {
|
|
|
2319
2310
|
__spreadValues$g({
|
|
2320
2311
|
style: __spreadValues$g(__spreadValues$g({}, matchTriggerWidthProp ? { width: `var(--trigger-width)` } : {}), COMMON_STYLES)
|
|
2321
2312
|
}, mergedProps),
|
|
2322
|
-
|
|
2323
|
-
children,
|
|
2324
|
-
{
|
|
2325
|
-
placementTop: placement === "top",
|
|
2326
|
-
placementBottom: placement === "bottom",
|
|
2327
|
-
placementLeft: placement === "left",
|
|
2328
|
-
placementRight: placement === "right"
|
|
2329
|
-
},
|
|
2330
|
-
plasmicUpdateVariant
|
|
2331
|
-
)
|
|
2313
|
+
children
|
|
2332
2314
|
));
|
|
2333
2315
|
}
|
|
2334
2316
|
const POPOVER_COMPONENT_NAME = makeComponentName("popover");
|
|
@@ -2341,7 +2323,6 @@ function registerPopover(loader, overrides) {
|
|
|
2341
2323
|
displayName: "Aria Popover",
|
|
2342
2324
|
importPath: "@plasmicpkgs/react-aria/skinny/registerPopover",
|
|
2343
2325
|
importName: "BasePopover",
|
|
2344
|
-
variants: variants$b,
|
|
2345
2326
|
defaultStyles: {
|
|
2346
2327
|
borderWidth: "1px",
|
|
2347
2328
|
borderStyle: "solid",
|
|
@@ -3096,7 +3077,7 @@ const OVERLAY_ARROW_VARIANTS = [
|
|
|
3096
3077
|
"placementLeft",
|
|
3097
3078
|
"placementRight"
|
|
3098
3079
|
];
|
|
3099
|
-
const { variants: variants$
|
|
3080
|
+
const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickAriaComponentVariants(
|
|
3100
3081
|
OVERLAY_ARROW_VARIANTS
|
|
3101
3082
|
);
|
|
3102
3083
|
function BaseOverlayArrow({
|
|
@@ -3113,7 +3094,7 @@ function BaseOverlayArrow({
|
|
|
3113
3094
|
className,
|
|
3114
3095
|
style: __spreadValues$b({ lineHeight: "0" }, COMMON_STYLES)
|
|
3115
3096
|
},
|
|
3116
|
-
({ placement }) => withObservedValues$
|
|
3097
|
+
({ placement }) => withObservedValues$8(
|
|
3117
3098
|
children,
|
|
3118
3099
|
{
|
|
3119
3100
|
placementTop: placement === "top",
|
|
@@ -3139,7 +3120,7 @@ function registerOverlayArrow(loader, overrides) {
|
|
|
3139
3120
|
importPath: "@plasmicpkgs/react-aria/skinny/registerOverlayArrow",
|
|
3140
3121
|
importName: "BaseOverlayArrow",
|
|
3141
3122
|
styleSections: false,
|
|
3142
|
-
variants: variants$
|
|
3123
|
+
variants: variants$9,
|
|
3143
3124
|
props: {
|
|
3144
3125
|
children: {
|
|
3145
3126
|
type: "slot",
|
|
@@ -3192,7 +3173,7 @@ const RADIO_VARIANTS = [
|
|
|
3192
3173
|
"readonly",
|
|
3193
3174
|
"selected"
|
|
3194
3175
|
];
|
|
3195
|
-
const { variants: variants$
|
|
3176
|
+
const { variants: variants$8, withObservedValues: withObservedValues$7 } = pickAriaComponentVariants(RADIO_VARIANTS);
|
|
3196
3177
|
function BaseRadio(props) {
|
|
3197
3178
|
const _a = props, {
|
|
3198
3179
|
children,
|
|
@@ -3230,7 +3211,7 @@ function BaseRadio(props) {
|
|
|
3230
3211
|
isSelected,
|
|
3231
3212
|
isDisabled,
|
|
3232
3213
|
isReadOnly
|
|
3233
|
-
}) => withObservedValues$
|
|
3214
|
+
}) => withObservedValues$7(
|
|
3234
3215
|
children,
|
|
3235
3216
|
{
|
|
3236
3217
|
hovered: isHovered,
|
|
@@ -3290,7 +3271,7 @@ function registerRadio(loader, overrides) {
|
|
|
3290
3271
|
displayName: "Aria Radio",
|
|
3291
3272
|
importPath: "@plasmicpkgs/react-aria/skinny/registerRadio",
|
|
3292
3273
|
importName: "BaseRadio",
|
|
3293
|
-
variants: variants$
|
|
3274
|
+
variants: variants$8,
|
|
3294
3275
|
props: __spreadProps$9(__spreadValues$a({}, getCommonProps("radio", [
|
|
3295
3276
|
"isDisabled",
|
|
3296
3277
|
"autoFocus",
|
|
@@ -3350,7 +3331,7 @@ var __objRest$8 = (source, exclude) => {
|
|
|
3350
3331
|
return target;
|
|
3351
3332
|
};
|
|
3352
3333
|
const RADIO_GROUP_VARIANTS = ["disabled", "readonly"];
|
|
3353
|
-
const { variants: variants$
|
|
3334
|
+
const { variants: variants$7, withObservedValues: withObservedValues$6 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
|
|
3354
3335
|
function BaseRadioGroup(props) {
|
|
3355
3336
|
const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$8(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
|
|
3356
3337
|
const updateIds = React.useCallback(
|
|
@@ -3364,7 +3345,7 @@ function BaseRadioGroup(props) {
|
|
|
3364
3345
|
const idManager = useIdManager(updateIds);
|
|
3365
3346
|
return (
|
|
3366
3347
|
// PlasmicRadioGroupContext is used by BaseRadio
|
|
3367
|
-
/* @__PURE__ */ React__default.default.createElement(PlasmicRadioGroupContext.Provider, { value: __spreadProps$8(__spreadValues$9({}, props), { idManager }) }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.RadioGroup, __spreadProps$8(__spreadValues$9({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => withObservedValues$
|
|
3348
|
+
/* @__PURE__ */ React__default.default.createElement(PlasmicRadioGroupContext.Provider, { value: __spreadProps$8(__spreadValues$9({}, props), { idManager }) }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.RadioGroup, __spreadProps$8(__spreadValues$9({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => withObservedValues$6(
|
|
3368
3349
|
children,
|
|
3369
3350
|
{
|
|
3370
3351
|
disabled: isDisabled,
|
|
@@ -3389,7 +3370,7 @@ function registerRadioGroup(loader, overrides) {
|
|
|
3389
3370
|
displayName: "Aria RadioGroup",
|
|
3390
3371
|
importPath: "@plasmicpkgs/react-aria/skinny/registerRadioGroup",
|
|
3391
3372
|
importName: "BaseRadioGroup",
|
|
3392
|
-
variants: variants$
|
|
3373
|
+
variants: variants$7,
|
|
3393
3374
|
props: __spreadProps$8(__spreadValues$9({}, getCommonProps("radio group", [
|
|
3394
3375
|
"name",
|
|
3395
3376
|
"isDisabled",
|
|
@@ -3811,12 +3792,12 @@ var __objRest$7 = (source, exclude) => {
|
|
|
3811
3792
|
return target;
|
|
3812
3793
|
};
|
|
3813
3794
|
const SLIDER_OUTPUT_VARIANTS = ["disabled"];
|
|
3814
|
-
const { variants: variants$
|
|
3795
|
+
const { variants: variants$6, withObservedValues: withObservedValues$5 } = pickAriaComponentVariants(
|
|
3815
3796
|
SLIDER_OUTPUT_VARIANTS
|
|
3816
3797
|
);
|
|
3817
3798
|
function BaseSliderOutput(props) {
|
|
3818
3799
|
const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$7(_a, ["plasmicUpdateVariant", "children"]);
|
|
3819
|
-
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderOutput, __spreadProps$6(__spreadValues$7({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$
|
|
3800
|
+
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderOutput, __spreadProps$6(__spreadValues$7({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$5(
|
|
3820
3801
|
children,
|
|
3821
3802
|
{
|
|
3822
3803
|
disabled: isDisabled
|
|
@@ -3834,7 +3815,7 @@ function registerSliderOutput(loader, overrides) {
|
|
|
3834
3815
|
displayName: "Aria Slider Output",
|
|
3835
3816
|
importPath: "@plasmicpkgs/react-aria/skinny/registerSliderOutput",
|
|
3836
3817
|
importName: "BaseSliderOutput",
|
|
3837
|
-
variants: variants$
|
|
3818
|
+
variants: variants$6,
|
|
3838
3819
|
props: {
|
|
3839
3820
|
children: {
|
|
3840
3821
|
mergeWithParent: true,
|
|
@@ -3901,7 +3882,7 @@ const SLIDER_THUMB_VARIANTS = [
|
|
|
3901
3882
|
"focusVisible",
|
|
3902
3883
|
"disabled"
|
|
3903
3884
|
];
|
|
3904
|
-
const { variants: variants$
|
|
3885
|
+
const { variants: variants$5, withObservedValues: withObservedValues$4 } = pickAriaComponentVariants(
|
|
3905
3886
|
SLIDER_THUMB_VARIANTS
|
|
3906
3887
|
);
|
|
3907
3888
|
function BaseSliderThumb(_a) {
|
|
@@ -3914,7 +3895,7 @@ function BaseSliderThumb(_a) {
|
|
|
3914
3895
|
"advanced",
|
|
3915
3896
|
"plasmicUpdateVariant"
|
|
3916
3897
|
]);
|
|
3917
|
-
const thumb = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderThumb, __spreadProps$5(__spreadValues$6({}, rest), { style: COMMON_STYLES }), ({ isDragging, isHovered, isFocused, isFocusVisible, isDisabled }) => withObservedValues$
|
|
3898
|
+
const thumb = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderThumb, __spreadProps$5(__spreadValues$6({}, rest), { style: COMMON_STYLES }), ({ isDragging, isHovered, isFocused, isFocusVisible, isDisabled }) => withObservedValues$4(
|
|
3918
3899
|
/* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, advanced ? children : void 0),
|
|
3919
3900
|
{
|
|
3920
3901
|
dragging: isDragging,
|
|
@@ -3952,7 +3933,7 @@ function registerSliderThumb(loader, overrides) {
|
|
|
3952
3933
|
borderRadius: "100%",
|
|
3953
3934
|
cursor: "pointer"
|
|
3954
3935
|
},
|
|
3955
|
-
variants: variants$
|
|
3936
|
+
variants: variants$5,
|
|
3956
3937
|
props: __spreadProps$5(__spreadValues$6({}, getCommonProps("slider thumb", [
|
|
3957
3938
|
"name",
|
|
3958
3939
|
"isDisabled",
|
|
@@ -4004,7 +3985,7 @@ var __objRest$5 = (source, exclude) => {
|
|
|
4004
3985
|
return target;
|
|
4005
3986
|
};
|
|
4006
3987
|
const SLIDER_TRACK_VARIANTS = ["hovered"];
|
|
4007
|
-
const { variants: variants$
|
|
3988
|
+
const { variants: variants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(
|
|
4008
3989
|
SLIDER_TRACK_VARIANTS
|
|
4009
3990
|
);
|
|
4010
3991
|
function isMultiValueGuard(value) {
|
|
@@ -4048,7 +4029,7 @@ function BaseSliderTrack(props) {
|
|
|
4048
4029
|
});
|
|
4049
4030
|
});
|
|
4050
4031
|
}, [children, value]);
|
|
4051
|
-
const track = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderTrack, __spreadValues$5({ style: { position: "relative" } }, rest), ({ state, isHovered }) => /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, withObservedValues$
|
|
4032
|
+
const track = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderTrack, __spreadValues$5({ style: { position: "relative" } }, rest), ({ state, isHovered }) => /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, withObservedValues$3(
|
|
4052
4033
|
/* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(
|
|
4053
4034
|
"div",
|
|
4054
4035
|
{
|
|
@@ -4082,7 +4063,7 @@ function registerSliderTrack(sliderThumbMeta, loader, overrides) {
|
|
|
4082
4063
|
displayName: "Aria Slider Track",
|
|
4083
4064
|
importPath: "@plasmicpkgs/react-aria/skinny/registerSliderTrack",
|
|
4084
4065
|
importName: "BaseSliderTrack",
|
|
4085
|
-
variants: variants$
|
|
4066
|
+
variants: variants$4,
|
|
4086
4067
|
defaultStyles: {
|
|
4087
4068
|
width: "stretch",
|
|
4088
4069
|
backgroundColor: "#aaa",
|
|
@@ -4177,7 +4158,7 @@ var __objRest$4 = (source, exclude) => {
|
|
|
4177
4158
|
const SLIDER_COMPONENT_NAME = makeComponentName("slider");
|
|
4178
4159
|
const RANGE_SLIDER_COMPONENT_NAME = makeComponentName("range-slider");
|
|
4179
4160
|
const SLIDER_VARIANTS = ["disabled"];
|
|
4180
|
-
const { variants: variants$
|
|
4161
|
+
const { variants: variants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(SLIDER_VARIANTS);
|
|
4181
4162
|
function BaseSlider(props) {
|
|
4182
4163
|
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$4(_a, ["children", "plasmicUpdateVariant"]);
|
|
4183
4164
|
return (
|
|
@@ -4191,7 +4172,7 @@ function BaseSlider(props) {
|
|
|
4191
4172
|
onChangeEnd: rest.onChangeEnd
|
|
4192
4173
|
})
|
|
4193
4174
|
},
|
|
4194
|
-
/* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Slider, __spreadProps$4(__spreadValues$4({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$
|
|
4175
|
+
/* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Slider, __spreadProps$4(__spreadValues$4({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$2(
|
|
4195
4176
|
children,
|
|
4196
4177
|
{
|
|
4197
4178
|
disabled: isDisabled
|
|
@@ -4244,7 +4225,7 @@ function registerSlider(loader, overrides) {
|
|
|
4244
4225
|
displayName: "Aria Range Slider",
|
|
4245
4226
|
importPath: "@plasmicpkgs/react-aria/skinny/registerSlider",
|
|
4246
4227
|
importName: "BaseSlider",
|
|
4247
|
-
variants: variants$
|
|
4228
|
+
variants: variants$3,
|
|
4248
4229
|
defaultStyles: {
|
|
4249
4230
|
width: "300px"
|
|
4250
4231
|
},
|
|
@@ -4356,7 +4337,7 @@ function registerSlider(loader, overrides) {
|
|
|
4356
4337
|
displayName: "Aria Slider",
|
|
4357
4338
|
importPath: "@plasmicpkgs/react-aria/skinny/registerSlider",
|
|
4358
4339
|
importName: "BaseSlider",
|
|
4359
|
-
variants: variants$
|
|
4340
|
+
variants: variants$3,
|
|
4360
4341
|
defaultStyles: {
|
|
4361
4342
|
width: "300px"
|
|
4362
4343
|
},
|
|
@@ -4475,7 +4456,7 @@ const SWITCH_VARIANTS = [
|
|
|
4475
4456
|
"disabled",
|
|
4476
4457
|
"readonly"
|
|
4477
4458
|
];
|
|
4478
|
-
const { variants: variants$
|
|
4459
|
+
const { variants: variants$2, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(SWITCH_VARIANTS);
|
|
4479
4460
|
function BaseSwitch(props) {
|
|
4480
4461
|
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$3(_a, ["children", "plasmicUpdateVariant"]);
|
|
4481
4462
|
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Switch, __spreadProps$3(__spreadValues$3({}, rest), { style: COMMON_STYLES }), ({
|
|
@@ -4486,7 +4467,7 @@ function BaseSwitch(props) {
|
|
|
4486
4467
|
isSelected,
|
|
4487
4468
|
isDisabled,
|
|
4488
4469
|
isReadOnly
|
|
4489
|
-
}) => withObservedValues$
|
|
4470
|
+
}) => withObservedValues$1(
|
|
4490
4471
|
children,
|
|
4491
4472
|
{
|
|
4492
4473
|
hovered: isHovered,
|
|
@@ -4509,7 +4490,7 @@ function registerSwitch(loader, overrides) {
|
|
|
4509
4490
|
displayName: "Aria Switch",
|
|
4510
4491
|
importPath: "@plasmicpkgs/react-aria/skinny/registerSwitch",
|
|
4511
4492
|
importName: "BaseSwitch",
|
|
4512
|
-
variants: variants$
|
|
4493
|
+
variants: variants$2,
|
|
4513
4494
|
defaultStyles: {
|
|
4514
4495
|
display: "flex",
|
|
4515
4496
|
flexDirection: "column",
|
|
@@ -4664,7 +4645,7 @@ const TEXTAREA_VARIANTS = [
|
|
|
4664
4645
|
"hovered",
|
|
4665
4646
|
"disabled"
|
|
4666
4647
|
];
|
|
4667
|
-
const { variants: variants$
|
|
4648
|
+
const { variants: variants$1 } = pickAriaComponentVariants(TEXTAREA_VARIANTS);
|
|
4668
4649
|
const inputHelpers = {
|
|
4669
4650
|
states: {
|
|
4670
4651
|
value: {
|
|
@@ -4744,7 +4725,7 @@ function registerTextArea(loader, overrides) {
|
|
|
4744
4725
|
displayName: "Aria TextArea",
|
|
4745
4726
|
importPath: "@plasmicpkgs/react-aria/skinny/registerTextArea",
|
|
4746
4727
|
importName: "BaseTextArea",
|
|
4747
|
-
variants: variants$
|
|
4728
|
+
variants: variants$1,
|
|
4748
4729
|
props: __spreadValues$2({}, getCommonProps("Text Area", [
|
|
4749
4730
|
"name",
|
|
4750
4731
|
"disabled",
|
|
@@ -4822,7 +4803,7 @@ var __objRest$1 = (source, exclude) => {
|
|
|
4822
4803
|
return target;
|
|
4823
4804
|
};
|
|
4824
4805
|
const TEXT_FIELD_VARIANTS = ["disabled", "readonly"];
|
|
4825
|
-
const { variants
|
|
4806
|
+
const { variants, withObservedValues } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
|
|
4826
4807
|
function BaseTextField(props) {
|
|
4827
4808
|
const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest$1(_a, ["children", "plasmicUpdateVariant", "autoComplete"]);
|
|
4828
4809
|
const contextValue = React__default.default.useMemo(() => {
|
|
@@ -4842,7 +4823,7 @@ function BaseTextField(props) {
|
|
|
4842
4823
|
}, rest), {
|
|
4843
4824
|
style: COMMON_STYLES
|
|
4844
4825
|
}),
|
|
4845
|
-
({ isDisabled, isReadOnly }) => withObservedValues
|
|
4826
|
+
({ isDisabled, isReadOnly }) => withObservedValues(
|
|
4846
4827
|
children,
|
|
4847
4828
|
{
|
|
4848
4829
|
disabled: isDisabled,
|
|
@@ -4863,7 +4844,7 @@ function registerTextField(loader, overrides) {
|
|
|
4863
4844
|
displayName: "Aria TextField",
|
|
4864
4845
|
importPath: "@plasmicpkgs/react-aria/skinny/registerTextField",
|
|
4865
4846
|
importName: "BaseTextField",
|
|
4866
|
-
variants
|
|
4847
|
+
variants,
|
|
4867
4848
|
// TODO: Support for validate prop
|
|
4868
4849
|
props: __spreadProps$1(__spreadValues$1({}, getCommonProps("Text Field", [
|
|
4869
4850
|
"name",
|
|
@@ -4997,13 +4978,6 @@ var __objRest = (source, exclude) => {
|
|
|
4997
4978
|
}
|
|
4998
4979
|
return target;
|
|
4999
4980
|
};
|
|
5000
|
-
const TOOLTIP_VARIANTS = [
|
|
5001
|
-
"placementTop",
|
|
5002
|
-
"placementBottom",
|
|
5003
|
-
"placementLeft",
|
|
5004
|
-
"placementRight"
|
|
5005
|
-
];
|
|
5006
|
-
const { variants, withObservedValues } = pickAriaComponentVariants(TOOLTIP_VARIANTS);
|
|
5007
4981
|
function BaseTooltip(props) {
|
|
5008
4982
|
if (props.isOpen !== void 0) {
|
|
5009
4983
|
return /* @__PURE__ */ React__default.default.createElement(ControlledBaseTooltip, __spreadValues({}, props));
|
|
@@ -5047,7 +5021,6 @@ function ControlledBaseTooltip(props) {
|
|
|
5047
5021
|
className,
|
|
5048
5022
|
onOpenChange = () => {
|
|
5049
5023
|
},
|
|
5050
|
-
plasmicUpdateVariant,
|
|
5051
5024
|
__plasmic_selection_prop__
|
|
5052
5025
|
} = props;
|
|
5053
5026
|
const isCanvasAwareOpen = useIsOpen({
|
|
@@ -5088,16 +5061,7 @@ function ControlledBaseTooltip(props) {
|
|
|
5088
5061
|
onOpenChange,
|
|
5089
5062
|
placement
|
|
5090
5063
|
},
|
|
5091
|
-
|
|
5092
|
-
/* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, tooltipContent),
|
|
5093
|
-
{
|
|
5094
|
-
placementTop: _placement === "top",
|
|
5095
|
-
placementBottom: _placement === "bottom",
|
|
5096
|
-
placementLeft: _placement === "left",
|
|
5097
|
-
placementRight: _placement === "right"
|
|
5098
|
-
},
|
|
5099
|
-
plasmicUpdateVariant
|
|
5100
|
-
)
|
|
5064
|
+
tooltipContent
|
|
5101
5065
|
))
|
|
5102
5066
|
);
|
|
5103
5067
|
}
|
|
@@ -5144,7 +5108,6 @@ function registerTooltip(loader, overrides) {
|
|
|
5144
5108
|
importPath: "@plasmicpkgs/react-aria/skinny/registerTooltip",
|
|
5145
5109
|
importName: "BaseTooltip",
|
|
5146
5110
|
isAttachment: true,
|
|
5147
|
-
variants,
|
|
5148
5111
|
props: __spreadProps(__spreadValues({
|
|
5149
5112
|
children: {
|
|
5150
5113
|
type: "slot",
|