@dfds-ui/react-components 0.9.1 → 0.9.2-alpha.818bb7a0
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.d.ts +1 -1
- package/app-bar/AppBarItem.js +36 -38
- 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.d.ts +1 -1
- package/cjs/app-bar/AppBarItem.js +31 -24
- 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
package/cjs/drawer/Drawer.js
CHANGED
|
@@ -13,6 +13,8 @@ var _theme = require("@dfds-ui/theme");
|
|
|
13
13
|
|
|
14
14
|
var _arrow = _interopRequireDefault(require("../common/arrow"));
|
|
15
15
|
|
|
16
|
+
const _excluded = ["className", "children", "position", "verticalPosition", "showArrow", "elevation"];
|
|
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); }
|
|
@@ -43,7 +45,7 @@ const Drawer = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
43
45
|
showArrow = _ref$showArrow === void 0 ? true : _ref$showArrow,
|
|
44
46
|
_ref$elevation = _ref.elevation,
|
|
45
47
|
elevation = _ref$elevation === void 0 ? '4' : _ref$elevation,
|
|
46
|
-
rest = _objectWithoutProperties(_ref,
|
|
48
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
47
49
|
|
|
48
50
|
return (0, _react2.jsx)("div", _extends({
|
|
49
51
|
className: className,
|
|
@@ -19,6 +19,8 @@ var _Popper = _interopRequireDefault(require("@material-ui/core/Popper"));
|
|
|
19
19
|
|
|
20
20
|
var _ClickAwayListener = _interopRequireDefault(require("@material-ui/core/ClickAwayListener"));
|
|
21
21
|
|
|
22
|
+
const _excluded = ["isOpen", "multiselect", "children", "anchorEl", "onClickAway", "size", "id", "className", "placement", "setIsOpen", "shouldCloseOnEsc", "filter"];
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
25
|
|
|
24
26
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -29,7 +31,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
29
31
|
|
|
30
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; }
|
|
31
33
|
|
|
32
|
-
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; }
|
|
33
35
|
|
|
34
36
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
37
|
|
|
@@ -77,7 +79,7 @@ const DropdownMenu = _ref2 => {
|
|
|
77
79
|
setIsOpen = _ref2.setIsOpen,
|
|
78
80
|
shouldCloseOnEsc = _ref2.shouldCloseOnEsc,
|
|
79
81
|
filter = _ref2.filter,
|
|
80
|
-
rest = _objectWithoutProperties(_ref2,
|
|
82
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
81
83
|
|
|
82
84
|
const _React$useState = _react.default.useState(''),
|
|
83
85
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -9,9 +9,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
|
|
12
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
12
|
+
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); }
|
|
13
13
|
|
|
14
|
-
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; }
|
|
14
|
+
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; }
|
|
15
15
|
|
|
16
16
|
const DropdownContext = /*#__PURE__*/(0, _react.createContext)({
|
|
17
17
|
size: 'small',
|
|
@@ -15,6 +15,8 @@ var _lists = require("../lists");
|
|
|
15
15
|
|
|
16
16
|
var _DropdownContext = _interopRequireDefault(require("./DropdownContext"));
|
|
17
17
|
|
|
18
|
+
const _excluded = ["as", "clickable", "className", "onClick", "selected", "disabled", "children", "color", "iconLeft", "iconRight"];
|
|
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); }
|
|
@@ -27,7 +29,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
27
29
|
|
|
28
30
|
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; }
|
|
29
31
|
|
|
30
|
-
function _iterableToArrayLimit(arr, i) {
|
|
32
|
+
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; }
|
|
31
33
|
|
|
32
34
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33
35
|
|
|
@@ -136,7 +138,7 @@ const MenuItem = _ref5 => {
|
|
|
136
138
|
color = _ref5$color === void 0 ? _theme.theme.colors.text.dark.primary : _ref5$color,
|
|
137
139
|
iconLeft = _ref5.iconLeft,
|
|
138
140
|
iconRight = _ref5.iconRight,
|
|
139
|
-
rest = _objectWithoutProperties(_ref5,
|
|
141
|
+
rest = _objectWithoutProperties(_ref5, _excluded);
|
|
140
142
|
|
|
141
143
|
const _useDropdownContext = (0, _DropdownContext.default)(),
|
|
142
144
|
size = _useDropdownContext.size,
|
|
@@ -56,6 +56,6 @@ var _MenuCheckbox = _interopRequireDefault(require("./MenuCheckbox"));
|
|
|
56
56
|
|
|
57
57
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
58
58
|
|
|
59
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
59
|
+
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); }
|
|
60
60
|
|
|
61
|
-
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; }
|
|
61
|
+
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; }
|
package/cjs/flexbox/FlexBox.js
CHANGED
|
@@ -22,7 +22,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
22
22
|
|
|
23
23
|
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; }
|
|
24
24
|
|
|
25
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
25
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
26
26
|
|
|
27
27
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
28
|
|
|
@@ -35,5 +35,5 @@ export declare type CheckboxProps = BaseProps & {
|
|
|
35
35
|
indeterminate?: boolean;
|
|
36
36
|
leadingLabel?: boolean;
|
|
37
37
|
};
|
|
38
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<CheckboxProps, "max" | "required" | "error" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "pattern" | "disabled" | "
|
|
38
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<CheckboxProps, "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" | "indeterminate" | "leadingLabel" | "onLabelClick" | "htmlSize"> & React.RefAttributes<HTMLInputElement>>;
|
|
39
39
|
export default _default;
|
|
@@ -19,6 +19,8 @@ var _typography = require("@dfds-ui/typography");
|
|
|
19
19
|
|
|
20
20
|
var _styles = require("../../styles");
|
|
21
21
|
|
|
22
|
+
const _excluded = ["children", "className", "error", "checked", "disabled", "indeterminate", "onChange", "onLabelClick", "size", "htmlSize", "leadingLabel"];
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
25
|
|
|
24
26
|
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); }
|
|
@@ -100,7 +102,7 @@ const Checkbox = (_ref2, ref) => {
|
|
|
100
102
|
size = _ref2$size === void 0 ? 'medium' : _ref2$size,
|
|
101
103
|
htmlSize = _ref2.htmlSize,
|
|
102
104
|
leadingLabel = _ref2.leadingLabel,
|
|
103
|
-
rest = _objectWithoutProperties(_ref2,
|
|
105
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
104
106
|
|
|
105
107
|
return (0, _react2.jsx)(Label, {
|
|
106
108
|
hasError: error,
|
|
@@ -11,6 +11,8 @@ var _Checkbox = _interopRequireDefault(require("./Checkbox"));
|
|
|
11
11
|
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
|
|
14
|
+
const _excluded = ["checked", "children"];
|
|
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); }
|
|
@@ -23,7 +25,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
23
25
|
|
|
24
26
|
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
27
|
|
|
26
|
-
function _iterableToArrayLimit(arr, i) {
|
|
28
|
+
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
29
|
|
|
28
30
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
31
|
|
|
@@ -34,7 +36,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
34
36
|
const ExampleControlComponent = _ref => {
|
|
35
37
|
let defaultChecked = _ref.checked,
|
|
36
38
|
children = _ref.children,
|
|
37
|
-
rest = _objectWithoutProperties(_ref,
|
|
39
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
38
40
|
|
|
39
41
|
const _React$useState = _react.default.useState(defaultChecked),
|
|
40
42
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -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;
|
|
@@ -15,5 +15,5 @@ interface InputProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttribu
|
|
|
15
15
|
size?: Size;
|
|
16
16
|
htmlSize?: number;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<InputProps, "max" | "required" | "error" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "pattern" | "disabled" | "
|
|
18
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<InputProps, "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" | "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" | "multiline" | "htmlSize" | "placeholderAlignment" | "wrapperClassName" | "iconAlignment"> & React.RefAttributes<HTMLInputElement>>;
|
|
19
19
|
export default _default;
|
package/cjs/forms/input/Input.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 = ["name", "multiline", "error", "icon", "placeholder", "placeholderAlignment", "wrapperClassName", "size", "htmlSize", "disabled"];
|
|
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); }
|
|
@@ -139,7 +141,7 @@ const Input = (props, ref) => {
|
|
|
139
141
|
size = _props$size === void 0 ? 'medium' : _props$size,
|
|
140
142
|
htmlSize = props.htmlSize,
|
|
141
143
|
disabled = props.disabled,
|
|
142
|
-
rest = _objectWithoutProperties(props,
|
|
144
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
143
145
|
|
|
144
146
|
return (0, _react2.jsx)(Wrapper, {
|
|
145
147
|
className: wrapperClassName
|
|
@@ -14,9 +14,14 @@ var _react2 = require("@emotion/react");
|
|
|
14
14
|
|
|
15
15
|
var _theme = require("@dfds-ui/theme");
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
const _excluded = ["visualSize", "children"],
|
|
18
|
+
_excluded2 = ["className", "icon", "color", "size"],
|
|
19
|
+
_excluded3 = ["className", "children"],
|
|
20
|
+
_excluded4 = ["error", "disabled"];
|
|
18
21
|
|
|
19
|
-
function
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
20
25
|
|
|
21
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
27
|
|
|
@@ -73,7 +78,7 @@ const InputComposition = _ref => {
|
|
|
73
78
|
let _ref$visualSize = _ref.visualSize,
|
|
74
79
|
visualSize = _ref$visualSize === void 0 ? 'medium' : _ref$visualSize,
|
|
75
80
|
children = _ref.children,
|
|
76
|
-
rest = _objectWithoutProperties(_ref,
|
|
81
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
77
82
|
|
|
78
83
|
return (0, _react2.jsx)("div", _extends({
|
|
79
84
|
css: /*#__PURE__*/(0, _react2.css)("display:flex;position:relative;align-items:center;font-family:", _theme.theme.fontFamilies.system, ";background-color:", _theme.theme.colors.surface.primary, ";line-height:1.25;", sizeStyles({
|
|
@@ -90,7 +95,7 @@ const Icon = _ref2 => {
|
|
|
90
95
|
color = _ref2.color,
|
|
91
96
|
_ref2$size = _ref2.size,
|
|
92
97
|
size = _ref2$size === void 0 ? 'medium' : _ref2$size,
|
|
93
|
-
rest = _objectWithoutProperties(_ref2,
|
|
98
|
+
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
94
99
|
|
|
95
100
|
return (0, _react2.jsx)("span", {
|
|
96
101
|
className: className
|
|
@@ -108,7 +113,7 @@ exports.InputIcon = InputIcon;
|
|
|
108
113
|
const Addon = _ref3 => {
|
|
109
114
|
let className = _ref3.className,
|
|
110
115
|
children = _ref3.children,
|
|
111
|
-
rest = _objectWithoutProperties(_ref3,
|
|
116
|
+
rest = _objectWithoutProperties(_ref3, _excluded3);
|
|
112
117
|
|
|
113
118
|
return (0, _react2.jsx)("span", _extends({
|
|
114
119
|
className: className
|
|
@@ -147,7 +152,7 @@ const InputElement = (0, _base.default)("input", process.env.NODE_ENV === "produ
|
|
|
147
152
|
const InputControl = /*#__PURE__*/(0, _react.forwardRef)((_ref4, ref) => {
|
|
148
153
|
let error = _ref4.error,
|
|
149
154
|
disabled = _ref4.disabled,
|
|
150
|
-
rest = _objectWithoutProperties(_ref4,
|
|
155
|
+
rest = _objectWithoutProperties(_ref4, _excluded4);
|
|
151
156
|
|
|
152
157
|
return (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(InputElement, _extends({
|
|
153
158
|
"aria-invalid": error,
|
package/cjs/forms/label/Label.js
CHANGED
|
@@ -15,6 +15,8 @@ var _Asterisk = _interopRequireDefault(require("../asterisk/Asterisk"));
|
|
|
15
15
|
|
|
16
16
|
var _theme = require("@dfds-ui/theme");
|
|
17
17
|
|
|
18
|
+
const _excluded = ["required", "children", "hideAsterisk"];
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
21
|
|
|
20
22
|
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; }
|
|
@@ -52,7 +54,7 @@ const Label = _ref => {
|
|
|
52
54
|
let required = _ref.required,
|
|
53
55
|
children = _ref.children,
|
|
54
56
|
hideAsterisk = _ref.hideAsterisk,
|
|
55
|
-
rest = _objectWithoutProperties(_ref,
|
|
57
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
56
58
|
|
|
57
59
|
return (0, _react2.jsx)(LabelTag, rest, children, required && !hideAsterisk && (0, _react2.jsx)(_Asterisk.default, null));
|
|
58
60
|
};
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextFieldProps } from '../text-field/TextField';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<TextFieldProps, "max" | "required" | "hidden" | "dir" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "disabled" | "
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<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
|
export default _default;
|
|
@@ -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,
|