@superblocksteam/library 2.0.33 → 2.0.34-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/app-internal.d.ts +4 -0
- package/dist-types/docs-utils/generate-docs-utils.d.ts +42 -0
- package/dist-types/docs-utils/generate-docs.d.ts +2 -0
- package/dist-types/docs-utils/generate-docs.test.d.ts +1 -0
- package/dist-types/edit-mode/base-editor-bridge.d.ts +60 -0
- package/dist-types/edit-mode/collisions-layer.d.ts +3 -0
- package/dist-types/edit-mode/create-component.d.ts +11 -0
- package/dist-types/edit-mode/create-component.test.d.ts +1 -0
- package/dist-types/edit-mode/debug-tools.d.ts +11 -0
- package/dist-types/edit-mode/dnd/collision-detection.d.ts +3 -0
- package/dist-types/edit-mode/dnd/dnd-provider.d.ts +4 -0
- package/dist-types/edit-mode/dnd/draggable-widget.d.ts +7 -0
- package/dist-types/edit-mode/dnd/drop-layer.d.ts +5 -0
- package/dist-types/edit-mode/dnd/droppable-widget.d.ts +10 -0
- package/dist-types/edit-mode/dnd/get-allowed-children.d.ts +2 -0
- package/dist-types/edit-mode/dnd/grid-drop.d.ts +4 -0
- package/dist-types/edit-mode/dnd/grid-store.d.ts +58 -0
- package/dist-types/edit-mode/dnd/grid-utils.d.ts +8 -0
- package/dist-types/edit-mode/dnd/handle-grid-drop.d.ts +9 -0
- package/dist-types/edit-mode/dnd/handle-stack-drop.d.ts +9 -0
- package/dist-types/edit-mode/dnd/hooks/use-component-draggable.d.ts +5 -0
- package/dist-types/edit-mode/dnd/hooks/use-component-droppable.d.ts +6 -0
- package/dist-types/edit-mode/dnd/hooks/use-handle-dnd-events.d.ts +1 -0
- package/dist-types/edit-mode/dnd/hooks/use-widget-node-ref.d.ts +2 -0
- package/dist-types/edit-mode/dnd/new-components-drag-layer.d.ts +6 -0
- package/dist-types/edit-mode/dnd/stack-drop.d.ts +4 -0
- package/dist-types/edit-mode/dnd/stack-store.d.ts +10 -0
- package/dist-types/edit-mode/dnd/stack-utils.d.ts +13 -0
- package/dist-types/edit-mode/dnd/types.d.ts +45 -0
- package/dist-types/edit-mode/dnd/utils.d.ts +42 -0
- package/dist-types/edit-mode/dnd/utils.test.d.ts +1 -0
- package/dist-types/edit-mode/duplicated-name-popover.d.ts +7 -0
- package/dist-types/edit-mode/edit-store.d.ts +47 -0
- package/dist-types/edit-mode/edit-wrapper.d.ts +18 -0
- package/dist-types/edit-mode/editor-hotkeys.d.ts +3 -0
- package/dist-types/edit-mode/extended-clickable-area.d.ts +8 -0
- package/dist-types/edit-mode/features/ai-store.d.ts +34 -0
- package/dist-types/edit-mode/features/connection-manager.d.ts +9 -0
- package/dist-types/edit-mode/features/drag-and-drop-store.d.ts +67 -0
- package/dist-types/edit-mode/features/interaction-layer-manager.d.ts +23 -0
- package/dist-types/edit-mode/features/operation-store.d.ts +64 -0
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +45 -0
- package/dist-types/edit-mode/features/resizing-store.d.ts +54 -0
- package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +95 -0
- package/dist-types/edit-mode/features/runtime-widgets-manager.d.ts +59 -0
- package/dist-types/edit-mode/features/ui-store.d.ts +49 -0
- package/dist-types/edit-mode/get-edit-store.d.ts +6 -0
- package/dist-types/edit-mode/hooks/use-register-source-element.d.ts +2 -0
- package/dist-types/edit-mode/identifier-context.d.ts +6 -0
- package/dist-types/edit-mode/iframe-wrappers.d.ts +5 -0
- package/dist-types/edit-mode/import-error-notification.d.ts +1 -0
- package/dist-types/edit-mode/interaction-layer/interaction-add-section-button.d.ts +4 -0
- package/dist-types/edit-mode/interaction-layer/interaction-layer.d.ts +11 -0
- package/dist-types/edit-mode/interaction-layer/interaction-rect-actions.d.ts +9 -0
- package/dist-types/edit-mode/interaction-layer/interaction-rect-handles.d.ts +7 -0
- package/dist-types/edit-mode/interaction-layer/interaction-rect-name-pill.d.ts +13 -0
- package/dist-types/edit-mode/interaction-layer/interaction-rect.d.ts +49 -0
- package/dist-types/edit-mode/interaction-utils.d.ts +8 -0
- package/dist-types/edit-mode/mobx-sync/create-patch.d.ts +2 -0
- package/dist-types/edit-mode/mobx-sync/create-patch.test.d.ts +1 -0
- package/dist-types/edit-mode/mobx-sync/deep-observe.d.ts +24 -0
- package/dist-types/edit-mode/mobx-sync/mobx-editor-sync.d.ts +23 -0
- package/dist-types/edit-mode/mobx-sync/mobx-editor-sync.test.d.ts +1 -0
- package/dist-types/edit-mode/noop-editor-bridge.d.ts +1 -0
- package/dist-types/edit-mode/properties.d.ts +13 -0
- package/dist-types/edit-mode/resize-capabilities.d.ts +5 -0
- package/dist-types/edit-mode/right-click-menu/right-click-menu.d.ts +14 -0
- package/dist-types/edit-mode/roots.d.ts +19 -0
- package/dist-types/edit-mode/runtime-children.d.ts +14 -0
- package/dist-types/edit-mode/sb-component-from-meta.d.ts +2 -0
- package/dist-types/edit-mode/source-update-api.d.ts +19 -0
- package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +40 -0
- package/dist-types/edit-mode/vite.d.ts +4 -0
- package/dist-types/internal-testing/components/api.d.ts +3 -0
- package/dist-types/internal-testing/components/broken-app.d.ts +3 -0
- package/dist-types/internal-testing/components/button.d.ts +1 -0
- package/dist-types/internal-testing/components/checkbox.d.ts +1 -0
- package/dist-types/internal-testing/components/container.d.ts +1 -0
- package/dist-types/internal-testing/components/date-picker.d.ts +1 -0
- package/dist-types/internal-testing/components/dropdown.d.ts +1 -0
- package/dist-types/internal-testing/components/form.d.ts +1 -0
- package/dist-types/internal-testing/components/icon.d.ts +1 -0
- package/dist-types/internal-testing/components/image.d.ts +1 -0
- package/dist-types/internal-testing/components/import-error.d.ts +1 -0
- package/dist-types/internal-testing/components/input.d.ts +1 -0
- package/dist-types/internal-testing/components/key-value.d.ts +1 -0
- package/dist-types/internal-testing/components/modal.d.ts +3 -0
- package/dist-types/internal-testing/components/section-column.d.ts +1 -0
- package/dist-types/internal-testing/components/slideout.d.ts +3 -0
- package/dist-types/internal-testing/components/switch.d.ts +1 -0
- package/dist-types/internal-testing/components/table.d.ts +3 -0
- package/dist-types/internal-testing/components/timer.d.ts +3 -0
- package/dist-types/internal-testing/components/variable.d.ts +3 -0
- package/dist-types/internal-testing/utils.d.ts +5 -0
- package/dist-types/internal-testing/widgets.d.ts +2 -0
- package/dist-types/lib/hooks/use-alignment-styles.d.ts +9 -0
- package/dist-types/lib/hooks/use-cached-value.d.ts +11 -0
- package/dist-types/lib/hooks/use-callback-as-ref.d.ts +1 -0
- package/dist-types/lib/hooks/use-component-min-size.d.ts +29 -0
- package/dist-types/lib/hooks/use-deep-memo.d.ts +9 -0
- package/dist-types/lib/hooks/use-editor-hotkeys.d.ts +3 -0
- package/dist-types/lib/hooks/use-element-rect.d.ts +7 -0
- package/dist-types/lib/hooks/use-key-pressed.d.ts +1 -0
- package/dist-types/lib/hooks/use-observer-memo.d.ts +14 -0
- package/dist-types/lib/hooks/use-observer-memo.test.d.ts +1 -0
- package/dist-types/lib/hooks/use-pointer-down-outside.d.ts +15 -0
- package/dist-types/lib/hooks/use-stable-effect.d.ts +22 -0
- package/dist-types/lib/hooks/use-stable-effect.test.d.ts +1 -0
- package/dist-types/lib/index.d.ts +44 -0
- package/dist-types/lib/internal-details/actions-context.d.ts +9 -0
- package/dist-types/lib/internal-details/app-wrappers.d.ts +5 -0
- package/dist-types/lib/internal-details/component-info-context.d.ts +10 -0
- package/dist-types/lib/internal-details/component-suspense-style-context.d.ts +10 -0
- package/dist-types/lib/internal-details/css-constants.d.ts +4 -0
- package/dist-types/lib/internal-details/entities-state.d.ts +11 -0
- package/dist-types/lib/internal-details/entities.d.ts +5 -0
- package/dist-types/lib/internal-details/env.d.ts +1 -0
- package/dist-types/lib/internal-details/external-stack-child.d.ts +13 -0
- package/dist-types/lib/internal-details/identifier-normalizer.d.ts +8 -0
- package/dist-types/lib/internal-details/internal-components/common.d.ts +13 -0
- package/dist-types/lib/internal-details/internal-components/error-boundary/index.d.ts +18 -0
- package/dist-types/lib/internal-details/internal-components/route-load-error.d.ts +1 -0
- package/dist-types/lib/internal-details/is-edit-mode.d.ts +1 -0
- package/dist-types/lib/internal-details/is-sb-component.d.ts +11 -0
- package/dist-types/lib/internal-details/lib/devtools/devtools-consolidated.d.ts +5 -0
- package/dist-types/lib/internal-details/lib/devtools/index.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/devtools/serialize-store-data.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +91 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-extraction.d.ts +2 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-extraction.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.d.ts +6 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +22 -0
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.test.d.ts +6 -0
- package/dist-types/lib/internal-details/lib/evaluator/create-global-object.d.ts +7 -0
- package/dist-types/lib/internal-details/lib/evaluator/create-scope-proxy.d.ts +3 -0
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.d.ts +26 -0
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +96 -0
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/entity-types.d.ts +16 -0
- package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +8 -0
- package/dist-types/lib/internal-details/lib/evaluator/names.d.ts +7 -0
- package/dist-types/lib/internal-details/lib/evaluator/pretty-print-function.d.ts +2 -0
- package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.d.ts +6 -0
- package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.d.ts +8 -0
- package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.d.ts +36 -0
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/features/api-store.d.ts +51 -0
- package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +79 -0
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +62 -0
- package/dist-types/lib/internal-details/lib/features/injected-features.d.ts +8 -0
- package/dist-types/lib/internal-details/lib/features/name-manager.d.ts +38 -0
- package/dist-types/lib/internal-details/lib/features/type-defs-utils.d.ts +3 -0
- package/dist-types/lib/internal-details/lib/iframe.d.ts +44 -0
- package/dist-types/lib/internal-details/lib/mobx-cached-getter.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/resolve-id-singleton.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/root-store.d.ts +35 -0
- package/dist-types/lib/internal-details/lib/suspense/suspense-fallback.d.ts +11 -0
- package/dist-types/lib/internal-details/lib/throttle.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/types.d.ts +298 -0
- package/dist-types/lib/internal-details/location-store.d.ts +13 -0
- package/dist-types/lib/internal-details/reactive-component.d.ts +11 -0
- package/dist-types/lib/internal-details/remove-bindings.d.ts +1 -0
- package/dist-types/lib/internal-details/routing.d.ts +2 -0
- package/dist-types/lib/internal-details/sb-wrapper.d.ts +98 -0
- package/dist-types/lib/internal-details/sb-wrapper.test.d.ts +1 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +11 -0
- package/dist-types/lib/internal-details/scope/scope-context.d.ts +8 -0
- package/dist-types/lib/internal-details/scope/scope.d.ts +12 -0
- package/dist-types/lib/internal-details/scope/types.d.ts +48 -0
- package/dist-types/lib/internal-details/size.d.ts +1 -0
- package/dist-types/lib/internal-details/theme-context.d.ts +8 -0
- package/dist-types/lib/internal-details/use-track-runtime-widget.d.ts +15 -0
- package/dist-types/lib/internal-details/utils/is-local-link.d.ts +1 -0
- package/dist-types/lib/internal-details/utils/navigation.d.ts +20 -0
- package/dist-types/lib/tracing/context-utils.d.ts +4 -0
- package/dist-types/lib/tracing/early-console-buffer.d.ts +21 -0
- package/dist-types/lib/tracing/logs.d.ts +11 -0
- package/dist-types/lib/triggers/base.d.ts +16 -0
- package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +12 -0
- package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +3 -0
- package/dist-types/lib/triggers/implementations/call-function.d.ts +15 -0
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +14 -0
- package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +14 -0
- package/dist-types/lib/triggers/implementations/components/reset-component.d.ts +16 -0
- package/dist-types/lib/triggers/implementations/components/set-component-property.d.ts +18 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-app.d.ts +16 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-route.d.ts +12 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/navigate/set-query-params.d.ts +14 -0
- package/dist-types/lib/triggers/implementations/navigate/utils.d.ts +2 -0
- package/dist-types/lib/triggers/implementations/run-js.d.ts +11 -0
- package/dist-types/lib/triggers/implementations/set-profile.d.ts +13 -0
- package/dist-types/lib/triggers/implementations/show-alert.d.ts +18 -0
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +10 -0
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +14 -0
- package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +13 -0
- package/dist-types/lib/triggers/implementations/trigger-event.d.ts +13 -0
- package/dist-types/lib/triggers/registry.d.ts +5 -0
- package/dist-types/lib/triggers/run-event-handlers.d.ts +10 -0
- package/dist-types/lib/user-facing/component-base/components/autolinked-text.d.ts +8 -0
- package/dist-types/lib/user-facing/component-base/components/button.d.ts +47 -0
- package/dist-types/lib/user-facing/component-base/components/checkbox.d.ts +12 -0
- package/dist-types/lib/user-facing/component-base/components/dropdown-select.d.ts +4 -0
- package/dist-types/lib/user-facing/component-base/components/dynamic-svg.d.ts +10 -0
- package/dist-types/lib/user-facing/component-base/components/expand-button.d.ts +8 -0
- package/dist-types/lib/user-facing/component-base/components/loading-animator.d.ts +4 -0
- package/dist-types/lib/user-facing/component-base/components/plain-link.d.ts +1 -0
- package/dist-types/lib/user-facing/component-base/components/popper.d.ts +20 -0
- package/dist-types/lib/user-facing/component-base/components/search-component.d.ts +19 -0
- package/dist-types/lib/user-facing/component-base/components/span-trunc-middle.d.ts +9 -0
- package/dist-types/lib/user-facing/component-base/components/switch.d.ts +6 -0
- package/dist-types/lib/user-facing/component-base/components/video.d.ts +19 -0
- package/dist-types/lib/user-facing/component-base/constants.d.ts +18 -0
- package/dist-types/lib/user-facing/component-base/error/error-inline-message.d.ts +36 -0
- package/dist-types/lib/user-facing/component-base/error/error-tooltip.d.ts +11 -0
- package/dist-types/lib/user-facing/component-base/error/error-utils.d.ts +13 -0
- package/dist-types/lib/user-facing/component-base/error/widget-errors-wrapper.d.ts +15 -0
- package/dist-types/lib/user-facing/component-base/error-boundary.d.ts +18 -0
- package/dist-types/lib/user-facing/component-base/sb-component.d.ts +21 -0
- package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +8 -0
- package/dist-types/lib/user-facing/component-base/styles/hover-styles.d.ts +10 -0
- package/dist-types/lib/user-facing/component-base/styles/input-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/component-base/use-passthrough-props.d.ts +6 -0
- package/dist-types/lib/user-facing/component-base/utils/format-utils.d.ts +37 -0
- package/dist-types/lib/user-facing/component-base/utils/format-utils.test.d.ts +1 -0
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +20 -0
- package/dist-types/lib/user-facing/component-base/utils/input-validation.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/button/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/button/index.d.ts +81 -0
- package/dist-types/lib/user-facing/components/button/props.d.ts +46 -0
- package/dist-types/lib/user-facing/components/checkbox/checkbox-component.d.ts +9 -0
- package/dist-types/lib/user-facing/components/checkbox/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +93 -0
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +49 -0
- package/dist-types/lib/user-facing/components/checkbox/types.d.ts +19 -0
- package/dist-types/lib/user-facing/components/column/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/column/index.d.ts +73 -0
- package/dist-types/lib/user-facing/components/column/props.d.ts +36 -0
- package/dist-types/lib/user-facing/components/container/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/container/index.d.ts +88 -0
- package/dist-types/lib/user-facing/components/container/props.d.ts +46 -0
- package/dist-types/lib/user-facing/components/custom/context.d.ts +11 -0
- package/dist-types/lib/user-facing/components/custom/index.d.ts +1 -0
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +45 -0
- package/dist-types/lib/user-facing/components/date-picker/constants.d.ts +8 -0
- package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +36 -0
- package/dist-types/lib/user-facing/components/date-picker/date-picker.d.ts +2 -0
- package/dist-types/lib/user-facing/components/date-picker/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +141 -0
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +74 -0
- package/dist-types/lib/user-facing/components/date-picker/props.test-d.d.ts +1 -0
- package/dist-types/lib/user-facing/components/date-picker/side-effects.d.ts +3 -0
- package/dist-types/lib/user-facing/components/date-picker/types.d.ts +43 -0
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +35 -0
- package/dist-types/lib/user-facing/components/dropdown/constants.d.ts +5 -0
- package/dist-types/lib/user-facing/components/dropdown/dropdown-component.d.ts +106 -0
- package/dist-types/lib/user-facing/components/dropdown/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +150 -0
- package/dist-types/lib/user-facing/components/dropdown/multi-dropdown.d.ts +18 -0
- package/dist-types/lib/user-facing/components/dropdown/normalize-values.d.ts +2 -0
- package/dist-types/lib/user-facing/components/dropdown/normalize-values.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +79 -0
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +88 -0
- package/dist-types/lib/user-facing/components/dropdown/utils.d.ts +8 -0
- package/dist-types/lib/user-facing/components/grid/calculations/calculate-constraints.d.ts +26 -0
- package/dist-types/lib/user-facing/components/grid/calculations/calculate-row-positions.d.ts +2 -0
- package/dist-types/lib/user-facing/components/grid/calculations/calculate-row-positions.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/grid/calculations/order-constraints.d.ts +2 -0
- package/dist-types/lib/user-facing/components/grid/index.d.ts +43 -0
- package/dist-types/lib/user-facing/components/grid/use-height-observer.d.ts +5 -0
- package/dist-types/lib/user-facing/components/icon/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/icon/index.d.ts +47 -0
- package/dist-types/lib/user-facing/components/icon/props.d.ts +28 -0
- package/dist-types/lib/user-facing/components/image/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/image/image-component.d.ts +40 -0
- package/dist-types/lib/user-facing/components/image/index.d.ts +65 -0
- package/dist-types/lib/user-facing/components/image/props.d.ts +43 -0
- package/dist-types/lib/user-facing/components/input/constants.d.ts +24 -0
- package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +4 -0
- package/dist-types/lib/user-facing/components/input/derived.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/input/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/input/index.d.ts +187 -0
- package/dist-types/lib/user-facing/components/input/input-component.d.ts +58 -0
- package/dist-types/lib/user-facing/components/input/props.d.ts +98 -0
- package/dist-types/lib/user-facing/components/input/styles.d.ts +6 -0
- package/dist-types/lib/user-facing/components/input/types.d.ts +45 -0
- package/dist-types/lib/user-facing/components/input/utils.d.ts +15 -0
- package/dist-types/lib/user-facing/components/input/utils.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/key-value/components/key-styles.d.ts +3 -0
- package/dist-types/lib/user-facing/components/key-value/components/property-key.d.ts +7 -0
- package/dist-types/lib/user-facing/components/key-value/components/property-value.d.ts +12 -0
- package/dist-types/lib/user-facing/components/key-value/components/value-styles.d.ts +6 -0
- package/dist-types/lib/user-facing/components/key-value/constants.d.ts +7 -0
- package/dist-types/lib/user-facing/components/key-value/derived-properties.d.ts +1 -0
- package/dist-types/lib/user-facing/components/key-value/editor.d.ts +3 -0
- package/dist-types/lib/user-facing/components/key-value/index.d.ts +6 -0
- package/dist-types/lib/user-facing/components/key-value/key-value-component.d.ts +2 -0
- package/dist-types/lib/user-facing/components/key-value/properties-props.d.ts +45 -0
- package/dist-types/lib/user-facing/components/key-value/props.d.ts +38 -0
- package/dist-types/lib/user-facing/components/key-value/styles.d.ts +22 -0
- package/dist-types/lib/user-facing/components/key-value/types.d.ts +106 -0
- package/dist-types/lib/user-facing/components/key-value/utils.d.ts +11 -0
- package/dist-types/lib/user-facing/components/modal/constants.d.ts +8 -0
- package/dist-types/lib/user-facing/components/modal/editor-config.d.ts +2 -0
- package/dist-types/lib/user-facing/components/modal/editor-template.d.ts +3 -0
- package/dist-types/lib/user-facing/components/modal/index.d.ts +85 -0
- package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +37 -0
- package/dist-types/lib/user-facing/components/modal/props.d.ts +45 -0
- package/dist-types/lib/user-facing/components/page/editor.d.ts +2 -0
- package/dist-types/lib/user-facing/components/page/index.d.ts +39 -0
- package/dist-types/lib/user-facing/components/page/props.d.ts +22 -0
- package/dist-types/lib/user-facing/components/page/register-page.d.ts +3 -0
- package/dist-types/lib/user-facing/components/pixel-input/index.d.ts +7 -0
- package/dist-types/lib/user-facing/components/section/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/section/index.d.ts +49 -0
- package/dist-types/lib/user-facing/components/section/props.d.ts +28 -0
- package/dist-types/lib/user-facing/components/slideout/constants.d.ts +10 -0
- package/dist-types/lib/user-facing/components/slideout/editor-config.d.ts +2 -0
- package/dist-types/lib/user-facing/components/slideout/editor-template.d.ts +3 -0
- package/dist-types/lib/user-facing/components/slideout/index.d.ts +85 -0
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +46 -0
- package/dist-types/lib/user-facing/components/slideout/slideout-component.d.ts +31 -0
- package/dist-types/lib/user-facing/components/stack/index.d.ts +69 -0
- package/dist-types/lib/user-facing/components/stack/styles.d.ts +11 -0
- package/dist-types/lib/user-facing/components/switch/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/switch/index.d.ts +95 -0
- package/dist-types/lib/user-facing/components/switch/props.d.ts +50 -0
- package/dist-types/lib/user-facing/components/switch/switch-component.d.ts +5 -0
- package/dist-types/lib/user-facing/components/switch/types.d.ts +19 -0
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +278 -0
- package/dist-types/lib/user-facing/components/table/components/autotooltip-component.d.ts +17 -0
- package/dist-types/lib/user-facing/components/table/components/boolean-value-icons.d.ts +16 -0
- package/dist-types/lib/user-facing/components/table/components/column-settings.d.ts +11 -0
- package/dist-types/lib/user-facing/components/table/components/edit-cell.d.ts +15 -0
- package/dist-types/lib/user-facing/components/table/components/edit-checkbox-cell.d.ts +11 -0
- package/dist-types/lib/user-facing/components/table/components/edit-date-cell.d.ts +12 -0
- package/dist-types/lib/user-facing/components/table/components/edit-input-cell.d.ts +14 -0
- package/dist-types/lib/user-facing/components/table/components/edit-multi-select-cell.d.ts +13 -0
- package/dist-types/lib/user-facing/components/table/components/edit-single-select-cell.d.ts +13 -0
- package/dist-types/lib/user-facing/components/table/components/edit-utils.d.ts +28 -0
- package/dist-types/lib/user-facing/components/table/components/editable-link-cell.d.ts +20 -0
- package/dist-types/lib/user-facing/components/table/components/filter-popover-content.d.ts +37 -0
- package/dist-types/lib/user-facing/components/table/components/popover-video.d.ts +5 -0
- package/dist-types/lib/user-facing/components/table/components/table-action-icon.d.ts +13 -0
- package/dist-types/lib/user-facing/components/table/components/table-column-header-button.d.ts +19 -0
- package/dist-types/lib/user-facing/components/table/components/table-data-download.d.ts +15 -0
- package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +40 -0
- package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +63 -0
- package/dist-types/lib/user-facing/components/table/components/table-loading-state.d.ts +11 -0
- package/dist-types/lib/user-facing/components/table/components/table-pagination-input.d.ts +10 -0
- package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +18 -0
- package/dist-types/lib/user-facing/components/table/components/table-row-context-menu.d.ts +17 -0
- package/dist-types/lib/user-facing/components/table/components/table-tag.d.ts +25 -0
- package/dist-types/lib/user-facing/components/table/constants.d.ts +91 -0
- package/dist-types/lib/user-facing/components/table/default-table-data.d.ts +71 -0
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +20 -0
- package/dist-types/lib/user-facing/components/table/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/table/index.d.ts +721 -0
- package/dist-types/lib/user-facing/components/table/props.d.ts +364 -0
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +101 -0
- package/dist-types/lib/user-facing/components/table/table-manager.d.ts +23 -0
- package/dist-types/lib/user-facing/components/table/table-styles.d.ts +73 -0
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +148 -0
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +149 -0
- package/dist-types/lib/user-facing/components/table/types.d.ts +447 -0
- package/dist-types/lib/user-facing/components/table/use-sticky.d.ts +1 -0
- package/dist-types/lib/user-facing/components/table/utils.d.ts +2 -0
- package/dist-types/lib/user-facing/components/text/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/text/index.d.ts +111 -0
- package/dist-types/lib/user-facing/components/text/long-text-button.d.ts +8 -0
- package/dist-types/lib/user-facing/components/text/props.d.ts +67 -0
- package/dist-types/lib/user-facing/components/text/styles.d.ts +2 -0
- package/dist-types/lib/user-facing/components/text/utils.d.ts +26 -0
- package/dist-types/lib/user-facing/constants.d.ts +2 -0
- package/dist-types/lib/user-facing/entities/api/index.d.ts +14 -0
- package/dist-types/lib/user-facing/entities/api/props.d.ts +29 -0
- package/dist-types/lib/user-facing/entities/api/props.test.d.ts +1 -0
- package/dist-types/lib/user-facing/entities/api/suspensible-api.d.ts +21 -0
- package/dist-types/lib/user-facing/entities/timer/index.d.ts +16 -0
- package/dist-types/lib/user-facing/entities/timer/props.d.ts +19 -0
- package/dist-types/lib/user-facing/entities/variable/index.d.ts +14 -0
- package/dist-types/lib/user-facing/entities/variable/props.d.ts +13 -0
- package/dist-types/lib/user-facing/error-pages/constants.d.ts +10 -0
- package/dist-types/lib/user-facing/error-pages/error-component.d.ts +17 -0
- package/dist-types/lib/user-facing/error-pages/page-not-found.d.ts +10 -0
- package/dist-types/lib/user-facing/event-flow.d.ts +107 -0
- package/dist-types/lib/user-facing/event-flow.test.d.ts +1 -0
- package/dist-types/lib/user-facing/global-functions.d.ts +25 -0
- package/dist-types/lib/user-facing/hooks/use-dialog-editing.d.ts +14 -0
- package/dist-types/lib/user-facing/hooks/use-editor.d.ts +42 -0
- package/dist-types/lib/user-facing/hooks/use-theme.d.ts +3 -0
- package/dist-types/lib/user-facing/hooks/use-update-properties.d.ts +1 -0
- package/dist-types/lib/user-facing/icons/constants.d.ts +8 -0
- package/dist-types/lib/user-facing/icons/encoded.d.ts +1 -0
- package/dist-types/lib/user-facing/icons/helpers.d.ts +21 -0
- package/dist-types/lib/user-facing/icons/index.d.ts +2 -0
- package/dist-types/lib/user-facing/internal-index.d.ts +4 -0
- package/dist-types/lib/user-facing/layers.d.ts +42 -0
- package/dist-types/lib/user-facing/properties-panel/constants.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.d.ts +9 -0
- package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.test.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/helpers.test.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +24 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +8 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +44 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +129 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/loading.d.ts +2 -0
- package/dist-types/lib/user-facing/properties-panel/properties-panel-definition.d.ts +5 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +308 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.test-d.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.test.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/props-panel-utils.d.ts +3 -0
- package/dist-types/lib/user-facing/properties-panel/validators.d.ts +34 -0
- package/dist-types/lib/user-facing/sb-provider.d.ts +11 -0
- package/dist-types/lib/user-facing/state/computed.d.ts +2 -0
- package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +4 -0
- package/dist-types/lib/user-facing/state/create-scope.d.ts +17 -0
- package/dist-types/lib/user-facing/state/types.d.ts +10 -0
- package/dist-types/lib/user-facing/styling/color-utils.d.ts +13 -0
- package/dist-types/lib/user-facing/styling/colors.d.ts +67 -0
- package/dist-types/lib/user-facing/styling/style-as-class.d.ts +1 -0
- package/dist-types/lib/user-facing/styling/styles.d.ts +4 -0
- package/dist-types/lib/user-facing/styling/widget-label-styles.d.ts +11 -0
- package/dist-types/lib/user-facing/themes/classnames.d.ts +72 -0
- package/dist-types/lib/user-facing/themes/constants.d.ts +87 -0
- package/dist-types/lib/user-facing/themes/default-theme.d.ts +8 -0
- package/dist-types/lib/user-facing/themes/generate-border-css.d.ts +25 -0
- package/dist-types/lib/user-facing/themes/generate-border-styles.d.ts +15 -0
- package/dist-types/lib/user-facing/themes/generate-class-name.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generate-colors.d.ts +45 -0
- package/dist-types/lib/user-facing/themes/generate-colors.test.d.ts +1 -0
- package/dist-types/lib/user-facing/themes/generate-theme.d.ts +3 -0
- package/dist-types/lib/user-facing/themes/generate-typographies.d.ts +5 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/button-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/container-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/datepicker-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/dropdown-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/editor-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/generate-component-styles.d.ts +16 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/generate-padding-style.d.ts +19 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/icon-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/input-styles.d.ts +3 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/paginator-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/popper-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/styles-utils.d.ts +1 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/text-styles.d.ts +3 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/theme-styles.d.ts +5 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/utils.d.ts +23 -0
- package/dist-types/lib/user-facing/themes/index.d.ts +5 -0
- package/dist-types/lib/user-facing/themes/layers.d.ts +6 -0
- package/dist-types/lib/user-facing/themes/padding-constants.d.ts +10 -0
- package/dist-types/lib/user-facing/themes/typeface-constants.d.ts +3 -0
- package/dist-types/lib/user-facing/themes/typefaces/utils.d.ts +28 -0
- package/dist-types/lib/user-facing/themes/typefaces/utils.test.d.ts +1 -0
- package/dist-types/lib/user-facing/themes/typeography/typography-utils.d.ts +33 -0
- package/dist-types/lib/user-facing/themes/typeography/typography-utils.test.d.ts +1 -0
- package/dist-types/lib/user-facing/themes/typeography/use-typography-styling.d.ts +15 -0
- package/dist-types/lib/user-facing/themes/typography-constants.d.ts +34 -0
- package/dist-types/lib/user-facing/themes/utils.d.ts +15 -0
- package/dist-types/lib/user-facing/types.d.ts +17 -0
- package/dist-types/lib/user-facing/utils/create-svg-data-uri.d.ts +9 -0
- package/dist-types/lib/user-facing/utils/form.d.ts +10 -0
- package/dist-types/lib/user-facing/utils/notification.d.ts +16 -0
- package/dist-types/lib/utils/children.d.ts +3 -0
- package/dist-types/lib/utils/clean-object.d.ts +5 -0
- package/dist-types/lib/utils/clean-object.test.d.ts +1 -0
- package/dist-types/lib/utils/fast-clone.d.ts +1 -0
- package/dist-types/lib/utils/generate-id.d.ts +1 -0
- package/dist-types/lib/utils/get-component-layout.d.ts +3 -0
- package/dist-types/lib/utils/is-component-grid.d.ts +2 -0
- package/dist-types/lib/utils/is-component-stacklike.d.ts +2 -0
- package/dist-types/lib/utils/is-component-type-detached.d.ts +1 -0
- package/dist-types/lib/utils/is-component-vstack.d.ts +2 -0
- package/dist-types/lib/utils/keyboard-shortcuts.d.ts +3 -0
- package/dist-types/lib/utils/shallow-equal.d.ts +1 -0
- package/dist-types/lib/utils/widget-wrapper-naming.d.ts +6 -0
- package/dist-types/lib/utils.d.ts +4 -0
- package/dist-types/main.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { InputTypes, CurrencyCodeDisplayTypes } from "./constants.js";
|
|
2
|
+
import type { propertiesDefinition } from "./props.js";
|
|
3
|
+
import type { InternalProps } from "../../properties-panel/props-builder.js";
|
|
4
|
+
import type { IconName, Intent } from "@blueprintjs/core";
|
|
5
|
+
import type { Dim } from "@superblocksteam/library-shared";
|
|
6
|
+
import type { Padding, PerSideBorder, PerCornerBorderRadius } from "@superblocksteam/library-shared/types";
|
|
7
|
+
export type InputWidgetProps = InternalProps<typeof propertiesDefinition>;
|
|
8
|
+
export interface InputGroupStylingProps {
|
|
9
|
+
border?: PerSideBorder;
|
|
10
|
+
fallbackBorderColor: string;
|
|
11
|
+
borderRadius?: PerCornerBorderRadius;
|
|
12
|
+
fallbackBorderRadius: Dim<"px" | "%">;
|
|
13
|
+
borderColorOnHover: string;
|
|
14
|
+
defaultBorderWidth: Dim<"px">;
|
|
15
|
+
padding?: Padding;
|
|
16
|
+
}
|
|
17
|
+
export type InputComponentProps = Pick<InputWidgetProps, "inputType" | "numberFormatting" | "isDisabled" | "backgroundColor" | "border" | "labelWidth" | "label" | "stepper" | "stepSize" | "onSubmit" | "isTouched" | "onFocusOut" | "onFocus" | "isValid" | "minimumFractionDigits" | "maximumFractionDigits" | "preventFormattingWhileTyping" | "defaultValue" | "isInvalid" | "isLoading" | "icon" | "iconPosition" | "currency" | "currencyCodeDisplay" | "minLength" | "maxLength" | "errorMessagePlacement" | "showError" | "isFocused" | "required"> & {
|
|
18
|
+
placeholder: string;
|
|
19
|
+
value: string;
|
|
20
|
+
inputGroupStylingProps: InputGroupStylingProps;
|
|
21
|
+
disableDebounce?: boolean;
|
|
22
|
+
autoFocus?: boolean;
|
|
23
|
+
widgetType: string;
|
|
24
|
+
disableNewLineOnPressEnterKey?: boolean;
|
|
25
|
+
inputClassName?: string;
|
|
26
|
+
showStepper?: boolean;
|
|
27
|
+
inputStyleOverride?: React.CSSProperties;
|
|
28
|
+
iconTop?: number;
|
|
29
|
+
vertical?: boolean;
|
|
30
|
+
iconSize?: number;
|
|
31
|
+
errorMessages?: string[];
|
|
32
|
+
labelClassName: string;
|
|
33
|
+
labelStyleOverride?: React.CSSProperties;
|
|
34
|
+
intent?: Intent;
|
|
35
|
+
leftIcon?: IconName;
|
|
36
|
+
sourceId: string;
|
|
37
|
+
growVertically?: boolean;
|
|
38
|
+
numLines?: number;
|
|
39
|
+
labelRef?: React.RefObject<HTMLLabelElement>;
|
|
40
|
+
onValueChange: (value: string) => void;
|
|
41
|
+
onFocusChange: (focusState: boolean) => void;
|
|
42
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement | HTMLInputElement>) => void;
|
|
43
|
+
};
|
|
44
|
+
export type InputType = (typeof InputTypes)[keyof typeof InputTypes];
|
|
45
|
+
export type CurrencyCodeDisplayType = (typeof CurrencyCodeDisplayTypes)[keyof typeof CurrencyCodeDisplayTypes];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { InputGroupStylingProps, InputType, InputWidgetProps } from "./types.js";
|
|
2
|
+
import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
3
|
+
export declare const useStyles: (props: InputWidgetProps, text: string) => any;
|
|
4
|
+
export declare const useLabelClassName: ({ labelStyle, isLoading, isDisabled, }: InputWidgetProps) => string;
|
|
5
|
+
export declare const isNumericInput: (inputType: InputType) => boolean;
|
|
6
|
+
export declare const useInputClassNames: ({ isInvalid, isDisabled, isLoading, inputType, textStyle, withStyledBorders, }: Pick<InputWidgetProps, "isInvalid" | "isDisabled" | "isLoading" | "inputType" | "textStyle"> & {
|
|
7
|
+
withStyledBorders?: boolean;
|
|
8
|
+
}) => string;
|
|
9
|
+
export declare const sanitizeNumericInputValue: (value: number | string, isPercentInput: boolean) => string;
|
|
10
|
+
export declare const useIconTop: ({ border, padding, iconHeight, inputHeight, }: Pick<InputWidgetProps, "border" | "padding" | "iconHeight" | "inputHeight">) => number;
|
|
11
|
+
export declare const useInputIconSize: ({ textStyle, }: {
|
|
12
|
+
textStyle?: TextStyleWithVariant;
|
|
13
|
+
}) => number;
|
|
14
|
+
export declare const useInputGroupStylingProps: (props: InputWidgetProps) => InputGroupStylingProps;
|
|
15
|
+
export declare const useConditionalProps: (props: InputWidgetProps) => Partial<InputWidgetProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { KeyValueComponentProps, KeyValueProperty } from "../types.js";
|
|
2
|
+
export declare const KeyValuePropertyKey: ({ property, style, keyProps, iconSize, }: {
|
|
3
|
+
property: KeyValueProperty;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
keyProps?: KeyValueComponentProps["keyProps"];
|
|
6
|
+
iconSize?: number;
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TypographyProps } from "../../../themes/typeography/use-typography-styling.js";
|
|
3
|
+
import type { KeyValueComponentProps, KeyValueProperty } from "../types.js";
|
|
4
|
+
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
|
+
export declare const KeyValuePropertyValue: (props: {
|
|
6
|
+
property: KeyValueProperty;
|
|
7
|
+
data: Record<string, unknown>;
|
|
8
|
+
iconSize?: number;
|
|
9
|
+
valueStyles?: TypographyProps;
|
|
10
|
+
linkStyles?: TypographyProps;
|
|
11
|
+
theme: UserAccessibleTheme;
|
|
12
|
+
} & Pick<KeyValueComponentProps, "valueProps" | "width" | "height">) => React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { KeyValueComponentProps } from "../types.js";
|
|
2
|
+
export declare const ValueContentWrapperClass: string;
|
|
3
|
+
export declare const ValueWrapperClass: string;
|
|
4
|
+
export declare const ImageWrapperClass: string;
|
|
5
|
+
export declare const TagCellWrapperClass: string;
|
|
6
|
+
export declare const useValueClassNames: (valueProps: KeyValueComponentProps["valueProps"]) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { KeyValuePropertyType } from "./types.js";
|
|
2
|
+
import type { PerSideBorder } from "@superblocksteam/shared";
|
|
3
|
+
export declare const KEY_VALUE_WIDGET_PROPERTY_TYPES: {
|
|
4
|
+
label: string;
|
|
5
|
+
value: KeyValuePropertyType;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const DEFAULT_BORDER_OBJECT: PerSideBorder;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getData(props: any): Record<string, unknown>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Prop, Section } from "../../properties-panel/props-builder.js";
|
|
2
|
+
import { KeyValuePropertyType } from "./types.js";
|
|
3
|
+
import type { IconPosition } from "../../icons/constants.js";
|
|
4
|
+
import type { UnionVariant } from "../../properties-panel/props-builder.js";
|
|
5
|
+
export declare const keyValuePropertiesDefinition: {
|
|
6
|
+
general: Section<((((Record<string, Prop<any, any, undefined>> & ({
|
|
7
|
+
id: Prop<string, true, undefined>;
|
|
8
|
+
} & (Omit<{
|
|
9
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
10
|
+
}, "key" | "isDerived"> & ({
|
|
11
|
+
isDerived: Prop<true, true, undefined>;
|
|
12
|
+
key: Prop<string, true, undefined>;
|
|
13
|
+
} | {
|
|
14
|
+
isDerived: Prop<false, true, undefined>;
|
|
15
|
+
key: Prop<string, true, undefined>;
|
|
16
|
+
})))) & {
|
|
17
|
+
displayedKey: Prop<string, true, undefined>;
|
|
18
|
+
}) & Omit<{
|
|
19
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
20
|
+
}, "isDerived" | "computedValue"> & {
|
|
21
|
+
isDerived: Prop<true, true, undefined>;
|
|
22
|
+
computedValue: Prop<string, true, undefined>;
|
|
23
|
+
}) & Omit<{
|
|
24
|
+
type: Prop<KeyValuePropertyType, true, undefined>;
|
|
25
|
+
}, "type"> & UnionVariant<{
|
|
26
|
+
type: Prop<KeyValuePropertyType, false>;
|
|
27
|
+
}>) & {
|
|
28
|
+
isVisible: Prop<boolean, true, undefined>;
|
|
29
|
+
}>;
|
|
30
|
+
appearance: Section<Record<string, Prop<any, any, undefined>> & {
|
|
31
|
+
"keyProps.icon": Prop<string, true, undefined>;
|
|
32
|
+
"keyProps.iconPosition": Prop<IconPosition, true, undefined>;
|
|
33
|
+
"valueProps.icon": Prop<string, true, undefined>;
|
|
34
|
+
"valueProps.iconPosition": Prop<IconPosition, true, undefined>;
|
|
35
|
+
} & Omit<{
|
|
36
|
+
type: Prop<KeyValuePropertyType, false, undefined>;
|
|
37
|
+
}, "type"> & UnionVariant<{
|
|
38
|
+
type: Prop<KeyValuePropertyType, false>;
|
|
39
|
+
}>>;
|
|
40
|
+
eventHandlers: Section<Record<string, Prop<any, any, undefined>> & Omit<{
|
|
41
|
+
type: Prop<KeyValuePropertyType, false, undefined>;
|
|
42
|
+
}, "type"> & UnionVariant<{
|
|
43
|
+
type: Prop<KeyValuePropertyType, false>;
|
|
44
|
+
}>>;
|
|
45
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
import { Prop } from "../../properties-panel/props-builder.js";
|
|
3
|
+
import { Section } from "../../properties-panel/props-builder.js";
|
|
4
|
+
import type { KeyValueProperty } from "./types.js";
|
|
5
|
+
export declare const propertiesDefinition: {
|
|
6
|
+
general: Section<Record<string, Prop<any, any, undefined>> & {
|
|
7
|
+
sourceData: Prop<Record<string, unknown>, false, undefined>;
|
|
8
|
+
properties: Prop<Record<string, KeyValueProperty>, true>;
|
|
9
|
+
propertiesOrder: Prop<string[], true, undefined>;
|
|
10
|
+
}>;
|
|
11
|
+
appearance: Section<Record<string, Prop<any, any, undefined>> & {
|
|
12
|
+
"keyProps.position": Prop<"left" | "top", true, undefined>;
|
|
13
|
+
"keyProps.keyStyle": Prop<any, false, undefined>;
|
|
14
|
+
"keyProps.textWrap": Prop<boolean, true, undefined>;
|
|
15
|
+
"valueProps.valueStyle": Prop<any, false, undefined>;
|
|
16
|
+
"valueProps.textWrap": Prop<boolean, true, undefined>;
|
|
17
|
+
"styleProps.backgroundColor": Prop<string, false, undefined>;
|
|
18
|
+
"styleProps.border": Prop<any, false, undefined>;
|
|
19
|
+
"styleProps.borderRadius": Prop<any, false, undefined>;
|
|
20
|
+
"styleProps.divider": Prop<any, true, undefined>;
|
|
21
|
+
loading: Prop<boolean, true, undefined>;
|
|
22
|
+
}>;
|
|
23
|
+
layout: Section<Record<string, Prop<any, any, undefined>> & {
|
|
24
|
+
isVisible: Prop<boolean, true, undefined>;
|
|
25
|
+
keyProps: Prop<any, true, undefined>;
|
|
26
|
+
"keyProps.width": Prop<any, false, undefined>;
|
|
27
|
+
"valueProps.position": Prop<"left" | "right", true, undefined>;
|
|
28
|
+
maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
29
|
+
minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
30
|
+
maxWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
31
|
+
minWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
32
|
+
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
33
|
+
height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
34
|
+
}>;
|
|
35
|
+
derived: Section<Record<string, Prop<any, any, undefined>> & {
|
|
36
|
+
data: Prop<Record<string, unknown>, true, undefined>;
|
|
37
|
+
}>;
|
|
38
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
import type { KeyValueComponentProps } from "./types.js";
|
|
3
|
+
import type { DimModes } from "@superblocksteam/library-shared";
|
|
4
|
+
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
|
+
import type { Typographies } from "@superblocksteam/library-shared/types";
|
|
6
|
+
import type React from "react";
|
|
7
|
+
export declare const DEFAULT_KEY_VALUE_WIDGET_KEY_STYLE_VARIANT: keyof Typographies;
|
|
8
|
+
export declare const DEFAULT_KEY_VALUE_WIDGET_VALUE_STYLE_VARIANT: keyof Typographies;
|
|
9
|
+
export declare const createCssVariables: ({ theme, styleProps, keyWidth, }: {
|
|
10
|
+
theme: UserAccessibleTheme;
|
|
11
|
+
styleProps: KeyValueComponentProps["styleProps"];
|
|
12
|
+
keyWidth?: Dim<DimModes>;
|
|
13
|
+
}) => React.CSSProperties & {
|
|
14
|
+
[key: `--${string}`]: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const CanvasSpacingClass: string;
|
|
17
|
+
export declare const KeyValueComponentClass: string;
|
|
18
|
+
export declare const KeyValueEntryClass: string;
|
|
19
|
+
export declare const useLabelStyles: (keyProps: KeyValueComponentProps["keyProps"], theme: UserAccessibleTheme) => import("../../themes/typeography/use-typography-styling.js").TypographyProps;
|
|
20
|
+
export declare const useInputStyles: (valueProps: KeyValueComponentProps["valueProps"], theme: UserAccessibleTheme) => import("../../themes/typeography/use-typography-styling.js").TypographyProps;
|
|
21
|
+
export declare const useLinkStyles: (valueProps: KeyValueComponentProps["valueProps"], theme: UserAccessibleTheme) => import("../../themes/typeography/use-typography-styling.js").TypographyProps;
|
|
22
|
+
export declare const useEntryClassNames: (keyProps: KeyValueComponentProps["keyProps"]) => string;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { IconPosition } from "../../icons/constants.js";
|
|
2
|
+
import type { ButtonVariant } from "../button/props.js";
|
|
3
|
+
import type { TagDisplayConfig } from "../table/types.js";
|
|
4
|
+
import type { ImageSize } from "../table/types.js";
|
|
5
|
+
import type { Dim } from "@superblocksteam/library-shared";
|
|
6
|
+
import type { DimModes } from "@superblocksteam/library-shared";
|
|
7
|
+
import type { WidgetLabelPosition } from "@superblocksteam/library-shared/props";
|
|
8
|
+
import type { TextStyleWithVariant, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
9
|
+
import type { ColoredDimensionStyle, Padding, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
10
|
+
type BaseProperty = {
|
|
11
|
+
id: string;
|
|
12
|
+
key: string;
|
|
13
|
+
displayedKey?: string;
|
|
14
|
+
type: string;
|
|
15
|
+
displayedValue?: unknown;
|
|
16
|
+
isVisible: boolean;
|
|
17
|
+
keyProps?: {
|
|
18
|
+
icon?: string;
|
|
19
|
+
iconPosition?: IconPosition;
|
|
20
|
+
};
|
|
21
|
+
valueProps?: {
|
|
22
|
+
icon?: string;
|
|
23
|
+
iconPosition?: IconPosition;
|
|
24
|
+
};
|
|
25
|
+
typeSpecificProps?: {
|
|
26
|
+
buttonLabel?: string;
|
|
27
|
+
isDisabled?: boolean;
|
|
28
|
+
buttonStyle?: ButtonVariant;
|
|
29
|
+
buttonLabelColor?: string;
|
|
30
|
+
onClick?: () => Promise<void>;
|
|
31
|
+
buttonBorderColor?: string;
|
|
32
|
+
buttonBackgroundColor?: string;
|
|
33
|
+
currency?: string;
|
|
34
|
+
notation?: Intl.NumberFormatOptions["notation"] | "unformatted";
|
|
35
|
+
minimumFractionDigits?: number;
|
|
36
|
+
maximumFractionDigits?: number;
|
|
37
|
+
linkLabel?: string;
|
|
38
|
+
openInNewTab?: boolean;
|
|
39
|
+
openImageUrl?: boolean;
|
|
40
|
+
imageSize?: ImageSize;
|
|
41
|
+
imageBorderRadius?: Dim<DimModes>;
|
|
42
|
+
dateInputFormat?: string;
|
|
43
|
+
dateOutputFormat?: string;
|
|
44
|
+
manageTimezone?: boolean;
|
|
45
|
+
timezone?: string;
|
|
46
|
+
displayTimezone?: string;
|
|
47
|
+
textWrap?: boolean;
|
|
48
|
+
tagDisplayConfig?: Record<string, TagDisplayConfig>;
|
|
49
|
+
booleanStyleFalse?: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
type DerivedProperty = BaseProperty & {
|
|
53
|
+
computedValue: unknown;
|
|
54
|
+
isDerived: true;
|
|
55
|
+
};
|
|
56
|
+
type PrimaryProperty = BaseProperty & {
|
|
57
|
+
isDerived: false;
|
|
58
|
+
};
|
|
59
|
+
export type KeyValueProperty = PrimaryProperty | DerivedProperty;
|
|
60
|
+
interface StyleProps {
|
|
61
|
+
border?: PerSideBorder;
|
|
62
|
+
borderRadius?: PerCornerBorderRadius;
|
|
63
|
+
backgroundColor?: string;
|
|
64
|
+
padding?: Padding;
|
|
65
|
+
spacing: Dim<DimModes>;
|
|
66
|
+
divider?: ColoredDimensionStyle;
|
|
67
|
+
}
|
|
68
|
+
export declare enum KeyValuePropertyType {
|
|
69
|
+
TEXT = "text",
|
|
70
|
+
NUMBER = "number",
|
|
71
|
+
CURRENCY = "currency",
|
|
72
|
+
PERCENTAGE = "percentage",
|
|
73
|
+
IMAGE = "image",
|
|
74
|
+
VIDEO = "video",
|
|
75
|
+
DATE = "date",
|
|
76
|
+
BUTTON = "button",
|
|
77
|
+
LINK = "link",
|
|
78
|
+
BOOLEAN = "boolean",
|
|
79
|
+
TAGS = "tags",
|
|
80
|
+
EMAIL = "email"
|
|
81
|
+
}
|
|
82
|
+
export interface KeyValueComponentProps {
|
|
83
|
+
theme: UserAccessibleTheme;
|
|
84
|
+
widgetId: string;
|
|
85
|
+
properties: Record<string, KeyValueProperty>;
|
|
86
|
+
cachedProperties?: Record<string, KeyValueProperty>;
|
|
87
|
+
propertiesOrder: string[];
|
|
88
|
+
isVisible?: boolean;
|
|
89
|
+
styleProps: StyleProps;
|
|
90
|
+
keyProps?: {
|
|
91
|
+
textStyle?: TextStyleWithVariant;
|
|
92
|
+
position?: WidgetLabelPosition;
|
|
93
|
+
width?: Dim<DimModes>;
|
|
94
|
+
textWrap?: boolean;
|
|
95
|
+
};
|
|
96
|
+
valueProps?: {
|
|
97
|
+
textStyle?: TextStyleWithVariant;
|
|
98
|
+
position?: WidgetLabelPosition;
|
|
99
|
+
textWrap?: boolean;
|
|
100
|
+
};
|
|
101
|
+
width?: Dim<DimModes>;
|
|
102
|
+
height?: Dim<DimModes>;
|
|
103
|
+
isLoading?: boolean;
|
|
104
|
+
sourceData?: Record<string, unknown>;
|
|
105
|
+
}
|
|
106
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { KeyValueProperty } from "./types.js";
|
|
2
|
+
import type { TagsColorAssignment } from "../table/types.js";
|
|
3
|
+
export declare const getStringValue: (text: unknown) => undefined | string;
|
|
4
|
+
export declare const toNumericValue: (text: string) => string | number;
|
|
5
|
+
export declare const getValueByType: (property: KeyValueProperty, data: Record<string, unknown>) => string | boolean;
|
|
6
|
+
export declare const toReadableKey: (key: string) => string;
|
|
7
|
+
export declare const getProperties: (data: Record<string, unknown>, currentProperties?: Record<string, KeyValueProperty>, cachedProperties?: Record<string, KeyValueProperty>) => Record<string, KeyValueProperty>;
|
|
8
|
+
export declare const getPropertiesOrder: (properties: Record<string, KeyValueProperty>, propertiesOrder: string[]) => string[];
|
|
9
|
+
export declare const getDefaultProperty: (key: string) => KeyValueProperty;
|
|
10
|
+
export declare const isDefaultProperty: (property: KeyValueProperty) => boolean;
|
|
11
|
+
export declare const getTagsColorAssignment: (tagValues: string[]) => TagsColorAssignment;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type ModalSize = "EXTRA_SMALL" | "SMALL" | "MEDIUM" | "LARGE" | "FULLSCREEN";
|
|
2
|
+
export declare const MODAL_COLUMNS = 96;
|
|
3
|
+
export declare const MODAL_ROW_HEIGHT = 12;
|
|
4
|
+
export declare const MODAL_PERIMETER_GAP = 16;
|
|
5
|
+
export declare const MODAL_LEGACY_COLUMNS = 40;
|
|
6
|
+
export declare const MODAL_BORDER_RADIUS = 4;
|
|
7
|
+
export declare const MODAL_WIDTH_PRESETS: Record<ModalSize, number>;
|
|
8
|
+
export declare const MODAL_ROWS_PRESETS: Record<ModalSize, number>;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
import type { ContainerLayout } from "../../component-base/constants.js";
|
|
3
|
+
export declare const Modal: import("../../../internal-details/sb-wrapper.jsx").ChainableComponent<{
|
|
4
|
+
contents: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
5
|
+
children: import("../../properties-panel/props-builder.js").Prop<any, false, undefined>;
|
|
6
|
+
}>;
|
|
7
|
+
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & ((Omit<{
|
|
8
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
9
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
10
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true, undefined>;
|
|
11
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true, undefined>;
|
|
12
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true, undefined>;
|
|
13
|
+
}) | (Omit<{
|
|
14
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
15
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
16
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true, undefined>;
|
|
17
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true, undefined>;
|
|
18
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true, undefined>;
|
|
19
|
+
}) | (Omit<{
|
|
20
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
21
|
+
}, "columns" | "layout" | "rowHeight"> & {
|
|
22
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true, undefined>;
|
|
23
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true, undefined>;
|
|
24
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true, undefined>;
|
|
25
|
+
}))>;
|
|
26
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
27
|
+
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
|
|
28
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false, undefined>;
|
|
29
|
+
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, false, undefined>;
|
|
30
|
+
hasBackdrop: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
31
|
+
widthPreset: import("../../properties-panel/props-builder.js").Prop<import("./constants.js").ModalSize, true, undefined>;
|
|
32
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
33
|
+
}>;
|
|
34
|
+
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
35
|
+
closeOnClickOutside: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
36
|
+
}>;
|
|
37
|
+
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
38
|
+
onOpen: import("../../properties-panel/props-builder.js").Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
39
|
+
onClose: import("../../properties-panel/props-builder.js").Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
40
|
+
}>;
|
|
41
|
+
meta: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
42
|
+
isOpen: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
43
|
+
}>;
|
|
44
|
+
}, import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
45
|
+
contents: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
46
|
+
children: import("../../properties-panel/props-builder.js").Prop<any, false, undefined>;
|
|
47
|
+
}>;
|
|
48
|
+
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & ((Omit<{
|
|
49
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
50
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
51
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true, undefined>;
|
|
52
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true, undefined>;
|
|
53
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true, undefined>;
|
|
54
|
+
}) | (Omit<{
|
|
55
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
56
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
57
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true, undefined>;
|
|
58
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true, undefined>;
|
|
59
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true, undefined>;
|
|
60
|
+
}) | (Omit<{
|
|
61
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
62
|
+
}, "columns" | "layout" | "rowHeight"> & {
|
|
63
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true, undefined>;
|
|
64
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true, undefined>;
|
|
65
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true, undefined>;
|
|
66
|
+
}))>;
|
|
67
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
68
|
+
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
|
|
69
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false, undefined>;
|
|
70
|
+
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, false, undefined>;
|
|
71
|
+
hasBackdrop: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
72
|
+
widthPreset: import("../../properties-panel/props-builder.js").Prop<import("./constants.js").ModalSize, true, undefined>;
|
|
73
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
74
|
+
}>;
|
|
75
|
+
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
76
|
+
closeOnClickOutside: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
77
|
+
}>;
|
|
78
|
+
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
79
|
+
onOpen: import("../../properties-panel/props-builder.js").Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
80
|
+
onClose: import("../../properties-panel/props-builder.js").Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
81
|
+
}>;
|
|
82
|
+
meta: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
83
|
+
isOpen: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
84
|
+
}>;
|
|
85
|
+
}>>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { ModalSize } from "./constants.js";
|
|
4
|
+
import type { ContainerLayout, VerticalAlignment, HorizontalAlignment } from "../../component-base/constants.js";
|
|
5
|
+
import type { ComputeStyleProps } from "../../themes/generatedStyles/generate-component-styles.js";
|
|
6
|
+
import type { SbElement, SbInstance } from "@superblocksteam/library-shared/types";
|
|
7
|
+
import type { ReactNode } from "react";
|
|
8
|
+
type ModalComponentProps = {
|
|
9
|
+
name?: string;
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
onCancel: (e: any) => void;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
closeOnClickOutside: boolean;
|
|
15
|
+
hasBackdrop: boolean;
|
|
16
|
+
widthPreset?: ModalSize;
|
|
17
|
+
heightPreset?: ModalSize;
|
|
18
|
+
modalStyle?: React.CSSProperties;
|
|
19
|
+
styleProps: ComputeStyleProps;
|
|
20
|
+
width?: Dim<"px">;
|
|
21
|
+
height?: Dim<"px">;
|
|
22
|
+
sourceId: SbElement;
|
|
23
|
+
instanceId: SbInstance;
|
|
24
|
+
isEditing: boolean;
|
|
25
|
+
layout: ContainerLayout;
|
|
26
|
+
horizontalAlign?: HorizontalAlignment;
|
|
27
|
+
verticalAlign?: VerticalAlignment;
|
|
28
|
+
spacing: Dim<"px">;
|
|
29
|
+
columns?: number;
|
|
30
|
+
rows?: number;
|
|
31
|
+
rowHeight?: Dim<"px">;
|
|
32
|
+
dropTargetRef?: React.RefObject<HTMLElement | null>;
|
|
33
|
+
};
|
|
34
|
+
/** the modal is open/close by setting isOpen to true/false
|
|
35
|
+
**/
|
|
36
|
+
declare const ModalComponent: (props: ModalComponentProps) => React.JSX.Element;
|
|
37
|
+
export default ModalComponent;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Prop, Section } from "../../properties-panel/props-builder.js";
|
|
2
|
+
import type { ModalSize } from "./constants.js";
|
|
3
|
+
import type { PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare const propertiesDefinition: {
|
|
5
|
+
contents: Section<Record<string, Prop<any, any, undefined>> & {
|
|
6
|
+
children: Prop<any, false, undefined>;
|
|
7
|
+
}>;
|
|
8
|
+
layout: Section<Record<string, Prop<any, any, undefined>> & ((Omit<{
|
|
9
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true, undefined>;
|
|
10
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
11
|
+
readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true, undefined>;
|
|
12
|
+
readonly horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
13
|
+
readonly layout: Prop<"vertical", true, undefined>;
|
|
14
|
+
}) | (Omit<{
|
|
15
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true, undefined>;
|
|
16
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
17
|
+
readonly verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
18
|
+
readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true, undefined>;
|
|
19
|
+
readonly layout: Prop<"horizontal", true, undefined>;
|
|
20
|
+
}) | (Omit<{
|
|
21
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true, undefined>;
|
|
22
|
+
}, "columns" | "layout" | "rowHeight"> & {
|
|
23
|
+
readonly columns: Prop<number, true, undefined>;
|
|
24
|
+
readonly rowHeight: Prop<import("@superblocksteam/library-shared").Dim<"px">, true, undefined>;
|
|
25
|
+
readonly layout: Prop<"freeform", true, undefined>;
|
|
26
|
+
}))>;
|
|
27
|
+
appearance: Section<Record<string, Prop<any, any, undefined>> & {
|
|
28
|
+
backgroundColor: Prop<string, true, undefined>;
|
|
29
|
+
border: Prop<PerSideBorder, false, undefined>;
|
|
30
|
+
borderRadius: Prop<PerCornerBorderRadius, false, undefined>;
|
|
31
|
+
hasBackdrop: Prop<boolean, true, undefined>;
|
|
32
|
+
widthPreset: Prop<ModalSize, true, undefined>;
|
|
33
|
+
loading: Prop<boolean, true, undefined>;
|
|
34
|
+
}>;
|
|
35
|
+
interaction: Section<Record<string, Prop<any, any, undefined>> & {
|
|
36
|
+
closeOnClickOutside: Prop<boolean, true, undefined>;
|
|
37
|
+
}>;
|
|
38
|
+
events: Section<Record<string, Prop<any, any, undefined>> & {
|
|
39
|
+
onOpen: Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
40
|
+
onClose: Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
41
|
+
}>;
|
|
42
|
+
meta: Section<Record<string, Prop<any, any, undefined>> & {
|
|
43
|
+
isOpen: Prop<boolean, true, undefined>;
|
|
44
|
+
}>;
|
|
45
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const Page: import("../../../internal-details/sb-wrapper.jsx").ChainableComponent<{
|
|
2
|
+
contents: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
3
|
+
children: import("../../properties-panel/props-builder.js").Prop<any, false, undefined>;
|
|
4
|
+
columns: import("../../properties-panel/props-builder.js").Prop<string[], false, undefined>;
|
|
5
|
+
}>;
|
|
6
|
+
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
7
|
+
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
8
|
+
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
9
|
+
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
10
|
+
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
11
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
12
|
+
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
13
|
+
}>;
|
|
14
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
15
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
16
|
+
}>;
|
|
17
|
+
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
18
|
+
onLoad: import("../../properties-panel/props-builder.js").Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
19
|
+
}>;
|
|
20
|
+
}, import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
21
|
+
contents: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
22
|
+
children: import("../../properties-panel/props-builder.js").Prop<any, false, undefined>;
|
|
23
|
+
columns: import("../../properties-panel/props-builder.js").Prop<string[], false, undefined>;
|
|
24
|
+
}>;
|
|
25
|
+
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
26
|
+
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
27
|
+
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
28
|
+
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
29
|
+
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
30
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
31
|
+
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
32
|
+
}>;
|
|
33
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
34
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
35
|
+
}>;
|
|
36
|
+
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
37
|
+
onLoad: import("../../properties-panel/props-builder.js").Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
38
|
+
}>;
|
|
39
|
+
}>>;
|