@dfds-ui/react-components 0.9.0-alpha.aca5d1f6 → 0.9.1-alpha.4bdc9dc9
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/accordion/Accordion.js +3 -1
- package/accordion/AccordionContent.js +3 -1
- package/accordion/AccordionSmall.js +3 -1
- package/app-bar/AppBar.js +5 -3
- package/app-bar/AppBarContext.js +1 -1
- package/app-bar/AppBarDrawer.js +2 -1
- package/app-bar/AppBarIconButton.js +2 -1
- package/app-bar/AppBarItem.js +3 -2
- package/assertions/banner/Banner.js +2 -1
- package/assertions/banner/BannerAction.js +3 -1
- package/assertions/toast/Toast.js +2 -1
- package/assertions/toast/Toaster.js +2 -2
- package/badge/Badge.js +3 -1
- package/button/Button.js +2 -1
- package/button/IconButton.js +2 -1
- package/button-stack/ButtonStack.js +3 -1
- package/card/Card.js +3 -2
- package/card/CardActions.js +2 -1
- package/card/CardContent.js +2 -1
- package/card/CardMedia.js +2 -1
- package/card/CardPriceTag.js +2 -1
- package/card/CardTitle.js +2 -1
- package/chip/Chip.js +3 -2
- package/cjs/accordion/Accordion.js +3 -1
- package/cjs/accordion/AccordionContent.js +3 -1
- package/cjs/accordion/AccordionSmall.js +3 -1
- package/cjs/app-bar/AppBar.js +8 -5
- package/cjs/app-bar/AppBarContext.js +3 -3
- package/cjs/app-bar/AppBarDrawer.js +5 -3
- package/cjs/app-bar/AppBarIconButton.js +3 -1
- package/cjs/app-bar/AppBarItem.js +6 -4
- package/cjs/assertions/banner/Banner.js +3 -1
- package/cjs/assertions/banner/BannerAction.js +3 -1
- package/cjs/assertions/banner/BannerActionContext.js +2 -2
- package/cjs/assertions/banner/index.js +2 -2
- package/cjs/assertions/toast/Toast.js +3 -1
- package/cjs/assertions/toast/Toaster.js +4 -4
- package/cjs/assertions/toast/index.js +2 -2
- package/cjs/badge/Badge.js +3 -1
- package/cjs/badge/index.js +2 -2
- package/cjs/button/Button.js +3 -1
- package/cjs/button/IconButton.js +3 -1
- package/cjs/button/LinkButton.js +2 -2
- package/cjs/button/index.js +2 -2
- package/cjs/button-stack/ButtonStack.js +3 -1
- package/cjs/card/Card.js +6 -4
- package/cjs/card/CardActions.js +3 -1
- package/cjs/card/CardContent.js +3 -1
- package/cjs/card/CardMedia.js +3 -1
- package/cjs/card/CardPriceTag.js +3 -1
- package/cjs/card/CardTitle.js +3 -1
- package/cjs/chip/Chip.js +6 -4
- package/cjs/chip/index.js +2 -2
- package/cjs/common/LockBodyScroll.js +3 -1
- package/cjs/common/emotionCloneElement.js +1 -1
- package/cjs/common/use-media.js +1 -1
- package/cjs/counter/Counter.js +3 -3
- package/cjs/counter/PluralCounter.js +6 -4
- package/cjs/data-table/DataTable.js +6 -4
- package/cjs/date-range-picker/DateRangePicker.js +4 -4
- package/cjs/divider/Divider.d.ts +1 -1
- package/cjs/divider/Divider.js +3 -1
- package/cjs/drawer/Drawer.js +3 -1
- package/cjs/dropdown-menu/Dropdown.js +4 -2
- package/cjs/dropdown-menu/DropdownContext.js +2 -2
- package/cjs/dropdown-menu/MenuItem.js +4 -2
- package/cjs/dropdown-menu/index.js +2 -2
- package/cjs/flexbox/FlexBox.js +1 -1
- package/cjs/forms/checkbox/Checkbox.d.ts +1 -1
- package/cjs/forms/checkbox/Checkbox.js +3 -1
- package/cjs/forms/checkbox/ExampleControlComponent.js +4 -2
- package/cjs/forms/email-field/EmailField.d.ts +1 -1
- package/cjs/forms/input/Input.d.ts +1 -1
- package/cjs/forms/input/Input.js +3 -1
- package/cjs/forms/input/InputComposition.js +11 -6
- package/cjs/forms/label/Label.js +3 -1
- package/cjs/forms/number-field/NumberField.d.ts +1 -1
- package/cjs/forms/password-field/PasswordField.d.ts +1 -1
- package/cjs/forms/password-field/PasswordField.js +3 -3
- package/cjs/forms/radio/Radio.d.ts +1 -1
- package/cjs/forms/radio/Radio.js +3 -1
- package/cjs/forms/reactselect/ReactSelect.js +10 -6
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +5 -2
- package/cjs/forms/select/Select.d.ts +1 -1
- package/cjs/forms/select/Select.js +3 -1
- package/cjs/forms/select-field/SelectField.d.ts +1 -1
- package/cjs/forms/select-field/SelectField.js +3 -1
- package/cjs/forms/switch/Switch.js +3 -1
- package/cjs/forms/tel-field/TelField.d.ts +1 -1
- package/cjs/forms/text-field/TextField.d.ts +1 -1
- package/cjs/forms/text-field/TextField.js +3 -1
- package/cjs/grid/Column.js +3 -1
- package/cjs/grid/Container.js +3 -1
- package/cjs/ie-banner/IEBanner.js +3 -3
- package/cjs/lists/FeatureList.js +3 -1
- package/cjs/lists/ListAddon.js +3 -1
- package/cjs/lists/ListDivider.js +3 -1
- package/cjs/lists/ListIcon.js +3 -1
- package/cjs/lists/ListItem.js +3 -1
- package/cjs/lists/ListText.js +3 -1
- package/cjs/lists/ListTextGroup.js +3 -1
- package/cjs/lists/ListTitle.js +3 -1
- package/cjs/logo/Logo.js +5 -3
- package/cjs/menu/Menu.js +9 -4
- package/cjs/menu/index.js +2 -2
- package/cjs/nav-bar/NavBar.js +10 -6
- package/cjs/nav-bar/index.js +2 -2
- package/cjs/popper/Popper.js +5 -2
- package/cjs/progress-bar/index.js +2 -2
- package/cjs/schedule/ScheduleList.js +3 -1
- package/cjs/side-sheet/SideSheet.js +8 -5
- package/cjs/side-sheet/SideSheetCloseButton.js +3 -1
- package/cjs/side-sheet/SideSheetContent.js +5 -3
- package/cjs/side-sheet/SideSheetFooter.js +5 -3
- package/cjs/side-sheet/SideSheetHeader.js +5 -3
- package/cjs/side-sheet/index.js +2 -2
- package/cjs/site-layout/SiteLayout.js +9 -4
- package/cjs/site-layout/index.js +2 -2
- package/cjs/skeleton/Skeleton.js +3 -1
- package/cjs/social-media-link-list/SocialMediaLinkList.js +3 -1
- package/cjs/spinner/Spinner.js +3 -1
- package/cjs/spinner/index.js +2 -2
- package/cjs/stepper/Step.js +6 -4
- package/cjs/stepper/Stepper.js +6 -4
- package/cjs/stepper/index.js +2 -2
- package/cjs/styles/index.js +2 -2
- package/cjs/surface/Surface.js +8 -5
- package/cjs/tab/Tab.js +3 -1
- package/cjs/tab/Tabs.js +6 -4
- package/cjs/tab/TabsContext.js +2 -2
- package/cjs/table/Table.js +5 -3
- package/cjs/table/TableBody.js +5 -3
- package/cjs/table/TableDataCell.js +5 -3
- package/cjs/table/TableHead.js +5 -3
- package/cjs/table/TableHeaderCell.js +5 -3
- package/cjs/table/TableRow.js +5 -3
- package/cjs/tooltip/Tooltip.js +3 -1
- package/cjs/typography/Headlines.js +3 -1
- package/common/LockBodyScroll.js +3 -1
- package/common/emotionCloneElement.js +1 -1
- package/common/use-media.js +1 -1
- package/counter/Counter.js +1 -1
- package/counter/PluralCounter.js +3 -2
- package/data-table/DataTable.js +5 -3
- package/date-range-picker/DateRangePicker.js +2 -2
- package/divider/Divider.d.ts +1 -1
- package/divider/Divider.js +2 -1
- package/drawer/Drawer.js +3 -1
- package/dropdown-menu/Dropdown.js +4 -2
- package/dropdown-menu/MenuItem.js +4 -2
- package/flexbox/FlexBox.js +1 -1
- package/forms/checkbox/Checkbox.d.ts +1 -1
- package/forms/checkbox/Checkbox.js +2 -1
- package/forms/checkbox/ExampleControlComponent.js +4 -2
- package/forms/email-field/EmailField.d.ts +1 -1
- package/forms/input/Input.d.ts +1 -1
- package/forms/input/Input.js +2 -1
- package/forms/input/InputComposition.js +8 -4
- package/forms/label/Label.js +2 -1
- package/forms/number-field/NumberField.d.ts +1 -1
- package/forms/password-field/PasswordField.d.ts +1 -1
- package/forms/password-field/PasswordField.js +1 -1
- package/forms/radio/Radio.d.ts +1 -1
- package/forms/radio/Radio.js +2 -1
- package/forms/reactselect/ReactSelect.js +7 -4
- package/forms/searchable-select/AsyncSearchableSelect.js +5 -2
- package/forms/select/Select.d.ts +1 -1
- package/forms/select/Select.js +2 -1
- package/forms/select-field/SelectField.d.ts +1 -1
- package/forms/select-field/SelectField.js +2 -1
- package/forms/switch/Switch.js +2 -1
- package/forms/tel-field/TelField.d.ts +1 -1
- package/forms/text-field/TextField.d.ts +1 -1
- package/forms/text-field/TextField.js +2 -1
- package/grid/Column.js +3 -1
- package/grid/Container.js +2 -1
- package/ie-banner/IEBanner.js +1 -1
- package/lists/FeatureList.js +2 -1
- package/lists/ListAddon.js +3 -1
- package/lists/ListDivider.js +3 -1
- package/lists/ListIcon.js +3 -1
- package/lists/ListItem.js +3 -1
- package/lists/ListText.js +3 -1
- package/lists/ListTextGroup.js +3 -1
- package/lists/ListTitle.js +3 -1
- package/logo/Logo.js +2 -1
- package/menu/Menu.js +8 -4
- package/nav-bar/NavBar.js +7 -4
- package/package.json +9 -9
- package/popper/Popper.js +5 -2
- package/schedule/ScheduleList.js +3 -1
- package/side-sheet/SideSheet.js +6 -3
- package/side-sheet/SideSheetCloseButton.js +3 -1
- package/side-sheet/SideSheetContent.js +3 -1
- package/side-sheet/SideSheetFooter.js +3 -1
- package/side-sheet/SideSheetHeader.js +3 -1
- package/site-layout/SiteLayout.js +8 -4
- package/skeleton/Skeleton.js +3 -1
- package/social-media-link-list/SocialMediaLinkList.js +2 -1
- package/spinner/Spinner.js +2 -1
- package/stepper/Step.js +4 -2
- package/stepper/Stepper.js +5 -3
- package/surface/Surface.js +6 -3
- package/tab/Tab.js +2 -1
- package/tab/Tabs.js +3 -2
- package/table/Table.js +3 -1
- package/table/TableBody.js +3 -1
- package/table/TableDataCell.js +3 -1
- package/table/TableHead.js +3 -1
- package/table/TableHeaderCell.js +3 -1
- package/table/TableRow.js +3 -1
- package/tooltip/Tooltip.js +2 -1
- package/typography/Headlines.js +2 -1
|
@@ -15,9 +15,9 @@ var _TextField = _interopRequireDefault(require("../text-field/TextField"));
|
|
|
15
15
|
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
17
|
|
|
18
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
19
|
|
|
20
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
@@ -31,7 +31,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
31
31
|
|
|
32
32
|
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; }
|
|
33
33
|
|
|
34
|
-
function _iterableToArrayLimit(arr, i) {
|
|
34
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
35
35
|
|
|
36
36
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
37
|
|
|
@@ -31,5 +31,5 @@ export declare type RadioProps = BaseProps & {
|
|
|
31
31
|
checked?: boolean;
|
|
32
32
|
size?: Size;
|
|
33
33
|
};
|
|
34
|
-
declare const Radio: React.ForwardRefExoticComponent<Pick<RadioProps, "max" | "required" | "error" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "pattern" | "disabled" | "
|
|
34
|
+
declare const Radio: React.ForwardRefExoticComponent<Pick<RadioProps, "max" | "required" | "type" | "error" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "src" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "min" | "minLength" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "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" | "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" | "htmlSize"> & React.RefAttributes<HTMLInputElement>>;
|
|
35
35
|
export default Radio;
|
package/cjs/forms/radio/Radio.js
CHANGED
|
@@ -15,6 +15,8 @@ var _react2 = require("@emotion/react");
|
|
|
15
15
|
|
|
16
16
|
var _styles = require("../../styles");
|
|
17
17
|
|
|
18
|
+
const _excluded = ["children", "disabled", "checked", "className", "error", "onChange", "htmlSize", "size"];
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
21
|
|
|
20
22
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -78,7 +80,7 @@ const Radio = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
78
80
|
htmlSize = _ref2.htmlSize,
|
|
79
81
|
_ref2$size = _ref2.size,
|
|
80
82
|
size = _ref2$size === void 0 ? 'medium' : _ref2$size,
|
|
81
|
-
rest = _objectWithoutProperties(_ref2,
|
|
83
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
82
84
|
|
|
83
85
|
return (0, _react2.jsx)(Label, {
|
|
84
86
|
hasError: error,
|
|
@@ -19,13 +19,17 @@ var _drawer = require("../../drawer");
|
|
|
19
19
|
|
|
20
20
|
var _reactSelect = _interopRequireWildcard(require("react-select"));
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
const _excluded = ["ref"],
|
|
23
|
+
_excluded2 = ["name", "error", "selectClassName", "className", "icon", "disabled", "size", "arrow", "htmlSize", "isClearable", "components", "menuPlacement"],
|
|
24
|
+
_excluded3 = ["ref"];
|
|
23
25
|
|
|
24
|
-
function
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
29
|
|
|
26
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
31
|
|
|
28
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
32
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
29
33
|
|
|
30
34
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
31
35
|
|
|
@@ -79,7 +83,7 @@ const ClearIndicator = props => {
|
|
|
79
83
|
getStyles = props.getStyles,
|
|
80
84
|
_props$innerProps = props.innerProps,
|
|
81
85
|
ref = _props$innerProps.ref,
|
|
82
|
-
restInnerProps = _objectWithoutProperties(_props$innerProps,
|
|
86
|
+
restInnerProps = _objectWithoutProperties(_props$innerProps, _excluded);
|
|
83
87
|
|
|
84
88
|
return (0, _react2.jsx)("div", _extends({}, restInnerProps, {
|
|
85
89
|
ref: ref,
|
|
@@ -111,7 +115,7 @@ const ReactSelect = (_ref2, ref) => {
|
|
|
111
115
|
components = _ref2.components,
|
|
112
116
|
_ref2$menuPlacement = _ref2.menuPlacement,
|
|
113
117
|
menuPlacement = _ref2$menuPlacement === void 0 ? 'auto' : _ref2$menuPlacement,
|
|
114
|
-
rest = _objectWithoutProperties(_ref2,
|
|
118
|
+
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
115
119
|
|
|
116
120
|
const DropdownIndicator = props => {
|
|
117
121
|
const _props$children2 = props.children,
|
|
@@ -122,7 +126,7 @@ const ReactSelect = (_ref2, ref) => {
|
|
|
122
126
|
getStyles = props.getStyles,
|
|
123
127
|
_props$innerProps2 = props.innerProps,
|
|
124
128
|
ref = _props$innerProps2.ref,
|
|
125
|
-
restInnerProps = _objectWithoutProperties(_props$innerProps2,
|
|
129
|
+
restInnerProps = _objectWithoutProperties(_props$innerProps2, _excluded3);
|
|
126
130
|
|
|
127
131
|
return (0, _react2.jsx)("div", _extends({}, restInnerProps, {
|
|
128
132
|
ref: ref,
|
|
@@ -21,6 +21,9 @@ var _theme = require("@dfds-ui/theme");
|
|
|
21
21
|
|
|
22
22
|
var _react2 = require("@emotion/react");
|
|
23
23
|
|
|
24
|
+
const _excluded = ["name", "error", "selectClassName", "className", "icon", "disabled", "size", "arrow", "htmlSize", "handleInputChange", "loadOptions", "onBlur", "onFocus", "onChange", "assistiveText", "autoFocus"],
|
|
25
|
+
_excluded2 = ["ref"];
|
|
26
|
+
|
|
24
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
28
|
|
|
26
29
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -48,7 +51,7 @@ const AsyncSearchableSelect = _ref => {
|
|
|
48
51
|
onChange = _ref.onChange,
|
|
49
52
|
assistiveText = _ref.assistiveText,
|
|
50
53
|
autoFocus = _ref.autoFocus,
|
|
51
|
-
rest = _objectWithoutProperties(_ref,
|
|
54
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
52
55
|
|
|
53
56
|
const DropdownIndicator = props => {
|
|
54
57
|
const _props$children = props.children,
|
|
@@ -59,7 +62,7 @@ const AsyncSearchableSelect = _ref => {
|
|
|
59
62
|
getStyles = props.getStyles,
|
|
60
63
|
_props$innerProps = props.innerProps,
|
|
61
64
|
ref = _props$innerProps.ref,
|
|
62
|
-
restInnerProps = _objectWithoutProperties(_props$innerProps,
|
|
65
|
+
restInnerProps = _objectWithoutProperties(_props$innerProps, _excluded2);
|
|
63
66
|
|
|
64
67
|
return (0, _react2.jsx)("div", _extends({}, restInnerProps, {
|
|
65
68
|
ref: ref,
|
|
@@ -12,5 +12,5 @@ export declare type SelectProps = BaseSelectProps & {
|
|
|
12
12
|
size?: Size;
|
|
13
13
|
htmlSize?: number;
|
|
14
14
|
};
|
|
15
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<SelectProps, "required" | "error" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "disabled" | "
|
|
15
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<SelectProps, "required" | "error" | "key" | "id" | "name" | "color" | "translate" | "value" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "icon" | "autoComplete" | "autoFocus" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "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" | "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" | "htmlSize" | "wrapperClassName"> & React.RefAttributes<HTMLSelectElement>>;
|
|
16
16
|
export default _default;
|
|
@@ -15,6 +15,8 @@ var _theme = require("@dfds-ui/theme");
|
|
|
15
15
|
|
|
16
16
|
var _icons = require("@dfds-ui/icons");
|
|
17
17
|
|
|
18
|
+
const _excluded = ["name", "error", "wrapperClassName", "icon", "size", "htmlSize", "disabled"];
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
21
|
|
|
20
22
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -103,7 +105,7 @@ const Select = (props, ref) => {
|
|
|
103
105
|
size = _props$size === void 0 ? 'medium' : _props$size,
|
|
104
106
|
htmlSize = props.htmlSize,
|
|
105
107
|
disabled = props.disabled,
|
|
106
|
-
rest = _objectWithoutProperties(props,
|
|
108
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
107
109
|
|
|
108
110
|
return (0, _react2.jsx)(Wrapper, {
|
|
109
111
|
className: wrapperClassName
|
|
@@ -11,7 +11,7 @@ declare type SelectFieldProps = SelectProps & {
|
|
|
11
11
|
inverted?: boolean;
|
|
12
12
|
as?: React.ElementType;
|
|
13
13
|
};
|
|
14
|
-
declare const _default: import("@emotion/styled").StyledComponent<Pick<SelectFieldProps, "required" | "error" | "hidden" | "dir" | "form" | "label" | "slot" | "style" | "title" | "disabled" | "
|
|
14
|
+
declare const _default: import("@emotion/styled").StyledComponent<Pick<SelectFieldProps, "required" | "error" | "key" | "id" | "name" | "color" | "translate" | "value" | "hidden" | "dir" | "form" | "label" | "slot" | "style" | "title" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "icon" | "as" | "autoComplete" | "autoFocus" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "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" | "selected" | "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" | "inverted" | "htmlSize" | "assistiveText" | "wrapperClassName" | "errorMessage"> & React.RefAttributes<HTMLInputElement> & {
|
|
15
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
16
|
}, {}, {}>;
|
|
17
17
|
export default _default;
|
|
@@ -21,6 +21,8 @@ var _ErrorText = _interopRequireDefault(require("../error-text/ErrorText"));
|
|
|
21
21
|
|
|
22
22
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
23
23
|
|
|
24
|
+
const _excluded = ["label", "assistiveText", "selected", "required", "errorMessage", "className", "inverted", "size", "name", "value"];
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
27
|
|
|
26
28
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -82,7 +84,7 @@ const SelectField = (props, ref) => {
|
|
|
82
84
|
size = props.size,
|
|
83
85
|
name = props.name,
|
|
84
86
|
value = props.value,
|
|
85
|
-
rest = _objectWithoutProperties(props,
|
|
87
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
86
88
|
|
|
87
89
|
const fieldName = name || (0, _v.default)();
|
|
88
90
|
return (0, _react2.jsx)("div", {
|
|
@@ -21,6 +21,8 @@ var _theme = require("@dfds-ui/theme");
|
|
|
21
21
|
|
|
22
22
|
var _typography = require("@dfds-ui/typography");
|
|
23
23
|
|
|
24
|
+
const _excluded = ["name", "checked", "onChange", "disabled", "children", "right", "error", "size"];
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
27
|
|
|
26
28
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -127,7 +129,7 @@ const Switch = _ref2 => {
|
|
|
127
129
|
error = _ref2$error === void 0 ? false : _ref2$error,
|
|
128
130
|
_ref2$size = _ref2.size,
|
|
129
131
|
size = _ref2$size === void 0 ? 'medium' : _ref2$size,
|
|
130
|
-
rest = _objectWithoutProperties(_ref2,
|
|
132
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
131
133
|
|
|
132
134
|
return (0, _react2.jsx)(Label, _extends({
|
|
133
135
|
right: right
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextFieldProps } from '../text-field/TextField';
|
|
3
|
-
declare const _default: import("@emotion/styled").StyledComponent<Pick<TextFieldProps, "max" | "required" | "hidden" | "dir" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "disabled" | "
|
|
3
|
+
declare const _default: import("@emotion/styled").StyledComponent<Pick<TextFieldProps, "max" | "required" | "type" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "dir" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "icon" | "src" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "min" | "minLength" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "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" | "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" | "inverted" | "hideAsterisk" | "assistiveText" | "hintText" | "errorMessage"> & React.RefAttributes<HTMLInputElement> & {
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
}, {}, {}>;
|
|
6
6
|
export default _default;
|
|
@@ -20,7 +20,7 @@ export declare type TextFieldProps = BaseInputProps & {
|
|
|
20
20
|
hideAsterisk?: boolean;
|
|
21
21
|
};
|
|
22
22
|
export declare const TextField: React.ForwardRefRenderFunction<HTMLInputElement, TextFieldProps>;
|
|
23
|
-
declare const _default: import("@emotion/styled").StyledComponent<Pick<TextFieldProps, "max" | "required" | "hidden" | "dir" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "disabled" | "
|
|
23
|
+
declare const _default: import("@emotion/styled").StyledComponent<Pick<TextFieldProps, "max" | "required" | "type" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "dir" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "icon" | "src" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "min" | "minLength" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "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" | "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" | "inverted" | "hideAsterisk" | "assistiveText" | "hintText" | "errorMessage"> & React.RefAttributes<HTMLInputElement> & {
|
|
24
24
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
25
|
}, {}, {}>;
|
|
26
26
|
export default _default;
|
|
@@ -21,6 +21,8 @@ var _ErrorText = _interopRequireDefault(require("../error-text/ErrorText"));
|
|
|
21
21
|
|
|
22
22
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
23
23
|
|
|
24
|
+
const _excluded = ["label", "name", "hintText", "disabled", "defaultValue", "assistiveText", "required", "errorMessage", "className", "inverted", "size", "type", "hideAsterisk"];
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
27
|
|
|
26
28
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -85,7 +87,7 @@ const TextField = (props, ref) => {
|
|
|
85
87
|
size = props.size,
|
|
86
88
|
type = props.type,
|
|
87
89
|
hideAsterisk = props.hideAsterisk,
|
|
88
|
-
rest = _objectWithoutProperties(props,
|
|
90
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
89
91
|
|
|
90
92
|
const fieldName = name || (0, _v.default)();
|
|
91
93
|
return (0, _react2.jsx)("div", {
|
package/cjs/grid/Column.js
CHANGED
|
@@ -11,6 +11,8 @@ var _core = require("@material-ui/core");
|
|
|
11
11
|
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
|
|
14
|
+
const _excluded = ["children", "m", "l", "xl", "xxl"];
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
|
|
16
18
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -25,7 +27,7 @@ const Column = _ref => {
|
|
|
25
27
|
l = _ref.l,
|
|
26
28
|
xl = _ref.xl,
|
|
27
29
|
xxl = _ref.xxl,
|
|
28
|
-
rest = _objectWithoutProperties(_ref,
|
|
30
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
31
|
|
|
30
32
|
return (0, _react2.jsx)(_core.Grid, _extends({
|
|
31
33
|
item: true,
|
package/cjs/grid/Container.js
CHANGED
|
@@ -23,6 +23,8 @@ var _spacing2 = require("@dfds-ui/spacing");
|
|
|
23
23
|
|
|
24
24
|
var _surface = require("../surface");
|
|
25
25
|
|
|
26
|
+
const _excluded = ["children", "fluid", "surface"];
|
|
27
|
+
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
29
|
|
|
28
30
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -78,7 +80,7 @@ const Container = _ref => {
|
|
|
78
80
|
let children = _ref.children,
|
|
79
81
|
fluid = _ref.fluid,
|
|
80
82
|
surface = _ref.surface,
|
|
81
|
-
rest = _objectWithoutProperties(_ref,
|
|
83
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
82
84
|
|
|
83
85
|
return (0, _react.jsx)(_styles.MuiThemeProvider, {
|
|
84
86
|
theme: theme
|
|
@@ -11,9 +11,9 @@ var _banner = require("./../assertions/banner");
|
|
|
11
11
|
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
|
|
14
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
|
|
16
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
|
|
18
18
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
23
23
|
|
|
24
24
|
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; }
|
|
25
25
|
|
|
26
|
-
function _iterableToArrayLimit(arr, i) {
|
|
26
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
27
27
|
|
|
28
28
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
29
|
|
package/cjs/lists/FeatureList.js
CHANGED
|
@@ -13,6 +13,8 @@ var _FlexBox = _interopRequireDefault(require("./../flexbox/FlexBox"));
|
|
|
13
13
|
|
|
14
14
|
var _react2 = require("@emotion/react");
|
|
15
15
|
|
|
16
|
+
const _excluded = ["icon", "items", "iconColor", "textTag"];
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
18
20
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -37,7 +39,7 @@ const FeatureList = _ref => {
|
|
|
37
39
|
iconColor = _ref.iconColor,
|
|
38
40
|
_ref$textTag = _ref.textTag,
|
|
39
41
|
textTag = _ref$textTag === void 0 ? 'p' : _ref$textTag,
|
|
40
|
-
rest = _objectWithoutProperties(_ref,
|
|
42
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
41
43
|
|
|
42
44
|
const list = items.map((item, i) => {
|
|
43
45
|
const TextTag = textTag;
|
package/cjs/lists/ListAddon.js
CHANGED
|
@@ -13,6 +13,8 @@ var _theme = require("@dfds-ui/theme");
|
|
|
13
13
|
|
|
14
14
|
var _ListIcon = _interopRequireDefault(require("./ListIcon"));
|
|
15
15
|
|
|
16
|
+
const _excluded = ["className", "as", "children"];
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
18
20
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -26,7 +28,7 @@ const ListAddon = _ref => {
|
|
|
26
28
|
_ref$as = _ref.as,
|
|
27
29
|
as = _ref$as === void 0 ? 'span' : _ref$as,
|
|
28
30
|
children = _ref.children,
|
|
29
|
-
rest = _objectWithoutProperties(_ref,
|
|
31
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
30
32
|
|
|
31
33
|
const Component = as;
|
|
32
34
|
return (0, _react2.jsx)(_ListIcon.default, _extends({
|
package/cjs/lists/ListDivider.js
CHANGED
|
@@ -13,6 +13,8 @@ var _react2 = require("@emotion/react");
|
|
|
13
13
|
|
|
14
14
|
var _theme = require("@dfds-ui/theme");
|
|
15
15
|
|
|
16
|
+
const _excluded = ["indent", "margins", "as"];
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
18
20
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -26,7 +28,7 @@ const ListDivider = _ref => {
|
|
|
26
28
|
margins = _ref.margins,
|
|
27
29
|
_ref$as = _ref.as,
|
|
28
30
|
as = _ref$as === void 0 ? 'hr' : _ref$as,
|
|
29
|
-
rest = _objectWithoutProperties(_ref,
|
|
31
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
30
32
|
|
|
31
33
|
return (0, _react2.jsx)(_divider.Divider, _extends({
|
|
32
34
|
indent: indent,
|
package/cjs/lists/ListIcon.js
CHANGED
|
@@ -11,6 +11,8 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
|
|
12
12
|
var _theme = require("@dfds-ui/theme");
|
|
13
13
|
|
|
14
|
+
const _excluded = ["icon", "size", "color"];
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
|
|
16
18
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -46,7 +48,7 @@ const ListIcon = _ref => {
|
|
|
46
48
|
size = _ref$size === void 0 ? 'large' : _ref$size,
|
|
47
49
|
_ref$color = _ref.color,
|
|
48
50
|
color = _ref$color === void 0 ? _theme.theme.colors.text.dark.primary : _ref$color,
|
|
49
|
-
rest = _objectWithoutProperties(_ref,
|
|
51
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
50
52
|
|
|
51
53
|
return (0, _react2.jsx)(Icon, _extends({
|
|
52
54
|
css: listIconStyles({
|
package/cjs/lists/ListItem.js
CHANGED
|
@@ -17,6 +17,8 @@ var _FlexBox = require("../flexbox/FlexBox");
|
|
|
17
17
|
|
|
18
18
|
var _divider = require("../divider");
|
|
19
19
|
|
|
20
|
+
const _excluded = ["children", "multiline", "condensed", "selected", "tabIndex", "clickable", "divider", "onClick", "as", "flexBoxProps"];
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
23
|
|
|
22
24
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -61,7 +63,7 @@ const ListItem = _ref => {
|
|
|
61
63
|
flexBoxProps = _ref$flexBoxProps === void 0 ? {
|
|
62
64
|
itemsCenter: true
|
|
63
65
|
} : _ref$flexBoxProps,
|
|
64
|
-
rest = _objectWithoutProperties(_ref,
|
|
66
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
65
67
|
|
|
66
68
|
const Component = as;
|
|
67
69
|
return (0, _react2.jsx)(Component, _extends({
|