@algolia/satellite 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Actions/Button/Button.tailwind.js +3 -12
- package/dist/cjs/Actions/Button/PolymorphicButton.js +2 -2
- package/dist/cjs/Actions/Button/PolymorphicIconButton.js +1 -1
- package/dist/cjs/Actions/Switch/Switch.js +1 -1
- package/dist/cjs/Actions/Switch/Switch.tailwind.js +2 -8
- package/dist/cjs/Actions/ToggleButton/ToggleButton.d.ts +27 -0
- package/dist/cjs/Actions/ToggleButton/ToggleButton.js +56 -0
- package/dist/cjs/Actions/index.d.ts +1 -0
- package/dist/cjs/Actions/index.js +11 -0
- package/dist/cjs/Fields/AutoComplete/AutoComplete.js +1 -1
- package/dist/cjs/Fields/AutoComplete/AutoComplete.tailwind.js +1 -10
- package/dist/cjs/Fields/AutoComplete/utils.js +1 -1
- package/dist/cjs/Fields/Checkbox/Checkbox.d.ts +1 -1
- package/dist/cjs/Fields/Checkbox/Checkbox.js +1 -1
- package/dist/cjs/Fields/Checkbox/Checkbox.tailwind.js +3 -11
- package/dist/cjs/Fields/DatePicker/DatePicker.tailwind.js +22 -23
- package/dist/cjs/Fields/DatePicker/components/Calendar.js +0 -1
- package/dist/cjs/Fields/Dropzone/Dropzone.js +3 -13
- package/dist/cjs/Fields/Form/Form.js +2 -2
- package/dist/cjs/Fields/Form/stories/AsynchronousValidation.js +1 -1
- package/dist/cjs/Fields/Form/stories/Complex.js +1 -1
- package/dist/cjs/Fields/Form/stories/DependentFieldsValidation.js +1 -1
- package/dist/cjs/Fields/Form/stories/DirtyFields.js +1 -1
- package/dist/cjs/Fields/Form/stories/DynamicFieldsValidation.js +1 -1
- package/dist/cjs/Fields/Form/stories/FieldArrays.js +1 -1
- package/dist/cjs/Fields/Form/stories/ValidationStrategies.js +3 -3
- package/dist/cjs/Fields/Input/Input.js +1 -1
- package/dist/cjs/Fields/Input/Input.tailwind.js +1 -12
- package/dist/cjs/Fields/RadioGroup/RadioButton.d.ts +1 -1
- package/dist/cjs/Fields/RadioGroup/RadioButton.js +1 -1
- package/dist/cjs/Fields/RadioGroup/RadioButton.tailwind.js +0 -11
- package/dist/cjs/Fields/RangeSlider/RangeSlider.d.ts +1 -1
- package/dist/cjs/Fields/RangeSlider/RangeSlider.js +1 -1
- package/dist/cjs/Fields/Select/Select.js +1 -1
- package/dist/cjs/Fields/Select/Select.tailwind.js +0 -10
- package/dist/cjs/Fields/TextArea/TextArea.js +1 -1
- package/dist/cjs/Fields/TextArea/TextArea.tailwind.js +0 -8
- package/dist/cjs/Fields/Toggle/Toggle.d.ts +1 -1
- package/dist/cjs/Fields/Toggle/Toggle.js +1 -1
- package/dist/cjs/Fields/Toggle/Toggle.tailwind.js +0 -7
- package/dist/cjs/Helpers/Separator/Separator.js +1 -1
- package/dist/cjs/Helpers/utilities/focusable.tailwind.d.ts +5 -0
- package/dist/cjs/Helpers/utilities/focusable.tailwind.js +14 -0
- package/dist/cjs/Icons/index.d.ts +1 -1
- package/dist/cjs/Icons/index.js +6 -0
- package/dist/cjs/Indicators/ProgressBar/ProgressBar.js +1 -1
- package/dist/cjs/Indicators/Tag/Tag.d.ts +1 -1
- package/dist/cjs/Indicators/Tag/Tag.js +2 -2
- package/dist/cjs/Indicators/Tag/Tag.tailwind.js +4 -19
- package/dist/cjs/Indicators/Toast/Toast.js +1 -1
- package/dist/cjs/Indicators/Toast/Toasts.js +4 -3
- package/dist/cjs/Layout/Tables/DataTable/DataTable.d.ts +1 -1
- package/dist/cjs/Layout/Tables/DataTable/components/Body.d.ts +1 -1
- package/dist/cjs/Layout/Tables/DataTable/components/Header.d.ts +1 -2
- package/dist/cjs/Layout/Tables/DataTable/components/HeaderCell.d.ts +1 -1
- package/dist/cjs/Navigation/Link/BaseLink.js +8 -2
- package/dist/cjs/Navigation/Link/Link.js +1 -1
- package/dist/cjs/Navigation/Pagination/DotPagination/DotPagination.d.ts +1 -2
- package/dist/cjs/Navigation/Pagination/DotPagination/DotPagination.js +1 -1
- package/dist/cjs/Navigation/Stepper/Step.js +3 -1
- package/dist/cjs/Overlay/Dropdown/components/DropdownDivider.d.ts +1 -2
- package/dist/cjs/Overlay/MenuButton/MenuButton.d.ts +2 -2
- package/dist/cjs/Overlay/MenuButton/MenuButton.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/CustomTrigger.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/DefaultTrigger.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/Divider.d.ts +1 -2
- package/dist/cjs/Overlay/MenuButton/components/Divider.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/Label.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItem.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/items/Item.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/items/LinkItem.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/items/RadioItem.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/items/ToggleItem.js +1 -1
- package/dist/cjs/Overlay/Modal/Modal.js +1 -1
- package/dist/cjs/Overlay/Modal/Modal.tailwind.js +0 -1
- package/dist/cjs/Overlay/Popover/Popover.js +1 -1
- package/dist/cjs/Overlay/Popover/types.d.ts +1 -1
- package/dist/cjs/Overlay/Tooltip/Tooltip.d.ts +1 -1
- package/dist/cjs/Overlay/Tooltip/TooltipWrapper.js +1 -1
- package/dist/cjs/Satellite/SatelliteRouter.js +1 -2
- package/dist/cjs/styles/tailwind.config.js +1 -2
- package/dist/cjs/utils/hashCode.js +0 -1
- package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
- package/dist/esm/Actions/Button/Button.tailwind.js +3 -12
- package/dist/esm/Actions/Button/PolymorphicButton.js +2 -3
- package/dist/esm/Actions/Button/PolymorphicIconButton.js +2 -4
- package/dist/esm/Actions/Switch/Switch.js +2 -3
- package/dist/esm/Actions/Switch/Switch.tailwind.js +2 -8
- package/dist/esm/Actions/Switch/SwitchOption.js +1 -2
- package/dist/esm/Actions/ToggleButton/ToggleButton.d.ts +27 -0
- package/dist/esm/Actions/ToggleButton/ToggleButton.js +49 -0
- package/dist/esm/Actions/index.d.ts +1 -0
- package/dist/esm/Actions/index.js +1 -0
- package/dist/esm/Avatars/UserAvatar/UserAvatar.js +1 -2
- package/dist/esm/Fields/AutoComplete/AutoComplete.js +2 -3
- package/dist/esm/Fields/AutoComplete/AutoComplete.tailwind.js +1 -10
- package/dist/esm/Fields/AutoComplete/components/AutoCompleteEmptyState.js +1 -2
- package/dist/esm/Fields/AutoComplete/components/DefaultOptionItem.js +1 -2
- package/dist/esm/Fields/AutoComplete/utils.js +1 -1
- package/dist/esm/Fields/Checkbox/Checkbox.d.ts +1 -1
- package/dist/esm/Fields/Checkbox/Checkbox.js +2 -3
- package/dist/esm/Fields/Checkbox/Checkbox.tailwind.js +3 -11
- package/dist/esm/Fields/DatePicker/DatePicker/DatePicker.js +1 -3
- package/dist/esm/Fields/DatePicker/DatePicker.tailwind.js +22 -23
- package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePicker.js +1 -3
- package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePickerDisplay.js +1 -3
- package/dist/esm/Fields/DatePicker/components/Calendar.js +0 -1
- package/dist/esm/Fields/DatePicker/components/FooterActions.js +1 -2
- package/dist/esm/Fields/DatePicker/components/NavBar.js +1 -2
- package/dist/esm/Fields/Dropzone/Dropzone.js +4 -15
- package/dist/esm/Fields/Field/Field.js +1 -2
- package/dist/esm/Fields/Form/Form.js +3 -5
- package/dist/esm/Fields/Form/stories/AsynchronousValidation.js +1 -2
- package/dist/esm/Fields/Form/stories/Complex.js +1 -2
- package/dist/esm/Fields/Form/stories/DependentFieldsValidation.js +1 -2
- package/dist/esm/Fields/Form/stories/DirtyFields.js +1 -2
- package/dist/esm/Fields/Form/stories/DynamicFieldsValidation.js +1 -2
- package/dist/esm/Fields/Form/stories/FieldArrays.js +1 -3
- package/dist/esm/Fields/Form/stories/ValidationStrategies.js +3 -4
- package/dist/esm/Fields/Input/Input.js +2 -3
- package/dist/esm/Fields/Input/Input.tailwind.js +1 -12
- package/dist/esm/Fields/RadioGroup/RadioButton.d.ts +1 -1
- package/dist/esm/Fields/RadioGroup/RadioButton.js +1 -1
- package/dist/esm/Fields/RadioGroup/RadioButton.tailwind.js +0 -11
- package/dist/esm/Fields/RadioGroup/RadioGroup.js +1 -2
- package/dist/esm/Fields/RangeSlider/RangeSlider.d.ts +1 -1
- package/dist/esm/Fields/RangeSlider/RangeSlider.js +2 -3
- package/dist/esm/Fields/Select/Select.js +2 -3
- package/dist/esm/Fields/Select/Select.tailwind.js +0 -10
- package/dist/esm/Fields/TextArea/TextArea.js +2 -3
- package/dist/esm/Fields/TextArea/TextArea.tailwind.js +0 -8
- package/dist/esm/Fields/Toggle/Toggle.d.ts +1 -1
- package/dist/esm/Fields/Toggle/Toggle.js +2 -3
- package/dist/esm/Fields/Toggle/Toggle.tailwind.js +0 -7
- package/dist/esm/Helpers/TextWrap/TextWrap.js +1 -2
- package/dist/esm/Helpers/utilities/focusable.tailwind.d.ts +5 -0
- package/dist/esm/Helpers/utilities/focusable.tailwind.js +12 -0
- package/dist/esm/Icons/AlgoliaRecommendIcon.js +1 -2
- package/dist/esm/Icons/AlgoliaSearchIcon.js +1 -2
- package/dist/esm/Icons/ContextIcon.js +1 -2
- package/dist/esm/Icons/CrawlerIcon.js +1 -2
- package/dist/esm/Icons/DragHandleIcon.js +1 -2
- package/dist/esm/Icons/NoFiltersIcon.js +1 -2
- package/dist/esm/Icons/PinIcon.js +1 -2
- package/dist/esm/Icons/QueryBreakdownIcon.js +1 -2
- package/dist/esm/Icons/SettingsConsequencesIcon.js +1 -2
- package/dist/esm/Icons/UnpinIcon.js +1 -2
- package/dist/esm/Icons/index.d.ts +1 -1
- package/dist/esm/Icons/index.js +2 -3
- package/dist/esm/Indicators/Badge/Badge.js +1 -2
- package/dist/esm/Indicators/Banners/Alert/Alert.js +1 -2
- package/dist/esm/Indicators/Banners/Promote/Promote.js +1 -2
- package/dist/esm/Indicators/Banners/SystemNotification/SystemNotification.js +1 -2
- package/dist/esm/Indicators/EmptyState/EmptyState.js +1 -2
- package/dist/esm/Indicators/ProgressSpinner/ProgressSpinner.js +1 -2
- package/dist/esm/Indicators/Tag/Tag.d.ts +1 -1
- package/dist/esm/Indicators/Tag/Tag.js +3 -4
- package/dist/esm/Indicators/Tag/Tag.tailwind.js +4 -19
- package/dist/esm/Indicators/Toast/Toast.js +1 -2
- package/dist/esm/Indicators/Toast/Toasts.js +4 -4
- package/dist/esm/Layout/Insert/Insert.js +1 -2
- package/dist/esm/Layout/Sidebar/SidebarButtonLink.js +1 -2
- package/dist/esm/Layout/Sidebar/SidebarLink.js +1 -2
- package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +1 -2
- package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +1 -2
- package/dist/esm/Layout/Tables/DataTable/DataTable.d.ts +1 -1
- package/dist/esm/Layout/Tables/DataTable/DataTable.js +1 -2
- package/dist/esm/Layout/Tables/DataTable/components/Body.d.ts +1 -1
- package/dist/esm/Layout/Tables/DataTable/components/Header.d.ts +1 -2
- package/dist/esm/Layout/Tables/DataTable/components/HeaderCell.d.ts +1 -1
- package/dist/esm/Layout/Tables/DataTable/components/HeaderCell.js +1 -2
- package/dist/esm/Layout/Tables/Table/Table.js +1 -2
- package/dist/esm/Navigation/Link/BaseLink.js +8 -2
- package/dist/esm/Navigation/Link/Link.js +2 -3
- package/dist/esm/Navigation/Pagination/CompactPagination/CompactPagination.js +1 -2
- package/dist/esm/Navigation/Pagination/DotPagination/DotPagination.d.ts +1 -2
- package/dist/esm/Navigation/Pagination/DotPagination/DotPagination.js +1 -1
- package/dist/esm/Navigation/Pagination/Pagination/Pagination.js +1 -3
- package/dist/esm/Navigation/Stepper/Step.js +4 -3
- package/dist/esm/Navigation/Tabs/ContentTabs/ContentTabs.js +1 -2
- package/dist/esm/Navigation/Tabs/components/LinkTab.js +1 -2
- package/dist/esm/Overlay/Dropdown/Dropdown.js +1 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownButtonItem.js +1 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +1 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownDivider.d.ts +1 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownLinkItem.js +1 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownRadioItem.js +1 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownToggleItem.js +1 -2
- package/dist/esm/Overlay/MenuButton/MenuButton.d.ts +2 -2
- package/dist/esm/Overlay/MenuButton/components/Divider.d.ts +1 -2
- package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItem.js +1 -2
- package/dist/esm/Overlay/MenuButton/components/items/Item.js +1 -2
- package/dist/esm/Overlay/MenuButton/components/items/LinkItem.js +1 -2
- package/dist/esm/Overlay/MenuButton/components/items/RadioItem.js +1 -2
- package/dist/esm/Overlay/MenuButton/components/items/ToggleItem.js +1 -2
- package/dist/esm/Overlay/Modal/Modal.js +1 -2
- package/dist/esm/Overlay/Popover/Popover.js +1 -2
- package/dist/esm/Overlay/Popover/types.d.ts +1 -1
- package/dist/esm/Overlay/Tooltip/Tooltip.d.ts +1 -1
- package/dist/esm/Overlay/Tooltip/TooltipWrapper.js +1 -3
- package/dist/esm/Satellite/SatelliteRouter.js +1 -2
- package/dist/esm/styles/tailwind.config.js +1 -2
- package/dist/esm/utils/hashCode.js +0 -1
- package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
- package/dist/satellite.min.css +1 -1
- package/package.json +19 -15
@@ -16,9 +16,6 @@ var buttonPlugin = plugin(function (_ref) {
|
|
16
16
|
minWidth: "min-content",
|
17
17
|
"&, &:hover": {
|
18
18
|
textDecoration: "none"
|
19
|
-
},
|
20
|
-
"&:focus": {
|
21
|
-
outline: "none"
|
22
19
|
}
|
23
20
|
},
|
24
21
|
".btn-disabled": {
|
@@ -29,9 +26,6 @@ var buttonPlugin = plugin(function (_ref) {
|
|
29
26
|
"&:hover": {
|
30
27
|
backgroundColor: rgba(theme("colors.grey.300"), 0.15)
|
31
28
|
},
|
32
|
-
"&:focus": {
|
33
|
-
boxShadow: "0 0 0 1px ".concat(theme("colors.accent.600"))
|
34
|
-
},
|
35
29
|
"&:active, &.btn-active": {
|
36
30
|
color: theme("colors.accent.600"),
|
37
31
|
backgroundColor: theme("colors.accent.100"),
|
@@ -55,8 +49,7 @@ var buttonPlugin = plugin(function (_ref) {
|
|
55
49
|
},
|
56
50
|
"&:focus": {
|
57
51
|
backgroundImage: "linear-gradient(-180deg, ".concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.100"), " 100%)"),
|
58
|
-
|
59
|
-
boxShadow: "\n 0 0 0 1px ".concat(theme("colors.accent.600"), ",\n 0 2px 0 1px ").concat(theme("colors.shadow.5"), "\n ")
|
52
|
+
boxShadow: "0 2px 0 1px ".concat(theme("colors.shadow.5"))
|
60
53
|
},
|
61
54
|
"&:active, &.btn-active": {
|
62
55
|
borderColor: theme("colors.grey.200"),
|
@@ -82,8 +75,7 @@ var buttonPlugin = plugin(function (_ref) {
|
|
82
75
|
},
|
83
76
|
"&:focus": {
|
84
77
|
backgroundImage: "linear-gradient(0deg, ".concat(theme("colors.accent.600"), " 0%, ").concat(theme("colors.accent.700"), " 100%)"),
|
85
|
-
|
86
|
-
boxShadow: "\n inset 0 1px 0 0 ".concat(rgba(theme("colors.white"), 0.06), ",\n 0 0 0 1px ").concat(theme("colors.accent.800"), ",\n 0 2px 0 1px ").concat(theme("colors.shadow.10"), "\n ")
|
78
|
+
boxShadow: "\n inset 0 1px 0 0 ".concat(rgba(theme("colors.white"), 0.06), ",\n 0 2px 0 1px ").concat(theme("colors.shadow.10"), "\n ")
|
87
79
|
},
|
88
80
|
"&:active, &.btn-active": {
|
89
81
|
backgroundColor: theme("colors.accent.700"),
|
@@ -110,8 +102,7 @@ var buttonPlugin = plugin(function (_ref) {
|
|
110
102
|
},
|
111
103
|
"&:focus": {
|
112
104
|
backgroundImage: "linear-gradient(0deg, ".concat(theme("colors.red.600"), " 0%, ").concat(theme("colors.red.700"), " 100%)"),
|
113
|
-
|
114
|
-
boxShadow: "\n inset 0 1px 0 0 ".concat(rgba(theme("colors.white"), 0.06), ",\n 0 0 0 1px ").concat(theme("colors.red.800"), ",\n 0 2px 0 1px ").concat(theme("colors.shadow.10"), "\n ")
|
105
|
+
boxShadow: "\n inset 0 1px 0 0 ".concat(rgba(theme("colors.white"), 0.06), ",\n 0 2px 0 1px ").concat(theme("colors.shadow.10"), "\n ")
|
115
106
|
},
|
116
107
|
"&:active, &.btn-active": {
|
117
108
|
borderColor: theme("colors.red.800"),
|
@@ -19,10 +19,10 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
var _excluded = ["as", "className", "variant", "size", "startIcon", "endIcon", "loading", "children"];
|
20
20
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
23
23
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
24
24
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
25
|
-
var BASE_CLASSNAMES = (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["btn inline-flex justify-center items-center px-3 typo-display-body"])));
|
25
|
+
var BASE_CLASSNAMES = (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["btn inline-flex justify-center items-center px-3 typo-display-body focusable-visible"])));
|
26
26
|
var ICON_SIZE = 16;
|
27
27
|
/**
|
28
28
|
* `PolymorphicButton` is intended for internal use
|
@@ -20,7 +20,7 @@ var _excluded = ["as", "className", "variant", "size", "icon", "title", "showToo
|
|
20
20
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
21
21
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
23
|
-
var BASE_CLASSNAMES = (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["btn inline-flex items-center justify-center"])));
|
23
|
+
var BASE_CLASSNAMES = (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["btn inline-flex items-center justify-center focusable-visible"])));
|
24
24
|
var SIZE_CLASSNAMES = {
|
25
25
|
small: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["max-h-6 max-w-6 min-h-6 min-w-6 text-mobile md:text-sm"]))),
|
26
26
|
medium: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["max-h-8 max-w-8 min-h-8 min-w-8 text-md"]))),
|
@@ -79,7 +79,7 @@ var Switch = exports.Switch = function Switch(_ref) {
|
|
79
79
|
},
|
80
80
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
81
81
|
ref: containerRef,
|
82
|
-
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["switch\n relative inline-flex typo-display-body rounded bg-grey-100\n ", "\n "])), size === "large" ? "switch-large space-x-1" : "space-x-2px"), _styles.BUTTON_SIZE_CLASSNAMES[size], className),
|
82
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["switch focusable-visible-within\n relative inline-flex typo-display-body rounded bg-grey-100\n ", "\n "])), size === "large" ? "switch-large space-x-1" : "space-x-2px"), _styles.BUTTON_SIZE_CLASSNAMES[size], className),
|
83
83
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
84
84
|
ref: valueIndicatorRef,
|
85
85
|
style: valueIndicatorStyle,
|
@@ -9,16 +9,10 @@ var switchPlugin = plugin(function (_ref) {
|
|
9
9
|
".switch": {
|
10
10
|
// this + position relative helps create a new stack context (helps with z-index)
|
11
11
|
zIndex: "1",
|
12
|
-
boxShadow: "0 0 0 2px ".concat(theme("colors.grey.100"))
|
13
|
-
"&:focus-within:has(:focus-visible)": {
|
14
|
-
boxShadow: "\n 0 0 0 1px ".concat(theme("colors.grey.100"), ",\n 0 0 0 2px ").concat(theme("colors.accent.600"), "\n ")
|
15
|
-
}
|
12
|
+
boxShadow: "0 0 0 2px ".concat(theme("colors.grey.100"))
|
16
13
|
},
|
17
14
|
".switch-large": {
|
18
|
-
boxShadow: "0 0 0 4px ".concat(theme("colors.grey.100"))
|
19
|
-
"&:focus-within:has(:focus-visible)": {
|
20
|
-
boxShadow: "\n 0 0 0 3px ".concat(theme("colors.grey.100"), ",\n 0 0 0 4px ").concat(theme("colors.accent.600"), "\n ")
|
21
|
-
}
|
15
|
+
boxShadow: "0 0 0 4px ".concat(theme("colors.grey.100"))
|
22
16
|
}
|
23
17
|
});
|
24
18
|
});
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import type { ToggleProps } from "@radix-ui/react-toggle";
|
2
|
+
import type { IconComponentType } from "Icons";
|
3
|
+
import type { InputHTMLAttributes, ReactNode } from "react";
|
4
|
+
import type { ButtonSize } from "../Button/types";
|
5
|
+
declare type InputElementProps = InputHTMLAttributes<HTMLInputElement>;
|
6
|
+
declare type ToggleButtonSharedProps = {
|
7
|
+
id?: InputElementProps["id"];
|
8
|
+
className?: InputElementProps["className"];
|
9
|
+
style?: InputElementProps["style"];
|
10
|
+
autoFocus?: InputElementProps["autoFocus"];
|
11
|
+
disabled?: InputElementProps["disabled"];
|
12
|
+
pressed?: ToggleProps["pressed"];
|
13
|
+
defaultPressed?: ToggleProps["defaultPressed"];
|
14
|
+
onPressedChange?: ToggleProps["onPressedChange"];
|
15
|
+
size?: ButtonSize;
|
16
|
+
};
|
17
|
+
declare type IconOnlyToggleButtonProps = {
|
18
|
+
icon: IconComponentType;
|
19
|
+
label: string;
|
20
|
+
};
|
21
|
+
declare type TextToggleButtonProps = {
|
22
|
+
icon?: IconComponentType;
|
23
|
+
children: ReactNode;
|
24
|
+
};
|
25
|
+
export declare type ToggleButtonProps = ToggleButtonSharedProps & (IconOnlyToggleButtonProps | TextToggleButtonProps);
|
26
|
+
export declare const ToggleButton: import("react").ForwardRefExoticComponent<ToggleButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
27
|
+
export {};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports.ToggleButton = void 0;
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
11
|
+
var _reactToggle = require("@radix-ui/react-toggle");
|
12
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
13
|
+
var _react = require("react");
|
14
|
+
var _Overlay = require("../../Overlay");
|
15
|
+
var _satellitePrefixer = _interopRequireDefault(require("../../styles/helpers/satellitePrefixer"));
|
16
|
+
var _styles = require("../Button/styles");
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
18
|
+
var _excluded = ["className", "size", "icon", "children", "label"];
|
19
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
20
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
22
|
+
var ICON_ONLY_CLASSNAMES = {
|
23
|
+
small: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["h-6 w-6"]))),
|
24
|
+
medium: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["h-8 w-8"]))),
|
25
|
+
large: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["h-10 w-10"])))
|
26
|
+
};
|
27
|
+
var ToggleButton = exports.ToggleButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
28
|
+
var isIconOnly = !props.children;
|
29
|
+
var _label$props = _objectSpread({
|
30
|
+
label: undefined
|
31
|
+
}, props),
|
32
|
+
className = _label$props.className,
|
33
|
+
_label$props$size = _label$props.size,
|
34
|
+
size = _label$props$size === void 0 ? "medium" : _label$props$size,
|
35
|
+
Icon = _label$props.icon,
|
36
|
+
children = _label$props.children,
|
37
|
+
label = _label$props.label,
|
38
|
+
rest = (0, _objectWithoutProperties2["default"])(_label$props, _excluded);
|
39
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Overlay.TooltipWrapper, {
|
40
|
+
content: label,
|
41
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactToggle.Toggle, _objectSpread(_objectSpread({
|
42
|
+
ref: ref,
|
43
|
+
type: "button",
|
44
|
+
"aria-label": label,
|
45
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["inline-flex items-center justify-center gap-1 min-w-min whitespace-nowrap"]))), (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["group/toggle-button rounded focusable disabled:cursor-not-allowed"]))), (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["aria-pressed:text-accent-600 disabled:!text-grey-300"]))), (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["bg-white data-[state=off]:hover:bg-grey-100 aria-pressed:bg-accent-100 disabled:!bg-grey-50"]))), (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["border border-grey-200 aria-pressed:border-accent-600 disabled:!border-grey-200"]))), !isIconOnly && (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["px-3"]))), isIconOnly ? ICON_ONLY_CLASSNAMES[size] : _styles.BUTTON_SIZE_CLASSNAMES[size], className)
|
46
|
+
}, rest), {}, {
|
47
|
+
children: [!!Icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
48
|
+
"aria-hidden": "true",
|
49
|
+
className: (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["shrink-0 h-4 w-4 text-grey-600 group-aria-pressed/toggle-button:text-inherit group-disabled/toggle-button:text-inherit"])))
|
50
|
+
}), !!children && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
51
|
+
children: children
|
52
|
+
})]
|
53
|
+
}))
|
54
|
+
});
|
55
|
+
});
|
56
|
+
ToggleButton.displayName = "ToggleButton";
|
@@ -4,4 +4,5 @@ export * from "./ButtonLink/ButtonLink";
|
|
4
4
|
export * from "./IconButton/IconButton";
|
5
5
|
export * from "./IconButtonLink/IconButtonLink";
|
6
6
|
export * from "./Switch";
|
7
|
+
export * from "./ToggleButton/ToggleButton";
|
7
8
|
export type { ButtonSize, ButtonVariant } from "./Button/types";
|
@@ -68,4 +68,15 @@ Object.keys(_Switch).forEach(function (key) {
|
|
68
68
|
return _Switch[key];
|
69
69
|
}
|
70
70
|
});
|
71
|
+
});
|
72
|
+
var _ToggleButton = require("./ToggleButton/ToggleButton");
|
73
|
+
Object.keys(_ToggleButton).forEach(function (key) {
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
75
|
+
if (key in exports && exports[key] === _ToggleButton[key]) return;
|
76
|
+
Object.defineProperty(exports, key, {
|
77
|
+
enumerable: true,
|
78
|
+
get: function get() {
|
79
|
+
return _ToggleButton[key];
|
80
|
+
}
|
81
|
+
});
|
71
82
|
});
|
@@ -336,7 +336,7 @@ var AutoComplete = exports.AutoComplete = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
336
336
|
setContainerMeasureRef(el);
|
337
337
|
},
|
338
338
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
339
|
-
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-container"]))),
|
339
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-container"]))), inputFocused && (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["focusable-show"]))), variant === "large" && (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-large py-1"]))), disabled && (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-disabled"]))), isInvalid && (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-invalid"]))), noWrap && (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-nowrap"])))),
|
340
340
|
onClick: function onClick() {
|
341
341
|
var _inputRef$current;
|
342
342
|
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
@@ -23,8 +23,7 @@ var autoCompletePlugin = plugin(function (_ref) {
|
|
23
23
|
border: "1px solid ".concat(theme("colors.grey.500")),
|
24
24
|
boxShadow: "inset 0px 1px 4px 0px ".concat(rgba(theme("colors.grey.500"), 0.3)),
|
25
25
|
transition: "all 100ms ease-in-out",
|
26
|
-
|
27
|
-
"&:not(.autocomplete-disabled, .autocomplete-focused):hover": {
|
26
|
+
"&:not(.autocomplete-disabled, .focusable-show):hover": {
|
28
27
|
borderColor: theme("colors.grey.600")
|
29
28
|
},
|
30
29
|
// Workaround for ie
|
@@ -42,11 +41,6 @@ var autoCompletePlugin = plugin(function (_ref) {
|
|
42
41
|
}
|
43
42
|
}
|
44
43
|
},
|
45
|
-
|
46
|
-
".autocomplete-focused, .autocomplete-container:focus-within": {
|
47
|
-
borderColor: theme("colors.accent.600"),
|
48
|
-
boxShadow: "0px 1px 0px 0px ".concat(theme("colors.shadow.5"))
|
49
|
-
},
|
50
44
|
".autocomplete-disabled": {
|
51
45
|
cursor: "not-allowed",
|
52
46
|
backgroundImage: "linear-gradient(-180deg, ".concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.100"), " 100%)"),
|
@@ -63,9 +57,6 @@ var autoCompletePlugin = plugin(function (_ref) {
|
|
63
57
|
"&:hover": {
|
64
58
|
backgroundColor: theme("colors.red.50"),
|
65
59
|
borderColor: theme("colors.red.700")
|
66
|
-
},
|
67
|
-
"&.autocomplete-focused, &.autocomplete-container:focus-within": {
|
68
|
-
outlineColor: theme("colors.red.700")
|
69
60
|
}
|
70
61
|
},
|
71
62
|
".autocomplete-nowrap": {
|
@@ -49,7 +49,7 @@ var DEFAULT_AUTOCOMPLETE_LOCALE = exports.DEFAULT_AUTOCOMPLETE_LOCALE = {
|
|
49
49
|
return multiple ? "Add" : "Use";
|
50
50
|
},
|
51
51
|
showMoreButton: function showMoreButton(extraResults) {
|
52
|
-
return "Show ".concat((0, _pluralize.pluralize)(extraResults, "result")
|
52
|
+
return "Show ".concat((0, _pluralize.pluralize)(extraResults, "more result"));
|
53
53
|
}
|
54
54
|
};
|
55
55
|
var optionToString = exports.optionToString = function optionToString(option) {
|
@@ -19,5 +19,5 @@ export declare type CheckboxProps = CheckboxInputProps & CheckboxCustomProps;
|
|
19
19
|
*
|
20
20
|
* See the [Checkbox documentation page](https://satellite.algolia.com/components/controls/checkbox) for more information.
|
21
21
|
*/
|
22
|
-
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLInputElement>, "onChange"> & Pick<InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "
|
22
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLInputElement>, "onChange"> & Pick<InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "autoFocus" | "onChange" | "disabled" | "checked" | "required"> & CheckboxCustomProps & import("react").RefAttributes<HTMLInputElement>>;
|
23
23
|
export {};
|
@@ -73,7 +73,7 @@ var Checkbox = exports.Checkbox = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
73
73
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
74
74
|
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["group/checkbox inline-flex items-center ", ""])), textPosition === "left" && "flex-row-reverse"), className),
|
75
75
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
76
|
-
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n checkbox\n ", "\n ", "\n ", "\n "])), indeterminate && "checkbox-indeterminate", isChecked && "checkbox-checked", disabled && "checkbox-disabled"), STATUS_CLASSNAMES[status]),
|
76
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n checkbox focusable-within\n ", "\n ", "\n ", "\n "])), indeterminate && "checkbox-indeterminate", isChecked && "checkbox-checked", disabled && "checkbox-disabled"), STATUS_CLASSNAMES[status]),
|
77
77
|
style: {
|
78
78
|
color: checkedColor
|
79
79
|
},
|
@@ -21,10 +21,9 @@ var checkboxPlugin = plugin(function (_ref) {
|
|
21
21
|
border: "1px solid ".concat(theme("colors.grey.500")),
|
22
22
|
boxShadow: "0px 1px 0px 0px ".concat(theme("colors.shadow.5")),
|
23
23
|
borderRadius: theme("borderRadius.DEFAULT"),
|
24
|
-
|
25
|
-
"
|
26
|
-
|
27
|
-
},
|
24
|
+
transitionProperty: "color, background-color, border-color",
|
25
|
+
transitionTimingFunction: "cubic-bezier(0.23, 1, 0.32, 1)",
|
26
|
+
transitionDuration: "250ms",
|
28
27
|
"& > .checkbox-icon": {
|
29
28
|
userSelect: "none",
|
30
29
|
color: "currentColor",
|
@@ -44,18 +43,11 @@ var checkboxPlugin = plugin(function (_ref) {
|
|
44
43
|
borderColor: "currentColor",
|
45
44
|
"&:hover": {
|
46
45
|
background: theme("colors.red.50")
|
47
|
-
},
|
48
|
-
"&:focus-within": {
|
49
|
-
outline: "1px solid ".concat(theme("colors.red.700"))
|
50
46
|
}
|
51
47
|
},
|
52
48
|
".checkbox-checked, .checkbox-indeterminate": {
|
53
49
|
borderColor: "currentColor",
|
54
50
|
boxShadow: "inset 0px 1px 0px 0px ".concat(theme("colors.shadow.5")),
|
55
|
-
"&:focus-within": {
|
56
|
-
borderColor: "currentColor",
|
57
|
-
boxShadow: "\n inset 0px 1px 0px 0px ".concat(theme("colors.shadow.5"), ",\n 0 0 0 1px currentColor\n ")
|
58
|
-
},
|
59
51
|
"& > .checkbox-icon": {
|
60
52
|
opacity: "1",
|
61
53
|
transform: "scale(1)"
|
@@ -5,7 +5,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
5
5
|
// @ts-check
|
6
6
|
var plugin = require("tailwindcss/plugin");
|
7
7
|
var datePickerPlugin = plugin(function (_ref) {
|
8
|
-
var _rdpDay, _rdpDay2, _rdpDay4, _addComponents;
|
9
8
|
var addComponents = _ref.addComponents,
|
10
9
|
theme = _ref.theme,
|
11
10
|
prefix = _ref.prefix;
|
@@ -23,7 +22,7 @@ var datePickerPlugin = plugin(function (_ref) {
|
|
23
22
|
return ":not(.rdp-day_".concat(modifier, ")");
|
24
23
|
}).join("");
|
25
24
|
};
|
26
|
-
addComponents((
|
25
|
+
addComponents((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({
|
27
26
|
".rdp-year": {
|
28
27
|
// ChevronDown svg from lucide-react,
|
29
28
|
backgroundImage: 'url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>\')',
|
@@ -40,7 +39,7 @@ var datePickerPlugin = plugin(function (_ref) {
|
|
40
39
|
marginLeft: "0",
|
41
40
|
marginRight: "1em"
|
42
41
|
}
|
43
|
-
},
|
42
|
+
}, prefix(".date-picker, .date-range-picker"), {
|
44
43
|
".rdp[dir='rtl']": {
|
45
44
|
".rdp-months": {
|
46
45
|
".rdp-caption_start": {
|
@@ -53,20 +52,20 @@ var datePickerPlugin = plugin(function (_ref) {
|
|
53
52
|
marginRight: "0"
|
54
53
|
}
|
55
54
|
},
|
56
|
-
".rdp-day": (
|
55
|
+
".rdp-day": (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, "&_displayedRanges".concat(not("outside")), {
|
57
56
|
borderRadius: "0px",
|
58
57
|
backgroundColor: theme("colors.grey.200")
|
59
|
-
}),
|
58
|
+
}), "&_displayedRangesStart".concat(not("outside")), {
|
60
59
|
color: theme("colors.white"),
|
61
60
|
backgroundColor: theme("colors.grey.600"),
|
62
61
|
borderTopRightRadius: defaultRadius,
|
63
62
|
borderBottomRightRadius: defaultRadius
|
64
|
-
}),
|
63
|
+
}), "&_displayedRangesEnd".concat(not("outside")), {
|
65
64
|
color: theme("colors.white"),
|
66
65
|
backgroundColor: theme("colors.grey.600"),
|
67
66
|
borderTopLeftRadius: defaultRadius,
|
68
67
|
borderBottomLeftRadius: defaultRadius
|
69
|
-
}),
|
68
|
+
}), "&_range_start".concat(not("outside")), {
|
70
69
|
color: theme("colors.white"),
|
71
70
|
borderRadius: "0px",
|
72
71
|
borderTopRightRadius: defaultRadius,
|
@@ -75,7 +74,7 @@ var datePickerPlugin = plugin(function (_ref) {
|
|
75
74
|
"&:hover": {
|
76
75
|
backgroundColor: accent600
|
77
76
|
}
|
78
|
-
}),
|
77
|
+
}), "&_range_end".concat(not("outside")), {
|
79
78
|
color: theme("colors.white"),
|
80
79
|
borderRadius: "0px",
|
81
80
|
borderTopLeftRadius: defaultRadius,
|
@@ -84,7 +83,7 @@ var datePickerPlugin = plugin(function (_ref) {
|
|
84
83
|
"&:hover": {
|
85
84
|
backgroundColor: accent600
|
86
85
|
}
|
87
|
-
})
|
86
|
+
})
|
88
87
|
},
|
89
88
|
"& .rdp-head_cell": {
|
90
89
|
textTransform: "capitalize",
|
@@ -92,9 +91,9 @@ var datePickerPlugin = plugin(function (_ref) {
|
|
92
91
|
fontSize: "0.95em",
|
93
92
|
color: theme("colors.grey.600")
|
94
93
|
},
|
95
|
-
"& .rdp-day": (
|
94
|
+
"& .rdp-day": (0, _defineProperty2["default"])((0, _defineProperty2["default"])({
|
96
95
|
borderRadius: defaultRadius
|
97
|
-
},
|
96
|
+
}, "&_today".concat(not("outside")), {
|
98
97
|
color: theme("colors.grey.900"),
|
99
98
|
position: "relative",
|
100
99
|
"&:before": {
|
@@ -111,10 +110,10 @@ var datePickerPlugin = plugin(function (_ref) {
|
|
111
110
|
transform: "translate(-50%, -50%)",
|
112
111
|
zIndex: "-1"
|
113
112
|
}
|
114
|
-
}),
|
113
|
+
}), "&_selected".concat(not("outside")), {
|
115
114
|
color: theme("colors.white")
|
116
|
-
})
|
117
|
-
}),
|
115
|
+
})
|
116
|
+
}), prefix(".date-picker"), (0, _defineProperty2["default"])({
|
118
117
|
".rdp-day": (0, _defineProperty2["default"])({
|
119
118
|
borderRadius: defaultRadius,
|
120
119
|
"&_today": {
|
@@ -134,21 +133,21 @@ var datePickerPlugin = plugin(function (_ref) {
|
|
134
133
|
"&:hover": {
|
135
134
|
backgroundColor: accent600
|
136
135
|
}
|
137
|
-
})),
|
138
|
-
"& .rdp-day": (
|
136
|
+
})), prefix(".date-range-picker"), {
|
137
|
+
"& .rdp-day": (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, "&_displayedRanges".concat(not("outside")), {
|
139
138
|
borderRadius: "0px",
|
140
139
|
backgroundColor: theme("colors.grey.200")
|
141
|
-
}),
|
140
|
+
}), "&_displayedRangesStart".concat(not("outside")), {
|
142
141
|
color: theme("colors.white"),
|
143
142
|
backgroundColor: theme("colors.grey.600"),
|
144
143
|
borderTopLeftRadius: defaultRadius,
|
145
144
|
borderBottomLeftRadius: defaultRadius
|
146
|
-
}),
|
145
|
+
}), "&_displayedRangesEnd".concat(not("outside")), {
|
147
146
|
color: theme("colors.white"),
|
148
147
|
backgroundColor: theme("colors.grey.600"),
|
149
148
|
borderTopRightRadius: defaultRadius,
|
150
149
|
borderBottomRightRadius: defaultRadius
|
151
|
-
}),
|
150
|
+
}), "&_selected".concat(not("outside")), {
|
152
151
|
color: theme("colors.black"),
|
153
152
|
borderRadius: "0px",
|
154
153
|
backgroundColor: accent200,
|
@@ -158,7 +157,7 @@ var datePickerPlugin = plugin(function (_ref) {
|
|
158
157
|
"&:focus": {
|
159
158
|
border: "0px"
|
160
159
|
}
|
161
|
-
}),
|
160
|
+
}), "&_range_start".concat(not("outside")), {
|
162
161
|
color: theme("colors.white"),
|
163
162
|
borderRadius: "0px",
|
164
163
|
borderTopLeftRadius: defaultRadius,
|
@@ -167,7 +166,7 @@ var datePickerPlugin = plugin(function (_ref) {
|
|
167
166
|
"&:hover": {
|
168
167
|
backgroundColor: accent600
|
169
168
|
}
|
170
|
-
}),
|
169
|
+
}), "&_range_end".concat(not("outside")), {
|
171
170
|
color: theme("colors.white"),
|
172
171
|
borderRadius: "0px",
|
173
172
|
borderTopRightRadius: defaultRadius,
|
@@ -176,8 +175,8 @@ var datePickerPlugin = plugin(function (_ref) {
|
|
176
175
|
"&:hover": {
|
177
176
|
backgroundColor: accent600
|
178
177
|
}
|
179
|
-
})
|
180
|
-
}),
|
178
|
+
})
|
179
|
+
}), {
|
181
180
|
respectPrefix: false
|
182
181
|
});
|
183
182
|
});
|
@@ -36,7 +36,6 @@ var DatePickerCalendar = exports.DatePickerCalendar = function DatePickerCalenda
|
|
36
36
|
//stl`bg-grey-600 text-white rounded-l border-0`,
|
37
37
|
displayedRangesEnd: "rdp-day_displayedRangesEnd" //stl`bg-grey-600 text-white rounded-r border-0`,
|
38
38
|
};
|
39
|
-
|
40
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDayPicker.DayPicker, _objectSpread(_objectSpread({
|
41
40
|
mode: props.mode
|
42
41
|
}, curatedProps), {}, {
|
@@ -74,10 +74,6 @@ var Dropzone = exports.Dropzone = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
74
74
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
75
75
|
files = _useState2[0],
|
76
76
|
setFiles = _useState2[1];
|
77
|
-
var _useState3 = (0, _react.useState)(false),
|
78
|
-
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
79
|
-
focused = _useState4[0],
|
80
|
-
setFocused = _useState4[1];
|
81
77
|
var _useField = (0, _Field.useField)({
|
82
78
|
required: required
|
83
79
|
}),
|
@@ -118,7 +114,7 @@ var Dropzone = exports.Dropzone = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
118
114
|
"aria-labelledby": labelId,
|
119
115
|
"aria-describedby": descriptionId,
|
120
116
|
"aria-invalid": isInvalid,
|
121
|
-
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n relative flex items-center group/dropzone\n border rounded\n overflow-hidden transition-all ease-in-out delay-100\n
|
117
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n relative flex items-center group/dropzone\n border rounded\n overflow-hidden transition-all ease-in-out delay-100\n focusable\n min-h-16\n ", "\n ", "\n ", ""])), disabled ? "cursor-not-allowed border-grey-200/60 shadow-none bg-gradient-to-b from-white to-grey-100" : "shadow-field cursor-pointer border-grey-500", isDragReject && !disabled ? "border-red-200 cursor-not-allowed" : isDragActive ? "border-accent-500 cursor-pointer" : null, isInvalid ? "bg-red-100 border-red-700 hover:bg-red-50" : "bg-white hover:bg-grey-50"), className),
|
122
118
|
onClick: function onClick(evt) {
|
123
119
|
// Helps with https://github.com/react-dropzone/react-dropzone/issues/182
|
124
120
|
if (evt.target.closest("label")) {
|
@@ -128,13 +124,7 @@ var Dropzone = exports.Dropzone = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
128
124
|
})), {}, {
|
129
125
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread({}, getInputProps({
|
130
126
|
id: dropzoneId,
|
131
|
-
required: required
|
132
|
-
onFocus: function onFocus() {
|
133
|
-
return setFocused(true);
|
134
|
-
},
|
135
|
-
onBlur: function onBlur() {
|
136
|
-
return setFocused(false);
|
137
|
-
}
|
127
|
+
required: required
|
138
128
|
}))), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
139
129
|
className: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["flex-1 flex items-center justify-center space-x-2 display-body"]))),
|
140
130
|
children: files.length > 0 ? files.length > 1 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
|
@@ -159,7 +149,7 @@ var Dropzone = exports.Dropzone = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
159
149
|
})
|
160
150
|
}), clearable && !disabled && !isValueEmpty && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
161
151
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Actions.IconButton, {
|
162
|
-
className: (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["mr-2
|
152
|
+
className: (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["mr-2 invisible group-hover/dropzone:visible group-[:has(&:focus)]/dropzone:visible"]))),
|
163
153
|
title: locale.clearInput,
|
164
154
|
icon: _Icons.XIcon,
|
165
155
|
variant: "subtle",
|
@@ -25,8 +25,8 @@ var _excluded = ["className", "locale"],
|
|
25
25
|
_excluded3 = ["children"],
|
26
26
|
_excluded4 = ["children"];
|
27
27
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
28
|
-
function _toPropertyKey(
|
29
|
-
function _toPrimitive(
|
28
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
29
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
30
30
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
31
31
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
32
32
|
var DEFAULT_ERROR_MESSAGE_LOCALE = {
|
@@ -25,7 +25,7 @@ var _useFormikAutoFocusOnError = require("./utils/useFormikAutoFocusOnError");
|
|
25
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
26
26
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
|
27
27
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
28
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
28
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
29
29
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
30
30
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
31
31
|
var initialFormData = {
|
@@ -30,7 +30,7 @@ var _useFormikAutoFocusOnError = require("./utils/useFormikAutoFocusOnError");
|
|
30
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
31
31
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48;
|
32
32
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
33
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
33
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
34
34
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
35
35
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
36
36
|
var initialFormData = {
|
@@ -23,7 +23,7 @@ var _useFormikAutoFocusOnError = require("./utils/useFormikAutoFocusOnError");
|
|
23
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
24
24
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
|
25
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
26
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
26
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
27
27
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
28
28
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
29
29
|
var initialFormData = {
|
@@ -26,7 +26,7 @@ var _useFormikAutoFocusOnError = require("./utils/useFormikAutoFocusOnError");
|
|
26
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
27
27
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28;
|
28
28
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
29
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
29
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
30
30
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
31
31
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
32
32
|
var initialFormData = {
|