plataforma-fundacao-componentes 2.26.6 → 2.26.8

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.
@@ -1,3 +1,3 @@
1
1
  import React, { SVGProps } from 'react';
2
2
  import './Icon.scss';
3
- export default function Bell16Icon({ className, ...props }: SVGProps<SVGSVGElement>): React.JSX.Element;
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 default function BellIcon({ className, ...props }: SVGProps<SVGSVGElement>): React.JSX.Element;
3
+ export declare const BellIcon: ({ className, ...props }: SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -7,13 +7,12 @@ interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  fluid?: boolean;
8
8
  position?: CSSProperties['position'];
9
9
  verticalPadding?: boolean;
10
+ horizontalPadding?: boolean;
10
11
  hasMobileButton?: boolean;
11
12
  hasHeader?: boolean;
12
13
  hasAdvancedHeader?: boolean;
14
+ insiderProps?: React.HTMLAttributes<HTMLDivElement>;
13
15
  }
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
- }
16
+ declare function Container({ position, fluid, verticalPadding, hasMobileButton, hasHeader, hasAdvancedHeader, horizontalPadding, className, style, insiderProps, ...props }: ContainerProps): React.JSX.Element;
18
17
  declare const _default: React.MemoExoticComponent<typeof Container>;
19
18
  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?: 'fixed' | 'static' | 'absolute' | 'relative' | 'sticky';
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: boolean;
14
- closeOnEsc: boolean;
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;
@@ -24,7 +24,6 @@ export interface SelectProps {
24
24
  multiple?: boolean;
25
25
  panelFilter?: boolean;
26
26
  panelFilterPlaceholder?: string;
27
- bottomPanel?: boolean;
28
27
  showPanelFooter?: boolean;
29
28
  options?: SelectOptionsType[];
30
29
  noOptionMessage?: string;
@@ -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 SingleFilterBottomPanel: () => React.JSX.Element;
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: absolute;
2522
+ position: relative;
2523
2523
  top: 0;
2524
2524
  left: 0;
2525
2525
  width: 100%;
@@ -2528,15 +2528,15 @@ h5 {
2528
2528
  overflow-y: auto;
2529
2529
  display: flex;
2530
2530
  align-items: flex-start;
2531
- justify-content: center;
2532
- scrollbar-gutter: stable both-edges; }
2531
+ justify-content: center; }
2533
2532
  .component-container.mobile {
2534
2533
  overflow-y: visible; }
2535
2534
  .component-container .component-container-insider {
2536
2535
  position: relative;
2537
- padding-right: 12px;
2538
- padding-left: 12px;
2539
2536
  width: 100%; }
2537
+ .component-container .component-container-insider.horizontal-padding {
2538
+ padding-right: 12px;
2539
+ padding-left: 12px; }
2540
2540
  .component-container.fluid .component-container-insider {
2541
2541
  max-width: 1600px; }
