react-magma-dom 4.9.1-next.0 → 4.9.1
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/components/Combobox/index.d.ts +1 -14
- package/dist/components/Select/index.d.ts +0 -13
- package/dist/esm/index.js +152 -84
- package/dist/esm/index.js.map +1 -1
- package/dist/hooks/useMagmaFloating.d.ts +24 -0
- package/dist/properties.json +72 -72
- package/dist/react-magma-dom.cjs.development.js +152 -84
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ReferenceType } from '@floating-ui/react-dom';
|
|
3
2
|
import { UseComboboxProps, UseComboboxState, UseMultipleSelectionProps } from 'downshift';
|
|
4
3
|
import { InternalMultiProps, InternalSelectProps, SelectOptions } from '../Select';
|
|
5
4
|
import { Omit, XOR } from '../../utils';
|
|
@@ -14,7 +13,7 @@ export interface ComboboxProps<T extends SelectOptions> extends Omit<UseCombobox
|
|
|
14
13
|
*/
|
|
15
14
|
containerStyle?: React.CSSProperties;
|
|
16
15
|
/**
|
|
17
|
-
* Default selectable options. Allows for uncontrolled component and internal creation of items. Can be an array of strings or objects
|
|
16
|
+
* Default selectable options. Allows for an uncontrolled component and internal creation of items. Can be an array of strings or objects
|
|
18
17
|
*/
|
|
19
18
|
defaultItems?: T[];
|
|
20
19
|
/**
|
|
@@ -22,10 +21,6 @@ export interface ComboboxProps<T extends SelectOptions> extends Omit<UseCombobox
|
|
|
22
21
|
* @default false
|
|
23
22
|
*/
|
|
24
23
|
disableCreateItem?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
floatingElementStyles?: React.CSSProperties;
|
|
29
24
|
/**
|
|
30
25
|
* @internal
|
|
31
26
|
*/
|
|
@@ -98,14 +93,6 @@ export interface ComboboxProps<T extends SelectOptions> extends Omit<UseCombobox
|
|
|
98
93
|
* Event that fires when a new item is created with the create item option is clicked in the item list menu
|
|
99
94
|
*/
|
|
100
95
|
onItemCreated?: (newItem: T) => void;
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
104
|
-
setFloating?: (node: ReferenceType) => void;
|
|
105
|
-
/**
|
|
106
|
-
* @internal
|
|
107
|
-
*/
|
|
108
|
-
setReference?: (node: ReferenceType) => void;
|
|
109
96
|
/**
|
|
110
97
|
* Reference to the toggle button element wrapping the input in the combobox
|
|
111
98
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ReferenceType } from '@floating-ui/react-dom/dist/floating-ui.react-dom';
|
|
3
2
|
import { UseMultipleSelectionProps, UseSelectProps } from 'downshift';
|
|
4
3
|
import { Omit, XOR } from '../../utils';
|
|
5
4
|
import { LabelPosition } from '../Label';
|
|
@@ -108,10 +107,6 @@ export interface SelectProps<T extends SelectOptions> extends UseSelectProps<T>,
|
|
|
108
107
|
* Id of the element that describes the select trigger button
|
|
109
108
|
*/
|
|
110
109
|
ariaDescribedBy?: string;
|
|
111
|
-
/**
|
|
112
|
-
* @internal
|
|
113
|
-
*/
|
|
114
|
-
floatingElementStyles?: React.CSSProperties;
|
|
115
110
|
/**
|
|
116
111
|
* @internal
|
|
117
112
|
*/
|
|
@@ -148,14 +143,6 @@ export interface SelectProps<T extends SelectOptions> extends UseSelectProps<T>,
|
|
|
148
143
|
* Event that will fire when a keypress is released while focused on the trigger button
|
|
149
144
|
*/
|
|
150
145
|
onKeyUp?: (event: React.KeyboardEvent) => void;
|
|
151
|
-
/**
|
|
152
|
-
* @internal
|
|
153
|
-
*/
|
|
154
|
-
setFloating?: (node: ReferenceType) => void;
|
|
155
|
-
/**
|
|
156
|
-
* @internal
|
|
157
|
-
*/
|
|
158
|
-
setReference?: (node: ReferenceType) => void;
|
|
159
146
|
}
|
|
160
147
|
export interface MultiSelectProps<T extends SelectOptions> extends UseMultipleSelectionProps<T>, Omit<SelectProps<T>, 'onStateChange' | 'stateReducer' | 'isMulti'>, InternalMultiProps<T> {
|
|
161
148
|
/**
|