@scaleflex/widget-common 4.4.0 → 4.5.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.
Files changed (120) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/style.css +1126 -0
  3. package/dist/style.min.css +1 -0
  4. package/lib/ApprovalStatus/ApprovalStatus.styled.js +21 -0
  5. package/lib/ApprovalStatus/index.js +104 -0
  6. package/lib/AssetPreview.js +53 -0
  7. package/lib/AutoSuggest.js +166 -0
  8. package/lib/Avatar/Avatar.styled.js +25 -0
  9. package/lib/Avatar/index.js +83 -0
  10. package/lib/AvatarWithStatus/AvatarWithStatus.styled.js +12 -0
  11. package/lib/AvatarWithStatus/index.js +30 -0
  12. package/lib/BackButton.js +46 -0
  13. package/lib/BackdropOverlay.js +77 -0
  14. package/lib/BadgeButton.js +35 -0
  15. package/lib/BaseButton.js +36 -0
  16. package/lib/Button.js +29 -0
  17. package/lib/Carousel/Carousel.styled.js +19 -0
  18. package/lib/Carousel/index.js +136 -0
  19. package/lib/Checkbox.js +55 -0
  20. package/lib/CloseButton.js +46 -0
  21. package/lib/ColorPicker/ColorPicker.styled.js +29 -0
  22. package/lib/ColorPicker/index.js +117 -0
  23. package/lib/ColorPickerModal/ColorPickerModal.styled.js +17 -0
  24. package/lib/ColorPickerModal/index.js +103 -0
  25. package/lib/DatePicker/MyDatePicker.js +350 -0
  26. package/lib/DatePicker/index.js +1 -0
  27. package/lib/DropFilesWindow.js +45 -0
  28. package/lib/FilterItem/FilterItem.styled.js +42 -0
  29. package/lib/FilterItem/index.js +48 -0
  30. package/lib/FilterPopup/FilterPopup.styled.js +16 -0
  31. package/lib/FilterPopup/index.js +85 -0
  32. package/lib/FormControl.js +25 -0
  33. package/lib/FormGroup.js +18 -0
  34. package/lib/FormHelperText.js +29 -0
  35. package/lib/IconLabeledButton.js +32 -0
  36. package/lib/Image/Image.styled.js +16 -0
  37. package/lib/Image/index.js +95 -0
  38. package/lib/ImagePreview/ImagePreview.styled.js +19 -0
  39. package/lib/ImagePreview/index.js +198 -0
  40. package/lib/InputAndLabel.js +77 -0
  41. package/lib/InputGroupTime.js +6 -0
  42. package/lib/InputLabel.js +18 -0
  43. package/lib/ItemButtonOverlay/ItemButtonOverlay.styled.js +33 -0
  44. package/lib/ItemButtonOverlay/index.js +23 -0
  45. package/lib/ItemHoverTopOptions.js +58 -0
  46. package/lib/LoaderView/LoaderView.styled.js +37 -0
  47. package/lib/LoaderView/index.js +32 -0
  48. package/lib/MetaData/FilterMetadataFields.js +115 -0
  49. package/lib/MetaData/FilterMetadataFields.styled.js +16 -0
  50. package/lib/MetaData/MetaDataField.js +246 -0
  51. package/lib/MetaData/MetaDataFieldTypes/MetaDataFieldBooleanType.js +36 -0
  52. package/lib/MetaData/MetaDataFieldTypes/MetaDataFieldDateType.js +53 -0
  53. package/lib/MetaData/MetaDataFieldTypes/MetaDataFieldMultiSelectType.js +71 -0
  54. package/lib/MetaData/MetaDataFieldTypes/MetaDataFieldNumericType.js +45 -0
  55. package/lib/MetaData/MetaDataFieldTypes/MetaDataFieldSelectType.js +69 -0
  56. package/lib/MetaData/MetaDataFieldTypes/MetaDataFieldTagsType.js +143 -0
  57. package/lib/MetaData/MetaDataFieldTypes/MetaDataFieldTextType.js +42 -0
  58. package/lib/MetaData/MetaDataFieldTypes/MetaDataFieldTextareaType.js +72 -0
  59. package/lib/MetaData/MetaDataFieldTypes/MetaDataFieldTypes.styled.js +57 -0
  60. package/lib/MetaData/MetaDataFieldTypes/MetadataAttachmentsFieldType/AttachmentsAssetsMetadataAccordion.styled.js +95 -0
  61. package/lib/MetaData/MetaDataFieldTypes/MetadataAttachmentsFieldType/MetadataAttachmentsAction.js +188 -0
  62. package/lib/MetaData/MetaDataFieldTypes/MetadataAttachmentsFieldType/MetadataAttachmentsFieldType.constants.js +48 -0
  63. package/lib/MetaData/MetaDataFieldTypes/MetadataAttachmentsFieldType/MetadataAttachmentsInfo.js +93 -0
  64. package/lib/MetaData/MetaDataFieldTypes/MetadataAttachmentsFieldType/index.js +114 -0
  65. package/lib/MetaData/MetaDataFieldTypes/MetadataFieldUriType.js +71 -0
  66. package/lib/MetaData/MetaDataFieldTypes/MetadataGeoPointField/MetadataGeoPointField.styled.js +8 -0
  67. package/lib/MetaData/MetaDataFieldTypes/MetadataGeoPointField/constants.js +10 -0
  68. package/lib/MetaData/MetaDataFieldTypes/MetadataGeoPointField/index.js +135 -0
  69. package/lib/MetaData/MetaDataFieldTypes/index.js +9 -0
  70. package/lib/MetaData/MetaDataFieldTypes.hooks.js +53 -0
  71. package/lib/OverlayCard/OverlayCard.styled.js +8 -0
  72. package/lib/OverlayCard/index.js +28 -0
  73. package/lib/PoweredBy.js +12 -0
  74. package/lib/Radiobox.js +63 -0
  75. package/lib/RegionalVariantsFilters/RegionalVariantFilters.styled.js +17 -0
  76. package/lib/RegionalVariantsFilters/index.js +160 -0
  77. package/lib/SVGUrlToElement.js +73 -0
  78. package/lib/SearchGroup/SearchGroup.styled.js +93 -0
  79. package/lib/SearchGroup/index.js +293 -0
  80. package/lib/Spinner.js +40 -0
  81. package/lib/SuggestedSelectInput/SuggestedSelectInput.styled.js +57 -0
  82. package/lib/SuggestedSelectInput/index.js +238 -0
  83. package/lib/SuggestedTagsInput/SuggestedTagsInput.js +295 -0
  84. package/lib/SuggestedTagsInput/SuggestedTagsInput.styled.js +83 -0
  85. package/lib/SuggestedTagsInput/SuggestedTagsInput.utils.js +15 -0
  86. package/lib/SuggestedTagsInput/SuggestedTagsInputSkeleton.js +14 -0
  87. package/lib/Tabs.js +62 -0
  88. package/lib/ToggleButton/ToggleButton.styled.js +16 -0
  89. package/lib/ToggleButton/index.js +16 -0
  90. package/lib/Transitions/SlideTransition.js +24 -0
  91. package/lib/Transitions/TransitionWrapper.js +83 -0
  92. package/lib/Transitions/Transitions.styled.js +8 -0
  93. package/lib/Transitions/index.js +2 -0
  94. package/lib/Typography/Typography.js +47 -0
  95. package/lib/Typography/Typography.mixin.js +46 -0
  96. package/lib/Typography/Typography.styled.js +18 -0
  97. package/lib/Typography/index.js +3 -0
  98. package/lib/Typography/types/index.js +1 -0
  99. package/lib/Typography/types/variant.js +9 -0
  100. package/lib/UploadFileFloatyLabel/UploadFileFloatyLabel.mixin.js +23 -0
  101. package/lib/UploadFileFloatyLabel/UploadFileFloatyLabel.styled.js +24 -0
  102. package/lib/UploadFileFloatyLabel/index.js +12 -0
  103. package/lib/UsersAutocomplete/Tag.js +25 -0
  104. package/lib/UsersAutocomplete/Tag.styled.js +35 -0
  105. package/lib/UsersAutocomplete/UsersAutocomplete.styled.js +94 -0
  106. package/lib/UsersAutocomplete/index.js +303 -0
  107. package/lib/VirtualGrid/VirtualGrid.styled.js +33 -0
  108. package/lib/VirtualGrid/VirtualGrid.utils.js +38 -0
  109. package/lib/VirtualGrid/VirtualGridItem.js +15 -0
  110. package/lib/VirtualGrid/index.js +252 -0
  111. package/lib/VirtualList/VirtualListItem.js +14 -0
  112. package/lib/VirtualList/index.js +105 -0
  113. package/lib/hooks/index.js +4 -0
  114. package/lib/hooks/useDebounce.js +24 -0
  115. package/lib/hooks/useInputWithLocaleNumber.js +115 -0
  116. package/lib/hooks/useIsUnMountedRef.js +12 -0
  117. package/lib/hooks/useKeyboardNavigation.js +60 -0
  118. package/lib/hooks/useUpdateEffect.js +19 -0
  119. package/lib/index.js +36 -0
  120. package/package.json +4 -4
