@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
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# Action Box
|
|
2
|
+
|
|
3
|
+
## With button
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
const title = 'Warning';
|
|
7
|
+
const subtitle = 'Some subitle text here';
|
|
8
|
+
|
|
9
|
+
const types = ['inline', 'stacked', 'centered'];
|
|
10
|
+
|
|
11
|
+
<SilkeBox gap>
|
|
12
|
+
<SilkeBox column gap>
|
|
13
|
+
{types.map((type, i) => (
|
|
14
|
+
<SilkeActionBox
|
|
15
|
+
key={i}
|
|
16
|
+
kind={type}
|
|
17
|
+
title="The content has been updated"
|
|
18
|
+
icon="widget"
|
|
19
|
+
buttons={[{ label: 'View', kind: 'secondary' }]}
|
|
20
|
+
/>
|
|
21
|
+
))}
|
|
22
|
+
</SilkeBox>
|
|
23
|
+
</SilkeBox>;
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## With link
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
const title = 'Warning';
|
|
30
|
+
const subtitle = 'Some subitle text here';
|
|
31
|
+
|
|
32
|
+
const types = ['inline', 'stacked', 'centered'];
|
|
33
|
+
|
|
34
|
+
<SilkeBox gap>
|
|
35
|
+
<SilkeBox column gap>
|
|
36
|
+
{types.map((type, i) => (
|
|
37
|
+
<SilkeActionBox
|
|
38
|
+
key={i}
|
|
39
|
+
kind={type}
|
|
40
|
+
title="The content has been updated"
|
|
41
|
+
icon="widget"
|
|
42
|
+
link={{ label: 'View', href: '#' }}
|
|
43
|
+
/>
|
|
44
|
+
))}
|
|
45
|
+
</SilkeBox>
|
|
46
|
+
</SilkeBox>;
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## With multiple buttons
|
|
50
|
+
|
|
51
|
+
```js
|
|
52
|
+
const title = 'Warning';
|
|
53
|
+
const subtitle = 'Some subitle text here';
|
|
54
|
+
|
|
55
|
+
const types = ['inline', 'stacked', 'centered'];
|
|
56
|
+
|
|
57
|
+
<SilkeBox gap>
|
|
58
|
+
<SilkeBox column gap>
|
|
59
|
+
{types.map((type, i) => (
|
|
60
|
+
<SilkeActionBox
|
|
61
|
+
key={i}
|
|
62
|
+
kind={type}
|
|
63
|
+
title="The content has been updated"
|
|
64
|
+
icon="widget"
|
|
65
|
+
buttons={[
|
|
66
|
+
{ label: 'Confirm', kind: 'primary' },
|
|
67
|
+
{ label: 'Cancel', kind: 'secondary' },
|
|
68
|
+
]}
|
|
69
|
+
/>
|
|
70
|
+
))}
|
|
71
|
+
</SilkeBox>
|
|
72
|
+
</SilkeBox>;
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Without icon
|
|
76
|
+
|
|
77
|
+
```js
|
|
78
|
+
const title = 'Warning';
|
|
79
|
+
const subtitle = 'Some subitle text here';
|
|
80
|
+
|
|
81
|
+
const types = ['inline', 'stacked', 'centered'];
|
|
82
|
+
|
|
83
|
+
<SilkeBox gap>
|
|
84
|
+
<SilkeBox column gap>
|
|
85
|
+
{types.map((type, i) => (
|
|
86
|
+
<SilkeActionBox
|
|
87
|
+
key={i}
|
|
88
|
+
kind={type}
|
|
89
|
+
title="The content has been updated"
|
|
90
|
+
buttons={[{ label: 'View', kind: 'secondary' }]}
|
|
91
|
+
/>
|
|
92
|
+
))}
|
|
93
|
+
</SilkeBox>
|
|
94
|
+
</SilkeBox>;
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## With custom contents
|
|
98
|
+
|
|
99
|
+
```js
|
|
100
|
+
<SilkeBox column gap>
|
|
101
|
+
<SilkeBox style={{ width: '250px' }}>
|
|
102
|
+
<SilkeActionBox kind="inline" icon="refresh" buttons={[{ label: 'Review', kind: 'secondary' }]}>
|
|
103
|
+
<div
|
|
104
|
+
style={{
|
|
105
|
+
display: '-webkit-box',
|
|
106
|
+
'-webkit-line-clamp': '2',
|
|
107
|
+
'-webkit-box-orient': 'vertical',
|
|
108
|
+
overflow: 'hidden',
|
|
109
|
+
}}
|
|
110
|
+
>
|
|
111
|
+
<SilkeText size="small">
|
|
112
|
+
Update available for{' '}
|
|
113
|
+
<SilkeText weight="strong" size="small">
|
|
114
|
+
6 components
|
|
115
|
+
</SilkeText>
|
|
116
|
+
</SilkeText>
|
|
117
|
+
</div>
|
|
118
|
+
</SilkeActionBox>
|
|
119
|
+
</SilkeBox>
|
|
120
|
+
|
|
121
|
+
<SilkeBox style={{ width: '200px' }}>
|
|
122
|
+
<SilkeActionBox
|
|
123
|
+
kind="centered"
|
|
124
|
+
link={{
|
|
125
|
+
label: 'Learn more',
|
|
126
|
+
href: 'https://help.vev.design/en/articles/6237869-main-components',
|
|
127
|
+
external: true,
|
|
128
|
+
}}
|
|
129
|
+
>
|
|
130
|
+
<SilkeBox column gap="xs">
|
|
131
|
+
<SilkeText weight="strong" size="small">
|
|
132
|
+
Create a Main component
|
|
133
|
+
</SilkeText>
|
|
134
|
+
<SilkeText size="small" color="neutral-70">
|
|
135
|
+
Ensure design consistency across your project by using Main components.
|
|
136
|
+
</SilkeText>
|
|
137
|
+
</SilkeBox>
|
|
138
|
+
</SilkeActionBox>
|
|
139
|
+
</SilkeBox>
|
|
140
|
+
|
|
141
|
+
<SilkeBox>
|
|
142
|
+
<SilkeActionBox
|
|
143
|
+
kind="centered"
|
|
144
|
+
buttons={[{ label: 'Create with AI', kind: 'secondary', icon: 'ai' }]}
|
|
145
|
+
>
|
|
146
|
+
<SilkeText weight="strong" size="small">
|
|
147
|
+
Build a custom layout with AI
|
|
148
|
+
</SilkeText>
|
|
149
|
+
</SilkeActionBox>
|
|
150
|
+
</SilkeBox>
|
|
151
|
+
</SilkeBox>
|
|
152
|
+
```
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@use "../../variables" as *;
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
.wrapper {
|
|
5
|
+
border: 1px solid var(--color-surface-3);
|
|
6
|
+
background-color: var(--color-surface-1);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.content {
|
|
10
|
+
display: flex;
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.title {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
font-size: $font-small;
|
|
18
|
+
line-height: 16px;
|
|
19
|
+
padding: var(--space-s) var(--space-s) var(--space-s) 0;
|
|
20
|
+
min-height: $size-m;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.body {
|
|
24
|
+
display: flex;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.link {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
font-size: $font-small;
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.buttons {
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: var(--space-s);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Variants
|
|
40
|
+
|
|
41
|
+
.inline {
|
|
42
|
+
.content {
|
|
43
|
+
align-items: center;
|
|
44
|
+
flex-direction: row;
|
|
45
|
+
}
|
|
46
|
+
.body {
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: var(--space-s);
|
|
49
|
+
}
|
|
50
|
+
.buttons {
|
|
51
|
+
padding: var(--space-s);
|
|
52
|
+
}
|
|
53
|
+
.link {
|
|
54
|
+
padding-right: var(--space-m);
|
|
55
|
+
min-height: $size-m;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.stacked {
|
|
60
|
+
.body {
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
}
|
|
63
|
+
.title {
|
|
64
|
+
padding-right: var(--space-m);
|
|
65
|
+
}
|
|
66
|
+
.buttons {
|
|
67
|
+
padding-bottom: var(--space-m);
|
|
68
|
+
}
|
|
69
|
+
.link {
|
|
70
|
+
padding-bottom: var(--space-s);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.centered {
|
|
75
|
+
.content {
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
align-items: center;
|
|
78
|
+
}
|
|
79
|
+
.title {
|
|
80
|
+
padding: 0 var(--space-m);
|
|
81
|
+
min-height: initial;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
}
|
|
84
|
+
.body {
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
text-align: center;
|
|
87
|
+
width: 100%;
|
|
88
|
+
}
|
|
89
|
+
.buttons {
|
|
90
|
+
flex: 1;
|
|
91
|
+
padding: var(--space-m) var(--space-m) var(--space-m) var(--space-m);
|
|
92
|
+
}
|
|
93
|
+
.link {
|
|
94
|
+
justify-content: center;
|
|
95
|
+
text-align: center;
|
|
96
|
+
padding: var(--space-xs) var(--space-s) var(--space-s) var(--space-m);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.inline.noIcon {
|
|
101
|
+
.title {
|
|
102
|
+
padding-left: var(--space-s);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.stacked.noIcon {
|
|
107
|
+
.content {
|
|
108
|
+
padding-left: var(--space-m);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.centered.noIcon {
|
|
113
|
+
.content {
|
|
114
|
+
padding-top: var(--space-m);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxDivProps, SilkeBox } from '../silke-box';
|
|
3
|
+
import { SilkeButton, SilkeButtonProps } from '../silke-button';
|
|
4
|
+
import { SilkeIcon, SilkeIcons } from '../silke-icon';
|
|
5
|
+
import styles from './silke-action-box.scss';
|
|
6
|
+
import { SilkeLink } from '../silke-link';
|
|
7
|
+
|
|
8
|
+
export type ActionBoxKind = 'inline' | 'stacked' | 'centered';
|
|
9
|
+
|
|
10
|
+
export type SilkeActionBoxProps = {
|
|
11
|
+
kind: ActionBoxKind;
|
|
12
|
+
title?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
icon?: SilkeIcons;
|
|
15
|
+
link?: {
|
|
16
|
+
label: string;
|
|
17
|
+
href: string;
|
|
18
|
+
external?: boolean;
|
|
19
|
+
};
|
|
20
|
+
buttons?: SilkeButtonProps[];
|
|
21
|
+
} & Omit<BoxDivProps, 'height' | 'width' | 'tag'>;
|
|
22
|
+
|
|
23
|
+
export function SilkeActionBox({
|
|
24
|
+
className,
|
|
25
|
+
title,
|
|
26
|
+
children,
|
|
27
|
+
kind = 'inline',
|
|
28
|
+
icon,
|
|
29
|
+
link,
|
|
30
|
+
buttons,
|
|
31
|
+
...rest
|
|
32
|
+
}: SilkeActionBoxProps) {
|
|
33
|
+
const cl: string[] = [styles.wrapper];
|
|
34
|
+
|
|
35
|
+
if (className) cl.push(className);
|
|
36
|
+
if (kind) cl.push(styles[kind]);
|
|
37
|
+
if (!icon) cl.push(styles.noIcon);
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<SilkeBox rounded="small" className={cl.join(' ')} {...rest}>
|
|
41
|
+
<div className={styles.content}>
|
|
42
|
+
{icon && (
|
|
43
|
+
<SilkeBox size="m" align="center">
|
|
44
|
+
<SilkeIcon icon={icon} />
|
|
45
|
+
</SilkeBox>
|
|
46
|
+
)}
|
|
47
|
+
<div className={styles.body}>
|
|
48
|
+
<div className={styles.title}>{title || children}</div>
|
|
49
|
+
|
|
50
|
+
{link && (
|
|
51
|
+
<SilkeLink href={link.href} className={styles.link} external={link.external}>
|
|
52
|
+
{link.label}
|
|
53
|
+
</SilkeLink>
|
|
54
|
+
)}
|
|
55
|
+
|
|
56
|
+
{buttons && (
|
|
57
|
+
<div className={styles.buttons}>
|
|
58
|
+
{buttons.map((button, i) => (
|
|
59
|
+
<SilkeButton {...button} size="s" fill={kind === 'centered'} key={i} />
|
|
60
|
+
))}
|
|
61
|
+
</div>
|
|
62
|
+
)}
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</SilkeBox>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './silke-alert-banner';
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# Alert Banner
|
|
2
|
+
|
|
3
|
+
## Types
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
const title = 'Warning';
|
|
7
|
+
const subtitle = 'Some subitle text here';
|
|
8
|
+
|
|
9
|
+
const types = ['information', 'success', 'warning', 'error'];
|
|
10
|
+
|
|
11
|
+
<SilkeBox gap>
|
|
12
|
+
<SilkeBox column gap>
|
|
13
|
+
{types.map((type, i) => (
|
|
14
|
+
<SilkeAlertBanner
|
|
15
|
+
key={i}
|
|
16
|
+
inline
|
|
17
|
+
kind={type}
|
|
18
|
+
subtitle="Subtitle text here"
|
|
19
|
+
onRemove={() => {}}
|
|
20
|
+
/>
|
|
21
|
+
))}
|
|
22
|
+
</SilkeBox>
|
|
23
|
+
</SilkeBox>;
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Testing
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
const [notifications, setNotifications] = React.useState([]);
|
|
30
|
+
const [type, setType] = React.useState('information');
|
|
31
|
+
|
|
32
|
+
const addNotification = () => {
|
|
33
|
+
setNotifications(notifications.concat([{ id: notifications.length + 1, kind: type }]));
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
<>
|
|
37
|
+
<SilkeBox column gap>
|
|
38
|
+
<SilkeAlertBanner
|
|
39
|
+
inline
|
|
40
|
+
subtitle="Subtitle text here. Subtitle text here. Subtitle text here. Subtitle text here. Subtitle text here. Subtitle text here. Subtitle text here"
|
|
41
|
+
onRemove={() => {}}
|
|
42
|
+
/>
|
|
43
|
+
|
|
44
|
+
<SilkeBox gap="m">
|
|
45
|
+
<SilkeButton
|
|
46
|
+
label="Generate notification"
|
|
47
|
+
onClick={() => {
|
|
48
|
+
addNotification();
|
|
49
|
+
}}
|
|
50
|
+
/>
|
|
51
|
+
<SilkeSelectField
|
|
52
|
+
onChange={setType}
|
|
53
|
+
value={type}
|
|
54
|
+
items={[
|
|
55
|
+
{ value: 'information' },
|
|
56
|
+
{ value: 'attention' },
|
|
57
|
+
{ value: 'error' },
|
|
58
|
+
{ value: 'warning' },
|
|
59
|
+
]}
|
|
60
|
+
/>
|
|
61
|
+
</SilkeBox>
|
|
62
|
+
{notifications.map((item) => (
|
|
63
|
+
<SilkeAlertBanner
|
|
64
|
+
key={item.id}
|
|
65
|
+
kind={item.kind || 'information'}
|
|
66
|
+
title="Warning title"
|
|
67
|
+
subtitle="Some random subtitle"
|
|
68
|
+
onRemove={() => {
|
|
69
|
+
setNotifications(
|
|
70
|
+
notifications.filter((n) => {
|
|
71
|
+
return n.id !== item.id;
|
|
72
|
+
}),
|
|
73
|
+
);
|
|
74
|
+
}}
|
|
75
|
+
/>
|
|
76
|
+
))}
|
|
77
|
+
</SilkeBox>
|
|
78
|
+
</>;
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
```jsx
|
|
82
|
+
() => (
|
|
83
|
+
<SilkeBox column gap>
|
|
84
|
+
<SilkeAlertBanner
|
|
85
|
+
inline
|
|
86
|
+
kind="success"
|
|
87
|
+
subtitle="Subtitle text here"
|
|
88
|
+
onAction={() => {}}
|
|
89
|
+
actionLabel="Click here"
|
|
90
|
+
/>
|
|
91
|
+
<SilkeAlertBanner kind="error" inline subtitle="Subtitle text here" onRemove={() => {}} />
|
|
92
|
+
<SilkeAlertBanner kind="success" inline subtitle="Subtitle text here" onRemove={() => {}} />
|
|
93
|
+
<SilkeAlertBanner kind="information" inline subtitle="Subtitle text here" onRemove={() => {}} />
|
|
94
|
+
</SilkeBox>
|
|
95
|
+
);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Box notification
|
|
99
|
+
|
|
100
|
+
```js
|
|
101
|
+
<>
|
|
102
|
+
<SilkeBox column gap>
|
|
103
|
+
<SilkeAlertBanner kind="success" subtitle="Subtitle text here" />
|
|
104
|
+
<SilkeAlertBanner kind="error" subtitle="Subtitle text here" onRemove={() => {}} />
|
|
105
|
+
<SilkeAlertBanner kind="success" subtitle="Subtitle text here" onRemove={() => {}} />
|
|
106
|
+
<SilkeAlertBanner kind="information" subtitle="Subtitle text here" onRemove={() => {}} />
|
|
107
|
+
<SilkeAlertBanner
|
|
108
|
+
kind="error"
|
|
109
|
+
subtitle="Subtitle text here"
|
|
110
|
+
actionLabel="Fix now"
|
|
111
|
+
onAction={() => {}}
|
|
112
|
+
onRemove={() => {}}
|
|
113
|
+
/>
|
|
114
|
+
</SilkeBox>
|
|
115
|
+
</>
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Box notification with action
|
|
119
|
+
|
|
120
|
+
```js
|
|
121
|
+
<>
|
|
122
|
+
<SilkeBox column gap>
|
|
123
|
+
<SilkeAlertBanner
|
|
124
|
+
kind="success"
|
|
125
|
+
title="With action"
|
|
126
|
+
actionLabel="Take action"
|
|
127
|
+
onAction={() => {}}
|
|
128
|
+
/>
|
|
129
|
+
<SilkeAlertBanner
|
|
130
|
+
kind="error"
|
|
131
|
+
title="With action"
|
|
132
|
+
actionLabel="Take action"
|
|
133
|
+
onAction={() => {}}
|
|
134
|
+
/>
|
|
135
|
+
<SilkeAlertBanner
|
|
136
|
+
kind="success"
|
|
137
|
+
title="With action"
|
|
138
|
+
actionLabel="Take action"
|
|
139
|
+
onAction={() => {}}
|
|
140
|
+
/>
|
|
141
|
+
<SilkeAlertBanner
|
|
142
|
+
kind="information"
|
|
143
|
+
title="With action"
|
|
144
|
+
actionLabel="Take action"
|
|
145
|
+
onAction={() => {}}
|
|
146
|
+
/>
|
|
147
|
+
</SilkeBox>
|
|
148
|
+
</>
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Box notification fluid
|
|
152
|
+
|
|
153
|
+
```js
|
|
154
|
+
<>
|
|
155
|
+
<SilkeBox column gap>
|
|
156
|
+
<SilkeAlertBanner fluid kind="success" title="Title text here" subtitle="Subtitle text here" />
|
|
157
|
+
<SilkeAlertBanner
|
|
158
|
+
fluid
|
|
159
|
+
kind="error"
|
|
160
|
+
title="Title text here"
|
|
161
|
+
subtitle="Subtitle text here"
|
|
162
|
+
onRemove={() => {}}
|
|
163
|
+
/>
|
|
164
|
+
<SilkeAlertBanner
|
|
165
|
+
fluid
|
|
166
|
+
kind="success"
|
|
167
|
+
title="Title text here"
|
|
168
|
+
subtitle="Subtitle text here"
|
|
169
|
+
onRemove={() => {}}
|
|
170
|
+
/>
|
|
171
|
+
<SilkeAlertBanner
|
|
172
|
+
fluid
|
|
173
|
+
kind="information"
|
|
174
|
+
title="Title text here"
|
|
175
|
+
subtitle="Subtitle text here"
|
|
176
|
+
onRemove={() => {}}
|
|
177
|
+
/>
|
|
178
|
+
</SilkeBox>
|
|
179
|
+
</>
|
|
180
|
+
```
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
.notificationBox {
|
|
5
|
-
--notification-background: var(--color-
|
|
5
|
+
--notification-background: var(--color-support-secondary-10-rgb);
|
|
6
|
+
--notification-color: var(--color-support-secondary-40);
|
|
6
7
|
--notification-background-opacity: var(--opacity-level-medium);
|
|
7
|
-
--notification-color: var(--color-accent-30);
|
|
8
8
|
filter: var(--shadow-level-1);
|
|
9
9
|
background: linear-gradient(
|
|
10
10
|
0deg,
|
|
@@ -12,19 +12,18 @@
|
|
|
12
12
|
rgba(var(--notification-background), var(--notification-background-opacity))
|
|
13
13
|
),
|
|
14
14
|
white;
|
|
15
|
-
color:
|
|
15
|
+
color: white;
|
|
16
16
|
max-width: 1096px;
|
|
17
|
+
--notification-background-opacity: 1;
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
width: 384px;
|
|
20
|
-
}
|
|
19
|
+
|
|
21
20
|
// Double class to override silke button
|
|
22
21
|
.close.close.close {
|
|
23
22
|
--silke-button-background: transparent;
|
|
24
23
|
--silke-button-background-hover: transparent;
|
|
25
24
|
--silke-button-background-pressed: transparent;
|
|
26
25
|
|
|
27
|
-
--silke-button-color: var(--color-neutral-
|
|
26
|
+
--silke-button-color: var(--color-neutral-100);
|
|
28
27
|
--silke-button-color-hover: var(--notification-color);
|
|
29
28
|
--silke-button-color-pressed: var(--notification-color);
|
|
30
29
|
|
|
@@ -35,6 +34,10 @@
|
|
|
35
34
|
|
|
36
35
|
display: flex;
|
|
37
36
|
justify-content: center;
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
color: rgba(var(--color-neutral-100-rgb), .5)
|
|
40
|
+
}
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
.action.action.action {
|
|
@@ -73,28 +76,23 @@
|
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
.warning {
|
|
76
|
-
--notification-background: var(--color-warning-
|
|
77
|
-
--notification-color: var(--color-warning-
|
|
79
|
+
--notification-background: var(--color-warning-10-rgb);
|
|
80
|
+
--notification-color: var(--color-warning-40);
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
.error {
|
|
81
|
-
--notification-background: var(--color-error-
|
|
82
|
-
--notification-color: var(--color-error-
|
|
84
|
+
--notification-background: var(--color-error-10-rgb);
|
|
85
|
+
--notification-color: var(--color-error-30);
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
.success {
|
|
86
|
-
--notification-background: var(--color-success-
|
|
87
|
-
--notification-color: var(--color-success-
|
|
89
|
+
--notification-background: var(--color-success-10-rgb);
|
|
90
|
+
--notification-color: var(--color-success-40);
|
|
88
91
|
}
|
|
89
92
|
|
|
90
93
|
.information {
|
|
91
|
-
--notification-background: var(--color-
|
|
92
|
-
--notification-color: var(--color-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.confetti {
|
|
96
|
-
--notification-background: var(--color-success-60-rgb);
|
|
97
|
-
--notification-color: var(--color-success-10);
|
|
94
|
+
--notification-background: var(--color-support-secondary-10-rgb);
|
|
95
|
+
--notification-color: var(--color-support-secondary-40);
|
|
98
96
|
}
|
|
99
97
|
|
|
100
98
|
.scale {
|
|
@@ -103,39 +101,6 @@
|
|
|
103
101
|
transform-origin: center center;
|
|
104
102
|
}
|
|
105
103
|
|
|
106
|
-
.dark {
|
|
107
|
-
color: white;
|
|
108
|
-
--notification-background-opacity: 1;
|
|
109
|
-
|
|
110
|
-
.close.close.close {
|
|
111
|
-
--silke-button-color: var(--color-neutral-100);
|
|
112
|
-
|
|
113
|
-
&:hover {
|
|
114
|
-
color: rgba(var(--color-neutral-100-rgb), .5)
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.dark.information {
|
|
120
|
-
--notification-background: var(--color-support-secondary-10-rgb);
|
|
121
|
-
--notification-color: var(--color-support-secondary-40);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.dark.success {
|
|
125
|
-
--notification-background: var(--color-success-10-rgb);
|
|
126
|
-
--notification-color: var(--color-success-40);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.dark.warning {
|
|
130
|
-
--notification-background: var(--color-warning-10-rgb);
|
|
131
|
-
--notification-color: var(--color-warning-40);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.dark.error {
|
|
135
|
-
--notification-background: var(--color-error-10-rgb);
|
|
136
|
-
--notification-color: var(--color-error-30);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
104
|
@keyframes scale {
|
|
140
105
|
0% {
|
|
141
106
|
opacity: 0;
|