@fibery/ui-kit 9.5.0 → 10.0.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/lib/a11y-color.d.ts +2 -3
- package/lib/abbreviate-name.d.ts +2 -3
- package/lib/action-badge.d.ts +2 -3
- package/lib/actions-menu/actions-menu-checkbox-item.d.ts +3 -4
- package/lib/actions-menu/actions-menu-confirmation.d.ts +3 -4
- package/lib/actions-menu/actions-menu-item.d.ts +6 -6
- package/lib/actions-menu/actions-menu-item.js +5 -9
- package/lib/actions-menu/actions-menu-item.wyw-in-js.css +2 -1
- package/lib/actions-menu/actions-menu-props.d.ts +2 -3
- package/lib/actions-menu/actions-menu-separator.d.ts +2 -3
- package/lib/actions-menu/actions-menu-sub-command-menu.d.ts +9 -10
- package/lib/actions-menu/actions-menu-sub-menu.d.ts +3 -4
- package/lib/actions-menu/actions-menu-toggle-item.d.ts +3 -4
- package/lib/actions-menu/actions-menu.d.ts +4 -4
- package/lib/actions-menu/async-actions-menu-item.d.ts +2 -3
- package/lib/actions-menu/context-actions-menu.d.ts +3 -3
- package/lib/actions-menu/contexts/actions-menu-context.d.ts +3 -4
- package/lib/actions-menu/contexts/actions-menu-dangerous-rows.d.ts +3 -3
- package/lib/actions-menu/index.d.ts +3 -3
- package/lib/actions-menu/utils/insert-separators.d.ts +2 -3
- package/lib/actions-panel.d.ts +2 -3
- package/lib/animated-height-container.d.ts +2 -3
- package/lib/animations.d.ts +4 -5
- package/lib/antd/ant-modal.d.ts +6 -6
- package/lib/antd/ant-upload.d.ts +7 -7
- package/lib/antd/auto-complete.d.ts +2 -3
- package/lib/antd/get-wrapper.d.ts +2 -3
- package/lib/antd/global-overrides.d.ts +2 -3
- package/lib/antd/global-overrides.wyw-in-js.css +1 -1
- package/lib/antd/index.d.ts +4 -5
- package/lib/antd/input-number.d.ts +2 -3
- package/lib/antd/input.d.ts +9 -9
- package/lib/antd/styles.d.ts +3 -4
- package/lib/antd/tabs.d.ts +3 -4
- package/lib/antd/tabs.wyw-in-js.css +1 -1
- package/lib/antd/utils.d.ts +4 -5
- package/lib/apca.d.ts +9 -10
- package/lib/app-icon-with-fallback.d.ts +5 -5
- package/lib/app-icon-wrapper.d.ts +3 -4
- package/lib/app-icon.d.ts +2 -3
- package/lib/app-mode.d.ts +8 -8
- package/lib/automation-avatar.d.ts +2 -3
- package/lib/autosize-input/number-input.d.ts +7 -0
- package/lib/autosize-input/number-input.js +83 -0
- package/lib/autosize-input/number-input.wyw-in-js.css +2 -0
- package/lib/{number-input → autosize-input}/styles.d.ts +8 -9
- package/lib/{number-input → autosize-input}/styles.js +6 -6
- package/lib/autosize-input/styles.wyw-in-js.css +4 -0
- package/lib/autosize-input/text-area.d.ts +7 -0
- package/lib/autosize-input/text-area.js +42 -0
- package/lib/autosize-input/text-area.wyw-in-js.css +1 -0
- package/lib/autosize-input/text-input.d.ts +8 -0
- package/lib/autosize-input/text-input.js +37 -0
- package/lib/autosize-input/z-stack.d.ts +8 -0
- package/lib/autosize-input/z-stack.js +14 -0
- package/lib/autosize-input/z-stack.wyw-in-js.css +1 -0
- package/lib/avatar-colors.d.ts +6 -7
- package/lib/avatar.d.ts +3 -3
- package/lib/axis-header.d.ts +4 -5
- package/lib/badge.d.ts +3 -4
- package/lib/badge.js +1 -1
- package/lib/badge.wyw-in-js.css +1 -0
- package/lib/banner/banner-action.d.ts +2 -3
- package/lib/banner/banner-context.d.ts +2 -3
- package/lib/banner/banner-variant.d.ts +2 -3
- package/lib/banner/banner.d.ts +3 -4
- package/lib/board-table-loader.d.ts +3 -4
- package/lib/box.d.ts +16 -17
- package/lib/breadcrumb.d.ts +7 -8
- package/lib/breakpoints.d.ts +9 -10
- package/lib/button/actions-button-compact.d.ts +2 -3
- package/lib/button/actions-button.d.ts +2 -3
- package/lib/button/add-button.d.ts +2 -3
- package/lib/button/back-button.d.ts +2 -3
- package/lib/button/base-button.d.ts +8 -9
- package/lib/button/button-group.d.ts +4 -5
- package/lib/button/button.d.ts +3 -4
- package/lib/button/button.js +1 -1
- package/lib/button/icon-button.d.ts +5 -6
- package/lib/button/make-button-colors.d.ts +2 -3
- package/lib/button/select-button.d.ts +3 -4
- package/lib/canvas-colors.d.ts +6 -7
- package/lib/card-container.d.ts +13 -14
- package/lib/card-hidden-link.d.ts +2 -3
- package/lib/checkbox.d.ts +11 -9
- package/lib/checkbox.js +13 -6
- package/lib/checkbox.wyw-in-js.css +3 -3
- package/lib/collapsible/index.d.ts +5 -6
- package/lib/collapsible-section.d.ts +2 -3
- package/lib/color-adjuster.d.ts +3 -4
- package/lib/color-filter.d.ts +6 -7
- package/lib/color-inspect.d.ts +3 -4
- package/lib/color-picker/color-picker-or-loader.d.ts +2 -3
- package/lib/color-picker/index.d.ts +3 -4
- package/lib/color-picker/slider-pointer.d.ts +2 -3
- package/lib/color-picker/swatch.d.ts +2 -3
- package/lib/color-utils.d.ts +13 -13
- package/lib/command-menu/index.d.ts +9 -10
- package/lib/command-menu/nested-command-menu.d.ts +5 -6
- package/lib/command-menu/nested-command-menu.js +2 -1
- package/lib/comment.d.ts +9 -10
- package/lib/context-menu/index.d.ts +15 -16
- package/lib/copy-to-clipboard.d.ts +3 -4
- package/lib/count-badge.d.ts +6 -7
- package/lib/date-picker/autocomplete.d.ts +5 -6
- package/lib/date-picker/constants.d.ts +4 -5
- package/lib/date-picker/contexts.d.ts +2 -3
- package/lib/date-picker/date-range-input.d.ts +4 -4
- package/lib/date-picker/date-range-input.js +1 -1
- package/lib/date-picker/date-range-picker-popup-content.d.ts +3 -4
- package/lib/date-picker/date-range-picker.d.ts +4 -5
- package/lib/date-picker/day-with-start-end-buttons.d.ts +4 -5
- package/lib/date-picker/fake-date-input.d.ts +3 -4
- package/lib/date-picker/get-weekends-for-month.d.ts +2 -3
- package/lib/date-picker/rc-input-types.d.ts +3 -4
- package/lib/date-picker/relative-date-picker.d.ts +2 -3
- package/lib/date-picker/single-date-input.d.ts +4 -4
- package/lib/date-picker/single-date-input.js +1 -1
- package/lib/date-picker/single-date-picker-popup-content.d.ts +2 -3
- package/lib/date-picker/single-date-picker.d.ts +17 -12
- package/lib/date-picker/styles.d.ts +19 -20
- package/lib/date-picker/types.d.ts +18 -14
- package/lib/date-picker/utils.d.ts +12 -12
- package/lib/date-picker/with-popup-control.d.ts +2 -3
- package/lib/date-picker/with-popup-control.js +1 -1
- package/lib/day-select/day-select.d.ts +4 -4
- package/lib/day-select/iso-week-day-select.d.ts +3 -3
- package/lib/day-select/mount-day-select.d.ts +3 -3
- package/lib/day-select/week-day-select.d.ts +5 -5
- package/lib/delayed.d.ts +2 -3
- package/lib/design-system/alpha-coefficients.d.ts +3 -4
- package/lib/design-system/alpha.d.ts +7 -8
- package/lib/design-system/animation.d.ts +6 -7
- package/lib/design-system/colors-charts.d.ts +2 -3
- package/lib/design-system/colors-css.d.ts +9 -10
- package/lib/design-system/colors-js.d.ts +4 -5
- package/lib/design-system/colors-swatches.d.ts +3 -4
- package/lib/design-system/colors.d.ts +20 -610
- package/lib/design-system/colors.js +7 -4
- package/lib/design-system/date.d.ts +4 -5
- package/lib/design-system/def.d.ts +4 -5
- package/lib/design-system/fns.d.ts +4 -5
- package/lib/design-system/fns.enum.d.ts +4 -5
- package/lib/design-system/fns.icon.d.ts +5 -6
- package/lib/design-system/layout.d.ts +9 -10
- package/lib/design-system/skeleton.d.ts +5 -6
- package/lib/design-system/theme.d.ts +31 -22
- package/lib/design-system/types.d.ts +15 -16
- package/lib/design-system/typography.d.ts +11 -12
- package/lib/design-system/vars.d.ts +9 -10
- package/lib/dnd.d.ts +4 -5
- package/lib/dom-utils.d.ts +4 -5
- package/lib/dot.d.ts +2 -3
- package/lib/double-apply.d.ts +2 -3
- package/lib/download-file.d.ts +3 -2
- package/lib/dropdown-menu/index.d.ts +13 -14
- package/lib/embed.d.ts +4 -5
- package/lib/emoji-picker/app-icon-picker.d.ts +3 -4
- package/lib/emoji-picker/app-icon-picker.js +1 -4
- package/lib/emoji-picker/emoji-picker-content-with-color.d.ts +4 -5
- package/lib/emoji-picker/emoji-picker-preview-footer.d.ts +2 -3
- package/lib/emoji-picker/emoji-picker.d.ts +4 -5
- package/lib/emoji-picker/emoji.d.ts +3 -4
- package/lib/emoji-picker/icon-emoji-picker.d.ts +3 -4
- package/lib/emoji-picker/primitives/category-label.d.ts +2 -3
- package/lib/emoji-picker/primitives/content.d.ts +4 -5
- package/lib/emoji-picker/primitives/emoji.d.ts +4 -5
- package/lib/emoji-picker/primitives/emoji.wyw-in-js.css +1 -1
- package/lib/emoji-picker/primitives/footer.d.ts +2 -3
- package/lib/emoji-picker/primitives/grid-item.d.ts +3 -4
- package/lib/emoji-picker/primitives/grid.d.ts +4 -5
- package/lib/emoji-picker/primitives/header.d.ts +2 -3
- package/lib/emoji-picker/primitives/layout.d.ts +3 -4
- package/lib/emoji-picker/primitives/preview-provider.d.ts +4 -5
- package/lib/emoji-picker/primitives/render-config-provider.d.ts +2 -2
- package/lib/emoji-picker/primitives/root.d.ts +4 -5
- package/lib/emoji-picker/primitives/search-provider.d.ts +4 -5
- package/lib/emoji-picker/primitives/search.d.ts +5 -6
- package/lib/emoji-picker/primitives/skin-provider.d.ts +4 -5
- package/lib/emoji-picker/primitives/skin-tone.d.ts +3 -4
- package/lib/emoji-picker/stores/emoji-data-store.d.ts +7 -8
- package/lib/emoji-picker/stores/lazy-icon-data-store.d.ts +2 -3
- package/lib/emoji-picker/stores/static-emoji-data-store.d.ts +2 -3
- package/lib/emoji-picker/use-emoji-found.d.ts +2 -3
- package/lib/emoji-picker/use-responsive-emoji-size.d.ts +2 -3
- package/lib/emoji-picker/utils/emoji-set.d.ts +3 -4
- package/lib/emoji-picker/utils/emoji-support.d.ts +2 -3
- package/lib/emoji-picker/utils/frequently.d.ts +3 -4
- package/lib/emoji-picker/utils/load-emoji-data.d.ts +2 -3
- package/lib/emoji-picker/utils/store.d.ts +4 -5
- package/lib/emoji.d.ts +3 -3
- package/lib/empty-state/empty-state-action.d.ts +2 -3
- package/lib/empty-state/empty-state-emoji.d.ts +3 -4
- package/lib/empty-state/empty-state.d.ts +3 -3
- package/lib/empty-state/empty-state.js +7 -6
- package/lib/empty-state/empty-state.wyw-in-js.css +6 -5
- package/lib/empty-value.d.ts +2 -3
- package/lib/errors.d.ts +5 -6
- package/lib/favorites-icon.d.ts +2 -3
- package/lib/fibermoji-placeholder.d.ts +2 -3
- package/lib/fibery-brand-logo.d.ts +3 -4
- package/lib/field-app-icon.d.ts +6 -7
- package/lib/field-container.d.ts +8 -9
- package/lib/field-icon.d.ts +3 -3
- package/lib/field-type-icon.d.ts +1 -0
- package/lib/file-item/add-query-param.d.ts +2 -3
- package/lib/file-item/file-icon.d.ts +4 -5
- package/lib/file-item/file-menu-items.d.ts +2 -3
- package/lib/file-item/file-preview-actions.d.ts +3 -4
- package/lib/file-item/file-title.d.ts +3 -4
- package/lib/file-item/share-file.d.ts +4 -3
- package/lib/file-item/types.d.ts +4 -5
- package/lib/file-item.d.ts +4 -5
- package/lib/file-item.js +1 -0
- package/lib/form-field-loader.d.ts +3 -4
- package/lib/form-utils.d.ts +2 -3
- package/lib/format-date-from-now.d.ts +3 -4
- package/lib/formula-avatar.d.ts +7 -0
- package/lib/formula-avatar.js +31 -0
- package/lib/full-fibery-logo.d.ts +3 -4
- package/lib/guide-link.d.ts +2 -3
- package/lib/header-layout.d.ts +3 -4
- package/lib/header-layout.js +1 -1
- package/lib/highlight-colors.d.ts +8 -9
- package/lib/hint.d.ts +2 -3
- package/lib/hotkey-scope.d.ts +4 -4
- package/lib/hoverable-via-display.d.ts +4 -5
- package/lib/hoverable.d.ts +7 -8
- package/lib/html-styles.d.ts +8 -9
- package/lib/html-styles.wyw-in-js.css +1 -1
- package/lib/icons/ast/ai-fibery-build-dots.d.ts +5 -0
- package/lib/icons/ast/ai-fibery-build-dots.js +24 -0
- package/lib/icons/ast/ai-fibery-build-mark.d.ts +5 -0
- package/lib/icons/ast/ai-fibery-build-mark.js +24 -0
- package/lib/icons/ast/connector.d.ts +5 -0
- package/lib/icons/ast/connector.js +21 -0
- package/lib/icons/ast/index.d.ts +4 -1
- package/lib/icons/ast/index.js +4 -1
- package/lib/icons/ast/space-app.js +1 -5
- package/lib/icons/ast/space-generate.js +1 -5
- package/lib/icons/ast/space-scratch.js +1 -5
- package/lib/icons/ast/space-template.js +1 -5
- package/lib/icons/ast/suggest-edit.js +1 -1
- package/lib/icons/generate-icon-from-ast.d.ts +3 -3
- package/lib/icons/get-paths.d.ts +2 -3
- package/lib/icons/get-shift-style.d.ts +2 -3
- package/lib/icons/icon.d.ts +5 -6
- package/lib/icons/react/ai-fibery-build-dots.d.ts +15 -0
- package/lib/icons/react/ai-fibery-build-dots.js +21 -0
- package/lib/icons/react/ai-fibery-build-mark.d.ts +15 -0
- package/lib/icons/react/ai-fibery-build-mark.js +21 -0
- package/lib/icons/react/connector.d.ts +15 -0
- package/lib/icons/react/connector.js +21 -0
- package/lib/icons/react/index.d.ts +4 -1
- package/lib/icons/react/index.js +4 -1
- package/lib/icons/types.d.ts +5 -6
- package/lib/images-gallery/get-gallery-src.d.ts +2 -3
- package/lib/images-gallery/images-gallery-fall-through-provider.d.ts +3 -4
- package/lib/images-gallery/images-gallery.d.ts +6 -6
- package/lib/images-gallery/slide-buttons.d.ts +3 -4
- package/lib/images-gallery/thumbnails-mime-types-white-list.d.ts +2 -3
- package/lib/images-gallery/zoom.d.ts +3 -4
- package/lib/indicator.d.ts +4 -5
- package/lib/integration-compact-info-button.d.ts +2 -3
- package/lib/integration-compact-info-button.js +4 -4
- package/lib/integration-compact-info-button.wyw-in-js.css +2 -1
- package/lib/is-android.d.ts +2 -3
- package/lib/is-in-popup.d.ts +2 -3
- package/lib/is-ios.d.ts +2 -3
- package/lib/kbd.d.ts +5 -5
- package/lib/layout-styles.d.ts +2 -3
- package/lib/layout-variables.d.ts +3 -4
- package/lib/link-input/components/ant-text-area-with-custom-read-state.d.ts +3 -4
- package/lib/link-input/index.d.ts +7 -8
- package/lib/link-input/utils.d.ts +2 -3
- package/lib/lists/list-row-surface.d.ts +12 -13
- package/lib/loader-gate-start.d.ts +9 -0
- package/lib/loader-gate-start.js +20 -0
- package/lib/loader-gate.d.ts +4 -3
- package/lib/loader-gate.js +3 -1
- package/lib/loader-gate.wyw-in-js.css +1 -1
- package/lib/loaders.d.ts +10 -11
- package/lib/logo.d.ts +5 -6
- package/lib/media-query-utils.d.ts +4 -4
- package/lib/memoize.d.ts +2 -3
- package/lib/menu-item-actions.d.ts +2 -3
- package/lib/mobile-app-api.d.ts +19 -0
- package/lib/mobile-app-api.js +0 -0
- package/lib/mobile-drawer.d.ts +3 -4
- package/lib/mobile-keyboard-aware-popup.d.ts +3 -4
- package/lib/mobile-styles.d.ts +11 -12
- package/lib/modal-menu/contexts/modal-menu-context.d.ts +3 -3
- package/lib/modal-menu/contexts/modal-submenu-context.d.ts +2 -2
- package/lib/modal-menu/modal-menu-checkbox-item.d.ts +2 -3
- package/lib/modal-menu/modal-menu-content.d.ts +2 -3
- package/lib/modal-menu/modal-menu-drawer-content.d.ts +2 -3
- package/lib/modal-menu/modal-menu-group.d.ts +2 -3
- package/lib/modal-menu/modal-menu-item.d.ts +2 -3
- package/lib/modal-menu/modal-menu-label.d.ts +2 -3
- package/lib/modal-menu/modal-menu-root.d.ts +3 -4
- package/lib/modal-menu/modal-menu-separator.d.ts +2 -3
- package/lib/modal-menu/modal-menu-trigger.d.ts +2 -3
- package/lib/modal-menu/modal-submenu-content.d.ts +2 -3
- package/lib/modal-menu/modal-submenu-trigger.d.ts +2 -3
- package/lib/modal-menu/modal-submenu.d.ts +2 -3
- package/lib/new-badge.d.ts +2 -3
- package/lib/number-input/decimal.d.ts +5 -6
- package/lib/number-input/edit-unit-styles.d.ts +3 -4
- package/lib/number-input/number-input-inline.d.ts +2 -3
- package/lib/number-input/number-input.d.ts +3 -4
- package/lib/number-input/step-button.d.ts +5 -6
- package/lib/number-input/types.d.ts +4 -5
- package/lib/number-input/utils.d.ts +5 -6
- package/lib/online-users.d.ts +6 -7
- package/lib/online-users.js +1 -1
- package/lib/open-popover-tracker.d.ts +4 -5
- package/lib/palette-generator.d.ts +5 -5
- package/lib/palettes/common.d.ts +2 -3
- package/lib/palettes/neutral-arch.d.ts +2 -3
- package/lib/palettes/neutral-user.d.ts +2 -3
- package/lib/palettes/neutral.d.ts +2 -3
- package/lib/palettes/warm-arch.d.ts +2 -3
- package/lib/palettes/warm-user.d.ts +2 -3
- package/lib/palettes/warm.d.ts +3 -4
- package/lib/phone-media-query.d.ts +4 -5
- package/lib/phone-media-query.js +1 -1
- package/lib/phone.d.ts +6 -5
- package/lib/platform-symbols.d.ts +8 -9
- package/lib/platform.d.ts +4 -5
- package/lib/popover/get-element-ref.d.ts +5 -3
- package/lib/popover/get-element-ref.js +1 -7
- package/lib/popover/index.d.ts +7 -6
- package/lib/popover/mobile-popover-context.d.ts +2 -2
- package/lib/popover/mobile-popover.d.ts +4 -5
- package/lib/popover/modifiers.d.ts +4 -5
- package/lib/popover/popup-modifiers-context.d.ts +2 -3
- package/lib/popover/popup-stack-context.d.ts +3 -3
- package/lib/popover/reference.d.ts +3 -4
- package/lib/popover/styles.d.ts +4 -5
- package/lib/popover/use-click-outside.d.ts +2 -3
- package/lib/preference-setting.d.ts +2 -3
- package/lib/pretty-size.d.ts +2 -3
- package/lib/progress.d.ts +6 -7
- package/lib/random.d.ts +2 -3
- package/lib/reactions/get-word-divider.d.ts +2 -3
- package/lib/reactions/reaction-button.d.ts +4 -4
- package/lib/reactions/reaction-picker.d.ts +3 -4
- package/lib/reactions/reactions.d.ts +2 -3
- package/lib/reactions/tootltip.d.ts +5 -6
- package/lib/ready-to-scroll-context.d.ts +3 -4
- package/lib/rich-input-loader.d.ts +3 -4
- package/lib/rich-text-embed-error.d.ts +3 -4
- package/lib/root-theme-provider.d.ts +3 -4
- package/lib/root-theme-provider.wyw-in-js.css +1 -1
- package/lib/scale-generator.d.ts +17 -18
- package/lib/scroll-fade.d.ts +2 -3
- package/lib/select/components/clear-indicator.d.ts +3 -4
- package/lib/select/components/drop-down-indicator.d.ts +4 -4
- package/lib/select/components/group-heading.d.ts +4 -5
- package/lib/select/components/menu-list-virtua.d.ts +2 -3
- package/lib/select/components/menu-list-virtua.js +8 -2
- package/lib/select/components/menu-list-virtualized.d.ts +2 -3
- package/lib/select/components/menu-list-virtualized.js +9 -3
- package/lib/select/components/menu.d.ts +7 -8
- package/lib/select/components/no-option-message.d.ts +3 -3
- package/lib/select/components/option.d.ts +5 -6
- package/lib/select/constants.d.ts +2 -3
- package/lib/select/index.d.ts +4 -4
- package/lib/select/reflection.d.ts +3 -4
- package/lib/select/select-control-settings-context.d.ts +6 -7
- package/lib/select/select-in-popover.d.ts +7 -8
- package/lib/select/select-loader.d.ts +2 -3
- package/lib/select/select-mock-context.d.ts +2 -3
- package/lib/select/select-trigger.d.ts +2 -3
- package/lib/select/select.d.ts +7 -7
- package/lib/select/styles.d.ts +8 -9
- package/lib/select/util.d.ts +6 -7
- package/lib/sidebar/sidebar-handle.d.ts +2 -3
- package/lib/sidebar/sidebar.d.ts +9 -8
- package/lib/sidebar/sidebar.js +8 -2
- package/lib/sidebar/sidebar.wyw-in-js.css +1 -1
- package/lib/sidebar/use-resize-drag.d.ts +3 -4
- package/lib/skeleton-card.d.ts +3 -4
- package/lib/skeleton-entity-box.d.ts +6 -0
- package/lib/skeleton-entity-box.js +16 -0
- package/lib/skeleton-entity-box.wyw-in-js.css +1 -0
- package/lib/skeleton.d.ts +13 -13
- package/lib/skeleton.js +4 -3
- package/lib/spinner-box.d.ts +6 -6
- package/lib/spinner-box.js +5 -2
- package/lib/spinner.d.ts +5 -4
- package/lib/spinner.js +12 -16
- package/lib/spinner.wyw-in-js.css +6 -2
- package/lib/static-palettes.d.ts +3 -4
- package/lib/styles-utils.d.ts +3 -4
- package/lib/tab-nav/tab-nav.d.ts +8 -9
- package/lib/table.d.ts +8 -9
- package/lib/thematic-color-picker.d.ts +8 -9
- package/lib/thematic-constants.d.ts +5 -6
- package/lib/thematic-controls.d.ts +15 -16
- package/lib/thematic-cvd.d.ts +3 -4
- package/lib/thematic-highlights.d.ts +3 -4
- package/lib/thematic-scales.d.ts +8 -9
- package/lib/thematic-state.d.ts +4 -5
- package/lib/thematic-swatch-adjust.d.ts +3 -4
- package/lib/thematic.d.ts +2 -3
- package/lib/theme-bootstrap.d.ts +10 -11
- package/lib/theme-provider.d.ts +24 -23
- package/lib/theme-settings-core.d.ts +12 -12
- package/lib/theme-settings.d.ts +3 -3
- package/lib/theme-styles.d.ts +3 -4
- package/lib/theme.js +1 -2
- package/lib/theming.build.d.ts +3 -4
- package/lib/theming.generated.d.ts +34 -25
- package/lib/theming.generated.js +25 -15
- package/lib/toast/primitives.d.ts +6 -7
- package/lib/toast/toast-action.d.ts +4 -6
- package/lib/toast/toast-provider.d.ts +3 -4
- package/lib/toast/toast-queue.d.ts +4 -5
- package/lib/toast/toast.d.ts +3 -4
- package/lib/toast/toast.js +1 -1
- package/lib/toast/toast.wyw-in-js.css +2 -2
- package/lib/toast/toaster.d.ts +2 -3
- package/lib/toast/utils/toastify-item-name.d.ts +3 -4
- package/lib/toggle-button/round-toggle-button.d.ts +2 -3
- package/lib/toggle-button/toggle-button-group.d.ts +4 -5
- package/lib/toggle-button/toggle-button.d.ts +10 -11
- package/lib/toggle-button/toggle-button.js +1 -1
- package/lib/toggle-on-off.d.ts +2 -3
- package/lib/toggle.d.ts +3 -4
- package/lib/toggle.js +7 -3
- package/lib/toggle.wyw-in-js.css +6 -5
- package/lib/tooltip-if-overflown.d.ts +4 -4
- package/lib/tooltip.d.ts +11 -12
- package/lib/tree-utils.d.ts +13 -14
- package/lib/type-badge-box.d.ts +2 -3
- package/lib/type-badge.d.ts +7 -8
- package/lib/type-label.d.ts +2 -3
- package/lib/unit/as-string.d.ts +2 -3
- package/lib/unit/container.d.ts +3 -4
- package/lib/unit/context.d.ts +7 -8
- package/lib/unit/labeled-unit.d.ts +5 -6
- package/lib/unit/loading-unit-value.d.ts +2 -3
- package/lib/unit/maybe-unit-value.d.ts +2 -3
- package/lib/unit/nav-button.d.ts +4 -5
- package/lib/unit/styles.d.ts +14 -15
- package/lib/unit/unit-content-layout.d.ts +3 -4
- package/lib/unit/unit-content.d.ts +2 -3
- package/lib/unit/unit.d.ts +5 -5
- package/lib/use-is-media-query-matched.d.ts +2 -3
- package/lib/use-is-phone.d.ts +3 -3
- package/lib/use-is-support-hardware-keyboard.d.ts +2 -3
- package/lib/use-is-support-hover.d.ts +2 -3
- package/lib/use-long-press.d.ts +3 -4
- package/lib/use-long-press.js +2 -2
- package/lib/use-me.d.ts +1 -1
- package/lib/use-navigation.d.ts +1 -1
- package/lib/use-on-screen-keyboard-data.d.ts +3 -3
- package/package.json +12 -12
- package/lib/ai/max-tokens.d.ts +0 -11
- package/lib/ai/max-tokens.js +0 -25
- package/lib/ai/max-tokens.wyw-in-js.css +0 -1
- package/lib/ai/temperature.d.ts +0 -8
- package/lib/ai/temperature.js +0 -51
- package/lib/ai/temperature.wyw-in-js.css +0 -1
- package/lib/number-input/number-input-inline-with-autosize.d.ts +0 -9
- package/lib/number-input/number-input-inline-with-autosize.js +0 -93
- package/lib/number-input/number-input-inline-with-autosize.wyw-in-js.css +0 -2
- package/lib/number-input/stack.d.ts +0 -10
- package/lib/number-input/stack.js +0 -14
- package/lib/number-input/stack.wyw-in-js.css +0 -1
- package/lib/number-input/styles.wyw-in-js.css +0 -4
- package/lib/number-input/text-area-auto-sized.d.ts +0 -9
- package/lib/number-input/text-area-auto-sized.js +0 -38
- package/lib/number-input/text-area-auto-sized.wyw-in-js.css +0 -1
- package/lib/number-input/text-input-auto-sized.d.ts +0 -10
- package/lib/number-input/text-input-auto-sized.js +0 -37
|
@@ -2,7 +2,7 @@ import { GroupBase as GroupBase$1 } from "../util.js";
|
|
|
2
2
|
import "../select.js";
|
|
3
3
|
import { GroupHeadingProps } from "react-select";
|
|
4
4
|
//#region src/select/components/group-heading.d.ts
|
|
5
|
-
declare const groupHeadingNulledStyles: {
|
|
5
|
+
export declare const groupHeadingNulledStyles: {
|
|
6
6
|
fontFamily: "\"Inter Variable\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI Variable Display\", \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif";
|
|
7
7
|
fontSize: 12;
|
|
8
8
|
lineHeight: 1.5;
|
|
@@ -20,7 +20,6 @@ declare const groupHeadingNulledStyles: {
|
|
|
20
20
|
height: 44;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
declare function GroupHeading<Option, IsMulti extends boolean = false, Group extends GroupBase$1<Option> = GroupBase$1<Option>>({ children, ...props }: GroupHeadingProps<Option, IsMulti, Group>): import("react
|
|
24
|
-
declare function GroupSeparator<Option, IsMulti extends boolean = false, Group extends GroupBase$1<Option> = GroupBase$1<Option>>({ ...props }: GroupHeadingProps<Option, IsMulti, Group>): import("react
|
|
25
|
-
//#endregion
|
|
26
|
-
export { GroupHeading, GroupSeparator, groupHeadingNulledStyles };
|
|
23
|
+
export declare function GroupHeading<Option, IsMulti extends boolean = false, Group extends GroupBase$1<Option> = GroupBase$1<Option>>({ children, ...props }: GroupHeadingProps<Option, IsMulti, Group>): import("react").JSX.Element | null;
|
|
24
|
+
export declare function GroupSeparator<Option, IsMulti extends boolean = false, Group extends GroupBase$1<Option> = GroupBase$1<Option>>({ ...props }: GroupHeadingProps<Option, IsMulti, Group>): import("react").JSX.Element | null;
|
|
25
|
+
//#endregion
|
|
@@ -5,6 +5,5 @@ import { MenuListProps } from "react-select";
|
|
|
5
5
|
* Virtualized MenuList using virtua — supports dynamic item heights.
|
|
6
6
|
* Use with `virtualized={false}` + `components={{ MenuList: MenuListVirtua }}`.
|
|
7
7
|
*/
|
|
8
|
-
declare function MenuListVirtua<Option, IsMulti extends boolean = boolean, Group extends GroupBase$1<Option> = GroupBase$1<Option>>(props: MenuListProps<Option, IsMulti, Group>): import("react
|
|
9
|
-
//#endregion
|
|
10
|
-
export { MenuListVirtua };
|
|
8
|
+
export declare function MenuListVirtua<Option, IsMulti extends boolean = boolean, Group extends GroupBase$1<Option> = GroupBase$1<Option>>(props: MenuListProps<Option, IsMulti, Group>): import("react").JSX.Element;
|
|
9
|
+
//#endregion
|
|
@@ -22,7 +22,7 @@ function flattenGroupChildren(children, renderGroup) {
|
|
|
22
22
|
* Use with `virtualized={false}` + `components={{ MenuList: MenuListVirtua }}`.
|
|
23
23
|
*/
|
|
24
24
|
function MenuListVirtua(props) {
|
|
25
|
-
const { children, focusedOption, maxHeight, getStyles, selectProps, cx, theme } = props;
|
|
25
|
+
const { children, focusedOption, maxHeight, getStyles, getClassNames, selectProps, cx, theme, innerProps } = props;
|
|
26
26
|
const vlistRef = useRef(null);
|
|
27
27
|
const select = useContext(ReactSelectRefContext);
|
|
28
28
|
const [initialized, setInitialized] = useState(false);
|
|
@@ -33,12 +33,14 @@ function MenuListVirtua(props) {
|
|
|
33
33
|
selectProps,
|
|
34
34
|
theme,
|
|
35
35
|
getStyles,
|
|
36
|
+
getClassNames,
|
|
36
37
|
...headingProps,
|
|
37
38
|
children: content
|
|
38
39
|
}) : null;
|
|
39
40
|
}, [
|
|
40
41
|
cx,
|
|
41
42
|
getStyles,
|
|
43
|
+
getClassNames,
|
|
42
44
|
selectProps,
|
|
43
45
|
theme
|
|
44
46
|
]);
|
|
@@ -64,7 +66,10 @@ function MenuListVirtua(props) {
|
|
|
64
66
|
const target = selectedOption || firstOption;
|
|
65
67
|
if (target) {
|
|
66
68
|
setInitialized(true);
|
|
67
|
-
select.current.setState({
|
|
69
|
+
select.current.setState({
|
|
70
|
+
focusedOption: target,
|
|
71
|
+
focusedOptionId: select.current.getFocusedOptionId(target)
|
|
72
|
+
});
|
|
68
73
|
}
|
|
69
74
|
}, [
|
|
70
75
|
items,
|
|
@@ -75,6 +80,7 @@ function MenuListVirtua(props) {
|
|
|
75
80
|
if (focusedIndex >= 0 && vlistRef.current) vlistRef.current.scrollToIndex(focusedIndex, { align: "nearest" });
|
|
76
81
|
}, [focusedIndex]);
|
|
77
82
|
return /* @__PURE__ */ jsx("div", {
|
|
83
|
+
...innerProps,
|
|
78
84
|
style: {
|
|
79
85
|
height: estimatedHeight,
|
|
80
86
|
...getStyles("menuList", props),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GroupBase as GroupBase$1 } from "../util.js";
|
|
2
2
|
import { MenuListProps } from "react-select";
|
|
3
3
|
//#region src/select/components/menu-list-virtualized.d.ts
|
|
4
|
-
declare function MenuListVirtualized<Option, IsMulti extends boolean = boolean, Group extends GroupBase$1<Option> = GroupBase$1<Option>>(props: MenuListProps<Option, IsMulti, Group>): import("react
|
|
5
|
-
//#endregion
|
|
6
|
-
export { MenuListVirtualized };
|
|
4
|
+
export declare function MenuListVirtualized<Option, IsMulti extends boolean = boolean, Group extends GroupBase$1<Option> = GroupBase$1<Option>>(props: MenuListProps<Option, IsMulti, Group>): import("react").JSX.Element;
|
|
5
|
+
//#endregion
|
|
@@ -26,13 +26,13 @@ var flattenGroupChildren = (children, renderGroup) => {
|
|
|
26
26
|
};
|
|
27
27
|
var drawListElement = (index, child) => child;
|
|
28
28
|
function MenuListVirtualized(props) {
|
|
29
|
-
const { children, focusedOption, innerRef, maxHeight, theme, getStyles, cx, selectProps } = props;
|
|
29
|
+
const { children, focusedOption, innerRef, innerProps, maxHeight, theme, getStyles, getClassNames, cx, selectProps } = props;
|
|
30
30
|
const isPhone = useIsPhone();
|
|
31
31
|
const { inPopover } = useSelectControlSettings();
|
|
32
32
|
const virtuoso = useRef(null);
|
|
33
33
|
const select = useContext(ReactSelectRefContext);
|
|
34
34
|
const [initialFocusedOption, setInitialFocusedOption] = useState(null);
|
|
35
|
-
const scrollTimeoutRef = useRef();
|
|
35
|
+
const scrollTimeoutRef = useRef(void 0);
|
|
36
36
|
const itemHeight = isPhone ? layout.mobileMenuItemHeight : layout.menuItemHeight;
|
|
37
37
|
const scrollThreshold = itemHeight * MINIMAL_VISIBLE_PORTION_TO_SCROLL_INTO_VIEW;
|
|
38
38
|
const renderGroup = useMemo(() => (Component, headingProps) => {
|
|
@@ -42,12 +42,14 @@ function MenuListVirtualized(props) {
|
|
|
42
42
|
selectProps,
|
|
43
43
|
theme,
|
|
44
44
|
getStyles,
|
|
45
|
+
getClassNames,
|
|
45
46
|
...headingProps,
|
|
46
47
|
children: content
|
|
47
48
|
}) : null;
|
|
48
49
|
}, [
|
|
49
50
|
cx,
|
|
50
51
|
getStyles,
|
|
52
|
+
getClassNames,
|
|
51
53
|
selectProps,
|
|
52
54
|
theme
|
|
53
55
|
]);
|
|
@@ -83,7 +85,10 @@ function MenuListVirtualized(props) {
|
|
|
83
85
|
const optionToFocus = selectedOption || firstExistingOption;
|
|
84
86
|
if (optionToFocus) {
|
|
85
87
|
setInitialFocusedOption(optionToFocus);
|
|
86
|
-
select.current.setState({
|
|
88
|
+
select.current.setState({
|
|
89
|
+
focusedOption: optionToFocus,
|
|
90
|
+
focusedOptionId: select.current.getFocusedOptionId(optionToFocus)
|
|
91
|
+
});
|
|
87
92
|
}
|
|
88
93
|
}
|
|
89
94
|
}, [
|
|
@@ -133,6 +138,7 @@ function MenuListVirtualized(props) {
|
|
|
133
138
|
scrollThreshold
|
|
134
139
|
]);
|
|
135
140
|
return /* @__PURE__ */ jsx("div", {
|
|
141
|
+
...innerProps,
|
|
136
142
|
style: getStyles("menuList", props),
|
|
137
143
|
children: /* @__PURE__ */ jsx(Virtuoso, {
|
|
138
144
|
ref: virtuoso,
|
|
@@ -4,13 +4,12 @@ import { ComponentType } from "react";
|
|
|
4
4
|
import { CSSObjectWithLabel, MenuProps } from "react-select";
|
|
5
5
|
import { MenuPortalProps } from "react-select/dist/declarations/src/components/Menu";
|
|
6
6
|
//#region src/select/components/menu.d.ts
|
|
7
|
-
declare const MenuListNulledStyles: CSSObjectWithLabel;
|
|
8
|
-
declare const MenuNulledStyles: CSSObjectWithLabel;
|
|
9
|
-
declare function fitMenuListIntoMenu<P extends {
|
|
7
|
+
export declare const MenuListNulledStyles: CSSObjectWithLabel;
|
|
8
|
+
export declare const MenuNulledStyles: CSSObjectWithLabel;
|
|
9
|
+
export declare function fitMenuListIntoMenu<P extends {
|
|
10
10
|
maxHeight: number;
|
|
11
11
|
}>(MenuList: ComponentType<P>): ComponentType<P>;
|
|
12
|
-
declare function Menu<T, U extends boolean, V extends GroupBase$1<T>>(props: MenuProps<T, U, V>): import("react
|
|
13
|
-
declare function MenuTransparent<T, U extends boolean, V extends GroupBase$1<T>>(props: MenuProps<T, U, V>): import("react
|
|
14
|
-
declare function MenuPortal<T, U extends boolean, V extends GroupBase$1<T>>(props: MenuPortalProps<T, U, V>): import("react
|
|
15
|
-
//#endregion
|
|
16
|
-
export { Menu, MenuListNulledStyles, MenuNulledStyles, MenuPortal, MenuTransparent, fitMenuListIntoMenu };
|
|
12
|
+
export declare function Menu<T, U extends boolean, V extends GroupBase$1<T>>(props: MenuProps<T, U, V>): import("react").JSX.Element;
|
|
13
|
+
export declare function MenuTransparent<T, U extends boolean, V extends GroupBase$1<T>>(props: MenuProps<T, U, V>): import("react").JSX.Element;
|
|
14
|
+
export declare function MenuPortal<T, U extends boolean, V extends GroupBase$1<T>>(props: MenuPortalProps<T, U, V>): import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GroupBase as GroupBase$1 } from "../util.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { NoticeProps } from "react-select";
|
|
3
4
|
//#region src/select/components/no-option-message.d.ts
|
|
4
|
-
declare const NoOptionsMessage: <Option, isMulty extends boolean, Group extends GroupBase$1<Option> = GroupBase$1<Option>>(props: NoticeProps<Option, isMulty, Group>) =>
|
|
5
|
-
//#endregion
|
|
6
|
-
export { NoOptionsMessage };
|
|
5
|
+
export declare const NoOptionsMessage: <Option, isMulty extends boolean, Group extends GroupBase$1<Option> = GroupBase$1<Option>>(props: NoticeProps<Option, isMulty, Group>) => React.JSX.Element;
|
|
6
|
+
//#endregion
|
|
@@ -2,13 +2,13 @@ import { GroupBase as GroupBase$1 } from "../util.js";
|
|
|
2
2
|
import "../select.js";
|
|
3
3
|
import { OptionProps } from "react-select";
|
|
4
4
|
//#region src/select/components/option.d.ts
|
|
5
|
-
declare const OptionNulledVitualizedStyles: {
|
|
5
|
+
export declare const OptionNulledVitualizedStyles: {
|
|
6
6
|
height: 32;
|
|
7
7
|
".fibery-mobile &": {
|
|
8
8
|
height: 44;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
declare const OptionNulledStyles: {
|
|
11
|
+
export declare const OptionNulledStyles: {
|
|
12
12
|
minHeight: 32;
|
|
13
13
|
paddingLeft: string;
|
|
14
14
|
paddingRight: string;
|
|
@@ -23,11 +23,10 @@ declare const OptionNulledStyles: {
|
|
|
23
23
|
* Attention! Do not use this option for potentially long lists inside React Select
|
|
24
24
|
* Why is this option slow? Read here https://the.fibery.io/SoftDev/bug/Select-option-behaviour-is-incorrect-9413
|
|
25
25
|
* */
|
|
26
|
-
declare function OptionSlow<Option, IsMulti extends boolean = false, Group extends GroupBase$1<Option> = GroupBase$1<Option>>({ children, ...rest }: OptionProps<Option, IsMulti, Group>): import("react
|
|
26
|
+
export declare function OptionSlow<Option, IsMulti extends boolean = false, Group extends GroupBase$1<Option> = GroupBase$1<Option>>({ children, ...rest }: OptionProps<Option, IsMulti, Group>): import("react").JSX.Element;
|
|
27
27
|
/**
|
|
28
28
|
* This option is fast when there is 100+ items but breaks natural focus on hover React Select behaviour. Do not use it for short lists
|
|
29
29
|
* The issue is here https://the.fibery.io/SoftDev/bug/Select-option-behaviour-is-incorrect-9413
|
|
30
30
|
*/
|
|
31
|
-
declare function Option<Option, IsMulti extends boolean = false, Group extends GroupBase$1<Option> = GroupBase$1<Option>>({ children, ...rest }: OptionProps<Option, IsMulti, Group>): import("react
|
|
32
|
-
//#endregion
|
|
33
|
-
export { Option, OptionNulledStyles, OptionNulledVitualizedStyles, OptionSlow };
|
|
31
|
+
export declare function Option<Option, IsMulti extends boolean = false, Group extends GroupBase$1<Option> = GroupBase$1<Option>>({ children, ...rest }: OptionProps<Option, IsMulti, Group>): import("react").JSX.Element;
|
|
32
|
+
//#endregion
|
package/lib/select/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { GroupBase } from "./util.js";
|
|
|
2
2
|
import { MenuListVirtualized } from "./components/menu-list-virtualized.js";
|
|
3
3
|
import { MenuListVirtua } from "./components/menu-list-virtua.js";
|
|
4
4
|
import { ActionMeta, BaseSelectProps, ControlProps, CreatableSelect, MenuListProps, MenuProps, MultiValue, MultiValueProps, MultiValueRemoveProps, OnChangeValue, OptionProps, OptionsOrGroups, PropsValue, SelectInstance, SelectProps, SingleValue, SingleValueProps, StylesConfig, components as reactSelectComponents, composeStyles, createFilter } from "./select.js";
|
|
5
|
-
import React from "react";
|
|
5
|
+
import React, { JSX } from "react";
|
|
6
6
|
//#region src/select/index.d.ts
|
|
7
|
-
declare const Select: <Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option
|
|
7
|
+
export declare const Select: <Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>, CustomProps extends object = {}>(props: SelectProps<Option, IsMulti, Group> & NoInfer<CustomProps> & {
|
|
8
8
|
ref?: React.Ref<SelectInstance<Option, IsMulti, Group>>;
|
|
9
9
|
}) => JSX.Element;
|
|
10
|
-
declare function SingleRowSelect<T = unknown, U extends boolean = boolean, V extends GroupBase<T> = GroupBase<T>>({ styles, ...rest }: SelectProps<T, U, V>):
|
|
10
|
+
export declare function SingleRowSelect<T = unknown, U extends boolean = boolean, V extends GroupBase<T> = GroupBase<T>>({ styles, ...rest }: SelectProps<T, U, V>): JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { type ActionMeta, type BaseSelectProps, type ControlProps, CreatableSelect, type GroupBase, type MenuListProps, MenuListVirtua, MenuListVirtualized, type MenuProps, type MultiValue, type MultiValueProps, type MultiValueRemoveProps, type OnChangeValue, type OptionProps, type OptionsOrGroups, type PropsValue,
|
|
12
|
+
export { type ActionMeta, type BaseSelectProps, type ControlProps, CreatableSelect, type GroupBase, type MenuListProps, MenuListVirtua, MenuListVirtualized, type MenuProps, type MultiValue, type MultiValueProps, type MultiValueRemoveProps, type OnChangeValue, type OptionProps, type OptionsOrGroups, type PropsValue, type SelectInstance, type SelectProps, type SingleValue, type SingleValueProps, type StylesConfig, reactSelectComponents as components, composeStyles, createFilter };
|
|
@@ -4,7 +4,6 @@ import { GroupProps } from "react-select/dist/declarations/src";
|
|
|
4
4
|
type ReactElementWithProps<P = object> = {
|
|
5
5
|
props: P;
|
|
6
6
|
};
|
|
7
|
-
declare function isReactElementWithProps(node: unknown): node is ReactElementWithProps;
|
|
8
|
-
declare function isGroupChild<Option, IsMulti extends boolean, Group extends GroupBase<Option> = GroupBase<Option>>(node: ReactElementWithProps): node is ReactElementWithProps<GroupProps<Option, IsMulti, Group>>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { isGroupChild, isReactElementWithProps };
|
|
7
|
+
export declare function isReactElementWithProps(node: unknown): node is ReactElementWithProps;
|
|
8
|
+
export declare function isGroupChild<Option, IsMulti extends boolean, Group extends GroupBase<Option> = GroupBase<Option>>(node: ReactElementWithProps): node is ReactElementWithProps<GroupProps<Option, IsMulti, Group>>;
|
|
9
|
+
//#endregion
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
//#region src/select/select-control-settings-context.d.ts
|
|
3
|
-
declare function SelectControlSettingsProvider({ children, getPopupContainerElement, zIndex, inPopover, onRequestClose }: {
|
|
3
|
+
export declare function SelectControlSettingsProvider({ children, getPopupContainerElement, zIndex, inPopover, onRequestClose }: {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
getPopupContainerElement?: () => HTMLElement | null;
|
|
5
|
+
getPopupContainerElement?: () => HTMLElement | null | undefined;
|
|
6
6
|
zIndex?: number;
|
|
7
7
|
inPopover?: boolean;
|
|
8
8
|
onRequestClose?: () => void;
|
|
9
|
-
}): import("react
|
|
10
|
-
declare const useSelectControlSettings: () => {
|
|
11
|
-
getPopupContainerElement?: () => HTMLElement | null;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export declare const useSelectControlSettings: () => {
|
|
11
|
+
getPopupContainerElement?: () => HTMLElement | null | undefined;
|
|
12
12
|
zIndex?: number;
|
|
13
13
|
inPopover?: boolean;
|
|
14
14
|
onRequestClose?: () => void;
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
|
-
export { SelectControlSettingsProvider, useSelectControlSettings };
|
|
16
|
+
//#endregion
|
|
@@ -4,10 +4,10 @@ import { ActionMeta, OnChangeValue, SelectProps, StylesConfig as StylesConfig$1
|
|
|
4
4
|
import React, { ForwardedRef, ReactNode, RefObject } from "react";
|
|
5
5
|
import { SelectInstance } from "react-select";
|
|
6
6
|
//#region src/select/select-in-popover.d.ts
|
|
7
|
-
declare const popupClassName: import("@linaria/core").LinariaClassName;
|
|
8
|
-
type SelectInPopoverRef<T, U extends boolean, V extends GroupBase$1<T>> = {
|
|
7
|
+
export declare const popupClassName: import("@linaria/core").LinariaClassName;
|
|
8
|
+
export type SelectInPopoverRef<T, U extends boolean, V extends GroupBase$1<T>> = {
|
|
9
9
|
valueRef: HTMLDivElement | null;
|
|
10
|
-
selectRef: RefObject<SelectInstance<T, U, V
|
|
10
|
+
selectRef: RefObject<SelectInstance<T, U, V> | null>;
|
|
11
11
|
};
|
|
12
12
|
type Props<T, U extends boolean, V extends GroupBase$1<T>> = {
|
|
13
13
|
menuIsOpen?: boolean;
|
|
@@ -27,10 +27,9 @@ type Props<T, U extends boolean, V extends GroupBase$1<T>> = {
|
|
|
27
27
|
otherSelectProps?: Record<string, unknown>;
|
|
28
28
|
popoverPlacement?: Placement;
|
|
29
29
|
} & Pick<SelectProps<T, U, V>, "value" | "options" | "placeholder" | "autoFocus" | "inputValue" | "formatGroupLabel" | "defaultMenuIsOpen" | "virtualized" | "formatOptionLabel" | "isOptionDisabled" | "noOptionsMessage" | "forbidValuesClearInCollnMode" | "filterOption" | "onInputChange" | "onChange" | "onFocus" | "components" | "isSearchable">;
|
|
30
|
-
declare function SelectInPopoverInner<T, U extends boolean, V extends GroupBase$1<T>>(props: Props<T, U, V>, forwardedRef: ForwardedRef<SelectInPopoverRef<T, U, V>>):
|
|
31
|
-
type SelectInPopoverType = <T, U extends boolean, V extends GroupBase$1<T
|
|
30
|
+
declare function SelectInPopoverInner<T, U extends boolean, V extends GroupBase$1<T>>(props: Props<T, U, V>, forwardedRef: ForwardedRef<SelectInPopoverRef<T, U, V>>): React.JSX.Element;
|
|
31
|
+
type SelectInPopoverType = <T, U extends boolean, V extends GroupBase$1<T>, CustomProps extends object = {}>(props: Props<T, U, V> & NoInfer<CustomProps> & {
|
|
32
32
|
ref?: ForwardedRef<SelectInPopoverRef<T, U, V>>;
|
|
33
33
|
}) => ReturnType<typeof SelectInPopoverInner>;
|
|
34
|
-
declare const SelectInPopover: SelectInPopoverType;
|
|
35
|
-
//#endregion
|
|
36
|
-
export { SelectInPopover, SelectInPopoverRef, popupClassName };
|
|
34
|
+
export declare const SelectInPopover: SelectInPopoverType;
|
|
35
|
+
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
//#region src/select/select-mock-context.d.ts
|
|
3
|
-
declare function SelectMockContext({ children }: PropsWithChildren): import("react
|
|
4
|
-
//#endregion
|
|
5
|
-
export { SelectMockContext };
|
|
3
|
+
export declare function SelectMockContext({ children }: PropsWithChildren): import("react").JSX.Element;
|
|
4
|
+
//#endregion
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
//#region src/select/select-trigger.d.ts
|
|
2
|
-
declare const SelectTrigger: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
-
//#endregion
|
|
4
|
-
export { SelectTrigger };
|
|
2
|
+
export declare const SelectTrigger: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
//#endregion
|
package/lib/select/select.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GroupBase } from "./util.js";
|
|
2
2
|
import { MenuListVirtualized } from "./components/menu-list-virtualized.js";
|
|
3
3
|
import { MenuListVirtua } from "./components/menu-list-virtua.js";
|
|
4
|
-
import { ForwardedRef, Ref } from "react";
|
|
4
|
+
import { ForwardedRef, JSX, Ref } from "react";
|
|
5
5
|
import { ActionMeta, ControlProps, MenuListProps, MenuProps, MultiValue, MultiValueProps, MultiValueRemoveProps, OnChangeValue, OptionProps, OptionsOrGroups, Props as BaseSelectProps, PropsValue, SelectInstance, SingleValue, SingleValueProps, StylesConfig, components as reactSelectComponents, createFilter } from "react-select";
|
|
6
6
|
import { CreatableProps } from "react-select/creatable";
|
|
7
7
|
//#region src/select/select.d.ts
|
|
8
|
-
declare function composeStyles<T, U extends boolean, V extends GroupBase<T>>(styles: StylesConfig<T, U, V>[]): StylesConfig<T, U, V>;
|
|
9
|
-
type SelectProps<T = unknown, U extends boolean = boolean, V extends GroupBase<T> = GroupBase<T>> = Omit<Omit<Omit<BaseSelectProps<T, U, V>, "isMulti">, "backspaceRemovesValue">, "isDisabled"> & {
|
|
8
|
+
export declare function composeStyles<T, U extends boolean, V extends GroupBase<T>>(styles: StylesConfig<T, U, V>[]): StylesConfig<T, U, V>;
|
|
9
|
+
export type SelectProps<T = unknown, U extends boolean = boolean, V extends GroupBase<T> = GroupBase<T>> = Omit<Omit<Omit<BaseSelectProps<T, U, V>, "isMulti">, "backspaceRemovesValue">, "isDisabled"> & {
|
|
10
10
|
virtualized?: boolean;
|
|
11
11
|
title?: string;
|
|
12
12
|
isCollectionMode?: U;
|
|
@@ -16,12 +16,12 @@ type SelectProps<T = unknown, U extends boolean = boolean, V extends GroupBase<T
|
|
|
16
16
|
placeholder?: string;
|
|
17
17
|
mobileContainerClassName?: string;
|
|
18
18
|
};
|
|
19
|
-
declare const SelectComponent: <Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>>(props: SelectProps<Option, IsMulti, Group> & {
|
|
19
|
+
export declare const SelectComponent: <Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>>(props: SelectProps<Option, IsMulti, Group> & {
|
|
20
20
|
ref?: Ref<SelectInstance<Option, IsMulti, Group>>;
|
|
21
21
|
}) => JSX.Element;
|
|
22
|
-
declare function CreatableSelectInner<T = unknown, U extends boolean = boolean, V extends GroupBase<T> = GroupBase<T>>({ components, isCollectionMode, menuPortalTarget, styles, virtualized, forbidValuesClearInCollnMode, ...rest }: CreatableProps<T, U, V> & SelectProps<T, U, V>, ref: ForwardedRef<SelectInstance<T, U, V>>):
|
|
23
|
-
declare const CreatableSelect: <T = unknown, U extends boolean = boolean, V extends GroupBase<T> = GroupBase<T>>(props: CreatableProps<T, U, V> & SelectProps<T, U, V> & {
|
|
22
|
+
declare function CreatableSelectInner<T = unknown, U extends boolean = boolean, V extends GroupBase<T> = GroupBase<T>>({ components, isCollectionMode, menuPortalTarget, styles, virtualized, forbidValuesClearInCollnMode, ...rest }: CreatableProps<T, U, V> & SelectProps<T, U, V>, ref: ForwardedRef<SelectInstance<T, U, V>>): JSX.Element;
|
|
23
|
+
export declare const CreatableSelect: <T = unknown, U extends boolean = boolean, V extends GroupBase<T> = GroupBase<T>>(props: CreatableProps<T, U, V> & SelectProps<T, U, V> & {
|
|
24
24
|
ref?: Ref<SelectInstance<T, U, V>>;
|
|
25
25
|
}) => ReturnType<typeof CreatableSelectInner>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { type ActionMeta, type BaseSelectProps, type ControlProps,
|
|
27
|
+
export { type ActionMeta, type BaseSelectProps, type ControlProps, type GroupBase, type MenuListProps, MenuListVirtua, MenuListVirtualized, type MenuProps, type MultiValue, type MultiValueProps, type MultiValueRemoveProps, type OnChangeValue, type OptionProps, type OptionsOrGroups, type PropsValue, type SelectInstance, type SingleValue, type SingleValueProps, type StylesConfig, reactSelectComponents as components, createFilter };
|
package/lib/select/styles.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { GroupBase, StylesConfig } from "react-select";
|
|
2
2
|
//#region src/select/styles.d.ts
|
|
3
|
-
declare const expanderExpandedStyle: import("@linaria/core").LinariaClassName;
|
|
4
|
-
declare const makeVirtualizedStyles: <T, U extends boolean, V extends GroupBase<T>>() => StylesConfig<T, U, V>;
|
|
5
|
-
declare const makeNonVirtualizedStyles: <T, U extends boolean, V extends GroupBase<T>>() => StylesConfig<T, U, V>;
|
|
6
|
-
declare const makeZIndexStyles: <T, U extends boolean, V extends GroupBase<T>>(zIndex: number) => StylesConfig<T, U, V>;
|
|
7
|
-
declare const makeComponentsStyles: <T, U extends boolean, V extends GroupBase<T>>() => StylesConfig<T, U, V>;
|
|
8
|
-
declare const makeSingleLineStyles: <T, U extends boolean, V extends GroupBase<T>>() => StylesConfig<T, U, V>;
|
|
9
|
-
declare const makeSelectInPopoverStyles: <T, U extends boolean, V extends GroupBase<T>>(isPhone: boolean) => StylesConfig<T, U, V>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { expanderExpandedStyle, makeComponentsStyles, makeNonVirtualizedStyles, makeSelectInPopoverStyles, makeSingleLineStyles, makeVirtualizedStyles, makeZIndexStyles };
|
|
3
|
+
export declare const expanderExpandedStyle: import("@linaria/core").LinariaClassName;
|
|
4
|
+
export declare const makeVirtualizedStyles: <T, U extends boolean, V extends GroupBase<T>>() => StylesConfig<T, U, V>;
|
|
5
|
+
export declare const makeNonVirtualizedStyles: <T, U extends boolean, V extends GroupBase<T>>() => StylesConfig<T, U, V>;
|
|
6
|
+
export declare const makeZIndexStyles: <T, U extends boolean, V extends GroupBase<T>>(zIndex: number) => StylesConfig<T, U, V>;
|
|
7
|
+
export declare const makeComponentsStyles: <T, U extends boolean, V extends GroupBase<T>>() => StylesConfig<T, U, V>;
|
|
8
|
+
export declare const makeSingleLineStyles: <T, U extends boolean, V extends GroupBase<T>>() => StylesConfig<T, U, V>;
|
|
9
|
+
export declare const makeSelectInPopoverStyles: <T, U extends boolean, V extends GroupBase<T>>(isPhone: boolean) => StylesConfig<T, U, V>;
|
|
10
|
+
//#endregion
|
package/lib/select/util.d.ts
CHANGED
|
@@ -4,13 +4,12 @@ import { GroupBase as GroupBase$1, OptionsOrGroups, SelectInstance } from "react
|
|
|
4
4
|
/**
|
|
5
5
|
* API used by ReactSelect internal partials (at least VirtualizedMenuList).
|
|
6
6
|
*/
|
|
7
|
-
declare const ReactSelectRefContext: import("react").Context<RefObject<SelectInstance>>;
|
|
8
|
-
type GroupBase<T> = GroupBase$1<T> & {
|
|
7
|
+
export declare const ReactSelectRefContext: import("react").Context<RefObject<SelectInstance | null>>;
|
|
8
|
+
export type GroupBase<T> = GroupBase$1<T> & {
|
|
9
9
|
separator?: boolean;
|
|
10
10
|
separatorMargin?: number;
|
|
11
11
|
};
|
|
12
|
-
declare function isGroup<Option, Group extends GroupBase<Option>>(optionOrGroup: Option | Group): optionOrGroup is Group;
|
|
13
|
-
declare function countOptions<Option, Group extends GroupBase<Option>>(categorizedOptions?: OptionsOrGroups<Option, Group>): number;
|
|
14
|
-
declare function isPureTextChildren(children: ReactNode): boolean;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { GroupBase, ReactSelectRefContext, countOptions, isGroup, isPureTextChildren };
|
|
12
|
+
export declare function isGroup<Option, Group extends GroupBase<Option>>(optionOrGroup: Option | Group): optionOrGroup is Group;
|
|
13
|
+
export declare function countOptions<Option, Group extends GroupBase<Option>>(categorizedOptions?: OptionsOrGroups<Option, Group>): number;
|
|
14
|
+
export declare function isPureTextChildren(children: ReactNode): boolean;
|
|
15
|
+
//#endregion
|
|
@@ -10,6 +10,5 @@ type Props = {
|
|
|
10
10
|
onPointerDown?: PointerEventHandler<HTMLDivElement>;
|
|
11
11
|
className?: string;
|
|
12
12
|
};
|
|
13
|
-
declare const SidebarHandle: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { SidebarHandle };
|
|
13
|
+
export declare const SidebarHandle: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
//#endregion
|
package/lib/sidebar/sidebar.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { ReactNode, Ref } from "react";
|
|
2
2
|
//#region src/sidebar/sidebar.d.ts
|
|
3
|
-
declare const sidebarWidthVar = "--sidebar-width";
|
|
4
|
-
declare const sidebarTransitionDuration = 300;
|
|
5
|
-
declare const sidebarTransition = "300ms cubic-bezier(0.16, 0.84, 0.44, 1)";
|
|
6
|
-
declare const Sidebar: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children" | "onResize"> & {
|
|
3
|
+
export declare const sidebarWidthVar = "--sidebar-width";
|
|
4
|
+
export declare const sidebarTransitionDuration = 300;
|
|
5
|
+
export declare const sidebarTransition = "300ms cubic-bezier(0.16, 0.84, 0.44, 1)";
|
|
6
|
+
export declare const Sidebar: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children" | "onResize"> & {
|
|
7
7
|
side: "left" | "right";
|
|
8
8
|
/** Number in px, or a css length when not resizable */
|
|
9
9
|
width: number | string;
|
|
10
10
|
collapsed?: boolean;
|
|
11
|
-
minWidth
|
|
12
|
-
maxWidth
|
|
11
|
+
minWidth?: number;
|
|
12
|
+
maxWidth?: number;
|
|
13
|
+
/** Width the sidebar always leaves to the content beside it, when the container is too narrow for both */
|
|
14
|
+
minContentWidth?: number;
|
|
13
15
|
resizable?: boolean;
|
|
14
16
|
onResizeStart?: () => void;
|
|
15
17
|
/** Live width is written straight to the DOM; this only reports it */
|
|
@@ -21,5 +23,4 @@ declare const Sidebar: import("react").ForwardRefExoticComponent<Omit<Omit<impor
|
|
|
21
23
|
panelRef?: Ref<HTMLDivElement>;
|
|
22
24
|
children: ReactNode;
|
|
23
25
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { Sidebar, sidebarTransition, sidebarTransitionDuration, sidebarWidthVar };
|
|
26
|
+
//#endregion
|
package/lib/sidebar/sidebar.js
CHANGED
|
@@ -13,7 +13,7 @@ var sidebarTransition = `300ms cubic-bezier(0.16, 0.84, 0.44, 1)`;
|
|
|
13
13
|
var rootCss = "rotdw5d-root";
|
|
14
14
|
var gapCss = "g15gx138-gap";
|
|
15
15
|
var panelCss = "p1yy31y7-panel";
|
|
16
|
-
var Sidebar = forwardRef(function Sidebar({ side, width, collapsed = false, minWidth, maxWidth, resizable = true, onResizeStart, onResize, onResizeEnd, onHandleClick, handleHotkeyNode, panelClassName, panelRef, className, style, children, ...rest }, forwardedRef) {
|
|
16
|
+
var Sidebar = forwardRef(function Sidebar({ side, width, collapsed = false, minWidth = 0, maxWidth = Infinity, minContentWidth, resizable = true, onResizeStart, onResize, onResizeEnd, onHandleClick, handleHotkeyNode, panelClassName, panelRef, className, style, children, ...rest }, forwardedRef) {
|
|
17
17
|
const rootRef = useRef(null);
|
|
18
18
|
const setRootRef = useComposedRefs(forwardedRef, rootRef);
|
|
19
19
|
const isNumericWidth = typeof width === "number";
|
|
@@ -28,7 +28,11 @@ var Sidebar = forwardRef(function Sidebar({ side, width, collapsed = false, minW
|
|
|
28
28
|
rootRef.current?.style.setProperty(sidebarWidthVar, `${size}px`);
|
|
29
29
|
onResize?.(size, rawSize);
|
|
30
30
|
},
|
|
31
|
-
onResizeEnd
|
|
31
|
+
onResizeEnd: minContentWidth === void 0 ? onResizeEnd : (size) => {
|
|
32
|
+
const shownSize = Math.min(size, rootRef.current?.offsetWidth ?? size);
|
|
33
|
+
rootRef.current?.style.setProperty(sidebarWidthVar, `${shownSize}px`);
|
|
34
|
+
onResizeEnd?.(shownSize);
|
|
35
|
+
},
|
|
32
36
|
onClick: onHandleClick
|
|
33
37
|
});
|
|
34
38
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -36,8 +40,10 @@ var Sidebar = forwardRef(function Sidebar({ side, width, collapsed = false, minW
|
|
|
36
40
|
"data-side": side,
|
|
37
41
|
"data-state": collapsed ? "collapsed" : "expanded",
|
|
38
42
|
"data-resizing": isResizing,
|
|
43
|
+
"data-min-content": minContentWidth === void 0 ? void 0 : "",
|
|
39
44
|
className: cx(rootCss, className),
|
|
40
45
|
style: {
|
|
46
|
+
...minContentWidth === void 0 ? {} : { maxWidth: `calc(100% - ${minContentWidth}px)` },
|
|
41
47
|
...style,
|
|
42
48
|
[sidebarWidthVar]: isNumericWidth ? `${width}px` : width
|
|
43
49
|
},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
.rotdw5d-root{position:relative;flex:none;height:100%;}
|
|
2
2
|
.g15gx138-gap{width:var(--sidebar-width);height:100%;transition:width 300ms cubic-bezier(0.16, 0.84, 0.44, 1);}:where([data-state="collapsed"])>.g15gx138-gap{width:0;}:where([data-resizing="true"])>.g15gx138-gap{transition:none;}
|
|
3
|
-
.p1yy31y7-panel{position:absolute;top:0;bottom:0;display:flex;width:var(--sidebar-width);transition:left 300ms cubic-bezier(0.16, 0.84, 0.44, 1),right 300ms cubic-bezier(0.16, 0.84, 0.44, 1),width 300ms cubic-bezier(0.16, 0.84, 0.44, 1),transform 300ms cubic-bezier(0.16, 0.84, 0.44, 1);}:where([data-side="left"])>.p1yy31y7-panel{left:0;}:where([data-side="right"])>.p1yy31y7-panel{right:0;}:where([data-side="left"][data-state="collapsed"])>.p1yy31y7-panel{left:calc(-1 * var(--sidebar-width));}:where([data-side="right"][data-state="collapsed"])>.p1yy31y7-panel{right:calc(-1 * var(--sidebar-width));}:where([data-resizing="true"])>.p1yy31y7-panel{transition:none;}
|
|
3
|
+
.p1yy31y7-panel{position:absolute;top:0;bottom:0;display:flex;width:var(--sidebar-width);transition:left 300ms cubic-bezier(0.16, 0.84, 0.44, 1),right 300ms cubic-bezier(0.16, 0.84, 0.44, 1),width 300ms cubic-bezier(0.16, 0.84, 0.44, 1),transform 300ms cubic-bezier(0.16, 0.84, 0.44, 1);}:where([data-state="expanded"][data-min-content])>.p1yy31y7-panel{max-width:100%;}:where([data-side="left"])>.p1yy31y7-panel{left:0;}:where([data-side="right"])>.p1yy31y7-panel{right:0;}:where([data-side="left"][data-state="collapsed"])>.p1yy31y7-panel{left:calc(-1 * var(--sidebar-width));}:where([data-side="right"][data-state="collapsed"])>.p1yy31y7-panel{right:calc(-1 * var(--sidebar-width));}:where([data-resizing="true"])>.p1yy31y7-panel{transition:none;}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PointerEvent } from "react";
|
|
2
2
|
//#region src/sidebar/use-resize-drag.d.ts
|
|
3
|
-
type ResizeDragOptions = {
|
|
3
|
+
export type ResizeDragOptions = {
|
|
4
4
|
/** Side of the layout the resizable element sits on */
|
|
5
5
|
side: "left" | "right";
|
|
6
6
|
size: number;
|
|
@@ -12,11 +12,10 @@ type ResizeDragOptions = {
|
|
|
12
12
|
onResizeEnd?: (size: number) => void;
|
|
13
13
|
onClick?: () => void;
|
|
14
14
|
};
|
|
15
|
-
declare function useResizeDrag(options: ResizeDragOptions): {
|
|
15
|
+
export declare function useResizeDrag(options: ResizeDragOptions): {
|
|
16
16
|
isResizing: boolean;
|
|
17
17
|
handleProps: {
|
|
18
18
|
onPointerDown: (event: PointerEvent<HTMLElement>) => void;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { ResizeDragOptions, useResizeDrag };
|
|
21
|
+
//#endregion
|
package/lib/skeleton-card.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
//#region src/skeleton-card.d.ts
|
|
3
|
-
declare const SkeletonCard: ({ children }: {
|
|
3
|
+
export declare const SkeletonCard: ({ children }: {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
}) => import("react
|
|
6
|
-
//#endregion
|
|
7
|
-
export { SkeletonCard };
|
|
5
|
+
}) => import("react").JSX.Element;
|
|
6
|
+
//#endregion
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./skeleton-entity-box.wyw-in-js.css";
|
|
2
|
+
import { BoxOpacityContainer, BoxStroke } from "./box.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { cx } from "@linaria/core";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/skeleton-entity-box.tsx
|
|
7
|
+
var outlineStyle = "o1sxaib9-outline";
|
|
8
|
+
var SkeletonEntityBox = ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
9
|
+
className: cx(BoxStroke, outlineStyle),
|
|
10
|
+
children: jsx("div", {
|
|
11
|
+
className: BoxOpacityContainer,
|
|
12
|
+
children
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { SkeletonEntityBox };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.o1sxaib9-outline{border-radius:6px;box-shadow:0 0 0 0.5px var(--separatorColor);}
|
package/lib/skeleton.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { SkeletonHeight, SkeletonWidth } from "./design-system/skeleton.js";
|
|
2
2
|
import "./design-system.js";
|
|
3
|
-
import { ComponentType, ReactNode } from "react";
|
|
3
|
+
import { ComponentType, JSX, ReactNode } from "react";
|
|
4
4
|
//#region src/skeleton.d.ts
|
|
5
|
+
type SkeletonFill = "fill";
|
|
5
6
|
type SkeletonWidthProps = {
|
|
6
|
-
width?: SkeletonWidth;
|
|
7
|
+
width?: SkeletonWidth | SkeletonFill;
|
|
7
8
|
minWidth?: never;
|
|
8
9
|
maxWidth?: never;
|
|
9
10
|
} | {
|
|
@@ -11,14 +12,14 @@ type SkeletonWidthProps = {
|
|
|
11
12
|
minWidth: SkeletonWidth;
|
|
12
13
|
maxWidth: SkeletonWidth;
|
|
13
14
|
};
|
|
14
|
-
type SkeletonBarProps = {
|
|
15
|
+
export type SkeletonBarProps = {
|
|
15
16
|
shape?: "bar";
|
|
16
17
|
height?: SkeletonHeight;
|
|
17
18
|
index?: number;
|
|
18
19
|
} & SkeletonWidthProps;
|
|
19
20
|
type SkeletonSquareProps = {
|
|
20
21
|
shape: "square";
|
|
21
|
-
size: number;
|
|
22
|
+
size: number | SkeletonFill;
|
|
22
23
|
radius: number;
|
|
23
24
|
};
|
|
24
25
|
type SkeletonEllipseProps = {
|
|
@@ -26,10 +27,10 @@ type SkeletonEllipseProps = {
|
|
|
26
27
|
size: number;
|
|
27
28
|
};
|
|
28
29
|
type SkeletonShapeProps = SkeletonBarProps | SkeletonSquareProps | SkeletonEllipseProps;
|
|
29
|
-
type SkeletonProps = SkeletonShapeProps & {
|
|
30
|
+
export type SkeletonProps = SkeletonShapeProps & {
|
|
30
31
|
margins?: boolean;
|
|
31
32
|
};
|
|
32
|
-
declare const Skeleton: import("react").MemoExoticComponent<({ margins, ...shape }: SkeletonProps) => JSX.Element>;
|
|
33
|
+
export declare const Skeleton: import("react").MemoExoticComponent<({ margins, ...shape }: SkeletonProps) => JSX.Element>;
|
|
33
34
|
type SkeletonListProps = {
|
|
34
35
|
amount?: number;
|
|
35
36
|
WrapperComponent?: ComponentType<{
|
|
@@ -39,12 +40,11 @@ type SkeletonListProps = {
|
|
|
39
40
|
height?: SkeletonHeight;
|
|
40
41
|
margins?: boolean;
|
|
41
42
|
} & SkeletonWidthProps;
|
|
42
|
-
declare const SkeletonList: import("react").NamedExoticComponent<SkeletonListProps>;
|
|
43
|
-
declare const SkeletonPulseLine: ({ index, children }: {
|
|
43
|
+
export declare const SkeletonList: import("react").NamedExoticComponent<SkeletonListProps>;
|
|
44
|
+
export declare const SkeletonPulseLine: ({ index, children }: {
|
|
44
45
|
index: number;
|
|
45
46
|
children: ReactNode;
|
|
46
|
-
}) =>
|
|
47
|
-
declare const SkeletonTextLine: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
48
|
-
declare const PageContentSkeleton: () =>
|
|
49
|
-
//#endregion
|
|
50
|
-
export { PageContentSkeleton, Skeleton, SkeletonBarProps, SkeletonList, SkeletonProps, SkeletonPulseLine, SkeletonTextLine };
|
|
47
|
+
}) => JSX.Element;
|
|
48
|
+
export declare const SkeletonTextLine: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
49
|
+
export declare const PageContentSkeleton: () => JSX.Element;
|
|
50
|
+
//#endregion
|