@elliemae/ds-controlled-form 2.4.2-rc.0 → 2.4.2-rc.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/cjs/autocomplete/config/useAutocomplete.js +1 -3
- package/cjs/checkbox/ControlledCheckbox.js +49 -33
- package/cjs/checkbox/exported-related/data-test-ids.js +10 -0
- package/cjs/checkbox/exported-related/index.js +12 -0
- package/cjs/checkbox/exported-related/theming.js +13 -0
- package/cjs/checkbox/react-desc-prop-types.js +0 -1
- package/cjs/checkbox/styles.js +26 -15
- package/cjs/combobox/ComboBoxCTX.js +1 -1
- package/cjs/combobox/ComboboxDataTestids.js +1 -1
- package/cjs/combobox/config/useComboBox.js +6 -4
- package/cjs/combobox/index.js +5 -0
- package/cjs/combobox/parts/DropdownIndicator.js +2 -2
- package/cjs/combobox/parts/container/Container.js +5 -5
- package/cjs/combobox/parts/container/styled.js +13 -7
- package/cjs/combobox/parts/controls/Controls.js +14 -4
- package/cjs/combobox/parts/controls/styled.js +22 -13
- package/cjs/combobox/parts/controls-input/ControlsInput.js +1 -1
- package/cjs/combobox/parts/controls-input/styled.js +7 -3
- package/cjs/combobox/parts/controls-input/useControlsInput.js +3 -4
- package/cjs/combobox/parts/controls-input/useKeyboardNavigation.js +30 -15
- package/cjs/combobox/parts/header-list/HeaderList.js +4 -3
- package/cjs/combobox/parts/header-list/useHeaderListHandlers.js +9 -5
- package/cjs/combobox/parts/menu-list/MenuList.js +5 -2
- package/cjs/combobox/parts/menu-list/styled.js +12 -7
- package/cjs/combobox/parts/menu-list/useItemRenderer.js +5 -4
- package/cjs/combobox/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +1 -1
- package/cjs/combobox/parts/multi-selected-values-container/RemovableSelectedValuePill.js +2 -0
- package/cjs/combobox/parts/multi-selected-values-container/useGroupPills.js +13 -10
- package/cjs/combobox/theming.js +13 -0
- package/cjs/combobox/utils/listHelper.js +2 -1
- package/cjs/index.js +16 -7
- package/cjs/input-group/InputGroup.js +69 -0
- package/cjs/input-group/InputGroupDataTestIds.js +12 -0
- package/cjs/input-group/index.js +12 -0
- package/cjs/input-group/react-desc-prop-types.js +14 -0
- package/cjs/input-group/styled.js +46 -0
- package/cjs/mask-hook/hooks/index.js +0 -1
- package/cjs/mask-hook/hooks/usePhoneMask.js +2 -2
- package/cjs/mask-hook/hooks/useRegExpMask.js +0 -1
- package/cjs/mask-hook/index.js +0 -1
- package/cjs/text-input/styled/borders.js +1 -1
- package/esm/autocomplete/config/useAutocomplete.js +1 -3
- package/esm/checkbox/ControlledCheckbox.js +52 -36
- package/esm/checkbox/exported-related/data-test-ids.js +6 -0
- package/esm/checkbox/exported-related/index.js +2 -0
- package/esm/checkbox/exported-related/theming.js +8 -0
- package/esm/checkbox/react-desc-prop-types.js +0 -1
- package/esm/checkbox/styles.js +25 -15
- package/esm/combobox/ComboBoxCTX.js +1 -1
- package/esm/combobox/ComboboxDataTestids.js +1 -1
- package/esm/combobox/config/useComboBox.js +6 -4
- package/esm/combobox/index.js +2 -0
- package/esm/combobox/parts/DropdownIndicator.js +2 -2
- package/esm/combobox/parts/container/Container.js +7 -7
- package/esm/combobox/parts/container/styled.js +13 -6
- package/esm/combobox/parts/controls/Controls.js +14 -4
- package/esm/combobox/parts/controls/styled.js +22 -13
- package/esm/combobox/parts/controls-input/ControlsInput.js +1 -1
- package/esm/combobox/parts/controls-input/styled.js +7 -3
- package/esm/combobox/parts/controls-input/useControlsInput.js +3 -4
- package/esm/combobox/parts/controls-input/useKeyboardNavigation.js +30 -15
- package/esm/combobox/parts/header-list/HeaderList.js +4 -3
- package/esm/combobox/parts/header-list/useHeaderListHandlers.js +9 -5
- package/esm/combobox/parts/menu-list/MenuList.js +5 -2
- package/esm/combobox/parts/menu-list/styled.js +12 -7
- package/esm/combobox/parts/menu-list/useItemRenderer.js +5 -4
- package/esm/combobox/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +1 -1
- package/esm/combobox/parts/multi-selected-values-container/RemovableSelectedValuePill.js +2 -0
- package/esm/combobox/parts/multi-selected-values-container/useGroupPills.js +13 -10
- package/esm/combobox/theming.js +8 -0
- package/esm/combobox/utils/listHelper.js +2 -1
- package/esm/index.js +5 -1
- package/esm/input-group/InputGroup.js +59 -0
- package/esm/input-group/InputGroupDataTestIds.js +8 -0
- package/esm/input-group/index.js +2 -0
- package/esm/input-group/react-desc-prop-types.js +10 -0
- package/esm/input-group/styled.js +35 -0
- package/esm/mask-hook/hooks/index.js +1 -1
- package/esm/mask-hook/hooks/usePhoneMask.js +2 -2
- package/esm/mask-hook/hooks/useRegExpMask.js +1 -1
- package/esm/mask-hook/index.js +1 -1
- package/esm/text-input/styled/borders.js +1 -1
- package/package.json +51 -19
- package/types/checkbox/exported-related/data-test-ids.d.ts +4 -0
- package/types/checkbox/exported-related/index.d.ts +2 -0
- package/types/checkbox/exported-related/theming.d.ts +6 -0
- package/types/checkbox/react-desc-prop-types.d.ts +3 -3
- package/types/checkbox/styles.d.ts +5 -5
- package/types/combobox/ComboboxDataTestids.d.ts +1 -1
- package/types/combobox/index.d.ts +2 -0
- package/types/combobox/parts/container/styled.d.ts +1 -2
- package/types/combobox/theming.d.ts +6 -0
- package/types/index.d.ts +1 -0
- package/types/input-group/InputGroup.d.ts +5 -0
- package/types/input-group/InputGroupDataTestIds.d.ts +6 -0
- package/types/input-group/index.d.ts +2 -0
- package/types/input-group/react-desc-prop-types.d.ts +19 -0
- package/types/input-group/styled.d.ts +7 -0
- package/types/input-group/tests/DSInputGroup.test.d.ts +1 -0
- package/types/mask-hook/hooks/useRegExpMask.d.ts +0 -1
- package/types/text-input/config/useInputText.d.ts +5 -5
- package/cjs/combobox/parts/menu-list/useMenuListSetFocusOption.js +0 -51
- package/esm/combobox/parts/menu-list/useMenuListSetFocusOption.js +0 -47
- package/types/combobox/parts/menu-list/useMenuListSetFocusOption.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-controlled-form",
|
|
3
|
-
"version": "2.4.2-rc.
|
|
3
|
+
"version": "2.4.2-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Controlled Form Controllers",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -159,6 +159,26 @@
|
|
|
159
159
|
"import": "./esm/large-text-input/DSControlledLargeTextInput.js",
|
|
160
160
|
"require": "./cjs/large-text-input/DSControlledLargeTextInput.js"
|
|
161
161
|
},
|
|
162
|
+
"./input-group/styled": {
|
|
163
|
+
"import": "./esm/input-group/styled.js",
|
|
164
|
+
"require": "./cjs/input-group/styled.js"
|
|
165
|
+
},
|
|
166
|
+
"./input-group/react-desc-prop-types": {
|
|
167
|
+
"import": "./esm/input-group/react-desc-prop-types.js",
|
|
168
|
+
"require": "./cjs/input-group/react-desc-prop-types.js"
|
|
169
|
+
},
|
|
170
|
+
"./input-group/InputGroupDataTestIds": {
|
|
171
|
+
"import": "./esm/input-group/InputGroupDataTestIds.js",
|
|
172
|
+
"require": "./cjs/input-group/InputGroupDataTestIds.js"
|
|
173
|
+
},
|
|
174
|
+
"./input-group/InputGroup": {
|
|
175
|
+
"import": "./esm/input-group/InputGroup.js",
|
|
176
|
+
"require": "./cjs/input-group/InputGroup.js"
|
|
177
|
+
},
|
|
178
|
+
"./input-group": {
|
|
179
|
+
"import": "./esm/input-group/index.js",
|
|
180
|
+
"require": "./cjs/input-group/index.js"
|
|
181
|
+
},
|
|
162
182
|
"./date-time-picker/utils/typeGuards": {
|
|
163
183
|
"import": "./esm/date-time-picker/utils/typeGuards.js",
|
|
164
184
|
"require": "./cjs/date-time-picker/utils/typeGuards.js"
|
|
@@ -559,6 +579,10 @@
|
|
|
559
579
|
"import": "./esm/combobox/utils/listHelper.js",
|
|
560
580
|
"require": "./cjs/combobox/utils/listHelper.js"
|
|
561
581
|
},
|
|
582
|
+
"./combobox/theming": {
|
|
583
|
+
"import": "./esm/combobox/theming.js",
|
|
584
|
+
"require": "./cjs/combobox/theming.js"
|
|
585
|
+
},
|
|
562
586
|
"./combobox/tests/utils": {
|
|
563
587
|
"import": "./esm/combobox/tests/utils.js",
|
|
564
588
|
"require": "./cjs/combobox/tests/utils.js"
|
|
@@ -591,10 +615,6 @@
|
|
|
591
615
|
"import": "./esm/combobox/parts/multi-selected-values-container/index.js",
|
|
592
616
|
"require": "./cjs/combobox/parts/multi-selected-values-container/index.js"
|
|
593
617
|
},
|
|
594
|
-
"./combobox/parts/menu-list/useMenuListSetFocusOption": {
|
|
595
|
-
"import": "./esm/combobox/parts/menu-list/useMenuListSetFocusOption.js",
|
|
596
|
-
"require": "./cjs/combobox/parts/menu-list/useMenuListSetFocusOption.js"
|
|
597
|
-
},
|
|
598
618
|
"./combobox/parts/menu-list/useItemRenderer": {
|
|
599
619
|
"import": "./esm/combobox/parts/menu-list/useItemRenderer.js",
|
|
600
620
|
"require": "./cjs/combobox/parts/menu-list/useItemRenderer.js"
|
|
@@ -743,6 +763,18 @@
|
|
|
743
763
|
"import": "./esm/checkbox/index.js",
|
|
744
764
|
"require": "./cjs/checkbox/index.js"
|
|
745
765
|
},
|
|
766
|
+
"./checkbox/exported-related/theming": {
|
|
767
|
+
"import": "./esm/checkbox/exported-related/theming.js",
|
|
768
|
+
"require": "./cjs/checkbox/exported-related/theming.js"
|
|
769
|
+
},
|
|
770
|
+
"./checkbox/exported-related": {
|
|
771
|
+
"import": "./esm/checkbox/exported-related/index.js",
|
|
772
|
+
"require": "./cjs/checkbox/exported-related/index.js"
|
|
773
|
+
},
|
|
774
|
+
"./checkbox/exported-related/data-test-ids": {
|
|
775
|
+
"import": "./esm/checkbox/exported-related/data-test-ids.js",
|
|
776
|
+
"require": "./cjs/checkbox/exported-related/data-test-ids.js"
|
|
777
|
+
},
|
|
746
778
|
"./checkbox/ControlledCheckbox": {
|
|
747
779
|
"import": "./esm/checkbox/ControlledCheckbox.js",
|
|
748
780
|
"require": "./cjs/checkbox/ControlledCheckbox.js"
|
|
@@ -840,20 +872,20 @@
|
|
|
840
872
|
"build": "node ../../scripts/build/build.js"
|
|
841
873
|
},
|
|
842
874
|
"dependencies": {
|
|
843
|
-
"@elliemae/ds-button": "2.4.2-rc.
|
|
844
|
-
"@elliemae/ds-circular-progress-indicator": "2.4.2-rc.
|
|
845
|
-
"@elliemae/ds-controlled-form": "2.4.2-rc.
|
|
846
|
-
"@elliemae/ds-form": "2.4.2-rc.
|
|
847
|
-
"@elliemae/ds-form-layout-blocks": "2.4.2-rc.
|
|
848
|
-
"@elliemae/ds-grid": "2.4.2-rc.
|
|
849
|
-
"@elliemae/ds-icon": "2.4.2-rc.
|
|
850
|
-
"@elliemae/ds-icons": "2.4.2-rc.
|
|
851
|
-
"@elliemae/ds-pills": "2.4.2-rc.
|
|
852
|
-
"@elliemae/ds-popperjs": "2.4.2-rc.
|
|
853
|
-
"@elliemae/ds-props-helpers": "2.4.2-rc.
|
|
854
|
-
"@elliemae/ds-system": "2.4.2-rc.
|
|
855
|
-
"@elliemae/ds-tooltip": "2.4.2-rc.
|
|
856
|
-
"@elliemae/ds-truncated-tooltip-text": "2.4.2-rc.
|
|
875
|
+
"@elliemae/ds-button": "2.4.2-rc.1",
|
|
876
|
+
"@elliemae/ds-circular-progress-indicator": "2.4.2-rc.1",
|
|
877
|
+
"@elliemae/ds-controlled-form": "2.4.2-rc.1",
|
|
878
|
+
"@elliemae/ds-form": "2.4.2-rc.1",
|
|
879
|
+
"@elliemae/ds-form-layout-blocks": "2.4.2-rc.1",
|
|
880
|
+
"@elliemae/ds-grid": "2.4.2-rc.1",
|
|
881
|
+
"@elliemae/ds-icon": "2.4.2-rc.1",
|
|
882
|
+
"@elliemae/ds-icons": "2.4.2-rc.1",
|
|
883
|
+
"@elliemae/ds-pills": "2.4.2-rc.1",
|
|
884
|
+
"@elliemae/ds-popperjs": "2.4.2-rc.1",
|
|
885
|
+
"@elliemae/ds-props-helpers": "2.4.2-rc.1",
|
|
886
|
+
"@elliemae/ds-system": "2.4.2-rc.1",
|
|
887
|
+
"@elliemae/ds-tooltip": "2.4.2-rc.1",
|
|
888
|
+
"@elliemae/ds-truncated-tooltip-text": "2.4.2-rc.1",
|
|
857
889
|
"prop-types": "~15.7.2",
|
|
858
890
|
"react-desc": "~4.1.3",
|
|
859
891
|
"react-popper": "~2.2.5",
|
|
@@ -12,8 +12,8 @@ export declare namespace DSControlledCheckboxT {
|
|
|
12
12
|
innerRef: React.RefObject<HTMLInputElement> | React.LegacyRef<HTMLInputElement>;
|
|
13
13
|
}
|
|
14
14
|
interface LegacyAriaProps {
|
|
15
|
-
ariaControls
|
|
16
|
-
ariaLabel
|
|
15
|
+
ariaControls: string;
|
|
16
|
+
ariaLabel: string;
|
|
17
17
|
}
|
|
18
18
|
interface Props extends DefaultProps, OptionalProps, Omit<GlobalAttributesT, 'checked'>, LegacyAriaProps {
|
|
19
19
|
}
|
|
@@ -27,12 +27,12 @@ export declare namespace DSControlledCheckboxT {
|
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
readOnly?: boolean;
|
|
29
29
|
checked: boolean | 'mixed';
|
|
30
|
+
wrapLabel: boolean;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
export declare const defaultProps: Partial<DSControlledCheckboxT.Props>;
|
|
33
34
|
export declare const propTypes: {
|
|
34
35
|
label: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
35
|
-
wrapLabel: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
36
36
|
hasError: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
37
37
|
innerRef: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
38
38
|
'aria-*': import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const StyledLabel:
|
|
1
|
+
export declare const StyledContainer: any;
|
|
2
|
+
export declare const StyledCheckBox: any;
|
|
3
|
+
export declare const StyledInput: any;
|
|
4
|
+
export declare const StyledInputMixed: any;
|
|
5
|
+
export declare const StyledLabel: any;
|
package/types/index.d.ts
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DSInputGroupT } from './react-desc-prop-types';
|
|
3
|
+
declare const DSInputGroup: React.ComponentType<DSInputGroupT.Props>;
|
|
4
|
+
declare const DSInputGroupWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<DSInputGroupT.Props>;
|
|
5
|
+
export { DSInputGroup, DSInputGroupWithSchema };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare namespace DSInputGroupT {
|
|
3
|
+
interface RequiredProps {
|
|
4
|
+
children: React.ReactChild;
|
|
5
|
+
}
|
|
6
|
+
interface OptionalProps {
|
|
7
|
+
leftAddon?: React.ReactNode;
|
|
8
|
+
rightAddon?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
interface Props extends Partial<OptionalProps>, RequiredProps {
|
|
11
|
+
}
|
|
12
|
+
interface InternalProps extends OptionalProps, RequiredProps {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export declare const propTypes: {
|
|
16
|
+
leftAddon: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
17
|
+
rightAddon: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
18
|
+
children: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
19
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/react-desc-prop-types").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
3
|
+
cols: string[];
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const StyledLeftAddon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const StyledRightAddon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const StyledInput: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { DSMaskT } from '../react-desc-prop-types';
|
|
2
|
-
export declare const isRegExp: (item: RegExp | string) => item is RegExp;
|
|
3
2
|
export declare const useRegExpMask: DSMaskT.Hook;
|
|
4
3
|
export declare const UseRegExpMaskWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<DSMaskT.HookArgs>;
|
|
@@ -414,12 +414,12 @@ export declare const useInputText: (props: DSInputTextT.Props) => {
|
|
|
414
414
|
minH: string | 0 | (string & {}) | import("@xstyled/system").ThemeProp<string | 0 | (string & {}), import("@xstyled/system").Theme>;
|
|
415
415
|
maskSize: string | 0 | (string & {}) | import("@xstyled/system").ThemeProp<string | 0 | (string & {}), import("@xstyled/system").Theme>;
|
|
416
416
|
display: (string & {}) | "ruby" | "table" | "inherit" | "grid" | "none" | "-moz-initial" | "initial" | "revert" | "unset" | "inline" | "block" | "run-in" | "-ms-flexbox" | "-ms-grid" | "-webkit-flex" | "flex" | "flow" | "flow-root" | "ruby-base" | "ruby-base-container" | "ruby-text" | "ruby-text-container" | "table-caption" | "table-cell" | "table-column" | "table-column-group" | "table-footer-group" | "table-header-group" | "table-row" | "table-row-group" | "-ms-inline-flexbox" | "-ms-inline-grid" | "-webkit-inline-flex" | "inline-block" | "inline-flex" | "inline-grid" | "inline-list-item" | "inline-table" | "contents" | "list-item" | import("@xstyled/system").ThemeProp<import("csstype").Property.Display, import("@xstyled/system").Theme>;
|
|
417
|
-
float: "inherit" | "none" | "left" | "-moz-initial" | "initial" | "revert" | "unset" | "
|
|
417
|
+
float: "inherit" | "none" | "left" | "-moz-initial" | "initial" | "revert" | "unset" | "inline-end" | "inline-start" | "right" | import("@xstyled/system").ThemeProp<import("csstype").Property.Float, import("@xstyled/system").Theme>;
|
|
418
418
|
boxSizing: "inherit" | "-moz-initial" | "initial" | "revert" | "unset" | "border-box" | "content-box" | import("@xstyled/system").ThemeProp<import("csstype").Property.BoxSizing, import("@xstyled/system").Theme>;
|
|
419
419
|
container: boolean | import("@xstyled/system").ThemeProp<boolean, import("@xstyled/system").Theme>;
|
|
420
|
-
overflow: (string & {}) | "hidden" | "inherit" | "-moz-initial" | "initial" | "revert" | "unset" | "auto" | "scroll" | "
|
|
421
|
-
overflowX: "hidden" | "inherit" | "-moz-initial" | "initial" | "revert" | "unset" | "auto" | "scroll" | "
|
|
422
|
-
overflowY: "hidden" | "inherit" | "-moz-initial" | "initial" | "revert" | "unset" | "auto" | "scroll" | "
|
|
420
|
+
overflow: (string & {}) | "hidden" | "inherit" | "-moz-initial" | "initial" | "revert" | "unset" | "auto" | "scroll" | "-moz-hidden-unscrollable" | "clip" | "visible" | import("@xstyled/system").ThemeProp<import("csstype").Property.Overflow, import("@xstyled/system").Theme>;
|
|
421
|
+
overflowX: "hidden" | "inherit" | "-moz-initial" | "initial" | "revert" | "unset" | "auto" | "scroll" | "-moz-hidden-unscrollable" | "clip" | "visible" | import("@xstyled/system").ThemeProp<import("csstype").Property.OverflowX, import("@xstyled/system").Theme>;
|
|
422
|
+
overflowY: "hidden" | "inherit" | "-moz-initial" | "initial" | "revert" | "unset" | "auto" | "scroll" | "-moz-hidden-unscrollable" | "clip" | "visible" | import("@xstyled/system").ThemeProp<import("csstype").Property.OverflowY, import("@xstyled/system").Theme>;
|
|
423
423
|
position: "fixed" | "inherit" | "absolute" | "-moz-initial" | "initial" | "revert" | "unset" | "-webkit-sticky" | "relative" | "static" | "sticky" | import("@xstyled/system").ThemeProp<import("csstype").Property.Position, import("@xstyled/system").Theme>;
|
|
424
424
|
zIndex: string | (string & {}) | (number & {}) | import("@xstyled/system").ThemeProp<string | (string & {}) | (number & {}), import("@xstyled/system").Theme>;
|
|
425
425
|
top: string | 0 | (string & {}) | import("@xstyled/system").ThemeProp<string | 0 | (string & {}), import("@xstyled/system").Theme>;
|
|
@@ -428,7 +428,7 @@ export declare const useInputText: (props: DSInputTextT.Props) => {
|
|
|
428
428
|
left: string | 0 | (string & {}) | import("@xstyled/system").ThemeProp<string | 0 | (string & {}), import("@xstyled/system").Theme>;
|
|
429
429
|
visibility: "hidden" | "inherit" | "-moz-initial" | "initial" | "revert" | "unset" | "visible" | "collapse" | import("@xstyled/system").ThemeProp<import("csstype").Property.Visibility, import("@xstyled/system").Theme>;
|
|
430
430
|
overscrollBehavior: (string & {}) | "inherit" | "none" | "-moz-initial" | "initial" | "revert" | "unset" | "auto" | "contain" | import("@xstyled/system").ThemeProp<import("csstype").Property.OverscrollBehavior, import("@xstyled/system").Theme>;
|
|
431
|
-
objectFit: "inherit" | "none" | "-moz-initial" | "initial" | "revert" | "unset" | "
|
|
431
|
+
objectFit: "inherit" | "none" | "-moz-initial" | "initial" | "revert" | "unset" | "contain" | "cover" | "fill" | "scale-down" | import("@xstyled/system").ThemeProp<import("csstype").Property.ObjectFit, import("@xstyled/system").Theme>;
|
|
432
432
|
};
|
|
433
433
|
xstyledProps: import("@elliemae/ds-props-helpers").XstyledProps;
|
|
434
434
|
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var ComboBoxCTX = require('../../ComboBoxCTX.js');
|
|
7
|
-
|
|
8
|
-
/* eslint-disable complexity */
|
|
9
|
-
const useMenuListSetFocusOption = () => {
|
|
10
|
-
const {
|
|
11
|
-
props: {
|
|
12
|
-
selectedValues,
|
|
13
|
-
filteredOptions
|
|
14
|
-
},
|
|
15
|
-
setFocusOptionIdx,
|
|
16
|
-
hasFocus,
|
|
17
|
-
focusOptionIdx,
|
|
18
|
-
inputValue,
|
|
19
|
-
scrollOptionIntoView
|
|
20
|
-
} = React.useContext(ComboBoxCTX.ComboBoxContext);
|
|
21
|
-
const getFirstOption = React.useCallback(() => {
|
|
22
|
-
for (let i = 0; i < filteredOptions.length; i += 1) if (!['section', 'separator'].includes(filteredOptions[i].type) && !filteredOptions[i].disabled) {
|
|
23
|
-
setFocusOptionIdx(filteredOptions[i].dsId);
|
|
24
|
-
break;
|
|
25
|
-
}
|
|
26
|
-
}, [filteredOptions, setFocusOptionIdx]);
|
|
27
|
-
React.useEffect(() => {
|
|
28
|
-
scrollOptionIntoView(focusOptionIdx); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
29
|
-
}, [focusOptionIdx]);
|
|
30
|
-
React.useEffect(() => {
|
|
31
|
-
if (filteredOptions.length === 0) {
|
|
32
|
-
setFocusOptionIdx('');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (hasFocus && inputValue === '') {
|
|
36
|
-
if (Array.isArray(selectedValues)) {
|
|
37
|
-
if (selectedValues && selectedValues.length > 0) {
|
|
38
|
-
setFocusOptionIdx(selectedValues[selectedValues.length - 1].dsId);
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
} else if (selectedValues) {
|
|
42
|
-
setFocusOptionIdx(selectedValues.dsId);
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
if (hasFocus) getFirstOption();
|
|
48
|
-
}, [getFirstOption, inputValue, selectedValues, hasFocus, setFocusOptionIdx, filteredOptions.length]);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
exports.useMenuListSetFocusOption = useMenuListSetFocusOption;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { useContext, useCallback, useEffect } from 'react';
|
|
2
|
-
import { ComboBoxContext } from '../../ComboBoxCTX.js';
|
|
3
|
-
|
|
4
|
-
/* eslint-disable complexity */
|
|
5
|
-
const useMenuListSetFocusOption = () => {
|
|
6
|
-
const {
|
|
7
|
-
props: {
|
|
8
|
-
selectedValues,
|
|
9
|
-
filteredOptions
|
|
10
|
-
},
|
|
11
|
-
setFocusOptionIdx,
|
|
12
|
-
hasFocus,
|
|
13
|
-
focusOptionIdx,
|
|
14
|
-
inputValue,
|
|
15
|
-
scrollOptionIntoView
|
|
16
|
-
} = useContext(ComboBoxContext);
|
|
17
|
-
const getFirstOption = useCallback(() => {
|
|
18
|
-
for (let i = 0; i < filteredOptions.length; i += 1) if (!['section', 'separator'].includes(filteredOptions[i].type) && !filteredOptions[i].disabled) {
|
|
19
|
-
setFocusOptionIdx(filteredOptions[i].dsId);
|
|
20
|
-
break;
|
|
21
|
-
}
|
|
22
|
-
}, [filteredOptions, setFocusOptionIdx]);
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
scrollOptionIntoView(focusOptionIdx); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
25
|
-
}, [focusOptionIdx]);
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
if (filteredOptions.length === 0) {
|
|
28
|
-
setFocusOptionIdx('');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
if (hasFocus && inputValue === '') {
|
|
32
|
-
if (Array.isArray(selectedValues)) {
|
|
33
|
-
if (selectedValues && selectedValues.length > 0) {
|
|
34
|
-
setFocusOptionIdx(selectedValues[selectedValues.length - 1].dsId);
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
} else if (selectedValues) {
|
|
38
|
-
setFocusOptionIdx(selectedValues.dsId);
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (hasFocus) getFirstOption();
|
|
44
|
-
}, [getFirstOption, inputValue, selectedValues, hasFocus, setFocusOptionIdx, filteredOptions.length]);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export { useMenuListSetFocusOption };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useMenuListSetFocusOption: () => void;
|