@vev/silke 1.0.28 → 1.0.31
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 +20 -0
- package/dist/index.js +39 -74
- package/dist/index.js.LEGAL.txt +15 -34
- package/dist/styles.css +2000 -1558
- package/dist/{silke/src → types}/components/index.d.ts +4 -2
- package/dist/types/components/silke-action-box/index.d.ts +1 -0
- package/dist/types/components/silke-action-box/silke-action-box.d.ts +18 -0
- package/dist/types/components/silke-alert-banner/index.d.ts +1 -0
- package/dist/{silke/src/components/silke-notification/silke-notification.d.ts → types/components/silke-alert-banner/silke-alert-banner.d.ts} +4 -5
- package/dist/{silke/src → types}/components/silke-autocomplete-field/autocomplete-item.d.ts +2 -1
- package/dist/{silke/src → types}/components/silke-autocomplete-field/autocomplete-tags.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-autocomplete-field/silke-autocomplete-field.d.ts +4 -2
- package/dist/types/components/silke-autocomplete-field/silke-autocomplete-field.spec.d.ts +1 -0
- package/dist/{silke/src → types}/components/silke-autocomplete-field/silke-autocomplete-popup.d.ts +2 -1
- package/dist/{silke/src → types}/components/silke-box/silke-box.d.ts +4 -3
- package/dist/{silke/src → types}/components/silke-breadcrumbs/silke-breadcrumb.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-breadcrumbs/silke-breadcrumbs.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-button/context.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-button/silke-big-button.d.ts +4 -2
- package/dist/{silke/src → types}/components/silke-button/silke-button-set.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-button/silke-button.d.ts +3 -3
- package/dist/{silke/src → types}/components/silke-button/silke-confirmation-button.d.ts +3 -2
- package/dist/{silke/src → types}/components/silke-button/silke-dropdown-button.d.ts +2 -1
- package/dist/{silke/src → types}/components/silke-button/silke-file-select-button.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-card/silke-card-grid.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-checkbox/silke-checkbox.d.ts +1 -1
- package/dist/types/components/silke-code-editor/index.d.ts +2 -0
- package/dist/{silke/src → types}/components/silke-code-editor/silke-code-editor.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-code-snippet/silke-code-snippet.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-color-palettes/silke-color-palette.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-palettes/silke-color-palettes.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-picker/color.d.ts +5 -0
- package/dist/types/components/silke-color-picker/silke-color-info.d.ts +10 -0
- package/dist/{silke/src → types}/components/silke-color-picker/silke-color-picker-button.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-color-picker/silke-color-picker.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-picker/silke-color-space.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-picker/silke-hue-slider.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-picker/silke-opacity-slider.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-swatches/silke-swatches.d.ts +3 -3
- package/dist/types/components/silke-conditions-input/index.d.ts +2 -0
- package/dist/types/components/silke-conditions-input/silke-conditions-input-options.d.ts +7 -0
- package/dist/types/components/silke-conditions-input/silke-conditions-input.d.ts +18 -0
- package/dist/types/components/silke-conditions-input/silke-conditions-tag.d.ts +10 -0
- package/dist/types/components/silke-conditions-input/types.d.ts +13 -0
- package/dist/types/components/silke-conditions-input/utils.d.ts +11 -0
- package/dist/{silke/src → types}/components/silke-content-column/silke-content-column.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-context-menu/silke-context-menu-item.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-context-menu/silke-context-menu.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-css-number-field/index.d.ts +1 -0
- package/dist/{silke/src → types}/components/silke-css-number-field/silke-css-context.d.ts +8 -2
- package/dist/{silke/src → types}/components/silke-css-number-field/silke-css-number-field.d.ts +4 -2
- package/dist/{silke/src → types}/components/silke-divider/silke-divider.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-drawer/silke-drawer.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-form/form-context.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-form/form-types.d.ts +3 -3
- package/dist/{silke/src → types}/components/silke-form/silke-form.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/array-field-inline.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/array-field-modal.d.ts +4 -3
- package/dist/types/components/silke-form-schema/fields/array-field.d.ts +3 -0
- package/dist/types/components/silke-form-schema/fields/event-field.d.ts +3 -0
- package/dist/types/components/silke-form-schema/fields/icon-field.d.ts +3 -0
- package/dist/types/components/silke-form-schema/fields/image-field.d.ts +3 -0
- package/dist/types/components/silke-form-schema/fields/layout-field.d.ts +2 -0
- package/dist/{silke/src → types}/components/silke-form-schema/fields/link-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/number-field.d.ts +1 -2
- package/dist/types/components/silke-form-schema/fields/object-field.d.ts +2 -0
- package/dist/{silke/src → types}/components/silke-form-schema/fields/select-field.d.ts +1 -2
- package/dist/types/components/silke-form-schema/fields/string-field.d.ts +3 -0
- package/dist/types/components/silke-form-schema/fields/toggle-field.d.ts +3 -0
- package/dist/{silke/src → types}/components/silke-form-schema/fields/upload-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/utils/generate-image.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-form-schema/fields/utils/generate-title.d.ts +1 -1
- package/dist/types/components/silke-form-schema/fields/video-field.d.ts +3 -0
- package/dist/{silke/src → types}/components/silke-form-schema/silke-extended-fields-context.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-form-schema/silke-form-schema.d.ts +6 -3
- package/dist/{silke/src → types}/components/silke-form-schema/silke-schema-context.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-form-schema/silke-schema-field.d.ts +3 -2
- package/dist/{silke/src → types}/components/silke-form-schema/silke-schema-fields.d.ts +3 -2
- package/dist/types/components/silke-gradient-picker/silke-gradient-picker.d.ts +7 -0
- package/dist/{silke/src → types}/components/silke-gradient-picker/silke-gradient-position.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-gradient-picker/silke-gradient-slider.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-icon/silke-shape.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-icon/silke-stacked-icon.d.ts +1 -2
- package/dist/types/components/silke-icon-picker/emoji-tab.d.ts +2 -0
- package/dist/types/components/silke-icon-picker/icons-tab.d.ts +2 -0
- package/dist/{silke/src → types}/components/silke-icon-picker/silke-icon-picker.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-icon-picker/upload-tab.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-iframe-portal/silke-iframe-portal.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-image/silke-image-color-backdrop.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-image/silke-image.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-link/silke-link.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-list/silke-list-item.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-list/silke-list.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-list-card/silke-list-card.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-loader/silke-loader-overlay.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-loader/silke-loader.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-modal/silke-confirmation-modal.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-modal/silke-modal.d.ts +6 -4
- package/dist/{silke/src → types}/components/silke-object-field/silke-object-field.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-overflow-menu/silke-overflow-menu.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-popover/popover-context.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-popover/silke-popover.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-progress-indicator/silke-progress-indicator.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-progress-indicator/silke-progress-step.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-radio-button/silke-radio-button-group.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-radio-button/silke-radio-button.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-search-field/silke-search-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-select-field/silke-select-field.d.ts +1 -2
- package/dist/types/components/silke-select-field/silke-select-field.spec.d.ts +1 -0
- package/dist/{silke/src → types}/components/silke-skeleton/silke-skeleton.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-slider/silke-slider-point.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-slider/silke-slider.d.ts +2 -1
- package/dist/{silke/src → types}/components/silke-slider/slider-track.d.ts +1 -1
- package/dist/types/components/silke-sortable-list/index.d.ts +3 -0
- package/dist/{silke/src → types}/components/silke-sortable-list/silke-nested-sortable-item.d.ts +3 -2
- package/dist/{silke/src → types}/components/silke-sortable-list/silke-nested-sortable-list.d.ts +3 -2
- package/dist/{silke/src → types}/components/silke-sortable-list/silke-nested-sortable-utils.d.ts +11 -1
- package/dist/types/components/silke-sortable-list/silke-nested-sortable-utils.spec.d.ts +1 -0
- package/dist/{silke/src → types}/components/silke-sortable-list/silke-sortable-item-wrapper.d.ts +2 -1
- package/dist/{silke/src → types}/components/silke-sortable-list/silke-sortable-list.d.ts +2 -1
- package/dist/{silke/src → types}/components/silke-table/silke-table.d.ts +4 -1
- package/dist/{silke/src → types}/components/silke-table/table-row.d.ts +3 -2
- package/dist/{silke/src → types}/components/silke-table/table-types.d.ts +2 -1
- package/dist/types/components/silke-tabs/silke-tab.d.ts +13 -0
- package/dist/{silke/src → types}/components/silke-tabs/silke-tabs.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-tag/silke-tag.d.ts +8 -8
- package/dist/{silke/src → types}/components/silke-text/silke-text.d.ts +7 -6
- package/dist/{silke/src → types}/components/silke-text/silke-title.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-text-field/silke-text-field-outline.d.ts +6 -6
- package/dist/{silke/src → types}/components/silke-text-field/silke-text-field.d.ts +1 -0
- package/dist/{silke/src → types}/components/silke-text-field/text-field-context.d.ts +5 -2
- package/dist/{silke/src → types}/components/silke-theme-editor/silke-theme-editor.d.ts +1 -2
- package/dist/types/components/silke-tile/index.d.ts +1 -0
- package/dist/{silke/src → types}/components/silke-tile/silke-tile.d.ts +2 -2
- package/dist/types/components/silke-toast-notification/index.d.ts +1 -0
- package/dist/types/components/silke-toast-notification/silke-toast-notification.d.ts +21 -0
- package/dist/{silke/src → types}/components/silke-toggle/silke-toggle.d.ts +1 -1
- package/dist/types/components/silke-toolbar/silke-toolbar.d.ts +7 -0
- package/dist/{silke/src → types}/components/silke-tooltip/silke-definition-tooltip.d.ts +2 -1
- package/dist/{silke/src → types}/components/silke-tooltip/silke-icon-tooltip.d.ts +3 -1
- package/dist/{silke/src → types}/components/silke-tooltip/silke-interactive-tooltip.d.ts +1 -1
- package/dist/types/components/silke-tooltip/silke-shortcuts.d.ts +5 -0
- package/dist/{silke/src → types}/components/silke-tooltip/silke-tooltip.d.ts +6 -1
- package/dist/{silke/src → types}/components/silke-upload-field/silke-upload-field.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-variables-wrapper/silke-variables-wrapper-form.d.ts +5 -4
- package/dist/{silke/src → types}/components/silke-variables-wrapper/silke-variables-wrapper.d.ts +3 -8
- package/dist/{silke/src → types}/components/silke-virtual/silke-virtual-grid.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-virtual/silke-virtual-row.d.ts +1 -1
- package/dist/types/docs/app.d.ts +3 -0
- package/dist/{silke/src → types}/docs/components/code-block/code-block.d.ts +1 -2
- package/dist/{silke/src → types}/docs/components/state-table/state-table.d.ts +1 -2
- package/dist/{silke/src → types}/docs/docs-provider.d.ts +1 -1
- package/dist/types/docs/parser.d.ts +0 -0
- package/dist/{silke/src → types}/hooks/drag-and-drop/use-drag.d.ts +3 -2
- package/dist/{silke/src → types}/icons.d.ts +115 -25
- package/dist/types/jest/keys.d.ts +6 -0
- package/dist/{silke/src → types}/silke-theme-provider.d.ts +2 -2
- package/esbuild-sass-modules.mjs +1 -1
- package/jest.config.js +0 -2
- package/package.json +28 -19
- package/project.json +21 -0
- package/public/index.html +2 -2
- package/src/_variables.scss +19 -5
- package/src/components/index.ts +4 -2
- package/src/components/silke-action-box/index.ts +1 -0
- package/src/components/silke-action-box/silke-action-box.mdx +152 -0
- package/src/components/silke-action-box/silke-action-box.scss +116 -0
- package/src/components/silke-action-box/silke-action-box.tsx +67 -0
- package/src/components/silke-alert-banner/index.ts +1 -0
- package/src/components/silke-alert-banner/silke-alert-banner.mdx +180 -0
- package/src/components/{silke-notification/silke-notification.scss → silke-alert-banner/silke-alert-banner.scss} +18 -53
- package/src/components/silke-alert-banner/silke-alert-banner.tsx +92 -0
- package/src/components/silke-autocomplete-field/autocomplete-item.tsx +18 -12
- package/src/components/silke-autocomplete-field/autocomplete-tags.tsx +3 -0
- package/src/components/silke-autocomplete-field/silke-autocomplete-field.mdx +17 -17
- package/src/components/silke-autocomplete-field/silke-autocomplete-field.spec.tsx +1 -1
- package/src/components/silke-autocomplete-field/silke-autocomplete-field.tsx +42 -35
- package/src/components/silke-autocomplete-field/silke-autocomplete-popup.tsx +85 -64
- package/src/components/silke-box/silke-box.mdx +13 -9
- package/src/components/silke-box/silke-box.scss +12 -3
- package/src/components/silke-box/silke-box.tsx +18 -2
- package/src/components/silke-breadcrumbs/silke-breadcrumb.tsx +2 -2
- package/src/components/silke-button/silke-big-button.scss +0 -13
- package/src/components/silke-button/silke-big-button.tsx +15 -7
- package/src/components/silke-button/silke-button.mdx +28 -18
- package/src/components/silke-button/silke-button.scss +33 -43
- package/src/components/silke-button/silke-button.tsx +7 -7
- package/src/components/silke-button/silke-confirmation-button.tsx +4 -1
- package/src/components/silke-button/silke-dropdown-button.tsx +7 -3
- package/src/components/silke-button/silke-file-select-button.tsx +3 -2
- package/src/components/silke-card/silke-card-grid.tsx +1 -1
- package/src/components/silke-card/silke-card.mdx +16 -26
- package/src/components/silke-card/silke-card.scss +16 -3
- package/src/components/silke-card/silke-card.tsx +8 -4
- package/src/components/silke-checkbox/silke-checkbox.mdx +2 -11
- package/src/components/silke-checkbox/silke-checkbox.scss +2 -2
- package/src/components/silke-code-snippet/silke-code-snippet.mdx +27 -22
- package/src/components/silke-code-snippet/silke-code-snippet.tsx +5 -7
- package/src/components/silke-color-palettes/silke-color-palette.mdx +2 -2
- package/src/components/silke-color-picker/color.ts +12 -0
- package/src/components/silke-color-picker/silke-color-info.tsx +39 -18
- package/src/components/silke-color-picker/silke-color-picker-button.tsx +2 -2
- package/src/components/silke-color-picker/silke-color-picker.mdx +9 -13
- package/src/components/silke-color-picker/silke-color-picker.tsx +24 -7
- package/src/components/silke-color-swatches/silke-color-swatch-button.tsx +2 -2
- package/src/components/silke-color-swatches/silke-swatches.tsx +25 -18
- package/src/components/silke-conditions-input/index.ts +2 -0
- package/src/components/silke-conditions-input/silke-conditions-input-options.tsx +87 -0
- package/src/components/silke-conditions-input/silke-conditions-input.mdx +88 -0
- package/src/components/silke-conditions-input/silke-conditions-input.scss +29 -0
- package/src/components/silke-conditions-input/silke-conditions-input.tsx +293 -0
- package/src/components/silke-conditions-input/silke-conditions-tag.tsx +80 -0
- package/src/components/silke-conditions-input/types.ts +23 -0
- package/src/components/silke-conditions-input/utils.ts +176 -0
- package/src/components/silke-content-column/silke-content-column.scss +1 -1
- package/src/components/silke-context-menu/silke-context-menu-item.tsx +3 -0
- package/src/components/silke-context-menu/silke-context-menu.mdx +4 -4
- package/src/components/silke-context-menu/silke-context-menu.scss +9 -7
- package/src/components/silke-context-menu/silke-context-menu.tsx +2 -2
- package/src/components/silke-css-number-field/index.ts +1 -0
- package/src/components/silke-css-number-field/silke-css-context.tsx +11 -1
- package/src/components/silke-css-number-field/silke-css-number-field.mdx +221 -91
- package/src/components/silke-css-number-field/silke-css-number-field.scss +10 -3
- package/src/components/silke-css-number-field/silke-css-number-field.tsx +54 -10
- package/src/components/silke-css-number-field/utils.ts +2 -1
- package/src/components/silke-divider/silke-divider.mdx +1 -2
- package/src/components/silke-drawer/silke-drawer.mdx +4 -11
- package/src/components/silke-form/form-types.ts +5 -3
- package/src/components/silke-form/silke-form.mdx +4 -16
- package/src/components/silke-form-schema/fields/array-field-inline.tsx +13 -3
- package/src/components/silke-form-schema/fields/array-field-modal.tsx +11 -7
- package/src/components/silke-form-schema/fields/array-field.tsx +25 -6
- package/src/components/silke-form-schema/fields/event-field.tsx +21 -10
- package/src/components/silke-form-schema/fields/icon-field.tsx +19 -3
- package/src/components/silke-form-schema/fields/image-field.tsx +28 -6
- package/src/components/silke-form-schema/fields/layout-field.tsx +8 -1
- package/src/components/silke-form-schema/fields/link-field.tsx +6 -2
- package/src/components/silke-form-schema/fields/number-field.tsx +146 -15
- package/src/components/silke-form-schema/fields/object-field.tsx +10 -1
- package/src/components/silke-form-schema/fields/select-field.tsx +21 -5
- package/src/components/silke-form-schema/fields/string-field.tsx +115 -20
- package/src/components/silke-form-schema/fields/styles.scss +35 -36
- package/src/components/silke-form-schema/fields/toggle-field.tsx +14 -2
- package/src/components/silke-form-schema/fields/upload-field.tsx +4 -2
- package/src/components/silke-form-schema/fields/utils/generate-image.ts +4 -1
- package/src/components/silke-form-schema/fields/utils/generate-title.ts +2 -1
- package/src/components/silke-form-schema/fields/video-field.tsx +25 -6
- package/src/components/silke-form-schema/silke-form-schema.mdx +227 -160
- package/src/components/silke-form-schema/silke-form-schema.tsx +6 -2
- package/src/components/silke-form-schema/silke-schema-field.tsx +33 -10
- package/src/components/silke-form-schema/silke-schema-fields.tsx +3 -1
- package/src/components/silke-gradient-picker/silke-gradient-picker.mdx +1 -1
- package/src/components/silke-gradient-picker/silke-gradient-picker.tsx +37 -7
- package/src/components/silke-gradient-picker/silke-gradient-position.tsx +1 -1
- package/src/components/silke-icon/silke-icon.mdx +3 -6
- package/src/components/silke-icon/silke-icon.scss +2 -0
- package/src/components/silke-icon-picker/emoji-tab.tsx +2 -2
- package/src/components/silke-icon-picker/silke-icon-picker.tsx +5 -5
- package/src/components/silke-iframe-portal/silke-iframe-portal.mdx +6 -15
- package/src/components/silke-image/silke-image.mdx +28 -0
- package/src/components/silke-image/silke-image.scss +1 -0
- package/src/components/silke-link/silke-link.mdx +62 -39
- package/src/components/silke-link/silke-link.scss +3 -2
- package/src/components/silke-list/silke-list.mdx +12 -10
- package/src/components/silke-list-card/silke-list-card.mdx +7 -11
- package/src/components/silke-loader/silke-loader.mdx +1 -1
- package/src/components/silke-loader/silke-loader.tsx +1 -4
- package/src/components/silke-modal/silke-confirmation-modal.tsx +3 -1
- package/src/components/silke-modal/silke-modal.mdx +42 -6
- package/src/components/silke-modal/silke-modal.scss +30 -22
- package/src/components/silke-modal/silke-modal.tsx +16 -10
- package/src/components/silke-navigation-link/silke-navigation-link.mdx +21 -22
- package/src/components/silke-navigation-link/silke-navigation-link.scss +3 -6
- package/src/components/silke-object-field/silke-object-field.mdx +3 -10
- package/src/components/silke-object-field/silke-object-field.tsx +2 -2
- package/src/components/silke-overflow-menu/silke-overflow-menu.mdx +35 -2
- package/src/components/silke-overflow-menu/silke-overflow-menu.tsx +3 -2
- package/src/components/silke-popover/silke-popover.mdx +14 -22
- package/src/components/silke-popover/silke-popover.tsx +21 -15
- package/src/components/silke-progress-indicator/silke-progress-indicator.mdx +33 -36
- package/src/components/silke-radio-button/silke-radio-button-group.tsx +1 -1
- package/src/components/silke-radio-button/silke-radio-button.mdx +1 -7
- package/src/components/silke-radio-button/silke-radio-button.scss +1 -0
- package/src/components/silke-search-field/silke-search-field.mdx +4 -12
- package/src/components/silke-search-field/silke-search-field.tsx +2 -2
- package/src/components/silke-select-field/silke-select-field.mdx +14 -14
- package/src/components/silke-select-field/silke-select-field.spec.tsx +1 -1
- package/src/components/silke-slider/silke-slider.mdx +59 -22
- package/src/components/silke-slider/silke-slider.tsx +23 -10
- package/src/components/silke-sortable-list/index.ts +1 -0
- package/src/components/silke-sortable-list/silke-nested-sortable-item.tsx +56 -35
- package/src/components/silke-sortable-list/silke-nested-sortable-list.scss +2 -6
- package/src/components/silke-sortable-list/silke-nested-sortable-list.tsx +4 -0
- package/src/components/silke-sortable-list/silke-nested-sortable-utils.ts +18 -4
- package/src/components/silke-sortable-list/silke-sortable-item-wrapper.tsx +4 -1
- package/src/components/silke-sortable-list/silke-sortable-list.mdx +49 -61
- package/src/components/silke-sortable-list/silke-sortable-list.scss +2 -2
- package/src/components/silke-sortable-list/silke-sortable-list.tsx +3 -0
- package/src/components/silke-table/silke-table.mdx +98 -75
- package/src/components/silke-table/silke-table.scss +27 -13
- package/src/components/silke-table/silke-table.tsx +27 -8
- package/src/components/silke-table/table-row.tsx +6 -1
- package/src/components/silke-table/table-types.ts +2 -1
- package/src/components/silke-tabs/silke-tab.tsx +20 -2
- package/src/components/silke-tabs/silke-tabs.mdx +73 -2
- package/src/components/silke-tabs/silke-tabs.scss +37 -0
- package/src/components/silke-tabs/silke-tabs.tsx +1 -1
- package/src/components/silke-tag/silke-tag.mdx +10 -78
- package/src/components/silke-tag/silke-tag.scss +54 -38
- package/src/components/silke-tag/silke-tag.tsx +4 -12
- package/src/components/silke-text/silke-text.mdx +50 -48
- package/src/components/silke-text/silke-text.scss +4 -2
- package/src/components/silke-text/silke-title.scss +29 -15
- package/src/components/silke-text-field/silke-text-field-outline.tsx +17 -26
- package/src/components/silke-text-field/silke-text-field.mdx +67 -71
- package/src/components/silke-text-field/silke-text-field.scss +11 -20
- package/src/components/silke-text-field/silke-text-field.tsx +18 -16
- package/src/components/silke-text-field/text-field-context.tsx +7 -2
- package/src/components/silke-theme-editor/silke-theme-editor.tsx +0 -1
- package/src/components/silke-tile/index.ts +0 -1
- package/src/components/silke-tile/silke-tile.mdx +6 -63
- package/src/components/silke-tile/silke-tile.tsx +27 -32
- package/src/components/silke-toast-notification/index.ts +1 -0
- package/src/components/{silke-notification/silke-notification.mdx → silke-toast-notification/silke-toast-notification.mdx} +58 -90
- package/src/components/silke-toast-notification/silke-toast-notification.scss +110 -0
- package/src/components/{silke-notification/silke-notification.tsx → silke-toast-notification/silke-toast-notification.tsx} +29 -17
- package/src/components/silke-toggle/silke-toggle.mdx +5 -29
- package/src/components/silke-toggle/silke-toggle.scss +3 -2
- package/src/components/silke-toolbar/silke-toolbar.mdx +6 -6
- package/src/components/silke-toolbar/silke-toolbar.tsx +5 -4
- package/src/components/silke-tooltip/silke-definition-tooltip.tsx +3 -0
- package/src/components/silke-tooltip/silke-icon-tooltip.tsx +10 -5
- package/src/components/silke-tooltip/silke-shortcuts.tsx +8 -3
- package/src/components/silke-tooltip/silke-tooltip.mdx +16 -34
- package/src/components/silke-tooltip/silke-tooltip.scss +3 -2
- package/src/components/silke-tooltip/silke-tooltip.tsx +15 -4
- package/src/components/silke-upload-field/silke-upload-field.tsx +21 -3
- package/src/components/silke-variables-wrapper/silke-variables-wrapper-form.tsx +30 -50
- package/src/components/silke-variables-wrapper/silke-variables-wrapper.mdx +131 -18
- package/src/components/silke-variables-wrapper/silke-variables-wrapper.scss +2 -4
- package/src/components/silke-variables-wrapper/silke-variables-wrapper.tsx +135 -91
- package/src/docs/app.tsx +16 -13
- package/src/docs/components/code-block/code-block.scss +4 -1
- package/src/docs/components/code-block/code-block.tsx +10 -9
- package/src/docs/data/flux/store.ts +0 -1
- package/src/hooks/drag-and-drop/use-drag.tsx +6 -1
- package/src/hooks/drag-and-drop/use-drop.tsx +3 -3
- package/src/hooks/hooks.mdx +3 -3
- package/src/icons.tsx +143 -17
- package/src/index.mdx +30 -31
- package/src/playground.mdx +58 -47
- package/src/silke-theme-provider.tsx +1 -0
- package/src/styles/core.scss +14 -14
- package/tsconfig.build.json +26 -4
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +25 -11
- package/webpack.docs.ts +1 -1
- package/dist/silke/src/components/silke-code-editor/index.d.ts +0 -3
- package/dist/silke/src/components/silke-color-picker/silke-color-info.d.ts +0 -9
- package/dist/silke/src/components/silke-form-schema/fields/array-field.d.ts +0 -4
- package/dist/silke/src/components/silke-form-schema/fields/event-field.d.ts +0 -4
- package/dist/silke/src/components/silke-form-schema/fields/icon-field.d.ts +0 -4
- package/dist/silke/src/components/silke-form-schema/fields/image-field.d.ts +0 -4
- package/dist/silke/src/components/silke-form-schema/fields/layout-field.d.ts +0 -3
- package/dist/silke/src/components/silke-form-schema/fields/object-field.d.ts +0 -3
- package/dist/silke/src/components/silke-form-schema/fields/string-field.d.ts +0 -4
- package/dist/silke/src/components/silke-form-schema/fields/toggle-field.d.ts +0 -4
- package/dist/silke/src/components/silke-form-schema/fields/video-field.d.ts +0 -4
- package/dist/silke/src/components/silke-gradient-picker/silke-gradient-picker.d.ts +0 -5
- package/dist/silke/src/components/silke-icon-picker/emoji-tab.d.ts +0 -3
- package/dist/silke/src/components/silke-icon-picker/icons-tab.d.ts +0 -3
- package/dist/silke/src/components/silke-notification/index.d.ts +0 -1
- package/dist/silke/src/components/silke-sortable-list/index.d.ts +0 -2
- package/dist/silke/src/components/silke-steps/index.d.ts +0 -1
- package/dist/silke/src/components/silke-steps/silke-steps.d.ts +0 -12
- package/dist/silke/src/components/silke-tabs/silke-tab.d.ts +0 -9
- package/dist/silke/src/components/silke-tile/index.d.ts +0 -2
- package/dist/silke/src/components/silke-tile/silke-tile-select.d.ts +0 -26
- package/dist/silke/src/components/silke-toolbar/silke-toolbar.d.ts +0 -7
- package/dist/silke/src/components/silke-tooltip/silke-shortcuts.d.ts +0 -6
- package/dist/silke/src/docs/app.d.ts +0 -4
- package/dist/utils/src/color/hex.d.ts +0 -2
- package/dist/utils/src/color/index.d.ts +0 -1
- package/dist/utils/src/constants.d.ts +0 -2
- package/dist/utils/src/css/computed-to-css.d.ts +0 -8
- package/dist/utils/src/css/computed.d.ts +0 -5
- package/dist/utils/src/css/index.d.ts +0 -4
- package/dist/utils/src/css/number-format.d.ts +0 -1
- package/dist/utils/src/css/utils.d.ts +0 -14
- package/dist/utils/src/index.d.ts +0 -8
- package/dist/utils/src/keyboard/hooks.d.ts +0 -7
- package/dist/utils/src/keyboard/index.d.ts +0 -4
- package/dist/utils/src/keyboard/keyboard.d.ts +0 -70
- package/dist/utils/src/keyboard/keys.d.ts +0 -4
- package/dist/utils/src/math/index.d.ts +0 -9
- package/dist/utils/src/mouse/index.d.ts +0 -3
- package/dist/utils/src/mouse/mouse-manager.d.ts +0 -51
- package/dist/utils/src/types/content.d.ts +0 -11
- package/dist/utils/src/types/context.d.ts +0 -76
- package/dist/utils/src/types/css.d.ts +0 -131
- package/dist/utils/src/types/editable-css.d.ts +0 -7
- package/dist/utils/src/types/emoji.d.ts +0 -28
- package/dist/utils/src/types/event.d.ts +0 -6
- package/dist/utils/src/types/icon.d.ts +0 -10
- package/dist/utils/src/types/index.d.ts +0 -17
- package/dist/utils/src/types/link.d.ts +0 -47
- package/dist/utils/src/types/manifest.d.ts +0 -54
- package/dist/utils/src/types/oauth.d.ts +0 -13
- package/dist/utils/src/types/project.d.ts +0 -23
- package/dist/utils/src/types/shape.d.ts +0 -20
- package/dist/utils/src/types/transition.d.ts +0 -15
- package/dist/utils/src/types/vev-plugin.d.ts +0 -78
- package/dist/utils/src/types/vev-props.d.ts +0 -160
- package/dist/utils/src/types/widget-manifest.d.ts +0 -69
- package/dist/utils/src/types/widget.d.ts +0 -36
- package/dist/utils/src/utils/generate-guid.d.ts +0 -1
- package/dist/utils/src/utils/index.d.ts +0 -8
- package/dist/utils/src/utils/internals/asciiToArray.d.ts +0 -9
- package/dist/utils/src/utils/internals/castSlice.d.ts +0 -11
- package/dist/utils/src/utils/internals/createCaseFirst.d.ts +0 -9
- package/dist/utils/src/utils/internals/getTag.d.ts +0 -9
- package/dist/utils/src/utils/internals/hasUnicode.d.ts +0 -9
- package/dist/utils/src/utils/internals/stringToArray.d.ts +0 -9
- package/dist/utils/src/utils/internals/unicodeToArray.d.ts +0 -9
- package/dist/utils/src/utils/internals/unicodeWords.d.ts +0 -9
- package/dist/utils/src/utils/internals/upperFirst.d.ts +0 -18
- package/dist/utils/src/utils/is-array.d.ts +0 -25
- package/dist/utils/src/utils/is-length.d.ts +0 -26
- package/dist/utils/src/utils/is-string.d.ts +0 -17
- package/dist/utils/src/utils/main-components.d.ts +0 -7
- package/dist/utils/src/utils/slice.d.ts +0 -22
- package/dist/utils/src/utils/start-case.d.ts +0 -22
- package/dist/utils/src/utils/string.d.ts +0 -5
- package/dist/utils/src/utils/words.d.ts +0 -18
- package/src/components/silke-notification/index.ts +0 -1
- package/src/components/silke-steps/index.ts +0 -1
- package/src/components/silke-steps/silke-steps.mdx +0 -60
- package/src/components/silke-steps/silke-steps.scss +0 -14
- package/src/components/silke-steps/silke-steps.tsx +0 -53
- package/src/components/silke-tile/silke-tile-select.tsx +0 -100
- package/tsconfig.types.json +0 -19
- /package/dist/{silke/src → types}/components/silke-autocomplete-field/autocomplete-types.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-autocomplete-field/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-box/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-breadcrumbs/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-button/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-card/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-card/silke-card.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-checkbox/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-code-snippet/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-color-palettes/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-color-picker/hue.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-color-picker/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-color-swatches/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-color-swatches/silke-color-swatch-button.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-color-swatches/utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-content-column/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-context-menu/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-context-menu/silke-contect-menu-hooks.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-css-number-field/utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-divider/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-drawer/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/fields/utils/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/fields/utils/schema-util.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/safe-eval/iframe-handler.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/safe-eval/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/safe-eval/safe-eval.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/schema-utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-gradient-picker/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-gradient-picker/silke-gradient-utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-icon/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-icon/silke-icon.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-icon-picker/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-icon-picker/utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-iframe-portal/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-iframe-portal/silke-iframe-context.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-iframe-portal/silke-iframe-css-link.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-iframe-portal/silke-iframe-script.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-image/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-link/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-list/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-list-card/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-loader/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-modal/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-navigation-link/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-navigation-link/silke-navigation-link.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-object-field/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-overflow-menu/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-popover/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-progress-indicator/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-radio-button/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-search-field/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-select-field/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-skeleton/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-slider/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-slider/silke-slider-utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-table/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-tabs/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-tag/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-text/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-text/silke-text-types.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-text-field/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-text-field/silke-text-field-item.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-theme-editor/index.d.ts +0 -0
- /package/dist/{silke/src/components/silke-notification → types/components/silke-toast-notification}/confetti.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-toggle/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-toolbar/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-tooltip/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-tooltip/utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-upload-field/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-variables-wrapper/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-virtual/index.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/components/code-block/index.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/components/state-table/index.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/app/actions.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/app/constants.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/app/index.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/app/store.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/action-decorator.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/action-utils.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/controller.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/dispatcher.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/index.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/store.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/use-store.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/index.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/ipsum-generator.d.ts +0 -0
- /package/dist/{silke/src → types}/helpers/copy-to-clipboard.d.ts +0 -0
- /package/dist/{silke/src → types}/helpers/key-code.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/drag-and-drop/index.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/drag-and-drop/use-drop.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/form/index.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/form/use-form-field.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/image-colors/use-image-colors.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/index.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-callback-ref.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-dragging.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-drop-zone.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-html-element.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-interval.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-mouse.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-parent-scroll.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-scroll.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-size.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-uniq-id.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-window-resize.d.ts +0 -0
- /package/dist/{silke/src → types}/index.d.ts +0 -0
- /package/dist/{silke/src → types}/main.d.ts +0 -0
- /package/src/components/{silke-notification → silke-toast-notification}/confetti.tsx +0 -0
- /package/{jest → src/jest}/keys.ts +0 -0
|
@@ -16,5 +16,6 @@ export type SilkeSliderProps<T extends number | number[]> = FormFieldProps<T> &
|
|
|
16
16
|
onTrackClick?: (e: React.MouseEvent, value: number) => void;
|
|
17
17
|
onHandleClick?: (e: React.MouseEvent, index: number) => void;
|
|
18
18
|
onRequestRemove?: (index: number) => boolean;
|
|
19
|
+
debounceMs?: number;
|
|
19
20
|
};
|
|
20
|
-
export declare function SilkeSlider<T extends number | number[]>(props: SilkeSliderProps<T>):
|
|
21
|
+
export declare function SilkeSlider<T extends number | number[]>(props: SilkeSliderProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,5 +5,5 @@ type SliderTrackProps = {
|
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
range?: [start: number, end: number];
|
|
7
7
|
};
|
|
8
|
-
export declare function SliderTrack({ className, style, range, children }: SliderTrackProps):
|
|
8
|
+
export declare function SliderTrack({ className, style, range, children }: SliderTrackProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
package/dist/{silke/src → types}/components/silke-sortable-list/silke-nested-sortable-item.d.ts
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Item, RenderFunction } from './silke-nested-sortable-utils';
|
|
2
|
+
import { Item, RenderFunction, SilkeSortableIconComponent } from './silke-nested-sortable-utils';
|
|
3
3
|
type SilkeNestedSortableItemProps<T> = {
|
|
4
4
|
item: Item<T>;
|
|
5
5
|
state: number;
|
|
6
6
|
index: number;
|
|
7
7
|
className?: string;
|
|
8
|
+
replaceIcon?: SilkeSortableIconComponent<T>;
|
|
8
9
|
children: RenderFunction<T>;
|
|
9
10
|
onMouseDown?: (e: React.MouseEvent<HTMLDivElement>, item: Item<T>) => void;
|
|
10
11
|
onDoubleClick?: (e: React.MouseEvent<HTMLDivElement>, item: Item<T>) => void;
|
|
@@ -12,5 +13,5 @@ type SilkeNestedSortableItemProps<T> = {
|
|
|
12
13
|
onMouseEnter?: (e: React.MouseEvent, item: Item<T>) => void;
|
|
13
14
|
onMouseLeave?: (e: React.MouseEvent, item: Item<T>) => void;
|
|
14
15
|
};
|
|
15
|
-
export declare function SilkeNestedSortableItem<T>({ item, index, state, children, className, onCollapseToggle, onMouseDown, onDoubleClick, onMouseEnter, onMouseLeave, }: SilkeNestedSortableItemProps<T>):
|
|
16
|
+
export declare function SilkeNestedSortableItem<T>({ item, index, state, children, replaceIcon, className, onCollapseToggle, onMouseDown, onDoubleClick, onMouseEnter, onMouseLeave, }: SilkeNestedSortableItemProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
16
17
|
export {};
|
package/dist/{silke/src → types}/components/silke-sortable-list/silke-nested-sortable-list.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BoxProps } from '../silke-box';
|
|
3
|
-
import { Item, RenderFunction } from './silke-nested-sortable-utils';
|
|
3
|
+
import { Item, RenderFunction, SilkeSortableIconComponent } from './silke-nested-sortable-utils';
|
|
4
4
|
type SilkeNestedSortableListProps<T> = {
|
|
5
5
|
/** Items in the root to start from, fallback is to use items with no parents */
|
|
6
6
|
rootItems?: string[];
|
|
@@ -9,6 +9,7 @@ type SilkeNestedSortableListProps<T> = {
|
|
|
9
9
|
collapsed?: (item: Item<T>) => boolean;
|
|
10
10
|
classNameItem?: string | ((item: Item<T>) => string);
|
|
11
11
|
children: RenderFunction<T>;
|
|
12
|
+
replaceIcon?: SilkeSortableIconComponent<T>;
|
|
12
13
|
onSort?: (updateList: Item<T>[], parentKey: string | undefined, childIndex: number) => void;
|
|
13
14
|
canHaveChildren?: (item: Item<T>) => boolean;
|
|
14
15
|
canDrag?: (selected: string[]) => boolean;
|
|
@@ -21,5 +22,5 @@ type SilkeNestedSortableListProps<T> = {
|
|
|
21
22
|
onItemMouseLeave?: (e: React.MouseEvent, item: Item<T>) => void;
|
|
22
23
|
onItemContextMenu?: (e: React.MouseEvent, item: Item<T>) => void;
|
|
23
24
|
} & Omit<BoxProps, 'children'>;
|
|
24
|
-
export declare function SilkeNestedSortableList<T>({ rootItems, items, selected, collapsed, children, className, classNameItem, onSort, canHaveChildren, canSort, canDrag, onCollapse, onItemClick, onItemDoubleClick, onItemMouseEnter, onItemMouseLeave, onItemContextMenu, ...rest }: SilkeNestedSortableListProps<T>):
|
|
25
|
+
export declare function SilkeNestedSortableList<T>({ rootItems, items, selected, collapsed, children, className, classNameItem, replaceIcon, onSort, canHaveChildren, canSort, canDrag, onCollapse, onItemClick, onItemDoubleClick, onItemMouseEnter, onItemMouseLeave, onItemContextMenu, ...rest }: SilkeNestedSortableListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
25
26
|
export {};
|
package/dist/{silke/src → types}/components/silke-sortable-list/silke-nested-sortable-utils.d.ts
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Dictionary } from 'lodash';
|
|
2
2
|
import { SilkeIcons } from '../silke-icon';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
export type RenderFunction<T> = (item: Item<T>, index: number) => React.ReactElement;
|
|
4
5
|
export type Item<T> = T & {
|
|
5
6
|
key: string;
|
|
@@ -11,12 +12,21 @@ export type Item<T> = T & {
|
|
|
11
12
|
/** Override the default behavior with checking for children length */
|
|
12
13
|
showExpandIcon?: boolean;
|
|
13
14
|
style?: React.CSSProperties;
|
|
15
|
+
disableCollapse?: boolean;
|
|
14
16
|
/** Overwrite icon */
|
|
15
17
|
replaceIcon?: {
|
|
16
18
|
icon: SilkeIcons;
|
|
17
19
|
color: string;
|
|
18
|
-
}
|
|
20
|
+
} | SilkeSortableIconComponent<T>;
|
|
19
21
|
};
|
|
22
|
+
export type SilkeSortableIconProps<T> = {
|
|
23
|
+
collapsed: boolean;
|
|
24
|
+
selected: boolean;
|
|
25
|
+
hasChildren: boolean;
|
|
26
|
+
item: Item<T>;
|
|
27
|
+
onMouseDown?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
28
|
+
};
|
|
29
|
+
export type SilkeSortableIconComponent<T> = React.FC<SilkeSortableIconProps<T>>;
|
|
20
30
|
export declare enum ItemState {
|
|
21
31
|
indentBit1 = 1,
|
|
22
32
|
indentBit2 = 2,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/{silke/src → types}/components/silke-sortable-list/silke-sortable-item-wrapper.d.ts
RENAMED
|
@@ -7,6 +7,7 @@ type SilkeSortableItemWrapperProps<T> = {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
children: React.ReactElement;
|
|
9
9
|
onSort: (sortedItems: T[]) => void;
|
|
10
|
+
disabled?: boolean;
|
|
10
11
|
};
|
|
11
|
-
export declare function SilkeSortableItemWrapper<T>({ index, items, listId, children, triggerState, className, onSort, }: SilkeSortableItemWrapperProps<T>):
|
|
12
|
+
export declare function SilkeSortableItemWrapper<T>({ index, items, listId, children, triggerState, className, disabled, onSort, }: SilkeSortableItemWrapperProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -10,6 +10,7 @@ type SilkeSortableListProps<T> = {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
children: (item: T, index: number) => React.ReactElement;
|
|
12
12
|
onSort: (sortedItems: T[]) => void;
|
|
13
|
+
canSort?: (item: T) => boolean;
|
|
13
14
|
};
|
|
14
|
-
export declare function SilkeSortableList<T>({ items, listId, triggerState, children, showSortAsBox, disabled, onSort, }: SilkeSortableListProps<T>):
|
|
15
|
+
export declare function SilkeSortableList<T>({ items, listId, triggerState, children, showSortAsBox, disabled, canSort, onSort, }: SilkeSortableListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -11,17 +11,20 @@ type BaseProps<T extends Record<string, any>> = {
|
|
|
11
11
|
items: T[];
|
|
12
12
|
loadMoreLabel?: string;
|
|
13
13
|
onLoadMore?: () => Promise<void>;
|
|
14
|
+
onRowHovered?: (index: number) => void;
|
|
14
15
|
} & Omit<HTMLAttributes<HTMLTableElement>, 'cellPadding' | 'cellSpacing' | 'onSelect'>;
|
|
15
16
|
type SingleSelect<T extends Record<string, any>> = BaseProps<T> & {
|
|
16
17
|
multiselect?: false | undefined;
|
|
18
|
+
multiselectLabel?: string;
|
|
17
19
|
selected?: T;
|
|
18
20
|
onSelect?: (item: T) => void;
|
|
19
21
|
};
|
|
20
22
|
type MultiSelect<T extends Record<string, any>> = BaseProps<T> & {
|
|
21
23
|
multiselect: true;
|
|
24
|
+
multiselectLabel?: string;
|
|
22
25
|
selected?: T[];
|
|
23
26
|
onSelect: (items: T[]) => void;
|
|
24
27
|
};
|
|
25
28
|
type SilkeTableProps<T extends Record<string, any>> = SingleSelect<T> | MultiSelect<T>;
|
|
26
|
-
export declare function SilkeTable<T extends Record<string, any>>({ items, columns: _columns, children, fixedColumns, className, search, hideHeaders, menu, multiselect, selected, onSelect, loadMoreLabel, onLoadMore, ...rest }: SilkeTableProps<T>):
|
|
29
|
+
export declare function SilkeTable<T extends Record<string, any>>({ items, columns: _columns, children, fixedColumns, className, search, hideHeaders, menu, multiselect, multiselectLabel, selected, onSelect, loadMoreLabel, onLoadMore, onRowHovered, ...rest }: SilkeTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
27
30
|
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { TableColumn, TableRowMenu } from './table-types';
|
|
3
2
|
type TableRowProps<T> = {
|
|
4
3
|
item: T;
|
|
4
|
+
index: number;
|
|
5
5
|
columns: TableColumn<T>[];
|
|
6
6
|
selected?: boolean;
|
|
7
7
|
multiselect?: boolean;
|
|
8
8
|
search?: RegExp;
|
|
9
9
|
menu?: TableRowMenu<T>[];
|
|
10
10
|
onSelect?: (value: T, select: boolean) => void;
|
|
11
|
+
onHover?: () => void;
|
|
11
12
|
};
|
|
12
|
-
export declare function TableRow<T>({ item, columns, search, menu, multiselect, selected, onSelect, }: TableRowProps<T>):
|
|
13
|
+
export declare function TableRow<T>({ item, index, columns, search, menu, multiselect, selected, onSelect, onHover, }: TableRowProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
13
14
|
export {};
|
|
@@ -2,9 +2,10 @@ import { SilkeOverflowMenuItem } from '../silke-overflow-menu';
|
|
|
2
2
|
export type TableColumn<T, K extends keyof T = keyof T> = {
|
|
3
3
|
attr: K;
|
|
4
4
|
label?: string;
|
|
5
|
+
component?: React.ReactNode;
|
|
5
6
|
width?: number | string;
|
|
6
7
|
align?: 'left' | 'center' | 'right';
|
|
7
|
-
transform?: (value: T[K], model: T) => React.ReactNode;
|
|
8
|
+
transform?: (value: T[K], model: T, index: number) => React.ReactNode;
|
|
8
9
|
};
|
|
9
10
|
export type TableRowMenu<T> = 'divider' | (Omit<SilkeOverflowMenuItem, 'onClick'> & {
|
|
10
11
|
isVisible?: (item: T) => boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxButtonProps } from '../silke-box';
|
|
3
|
+
import { SilkeIcons } from '../silke-icon';
|
|
4
|
+
type IconColor = 'default' | 'neutral' | 'accent' | 'error' | 'success' | 'warning';
|
|
5
|
+
export type SilkeTabProps = {
|
|
6
|
+
label: React.ReactNode;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
icon?: SilkeIcons;
|
|
9
|
+
iconColor?: IconColor;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
} & Omit<BoxButtonProps, 'size' | 'height' | 'width' | 'rounded' | 'children'>;
|
|
12
|
+
export declare function SilkeTab({ label, active, className, icon, iconColor, ...rest }: SilkeTabProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -4,5 +4,5 @@ type TabsProps = {
|
|
|
4
4
|
size?: 's' | 'base';
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
} & Omit<BoxDivProps, 'size' | 'height' | 'width'>;
|
|
7
|
-
export declare function SilkeTabs({ children, size, className, ...rest }: TabsProps):
|
|
7
|
+
export declare function SilkeTabs({ children, size, className, ...rest }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BoxProps, BoxSpace } from '../silke-box';
|
|
3
3
|
import { SilkeIcons } from '../silke-icon';
|
|
4
|
-
export type SilkeTagKind = 'primary' | 'secondary'
|
|
5
|
-
export type SilkeTagColor = '
|
|
4
|
+
export type SilkeTagKind = 'primary' | 'secondary';
|
|
5
|
+
export type SilkeTagColor = 'yellow' | 'green' | 'red' | 'gray' | 'blue' | 'purple' | 'dark';
|
|
6
6
|
export type SilkeTagSize = 'tiny';
|
|
7
7
|
export type SilkeTagProps = {
|
|
8
8
|
disabled?: boolean;
|
|
@@ -32,9 +32,9 @@ export declare const SilkeTag: React.ForwardRefExoticComponent<{
|
|
|
32
32
|
*/
|
|
33
33
|
onRemove?: (e: React.MouseEvent) => void;
|
|
34
34
|
} & Omit<BoxProps, "color" | "size"> & React.RefAttributes<unknown>>;
|
|
35
|
-
export declare const
|
|
36
|
-
export declare const SilkeTagYellow: ({ color, ...rest }: SilkeTagProps) =>
|
|
37
|
-
export declare const SilkeTagGreen: ({ color, ...rest }: SilkeTagProps) =>
|
|
38
|
-
export declare const SilkeTagRed: ({ color, ...rest }: SilkeTagProps) =>
|
|
39
|
-
export declare const SilkeTagGray: ({ color, ...rest }: SilkeTagProps) =>
|
|
40
|
-
export declare const SilkeTagBlue: ({ color, ...rest }: SilkeTagProps) =>
|
|
35
|
+
export declare const SilkeTagDark: ({ color, ...rest }: SilkeTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare const SilkeTagYellow: ({ color, ...rest }: SilkeTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const SilkeTagGreen: ({ color, ...rest }: SilkeTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare const SilkeTagRed: ({ color, ...rest }: SilkeTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const SilkeTagGray: ({ color, ...rest }: SilkeTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare const SilkeTagBlue: ({ color, ...rest }: SilkeTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,12 +9,14 @@ export declare function SilkeText({ tag, color, weight, flex, overflow, brandFon
|
|
|
9
9
|
suppressContentEditableWarning?: boolean | undefined;
|
|
10
10
|
suppressHydrationWarning?: boolean | undefined;
|
|
11
11
|
accessKey?: string | undefined;
|
|
12
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
12
13
|
autoFocus?: boolean | undefined;
|
|
13
14
|
className?: string | undefined;
|
|
14
15
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
15
16
|
contextMenu?: string | undefined;
|
|
16
17
|
dir?: string | undefined;
|
|
17
18
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
19
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
18
20
|
hidden?: boolean | undefined;
|
|
19
21
|
id?: string | undefined;
|
|
20
22
|
lang?: string | undefined;
|
|
@@ -38,7 +40,6 @@ export declare function SilkeText({ tag, color, weight, flex, overflow, brandFon
|
|
|
38
40
|
rev?: string | undefined;
|
|
39
41
|
typeof?: string | undefined;
|
|
40
42
|
vocab?: string | undefined;
|
|
41
|
-
autoCapitalize?: string | undefined;
|
|
42
43
|
autoCorrect?: string | undefined;
|
|
43
44
|
autoSave?: string | undefined;
|
|
44
45
|
itemProp?: string | undefined;
|
|
@@ -51,6 +52,8 @@ export declare function SilkeText({ tag, color, weight, flex, overflow, brandFon
|
|
|
51
52
|
unselectable?: "on" | "off" | undefined;
|
|
52
53
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
53
54
|
is?: string | undefined;
|
|
55
|
+
exportparts?: string | undefined;
|
|
56
|
+
part?: string | undefined;
|
|
54
57
|
"aria-activedescendant"?: string | undefined;
|
|
55
58
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
56
59
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -125,7 +128,7 @@ export declare function SilkeText({ tag, color, weight, flex, overflow, brandFon
|
|
|
125
128
|
onBlurCapture?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
126
129
|
onChange?: React.FormEventHandler<HTMLElement> | undefined;
|
|
127
130
|
onChangeCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
128
|
-
onBeforeInput?: React.
|
|
131
|
+
onBeforeInput?: React.InputEventHandler<HTMLElement> | undefined;
|
|
129
132
|
onBeforeInputCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
130
133
|
onInput?: React.FormEventHandler<HTMLElement> | undefined;
|
|
131
134
|
onInputCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
@@ -175,8 +178,6 @@ export declare function SilkeText({ tag, color, weight, flex, overflow, brandFon
|
|
|
175
178
|
onProgressCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
176
179
|
onRateChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
177
180
|
onRateChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
178
|
-
onResize?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
179
|
-
onResizeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
180
181
|
onSeeked?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
181
182
|
onSeekedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
182
183
|
onSeeking?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
@@ -268,5 +269,5 @@ export declare function SilkeText({ tag, color, weight, flex, overflow, brandFon
|
|
|
268
269
|
onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
269
270
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
270
271
|
}, HTMLElement>;
|
|
271
|
-
export declare const SilkeTextSmall: (props: SilkeTextTextProps) =>
|
|
272
|
-
export declare const SilkeTextMicro: (props: SilkeTextTextProps) =>
|
|
272
|
+
export declare const SilkeTextSmall: (props: SilkeTextTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
273
|
+
export declare const SilkeTextMicro: (props: SilkeTextTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { SilkeTitleProps } from './silke-text-types';
|
|
3
|
-
export declare function SilkeTitle({ tag, kind, color, weight, flex, overflow, size, className, ...rest }: SilkeTitleProps):
|
|
2
|
+
export declare function SilkeTitle({ tag, kind, color, weight, flex, overflow, size, className, ...rest }: SilkeTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BoxProps,
|
|
3
|
-
|
|
4
|
-
export declare const getInputSize: (boxSize: BoxSize | undefined) => InputSize;
|
|
2
|
+
import { BoxProps, BoxSpace } from '../silke-box';
|
|
3
|
+
import { SilkeInputSize } from './silke-text-field';
|
|
5
4
|
export type SilkeTextFieldOutlineProps = {
|
|
6
5
|
error?: string;
|
|
7
6
|
className?: string;
|
|
8
7
|
label?: React.ReactNode;
|
|
8
|
+
labelAlign?: BoxProps['hAlign'];
|
|
9
9
|
flex?: boolean;
|
|
10
|
-
size?:
|
|
10
|
+
size?: SilkeInputSize;
|
|
11
11
|
kind?: 'default' | 'ghost' | 'zombie';
|
|
12
|
-
width?: number;
|
|
12
|
+
width?: number | string;
|
|
13
13
|
/** Flex gap added to the container with the children */
|
|
14
14
|
gap?: BoxSpace;
|
|
15
15
|
/** Horizontal padding added to the container with the children */
|
|
@@ -31,8 +31,8 @@ export type SilkeTextFieldOutlineProps = {
|
|
|
31
31
|
labelUsingAria?: boolean;
|
|
32
32
|
onClick?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
33
33
|
onMouseDown?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
34
|
+
onContextMenu?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
34
35
|
disabled?: boolean;
|
|
35
36
|
tooltip?: string;
|
|
36
37
|
};
|
|
37
38
|
export declare const SilkeTextFieldOutline: React.ForwardRefExoticComponent<SilkeTextFieldOutlineProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
-
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes, InputHTMLAttributes } from 'react';
|
|
2
2
|
import { FormFieldProps } from '../silke-form';
|
|
3
3
|
import { SilkeTextFieldOutlineProps } from './silke-text-field-outline';
|
|
4
|
+
export type SilkeInputSize = 's' | 'base';
|
|
4
5
|
type BaseProps<T> = FormFieldProps<T> & SilkeTextFieldOutlineProps & {
|
|
5
6
|
autocomplete?: boolean;
|
|
6
7
|
autoFocus?: boolean;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SilkeTextFieldProps } from './silke-text-field';
|
|
3
|
-
|
|
3
|
+
import { SilkeColor } from '../../silke-theme-provider';
|
|
4
|
+
type TextFieldContextType = Pick<SilkeTextFieldProps, 'kind' | 'size' | 'inline' | 'readOnly'> & {
|
|
5
|
+
color?: SilkeColor;
|
|
6
|
+
};
|
|
4
7
|
type TextFieldContextProps = {
|
|
5
8
|
children: React.ReactNode;
|
|
6
9
|
} & TextFieldContextType;
|
|
7
10
|
export declare function useTextFieldContext(): TextFieldContextType;
|
|
8
|
-
export default function TextFieldContext({ children, ...rest }: TextFieldContextProps):
|
|
11
|
+
export default function TextFieldContext({ children, ...rest }: TextFieldContextProps): import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { SilkeColorTheme } from '../../silke-theme-provider';
|
|
3
2
|
type SilkeThemeEditorProps = {
|
|
4
3
|
theme: SilkeColorTheme;
|
|
5
4
|
search?: string;
|
|
6
5
|
onChange: (theme: SilkeColorTheme) => void;
|
|
7
6
|
};
|
|
8
|
-
export declare function SilkeThemeEditor({ theme, search, onChange }: SilkeThemeEditorProps):
|
|
7
|
+
export declare function SilkeThemeEditor({ theme, search, onChange }: SilkeThemeEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-tile';
|
|
@@ -32,7 +32,7 @@ export type SilkeTileProps = {
|
|
|
32
32
|
hideSelectedCheck?: boolean;
|
|
33
33
|
children?: React.ReactNode | React.ReactNode[];
|
|
34
34
|
} & Omit<BoxDivProps, 'title' | 'width' | 'height' | 'size' | 'children'>;
|
|
35
|
-
export declare function SilkeTile({ image, icon, title, titleKind, subTitle, text, loading, children, className, width, selected, menu, expanded, expandable, onExpand, tags, expandOpenText, expandCloseText, expandLoadingText, hideSelectedCheck, ...rest }: SilkeTileProps):
|
|
35
|
+
export declare function SilkeTile({ image, icon, title, titleKind, subTitle, text, loading, children, className, width, selected, menu, expanded, expandable, onExpand, tags, expandOpenText, expandCloseText, expandLoadingText, hideSelectedCheck, ...rest }: SilkeTileProps): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
type SilkeTileActions = Omit<SilkeButtonSetProps, 'size'>;
|
|
37
|
-
export declare function SilkeTileActions({ children, className, ...rest }: SilkeTileActions):
|
|
37
|
+
export declare function SilkeTileActions({ children, className, ...rest }: SilkeTileActions): import("react/jsx-runtime").JSX.Element;
|
|
38
38
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-toast-notification';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxDivProps } from '../silke-box';
|
|
3
|
+
import { SilkeIcons } from '../silke-icon';
|
|
4
|
+
export type ToastNotificationKind = 'warning' | 'error' | 'success' | 'information' | 'confetti';
|
|
5
|
+
export type SilkeToastNotificationProps = {
|
|
6
|
+
kind: ToastNotificationKind;
|
|
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
|
+
} & Omit<BoxDivProps, 'height' | 'width' | 'tag'>;
|
|
21
|
+
export declare function SilkeToastNotification({ title, subtitle, className, kind, onAction, actionLabel, onRemove, fluid, icon, ...rest }: SilkeToastNotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,5 +8,5 @@ type Props = FormFieldProps<boolean> & Omit<HTMLAttributes<HTMLInputElement>, 'o
|
|
|
8
8
|
small?: boolean;
|
|
9
9
|
help?: React.ReactNode;
|
|
10
10
|
};
|
|
11
|
-
export declare function SilkeToggle(props: Props):
|
|
11
|
+
export declare function SilkeToggle(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoxDivProps } from '../silke-box';
|
|
2
|
+
import { SilkeInputSize } from '../silke-text-field/silke-text-field';
|
|
3
|
+
type SilkeToolbarProps = {
|
|
4
|
+
size?: SilkeInputSize;
|
|
5
|
+
} & Omit<BoxDivProps, 'height' | 'width' | 'tag'>;
|
|
6
|
+
export declare function SilkeToolbar({ size, children, className, ...rest }: SilkeToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -8,9 +8,10 @@ type SilkeDefinitionTooltipProps = {
|
|
|
8
8
|
size?: SilkeTooltipSize;
|
|
9
9
|
kind?: 'default' | 'info';
|
|
10
10
|
tooltip: React.ReactNode;
|
|
11
|
+
hideBorder?: boolean;
|
|
11
12
|
} & Omit<SilkeTooltipProps, 'children' | 'anchor' | 'show'>;
|
|
12
13
|
/**
|
|
13
14
|
* Wrap some text in this to show extra context
|
|
14
15
|
*/
|
|
15
|
-
export declare function SilkeDefinitionTooltip({ className, children, show, tooltip, style, size, anchorOrigin, ...rest }: SilkeDefinitionTooltipProps):
|
|
16
|
+
export declare function SilkeDefinitionTooltip({ className, children, show, tooltip, style, size, anchorOrigin, hideBorder, ...rest }: SilkeDefinitionTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export {};
|
|
@@ -5,13 +5,15 @@ import { SilkeTooltipProps } from './silke-tooltip';
|
|
|
5
5
|
type SilkeIconTooltipProps = {
|
|
6
6
|
icon?: SilkeIcons;
|
|
7
7
|
tooltip: React.ReactNode;
|
|
8
|
+
tooltipTitle?: string;
|
|
8
9
|
shortcut?: KeyboardEventCode[] | KeyboardEventCode;
|
|
9
10
|
show?: boolean;
|
|
10
11
|
/** If interaction content in the tooltip then this should be set to true */
|
|
11
12
|
interactive?: boolean;
|
|
13
|
+
noMargin?: boolean;
|
|
12
14
|
} & Omit<SilkeTooltipProps, 'children' | 'anchor' | 'show'>;
|
|
13
15
|
/**
|
|
14
16
|
* Shows an icon with a tooltip anchored to it
|
|
15
17
|
*/
|
|
16
|
-
export declare function SilkeIconTooltip({ icon, interactive, shortcut, show, tooltip, size, ...rest }: SilkeIconTooltipProps):
|
|
18
|
+
export declare function SilkeIconTooltip({ icon, interactive, shortcut, show, tooltip, tooltipTitle, size, noMargin, ...rest }: SilkeIconTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
17
19
|
export {};
|
|
@@ -20,5 +20,5 @@ interface SilkeInteractiveTooltipProps {
|
|
|
20
20
|
/**
|
|
21
21
|
* Shows a tooltip with a series of steps
|
|
22
22
|
*/
|
|
23
|
-
export declare function SilkeInteractiveTooltip({ anchor, lastIsNotLast, onFinished, show, steps, }: SilkeInteractiveTooltipProps):
|
|
23
|
+
export declare function SilkeInteractiveTooltip({ anchor, lastIsNotLast, onFinished, show, steps, }: SilkeInteractiveTooltipProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
24
|
export {};
|
|
@@ -17,9 +17,14 @@ export type SilkeTooltipProps = {
|
|
|
17
17
|
anchorOrigin?: PopoverOrigin;
|
|
18
18
|
title?: string;
|
|
19
19
|
children?: React.ReactNode;
|
|
20
|
+
offsetX?: number;
|
|
21
|
+
offsetY?: number;
|
|
22
|
+
zIndex?: number;
|
|
20
23
|
onRequestClose?: () => void;
|
|
24
|
+
onClick?: () => void;
|
|
25
|
+
onImageClick?: () => void;
|
|
21
26
|
};
|
|
22
27
|
/**
|
|
23
28
|
* Tooltip component. Needs an anchor, shows a little tip.
|
|
24
29
|
*/
|
|
25
|
-
export declare function SilkeTooltip({ kind, anchor, anchorOrigin, targetOrigin, show, children, noArrow, image, size, title, onRequestClose, }: SilkeTooltipProps):
|
|
30
|
+
export declare function SilkeTooltip({ kind, anchor, anchorOrigin, targetOrigin, show, children, noArrow, image, size, title, offsetX, offsetY, zIndex, onClick, onRequestClose, onImageClick, }: SilkeTooltipProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -29,5 +29,5 @@ type SilkeUploadFieldProps = (SingleField | MultipleField) & {
|
|
|
29
29
|
dropzoneStyle?: React.CSSProperties;
|
|
30
30
|
fileItemStyle?: React.CSSProperties;
|
|
31
31
|
};
|
|
32
|
-
export declare function SilkeUploadField(props: SilkeUploadFieldProps):
|
|
32
|
+
export declare function SilkeUploadField(props: SilkeUploadFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type SilkeVariablesWrapperFormProps = {
|
|
3
|
-
|
|
3
|
+
variableValue: string;
|
|
4
4
|
containerRef?: React.RefObject<HTMLDivElement>;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
onSubmit: (form: {
|
|
6
|
+
variableName: string;
|
|
7
|
+
}) => void;
|
|
7
8
|
onClose: () => void;
|
|
8
9
|
};
|
|
9
|
-
export declare function SilkeVariablesWrapperForm(props: SilkeVariablesWrapperFormProps):
|
|
10
|
+
export declare function SilkeVariablesWrapperForm(props: SilkeVariablesWrapperFormProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export declare namespace SilkeVariablesWrapperForm {
|
|
11
12
|
var displayName: string;
|
|
12
13
|
}
|
package/dist/{silke/src → types}/components/silke-variables-wrapper/silke-variables-wrapper.d.ts
RENAMED
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
key: string;
|
|
4
|
-
name: string;
|
|
5
|
-
type: string;
|
|
6
|
-
value?: string;
|
|
7
|
-
unit?: string;
|
|
8
|
-
};
|
|
2
|
+
import { LocalVariable } from '@vev/utils';
|
|
9
3
|
export type SilkeVariablesWrapperProps<T extends React.ElementType> = {
|
|
10
4
|
component?: T;
|
|
11
5
|
value: string;
|
|
12
6
|
formats?: string[];
|
|
13
7
|
variableType?: string;
|
|
14
8
|
fullWidthWrapper?: boolean;
|
|
9
|
+
templateVariable?: boolean;
|
|
15
10
|
onChange: (value: string) => void;
|
|
16
11
|
onVariableAdd?: (variable: LocalVariable) => Promise<string>;
|
|
17
12
|
onVariableEdit?: (key: string) => void;
|
|
18
13
|
} & React.ComponentProps<T>;
|
|
19
|
-
export declare function SilkeVariablesWrapper<T extends React.ElementType>(
|
|
14
|
+
export declare function SilkeVariablesWrapper<T extends React.ElementType>({ component, formats, variableType, fullWidthWrapper, templateVariable, onVariableAdd, onVariableEdit, ...rest }: SilkeVariablesWrapperProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
20
15
|
export declare namespace SilkeVariablesWrapper {
|
|
21
16
|
var displayName: string;
|
|
22
17
|
}
|
|
@@ -5,5 +5,5 @@ type SilkeVirtualGridProps<T> = {
|
|
|
5
5
|
children: (item: T, index: number) => React.ReactNode;
|
|
6
6
|
rowAttrs?: (rowIndex: number) => Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
|
|
7
7
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
|
|
8
|
-
export declare function SilkeVirtualGrid<T>({ items, cell, children, rowAttrs, className, style, ...rest }: SilkeVirtualGridProps<T>):
|
|
8
|
+
export declare function SilkeVirtualGrid<T>({ items, cell, children, rowAttrs, className, style, ...rest }: SilkeVirtualGridProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -6,5 +6,5 @@ type SilkeVirtualRowProps<T> = {
|
|
|
6
6
|
children: (item: T, index: number) => React.ReactNode;
|
|
7
7
|
rowAttrs?: (rowIndex: number) => Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
|
|
8
8
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
|
|
9
|
-
export declare function SilkeVirtualRow<T>({ children, rowAttrs, items, className, indexOffset, style, height, ...rest }: SilkeVirtualRowProps<T>):
|
|
9
|
+
export declare function SilkeVirtualRow<T>({ children, rowAttrs, items, className, indexOffset, style, height, ...rest }: SilkeVirtualRowProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
interface CodeBlockProps {
|
|
3
2
|
children: string;
|
|
4
3
|
}
|
|
5
|
-
export declare function CodeBlock({ children }: CodeBlockProps):
|
|
4
|
+
export declare function CodeBlock({ children }: CodeBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
type State = {
|
|
3
2
|
label: string;
|
|
4
3
|
inherit?: any;
|
|
@@ -10,5 +9,5 @@ interface StateTableProps {
|
|
|
10
9
|
states: State[];
|
|
11
10
|
props: any[][];
|
|
12
11
|
}
|
|
13
|
-
export declare function StateTable({ headers, states, props, component: Comp }: StateTableProps):
|
|
12
|
+
export declare function StateTable({ headers, states, props, component: Comp }: StateTableProps): import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export {};
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
interface DocsProviderProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare function DocsProvider({ children }: DocsProviderProps):
|
|
5
|
+
export declare function DocsProvider({ children }: DocsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
File without changes
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
2
|
export type SilkeDragState = 'none' | 'dragging';
|
|
3
3
|
type DragData<T> = MutableRefObject<T>;
|
|
4
|
-
export declare function getDragData(): DragData<
|
|
5
|
-
export declare function useDrag<T>({ data, disabled, ref, }: {
|
|
4
|
+
export declare function getDragData<T = any>(): DragData<T>;
|
|
5
|
+
export declare function useDrag<T>({ data, disabled, isolated, ref, }: {
|
|
6
6
|
data: T;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
isolated?: boolean;
|
|
8
9
|
ref: MutableRefObject<HTMLElement | undefined | null>;
|
|
9
10
|
}): SilkeDragState;
|
|
10
11
|
export {};
|