@elliemae/ds-form 2.3.0-alpha.8 → 2.3.0-alpha.9
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/cjs/ComboBox/v3/parts/menu-list/useItemRenderer.js +4 -4
- package/dist/cjs/ComboBox/v3/parts/menu-list/useItemRenderer.js.map +2 -2
- package/dist/esm/ComboBox/v3/parts/menu-list/useItemRenderer.js +1 -1
- package/dist/esm/ComboBox/v3/parts/menu-list/useItemRenderer.js.map +1 -1
- package/dist/types/Checkbox/DSCheckbox.d.ts +102 -0
- package/dist/types/Checkbox/defaultProps.d.ts +11 -0
- package/dist/types/Checkbox/elements/CheckMark.d.ts +2 -0
- package/dist/types/Checkbox/index.d.ts +1 -0
- package/dist/types/Checkbox/props.d.ts +60 -0
- package/dist/types/Checkbox/tests/DSCheckbox.events.test.d.ts +1 -0
- package/dist/types/CheckboxGroup/DSCheckboxGroup.d.ts +72 -0
- package/dist/types/CheckboxGroup/defaultProps.d.ts +14 -0
- package/dist/types/CheckboxGroup/index.d.ts +1 -0
- package/dist/types/CheckboxGroup/props.d.ts +57 -0
- package/dist/types/CheckboxGroup/tests/DSCheckboxGroup.events.test.d.ts +1 -0
- package/dist/types/ComboBox/DSComboBox.d.ts +3 -0
- package/dist/types/ComboBox/index.d.ts +2 -0
- package/dist/types/ComboBox/v1/DSComboBox.d.ts +67 -0
- package/dist/types/ComboBox/v1/components/AllOption.d.ts +6 -0
- package/dist/types/ComboBox/v1/components/ClearIndicator.d.ts +4 -0
- package/dist/types/ComboBox/v1/components/Control.d.ts +4 -0
- package/dist/types/ComboBox/v1/components/CustomOption.d.ts +9 -0
- package/dist/types/ComboBox/v1/components/CustomOptionMulti.d.ts +9 -0
- package/dist/types/ComboBox/v1/components/DropdownIndicator.d.ts +21 -0
- package/dist/types/ComboBox/v1/components/MenuList.d.ts +4 -0
- package/dist/types/ComboBox/v1/components/MultiSelectHeader.d.ts +4 -0
- package/dist/types/ComboBox/v1/components/MultiValueLabel.d.ts +6 -0
- package/dist/types/ComboBox/v1/components/MultiValueRemove.d.ts +4 -0
- package/dist/types/ComboBox/v1/components/SelectMenu.d.ts +4 -0
- package/dist/types/ComboBox/v1/components/SingleValueLabel.d.ts +12 -0
- package/dist/types/ComboBox/v1/components/ValueContainer.d.ts +6 -0
- package/dist/types/ComboBox/v1/components/calculateWidth.d.ts +1 -0
- package/dist/types/ComboBox/v1/components/getoptions.d.ts +6 -0
- package/dist/types/ComboBox/v1/index.d.ts +2 -0
- package/dist/types/ComboBox/v1/withSelectStringValueConverter.d.ts +64 -0
- package/dist/types/ComboBox/v2/Combobox.d.ts +70 -0
- package/dist/types/ComboBox/v2/components/AllOption.d.ts +6 -0
- package/dist/types/ComboBox/v2/components/ClearIndicator.d.ts +4 -0
- package/dist/types/ComboBox/v2/components/Content.d.ts +15 -0
- package/dist/types/ComboBox/v2/components/Control.d.ts +4 -0
- package/dist/types/ComboBox/v2/components/CustomOption.d.ts +9 -0
- package/dist/types/ComboBox/v2/components/CustomOptionMulti.d.ts +9 -0
- package/dist/types/ComboBox/v2/components/DropdownIndicator.d.ts +24 -0
- package/dist/types/ComboBox/v2/components/GroupHeading.d.ts +4 -0
- package/dist/types/ComboBox/v2/components/IndicatorSeparator.d.ts +5 -0
- package/dist/types/ComboBox/v2/components/LoadingIndicator.d.ts +4 -0
- package/dist/types/ComboBox/v2/components/MenuList.d.ts +4 -0
- package/dist/types/ComboBox/v2/components/MultiSelectHeader.d.ts +10 -0
- package/dist/types/ComboBox/v2/components/MultiValueLabel.d.ts +6 -0
- package/dist/types/ComboBox/v2/components/MultiValueRemove.d.ts +7 -0
- package/dist/types/ComboBox/v2/components/SelectMenu.d.ts +4 -0
- package/dist/types/ComboBox/v2/components/SingleValueLabel.d.ts +12 -0
- package/dist/types/ComboBox/v2/components/ValueContainer.d.ts +6 -0
- package/dist/types/ComboBox/v2/components/calculateWidth.d.ts +1 -0
- package/dist/types/ComboBox/v2/components/getoptions.d.ts +6 -0
- package/dist/types/ComboBox/v2/components/tests/ClearIndicator.test.d.ts +1 -0
- package/dist/types/ComboBox/v2/components/useMenuListHeight.d.ts +1 -0
- package/dist/types/ComboBox/v2/components/utils.d.ts +1 -0
- package/dist/types/ComboBox/v2/context.d.ts +2 -0
- package/dist/types/ComboBox/v2/index.d.ts +2 -0
- package/dist/types/ComboBox/v2/mockOptions.d.ts +5 -0
- package/dist/types/ComboBox/v2/tests/Combobox.test.d.ts +1 -0
- package/dist/types/ComboBox/v3/ComboBox.d.ts +62 -0
- package/dist/types/ComboBox/v3/ComboBoxCTX.d.ts +6 -0
- package/dist/types/ComboBox/v3/ComboboxDataTestids.d.ts +11 -0
- package/dist/types/ComboBox/v3/config/constants.d.ts +8 -0
- package/dist/types/ComboBox/v3/config/useComboBox.d.ts +2 -0
- package/dist/types/ComboBox/v3/config/useGetPropsWithDefault.d.ts +2 -0
- package/dist/types/ComboBox/v3/index.d.ts +1 -0
- package/dist/types/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/a11y-messages/index.d.ts +2 -0
- package/dist/types/ComboBox/v3/parts/a11y-messages/styled.d.ts +1 -0
- package/dist/types/ComboBox/v3/parts/container/Container.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/container/index.d.ts +1 -0
- package/dist/types/ComboBox/v3/parts/container/styled.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/controls/Controls.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/controls/index.d.ts +1 -0
- package/dist/types/ComboBox/v3/parts/controls/styled.d.ts +7 -0
- package/dist/types/ComboBox/v3/parts/controls-input/ControlsInput.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/controls-input/styled.d.ts +4 -0
- package/dist/types/ComboBox/v3/parts/controls-input/useControlsInput.d.ts +12 -0
- package/dist/types/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/dropdown-indicator/index.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/dropdown-indicator/styled.d.ts +1 -0
- package/dist/types/ComboBox/v3/parts/empty-state/index.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/empty-state/styled.d.ts +2 -0
- package/dist/types/ComboBox/v3/parts/header-list/HeaderList.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/header-list/index.d.ts +1 -0
- package/dist/types/ComboBox/v3/parts/header-list/styled.d.ts +7 -0
- package/dist/types/ComboBox/v3/parts/header-list/useHeaderListHandlers.d.ts +12 -0
- package/dist/types/ComboBox/v3/parts/menu-list/MenuList.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/menu-list/index.d.ts +1 -0
- package/dist/types/ComboBox/v3/parts/menu-list/styled.d.ts +10 -0
- package/dist/types/ComboBox/v3/parts/menu-list/useItemRenderer.d.ts +2 -0
- package/dist/types/ComboBox/v3/parts/menu-list/useMenuList.d.ts +2 -0
- package/dist/types/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/multi-selected-values-container/index.d.ts +1 -0
- package/dist/types/ComboBox/v3/parts/multi-selected-values-container/styled.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.d.ts +2 -0
- package/dist/types/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.d.ts +3 -0
- package/dist/types/ComboBox/v3/parts/single-selected-value-container/index.d.ts +1 -0
- package/dist/types/ComboBox/v3/parts/single-selected-value-container/styled.d.ts +1 -0
- package/dist/types/ComboBox/v3/propTypes.d.ts +51 -0
- package/dist/types/ComboBox/v3/tests/combobox-general.test.d.ts +1 -0
- package/dist/types/ComboBox/v3/tests/combobox-multi-select.test.d.ts +1 -0
- package/dist/types/ComboBox/v3/tests/combobox-single-select.test.d.ts +1 -0
- package/dist/types/ComboBox/v3/tests/combobox-special-keys.test.d.ts +1 -0
- package/dist/types/ComboBox/v3/tests/utils.d.ts +22 -0
- package/dist/types/ComboBox/v3/utils/hooks/useKeyboardNavigation.d.ts +4 -0
- package/dist/types/ComboBox/v3/utils/hooks/useOnElementResize.d.ts +3 -0
- package/dist/types/ComboBox/v3/utils/listHelper.d.ts +7 -0
- package/dist/types/ComboBoxFreeSolo/ComboBoxFreeSolo.d.ts +78 -0
- package/dist/types/ComboBoxFreeSolo/components/MultiValueLabel.d.ts +6 -0
- package/dist/types/ComboBoxFreeSolo/components/MultiValueRemove.d.ts +6 -0
- package/dist/types/ComboBoxFreeSolo/components/SingleValue.d.ts +3 -0
- package/dist/types/ComboBoxFreeSolo/components/SingleValueRemove.d.ts +6 -0
- package/dist/types/ComboBoxFreeSolo/index.d.ts +1 -0
- package/dist/types/DateInput/DSDateInput.d.ts +143 -0
- package/dist/types/DateInput/components/DateInputImpl.d.ts +41 -0
- package/dist/types/DateInput/components/DateInputs.d.ts +41 -0
- package/dist/types/DateInput/components/utils.d.ts +40 -0
- package/dist/types/DateInput/defaultProps.d.ts +18 -0
- package/dist/types/DateInput/index.d.ts +1 -0
- package/dist/types/DateInput/props.d.ts +173 -0
- package/dist/types/DateInput/tests/DSDateInput.events.test.d.ts +1 -0
- package/dist/types/DateInputV2/components/DSDateInput.d.ts +97 -0
- package/dist/types/DateInputV2/components/DateInputs.d.ts +33 -0
- package/dist/types/DateInputV2/components/helpers.d.ts +1 -0
- package/dist/types/DateInputV2/components/props.d.ts +104 -0
- package/dist/types/DateInputV2/components/propsTypes.d.ts +21 -0
- package/dist/types/DateInputV2/components/styled.d.ts +5 -0
- package/dist/types/DateInputV2/components/utils.d.ts +42 -0
- package/dist/types/DateInputV2/index.d.ts +2 -0
- package/dist/types/DateInputV2/tests/DateInput.test.d.ts +1 -0
- package/dist/types/ExpandableInput/DSExpandableInput.d.ts +16 -0
- package/dist/types/ExpandableInput/ExpandableInputImpl.d.ts +7 -0
- package/dist/types/ExpandableInput/index.d.ts +1 -0
- package/dist/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +193 -0
- package/dist/types/FloatingLabelInput/FloatingLabelInputImpl.d.ts +27 -0
- package/dist/types/FloatingLabelInput/getSvgPath.d.ts +10 -0
- package/dist/types/FloatingLabelInput/index.d.ts +1 -0
- package/dist/types/FormItem/DSFormItemLayout.d.ts +479 -0
- package/dist/types/FormItem/Error/DSError.d.ts +31 -0
- package/dist/types/FormItem/Feedback.d.ts +7 -0
- package/dist/types/FormItem/Label/DSLabel.d.ts +24 -0
- package/dist/types/FormItem/Suffix/Suffix.d.ts +4 -0
- package/dist/types/FormItem/ValidationFieldWrapper.d.ts +19 -0
- package/dist/types/FormItem/defaultProps.d.ts +197 -0
- package/dist/types/FormItem/index.d.ts +2 -0
- package/dist/types/FormItem/props.d.ts +270 -0
- package/dist/types/FormItem/tests/DSFormItem.events.test.d.ts +1 -0
- package/dist/types/FormItem/variants.d.ts +8 -0
- package/dist/types/Input/DSInput.d.ts +32 -0
- package/dist/types/Input/InputAddonWrapper.d.ts +15 -0
- package/dist/types/Input/InputImpl.d.ts +74 -0
- package/dist/types/Input/index.d.ts +1 -0
- package/dist/types/Input/tests/Input.test.d.ts +1 -0
- package/dist/types/InputGroup/AddonWrapper.d.ts +8 -0
- package/dist/types/InputGroup/DSInputGroup.d.ts +72 -0
- package/dist/types/InputGroup/defaultProps.d.ts +8 -0
- package/dist/types/InputGroup/index.d.ts +1 -0
- package/dist/types/InputGroup/props.d.ts +60 -0
- package/dist/types/InputGroup/tests/DSInputGroup.events.test.d.ts +1 -0
- package/dist/types/InputMask/DSInputMask.d.ts +218 -0
- package/dist/types/InputMask/DSInputMaskDeprecated.d.ts +18 -0
- package/dist/types/InputMask/InputMaskContext.d.ts +18 -0
- package/dist/types/InputMask/MaskPipes.d.ts +18 -0
- package/dist/types/InputMask/MaskTypes.d.ts +15 -0
- package/dist/types/InputMask/addons/AutoCorrectedDatePipe.d.ts +8 -0
- package/dist/types/InputMask/defaultProps.d.ts +28 -0
- package/dist/types/InputMask/index.d.ts +1 -0
- package/dist/types/InputMask/mask_types/DateInputMask.d.ts +75 -0
- package/dist/types/InputMask/mask_types/DateTimeInputMask.d.ts +75 -0
- package/dist/types/InputMask/mask_types/DictionaryInputMask.d.ts +81 -0
- package/dist/types/InputMask/mask_types/NumberInputMask.d.ts +99 -0
- package/dist/types/InputMask/mask_types/PhoneInputMask.d.ts +75 -0
- package/dist/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +75 -0
- package/dist/types/InputMask/mask_types/SsnInputMask.d.ts +75 -0
- package/dist/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +75 -0
- package/dist/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +75 -0
- package/dist/types/InputMask/mask_types/index.d.ts +42 -0
- package/dist/types/InputMask/props.d.ts +254 -0
- package/dist/types/InputMask/tests/DSInputMask.test.d.ts +1 -0
- package/dist/types/InputMask/tests/NumberInputMask.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/DateInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/DateTimeInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/NumberInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/PercentInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/PhoneInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/PhoneInternationalInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/SsnInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/UsZipCodeInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/ZipCodeSearchInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/types/index.d.ts +5 -0
- package/dist/types/InputMask/utils/setCaretPosition.d.ts +3 -0
- package/dist/types/InputProtected/DSInputProtected.d.ts +70 -0
- package/dist/types/InputProtected/defaultProps.d.ts +4 -0
- package/dist/types/InputProtected/index.d.ts +2 -0
- package/dist/types/InputProtected/options.d.ts +8 -0
- package/dist/types/InputProtected/props.d.ts +49 -0
- package/dist/types/InputProtected/tests/DSInputProtected.events.test.d.ts +1 -0
- package/dist/types/InputProtected/tests/DSInputProtected.test.d.ts +1 -0
- package/dist/types/LargeInputText/DSLargeInputText.d.ts +233 -0
- package/dist/types/LargeInputText/defaultProps.d.ts +31 -0
- package/dist/types/LargeInputText/index.d.ts +1 -0
- package/dist/types/LargeInputText/props.d.ts +231 -0
- package/dist/types/LargeInputText/tests/DSLargeInputText.events.test.d.ts +1 -0
- package/dist/types/LargeInputText/tests/DSLargeInputText.test.d.ts +1 -0
- package/dist/types/MenuItem/components/MenuItem/index.d.ts +20 -0
- package/dist/types/MenuItem/components/MenuItem/styled.d.ts +1 -0
- package/dist/types/MenuItem/components/MultiMenuItem/MultiMenuItem.d.ts +21 -0
- package/dist/types/MenuItem/components/MultiMenuItem/styled.d.ts +1 -0
- package/dist/types/MenuItem/components/Section/index.d.ts +12 -0
- package/dist/types/MenuItem/components/Section/props.d.ts +14 -0
- package/dist/types/MenuItem/components/Section/styled.d.ts +2 -0
- package/dist/types/MenuItem/components/Separator/index.d.ts +8 -0
- package/dist/types/MenuItem/components/Separator/styled.d.ts +2 -0
- package/dist/types/MenuItem/components/SingleMenuItem/SingleMenuItem.d.ts +16 -0
- package/dist/types/MenuItem/components/SubmenuItem/index.d.ts +20 -0
- package/dist/types/MenuItem/components/index.d.ts +6 -0
- package/dist/types/MenuItem/index.d.ts +1 -0
- package/dist/types/MenuItem/props.d.ts +38 -0
- package/dist/types/Radio/Circle.d.ts +8 -0
- package/dist/types/Radio/DSRadio.d.ts +157 -0
- package/dist/types/Radio/index.d.ts +1 -0
- package/dist/types/RadioGroup/DSRadioGroup.d.ts +72 -0
- package/dist/types/RadioGroup/defaultProps.d.ts +12 -0
- package/dist/types/RadioGroup/index.d.ts +1 -0
- package/dist/types/RadioGroup/props.d.ts +56 -0
- package/dist/types/RadioGroup/tests/DSRadioGroup.events.test.d.ts +1 -0
- package/dist/types/RequiredMark/RequiredMark.d.ts +7 -0
- package/dist/types/RequiredMark/index.d.ts +1 -0
- package/dist/types/SearchBox/DSSearchBox.d.ts +176 -0
- package/dist/types/SearchBox/NavSearchBox.d.ts +53 -0
- package/dist/types/SearchBox/SButton.d.ts +30 -0
- package/dist/types/SearchBox/SearchBoxToggle.d.ts +13 -0
- package/dist/types/SearchBox/defaultProps.d.ts +26 -0
- package/dist/types/SearchBox/index.d.ts +3 -0
- package/dist/types/SearchBox/props.d.ts +173 -0
- package/dist/types/SearchBox/styled.d.ts +1 -0
- package/dist/types/SearchBox/tests/DSNavSearchBox.events.test.d.ts +1 -0
- package/dist/types/SearchBox/tests/DSSearchBox.events.test.d.ts +1 -0
- package/dist/types/SearchBox/tests/DSSearchBox.test.d.ts +1 -0
- package/dist/types/SearchBox/useSearch.d.ts +9 -0
- package/dist/types/TextBox/DSTextBox.d.ts +207 -0
- package/dist/types/TextBox/index.d.ts +1 -0
- package/dist/types/TextBox/tests/DSTextBox.test.d.ts +1 -0
- package/dist/types/TimeInput/DSTimeInput.d.ts +122 -0
- package/dist/types/TimeInput/TimeInputImpl.d.ts +56 -0
- package/dist/types/TimeInput/TimeInputs.d.ts +18 -0
- package/dist/types/TimeInput/index.d.ts +1 -0
- package/dist/types/TimeInput/utils.d.ts +39 -0
- package/dist/types/Toggle/DSToggle.d.ts +134 -0
- package/dist/types/Toggle/DSToggleImpl.d.ts +57 -0
- package/dist/types/Toggle/DSToggleRender.d.ts +33 -0
- package/dist/types/Toggle/index.d.ts +1 -0
- package/dist/types/Toggle/props.d.ts +47 -0
- package/dist/types/Toggle/toggleHelper.d.ts +24 -0
- package/dist/types/index.d.ts +22 -0
- package/package.json +23 -23
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare const DSTextBox: {
|
|
4
|
+
({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, id, ...otherProps }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
containerProps?: {} | undefined;
|
|
7
|
+
autoFocus?: boolean | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
maxLength?: number | undefined;
|
|
10
|
+
minLength?: number | undefined;
|
|
11
|
+
fluidWidth?: boolean | undefined;
|
|
12
|
+
placeholder: any;
|
|
13
|
+
value?: string | undefined;
|
|
14
|
+
hasError?: boolean | undefined;
|
|
15
|
+
readOnly?: boolean | undefined;
|
|
16
|
+
innerRef?: null | undefined;
|
|
17
|
+
type?: string | undefined;
|
|
18
|
+
min?: undefined;
|
|
19
|
+
max?: undefined;
|
|
20
|
+
clearable?: boolean | undefined;
|
|
21
|
+
leftComponent?: null | undefined;
|
|
22
|
+
rightComponent?: null | undefined;
|
|
23
|
+
required?: boolean | undefined;
|
|
24
|
+
variant: any;
|
|
25
|
+
disableTooltip: any;
|
|
26
|
+
id: any;
|
|
27
|
+
}): JSX.Element;
|
|
28
|
+
propTypes: {
|
|
29
|
+
/** inject props at textbox wrapper */
|
|
30
|
+
containerProps: {
|
|
31
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
32
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
33
|
+
};
|
|
34
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Whether the text box uses auto focus or not
|
|
38
|
+
*/
|
|
39
|
+
autoFocus: {
|
|
40
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
41
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Whether the text box is disabled or not
|
|
47
|
+
*/
|
|
48
|
+
disabled: {
|
|
49
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
50
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
52
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Max length for the text box
|
|
56
|
+
*/
|
|
57
|
+
maxLength: {
|
|
58
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
59
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
60
|
+
};
|
|
61
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Min length for the text box
|
|
65
|
+
*/
|
|
66
|
+
minLength: {
|
|
67
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
68
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
69
|
+
};
|
|
70
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Make the content of the text box fit the container or not
|
|
74
|
+
*/
|
|
75
|
+
fluidWidth: {
|
|
76
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
77
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
78
|
+
};
|
|
79
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Placeholder for the text box
|
|
83
|
+
*/
|
|
84
|
+
placeholder: {
|
|
85
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
86
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
87
|
+
};
|
|
88
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Default value once the component is initialized
|
|
92
|
+
*/
|
|
93
|
+
value: {
|
|
94
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
95
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
96
|
+
};
|
|
97
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Whether the text box has error or not
|
|
101
|
+
*/
|
|
102
|
+
hasError: {
|
|
103
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
104
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
105
|
+
};
|
|
106
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Whether the text box is read only or not
|
|
110
|
+
*/
|
|
111
|
+
readOnly: {
|
|
112
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
113
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
114
|
+
};
|
|
115
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
116
|
+
};
|
|
117
|
+
/** html min prop for input */
|
|
118
|
+
min: {
|
|
119
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
120
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
121
|
+
};
|
|
122
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
123
|
+
};
|
|
124
|
+
/** html max prop for input */
|
|
125
|
+
max: {
|
|
126
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
127
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
128
|
+
};
|
|
129
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Whether the text box is clearable or not
|
|
133
|
+
*/
|
|
134
|
+
clearable: {
|
|
135
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
136
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
137
|
+
};
|
|
138
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Component to be added at the left side of the text box
|
|
142
|
+
*/
|
|
143
|
+
leftComponent: {
|
|
144
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
145
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
146
|
+
};
|
|
147
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Component to be added at the right side of the text box
|
|
151
|
+
*/
|
|
152
|
+
rightComponent: {
|
|
153
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
154
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
155
|
+
};
|
|
156
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Whether the text box is required or not
|
|
160
|
+
*/
|
|
161
|
+
required: {
|
|
162
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
163
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
164
|
+
};
|
|
165
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* [
|
|
169
|
+
* 'variant-default',
|
|
170
|
+
* 'variant-focus',
|
|
171
|
+
* 'variant-active',
|
|
172
|
+
* 'variant-disabled',
|
|
173
|
+
* ]
|
|
174
|
+
*/
|
|
175
|
+
variant: {
|
|
176
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
177
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
178
|
+
};
|
|
179
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
180
|
+
};
|
|
181
|
+
/** html input type */
|
|
182
|
+
type: {
|
|
183
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
184
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
185
|
+
};
|
|
186
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
187
|
+
};
|
|
188
|
+
/** Internal ref */
|
|
189
|
+
innerRef: {
|
|
190
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
191
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
192
|
+
};
|
|
193
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
194
|
+
};
|
|
195
|
+
/** disableTooltip */
|
|
196
|
+
disableTooltip: {
|
|
197
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
declare const DSTextBoxWithSchema: {
|
|
202
|
+
(props?: unknown): JSX.Element;
|
|
203
|
+
propTypes: unknown;
|
|
204
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
205
|
+
};
|
|
206
|
+
export default DSTextBox;
|
|
207
|
+
export { DSTextBoxWithSchema, DSTextBox };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DSTextBoxWithSchema, DSTextBox, default } from './DSTextBox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { TimeInputImpl } from './TimeInputImpl';
|
|
4
|
+
declare const DSTimeInput: {
|
|
5
|
+
({ containerProps, innerRef, className, style, onChange, format, value, clearable, disabled, ariaLabel, }: {
|
|
6
|
+
containerProps?: {} | undefined;
|
|
7
|
+
innerRef: any;
|
|
8
|
+
className?: string | undefined;
|
|
9
|
+
style?: {} | undefined;
|
|
10
|
+
onChange?: (() => null) | undefined;
|
|
11
|
+
format: any;
|
|
12
|
+
value?: string | undefined;
|
|
13
|
+
clearable?: boolean | undefined;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
15
|
+
ariaLabel?: string | undefined;
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
defaultProps: {
|
|
18
|
+
format: string;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
clearable: boolean;
|
|
21
|
+
};
|
|
22
|
+
propTypes: {
|
|
23
|
+
/** Injected props to wrapper element of component */
|
|
24
|
+
containerProps: {
|
|
25
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
26
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
27
|
+
};
|
|
28
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Allows a function that is triggered once the time input changes
|
|
32
|
+
*/
|
|
33
|
+
onChange: {
|
|
34
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
35
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
36
|
+
};
|
|
37
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
38
|
+
};
|
|
39
|
+
/** a11y aria label */
|
|
40
|
+
'aria-label': {
|
|
41
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
42
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
|
+
};
|
|
44
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
45
|
+
};
|
|
46
|
+
/** style object for time input wrapper */
|
|
47
|
+
style: {
|
|
48
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
49
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
50
|
+
};
|
|
51
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
52
|
+
};
|
|
53
|
+
/** inner ref for time inpot wrapper */
|
|
54
|
+
innerRef: {
|
|
55
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
56
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
57
|
+
};
|
|
58
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
59
|
+
};
|
|
60
|
+
/** class for time input */
|
|
61
|
+
className: {
|
|
62
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
63
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
64
|
+
};
|
|
65
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Valid time format
|
|
69
|
+
*/
|
|
70
|
+
format: {
|
|
71
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
72
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
73
|
+
};
|
|
74
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Default value once the component is initialized
|
|
78
|
+
*/
|
|
79
|
+
value: {
|
|
80
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
81
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
82
|
+
};
|
|
83
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Whether the time input is clearable or not
|
|
87
|
+
*/
|
|
88
|
+
clearable: {
|
|
89
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
90
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
91
|
+
};
|
|
92
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Whether the time input is disabled or not
|
|
96
|
+
*/
|
|
97
|
+
disabled: {
|
|
98
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
99
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
100
|
+
};
|
|
101
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Aria label
|
|
105
|
+
*/
|
|
106
|
+
ariaLabel: {
|
|
107
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
108
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
109
|
+
};
|
|
110
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
declare const DSTimeInputWithSchema: {
|
|
115
|
+
(props?: unknown): JSX.Element;
|
|
116
|
+
propTypes: unknown;
|
|
117
|
+
toTypescript: () => import("react-desc").TypescriptSchema; /**
|
|
118
|
+
* Default value once the component is initialized
|
|
119
|
+
*/
|
|
120
|
+
};
|
|
121
|
+
export { TimeInputImpl, DSTimeInputWithSchema, DSTimeInput };
|
|
122
|
+
export default DSTimeInput;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
declare const TimeInputImpl: {
|
|
4
|
+
({ format, innerRef, onChange, className, value, disabled, clearable, "arial-label": ariaLabel, }: {
|
|
5
|
+
format: any;
|
|
6
|
+
innerRef: any;
|
|
7
|
+
onChange: any;
|
|
8
|
+
className: any;
|
|
9
|
+
value: any;
|
|
10
|
+
disabled: any;
|
|
11
|
+
clearable: any;
|
|
12
|
+
"arial-label": any;
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
propTypes: {
|
|
15
|
+
containerProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
16
|
+
/**
|
|
17
|
+
* Inner reference to the input
|
|
18
|
+
*/
|
|
19
|
+
innerRef: PropTypes.Requireable<any>;
|
|
20
|
+
/**
|
|
21
|
+
* Classes to add to the container
|
|
22
|
+
*/
|
|
23
|
+
className: PropTypes.Requireable<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Styles to add to the container
|
|
26
|
+
*/
|
|
27
|
+
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
28
|
+
/**
|
|
29
|
+
* Allows a function that is triggered once the time input changes
|
|
30
|
+
*/
|
|
31
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
+
/**
|
|
33
|
+
* Valid time format
|
|
34
|
+
*/
|
|
35
|
+
format: PropTypes.Requireable<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Default value once the component is initialized
|
|
38
|
+
*/
|
|
39
|
+
value: PropTypes.Requireable<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the time input is clearable or not
|
|
42
|
+
*/
|
|
43
|
+
clearable: PropTypes.Requireable<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the time input is disabled or not
|
|
46
|
+
*/
|
|
47
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Aria label to add to the container
|
|
50
|
+
*/
|
|
51
|
+
'aria-label': PropTypes.Requireable<boolean>;
|
|
52
|
+
'arial-label': PropTypes.Requireable<boolean>;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export { TimeInputImpl };
|
|
56
|
+
export default TimeInputImpl;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const TimeInputs: ({ time, format, use12Hours, step, showHours, showMinutes, showSeconds, onChange, disabled, innerRef, clearable, "arial-label": ariaLabel, "aria-label": ariaLabel2, }: {
|
|
3
|
+
time: any;
|
|
4
|
+
format: any;
|
|
5
|
+
use12Hours: any;
|
|
6
|
+
step?: number | undefined;
|
|
7
|
+
showHours: any;
|
|
8
|
+
showMinutes: any;
|
|
9
|
+
showSeconds: any;
|
|
10
|
+
onChange: any;
|
|
11
|
+
disabled: any;
|
|
12
|
+
innerRef: any;
|
|
13
|
+
clearable: any;
|
|
14
|
+
"arial-label": any;
|
|
15
|
+
"aria-label": any;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
export { TimeInputs };
|
|
18
|
+
export default TimeInputs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DSTimeInput';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const isArrowIncrementDecrement: (key: any) => boolean;
|
|
2
|
+
export declare const setNativeValue: (element: any, value: any) => void;
|
|
3
|
+
export declare const placeholderFormat: (position: any, format: any, use12Hours: any) => "a" | "h" | "hh" | "HH" | "H" | "mm" | "m" | "ss" | "s" | "A" | undefined;
|
|
4
|
+
export declare const formatMinutes: (format: any, value: any) => string;
|
|
5
|
+
export declare const formatSeconds: (format: any, value: any) => string;
|
|
6
|
+
export declare const formatHour: (format: any, value: any) => string;
|
|
7
|
+
export declare const formatMeridiem: (format: any, value: any) => any;
|
|
8
|
+
export declare const parseTimeNumberFromText: (stringValue: any) => number | null;
|
|
9
|
+
export declare const focusNextInput: (currentEl: any) => void;
|
|
10
|
+
export declare const focusPreviousInput: (currentEl: any) => void;
|
|
11
|
+
export declare const getValidTimeNumber: ({ min, max }: {
|
|
12
|
+
min: any;
|
|
13
|
+
max: any;
|
|
14
|
+
}, number: any, typed: any) => any;
|
|
15
|
+
export declare const shouldFocusNextInput: (max: any, number: number | undefined, stringValue: any) => boolean;
|
|
16
|
+
export declare const getTimeValuesFromTime: (time: any, format: any, use12Hours: any) => {
|
|
17
|
+
hours?: undefined;
|
|
18
|
+
minutes?: undefined;
|
|
19
|
+
seconds?: undefined;
|
|
20
|
+
meridiem?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
hours: string;
|
|
23
|
+
minutes: string;
|
|
24
|
+
seconds: string;
|
|
25
|
+
meridiem: any;
|
|
26
|
+
};
|
|
27
|
+
export declare const resetTimeValues: () => {
|
|
28
|
+
hours: string;
|
|
29
|
+
minutes: string;
|
|
30
|
+
seconds: string;
|
|
31
|
+
meridiem: any;
|
|
32
|
+
};
|
|
33
|
+
export declare const commonInputProps: (onKeyDown: any, onInputFocus: any, onClick: any) => {
|
|
34
|
+
pattern: string;
|
|
35
|
+
type: string;
|
|
36
|
+
onKeyDown: any;
|
|
37
|
+
onClick: any;
|
|
38
|
+
onFocus: any;
|
|
39
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare const DSToggle: {
|
|
4
|
+
({ containerProps, hasError, readOnly, disabled, checked, labelOn, labelOff, name, value, size, ...otherProps }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
containerProps: any;
|
|
7
|
+
hasError: any;
|
|
8
|
+
readOnly: any;
|
|
9
|
+
disabled: any;
|
|
10
|
+
checked: any;
|
|
11
|
+
labelOn: any;
|
|
12
|
+
labelOff: any;
|
|
13
|
+
name: any;
|
|
14
|
+
value: any;
|
|
15
|
+
size: any;
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
defaultProps: {
|
|
18
|
+
labelOn: string;
|
|
19
|
+
labelOff: string;
|
|
20
|
+
size: string;
|
|
21
|
+
hasError: boolean;
|
|
22
|
+
readOnly: boolean;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
checked: undefined;
|
|
25
|
+
};
|
|
26
|
+
propTypes: {
|
|
27
|
+
/**
|
|
28
|
+
* Set of Properties attached to the main container
|
|
29
|
+
*/
|
|
30
|
+
containerProps: {
|
|
31
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
32
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
33
|
+
};
|
|
34
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Whether the toggle has error or not
|
|
38
|
+
*/
|
|
39
|
+
hasError: {
|
|
40
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
41
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Whether the toggle is read only or not
|
|
47
|
+
*/
|
|
48
|
+
readOnly: {
|
|
49
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
50
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
52
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Whether the toggle is disabled or not
|
|
56
|
+
*/
|
|
57
|
+
disabled: {
|
|
58
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
59
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
60
|
+
};
|
|
61
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Whether the toggle is checked or not
|
|
65
|
+
*/
|
|
66
|
+
checked: {
|
|
67
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
68
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
69
|
+
};
|
|
70
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Allows a function that is triggered once the toggle changes
|
|
74
|
+
*/
|
|
75
|
+
onChange: {
|
|
76
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
77
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
78
|
+
};
|
|
79
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Label to show when the toggle is ON
|
|
83
|
+
*/
|
|
84
|
+
labelOn: {
|
|
85
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
86
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
87
|
+
};
|
|
88
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Label to show when the toggle is OFF
|
|
92
|
+
*/
|
|
93
|
+
labelOff: {
|
|
94
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
95
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
96
|
+
};
|
|
97
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Default value once the component is initialized
|
|
101
|
+
*/
|
|
102
|
+
value: {
|
|
103
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
104
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
105
|
+
};
|
|
106
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* ['s', 'm', 'l']
|
|
110
|
+
*/
|
|
111
|
+
size: {
|
|
112
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
113
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
114
|
+
};
|
|
115
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Input name
|
|
119
|
+
*/
|
|
120
|
+
name: {
|
|
121
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
122
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
123
|
+
};
|
|
124
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
declare const DSToggleWithSchema: {
|
|
129
|
+
(props?: unknown): JSX.Element;
|
|
130
|
+
propTypes: unknown;
|
|
131
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
132
|
+
};
|
|
133
|
+
export default DSToggle;
|
|
134
|
+
export { DSToggleWithSchema, DSToggle };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
declare class DSToggleImpl extends Component {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
componentDidMount(): void;
|
|
5
|
+
componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
|
|
6
|
+
/**
|
|
7
|
+
* ******************************************************
|
|
8
|
+
* Drag
|
|
9
|
+
* ****************************************************** *
|
|
10
|
+
*
|
|
11
|
+
* @param clientX
|
|
12
|
+
*/
|
|
13
|
+
onDragStart: (clientX: any) => void;
|
|
14
|
+
onDragStop: (e: any) => void;
|
|
15
|
+
/**
|
|
16
|
+
* ******************************************************
|
|
17
|
+
* StandardEvents
|
|
18
|
+
* ****************************************************** *
|
|
19
|
+
*
|
|
20
|
+
* @param e
|
|
21
|
+
*/
|
|
22
|
+
onBlur: (e: any) => void;
|
|
23
|
+
onFocus: (e: any) => void;
|
|
24
|
+
onChange: (e: any) => void;
|
|
25
|
+
/** ******************************************************
|
|
26
|
+
MouseEvents
|
|
27
|
+
******************************************************* * */
|
|
28
|
+
onMouseEnter: () => void;
|
|
29
|
+
onMouseLeave: () => void;
|
|
30
|
+
onMouseMove: (event: any) => void;
|
|
31
|
+
onMouseDown: (event: any) => void;
|
|
32
|
+
onMouseUp: (event: any) => void;
|
|
33
|
+
/** ******************************************************
|
|
34
|
+
Touch
|
|
35
|
+
******************************************************* * */
|
|
36
|
+
onTouchCancel: () => void;
|
|
37
|
+
onTouchEnd: (event: any) => void;
|
|
38
|
+
onTouchMove: (event: any) => void;
|
|
39
|
+
onTouchStart: (event: any) => void;
|
|
40
|
+
static getDerivedStateFromProps(props: any, state: any): {
|
|
41
|
+
drag: number;
|
|
42
|
+
checked: any;
|
|
43
|
+
} | null;
|
|
44
|
+
getSnapshotBeforeUpdate(prevProps: any): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* ******************************************************
|
|
47
|
+
* other
|
|
48
|
+
* ****************************************************** *
|
|
49
|
+
*
|
|
50
|
+
* @param currentCheckState
|
|
51
|
+
*/
|
|
52
|
+
setDragOnChange(currentCheckState: any): void;
|
|
53
|
+
verifyElements(): void;
|
|
54
|
+
render(): JSX.Element;
|
|
55
|
+
}
|
|
56
|
+
export { DSToggleImpl };
|
|
57
|
+
export default DSToggleImpl;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const DSToggleRender: ({ containerProps, id, className, style, hasError, hide, readOnly, disabled, checked, onBlur, onFocus, onChange, onMouseDown, onMouseEnter, onMouseLeave, onTouchCancel, onTouchEnd, onTouchMove, onTouchStart, labelOn, labelOff, dragStyle, containerRef, handRef, name, value, size, defaultState, }: {
|
|
3
|
+
containerProps: any;
|
|
4
|
+
id: any;
|
|
5
|
+
className?: string | undefined;
|
|
6
|
+
style?: {} | undefined;
|
|
7
|
+
hasError?: boolean | undefined;
|
|
8
|
+
hide: any;
|
|
9
|
+
readOnly?: boolean | undefined;
|
|
10
|
+
disabled?: boolean | undefined;
|
|
11
|
+
checked?: boolean | undefined;
|
|
12
|
+
onBlur?: (() => null) | undefined;
|
|
13
|
+
onFocus?: (() => null) | undefined;
|
|
14
|
+
onChange?: (() => null) | undefined;
|
|
15
|
+
onMouseDown?: (() => null) | undefined;
|
|
16
|
+
onMouseEnter?: (() => null) | undefined;
|
|
17
|
+
onMouseLeave?: (() => null) | undefined;
|
|
18
|
+
onTouchCancel?: (() => null) | undefined;
|
|
19
|
+
onTouchEnd?: (() => null) | undefined;
|
|
20
|
+
onTouchMove?: (() => null) | undefined;
|
|
21
|
+
onTouchStart?: (() => null) | undefined;
|
|
22
|
+
labelOn?: string | undefined;
|
|
23
|
+
labelOff?: string | undefined;
|
|
24
|
+
dragStyle?: {} | undefined;
|
|
25
|
+
containerRef?: null | undefined;
|
|
26
|
+
handRef?: null | undefined;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
value?: string | undefined;
|
|
29
|
+
size?: string | undefined;
|
|
30
|
+
defaultState: any;
|
|
31
|
+
}) => JSX.Element;
|
|
32
|
+
export { DSToggleRender };
|
|
33
|
+
export default DSToggleRender;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, DSToggleWithSchema, DSToggle } from './DSToggle';
|