@vev/silke 1.0.17 → 1.0.19
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/CHANGELOG.md +15 -0
- package/dist/{chunk-SOFGXMET.js → chunk-FIPWO3IB.js} +3 -3
- package/dist/{chunk-SOFGXMET.js.map → chunk-FIPWO3IB.js.map} +1 -1
- package/dist/index.js +21 -22
- package/dist/index.js.LEGAL.txt +7 -7
- package/dist/index.js.map +4 -4
- package/dist/silke/src/components/index.d.ts +54 -0
- package/dist/silke/src/components/silke-autocomplete-field/autocomplete-item.d.ts +19 -0
- package/dist/silke/src/components/silke-autocomplete-field/autocomplete-tags.d.ts +9 -0
- package/dist/silke/src/components/silke-autocomplete-field/autocomplete-types.d.ts +55 -0
- package/dist/silke/src/components/silke-autocomplete-field/index.d.ts +5 -0
- package/dist/silke/src/components/silke-autocomplete-field/silke-autocomplete-field.d.ts +50 -0
- package/dist/silke/src/components/silke-box/index.d.ts +1 -0
- package/dist/silke/src/components/silke-box/silke-box.d.ts +121 -0
- package/dist/silke/src/components/silke-breadcrumbs/index.d.ts +2 -0
- package/dist/silke/src/components/silke-breadcrumbs/silke-breadcrumb.d.ts +10 -0
- package/dist/silke/src/components/silke-breadcrumbs/silke-breadcrumbs.d.ts +7 -0
- package/dist/silke/src/components/silke-button/context.d.ts +14 -0
- package/dist/silke/src/components/silke-button/index.d.ts +7 -0
- package/dist/silke/src/components/silke-button/silke-big-button.d.ts +13 -0
- package/dist/silke/src/components/silke-button/silke-button-set.d.ts +11 -0
- package/dist/silke/src/components/silke-button/silke-button.d.ts +39 -0
- package/dist/silke/src/components/silke-button/silke-confirmation-button.d.ts +8 -0
- package/dist/silke/src/components/silke-button/silke-file-select-button.d.ts +9 -0
- package/dist/silke/src/components/silke-card/index.d.ts +2 -0
- package/dist/silke/src/components/silke-card/silke-card-grid.d.ts +10 -0
- package/dist/silke/src/components/silke-card/silke-card.d.ts +24 -0
- package/dist/silke/src/components/silke-checkbox/index.d.ts +1 -0
- package/dist/silke/src/components/silke-checkbox/silke-checkbox.d.ts +11 -0
- package/dist/silke/src/components/silke-code-editor/index.d.ts +3 -0
- package/dist/silke/src/components/silke-code-editor/silke-code-editor.d.ts +8 -0
- package/dist/silke/src/components/silke-code-snippet/index.d.ts +1 -0
- package/dist/silke/src/components/silke-code-snippet/silke-code-snippet.d.ts +17 -0
- package/dist/silke/src/components/silke-color-palettes/index.d.ts +2 -0
- package/dist/silke/src/components/silke-color-palettes/silke-color-palette.d.ts +12 -0
- package/dist/silke/src/components/silke-color-palettes/silke-color-palettes.d.ts +8 -0
- package/dist/silke/src/components/silke-color-picker/color.d.ts +31 -0
- package/dist/silke/src/components/silke-color-picker/hue.d.ts +7 -0
- package/dist/silke/src/components/silke-color-picker/index.d.ts +4 -0
- package/dist/silke/src/components/silke-color-picker/silke-color-info.d.ts +9 -0
- package/dist/silke/src/components/silke-color-picker/silke-color-picker-button.d.ts +11 -0
- package/dist/silke/src/components/silke-color-picker/silke-color-picker.d.ts +17 -0
- package/dist/silke/src/components/silke-color-picker/silke-color-space.d.ts +11 -0
- package/dist/silke/src/components/silke-color-picker/silke-hue-slider.d.ts +7 -0
- package/dist/silke/src/components/silke-color-picker/silke-opacity-slider.d.ts +8 -0
- package/dist/silke/src/components/silke-color-swatches/index.d.ts +2 -0
- package/dist/silke/src/components/silke-color-swatches/silke-color-swatch-button.d.ts +6 -0
- package/dist/silke/src/components/silke-color-swatches/silke-swatches.d.ts +25 -0
- package/dist/silke/src/components/silke-color-swatches/utils.d.ts +12 -0
- package/dist/silke/src/components/silke-content-column/index.d.ts +1 -0
- package/dist/silke/src/components/silke-content-column/silke-content-column.d.ts +7 -0
- package/dist/silke/src/components/silke-context-menu/index.d.ts +2 -0
- package/dist/silke/src/components/silke-context-menu/silke-contect-menu-hooks.d.ts +0 -0
- package/dist/silke/src/components/silke-context-menu/silke-context-menu-item.d.ts +12 -0
- package/dist/silke/src/components/silke-context-menu/silke-context-menu.d.ts +15 -0
- package/dist/silke/src/components/silke-css-number-field/index.d.ts +2 -0
- package/dist/silke/src/components/silke-css-number-field/silke-css-context.d.ts +29 -0
- package/dist/silke/src/components/silke-css-number-field/silke-css-number-field.d.ts +15 -0
- package/dist/silke/src/components/silke-css-number-field/utils.d.ts +32 -0
- package/dist/silke/src/components/silke-divider/index.d.ts +1 -0
- package/dist/silke/src/components/silke-divider/silke-divider.d.ts +13 -0
- package/dist/silke/src/components/silke-drawer/index.d.ts +1 -0
- package/dist/silke/src/components/silke-drawer/silke-drawer.d.ts +12 -0
- package/dist/silke/src/components/silke-form/form-context.d.ts +26 -0
- package/dist/silke/src/components/silke-form/form-types.d.ts +44 -0
- package/dist/silke/src/components/silke-form/index.d.ts +2 -0
- package/dist/silke/src/components/silke-form/silke-form.d.ts +22 -0
- package/dist/silke/src/components/silke-form-schema/fields/array-field-inline.d.ts +12 -0
- package/dist/silke/src/components/silke-form-schema/fields/array-field-modal.d.ts +13 -0
- package/dist/silke/src/components/silke-form-schema/fields/array-field.d.ts +4 -0
- package/dist/silke/src/components/silke-form-schema/fields/event-field.d.ts +4 -0
- package/dist/silke/src/components/silke-form-schema/fields/icon-field.d.ts +4 -0
- package/dist/silke/src/components/silke-form-schema/fields/image-field.d.ts +4 -0
- package/dist/silke/src/components/silke-form-schema/fields/layout-field.d.ts +3 -0
- package/dist/silke/src/components/silke-form-schema/fields/link-field.d.ts +4 -0
- package/dist/silke/src/components/silke-form-schema/fields/number-field.d.ts +4 -0
- package/dist/silke/src/components/silke-form-schema/fields/object-field.d.ts +3 -0
- package/dist/silke/src/components/silke-form-schema/fields/select-field.d.ts +4 -0
- package/dist/silke/src/components/silke-form-schema/fields/string-field.d.ts +4 -0
- package/dist/silke/src/components/silke-form-schema/fields/toggle-field.d.ts +4 -0
- package/dist/silke/src/components/silke-form-schema/fields/upload-field.d.ts +4 -0
- package/dist/silke/src/components/silke-form-schema/fields/utils/generate-image.d.ts +3 -0
- package/dist/silke/src/components/silke-form-schema/fields/utils/generate-title.d.ts +7 -0
- package/dist/silke/src/components/silke-form-schema/fields/utils/index.d.ts +2 -0
- package/dist/silke/src/components/silke-form-schema/fields/utils/schema-util.d.ts +2 -0
- package/dist/silke/src/components/silke-form-schema/index.d.ts +4 -0
- package/dist/silke/src/components/silke-form-schema/safe-eval/iframe-handler.d.ts +17 -0
- package/dist/silke/src/components/silke-form-schema/safe-eval/index.d.ts +1 -0
- package/dist/silke/src/components/silke-form-schema/safe-eval/safe-eval.d.ts +1 -0
- package/dist/silke/src/components/silke-form-schema/schema-utils.d.ts +11 -0
- package/dist/silke/src/components/silke-form-schema/silke-extended-fields-context.d.ts +13 -0
- package/dist/silke/src/components/silke-form-schema/silke-form-schema.d.ts +13 -0
- package/dist/silke/src/components/silke-form-schema/silke-schema-context.d.ts +9 -0
- package/dist/silke/src/components/silke-form-schema/silke-schema-field.d.ts +10 -0
- package/dist/silke/src/components/silke-form-schema/silke-schema-fields.d.ts +14 -0
- package/dist/silke/src/components/silke-gradient-picker/index.d.ts +1 -0
- package/dist/silke/src/components/silke-gradient-picker/silke-gradient-picker.d.ts +5 -0
- package/dist/silke/src/components/silke-gradient-picker/silke-gradient-position.d.ts +8 -0
- package/dist/silke/src/components/silke-gradient-picker/silke-gradient-slider.d.ts +10 -0
- package/dist/silke/src/components/silke-gradient-picker/silke-gradient-utils.d.ts +14 -0
- package/dist/silke/src/components/silke-icon/index.d.ts +2 -0
- package/dist/silke/src/components/silke-icon/silke-icon.d.ts +11 -0
- package/dist/silke/src/components/silke-icon/silke-shape.d.ts +8 -0
- package/dist/silke/src/components/silke-icon/silke-stacked-icon.d.ts +8 -0
- package/dist/silke/src/components/silke-icon-picker/emoji-tab.d.ts +3 -0
- package/dist/silke/src/components/silke-icon-picker/icons-tab.d.ts +3 -0
- package/dist/silke/src/components/silke-icon-picker/index.d.ts +1 -0
- package/dist/silke/src/components/silke-icon-picker/silke-icon-picker.d.ts +12 -0
- package/dist/silke/src/components/silke-icon-picker/upload-tab.d.ts +3 -0
- package/dist/silke/src/components/silke-icon-picker/utils.d.ts +5 -0
- package/dist/silke/src/components/silke-iframe-portal/index.d.ts +4 -0
- package/dist/silke/src/components/silke-iframe-portal/silke-iframe-context.d.ts +7 -0
- package/dist/silke/src/components/silke-iframe-portal/silke-iframe-css-link.d.ts +5 -0
- package/dist/silke/src/components/silke-iframe-portal/silke-iframe-portal.d.ts +10 -0
- package/dist/silke/src/components/silke-iframe-portal/silke-iframe-script.d.ts +6 -0
- package/dist/silke/src/components/silke-image/index.d.ts +2 -0
- package/dist/silke/src/components/silke-image/silke-image-color-backdrop.d.ts +7 -0
- package/dist/silke/src/components/silke-image/silke-image.d.ts +11 -0
- package/dist/silke/src/components/silke-link/index.d.ts +1 -0
- package/dist/silke/src/components/silke-link/silke-link.d.ts +23 -0
- package/dist/silke/src/components/silke-list/index.d.ts +2 -0
- package/dist/silke/src/components/silke-list/silke-list-item.d.ts +7 -0
- package/dist/silke/src/components/silke-list/silke-list.d.ts +10 -0
- package/dist/silke/src/components/silke-list-card/index.d.ts +1 -0
- package/dist/silke/src/components/silke-list-card/silke-list-card.d.ts +14 -0
- package/dist/silke/src/components/silke-loader/index.d.ts +2 -0
- package/dist/silke/src/components/silke-loader/silke-loader-overlay.d.ts +18 -0
- package/dist/silke/src/components/silke-loader/silke-loader.d.ts +18 -0
- package/dist/silke/src/components/silke-modal/index.d.ts +2 -0
- package/dist/silke/src/components/silke-modal/silke-confirmation-modal.d.ts +31 -0
- package/dist/silke/src/components/silke-modal/silke-modal.d.ts +18 -0
- package/dist/silke/src/components/silke-navigation-link/index.d.ts +1 -0
- package/dist/silke/src/components/silke-navigation-link/silke-navigation-link.d.ts +22 -0
- package/dist/silke/src/components/silke-notification/confetti.d.ts +2 -0
- package/dist/silke/src/components/silke-notification/index.d.ts +1 -0
- package/dist/silke/src/components/silke-notification/silke-notification.d.ts +22 -0
- package/dist/silke/src/components/silke-object-field/index.d.ts +1 -0
- package/dist/silke/src/components/silke-object-field/silke-object-field.d.ts +17 -0
- package/dist/silke/src/components/silke-overflow-menu/index.d.ts +1 -0
- package/dist/silke/src/components/silke-overflow-menu/silke-overflow-menu.d.ts +21 -0
- package/dist/silke/src/components/silke-popover/index.d.ts +1 -0
- package/dist/silke/src/components/silke-popover/popover-context.d.ts +8 -0
- package/dist/silke/src/components/silke-popover/silke-popover.d.ts +48 -0
- package/dist/silke/src/components/silke-progress-indicator/index.d.ts +2 -0
- package/dist/silke/src/components/silke-progress-indicator/silke-progress-indicator.d.ts +7 -0
- package/dist/silke/src/components/silke-progress-indicator/silke-progress-step.d.ts +11 -0
- package/dist/silke/src/components/silke-radio-button/index.d.ts +2 -0
- package/dist/silke/src/components/silke-radio-button/silke-radio-button-group.d.ts +15 -0
- package/dist/silke/src/components/silke-radio-button/silke-radio-button.d.ts +10 -0
- package/dist/silke/src/components/silke-search-field/index.d.ts +1 -0
- package/dist/silke/src/components/silke-search-field/silke-search-field.d.ts +8 -0
- package/dist/silke/src/components/silke-select-field/index.d.ts +1 -0
- package/dist/silke/src/components/silke-select-field/silke-select-field.d.ts +5 -0
- package/dist/silke/src/components/silke-skeleton/index.d.ts +1 -0
- package/dist/silke/src/components/silke-skeleton/silke-skeleton.d.ts +8 -0
- package/dist/silke/src/components/silke-slider/index.d.ts +1 -0
- package/dist/silke/src/components/silke-slider/silke-slider-point.d.ts +14 -0
- package/dist/silke/src/components/silke-slider/silke-slider-utils.d.ts +2 -0
- package/dist/silke/src/components/silke-slider/silke-slider.d.ts +20 -0
- package/dist/silke/src/components/silke-slider/slider-track.d.ts +9 -0
- package/dist/silke/src/components/silke-sortable-list/index.d.ts +2 -0
- package/dist/silke/src/components/silke-sortable-list/silke-nested-sortable-item.d.ts +16 -0
- package/dist/silke/src/components/silke-sortable-list/silke-nested-sortable-list.d.ts +25 -0
- package/dist/silke/src/components/silke-sortable-list/silke-nested-sortable-utils.d.ts +57 -0
- package/dist/silke/src/components/silke-sortable-list/silke-sortable-item-wrapper.d.ts +12 -0
- package/dist/silke/src/components/silke-sortable-list/silke-sortable-list.d.ts +15 -0
- package/dist/silke/src/components/silke-steps/index.d.ts +1 -0
- package/dist/silke/src/components/silke-steps/silke-steps.d.ts +12 -0
- package/dist/silke/src/components/silke-table/index.d.ts +2 -0
- package/dist/silke/src/components/silke-table/silke-table.d.ts +27 -0
- package/dist/silke/src/components/silke-table/table-row.d.ts +13 -0
- package/dist/silke/src/components/silke-table/table-types.d.ts +13 -0
- package/dist/silke/src/components/silke-tabs/index.d.ts +2 -0
- package/dist/silke/src/components/silke-tabs/silke-tab.d.ts +12 -0
- package/dist/silke/src/components/silke-tabs/silke-tabs.d.ts +10 -0
- package/dist/silke/src/components/silke-tag/index.d.ts +1 -0
- package/dist/silke/src/components/silke-tag/silke-tag.d.ts +40 -0
- package/dist/silke/src/components/silke-text/index.d.ts +3 -0
- package/dist/silke/src/components/silke-text/silke-text-types.d.ts +28 -0
- package/dist/silke/src/components/silke-text/silke-text.d.ts +275 -0
- package/dist/silke/src/components/silke-text/silke-title.d.ts +3 -0
- package/dist/silke/src/components/silke-text-field/index.d.ts +3 -0
- package/dist/silke/src/components/silke-text-field/silke-text-field-item.d.ts +8 -0
- package/dist/silke/src/components/silke-text-field/silke-text-field-outline.d.ts +39 -0
- package/dist/silke/src/components/silke-text-field/silke-text-field.d.ts +27 -0
- package/dist/silke/src/components/silke-text-field/text-field-context.d.ts +9 -0
- package/dist/silke/src/components/silke-theme-editor/index.d.ts +1 -0
- package/dist/silke/src/components/silke-theme-editor/silke-theme-editor.d.ts +9 -0
- package/dist/silke/src/components/silke-tile/index.d.ts +2 -0
- package/dist/silke/src/components/silke-tile/silke-tile-select.d.ts +26 -0
- package/dist/silke/src/components/silke-tile/silke-tile.d.ts +38 -0
- package/dist/silke/src/components/silke-toggle/index.d.ts +1 -0
- package/dist/silke/src/components/silke-toggle/silke-toggle.d.ts +12 -0
- package/dist/silke/src/components/silke-toolbar/index.d.ts +1 -0
- package/dist/silke/src/components/silke-toolbar/silke-toolbar.d.ts +7 -0
- package/dist/silke/src/components/silke-tooltip/index.d.ts +5 -0
- package/dist/silke/src/components/silke-tooltip/silke-definition-tooltip.d.ts +16 -0
- package/dist/silke/src/components/silke-tooltip/silke-icon-tooltip.d.ts +17 -0
- package/dist/silke/src/components/silke-tooltip/silke-interactive-tooltip.d.ts +24 -0
- package/dist/silke/src/components/silke-tooltip/silke-shortcuts.d.ts +37 -0
- package/dist/silke/src/components/silke-tooltip/silke-tooltip.d.ts +25 -0
- package/dist/silke/src/components/silke-tooltip/utils.d.ts +1 -0
- package/dist/silke/src/components/silke-upload-field/index.d.ts +1 -0
- package/dist/silke/src/components/silke-upload-field/silke-upload-field.d.ts +32 -0
- package/dist/silke/src/components/silke-virtual/index.d.ts +2 -0
- package/dist/silke/src/components/silke-virtual/silke-virtual-grid.d.ts +9 -0
- package/dist/silke/src/components/silke-virtual/silke-virtual-row.d.ts +10 -0
- package/dist/silke/src/docs/app.d.ts +4 -0
- package/dist/silke/src/docs/components/code-block/code-block.d.ts +6 -0
- package/dist/silke/src/docs/components/code-block/index.d.ts +1 -0
- package/dist/silke/src/docs/components/state-table/index.d.ts +1 -0
- package/dist/silke/src/docs/components/state-table/state-table.d.ts +14 -0
- package/dist/silke/src/docs/data/app/actions.d.ts +1 -0
- package/dist/silke/src/docs/data/app/constants.d.ts +6 -0
- package/dist/silke/src/docs/data/app/index.d.ts +3 -0
- package/dist/silke/src/docs/data/app/store.d.ts +8 -0
- package/dist/silke/src/docs/data/flux/action-decorator.d.ts +5 -0
- package/dist/silke/src/docs/data/flux/action-utils.d.ts +7 -0
- package/dist/silke/src/docs/data/flux/controller.d.ts +24 -0
- package/dist/silke/src/docs/data/flux/dispatcher.d.ts +7 -0
- package/dist/silke/src/docs/data/flux/index.d.ts +6 -0
- package/dist/silke/src/docs/data/flux/store.d.ts +15 -0
- package/dist/silke/src/docs/data/flux/use-store.d.ts +2 -0
- package/dist/silke/src/docs/docs-provider.d.ts +6 -0
- package/dist/silke/src/docs/index.d.ts +2 -0
- package/dist/silke/src/docs/ipsum-generator.d.ts +7 -0
- package/dist/silke/src/helpers/copy-to-clipboard.d.ts +5 -0
- package/dist/silke/src/helpers/key-code.d.ts +9 -0
- package/dist/silke/src/hooks/drag-and-drop/index.d.ts +2 -0
- package/dist/silke/src/hooks/drag-and-drop/use-drag.d.ts +10 -0
- package/dist/silke/src/hooks/drag-and-drop/use-drop.d.ts +8 -0
- package/dist/silke/src/hooks/form/index.d.ts +1 -0
- package/dist/silke/src/hooks/form/use-form-field.d.ts +5 -0
- package/dist/silke/src/hooks/image-colors/use-image-colors.d.ts +10 -0
- package/dist/silke/src/hooks/index.d.ts +13 -0
- package/dist/silke/src/hooks/use-callback-ref.d.ts +2 -0
- package/dist/silke/src/hooks/use-dragging.d.ts +1 -0
- package/dist/silke/src/hooks/use-drop-zone.d.ts +2 -0
- package/dist/silke/src/hooks/use-html-element.d.ts +2 -0
- package/dist/silke/src/hooks/use-interval.d.ts +6 -0
- package/dist/silke/src/hooks/use-mouse.d.ts +40 -0
- package/dist/silke/src/hooks/use-parent-scroll.d.ts +2 -0
- package/dist/silke/src/hooks/use-scroll.d.ts +1 -0
- package/dist/silke/src/hooks/use-size.d.ts +4 -0
- package/dist/silke/src/hooks/use-uniq-id.d.ts +1 -0
- package/dist/silke/src/hooks/use-window-resize.d.ts +1 -0
- package/dist/silke/src/icons.d.ts +353 -0
- package/dist/silke/src/index.d.ts +5 -0
- package/dist/silke/src/main.d.ts +1 -0
- package/dist/silke/src/silke-theme-provider.d.ts +16 -0
- package/dist/silke-code-editor-HB2Z4Q5W.js +25 -0
- package/dist/silke-code-editor-HB2Z4Q5W.js.map +7 -0
- package/dist/styles.css +682 -675
- package/dist/utils/src/color/hex.d.ts +2 -0
- package/dist/utils/src/color/index.d.ts +1 -0
- package/dist/utils/src/constants.d.ts +2 -0
- package/dist/utils/src/css/computed-to-css.d.ts +8 -0
- package/dist/utils/src/css/computed.d.ts +5 -0
- package/dist/utils/src/css/index.d.ts +4 -0
- package/dist/utils/src/css/number-format.d.ts +1 -0
- package/dist/utils/src/css/utils.d.ts +14 -0
- package/dist/utils/src/events/condition-parser/evaluate-condition-expression.d.ts +2 -0
- package/dist/utils/src/events/condition-parser/index.d.ts +1 -0
- package/dist/utils/src/events/condition-parser/lexer.d.ts +36 -0
- package/dist/utils/src/events/condition-parser/parser.d.ts +11 -0
- package/dist/utils/src/index.d.ts +10 -0
- package/dist/utils/src/interactions/get-node-type.d.ts +2 -0
- package/dist/utils/src/interactions/has-link.d.ts +5 -0
- package/dist/utils/src/interactions/has-pointer-event.d.ts +5 -0
- package/dist/utils/src/interactions/index.d.ts +5 -0
- package/dist/utils/src/interactions/is-target-global.d.ts +2 -0
- package/dist/utils/src/interactions/is-trigger-global.d.ts +2 -0
- package/dist/utils/src/keyboard/hooks.d.ts +8 -0
- package/dist/utils/src/keyboard/index.d.ts +4 -0
- package/dist/utils/src/keyboard/key-list.d.ts +4 -0
- package/dist/utils/src/keyboard/keyboard.d.ts +70 -0
- package/dist/utils/src/keyboard/keys.d.ts +4 -0
- package/dist/utils/src/math/index.d.ts +9 -0
- package/dist/utils/src/mouse/index.d.ts +3 -0
- package/dist/utils/src/mouse/mouse-manager.d.ts +52 -0
- package/dist/utils/src/types/content.d.ts +11 -0
- package/dist/utils/src/types/context.d.ts +74 -0
- package/dist/utils/src/types/css.d.ts +131 -0
- package/dist/utils/src/types/editable-css.d.ts +7 -0
- package/dist/utils/src/types/emoji.d.ts +28 -0
- package/dist/utils/src/types/event.d.ts +7 -0
- package/dist/utils/src/types/icon.d.ts +10 -0
- package/dist/utils/src/types/index.d.ts +17 -0
- package/dist/utils/src/types/interaction.d.ts +77 -0
- package/dist/utils/src/types/link.d.ts +47 -0
- package/dist/utils/src/types/manifest.d.ts +54 -0
- package/dist/utils/src/types/project.d.ts +23 -0
- package/dist/utils/src/types/shape.d.ts +20 -0
- package/dist/utils/src/types/transition.d.ts +15 -0
- package/dist/utils/src/types/vev-plugin.d.ts +30 -0
- package/dist/utils/src/types/vev-props.d.ts +154 -0
- package/dist/utils/src/types/widget-manifest.d.ts +69 -0
- package/dist/utils/src/types/widget.d.ts +36 -0
- package/dist/utils/src/utils/generate-guid.d.ts +1 -0
- package/dist/utils/src/utils/index.d.ts +7 -0
- package/dist/utils/src/utils/internals/asciiToArray.d.ts +9 -0
- package/dist/utils/src/utils/internals/castSlice.d.ts +11 -0
- package/dist/utils/src/utils/internals/createCaseFirst.d.ts +9 -0
- package/dist/utils/src/utils/internals/getTag.d.ts +9 -0
- package/dist/utils/src/utils/internals/hasUnicode.d.ts +9 -0
- package/dist/utils/src/utils/internals/stringToArray.d.ts +9 -0
- package/dist/utils/src/utils/internals/unicodeToArray.d.ts +9 -0
- package/dist/utils/src/utils/internals/unicodeWords.d.ts +9 -0
- package/dist/utils/src/utils/internals/upperFirst.d.ts +18 -0
- package/dist/utils/src/utils/is-array.d.ts +25 -0
- package/dist/utils/src/utils/is-length.d.ts +26 -0
- package/dist/utils/src/utils/is-string.d.ts +17 -0
- package/dist/utils/src/utils/slice.d.ts +22 -0
- package/dist/utils/src/utils/start-case.d.ts +22 -0
- package/dist/utils/src/utils/string.d.ts +5 -0
- package/dist/utils/src/utils/words.d.ts +18 -0
- package/package.json +10 -10
- package/src/components/index.ts +1 -0
- package/src/components/silke-autocomplete-field/autocomplete-tags.tsx +3 -3
- package/src/components/silke-autocomplete-field/index.ts +4 -0
- package/src/components/silke-autocomplete-field/silke-autocomplete-field.tsx +5 -2
- package/src/components/silke-box/silke-box.mdx +2 -1
- package/src/components/silke-breadcrumbs/silke-breadcrumb.mdx +5 -1
- package/src/components/silke-card/silke-card-grid.tsx +18 -15
- package/src/components/silke-card/silke-card.mdx +56 -23
- package/src/components/silke-card/silke-card.scss +150 -115
- package/src/components/silke-card/silke-card.tsx +173 -112
- package/src/components/silke-checkbox/silke-checkbox.mdx +11 -2
- package/src/components/silke-color-palettes/silke-color-palette.mdx +2 -2
- package/src/components/silke-color-picker/color-picker.scss +29 -24
- package/src/components/silke-color-picker/color.ts +12 -0
- package/src/components/silke-color-picker/hue.ts +72 -0
- package/src/components/silke-color-picker/index.ts +2 -0
- package/src/components/silke-color-picker/silke-color-picker.mdx +37 -9
- package/src/components/silke-color-picker/silke-color-picker.tsx +9 -18
- package/src/components/silke-color-picker/silke-color-space.tsx +0 -2
- package/src/components/silke-color-picker/silke-hue-slider.tsx +23 -8
- package/src/components/silke-color-picker/silke-opacity-slider.tsx +10 -12
- package/src/components/silke-content-column/silke-content-column.scss +2 -37
- package/src/components/silke-context-menu/silke-context-menu-item.tsx +5 -1
- package/src/components/silke-context-menu/silke-context-menu.scss +5 -1
- package/src/components/silke-context-menu/silke-context-menu.tsx +5 -3
- package/src/components/silke-drawer/silke-drawer.mdx +13 -13
- package/src/components/silke-form/form-context.tsx +5 -5
- package/src/components/silke-form/form-types.ts +1 -0
- package/src/components/silke-form/silke-form.mdx +15 -3
- package/src/components/silke-form/silke-form.tsx +1 -1
- package/src/components/silke-form-schema/fields/array-field.tsx +3 -3
- package/src/components/silke-form-schema/fields/event-field.tsx +1 -1
- package/src/components/silke-form-schema/fields/number-field.tsx +40 -27
- package/src/components/silke-form-schema/fields/select-field.tsx +3 -8
- package/src/components/silke-form-schema/fields/string-field.tsx +29 -15
- package/src/components/silke-form-schema/fields/styles.scss +3 -1
- package/src/components/silke-form-schema/fields/toggle-field.tsx +2 -3
- package/src/components/silke-form-schema/fields/upload-field.tsx +2 -4
- package/src/components/silke-form-schema/fields/utils/generate-title.ts +11 -4
- package/src/components/silke-form-schema/silke-form-schema.tsx +7 -2
- package/src/components/silke-form-schema/silke-schema-context.tsx +5 -2
- package/src/components/silke-form-schema/silke-schema-field.tsx +41 -44
- package/src/components/silke-form-schema/silke-schema-fields.tsx +40 -15
- package/src/components/silke-gradient-picker/index.ts +1 -0
- package/src/components/silke-gradient-picker/silke-gradient-picker.mdx +13 -0
- package/src/components/silke-gradient-picker/silke-gradient-picker.module.scss +71 -0
- package/src/components/silke-gradient-picker/silke-gradient-picker.tsx +71 -0
- package/src/components/silke-gradient-picker/silke-gradient-position.tsx +160 -0
- package/src/components/silke-gradient-picker/silke-gradient-slider.tsx +57 -0
- package/src/components/silke-gradient-picker/silke-gradient-utils.ts +132 -0
- package/src/components/silke-icon/silke-icon.tsx +3 -1
- package/src/components/silke-image/index.ts +1 -0
- package/src/components/silke-image/silke-image-color-backdrop.scss +10 -0
- package/src/components/silke-image/silke-image-color-backdrop.tsx +32 -0
- package/src/components/silke-image/silke-image.tsx +6 -2
- package/src/components/silke-loader/silke-loader.mdx +3 -4
- package/src/components/silke-modal/silke-confirmation-modal.tsx +33 -11
- package/src/components/silke-modal/silke-modal.mdx +24 -0
- package/src/components/silke-navigation-link/silke-navigation-link.mdx +6 -1
- package/src/components/silke-navigation-link/silke-navigation-link.tsx +83 -76
- package/src/components/silke-object-field/silke-object-field.mdx +10 -3
- package/src/components/silke-object-field/silke-object-field.tsx +1 -1
- package/src/components/silke-overflow-menu/silke-overflow-menu.tsx +1 -0
- package/src/components/silke-progress-indicator/silke-progress-indicator.mdx +9 -3
- package/src/components/silke-radio-button/silke-radio-button-group.tsx +6 -23
- package/src/components/silke-radio-button/silke-radio-button.mdx +7 -1
- package/src/components/silke-search-field/silke-search-field.mdx +12 -4
- package/src/components/silke-slider/index.ts +0 -1
- package/src/components/silke-slider/silke-slider-point.tsx +43 -0
- package/src/components/silke-slider/silke-slider-utils.ts +32 -0
- package/src/components/silke-slider/silke-slider.mdx +45 -0
- package/src/components/silke-slider/silke-slider.module.scss +71 -0
- package/src/components/silke-slider/silke-slider.tsx +160 -66
- package/src/components/silke-slider/slider-track.tsx +26 -0
- package/src/components/silke-sortable-list/silke-sortable-item-wrapper.tsx +3 -0
- package/src/components/silke-sortable-list/silke-sortable-list.scss +8 -8
- package/src/components/silke-sortable-list/silke-sortable-list.tsx +24 -7
- package/src/components/silke-table/silke-table.tsx +5 -5
- package/src/components/silke-tabs/silke-tabs.mdx +2 -2
- package/src/components/silke-tag/silke-tag.mdx +51 -13
- package/src/components/silke-tag/silke-tag.scss +111 -80
- package/src/components/silke-tag/silke-tag.tsx +52 -24
- package/src/components/silke-text/silke-text-types.ts +5 -6
- package/src/components/silke-text/silke-text.mdx +45 -11
- package/src/components/silke-text/silke-text.scss +40 -19
- package/src/components/silke-text/silke-text.tsx +10 -16
- package/src/components/silke-text/silke-title.scss +36 -57
- package/src/components/silke-text/silke-title.tsx +27 -17
- package/src/components/silke-text-field/silke-text-field.scss +0 -1
- package/src/components/silke-text-field/silke-text-field.tsx +6 -3
- package/src/components/silke-tile/silke-tile.mdx +39 -8
- package/src/components/silke-toggle/silke-toggle.mdx +29 -5
- package/src/components/silke-toolbar/silke-toolbar.mdx +35 -15
- package/src/components/silke-tooltip/silke-tooltip.tsx +3 -0
- package/src/components/silke-upload-field/silke-upload-field.tsx +16 -9
- package/src/docs/data/flux/action-decorator.ts +4 -4
- package/src/docs/data/flux/store.ts +4 -2
- package/src/docs/parser.ts +1 -1
- package/src/hooks/drag-and-drop/use-drag.tsx +5 -3
- package/src/hooks/form/use-form-field.ts +4 -0
- package/src/hooks/hooks.mdx +3 -3
- package/src/hooks/image-colors/use-image-colors.ts +83 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-dragging.ts +24 -0
- package/src/icons.tsx +5 -16
- package/src/styles/core.scss +0 -48
- package/tsconfig.json +1 -0
- package/dist/silke-code-editor-3Y2KM5KB.js +0 -25
- package/dist/silke-code-editor-3Y2KM5KB.js.map +0 -7
- package/src/components/silke-slider/range-slider.scss +0 -52
- package/src/components/silke-slider/silke-range-slider.tsx +0 -108
- package/src/components/silke-text/silke-text-utils.ts +0 -8
- /package/dist/{chunk-SOFGXMET.js.LEGAL.txt → chunk-FIPWO3IB.js.LEGAL.txt} +0 -0
- /package/dist/{silke-code-editor-3Y2KM5KB.js.LEGAL.txt → silke-code-editor-HB2Z4Q5W.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SilkeGradient } from './silke-gradient-utils';
|
|
3
|
+
type SilkeGradientPositionProps = {
|
|
4
|
+
gradient: SilkeGradient;
|
|
5
|
+
onChange: (gradient: SilkeGradient) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function SilkeGradientPosition({ gradient, onChange }: SilkeGradientPositionProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SilkeGradient } from './silke-gradient-utils';
|
|
3
|
+
type SilkeGradientSliderProps = {
|
|
4
|
+
value: SilkeGradient;
|
|
5
|
+
selected?: number;
|
|
6
|
+
onChange: (gradient: SilkeGradient) => void;
|
|
7
|
+
onSelected?: (index: number) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function SilkeGradientSlider({ value, selected, onChange, onSelected, }: SilkeGradientSliderProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type SilkeGradient = {
|
|
2
|
+
type: 'linear' | 'radial';
|
|
3
|
+
pos?: string;
|
|
4
|
+
stops: SilkeGradientStop[];
|
|
5
|
+
};
|
|
6
|
+
type SilkeGradientStop = {
|
|
7
|
+
color: string;
|
|
8
|
+
position: number;
|
|
9
|
+
};
|
|
10
|
+
export declare function getGradientModelFromCSS(cssGradient: string): SilkeGradient;
|
|
11
|
+
export declare function getCSSFromGradientModel({ stops, pos, type }: SilkeGradient): string;
|
|
12
|
+
export declare function useGradientModel(cssGradient: string): [value: SilkeGradient, setValue: (value: SilkeGradient) => string];
|
|
13
|
+
export declare function interceptColor(position: number, stops: SilkeGradientStop[]): string;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IEmojiIcon } from '@vev/utils';
|
|
2
|
+
import React, { HTMLAttributes } from 'react';
|
|
3
|
+
import { SilkeIconDefinitions } from '../../icons';
|
|
4
|
+
import { SilkeColor } from '../../silke-theme-provider';
|
|
5
|
+
export type SilkeIcons = keyof typeof SilkeIconDefinitions | null | IEmojiIcon;
|
|
6
|
+
interface SilkeIconProps extends HTMLAttributes<HTMLElement> {
|
|
7
|
+
icon: SilkeIcons | React.ReactElement;
|
|
8
|
+
color?: SilkeColor | string;
|
|
9
|
+
}
|
|
10
|
+
export declare function SilkeIcon({ icon, className, color, ...rest }: SilkeIconProps): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IShapePath, IWidgetIcon } from '@vev/utils';
|
|
3
|
+
interface ShapePreviewProps {
|
|
4
|
+
shape: IWidgetIcon | IShapePath;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function SilkeShape({ shape, className }: ShapePreviewProps): React.JSX.Element | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '../silke-box';
|
|
3
|
+
import { PopoverOrigin } from '../silke-popover';
|
|
4
|
+
type SilkeStackedIconProps = {
|
|
5
|
+
iconOrigin?: PopoverOrigin;
|
|
6
|
+
} & BoxProps;
|
|
7
|
+
export declare function SilkeStackedIcon({ children, iconOrigin, ...rest }: SilkeStackedIconProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-icon-picker';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IEmojiIcon } from '@vev/utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { SilkeButtonProps } from '../silke-button';
|
|
4
|
+
import { FormFieldProps } from '../silke-form';
|
|
5
|
+
import { SilkeIcons } from '../silke-icon/silke-icon';
|
|
6
|
+
type SilkeIconPickerProps = {
|
|
7
|
+
fallback?: SilkeIcons;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
type?: 'emojis' | 'icon' | 'upload';
|
|
10
|
+
} & FormFieldProps<IEmojiIcon> & Omit<SilkeButtonProps, 'icon' | 'type' | 'onChange'>;
|
|
11
|
+
export declare function SilkeIconPicker(props: SilkeIconPickerProps): React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type SilkeIframeContextModel = {
|
|
3
|
+
doc?: Document;
|
|
4
|
+
win?: Window;
|
|
5
|
+
};
|
|
6
|
+
export declare const SilkeIframeContext: import("react").Context<SilkeIframeContextModel>;
|
|
7
|
+
export declare const useSilkeIframeContext: () => SilkeIframeContextModel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
type SilkeIframePortalProps = Omit<HTMLAttributes<HTMLIFrameElement>, 'sandbox'> & {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/** Override default srcDoc */
|
|
5
|
+
srcDoc?: string;
|
|
6
|
+
autoResize?: boolean;
|
|
7
|
+
bodyStyle?: React.CSSProperties;
|
|
8
|
+
};
|
|
9
|
+
export declare function SilkeIframePortal({ bodyStyle, children, style, srcDoc, autoResize, onLoad, ...rest }: SilkeIframePortalProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxDivProps } from '../silke-box';
|
|
3
|
+
type SilkeImageColorBackdropProps = {
|
|
4
|
+
src: string;
|
|
5
|
+
} & BoxDivProps;
|
|
6
|
+
export declare function SilkeImageColorBackdrop({ src, children, className, ...rest }: SilkeImageColorBackdropProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IEmojiIcon } from '@vev/utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BoxProps, BoxSize } from '../silke-box';
|
|
4
|
+
import { SilkeIcons } from '../silke-icon';
|
|
5
|
+
export type SilkeImageProps = {
|
|
6
|
+
src?: string;
|
|
7
|
+
icon?: IEmojiIcon | SilkeIcons;
|
|
8
|
+
alt?: string;
|
|
9
|
+
avatar?: BoxSize | true;
|
|
10
|
+
} & BoxProps;
|
|
11
|
+
export declare function SilkeImage({ src, alt, avatar, icon, draggable, ...rest }: SilkeImageProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-link';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
import './silke-link.scss';
|
|
3
|
+
import { LinkProps } from 'react-router-dom';
|
|
4
|
+
import { SilkeIcons } from '../silke-icon';
|
|
5
|
+
interface LinkChildProps {
|
|
6
|
+
external?: boolean;
|
|
7
|
+
icon?: SilkeIcons;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
interface SilkeLinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'>, LinkChildProps {
|
|
11
|
+
standalone?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const SilkeLink: React.FunctionComponent<SilkeLinkProps>;
|
|
14
|
+
interface SilkeRouterLinkProps extends Omit<LinkProps, 'children'>, LinkChildProps {
|
|
15
|
+
standalone?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const SilkeRouterLink: React.FunctionComponent<SilkeRouterLinkProps>;
|
|
18
|
+
export interface SilkeButtonLinkProps extends HTMLAttributes<HTMLButtonElement> {
|
|
19
|
+
standalone?: boolean;
|
|
20
|
+
icon?: SilkeIcons;
|
|
21
|
+
}
|
|
22
|
+
export declare const SilkeButtonLink: (props: SilkeButtonLinkProps) => React.JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SilkeButtonProps } from '../silke-button';
|
|
3
|
+
export type SilkeListItemProps = {
|
|
4
|
+
focus?: boolean;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
} & Omit<SilkeButtonProps, 'kind' | 'size'>;
|
|
7
|
+
export declare function SilkeListItem({ label, ...rest }: SilkeListItemProps): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SilkeListProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/** Show as a select list */
|
|
5
|
+
select?: boolean;
|
|
6
|
+
multiselect?: boolean;
|
|
7
|
+
onChange?: (values: any[]) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function SilkeList({ children }: SilkeListProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-list-card';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SilkeTagProps } from '../silke-tag';
|
|
3
|
+
import { SilkeOverflowMenuItem } from '../silke-overflow-menu';
|
|
4
|
+
export type SilkeListItemsProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
image?: string;
|
|
8
|
+
tag?: Omit<SilkeTagProps, 'size'>;
|
|
9
|
+
menu?: MenuItems;
|
|
10
|
+
state?: 'hover' | 'focus' | 'disabled' | 'selected' | '';
|
|
11
|
+
};
|
|
12
|
+
type MenuItems = (SilkeOverflowMenuItem | React.ReactElement | 'divider')[] | (() => (SilkeOverflowMenuItem | React.ReactElement | 'divider')[]);
|
|
13
|
+
export declare function SilkeListCard({ title, subtitle, image, tag, menu, state, }: SilkeListItemsProps): React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SilkeColor } from '../../silke-theme-provider';
|
|
3
|
+
import { BoxDivProps } from '../silke-box';
|
|
4
|
+
import './silke-loader.scss';
|
|
5
|
+
interface SilkeLoaderProps extends BoxDivProps {
|
|
6
|
+
loading: boolean;
|
|
7
|
+
message?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
randomGenerator?: () => string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
bg?: SilkeColor;
|
|
12
|
+
/**
|
|
13
|
+
* Stops the loader animation on the vev logo
|
|
14
|
+
*/
|
|
15
|
+
stop?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function SilkeLoaderOverlay({ message, loading, size, stop, style, children, bg, randomGenerator, ...rest }: SilkeLoaderProps): React.JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxDivProps } from '../silke-box';
|
|
3
|
+
import './silke-loader.scss';
|
|
4
|
+
interface SilkeLoaderProps extends BoxDivProps {
|
|
5
|
+
message?: string;
|
|
6
|
+
randomGenerator?: () => string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
/**
|
|
9
|
+
* Stops the loader animation on the vev logo
|
|
10
|
+
*/
|
|
11
|
+
stop?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function SilkeLoader({ message, randomGenerator, size, stop, style, ...rest }: SilkeLoaderProps): React.JSX.Element;
|
|
14
|
+
export declare function LoaderSVG({ stop, style }: {
|
|
15
|
+
stop?: boolean;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SilkeButtonKind } from '../silke-button';
|
|
3
|
+
import { SilkeIcons } from '../silke-icon';
|
|
4
|
+
import { SilkeModalProps } from './silke-modal';
|
|
5
|
+
export type SilkeConfirmationModalProps = {
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Label on confirm button
|
|
9
|
+
*/
|
|
10
|
+
confirmLabel: string;
|
|
11
|
+
/**
|
|
12
|
+
* Confirmation button kind
|
|
13
|
+
* @default primary
|
|
14
|
+
*/
|
|
15
|
+
confirmKind?: SilkeButtonKind;
|
|
16
|
+
confirmIcon?: SilkeIcons;
|
|
17
|
+
/**
|
|
18
|
+
* Label on reject button
|
|
19
|
+
* @default Cancel
|
|
20
|
+
*/
|
|
21
|
+
rejectLabel?: string;
|
|
22
|
+
onConfirm: () => void;
|
|
23
|
+
isSubmitting?: boolean;
|
|
24
|
+
/** On click of cancel button, will fallback to onClose if not defined */
|
|
25
|
+
onCancel?: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* If set, the Confirm button will be disabled until the safeWord is entered
|
|
28
|
+
*/
|
|
29
|
+
safeWord?: string;
|
|
30
|
+
} & SilkeModalProps;
|
|
31
|
+
export declare function SilkeConfirmationModal({ children, confirmIcon, confirmKind, confirmLabel, isSubmitting, onCancel, onConfirm, rejectLabel, safeWord, ...rest }: SilkeConfirmationModalProps): React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
import { BoxSpace } from '../silke-box';
|
|
3
|
+
import { SilkeButtonSetProps } from '../silke-button';
|
|
4
|
+
export type SilkeModalProps = {
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
hide?: boolean;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
pad?: BoxSpace;
|
|
10
|
+
rounded?: boolean | 'tiny' | 'small' | 'medium' | 'full';
|
|
11
|
+
onBack?: () => void;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
contextId?: string;
|
|
14
|
+
logo?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare function SilkeModal({ title, children, style, pad, rounded, onBack, onClose, contextId, logo, ...rest }: SilkeModalProps): React.JSX.Element;
|
|
17
|
+
export declare function SilkeModalContent({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
18
|
+
export declare function SilkeModalActions({ children, ...rest }: Omit<SilkeButtonSetProps, 'size'>): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-navigation-link';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IEmojiIcon } from '@vev/utils';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
|
+
import { SilkeColor } from '../../';
|
|
4
|
+
import { BoxButtonProps, BoxLinkProps } from '../silke-box';
|
|
5
|
+
import { SilkeIcons } from '../silke-icon';
|
|
6
|
+
type SilkeNavigationLinkProps = {
|
|
7
|
+
active?: boolean;
|
|
8
|
+
icon?: IEmojiIcon | SilkeIcons | React.ReactElement;
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
linkClassName?: string;
|
|
11
|
+
color?: SilkeColor;
|
|
12
|
+
/**
|
|
13
|
+
* Buttons/icons shown only on hover
|
|
14
|
+
*/
|
|
15
|
+
rightButtons?: ReactNode;
|
|
16
|
+
} & (({
|
|
17
|
+
link: string;
|
|
18
|
+
} & Omit<BoxLinkProps, 'to' | 'tag' | 'link'>) | ({
|
|
19
|
+
link?: undefined;
|
|
20
|
+
} & Omit<BoxButtonProps, 'tag' | 'type'>));
|
|
21
|
+
export declare const SilkeNavigationLink: React.ForwardRefExoticComponent<SilkeNavigationLinkProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-notification';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxDivProps } from '../silke-box';
|
|
3
|
+
import { SilkeIcons } from '../silke-icon';
|
|
4
|
+
export type NotificationKind = 'warning' | 'error' | 'success' | 'information' | 'confetti';
|
|
5
|
+
export type SilkeNotificationProps = {
|
|
6
|
+
kind: NotificationKind;
|
|
7
|
+
title?: string | React.ReactNode;
|
|
8
|
+
subtitle?: string | React.ReactNode;
|
|
9
|
+
icon?: SilkeIcons;
|
|
10
|
+
/**
|
|
11
|
+
* Will add a remove button to notification
|
|
12
|
+
*/
|
|
13
|
+
onRemove?: (e: React.MouseEvent) => void;
|
|
14
|
+
/**
|
|
15
|
+
* On click of action button
|
|
16
|
+
* */
|
|
17
|
+
onAction?: () => void;
|
|
18
|
+
actionLabel?: string;
|
|
19
|
+
fluid?: boolean;
|
|
20
|
+
dark?: boolean;
|
|
21
|
+
} & Omit<BoxDivProps, 'height' | 'width' | 'tag'>;
|
|
22
|
+
export declare function SilkeNotification({ title, subtitle, className, kind, onAction, actionLabel, onRemove, fluid, dark, ...rest }: SilkeNotificationProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-object-field';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FormFieldProps } from '../silke-form';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type ErrorMap<T extends {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}> = {
|
|
6
|
+
[key in keyof T]?: string;
|
|
7
|
+
};
|
|
8
|
+
export interface SilkeObjectFieldProps<T extends {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}> extends FormFieldProps<T> {
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
showAllErrors?: boolean;
|
|
13
|
+
errors?: ErrorMap<T>;
|
|
14
|
+
onErrors?: (errors: ErrorMap<T>) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function hasErrors(errors: ErrorMap<any>): boolean;
|
|
17
|
+
export declare function SilkeObjectField<T extends Record<string, any>>(props: SilkeObjectFieldProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-overflow-menu';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SilkeButtonProps } from '../silke-button';
|
|
3
|
+
import { SilkePopoverProps } from '../silke-popover';
|
|
4
|
+
export type SilkeOverflowMenuProps = {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* What triggers the opening of the overflow menu
|
|
9
|
+
* @default "click"
|
|
10
|
+
*/
|
|
11
|
+
trigger?: 'click' | 'right-click';
|
|
12
|
+
onToggleOpen?: (open: boolean) => void;
|
|
13
|
+
/** Pass items or children */
|
|
14
|
+
items?: (SilkeOverflowMenuItem | React.ReactElement | 'divider')[] | (() => (SilkeOverflowMenuItem | React.ReactElement | 'divider')[]);
|
|
15
|
+
} & SilkeButtonProps & Omit<SilkePopoverProps, 'anchor' | 'hide' | 'children' | 'kind'>;
|
|
16
|
+
export declare function SilkeOverflowMenu({ children, label, open: externalOpen, icon, items, offsetX, offsetY, trigger, targetOrigin, anchorOrigin, onClick, onMouseDown, onToggleOpen, ...rest }: SilkeOverflowMenuProps): React.JSX.Element;
|
|
17
|
+
export type SilkeOverflowMenuItem = {
|
|
18
|
+
label: React.ReactNode;
|
|
19
|
+
kind?: 'default' | 'danger' | 'selected';
|
|
20
|
+
} & Omit<SilkeButtonProps, 'height' | 'width' | 'align' | 'vAlign' | 'hAlign' | 'kind'>;
|
|
21
|
+
export declare const SilkeOverflowMenuItem: ({ label, kind, ...rest }: SilkeOverflowMenuItem) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-popover';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type PopoverContextProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
};
|
|
5
|
+
export declare function usePopoverRequestClose(popoverContextId: string): () => void;
|
|
6
|
+
export declare function usePopoverContext(id?: string, hide?: boolean, onRequestClose?: () => void): void;
|
|
7
|
+
export default function SilkePopoverProvider({ children }: PopoverContextProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MouseStateEvent } from '../../hooks';
|
|
3
|
+
export type PopoverOrigin = 'top-left' | 'top-center' | 'top-right' | 'center-right' | 'bottom-right' | 'bottom-center' | 'bottom-left' | 'center-left' | 'center-center';
|
|
4
|
+
export type PopoverAnchor = React.RefObject<HTMLElement> | [x: number, y: number];
|
|
5
|
+
export declare const SilkePopoverContext: ({ target, children, }: {
|
|
6
|
+
target: React.RefObject<HTMLElement>;
|
|
7
|
+
children: React.ReactElement;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export interface SilkePopoverProps {
|
|
10
|
+
/** Element or position to anchor the popover to, if not defined the center of screen is used */
|
|
11
|
+
anchor?: PopoverAnchor;
|
|
12
|
+
/** Children to add inside the popover */
|
|
13
|
+
children?: React.ReactElement | React.ReactElement[];
|
|
14
|
+
/**
|
|
15
|
+
* If popover belongs to a group of popovers,
|
|
16
|
+
* using contextId will close all other with same id when hide = false on this
|
|
17
|
+
* @example overflow menu - only one overflow menu should be one at any time
|
|
18
|
+
* */
|
|
19
|
+
contextId?: string;
|
|
20
|
+
/** SHould the popover be hidden */
|
|
21
|
+
hide?: boolean;
|
|
22
|
+
/** What point of the target should be used for centering default center-center */
|
|
23
|
+
targetOrigin?: PopoverOrigin;
|
|
24
|
+
/** What point of the anchor should be used for centering default center-center */
|
|
25
|
+
anchorOrigin?: PopoverOrigin;
|
|
26
|
+
/** Offset the popover position */
|
|
27
|
+
offsetX?: number;
|
|
28
|
+
/** Offset the popover position */
|
|
29
|
+
offsetY?: number;
|
|
30
|
+
/** If transforming popover children, don't want popover container to be clickable */
|
|
31
|
+
pointerEventsNone?: boolean;
|
|
32
|
+
/** Z-index of popover */
|
|
33
|
+
zIndex?: number;
|
|
34
|
+
/** Set the target width to the same width of anchor */
|
|
35
|
+
matchAnchorWidth?: boolean;
|
|
36
|
+
/** Set the target height to the same height of anchor */
|
|
37
|
+
matchAnchorHeight?: boolean;
|
|
38
|
+
/** Disabled request close on click outside */
|
|
39
|
+
disabledClickOutside?: boolean;
|
|
40
|
+
translateAnimation?: boolean;
|
|
41
|
+
shadow?: 'level1' | 'level2' | 'level3' | 'level4';
|
|
42
|
+
/** Triggered when it's desired that the popover is hidden */
|
|
43
|
+
onRequestClose?: (event?: MouseStateEvent) => void;
|
|
44
|
+
onKeyUp?: () => void;
|
|
45
|
+
}
|
|
46
|
+
export declare function SilkePopover({ anchor, children, contextId, hide, targetOrigin, anchorOrigin, offsetX, offsetY, pointerEventsNone, matchAnchorWidth, matchAnchorHeight, disabledClickOutside, zIndex, shadow, translateAnimation, onRequestClose, }: SilkePopoverProps): React.ReactPortal;
|
|
47
|
+
export declare function isRefObject(value?: PopoverAnchor): value is React.RefObject<HTMLElement>;
|
|
48
|
+
export declare function applyPopoverStyles(target: HTMLElement, anchor?: PopoverAnchor, anchorOrigin?: PopoverOrigin, targetOrigin?: PopoverOrigin, offsetX?: number, offsetY?: number, zIndex?: number, matchAnchorWidth?: boolean, matchAnchorHeight?: boolean, pointerEventsNone?: boolean | undefined, translateAnimation?: boolean): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BoxProps } from '../silke-box';
|
|
3
|
+
type ProgressStepProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
complete?: boolean;
|
|
6
|
+
current?: boolean;
|
|
7
|
+
error?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
} & BoxProps;
|
|
10
|
+
export declare function ProgressStep({ label, complete, current, error, disabled, ...rest }: ProgressStepProps): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type TextSize = 'micro' | 'small' | 'base' | 'large';
|
|
3
|
+
type SilkeRadioButtonGroupProps = {
|
|
4
|
+
name: string;
|
|
5
|
+
label?: React.ReactNode;
|
|
6
|
+
items: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: any;
|
|
9
|
+
}[];
|
|
10
|
+
required?: boolean;
|
|
11
|
+
help?: React.ReactNode;
|
|
12
|
+
size?: TextSize;
|
|
13
|
+
};
|
|
14
|
+
export declare function SilkeRadioButtonGroup({ label, name, items, required, help, size, }: SilkeRadioButtonGroupProps): React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormFieldProps } from '../silke-form';
|
|
2
|
+
import React, { HTMLAttributes } from 'react';
|
|
3
|
+
type SilkeRadioButtonProps = FormFieldProps<any> & Omit<HTMLAttributes<HTMLInputElement>, 'onChange' | 'checkbox' | 'value' | 'style'> & {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
size?: 'micro' | 'small' | 'base' | 'large';
|
|
8
|
+
};
|
|
9
|
+
export declare function SilkeRadioButton(props: SilkeRadioButtonProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-search-field';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SingleLineProps } from '../silke-text-field';
|
|
3
|
+
type SilkeSearchFieldProps = {
|
|
4
|
+
search?: string;
|
|
5
|
+
onClearButton?: () => void;
|
|
6
|
+
} & Omit<SingleLineProps, 'value' | 'label'>;
|
|
7
|
+
export declare function SilkeSearchField({ search, onClearButton, ...rest }: SilkeSearchFieldProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-select-field';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SilkeAutocompleteFieldProps } from '../silke-autocomplete-field';
|
|
3
|
+
import { Entry } from '../silke-autocomplete-field/autocomplete-types';
|
|
4
|
+
export type SilkeSelectFieldProps<T, U extends Entry<T> = any> = Omit<SilkeAutocompleteFieldProps<T, U>, 'disableSearch' | 'noReset'>;
|
|
5
|
+
export declare function SilkeSelectField<T, U extends Entry<T>>(props: SilkeSelectFieldProps<T, U>): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-skeleton';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SilkeSkeletonProps {
|
|
3
|
+
kind?: 'multiline' | 'header' | 'header-text';
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
export declare const SilkeSkeleton: ({ kind, className, style, ...rest }: SilkeSkeletonProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-slider';
|