package/lib/Tabs.js ADDED
@@ -0,0 +1,62 @@
1
+ var _excluded = ["tabs", "activeTab", "onClick", "color", "margin", "innerMarginRight", "innerMarginLeft", "file", "iconPrimaryColor", "iconAccentColor"];
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
+ var Tabs = function Tabs(_ref) {
6
+ var tabs = _ref.tabs,
7
+ activeTab = _ref.activeTab,
8
+ onClick = _ref.onClick,
9
+ color = _ref.color,
10
+ margin = _ref.margin,
11
+ innerMarginRight = _ref.innerMarginRight,
12
+ innerMarginLeft = _ref.innerMarginLeft,
13
+ file = _ref.file,
14
+ iconPrimaryColor = _ref.iconPrimaryColor,
15
+ iconAccentColor = _ref.iconAccentColor,
16
+ props = _objectWithoutProperties(_ref, _excluded);
17
+ var _isHidden = function _isHidden(tab) {
18
+ if (typeof tab.hidden === 'boolean') {
19
+ return tab.hidden;
20
+ }
21
+ return false;
22
+ };
23
+ var tabColor = function tabColor(tab) {
24
+ return tab.id === activeTab.id ? iconAccentColor : iconPrimaryColor;
25
+ };
26
+ return /*#__PURE__*/_jsxs("div", {
27
+ className: "filerobot-common-Tabs",
28
+ style: {
29
+ backgroundColor: color,
30
+ marginRight: margin,
31
+ marginLeft: margin
32
+ },
33
+ children: [/*#__PURE__*/_jsx("div", {
34
+ className: "filerobot-common-Tabs-wrapper",
35
+ style: {
36
+ marginRight: innerMarginRight,
37
+ marginLeft: innerMarginLeft
38
+ },
39
+ children: tabs.filter(function (tab) {
40
+ return !_isHidden(tab);
41
+ }).map(function (tab) {
42
+ return /*#__PURE__*/_jsxs("div", {
43
+ className: "filerobot-common-Tabs-panel",
44
+ children: [/*#__PURE__*/_jsx("input", {
45
+ id: tab.id,
46
+ type: "radio",
47
+ checked: tab.id === activeTab.id,
48
+ onChange: function onChange() {
49
+ return onClick ? onClick(tab.id) : null;
50
+ }
51
+ }), /*#__PURE__*/_jsxs("label", {
52
+ htmlFor: tab.id,
53
+ children: [tab.icon ? tab.icon(tabColor(tab)) : null, props.i18n(tab.i18nStr)]
54
+ }), /*#__PURE__*/_jsx("span", {
55
+ className: "bottom-line"
56
+ })]
57
+ }, tab.id);
58
+ })
59
+ }), props.children]
60
+ });
61
+ };
62
+ export default Tabs;
@@ -0,0 +1,16 @@
1
+ var _templateObject, _templateObject2;
2
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
3
+ import { PC } from '@scaleflex/widget-common';
4
+ import { Button } from '@scaleflex/ui/core';
5
+ import styled, { css } from 'styled-components';
6
+ var ButtonTrigger = styled(Button)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 24px 0 0 24px;\n\n ", "\n"])), function (_ref) {
7
+ var breakpoints = _ref.theme.breakpoints;
8
+ return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", " {\n margin: 16px 0 0 16px;\n }\n\n &:hover {\n border: 1px solid ", ";\n }\n "])), breakpoints.down('sm'), function (_ref2) {
9
+ var theme = _ref2.theme;
10
+ return theme.palette[PC.BackgroundSecondary];
11
+ });
12
+ });
13
+ var Styled = {
14
+ ButtonTrigger: ButtonTrigger
15
+ };
16
+ export default Styled;
@@ -0,0 +1,16 @@
1
+ import Styled from './ToggleButton.styled';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ function ToggleButton(_ref) {
4
+ var label = _ref.label,
5
+ onClick = _ref.onClick;
6
+ return /*#__PURE__*/_jsx(Styled.ButtonTrigger, {
7
+ active: false,
8
+ buttonType: "sidebar",
9
+ color: "secondary",
10
+ sideBarType: "left",
11
+ size: "sm",
12
+ onClick: onClick,
13
+ children: label
14
+ });
15
+ }
16
+ export default ToggleButton;
@@ -0,0 +1,24 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["children", "transitionStyle"];
3
+ 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; }
4
+ 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) { _defineProperty(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; }
5
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
+ 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); }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
+ import { TransitionWrapper } from './';
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ var SlideTransition = function SlideTransition(_ref) {
13
+ var children = _ref.children,
14
+ transitionStyle = _ref.transitionStyle,
15
+ props = _objectWithoutProperties(_ref, _excluded);
16
+ return /*#__PURE__*/_jsx(TransitionWrapper, _objectSpread(_objectSpread({
17
+ transitionStyle: transitionStyle,
18
+ transitionClass: "filerobot-transition-slideDownUp",
19
+ transitionTimeoutInMS: 250
20
+ }, props), {}, {
21
+ children: children
22
+ }));
23
+ };
24
+ export default SlideTransition;
@@ -0,0 +1,83 @@
1
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
+ import { useEffect, useRef, useState } from 'react';
8
+ import ignoreEvent from '@scaleflex/widget-utils/lib/ignoreEvent';
9
+ import Styled from './Transitions.styled';
10
+
11
+ // transitionClass = the class name that has the animation
12
+ // it must have -enter, -enter-active, -leave, -leave-active sub classes
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ var TransitionWrapper = function TransitionWrapper(_ref) {
15
+ var children = _ref.children,
16
+ transitionClass = _ref.transitionClass,
17
+ transitionTimeoutInMS = _ref.transitionTimeoutInMS,
18
+ zIndex = _ref.zIndex,
19
+ handleClose = _ref.handleClose,
20
+ viewReset = _ref.viewReset,
21
+ transitionStyle = _ref.transitionStyle,
22
+ _ref$noDragDropEvents = _ref.noDragDropEvents,
23
+ noDragDropEvents = _ref$noDragDropEvents === void 0 ? true : _ref$noDragDropEvents;
24
+ var _useState = useState(children || null),
25
+ _useState2 = _slicedToArray(_useState, 2),
26
+ oldChildren = _useState2[0],
27
+ setOldChildren = _useState2[1];
28
+ var _useState3 = useState(false),
29
+ _useState4 = _slicedToArray(_useState3, 2),
30
+ isApplied = _useState4[0],
31
+ setIsApplied = _useState4[1];
32
+ var wrapperRef = useRef(null);
33
+ useEffect(function () {
34
+ if (wrapperRef && wrapperRef !== null && wrapperRef !== void 0 && wrapperRef.current) {
35
+ var isChildrenArray = Array.isArray(children);
36
+ var hasChildren = children && (isChildrenArray && children.filter(function (child) {
37
+ return child;
38
+ }).length > 0 || !isChildrenArray);
39
+ if (hasChildren) {
40
+ setTimeout(function () {
41
+ if (typeof viewReset === 'function' && !isApplied) {
42
+ viewReset(true);
43
+ }
44
+ if (wrapperRef.current) {
45
+ wrapperRef.current.classList.add("".concat(transitionClass, "-enter-active"));
46
+ }
47
+ }, 0);
48
+ setIsApplied(true);
49
+ setOldChildren(children);
50
+ } else if (isApplied) {
51
+ setTimeout(function () {
52
+ if (wrapperRef.current) {
53
+ wrapperRef.current.classList.add("".concat(transitionClass, "-leave-active"));
54
+ }
55
+ setTimeout(function () {
56
+ if (wrapperRef.current) {
57
+ wrapperRef.current.classList.remove('--applied');
58
+ }
59
+ setOldChildren(null);
60
+ }, transitionTimeoutInMS + 1);
61
+ }, 0);
62
+ setIsApplied(true);
63
+ }
64
+ }
65
+ }, [children]);
66
+ var transitionClasses = children ? " --applied ".concat(transitionClass, "-enter") : isApplied ? " --applied ".concat(transitionClass, "-leave") : '';
67
+ var renderedChildren = oldChildren || children;
68
+ return /*#__PURE__*/_jsx(Styled.TransitionWrapper, {
69
+ style: {
70
+ zIndex: zIndex
71
+ },
72
+ onDrop: noDragDropEvents ? ignoreEvent : undefined,
73
+ onDragOver: noDragDropEvents ? ignoreEvent : undefined,
74
+ onDragLeave: noDragDropEvents ? ignoreEvent : undefined,
75
+ children: /*#__PURE__*/_jsx("div", {
76
+ className: "filerobot-TransitionWrapper".concat(transitionClasses),
77
+ ref: wrapperRef,
78
+ style: transitionStyle,
79
+ children: renderedChildren
80
+ })
81
+ });
82
+ };
83
+ export default TransitionWrapper;
@@ -0,0 +1,8 @@
1
+ var _templateObject;
2
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
3
+ import styled from 'styled-components';
4
+ var TransitionWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral([""])));
5
+ var Styled = {
6
+ TransitionWrapper: TransitionWrapper
7
+ };
8
+ export default Styled;
@@ -0,0 +1,2 @@
1
+ export { default as TransitionWrapper } from './TransitionWrapper';
2
+ export { default as SlideTransition } from './SlideTransition';
@@ -0,0 +1,47 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["fontVariant", "colorVariant", "noWrap", "ref"];
3
+ 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; }
4
+ 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) { _defineProperty(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; }
5
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
+ 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); }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
+ import PT from 'prop-types';
11
+ import { objectValues } from '@scaleflex/ui/utils/functions';
12
+ import { Color as PaletteColor } from '@scaleflex/ui/utils/types/palette/color';
13
+ import { FontVariant } from '@scaleflex/ui/utils/types/typography/font-variant';
14
+ import { Shadows as PaletteShadows } from '@scaleflex/ui/utils/types/shadows';
15
+ import { Variant } from './types';
16
+ import Styled from './Typography.styled';
17
+ import { jsx as _jsx } from "react/jsx-runtime";
18
+ var Typography = function Typography(_ref) {
19
+ var fontVariant = _ref.fontVariant,
20
+ colorVariant = _ref.colorVariant,
21
+ noWrap = _ref.noWrap,
22
+ ref = _ref.ref,
23
+ rest = _objectWithoutProperties(_ref, _excluded);
24
+ return /*#__PURE__*/_jsx(Styled.Typography, _objectSpread({
25
+ ref: ref,
26
+ $fontVariant: fontVariant,
27
+ $colorVariant: colorVariant,
28
+ $noWrap: noWrap
29
+ }, rest));
30
+ };
31
+ Typography.defaultProps = {
32
+ variant: Variant.Body,
33
+ noWrap: false
34
+ };
35
+ Typography.propTypes = {
36
+ variant: PT.oneOf(objectValues(Variant)),
37
+ fontVariant: PT.oneOf(objectValues(FontVariant)),
38
+ colorVariant: PT.oneOf(objectValues(PaletteColor)),
39
+ noWrap: PT.bool
40
+ };
41
+
42
+ // Aliases
43
+ var PC = PaletteColor;
44
+ var FV = FontVariant;
45
+ var PSH = PaletteShadows;
46
+ export default Typography;
47
+ export { PC, FV, PSH };
@@ -0,0 +1,46 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
5
+ 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); }
6
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
7
+ import { css } from 'styled-components';
8
+ import { Color as PC } from '@scaleflex/ui/utils/types/palette/color';
9
+ import { FontVariant as FV } from '@scaleflex/ui/utils/types/typography/font-variant';
10
+ import { Variant } from './types';
11
+ export var variantMixin = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Variant.Title, function (_ref) {
12
+ var _ref$theme = _ref.theme,
13
+ palette = _ref$theme.palette,
14
+ font = _ref$theme.typography.font;
15
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n "])), font[FV.LabelExtraLarge], palette[PC.TextPrimary]);
16
+ }), Variant.Title2, function (_ref2) {
17
+ var _ref2$theme = _ref2.theme,
18
+ palette = _ref2$theme.palette,
19
+ font = _ref2$theme.typography.font;
20
+ return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n font-weight: normal;\n "])), font[FV.LabelExtraLarge], palette[PC.TextSecondary]);
21
+ }), Variant.Subtitle, function (_ref3) {
22
+ var _ref3$theme = _ref3.theme,
23
+ palette = _ref3$theme.palette,
24
+ font = _ref3$theme.typography.font;
25
+ return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n "])), font[FV.ButtonMdEmphasis], palette[PC.TextPrimary]);
26
+ }), Variant.Subtitle2, function (_ref4) {
27
+ var _ref4$theme = _ref4.theme,
28
+ palette = _ref4$theme.palette,
29
+ font = _ref4$theme.typography.font;
30
+ return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n font-weight: normal;\n "])), font[FV.ButtonMdEmphasis], palette[PC.TextSecondary]);
31
+ }), Variant.Body, function (_ref5) {
32
+ var _ref5$theme = _ref5.theme,
33
+ palette = _ref5$theme.palette,
34
+ font = _ref5$theme.typography.font;
35
+ return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n "])), font[FV.TextNormal], palette[PC.TextPrimary]);
36
+ }), Variant.LabelSm, function (_ref6) {
37
+ var _ref6$theme = _ref6.theme,
38
+ palette = _ref6$theme.palette,
39
+ font = _ref6$theme.typography.font;
40
+ return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n "])), font[FV.LabelSmall], palette[PC.TextSecondary]);
41
+ }), Variant.Hint, function (_ref7) {
42
+ var _ref7$theme = _ref7.theme,
43
+ palette = _ref7$theme.palette,
44
+ font = _ref7$theme.typography.font;
45
+ return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n "])), font[FV.TextSmall], palette[PC.TextSecondary]);
46
+ });
@@ -0,0 +1,18 @@
1
+ var _templateObject;
2
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
3
+ import styled, { css } from 'styled-components';
4
+ import { variantMixin } from './Typography.mixin';
5
+ var Typography = styled.div(function (_ref) {
6
+ var _ref$theme = _ref.theme,
7
+ palette = _ref$theme.palette,
8
+ font = _ref$theme.typography.font,
9
+ variant = _ref.variant,
10
+ $fontVariant = _ref.$fontVariant,
11
+ $colorVariant = _ref.$colorVariant,
12
+ $noWrap = _ref.$noWrap;
13
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n\n ", "\n "])), variant && variantMixin[variant], $fontVariant && font[$fontVariant], $colorVariant && palette[$colorVariant] ? "color: ".concat(palette[$colorVariant], ";") : '', $noWrap && "\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n width: 100%;\n ");
14
+ });
15
+ var Styled = {
16
+ Typography: Typography
17
+ };
18
+ export default Styled;
@@ -0,0 +1,3 @@
1
+ import Typography from './Typography';
2
+ export * from './Typography';
3
+ export default Typography;
@@ -0,0 +1 @@
1
+ export * from './variant';
@@ -0,0 +1,9 @@
1
+ export var Variant = {
2
+ Title: 'title',
3
+ Title2: 'title2',
4
+ Subtitle: 'subtitle',
5
+ Subtitle2: 'subtitle2',
6
+ Body: 'body',
7
+ LabelSm: 'label-sm',
8
+ Hint: 'hint'
9
+ };
@@ -0,0 +1,23 @@
1
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
2
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
3
+ import { css } from 'styled-components';
4
+ import { PC } from '@scaleflex/widget-common';
5
+ var variants = {
6
+ label: function label(_ref) {
7
+ var palette = _ref.theme.palette;
8
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: ", ";\n color: ", ";\n"])), palette[PC.IconsPrimary], palette[PC.BackgroundStateless]);
9
+ },
10
+ 'label-success': function labelSuccess(_ref2) {
11
+ var palette = _ref2.theme.palette;
12
+ return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n color: ", ";\n\n &:hover.SfxButton-root {\n background-color: ", ";\n }\n"])), palette[PC.Success], palette[PC.BackgroundStateless], palette[PC.Success]);
13
+ },
14
+ button: function button(_ref3) {
15
+ var palette = _ref3.theme.palette;
16
+ return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n cursor: pointer;\n background-color: ", ";\n color: ", ";\n "])), palette[PC.IconsPrimary], palette[PC.BackgroundStateless]);
17
+ },
18
+ 'button-error': function buttonError(_ref4) {
19
+ var palette = _ref4.theme.palette;
20
+ return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n cursor: pointer;\n background-color: ", ";\n color: ", ";\n "])), palette[PC.Error], palette[PC.BackgroundStateless]);
21
+ }
22
+ };
23
+ export { variants };
@@ -0,0 +1,24 @@
1
+ var _templateObject;
2
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
3
+ import styled from 'styled-components';
4
+ import { PC } from '@scaleflex/widget-common';
5
+ import { IconButton } from '@scaleflex/ui/core';
6
+ import { variants } from './UploadFileFloatyLabel.mixin';
7
+ var UploadFileFloatyLabel = styled(IconButton)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n width: 22px;\n height: 22px;\n padding: 6px;\n cursor: auto;\n border: 1px solid ", ";\n border-radius: 50%;\n transform: translate(30%, -30%);\n transition: all 100ms ease-out;\n opacity: ", ";\n\n ", "\n\n &:hover {\n background-color: ", ";\n }\n"])), function (_ref) {
8
+ var palette = _ref.theme.palette;
9
+ return palette[PC.BackgroundStateless];
10
+ }, function (_ref2) {
11
+ var hide = _ref2.hide;
12
+ return hide ? 0 : 1;
13
+ }, function (_ref3) {
14
+ var _ref3$variant = _ref3.variant,
15
+ variant = _ref3$variant === void 0 ? 'button' : _ref3$variant;
16
+ return variants[variant];
17
+ }, function (_ref4) {
18
+ var palette = _ref4.theme.palette;
19
+ return palette[PC.IconsPrimaryHover];
20
+ });
21
+ var Styled = {
22
+ UploadFileFloatyLabel: UploadFileFloatyLabel
23
+ };
24
+ export default Styled;
@@ -0,0 +1,12 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ 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; }
3
+ 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) { _defineProperty(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; }
4
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ 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); }
7
+ import Styled from './UploadFileFloatyLabel.styled';
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ var UploadFileFloatyLabel = function UploadFileFloatyLabel(props) {
10
+ return /*#__PURE__*/_jsx(Styled.UploadFileFloatyLabel, _objectSpread({}, props));
11
+ };
12
+ export default UploadFileFloatyLabel;
@@ -0,0 +1,25 @@
1
+ import CrossIcon from '@scaleflex/icons/cross-outline';
2
+ import Styled from './Tag.styled';
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ var Tag = function Tag(_ref) {
5
+ var label = _ref.label,
6
+ icon = _ref.icon,
7
+ onRemove = _ref.onRemove,
8
+ onClick = _ref.onClick;
9
+ return /*#__PURE__*/_jsxs(Styled.Tag, {
10
+ onClick: onClick,
11
+ children: [/*#__PURE__*/_jsxs(Styled.TagBody, {
12
+ children: [/*#__PURE__*/_jsx(Styled.TagIcon, {
13
+ children: icon
14
+ }), /*#__PURE__*/_jsx(Styled.TagLabel, {
15
+ children: label
16
+ })]
17
+ }), /*#__PURE__*/_jsx(Styled.TagAction, {
18
+ children: /*#__PURE__*/_jsx(CrossIcon, {
19
+ size: 12,
20
+ onClick: onRemove
21
+ })
22
+ })]
23
+ });
24
+ };
25
+ export default Tag;
@@ -0,0 +1,35 @@
1
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
2
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
3
+ import styled from 'styled-components';
4
+ import { FV, PC } from '../index';
5
+ var Tag = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n border-radius: 16px;\n padding: 6px 12px;\n height: 28px;\n border: 1px solid ", ";\n background: ", ";\n gap: 8px;\n"])), function (_ref) {
6
+ var theme = _ref.theme;
7
+ return theme.palette[PC.BordersSecondary];
8
+ }, function (_ref2) {
9
+ var theme = _ref2.theme;
10
+ return theme.palette[PC.BackgroundStateless];
11
+ });
12
+ var TagBody = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 6px;\n"])));
13
+ var TagIcon = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([""])));
14
+ var TagLabel = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_ref3) {
15
+ var theme = _ref3.theme;
16
+ return theme.typography.font[FV.InputMd];
17
+ }, function (_ref4) {
18
+ var theme = _ref4.theme;
19
+ return theme.palette[PC.TextPrimary];
20
+ });
21
+ var TagAction = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n color: ", ";\n\n svg {\n cursor: pointer;\n color: ", ";\n }\n"])), function (_ref5) {
22
+ var theme = _ref5.theme;
23
+ return theme.palette[PC.IconsPrimary];
24
+ }, function (_ref6) {
25
+ var theme = _ref6.theme;
26
+ return theme.palette[PC.IconsSecondary];
27
+ });
28
+ var Styled = {
29
+ Tag: Tag,
30
+ TagBody: TagBody,
31
+ TagIcon: TagIcon,
32
+ TagLabel: TagLabel,
33
+ TagAction: TagAction
34
+ };
35
+ export default Styled;
@@ -0,0 +1,94 @@
1
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
2
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
3
+ import styled from 'styled-components';
4
+ import { MenuItem, Label as SfxLabel } from '@scaleflex/ui/core';
5
+ import { FV, PC } from '../';
6
+ var Container = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: 2px;\n"])));
7
+ var FieldItemLoader = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n margin-left: 8px;\n"])));
8
+ var FieldContainer = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n background-color: ", ";\n border-radius: 4px;\n padding: 10px 14px;\n gap: 8px;\n max-height: ", ";\n width: ", ";\n overflow: ", ";\n\n &:focus,\n &:focus-within {\n border-color: ", ";\n }\n\n ", " {\n svg {\n animation: ", ";\n }\n }\n"])), function (_ref) {
9
+ var theme = _ref.theme;
10
+ return theme.palette[PC.BackgroundStateless];
11
+ }, function (_ref2) {
12
+ var maxHeight = _ref2.maxHeight;
13
+ return maxHeight ? "".concat(maxHeight, "px") : 'auto';
14
+ }, function (_ref3) {
15
+ var fullWidth = _ref3.fullWidth;
16
+ return fullWidth ? '100%' : '400px';
17
+ }, function (_ref4) {
18
+ var maxHeight = _ref4.maxHeight;
19
+ return maxHeight ? 'auto' : 'hidden';
20
+ }, function (_ref5) {
21
+ var theme = _ref5.theme;
22
+ return theme.palette[PC.AccentStateless];
23
+ }, FieldItemLoader, function (_ref6) {
24
+ var $loading = _ref6.$loading;
25
+ return $loading ? 'spinner 1.2s linear infinite' : '1.2s';
26
+ });
27
+ var FieldContainerWrapper = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n min-height: 40px;\n border: 1px solid ", ";\n"])), function (_ref7) {
28
+ var theme = _ref7.theme;
29
+ return theme.palette[PC.BorderPrimaryStateless];
30
+ });
31
+ var FieldItem = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n max-width: 100%;\n"])));
32
+ var FieldItemInput = styled.input(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", ";\n min-width: 240px;\n background: transparent;\n border: none;\n outline: none;\n height: ", "px;\n flex-grow: 1;\n display: ", ";\n\n *:focus > &,\n *:focus-within > &,\n &:focus,\n &:focus-within {\n display: block !important;\n }\n\n &::placeholder {\n color: ", ";\n }\n"])), function (_ref8) {
33
+ var font = _ref8.theme.typography.font;
34
+ return font[FV.InputLg];
35
+ }, function (_ref9) {
36
+ var noSelection = _ref9.noSelection;
37
+ return "".concat(noSelection ? 18 : 28);
38
+ }, function (_ref10) {
39
+ var noSelection = _ref10.noSelection,
40
+ value = _ref10.value,
41
+ isMenuOpened = _ref10.isMenuOpened;
42
+ return noSelection || value || isMenuOpened ? 'block' : 'none';
43
+ }, function (_ref11) {
44
+ var theme = _ref11.theme;
45
+ return theme.palette[PC.TextPlaceholder];
46
+ });
47
+ var OptionMenuItem = styled(MenuItem)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n padding: 8px;\n border-radius: 4px;\n gap: 12px;\n justify-content: start;\n\n ", "\n ", "\n"])), function (_ref12) {
48
+ var disabled = _ref12.disabled;
49
+ return disabled && 'opacity: 0.6;';
50
+ }, function (_ref13) {
51
+ var disabled = _ref13.disabled;
52
+ return !disabled && 'cursor: pointer;';
53
+ });
54
+ var OptionDesc = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n gap: 2px;\n"])));
55
+ var OptionDescTitle = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n ", ";\n color: ", ";\n display: flex;\n gap: 8px;\n align-items: center;\n\n svg {\n color: ", ";\n }\n"])), function (_ref14) {
56
+ var font = _ref14.theme.typography.font;
57
+ return font[FV.TextMedium];
58
+ }, function (_ref15) {
59
+ var theme = _ref15.theme;
60
+ return theme.palette[PC.TextPrimary];
61
+ }, function (_ref16) {
62
+ var theme = _ref16.theme;
63
+ return theme.palette[PC.IconsSecondary];
64
+ });
65
+ var OptionDescSubtitle = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n ", ";\n color: ", ";\n"])), function (_ref17) {
66
+ var font = _ref17.theme.typography.font;
67
+ return font[FV.TextMedium];
68
+ }, function (_ref18) {
69
+ var theme = _ref18.theme;
70
+ return theme.palette[PC.TextSecondary];
71
+ });
72
+ var Label = styled(SfxLabel)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n ", ";\n color: ", ";\n"])), function (_ref19) {
73
+ var font = _ref19.theme.typography.font;
74
+ return font[FV.TextMedium];
75
+ }, function (_ref20) {
76
+ var theme = _ref20.theme;
77
+ return theme.palette[PC.TextSecondary];
78
+ });
79
+ var ActionButtonWrapper = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n padding: 0 14px 10px 14px;\n column-gap: 16px;\n"])));
80
+ var Styled = {
81
+ Container: Container,
82
+ FieldContainer: FieldContainer,
83
+ FieldItem: FieldItem,
84
+ FieldItemLoader: FieldItemLoader,
85
+ FieldItemInput: FieldItemInput,
86
+ OptionMenuItem: OptionMenuItem,
87
+ FieldContainerWrapper: FieldContainerWrapper,
88
+ OptionDesc: OptionDesc,
89
+ ActionButtonWrapper: ActionButtonWrapper,
90
+ OptionDescTitle: OptionDescTitle,
91
+ OptionDescSubtitle: OptionDescSubtitle,
92
+ Label: Label
93
+ };
94
+ export default Styled;