@dfds-ui/forms 2.0.29-alpha.fae844df → 2.2.0-alpha.4e495871
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/assistive-text/AssistiveText.d.ts +1 -1
- package/asterisk/Asterisk.d.ts +1 -1
- package/asterisk/Asterisk.js +2 -2
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/Checkbox.js +3 -3
- package/checkbox/CheckboxContext.d.ts +1 -1
- package/checkbox/CheckboxGroup.d.ts +1 -1
- package/checkbox/CheckboxGroup.js +3 -3
- package/cjs/assistive-text/AssistiveText.d.ts +1 -1
- package/cjs/assistive-text/AssistiveText.js +1 -1
- package/cjs/asterisk/Asterisk.d.ts +1 -1
- package/cjs/asterisk/Asterisk.js +5 -5
- package/cjs/checkbox/Checkbox.d.ts +2 -2
- package/cjs/checkbox/Checkbox.js +19 -24
- package/cjs/checkbox/CheckboxContext.d.ts +1 -1
- package/cjs/checkbox/CheckboxContext.js +2 -1
- package/cjs/checkbox/CheckboxGroup.d.ts +1 -1
- package/cjs/checkbox/CheckboxGroup.js +16 -21
- package/cjs/checkbox/index.js +2 -2
- package/cjs/counter/Counter.d.ts +2 -2
- package/cjs/counter/Counter.js +33 -45
- package/cjs/counter/index.js +1 -1
- package/cjs/enhanced/EnhancedField.d.ts +4 -4
- package/cjs/enhanced/EnhancedField.js +15 -14
- package/cjs/enhanced/index.js +1 -1
- package/cjs/error-text/ErrorText.d.ts +1 -1
- package/cjs/error-text/ErrorText.js +1 -1
- package/cjs/field-wrap/FieldWrap.d.ts +1 -1
- package/cjs/field-wrap/FieldWrap.js +2 -2
- package/cjs/field-wrap/index.js +1 -1
- package/cjs/help-icon/HelpIcon.d.ts +1 -1
- package/cjs/help-icon/HelpIcon.js +1 -1
- package/cjs/index.js +19 -19
- package/cjs/label/Label.d.ts +1 -1
- package/cjs/label/Label.js +11 -17
- package/cjs/password-field/PasswordField.d.ts +1 -1
- package/cjs/password-field/PasswordField.js +5 -13
- package/cjs/radio/Radio.d.ts +3 -3
- package/cjs/radio/Radio.js +17 -21
- package/cjs/radio/RadioContext.d.ts +1 -1
- package/cjs/radio/RadioContext.js +2 -1
- package/cjs/radio/RadioGroup.d.ts +1 -1
- package/cjs/radio/RadioGroup.js +1 -1
- package/cjs/radio/index.js +2 -2
- package/cjs/rating/Rating.d.ts +2 -2
- package/cjs/rating/Rating.js +6 -14
- package/cjs/rating/index.js +1 -1
- package/cjs/select-field/AsyncSelectField.d.ts +3 -83
- package/cjs/select-field/AsyncSelectField.js +21 -26
- package/cjs/select-field/CreatableSelectField.d.ts +3 -83
- package/cjs/select-field/CreatableSelectField.js +56 -63
- package/cjs/select-field/NativeSelectField.d.ts +2 -2
- package/cjs/select-field/NativeSelectField.js +19 -22
- package/cjs/select-field/SelectField.d.ts +3 -3
- package/cjs/select-field/SelectField.js +58 -65
- package/cjs/switch/Switch.d.ts +3 -3
- package/cjs/switch/Switch.js +27 -30
- package/cjs/switch/SwitchContext.d.ts +1 -1
- package/cjs/switch/SwitchContext.js +2 -1
- package/cjs/switch/SwitchGroup.d.ts +1 -1
- package/cjs/switch/SwitchGroup.js +1 -1
- package/cjs/switch/index.js +2 -2
- package/cjs/tel-field/TelField.d.ts +2 -2
- package/cjs/tel-field/TelField.js +33 -54
- package/cjs/text-field/TextField.d.ts +2 -2
- package/cjs/text-field/TextField.js +35 -40
- package/cjs/textarea-field/TextareaField.d.ts +2 -2
- package/cjs/textarea-field/TextareaField.js +24 -38
- package/cjs/types/field.d.ts +1 -1
- package/cjs/types/index.js +2 -2
- package/cjs/types/size.d.ts +1 -1
- package/counter/Counter.d.ts +2 -2
- package/counter/Counter.js +7 -7
- package/enhanced/EnhancedField.d.ts +4 -4
- package/enhanced/EnhancedField.js +3 -3
- package/error-text/ErrorText.d.ts +1 -1
- package/field-wrap/FieldWrap.d.ts +1 -1
- package/field-wrap/FieldWrap.js +1 -1
- package/help-icon/HelpIcon.d.ts +1 -1
- package/label/Label.d.ts +1 -1
- package/label/Label.js +3 -3
- package/package.json +7 -7
- package/password-field/PasswordField.d.ts +1 -1
- package/password-field/PasswordField.js +5 -5
- package/radio/Radio.d.ts +3 -3
- package/radio/Radio.js +4 -4
- package/radio/RadioContext.d.ts +1 -1
- package/radio/RadioGroup.d.ts +1 -1
- package/rating/Rating.d.ts +2 -2
- package/rating/Rating.js +8 -8
- package/select-field/AsyncSelectField.d.ts +3 -83
- package/select-field/AsyncSelectField.js +4 -4
- package/select-field/CreatableSelectField.d.ts +3 -83
- package/select-field/CreatableSelectField.js +6 -6
- package/select-field/NativeSelectField.d.ts +2 -2
- package/select-field/NativeSelectField.js +3 -3
- package/select-field/SelectField.d.ts +3 -3
- package/select-field/SelectField.js +6 -6
- package/switch/Switch.d.ts +3 -3
- package/switch/Switch.js +20 -20
- package/switch/SwitchContext.d.ts +1 -1
- package/switch/SwitchGroup.d.ts +1 -1
- package/tel-field/TelField.d.ts +2 -2
- package/tel-field/TelField.js +8 -8
- package/text-field/TextField.d.ts +2 -2
- package/text-field/TextField.js +3 -3
- package/textarea-field/TextareaField.d.ts +2 -2
- package/textarea-field/TextareaField.js +7 -7
- package/types/field.d.ts +1 -1
- package/types/size.d.ts +1 -1
package/counter/Counter.d.ts
CHANGED
package/counter/Counter.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var _excluded = ["defaultValue", "minValue", "maxValue", "disableMin", "disableMax", "disableInput", "className", "increaseAriaLabel", "decreaseAriaLabel", "name", "onChange", "text", "value", "size", "disableToolTips"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _slicedToArray(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
-
function _unsupportedIterableToArray(
|
|
6
|
-
function _arrayLikeToArray(
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
7
7
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
|
-
function _arrayWithHoles(
|
|
9
|
-
function _objectWithoutProperties(
|
|
10
|
-
function _objectWithoutPropertiesLoose(
|
|
8
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
11
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
12
12
|
import React, { useState, forwardRef, useRef, useEffect } from 'react';
|
|
13
13
|
import { IconButton } from '@dfds-ui/react-components';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type ReactInputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
3
|
+
export type EnhancedInputProps<TValue> = Omit<EnhancedFieldProps, 'value'> & {
|
|
4
4
|
value?: TValue;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type EnhancedFieldProps = Omit<ReactInputProps, 'size' | 'css'> & {
|
|
7
7
|
name?: string;
|
|
8
8
|
/**
|
|
9
9
|
* Label to be displayed
|
|
@@ -16,5 +16,5 @@ export declare type EnhancedFieldProps = Omit<ReactInputProps, 'size' | 'css'> &
|
|
|
16
16
|
className?: string;
|
|
17
17
|
onClick?: (e: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
|
|
18
18
|
};
|
|
19
|
-
export declare const EnhancedField: React.ForwardRefExoticComponent<Pick<EnhancedFieldProps, "max" | "required" | "type" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "label" | "slot" | "style" | "title" | "dir" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "icon" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "
|
|
19
|
+
export declare const EnhancedField: React.ForwardRefExoticComponent<Pick<EnhancedFieldProps, "max" | "required" | "type" | "key" | "id" | "height" | "width" | "name" | "min" | "color" | "translate" | "value" | "hidden" | "form" | "label" | "slot" | "style" | "title" | "dir" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "role" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "icon" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "minLength" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "readOnly" | "src" | "step" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLInputElement>>;
|
|
20
20
|
export default EnhancedField;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["onClick", "className", "label", "icon", "disabled", "name"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
6
6
|
import React, { forwardRef } from 'react';
|
|
7
7
|
import { css } from '@emotion/react';
|
package/field-wrap/FieldWrap.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() {
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { FlexBox } from '@dfds-ui/react-components/flexbox';
|
package/help-icon/HelpIcon.d.ts
CHANGED
package/label/Label.d.ts
CHANGED
package/label/Label.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["visualSize", "required", "hideAsterisk", "disabled", "className", "children"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { css } from '@emotion/react';
|
|
7
7
|
import { typography } from '@dfds-ui/typography';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Form components",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.0
|
|
6
|
+
"version": "2.2.0-alpha.4e495871",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"react-select": "^4.0.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dfds-ui/hooks": "2.0
|
|
21
|
-
"@dfds-ui/icons": "2.0
|
|
22
|
-
"@dfds-ui/react-components": "2.0
|
|
23
|
-
"@dfds-ui/theme": "2.0
|
|
24
|
-
"@dfds-ui/typography": "2.0
|
|
20
|
+
"@dfds-ui/hooks": "2.2.0-alpha.4e495871",
|
|
21
|
+
"@dfds-ui/icons": "2.2.0-alpha.4e495871",
|
|
22
|
+
"@dfds-ui/react-components": "2.2.0-alpha.4e495871",
|
|
23
|
+
"@dfds-ui/theme": "2.2.0-alpha.4e495871",
|
|
24
|
+
"@dfds-ui/typography": "2.2.0-alpha.4e495871"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "4e4958718cdb23e314fd502618fa60c2613b0c6b",
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextFieldProps } from '../text-field/TextField';
|
|
3
|
-
export
|
|
3
|
+
export type PasswordFieldProps = Omit<TextFieldProps, 'icon' | 'inputType'>;
|
|
4
4
|
export declare const PasswordField: React.ForwardRefExoticComponent<PasswordFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
function _slicedToArray(
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(
|
|
5
|
-
function _arrayLikeToArray(
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6
6
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
7
|
-
function _arrayWithHoles(
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
8
|
import React, { forwardRef, useState } from 'react';
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
10
|
import { theme } from '@dfds-ui/theme';
|
package/radio/Radio.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
type RadioSize = 'medium' | 'small';
|
|
3
|
+
export type RadioStyleState = 'checked';
|
|
4
|
+
export type RadioProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Field name.
|
|
7
7
|
*/
|
package/radio/Radio.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var _excluded = ["name", "label", "className", "checked", "disabled", "defaultChecked", "value", "onChange", "error", "visualSize", "Icon", "styledAs"];
|
|
2
2
|
var _templateObject;
|
|
3
|
-
function _extends() {
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
6
|
-
function _taggedTemplateLiteral(
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { theme } from '@dfds-ui/theme';
|
|
9
9
|
import { css } from '@emotion/react';
|
package/radio/RadioContext.d.ts
CHANGED
package/radio/RadioGroup.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { BaseFieldProps } from '../types';
|
|
3
3
|
import { RadioProps } from './Radio';
|
|
4
|
-
export
|
|
4
|
+
export type RadioGroupProps = Pick<BaseFieldProps, 'help' | 'label' | 'required' | 'hideAsterisk' | 'disabled' | 'errorMessage'> & Pick<RadioProps, 'visualSize'> & {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
/**
|
|
7
7
|
* Class name to be assigned to the component
|
package/rating/Rating.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FieldWrapProps } from '../field-wrap/FieldWrap';
|
|
3
3
|
import { Size } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type RatingProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Amount of related checkboxes
|
|
7
7
|
*/
|
|
@@ -43,7 +43,7 @@ export declare type RatingProps = {
|
|
|
43
43
|
Icon?: (index: number) => React.ComponentType;
|
|
44
44
|
};
|
|
45
45
|
export declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<HTMLInputElement>>;
|
|
46
|
-
export
|
|
46
|
+
export type RatingFieldProps = RatingProps & Omit<FieldWrapProps, 'size' | 'placeholder' | 'helpPlacement' | 'children'> & {
|
|
47
47
|
size: Exclude<Size, 'large'>;
|
|
48
48
|
};
|
|
49
49
|
/**
|
package/rating/Rating.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
function _toConsumableArray(
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
3
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _iterableToArray(
|
|
5
|
-
function _arrayWithoutHoles(
|
|
6
|
-
function _slicedToArray(
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
7
7
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
8
|
-
function _unsupportedIterableToArray(
|
|
9
|
-
function _arrayLikeToArray(
|
|
8
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
9
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
10
10
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
11
|
-
function _arrayWithHoles(
|
|
11
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
13
13
|
import React, { useMemo, useState } from 'react';
|
|
14
14
|
import { FlexBox } from '@dfds-ui/react-components/flexbox';
|
|
@@ -2,94 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import { GroupBase } from 'react-select';
|
|
3
3
|
import { AsyncProps } from 'react-select/async';
|
|
4
4
|
import { BaseFieldProps } from '../types';
|
|
5
|
-
|
|
6
|
-
export
|
|
5
|
+
type Size = 'small' | 'medium' | 'large';
|
|
6
|
+
export type AsyncSelectFieldProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseFieldProps & AsyncProps<Option, IsMulti, Group> & {
|
|
7
7
|
isClearable?: boolean;
|
|
8
8
|
value?: any;
|
|
9
9
|
visualSize?: Size;
|
|
10
10
|
};
|
|
11
11
|
declare const AsyncSelectFieldInner: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ assistiveText, components, disabled, errorMessage, help, helpPlacement, hideAsterisk, isClearable, label, name, onBlur, onChange, required, visualSize, ...rest }: AsyncSelectFieldProps<Option, IsMulti, Group>, ref: React.ForwardedRef<any>) => JSX.Element;
|
|
12
|
-
export declare const AsyncSelectField: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: BaseFieldProps & Omit<
|
|
13
|
-
'aria-live': string;
|
|
14
|
-
backspaceRemovesValue: boolean;
|
|
15
|
-
blurInputOnSelect: boolean;
|
|
16
|
-
captureMenuScroll: boolean;
|
|
17
|
-
closeMenuOnSelect: boolean;
|
|
18
|
-
closeMenuOnScroll: boolean;
|
|
19
|
-
components: {};
|
|
20
|
-
controlShouldRenderValue: boolean;
|
|
21
|
-
escapeClearsValue: boolean;
|
|
22
|
-
filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
|
|
23
|
-
formatGroupLabel: <Option_1, Group_1 extends GroupBase<Option_1>>(group: Group_1) => string;
|
|
24
|
-
getOptionLabel: <Option_2>(option: Option_2) => string;
|
|
25
|
-
getOptionValue: <Option_3>(option: Option_3) => string;
|
|
26
|
-
isDisabled: boolean;
|
|
27
|
-
isLoading: boolean;
|
|
28
|
-
isMulti: boolean;
|
|
29
|
-
isRtl: boolean;
|
|
30
|
-
isSearchable: boolean;
|
|
31
|
-
isOptionDisabled: <Option_4>(option: Option_4) => boolean;
|
|
32
|
-
loadingMessage: () => string;
|
|
33
|
-
maxMenuHeight: number;
|
|
34
|
-
minMenuHeight: number;
|
|
35
|
-
menuIsOpen: boolean;
|
|
36
|
-
menuPlacement: string;
|
|
37
|
-
menuPosition: string;
|
|
38
|
-
menuShouldBlockScroll: boolean;
|
|
39
|
-
menuShouldScrollIntoView: boolean;
|
|
40
|
-
noOptionsMessage: () => string;
|
|
41
|
-
openMenuOnFocus: boolean;
|
|
42
|
-
openMenuOnClick: boolean;
|
|
43
|
-
options: never[];
|
|
44
|
-
pageSize: number;
|
|
45
|
-
placeholder: string;
|
|
46
|
-
screenReaderStatus: ({ count }: {
|
|
47
|
-
count: number;
|
|
48
|
-
}) => string;
|
|
49
|
-
styles: {};
|
|
50
|
-
tabIndex: number;
|
|
51
|
-
tabSelectsValue: boolean;
|
|
52
|
-
}, never>>, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "id" | "name" | "value" | "form" | "className" | "autoFocus" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "theme" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "tabIndex" | "options" | "placeholder" | "aria-live" | "components" | "isOptionDisabled" | "isRtl" | "styles" | "isDisabled" | "isMulti" | "controlShouldRenderValue" | "menuPlacement" | "menuPosition" | "loadingMessage" | "noOptionsMessage" | "backspaceRemovesValue" | "blurInputOnSelect" | "captureMenuScroll" | "closeMenuOnSelect" | "closeMenuOnScroll" | "escapeClearsValue" | "filterOption" | "formatGroupLabel" | "getOptionLabel" | "getOptionValue" | "isLoading" | "isSearchable" | "minMenuHeight" | "maxMenuHeight" | "menuIsOpen" | "menuShouldBlockScroll" | "menuShouldScrollIntoView" | "openMenuOnFocus" | "openMenuOnClick" | "pageSize" | "screenReaderStatus" | "tabSelectsValue">> & Partial<Pick<{
|
|
53
|
-
'aria-live': string;
|
|
54
|
-
backspaceRemovesValue: boolean;
|
|
55
|
-
blurInputOnSelect: boolean;
|
|
56
|
-
captureMenuScroll: boolean;
|
|
57
|
-
closeMenuOnSelect: boolean;
|
|
58
|
-
closeMenuOnScroll: boolean;
|
|
59
|
-
components: {};
|
|
60
|
-
controlShouldRenderValue: boolean;
|
|
61
|
-
escapeClearsValue: boolean;
|
|
62
|
-
filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
|
|
63
|
-
formatGroupLabel: <Option_1, Group_1 extends GroupBase<Option_1>>(group: Group_1) => string;
|
|
64
|
-
getOptionLabel: <Option_2>(option: Option_2) => string;
|
|
65
|
-
getOptionValue: <Option_3>(option: Option_3) => string;
|
|
66
|
-
isDisabled: boolean;
|
|
67
|
-
isLoading: boolean;
|
|
68
|
-
isMulti: boolean;
|
|
69
|
-
isRtl: boolean;
|
|
70
|
-
isSearchable: boolean;
|
|
71
|
-
isOptionDisabled: <Option_4>(option: Option_4) => boolean;
|
|
72
|
-
loadingMessage: () => string;
|
|
73
|
-
maxMenuHeight: number;
|
|
74
|
-
minMenuHeight: number;
|
|
75
|
-
menuIsOpen: boolean;
|
|
76
|
-
menuPlacement: string;
|
|
77
|
-
menuPosition: string;
|
|
78
|
-
menuShouldBlockScroll: boolean;
|
|
79
|
-
menuShouldScrollIntoView: boolean;
|
|
80
|
-
noOptionsMessage: () => string;
|
|
81
|
-
openMenuOnFocus: boolean;
|
|
82
|
-
openMenuOnClick: boolean;
|
|
83
|
-
options: never[];
|
|
84
|
-
pageSize: number;
|
|
85
|
-
placeholder: string;
|
|
86
|
-
screenReaderStatus: ({ count }: {
|
|
87
|
-
count: number;
|
|
88
|
-
}) => string;
|
|
89
|
-
styles: {};
|
|
90
|
-
tabIndex: number;
|
|
91
|
-
tabSelectsValue: boolean;
|
|
92
|
-
}, never>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & import("react-select/dist/declarations/src/useAsync").AsyncAdditionalProps<Option, Group> & {
|
|
12
|
+
export declare const AsyncSelectField: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: BaseFieldProps & Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<Option, IsMulti, Group>, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<Option, IsMulti, Group>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & import("react-select/dist/declarations/src/useAsync").AsyncAdditionalProps<Option, Group> & {
|
|
93
13
|
isClearable?: boolean | undefined;
|
|
94
14
|
value?: any;
|
|
95
15
|
visualSize?: Size | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
var _excluded = ["assistiveText", "components", "disabled", "errorMessage", "help", "helpPlacement", "hideAsterisk", "isClearable", "label", "name", "onBlur", "onChange", "required", "visualSize"];
|
|
3
3
|
var _templateObject;
|
|
4
|
-
function _extends() {
|
|
5
|
-
function _objectWithoutProperties(
|
|
6
|
-
function _objectWithoutPropertiesLoose(
|
|
7
|
-
function _taggedTemplateLiteral(
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
7
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
8
8
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import AsyncSelect from 'react-select/async';
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { CreatableProps } from 'react-select/creatable';
|
|
3
3
|
import { ActionMeta, createFilter, GroupBase, MultiValue, OptionsOrGroups, SingleValue } from 'react-select';
|
|
4
4
|
import { BaseFieldProps } from '../types';
|
|
5
|
-
|
|
6
|
-
export
|
|
5
|
+
type Size = 'small' | 'medium' | 'large';
|
|
6
|
+
export type CreatableSelectFieldProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseFieldProps & CreatableProps<Option, IsMulti, Group> & {
|
|
7
7
|
assistiveText?: string;
|
|
8
8
|
autoFocus?: boolean;
|
|
9
9
|
className?: string;
|
|
@@ -42,87 +42,7 @@ export declare type CreatableSelectFieldProps<Option, IsMulti extends boolean, G
|
|
|
42
42
|
visualSize?: Size;
|
|
43
43
|
};
|
|
44
44
|
declare const CreatableSelectFieldInner: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ assistiveText, components, defaultValue, disabled, errorMessage, filterConfig, help, helpPlacement, hideAsterisk, isClearable, isMulti, isSearchable, label, name, onBlur, onChange, onSelect, options, placeholder, required, styles, value, visualSize, ...rest }: CreatableSelectFieldProps<Option, IsMulti, Group>, ref: React.ForwardedRef<any>) => JSX.Element;
|
|
45
|
-
export declare const CreatableSelectField: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: BaseFieldProps & Omit<
|
|
46
|
-
'aria-live': string;
|
|
47
|
-
backspaceRemovesValue: boolean;
|
|
48
|
-
blurInputOnSelect: boolean;
|
|
49
|
-
captureMenuScroll: boolean;
|
|
50
|
-
closeMenuOnSelect: boolean;
|
|
51
|
-
closeMenuOnScroll: boolean;
|
|
52
|
-
components: {};
|
|
53
|
-
controlShouldRenderValue: boolean;
|
|
54
|
-
escapeClearsValue: boolean;
|
|
55
|
-
filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
|
|
56
|
-
formatGroupLabel: <Option_1, Group_1 extends GroupBase<Option_1>>(group: Group_1) => string;
|
|
57
|
-
getOptionLabel: <Option_2>(option: Option_2) => string;
|
|
58
|
-
getOptionValue: <Option_3>(option: Option_3) => string;
|
|
59
|
-
isDisabled: boolean;
|
|
60
|
-
isLoading: boolean;
|
|
61
|
-
isMulti: boolean;
|
|
62
|
-
isRtl: boolean;
|
|
63
|
-
isSearchable: boolean;
|
|
64
|
-
isOptionDisabled: <Option_4>(option: Option_4) => boolean;
|
|
65
|
-
loadingMessage: () => string;
|
|
66
|
-
maxMenuHeight: number;
|
|
67
|
-
minMenuHeight: number;
|
|
68
|
-
menuIsOpen: boolean;
|
|
69
|
-
menuPlacement: string;
|
|
70
|
-
menuPosition: string;
|
|
71
|
-
menuShouldBlockScroll: boolean;
|
|
72
|
-
menuShouldScrollIntoView: boolean;
|
|
73
|
-
noOptionsMessage: () => string;
|
|
74
|
-
openMenuOnFocus: boolean;
|
|
75
|
-
openMenuOnClick: boolean;
|
|
76
|
-
options: never[];
|
|
77
|
-
pageSize: number;
|
|
78
|
-
placeholder: string;
|
|
79
|
-
screenReaderStatus: ({ count }: {
|
|
80
|
-
count: number;
|
|
81
|
-
}) => string;
|
|
82
|
-
styles: {};
|
|
83
|
-
tabIndex: number;
|
|
84
|
-
tabSelectsValue: boolean;
|
|
85
|
-
}, never>>, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "id" | "name" | "value" | "form" | "className" | "autoFocus" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "theme" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "tabIndex" | "options" | "placeholder" | "aria-live" | "components" | "isOptionDisabled" | "isRtl" | "styles" | "isDisabled" | "isMulti" | "controlShouldRenderValue" | "menuPlacement" | "menuPosition" | "loadingMessage" | "noOptionsMessage" | "backspaceRemovesValue" | "blurInputOnSelect" | "captureMenuScroll" | "closeMenuOnSelect" | "closeMenuOnScroll" | "escapeClearsValue" | "filterOption" | "formatGroupLabel" | "getOptionLabel" | "getOptionValue" | "isLoading" | "isSearchable" | "minMenuHeight" | "maxMenuHeight" | "menuIsOpen" | "menuShouldBlockScroll" | "menuShouldScrollIntoView" | "openMenuOnFocus" | "openMenuOnClick" | "pageSize" | "screenReaderStatus" | "tabSelectsValue">> & Partial<Pick<{
|
|
86
|
-
'aria-live': string;
|
|
87
|
-
backspaceRemovesValue: boolean;
|
|
88
|
-
blurInputOnSelect: boolean;
|
|
89
|
-
captureMenuScroll: boolean;
|
|
90
|
-
closeMenuOnSelect: boolean;
|
|
91
|
-
closeMenuOnScroll: boolean;
|
|
92
|
-
components: {};
|
|
93
|
-
controlShouldRenderValue: boolean;
|
|
94
|
-
escapeClearsValue: boolean;
|
|
95
|
-
filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
|
|
96
|
-
formatGroupLabel: <Option_1, Group_1 extends GroupBase<Option_1>>(group: Group_1) => string;
|
|
97
|
-
getOptionLabel: <Option_2>(option: Option_2) => string;
|
|
98
|
-
getOptionValue: <Option_3>(option: Option_3) => string;
|
|
99
|
-
isDisabled: boolean;
|
|
100
|
-
isLoading: boolean;
|
|
101
|
-
isMulti: boolean;
|
|
102
|
-
isRtl: boolean;
|
|
103
|
-
isSearchable: boolean;
|
|
104
|
-
isOptionDisabled: <Option_4>(option: Option_4) => boolean;
|
|
105
|
-
loadingMessage: () => string;
|
|
106
|
-
maxMenuHeight: number;
|
|
107
|
-
minMenuHeight: number;
|
|
108
|
-
menuIsOpen: boolean;
|
|
109
|
-
menuPlacement: string;
|
|
110
|
-
menuPosition: string;
|
|
111
|
-
menuShouldBlockScroll: boolean;
|
|
112
|
-
menuShouldScrollIntoView: boolean;
|
|
113
|
-
noOptionsMessage: () => string;
|
|
114
|
-
openMenuOnFocus: boolean;
|
|
115
|
-
openMenuOnClick: boolean;
|
|
116
|
-
options: never[];
|
|
117
|
-
pageSize: number;
|
|
118
|
-
placeholder: string;
|
|
119
|
-
screenReaderStatus: ({ count }: {
|
|
120
|
-
count: number;
|
|
121
|
-
}) => string;
|
|
122
|
-
styles: {};
|
|
123
|
-
tabIndex: number;
|
|
124
|
-
tabSelectsValue: boolean;
|
|
125
|
-
}, never>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<Option, Group> & {
|
|
45
|
+
export declare const CreatableSelectField: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: BaseFieldProps & Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<Option, IsMulti, Group>, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<Option, IsMulti, Group>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<Option, Group> & {
|
|
126
46
|
assistiveText?: string | undefined;
|
|
127
47
|
autoFocus?: boolean | undefined;
|
|
128
48
|
className?: string | undefined;
|