2542
2542
  .component-container:not(.fluid) .component-container-insider {
@@ -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(.component-input-loading) .component-input-input-container:focus-within::before {
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(.component-input-loading) .component-input-input-container:not(:focus-within):not(.force-focus)::before {
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;
@@ -4677,7 +4685,7 @@ header.component-header {
4677
4685
 
4678
4686
  .component-item-dropdown-download-panel {
4679
4687
  width: 100%;
4680
- padding: 0;
4688
+ padding: 4px 0;
4681
4689
  z-index: 987; }
4682
4690
  .component-item-dropdown-download-panel .component-item-dropdown-download-item {
4683
4691
  -webkit-appearance: none;
@@ -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
- overflow-y: overlay;
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 8px 8px; }
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;
@@ -7118,38 +7112,42 @@ function useSystemInfo() {
7118
7112
  };
7119
7113
  }
7120
7114
 
7121
- var _excluded$8 = ["position", "fluid", "verticalPadding", "hasMobileButton", "hasHeader", "hasAdvancedHeader", "className", "style"];
7115
+ var _excluded$8 = ["position", "fluid", "verticalPadding", "hasMobileButton", "hasHeader", "hasAdvancedHeader", "horizontalPadding", "className", "style", "insiderProps"];
7122
7116
  var rootClassName$1U = 'component-container';
7123
7117
  function Container(_ref) {
7118
+ var _insiderProps$classNa;
7124
7119
  var position = _ref.position,
7125
- fluid = _ref.fluid,
7126
- verticalPadding = _ref.verticalPadding,
7127
- hasMobileButton = _ref.hasMobileButton,
7128
- hasHeader = _ref.hasHeader,
7129
- hasAdvancedHeader = _ref.hasAdvancedHeader,
7120
+ _ref$fluid = _ref.fluid,
7121
+ fluid = _ref$fluid === void 0 ? false : _ref$fluid,
7122
+ _ref$verticalPadding = _ref.verticalPadding,
7123
+ verticalPadding = _ref$verticalPadding === void 0 ? false : _ref$verticalPadding,
7124
+ _ref$hasMobileButton = _ref.hasMobileButton,
7125
+ hasMobileButton = _ref$hasMobileButton === void 0 ? false : _ref$hasMobileButton,
7126
+ _ref$hasHeader = _ref.hasHeader,
7127
+ hasHeader = _ref$hasHeader === void 0 ? false : _ref$hasHeader,
7128
+ _ref$hasAdvancedHeade = _ref.hasAdvancedHeader,
7129
+ hasAdvancedHeader = _ref$hasAdvancedHeade === void 0 ? false : _ref$hasAdvancedHeade,
7130
+ _ref$horizontalPaddin = _ref.horizontalPadding,
7131
+ horizontalPadding = _ref$horizontalPaddin === void 0 ? true : _ref$horizontalPaddin,
7130
7132
  _ref$className = _ref.className,
7131
7133
  className = _ref$className === void 0 ? '' : _ref$className,
7132
7134
  _ref$style = _ref.style,
7133
7135
  style = _ref$style === void 0 ? {} : _ref$style,
7136
+ _ref$insiderProps = _ref.insiderProps,
7137
+ insiderProps = _ref$insiderProps === void 0 ? {} : _ref$insiderProps,
7134
7138
  props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
7135
7139
  var mobile = useSystemInfo().isMobile;
7136
7140
  var classNames = useMergedClassNames([rootClassName$1U, className, fluid ? 'fluid' : '', verticalPadding ? 'vertical-padding' : '', hasMobileButton ? 'has-mobile-button' : '', hasHeader ? 'has-header' : '', hasAdvancedHeader ? 'has-advanced-header' : '', mobile ? 'mobile' : '']);
7141
+ var insiderClassNames = useMergedClassNames([rootClassName$1U + "-insider", horizontalPadding ? 'horizontal-padding' : '', (_insiderProps$classNa = insiderProps.className) != null ? _insiderProps$classNa : '']);
7137
7142
  return React__default.createElement("div", Object.assign({}, props, {
7138
7143
  className: classNames,
7139
7144
  style: _extends({
7140
7145
  position: position
7141
7146
  }, style)
7142
- }), React__default.createElement("div", {
7143
- className: rootClassName$1U + "-insider"
7144
- }, props.children));
7147
+ }), React__default.createElement("div", Object.assign({}, insiderProps, {
7148
+ className: insiderClassNames
7149
+ }), props.children));
7145
7150
  }
7146
- Container.defaultProps = {
7147
- fluid: false,
7148
- verticalPadding: false,
7149
- hasMobileButton: false,
7150
- hasAdvancedHeader: false,
7151
- hasHeader: false
7152
- };
7153
7151
  var Container$1 = React.memo(Container);
7154
7152
 
7155
7153
  var _excluded$9 = ["control", "labelPosition", "labelGap", "label", "className"];
@@ -7180,7 +7178,7 @@ var formatHexadecimalColor = function formatHexadecimalColor(input) {
7180
7178
  return value;
7181
7179
  };
