@caspeco/casper-ui-library 11.1.0 → 11.3.0
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/components/accordion/accordion-item.d.ts +4 -1
- package/dist/components/accordion/accordion-item.d.ts.map +1 -1
- package/dist/components/accordion/accordion-item.js +36 -19
- package/dist/components/accordion/accordion-panel.d.ts +1 -1
- package/dist/components/accordion/accordion-recipe.d.ts.map +1 -1
- package/dist/components/accordion/accordion-recipe.js +54 -22
- package/dist/components/accordion/accordion.composition.d.ts +4 -3
- package/dist/components/accordion/accordion.composition.d.ts.map +1 -1
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/alert/alert.composition.d.ts +5 -5
- package/dist/components/alert/alert.d.ts +1 -1
- package/dist/components/badge/badge.composition.d.ts +3 -3
- package/dist/components/box/box.composition.d.ts +6 -6
- package/dist/components/breadcrumbs/breadcrumb-item.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.composition.d.ts +2 -2
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/dist/components/button/button.composition.d.ts +11 -11
- package/dist/components/checkbox/checkbox.composition.d.ts +3 -3
- package/dist/components/checkbox-group/checkbox-group.composition.d.ts +2 -2
- package/dist/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/components/collapsible/collapsible.composition.d.ts +3 -3
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/combobox/combobox-button.d.ts +1 -1
- package/dist/components/combobox/combobox-item.d.ts +1 -1
- package/dist/components/combobox/combobox-menu.d.ts +1 -1
- package/dist/components/combobox/combobox.composition.d.ts +9 -9
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.js +144 -142
- package/dist/components/date-picker/date-multi-picker.d.ts +1 -1
- package/dist/components/date-picker/date-picker-date-cell.d.ts +1 -1
- package/dist/components/date-picker/date-picker-header.d.ts +1 -1
- package/dist/components/date-picker/date-picker-header.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-header.js +63 -60
- package/dist/components/date-picker/date-picker-week-cell.d.ts +1 -1
- package/dist/components/date-picker/date-picker.composition.d.ts +5 -5
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/date-range-picker.d.ts +1 -1
- package/dist/components/date-picker/date-week-picker.d.ts +1 -1
- package/dist/components/date-picker/types.d.ts +1 -1
- package/dist/components/date-picker/types.d.ts.map +1 -1
- package/dist/components/divider/divider.composition.d.ts +2 -2
- package/dist/components/divider/divider.d.ts +1 -1
- package/dist/components/drawer/drawer.composition.d.ts +5 -5
- package/dist/components/drawer/drawer.d.ts +1 -1
- package/dist/components/drawer/inline-drawer.d.ts +1 -1
- package/dist/components/fieldset/fieldset-error-text.d.ts +1 -1
- package/dist/components/fieldset/fieldset-helper-text.d.ts +1 -1
- package/dist/components/fieldset/fieldset-legend.d.ts +1 -1
- package/dist/components/fieldset/fieldset.d.ts +1 -1
- package/dist/components/flex/flex.composition.d.ts +2 -2
- package/dist/components/flex/flex.d.ts +1 -1
- package/dist/components/form-control/form-control.composition.d.ts +6 -6
- package/dist/components/form-control/form-control.d.ts +1 -1
- package/dist/components/form-control/form-error-message.d.ts +1 -1
- package/dist/components/form-control/form-helper-text.d.ts +1 -1
- package/dist/components/form-control/form-label.d.ts +1 -1
- package/dist/components/grid/grid-item.d.ts +1 -1
- package/dist/components/grid/grid.composition.d.ts +2 -2
- package/dist/components/grid/grid.d.ts +1 -1
- package/dist/components/heading/heading.composition.d.ts +3 -3
- package/dist/components/heading/heading.d.ts +1 -1
- package/dist/components/highlight/highlight.composition.d.ts +2 -2
- package/dist/components/highlight/highlight.d.ts +1 -1
- package/dist/components/icon/icon.composition.d.ts +1 -1
- package/dist/components/icon-button/icon-button.composition.d.ts +4 -4
- package/dist/components/image/image.composition.d.ts +1 -1
- package/dist/components/image/image.d.ts +1 -1
- package/dist/components/image-upload/image-upload-icons.d.ts +3 -3
- package/dist/components/image-upload/image-upload-modal.d.ts +1 -1
- package/dist/components/image-upload/image-upload.composition.d.ts +3 -3
- package/dist/components/image-upload/image-upload.d.ts +1 -1
- package/dist/components/input/input.composition.d.ts +9 -9
- package/dist/components/link/link.composition.d.ts +2 -2
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/list/list-item.d.ts +1 -1
- package/dist/components/list/list.composition.d.ts +1 -1
- package/dist/components/list/list.d.ts +1 -1
- package/dist/components/menu/menu-button.d.ts +1 -1
- package/dist/components/menu/menu-icon-button.d.ts +1 -1
- package/dist/components/menu/menu-item.d.ts +1 -1
- package/dist/components/menu/menu-list.d.ts +1 -1
- package/dist/components/menu/menu.composition.d.ts +10 -10
- package/dist/components/message/message.composition.d.ts +1 -1
- package/dist/components/message/message.d.ts +1 -1
- package/dist/components/modal/modal-body.d.ts +1 -1
- package/dist/components/modal/modal-close-button.d.ts +1 -1
- package/dist/components/modal/modal-footer.d.ts +1 -1
- package/dist/components/modal/modal-header.d.ts +1 -1
- package/dist/components/modal/modal.composition.d.ts +11 -11
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/navigation-list/navigation-list-item.d.ts +2 -2
- package/dist/components/navigation-list/navigation-list.d.ts +1 -1
- package/dist/components/paginator/paginator.composition.d.ts +2 -2
- package/dist/components/paginator/paginator.d.ts +1 -1
- package/dist/components/phone-input/country-list.d.ts +1 -1
- package/dist/components/phone-input/phone-input.composition.d.ts +6 -6
- package/dist/components/phone-input/phone-input.d.ts +1 -1
- package/dist/components/quantity-button/quantity-button.composition.d.ts +3 -3
- package/dist/components/quantity-button/quantity-button.d.ts +1 -1
- package/dist/components/radio/radio-group.composition.d.ts +5 -5
- package/dist/components/radio/radio-group.d.ts +1 -1
- package/dist/components/radio/radio.composition.d.ts +2 -2
- package/dist/components/radio-card/radio-card-group.d.ts +1 -1
- package/dist/components/radio-card/radio-card.composition.d.ts +4 -4
- package/dist/components/rich-text-editor/boolean-control.d.ts +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.d.ts +10 -10
- package/dist/components/rich-text-editor/rich-text-editor.composition.d.ts +4 -4
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +4 -4
- package/dist/components/rich-text-editor/rich-text-renderer.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control.composition.d.ts +5 -5
- package/dist/components/segmented-control/segmented-control.d.ts +1 -1
- package/dist/components/select/select.composition.d.ts +3 -3
- package/dist/components/skeleton/skeleton-text.d.ts +1 -1
- package/dist/components/skeleton/skeleton.composition.d.ts +2 -2
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/spinner/spinner.composition.d.ts +2 -2
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/stack/stack.composition.d.ts +3 -3
- package/dist/components/stepper/step.d.ts +1 -1
- package/dist/components/stepper/stepper.composition.d.ts +6 -6
- package/dist/components/stepper/stepper.d.ts +1 -1
- package/dist/components/switch/switch.composition.d.ts +2 -2
- package/dist/components/table/table-cell.d.ts +1 -1
- package/dist/components/table/table-column-resize-handle.d.ts +1 -1
- package/dist/components/table/table-content.d.ts +1 -1
- package/dist/components/table/table-context-provider.d.ts +1 -1
- package/dist/components/table/table-filter.d.ts +1 -1
- package/dist/components/table/table-header-dropdown.d.ts +1 -1
- package/dist/components/table/table-header-row.d.ts +1 -1
- package/dist/components/table/table-row-drag-handle.d.ts +1 -1
- package/dist/components/table/table-row-expand-toggle-button.d.ts +1 -1
- package/dist/components/table/table-row.d.ts +1 -1
- package/dist/components/table/table-sorted-reorder-prompt.d.ts +1 -1
- package/dist/components/table/table-toolbar-actions.d.ts +1 -1
- package/dist/components/table/table-toolbar-add-button.d.ts +1 -1
- package/dist/components/table/table-toolbar-search.d.ts +1 -1
- package/dist/components/table/table-toolbar-settings.d.ts +1 -1
- package/dist/components/table/table-toolbar.d.ts +1 -1
- package/dist/components/table/table.composition.d.ts +8 -8
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/tabs/tab-list.d.ts +1 -1
- package/dist/components/tabs/tab-panel.d.ts +1 -1
- package/dist/components/tabs/tab-panels.d.ts +1 -1
- package/dist/components/tabs/tab-with-image.d.ts +1 -1
- package/dist/components/tabs/tab.d.ts +1 -1
- package/dist/components/tabs/tabs.composition.d.ts +6 -6
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tag/tag.composition.d.ts +4 -4
- package/dist/components/tag/tag.d.ts +20 -20
- package/dist/components/text/text.composition.d.ts +4 -4
- package/dist/components/text/text.d.ts +1 -1
- package/dist/components/textarea/textarea.composition.d.ts +3 -3
- package/dist/components/toaster/toaster.composition.d.ts +6 -6
- package/dist/components/toaster/toaster.d.ts +1 -1
- package/dist/components/toggle-button/toggle-button.composition.d.ts +2 -2
- package/dist/components/toggle-button/toggle-button.d.ts +1 -1
- package/dist/components/tooltip/tooltip.composition.d.ts +4 -4
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +25 -18
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +140 -100
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +24 -21
- package/dist/node_modules/date-fns/locale/de/_lib/formatDistance.js +162 -0
- package/dist/node_modules/date-fns/locale/de/_lib/formatLong.js +32 -0
- package/dist/node_modules/date-fns/locale/de/_lib/formatRelative.js +11 -0
- package/dist/node_modules/date-fns/locale/de/_lib/localize.js +213 -0
- package/dist/node_modules/date-fns/locale/de/_lib/match.js +114 -0
- package/dist/node_modules/date-fns/locale/de.js +20 -0
- package/dist/node_modules/libphonenumber-js/metadata.mobile.json.js +6 -6
- package/dist/node_modules/prosemirror-view/dist/index.js +14 -2
- package/dist/test-utils/create-visual-tests.d.ts +1 -1
- package/dist/test-utils/create-visual-tests.d.ts.map +1 -1
- package/dist/theme/theme-provider.d.ts +1 -1
- package/package.json +22 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const Variants: () => import(
|
|
2
|
-
export declare const CloseButtonTag: () => import(
|
|
3
|
-
export declare const IconTag: () => import(
|
|
4
|
-
export declare const Sizes: () => import(
|
|
1
|
+
export declare const Variants: () => import('react').JSX.Element;
|
|
2
|
+
export declare const CloseButtonTag: () => import('react').JSX.Element;
|
|
3
|
+
export declare const IconTag: () => import('react').JSX.Element;
|
|
4
|
+
export declare const Sizes: () => import('react').JSX.Element;
|
|
5
5
|
//# sourceMappingURL=tag.composition.d.ts.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { TagProps, TagVariantProps } from './types.js';
|
|
2
|
-
declare function TagBase({ children, icon, onClose, ariaLabel, prepend, size, variant, solid, isDisabled, append, ...props }: TagProps): import(
|
|
2
|
+
declare function TagBase({ children, icon, onClose, ariaLabel, prepend, size, variant, solid, isDisabled, append, ...props }: TagProps): import('react').JSX.Element;
|
|
3
3
|
export declare const Tag: typeof TagBase & {
|
|
4
|
-
Neutral: (props: TagVariantProps) => import(
|
|
5
|
-
Primary: (props: TagVariantProps) => import(
|
|
6
|
-
Secondary: (props: TagVariantProps) => import(
|
|
7
|
-
Success: (props: TagVariantProps) => import(
|
|
8
|
-
Error: (props: TagVariantProps) => import(
|
|
9
|
-
Warning: (props: TagVariantProps) => import(
|
|
10
|
-
Info: (props: TagVariantProps) => import(
|
|
11
|
-
Muted: (props: TagVariantProps) => import(
|
|
12
|
-
Strong: (props: TagVariantProps) => import(
|
|
13
|
-
PickerBerry: (props: TagVariantProps) => import(
|
|
14
|
-
PickerCoral: (props: TagVariantProps) => import(
|
|
15
|
-
PickerFlamingo: (props: TagVariantProps) => import(
|
|
16
|
-
PickerFog: (props: TagVariantProps) => import(
|
|
17
|
-
PickerHoney: (props: TagVariantProps) => import(
|
|
18
|
-
PickerLemon: (props: TagVariantProps) => import(
|
|
19
|
-
PickerLime: (props: TagVariantProps) => import(
|
|
20
|
-
PickerOlive: (props: TagVariantProps) => import(
|
|
21
|
-
PickerPlum: (props: TagVariantProps) => import(
|
|
22
|
-
PickerSky: (props: TagVariantProps) => import(
|
|
4
|
+
Neutral: (props: TagVariantProps) => import('react').JSX.Element;
|
|
5
|
+
Primary: (props: TagVariantProps) => import('react').JSX.Element;
|
|
6
|
+
Secondary: (props: TagVariantProps) => import('react').JSX.Element;
|
|
7
|
+
Success: (props: TagVariantProps) => import('react').JSX.Element;
|
|
8
|
+
Error: (props: TagVariantProps) => import('react').JSX.Element;
|
|
9
|
+
Warning: (props: TagVariantProps) => import('react').JSX.Element;
|
|
10
|
+
Info: (props: TagVariantProps) => import('react').JSX.Element;
|
|
11
|
+
Muted: (props: TagVariantProps) => import('react').JSX.Element;
|
|
12
|
+
Strong: (props: TagVariantProps) => import('react').JSX.Element;
|
|
13
|
+
PickerBerry: (props: TagVariantProps) => import('react').JSX.Element;
|
|
14
|
+
PickerCoral: (props: TagVariantProps) => import('react').JSX.Element;
|
|
15
|
+
PickerFlamingo: (props: TagVariantProps) => import('react').JSX.Element;
|
|
16
|
+
PickerFog: (props: TagVariantProps) => import('react').JSX.Element;
|
|
17
|
+
PickerHoney: (props: TagVariantProps) => import('react').JSX.Element;
|
|
18
|
+
PickerLemon: (props: TagVariantProps) => import('react').JSX.Element;
|
|
19
|
+
PickerLime: (props: TagVariantProps) => import('react').JSX.Element;
|
|
20
|
+
PickerOlive: (props: TagVariantProps) => import('react').JSX.Element;
|
|
21
|
+
PickerPlum: (props: TagVariantProps) => import('react').JSX.Element;
|
|
22
|
+
PickerSky: (props: TagVariantProps) => import('react').JSX.Element;
|
|
23
23
|
};
|
|
24
24
|
export {};
|
|
25
25
|
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const FontVariants: () => import(
|
|
2
|
-
export declare const FontWeights: () => import(
|
|
3
|
-
export declare const FontSizes: () => import(
|
|
4
|
-
export declare const Truncated: () => import(
|
|
1
|
+
export declare const FontVariants: () => import('react').JSX.Element;
|
|
2
|
+
export declare const FontWeights: () => import('react').JSX.Element;
|
|
3
|
+
export declare const FontSizes: () => import('react').JSX.Element;
|
|
4
|
+
export declare const Truncated: () => import('react').JSX.Element;
|
|
5
5
|
//# sourceMappingURL=text.composition.d.ts.map
|
|
@@ -16,6 +16,6 @@ export type TextProps = ThemeStyleProps & ChakraTextProperties & CustomPropertie
|
|
|
16
16
|
*
|
|
17
17
|
* @see Docs https://caspeco.github.io/casper-ui-library/components/text
|
|
18
18
|
*/
|
|
19
|
-
export declare function Text({ as, fontFamily, fontSize, fontWeight, color, children, decoration, noOfLines, align, casing, isTruncated, ...props }: TextProps): import(
|
|
19
|
+
export declare function Text({ as, fontFamily, fontSize, fontWeight, color, children, decoration, noOfLines, align, casing, isTruncated, ...props }: TextProps): import('react').JSX.Element;
|
|
20
20
|
export {};
|
|
21
21
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const BasicTextarea: () => import(
|
|
2
|
-
export declare const HorisontalResize: () => import(
|
|
3
|
-
export declare const TextareaDisabled: () => import(
|
|
1
|
+
export declare const BasicTextarea: () => import('react').JSX.Element;
|
|
2
|
+
export declare const HorisontalResize: () => import('react').JSX.Element;
|
|
3
|
+
export declare const TextareaDisabled: () => import('react').JSX.Element;
|
|
4
4
|
//# sourceMappingURL=textarea.composition.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const ErrorToast: () => import(
|
|
2
|
-
export declare const InfoToast: () => import(
|
|
3
|
-
export declare const WarningToast: () => import(
|
|
4
|
-
export declare const SuccessToast: () => import(
|
|
5
|
-
export declare const NeutralToast: () => import(
|
|
6
|
-
export declare const CustomDistanceToBottomToast: () => import(
|
|
1
|
+
export declare const ErrorToast: () => import('react').JSX.Element;
|
|
2
|
+
export declare const InfoToast: () => import('react').JSX.Element;
|
|
3
|
+
export declare const WarningToast: () => import('react').JSX.Element;
|
|
4
|
+
export declare const SuccessToast: () => import('react').JSX.Element;
|
|
5
|
+
export declare const NeutralToast: () => import('react').JSX.Element;
|
|
6
|
+
export declare const CustomDistanceToBottomToast: () => import('react').JSX.Element;
|
|
7
7
|
//# sourceMappingURL=toaster.composition.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const Pressed: () => import(
|
|
2
|
-
export declare const NotPressed: () => import(
|
|
1
|
+
export declare const Pressed: () => import('react').JSX.Element;
|
|
2
|
+
export declare const NotPressed: () => import('react').JSX.Element;
|
|
3
3
|
//# sourceMappingURL=toggle-button.composition.d.ts.map
|
|
@@ -5,5 +5,5 @@ import { ToggleButtonProps } from './types.js';
|
|
|
5
5
|
* @see Toggle button role on MDN: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role#toggle_buttons
|
|
6
6
|
* @see Docs https://caspeco.github.io/casper-ui-library/components/toggle-button
|
|
7
7
|
*/
|
|
8
|
-
export declare function ToggleButton(props: ToggleButtonProps): import(
|
|
8
|
+
export declare function ToggleButton(props: ToggleButtonProps): import('react').JSX.Element;
|
|
9
9
|
//# sourceMappingURL=toggle-button.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const PositionTop: () => import(
|
|
2
|
-
export declare const PositionRight: () => import(
|
|
3
|
-
export declare const PositionBottom: () => import(
|
|
4
|
-
export declare const PositionLeft: () => import(
|
|
1
|
+
export declare const PositionTop: () => import('react').JSX.Element;
|
|
2
|
+
export declare const PositionRight: () => import('react').JSX.Element;
|
|
3
|
+
export declare const PositionBottom: () => import('react').JSX.Element;
|
|
4
|
+
export declare const PositionLeft: () => import('react').JSX.Element;
|
|
5
5
|
//# sourceMappingURL=tooltip.composition.d.ts.map
|
|
@@ -12,6 +12,6 @@ export type TooltipProps = Pick<ChakraTooltip.RootProps, "children" | "disabled"
|
|
|
12
12
|
* @see Docs https://caspeco.github.io/casper-ui-library/components/tooltip
|
|
13
13
|
* @see WAI-ARIA https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/
|
|
14
14
|
*/
|
|
15
|
-
export declare function Tooltip(props: TooltipProps): string | number | bigint | boolean | import(
|
|
15
|
+
export declare function Tooltip(props: TooltipProps): string | number | bigint | boolean | import('react').JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -14,7 +14,7 @@ function m({ useFlushSync: e = !0, directDomUpdates: t = !1, directDomUpdatesMod
|
|
|
14
14
|
prevRange: null
|
|
15
15
|
});
|
|
16
16
|
o.current.enabled = t, o.current.mode = n;
|
|
17
|
-
let s = (e) => {
|
|
17
|
+
let s = d.useRef(!1), c = (e) => {
|
|
18
18
|
let t = o.current;
|
|
19
19
|
if (!t.enabled || !t.container) return;
|
|
20
20
|
let n = e.getTotalSize();
|
|
@@ -23,34 +23,41 @@ function m({ useFlushSync: e = !0, directDomUpdates: t = !1, directDomUpdatesMod
|
|
|
23
23
|
let r = e.options.horizontal ? "width" : "height";
|
|
24
24
|
t.container.style[r] = `${n}px`;
|
|
25
25
|
}
|
|
26
|
-
},
|
|
26
|
+
}, l = (e) => {
|
|
27
27
|
let t = o.current;
|
|
28
28
|
if (!t.enabled || !t.container) return;
|
|
29
|
-
|
|
30
|
-
let n = !!e.options.horizontal, r = t.mode === "transform", i = n ? "left" : "top", a = e.options.scrollMargin,
|
|
31
|
-
for (let o of
|
|
29
|
+
c(e);
|
|
30
|
+
let n = !!e.options.horizontal, r = t.mode === "transform", i = n ? "left" : "top", a = e.options.scrollMargin, s = e.getVirtualItems();
|
|
31
|
+
for (let o of s) {
|
|
32
32
|
let s = o.start - a, c = e.elementsCache.get(o.key);
|
|
33
33
|
c && t.lastPositions.get(c) !== s && (t.lastPositions.set(c, s), r ? c.style.transform = n ? `translate3d(${s}px, 0, 0)` : `translate3d(0, ${s}px, 0)` : c.style[i] = `${s}px`);
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, u = {
|
|
36
36
|
...r,
|
|
37
37
|
onChange: (t, n) => {
|
|
38
38
|
var i;
|
|
39
|
-
let
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
let e = t.range, n =
|
|
43
|
-
|
|
39
|
+
let c = o.current, u = !0;
|
|
40
|
+
if (c.enabled) {
|
|
41
|
+
l(t);
|
|
42
|
+
let e = t.range, n = c.prevRange;
|
|
43
|
+
u = !n || n.isScrolling !== t.isScrolling || n.startIndex !== e?.startIndex || n.endIndex !== e?.endIndex, u && (c.prevRange = e ? {
|
|
44
44
|
startIndex: e.startIndex,
|
|
45
45
|
endIndex: e.endIndex,
|
|
46
46
|
isScrolling: t.isScrolling
|
|
47
47
|
} : null);
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
u && (e && n && !s.current ? f(a) : a()), (i = r.onChange) == null || i.call(r, t, n);
|
|
50
50
|
}
|
|
51
|
-
}, [
|
|
52
|
-
let e = new i(
|
|
53
|
-
return
|
|
51
|
+
}, [m] = d.useState(() => {
|
|
52
|
+
let e = new i(u), t = e.measureElement;
|
|
53
|
+
return e.measureElement = (e) => {
|
|
54
|
+
s.current = !0;
|
|
55
|
+
try {
|
|
56
|
+
t(e);
|
|
57
|
+
} finally {
|
|
58
|
+
s.current = !1;
|
|
59
|
+
}
|
|
60
|
+
}, Object.assign(e, { containerRef: (t) => {
|
|
54
61
|
let n = o.current;
|
|
55
62
|
if (n.container = t, n.lastSize = null, t && n.enabled) {
|
|
56
63
|
let r = e.getTotalSize();
|
|
@@ -60,9 +67,9 @@ function m({ useFlushSync: e = !0, directDomUpdates: t = !1, directDomUpdatesMod
|
|
|
60
67
|
}
|
|
61
68
|
} });
|
|
62
69
|
});
|
|
63
|
-
return
|
|
64
|
-
|
|
65
|
-
}),
|
|
70
|
+
return m.setOptions(u), p(() => m._didMount(), []), p(() => (c(m), m._willUpdate())), p(() => {
|
|
71
|
+
l(m);
|
|
72
|
+
}), m;
|
|
66
73
|
}
|
|
67
74
|
function h(e) {
|
|
68
75
|
return m({
|