@superblocksteam/library 1.99.99-next.2
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/LICENSE.txt +87 -0
- package/README.md +108 -0
- package/dist/allPaths-CCZMME3l.js +17 -0
- package/dist/allPaths-CCZMME3l.js.map +1 -0
- package/dist/allPaths-CHXNxDVP.js +17 -0
- package/dist/allPaths-CHXNxDVP.js.map +1 -0
- package/dist/allPathsLoader-DTWFaGcd.js +22 -0
- package/dist/allPathsLoader-DTWFaGcd.js.map +1 -0
- package/dist/allPathsLoader-Fr8EhLGp.js +22 -0
- package/dist/allPathsLoader-Fr8EhLGp.js.map +1 -0
- package/dist/icons-BrNMuu_I.js +40 -0
- package/dist/icons-BrNMuu_I.js.map +1 -0
- package/dist/index-BxzKdlqH.js +1353 -0
- package/dist/index-BxzKdlqH.js.map +1 -0
- package/dist/index-DIJYif9G.js +1341 -0
- package/dist/index-DIJYif9G.js.map +1 -0
- package/dist/index-DIn-fanT.js +1353 -0
- package/dist/index-DIn-fanT.js.map +1 -0
- package/dist/index-LHtbj0-V.js +1341 -0
- package/dist/index-LHtbj0-V.js.map +1 -0
- package/dist/index-U0oPeutu.js +189889 -0
- package/dist/index-U0oPeutu.js.map +1 -0
- package/dist/index.css +34239 -0
- package/dist/index.js +164 -0
- package/dist/index.js.map +1 -0
- package/dist/splitPathsBySizeLoader-DHk6oFvg.js +34 -0
- package/dist/splitPathsBySizeLoader-DHk6oFvg.js.map +1 -0
- package/dist/splitPathsBySizeLoader-PcZVWYaJ.js +34 -0
- package/dist/splitPathsBySizeLoader-PcZVWYaJ.js.map +1 -0
- package/dist-types/app-internal.d.ts +4 -0
- package/dist-types/docs-utils/generate-docs.d.ts +2 -0
- package/dist-types/edit-mode/collisions-layer.d.ts +3 -0
- package/dist-types/edit-mode/create-component.d.ts +8 -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/grid-drop.d.ts +4 -0
- package/dist-types/edit-mode/dnd/grid-store.d.ts +33 -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 +13 -0
- package/dist-types/edit-mode/duplicated-name-popover.d.ts +7 -0
- package/dist-types/edit-mode/edit-store.d.ts +28 -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/features/connection-manager.d.ts +10 -0
- package/dist-types/edit-mode/features/drag-and-drop-store.d.ts +69 -0
- package/dist-types/edit-mode/features/interaction-layer-manager.d.ts +17 -0
- package/dist-types/edit-mode/features/operation-store.d.ts +49 -0
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +31 -0
- package/dist-types/edit-mode/features/resizing-store.d.ts +53 -0
- package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +94 -0
- package/dist-types/edit-mode/features/runtime-widgets-manager.d.ts +55 -0
- package/dist-types/edit-mode/features/ui-store.d.ts +41 -0
- package/dist-types/edit-mode/hooks/use-register-source-element.d.ts +2 -0
- package/dist-types/edit-mode/iframe-wrappers.d.ts +4 -0
- package/dist-types/edit-mode/interaction-add-section-button.d.ts +4 -0
- package/dist-types/edit-mode/interaction-layer.d.ts +11 -0
- package/dist-types/edit-mode/interaction-rect-handles.d.ts +7 -0
- package/dist-types/edit-mode/interaction-rect-name-pill.d.ts +13 -0
- package/dist-types/edit-mode/interaction-rect.d.ts +44 -0
- package/dist-types/edit-mode/interaction-utils.d.ts +4 -0
- package/dist-types/edit-mode/mobx-sync/create-patch.d.ts +2 -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/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 +9 -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 +26 -0
- package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +34 -0
- package/dist-types/internal-testing/components/api.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/icon.d.ts +1 -0
- package/dist-types/internal-testing/components/image.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 +1 -0
- package/dist-types/internal-testing/components/section-column.d.ts +1 -0
- package/dist-types/internal-testing/components/switch.d.ts +1 -0
- package/dist-types/internal-testing/components/table.d.ts +1 -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-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-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 +40 -0
- package/dist-types/lib/internal-details/actions-context.d.ts +9 -0
- package/dist-types/lib/internal-details/component-info-context.d.ts +10 -0
- package/dist-types/lib/internal-details/entities-state.d.ts +10 -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/identifier-normalizer.d.ts +9 -0
- package/dist-types/lib/internal-details/is-sb-component.d.ts +7 -0
- package/dist-types/lib/internal-details/lib/devtools.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +97 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-extraction.d.ts +2 -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/compute-engines.d.ts +20 -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 +2 -0
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.d.ts +27 -0
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +83 -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 +7 -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/to-executables-or-values.d.ts +32 -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 +36 -0
- package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +77 -0
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +27 -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 +36 -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 +30 -0
- package/dist-types/lib/internal-details/lib/throttle.d.ts +2 -0
- package/dist-types/lib/internal-details/lib/types.d.ts +226 -0
- package/dist-types/lib/internal-details/reactive-component.d.ts +10 -0
- package/dist-types/lib/internal-details/sb-wrapper-notes.d.ts +1 -0
- package/dist-types/lib/internal-details/sb-wrapper.d.ts +14 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +9 -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/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/sb-trigger.d.ts +53 -0
- package/dist-types/lib/triggers/base.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +19 -0
- package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +21 -0
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/components/reset-component.d.ts +20 -0
- package/dist-types/lib/triggers/implementations/components/set-component-property.d.ts +20 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-app.d.ts +28 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-route.d.ts +23 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to.d.ts +26 -0
- package/dist-types/lib/triggers/implementations/navigate/set-query-params.d.ts +18 -0
- package/dist-types/lib/triggers/implementations/run-js.d.ts +18 -0
- package/dist-types/lib/triggers/implementations/set-profile.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/show-alert.d.ts +22 -0
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +15 -0
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +18 -0
- package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/trigger-event.d.ts +17 -0
- package/dist-types/lib/triggers/registry.d.ts +174 -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 +46 -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/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 +18 -0
- package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +16 -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/input-validation.d.ts +17 -0
- package/dist-types/lib/user-facing/components/button/index.d.ts +37 -0
- package/dist-types/lib/user-facing/components/button/props.d.ts +48 -0
- package/dist-types/lib/user-facing/components/checkbox/checkbox-component.d.ts +9 -0
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +43 -0
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +44 -0
- package/dist-types/lib/user-facing/components/checkbox/types.d.ts +19 -0
- package/dist-types/lib/user-facing/components/column/index.d.ts +51 -0
- package/dist-types/lib/user-facing/components/column/props.d.ts +45 -0
- package/dist-types/lib/user-facing/components/container/index.d.ts +63 -0
- package/dist-types/lib/user-facing/components/container/props.d.ts +58 -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 +2 -0
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +27 -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 +29 -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/index.d.ts +63 -0
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +65 -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 +40 -0
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +24 -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/index.d.ts +73 -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/props.d.ts +76 -0
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +89 -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/order-constraints.d.ts +2 -0
- package/dist-types/lib/user-facing/components/grid/index.d.ts +36 -0
- package/dist-types/lib/user-facing/components/grid/use-height-observer.d.ts +5 -0
- package/dist-types/lib/user-facing/components/grid/utils.d.ts +1 -0
- package/dist-types/lib/user-facing/components/icon/index.d.ts +22 -0
- package/dist-types/lib/user-facing/components/icon/props.d.ts +24 -0
- package/dist-types/lib/user-facing/components/image/image-component.d.ts +38 -0
- package/dist-types/lib/user-facing/components/image/index.d.ts +29 -0
- package/dist-types/lib/user-facing/components/image/props.d.ts +39 -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 +5 -0
- package/dist-types/lib/user-facing/components/input/index.d.ts +96 -0
- package/dist-types/lib/user-facing/components/input/input-component.d.ts +57 -0
- package/dist-types/lib/user-facing/components/input/props.d.ts +100 -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/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/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/index.d.ts +49 -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 +46 -0
- package/dist-types/lib/user-facing/components/page/index.d.ts +13 -0
- package/dist-types/lib/user-facing/components/page/props.d.ts +15 -0
- package/dist-types/lib/user-facing/components/page/register-page.d.ts +2 -0
- package/dist-types/lib/user-facing/components/section/index.d.ts +22 -0
- package/dist-types/lib/user-facing/components/section/props.d.ts +25 -0
- package/dist-types/lib/user-facing/components/slideout/index.d.ts +1 -0
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +15 -0
- package/dist-types/lib/user-facing/components/stack/index.d.ts +60 -0
- package/dist-types/lib/user-facing/components/switch/index.d.ts +44 -0
- package/dist-types/lib/user-facing/components/switch/props.d.ts +45 -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 +178 -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 +62 -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 +111 -0
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +20 -0
- package/dist-types/lib/user-facing/components/table/index.d.ts +255 -0
- package/dist-types/lib/user-facing/components/table/props.d.ts +259 -0
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +100 -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 +78 -0
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +147 -0
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +148 -0
- package/dist-types/lib/user-facing/components/table/types.d.ts +471 -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/index.d.ts +51 -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 +60 -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 +25 -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 +20 -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/global-functions.d.ts +23 -0
- package/dist-types/lib/user-facing/hooks/use-editor.d.ts +42 -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 +43 -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 +5 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +22 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +12 -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 +114 -0
- package/dist-types/lib/user-facing/properties-panel/properties-panel-definition.d.ts +6 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +253 -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-panel-utils.d.ts +3 -0
- package/dist-types/lib/user-facing/properties-panel/validators.d.ts +33 -0
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +52 -0
- package/dist-types/lib/user-facing/sb-provider.d.ts +12 -0
- package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +6 -0
- package/dist-types/lib/user-facing/state/create-scope.d.ts +17 -0
- package/dist-types/lib/user-facing/state/sb-computed.d.ts +2 -0
- package/dist-types/lib/user-facing/state/types.d.ts +17 -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 +80 -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-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/typeography/typography-utils.d.ts +33 -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 +16 -0
- package/dist-types/lib/user-facing/types.d.ts +22 -0
- package/dist-types/lib/user-facing/utils/form.d.ts +10 -0
- package/dist-types/lib/utils/clean-object.d.ts +5 -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/is-user-on-mac.d.ts +1 -0
- package/dist-types/lib/utils/is-widget-grid.d.ts +2 -0
- package/dist-types/lib/utils/is-widget-vstack.d.ts +2 -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/main.d.ts +1 -0
- package/package.json +151 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
import type { DimModes } from "@superblocksteam/library-shared";
|
|
3
|
+
/**
|
|
4
|
+
* TODO:
|
|
5
|
+
* - disable setting height related props in prop panel and code
|
|
6
|
+
* - add column resizer
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare const getDefaultSectionChildren: () => never[];
|
|
10
|
+
export declare const SbColumn: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
11
|
+
layout: import("../../properties-panel/props-builder.js").Section<(((((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
|
|
12
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
13
|
+
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
14
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
15
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
16
|
+
readonly rows: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
17
|
+
readonly rowSize: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
18
|
+
}) | (Omit<{
|
|
19
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
20
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
21
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").VerticalAlignment, true>;
|
|
22
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").HorizontalAlignment, true>;
|
|
23
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true>;
|
|
24
|
+
}) | (Omit<{
|
|
25
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
26
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
27
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").VerticalAlignment, true>;
|
|
28
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").HorizontalAlignment, true>;
|
|
29
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
30
|
+
}))) & {
|
|
31
|
+
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
32
|
+
}) & {
|
|
33
|
+
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
34
|
+
}) & {
|
|
35
|
+
maxHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
36
|
+
minHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
37
|
+
maxWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
38
|
+
minWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
39
|
+
width: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false>;
|
|
40
|
+
height: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false>;
|
|
41
|
+
}) & {
|
|
42
|
+
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
43
|
+
}) & {
|
|
44
|
+
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
45
|
+
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
46
|
+
}>;
|
|
47
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
48
|
+
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
49
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
50
|
+
}>;
|
|
51
|
+
}>>;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
export declare const propertiesDefinition: {
|
|
5
|
+
layout: Section<(((((Record<string, Prop<any, any>> & ((Omit<{
|
|
6
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
7
|
+
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
8
|
+
readonly layout: Prop<"freeform", true>;
|
|
9
|
+
readonly columns: Prop<number, true>;
|
|
10
|
+
readonly rows: Prop<number, false>;
|
|
11
|
+
readonly rowSize: Prop<number, false>;
|
|
12
|
+
}) | (Omit<{
|
|
13
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
14
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
15
|
+
readonly verticalAlign: Prop<import("../../component-base/constants.js").VerticalAlignment, true>;
|
|
16
|
+
readonly horizontalAlign: Prop<import("../../component-base/constants.js").HorizontalAlignment, true>;
|
|
17
|
+
readonly layout: Prop<"vertical", true>;
|
|
18
|
+
}) | (Omit<{
|
|
19
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
20
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
21
|
+
readonly verticalAlign: Prop<import("../../component-base/constants.js").VerticalAlignment, true>;
|
|
22
|
+
readonly horizontalAlign: Prop<import("../../component-base/constants.js").HorizontalAlignment, true>;
|
|
23
|
+
readonly layout: Prop<"horizontal", true>;
|
|
24
|
+
}))) & {
|
|
25
|
+
spacing: Prop<Dim<"px">, true>;
|
|
26
|
+
}) & {
|
|
27
|
+
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
28
|
+
}) & {
|
|
29
|
+
maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
30
|
+
minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
31
|
+
maxWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
32
|
+
minWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
33
|
+
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
34
|
+
height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
35
|
+
}) & {
|
|
36
|
+
shouldScrollContents: Prop<boolean, true>;
|
|
37
|
+
}) & {
|
|
38
|
+
isVisible: Prop<boolean, true>;
|
|
39
|
+
collapseWhenInvisible: Prop<boolean, false>;
|
|
40
|
+
}>;
|
|
41
|
+
appearance: Section<Record<string, Prop<any, any>> & {
|
|
42
|
+
backgroundColor: Prop<string, false>;
|
|
43
|
+
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
44
|
+
}>;
|
|
45
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
import { propertiesDefinition } from "./props.js";
|
|
3
|
+
import type { ContainerLayout } from "../../component-base/constants.js";
|
|
4
|
+
import type { InternalPropsWithOptional } from "../../properties-panel/props-builder.js";
|
|
5
|
+
type OptionalProps = "margin" | "padding" | "spacing" | "backgroundColor" | "border" | "borderRadius";
|
|
6
|
+
type ContainerProps = InternalPropsWithOptional<typeof propertiesDefinition, OptionalProps>;
|
|
7
|
+
/**
|
|
8
|
+
* TODO:
|
|
9
|
+
* - interaciton rect of children will show outside of container if overflow
|
|
10
|
+
* - move card style related defaultprops to props file and update dynamically when supported
|
|
11
|
+
* - the spacing prop is not same type between stack and grid, enable when we clean it up
|
|
12
|
+
* - consider border and padding for grid layout
|
|
13
|
+
* - border style are showing some control default value even actually undefined. styles are coming from container classes but ideally we should set them as default props?
|
|
14
|
+
* - move more props to inner layout component
|
|
15
|
+
*/
|
|
16
|
+
export declare const InternalContainer: (props: ContainerProps) => import("react").JSX.Element;
|
|
17
|
+
export declare const SbContainer: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
18
|
+
layout: import("../../properties-panel/props-builder.js").Section<((((((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
|
|
19
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
20
|
+
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
21
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
22
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
23
|
+
readonly rows: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
24
|
+
readonly rowSize: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
25
|
+
}) | (Omit<{
|
|
26
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
27
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
28
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").VerticalAlignment, true>;
|
|
29
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").HorizontalAlignment, true>;
|
|
30
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true>;
|
|
31
|
+
}) | (Omit<{
|
|
32
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
33
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
34
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").VerticalAlignment, true>;
|
|
35
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").HorizontalAlignment, true>;
|
|
36
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
37
|
+
}))) & {
|
|
38
|
+
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
39
|
+
}) & {
|
|
40
|
+
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Padding, true>;
|
|
41
|
+
}) & {
|
|
42
|
+
width: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
43
|
+
height: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
44
|
+
minWidth: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
45
|
+
maxWidth: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
46
|
+
minHeight: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
47
|
+
maxHeight: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
48
|
+
}) & {
|
|
49
|
+
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
50
|
+
}) & {
|
|
51
|
+
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
52
|
+
}) & {
|
|
53
|
+
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
54
|
+
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
55
|
+
}>;
|
|
56
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
57
|
+
variant: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerVariant, true>;
|
|
58
|
+
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
59
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
60
|
+
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
61
|
+
}>;
|
|
62
|
+
}>>;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
3
|
+
import type { ContainerVariant } from "../../component-base/constants.js";
|
|
4
|
+
import type { Padding } from "@superblocksteam/library-shared/types";
|
|
5
|
+
/**
|
|
6
|
+
* TODO:
|
|
7
|
+
* - make default and options dynamic for distribution and alignment
|
|
8
|
+
* - enable tooltip for radio group options
|
|
9
|
+
* - should not need default min/max width/height, probably just minHeight
|
|
10
|
+
* - the alignments props only show when explicitly set layout in code because of using Union
|
|
11
|
+
* - use default func once supported for composite props, apply it to padding, border, borderRadius, and backgroundColor. Otherwise, prop panel control will not show the correct value
|
|
12
|
+
*/
|
|
13
|
+
export declare const propertiesDefinition: {
|
|
14
|
+
layout: Section<((((((Record<string, Prop<any, any>> & ((Omit<{
|
|
15
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
16
|
+
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
17
|
+
readonly layout: Prop<"freeform", true>;
|
|
18
|
+
readonly columns: Prop<number, true>;
|
|
19
|
+
readonly rows: Prop<number, false>;
|
|
20
|
+
readonly rowSize: Prop<number, false>;
|
|
21
|
+
}) | (Omit<{
|
|
22
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
23
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
24
|
+
readonly verticalAlign: Prop<import("../../component-base/constants.js").VerticalAlignment, true>;
|
|
25
|
+
readonly horizontalAlign: Prop<import("../../component-base/constants.js").HorizontalAlignment, true>;
|
|
26
|
+
readonly layout: Prop<"vertical", true>;
|
|
27
|
+
}) | (Omit<{
|
|
28
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
29
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
30
|
+
readonly verticalAlign: Prop<import("../../component-base/constants.js").VerticalAlignment, true>;
|
|
31
|
+
readonly horizontalAlign: Prop<import("../../component-base/constants.js").HorizontalAlignment, true>;
|
|
32
|
+
readonly layout: Prop<"horizontal", true>;
|
|
33
|
+
}))) & {
|
|
34
|
+
spacing: Prop<Dim<"px">, true>;
|
|
35
|
+
}) & {
|
|
36
|
+
padding: Prop<Padding, true>;
|
|
37
|
+
}) & {
|
|
38
|
+
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
39
|
+
height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
40
|
+
minWidth: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
41
|
+
maxWidth: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
42
|
+
minHeight: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
43
|
+
maxHeight: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
44
|
+
}) & {
|
|
45
|
+
margin: Prop<unknown, true>;
|
|
46
|
+
}) & {
|
|
47
|
+
shouldScrollContents: Prop<boolean, true>;
|
|
48
|
+
}) & {
|
|
49
|
+
isVisible: Prop<boolean, true>;
|
|
50
|
+
collapseWhenInvisible: Prop<boolean, false>;
|
|
51
|
+
}>;
|
|
52
|
+
appearance: Section<Record<string, Prop<any, any>> & {
|
|
53
|
+
variant: Prop<ContainerVariant, true>;
|
|
54
|
+
backgroundColor: Prop<string, true>;
|
|
55
|
+
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
56
|
+
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
57
|
+
}>;
|
|
58
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SbElement, SbInstance } from "@superblocksteam/library-shared/types";
|
|
2
|
+
export declare function CustomComponentProvider({ children, sourceId, instanceId, }: {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
sourceId: SbElement;
|
|
5
|
+
instanceId: SbInstance;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
export declare function useCustomComponentContext(): {
|
|
8
|
+
isInCustomComponent: boolean;
|
|
9
|
+
instanceId: SbInstance;
|
|
10
|
+
sourceId: SbElement;
|
|
11
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Section } from "../../properties-panel/props-builder.js";
|
|
2
|
+
import type { Prop, InternalProps } from "../../properties-panel/props-builder.js";
|
|
3
|
+
import type { SbEventFlow } from "../../sb-event-flow.js";
|
|
4
|
+
import type { ReactNode } from "react";
|
|
5
|
+
declare const layoutPropDef: {
|
|
6
|
+
layout: Section<Record<string, Prop<any, any>> & {
|
|
7
|
+
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
8
|
+
minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
9
|
+
maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
10
|
+
minWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
11
|
+
width: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
12
|
+
height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
13
|
+
} & {
|
|
14
|
+
margin: Prop<unknown, true>;
|
|
15
|
+
} & {
|
|
16
|
+
isVisible: Prop<boolean, true>;
|
|
17
|
+
collapseWhenInvisible: Prop<boolean, false>;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
type WrappedEventProps<IP extends InternalProps<any>> = {
|
|
21
|
+
[K in keyof IP]: IP[K] extends SbEventFlow | undefined ? () => Promise<void> : IP[K];
|
|
22
|
+
};
|
|
23
|
+
type SectionProps<PD extends Record<string, Prop<any>>> = Record<string, Section<PD>> & typeof layoutPropDef;
|
|
24
|
+
export type CustomComponentProps<PD extends Record<string, Prop<any>>, SP extends SectionProps<PD> = SectionProps<PD>, IP extends InternalProps<SP> = InternalProps<SP>> = WrappedEventProps<IP>;
|
|
25
|
+
export declare function registerComponent<PD extends Record<string, Prop<any>>>(name: string, propertiesDefinition: PD, component: React.FC<CustomComponentProps<PD>>): import("react").FC<any>;
|
|
26
|
+
export declare function isCustomComponent(child: ReactNode): boolean;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Typographies } from "@superblocksteam/shared";
|
|
2
|
+
export declare enum DatePickerType {
|
|
3
|
+
DATE_PICKER = "DATE_PICKER",// date + time (legacy)
|
|
4
|
+
DATE_RANGE_PICKER = "DATE_RANGE_PICKER"
|
|
5
|
+
}
|
|
6
|
+
export declare const DEFAULT_DATEPICKER_LABEL_STYLE_VARIANT: keyof Typographies;
|
|
7
|
+
export declare const DEFAULT_DATEPICKER_INPUT_STYLE_VARIANT: keyof Typographies;
|
|
8
|
+
export declare const DEFAULT_DATE_FORMAT = "DD/MM/YYYY HH:mm";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { DatePickerComponentProps } from "./types.js";
|
|
3
|
+
export declare const INPUT_ADDITIONAL_MIN_HEIGHT = 17.7;
|
|
4
|
+
export declare const LABEL_EXTRA_HEIGHT_MARGIN = 4;
|
|
5
|
+
declare class DatePickerComponent extends React.Component<DatePickerComponentProps, DatePickerComponentState> {
|
|
6
|
+
constructor(props: DatePickerComponentProps);
|
|
7
|
+
componentDidMount(): void;
|
|
8
|
+
componentDidUpdate(prevProps: DatePickerComponentProps): void;
|
|
9
|
+
getValidDate: (date: string, format: string) => Date | undefined;
|
|
10
|
+
getNormalizedDateFormat: () => string;
|
|
11
|
+
getNormalizedDisplayDateFormat: () => string | undefined;
|
|
12
|
+
shouldWrapTime: () => boolean;
|
|
13
|
+
handleInteraction: (openState: boolean) => void;
|
|
14
|
+
getInitialMonth: (currentValue: string | undefined | null, minDate: Date | undefined, maxDate: Date | undefined) => Date | undefined;
|
|
15
|
+
getCurrentValue: () => string | null;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
|
+
getPopoverFooter: () => React.JSX.Element;
|
|
18
|
+
formatDisplayDate: (date: Date) => string;
|
|
19
|
+
formatSelectedDate: (date: Date) => string;
|
|
20
|
+
parseSelectedDate: (dateStr: string) => Date;
|
|
21
|
+
onInputChanged: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
22
|
+
onDayChanged: (selectedDayOnly: Date | undefined) => void;
|
|
23
|
+
onTimeChanged: (selectedDateTime: Date | null) => void;
|
|
24
|
+
}
|
|
25
|
+
interface DatePickerComponentState {
|
|
26
|
+
selectedDateFormatted?: unknown;
|
|
27
|
+
isOpen?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export default DatePickerComponent;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const DatePickerActionsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const DatePickerActionButton: import("styled-components").StyledComponent<import("react").FC<import("@blueprintjs/core").ButtonProps>, any, {}, never>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const SbDatePicker: React.FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
3
|
+
general: import("../../properties-panel/props-builder.js").Section<(Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ({
|
|
4
|
+
label: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
5
|
+
defaultDate: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
6
|
+
dateFormat: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
7
|
+
displayDateFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
8
|
+
} & (Omit<{
|
|
9
|
+
manageTimezone: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
10
|
+
}, "manageTimezone" | "displayTimezone" | "valueTimezone"> & ({
|
|
11
|
+
manageTimezone: import("../../properties-panel/props-builder.js").Prop<true, true>;
|
|
12
|
+
valueTimezone: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
13
|
+
displayTimezone: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
14
|
+
} | {
|
|
15
|
+
manageTimezone: import("../../properties-panel/props-builder.js").Prop<false, true>;
|
|
16
|
+
valueTimezone?: undefined;
|
|
17
|
+
displayTimezone?: undefined;
|
|
18
|
+
})))) & {
|
|
19
|
+
twentyFourHourTime: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
20
|
+
}>;
|
|
21
|
+
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
22
|
+
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
23
|
+
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
24
|
+
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
25
|
+
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
26
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
27
|
+
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
28
|
+
} & {
|
|
29
|
+
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
30
|
+
} & {
|
|
31
|
+
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
32
|
+
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
33
|
+
}>;
|
|
34
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
35
|
+
labelPosition: import("../../properties-panel/props-builder.js").Prop<"left" | "top", true>;
|
|
36
|
+
labelStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
37
|
+
showIcon: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
38
|
+
}>;
|
|
39
|
+
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
40
|
+
customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
41
|
+
customErrorMessage: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
42
|
+
isRequired: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
43
|
+
minDate: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
44
|
+
maxDate: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
45
|
+
isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
46
|
+
errorMessagePlacement: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true>;
|
|
47
|
+
}>;
|
|
48
|
+
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
49
|
+
onDateSelected: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
|
|
50
|
+
}>;
|
|
51
|
+
meta: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
52
|
+
selectedDate: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
53
|
+
isTouched: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
54
|
+
}>;
|
|
55
|
+
derived: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
56
|
+
value: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
57
|
+
validationErrors: import("../../properties-panel/props-builder.js").Prop<any, true>;
|
|
58
|
+
isValid: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
59
|
+
outputDateLocal: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
60
|
+
outputDateUtc: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
61
|
+
showError: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
62
|
+
}>;
|
|
63
|
+
}>>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
2
|
+
import type { InternalProps } from "../../properties-panel/props-builder.js";
|
|
3
|
+
export type Widget = InternalProps<typeof propertiesDefinition>;
|
|
4
|
+
export declare const propertiesDefinition: {
|
|
5
|
+
general: Section<(Record<string, Prop<any, any>> & ({
|
|
6
|
+
label: Prop<string, true>;
|
|
7
|
+
defaultDate: Prop<string, false>;
|
|
8
|
+
dateFormat: Prop<string, true>;
|
|
9
|
+
displayDateFormat: Prop<string, false>;
|
|
10
|
+
} & (Omit<{
|
|
11
|
+
manageTimezone: Prop<boolean, true>;
|
|
12
|
+
}, "manageTimezone" | "displayTimezone" | "valueTimezone"> & ({
|
|
13
|
+
manageTimezone: Prop<true, true>;
|
|
14
|
+
valueTimezone: Prop<string, false>;
|
|
15
|
+
displayTimezone: Prop<string, false>;
|
|
16
|
+
} | {
|
|
17
|
+
manageTimezone: Prop<false, true>;
|
|
18
|
+
valueTimezone?: undefined;
|
|
19
|
+
displayTimezone?: undefined;
|
|
20
|
+
})))) & {
|
|
21
|
+
twentyFourHourTime: Prop<boolean, true>;
|
|
22
|
+
}>;
|
|
23
|
+
layout: Section<Record<string, Prop<any, any>> & {
|
|
24
|
+
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
25
|
+
minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
26
|
+
maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
27
|
+
minWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
28
|
+
width: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
29
|
+
height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
30
|
+
} & {
|
|
31
|
+
margin: Prop<unknown, true>;
|
|
32
|
+
} & {
|
|
33
|
+
isVisible: Prop<boolean, true>;
|
|
34
|
+
collapseWhenInvisible: Prop<boolean, false>;
|
|
35
|
+
}>;
|
|
36
|
+
appearance: Section<Record<string, Prop<any, any>> & {
|
|
37
|
+
labelPosition: Prop<"left" | "top", true>;
|
|
38
|
+
labelStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
39
|
+
showIcon: Prop<boolean, true>;
|
|
40
|
+
}>;
|
|
41
|
+
interaction: Section<Record<string, Prop<any, any>> & {
|
|
42
|
+
customValidationRule: Prop<string, true>;
|
|
43
|
+
customErrorMessage: Prop<string, true>;
|
|
44
|
+
isRequired: Prop<boolean, true>;
|
|
45
|
+
minDate: Prop<string, false>;
|
|
46
|
+
maxDate: Prop<string, false>;
|
|
47
|
+
isDisabled: Prop<boolean, true>;
|
|
48
|
+
errorMessagePlacement: Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true>;
|
|
49
|
+
}>;
|
|
50
|
+
events: Section<Record<string, Prop<any, any>> & {
|
|
51
|
+
onDateSelected: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
|
|
52
|
+
}>;
|
|
53
|
+
meta: Section<Record<string, Prop<any, any>> & {
|
|
54
|
+
selectedDate: Prop<string, true>;
|
|
55
|
+
isTouched: Prop<boolean, true>;
|
|
56
|
+
}>;
|
|
57
|
+
derived: Section<Record<string, Prop<any, any>> & {
|
|
58
|
+
value: Prop<string, true>;
|
|
59
|
+
validationErrors: Prop<any, true>;
|
|
60
|
+
isValid: Prop<boolean, true>;
|
|
61
|
+
outputDateLocal: Prop<string, true>;
|
|
62
|
+
outputDateUtc: Prop<string, true>;
|
|
63
|
+
showError: Prop<boolean, true>;
|
|
64
|
+
}>;
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { DatePickerType } from "./constants.js";
|
|
2
|
+
import type { Dim } from "@superblocksteam/library-shared";
|
|
3
|
+
import type { ErrorMessagePlacement, WidgetLabelPosition } from "@superblocksteam/library-shared/props";
|
|
4
|
+
export interface DatePickerComponentProps {
|
|
5
|
+
dateFormat: string | undefined;
|
|
6
|
+
enableTimePicker?: boolean;
|
|
7
|
+
selectedDate?: string;
|
|
8
|
+
minDate?: string;
|
|
9
|
+
maxDate?: string;
|
|
10
|
+
datePickerType: DatePickerType;
|
|
11
|
+
isDisabled: boolean;
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
isValid?: boolean;
|
|
14
|
+
isTouched?: boolean;
|
|
15
|
+
isFocused?: boolean;
|
|
16
|
+
twentyFourHourTime: boolean;
|
|
17
|
+
displayDateFormat?: string;
|
|
18
|
+
displayTimezone?: string;
|
|
19
|
+
timezone?: string;
|
|
20
|
+
isRequired?: boolean;
|
|
21
|
+
showTimezone?: boolean;
|
|
22
|
+
showCalendarIcon?: boolean;
|
|
23
|
+
forceOpen?: boolean;
|
|
24
|
+
iconSize?: number;
|
|
25
|
+
inputClassName?: string;
|
|
26
|
+
inputStyleOverride?: React.CSSProperties;
|
|
27
|
+
inputLineHeightPx?: number;
|
|
28
|
+
label?: string;
|
|
29
|
+
labelClassName?: string;
|
|
30
|
+
labelStyleOverride?: React.CSSProperties;
|
|
31
|
+
labelPosition?: WidgetLabelPosition;
|
|
32
|
+
labelWidth?: Dim;
|
|
33
|
+
errorMessagePlacement: ErrorMessagePlacement;
|
|
34
|
+
showError?: boolean;
|
|
35
|
+
errorMessages?: string[];
|
|
36
|
+
isFitContentHeight?: boolean;
|
|
37
|
+
onInputClick?: (e: React.MouseEvent) => void;
|
|
38
|
+
onDateSelected: (selectedDate: string) => void;
|
|
39
|
+
onDatePickerClosed?: () => void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const NO_TZ_FORMAT = "YYYY-MM-DDTHH:mm:ss.SSS";
|
|
2
|
+
/**
|
|
3
|
+
* Normalize dates to fix error when parsing dates with milliseconds. The date format with ms is being saved
|
|
4
|
+
* like "YYYY-MM-DDTHH:mm:ss.sssZ" but it should be "YYYY-MM-DDTHH:mm:ss.SSSZ". To be backwards compatible
|
|
5
|
+
* we are normalizing the format to be correctly parsed by the moment library.
|
|
6
|
+
* @param dateFormat the date format to normalize
|
|
7
|
+
* @returns the correct date format string
|
|
8
|
+
*/
|
|
9
|
+
export declare function normalizeDateFormat(dateFormat: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Parses a date string according to the given format, removes timezone information,
|
|
12
|
+
* and returns the date in NO_TZ format.
|
|
13
|
+
*
|
|
14
|
+
* @param {string} value - The date string to parse.
|
|
15
|
+
* @param {string} format - The format of the input date string.
|
|
16
|
+
* @returns {string} - The formatted date string in "MM/DD/YYYY HH:mm:ss" format.
|
|
17
|
+
*/
|
|
18
|
+
export declare function stripTimezoneFromString(dateString: string, format: string): string;
|
|
19
|
+
export declare const stripTimezoneFromDate: (date: Date, dateFormat: string, timezone?: string) => string;
|
|
20
|
+
export declare const convertDateStringTimezone: (dateStr: string, dateFormat: string, originalTimezone?: string, newTimezone?: string) => string;
|
|
21
|
+
export declare const formatIncludesTimezone: (dateFormat: string) => boolean;
|
|
22
|
+
export declare const formatIncludesTime: (dateFormat: string) => boolean;
|
|
23
|
+
export declare const getTimePrecision: (dateFormat: string) => "millisecond" | "second" | "minute" | undefined;
|
|
24
|
+
export declare const isValidDate: (date: string) => boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Typographies } from "@superblocksteam/shared";
|
|
2
|
+
export declare const DropdownEntireObjectOption = "$$ENTIRE_OBJECT";
|
|
3
|
+
export declare const DEFAULT_DROPDOWN_WIDGET_INPUT_STYLE_VARIANT: keyof Typographies;
|
|
4
|
+
export declare const DEFAULT_DROPDOWN_WIDGET_LABEL_STYLE_VARIANT: keyof Typographies;
|
|
5
|
+
export declare const DEFAULT_DROPDOWN_BORDER = 1;
|