@streamscloud/kit 0.2.42 → 0.9.0
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/dist/core/files/blob-storage-registry.svelte.d.ts +28 -0
- package/dist/core/files/blob-storage-registry.svelte.js +37 -0
- package/dist/core/files/file-validation-rules.d.ts +30 -0
- package/dist/core/files/file-validation-rules.js +95 -0
- package/dist/core/files/file-validation-types.d.ts +18 -0
- package/dist/core/files/file-validator.d.ts +5 -0
- package/dist/core/files/file-validator.js +17 -0
- package/dist/core/files/index.d.ts +8 -0
- package/dist/core/files/index.js +5 -0
- package/dist/core/files/open-file.d.ts +14 -0
- package/dist/core/files/open-file.js +38 -0
- package/dist/core/files/upload-media-store.svelte.d.ts +74 -0
- package/dist/core/files/upload-media-store.svelte.js +118 -0
- package/dist/core/files/upload-types.d.ts +57 -0
- package/dist/core/transitions/durations.d.ts +5 -0
- package/dist/core/transitions/durations.js +6 -0
- package/dist/core/transitions/index.d.ts +1 -0
- package/dist/core/transitions/index.js +1 -0
- package/dist/core/transitions/slide-horizontally.js +2 -1
- package/dist/core/utils/href-validator.d.ts +1 -10
- package/dist/core/utils/href-validator.js +8 -19
- package/dist/core/validation/form-validation-handler/form-validation-handler.svelte.js +2 -0
- package/dist/fonts.d.ts +11 -0
- package/dist/fonts.js +19 -0
- package/dist/styles/_functions.scss +2 -2
- package/dist/styles/_index.scss +1 -2
- package/dist/styles/_primitives.scss +68 -0
- package/dist/styles/_reset.scss +2 -2
- package/dist/styles/_semantic.scss +188 -0
- package/dist/styles/_transitions.scss +1 -14
- package/dist/styles/reset.css +2 -2
- package/dist/ui/_internal/_affordance.scss +58 -0
- package/dist/ui/_internal/input-clear-button/cmp.input-clear-button.svelte +87 -0
- package/dist/ui/_internal/input-clear-button/cmp.input-clear-button.svelte.d.ts +33 -0
- package/dist/ui/_internal/input-clear-button/index.d.ts +1 -0
- package/dist/ui/_internal/input-clear-button/index.js +1 -0
- package/dist/ui/_internal/input-clear-button/input-clear-button-localization.d.ts +3 -0
- package/dist/ui/_internal/input-clear-button/input-clear-button-localization.js +12 -0
- package/dist/ui/_internal/input-emoji-picker/cmp.input-emoji-picker.svelte +74 -0
- package/dist/ui/_internal/input-emoji-picker/cmp.input-emoji-picker.svelte.d.ts +26 -0
- package/dist/ui/{inputs → _internal}/input-emoji-picker/index.d.ts +0 -1
- package/dist/ui/{inputs → _internal}/input-emoji-picker/index.js +0 -1
- package/dist/ui/_internal/input-password-toggle/cmp.input-password-toggle.svelte +93 -0
- package/dist/ui/_internal/input-password-toggle/cmp.input-password-toggle.svelte.d.ts +31 -0
- package/dist/ui/_internal/input-password-toggle/index.d.ts +1 -0
- package/dist/ui/_internal/input-password-toggle/index.js +1 -0
- package/dist/ui/_internal/input-password-toggle/input-password-toggle-localization.d.ts +4 -0
- package/dist/ui/_internal/input-password-toggle/input-password-toggle-localization.js +13 -0
- package/dist/ui/_internal/spinner/cmp.spinner.svelte +41 -0
- package/dist/ui/_internal/spinner/cmp.spinner.svelte.d.ts +37 -0
- package/dist/ui/_internal/spinner/index.d.ts +1 -0
- package/dist/ui/_internal/spinner/index.js +1 -0
- package/dist/ui/avatar/cmp.avatar.svelte +135 -0
- package/dist/ui/avatar/cmp.avatar.svelte.d.ts +34 -0
- package/dist/ui/avatar/index.d.ts +1 -0
- package/dist/ui/avatar/index.js +1 -0
- package/dist/ui/badge/cmp.badge.svelte +69 -60
- package/dist/ui/badge/cmp.badge.svelte.d.ts +16 -13
- package/dist/ui/badge/index.d.ts +1 -1
- package/dist/ui/badge/types.d.ts +1 -1
- package/dist/ui/banner/banner-localization.d.ts +3 -0
- package/dist/ui/banner/banner-localization.js +12 -0
- package/dist/ui/banner/cmp.banner.svelte +147 -0
- package/dist/ui/banner/cmp.banner.svelte.d.ts +44 -0
- package/dist/ui/banner/index.d.ts +1 -0
- package/dist/ui/banner/index.js +1 -0
- package/dist/ui/breadcrumb/breadcrumb-localization.d.ts +3 -0
- package/dist/ui/breadcrumb/breadcrumb-localization.js +12 -0
- package/dist/ui/breadcrumb/cmp.breadcrumb.svelte +78 -0
- package/dist/ui/breadcrumb/cmp.breadcrumb.svelte.d.ts +28 -0
- package/dist/ui/breadcrumb/index.d.ts +2 -0
- package/dist/ui/breadcrumb/index.js +1 -0
- package/dist/ui/breadcrumb/types.d.ts +14 -0
- package/dist/ui/button/cmp.button.svelte +288 -48
- package/dist/ui/button/cmp.button.svelte.d.ts +57 -50
- package/dist/ui/button/index.d.ts +1 -2
- package/dist/ui/button/index.js +0 -1
- package/dist/ui/button/types.d.ts +2 -0
- package/dist/ui/card/cmp.card.svelte +104 -0
- package/dist/ui/card/cmp.card.svelte.d.ts +42 -0
- package/dist/ui/card/index.d.ts +1 -0
- package/dist/ui/card/index.js +1 -0
- package/dist/ui/card-actions/cmp.card-action.svelte +19 -6
- package/dist/ui/card-actions/cmp.card-action.svelte.d.ts +4 -2
- package/dist/ui/card-actions/cmp.card-actions.svelte +19 -20
- package/dist/ui/card-actions/cmp.card-actions.svelte.d.ts +11 -8
- package/dist/ui/card-actions/types.d.ts +2 -3
- package/dist/ui/checkbox/cmp.checkbox.svelte +99 -76
- package/dist/ui/checkbox/cmp.checkbox.svelte.d.ts +21 -18
- package/dist/ui/checkbox/index.d.ts +0 -2
- package/dist/ui/checkbox/index.js +0 -1
- package/dist/ui/chip-group/cmp.chip-group.svelte +170 -0
- package/dist/ui/chip-group/cmp.chip-group.svelte.d.ts +84 -0
- package/dist/ui/chip-group/index.d.ts +2 -0
- package/dist/ui/chip-group/index.js +1 -0
- package/dist/ui/chip-group/types.d.ts +5 -0
- package/dist/ui/color-picker/cmp.color-picker.svelte +68 -36
- package/dist/ui/color-picker/cmp.color-picker.svelte.d.ts +37 -10
- package/dist/ui/color-picker/color-picker-localization.d.ts +1 -0
- package/dist/ui/color-picker/color-picker-localization.js +7 -0
- package/dist/ui/confirmation-dialog/cmp.confirmation-dialog.svelte +16 -13
- package/dist/ui/confirmation-dialog/cmp.confirmation-dialog.svelte.d.ts +8 -0
- package/dist/ui/cropper/image-editor-dialog/cmp.image-editor-dialog.svelte +1 -1
- package/dist/ui/cropper/image-editor-dialog/crop-and-resize.d.ts +36 -0
- package/dist/ui/cropper/image-editor-dialog/crop-and-resize.js +47 -0
- package/dist/ui/cropper/image-editor-dialog/index.d.ts +4 -2
- package/dist/ui/cropper/image-editor-dialog/index.js +3 -2
- package/dist/ui/cropper/img-cropper/cmp.img-cropper-controls.svelte +16 -15
- package/dist/ui/cropper/img-cropper/cmp.img-cropper-toolbar.svelte +9 -12
- package/dist/ui/cropper/img-cropper/cmp.img-cropper-toolbar.svelte.d.ts +1 -1
- package/dist/ui/cropper/img-cropper/cmp.img-cropper.svelte +4 -4
- package/dist/ui/cropper/img-cropper/cmp.img-cropper.svelte.d.ts +1 -1
- package/dist/ui/date-picker/cmp.date-picker-calendar.svelte +294 -0
- package/dist/ui/date-picker/cmp.date-picker-calendar.svelte.d.ts +59 -0
- package/dist/ui/date-picker/cmp.date-picker.svelte +331 -0
- package/dist/ui/date-picker/cmp.date-picker.svelte.d.ts +82 -0
- package/dist/ui/date-picker/date-picker-localization.d.ts +6 -0
- package/dist/ui/date-picker/date-picker-localization.js +33 -0
- package/dist/ui/date-picker/index.d.ts +2 -0
- package/dist/ui/date-picker/index.js +1 -0
- package/dist/ui/date-picker/types.d.ts +1 -0
- package/dist/ui/dialog/cmp.dialog-button.svelte +11 -4
- package/dist/ui/dialog/cmp.dialog-button.svelte.d.ts +14 -3
- package/dist/ui/dialog/cmp.dialog-cancel-button.svelte +10 -3
- package/dist/ui/dialog/cmp.dialog-cancel-button.svelte.d.ts +10 -1
- package/dist/ui/dialog/cmp.dialog-close-button.svelte +38 -8
- package/dist/ui/dialog/cmp.dialog-close-button.svelte.d.ts +8 -2
- package/dist/ui/dialog/cmp.dialog-container.svelte +50 -11
- package/dist/ui/dialog/cmp.dialog-container.svelte.d.ts +11 -0
- package/dist/ui/dialog/cmp.dialog-host.svelte +25 -0
- package/dist/ui/dialog/cmp.dialog-host.svelte.d.ts +15 -0
- package/dist/ui/dialog/cmp.dialog.svelte +31 -22
- package/dist/ui/dialog/cmp.dialog.svelte.d.ts +10 -8
- package/dist/ui/dialog/dialog-controller.d.ts +2 -2
- package/dist/ui/dialog/dialog-data.d.ts +4 -5
- package/dist/ui/dialog/dialog-host-mount.d.ts +6 -0
- package/dist/ui/dialog/dialog-host-mount.js +18 -0
- package/dist/ui/dialog/dialog-localization.d.ts +3 -0
- package/dist/ui/dialog/dialog-localization.js +12 -0
- package/dist/ui/dialog/dialog-store.svelte.d.ts +27 -0
- package/dist/ui/dialog/dialog-store.svelte.js +125 -0
- package/dist/ui/dialog/index.d.ts +3 -2
- package/dist/ui/dialog/index.js +2 -1
- package/dist/ui/dialog/types.svelte.d.ts +1 -1
- package/dist/ui/divider/cmp.divider.svelte +71 -0
- package/dist/ui/divider/cmp.divider.svelte.d.ts +25 -0
- package/dist/ui/divider/index.d.ts +1 -0
- package/dist/ui/divider/index.js +1 -0
- package/dist/ui/drag-and-drop/cmp.drag-source.svelte +30 -0
- package/dist/ui/drag-and-drop/cmp.drag-source.svelte.d.ts +39 -0
- package/dist/ui/drag-and-drop/cmp.drop-zone.svelte +122 -0
- package/dist/ui/drag-and-drop/cmp.drop-zone.svelte.d.ts +72 -0
- package/dist/ui/drag-and-drop/drag-and-drop.svelte.d.ts +15 -0
- package/dist/ui/drag-and-drop/drag-and-drop.svelte.js +13 -0
- package/dist/ui/drag-and-drop/index.d.ts +4 -0
- package/dist/ui/drag-and-drop/index.js +3 -0
- package/dist/ui/drag-and-drop/types.d.ts +9 -0
- package/dist/ui/drawer/cmp.drawer-view.svelte +40 -0
- package/dist/ui/drawer/cmp.drawer-view.svelte.d.ts +9 -0
- package/dist/ui/drawer/cmp.drawer.svelte +29 -0
- package/dist/ui/drawer/cmp.drawer.svelte.d.ts +29 -0
- package/dist/ui/drawer/drawer.d.ts +41 -0
- package/dist/ui/drawer/drawer.js +28 -0
- package/dist/ui/drawer/index.d.ts +3 -0
- package/dist/ui/drawer/index.js +2 -0
- package/dist/ui/dynamic-component/cmp.dynamic-component.svelte +21 -1
- package/dist/ui/dynamic-component/cmp.dynamic-component.svelte.d.ts +23 -1
- package/dist/ui/emoji-picker/cmp.emoji-panel.svelte +45 -24
- package/dist/ui/emoji-picker/cmp.emoji-panel.svelte.d.ts +7 -6
- package/dist/ui/emoji-picker/cmp.emoji-picker.svelte +37 -22
- package/dist/ui/emoji-picker/cmp.emoji-picker.svelte.d.ts +16 -5
- package/dist/ui/empty-state/cmp.empty-state.svelte +126 -0
- package/dist/ui/empty-state/cmp.empty-state.svelte.d.ts +39 -0
- package/dist/ui/empty-state/index.d.ts +1 -0
- package/dist/ui/empty-state/index.js +1 -0
- package/dist/ui/empty-state/zero-content.svg +133 -0
- package/dist/ui/file-uploader/cmp.file-row.svelte +145 -0
- package/dist/ui/file-uploader/cmp.file-row.svelte.d.ts +31 -0
- package/dist/ui/file-uploader/cmp.file-upload-progress.svelte +141 -0
- package/dist/ui/file-uploader/cmp.file-upload-progress.svelte.d.ts +25 -0
- package/dist/ui/file-uploader/cmp.file-uploader.svelte +210 -0
- package/dist/ui/file-uploader/cmp.file-uploader.svelte.d.ts +56 -0
- package/dist/ui/file-uploader/file-type-colors.d.ts +3 -0
- package/dist/ui/file-uploader/file-type-colors.js +38 -0
- package/dist/ui/file-uploader/file-uploader-localization.d.ts +4 -0
- package/dist/ui/file-uploader/file-uploader-localization.js +19 -0
- package/dist/ui/file-uploader/index.d.ts +6 -0
- package/dist/ui/file-uploader/index.js +6 -0
- package/dist/ui/file-uploader/to-uploading-file.d.ts +7 -0
- package/dist/ui/file-uploader/to-uploading-file.js +12 -0
- package/dist/ui/form-field/cmp.form-field-validatable.svelte +42 -0
- package/dist/ui/form-field/cmp.form-field-validatable.svelte.d.ts +75 -0
- package/dist/ui/form-field/cmp.form-field.svelte +55 -0
- package/dist/ui/form-field/cmp.form-field.svelte.d.ts +24 -0
- package/dist/ui/form-field/index.d.ts +2 -0
- package/dist/ui/form-field/index.js +2 -0
- package/dist/ui/grid-card/cmp.grid-card-media.svelte +170 -0
- package/dist/ui/grid-card/cmp.grid-card-media.svelte.d.ts +30 -0
- package/dist/ui/grid-card/cmp.grid-card.svelte +111 -0
- package/dist/ui/grid-card/cmp.grid-card.svelte.d.ts +39 -0
- package/dist/ui/grid-card/cmp.video-player.svelte +196 -0
- package/dist/ui/grid-card/cmp.video-player.svelte.d.ts +26 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-actions-field.svelte +25 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-actions-field.svelte.d.ts +21 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-badge-field.svelte +28 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-badge-field.svelte.d.ts +20 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-button.svelte +28 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-button.svelte.d.ts +17 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-field.svelte +61 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-field.svelte.d.ts +23 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-fields.svelte +32 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-fields.svelte.d.ts +17 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-id-field.svelte +39 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-id-field.svelte.d.ts +13 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-progress-field.svelte +69 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-progress-field.svelte.d.ts +30 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-text-field.svelte +36 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-text-field.svelte.d.ts +14 -0
- package/dist/ui/grid-card/fields/index.d.ts +8 -0
- package/dist/ui/grid-card/fields/index.js +8 -0
- package/dist/ui/grid-card/icon-checkbox-checked.svg +5 -0
- package/dist/ui/grid-card/icon-checkbox-unchecked.svg +4 -0
- package/dist/ui/grid-card/index.d.ts +4 -0
- package/dist/ui/grid-card/index.js +3 -0
- package/dist/ui/grid-card/types.d.ts +4 -0
- package/dist/ui/grouped-sidebar/cmp.grouped-sidebar-section.svelte +28 -23
- package/dist/ui/grouped-sidebar/cmp.grouped-sidebar-section.svelte.d.ts +7 -6
- package/dist/ui/grouped-sidebar/cmp.grouped-sidebar.svelte +27 -12
- package/dist/ui/grouped-sidebar/cmp.grouped-sidebar.svelte.d.ts +20 -4
- package/dist/ui/grouped-sidebar/types.svelte.js +3 -3
- package/dist/ui/handle-input/cmp.handle-input.svelte +125 -0
- package/dist/ui/handle-input/cmp.handle-input.svelte.d.ts +38 -0
- package/dist/ui/handle-input/handle-input-localization.d.ts +6 -0
- package/dist/ui/handle-input/handle-input-localization.js +33 -0
- package/dist/ui/handle-input/index.d.ts +2 -0
- package/dist/ui/handle-input/index.js +2 -0
- package/dist/ui/html-block/cmp.html-block.svelte +40 -22
- package/dist/ui/html-block/cmp.html-block.svelte.d.ts +13 -0
- package/dist/ui/icon/cmp.icon-slot.svelte +19 -0
- package/dist/ui/icon/cmp.icon-slot.svelte.d.ts +18 -0
- package/dist/ui/icon/cmp.icon.svelte +58 -34
- package/dist/ui/icon/cmp.icon.svelte.d.ts +19 -9
- package/dist/ui/icon/icon-utils.d.ts +9 -0
- package/dist/ui/icon/icon-utils.js +12 -0
- package/dist/ui/icon/index.d.ts +3 -1
- package/dist/ui/icon/index.js +2 -0
- package/dist/ui/icon/types.d.ts +8 -1
- package/dist/ui/icon-picker/cmp.icon-picker.svelte +137 -0
- package/dist/ui/icon-picker/cmp.icon-picker.svelte.d.ts +34 -0
- package/dist/ui/icon-picker/index.d.ts +2 -0
- package/dist/ui/icon-picker/index.js +1 -0
- package/dist/ui/icon-picker/types.d.ts +16 -0
- package/dist/ui/icon-picker/types.js +1 -0
- package/dist/ui/icon-text/cmp.icon-text.svelte +37 -34
- package/dist/ui/icon-text/cmp.icon-text.svelte.d.ts +18 -19
- package/dist/ui/image/cmp.image-rounded.svelte +10 -14
- package/dist/ui/image/cmp.image-rounded.svelte.d.ts +6 -4
- package/dist/ui/image/cmp.image-stub.svelte +2 -2
- package/dist/ui/image/cmp.image-stub.svelte.d.ts +1 -1
- package/dist/ui/image/cmp.image.svelte +6 -9
- package/dist/ui/image/cmp.image.svelte.d.ts +1 -1
- package/dist/ui/image/image-state.d.ts +1 -5
- package/dist/ui/image/image-state.js +3 -9
- package/dist/ui/image/index.d.ts +2 -1
- package/dist/ui/image/index.js +1 -1
- package/dist/ui/infinite-scroll/cmp.infinite-scroll.svelte +103 -0
- package/dist/ui/infinite-scroll/cmp.infinite-scroll.svelte.d.ts +27 -0
- package/dist/ui/infinite-scroll/index.d.ts +1 -0
- package/dist/ui/infinite-scroll/index.js +1 -0
- package/dist/ui/input/cmp.input.svelte +327 -0
- package/dist/ui/input/cmp.input.svelte.d.ts +38 -0
- package/dist/ui/input/index.d.ts +2 -0
- package/dist/ui/input/index.js +1 -0
- package/dist/ui/input/types.d.ts +77 -0
- package/dist/ui/input/types.js +1 -0
- package/dist/ui/line-clamp/cmp.line-clamp-auto.svelte +12 -1
- package/dist/ui/line-clamp/cmp.line-clamp-auto.svelte.d.ts +3 -1
- package/dist/ui/line-clamp/cmp.line-clamp.svelte +13 -1
- package/dist/ui/line-clamp/cmp.line-clamp.svelte.d.ts +4 -1
- package/dist/ui/link/cmp.link.svelte +72 -0
- package/dist/ui/link/cmp.link.svelte.d.ts +33 -0
- package/dist/ui/link/index.d.ts +1 -0
- package/dist/ui/link/index.js +1 -0
- package/dist/ui/listing-card/cmp.listing-card.svelte +170 -0
- package/dist/ui/listing-card/cmp.listing-card.svelte.d.ts +41 -0
- package/dist/ui/listing-card/index.d.ts +1 -0
- package/dist/ui/listing-card/index.js +1 -0
- package/dist/ui/logo/cmp.logo.svelte +77 -0
- package/dist/ui/logo/cmp.logo.svelte.d.ts +35 -0
- package/dist/ui/logo/index.d.ts +1 -0
- package/dist/ui/logo/index.js +1 -0
- package/dist/ui/media-playback/playback-manager.svelte.d.ts +3 -0
- package/dist/ui/media-playback/playback-manager.svelte.js +5 -0
- package/dist/ui/media-viewer-dialog/cmp.media-viewer-dialog.svelte +6 -5
- package/dist/ui/media-viewer-dialog/index.d.ts +2 -2
- package/dist/ui/media-viewer-dialog/index.js +3 -3
- package/dist/ui/navigation/cmp.nav-menu-account-row.svelte +146 -0
- package/dist/ui/navigation/cmp.nav-menu-account-row.svelte.d.ts +28 -0
- package/dist/ui/navigation/cmp.nav-menu-divider.svelte +14 -0
- package/dist/ui/navigation/cmp.nav-menu-divider.svelte.d.ts +22 -0
- package/dist/ui/navigation/cmp.nav-menu-group.svelte +17 -0
- package/dist/ui/{form-group/cmp.form-group.svelte.d.ts → navigation/cmp.nav-menu-group.svelte.d.ts} +4 -2
- package/dist/ui/navigation/cmp.nav-menu-header.svelte +17 -0
- package/dist/ui/navigation/cmp.nav-menu-header.svelte.d.ts +10 -0
- package/dist/ui/navigation/cmp.nav-menu-item.svelte +157 -0
- package/dist/ui/navigation/cmp.nav-menu-item.svelte.d.ts +43 -0
- package/dist/ui/navigation/cmp.nav-menu.svelte +96 -0
- package/dist/ui/navigation/cmp.nav-menu.svelte.d.ts +27 -0
- package/dist/ui/navigation/cmp.nav-rail-item.svelte +118 -0
- package/dist/ui/navigation/cmp.nav-rail-item.svelte.d.ts +38 -0
- package/dist/ui/navigation/cmp.nav-rail.svelte +216 -0
- package/dist/ui/navigation/cmp.nav-rail.svelte.d.ts +40 -0
- package/dist/ui/navigation/index.d.ts +8 -0
- package/dist/ui/navigation/index.js +8 -0
- package/dist/ui/navigation/nav-rail-localization.d.ts +4 -0
- package/dist/ui/navigation/nav-rail-localization.js +19 -0
- package/dist/ui/numeral-input/cmp.numeral-input.svelte +331 -0
- package/dist/ui/numeral-input/cmp.numeral-input.svelte.d.ts +97 -0
- package/dist/ui/numeral-input/index.d.ts +1 -0
- package/dist/ui/numeral-input/index.js +1 -0
- package/dist/ui/open-file-button/cmp.open-file-button.svelte +42 -0
- package/dist/ui/open-file-button/cmp.open-file-button.svelte.d.ts +45 -0
- package/dist/ui/open-file-button/index.d.ts +1 -0
- package/dist/ui/open-file-button/index.js +1 -0
- package/dist/ui/option-pill/cmp.option-pill.svelte +140 -0
- package/dist/ui/option-pill/cmp.option-pill.svelte.d.ts +73 -0
- package/dist/ui/option-pill/index.d.ts +2 -0
- package/dist/ui/option-pill/index.js +1 -0
- package/dist/ui/option-pill/types.d.ts +8 -0
- package/dist/ui/option-pill/types.js +1 -0
- package/dist/ui/page-header/cmp.page-header.svelte +75 -0
- package/dist/ui/page-header/cmp.page-header.svelte.d.ts +32 -0
- package/dist/ui/page-header/index.d.ts +1 -0
- package/dist/ui/page-header/index.js +1 -0
- package/dist/ui/page-layout/cmp.page-layout.svelte +171 -0
- package/dist/ui/page-layout/cmp.page-layout.svelte.d.ts +33 -0
- package/dist/ui/page-layout/cmp.page-panel-sidebars.svelte +164 -0
- package/dist/ui/page-layout/cmp.page-panel-sidebars.svelte.d.ts +30 -0
- package/dist/ui/page-layout/cmp.page-panel.svelte +377 -0
- package/dist/ui/page-layout/cmp.page-panel.svelte.d.ts +60 -0
- package/dist/ui/page-layout/cmp.page-panels.svelte +21 -0
- package/dist/ui/{form-group/cmp.form-group-label.svelte.d.ts → page-layout/cmp.page-panels.svelte.d.ts} +4 -2
- package/dist/ui/page-layout/cmp.panel-collapse-button.svelte +63 -0
- package/dist/ui/page-layout/cmp.panel-collapse-button.svelte.d.ts +23 -0
- package/dist/ui/page-layout/cmp.panel-content.svelte +21 -0
- package/dist/ui/{page-toolbar/cmp.toolbar-button-item.svelte.d.ts → page-layout/cmp.panel-content.svelte.d.ts} +2 -5
- package/dist/ui/page-layout/index.d.ts +8 -0
- package/dist/ui/page-layout/index.js +7 -0
- package/dist/ui/page-layout/page-layout-localization.d.ts +5 -0
- package/dist/ui/page-layout/page-layout-localization.js +26 -0
- package/dist/ui/page-layout/panel-state.svelte.d.ts +50 -0
- package/dist/ui/page-layout/panel-state.svelte.js +61 -0
- package/dist/ui/page-layout/types.d.ts +19 -0
- package/dist/ui/page-layout/types.js +1 -0
- package/dist/ui/page-toolbar/cmp.reorderable-toggle-list.svelte +20 -27
- package/dist/ui/page-toolbar/cmp.reorderable-toggle-list.svelte.d.ts +3 -3
- package/dist/ui/page-toolbar/cmp.toolbar-checkbox-item.svelte +3 -5
- package/dist/ui/page-toolbar/cmp.toolbar-panel-button.svelte +42 -0
- package/dist/ui/page-toolbar/cmp.toolbar-panel-button.svelte.d.ts +20 -0
- package/dist/ui/page-toolbar/cmp.toolbar-panel.svelte +17 -18
- package/dist/ui/page-toolbar/cmp.toolbar-panel.svelte.d.ts +2 -2
- package/dist/ui/page-toolbar/cmp.toolbar-popover.svelte +31 -0
- package/dist/ui/page-toolbar/cmp.toolbar-popover.svelte.d.ts +23 -0
- package/dist/ui/page-toolbar/cmp.toolbar-search-input.svelte +21 -16
- package/dist/ui/page-toolbar/cmp.toolbar-search-input.svelte.d.ts +8 -1
- package/dist/ui/page-toolbar/cmp.toolbar-segmented-control.svelte +9 -15
- package/dist/ui/page-toolbar/cmp.toolbar-segmented-control.svelte.d.ts +10 -16
- package/dist/ui/page-toolbar/cmp.toolbar-switch-item.svelte +13 -16
- package/dist/ui/page-toolbar/cmp.toolbar-switch-item.svelte.d.ts +10 -12
- package/dist/ui/page-toolbar/cmp.toolbar-toggle-item.svelte +4 -33
- package/dist/ui/page-toolbar/cmp.toolbar-toggle-item.svelte.d.ts +2 -9
- package/dist/ui/page-toolbar/index.d.ts +2 -2
- package/dist/ui/page-toolbar/index.js +2 -2
- package/dist/ui/pagination/cmp.pagination.svelte +199 -0
- package/dist/ui/pagination/cmp.pagination.svelte.d.ts +35 -0
- package/dist/ui/pagination/index.d.ts +2 -0
- package/dist/ui/pagination/index.js +2 -0
- package/dist/ui/pagination/pagination-localization.d.ts +6 -0
- package/dist/ui/pagination/pagination-localization.js +33 -0
- package/dist/ui/pagination/pagination-state.svelte.d.ts +13 -0
- package/dist/ui/pagination/pagination-state.svelte.js +35 -0
- package/dist/ui/pin-input/cmp.pin-input.svelte +154 -0
- package/dist/ui/pin-input/cmp.pin-input.svelte.d.ts +44 -0
- package/dist/ui/player/buttons/cmp.mobile-player-buttons.svelte +4 -4
- package/dist/ui/player/buttons/cmp.player-buttons.svelte +11 -11
- package/dist/ui/player/buttons/types.d.ts +2 -3
- package/dist/ui/player/carousel/cmp.carousel.svelte +6 -4
- package/dist/ui/player/carousel/cmp.carousel.svelte.d.ts +2 -1
- package/dist/ui/popover/cmp.hover-popover.svelte +64 -0
- package/dist/ui/popover/cmp.hover-popover.svelte.d.ts +52 -0
- package/dist/ui/popover/cmp.popover-item.svelte +89 -0
- package/dist/ui/popover/cmp.popover-item.svelte.d.ts +35 -0
- package/dist/ui/popover/cmp.popover.svelte +369 -0
- package/dist/ui/popover/cmp.popover.svelte.d.ts +70 -0
- package/dist/ui/popover/index.d.ts +10 -0
- package/dist/ui/popover/index.js +4 -0
- package/dist/ui/{dropdown/dropdown-ignore.d.ts → popover/popover-ignore.d.ts} +1 -1
- package/dist/ui/{dropdown/dropdown-ignore.js → popover/popover-ignore.js} +2 -2
- package/dist/ui/progress/cmp.progress.svelte +90 -21
- package/dist/ui/progress/cmp.progress.svelte.d.ts +26 -6
- package/dist/ui/radio/cmp.radio-card.svelte +157 -0
- package/dist/ui/radio/cmp.radio-card.svelte.d.ts +43 -0
- package/dist/ui/radio/cmp.radio.svelte +115 -0
- package/dist/ui/radio/cmp.radio.svelte.d.ts +37 -0
- package/dist/ui/radio/index.d.ts +2 -0
- package/dist/ui/radio/index.js +2 -0
- package/dist/ui/rich-text-input/cmp.rich-text-input.svelte +283 -0
- package/dist/ui/rich-text-input/cmp.rich-text-input.svelte.d.ts +69 -0
- package/dist/ui/rich-text-input/hugerte.declarations.d.ts +10 -0
- package/dist/ui/{inputs/rich-text-input → rich-text-input}/rich-text-input-localization.js +1 -1
- package/dist/ui/rich-text-input/types.js +1 -0
- package/dist/ui/{inputs/rich-text-input → rich-text-input}/validated-link-button.d.ts +1 -1
- package/dist/ui/{inputs/rich-text-input → rich-text-input}/validated-link-button.js +1 -1
- package/dist/ui/seek-bar/cmp.seek-bar.svelte +15 -12
- package/dist/ui/seek-bar/cmp.seek-bar.svelte.d.ts +6 -5
- package/dist/ui/seek-bar/seek-bar-localization.d.ts +3 -0
- package/dist/ui/seek-bar/seek-bar-localization.js +12 -0
- package/dist/ui/segmented-control/cmp.segmented-control.svelte +137 -85
- package/dist/ui/segmented-control/cmp.segmented-control.svelte.d.ts +46 -27
- package/dist/ui/segmented-control/index.d.ts +1 -0
- package/dist/ui/select/_select-trigger.scss +199 -0
- package/dist/ui/select/cmp.multiselect-async.svelte +54 -0
- package/dist/ui/select/cmp.multiselect-async.svelte.d.ts +79 -0
- package/dist/ui/select/cmp.multiselect-tree.svelte +115 -0
- package/dist/ui/select/cmp.multiselect-tree.svelte.d.ts +152 -0
- package/dist/ui/select/cmp.multiselect.svelte +70 -0
- package/dist/ui/select/cmp.multiselect.svelte.d.ts +78 -0
- package/dist/ui/select/cmp.singleselect-async.svelte +343 -0
- package/dist/ui/select/cmp.singleselect-async.svelte.d.ts +105 -0
- package/dist/ui/select/cmp.singleselect.svelte +136 -0
- package/dist/ui/select/cmp.singleselect.svelte.d.ts +96 -0
- package/dist/ui/select/index.d.ts +11 -0
- package/dist/ui/select/index.js +5 -0
- package/dist/ui/select/multiselect-base.svelte +565 -0
- package/dist/ui/select/multiselect-base.svelte.d.ts +81 -0
- package/dist/ui/select/multiselect-localization.d.ts +11 -0
- package/dist/ui/select/multiselect-localization.js +47 -0
- package/dist/ui/select/select-chip.svelte +123 -0
- package/dist/ui/select/select-chip.svelte.d.ts +48 -0
- package/dist/ui/select/select-core.svelte.d.ts +87 -0
- package/dist/ui/select/select-core.svelte.js +380 -0
- package/dist/ui/select/select-internals.d.ts +33 -0
- package/dist/ui/select/select-internals.js +111 -0
- package/dist/ui/select/select-listbox-localization.d.ts +4 -0
- package/dist/ui/select/select-listbox-localization.js +16 -0
- package/dist/ui/select/select-listbox.svelte +366 -0
- package/dist/ui/select/select-listbox.svelte.d.ts +93 -0
- package/dist/ui/select/singleselect-localization.d.ts +4 -0
- package/dist/ui/select/singleselect-localization.js +13 -0
- package/dist/ui/select/types.d.ts +211 -0
- package/dist/ui/select/types.js +1 -0
- package/dist/ui/skeleton/cmp.skeleton.svelte +72 -0
- package/dist/ui/skeleton/cmp.skeleton.svelte.d.ts +25 -0
- package/dist/ui/skeleton/index.d.ts +1 -0
- package/dist/ui/skeleton/index.js +1 -0
- package/dist/ui/slider/cmp.slider.svelte +160 -0
- package/dist/ui/slider/cmp.slider.svelte.d.ts +40 -0
- package/dist/ui/slider/index.d.ts +1 -0
- package/dist/ui/slider/index.js +1 -0
- package/dist/ui/spinner/cmp.spinner.svelte +156 -0
- package/dist/ui/spinner/cmp.spinner.svelte.d.ts +47 -0
- package/dist/ui/spinner/index.d.ts +1 -0
- package/dist/ui/spinner/index.js +1 -0
- package/dist/ui/stack/cmp.stack.svelte +25 -0
- package/dist/ui/stack/cmp.stack.svelte.d.ts +22 -0
- package/dist/ui/stack/index.d.ts +1 -0
- package/dist/ui/stack/index.js +1 -0
- package/dist/ui/stat/cmp.stat.svelte +105 -0
- package/dist/ui/stat/cmp.stat.svelte.d.ts +34 -0
- package/dist/ui/stat/index.d.ts +1 -0
- package/dist/ui/stat/index.js +1 -0
- package/dist/ui/stepper/cmp.stepper.svelte +286 -0
- package/dist/ui/stepper/cmp.stepper.svelte.d.ts +59 -0
- package/dist/ui/stepper/index.d.ts +1 -0
- package/dist/ui/stepper/index.js +1 -0
- package/dist/ui/stepper-dialog/cmp.stepper-dialog.svelte +221 -0
- package/dist/ui/stepper-dialog/cmp.stepper-dialog.svelte.d.ts +17 -0
- package/dist/ui/stepper-dialog/index.d.ts +2 -0
- package/dist/ui/stepper-dialog/index.js +1 -0
- package/dist/ui/stepper-dialog/stepper-dialog-localization.d.ts +6 -0
- package/dist/ui/stepper-dialog/stepper-dialog-localization.js +33 -0
- package/dist/ui/stepper-dialog/stepper-dialog.d.ts +22 -0
- package/dist/ui/stepper-dialog/stepper-dialog.js +26 -0
- package/dist/ui/stepper-dialog/types.d.ts +34 -0
- package/dist/ui/stepper-dialog/types.js +1 -0
- package/dist/ui/swipe-indicator/cmp.swipe-indicator.svelte +68 -9
- package/dist/ui/swipe-indicator/cmp.swipe-indicator.svelte.d.ts +20 -4
- package/dist/ui/table/cmp.table.svelte +115 -59
- package/dist/ui/table/cmp.table.svelte.d.ts +24 -15
- package/dist/ui/table/table-cells/table-actions-cell.svelte +14 -21
- package/dist/ui/table/table-cells/table-actions-cell.svelte.d.ts +5 -5
- package/dist/ui/table/table-cells/table-badge-cell.svelte +2 -2
- package/dist/ui/table/table-cells/table-button-cell.svelte +3 -3
- package/dist/ui/table/table-cells/table-by-cell.svelte +12 -21
- package/dist/ui/table/table-cells/table-checkbox-cell.svelte +3 -0
- package/dist/ui/table/table-cells/table-icon-cell.svelte +6 -29
- package/dist/ui/table/table-cells/table-icon-cell.svelte.d.ts +1 -10
- package/dist/ui/table/table-cells/table-move-row-cell.svelte +3 -3
- package/dist/ui/table/table-cells/table-select-cell.svelte +18 -12
- package/dist/ui/table/table-cells/table-text-cell.svelte +2 -5
- package/dist/ui/table/table-cells/table-text-cell.svelte.d.ts +1 -1
- package/dist/ui/table/table-cells/table-text-input-cell.svelte +11 -25
- package/dist/ui/table/table-columns-manager/cmp.table-columns-manager.svelte +8 -11
- package/dist/ui/table/table-columns-manager/cmp.table-columns-manager.svelte.d.ts +2 -2
- package/dist/ui/table/table-group-actions/cmp.table-group-actions.svelte +14 -14
- package/dist/ui/table/table-group-actions/cmp.table-group-actions.svelte.d.ts +1 -1
- package/dist/ui/table/table-group-actions/types.svelte.d.ts +2 -3
- package/dist/ui/table/table-headers/table-header-sortable.svelte +5 -5
- package/dist/ui/table/table-headers/table-header.svelte +3 -3
- package/dist/ui/table/table-model.svelte.d.ts +2 -1
- package/dist/ui/table/table-model.svelte.js +4 -1
- package/dist/ui/table/types.d.ts +24 -13
- package/dist/ui/tabs/cmp.tabs.svelte +154 -0
- package/dist/ui/tabs/cmp.tabs.svelte.d.ts +70 -0
- package/dist/ui/tabs/index.d.ts +2 -0
- package/dist/ui/tabs/index.js +1 -0
- package/dist/ui/textarea/cmp.textarea.svelte +254 -0
- package/dist/ui/textarea/cmp.textarea.svelte.d.ts +80 -0
- package/dist/ui/textarea/index.d.ts +1 -0
- package/dist/ui/textarea/index.js +1 -0
- package/dist/ui/time-ago/cmp.time-ago.svelte +6 -3
- package/dist/ui/time-ago/cmp.time-ago.svelte.d.ts +5 -2
- package/dist/ui/toast/cmp.toast-item.svelte +191 -0
- package/dist/ui/{form-group/cmp.form-group-note.svelte.d.ts → toast/cmp.toast-item.svelte.d.ts} +5 -2
- package/dist/ui/toast/cmp.toaster.svelte +112 -0
- package/dist/ui/toast/cmp.toaster.svelte.d.ts +29 -0
- package/dist/ui/toast/index.d.ts +3 -0
- package/dist/ui/toast/index.js +2 -0
- package/dist/ui/toast/toast-localization.d.ts +3 -0
- package/dist/ui/toast/toast-localization.js +12 -0
- package/dist/ui/toast/toast-store.svelte.d.ts +17 -0
- package/dist/ui/toast/toast-store.svelte.js +65 -0
- package/dist/ui/toast/toaster-host.svelte.d.ts +6 -0
- package/dist/ui/toast/toaster-host.svelte.js +18 -0
- package/dist/ui/toast/toastr.d.ts +17 -0
- package/dist/ui/toast/toastr.js +30 -0
- package/dist/ui/toast/types.d.ts +27 -0
- package/dist/ui/toast/types.js +1 -0
- package/dist/ui/toggle/cmp.toggle.svelte +169 -77
- package/dist/ui/toggle/cmp.toggle.svelte.d.ts +33 -11
- package/dist/ui/tooltip/cmp.tooltip.svelte +125 -155
- package/dist/ui/tooltip/cmp.tooltip.svelte.d.ts +23 -19
- package/dist/ui/tooltip/index.d.ts +0 -1
- package/dist/ui/tree/cmp.tree-node-view.svelte +342 -0
- package/dist/ui/tree/cmp.tree-node-view.svelte.d.ts +12 -0
- package/dist/ui/tree/cmp.tree.svelte +65 -0
- package/dist/ui/tree/cmp.tree.svelte.d.ts +32 -0
- package/dist/ui/tree/index.d.ts +4 -0
- package/dist/ui/tree/index.js +2 -0
- package/dist/ui/tree/tree-navigation.svelte.d.ts +14 -0
- package/dist/ui/tree/tree-navigation.svelte.js +99 -0
- package/dist/ui/tree/tree-node-action.d.ts +8 -0
- package/dist/ui/tree/tree-node-action.js +1 -0
- package/dist/ui/tree/tree-node-drag-config.svelte.d.ts +16 -0
- package/dist/ui/tree/tree-node-drag-config.svelte.js +4 -0
- package/dist/ui/tree/tree-node.svelte.d.ts +81 -0
- package/dist/ui/tree/tree-node.svelte.js +232 -0
- package/dist/ui/typography/cmp.heading.svelte +77 -0
- package/dist/ui/typography/cmp.heading.svelte.d.ts +29 -0
- package/dist/ui/typography/cmp.text.svelte +68 -0
- package/dist/ui/typography/cmp.text.svelte.d.ts +32 -0
- package/dist/ui/typography/index.d.ts +2 -0
- package/dist/ui/typography/index.js +2 -0
- package/dist/ui/usage/cmp.usage-row.svelte +85 -0
- package/dist/ui/usage/cmp.usage-row.svelte.d.ts +29 -0
- package/dist/ui/usage/cmp.usage.svelte +50 -0
- package/dist/ui/usage/cmp.usage.svelte.d.ts +23 -0
- package/dist/ui/usage/index.d.ts +2 -0
- package/dist/ui/usage/index.js +2 -0
- package/dist/ui/validatable/cmp.field-error.svelte +36 -0
- package/dist/ui/validatable/cmp.field-error.svelte.d.ts +17 -0
- package/dist/ui/validatable/cmp.validatable.svelte +86 -50
- package/dist/ui/validatable/cmp.validatable.svelte.d.ts +72 -28
- package/dist/ui/validatable/cmp.validation-error.svelte +8 -45
- package/dist/ui/validatable/cmp.validation-error.svelte.d.ts +3 -8
- package/dist/ui/validatable/index.d.ts +1 -0
- package/dist/ui/video/cmp.video.svelte +7 -7
- package/dist/ui/visual-select/cmp.visual-select.svelte +154 -0
- package/dist/ui/visual-select/cmp.visual-select.svelte.d.ts +78 -0
- package/dist/ui/visual-select/index.d.ts +1 -0
- package/dist/ui/visual-select/index.js +1 -0
- package/dist/ui/website-input/cmp.website-input.svelte +78 -0
- package/dist/ui/website-input/cmp.website-input.svelte.d.ts +25 -0
- package/dist/ui/website-input/index.d.ts +1 -0
- package/dist/ui/website-input/index.js +1 -0
- package/dist/ui/website-input/website-input-localization.d.ts +3 -0
- package/dist/ui/website-input/website-input-localization.js +12 -0
- package/package.json +240 -89
- package/dist/core/toastr/index.d.ts +0 -3
- package/dist/core/toastr/index.js +0 -2
- package/dist/core/toastr/toaster-host.svelte.d.ts +0 -7
- package/dist/core/toastr/toaster-host.svelte.js +0 -41
- package/dist/core/toastr/toastr.scss +0 -66
- package/dist/core/toastr/toastr.svelte.d.ts +0 -8
- package/dist/core/toastr/toastr.svelte.js +0 -30
- package/dist/core/toastr/types.d.ts +0 -16
- package/dist/styles/_colors.scss +0 -126
- package/dist/styles/_form-group.scss +0 -37
- package/dist/styles/_input.scss +0 -100
- package/dist/styles/_row.scss +0 -81
- package/dist/styles/_theme.scss +0 -68
- package/dist/ui/button/cmp.options-button.svelte +0 -214
- package/dist/ui/button/cmp.options-button.svelte.d.ts +0 -38
- package/dist/ui/button/resources/button-base.svelte +0 -81
- package/dist/ui/button/resources/button-base.svelte.d.ts +0 -13
- package/dist/ui/button/resources/button-theme.svelte +0 -335
- package/dist/ui/button/resources/button-theme.svelte.d.ts +0 -10
- package/dist/ui/button/resources/types.d.ts +0 -2
- package/dist/ui/checkbox/cmp.three-state-checkbox.svelte +0 -117
- package/dist/ui/checkbox/cmp.three-state-checkbox.svelte.d.ts +0 -37
- package/dist/ui/checkbox/types.d.ts +0 -1
- package/dist/ui/datetime-picker/cmp.datetime-picker.svelte +0 -292
- package/dist/ui/datetime-picker/cmp.datetime-picker.svelte.d.ts +0 -37
- package/dist/ui/datetime-picker/datetime-picker-localization.d.ts +0 -5
- package/dist/ui/datetime-picker/datetime-picker-localization.js +0 -26
- package/dist/ui/datetime-picker/flatpickr-theme.d.ts +0 -1
- package/dist/ui/datetime-picker/flatpickr-theme.js +0 -13
- package/dist/ui/datetime-picker/index.d.ts +0 -2
- package/dist/ui/datetime-picker/index.js +0 -1
- package/dist/ui/datetime-picker/types.d.ts +0 -16
- package/dist/ui/dialog/dialog-mount.d.ts +0 -3
- package/dist/ui/dialog/dialog-mount.js +0 -19
- package/dist/ui/dialog/dialogs.svelte.d.ts +0 -16
- package/dist/ui/dialog/dialogs.svelte.js +0 -86
- package/dist/ui/dropdown/cmp.dropdown-item.svelte +0 -93
- package/dist/ui/dropdown/cmp.dropdown-item.svelte.d.ts +0 -32
- package/dist/ui/dropdown/cmp.dropdown.svelte +0 -289
- package/dist/ui/dropdown/cmp.dropdown.svelte.d.ts +0 -48
- package/dist/ui/dropdown/index.d.ts +0 -4
- package/dist/ui/dropdown/index.js +0 -3
- package/dist/ui/form-group/cmp.form-group-label.svelte +0 -25
- package/dist/ui/form-group/cmp.form-group-note.svelte +0 -16
- package/dist/ui/form-group/cmp.form-group.svelte +0 -16
- package/dist/ui/form-group/index.d.ts +0 -3
- package/dist/ui/form-group/index.js +0 -3
- package/dist/ui/infinite-scrolling/cmp.infinite-scrolling.svelte +0 -101
- package/dist/ui/infinite-scrolling/cmp.infinite-scrolling.svelte.d.ts +0 -25
- package/dist/ui/infinite-scrolling/index.d.ts +0 -1
- package/dist/ui/infinite-scrolling/index.js +0 -1
- package/dist/ui/inputs/index.d.ts +0 -6
- package/dist/ui/inputs/index.js +0 -5
- package/dist/ui/inputs/input/cmp.input-validatable.svelte +0 -57
- package/dist/ui/inputs/input/cmp.input-validatable.svelte.d.ts +0 -57
- package/dist/ui/inputs/input/cmp.input.svelte +0 -241
- package/dist/ui/inputs/input/cmp.input.svelte.d.ts +0 -61
- package/dist/ui/inputs/input/index.d.ts +0 -2
- package/dist/ui/inputs/input/index.js +0 -2
- package/dist/ui/inputs/input-emoji-picker/cmp.input-emoji-picker.svelte +0 -44
- package/dist/ui/inputs/input-emoji-picker/cmp.input-emoji-picker.svelte.d.ts +0 -9
- package/dist/ui/inputs/input-emoji-picker/input-emoji-picker-container.d.ts +0 -2
- package/dist/ui/inputs/input-emoji-picker/input-emoji-picker-container.js +0 -16
- package/dist/ui/inputs/numeral-input/cmp.numeral-input-validatable.svelte +0 -55
- package/dist/ui/inputs/numeral-input/cmp.numeral-input-validatable.svelte.d.ts +0 -62
- package/dist/ui/inputs/numeral-input/cmp.numeral-input.svelte +0 -254
- package/dist/ui/inputs/numeral-input/cmp.numeral-input.svelte.d.ts +0 -66
- package/dist/ui/inputs/numeral-input/index.d.ts +0 -2
- package/dist/ui/inputs/numeral-input/index.js +0 -2
- package/dist/ui/inputs/pin-input/cmp.pin-input.svelte +0 -58
- package/dist/ui/inputs/pin-input/cmp.pin-input.svelte.d.ts +0 -23
- package/dist/ui/inputs/pin-input/pin-input-generator.d.ts +0 -27
- package/dist/ui/inputs/pin-input/pin-input-generator.js +0 -114
- package/dist/ui/inputs/rich-text-input/cmp.rich-text-input.svelte +0 -55
- package/dist/ui/inputs/rich-text-input/cmp.rich-text-input.svelte.d.ts +0 -43
- package/dist/ui/inputs/rich-text-input/tinymce-input.svelte +0 -252
- package/dist/ui/inputs/rich-text-input/tinymce-input.svelte.d.ts +0 -25
- package/dist/ui/inputs/rich-text-input/tinymce.declarations.d.ts +0 -7
- package/dist/ui/inputs/textarea/cmp.textarea-validatable.svelte +0 -35
- package/dist/ui/inputs/textarea/cmp.textarea-validatable.svelte.d.ts +0 -54
- package/dist/ui/inputs/textarea/cmp.textarea.svelte +0 -249
- package/dist/ui/inputs/textarea/cmp.textarea.svelte.d.ts +0 -58
- package/dist/ui/inputs/textarea/index.d.ts +0 -2
- package/dist/ui/inputs/textarea/index.js +0 -2
- package/dist/ui/loading/cmp.loading.svelte +0 -93
- package/dist/ui/loading/cmp.loading.svelte.d.ts +0 -22
- package/dist/ui/loading/index.d.ts +0 -1
- package/dist/ui/loading/index.js +0 -1
- package/dist/ui/multiselect-dropdown/cmp.checkbox-node.svelte +0 -76
- package/dist/ui/multiselect-dropdown/cmp.checkbox-node.svelte.d.ts +0 -14
- package/dist/ui/multiselect-dropdown/cmp.multiselect-dropdown.svelte +0 -276
- package/dist/ui/multiselect-dropdown/cmp.multiselect-dropdown.svelte.d.ts +0 -45
- package/dist/ui/multiselect-dropdown/index.d.ts +0 -3
- package/dist/ui/multiselect-dropdown/index.js +0 -2
- package/dist/ui/multiselect-dropdown/mapper.d.ts +0 -3
- package/dist/ui/multiselect-dropdown/mapper.js +0 -39
- package/dist/ui/multiselect-dropdown/multiselect-dropdown-localization.d.ts +0 -11
- package/dist/ui/multiselect-dropdown/multiselect-dropdown-localization.js +0 -41
- package/dist/ui/multiselect-dropdown/types.d.ts +0 -10
- package/dist/ui/page-toolbar/cmp.toolbar-button-item.svelte +0 -34
- package/dist/ui/page-toolbar/cmp.toolbar-dropdown.svelte +0 -29
- package/dist/ui/page-toolbar/cmp.toolbar-dropdown.svelte.d.ts +0 -17
- package/dist/ui/placeholder/cmp.placeholder.svelte +0 -65
- package/dist/ui/placeholder/cmp.placeholder.svelte.d.ts +0 -19
- package/dist/ui/placeholder/index.d.ts +0 -1
- package/dist/ui/placeholder/index.js +0 -1
- package/dist/ui/selects/_multiselect.scss +0 -282
- package/dist/ui/selects/_singleselect.scss +0 -176
- package/dist/ui/selects/cmp.multiselect.svelte +0 -531
- package/dist/ui/selects/cmp.multiselect.svelte.d.ts +0 -87
- package/dist/ui/selects/cmp.search-multiselect.svelte +0 -533
- package/dist/ui/selects/cmp.search-multiselect.svelte.d.ts +0 -69
- package/dist/ui/selects/cmp.singleselect.svelte +0 -386
- package/dist/ui/selects/cmp.singleselect.svelte.d.ts +0 -80
- package/dist/ui/selects/index.d.ts +0 -5
- package/dist/ui/selects/index.js +0 -4
- package/dist/ui/selects/select-localization.d.ts +0 -6
- package/dist/ui/selects/select-localization.js +0 -27
- package/dist/ui/selects/types.d.ts +0 -29
- package/dist/ui/tooltip/types.d.ts +0 -2
- package/dist/ui/validatable/_validatable.scss +0 -34
- /package/dist/core/{toastr/types.js → files/file-validation-types.js} +0 -0
- /package/dist/{ui/button/resources/types.js → core/files/upload-types.js} +0 -0
- /package/dist/ui/{checkbox → breadcrumb}/types.js +0 -0
- /package/dist/ui/{datetime-picker → button}/types.js +0 -0
- /package/dist/ui/{inputs/rich-text-input → chip-group}/types.js +0 -0
- /package/dist/ui/{multiselect-dropdown → date-picker}/types.js +0 -0
- /package/dist/ui/{selects → drag-and-drop}/types.js +0 -0
- /package/dist/ui/{tooltip → grid-card}/types.js +0 -0
- /package/dist/ui/{inputs/pin-input → pin-input}/index.d.ts +0 -0
- /package/dist/ui/{inputs/pin-input → pin-input}/index.js +0 -0
- /package/dist/ui/{inputs/rich-text-input → rich-text-input}/index.d.ts +0 -0
- /package/dist/ui/{inputs/rich-text-input → rich-text-input}/index.js +0 -0
- /package/dist/ui/{inputs/rich-text-input → rich-text-input}/rich-text-input-localization.d.ts +0 -0
- /package/dist/ui/{inputs/rich-text-input → rich-text-input}/types.d.ts +0 -0
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
<script lang="ts">import { AppTheme } from '../../../core/theme';
|
|
2
|
-
import { DomHelper, HtmlHelper, Utils } from '../../../core/utils';
|
|
3
|
-
import { HtmlBlock } from '../../html-block';
|
|
4
|
-
import { RichTextInputLocalization } from './rich-text-input-localization';
|
|
5
|
-
import { addValidatedLinkButton } from './validated-link-button';
|
|
6
|
-
import { onDestroy, onMount } from 'svelte';
|
|
7
|
-
let { value, options = undefined, debounce = 0, placeholder = undefined, disabled = false, borderless = false, autofocus = 'false', modelEvents = 'change input undo redo', rows = 0, conf = undefined, on } = $props();
|
|
8
|
-
const id = `ti-${crypto.randomUUID()}`;
|
|
9
|
-
const fixedToolbarId = `fixed-toolbar-${id}`;
|
|
10
|
-
let element;
|
|
11
|
-
let editorRef = $state.raw(null);
|
|
12
|
-
let everFocused = false;
|
|
13
|
-
let lastVal = $state.raw(undefined);
|
|
14
|
-
let tinymce;
|
|
15
|
-
$effect(() => {
|
|
16
|
-
if (editorRef && lastVal !== value) {
|
|
17
|
-
setEditorValue(editorRef, value ?? '');
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
$effect(() => {
|
|
21
|
-
if (editorRef) {
|
|
22
|
-
editorRef.mode.set(disabled ? 'readonly' : 'design');
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
onMount(async () => {
|
|
26
|
-
const loc = new RichTextInputLocalization();
|
|
27
|
-
on?.mounted?.({
|
|
28
|
-
insertEmoji: (emoji) => {
|
|
29
|
-
if (!everFocused && editorRef) {
|
|
30
|
-
editorRef.selection.select(editorRef.getBody(), true);
|
|
31
|
-
editorRef.selection.collapse(false);
|
|
32
|
-
}
|
|
33
|
-
return new Promise((resolve) => {
|
|
34
|
-
setTimeout(() => {
|
|
35
|
-
editorRef?.execCommand('mceInsertContent', false, emoji);
|
|
36
|
-
resolve(true);
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
if (debounce) {
|
|
42
|
-
applyChange = Utils.debounce(applyChange, debounce);
|
|
43
|
-
}
|
|
44
|
-
const { default: tmi } = await import('tinymce');
|
|
45
|
-
await Promise.all([
|
|
46
|
-
import('tinymce/themes/silver'),
|
|
47
|
-
AppTheme.isDarkMode ? import('tinymce/skins/ui/oxide-dark/skin.min.css') : import('tinymce/skins/ui/oxide/skin.min.css'),
|
|
48
|
-
import('tinymce/skins/ui/oxide/content.inline.min.css'),
|
|
49
|
-
import('tinymce/icons/default'),
|
|
50
|
-
import('tinymce/plugins/link'),
|
|
51
|
-
import('tinymce/plugins/lists'),
|
|
52
|
-
import('tinymce/plugins/paste'),
|
|
53
|
-
import('tinymce/plugins/advlist'),
|
|
54
|
-
import('tinymce/plugins/table')
|
|
55
|
-
]);
|
|
56
|
-
tinymce = tmi;
|
|
57
|
-
await tinymce.init({
|
|
58
|
-
target: element,
|
|
59
|
-
inline: true,
|
|
60
|
-
skin: false,
|
|
61
|
-
fixed_toolbar_container: `#${options?.fixedToolbarId || fixedToolbarId}`,
|
|
62
|
-
menubar: false,
|
|
63
|
-
auto_focus: autofocus,
|
|
64
|
-
placeholder: placeholder,
|
|
65
|
-
readonly: disabled,
|
|
66
|
-
toolbar: 'undo redo | formatselect | fontselect fontsizeselect | bold italic underline | forecolor backcolor | alignleft aligncenter alignright | bullist numlist outdent indent | lineheight | table | validatedlink',
|
|
67
|
-
toolbar_persist: options?.persistToolbar,
|
|
68
|
-
plugins: ['lists', 'paste', 'advlist', 'table'],
|
|
69
|
-
advlist_bullet_styles: 'default,circle,square,disc',
|
|
70
|
-
advlist_number_styles: 'default,lower-alpha,lower-roman,upper-alpha,upper-roman',
|
|
71
|
-
lineheight_formats: '1 1.15 1.5 2 2.5 3',
|
|
72
|
-
font_formats: 'Arial=arial,helvetica,sans-serif; Comic Sans MS=comic sans ms,cursive; Courier New=courier new,courier,monospace; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,charcoal,sans-serif; Lucida Console=lucida console,monaco,monospace; Palatino Linotype=palatino linotype,book antiqua,palatino,serif; Tahoma=tahoma,geneva,sans-serif; Times New Roman=times new roman,times,serif; Trebuchet MS=trebuchet ms,sans-serif; Verdana=verdana,geneva,sans-serif',
|
|
73
|
-
fontsize_formats: '8px 10px 12px 14px 16px 18px 24px 36px 48px',
|
|
74
|
-
block_formats: 'Paragraph=p; Heading 1=h1; Heading 2=h2; Heading 3=h3; Heading 4=h4; Heading 5=h5; Heading 6=h6',
|
|
75
|
-
contextmenu: 'link',
|
|
76
|
-
paste_data_images: false,
|
|
77
|
-
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
78
|
-
paste_preprocess: (_, args) => {
|
|
79
|
-
if (!args.wordContent && !args.internal) {
|
|
80
|
-
const text = HtmlHelper.stripHtml(args.content);
|
|
81
|
-
const lines = text.split('\n');
|
|
82
|
-
args.content = '';
|
|
83
|
-
lines.forEach((line) => {
|
|
84
|
-
if (!line) {
|
|
85
|
-
line = ' ';
|
|
86
|
-
}
|
|
87
|
-
args.content += `<p>${line}</p>`;
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
...conf,
|
|
92
|
-
setup: (editor) => {
|
|
93
|
-
editorRef = editor;
|
|
94
|
-
editor.on('init', () => {
|
|
95
|
-
if (rows) {
|
|
96
|
-
editor.bodyElement.style.minHeight = DomHelper.calcHeightBasedOnRows(editor.bodyElement, rows);
|
|
97
|
-
}
|
|
98
|
-
editor.on(modelEvents, () => applyChange(editor));
|
|
99
|
-
});
|
|
100
|
-
editor.on('blur', () => {
|
|
101
|
-
HtmlHelper.clearSelection();
|
|
102
|
-
notifyFocused(false);
|
|
103
|
-
});
|
|
104
|
-
editor.on('focus', () => {
|
|
105
|
-
everFocused = true;
|
|
106
|
-
notifyFocused(true);
|
|
107
|
-
});
|
|
108
|
-
addValidatedLinkButton(editor, loc);
|
|
109
|
-
if (typeof conf?.setup === 'function') {
|
|
110
|
-
conf.setup(editor);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
onDestroy(() => {
|
|
116
|
-
if (editorRef) {
|
|
117
|
-
tinymce.remove(editorRef);
|
|
118
|
-
}
|
|
119
|
-
editorRef = null;
|
|
120
|
-
});
|
|
121
|
-
const notifyFocused = (foc) => {
|
|
122
|
-
on?.focused?.(foc);
|
|
123
|
-
};
|
|
124
|
-
let applyChange = (editor) => {
|
|
125
|
-
lastVal = editor.getContent();
|
|
126
|
-
if (lastVal !== value) {
|
|
127
|
-
value = lastVal;
|
|
128
|
-
}
|
|
129
|
-
on?.change?.(lastVal);
|
|
130
|
-
};
|
|
131
|
-
const setEditorValue = (editor, val) => {
|
|
132
|
-
editor.setContent(val);
|
|
133
|
-
lastVal = val;
|
|
134
|
-
};
|
|
135
|
-
</script>
|
|
136
|
-
|
|
137
|
-
<div class="tinymce-input" class:tinymce-input--disabled={disabled} class:tinymce-input--borderless={borderless}>
|
|
138
|
-
<span class="tinymce-input__toolbar" id={fixedToolbarId}></span>
|
|
139
|
-
<HtmlBlock>
|
|
140
|
-
<div class="tinymce-input__input" id={id} bind:this={element}></div>
|
|
141
|
-
</HtmlBlock>
|
|
142
|
-
</div>
|
|
143
|
-
|
|
144
|
-
<style>.tinymce-input {
|
|
145
|
-
--_tinymce-input--padding--block: var(--sc-kit--rich-text-input--padding--block, 0.5em);
|
|
146
|
-
--_tinymce-input--placeholder--color: var(--sc-kit--rich-text-input--placeholder--color, var(--_input--border-color));
|
|
147
|
-
--_--input--root--font-size: var(--sc-kit--rich-text-input--root--font-size);
|
|
148
|
-
--_--input--width: var(--sc-kit--rich-text-input--width);
|
|
149
|
-
--_--input--background: var(--sc-kit--rich-text-input--background);
|
|
150
|
-
--_--input--background--disabled: var(--sc-kit--rich-text-input--background--disabled);
|
|
151
|
-
--_--input--border-color: var(--sc-kit--rich-text-input--border-color);
|
|
152
|
-
--_--input--border-radius: var(--sc-kit--rich-text-input--border-radius);
|
|
153
|
-
--_--input--text--font-size: var(--sc-kit--rich-text-input--text--font-size);
|
|
154
|
-
--_--input--text--color: var(--sc-kit--rich-text-input--text--color);
|
|
155
|
-
--_--input--placeholder--color: var(--_tinymce-input--placeholder--color);
|
|
156
|
-
--_--input--accent-color: var(--sc-kit--rich-text-input--accent-color);
|
|
157
|
-
--_--input--padding--inline: var(--sc-kit--rich-text-input--padding--inline);
|
|
158
|
-
--_--input--padding--block: var(--_tinymce-input--padding--block);
|
|
159
|
-
--_input--root--font-size: var(--_--input--root--font-size, 1rem);
|
|
160
|
-
--_input--height: var(--_--input--height, 2em);
|
|
161
|
-
--_input--width: var(--_--input--width, 100%);
|
|
162
|
-
--_input--background: var(--_--input--background, light-dark(#ffffff, #1c1c1c));
|
|
163
|
-
--_input--background--disabled: var(--_--input--background--disabled, light-dark(#f9fafb, #1f2937));
|
|
164
|
-
--_input--border-color: var(--_--input--border-color, light-dark(#f2f2f3, #1e1e1e));
|
|
165
|
-
--_input--border-radius: var(--_--input--border-radius, 0.25em);
|
|
166
|
-
--_input--icon--size: var(--_--input--icon--size, 1em);
|
|
167
|
-
--_input--icon--color: var(--_--input--icon--color, light-dark(#d1d5db, #4b5563));
|
|
168
|
-
--_input--text--font-size: var(--_--input--text--font-size, 0.875em);
|
|
169
|
-
--_input--text--color: var(--_--input--text--color, light-dark(#2e2e2e, #ffffff));
|
|
170
|
-
--_input--placeholder--color: var(--_--input--placeholder--color, light-dark(#d1d5db, #4b5563));
|
|
171
|
-
--input--placeholder--color: var(--_--input--placeholder--color);
|
|
172
|
-
--_input--accent-color: var(--_--input--accent-color, light-dark(#144ab0, #5a8dec));
|
|
173
|
-
--_input--padding--inline: var(--_--input--padding--inline, 0.5em);
|
|
174
|
-
--_input--padding--block: var(--_--input--padding--block, 0);
|
|
175
|
-
--_input--padding-top: var(--_--input--padding-top, var(--_input--padding--block));
|
|
176
|
-
--_input--padding-right: var(--_--input--padding-right, var(--_input--padding--inline));
|
|
177
|
-
--_input--padding-bottom: var(--_--input--padding-bottom, var(--_input--padding--block));
|
|
178
|
-
--_input--padding-left: var(--_--input--padding-left, var(--_input--padding--inline));
|
|
179
|
-
font-size: var(--_input--root--font-size);
|
|
180
|
-
height: var(--_input--height);
|
|
181
|
-
color: var(--_input--text--color);
|
|
182
|
-
border: 1px solid var(--_input--border-color);
|
|
183
|
-
border-radius: var(--_input--border-radius);
|
|
184
|
-
width: var(--_input--width);
|
|
185
|
-
min-width: var(--_input--width);
|
|
186
|
-
background: var(--_input--background);
|
|
187
|
-
padding-top: var(--_input--padding-top);
|
|
188
|
-
padding-right: var(--_input--padding-right);
|
|
189
|
-
padding-bottom: var(--_input--padding-bottom);
|
|
190
|
-
padding-left: var(--_input--padding-left);
|
|
191
|
-
--_input--default-shadow-color: transparent;
|
|
192
|
-
--_input--accent-shadow: var(--_input--explicit-shadow-color, var(--_input--default-shadow-color));
|
|
193
|
-
position: relative;
|
|
194
|
-
box-shadow: inset 0 -0.13em var(--_input--accent-shadow);
|
|
195
|
-
}
|
|
196
|
-
.tinymce-input:focus, .tinymce-input:focus-within {
|
|
197
|
-
--_input--default-shadow-color: var(--_input--accent-color);
|
|
198
|
-
}
|
|
199
|
-
.tinymce-input {
|
|
200
|
-
transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), width 250ms cubic-bezier(0.4, 0, 0.2, 1), background 250ms cubic-bezier(0.4, 0, 0.2, 1), padding 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
201
|
-
}
|
|
202
|
-
.tinymce-input--disabled {
|
|
203
|
-
background-color: var(--_input--background--disabled);
|
|
204
|
-
cursor: default;
|
|
205
|
-
}
|
|
206
|
-
.tinymce-input {
|
|
207
|
-
cursor: text;
|
|
208
|
-
min-height: 2em;
|
|
209
|
-
height: auto;
|
|
210
|
-
display: block;
|
|
211
|
-
position: relative;
|
|
212
|
-
}
|
|
213
|
-
.tinymce-input--borderless {
|
|
214
|
-
--_input--border-color: transparent;
|
|
215
|
-
--_input--background: transparent;
|
|
216
|
-
--_input--background--disabled: transparent;
|
|
217
|
-
--_input--accent-color: transparent;
|
|
218
|
-
--_input--explicit-shadow-color: transparent;
|
|
219
|
-
}
|
|
220
|
-
.tinymce-input :global(.tox-tinymce-inline .tox-editor-header) {
|
|
221
|
-
border-radius: 0.375em !important;
|
|
222
|
-
overflow: hidden;
|
|
223
|
-
}
|
|
224
|
-
.tinymce-input__input {
|
|
225
|
-
font-size: var(--_input--text--font-size);
|
|
226
|
-
color: var(--_input--text--color);
|
|
227
|
-
}
|
|
228
|
-
.tinymce-input__input::placeholder {
|
|
229
|
-
color: var(--_input--placeholder--color);
|
|
230
|
-
}
|
|
231
|
-
.tinymce-input__input:-webkit-autofill {
|
|
232
|
-
-webkit-text-fill-color: var(--_input--text--color) !important;
|
|
233
|
-
}
|
|
234
|
-
.tinymce-input__input {
|
|
235
|
-
min-height: 100%;
|
|
236
|
-
background: transparent;
|
|
237
|
-
}
|
|
238
|
-
.tinymce-input__input::before {
|
|
239
|
-
color: var(--_tinymce-input--placeholder--color) !important;
|
|
240
|
-
}
|
|
241
|
-
.tinymce-input__input:focus {
|
|
242
|
-
outline: none;
|
|
243
|
-
}
|
|
244
|
-
.tinymce-input__toolbar {
|
|
245
|
-
position: absolute;
|
|
246
|
-
left: 0;
|
|
247
|
-
bottom: 100%;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
:global(.tox .tox-collection__item-label) {
|
|
251
|
-
white-space: nowrap;
|
|
252
|
-
}</style>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { RichTextInputOptions } from './types';
|
|
2
|
-
import type { RawEditorSettings } from 'tinymce';
|
|
3
|
-
type Props = {
|
|
4
|
-
value: string | null | undefined;
|
|
5
|
-
options?: RichTextInputOptions;
|
|
6
|
-
debounce?: number;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
/** Remove border, background, and accent shadow */
|
|
10
|
-
borderless?: boolean;
|
|
11
|
-
autofocus?: true | string;
|
|
12
|
-
modelEvents?: string;
|
|
13
|
-
rows?: number;
|
|
14
|
-
conf?: RawEditorSettings;
|
|
15
|
-
on: {
|
|
16
|
-
change: (value: string) => void;
|
|
17
|
-
focused?: (focused: boolean) => void;
|
|
18
|
-
mounted?: (data: {
|
|
19
|
-
insertEmoji: (emoji: string) => void;
|
|
20
|
-
}) => void;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
declare const TinymceInput: import("svelte").Component<Props, {}, "">;
|
|
24
|
-
type TinymceInput = ReturnType<typeof TinymceInput>;
|
|
25
|
-
export default TinymceInput;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare module 'tinymce/themes/silver';
|
|
2
|
-
declare module 'tinymce/icons/default';
|
|
3
|
-
declare module 'tinymce/plugins/link';
|
|
4
|
-
declare module 'tinymce/plugins/lists';
|
|
5
|
-
declare module 'tinymce/plugins/paste';
|
|
6
|
-
declare module 'tinymce/plugins/advlist';
|
|
7
|
-
declare module 'tinymce/plugins/table';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<script lang="ts" generics="T extends Record<string, unknown>">import { Utils } from '../../../core/utils';
|
|
2
|
-
import { FormValidationHandler } from '../../../core/validation';
|
|
3
|
-
import { Validatable } from '../../validatable';
|
|
4
|
-
import { default as Textarea } from './cmp.textarea.svelte';
|
|
5
|
-
let { name, handler, placeholder = '', debounce = 0, hidePlaceholderOnFocus = true, submitOnEnter = false, rows = 0, maxlength = 50000, id = '', disabled = false, autofocus = false, on } = $props();
|
|
6
|
-
const onChange = (value) => {
|
|
7
|
-
on?.change?.(value);
|
|
8
|
-
handler.updateValidateField(name, value);
|
|
9
|
-
};
|
|
10
|
-
const handleChangeDebounced = $derived(debounce ? Utils.debounce(onChange, debounce) : onChange);
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<Validatable handler={handler} name={name}>
|
|
14
|
-
<Textarea
|
|
15
|
-
id={id}
|
|
16
|
-
autofocus={autofocus}
|
|
17
|
-
hidePlaceholderOnFocus={hidePlaceholderOnFocus}
|
|
18
|
-
submitOnEnter={submitOnEnter}
|
|
19
|
-
rows={rows}
|
|
20
|
-
maxlength={maxlength}
|
|
21
|
-
disabled={disabled}
|
|
22
|
-
placeholder={placeholder}
|
|
23
|
-
value={handler.formStringified[name]}
|
|
24
|
-
title={!!handler.touched[name] && !!handler.errors[name] ? handler.errors[name] : ''}
|
|
25
|
-
on={{
|
|
26
|
-
change: (e) => handleChangeDebounced(e),
|
|
27
|
-
submit: () => on?.submit?.(),
|
|
28
|
-
mounted: (e) => on?.mounted?.(e)
|
|
29
|
-
}} />
|
|
30
|
-
</Validatable>
|
|
31
|
-
|
|
32
|
-
<!--
|
|
33
|
-
@component
|
|
34
|
-
Textarea wrapped with form validation.
|
|
35
|
-
-->
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { FormValidationHandler } from '../../../core/validation';
|
|
2
|
-
declare function $$render<T extends Record<string, unknown>>(): {
|
|
3
|
-
props: {
|
|
4
|
-
/** Field name in the form handler */
|
|
5
|
-
name: keyof T & string;
|
|
6
|
-
/** Form validation handler instance */
|
|
7
|
-
handler: FormValidationHandler<T>;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
/** Debounce delay in ms @default 0 */
|
|
10
|
-
debounce?: number;
|
|
11
|
-
/** Hide placeholder text when focused @default true */
|
|
12
|
-
hidePlaceholderOnFocus?: boolean;
|
|
13
|
-
/** Fire submit callback on Enter key @default false */
|
|
14
|
-
submitOnEnter?: boolean;
|
|
15
|
-
/** Minimum visible rows @default 0 */
|
|
16
|
-
rows?: number;
|
|
17
|
-
/** @default 50000 */
|
|
18
|
-
maxlength?: number;
|
|
19
|
-
id?: string;
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
autofocus?: boolean;
|
|
22
|
-
on?: {
|
|
23
|
-
change?: (value: string) => void;
|
|
24
|
-
/** Fires on Enter when submitOnEnter is enabled */
|
|
25
|
-
submit?: () => void;
|
|
26
|
-
/** Fires after mount, provides the textarea element ref */
|
|
27
|
-
mounted?: (data: {
|
|
28
|
-
textarea: HTMLTextAreaElement;
|
|
29
|
-
}) => void;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports: {};
|
|
33
|
-
bindings: "";
|
|
34
|
-
slots: {};
|
|
35
|
-
events: {};
|
|
36
|
-
};
|
|
37
|
-
declare class __sveltets_Render<T extends Record<string, unknown>> {
|
|
38
|
-
props(): ReturnType<typeof $$render<T>>['props'];
|
|
39
|
-
events(): ReturnType<typeof $$render<T>>['events'];
|
|
40
|
-
slots(): ReturnType<typeof $$render<T>>['slots'];
|
|
41
|
-
bindings(): "";
|
|
42
|
-
exports(): {};
|
|
43
|
-
}
|
|
44
|
-
interface $$IsomorphicComponent {
|
|
45
|
-
new <T extends Record<string, unknown>>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<T>['props']>, ReturnType<__sveltets_Render<T>['events']>, ReturnType<__sveltets_Render<T>['slots']>> & {
|
|
46
|
-
$$bindings?: ReturnType<__sveltets_Render<T>['bindings']>;
|
|
47
|
-
} & ReturnType<__sveltets_Render<T>['exports']>;
|
|
48
|
-
<T extends Record<string, unknown>>(internal: unknown, props: ReturnType<__sveltets_Render<T>['props']> & {}): ReturnType<__sveltets_Render<T>['exports']>;
|
|
49
|
-
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
50
|
-
}
|
|
51
|
-
/** Textarea wrapped with form validation. */
|
|
52
|
-
declare const Cmp: $$IsomorphicComponent;
|
|
53
|
-
type Cmp<T extends Record<string, unknown>> = InstanceType<typeof Cmp<T>>;
|
|
54
|
-
export default Cmp;
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
<script lang="ts">import { DomHelper, HtmlHelper, Utils } from '../../../core/utils';
|
|
2
|
-
import { InputEmojiPicker, inputEmojiPickerContainer } from '../input-emoji-picker';
|
|
3
|
-
import { untrack } from 'svelte';
|
|
4
|
-
let { value, placeholder = '', debounce = 0, hidePlaceholderOnFocus = true, submitOnEnter = false, singleLine = false, rows = 0, maxlength = 50000, id = '', disabled = false, autofocus = false, emoji = false, borderless = false, title = '', on } = $props();
|
|
5
|
-
let textareaRef = $state(undefined);
|
|
6
|
-
let placeholderInternal = $state(untrack(() => placeholder));
|
|
7
|
-
const initTextarea = (node) => {
|
|
8
|
-
textareaRef = node;
|
|
9
|
-
if (rows) {
|
|
10
|
-
node.style.minHeight = DomHelper.calcHeightBasedOnRows(node, rows);
|
|
11
|
-
}
|
|
12
|
-
on?.mounted?.({ textarea: node });
|
|
13
|
-
autoHeightTextArea();
|
|
14
|
-
if (autofocus) {
|
|
15
|
-
node.focus();
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
const autoHeightTextArea = () => {
|
|
19
|
-
if (!textareaRef) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
textareaRef.style.overflow = 'hidden';
|
|
23
|
-
textareaRef.style.height = 'auto';
|
|
24
|
-
textareaRef.style.height = textareaRef.scrollHeight + 'px';
|
|
25
|
-
textareaRef.style.overflow = '';
|
|
26
|
-
};
|
|
27
|
-
$effect(() => {
|
|
28
|
-
if (value !== undefined) {
|
|
29
|
-
autoHeightTextArea();
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
const onFocus = () => {
|
|
33
|
-
placeholderInternal = !hidePlaceholderOnFocus ? placeholder : '';
|
|
34
|
-
};
|
|
35
|
-
const onBlur = () => {
|
|
36
|
-
placeholderInternal = placeholder;
|
|
37
|
-
};
|
|
38
|
-
const sanitizeLineBreaks = (text) => text.replace(/[\r\n]+/g, ' ');
|
|
39
|
-
const textChanged = () => {
|
|
40
|
-
if (textareaRef) {
|
|
41
|
-
on?.change?.(textareaRef.value);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
const onBeforeInput = (event) => {
|
|
45
|
-
if (!singleLine || !textareaRef) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
if (event.inputType === 'insertLineBreak' || event.inputType === 'insertParagraph') {
|
|
49
|
-
event.preventDefault();
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
if (event.data && /[\r\n]/.test(event.data)) {
|
|
53
|
-
event.preventDefault();
|
|
54
|
-
const start = textareaRef.selectionStart;
|
|
55
|
-
const end = textareaRef.selectionEnd;
|
|
56
|
-
const clean = sanitizeLineBreaks(event.data);
|
|
57
|
-
textareaRef.setRangeText(clean, start, end, 'end');
|
|
58
|
-
textareaRef.dispatchEvent(new Event('input', { bubbles: true }));
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
const onKeyDown = (event) => {
|
|
62
|
-
if (submitOnEnter && event.key === 'Enter' && !(event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)) {
|
|
63
|
-
event.preventDefault();
|
|
64
|
-
on?.submit?.();
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
const handleChangeDebounced = $derived(debounce ? Utils.debounce(textChanged, debounce) : textChanged);
|
|
68
|
-
const onEmojiSelected = (emojiChar) => {
|
|
69
|
-
if (textareaRef) {
|
|
70
|
-
HtmlHelper.pasteIntoInput(emojiChar, textareaRef);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
</script>
|
|
74
|
-
|
|
75
|
-
<div
|
|
76
|
-
class="textarea-input"
|
|
77
|
-
class:textarea-input--disabled={disabled}
|
|
78
|
-
class:textarea-input--borderless={borderless}
|
|
79
|
-
class:textarea-input--has-emoji={emoji}
|
|
80
|
-
use:inputEmojiPickerContainer>
|
|
81
|
-
<textarea
|
|
82
|
-
use:initTextarea
|
|
83
|
-
disabled={disabled}
|
|
84
|
-
placeholder={placeholderInternal}
|
|
85
|
-
maxlength={maxlength}
|
|
86
|
-
class="textarea-input__textarea"
|
|
87
|
-
class:textarea-input--disabled={disabled}
|
|
88
|
-
rows="1"
|
|
89
|
-
id={id}
|
|
90
|
-
title={title}
|
|
91
|
-
oninput={(e) => {
|
|
92
|
-
autoHeightTextArea();
|
|
93
|
-
handleChangeDebounced(e);
|
|
94
|
-
}}
|
|
95
|
-
onbeforeinput={onBeforeInput}
|
|
96
|
-
onfocus={onFocus}
|
|
97
|
-
onblur={onBlur}
|
|
98
|
-
onkeydown={onKeyDown}>{singleLine && value ? sanitizeLineBreaks(value) : value}</textarea>
|
|
99
|
-
{#if emoji}
|
|
100
|
-
<InputEmojiPicker on={{ select: onEmojiSelected }} />
|
|
101
|
-
{/if}
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
<!--
|
|
105
|
-
@component
|
|
106
|
-
Auto-resizing textarea with optional emoji picker, single-line mode, and submit-on-enter.
|
|
107
|
-
|
|
108
|
-
### CSS Custom Properties
|
|
109
|
-
| Property | Description | Default |
|
|
110
|
-
|---|---|---|
|
|
111
|
-
| `--sc-kit--textarea--root--font-size` | Root font size for em scaling | `1rem` |
|
|
112
|
-
| `--sc-kit--textarea--width` | Container width | `100%` |
|
|
113
|
-
| `--sc-kit--textarea--min-height` | Minimum height | `none` |
|
|
114
|
-
| `--sc-kit--textarea--max-height` | Maximum height | `none` |
|
|
115
|
-
| `--sc-kit--textarea--padding--block` | Block (vertical) padding | `0.5em` |
|
|
116
|
-
| `--sc-kit--textarea--padding--inline` | Inline (horizontal) padding | `0.5em` |
|
|
117
|
-
| `--sc-kit--textarea--accent-color` | Focus accent color | light-dark primary-500/primary-400 |
|
|
118
|
-
| `--sc-kit--textarea--background` | Background color | light-dark white/gray-900 |
|
|
119
|
-
| `--sc-kit--textarea--background--disabled` | Disabled background | light-dark neutral-50/neutral-800 |
|
|
120
|
-
| `--sc-kit--textarea--border-color` | Border color | light-dark neutral-300/neutral-600 |
|
|
121
|
-
| `--sc-kit--textarea--border-radius` | Border radius | `0.25em` |
|
|
122
|
-
| `--sc-kit--textarea--text--font-size` | Text font size | `0.875em` |
|
|
123
|
-
| `--sc-kit--textarea--text--color` | Text color | light-dark gray-800/white |
|
|
124
|
-
| `--sc-kit--textarea--text-align` | Text alignment | inherited |
|
|
125
|
-
| `--sc-kit--textarea--placeholder--color` | Placeholder text color | inherited from border |
|
|
126
|
-
-->
|
|
127
|
-
|
|
128
|
-
<style>.textarea-input {
|
|
129
|
-
--_textarea--padding-block: var(--sc-kit--textarea--padding--block, 0.5em);
|
|
130
|
-
--_textarea--text-align: var(--sc-kit--textarea--text-align);
|
|
131
|
-
--_textarea--max-height: var(--sc-kit--textarea--max-height);
|
|
132
|
-
--_textarea--min-height: var(--sc-kit--textarea--min-height, none);
|
|
133
|
-
--_--input--root--font-size: var(--sc-kit--textarea--root--font-size);
|
|
134
|
-
--_--input--height: auto;
|
|
135
|
-
--_--input--width: var(--sc-kit--textarea--width);
|
|
136
|
-
--_--input--background: var(--sc-kit--textarea--background);
|
|
137
|
-
--_--input--background--disabled: var(--sc-kit--textarea--background--disabled);
|
|
138
|
-
--_--input--border-color: var(--sc-kit--textarea--border-color);
|
|
139
|
-
--_--input--border-radius: var(--sc-kit--textarea--border-radius);
|
|
140
|
-
--_--input--text--font-size: var(--sc-kit--textarea--text--font-size);
|
|
141
|
-
--_--input--text--color: var(--sc-kit--textarea--text--color);
|
|
142
|
-
--_--input--placeholder--color: var(--sc-kit--textarea--placeholder--color);
|
|
143
|
-
--_--input--accent-color: var(--sc-kit--textarea--accent-color);
|
|
144
|
-
--_--input--padding--inline: var(--sc-kit--textarea--padding--inline);
|
|
145
|
-
--_--input--padding--block: var(--_textarea--padding-block);
|
|
146
|
-
--_input--root--font-size: var(--_--input--root--font-size, 1rem);
|
|
147
|
-
--_input--height: var(--_--input--height, 2em);
|
|
148
|
-
--_input--width: var(--_--input--width, 100%);
|
|
149
|
-
--_input--background: var(--_--input--background, light-dark(#ffffff, #1c1c1c));
|
|
150
|
-
--_input--background--disabled: var(--_--input--background--disabled, light-dark(#f9fafb, #1f2937));
|
|
151
|
-
--_input--border-color: var(--_--input--border-color, light-dark(#f2f2f3, #1e1e1e));
|
|
152
|
-
--_input--border-radius: var(--_--input--border-radius, 0.25em);
|
|
153
|
-
--_input--icon--size: var(--_--input--icon--size, 1em);
|
|
154
|
-
--_input--icon--color: var(--_--input--icon--color, light-dark(#d1d5db, #4b5563));
|
|
155
|
-
--_input--text--font-size: var(--_--input--text--font-size, 0.875em);
|
|
156
|
-
--_input--text--color: var(--_--input--text--color, light-dark(#2e2e2e, #ffffff));
|
|
157
|
-
--_input--placeholder--color: var(--_--input--placeholder--color, light-dark(#d1d5db, #4b5563));
|
|
158
|
-
--input--placeholder--color: var(--_--input--placeholder--color);
|
|
159
|
-
--_input--accent-color: var(--_--input--accent-color, light-dark(#144ab0, #5a8dec));
|
|
160
|
-
--_input--padding--inline: var(--_--input--padding--inline, 0.5em);
|
|
161
|
-
--_input--padding--block: var(--_--input--padding--block, 0);
|
|
162
|
-
--_input--padding-top: var(--_--input--padding-top, var(--_input--padding--block));
|
|
163
|
-
--_input--padding-right: var(--_--input--padding-right, var(--_input--padding--inline));
|
|
164
|
-
--_input--padding-bottom: var(--_--input--padding-bottom, var(--_input--padding--block));
|
|
165
|
-
--_input--padding-left: var(--_--input--padding-left, var(--_input--padding--inline));
|
|
166
|
-
font-size: var(--_input--root--font-size);
|
|
167
|
-
height: var(--_input--height);
|
|
168
|
-
color: var(--_input--text--color);
|
|
169
|
-
border: 1px solid var(--_input--border-color);
|
|
170
|
-
border-radius: var(--_input--border-radius);
|
|
171
|
-
width: var(--_input--width);
|
|
172
|
-
min-width: var(--_input--width);
|
|
173
|
-
background: var(--_input--background);
|
|
174
|
-
padding-top: var(--_input--padding-top);
|
|
175
|
-
padding-right: var(--_input--padding-right);
|
|
176
|
-
padding-bottom: var(--_input--padding-bottom);
|
|
177
|
-
padding-left: var(--_input--padding-left);
|
|
178
|
-
--_input--default-shadow-color: transparent;
|
|
179
|
-
--_input--accent-shadow: var(--_input--explicit-shadow-color, var(--_input--default-shadow-color));
|
|
180
|
-
position: relative;
|
|
181
|
-
box-shadow: inset 0 -0.13em var(--_input--accent-shadow);
|
|
182
|
-
}
|
|
183
|
-
.textarea-input:focus, .textarea-input:focus-within {
|
|
184
|
-
--_input--default-shadow-color: var(--_input--accent-color);
|
|
185
|
-
}
|
|
186
|
-
.textarea-input {
|
|
187
|
-
transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), width 250ms cubic-bezier(0.4, 0, 0.2, 1), background 250ms cubic-bezier(0.4, 0, 0.2, 1), padding 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
188
|
-
}
|
|
189
|
-
.textarea-input--disabled {
|
|
190
|
-
background-color: var(--_input--background--disabled);
|
|
191
|
-
cursor: default;
|
|
192
|
-
}
|
|
193
|
-
.textarea-input {
|
|
194
|
-
position: relative;
|
|
195
|
-
}
|
|
196
|
-
.textarea-input--borderless {
|
|
197
|
-
--_input--border-color: transparent;
|
|
198
|
-
--_input--background: transparent;
|
|
199
|
-
--_input--background--disabled: transparent;
|
|
200
|
-
--_input--accent-color: transparent;
|
|
201
|
-
--_input--explicit-shadow-color: transparent;
|
|
202
|
-
}
|
|
203
|
-
.textarea-input--has-emoji {
|
|
204
|
-
--_--input--padding-right: 1.5em;
|
|
205
|
-
}
|
|
206
|
-
.textarea-input__textarea {
|
|
207
|
-
min-height: var(--_textarea--min-height);
|
|
208
|
-
height: auto;
|
|
209
|
-
max-height: var(--_textarea--max-height);
|
|
210
|
-
width: 100%;
|
|
211
|
-
resize: none;
|
|
212
|
-
text-align: var(--_textarea--text-align);
|
|
213
|
-
padding: 0;
|
|
214
|
-
background-color: transparent !important;
|
|
215
|
-
font-size: var(--_input--text--font-size);
|
|
216
|
-
color: var(--_input--text--color);
|
|
217
|
-
}
|
|
218
|
-
.textarea-input__textarea::placeholder {
|
|
219
|
-
color: var(--_input--placeholder--color);
|
|
220
|
-
}
|
|
221
|
-
.textarea-input__textarea:-webkit-autofill {
|
|
222
|
-
-webkit-text-fill-color: var(--_input--text--color) !important;
|
|
223
|
-
}
|
|
224
|
-
.textarea-input__textarea {
|
|
225
|
-
--_cross-browser-scrollbar--thumb-color: transparent;
|
|
226
|
-
--_cross-browser-scrollbar--track-color: transparent;
|
|
227
|
-
}
|
|
228
|
-
.textarea-input__textarea:hover {
|
|
229
|
-
--_cross-browser-scrollbar--thumb-color: var(--scrollbar--thumb-color, light-dark(#d1d5db, #4b5563));
|
|
230
|
-
--_cross-browser-scrollbar--track-color: var(--scrollbar--track-color, transparent);
|
|
231
|
-
}
|
|
232
|
-
.textarea-input__textarea::-webkit-scrollbar {
|
|
233
|
-
width: 6px;
|
|
234
|
-
height: 6px;
|
|
235
|
-
}
|
|
236
|
-
.textarea-input__textarea::-webkit-scrollbar-track {
|
|
237
|
-
background: var(--_cross-browser-scrollbar--track-color);
|
|
238
|
-
border-radius: 100vw;
|
|
239
|
-
}
|
|
240
|
-
.textarea-input__textarea::-webkit-scrollbar-thumb {
|
|
241
|
-
background: var(--_cross-browser-scrollbar--thumb-color);
|
|
242
|
-
border-radius: 100vw;
|
|
243
|
-
}
|
|
244
|
-
@supports (scrollbar-color: transparent transparent) {
|
|
245
|
-
.textarea-input__textarea {
|
|
246
|
-
scrollbar-color: var(--_cross-browser-scrollbar--thumb-color) var(--_cross-browser-scrollbar--track-color);
|
|
247
|
-
scrollbar-width: thin;
|
|
248
|
-
}
|
|
249
|
-
}</style>
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
value: string | null | undefined;
|
|
3
|
-
placeholder?: string;
|
|
4
|
-
/** Debounce delay in ms for change events @default 0 */
|
|
5
|
-
debounce?: number;
|
|
6
|
-
/** Hide placeholder text when textarea is focused @default true */
|
|
7
|
-
hidePlaceholderOnFocus?: boolean;
|
|
8
|
-
/** Fire submit callback on Enter key @default false */
|
|
9
|
-
submitOnEnter?: boolean;
|
|
10
|
-
/** Prevent line breaks, sanitize pasted text @default false */
|
|
11
|
-
singleLine?: boolean;
|
|
12
|
-
/** Minimum visible rows (0 = auto height) @default 0 */
|
|
13
|
-
rows?: number;
|
|
14
|
-
/** @default 50000 */
|
|
15
|
-
maxlength?: number;
|
|
16
|
-
id?: string;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
autofocus?: boolean;
|
|
19
|
-
/** Show emoji picker trigger */
|
|
20
|
-
emoji?: boolean;
|
|
21
|
-
/** Remove border, background, and accent shadow */
|
|
22
|
-
borderless?: boolean;
|
|
23
|
-
title?: string;
|
|
24
|
-
on: {
|
|
25
|
-
change?: (value: string) => void;
|
|
26
|
-
/** Fires on Enter when submitOnEnter is enabled */
|
|
27
|
-
submit?: () => void;
|
|
28
|
-
/** Fires after mount, provides the textarea element ref */
|
|
29
|
-
mounted?: (data: {
|
|
30
|
-
textarea: HTMLTextAreaElement;
|
|
31
|
-
}) => void;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Auto-resizing textarea with optional emoji picker, single-line mode, and submit-on-enter.
|
|
36
|
-
*
|
|
37
|
-
* ### CSS Custom Properties
|
|
38
|
-
* | Property | Description | Default |
|
|
39
|
-
* |---|---|---|
|
|
40
|
-
* | `--sc-kit--textarea--root--font-size` | Root font size for em scaling | `1rem` |
|
|
41
|
-
* | `--sc-kit--textarea--width` | Container width | `100%` |
|
|
42
|
-
* | `--sc-kit--textarea--min-height` | Minimum height | `none` |
|
|
43
|
-
* | `--sc-kit--textarea--max-height` | Maximum height | `none` |
|
|
44
|
-
* | `--sc-kit--textarea--padding--block` | Block (vertical) padding | `0.5em` |
|
|
45
|
-
* | `--sc-kit--textarea--padding--inline` | Inline (horizontal) padding | `0.5em` |
|
|
46
|
-
* | `--sc-kit--textarea--accent-color` | Focus accent color | light-dark primary-500/primary-400 |
|
|
47
|
-
* | `--sc-kit--textarea--background` | Background color | light-dark white/gray-900 |
|
|
48
|
-
* | `--sc-kit--textarea--background--disabled` | Disabled background | light-dark neutral-50/neutral-800 |
|
|
49
|
-
* | `--sc-kit--textarea--border-color` | Border color | light-dark neutral-300/neutral-600 |
|
|
50
|
-
* | `--sc-kit--textarea--border-radius` | Border radius | `0.25em` |
|
|
51
|
-
* | `--sc-kit--textarea--text--font-size` | Text font size | `0.875em` |
|
|
52
|
-
* | `--sc-kit--textarea--text--color` | Text color | light-dark gray-800/white |
|
|
53
|
-
* | `--sc-kit--textarea--text-align` | Text alignment | inherited |
|
|
54
|
-
* | `--sc-kit--textarea--placeholder--color` | Placeholder text color | inherited from border |
|
|
55
|
-
*/
|
|
56
|
-
declare const Cmp: import("svelte").Component<Props, {}, "">;
|
|
57
|
-
type Cmp = ReturnType<typeof Cmp>;
|
|
58
|
-
export default Cmp;
|