7182
7180
  var getStringWithoutSpecialChar = function getStringWithoutSpecialChar(input) {
7183
- var value = String(input).replace(/ã/g, 'a').replace(/Ã/g, 'A').replace(/á/g, 'a').replace(/Á/g, 'A').replace(/à/g, 'a').replace(/À/g, 'A').replace(/â/g, 'a').replace(/Â/g, 'A').replace(/é/g, 'e').replace(/ê/g, 'e').replace(/Ê/g, 'e').replace(/É/g, 'E').replace(/è/g, 'e').replace(/È/g, 'E').replace(/ì/g, 'i').replace(/Ì/g, 'I').replace(/í/g, 'i').replace(/Í/g, 'I').replace(/ó/g, 'o').replace(/Ó/g, 'o').replace(/ò/g, 'o').replace(/Ò/g, 'o').replace(/ô/g, 'o').replace(/Ô/g, 'O').replace(/õ/g, 'o').replace(/Õ/g, 'O').replace(/ç/g, 'c').replace(/Ç/g, 'C');
7181
+ 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
7182
  return value;
7185
7183
  };
7186
7184
 
@@ -7622,6 +7620,7 @@ function useFloatingPanel(_ref) {
7622
7620
  strategy = _ref$strategy === void 0 ? 'fixed' : _ref$strategy,
7623
7621
  _ref$fallbackPlacemen = _ref.fallbackPlacements,
7624
7622
  fallbackPlacements = _ref$fallbackPlacemen === void 0 ? ['top', 'bottom', 'right-start', 'right'] : _ref$fallbackPlacemen,
7623
+ heightAvaliableCallback = _ref.heightAvaliableCallback,
7625
7624
  elements = _ref.elements;
7626
7625
  var opened = stateOpened[0],
7627
7626
  setOpened = stateOpened[1];
@@ -7649,6 +7648,7 @@ function useFloatingPanel(_ref) {
7649
7648
  });
7650
7649
  }
7651
7650
  setMaxHeight(availableHeight);
7651
+ heightAvaliableCallback === null || heightAvaliableCallback === void 0 ? void 0 : heightAvaliableCallback(availableHeight);
7652
7652
  }
7653
7653
  })]
7654
7654
  }),
@@ -7727,7 +7727,7 @@ function useOutsideClick(refs, handler, options) {
7727
7727
  }, [refs, handler, handleClickOutside, (_options3 = options) === null || _options3 === void 0 ? void 0 : _options3.events]);
7728
7728
  }
7729
7729
 
7730
- var _excluded$c = ["opened", "setOpened", "className", "statedAnchorRef", "matchWidth", "placement", "closeOnEsc", "closeOnOutClick", "style", "fallbackPlacements", "offset"];
7730
+ var _excluded$c = ["opened", "setOpened", "className", "statedAnchorRef", "matchWidth", "placement", "closeOnEsc", "closeOnOutClick", "style", "fallbackPlacements", "offset", "heightAvaliableCallback"];
7731
7731
  var rootClassName$1_ = 'floating-panel';
7732
7732
  function FloatingPanel(_ref) {
7733
7733
  var opened = _ref.opened,
@@ -7748,6 +7748,7 @@ function FloatingPanel(_ref) {
7748
7748
  fallbackPlacements = _ref$fallbackPlacemen === void 0 ? ['bottom', 'bottom-end', 'bottom-start', 'top', 'top-start', 'top-end', 'left', 'right'] : _ref$fallbackPlacemen,
7749
7749
  _ref$offset = _ref.offset,
7750
7750
  offset = _ref$offset === void 0 ? 0 : _ref$offset,
7751
+ heightAvaliableCallback = _ref.heightAvaliableCallback,
7751
7752
  props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
7752
7753
  var _useState = React.useState(),
7753
7754
  panelRef = _useState[0],
@@ -7762,6 +7763,7 @@ function FloatingPanel(_ref) {
7762
7763
  floating: panelRef,
7763
7764
  reference: statedAnchorRef
7764
7765
  },
7766
+ heightAvaliableCallback: heightAvaliableCallback,
7765
7767
  offset: offset
7766
7768
  }),
7767
7769
  isMounted = _useFloatingPanel.isMounted,
@@ -8486,7 +8488,6 @@ function Header(props) {
8486
8488
  }));
8487
8489
  }
8488
8490
  Header.defaultProps = {
8489
- position: 'fixed',
8490
8491
  theme: exports.HeaderType.Verde
8491
8492
  };
8492
8493
  var Header$1 = React.memo(Header);
@@ -10097,6 +10098,7 @@ var Search$1 = React.memo(Search);
10097
10098
  var rootClassName$2r = 'component-select';
