@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,54 @@
|
|
|
1
|
+
export * from '../hooks';
|
|
2
|
+
export * from './silke-box';
|
|
3
|
+
export * from './silke-breadcrumbs';
|
|
4
|
+
export * from './silke-button';
|
|
5
|
+
export * from './silke-card';
|
|
6
|
+
export * from './silke-code-editor';
|
|
7
|
+
export * from './silke-code-snippet';
|
|
8
|
+
export * from './silke-color-palettes';
|
|
9
|
+
export * from './silke-color-swatches';
|
|
10
|
+
export * from './silke-content-column';
|
|
11
|
+
export * from './silke-context-menu';
|
|
12
|
+
export * from './silke-divider';
|
|
13
|
+
export * from './silke-drawer';
|
|
14
|
+
export * from './silke-form-schema';
|
|
15
|
+
export * from './silke-icon';
|
|
16
|
+
export * from './silke-iframe-portal';
|
|
17
|
+
export * from './silke-image';
|
|
18
|
+
export * from './silke-link';
|
|
19
|
+
export * from './silke-list';
|
|
20
|
+
export * from './silke-list-card';
|
|
21
|
+
export * from './silke-loader';
|
|
22
|
+
export * from './silke-modal';
|
|
23
|
+
export * from './silke-navigation-link';
|
|
24
|
+
export * from './silke-notification';
|
|
25
|
+
export * from './silke-overflow-menu';
|
|
26
|
+
export * from './silke-popover';
|
|
27
|
+
export * from './silke-progress-indicator';
|
|
28
|
+
export * from './silke-search-field';
|
|
29
|
+
export * from './silke-skeleton';
|
|
30
|
+
export * from './silke-slider';
|
|
31
|
+
export * from './silke-sortable-list';
|
|
32
|
+
export * from './silke-table';
|
|
33
|
+
export * from './silke-tabs';
|
|
34
|
+
export * from './silke-tag';
|
|
35
|
+
export * from './silke-text';
|
|
36
|
+
export * from './silke-theme-editor';
|
|
37
|
+
export * from './silke-tile';
|
|
38
|
+
export * from './silke-toolbar';
|
|
39
|
+
export * from './silke-tooltip';
|
|
40
|
+
export * from './silke-autocomplete-field';
|
|
41
|
+
export * from './silke-checkbox';
|
|
42
|
+
export * from './silke-color-picker';
|
|
43
|
+
export * from './silke-css-number-field';
|
|
44
|
+
export * from './silke-form';
|
|
45
|
+
export * from './silke-gradient-picker';
|
|
46
|
+
export * from './silke-icon-picker';
|
|
47
|
+
export * from './silke-object-field';
|
|
48
|
+
export * from './silke-radio-button';
|
|
49
|
+
export * from './silke-select-field';
|
|
50
|
+
export * from './silke-steps';
|
|
51
|
+
export * from './silke-text-field';
|
|
52
|
+
export * from './silke-toggle';
|
|
53
|
+
export * from './silke-upload-field';
|
|
54
|
+
export * from './silke-virtual';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxSize } from '../silke-box';
|
|
3
|
+
import { Entry } from './autocomplete-types';
|
|
4
|
+
export interface AutocompleteRenderItemProps<U> {
|
|
5
|
+
item: U;
|
|
6
|
+
highlight?: boolean;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface AutocompleteItemProps<T, U extends Entry<T>> {
|
|
11
|
+
item: U;
|
|
12
|
+
highlight?: boolean;
|
|
13
|
+
selected?: boolean;
|
|
14
|
+
multiple?: boolean;
|
|
15
|
+
size?: BoxSize;
|
|
16
|
+
onMouseDown: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
17
|
+
ItemRender?: React.FC<AutocompleteRenderItemProps<U>>;
|
|
18
|
+
}
|
|
19
|
+
export default function AutocompleteItem<T, U extends Entry<T>>({ item, selected, multiple, highlight, size, onMouseDown, ItemRender, }: AutocompleteItemProps<T, U>): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Data } from './autocomplete-types';
|
|
3
|
+
export interface AutocompleteTagsProps<T> {
|
|
4
|
+
showMaxTags?: number;
|
|
5
|
+
items: Data<T>[];
|
|
6
|
+
onRemove: (value: T) => void;
|
|
7
|
+
onRemoveAll: () => void;
|
|
8
|
+
}
|
|
9
|
+
export default function AutocompleteTags<T>({ showMaxTags, items, onRemove, onRemoveAll, }: AutocompleteTagsProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { IEmojiIcon } from '@vev/utils';
|
|
2
|
+
import { FormFieldProps } from '../silke-form';
|
|
3
|
+
import { SilkeIcons } from '../silke-icon';
|
|
4
|
+
/**
|
|
5
|
+
* Defines data for the Autocomplete
|
|
6
|
+
*/
|
|
7
|
+
export interface Data<T> {
|
|
8
|
+
/**
|
|
9
|
+
* Item will be in the list, but not selectable
|
|
10
|
+
*/
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
divider?: false | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Shouldn't be shown, but can contain searchable text. Include things like tags/meta data.
|
|
15
|
+
*/
|
|
16
|
+
extra?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Image URL
|
|
19
|
+
*/
|
|
20
|
+
image?: string;
|
|
21
|
+
icon?: IEmojiIcon | SilkeIcons;
|
|
22
|
+
label: string;
|
|
23
|
+
/**
|
|
24
|
+
* Description
|
|
25
|
+
*/
|
|
26
|
+
subLabel?: string;
|
|
27
|
+
value: T;
|
|
28
|
+
}
|
|
29
|
+
export interface Divider {
|
|
30
|
+
image?: string;
|
|
31
|
+
icon?: IEmojiIcon | SilkeIcons;
|
|
32
|
+
label?: string;
|
|
33
|
+
subLabel?: string;
|
|
34
|
+
divider: true;
|
|
35
|
+
value?: undefined;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export type Entry<T> = Divider | Data<T>;
|
|
39
|
+
/**
|
|
40
|
+
* Type for multicomplete
|
|
41
|
+
*/
|
|
42
|
+
export interface MultiProps<T> extends FormFieldProps<T[]> {
|
|
43
|
+
maxItems?: number;
|
|
44
|
+
minItems?: number;
|
|
45
|
+
multiple: true;
|
|
46
|
+
/** Number of items to show before collapsing into single tag */
|
|
47
|
+
showMaxTags?: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Type for normal autocomplete
|
|
51
|
+
*/
|
|
52
|
+
export interface SingleProps<T> extends FormFieldProps<T> {
|
|
53
|
+
multiple?: false;
|
|
54
|
+
showMaxTags?: undefined;
|
|
55
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PopoverOrigin } from '../silke-popover';
|
|
3
|
+
import { SilkeTextFieldProps } from '../silke-text-field';
|
|
4
|
+
import { AutocompleteRenderItemProps } from './autocomplete-item';
|
|
5
|
+
import { AutocompleteTagsProps } from './autocomplete-tags';
|
|
6
|
+
import { Entry, MultiProps, SingleProps } from './autocomplete-types';
|
|
7
|
+
/**
|
|
8
|
+
* Props for autocomplete field
|
|
9
|
+
*/
|
|
10
|
+
export type SilkeAutocompleteFieldProps<T = any, U extends Entry<T> = any> = (MultiProps<T> | SingleProps<T>) & Omit<SilkeTextFieldProps, 'multiline' | 'maxLength' | 'minLength' | 'value'> & {
|
|
11
|
+
disableSearch?: boolean;
|
|
12
|
+
noReset?: boolean;
|
|
13
|
+
hideListArrow?: boolean;
|
|
14
|
+
maxDisplayedItems?: number;
|
|
15
|
+
/** What point of the target should be used for centering default center-center */
|
|
16
|
+
targetOrigin?: PopoverOrigin;
|
|
17
|
+
/** What point of the anchor should be used for centering default center-center */
|
|
18
|
+
anchorOrigin?: PopoverOrigin;
|
|
19
|
+
dropDownMinWidth?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Possible values
|
|
22
|
+
*/
|
|
23
|
+
items: U[];
|
|
24
|
+
/**
|
|
25
|
+
* Minimum number of characters in search for results to show
|
|
26
|
+
*/
|
|
27
|
+
minChars?: number;
|
|
28
|
+
/** Cypress tag */
|
|
29
|
+
'data-cy'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* If a function is passed, an "Add item" entry will be shown in the list if nothing matches text search. This function will be the callback.
|
|
32
|
+
* @param value The value entered
|
|
33
|
+
*/
|
|
34
|
+
onAdd?: (value: string) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Use custom component for rendering the autocomplete items
|
|
37
|
+
*/
|
|
38
|
+
renderItem?: (props: AutocompleteRenderItemProps<U>) => React.ReactElement | null;
|
|
39
|
+
/**
|
|
40
|
+
* Use custom component for rendering autocomplete tags
|
|
41
|
+
*/
|
|
42
|
+
renderTags?: (props: AutocompleteTagsProps<T>) => React.ReactElement | null;
|
|
43
|
+
/**
|
|
44
|
+
* Custom sort of items (default sorts by label)
|
|
45
|
+
*/
|
|
46
|
+
sort?: (one: Entry<T>, other: Entry<T>) => number;
|
|
47
|
+
onSearch?: (value: string) => void;
|
|
48
|
+
};
|
|
49
|
+
export declare const useMatchingItemsOnTop: (filteredItems: Entry<any>[], searchString?: string, selectedLabel?: string) => Entry<any>[];
|
|
50
|
+
export declare function SilkeAutocompleteField<T>(props: SilkeAutocompleteFieldProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-box';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import React, { AnchorHTMLAttributes, ButtonHTMLAttributes, FormHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes } from 'react';
|
|
2
|
+
import { LinkProps as RouterLinkProps } from 'react-router-dom';
|
|
3
|
+
import { SilkeColor } from '../../silke-theme-provider';
|
|
4
|
+
export type BoxSpace = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl' | 'none' | boolean;
|
|
5
|
+
export type BoxSize = 'xs' | 's' | 'base' | 'm' | 'l' | 'xl' | 'xxl';
|
|
6
|
+
export type BoxAlign = 'center' | 'start' | 'end' | 'spread' | 'space' | boolean;
|
|
7
|
+
export type TagAttributes = {
|
|
8
|
+
a: Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'color'>;
|
|
9
|
+
button: Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>;
|
|
10
|
+
input: Omit<InputHTMLAttributes<HTMLInputElement>, 'color'>;
|
|
11
|
+
div: Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
|
|
12
|
+
label: Omit<LabelHTMLAttributes<HTMLLabelElement>, 'color'>;
|
|
13
|
+
form: Omit<FormHTMLAttributes<HTMLFormElement>, 'color'>;
|
|
14
|
+
ol: Omit<HTMLAttributes<HTMLOListElement>, 'color'>;
|
|
15
|
+
ul: Omit<HTMLAttributes<HTMLUListElement>, 'color'>;
|
|
16
|
+
li: Omit<HTMLAttributes<HTMLLIElement>, 'color'>;
|
|
17
|
+
header: Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
|
|
18
|
+
dl: Omit<HTMLAttributes<HTMLDListElement>, 'color'>;
|
|
19
|
+
};
|
|
20
|
+
export declare const Flex: ({ weight }: {
|
|
21
|
+
weight?: number | undefined;
|
|
22
|
+
}) => React.JSX.Element;
|
|
23
|
+
type BaseProps = {
|
|
24
|
+
/** Layout contnet in column */
|
|
25
|
+
column?: boolean;
|
|
26
|
+
/** Should fill container */
|
|
27
|
+
fill?: boolean;
|
|
28
|
+
/** Flex gap */
|
|
29
|
+
gap?: BoxSpace;
|
|
30
|
+
/** Vertical/horizontal space */
|
|
31
|
+
pad?: BoxSpace;
|
|
32
|
+
/** Vertical padding in element */
|
|
33
|
+
vPad?: BoxSpace;
|
|
34
|
+
/** Horizontal padding in element */
|
|
35
|
+
hPad?: BoxSpace;
|
|
36
|
+
/** Sets both width and height */
|
|
37
|
+
size?: BoxSize;
|
|
38
|
+
/** Width of the box (x2 of the spaceing, example: 'm' = 32px wide) */
|
|
39
|
+
height?: BoxSize;
|
|
40
|
+
/** Width of the box (x2 of the spaceing, example: 'm' = 32px wide) */
|
|
41
|
+
width?: BoxSize;
|
|
42
|
+
/** Width of the box (x2 of the spaceing, example: 'm' = 32px wide) */
|
|
43
|
+
minHeight?: BoxSize;
|
|
44
|
+
/** Width of the box (x2 of the spaceing, example: 'm' = 32px wide) */
|
|
45
|
+
minWidth?: BoxSize;
|
|
46
|
+
/** Background color */
|
|
47
|
+
bg?: SilkeColor;
|
|
48
|
+
/** Background color on hover */
|
|
49
|
+
bgHover?: SilkeColor;
|
|
50
|
+
/** Text color */
|
|
51
|
+
color?: SilkeColor;
|
|
52
|
+
/** Border radius */
|
|
53
|
+
rounded?: boolean | 'tiny' | 'small' | 'medium' | 'full';
|
|
54
|
+
shadow?: 'level1' | 'level2' | 'level3' | 'level4';
|
|
55
|
+
overflow?: 'hidden' | 'scroll-y';
|
|
56
|
+
cursor?: 'pointer' | 'grab' | 'text';
|
|
57
|
+
/** Text color on hover */
|
|
58
|
+
colorHover?: SilkeColor;
|
|
59
|
+
aspectRatio?: '16:9' | '4:3' | '1:1';
|
|
60
|
+
/** Flex item */
|
|
61
|
+
flex?: boolean;
|
|
62
|
+
/** Wrap items */
|
|
63
|
+
wrap?: boolean;
|
|
64
|
+
/** HTML tag typeTag type */
|
|
65
|
+
/** Align content of box, use array to define separat for x and y axis */
|
|
66
|
+
align?: BoxAlign | [BoxAlign, BoxAlign];
|
|
67
|
+
vAlign?: BoxAlign;
|
|
68
|
+
hAlign?: BoxAlign;
|
|
69
|
+
/** Debug adds an out line to all box and child boxes */
|
|
70
|
+
debug?: boolean;
|
|
71
|
+
scroll?: boolean | 'show';
|
|
72
|
+
rel?: string;
|
|
73
|
+
};
|
|
74
|
+
type InputProps = {
|
|
75
|
+
tag: 'input';
|
|
76
|
+
} & TagAttributes['input'] & BaseProps;
|
|
77
|
+
export type BoxButtonProps = {
|
|
78
|
+
tag?: 'button';
|
|
79
|
+
} & TagAttributes['button'] & BaseProps;
|
|
80
|
+
type AnchorProps = {
|
|
81
|
+
tag: 'a';
|
|
82
|
+
} & TagAttributes['a'] & BaseProps;
|
|
83
|
+
export type BoxLinkProps = {
|
|
84
|
+
tag: 'link';
|
|
85
|
+
} & RouterLinkProps & BaseProps;
|
|
86
|
+
export type BoxDivProps = {
|
|
87
|
+
tag?: 'div';
|
|
88
|
+
} & TagAttributes['div'] & BaseProps;
|
|
89
|
+
export type BoxNavProps = {
|
|
90
|
+
tag?: 'nav';
|
|
91
|
+
} & TagAttributes['div'] & BaseProps;
|
|
92
|
+
export type BoxOlProps = {
|
|
93
|
+
tag?: 'ol';
|
|
94
|
+
} & TagAttributes['ol'] & BaseProps;
|
|
95
|
+
export type BoxUlProps = {
|
|
96
|
+
tag?: 'ul';
|
|
97
|
+
} & TagAttributes['ul'] & BaseProps;
|
|
98
|
+
export type BoxLiProps = {
|
|
99
|
+
tag?: 'li';
|
|
100
|
+
} & TagAttributes['li'] & BaseProps;
|
|
101
|
+
export type BoxLabelProps = {
|
|
102
|
+
tag?: 'label';
|
|
103
|
+
} & TagAttributes['label'] & BaseProps;
|
|
104
|
+
export type BoxFormProps = {
|
|
105
|
+
tag?: 'form';
|
|
106
|
+
} & TagAttributes['form'] & BaseProps;
|
|
107
|
+
export type BoxHeaderProps = {
|
|
108
|
+
tag?: 'header';
|
|
109
|
+
} & TagAttributes['header'] & BaseProps;
|
|
110
|
+
export type BoxDlProps = {
|
|
111
|
+
tag?: 'dl';
|
|
112
|
+
} & TagAttributes['dl'] & BaseProps;
|
|
113
|
+
export type BoxDtProps = {
|
|
114
|
+
tag?: 'dt';
|
|
115
|
+
} & TagAttributes['dl'] & BaseProps;
|
|
116
|
+
export type BoxDdProps = {
|
|
117
|
+
tag?: 'dd';
|
|
118
|
+
} & TagAttributes['dl'] & BaseProps;
|
|
119
|
+
export type BoxProps = InputProps | BoxButtonProps | AnchorProps | BoxLinkProps | BoxDivProps | BoxLabelProps | BoxFormProps | BoxNavProps | BoxOlProps | BoxUlProps | BoxLiProps | BoxHeaderProps | BoxDlProps | BoxDtProps | BoxDdProps;
|
|
120
|
+
export declare const SilkeBox: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<unknown>>;
|
|
121
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SilkeIcons } from '../silke-icon';
|
|
3
|
+
type SilkeBreadcrumbProps = {
|
|
4
|
+
icon?: SilkeIcons;
|
|
5
|
+
label?: string;
|
|
6
|
+
noSlash?: boolean;
|
|
7
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
8
|
+
};
|
|
9
|
+
export declare function SilkeBreadcrumb({ icon, label, noSlash, onClick }: SilkeBreadcrumbProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxNavProps } from '../silke-box';
|
|
3
|
+
type SilkeBreadcrumbsProps = {
|
|
4
|
+
maxItems?: number;
|
|
5
|
+
} & Omit<BoxNavProps, 'gap'>;
|
|
6
|
+
export declare function SilkeBreadcrumbs({ children, ...rest }: SilkeBreadcrumbsProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BoxSpace } from '../silke-box';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { SilkeButtonProps } from './silke-button';
|
|
4
|
+
type ButtonContextType = Pick<SilkeButtonProps, 'kind' | 'size'> & {
|
|
5
|
+
/** Used by buttons set */
|
|
6
|
+
gap?: BoxSpace;
|
|
7
|
+
disableSubmit?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type ButtonContextProps = {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
} & ButtonContextType;
|
|
12
|
+
export declare function useButtonContext(): ButtonContextType;
|
|
13
|
+
export default function ButtonContext({ children, ...rest }: ButtonContextProps): React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as ButtonContext } from './context';
|
|
2
|
+
export * from './silke-big-button';
|
|
3
|
+
export { SilkeButton } from './silke-button';
|
|
4
|
+
export type { SilkeButtonKind, SilkeButtonProps, SilkeButtonSize } from './silke-button';
|
|
5
|
+
export * from './silke-button-set';
|
|
6
|
+
export * from './silke-confirmation-button';
|
|
7
|
+
export * from './silke-file-select-button';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxButtonProps } from '../silke-box';
|
|
3
|
+
import { SilkeIcons } from '../silke-icon';
|
|
4
|
+
type SilkeBigButtonProps = {
|
|
5
|
+
kind?: 'accent' | 'default';
|
|
6
|
+
label: string;
|
|
7
|
+
subLabel?: string;
|
|
8
|
+
leftIcon?: SilkeIcons | React.ReactElement;
|
|
9
|
+
rightIcon?: SilkeIcons | React.ReactElement;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
} & BoxButtonProps;
|
|
12
|
+
export declare function SilkeBigButton({ kind, label, subLabel, leftIcon, rightIcon, children, className, ...rest }: SilkeBigButtonProps): React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BoxDivProps } from '../silke-box';
|
|
3
|
+
import { SilkeButtonKind, SilkeButtonSize } from './silke-button';
|
|
4
|
+
export type SilkeButtonSetProps = {
|
|
5
|
+
/** All buttons will inherit kind */
|
|
6
|
+
kind?: SilkeButtonKind;
|
|
7
|
+
/** All buttons will inherit this size */
|
|
8
|
+
size?: SilkeButtonSize;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
} & Omit<BoxDivProps, 'size'>;
|
|
11
|
+
export declare function SilkeButtonSet({ children, kind, size, className, gap, ...rest }: SilkeButtonSetProps): React.JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SilkeIcons } from '../silke-icon';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { BoxButtonProps, BoxSize } from '../silke-box';
|
|
4
|
+
export type SilkeButtonKind = 'primary' | 'secondary' | 'danger' | 'tertiary' | 'ghost';
|
|
5
|
+
export type SilkeButtonSize = BoxSize;
|
|
6
|
+
export type SilkeButtonProps = {
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
kind?: SilkeButtonKind;
|
|
9
|
+
size?: SilkeButtonSize;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
/** Disable button */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Selected */
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
/** Show button as in focus state */
|
|
16
|
+
focus?: boolean;
|
|
17
|
+
/** Show button as in hover state */
|
|
18
|
+
hover?: boolean;
|
|
19
|
+
icon?: SilkeIcons | React.ReactElement;
|
|
20
|
+
link?: string;
|
|
21
|
+
target?: string;
|
|
22
|
+
} & Omit<BoxButtonProps, 'children' | 'size'>;
|
|
23
|
+
export declare const SilkeButton: React.ForwardRefExoticComponent<{
|
|
24
|
+
label?: React.ReactNode;
|
|
25
|
+
kind?: SilkeButtonKind | undefined;
|
|
26
|
+
size?: BoxSize | undefined;
|
|
27
|
+
loading?: boolean | undefined;
|
|
28
|
+
/** Disable button */
|
|
29
|
+
disabled?: boolean | undefined;
|
|
30
|
+
/** Selected */
|
|
31
|
+
selected?: boolean | undefined;
|
|
32
|
+
/** Show button as in focus state */
|
|
33
|
+
focus?: boolean | undefined;
|
|
34
|
+
/** Show button as in hover state */
|
|
35
|
+
hover?: boolean | undefined;
|
|
36
|
+
icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | SilkeIcons | undefined;
|
|
37
|
+
link?: string | undefined;
|
|
38
|
+
target?: string | undefined;
|
|
39
|
+
} & Omit<BoxButtonProps, "children" | "size"> & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SilkeButtonProps } from './silke-button';
|
|
3
|
+
import { SilkeConfirmationModalProps } from '../silke-modal';
|
|
4
|
+
type SilkeConfirmationButtonProps = {
|
|
5
|
+
message?: React.ReactNode;
|
|
6
|
+
} & Omit<SilkeButtonProps, 'onClick'> & Omit<SilkeConfirmationModalProps, 'children' | 'hide' | 'onClose'>;
|
|
7
|
+
export declare function SilkeConfirmationButton({ message, title, confirmKind, confirmIcon, confirmLabel, rejectLabel, onConfirm, ...rest }: SilkeConfirmationButtonProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SilkeButtonProps } from './silke-button';
|
|
3
|
+
type SilkeFileSelectButtonProps = {
|
|
4
|
+
accept?: string;
|
|
5
|
+
multiple?: boolean;
|
|
6
|
+
onSelect: (files: FileList) => any;
|
|
7
|
+
} & Omit<SilkeButtonProps, 'link' | 'onSelect'>;
|
|
8
|
+
export declare function SilkeFileSelectButton({ accept, multiple, onSelect, label, kind, size, icon, focus, hover, className, loading, type, selected, ...rest }: SilkeFileSelectButtonProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxDivProps } from '../silke-box';
|
|
3
|
+
type SilkeCardGridProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
small?: boolean;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
} & Omit<BoxDivProps, 'tag' | 'gap' | 'size'>;
|
|
8
|
+
export declare function SilkeCardGrid({ loading, children, small, className, style, ...rest }: SilkeCardGridProps): React.JSX.Element;
|
|
9
|
+
export declare function SilkeSkeletonCard(): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SilkeColor } from '../../silke-theme-provider';
|
|
3
|
+
import { SilkeOverflowMenuItem } from '../silke-overflow-menu';
|
|
4
|
+
import { SilkeTagProps } from '../silke-tag';
|
|
5
|
+
export declare const SilkeCard: React.ForwardRefExoticComponent<{
|
|
6
|
+
title: React.ReactNode;
|
|
7
|
+
subTitle?: React.ReactNode;
|
|
8
|
+
image?: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | string[] | undefined;
|
|
9
|
+
autoFocus?: boolean | undefined;
|
|
10
|
+
text?: string | undefined;
|
|
11
|
+
customTags?: React.ReactNode;
|
|
12
|
+
menu?: SilkeOverflowMenuItem[] | undefined;
|
|
13
|
+
colorBackdrop?: boolean | SilkeColor | undefined;
|
|
14
|
+
tags?: SilkeTagProps[] | undefined;
|
|
15
|
+
tagsTop?: SilkeTagProps[] | undefined;
|
|
16
|
+
link?: string | undefined;
|
|
17
|
+
selected?: boolean | undefined;
|
|
18
|
+
checked?: boolean | undefined;
|
|
19
|
+
onCheck?: ((checked: boolean) => void) | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Show overflow menu above menu button
|
|
22
|
+
*/
|
|
23
|
+
overflowMenuAbove?: boolean | undefined;
|
|
24
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "children"> & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-checkbox';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
import { FormFieldProps } from '../silke-form';
|
|
3
|
+
type SilkeCheckboxProps = FormFieldProps<boolean> & Omit<HTMLAttributes<HTMLInputElement>, 'onChange' | 'checkbox' | 'value' | 'style'> & {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
} & {
|
|
8
|
+
size?: 's' | 'base';
|
|
9
|
+
};
|
|
10
|
+
export declare function SilkeCheckbox(props: SilkeCheckboxProps): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type Props = {
|
|
3
|
+
code: string;
|
|
4
|
+
onChange?: (code: string) => void;
|
|
5
|
+
language?: 'javascript' | 'json' | 'css';
|
|
6
|
+
lineNumbers?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export default function CodeEditor({ onChange, code, language, lineNumbers, }: Props): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-code-snippet';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Language, PrismTheme } from 'prism-react-renderer';
|
|
3
|
+
interface Props {
|
|
4
|
+
buttons?: React.ReactNode;
|
|
5
|
+
code?: string;
|
|
6
|
+
language?: Language;
|
|
7
|
+
lineNumbers?: boolean;
|
|
8
|
+
onCopy?: () => void;
|
|
9
|
+
inlineStyle?: React.CSSProperties;
|
|
10
|
+
noWrap?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Default theme with background removed
|
|
14
|
+
*/
|
|
15
|
+
export declare const useTheme: PrismTheme;
|
|
16
|
+
export declare const SilkeCodeSnippet: ({ buttons, code, language, lineNumbers, onCopy, inlineStyle, noWrap, }: Props) => React.JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IPalettes } from '@vev/utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type SilkePaletteProps = {
|
|
4
|
+
type: keyof IPalettes;
|
|
5
|
+
value: string;
|
|
6
|
+
dark?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onChange?: (type: string, color: string) => void;
|
|
9
|
+
onRemove?: (key: string) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function SilkePalette({ type, value, disabled, dark, onChange, onRemove, }: SilkePaletteProps): React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IPalettes } from '@vev/utils';
|
|
3
|
+
type ColorPalettesProps = {
|
|
4
|
+
palettes?: IPalettes;
|
|
5
|
+
onChange?: (type: string, color: string) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function SilkePalettes({ palettes, onChange }: ColorPalettesProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ColorFormats } from 'tinycolor2';
|
|
2
|
+
import { RGBA, HSV, IPalettes } from '@vev/utils';
|
|
3
|
+
export declare function rgbToHex(color: RGBA | string | number[]): string;
|
|
4
|
+
export declare function getColorVariableValue(color: string, variables: {
|
|
5
|
+
[varName: string]: string;
|
|
6
|
+
}): string;
|
|
7
|
+
export declare function isColorVariable(color: string): boolean;
|
|
8
|
+
export declare function rgbaToString(rgba: RGBA | number[] | string): string;
|
|
9
|
+
type Palettes = {
|
|
10
|
+
key: 'primary' | 'accent' | 'bg' | 'text' | 'project';
|
|
11
|
+
label: string;
|
|
12
|
+
colors: string[];
|
|
13
|
+
}[];
|
|
14
|
+
export declare function buildPalettes(variables: {
|
|
15
|
+
[variableName: string]: string;
|
|
16
|
+
}): Palettes;
|
|
17
|
+
export declare function getPaletteFromVariables(variables: {
|
|
18
|
+
[variableName: string]: string;
|
|
19
|
+
}): IPalettes;
|
|
20
|
+
export declare function getSwatchesFromVariables(variables: {
|
|
21
|
+
[variableName: string]: string;
|
|
22
|
+
}): string[];
|
|
23
|
+
export declare function getPalette(color?: string, baseDark?: string): string[];
|
|
24
|
+
export declare function getTextPalette(primaryLightText: boolean): string[];
|
|
25
|
+
export declare function colorFromArray(array: number[], startIndex?: number, endIndex?: number): string;
|
|
26
|
+
export declare function hexToRgb(hex: string): RGBA;
|
|
27
|
+
export declare function hsvToHslString(hsv: HSV): string;
|
|
28
|
+
export declare function getHue({ r, g, b }: RGBA): number;
|
|
29
|
+
export declare function rgbToHsv(hsv: Partial<ColorFormats.HSVA>, { r, g, b, a }: ColorFormats.RGBA): ColorFormats.HSVA;
|
|
30
|
+
export declare function hsvToRgb(color: ColorFormats.HSVA): RGBA;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ColorFormats } from 'tinycolor2';
|
|
2
|
+
export type HueType = number | string | ColorFormats.RGBA | ColorFormats.HSV;
|
|
3
|
+
export declare function convertToHue(value: HueType, prevHue: ColorFormats.HSV | undefined, variables: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}): ColorFormats.HSV;
|
|
6
|
+
export declare function convertFromHue<T extends HueType>(ogValue: T, value: ColorFormats.HSV): T;
|
|
7
|
+
export declare function useHue<T extends HueType, U extends T | T[]>(value?: U): [hue: number[], setHue: (hue: number[]) => U];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RGBA } from '@vev/utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type ColorInfoProps = {
|
|
4
|
+
rgba: RGBA;
|
|
5
|
+
noTransparency?: boolean;
|
|
6
|
+
onChange: (color: RGBA) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function ColorInfo({ rgba, noTransparency, onChange }: ColorInfoProps): React.JSX.Element;
|
|
9
|
+
export {};
|