plataforma-fundacao-componentes 2.26.6 → 2.26.7
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/assets/icons/Bell16Icon.d.ts +1 -1
- package/dist/assets/icons/BellIcon.d.ts +1 -1
- package/dist/components/container/Container.d.ts +0 -3
- package/dist/components/floatingPanel/FloatingPanel.d.ts +2 -1
- package/dist/components/header/Header.d.ts +2 -3
- package/dist/components/itemDropdownDownload/ItemDropdownDownload.d.ts +2 -2
- package/dist/components/select/Select.d.ts +0 -1
- package/dist/components/select/Select.stories.d.ts +3 -1
- package/dist/hooks/useFloatingPanel/useFloatingPanel.d.ts +2 -1
- package/dist/index.css +19 -9
- package/dist/index.d.ts +2 -2
- package/dist/index.js +50 -39
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +50 -39
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/HTMLutils.d.ts +0 -1
- package/dist/utils/MaskUtils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React, { SVGProps } from 'react';
|
|
2
2
|
import './Icon.scss';
|
|
3
|
-
export
|
|
3
|
+
export declare const Bell16Icon: ({ className, ...props }: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React, { SVGProps } from 'react';
|
|
2
2
|
import './Icon.scss';
|
|
3
|
-
export
|
|
3
|
+
export declare const BellIcon: ({ className, ...props }: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
@@ -12,8 +12,5 @@ interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
12
12
|
hasAdvancedHeader?: boolean;
|
|
13
13
|
}
|
|
14
14
|
declare function Container({ position, fluid, verticalPadding, hasMobileButton, hasHeader, hasAdvancedHeader, className, style, ...props }: ContainerProps): React.JSX.Element;
|
|
15
|
-
declare namespace Container {
|
|
16
|
-
var defaultProps: Partial<ContainerProps>;
|
|
17
|
-
}
|
|
18
15
|
declare const _default: React.MemoExoticComponent<typeof Container>;
|
|
19
16
|
export default _default;
|
|
@@ -17,7 +17,8 @@ export interface FloatingPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
17
17
|
offset?: number;
|
|
18
18
|
closeOnOutClick?: boolean;
|
|
19
19
|
closeOnEsc?: boolean;
|
|
20
|
+
heightAvaliableCallback?: (height: number) => void;
|
|
20
21
|
}
|
|
21
|
-
declare function FloatingPanel({ opened, setOpened, className, statedAnchorRef, matchWidth, placement, closeOnEsc, closeOnOutClick, style, fallbackPlacements, offset, ...props }: FloatingPanelProps): React.JSX.Element;
|
|
22
|
+
declare function FloatingPanel({ opened, setOpened, className, statedAnchorRef, matchWidth, placement, closeOnEsc, closeOnOutClick, style, fallbackPlacements, offset, heightAvaliableCallback, ...props }: FloatingPanelProps): React.JSX.Element;
|
|
22
23
|
declare const _default: React.MemoExoticComponent<typeof FloatingPanel>;
|
|
23
24
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { MouseEvent } from 'react';
|
|
1
|
+
import React, { CSSProperties, MouseEvent } from 'react';
|
|
2
2
|
import { HeaderType } from '../../libraries/HeaderThemes';
|
|
3
3
|
import { TooltipPosition } from '../../libraries/Tooltips';
|
|
4
4
|
import './Header.scss';
|
|
@@ -13,7 +13,7 @@ interface HeaderProps {
|
|
|
13
13
|
onClick?: (event?: MouseEvent) => void;
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
className?: string;
|
|
16
|
-
position?: '
|
|
16
|
+
position?: CSSProperties['position'];
|
|
17
17
|
blackBar?: {
|
|
18
18
|
show: boolean;
|
|
19
19
|
label: string;
|
|
@@ -29,7 +29,6 @@ interface HeaderProps {
|
|
|
29
29
|
declare function Header(props: HeaderProps): React.JSX.Element;
|
|
30
30
|
declare namespace Header {
|
|
31
31
|
var defaultProps: {
|
|
32
|
-
position: string;
|
|
33
32
|
theme: HeaderType;
|
|
34
33
|
};
|
|
35
34
|
}
|
|
@@ -10,8 +10,8 @@ export interface ItemDropdownDownloadProps extends ButtonHTMLAttributes<HTMLButt
|
|
|
10
10
|
label: string;
|
|
11
11
|
opened: boolean;
|
|
12
12
|
setOpened: (val: boolean) => void;
|
|
13
|
-
closeOnOutClick
|
|
14
|
-
closeOnEsc
|
|
13
|
+
closeOnOutClick?: boolean;
|
|
14
|
+
closeOnEsc?: boolean;
|
|
15
15
|
downloads?: DownloadItem[];
|
|
16
16
|
}
|
|
17
17
|
declare function ItemDropdownDownload({ label, opened, setOpened, closeOnOutClick, closeOnEsc, downloads, ...props }: ItemDropdownDownloadProps): React.JSX.Element;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Select from './Select';
|
|
3
|
+
import { StoryObj } from '@storybook/react';
|
|
2
4
|
declare const _default: {
|
|
3
5
|
title: string;
|
|
4
6
|
};
|
|
@@ -8,7 +10,7 @@ export declare const Single: () => React.JSX.Element;
|
|
|
8
10
|
export declare const SingleWithoutClear: () => React.JSX.Element;
|
|
9
11
|
export declare const SingleError: () => React.JSX.Element;
|
|
10
12
|
export declare const SingleFilter: () => React.JSX.Element;
|
|
11
|
-
export declare const
|
|
13
|
+
export declare const SingleFilterModal: StoryObj<typeof Select>;
|
|
12
14
|
export declare const SinglePreSelectUniqueOption: () => React.JSX.Element;
|
|
13
15
|
export declare const SinglePreSelectUniqueOptionReadOnly: () => React.JSX.Element;
|
|
14
16
|
export declare const Multiple: () => React.JSX.Element;
|
|
@@ -11,8 +11,9 @@ export interface FloatingPanelProps {
|
|
|
11
11
|
placement?: Placement;
|
|
12
12
|
strategy?: UseFloatingOptions['strategy'];
|
|
13
13
|
fallbackPlacements?: Placement[];
|
|
14
|
+
heightAvaliableCallback?: (height: number) => void;
|
|
14
15
|
}
|
|
15
|
-
export default function useFloatingPanel({ stateOpened, matchWidth, offset, placement, strategy, fallbackPlacements, elements, }: FloatingPanelProps): {
|
|
16
|
+
export default function useFloatingPanel({ stateOpened, matchWidth, offset, placement, strategy, fallbackPlacements, heightAvaliableCallback, elements, }: FloatingPanelProps): {
|
|
16
17
|
panelRef: ((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void);
|
|
17
18
|
panelStyles: import("react").CSSProperties;
|
|
18
19
|
anchorRef: ((node: Element | import("@floating-ui/dom").VirtualElement | null) => void) & ((node: Element | import("@floating-ui/dom").VirtualElement | null) => void);
|
package/dist/index.css
CHANGED
|
@@ -2519,7 +2519,7 @@ h5 {
|
|
|
2519
2519
|
warningDark: #765f00; }
|
|
2520
2520
|
|
|
2521
2521
|
.component-container {
|
|
2522
|
-
position:
|
|
2522
|
+
position: relative;
|
|
2523
2523
|
top: 0;
|
|
2524
2524
|
left: 0;
|
|
2525
2525
|
width: 100%;
|
|
@@ -4238,7 +4238,9 @@ header.component-header {
|
|
|
4238
4238
|
flex-direction: column;
|
|
4239
4239
|
justify-content: center;
|
|
4240
4240
|
align-items: stretch;
|
|
4241
|
-
-webkit-appearance: none;
|
|
4241
|
+
-webkit-appearance: none;
|
|
4242
|
+
-moz-appearance: none;
|
|
4243
|
+
appearance: none; }
|
|
4242
4244
|
.component-input .component-input-label {
|
|
4243
4245
|
color: #323c32;
|
|
4244
4246
|
transition: color 0.3s ease;
|
|
@@ -4260,6 +4262,7 @@ header.component-header {
|
|
|
4260
4262
|
border-color: #cdd3cd; }
|
|
4261
4263
|
.component-input .component-input-input-container .component-input-input {
|
|
4262
4264
|
color: #323c32;
|
|
4265
|
+
caret-color: #33820d;
|
|
4263
4266
|
border-radius: 0;
|
|
4264
4267
|
transition: color 0.3s ease, border-color 0.3s ease;
|
|
4265
4268
|
width: 100%;
|
|
@@ -4309,7 +4312,8 @@ header.component-header {
|
|
|
4309
4312
|
.component-input.component-input-error .component-input-input-container {
|
|
4310
4313
|
border-color: #e60000 !important; }
|
|
4311
4314
|
.component-input.component-input-error .component-input-input-container .component-input-input {
|
|
4312
|
-
color: #e60000 !important;
|
|
4315
|
+
color: #e60000 !important;
|
|
4316
|
+
caret-color: #e60000; }
|
|
4313
4317
|
|
|
4314
4318
|
.component-input.component-input-error .component-input-helper-text {
|
|
4315
4319
|
color: #e60000 !important; }
|
|
@@ -4361,7 +4365,9 @@ header.component-header {
|
|
|
4361
4365
|
.component-input-input:disabled::placeholder {
|
|
4362
4366
|
color: #828a82 !important; }
|
|
4363
4367
|
|
|
4364
|
-
.component-input:not(.component-input-error):not(.force-focus):not(.component-input-disabled):not(
|
|
4368
|
+
.component-input:not(.component-input-error):not(.force-focus):not(.component-input-disabled):not(
|
|
4369
|
+
.component-input-loading
|
|
4370
|
+
) .component-input-input-container:focus-within::before {
|
|
4365
4371
|
opacity: 1;
|
|
4366
4372
|
visibility: visible;
|
|
4367
4373
|
content: '';
|
|
@@ -4372,7 +4378,9 @@ header.component-header {
|
|
|
4372
4378
|
background-color: #33820d;
|
|
4373
4379
|
animation: inputFocus 0.3s ease forwards; }
|
|
4374
4380
|
|
|
4375
|
-
.component-input:not(.component-input-error):not(.force-focus):not(.component-input-disabled):not(
|
|
4381
|
+
.component-input:not(.component-input-error):not(.force-focus):not(.component-input-disabled):not(
|
|
4382
|
+
.component-input-loading
|
|
4383
|
+
) .component-input-input-container:not(:focus-within):not(.force-focus)::before {
|
|
4376
4384
|
opacity: 0;
|
|
4377
4385
|
content: '';
|
|
4378
4386
|
height: 2px;
|
|
@@ -6130,21 +6138,23 @@ h5 {
|
|
|
6130
6138
|
background-color: #fefefe;
|
|
6131
6139
|
-webkit-user-select: none;
|
|
6132
6140
|
-moz-user-select: none;
|
|
6133
|
-
user-select: none;
|
|
6141
|
+
user-select: none;
|
|
6142
|
+
overflow: visible;
|
|
6143
|
+
height: -moz-fit-content;
|
|
6144
|
+
height: fit-content; }
|
|
6134
6145
|
.component-select-panel .component-select-panel-input {
|
|
6135
6146
|
margin-bottom: 6px;
|
|
6136
6147
|
padding: 0 16px;
|
|
6137
6148
|
margin-top: 16px; }
|
|
6138
6149
|
.component-select-panel .component-select-options {
|
|
6139
6150
|
overflow-y: auto;
|
|
6140
|
-
|
|
6141
|
-
max-height: 140px; }
|
|
6151
|
+
max-height: calc(100% - 48px - 40px); }
|
|
6142
6152
|
.component-select-panel .component-select-options:last-child .component-select-single-option,
|
|
6143
6153
|
.component-select-panel .component-select-options:last-child .component-select-multiple-option {
|
|
6144
6154
|
color: #323c32; }
|
|
6145
6155
|
.component-select-panel .component-select-options:last-child .component-select-single-option:last-child,
|
|
6146
6156
|
.component-select-panel .component-select-options:last-child .component-select-multiple-option:last-child {
|
|
6147
|
-
border-radius: 0 0
|
|
6157
|
+
border-radius: 0 0 4px 4px; }
|
|
6148
6158
|
.component-select-panel .component-select-options .component-select-single-option {
|
|
6149
6159
|
min-height: 40px;
|
|
6150
6160
|
width: 100%;
|
package/dist/index.d.ts
CHANGED
|
@@ -170,8 +170,8 @@ import Tooltip from './components/tooltip/Tooltip';
|
|
|
170
170
|
import TooltipManager from './components/tooltipManager/TooltipManager';
|
|
171
171
|
import TopLoader from './components/topLoader/TopLoader';
|
|
172
172
|
import VideoModal from './components/videoModal/VideoModal';
|
|
173
|
-
import Bell16Icon from './assets/icons/Bell16Icon';
|
|
174
|
-
import BellIcon from './assets/icons/BellIcon';
|
|
173
|
+
import { Bell16Icon } from './assets/icons/Bell16Icon';
|
|
174
|
+
import { BellIcon } from './assets/icons/BellIcon';
|
|
175
175
|
import { MiniInformationIcon } from './assets/icons/MiniInformationIcon';
|
|
176
176
|
import { PhonePlusIcon } from './assets/icons/PhonePlusIcon';
|
|
177
177
|
import { Settings16Icon } from './assets/icons/Settings16Icon';
|
package/dist/index.js
CHANGED
|
@@ -169,12 +169,6 @@ var isMobile = function isMobile() {
|
|
|
169
169
|
return navigator.userAgent.match(toMatchItem);
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
|
-
var isiPhone = function isiPhone() {
|
|
173
|
-
var toMatch = [/iPhone/i, /iPad/i, /iPod/i];
|
|
174
|
-
return toMatch.some(function (toMatchItem) {
|
|
175
|
-
return navigator.userAgent.match(toMatchItem);
|
|
176
|
-
});
|
|
177
|
-
};
|
|
178
172
|
var Interval = /*#__PURE__*/function () {
|
|
179
173
|
function Interval(callback, delay) {
|
|
180
174
|
var _this = this;
|
|
@@ -7122,11 +7116,16 @@ var _excluded$8 = ["position", "fluid", "verticalPadding", "hasMobileButton", "h
|
|
|
7122
7116
|
var rootClassName$1U = 'component-container';
|
|
7123
7117
|
function Container(_ref) {
|
|
7124
7118
|
var position = _ref.position,
|
|
7125
|
-
fluid = _ref.fluid,
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7119
|
+
_ref$fluid = _ref.fluid,
|
|
7120
|
+
fluid = _ref$fluid === void 0 ? false : _ref$fluid,
|
|
7121
|
+
_ref$verticalPadding = _ref.verticalPadding,
|
|
7122
|
+
verticalPadding = _ref$verticalPadding === void 0 ? false : _ref$verticalPadding,
|
|
7123
|
+
_ref$hasMobileButton = _ref.hasMobileButton,
|
|
7124
|
+
hasMobileButton = _ref$hasMobileButton === void 0 ? false : _ref$hasMobileButton,
|
|
7125
|
+
_ref$hasHeader = _ref.hasHeader,
|
|
7126
|
+
hasHeader = _ref$hasHeader === void 0 ? false : _ref$hasHeader,
|
|
7127
|
+
_ref$hasAdvancedHeade = _ref.hasAdvancedHeader,
|
|
7128
|
+
hasAdvancedHeader = _ref$hasAdvancedHeade === void 0 ? false : _ref$hasAdvancedHeade,
|
|
7130
7129
|
_ref$className = _ref.className,
|
|
7131
7130
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7132
7131
|
_ref$style = _ref.style,
|
|
@@ -7143,13 +7142,6 @@ function Container(_ref) {
|
|
|
7143
7142
|
className: rootClassName$1U + "-insider"
|
|
7144
7143
|
}, props.children));
|
|
7145
7144
|
}
|
|
7146
|
-
Container.defaultProps = {
|
|
7147
|
-
fluid: false,
|
|
7148
|
-
verticalPadding: false,
|
|
7149
|
-
hasMobileButton: false,
|
|
7150
|
-
hasAdvancedHeader: false,
|
|
7151
|
-
hasHeader: false
|
|
7152
|
-
};
|
|
7153
7145
|
var Container$1 = React.memo(Container);
|
|
7154
7146
|
|
|
7155
7147
|
var _excluded$9 = ["control", "labelPosition", "labelGap", "label", "className"];
|
|
@@ -7180,7 +7172,7 @@ var formatHexadecimalColor = function formatHexadecimalColor(input) {
|
|
|
7180
7172
|
return value;
|
|
7181
7173
|
};
|
|
7182
7174
|
var getStringWithoutSpecialChar = function getStringWithoutSpecialChar(input) {
|
|
7183
|
-
var value = String(input).
|
|
7175
|
+
var value = String(input).normalize('NFD').replace(/(?:[\^`\xA8\xAF\xB4\xB7\xB8\u02B0-\u034E\u0350-\u0357\u035D-\u0362\u0374\u0375\u037A\u0384\u0385\u0483-\u0487\u0559\u0591-\u05A1\u05A3-\u05BD\u05BF\u05C1\u05C2\u05C4\u064B-\u0652\u0657\u0658\u06DF\u06E0\u06E5\u06E6\u06EA-\u06EC\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F5\u0818\u0819\u0898-\u089F\u08C9-\u08D2\u08E3-\u08FE\u093C\u094D\u0951-\u0954\u0971\u09BC\u09CD\u0A3C\u0A4D\u0ABC\u0ACD\u0AFD-\u0AFF\u0B3C\u0B4D\u0B55\u0BCD\u0C3C\u0C4D\u0CBC\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E47-\u0E4C\u0E4E\u0EBA\u0EC8-\u0ECC\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F82-\u0F84\u0F86\u0F87\u0FC6\u1037\u1039\u103A\u1063\u1064\u1069-\u106D\u1087-\u108D\u108F\u109A\u109B\u135D-\u135F\u1714\u1715\u17C9-\u17D3\u17DD\u1939-\u193B\u1A75-\u1A7C\u1A7F\u1AB0-\u1ABE\u1AC1-\u1ACB\u1B34\u1B44\u1B6B-\u1B73\u1BAA\u1BAB\u1C36\u1C37\u1C78-\u1C7D\u1CD0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1D2C-\u1D6A\u1DC4-\u1DCF\u1DF5-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2CEF-\u2CF1\u2E2F\u302A-\u302F\u3099-\u309C\u30FC\uA66F\uA67C\uA67D\uA67F\uA69C\uA69D\uA6F0\uA6F1\uA700-\uA721\uA788-\uA78A\uA7F8\uA7F9\uA8C4\uA8E0-\uA8F1\uA92B-\uA92E\uA953\uA9B3\uA9C0\uA9E5\uAA7B-\uAA7D\uAABF-\uAAC2\uAAF6\uAB5B-\uAB5F\uAB69-\uAB6B\uABEC\uABED\uFB1E\uFE20-\uFE2F\uFF3E\uFF40\uFF70\uFF9E\uFF9F\uFFE3]|\uD800\uDEE0|\uD801[\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDEE5\uDEE6]|\uD803[\uDD22-\uDD27\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC46\uDC70\uDCB9\uDCBA\uDD33\uDD34\uDD73\uDDC0\uDDCA-\uDDCC\uDE35\uDE36\uDEE9\uDEEA\uDF3C\uDF4D\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC42\uDC46\uDCC2\uDCC3\uDDBF\uDDC0\uDE3F\uDEB6\uDEB7\uDF2B]|\uD806[\uDC39\uDC3A\uDD3D\uDD3E\uDD43\uDDE0\uDE34\uDE47\uDE99]|\uD807[\uDC3F\uDD42\uDD44\uDD45\uDD97]|\uD80D[\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF8F-\uDF9F\uDFF0\uDFF1]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD67-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD]|\uD838[\uDC30-\uDC6D\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD46\uDD48-\uDD4A])/g, '');
|
|
7184
7176
|
return value;
|
|
7185
7177
|
};
|
|
7186
7178
|
|
|
@@ -7622,6 +7614,7 @@ function useFloatingPanel(_ref) {
|
|
|
7622
7614
|
strategy = _ref$strategy === void 0 ? 'fixed' : _ref$strategy,
|
|
7623
7615
|
_ref$fallbackPlacemen = _ref.fallbackPlacements,
|
|
7624
7616
|
fallbackPlacements = _ref$fallbackPlacemen === void 0 ? ['top', 'bottom', 'right-start', 'right'] : _ref$fallbackPlacemen,
|
|
7617
|
+
heightAvaliableCallback = _ref.heightAvaliableCallback,
|
|
7625
7618
|
elements = _ref.elements;
|
|
7626
7619
|
var opened = stateOpened[0],
|
|
7627
7620
|
setOpened = stateOpened[1];
|
|
@@ -7649,6 +7642,7 @@ function useFloatingPanel(_ref) {
|
|
|
7649
7642
|
});
|
|
7650
7643
|
}
|
|
7651
7644
|
setMaxHeight(availableHeight);
|
|
7645
|
+
heightAvaliableCallback === null || heightAvaliableCallback === void 0 ? void 0 : heightAvaliableCallback(availableHeight);
|
|
7652
7646
|
}
|
|
7653
7647
|
})]
|
|
7654
7648
|
}),
|
|
@@ -7727,7 +7721,7 @@ function useOutsideClick(refs, handler, options) {
|
|
|
7727
7721
|
}, [refs, handler, handleClickOutside, (_options3 = options) === null || _options3 === void 0 ? void 0 : _options3.events]);
|
|
7728
7722
|
}
|
|
7729
7723
|
|
|
7730
|
-
var _excluded$c = ["opened", "setOpened", "className", "statedAnchorRef", "matchWidth", "placement", "closeOnEsc", "closeOnOutClick", "style", "fallbackPlacements", "offset"];
|
|
7724
|
+
var _excluded$c = ["opened", "setOpened", "className", "statedAnchorRef", "matchWidth", "placement", "closeOnEsc", "closeOnOutClick", "style", "fallbackPlacements", "offset", "heightAvaliableCallback"];
|
|
7731
7725
|
var rootClassName$1_ = 'floating-panel';
|
|
7732
7726
|
function FloatingPanel(_ref) {
|
|
7733
7727
|
var opened = _ref.opened,
|
|
@@ -7748,6 +7742,7 @@ function FloatingPanel(_ref) {
|
|
|
7748
7742
|
fallbackPlacements = _ref$fallbackPlacemen === void 0 ? ['bottom', 'bottom-end', 'bottom-start', 'top', 'top-start', 'top-end', 'left', 'right'] : _ref$fallbackPlacemen,
|
|
7749
7743
|
_ref$offset = _ref.offset,
|
|
7750
7744
|
offset = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
7745
|
+
heightAvaliableCallback = _ref.heightAvaliableCallback,
|
|
7751
7746
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
7752
7747
|
var _useState = React.useState(),
|
|
7753
7748
|
panelRef = _useState[0],
|
|
@@ -7762,6 +7757,7 @@ function FloatingPanel(_ref) {
|
|
|
7762
7757
|
floating: panelRef,
|
|
7763
7758
|
reference: statedAnchorRef
|
|
7764
7759
|
},
|
|
7760
|
+
heightAvaliableCallback: heightAvaliableCallback,
|
|
7765
7761
|
offset: offset
|
|
7766
7762
|
}),
|
|
7767
7763
|
isMounted = _useFloatingPanel.isMounted,
|
|
@@ -8486,7 +8482,6 @@ function Header(props) {
|
|
|
8486
8482
|
}));
|
|
8487
8483
|
}
|
|
8488
8484
|
Header.defaultProps = {
|
|
8489
|
-
position: 'fixed',
|
|
8490
8485
|
theme: exports.HeaderType.Verde
|
|
8491
8486
|
};
|
|
8492
8487
|
var Header$1 = React.memo(Header);
|
|
@@ -10097,6 +10092,7 @@ var Search$1 = React.memo(Search);
|
|
|
10097
10092
|
var rootClassName$2r = 'component-select';
|
|
10098
10093
|
function Select(props) {
|
|
10099
10094
|
var _props$options4;
|
|
10095
|
+
var systemInfo = useSystemInfo();
|
|
10100
10096
|
var panelId = React.useMemo(function () {
|
|
10101
10097
|
return getUniqueKey();
|
|
10102
10098
|
}, []);
|
|
@@ -10143,13 +10139,12 @@ function Select(props) {
|
|
|
10143
10139
|
className: rootClassName$2r + "-clear-button",
|
|
10144
10140
|
icon: React__default.createElement(CloseIcon, null),
|
|
10145
10141
|
onClick: function onClick() {
|
|
10142
|
+
setPanelOpened(false);
|
|
10146
10143
|
if (props.multiple) {
|
|
10147
|
-
setPanelOpened(false);
|
|
10148
10144
|
props.onChange([], {
|
|
10149
10145
|
setPanelOpened: setPanelOpened
|
|
10150
10146
|
});
|
|
10151
10147
|
} else {
|
|
10152
|
-
setPanelOpened(false);
|
|
10153
10148
|
props.onChange(null, {
|
|
10154
10149
|
setPanelOpened: setPanelOpened
|
|
10155
10150
|
});
|
|
@@ -10175,7 +10170,7 @@ function Select(props) {
|
|
|
10175
10170
|
onClick: function onClick() {
|
|
10176
10171
|
var _wrapperRef$current;
|
|
10177
10172
|
var selectFake = (_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.querySelector("." + rootClassName$2r + "-select-fake");
|
|
10178
|
-
if (!props.multiple &&
|
|
10173
|
+
if (!props.multiple && systemInfo.os === exports.OS.iOS && selectFake) {
|
|
10179
10174
|
selectFake.focus();
|
|
10180
10175
|
} else {
|
|
10181
10176
|
setPanelOpened(!panelOpened);
|
|
@@ -10184,7 +10179,7 @@ function Select(props) {
|
|
|
10184
10179
|
onFocus: function onFocus(evt) {
|
|
10185
10180
|
var _wrapperRef$current2;
|
|
10186
10181
|
var selectFake = (_wrapperRef$current2 = wrapperRef.current) === null || _wrapperRef$current2 === void 0 ? void 0 : _wrapperRef$current2.querySelector("." + rootClassName$2r + "-select-fake");
|
|
10187
|
-
if (!props.multiple &&
|
|
10182
|
+
if (!props.multiple && systemInfo.os === exports.OS.iOS && selectFake) {
|
|
10188
10183
|
selectFake.focus();
|
|
10189
10184
|
} else {
|
|
10190
10185
|
evt.target.setSelectionRange(0, 0);
|
|
@@ -10216,7 +10211,6 @@ function Select(props) {
|
|
|
10216
10211
|
})[0]
|
|
10217
10212
|
});
|
|
10218
10213
|
delete p.showPanelFooter;
|
|
10219
|
-
delete p.bottomPanel;
|
|
10220
10214
|
delete p.clearButton;
|
|
10221
10215
|
delete p.multiplePlaceholder;
|
|
10222
10216
|
delete p.multiple;
|
|
@@ -10380,9 +10374,10 @@ function Select(props) {
|
|
|
10380
10374
|
var optionsFiltered = React.useMemo(function () {
|
|
10381
10375
|
var _props$options2;
|
|
10382
10376
|
return ((_props$options2 = props.options) === null || _props$options2 === void 0 ? void 0 : _props$options2.filter(function (op) {
|
|
10383
|
-
return getStringWithoutSpecialChar(op.label).toLowerCase().
|
|
10377
|
+
return getStringWithoutSpecialChar(String(op.label)).toLowerCase().includes(getStringWithoutSpecialChar(filterInput).toLowerCase());
|
|
10384
10378
|
})) || [];
|
|
10385
10379
|
}, [props.options, filterInput]);
|
|
10380
|
+
var skipFirst = React.useRef(true);
|
|
10386
10381
|
React.useLayoutEffect(function () {
|
|
10387
10382
|
if (panelOpened) {
|
|
10388
10383
|
var panel = document.querySelector("#" + panelId);
|
|
@@ -10391,7 +10386,7 @@ function Select(props) {
|
|
|
10391
10386
|
panel.style.bottom = '0';
|
|
10392
10387
|
}
|
|
10393
10388
|
var firstInput = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-panel-input input");
|
|
10394
|
-
if (firstInput &&
|
|
10389
|
+
if (firstInput && systemInfo.os !== exports.OS.iOS) {
|
|
10395
10390
|
setTimeout(function () {
|
|
10396
10391
|
firstInput.focus();
|
|
10397
10392
|
}, 50);
|
|
@@ -10422,18 +10417,34 @@ function Select(props) {
|
|
|
10422
10417
|
}
|
|
10423
10418
|
}
|
|
10424
10419
|
}
|
|
10425
|
-
} else {
|
|
10420
|
+
} else if (!skipFirst.current) {
|
|
10426
10421
|
var _wrapperRef$current3;
|
|
10427
10422
|
var inputElement = (_wrapperRef$current3 = wrapperRef.current) === null || _wrapperRef$current3 === void 0 ? void 0 : _wrapperRef$current3.querySelector("input");
|
|
10428
|
-
if (inputElement &&
|
|
10423
|
+
if (inputElement && systemInfo.os !== exports.OS.iOS) {
|
|
10429
10424
|
inputElement.focus();
|
|
10430
10425
|
}
|
|
10426
|
+
} else if (skipFirst) {
|
|
10427
|
+
skipFirst.current = false;
|
|
10431
10428
|
}
|
|
10432
10429
|
}, [panelOpened]);
|
|
10430
|
+
var setMaxHeight = React.useCallback(function (h) {
|
|
10431
|
+
var max = h - 12;
|
|
10432
|
+
var el = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-options");
|
|
10433
|
+
if (props.showPanelFooter) {
|
|
10434
|
+
max -= 40;
|
|
10435
|
+
}
|
|
10436
|
+
if (props.panelFilter) {
|
|
10437
|
+
max -= 48;
|
|
10438
|
+
}
|
|
10439
|
+
if (window.innerHeight > 400) {
|
|
10440
|
+
max = Math.min(max, 40 * 6);
|
|
10441
|
+
}
|
|
10442
|
+
el === null || el === void 0 ? void 0 : el.style.setProperty('max-height', max + "px");
|
|
10443
|
+
}, [panelId, props.showPanelFooter, props.panelFilter]);
|
|
10433
10444
|
return React__default.createElement("div", {
|
|
10434
10445
|
ref: wrapperRef,
|
|
10435
10446
|
className: rootClassName$2r + "-outer"
|
|
10436
|
-
}, !props.multiple &&
|
|
10447
|
+
}, !props.multiple && systemInfo.os === exports.OS.iOS && React__default.createElement("select", {
|
|
10437
10448
|
className: rootClassName$2r + "-select-fake",
|
|
10438
10449
|
value: props.value ? String(props.value) : '',
|
|
10439
10450
|
onChange: function onChange(evt) {
|
|
@@ -10467,10 +10478,10 @@ function Select(props) {
|
|
|
10467
10478
|
matchWidth: true,
|
|
10468
10479
|
placement: 'bottom',
|
|
10469
10480
|
fallbackPlacements: ['top', 'left', 'right'],
|
|
10470
|
-
offset: 1
|
|
10471
|
-
}, React__default.createElement("div", {
|
|
10481
|
+
offset: 1,
|
|
10472
10482
|
id: panelId,
|
|
10473
|
-
className: rootClassName$2r + "-panel " + (props.multiple ? 'multiple' : '')
|
|
10483
|
+
className: rootClassName$2r + "-panel " + (props.multiple ? 'multiple' : ''),
|
|
10484
|
+
heightAvaliableCallback: setMaxHeight
|
|
10474
10485
|
}, props.panelFilter && props.options && !!props.options.length && React__default.createElement("div", {
|
|
10475
10486
|
className: rootClassName$2r + "-panel-input"
|
|
10476
10487
|
}, React__default.createElement(Input$1, {
|
|
@@ -10522,7 +10533,7 @@ function Select(props) {
|
|
|
10522
10533
|
setPanelOpened: setPanelOpened
|
|
10523
10534
|
});
|
|
10524
10535
|
}
|
|
10525
|
-
}, languageValues.components.select.clearAll)))))
|
|
10536
|
+
}, languageValues.components.select.clearAll)))));
|
|
10526
10537
|
}
|
|
10527
10538
|
Select.defaultProps = {
|
|
10528
10539
|
onChange: undefined,
|
|
@@ -12086,7 +12097,7 @@ VideoModal.defaultProps = {
|
|
|
12086
12097
|
|
|
12087
12098
|
var _excluded$o = ["className"];
|
|
12088
12099
|
var rootClassName$2N = 'icon-component';
|
|
12089
|
-
function Bell16Icon(_ref) {
|
|
12100
|
+
var Bell16Icon = function Bell16Icon(_ref) {
|
|
12090
12101
|
var _ref$className = _ref.className,
|
|
12091
12102
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12092
12103
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
@@ -12104,11 +12115,11 @@ function Bell16Icon(_ref) {
|
|
|
12104
12115
|
d: 'M12.2013 8.544C12.2073 10.042 12.7943 11.453 13.8541 12.516C13.9653 12.626 14.0144 12.78 13.9964 12.931C14.0074 13.042 13.9913 13.158 13.9443 13.266C13.8441 13.515 13.6317 13.669 13.3112 13.678H10.4643C10.3832 14.971 9.31538 16 8.00014 16C6.6859 16 5.61808 14.971 5.53594 13.678H2.68308H2.67406C2.4016 13.678 2.15518 13.512 2.05201 13.252C1.99391 13.121 1.98589 12.973 2.02095 12.834C2.02095 12.716 2.06102 12.603 2.14717 12.516C3.20697 11.453 3.79397 10.042 3.79998 8.542L3.79898 6.082C3.79698 4.199 5.06814 2.543 6.89025 2.055C6.99342 2.029 7.05453 2.016 7.11864 2.003C7.23884 1.978 7.36906 1.966 7.49929 1.957V0.5C7.49929 0.224 7.72367 0 8.00014 0C8.27761 0 8.50099 0.224 8.50099 0.5V1.957C8.63222 1.966 8.76244 1.978 8.89066 2.005C8.94675 2.016 9.00786 2.029 9.06996 2.044C10.9331 2.543 12.2043 4.199 12.2023 6.083L12.2013 8.544ZM9.47866 13.178C9.47866 12.902 9.70304 12.678 9.97951 12.678H12.6571C11.7175 11.508 11.2056 10.066 11.1996 8.546L11.2006 6.082C11.2026 4.651 10.2359 3.392 8.85059 3.022L8.68731 2.984C8.61038 2.9673 8.53764 2.96176 8.46617 2.95631C8.45203 2.95523 8.43793 2.95416 8.42386 2.953L8.30165 2.945C8.28562 2.944 8.20449 2.931 8.18846 2.928L8.04321 2.917C8.02759 2.91815 7.99794 2.91798 7.97065 2.91781C7.95069 2.91769 7.93201 2.91758 7.921 2.918L7.57742 2.953C7.56222 2.95425 7.54698 2.9554 7.53173 2.95656C7.46158 2.96187 7.3911 2.96721 7.32198 2.982L7.18174 3.013C5.76533 3.392 4.79868 4.651 4.80069 6.081L4.80169 8.544C4.79568 10.066 4.28281 11.508 3.34421 12.678H6.02177C6.29824 12.678 6.52262 12.902 6.52262 13.178V13.525C6.52262 14.338 7.18575 15 8.00014 15C8.81553 15 9.47866 14.338 9.47866 13.525V13.178Z',
|
|
12105
12116
|
fill: 'currentColor'
|
|
12106
12117
|
}));
|
|
12107
|
-
}
|
|
12118
|
+
};
|
|
12108
12119
|
|
|
12109
12120
|
var _excluded$p = ["className"];
|
|
12110
12121
|
var rootClassName$2O = 'icon-component';
|
|
12111
|
-
function BellIcon(_ref) {
|
|
12122
|
+
var BellIcon = function BellIcon(_ref) {
|
|
12112
12123
|
var _ref$className = _ref.className,
|
|
12113
12124
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12114
12125
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
@@ -12126,7 +12137,7 @@ function BellIcon(_ref) {
|
|
|
12126
12137
|
d: 'M20.8526 19.112C20.9707 19.229 21.0211 19.396 20.9919 19.555C21.01 19.693 20.9929 19.835 20.9343 19.967C20.8253 20.249 20.5095 20.431 20.2067 20.439H15.5633V20.469C15.5633 22.416 13.9648 24 12.0009 24C10.0359 24 8.43735 22.416 8.43735 20.469V20.439H3.78592H3.7728C3.46398 20.439 3.17434 20.244 3.05828 19.949C2.98965 19.793 2.98259 19.615 3.03204 19.448C3.02397 19.324 3.05626 19.203 3.1481 19.112C4.8365 17.432 5.77103 15.203 5.78112 12.833L5.7791 9.058C5.77607 6.292 7.65824 3.858 10.3558 3.141C10.4992 3.104 10.589 3.085 10.6778 3.067C10.8736 3.027 11.0653 3.011 11.2571 2.999L11.4256 2.986L11.4962 2.974V0.5C11.4962 0.223 11.7213 0 12.0009 0C12.2794 0 12.5055 0.223 12.5055 0.5V2.974C12.5103 2.97536 12.5146 2.97579 12.5191 2.97625C12.5212 2.97646 12.5234 2.97668 12.5256 2.977L12.7436 2.999C12.9354 3.011 13.1281 3.027 13.3169 3.066C13.4117 3.085 13.5015 3.104 13.5893 3.127C16.3425 3.858 18.2256 6.292 18.2226 9.059L18.2206 12.835C18.2307 15.203 19.1642 17.432 20.8526 19.112ZM14.5541 19.939C14.5541 19.663 14.7802 19.439 15.0587 19.439H19.7768C18.1277 17.622 17.2215 15.297 17.2114 12.836L17.2134 9.058C17.2164 6.743 15.6411 4.708 13.3835 4.108C13.2793 4.08031 13.2128 4.06599 13.1535 4.05324C13.1422 4.0508 13.1311 4.04841 13.1201 4.046C12.9782 4.01659 12.8431 4.00745 12.7094 3.99841C12.6976 3.99761 12.6858 3.99681 12.674 3.996L12.4883 3.982C12.4722 3.981 12.3551 3.963 12.3399 3.96L12.1906 3.946C12.0765 3.94 12.0412 3.935 12.0069 3.93C12.0059 3.93 12.0049 3.93025 12.0039 3.9305C12.0029 3.93075 12.0019 3.931 12.0009 3.931C11.9998 3.931 11.9988 3.93075 11.9978 3.9305C11.9968 3.93025 11.9958 3.93 11.9948 3.93L11.9912 3.93053C11.9581 3.93535 11.926 3.94004 11.8939 3.941C11.8898 3.941 11.7152 3.951 11.7122 3.952C11.6961 3.955 11.5316 3.98 11.5154 3.982L11.3277 3.996C11.316 3.9968 11.3042 3.99759 11.2925 3.99838C11.1581 4.00743 11.0245 4.01641 10.8927 4.044C10.8816 4.04635 10.8706 4.04864 10.8599 4.0509C10.7928 4.06495 10.7329 4.07749 10.6737 4.093C8.35964 4.708 6.78528 6.743 6.78831 9.057L6.79032 12.835C6.78023 15.297 5.87296 17.622 4.22492 19.439H8.94195C9.2215 19.439 9.44655 19.663 9.44655 19.939V20.469C9.44655 21.865 10.592 23 12.0009 23C13.4087 23 14.5541 21.865 14.5541 20.469V19.939Z',
|
|
12127
12138
|
fill: 'currentColor'
|
|
12128
12139
|
}));
|
|
12129
|
-
}
|
|
12140
|
+
};
|
|
12130
12141
|
|
|
12131
12142
|
var _excluded$q = ["className"];
|
|
12132
12143
|
var rootClassName$2P = 'icon-component';
|