10098
10099
  function Select(props) {
10099
10100
  var _props$options4;
10101
+ var systemInfo = useSystemInfo();
10100
10102
  var panelId = React.useMemo(function () {
10101
10103
  return getUniqueKey();
10102
10104
  }, []);
@@ -10143,13 +10145,12 @@ function Select(props) {
10143
10145
  className: rootClassName$2r + "-clear-button",
10144
10146
  icon: React__default.createElement(CloseIcon, null),
10145
10147
  onClick: function onClick() {
10148
+ setPanelOpened(false);
10146
10149
  if (props.multiple) {
10147
- setPanelOpened(false);
10148
10150
  props.onChange([], {
10149
10151
  setPanelOpened: setPanelOpened
10150
10152
  });
10151
10153
  } else {
10152
- setPanelOpened(false);
10153
10154
  props.onChange(null, {
10154
10155
  setPanelOpened: setPanelOpened
10155
10156
  });
@@ -10175,7 +10176,7 @@ function Select(props) {
10175
10176
  onClick: function onClick() {
10176
10177
  var _wrapperRef$current;
10177
10178
  var selectFake = (_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.querySelector("." + rootClassName$2r + "-select-fake");
10178
- if (!props.multiple && isiPhone() && selectFake) {
10179
+ if (!props.multiple && systemInfo.os === exports.OS.iOS && selectFake) {
10179
10180
  selectFake.focus();
10180
10181
  } else {
10181
10182
  setPanelOpened(!panelOpened);
@@ -10184,7 +10185,7 @@ function Select(props) {
10184
10185
  onFocus: function onFocus(evt) {
10185
10186
  var _wrapperRef$current2;
10186
10187
  var selectFake = (_wrapperRef$current2 = wrapperRef.current) === null || _wrapperRef$current2 === void 0 ? void 0 : _wrapperRef$current2.querySelector("." + rootClassName$2r + "-select-fake");
10187
- if (!props.multiple && isiPhone() && selectFake) {
10188
+ if (!props.multiple && systemInfo.os === exports.OS.iOS && selectFake) {
10188
10189
  selectFake.focus();
10189
10190
  } else {
10190
10191
  evt.target.setSelectionRange(0, 0);
@@ -10216,7 +10217,6 @@ function Select(props) {
10216
10217
  })[0]
10217
10218
  });
10218
10219
  delete p.showPanelFooter;
10219
- delete p.bottomPanel;
10220
10220
  delete p.clearButton;
10221
10221
  delete p.multiplePlaceholder;
10222
10222
  delete p.multiple;
@@ -10380,9 +10380,10 @@ function Select(props) {
10380
10380
  var optionsFiltered = React.useMemo(function () {
10381
10381
  var _props$options2;
10382
10382
  return ((_props$options2 = props.options) === null || _props$options2 === void 0 ? void 0 : _props$options2.filter(function (op) {
10383
- return getStringWithoutSpecialChar(op.label).toLowerCase().match(getStringWithoutSpecialChar(filterInput).toLowerCase());
10383
+ return getStringWithoutSpecialChar(String(op.label)).toLowerCase().includes(getStringWithoutSpecialChar(filterInput).toLowerCase());
10384
10384
  })) || [];
10385
10385
  }, [props.options, filterInput]);
10386
+ var skipFirst = React.useRef(true);
10386
10387
  React.useLayoutEffect(function () {
10387
10388
  if (panelOpened) {
10388
10389
  var panel = document.querySelector("#" + panelId);
@@ -10391,7 +10392,7 @@ function Select(props) {
10391
10392
  panel.style.bottom = '0';
10392
10393
  }
10393
10394
  var firstInput = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-panel-input input");
10394
- if (firstInput && !isiPhone()) {
10395
+ if (firstInput && systemInfo.os !== exports.OS.iOS) {
10395
10396
  setTimeout(function () {
10396
10397
  firstInput.focus();
10397
10398
  }, 50);
@@ -10422,18 +10423,34 @@ function Select(props) {
10422
10423
  }
10423
10424
  }
10424
10425
  }
10425
- } else {
10426
+ } else if (!skipFirst.current) {
10426
10427
  var _wrapperRef$current3;
10427
10428
  var inputElement = (_wrapperRef$current3 = wrapperRef.current) === null || _wrapperRef$current3 === void 0 ? void 0 : _wrapperRef$current3.querySelector("input");
10428
- if (inputElement && !isiPhone()) {
10429
+ if (inputElement && systemInfo.os !== exports.OS.iOS) {
10429
10430
  inputElement.focus();
10430
10431
  }
10432
+ } else if (skipFirst) {
10433
+ skipFirst.current = false;
10431
10434
  }
10432
10435
  }, [panelOpened]);
10436
+ var setMaxHeight = React.useCallback(function (h) {
10437
+ var max = h - 12;
10438
+ var el = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-options");
10439
+ if (props.showPanelFooter) {
10440
+ max -= 40;
10441
+ }
10442
+ if (props.panelFilter) {
10443
+ max -= 48;
10444
+ }
10445
+ if (window.innerHeight > 400) {
10446
+ max = Math.min(max, 40 * 6);
10447
+ }
10448
+ el === null || el === void 0 ? void 0 : el.style.setProperty('max-height', max + "px");
10449
+ }, [panelId, props.showPanelFooter, props.panelFilter]);
10433
10450
  return React__default.createElement("div", {
10434
10451
  ref: wrapperRef,
10435
10452
  className: rootClassName$2r + "-outer"
10436
- }, !props.multiple && isiPhone() && React__default.createElement("select", {
10453
+ }, !props.multiple && systemInfo.os === exports.OS.iOS && React__default.createElement("select", {
10437
10454
  className: rootClassName$2r + "-select-fake",
10438
10455
  value: props.value ? String(props.value) : '',
10439
10456
  onChange: function onChange(evt) {
@@ -10467,10 +10484,10 @@ function Select(props) {
10467
10484
  matchWidth: true,
10468
10485
  placement: 'bottom',
10469
10486
  fallbackPlacements: ['top', 'left', 'right'],
10470
- offset: 1
10471
- }, React__default.createElement("div", {
10487
+ offset: 1,
10472
10488
  id: panelId,
10473
- className: rootClassName$2r + "-panel " + (props.multiple ? 'multiple' : '')
10489
+ className: rootClassName$2r + "-panel " + (props.multiple ? 'multiple' : ''),
10490
+ heightAvaliableCallback: setMaxHeight
10474
10491
  }, props.panelFilter && props.options && !!props.options.length && React__default.createElement("div", {
10475
10492
  className: rootClassName$2r + "-panel-input"
10476
10493
  }, React__default.createElement(Input$1, {
@@ -10522,7 +10539,7 @@ function Select(props) {
10522
10539
  setPanelOpened: setPanelOpened
10523
10540
  });
10524
10541
  }
10525
- }, languageValues.components.select.clearAll))))));
10542
+ }, languageValues.components.select.clearAll)))));
10526
10543
  }
10527
10544
  Select.defaultProps = {
10528
10545
  onChange: undefined,
@@ -12086,7 +12103,7 @@ VideoModal.defaultProps = {
12086
12103
 
12087
12104
  var _excluded$o = ["className"];
12088
12105
  var rootClassName$2N = 'icon-component';
12089
- function Bell16Icon(_ref) {
12106
+ var Bell16Icon = function Bell16Icon(_ref) {
12090
12107
  var _ref$className = _ref.className,
12091
12108
  className = _ref$className === void 0 ? '' : _ref$className,
12092
12109
  props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
@@ -12104,11 +12121,11 @@ function Bell16Icon(_ref) {
12104
12121
  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
12122
  fill: 'currentColor'
12106
12123
  }));
12107
- }
12124
+ };
12108
12125
 
12109
12126
  var _excluded$p = ["className"];
12110
12127
  var rootClassName$2O = 'icon-component';
12111
- function BellIcon(_ref) {
12128
+ var BellIcon = function BellIcon(_ref) {
12112
12129
  var _ref$className = _ref.className,
12113
12130
  className = _ref$className === void 0 ? '' : _ref$className,
12114
12131
  props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
@@ -12126,7 +12143,7 @@ function BellIcon(_ref) {
12126
12143
  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
12144
  fill: 'currentColor'
12128
12145
  }));
12129
- }
12146
+ };
12130
12147
 
12131
12148
  var _excluded$q = ["className"];
12132
12149
  var rootClassName$2P = 'icon-component';