@plasmicpkgs/react-aria 0.0.27 → 0.0.28
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/contexts.d.ts +2 -7
- package/dist/option-utils.d.ts +4 -13
- package/dist/react-aria.esm.js +346 -379
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +345 -378
- package/dist/react-aria.js.map +1 -1
- package/dist/registerDialogTrigger.d.ts +10 -0
- package/dist/registerListBox.d.ts +7 -5
- package/dist/registerListBoxItem.d.ts +2 -4
- package/dist/registerPopover.d.ts +4 -2
- package/dist/registerSection.d.ts +1 -3
- package/dist/registerSelect.d.ts +1 -1
- package/package.json +3 -3
- package/skinny/contexts.d.ts +2 -7
- package/skinny/{interaction-variant-utils-80bf1cfd.cjs.js → interaction-variant-utils-0f05190f.cjs.js} +16 -2
- package/skinny/interaction-variant-utils-0f05190f.cjs.js.map +1 -0
- package/skinny/{interaction-variant-utils-608d984b.esm.js → interaction-variant-utils-909267e5.esm.js} +16 -2
- package/skinny/interaction-variant-utils-909267e5.esm.js.map +1 -0
- package/skinny/{option-utils-765a1782.esm.js → option-utils-4f037568.esm.js} +22 -22
- package/skinny/option-utils-4f037568.esm.js.map +1 -0
- package/skinny/{option-utils-0db61f6d.cjs.js → option-utils-5e4e85bd.cjs.js} +22 -22
- package/skinny/option-utils-5e4e85bd.cjs.js.map +1 -0
- package/skinny/option-utils.d.ts +4 -13
- package/skinny/registerButton.cjs.js +5 -1
- package/skinny/registerButton.cjs.js.map +1 -1
- package/skinny/registerButton.esm.js +5 -1
- package/skinny/registerButton.esm.js.map +1 -1
- package/skinny/registerCheckbox.cjs.js +1 -1
- package/skinny/registerCheckbox.esm.js +1 -1
- package/skinny/registerCheckboxGroup.cjs.js +1 -1
- package/skinny/registerCheckboxGroup.esm.js +1 -1
- package/skinny/registerComboBox.cjs.js +10 -18
- package/skinny/registerComboBox.cjs.js.map +1 -1
- package/skinny/registerComboBox.esm.js +10 -18
- package/skinny/registerComboBox.esm.js.map +1 -1
- package/skinny/registerDialogTrigger.cjs.js +88 -0
- package/skinny/registerDialogTrigger.cjs.js.map +1 -0
- package/skinny/registerDialogTrigger.d.ts +10 -0
- package/skinny/registerDialogTrigger.esm.js +81 -0
- package/skinny/registerDialogTrigger.esm.js.map +1 -0
- package/skinny/registerInput.cjs.js +1 -1
- package/skinny/registerInput.esm.js +1 -1
- package/skinny/registerListBox.cjs.js +29 -73
- package/skinny/registerListBox.cjs.js.map +1 -1
- package/skinny/registerListBox.d.ts +7 -5
- package/skinny/registerListBox.esm.js +29 -73
- package/skinny/registerListBox.esm.js.map +1 -1
- package/skinny/registerListBoxItem.cjs.js +3 -19
- package/skinny/registerListBoxItem.cjs.js.map +1 -1
- package/skinny/registerListBoxItem.d.ts +2 -4
- package/skinny/registerListBoxItem.esm.js +3 -19
- package/skinny/registerListBoxItem.esm.js.map +1 -1
- package/skinny/registerPopover.cjs.js +7 -32
- package/skinny/registerPopover.cjs.js.map +1 -1
- package/skinny/registerPopover.d.ts +4 -2
- package/skinny/registerPopover.esm.js +7 -32
- package/skinny/registerPopover.esm.js.map +1 -1
- package/skinny/registerRadio.cjs.js +1 -1
- package/skinny/registerRadio.esm.js +1 -1
- package/skinny/registerRadioGroup.cjs.js +1 -1
- package/skinny/registerRadioGroup.esm.js +1 -1
- package/skinny/registerSection.cjs.js +4 -33
- package/skinny/registerSection.cjs.js.map +1 -1
- package/skinny/registerSection.d.ts +1 -3
- package/skinny/registerSection.esm.js +4 -33
- package/skinny/registerSection.esm.js.map +1 -1
- package/skinny/registerSelect.cjs.js +4 -15
- package/skinny/registerSelect.cjs.js.map +1 -1
- package/skinny/registerSelect.d.ts +1 -1
- package/skinny/registerSelect.esm.js +4 -15
- package/skinny/registerSelect.esm.js.map +1 -1
- package/skinny/registerSwitch.cjs.js +1 -1
- package/skinny/registerSwitch.esm.js +1 -1
- package/skinny/registerTextArea.cjs.js +1 -1
- package/skinny/registerTextArea.esm.js +1 -1
- package/skinny/registerTextField.cjs.js +1 -1
- package/skinny/registerTextField.esm.js +1 -1
- package/skinny/registerTooltip.cjs.js +13 -6
- package/skinny/registerTooltip.cjs.js.map +1 -1
- package/skinny/registerTooltip.esm.js +13 -6
- package/skinny/registerTooltip.esm.js.map +1 -1
- package/skinny/interaction-variant-utils-608d984b.esm.js.map +0 -1
- package/skinny/interaction-variant-utils-80bf1cfd.cjs.js.map +0 -1
- package/skinny/option-utils-0db61f6d.cjs.js.map +0 -1
- package/skinny/option-utils-765a1782.esm.js.map +0 -1
package/dist/contexts.d.ts
CHANGED
|
@@ -2,13 +2,8 @@ import React from "react";
|
|
|
2
2
|
import type { BaseListBoxProps } from "./registerListBox";
|
|
3
3
|
export declare const PlasmicLabelContext: React.Context<(import("react-aria-components").LabelProps & React.RefAttributes<HTMLLabelElement>) | undefined>;
|
|
4
4
|
export declare const PlasmicListBoxContext: React.Context<BaseListBoxProps | undefined>;
|
|
5
|
-
export declare const PlasmicPopoverContext: React.Context<
|
|
6
|
-
|
|
7
|
-
resetClassName?: string | undefined;
|
|
8
|
-
} | undefined>;
|
|
9
|
-
export declare const PlasmicItemContext: React.Context<(import("react-aria-components").ListBoxItemProps<object> & React.RefAttributes<HTMLDivElement> & {
|
|
10
|
-
key?: import("react-aria").Key | undefined;
|
|
11
|
-
}) | undefined>;
|
|
5
|
+
export declare const PlasmicPopoverContext: React.Context<import("./registerPopover").BasePopoverProps | undefined>;
|
|
6
|
+
export declare const PlasmicItemContext: React.Context<(import("react-aria-components").ListBoxItemProps<object> & React.RefAttributes<HTMLDivElement>) | undefined>;
|
|
12
7
|
export declare const PlasmicSectionContext: React.Context<import("./registerSection").BaseSectionProps | undefined>;
|
|
13
8
|
export declare const PlasmicHeaderContext: React.Context<(React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>) | undefined>;
|
|
14
9
|
export declare const PlasmicInputContext: React.Context<import("./registerInput").BaseInputProps | undefined>;
|
package/dist/option-utils.d.ts
CHANGED
|
@@ -13,25 +13,16 @@ export type FlexOptionType<T extends object> = FlexItemType<T> | FlexSectionType
|
|
|
13
13
|
export type ObjectOptionType<T extends object> = ObjectSectionType<T> | ObjectItemType<T>;
|
|
14
14
|
export interface HasOptions<T extends object> {
|
|
15
15
|
options?: FlexOptionType<T>[];
|
|
16
|
-
optionInfo?: (option: FlexOptionType<T>) =>
|
|
17
|
-
type?: "item";
|
|
18
|
-
value: string;
|
|
19
|
-
label?: string;
|
|
20
|
-
isDisabled?: boolean;
|
|
21
|
-
} | {
|
|
22
|
-
type: "section";
|
|
23
|
-
label?: string;
|
|
24
|
-
items?: FlexOptionType<T>[];
|
|
25
|
-
};
|
|
16
|
+
optionInfo?: (option: FlexOptionType<T>) => StrictOptionType;
|
|
26
17
|
}
|
|
27
18
|
export interface StrictItemType {
|
|
28
|
-
type?: "
|
|
29
|
-
|
|
19
|
+
type?: "option";
|
|
20
|
+
id: string;
|
|
30
21
|
label?: string;
|
|
31
22
|
isDisabled?: boolean;
|
|
32
23
|
}
|
|
33
24
|
export interface StrictSectionType {
|
|
34
|
-
type: "
|
|
25
|
+
type: "option-group";
|
|
35
26
|
label?: string;
|
|
36
27
|
items?: StrictItemType[];
|
|
37
28
|
key: string;
|