@dvcol/neo-svelte 1.1.2 → 1.2.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/CHANGELOG.md +90 -0
- package/README.md +15 -7
- package/dist/badge/neo-badge.model.d.ts +1 -1
- package/dist/buttons/NeoArrowButton.svelte +4 -4
- package/dist/buttons/NeoButton.svelte +110 -24
- package/dist/buttons/NeoButtonGroup.svelte +18 -9
- package/dist/buttons/NeoButtonGroup.svelte.d.ts +1 -1
- package/dist/buttons/NeoButtonRow.svelte +137 -0
- package/dist/buttons/NeoButtonRow.svelte.d.ts +4 -0
- package/dist/buttons/NeoCancelButton.svelte +2 -2
- package/dist/buttons/NeoCheckboxButton.svelte +6 -4
- package/dist/buttons/NeoCheckboxButton.svelte.d.ts +1 -1
- package/dist/buttons/NeoCloseButton.svelte +37 -6
- package/dist/buttons/NeoCloseButton.svelte.d.ts +2 -2
- package/dist/buttons/NeoRadioButton.svelte +6 -4
- package/dist/buttons/NeoSwitchButton.svelte +5 -3
- package/dist/buttons/index.d.ts +2 -0
- package/dist/buttons/index.js +1 -0
- package/dist/buttons/neo-arrow-button.model.d.ts +3 -3
- package/dist/buttons/neo-button-group.model.d.ts +12 -3
- package/dist/buttons/neo-button-row.model.d.ts +33 -0
- package/dist/buttons/neo-button-row.model.js +1 -0
- package/dist/buttons/neo-button.model.d.ts +11 -4
- package/dist/buttons/neo-close-button.model.d.ts +13 -0
- package/dist/buttons/neo-close-button.model.js +5 -0
- package/dist/buttons/neo-icon-button.model.d.ts +2 -2
- package/dist/cards/NeoCard.svelte +22 -20
- package/dist/cards/neo-card.model.d.ts +3 -2
- package/dist/collapse/NeoAccordion.svelte +3 -1
- package/dist/collapse/NeoCollapse.svelte +2 -2
- package/dist/collapse/NeoCollapse.svelte.d.ts +3 -1
- package/dist/collapse/neo-accordion.model.d.ts +2 -1
- package/dist/containers/NeoTransitionContainer.svelte +10 -0
- package/dist/containers/neo-transition-container.model.d.ts +9 -0
- package/dist/cursor/NeoCursor.svelte.d.ts +1 -1
- package/dist/divider/NeoDivider.svelte +4 -2
- package/dist/divider/neo-divider.model.d.ts +2 -1
- package/dist/floating/common/NeoConfirm.svelte +5 -5
- package/dist/floating/common/NeoConfirm.svelte.d.ts +1 -1
- package/dist/floating/common/NeoFloatingStepper.svelte +1 -1
- package/dist/floating/common/NeoFloatingStepper.svelte.d.ts +1 -1
- package/dist/floating/common/NeoHandle.svelte +2 -1
- package/dist/floating/common/neo-confirm.model.d.ts +2 -1
- package/dist/floating/common/neo-floating-stepper.model.d.ts +1 -1
- package/dist/floating/common/neo-placement.model.d.ts +56 -4
- package/dist/floating/common/neo-placement.model.js +22 -0
- package/dist/floating/dialog/NeoDialog.svelte +23 -21
- package/dist/floating/dialog/NeoDialog.svelte.d.ts +1 -1
- package/dist/floating/dialog/NeoDialogConfirm.svelte.d.ts +1 -1
- package/dist/floating/dialog/NeoDialogStepper.svelte.d.ts +1 -1
- package/dist/floating/dialog/neo-dialog-confirm.model.d.ts +5 -5
- package/dist/floating/dialog/neo-dialog-stepper.model.d.ts +4 -4
- package/dist/floating/dialog/neo-dialog.model.d.ts +2 -1
- package/dist/floating/dialog/use-movable.svelte.js +2 -1
- package/dist/floating/drawer/NeoDrawer.svelte +9 -9
- package/dist/floating/drawer/NeoDrawer.svelte.d.ts +2 -2
- package/dist/floating/drawer/NeoDrawerConfirm.svelte +2 -4
- package/dist/floating/drawer/NeoDrawerConfirm.svelte.d.ts +2 -2
- package/dist/floating/drawer/NeoDrawerStepper.svelte +2 -4
- package/dist/floating/drawer/NeoDrawerStepper.svelte.d.ts +2 -2
- package/dist/floating/drawer/neo-drawer.model.d.ts +6 -0
- package/dist/floating/drawer/neo-drawer.model.js +1 -0
- package/dist/floating/index.d.ts +1 -0
- package/dist/floating/index.js +1 -0
- package/dist/floating/menu/NeoMenu.svelte +55 -17
- package/dist/floating/menu/NeoMenu.svelte.d.ts +1 -1
- package/dist/floating/menu/NeoMenuList.svelte +60 -67
- package/dist/floating/menu/NeoMenuListItem.svelte +157 -24
- package/dist/floating/menu/NeoMenuListItem.svelte.d.ts +1 -0
- package/dist/floating/menu/index.d.ts +1 -0
- package/dist/floating/menu/neo-menu-list-item.model.d.ts +48 -11
- package/dist/floating/menu/neo-menu-list.model.d.ts +24 -4
- package/dist/floating/menu/neo-menu.model.d.ts +3 -3
- package/dist/floating/notification/NeoNotificationItem.svelte +459 -0
- package/dist/floating/notification/NeoNotificationItem.svelte.d.ts +4 -0
- package/dist/floating/notification/NeoNotificationProvider.svelte +49 -0
- package/dist/floating/notification/NeoNotificationProvider.svelte.d.ts +4 -0
- package/dist/floating/notification/NeoNotificationStack.svelte +345 -0
- package/dist/floating/notification/NeoNotificationStack.svelte.d.ts +16 -0
- package/dist/floating/notification/NeoSimpleNotification.svelte +304 -0
- package/dist/floating/notification/NeoSimpleNotification.svelte.d.ts +4 -0
- package/dist/floating/notification/index.d.ts +8 -0
- package/dist/floating/notification/index.js +7 -0
- package/dist/floating/notification/neo-notification-item.model.d.ts +54 -0
- package/dist/floating/notification/neo-notification-item.model.js +1 -0
- package/dist/floating/notification/neo-notification-provider.model.d.ts +78 -0
- package/dist/floating/notification/neo-notification-provider.model.js +18 -0
- package/dist/floating/notification/neo-notification-stack.model.d.ts +48 -0
- package/dist/floating/notification/neo-notification-stack.model.js +1 -0
- package/dist/floating/notification/neo-notification.model.d.ts +271 -0
- package/dist/floating/notification/neo-notification.model.js +70 -0
- package/dist/floating/notification/neo-simple-notification.model.d.ts +14 -0
- package/dist/floating/notification/neo-simple-notification.model.js +1 -0
- package/dist/floating/portal/NeoPortal.svelte +11 -8
- package/dist/floating/portal/NeoPortalTarget.svelte +7 -0
- package/dist/floating/portal/NeoPortalTarget.svelte.d.ts +7 -0
- package/dist/floating/portal/neo-portal-context.svelte.d.ts +1 -1
- package/dist/floating/portal/neo-portal.model.d.ts +4 -5
- package/dist/floating/tooltips/NeoPopConfirm.svelte +2 -0
- package/dist/floating/tooltips/NeoPopConfirm.svelte.d.ts +1 -1
- package/dist/floating/tooltips/NeoPopSelect.svelte +5 -3
- package/dist/floating/tooltips/NeoPopSelect.svelte.d.ts +1 -1
- package/dist/floating/tooltips/NeoPopStepper.svelte +2 -0
- package/dist/floating/tooltips/NeoPopStepper.svelte.d.ts +1 -1
- package/dist/floating/tooltips/NeoTooltip.svelte +43 -23
- package/dist/floating/tooltips/NeoTooltip.svelte.d.ts +5 -1
- package/dist/floating/tooltips/neo-pop-confirm.model.d.ts +1 -1
- package/dist/floating/tooltips/neo-pop-select.model.d.ts +1 -3
- package/dist/floating/tooltips/neo-pop-stepper.model.d.ts +2 -2
- package/dist/floating/tooltips/neo-tooltip.model.d.ts +7 -2
- package/dist/form/NeoForm.svelte +1 -1
- package/dist/form/NeoForm.svelte.d.ts +3 -1
- package/dist/form/neo-form-context.svelte.d.ts +2 -0
- package/dist/icons/{IconAccount.svelte → NeoIconAccount.svelte} +2 -2
- package/dist/icons/NeoIconAccount.svelte.d.ts +4 -0
- package/dist/icons/{IconAdd.svelte → NeoIconAdd.svelte} +11 -6
- package/dist/icons/NeoIconAdd.svelte.d.ts +4 -0
- package/dist/icons/{IconAddress.svelte → NeoIconAddress.svelte} +2 -2
- package/dist/icons/NeoIconAddress.svelte.d.ts +4 -0
- package/dist/icons/{IconAlert.svelte → NeoIconAlert.svelte} +11 -6
- package/dist/icons/NeoIconAlert.svelte.d.ts +4 -0
- package/dist/icons/{IconAlignBottom.svelte → NeoIconAlignBottom.svelte} +11 -6
- package/dist/icons/NeoIconAlignBottom.svelte.d.ts +4 -0
- package/dist/icons/{IconAlignMiddle.svelte → NeoIconAlignMiddle.svelte} +11 -6
- package/dist/icons/NeoIconAlignMiddle.svelte.d.ts +4 -0
- package/dist/icons/{IconAlignTop.svelte → NeoIconAlignTop.svelte} +11 -6
- package/dist/icons/NeoIconAlignTop.svelte.d.ts +4 -0
- package/dist/icons/{IconArrow.svelte → NeoIconArrow.svelte} +9 -9
- package/dist/icons/NeoIconArrow.svelte.d.ts +4 -0
- package/dist/icons/NeoIconAudio.svelte +83 -0
- package/dist/icons/NeoIconAudio.svelte.d.ts +4 -0
- package/dist/icons/NeoIconBouncingDots.svelte +82 -0
- package/dist/icons/NeoIconBouncingDots.svelte.d.ts +4 -0
- package/dist/icons/{IconCalendar.svelte → NeoIconCalendar.svelte} +11 -6
- package/dist/icons/NeoIconCalendar.svelte.d.ts +4 -0
- package/dist/icons/{IconCancel.svelte → NeoIconCancel.svelte} +2 -2
- package/dist/icons/NeoIconCancel.svelte.d.ts +4 -0
- package/dist/icons/{IconCheckbox.svelte → NeoIconCheckbox.svelte} +2 -2
- package/dist/icons/NeoIconCheckbox.svelte.d.ts +4 -0
- package/dist/icons/NeoIconCircle.svelte +18 -0
- package/dist/icons/NeoIconCircle.svelte.d.ts +4 -0
- package/dist/icons/{IconCircleLoading.svelte → NeoIconCircleLoading.svelte} +2 -2
- package/dist/icons/{IconCircleLoading.svelte.d.ts → NeoIconCircleLoading.svelte.d.ts} +55 -39
- package/dist/icons/{IconClear.svelte → NeoIconClear.svelte} +11 -6
- package/dist/icons/NeoIconClear.svelte.d.ts +4 -0
- package/dist/icons/{IconClose.svelte → NeoIconClose.svelte} +2 -2
- package/dist/icons/NeoIconClose.svelte.d.ts +4 -0
- package/dist/icons/NeoIconCog.svelte +36 -0
- package/dist/icons/NeoIconCog.svelte.d.ts +4 -0
- package/dist/icons/{IconConfirm.svelte → NeoIconConfirm.svelte} +11 -6
- package/dist/icons/NeoIconConfirm.svelte.d.ts +4 -0
- package/dist/icons/NeoIconCube.svelte +31 -0
- package/dist/icons/NeoIconCube.svelte.d.ts +4 -0
- package/dist/icons/{IconDoubleChevron.svelte → NeoIconDoubleChevron.svelte} +11 -5
- package/dist/icons/NeoIconDoubleChevron.svelte.d.ts +4 -0
- package/dist/icons/{IconDoubleChevronLeft.svelte → NeoIconDoubleChevronLeft.svelte} +11 -6
- package/dist/icons/NeoIconDoubleChevronLeft.svelte.d.ts +4 -0
- package/dist/icons/{IconDoubleChevronRight.svelte → NeoIconDoubleChevronRight.svelte} +11 -6
- package/dist/icons/NeoIconDoubleChevronRight.svelte.d.ts +4 -0
- package/dist/icons/{IconDownload.svelte → NeoIconDownload.svelte} +11 -6
- package/dist/icons/NeoIconDownload.svelte.d.ts +4 -0
- package/dist/icons/NeoIconEmpty.svelte +26 -0
- package/dist/icons/NeoIconEmpty.svelte.d.ts +4 -0
- package/dist/icons/NeoIconError.svelte +30 -0
- package/dist/icons/NeoIconError.svelte.d.ts +4 -0
- package/dist/icons/{IconFileUpload.svelte → NeoIconFileUpload.svelte} +11 -6
- package/dist/icons/NeoIconFileUpload.svelte.d.ts +4 -0
- package/dist/icons/NeoIconFire.svelte +33 -0
- package/dist/icons/NeoIconFire.svelte.d.ts +4 -0
- package/dist/icons/{IconGithub.svelte → NeoIconGithub.svelte} +11 -6
- package/dist/icons/NeoIconGithub.svelte.d.ts +4 -0
- package/dist/icons/NeoIconImage.svelte +39 -0
- package/dist/icons/NeoIconImage.svelte.d.ts +4 -0
- package/dist/icons/NeoIconInfo.svelte +30 -0
- package/dist/icons/NeoIconInfo.svelte.d.ts +4 -0
- package/dist/icons/{IconList.svelte → NeoIconList.svelte} +11 -6
- package/dist/icons/NeoIconList.svelte.d.ts +4 -0
- package/dist/icons/{IconListSmall.svelte → NeoIconListSmall.svelte} +2 -2
- package/dist/icons/NeoIconListSmall.svelte.d.ts +4 -0
- package/dist/icons/{IconLoadingMatrix.svelte → NeoIconLoadingMatrix.svelte} +2 -2
- package/dist/icons/NeoIconLoadingMatrix.svelte.d.ts +4 -0
- package/dist/icons/{IconMail.svelte → NeoIconMail.svelte} +11 -6
- package/dist/icons/NeoIconMail.svelte.d.ts +4 -0
- package/dist/icons/{IconMinus.svelte → NeoIconMinus.svelte} +11 -6
- package/dist/icons/NeoIconMinus.svelte.d.ts +4 -0
- package/dist/icons/{IconPaint.svelte → NeoIconPaint.svelte} +11 -6
- package/dist/icons/NeoIconPaint.svelte.d.ts +4 -0
- package/dist/icons/{IconPencil.svelte → NeoIconPencil.svelte} +11 -6
- package/dist/icons/NeoIconPencil.svelte.d.ts +4 -0
- package/dist/icons/{IconPlayPause.svelte → NeoIconPlayPause.svelte} +2 -2
- package/dist/icons/NeoIconPlayPause.svelte.d.ts +4 -0
- package/dist/icons/{IconQuestionMark.svelte → NeoIconQuestionMark.svelte} +11 -6
- package/dist/icons/NeoIconQuestionMark.svelte.d.ts +4 -0
- package/dist/icons/{IconRadio.svelte → NeoIconRadio.svelte} +2 -2
- package/dist/icons/NeoIconRadio.svelte.d.ts +4 -0
- package/dist/icons/NeoIconRefresh.svelte +38 -0
- package/dist/icons/NeoIconRefresh.svelte.d.ts +4 -0
- package/dist/icons/NeoIconRestore.svelte +20 -0
- package/dist/icons/NeoIconRestore.svelte.d.ts +4 -0
- package/dist/icons/NeoIconSave.svelte +35 -0
- package/dist/icons/NeoIconSave.svelte.d.ts +4 -0
- package/dist/icons/NeoIconSaveOff.svelte +42 -0
- package/dist/icons/NeoIconSaveOff.svelte.d.ts +4 -0
- package/dist/icons/{IconSearch.svelte → NeoIconSearch.svelte} +11 -6
- package/dist/icons/NeoIconSearch.svelte.d.ts +4 -0
- package/dist/icons/NeoIconSuccess.svelte +26 -0
- package/dist/icons/NeoIconSuccess.svelte.d.ts +4 -0
- package/dist/icons/{IconSun.svelte → NeoIconSun.svelte} +11 -6
- package/dist/icons/NeoIconSun.svelte.d.ts +4 -0
- package/dist/icons/{IconSunMoon.svelte → NeoIconSunMoon.svelte} +11 -64
- package/dist/icons/NeoIconSunMoon.svelte.d.ts +4 -0
- package/dist/icons/{IconTextHighlight.svelte → NeoIconTextHighlight.svelte} +11 -6
- package/dist/icons/NeoIconTextHighlight.svelte.d.ts +4 -0
- package/dist/icons/NeoIconTheme.svelte +14 -0
- package/dist/icons/NeoIconTheme.svelte.d.ts +3 -0
- package/dist/icons/NeoIconTrend.svelte +39 -0
- package/dist/icons/NeoIconTrend.svelte.d.ts +4 -0
- package/dist/icons/NeoIconUnplug.svelte +63 -0
- package/dist/icons/NeoIconUnplug.svelte.d.ts +4 -0
- package/dist/icons/{IconVideo.svelte → NeoIconVideo.svelte} +11 -6
- package/dist/icons/NeoIconVideo.svelte.d.ts +4 -0
- package/dist/icons/NeoIconWarning.svelte +30 -0
- package/dist/icons/NeoIconWarning.svelte.d.ts +4 -0
- package/dist/icons/NeoIconWatch.svelte +41 -0
- package/dist/icons/NeoIconWatch.svelte.d.ts +4 -0
- package/dist/icons/NeoIconWatchOff.svelte +50 -0
- package/dist/icons/NeoIconWatchOff.svelte.d.ts +4 -0
- package/dist/icons/NeoIconWave.svelte +31 -0
- package/dist/icons/NeoIconWave.svelte.d.ts +4 -0
- package/dist/icons/index.d.ts +54 -0
- package/dist/icons/index.js +54 -0
- package/dist/icons/{icon.model.d.ts → neo-icon.model.d.ts} +41 -13
- package/dist/icons/{icon.model.js → neo-icon.model.js} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/inputs/NeoCheckbox.svelte +6 -4
- package/dist/inputs/NeoCheckbox.svelte.d.ts +1 -1
- package/dist/inputs/NeoColorPicker.svelte +6 -3
- package/dist/inputs/NeoColorPicker.svelte.d.ts +1 -1
- package/dist/inputs/NeoColorPickerSelector.svelte +2 -2
- package/dist/inputs/NeoColorPickerSelector.svelte.d.ts +1 -1
- package/dist/inputs/NeoDateTime.svelte +6 -3
- package/dist/inputs/NeoDateTime.svelte.d.ts +1 -1
- package/dist/inputs/NeoFilePicker.svelte +11 -6
- package/dist/inputs/NeoFilePicker.svelte.d.ts +1 -1
- package/dist/inputs/NeoFilePickerCard.svelte +20 -14
- package/dist/inputs/NeoNativeSelect.svelte +6 -3
- package/dist/inputs/NeoNativeSelect.svelte.d.ts +1 -1
- package/dist/inputs/NeoNumberStep.svelte +13 -8
- package/dist/inputs/NeoNumberStep.svelte.d.ts +1 -1
- package/dist/inputs/NeoPassword.svelte +4 -4
- package/dist/inputs/NeoPassword.svelte.d.ts +1 -1
- package/dist/inputs/NeoPin.svelte +10 -10
- package/dist/inputs/NeoPin.svelte.d.ts +10 -1
- package/dist/inputs/NeoRadio.svelte +3 -3
- package/dist/inputs/NeoRadio.svelte.d.ts +1 -1
- package/dist/inputs/NeoRange.svelte +29 -27
- package/dist/inputs/NeoRange.svelte.d.ts +5 -2
- package/dist/inputs/NeoSelect.svelte +17 -8
- package/dist/inputs/NeoSelect.svelte.d.ts +1 -1
- package/dist/inputs/NeoSwitch.svelte +2 -2
- package/dist/inputs/NeoSwitch.svelte.d.ts +1 -1
- package/dist/inputs/common/NeoAffix.svelte +10 -10
- package/dist/inputs/common/NeoBaseInput.svelte +16 -2
- package/dist/inputs/common/NeoBaseInput.svelte.d.ts +1 -1
- package/dist/inputs/common/NeoInput.svelte +12 -4
- package/dist/inputs/common/NeoInput.svelte.d.ts +1 -1
- package/dist/inputs/common/NeoTextarea.svelte +18 -6
- package/dist/inputs/common/NeoTextarea.svelte.d.ts +2 -1
- package/dist/inputs/common/NeoValidation.svelte +6 -4
- package/dist/inputs/common/neo-input.model.d.ts +8 -1
- package/dist/inputs/common/neo-validation.model.d.ts +2 -1
- package/dist/inputs/neo-range.model.d.ts +2 -1
- package/dist/inputs/neo-select.model.d.ts +8 -4
- package/dist/list/NeoList.svelte +100 -62
- package/dist/list/NeoList.svelte.d.ts +5 -2
- package/dist/list/NeoListBaseItem.svelte +222 -92
- package/dist/list/NeoListBaseItem.svelte.d.ts +1 -1
- package/dist/list/NeoListBaseLoader.svelte +28 -4
- package/dist/list/NeoListBaseSection.svelte +18 -15
- package/dist/list/NeoListSearch.svelte +36 -20
- package/dist/list/NeoListSearch.svelte.d.ts +1 -1
- package/dist/list/NeoSimpleList.svelte +391 -0
- package/dist/list/NeoSimpleList.svelte.d.ts +8 -0
- package/dist/list/NeoVirtualList.svelte +388 -0
- package/dist/list/NeoVirtualList.svelte.d.ts +22 -0
- package/dist/list/index.d.ts +4 -0
- package/dist/list/index.js +2 -0
- package/dist/list/neo-list-base-item.model.d.ts +36 -7
- package/dist/list/neo-list-base-item.model.js +1 -0
- package/dist/list/neo-list-base-loader.model.d.ts +18 -1
- package/dist/list/neo-list-base-section.model.d.ts +8 -5
- package/dist/list/neo-list-search.model.d.ts +2 -2
- package/dist/list/neo-list.model.d.ts +120 -51
- package/dist/list/neo-list.model.js +18 -0
- package/dist/list/neo-simple-list.model.d.ts +124 -0
- package/dist/list/neo-simple-list.model.js +1 -0
- package/dist/list/neo-virtual-list.model.d.ts +69 -0
- package/dist/list/neo-virtual-list.model.js +6 -0
- package/dist/loading/NeoLoadingMatrix.svelte +2 -2
- package/dist/loading/neo-lazy.model.d.ts +2 -2
- package/dist/loading/neo-suspense.model.d.ts +1 -1
- package/dist/media/NeoImage.svelte +204 -0
- package/dist/media/NeoImage.svelte.d.ts +4 -0
- package/dist/media/NeoMedia.svelte +204 -0
- package/dist/media/NeoMedia.svelte.d.ts +4 -0
- package/dist/media/index.d.ts +2 -0
- package/dist/media/index.js +1 -0
- package/dist/media/neo-image.model.d.ts +67 -0
- package/dist/media/neo-image.model.js +1 -0
- package/dist/media/neo-media.model.d.ts +120 -0
- package/dist/media/neo-media.model.js +5 -0
- package/dist/nav/NeoTab.svelte +20 -15
- package/dist/nav/NeoTab.svelte.d.ts +17 -2
- package/dist/nav/NeoTabPanel.svelte +7 -5
- package/dist/nav/NeoTabPanel.svelte.d.ts +17 -2
- package/dist/nav/NeoTabs.svelte +21 -17
- package/dist/nav/NeoTabs.svelte.d.ts +19 -3
- package/dist/nav/NeoTabsCard.svelte +5 -3
- package/dist/nav/NeoTabsCard.svelte.d.ts +17 -2
- package/dist/nav/NeoTabsRow.svelte +225 -0
- package/dist/nav/NeoTabsRow.svelte.d.ts +19 -0
- package/dist/nav/index.d.ts +2 -0
- package/dist/nav/index.js +1 -0
- package/dist/nav/neo-tab-panel.model.d.ts +3 -3
- package/dist/nav/neo-tab.model.d.ts +15 -5
- package/dist/nav/neo-tabs-card.model.d.ts +3 -2
- package/dist/nav/neo-tabs-context.svelte.d.ts +35 -29
- package/dist/nav/neo-tabs-context.svelte.js +17 -3
- package/dist/nav/neo-tabs-row.model.d.ts +85 -0
- package/dist/nav/neo-tabs-row.model.js +1 -0
- package/dist/nav/neo-tabs.model.d.ts +12 -11
- package/dist/pill/NeoPill.svelte +73 -14
- package/dist/pill/neo-pill.model.d.ts +25 -1
- package/dist/progress/NeoProgress.svelte +203 -42
- package/dist/progress/NeoProgress.svelte.d.ts +8 -8
- package/dist/progress/NeoProgressBar.svelte +37 -6
- package/dist/progress/NeoProgressBar.svelte.d.ts +9 -1
- package/dist/progress/index.d.ts +1 -0
- package/dist/progress/index.js +1 -0
- package/dist/progress/neo-progress-bar.model.d.ts +11 -6
- package/dist/progress/neo-progress-service.svelte.d.ts +47 -0
- package/dist/progress/neo-progress-service.svelte.js +157 -0
- package/dist/progress/neo-progress.model.d.ts +98 -41
- package/dist/progress/neo-progress.model.js +6 -1
- package/dist/providers/NeoRememberSelector.svelte +43 -0
- package/dist/providers/NeoRememberSelector.svelte.d.ts +4 -0
- package/dist/providers/NeoResetSelector.svelte +40 -0
- package/dist/providers/NeoResetSelector.svelte.d.ts +4 -0
- package/dist/providers/NeoSourceSelector.svelte +63 -0
- package/dist/providers/NeoSourceSelector.svelte.d.ts +4 -0
- package/dist/providers/NeoThemeProvider.svelte +25 -10
- package/dist/providers/NeoThemeProvider.svelte.d.ts +1 -2
- package/dist/providers/NeoThemeSelector.svelte +26 -108
- package/dist/providers/NeoThemeSelector.svelte.d.ts +1 -1
- package/dist/providers/NeoThemeSelectors.svelte +57 -0
- package/dist/providers/NeoThemeSelectors.svelte.d.ts +4 -0
- package/dist/providers/NeoTransitionSelector.svelte +57 -0
- package/dist/providers/NeoTransitionSelector.svelte.d.ts +4 -0
- package/dist/providers/index.d.ts +10 -0
- package/dist/providers/index.js +5 -0
- package/dist/providers/neo-remember-selector.model.d.ts +9 -0
- package/dist/providers/neo-remember-selector.model.js +2 -0
- package/dist/providers/neo-reset-selector.model.d.ts +9 -0
- package/dist/providers/neo-reset-selector.model.js +1 -0
- package/dist/providers/neo-source-selector.model.d.ts +9 -0
- package/dist/providers/neo-source-selector.model.js +2 -0
- package/dist/providers/neo-theme-provider-context.svelte.d.ts +14 -3
- package/dist/providers/neo-theme-provider-context.svelte.js +94 -11
- package/dist/providers/neo-theme-provider.model.d.ts +31 -3
- package/dist/providers/neo-theme-provider.model.js +9 -0
- package/dist/providers/neo-theme-selector.model.d.ts +3 -48
- package/dist/providers/neo-theme-selector.model.js +1 -0
- package/dist/providers/neo-theme-selectors.model.d.ts +84 -0
- package/dist/providers/neo-theme-selectors.model.js +1 -0
- package/dist/providers/neo-transition-selector.model.d.ts +9 -0
- package/dist/providers/neo-transition-selector.model.js +2 -0
- package/dist/skeletons/NeoSkeletonContainer.svelte +3 -1
- package/dist/skeletons/NeoSkeletonMedia.svelte +26 -18
- package/dist/skeletons/NeoSkeletonText.svelte +5 -3
- package/dist/skeletons/neo-skeleton-container.model.d.ts +9 -0
- package/dist/skeletons/neo-skeleton-media.model.d.ts +20 -10
- package/dist/skeletons/neo-skeleton-media.model.js +7 -1
- package/dist/skeletons/neo-skeleton-text.model.d.ts +5 -0
- package/dist/stepper/NeoStepper.svelte +20 -20
- package/dist/stepper/NeoStepper.svelte.d.ts +9 -2
- package/dist/stepper/neo-stepper.model.d.ts +5 -5
- package/dist/styles/animation.scss +76 -0
- package/dist/styles/common/colors.scss +15 -9
- package/dist/styles/common/properties.css +18 -0
- package/dist/styles/common/spacing.scss +8 -4
- package/dist/styles/common/typography.scss +13 -3
- package/dist/styles/common/utils.scss +2 -2
- package/dist/styles/mixin.scss +125 -11
- package/dist/styles/theme.scss +20 -0
- package/dist/styles/transition.scss +101 -0
- package/dist/text/NeoEllipsis.svelte +1 -0
- package/dist/text/NeoHtml.svelte +26 -0
- package/dist/text/NeoHtml.svelte.d.ts +7 -0
- package/dist/text/NeoMark.svelte +18 -5
- package/dist/text/NeoTypewriter.svelte +5 -4
- package/dist/text/NeoTypewriter.svelte.d.ts +5 -1
- package/dist/text/index.d.ts +2 -0
- package/dist/text/index.js +1 -0
- package/dist/text/neo-html.model.d.ts +4 -0
- package/dist/text/neo-html.model.js +1 -0
- package/dist/text/neo-mark.model.d.ts +8 -0
- package/dist/text/typewriter.utils.d.ts +2 -2
- package/dist/text/typewriter.utils.js +8 -9
- package/dist/utils/action.utils.d.ts +1 -21
- package/dist/utils/border.utils.d.ts +13 -0
- package/dist/utils/border.utils.js +18 -0
- package/dist/utils/colors.utils.d.ts +1 -1
- package/dist/utils/error.utils.d.ts +22 -0
- package/dist/utils/error.utils.js +36 -0
- package/dist/utils/style.utils.d.ts +1 -1
- package/package.json +55 -39
- package/dist/icons/IconAccount.svelte.d.ts +0 -4
- package/dist/icons/IconAdd.svelte.d.ts +0 -26
- package/dist/icons/IconAddress.svelte.d.ts +0 -4
- package/dist/icons/IconAlert.svelte.d.ts +0 -26
- package/dist/icons/IconAlignBottom.svelte.d.ts +0 -26
- package/dist/icons/IconAlignMiddle.svelte.d.ts +0 -26
- package/dist/icons/IconAlignTop.svelte.d.ts +0 -26
- package/dist/icons/IconArrow.svelte.d.ts +0 -4
- package/dist/icons/IconBouncingDots.svelte +0 -63
- package/dist/icons/IconBouncingDots.svelte.d.ts +0 -4
- package/dist/icons/IconCalendar.svelte.d.ts +0 -26
- package/dist/icons/IconCancel.svelte.d.ts +0 -4
- package/dist/icons/IconCheckbox.svelte.d.ts +0 -4
- package/dist/icons/IconClear.svelte.d.ts +0 -26
- package/dist/icons/IconClose.svelte.d.ts +0 -4
- package/dist/icons/IconConfirm.svelte.d.ts +0 -26
- package/dist/icons/IconDoubleChevron.svelte.d.ts +0 -26
- package/dist/icons/IconDoubleChevronLeft.svelte.d.ts +0 -26
- package/dist/icons/IconDoubleChevronRight.svelte.d.ts +0 -26
- package/dist/icons/IconDownload.svelte.d.ts +0 -26
- package/dist/icons/IconEmpty.svelte +0 -18
- package/dist/icons/IconEmpty.svelte.d.ts +0 -26
- package/dist/icons/IconFileUpload.svelte.d.ts +0 -26
- package/dist/icons/IconGithub.svelte.d.ts +0 -26
- package/dist/icons/IconImage.svelte +0 -26
- package/dist/icons/IconImage.svelte.d.ts +0 -26
- package/dist/icons/IconList.svelte.d.ts +0 -26
- package/dist/icons/IconListSmall.svelte.d.ts +0 -4
- package/dist/icons/IconLoadingMatrix.svelte.d.ts +0 -4
- package/dist/icons/IconMail.svelte.d.ts +0 -26
- package/dist/icons/IconMinus.svelte.d.ts +0 -26
- package/dist/icons/IconPaint.svelte.d.ts +0 -26
- package/dist/icons/IconPencil.svelte.d.ts +0 -26
- package/dist/icons/IconPlayPause.svelte.d.ts +0 -4
- package/dist/icons/IconQuestionMark.svelte.d.ts +0 -26
- package/dist/icons/IconRadio.svelte.d.ts +0 -4
- package/dist/icons/IconSave.svelte +0 -25
- package/dist/icons/IconSave.svelte.d.ts +0 -26
- package/dist/icons/IconSaveOff.svelte +0 -32
- package/dist/icons/IconSaveOff.svelte.d.ts +0 -26
- package/dist/icons/IconSearch.svelte.d.ts +0 -26
- package/dist/icons/IconSun.svelte.d.ts +0 -26
- package/dist/icons/IconSunMoon.svelte.d.ts +0 -4
- package/dist/icons/IconTextHighlight.svelte.d.ts +0 -26
- package/dist/icons/IconVideo.svelte.d.ts +0 -26
- package/dist/icons/IconWatch.svelte +0 -29
- package/dist/icons/IconWatch.svelte.d.ts +0 -26
- package/dist/icons/IconWatchOff.svelte +0 -34
- package/dist/icons/IconWatchOff.svelte.d.ts +0 -26
package/dist/text/NeoMark.svelte
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { MarkAndToken } from '@dvcol/common-utils/common/string';
|
|
3
|
-
|
|
4
2
|
import type { NeoMarkProps } from './neo-mark.model.js';
|
|
5
3
|
|
|
6
4
|
import { markTokenizer } from '@dvcol/common-utils/common/string';
|
|
7
5
|
|
|
6
|
+
import NeoHtml from './NeoHtml.svelte';
|
|
7
|
+
|
|
8
8
|
const {
|
|
9
9
|
// Snippets
|
|
10
10
|
children,
|
|
@@ -14,16 +14,29 @@
|
|
|
14
14
|
value,
|
|
15
15
|
filter,
|
|
16
16
|
tokenizer = markTokenizer,
|
|
17
|
+
html = false,
|
|
17
18
|
|
|
18
19
|
// Other props
|
|
19
20
|
...rest
|
|
20
21
|
}: NeoMarkProps = $props();
|
|
21
22
|
|
|
22
|
-
const parts = $derived
|
|
23
|
+
const parts = $derived.by(() => {
|
|
24
|
+
if (html) return;
|
|
25
|
+
return tokenizer(value, filter);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const content = $derived.by(() => {
|
|
29
|
+
if (!html) return;
|
|
30
|
+
return tokenizer(value, filter, { html: true }).map(({ token, mark }) => mark ? `${token}<mark>${mark}</mark>` : token).join('');
|
|
31
|
+
});
|
|
32
|
+
|
|
23
33
|
</script>
|
|
24
34
|
|
|
25
35
|
<svelte:element this={tag} class:neo-mark={true} {...rest}>
|
|
26
|
-
{#if
|
|
36
|
+
{#if content?.length}
|
|
37
|
+
{@const htmlProps = typeof html === 'object' ? html : {}}
|
|
38
|
+
<NeoHtml html={content} {...htmlProps} />
|
|
39
|
+
{:else if parts?.length && parts?.at(0)?.mark}
|
|
27
40
|
{#each parts as { token, mark }, i (i)}{token}{#if mark}<mark>{mark}</mark>{/if}{/each}
|
|
28
41
|
{:else}
|
|
29
42
|
{value}
|
|
@@ -31,7 +44,7 @@
|
|
|
31
44
|
{@render children?.()}
|
|
32
45
|
</svelte:element>
|
|
33
46
|
|
|
34
|
-
<style>.neo-mark mark {
|
|
47
|
+
<style>.neo-mark :global(mark) {
|
|
35
48
|
color: var(--neo-mark-color, var(--neo-text-color-highlight));
|
|
36
49
|
font-weight: var(--neo-mark-font-weight, bold);
|
|
37
50
|
background-color: inherit;
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
let writing = $state(false);
|
|
64
64
|
let promise: Promise<string | undefined>;
|
|
65
65
|
let controller: AbortController;
|
|
66
|
-
|
|
67
|
-
untrack(async () => {
|
|
66
|
+
export function write(options: TypewriterOptions, signal: AbortSignal) {
|
|
67
|
+
return untrack(async () => {
|
|
68
68
|
writing = true;
|
|
69
69
|
try {
|
|
70
70
|
promise = typewriter(options);
|
|
@@ -76,11 +76,12 @@
|
|
|
76
76
|
if (!signal.aborted) onComplete?.();
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
+
}
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
export function abort() {
|
|
81
82
|
controller?.abort();
|
|
82
83
|
display = '';
|
|
83
|
-
}
|
|
84
|
+
}
|
|
84
85
|
|
|
85
86
|
$effect(() => {
|
|
86
87
|
if (!lines?.length) return;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { NeoTypewriterProps } from './neo-typewriter.model.js';
|
|
2
|
-
|
|
2
|
+
import type { TypewriterOptions } from './typewriter.utils.js';
|
|
3
|
+
declare const NeoTypewriter: import("svelte").Component<NeoTypewriterProps, {
|
|
4
|
+
write: (options: TypewriterOptions, signal: AbortSignal) => Promise<void>;
|
|
5
|
+
abort: () => void;
|
|
6
|
+
}, "value" | "ref" | "display">;
|
|
3
7
|
type NeoTypewriter = ReturnType<typeof NeoTypewriter>;
|
|
4
8
|
export default NeoTypewriter;
|
package/dist/text/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export { default as NeoEllipsis } from './NeoEllipsis.svelte';
|
|
2
|
+
export { default as NeoHtml } from './NeoHtml.svelte';
|
|
2
3
|
export { default as NeoMark } from './NeoMark.svelte';
|
|
3
4
|
export { default as NeoScrollShadow } from './NeoScrollShadow.svelte';
|
|
4
5
|
export { default as NeoTypewriter } from './NeoTypewriter.svelte';
|
|
5
6
|
export type * from './neo-ellipsis.model.js';
|
|
7
|
+
export type * from './neo-html.model.js';
|
|
6
8
|
export type * from './neo-mark.model.js';
|
|
7
9
|
export type * from './neo-scroll-shadow.model.js';
|
|
8
10
|
export type * from './neo-typewriter.model.js';
|
package/dist/text/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as NeoEllipsis } from './NeoEllipsis.svelte';
|
|
2
|
+
export { default as NeoHtml } from './NeoHtml.svelte';
|
|
2
3
|
export { default as NeoMark } from './NeoMark.svelte';
|
|
3
4
|
export { default as NeoScrollShadow } from './NeoScrollShadow.svelte';
|
|
4
5
|
export { default as NeoTypewriter } from './NeoTypewriter.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MarkTokenizer } from '@dvcol/common-utils/common/string';
|
|
2
|
+
import type { NeoHtmlProps } from './neo-html.model.js';
|
|
2
3
|
import type { HTMLNeoBaseElement } from '../utils/html-element.utils.js';
|
|
3
4
|
export type NeoMarkTokenizer = MarkTokenizer;
|
|
4
5
|
export type NeoMarkProps<Tag extends keyof HTMLElementTagNameMap = 'span'> = {
|
|
@@ -24,4 +25,11 @@ export type NeoMarkProps<Tag extends keyof HTMLElementTagNameMap = 'span'> = {
|
|
|
24
25
|
* @returns array of [part, mark] tuples
|
|
25
26
|
*/
|
|
26
27
|
tokenizer?: NeoMarkTokenizer;
|
|
28
|
+
/**
|
|
29
|
+
* Html rendering options.
|
|
30
|
+
*
|
|
31
|
+
* If falsy, value will be parsed as text content.
|
|
32
|
+
* If truthy, value will be parsed as HTML.
|
|
33
|
+
*/
|
|
34
|
+
html?: boolean | Omit<NeoHtmlProps, 'html'>;
|
|
27
35
|
} & HTMLNeoBaseElement<HTMLElementTagNameMap[Tag]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const KeyboardLayouts:
|
|
1
|
+
export declare const KeyboardLayouts: {
|
|
2
2
|
readonly Qwerty: "qwerty";
|
|
3
3
|
readonly Azerty: "azerty";
|
|
4
|
-
}
|
|
4
|
+
};
|
|
5
5
|
export type KeyboardLayout = (typeof KeyboardLayouts)[keyof typeof KeyboardLayouts];
|
|
6
6
|
export interface TypeWriterRandomOptions {
|
|
7
7
|
/**
|
|
@@ -23,12 +23,12 @@ function useAbortPromise({ controller = new AbortController(), fallback, error,
|
|
|
23
23
|
abort,
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
export const KeyboardLayouts =
|
|
26
|
+
export const KeyboardLayouts = {
|
|
27
27
|
Qwerty: 'qwerty',
|
|
28
28
|
Azerty: 'azerty',
|
|
29
|
-
}
|
|
30
|
-
const KeyboardTypoMap =
|
|
31
|
-
[KeyboardLayouts.Qwerty]:
|
|
29
|
+
};
|
|
30
|
+
const KeyboardTypoMap = {
|
|
31
|
+
[KeyboardLayouts.Qwerty]: {
|
|
32
32
|
'q': 'wa',
|
|
33
33
|
'w': 'qse',
|
|
34
34
|
'e': 'wrd',
|
|
@@ -70,8 +70,8 @@ const KeyboardTypoMap = Object.freeze({
|
|
|
70
70
|
'.': ',/',
|
|
71
71
|
',': 'm.',
|
|
72
72
|
'/': '.',
|
|
73
|
-
}
|
|
74
|
-
[KeyboardLayouts.Azerty]:
|
|
73
|
+
},
|
|
74
|
+
[KeyboardLayouts.Azerty]: {
|
|
75
75
|
'a': 'qzs',
|
|
76
76
|
'z': 'aqse',
|
|
77
77
|
'e': 'zrsd',
|
|
@@ -113,8 +113,8 @@ const KeyboardTypoMap = Object.freeze({
|
|
|
113
113
|
'.': ',/',
|
|
114
114
|
',': 'm.',
|
|
115
115
|
'/': '.',
|
|
116
|
-
}
|
|
117
|
-
}
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
118
|
function generateTypo(char, layout) {
|
|
119
119
|
const lowerChar = char.toLowerCase();
|
|
120
120
|
const keyMap = KeyboardTypoMap[layout] || KeyboardTypoMap.qwerty;
|
|
@@ -274,7 +274,6 @@ export async function typewriter({ lines, iterations = 1, controller, ...options
|
|
|
274
274
|
break;
|
|
275
275
|
const line = toLine(lines[index]);
|
|
276
276
|
const opts = mergeOptions(line, { controller, ...options });
|
|
277
|
-
console.info('Typewriter:', opts);
|
|
278
277
|
if (opts.mode === 'loop') {
|
|
279
278
|
await sliceText(line.text, index, iteration, 'write', opts);
|
|
280
279
|
await sliceText(line.text, index, iteration, 'delete', opts);
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
import type { AnimationFunction, TransitionFunction, TransitionProps } from '@dvcol/svelte-utils/transition';
|
|
1
|
+
import type { AnimationFunction, AnimationWithProps, TransitionFunction, TransitionProps, TransitionWithProps } from '@dvcol/svelte-utils/transition';
|
|
2
2
|
import type { Action } from 'svelte/action';
|
|
3
3
|
export declare const emptyUse: Action<HTMLElement, any>;
|
|
4
|
-
export interface TransitionWithProps<T extends TransitionProps = TransitionProps, F extends TransitionFunction<T> | AnimationFunction<T> = TransitionFunction<T>> {
|
|
5
|
-
/**
|
|
6
|
-
* Transition function.
|
|
7
|
-
*/
|
|
8
|
-
use: F;
|
|
9
|
-
/**
|
|
10
|
-
* Optional transition props.
|
|
11
|
-
*/
|
|
12
|
-
props?: T;
|
|
13
|
-
}
|
|
14
|
-
export interface AnimationWithProps<T extends TransitionProps = TransitionProps> {
|
|
15
|
-
/**
|
|
16
|
-
* Transition function.
|
|
17
|
-
*/
|
|
18
|
-
use: AnimationFunction<T>;
|
|
19
|
-
/**
|
|
20
|
-
* Optional transition props.
|
|
21
|
-
*/
|
|
22
|
-
props?: T;
|
|
23
|
-
}
|
|
24
4
|
export declare function isTransitionWithProps<T extends TransitionProps, F extends TransitionFunction<T> | AnimationFunction<T> = TransitionFunction<T>>(transition: F | TransitionWithProps<T, F>): transition is TransitionWithProps<T, F>;
|
|
25
5
|
export declare function toAnimation<T extends TransitionProps>(transition?: AnimationFunction<T> | AnimationWithProps<T>, fallback?: AnimationFunction<T>): AnimationFunction<T>;
|
|
26
6
|
export declare function toTransition<T extends TransitionProps>(transition?: TransitionFunction<T> | TransitionWithProps<T>, fallback?: TransitionFunction<T>): TransitionFunction<T>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const BorderRadiusSize: {
|
|
2
|
+
readonly xs: "var(--neo-border-radius-xs, 0.25rem)";
|
|
3
|
+
readonly sm: "var(--neo-border-radius-sm, 0.375rem)";
|
|
4
|
+
readonly nm: "var(--neo-border-radius, 0.5rem)";
|
|
5
|
+
readonly md: "var(--neo-border-radius-md, 0.75rem)";
|
|
6
|
+
readonly lg: "var(--neo-border-radius-lg, 1rem)";
|
|
7
|
+
readonly xl: "var(--neo-border-radius-xl, 1.5rem)";
|
|
8
|
+
readonly xxl: "var(--neo-border-radius-xxl, 2rem)";
|
|
9
|
+
readonly '3xl': "var(--neo-border-radius-3xl, 3rem)";
|
|
10
|
+
};
|
|
11
|
+
export type BorderRadiusSizes = keyof typeof BorderRadiusSize;
|
|
12
|
+
export type BorderRadiusInput = CSSStyleDeclaration['borderRadius'] | BorderRadiusSizes | boolean;
|
|
13
|
+
export declare function computeBorderRadius(rounded?: BorderRadiusInput): string | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const BorderRadiusSize = {
|
|
2
|
+
'xs': 'var(--neo-border-radius-xs, 0.25rem)',
|
|
3
|
+
'sm': 'var(--neo-border-radius-sm, 0.375rem)',
|
|
4
|
+
'nm': 'var(--neo-border-radius, 0.5rem)',
|
|
5
|
+
'md': 'var(--neo-border-radius-md, 0.75rem)',
|
|
6
|
+
'lg': 'var(--neo-border-radius-lg, 1rem)',
|
|
7
|
+
'xl': 'var(--neo-border-radius-xl, 1.5rem)',
|
|
8
|
+
'xxl': 'var(--neo-border-radius-xxl, 2rem)',
|
|
9
|
+
'3xl': 'var(--neo-border-radius-3xl, 3rem)',
|
|
10
|
+
};
|
|
11
|
+
const isBorderRadiusSize = (value) => typeof value === 'string' && value in BorderRadiusSize;
|
|
12
|
+
export function computeBorderRadius(rounded) {
|
|
13
|
+
if (typeof rounded === 'boolean' || rounded === undefined)
|
|
14
|
+
return undefined;
|
|
15
|
+
if (isBorderRadiusSize(rounded))
|
|
16
|
+
return BorderRadiusSize[rounded];
|
|
17
|
+
return rounded;
|
|
18
|
+
}
|
|
@@ -15,4 +15,4 @@ export declare const ColorVariables: {
|
|
|
15
15
|
readonly error: "--neo-color-error";
|
|
16
16
|
readonly default: "--neo-color-default";
|
|
17
17
|
};
|
|
18
|
-
export declare function getColorVariable(color?: Color | string): string | undefined;
|
|
18
|
+
export declare function getColorVariable(color?: Color | (string & {})): string | undefined;
|
|
@@ -5,6 +5,8 @@ export declare const NeoErrorType: {
|
|
|
5
5
|
readonly NeoTab: "NeoTab";
|
|
6
6
|
readonly NeoCollapse: "NeoCollapse";
|
|
7
7
|
readonly NeoForm: "NeoForm";
|
|
8
|
+
readonly NeoProgress: "NeoProgress";
|
|
9
|
+
readonly NeoNotification: "NeoNotification";
|
|
8
10
|
};
|
|
9
11
|
export type NeoErrorTypes = (typeof NeoErrorType)[keyof typeof NeoErrorType];
|
|
10
12
|
export declare const NeoErrorName: {
|
|
@@ -45,3 +47,23 @@ export declare class NeoErrorFormMissingId extends NeoErrorMissingId {
|
|
|
45
47
|
export declare class NeoErrorFormDuplicateId extends NeoError {
|
|
46
48
|
constructor();
|
|
47
49
|
}
|
|
50
|
+
export declare class NeoErrorProgressContextNotFound extends NeoError {
|
|
51
|
+
constructor();
|
|
52
|
+
}
|
|
53
|
+
export declare class NeoErrorNotificationMissingId extends NeoError {
|
|
54
|
+
constructor();
|
|
55
|
+
}
|
|
56
|
+
export declare class NeoErrorNotificationNotFound extends NeoError {
|
|
57
|
+
readonly id?: string;
|
|
58
|
+
constructor(id?: string);
|
|
59
|
+
}
|
|
60
|
+
export declare class NeoErrorNotificationDuplicateId extends NeoError {
|
|
61
|
+
readonly id: string;
|
|
62
|
+
constructor(id: string);
|
|
63
|
+
}
|
|
64
|
+
export declare class NeoErrorNotificationProviderNotFound extends NeoError {
|
|
65
|
+
constructor();
|
|
66
|
+
}
|
|
67
|
+
export declare class NeoErrorNotificationServiceNotFound extends NeoError {
|
|
68
|
+
constructor(id?: string);
|
|
69
|
+
}
|
|
@@ -5,6 +5,8 @@ export const NeoErrorType = {
|
|
|
5
5
|
NeoTab: 'NeoTab',
|
|
6
6
|
NeoCollapse: 'NeoCollapse',
|
|
7
7
|
NeoForm: 'NeoForm',
|
|
8
|
+
NeoProgress: 'NeoProgress',
|
|
9
|
+
NeoNotification: 'NeoNotification',
|
|
8
10
|
};
|
|
9
11
|
export const NeoErrorName = {
|
|
10
12
|
TargetNotFound: 'Target not found',
|
|
@@ -67,3 +69,37 @@ export class NeoErrorFormDuplicateId extends NeoError {
|
|
|
67
69
|
super('Field id already exists', NeoErrorType.NeoForm);
|
|
68
70
|
}
|
|
69
71
|
}
|
|
72
|
+
export class NeoErrorProgressContextNotFound extends NeoError {
|
|
73
|
+
constructor() {
|
|
74
|
+
super('Progress context not found', NeoErrorType.NeoProgress);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export class NeoErrorNotificationMissingId extends NeoError {
|
|
78
|
+
constructor() {
|
|
79
|
+
super('Notification id is required', NeoErrorType.NeoNotification);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export class NeoErrorNotificationNotFound extends NeoError {
|
|
83
|
+
id;
|
|
84
|
+
constructor(id) {
|
|
85
|
+
super(`Notification '${id}' not found`, NeoErrorType.NeoNotification);
|
|
86
|
+
this.id = id;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export class NeoErrorNotificationDuplicateId extends NeoError {
|
|
90
|
+
id;
|
|
91
|
+
constructor(id) {
|
|
92
|
+
super(`Notification stack with id '${id}' already exists`, NeoErrorType.NeoNotification);
|
|
93
|
+
this.id = id;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export class NeoErrorNotificationProviderNotFound extends NeoError {
|
|
97
|
+
constructor() {
|
|
98
|
+
super('Notification provider not found. Please ensure you have a provider in your app.', NeoErrorType.NeoNotification);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export class NeoErrorNotificationServiceNotFound extends NeoError {
|
|
102
|
+
constructor(id) {
|
|
103
|
+
super(`Notification service not found.${id ? ` Make sure you have a service with id '${id}'.` : ''}`, NeoErrorType.NeoNotification);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -5,6 +5,6 @@ export interface SizeOption<Size extends 'width' | 'height' = 'width' | 'height'
|
|
|
5
5
|
max?: Value;
|
|
6
6
|
}
|
|
7
7
|
export type SizeInput<Size extends 'width' | 'height' = 'width' | 'height'> = number | SizeValue<Size> | SizeOption<Size, number | SizeValue<Size>>;
|
|
8
|
-
export declare function toPixel(value?: number | string): string | undefined;
|
|
8
|
+
export declare function toPixel(value?: number | string): string | `${number}px` | undefined;
|
|
9
9
|
export declare function isSizeOption<Size extends 'width' | 'height' = 'width' | 'height'>(size?: SizeInput<Size>): size is SizeOption<Size>;
|
|
10
10
|
export declare function toSize<Size extends 'width' | 'height' = 'width' | 'height'>(size?: SizeInput<Size>): SizeOption<Size, SizeValue<Size>> | undefined;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvcol/neo-svelte",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "Neomorphic ui library for svelte 5",
|
|
6
6
|
"author": "dvcol",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://github.com/dvcol/neo-svelte",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/dvcol/neo-svelte.git"
|
|
11
|
+
"url": "git+https://github.com/dvcol/neo-svelte.git"
|
|
12
12
|
},
|
|
13
13
|
"bugs": "https://github.com/dvcol/neo-svelte/issues",
|
|
14
14
|
"keywords": [
|
|
@@ -85,6 +85,11 @@
|
|
|
85
85
|
"import": "./dist/floating/menu/index.js",
|
|
86
86
|
"svelte": "./dist/floating/menu/index.js"
|
|
87
87
|
},
|
|
88
|
+
"./floating/notification": {
|
|
89
|
+
"types": "./dist/floating/notification/index.d.ts",
|
|
90
|
+
"import": "./dist/floating/notification/index.js",
|
|
91
|
+
"svelte": "./dist/floating/notification/index.js"
|
|
92
|
+
},
|
|
88
93
|
"./floating/portal": {
|
|
89
94
|
"types": "./dist/floating/portal/index.d.ts",
|
|
90
95
|
"import": "./dist/floating/portal/index.js",
|
|
@@ -100,6 +105,11 @@
|
|
|
100
105
|
"import": "./dist/form/index.js",
|
|
101
106
|
"svelte": "./dist/form/index.js"
|
|
102
107
|
},
|
|
108
|
+
"./icons": {
|
|
109
|
+
"types": "./dist/icons/index.d.ts",
|
|
110
|
+
"import": "./dist/icons/index.js",
|
|
111
|
+
"svelte": "./dist/icons/index.js"
|
|
112
|
+
},
|
|
103
113
|
"./inputs": {
|
|
104
114
|
"types": "./dist/inputs/index.d.ts",
|
|
105
115
|
"import": "./dist/inputs/index.js",
|
|
@@ -115,6 +125,11 @@
|
|
|
115
125
|
"import": "./dist/loading/index.js",
|
|
116
126
|
"svelte": "./dist/loading/index.js"
|
|
117
127
|
},
|
|
128
|
+
"./media": {
|
|
129
|
+
"types": "./dist/media/index.d.ts",
|
|
130
|
+
"import": "./dist/media/index.js",
|
|
131
|
+
"svelte": "./dist/media/index.js"
|
|
132
|
+
},
|
|
118
133
|
"./nav": {
|
|
119
134
|
"types": "./dist/nav/index.d.ts",
|
|
120
135
|
"import": "./dist/nav/index.js",
|
|
@@ -165,7 +180,7 @@
|
|
|
165
180
|
"dist"
|
|
166
181
|
],
|
|
167
182
|
"engines": {
|
|
168
|
-
"node": ">=
|
|
183
|
+
"node": ">=24",
|
|
169
184
|
"pnpm": ">= 8"
|
|
170
185
|
},
|
|
171
186
|
"svelte": "./dist/index.js",
|
|
@@ -176,53 +191,54 @@
|
|
|
176
191
|
"svelte": ">=5"
|
|
177
192
|
},
|
|
178
193
|
"dependencies": {
|
|
179
|
-
"@dvcol/common-utils": "^1.
|
|
180
|
-
"@dvcol/svelte-utils": "^1.
|
|
194
|
+
"@dvcol/common-utils": "^1.34.0",
|
|
195
|
+
"@dvcol/svelte-utils": "^1.21.1",
|
|
181
196
|
"@skeletonlabs/floating-ui-svelte": "^0.3.9",
|
|
182
|
-
"
|
|
197
|
+
"dompurify": "^3.3.3",
|
|
198
|
+
"svelte": "^5.54.1"
|
|
183
199
|
},
|
|
184
200
|
"devDependencies": {
|
|
185
|
-
"@commitlint/cli": "^
|
|
186
|
-
"@commitlint/config-conventional": "^
|
|
187
|
-
"@dvcol/eslint-config": "^1.6
|
|
188
|
-
"@dvcol/stylelint-plugin-presets": "^2.1.
|
|
189
|
-
"@dvcol/svelte-simple-router": "^
|
|
190
|
-
"@prettier/plugin-xml": "^3.4.
|
|
191
|
-
"@sveltejs/adapter-auto": "^
|
|
192
|
-
"@sveltejs/kit": "^2.
|
|
193
|
-
"@sveltejs/package": "^2.
|
|
194
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
195
|
-
"@testing-library/jest-dom": "^6.
|
|
196
|
-
"@testing-library/svelte": "^5.
|
|
201
|
+
"@commitlint/cli": "^20.5.0",
|
|
202
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
203
|
+
"@dvcol/eslint-config": "^1.8.6",
|
|
204
|
+
"@dvcol/stylelint-plugin-presets": "^2.1.3",
|
|
205
|
+
"@dvcol/svelte-simple-router": "^2.7.2",
|
|
206
|
+
"@prettier/plugin-xml": "^3.4.2",
|
|
207
|
+
"@sveltejs/adapter-auto": "^7.0.1",
|
|
208
|
+
"@sveltejs/kit": "^2.55.0",
|
|
209
|
+
"@sveltejs/package": "^2.5.7",
|
|
210
|
+
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
211
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
212
|
+
"@testing-library/svelte": "^5.3.1",
|
|
197
213
|
"@testing-library/user-event": "^14.6.1",
|
|
198
|
-
"@tsconfig/
|
|
199
|
-
"@tsconfig/svelte": "^5.0.
|
|
214
|
+
"@tsconfig/node24": "^24.0.4",
|
|
215
|
+
"@tsconfig/svelte": "^5.0.8",
|
|
200
216
|
"@types/dom-view-transitions": "^1.0.6",
|
|
201
|
-
"@types/node": "^
|
|
202
|
-
"@vitest/coverage-v8": "^
|
|
203
|
-
"eslint": "^
|
|
204
|
-
"eslint-plugin-format": "^
|
|
205
|
-
"eslint-plugin-svelte": "^3.
|
|
217
|
+
"@types/node": "^24.12.0",
|
|
218
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
219
|
+
"eslint": "^10.1.0",
|
|
220
|
+
"eslint-plugin-format": "^2.0.1",
|
|
221
|
+
"eslint-plugin-svelte": "^3.16.0",
|
|
206
222
|
"extract-changelog-release": "^1.0.2",
|
|
207
223
|
"husky": "^9.1.7",
|
|
208
|
-
"jsdom": "^
|
|
209
|
-
"lint-staged": "^
|
|
224
|
+
"jsdom": "^29.0.1",
|
|
225
|
+
"lint-staged": "^16.4.0",
|
|
210
226
|
"navigation-api-types": "^0.6.1",
|
|
211
|
-
"npm-run-all2": "^
|
|
212
|
-
"postcss": "^8.5.
|
|
227
|
+
"npm-run-all2": "^8.0.4",
|
|
228
|
+
"postcss": "^8.5.8",
|
|
213
229
|
"postcss-syntax": "^0.36.2",
|
|
214
|
-
"prettier": "^3.
|
|
215
|
-
"prettier-plugin-svelte": "^3.
|
|
216
|
-
"publint": "^0.3.
|
|
217
|
-
"sass": "^1.
|
|
230
|
+
"prettier": "^3.8.1",
|
|
231
|
+
"prettier-plugin-svelte": "^3.5.1",
|
|
232
|
+
"publint": "^0.3.18",
|
|
233
|
+
"sass": "^1.98.0",
|
|
218
234
|
"standard-version": "^9.5.0",
|
|
219
|
-
"stylelint": "^
|
|
220
|
-
"svelte-check": "^4.
|
|
235
|
+
"stylelint": "^17.5.0",
|
|
236
|
+
"svelte-check": "^4.4.5",
|
|
221
237
|
"svelte-preprocess": "^6.0.3",
|
|
222
|
-
"typescript": "^5.
|
|
223
|
-
"vite": "^
|
|
224
|
-
"vite-plugin-checker": "^0.
|
|
225
|
-
"vitest": "^
|
|
238
|
+
"typescript": "^5.9.3",
|
|
239
|
+
"vite": "^8.0.1",
|
|
240
|
+
"vite-plugin-checker": "^0.12.0",
|
|
241
|
+
"vitest": "^4.1.0"
|
|
226
242
|
},
|
|
227
243
|
"lint-staged": {
|
|
228
244
|
"*.{js,cjs,mjs,jsx,ts,tsx,vue,svelte,json,md,yml,html,md,svg,xml}": [
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default IconAdd;
|
|
2
|
-
type IconAdd = SvelteComponent<{
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const IconAdd: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
-
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
-
$$bindings?: Bindings;
|
|
17
|
-
} & Exports;
|
|
18
|
-
(internal: unknown, props: Props & {
|
|
19
|
-
$$events?: Events;
|
|
20
|
-
$$slots?: Slots;
|
|
21
|
-
}): Exports & {
|
|
22
|
-
$set?: any;
|
|
23
|
-
$on?: any;
|
|
24
|
-
};
|
|
25
|
-
z_$$bindings?: Bindings;
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default IconAlert;
|
|
2
|
-
type IconAlert = SvelteComponent<{
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const IconAlert: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
-
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
-
$$bindings?: Bindings;
|
|
17
|
-
} & Exports;
|
|
18
|
-
(internal: unknown, props: Props & {
|
|
19
|
-
$$events?: Events;
|
|
20
|
-
$$slots?: Slots;
|
|
21
|
-
}): Exports & {
|
|
22
|
-
$set?: any;
|
|
23
|
-
$on?: any;
|
|
24
|
-
};
|
|
25
|
-
z_$$bindings?: Bindings;
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default IconAlignBottom;
|
|
2
|
-
type IconAlignBottom = SvelteComponent<{
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const IconAlignBottom: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
-
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
-
$$bindings?: Bindings;
|
|
17
|
-
} & Exports;
|
|
18
|
-
(internal: unknown, props: Props & {
|
|
19
|
-
$$events?: Events;
|
|
20
|
-
$$slots?: Slots;
|
|
21
|
-
}): Exports & {
|
|
22
|
-
$set?: any;
|
|
23
|
-
$on?: any;
|
|
24
|
-
};
|
|
25
|
-
z_$$bindings?: Bindings;
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default IconAlignMiddle;
|
|
2
|
-
type IconAlignMiddle = SvelteComponent<{
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const IconAlignMiddle: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
-
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
-
$$bindings?: Bindings;
|
|
17
|
-
} & Exports;
|
|
18
|
-
(internal: unknown, props: Props & {
|
|
19
|
-
$$events?: Events;
|
|
20
|
-
$$slots?: Slots;
|
|
21
|
-
}): Exports & {
|
|
22
|
-
$set?: any;
|
|
23
|
-
$on?: any;
|
|
24
|
-
};
|
|
25
|
-
z_$$bindings?: Bindings;
|
|
26
|
-
}
|