@getmicdrop/svelte-components 1.0.1 → 1.0.3
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/components/Alert/Alert.spec.d.ts +2 -0
- package/dist/components/Alert/Alert.spec.d.ts.map +1 -0
- package/dist/components/Alert/Alert.spec.js +170 -0
- package/dist/components/Alert/Alert.svelte +54 -0
- package/dist/components/Alert/Alert.svelte.d.ts +40 -0
- package/dist/components/Alert/Alert.svelte.d.ts.map +1 -0
- package/dist/components/Alert/AlertAudit.stories.svelte +241 -0
- package/dist/components/Alert/AlertAudit.stories.svelte.d.ts +31 -0
- package/dist/components/Alert/AlertAudit.stories.svelte.d.ts.map +1 -0
- package/dist/components/Badges/Badge.spec.d.ts +2 -0
- package/dist/components/Badges/Badge.spec.d.ts.map +1 -0
- package/dist/components/Badges/Badge.spec.js +103 -0
- package/dist/components/Badges/Badge.stories.svelte +87 -0
- package/dist/components/Badges/Badge.stories.svelte.d.ts +47 -0
- package/dist/components/Badges/Badge.stories.svelte.d.ts.map +1 -0
- package/dist/components/Badges/Badge.svelte +182 -0
- package/dist/components/Badges/Badge.svelte.d.ts +38 -0
- package/dist/components/Badges/Badge.svelte.d.ts.map +1 -0
- package/dist/components/Badges/BadgeAudit.stories.svelte +238 -0
- package/dist/components/Badges/BadgeAudit.stories.svelte.d.ts +31 -0
- package/dist/components/Badges/BadgeAudit.stories.svelte.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.spec.d.ts +2 -0
- package/dist/components/BottomSheet/BottomSheet.spec.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.spec.js +127 -0
- package/dist/components/BottomSheet/BottomSheet.stories.svelte +91 -0
- package/dist/components/BottomSheet/BottomSheet.stories.svelte.d.ts +45 -0
- package/dist/components/BottomSheet/BottomSheet.stories.svelte.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.svelte +171 -0
- package/dist/components/BottomSheet/BottomSheet.svelte.d.ts +40 -0
- package/dist/components/BottomSheet/BottomSheet.svelte.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.spec.d.ts +2 -0
- package/dist/components/Breadcrumb/Breadcrumb.spec.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.spec.js +120 -0
- package/dist/components/Breadcrumb/Breadcrumb.stories.svelte +24 -0
- package/dist/components/Breadcrumb/Breadcrumb.stories.svelte.d.ts +36 -0
- package/dist/components/Breadcrumb/Breadcrumb.stories.svelte.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.svelte +50 -0
- package/dist/components/Breadcrumb/Breadcrumb.svelte.d.ts +30 -0
- package/dist/components/Breadcrumb/Breadcrumb.svelte.d.ts.map +1 -0
- package/dist/components/Button/Button.spec.d.ts +2 -0
- package/dist/components/Button/Button.spec.d.ts.map +1 -0
- package/dist/components/Button/Button.spec.js +211 -0
- package/dist/components/Button/Button.stories.svelte +111 -0
- package/dist/components/Button/Button.stories.svelte.d.ts +59 -0
- package/dist/components/Button/Button.stories.svelte.d.ts.map +1 -0
- package/dist/components/Button/Button.svelte +642 -0
- package/dist/components/Button/Button.svelte.d.ts +68 -0
- package/dist/components/Button/Button.svelte.d.ts.map +1 -0
- package/dist/components/Button/ButtonAudit.stories.svelte +333 -0
- package/dist/components/Button/ButtonAudit.stories.svelte.d.ts +33 -0
- package/dist/components/Button/ButtonAudit.stories.svelte.d.ts.map +1 -0
- package/dist/components/Button/ButtonSaveDemo.spec.d.ts +2 -0
- package/dist/components/Button/ButtonSaveDemo.spec.d.ts.map +1 -0
- package/dist/components/Button/ButtonSaveDemo.spec.js +48 -0
- package/dist/components/Button/ButtonSaveDemo.svelte +24 -0
- package/dist/components/Button/ButtonSaveDemo.svelte.d.ts +26 -0
- package/dist/components/Button/ButtonSaveDemo.svelte.d.ts.map +1 -0
- package/dist/components/Calendar/Calendar.spec.d.ts +2 -0
- package/dist/components/Calendar/Calendar.spec.d.ts.map +1 -0
- package/dist/components/Calendar/Calendar.spec.js +131 -0
- package/dist/components/Calendar/Calendar.svelte +1115 -0
- package/dist/components/Calendar/Calendar.svelte.d.ts +52 -0
- package/dist/components/Calendar/Calendar.svelte.d.ts.map +1 -0
- package/dist/components/Calendar/QuarterView.spec.d.ts +2 -0
- package/dist/components/Calendar/QuarterView.spec.d.ts.map +1 -0
- package/dist/components/Calendar/QuarterView.spec.js +394 -0
- package/dist/components/Calendar/QuarterView.stories.svelte +134 -0
- package/dist/components/Calendar/QuarterView.stories.svelte.d.ts +40 -0
- package/dist/components/Calendar/QuarterView.stories.svelte.d.ts.map +1 -0
- package/dist/components/Calendar/QuarterView.svelte +736 -0
- package/dist/components/Calendar/QuarterView.svelte.d.ts +30 -0
- package/dist/components/Calendar/QuarterView.svelte.d.ts.map +1 -0
- package/dist/components/Card.spec.d.ts +2 -0
- package/dist/components/Card.spec.d.ts.map +1 -0
- package/dist/components/Card.spec.js +47 -0
- package/dist/components/Card.stories.svelte +26 -0
- package/dist/components/Card.stories.svelte.d.ts +36 -0
- package/dist/components/Card.stories.svelte.d.ts.map +1 -0
- package/dist/components/Card.svelte +9 -0
- package/dist/components/Card.svelte.d.ts +30 -0
- package/dist/components/Card.svelte.d.ts.map +1 -0
- package/dist/components/CardAudit.stories.svelte +175 -0
- package/dist/components/CardAudit.stories.svelte.d.ts +31 -0
- package/dist/components/CardAudit.stories.svelte.d.ts.map +1 -0
- package/dist/components/CropImage/CropImage.spec.d.ts +2 -0
- package/dist/components/CropImage/CropImage.spec.d.ts.map +1 -0
- package/dist/components/CropImage/CropImage.spec.js +216 -0
- package/dist/components/CropImage/CropImage.stories.svelte +133 -0
- package/dist/components/CropImage/CropImage.stories.svelte.d.ts +40 -0
- package/dist/components/CropImage/CropImage.stories.svelte.d.ts.map +1 -0
- package/dist/components/CropImage/CropImage.svelte +311 -0
- package/dist/components/CropImage/CropImage.svelte.d.ts +34 -0
- package/dist/components/CropImage/CropImage.svelte.d.ts.map +1 -0
- package/dist/components/DarkModeToggle.spec.d.ts +2 -0
- package/dist/components/DarkModeToggle.spec.d.ts.map +1 -0
- package/dist/components/DarkModeToggle.spec.js +357 -0
- package/dist/components/DarkModeToggle.stories.svelte +55 -0
- package/dist/components/DarkModeToggle.stories.svelte.d.ts +32 -0
- package/dist/components/DarkModeToggle.stories.svelte.d.ts.map +1 -0
- package/dist/components/DarkModeToggle.svelte +245 -0
- package/dist/components/DarkModeToggle.svelte.d.ts +26 -0
- package/dist/components/DarkModeToggle.svelte.d.ts.map +1 -0
- package/dist/components/ErrorDisplay.spec.d.ts +2 -0
- package/dist/components/ErrorDisplay.spec.d.ts.map +1 -0
- package/dist/components/ErrorDisplay.spec.js +69 -0
- package/dist/components/ErrorDisplay.stories.svelte +115 -0
- package/dist/components/ErrorDisplay.stories.svelte.d.ts +62 -0
- package/dist/components/ErrorDisplay.stories.svelte.d.ts.map +1 -0
- package/dist/components/ErrorDisplay.svelte +58 -0
- package/dist/components/ErrorDisplay.svelte.d.ts +36 -0
- package/dist/components/ErrorDisplay.svelte.d.ts.map +1 -0
- package/dist/components/FormActions.spec.d.ts +2 -0
- package/dist/components/FormActions.spec.d.ts.map +1 -0
- package/dist/components/FormActions.spec.js +88 -0
- package/dist/components/FormActions.stories.svelte +98 -0
- package/dist/components/FormActions.stories.svelte.d.ts +57 -0
- package/dist/components/FormActions.stories.svelte.d.ts.map +1 -0
- package/dist/components/FormActions.svelte +67 -0
- package/dist/components/FormActions.svelte.d.ts +48 -0
- package/dist/components/FormActions.svelte.d.ts.map +1 -0
- package/dist/components/FormValidationSummary.spec.d.ts +2 -0
- package/dist/components/FormValidationSummary.spec.d.ts.map +1 -0
- package/dist/components/FormValidationSummary.spec.js +203 -0
- package/dist/components/FormValidationSummary.stories.svelte +95 -0
- package/dist/components/FormValidationSummary.stories.svelte.d.ts +32 -0
- package/dist/components/FormValidationSummary.stories.svelte.d.ts.map +1 -0
- package/dist/components/FormValidationSummary.svelte +83 -0
- package/dist/components/FormValidationSummary.svelte.d.ts +32 -0
- package/dist/components/FormValidationSummary.svelte.d.ts.map +1 -0
- package/dist/components/Icons/ArrowLeft.svelte +21 -0
- package/dist/components/Icons/ArrowLeft.svelte.d.ts +28 -0
- package/dist/components/Icons/ArrowLeft.svelte.d.ts.map +1 -0
- package/dist/components/Icons/ArrowRight.svelte +21 -0
- package/dist/components/Icons/ArrowRight.svelte.d.ts +28 -0
- package/dist/components/Icons/ArrowRight.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Availability.svelte +28 -0
- package/dist/components/Icons/Availability.svelte.d.ts +28 -0
- package/dist/components/Icons/Availability.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Back.svelte +28 -0
- package/dist/components/Icons/Back.svelte.d.ts +28 -0
- package/dist/components/Icons/Back.svelte.d.ts.map +1 -0
- package/dist/components/Icons/CheckCircle.svelte +20 -0
- package/dist/components/Icons/CheckCircle.svelte.d.ts +28 -0
- package/dist/components/Icons/CheckCircle.svelte.d.ts.map +1 -0
- package/dist/components/Icons/CheckCircleOutline.svelte +28 -0
- package/dist/components/Icons/CheckCircleOutline.svelte.d.ts +28 -0
- package/dist/components/Icons/CheckCircleOutline.svelte.d.ts.map +1 -0
- package/dist/components/Icons/ChevronLeft.svelte +18 -0
- package/dist/components/Icons/ChevronLeft.svelte.d.ts +28 -0
- package/dist/components/Icons/ChevronLeft.svelte.d.ts.map +1 -0
- package/dist/components/Icons/ChevronRight.svelte +18 -0
- package/dist/components/Icons/ChevronRight.svelte.d.ts +28 -0
- package/dist/components/Icons/ChevronRight.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Copy.svelte +28 -0
- package/dist/components/Icons/Copy.svelte.d.ts +28 -0
- package/dist/components/Icons/Copy.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Cross.svelte +18 -0
- package/dist/components/Icons/Cross.svelte.d.ts +28 -0
- package/dist/components/Icons/Cross.svelte.d.ts.map +1 -0
- package/dist/components/Icons/DownArrow.svelte +21 -0
- package/dist/components/Icons/DownArrow.svelte.d.ts +28 -0
- package/dist/components/Icons/DownArrow.svelte.d.ts.map +1 -0
- package/dist/components/Icons/ErrorCircle.svelte +20 -0
- package/dist/components/Icons/ErrorCircle.svelte.d.ts +28 -0
- package/dist/components/Icons/ErrorCircle.svelte.d.ts.map +1 -0
- package/dist/components/Icons/FacebookIcon.svelte +14 -0
- package/dist/components/Icons/FacebookIcon.svelte.d.ts +28 -0
- package/dist/components/Icons/FacebookIcon.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Home.svelte +29 -0
- package/dist/components/Icons/Home.svelte.d.ts +28 -0
- package/dist/components/Icons/Home.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Icon.spec.d.ts +2 -0
- package/dist/components/Icons/Icon.spec.d.ts.map +1 -0
- package/dist/components/Icons/Icon.spec.js +175 -0
- package/dist/components/Icons/Icon.stories.svelte +101 -0
- package/dist/components/Icons/Icon.stories.svelte.d.ts +44 -0
- package/dist/components/Icons/Icon.stories.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Icon.svelte +66 -0
- package/dist/components/Icons/Icon.svelte.d.ts +30 -0
- package/dist/components/Icons/Icon.svelte.d.ts.map +1 -0
- package/dist/components/Icons/IconGallery.stories.svelte +233 -0
- package/dist/components/Icons/IconGallery.stories.svelte.d.ts +30 -0
- package/dist/components/Icons/IconGallery.stories.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Info.svelte +20 -0
- package/dist/components/Icons/Info.svelte.d.ts +28 -0
- package/dist/components/Icons/Info.svelte.d.ts.map +1 -0
- package/dist/components/Icons/InstagramIcon.svelte +20 -0
- package/dist/components/Icons/InstagramIcon.svelte.d.ts +28 -0
- package/dist/components/Icons/InstagramIcon.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Message.svelte +28 -0
- package/dist/components/Icons/Message.svelte.d.ts +28 -0
- package/dist/components/Icons/Message.svelte.d.ts.map +1 -0
- package/dist/components/Icons/MoonIcon.svelte +17 -0
- package/dist/components/Icons/MoonIcon.svelte.d.ts +28 -0
- package/dist/components/Icons/MoonIcon.svelte.d.ts.map +1 -0
- package/dist/components/Icons/More.svelte +35 -0
- package/dist/components/Icons/More.svelte.d.ts +28 -0
- package/dist/components/Icons/More.svelte.d.ts.map +1 -0
- package/dist/components/Icons/MoreHori.spec.d.ts +2 -0
- package/dist/components/Icons/MoreHori.spec.d.ts.map +1 -0
- package/dist/components/Icons/MoreHori.spec.js +67 -0
- package/dist/components/Icons/MoreHori.svelte +35 -0
- package/dist/components/Icons/MoreHori.svelte.d.ts +28 -0
- package/dist/components/Icons/MoreHori.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Notification.svelte +28 -0
- package/dist/components/Icons/Notification.svelte.d.ts +28 -0
- package/dist/components/Icons/Notification.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Payment.svelte +28 -0
- package/dist/components/Icons/Payment.svelte.d.ts +28 -0
- package/dist/components/Icons/Payment.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Profile.svelte +35 -0
- package/dist/components/Icons/Profile.svelte.d.ts +28 -0
- package/dist/components/Icons/Profile.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Reload.svelte +42 -0
- package/dist/components/Icons/Reload.svelte.d.ts +28 -0
- package/dist/components/Icons/Reload.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Shows.svelte +35 -0
- package/dist/components/Icons/Shows.svelte.d.ts +28 -0
- package/dist/components/Icons/Shows.svelte.d.ts.map +1 -0
- package/dist/components/Icons/Signout.svelte +35 -0
- package/dist/components/Icons/Signout.svelte.d.ts +28 -0
- package/dist/components/Icons/Signout.svelte.d.ts.map +1 -0
- package/dist/components/Icons/SunIcon.svelte +20 -0
- package/dist/components/Icons/SunIcon.svelte.d.ts +28 -0
- package/dist/components/Icons/SunIcon.svelte.d.ts.map +1 -0
- package/dist/components/Icons/TiktokIcon.svelte +14 -0
- package/dist/components/Icons/TiktokIcon.svelte.d.ts +28 -0
- package/dist/components/Icons/TiktokIcon.svelte.d.ts.map +1 -0
- package/dist/components/Icons/TwitterIcon.svelte +14 -0
- package/dist/components/Icons/TwitterIcon.svelte.d.ts +28 -0
- package/dist/components/Icons/TwitterIcon.svelte.d.ts.map +1 -0
- package/dist/components/Icons/WarningIcon.spec.d.ts +2 -0
- package/dist/components/Icons/WarningIcon.spec.d.ts.map +1 -0
- package/dist/components/Icons/WarningIcon.spec.js +30 -0
- package/dist/components/Icons/WarningIcon.svelte +24 -0
- package/dist/components/Icons/WarningIcon.svelte.d.ts +26 -0
- package/dist/components/Icons/WarningIcon.svelte.d.ts.map +1 -0
- package/dist/components/Input/Input.spec.d.ts +2 -0
- package/dist/components/Input/Input.spec.d.ts.map +1 -0
- package/dist/components/Input/Input.spec.js +573 -0
- package/dist/components/Input/Input.stories.svelte +140 -0
- package/dist/components/Input/Input.stories.svelte.d.ts +80 -0
- package/dist/components/Input/Input.stories.svelte.d.ts.map +1 -0
- package/dist/components/Input/Input.svelte +721 -0
- package/dist/components/Input/Input.svelte.d.ts +96 -0
- package/dist/components/Input/Input.svelte.d.ts.map +1 -0
- package/dist/components/Input/InputAudit.stories.svelte +483 -0
- package/dist/components/Input/InputAudit.stories.svelte.d.ts +31 -0
- package/dist/components/Input/InputAudit.stories.svelte.d.ts.map +1 -0
- package/dist/components/Input/MultiSelect.spec.d.ts +2 -0
- package/dist/components/Input/MultiSelect.spec.d.ts.map +1 -0
- package/dist/components/Input/MultiSelect.spec.js +257 -0
- package/dist/components/Input/MultiSelect.stories.svelte +138 -0
- package/dist/components/Input/MultiSelect.stories.svelte.d.ts +32 -0
- package/dist/components/Input/MultiSelect.stories.svelte.d.ts.map +1 -0
- package/dist/components/Input/MultiSelect.svelte +557 -0
- package/dist/components/Input/MultiSelect.svelte.d.ts +50 -0
- package/dist/components/Input/MultiSelect.svelte.d.ts.map +1 -0
- package/dist/components/Input/OTPInput.spec.d.ts +2 -0
- package/dist/components/Input/OTPInput.spec.d.ts.map +1 -0
- package/dist/components/Input/OTPInput.spec.js +238 -0
- package/dist/components/Input/OTPInput.stories.svelte +167 -0
- package/dist/components/Input/OTPInput.stories.svelte.d.ts +48 -0
- package/dist/components/Input/OTPInput.stories.svelte.d.ts.map +1 -0
- package/dist/components/Input/OTPInput.svelte +117 -0
- package/dist/components/Input/OTPInput.svelte.d.ts +42 -0
- package/dist/components/Input/OTPInput.svelte.d.ts.map +1 -0
- package/dist/components/Input/Select.spec.d.ts +2 -0
- package/dist/components/Input/Select.spec.d.ts.map +1 -0
- package/dist/components/Input/Select.spec.js +218 -0
- package/dist/components/Input/Select.svelte +385 -0
- package/dist/components/Input/Select.svelte.d.ts +48 -0
- package/dist/components/Input/Select.svelte.d.ts.map +1 -0
- package/dist/components/Input/SelectAudit.stories.svelte +364 -0
- package/dist/components/Input/SelectAudit.stories.svelte.d.ts +31 -0
- package/dist/components/Input/SelectAudit.stories.svelte.d.ts.map +1 -0
- package/dist/components/Layout/BottomNav.spec.d.ts +2 -0
- package/dist/components/Layout/BottomNav.spec.d.ts.map +1 -0
- package/dist/components/Layout/BottomNav.spec.js +130 -0
- package/dist/components/Layout/BottomNav.stories.svelte +115 -0
- package/dist/components/Layout/BottomNav.stories.svelte.d.ts +32 -0
- package/dist/components/Layout/BottomNav.stories.svelte.d.ts.map +1 -0
- package/dist/components/Layout/BottomNav.svelte +120 -0
- package/dist/components/Layout/BottomNav.svelte.d.ts +26 -0
- package/dist/components/Layout/BottomNav.svelte.d.ts.map +1 -0
- package/dist/components/Layout/Header.spec.d.ts +2 -0
- package/dist/components/Layout/Header.spec.d.ts.map +1 -0
- package/dist/components/Layout/Header.spec.js +203 -0
- package/dist/components/Layout/Header.stories.svelte +78 -0
- package/dist/components/Layout/Header.stories.svelte.d.ts +47 -0
- package/dist/components/Layout/Header.stories.svelte.d.ts.map +1 -0
- package/dist/components/Layout/Header.svelte +528 -0
- package/dist/components/Layout/Header.svelte.d.ts +42 -0
- package/dist/components/Layout/Header.svelte.d.ts.map +1 -0
- package/dist/components/Modal/ConfirmationModal.spec.d.ts +2 -0
- package/dist/components/Modal/ConfirmationModal.spec.d.ts.map +1 -0
- package/dist/components/Modal/ConfirmationModal.spec.js +191 -0
- package/dist/components/Modal/ConfirmationModal.stories.svelte +124 -0
- package/dist/components/Modal/ConfirmationModal.stories.svelte.d.ts +45 -0
- package/dist/components/Modal/ConfirmationModal.stories.svelte.d.ts.map +1 -0
- package/dist/components/Modal/ConfirmationModal.svelte +105 -0
- package/dist/components/Modal/ConfirmationModal.svelte.d.ts +38 -0
- package/dist/components/Modal/ConfirmationModal.svelte.d.ts.map +1 -0
- package/dist/components/Modal/Modal.spec.d.ts +2 -0
- package/dist/components/Modal/Modal.spec.d.ts.map +1 -0
- package/dist/components/Modal/Modal.spec.js +95 -0
- package/dist/components/Modal/Modal.stories.svelte +83 -0
- package/dist/components/Modal/Modal.stories.svelte.d.ts +31 -0
- package/dist/components/Modal/Modal.stories.svelte.d.ts.map +1 -0
- package/dist/components/Modal/Modal.svelte +234 -0
- package/dist/components/Modal/Modal.svelte.d.ts +46 -0
- package/dist/components/Modal/Modal.svelte.d.ts.map +1 -0
- package/dist/components/Modal/ModalAudit.stories.svelte +329 -0
- package/dist/components/Modal/ModalAudit.stories.svelte.d.ts +31 -0
- package/dist/components/Modal/ModalAudit.stories.svelte.d.ts.map +1 -0
- package/dist/components/Modal/ModalStateManager.spec.d.ts +2 -0
- package/dist/components/Modal/ModalStateManager.spec.d.ts.map +1 -0
- package/dist/components/Modal/ModalStateManager.spec.js +100 -0
- package/dist/components/Modal/ModalStateManager.svelte +67 -0
- package/dist/components/Modal/ModalStateManager.svelte.d.ts +48 -0
- package/dist/components/Modal/ModalStateManager.svelte.d.ts.map +1 -0
- package/dist/components/Modal/ModalTestWrapper.svelte +21 -0
- package/dist/components/Modal/ModalTestWrapper.svelte.d.ts +36 -0
- package/dist/components/Modal/ModalTestWrapper.svelte.d.ts.map +1 -0
- package/dist/components/PageLoader.spec.d.ts +2 -0
- package/dist/components/PageLoader.spec.d.ts.map +1 -0
- package/dist/components/PageLoader.spec.js +54 -0
- package/dist/components/PageLoader.stories.svelte +145 -0
- package/dist/components/PageLoader.stories.svelte.d.ts +53 -0
- package/dist/components/PageLoader.stories.svelte.d.ts.map +1 -0
- package/dist/components/PageLoader.svelte +52 -0
- package/dist/components/PageLoader.svelte.d.ts +42 -0
- package/dist/components/PageLoader.svelte.d.ts.map +1 -0
- package/dist/components/PasswordStrengthIndicator/PasswordStrengthIndicator.spec.d.ts +2 -0
- package/dist/components/PasswordStrengthIndicator/PasswordStrengthIndicator.spec.d.ts.map +1 -0
- package/dist/components/PasswordStrengthIndicator/PasswordStrengthIndicator.spec.js +173 -0
- package/dist/components/PasswordStrengthIndicator/PasswordStrengthIndicator.svelte +101 -0
- package/dist/components/PasswordStrengthIndicator/PasswordStrengthIndicator.svelte.d.ts +36 -0
- package/dist/components/PasswordStrengthIndicator/PasswordStrengthIndicator.svelte.d.ts.map +1 -0
- package/dist/components/PlaceAutocomplete/PlaceAutocomplete.spec.d.ts +2 -0
- package/dist/components/PlaceAutocomplete/PlaceAutocomplete.spec.d.ts.map +1 -0
- package/dist/components/PlaceAutocomplete/PlaceAutocomplete.spec.js +300 -0
- package/dist/components/PlaceAutocomplete/PlaceAutocomplete.stories.svelte +168 -0
- package/dist/components/PlaceAutocomplete/PlaceAutocomplete.stories.svelte.d.ts +60 -0
- package/dist/components/PlaceAutocomplete/PlaceAutocomplete.stories.svelte.d.ts.map +1 -0
- package/dist/components/PlaceAutocomplete/PlaceAutocomplete.svelte +431 -0
- package/dist/components/PlaceAutocomplete/PlaceAutocomplete.svelte.d.ts +29 -0
- package/dist/components/PlaceAutocomplete/PlaceAutocomplete.svelte.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.spec.d.ts +2 -0
- package/dist/components/Spinner/Spinner.spec.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.spec.js +75 -0
- package/dist/components/Spinner/Spinner.stories.svelte +30 -0
- package/dist/components/Spinner/Spinner.stories.svelte.d.ts +31 -0
- package/dist/components/Spinner/Spinner.stories.svelte.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.svelte +19 -0
- package/dist/components/Spinner/Spinner.svelte.d.ts +26 -0
- package/dist/components/Spinner/Spinner.svelte.d.ts.map +1 -0
- package/dist/components/StatusIndicator/StatusIndicator.spec.d.ts +2 -0
- package/dist/components/StatusIndicator/StatusIndicator.spec.d.ts.map +1 -0
- package/dist/components/StatusIndicator/StatusIndicator.spec.js +129 -0
- package/dist/components/StatusIndicator/StatusIndicator.svelte +206 -0
- package/dist/components/StatusIndicator/StatusIndicator.svelte.d.ts +28 -0
- package/dist/components/StatusIndicator/StatusIndicator.svelte.d.ts.map +1 -0
- package/dist/components/Toaster/Toaster.stories.svelte +61 -0
- package/dist/components/Toaster/Toaster.stories.svelte.d.ts +29 -0
- package/dist/components/Toaster/Toaster.stories.svelte.d.ts.map +1 -0
- package/dist/components/Toggle.spec.d.ts +2 -0
- package/dist/components/Toggle.spec.d.ts.map +1 -0
- package/dist/components/Toggle.spec.js +158 -0
- package/dist/components/Toggle.stories.svelte +93 -0
- package/dist/components/Toggle.stories.svelte.d.ts +41 -0
- package/dist/components/Toggle.stories.svelte.d.ts.map +1 -0
- package/dist/components/Toggle.svelte +79 -0
- package/dist/components/Toggle.svelte.d.ts +32 -0
- package/dist/components/Toggle.svelte.d.ts.map +1 -0
- package/dist/components/ValidationError.spec.d.ts +2 -0
- package/dist/components/ValidationError.spec.d.ts.map +1 -0
- package/dist/components/ValidationError.spec.js +79 -0
- package/dist/components/ValidationError.stories.svelte +88 -0
- package/dist/components/ValidationError.stories.svelte.d.ts +41 -0
- package/dist/components/ValidationError.stories.svelte.d.ts.map +1 -0
- package/dist/components/ValidationError.svelte +19 -0
- package/dist/components/ValidationError.svelte.d.ts +28 -0
- package/dist/components/ValidationError.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/AvailabilityCalendarModal.spec.d.ts +2 -0
- package/dist/components/pages/performers/AvailabilityCalendarModal.spec.d.ts.map +1 -0
- package/dist/components/pages/performers/AvailabilityCalendarModal.spec.js +606 -0
- package/dist/components/pages/performers/AvailabilityCalendarModal.svelte +632 -0
- package/dist/components/pages/performers/AvailabilityCalendarModal.svelte.d.ts +36 -0
- package/dist/components/pages/performers/AvailabilityCalendarModal.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/ModalShowInfo.spec.d.ts +2 -0
- package/dist/components/pages/performers/ModalShowInfo.spec.d.ts.map +1 -0
- package/dist/components/pages/performers/ModalShowInfo.spec.js +124 -0
- package/dist/components/pages/performers/ModalShowInfo.svelte +88 -0
- package/dist/components/pages/performers/ModalShowInfo.svelte.d.ts +34 -0
- package/dist/components/pages/performers/ModalShowInfo.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/PageBackButton.spec.d.ts +2 -0
- package/dist/components/pages/performers/PageBackButton.spec.d.ts.map +1 -0
- package/dist/components/pages/performers/PageBackButton.spec.js +89 -0
- package/dist/components/pages/performers/PageBackButton.stories.svelte +72 -0
- package/dist/components/pages/performers/PageBackButton.stories.svelte.d.ts +36 -0
- package/dist/components/pages/performers/PageBackButton.stories.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/PageBackButton.svelte +13 -0
- package/dist/components/pages/performers/PageBackButton.svelte.d.ts +26 -0
- package/dist/components/pages/performers/PageBackButton.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/SectionHeader.spec.d.ts +2 -0
- package/dist/components/pages/performers/SectionHeader.spec.d.ts.map +1 -0
- package/dist/components/pages/performers/SectionHeader.spec.js +75 -0
- package/dist/components/pages/performers/SectionHeader.stories.svelte +100 -0
- package/dist/components/pages/performers/SectionHeader.stories.svelte.d.ts +41 -0
- package/dist/components/pages/performers/SectionHeader.stories.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/SectionHeader.svelte +9 -0
- package/dist/components/pages/performers/SectionHeader.svelte.d.ts +28 -0
- package/dist/components/pages/performers/SectionHeader.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/ShowDetails.spec.d.ts +2 -0
- package/dist/components/pages/performers/ShowDetails.spec.d.ts.map +1 -0
- package/dist/components/pages/performers/ShowDetails.spec.js +166 -0
- package/dist/components/pages/performers/ShowDetails.stories.svelte +140 -0
- package/dist/components/pages/performers/ShowDetails.stories.svelte.d.ts +37 -0
- package/dist/components/pages/performers/ShowDetails.stories.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/ShowDetails.svelte +73 -0
- package/dist/components/pages/performers/ShowDetails.svelte.d.ts +44 -0
- package/dist/components/pages/performers/ShowDetails.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/ShowItemCard.spec.d.ts +2 -0
- package/dist/components/pages/performers/ShowItemCard.spec.d.ts.map +1 -0
- package/dist/components/pages/performers/ShowItemCard.spec.js +793 -0
- package/dist/components/pages/performers/ShowItemCard.stories.svelte +250 -0
- package/dist/components/pages/performers/ShowItemCard.stories.svelte.d.ts +43 -0
- package/dist/components/pages/performers/ShowItemCard.stories.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/ShowItemCard.svelte +886 -0
- package/dist/components/pages/performers/ShowItemCard.svelte.d.ts +54 -0
- package/dist/components/pages/performers/ShowItemCard.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/SwitchOption.spec.d.ts +2 -0
- package/dist/components/pages/performers/SwitchOption.spec.d.ts.map +1 -0
- package/dist/components/pages/performers/SwitchOption.spec.js +127 -0
- package/dist/components/pages/performers/SwitchOption.stories.svelte +211 -0
- package/dist/components/pages/performers/SwitchOption.stories.svelte.d.ts +40 -0
- package/dist/components/pages/performers/SwitchOption.stories.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/SwitchOption.svelte +24 -0
- package/dist/components/pages/performers/SwitchOption.svelte.d.ts +30 -0
- package/dist/components/pages/performers/SwitchOption.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/VenueInfo.spec.d.ts +2 -0
- package/dist/components/pages/performers/VenueInfo.spec.d.ts.map +1 -0
- package/dist/components/pages/performers/VenueInfo.spec.js +167 -0
- package/dist/components/pages/performers/VenueInfo.svelte +90 -0
- package/dist/components/pages/performers/VenueInfo.svelte.d.ts +32 -0
- package/dist/components/pages/performers/VenueInfo.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/VenueItemCard.spec.d.ts +2 -0
- package/dist/components/pages/performers/VenueItemCard.spec.d.ts.map +1 -0
- package/dist/components/pages/performers/VenueItemCard.spec.js +763 -0
- package/dist/components/pages/performers/VenueItemCard.stories.svelte +301 -0
- package/dist/components/pages/performers/VenueItemCard.stories.svelte.d.ts +37 -0
- package/dist/components/pages/performers/VenueItemCard.stories.svelte.d.ts.map +1 -0
- package/dist/components/pages/performers/VenueItemCard.svelte +192 -0
- package/dist/components/pages/performers/VenueItemCard.svelte.d.ts +66 -0
- package/dist/components/pages/performers/VenueItemCard.svelte.d.ts.map +1 -0
- package/dist/components/pages/profile/profile-form.spec.d.ts +2 -0
- package/dist/components/pages/profile/profile-form.spec.d.ts.map +1 -0
- package/dist/components/pages/profile/profile-form.spec.js +9 -0
- package/dist/components/pages/profile/profile-form.stories.svelte +279 -0
- package/dist/components/pages/profile/profile-form.stories.svelte.d.ts +48 -0
- package/dist/components/pages/profile/profile-form.stories.svelte.d.ts.map +1 -0
- package/dist/components/pages/profile/profile-form.svelte +445 -0
- package/dist/components/pages/profile/profile-form.svelte.d.ts +36 -0
- package/dist/components/pages/profile/profile-form.svelte.d.ts.map +1 -0
- package/dist/components/pages/profile/profile-photos.stories.svelte +69 -0
- package/dist/components/pages/profile/profile-photos.stories.svelte.d.ts +31 -0
- package/dist/components/pages/profile/profile-photos.stories.svelte.d.ts.map +1 -0
- package/dist/components/pages/profile/profile-photos.svelte +26 -0
- package/dist/components/pages/profile/profile-photos.svelte.d.ts +26 -0
- package/dist/components/pages/profile/profile-photos.svelte.d.ts.map +1 -0
- package/dist/components/pages/settings/tabs/CustomImageDropzone.stories.svelte +166 -0
- package/dist/components/pages/settings/tabs/CustomImageDropzone.stories.svelte.d.ts +49 -0
- package/dist/components/pages/settings/tabs/CustomImageDropzone.stories.svelte.d.ts.map +1 -0
- package/dist/components/pages/settings/tabs/CustomImageDropzone.svelte +241 -0
- package/dist/components/pages/settings/tabs/CustomImageDropzone.svelte.d.ts +38 -0
- package/dist/components/pages/settings/tabs/CustomImageDropzone.svelte.d.ts.map +1 -0
- package/dist/components/pages/shows/ShowList.spec.d.ts +2 -0
- package/dist/components/pages/shows/ShowList.spec.d.ts.map +1 -0
- package/dist/components/pages/shows/ShowList.spec.js +33 -0
- package/dist/components/pages/shows/ShowList.stories.svelte +258 -0
- package/dist/components/pages/shows/ShowList.stories.svelte.d.ts +41 -0
- package/dist/components/pages/shows/ShowList.stories.svelte.d.ts.map +1 -0
- package/dist/components/pages/shows/ShowList.svelte +12 -0
- package/dist/components/pages/shows/ShowList.svelte.d.ts +28 -0
- package/dist/components/pages/shows/ShowList.svelte.d.ts.map +1 -0
- package/dist/components/pages/shows/TabContent.spec.d.ts +2 -0
- package/dist/components/pages/shows/TabContent.spec.d.ts.map +1 -0
- package/dist/components/pages/shows/TabContent.spec.js +90 -0
- package/dist/components/pages/shows/TabContent.stories.svelte +254 -0
- package/dist/components/pages/shows/TabContent.stories.svelte.d.ts +45 -0
- package/dist/components/pages/shows/TabContent.stories.svelte.d.ts.map +1 -0
- package/dist/components/pages/shows/TabContent.svelte +94 -0
- package/dist/components/pages/shows/TabContent.svelte.d.ts +32 -0
- package/dist/components/pages/shows/TabContent.svelte.d.ts.map +1 -0
- package/dist/components/pages/shows/TabNavigation.spec.d.ts +2 -0
- package/dist/components/pages/shows/TabNavigation.spec.d.ts.map +1 -0
- package/dist/components/pages/shows/TabNavigation.spec.js +143 -0
- package/dist/components/pages/shows/TabNavigation.stories.svelte +177 -0
- package/dist/components/pages/shows/TabNavigation.stories.svelte.d.ts +41 -0
- package/dist/components/pages/shows/TabNavigation.stories.svelte.d.ts.map +1 -0
- package/dist/components/pages/shows/TabNavigation.svelte +64 -0
- package/dist/components/pages/shows/TabNavigation.svelte.d.ts +32 -0
- package/dist/components/pages/shows/TabNavigation.svelte.d.ts.map +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +111 -0
- package/package.json +5 -2
|
@@ -0,0 +1,721 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { slide } from "svelte/transition";
|
|
3
|
+
import { cubicOut } from "svelte/easing";
|
|
4
|
+
import WarningIcon from "../Icons/WarningIcon.svelte";
|
|
5
|
+
|
|
6
|
+
export let required = false;
|
|
7
|
+
export let disabled = false;
|
|
8
|
+
export let optional = false;
|
|
9
|
+
export let icon = null;
|
|
10
|
+
export let buttonIcon = null;
|
|
11
|
+
export let buttonText = null;
|
|
12
|
+
export let maxlength = null;
|
|
13
|
+
export let minlength = null;
|
|
14
|
+
export let type = "text";
|
|
15
|
+
export let placeholder = "";
|
|
16
|
+
export let label = "";
|
|
17
|
+
export let id = "";
|
|
18
|
+
export let name = "";
|
|
19
|
+
export let className = "";
|
|
20
|
+
export let size = "full"; // Changed default from "" to "full"
|
|
21
|
+
export let textareaSize = ""; // sm, md, lg for textarea height variants
|
|
22
|
+
export let errorText = "";
|
|
23
|
+
export let helperText = "";
|
|
24
|
+
export let helperIcon = "";
|
|
25
|
+
// Deprecated: use helperText/helperIcon instead
|
|
26
|
+
export let hintText = "";
|
|
27
|
+
export let hintIcon = "";
|
|
28
|
+
export let contentFloat = "left";
|
|
29
|
+
export let readonly = false;
|
|
30
|
+
export let controlled = false;
|
|
31
|
+
export let onButtonClick = null;
|
|
32
|
+
export let value = "";
|
|
33
|
+
export let autocomplete = null;
|
|
34
|
+
export let autofocus = false;
|
|
35
|
+
export let showPasswordToggle = true; // Default to showing toggle on password fields
|
|
36
|
+
export let animateFocus = true; // Enable focus animation effect (auto-disabled when disabled/readonly)
|
|
37
|
+
export let statusText = ""; // Status text to show next to label (e.g., "verified", "unverified")
|
|
38
|
+
export let statusType = ""; // "success" | "error" | "" - determines status text color
|
|
39
|
+
export let buttonDisabled = false; // Explicitly disable the controlled button
|
|
40
|
+
export let inputmode = null; // Override inputmode attribute (tel, email, numeric, etc.)
|
|
41
|
+
export let showErrors = false; // Show errors immediately (bypass touched requirement)
|
|
42
|
+
export let disableBuiltInValidation = false; // When true, disables the built-in blur validation (use for custom validation)
|
|
43
|
+
|
|
44
|
+
let inputValue = value;
|
|
45
|
+
let inputElement;
|
|
46
|
+
|
|
47
|
+
// Derive inputmode from type if not explicitly set
|
|
48
|
+
$: computedInputmode = inputmode || getInputmodeFromType(type);
|
|
49
|
+
|
|
50
|
+
function getInputmodeFromType(inputType) {
|
|
51
|
+
switch (inputType) {
|
|
52
|
+
case 'phoneNumber':
|
|
53
|
+
case 'creditCardNumber':
|
|
54
|
+
return 'tel';
|
|
55
|
+
case 'email':
|
|
56
|
+
return 'email';
|
|
57
|
+
default:
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Sync from parent: when external value prop changes, update internal inputValue
|
|
63
|
+
$: if (value !== inputValue) {
|
|
64
|
+
inputValue = value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Check for autofill changes (password managers like 1Password)
|
|
68
|
+
// This handles both change events and animationstart events triggered by browser autofill
|
|
69
|
+
function checkForAutofill() {
|
|
70
|
+
if (inputElement && inputElement.value !== inputValue) {
|
|
71
|
+
inputValue = inputElement.value;
|
|
72
|
+
value = inputValue;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Handle animation start - browsers use CSS animations to detect autofill
|
|
77
|
+
function handleAnimationStart(event) {
|
|
78
|
+
if (event.animationName === 'onAutoFillStart') {
|
|
79
|
+
checkForAutofill();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Sync from parent: when external value prop changes, update internal inputValue
|
|
84
|
+
$: if (value !== inputValue) {
|
|
85
|
+
inputValue = value;
|
|
86
|
+
}
|
|
87
|
+
let touched = false;
|
|
88
|
+
let displayErrorText = "";
|
|
89
|
+
let isPasswordVisible = false;
|
|
90
|
+
|
|
91
|
+
$: inputType = showPasswordToggle && isPasswordVisible ? "text" : type;
|
|
92
|
+
$: shouldAnimate = animateFocus && !disabled && !readonly;
|
|
93
|
+
|
|
94
|
+
const togglePasswordVisibility = () => {
|
|
95
|
+
isPasswordVisible = !isPasswordVisible;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const handleInput = (event) => {
|
|
99
|
+
inputValue = event.target.value;
|
|
100
|
+
let rawInput = inputValue;
|
|
101
|
+
|
|
102
|
+
if (type === "creditCardNumber") {
|
|
103
|
+
rawInput = inputValue.replace(/\D/g, "");
|
|
104
|
+
inputValue = formatCreditCardNumber(rawInput);
|
|
105
|
+
event.target.value = inputValue;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (type === "phoneNumber") {
|
|
109
|
+
rawInput = inputValue.replace(/\D/g, "");
|
|
110
|
+
inputValue = formatPhoneNumber(rawInput);
|
|
111
|
+
event.target.value = inputValue;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (type === "username") {
|
|
115
|
+
let sanitized = inputValue.trim();
|
|
116
|
+
|
|
117
|
+
// Extract username from full URLs (e.g., https://instagram.com/username, twitter.com/username)
|
|
118
|
+
const urlPattern = /(?:https?:\/\/)?(?:www\.)?(?:instagram\.com|twitter\.com|x\.com|facebook\.com|fb\.com|tiktok\.com|linkedin\.com)\/(?:@)?([A-Za-z0-9._]+)\/?/i;
|
|
119
|
+
const urlMatch = sanitized.match(urlPattern);
|
|
120
|
+
if (urlMatch) {
|
|
121
|
+
sanitized = urlMatch[1];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Strip leading @ symbols
|
|
125
|
+
sanitized = sanitized.replace(/^@+/, "");
|
|
126
|
+
|
|
127
|
+
// Only allow valid username characters
|
|
128
|
+
sanitized = sanitized.replace(/[^A-Za-z0-9._]/g, "");
|
|
129
|
+
|
|
130
|
+
inputValue = sanitized;
|
|
131
|
+
event.target.value = inputValue;
|
|
132
|
+
rawInput = sanitized;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (type === "email") {
|
|
136
|
+
if (!isValidEmail(inputValue)) {
|
|
137
|
+
displayErrorText = errorText;
|
|
138
|
+
} else {
|
|
139
|
+
displayErrorText = "";
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (type === "password") {
|
|
144
|
+
if (!isStrongPassword(inputValue)) {
|
|
145
|
+
displayErrorText =
|
|
146
|
+
"Password must be at least 8 characters long and include uppercase, lowercase, a number, and a special character.";
|
|
147
|
+
} else {
|
|
148
|
+
displayErrorText = "";
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (minlength !== null && rawInput.length < minlength) {
|
|
153
|
+
displayErrorText = errorText;
|
|
154
|
+
} else {
|
|
155
|
+
displayErrorText = "";
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (!disableBuiltInValidation && required && !inputValue.trim()) {
|
|
159
|
+
displayErrorText = "This field is required.";
|
|
160
|
+
} else if (!disableBuiltInValidation) {
|
|
161
|
+
displayErrorText = "";
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// Update exported value for parent bind:value
|
|
165
|
+
value = inputValue;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
const isStrongPassword = (password) => {
|
|
169
|
+
const minLength = 8;
|
|
170
|
+
const hasUpperCase = /[A-Z]/.test(password);
|
|
171
|
+
const hasLowerCase = /[a-z]/.test(password);
|
|
172
|
+
const hasNumber = /[0-9]/.test(password);
|
|
173
|
+
const hasSpecialChar = /[!@#$%^&*]/.test(password);
|
|
174
|
+
|
|
175
|
+
return (
|
|
176
|
+
password.length >= minLength &&
|
|
177
|
+
hasUpperCase &&
|
|
178
|
+
hasLowerCase &&
|
|
179
|
+
hasNumber &&
|
|
180
|
+
hasSpecialChar
|
|
181
|
+
);
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
const formatCreditCardNumber = (value) => {
|
|
185
|
+
return value
|
|
186
|
+
.replace(/\D/g, "")
|
|
187
|
+
.replace(/(.{4})/g, "$1 ")
|
|
188
|
+
.trim();
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
const formatPhoneNumber = (value) => {
|
|
192
|
+
const cleanedValue = value.replace(/\D/g, "");
|
|
193
|
+
let formattedValue = "";
|
|
194
|
+
if (cleanedValue.length > 0) {
|
|
195
|
+
formattedValue += cleanedValue.substring(0, 3);
|
|
196
|
+
}
|
|
197
|
+
if (cleanedValue.length >= 4) {
|
|
198
|
+
formattedValue += "-" + cleanedValue.substring(3, 6);
|
|
199
|
+
}
|
|
200
|
+
if (cleanedValue.length >= 7) {
|
|
201
|
+
formattedValue += "-" + cleanedValue.substring(6, 10);
|
|
202
|
+
}
|
|
203
|
+
return formattedValue;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
const handleBlur = () => {
|
|
207
|
+
touched = true;
|
|
208
|
+
|
|
209
|
+
// Skip built-in validation if disabled (for custom validation handling)
|
|
210
|
+
if (disableBuiltInValidation) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
if (required && !inputValue.trim()) {
|
|
215
|
+
displayErrorText = "This field is required.";
|
|
216
|
+
} else if (type === "email" && !isValidEmail(inputValue)) {
|
|
217
|
+
displayErrorText = errorText;
|
|
218
|
+
} else if (minlength !== null && inputValue.length < minlength) {
|
|
219
|
+
displayErrorText = errorText;
|
|
220
|
+
} else {
|
|
221
|
+
displayErrorText = "";
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
const isValidEmail = (email) => {
|
|
226
|
+
const re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
227
|
+
return re.test(String(email).toLowerCase());
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
const getSizeClass = () => {
|
|
231
|
+
switch (size) {
|
|
232
|
+
case "full":
|
|
233
|
+
return "w-full";
|
|
234
|
+
case "large":
|
|
235
|
+
return "w-96";
|
|
236
|
+
case "medium":
|
|
237
|
+
return "w-64";
|
|
238
|
+
case "small":
|
|
239
|
+
return "w-52";
|
|
240
|
+
default:
|
|
241
|
+
return "w-44";
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
const getContentFloatClass = () => {
|
|
246
|
+
switch (contentFloat) {
|
|
247
|
+
case "center":
|
|
248
|
+
return "text-center";
|
|
249
|
+
case "right":
|
|
250
|
+
return "text-right";
|
|
251
|
+
default:
|
|
252
|
+
return "text-left";
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
const getTextareaSizeClass = () => {
|
|
257
|
+
switch (textareaSize) {
|
|
258
|
+
case "sm":
|
|
259
|
+
return "h-24"; // ~4 rows
|
|
260
|
+
case "md":
|
|
261
|
+
return "h-36"; // ~6 rows
|
|
262
|
+
case "lg":
|
|
263
|
+
return "h-44"; // ~8 rows (previously h-44 via className)
|
|
264
|
+
default:
|
|
265
|
+
return ""; // Use default rows="4"
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
const handleButtonClick = () => {
|
|
270
|
+
if (typeof onButtonClick === "function") {
|
|
271
|
+
onButtonClick(inputValue);
|
|
272
|
+
} else {
|
|
273
|
+
console.log("Button clicked, input value:", inputValue);
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
// $: displayErrorText = errorText || (touched && required && !inputValue.trim() ? "This field is required." : "");
|
|
278
|
+
$: displayErrorText =
|
|
279
|
+
errorText ||
|
|
280
|
+
(touched &&
|
|
281
|
+
!disableBuiltInValidation &&
|
|
282
|
+
(errorText ||
|
|
283
|
+
(required && !inputValue.trim() ? "This field is required." : "")));
|
|
284
|
+
</script>
|
|
285
|
+
|
|
286
|
+
<div class="input-wrapper flex flex-col gap-2 {className}">
|
|
287
|
+
{#if label}
|
|
288
|
+
<div class="flex justify-start items-center gap-1">
|
|
289
|
+
<label
|
|
290
|
+
for={id}
|
|
291
|
+
class="input-label"
|
|
292
|
+
>
|
|
293
|
+
{label}{#if required}<span class="input-required">*</span>{/if}
|
|
294
|
+
</label>
|
|
295
|
+
{#if statusText}
|
|
296
|
+
<span class="input-status {statusType === 'success' ? 'input-status-success' : statusType === 'error' ? 'input-status-error' : ''}">({statusText})</span>
|
|
297
|
+
{/if}
|
|
298
|
+
{#if optional}
|
|
299
|
+
<span class="input-optional">(optional)</span>
|
|
300
|
+
{/if}
|
|
301
|
+
</div>
|
|
302
|
+
{/if}
|
|
303
|
+
<div class="relative {getSizeClass()}">
|
|
304
|
+
{#if type === "textarea"}
|
|
305
|
+
<textarea
|
|
306
|
+
{id}
|
|
307
|
+
{name}
|
|
308
|
+
{placeholder}
|
|
309
|
+
value={inputValue}
|
|
310
|
+
on:input={handleInput}
|
|
311
|
+
on:blur={handleBlur}
|
|
312
|
+
{maxlength}
|
|
313
|
+
{minlength}
|
|
314
|
+
class="input-field input-textarea resize-y {getContentFloatClass()} {displayErrorText
|
|
315
|
+
? 'input-error'
|
|
316
|
+
: ''} {getSizeClass()} {getTextareaSizeClass()} {shouldAnimate ? 'input-animate-focus' : ''} {className}"
|
|
317
|
+
required={false}
|
|
318
|
+
{disabled}
|
|
319
|
+
{readonly}
|
|
320
|
+
rows="4"
|
|
321
|
+
aria-required={required}
|
|
322
|
+
></textarea>
|
|
323
|
+
{:else if type === "password" && showPasswordToggle}
|
|
324
|
+
<!-- Password input with show/hide toggle -->
|
|
325
|
+
<div
|
|
326
|
+
class="input-password-wrapper {displayErrorText
|
|
327
|
+
? 'input-error'
|
|
328
|
+
: ''} {getSizeClass()} {shouldAnimate ? 'input-animate-focus' : ''} {className}"
|
|
329
|
+
>
|
|
330
|
+
<input
|
|
331
|
+
bind:this={inputElement}
|
|
332
|
+
{id}
|
|
333
|
+
type={inputType}
|
|
334
|
+
{name}
|
|
335
|
+
{placeholder}
|
|
336
|
+
value={inputValue}
|
|
337
|
+
on:input={handleInput}
|
|
338
|
+
on:change={checkForAutofill}
|
|
339
|
+
on:animationstart={handleAnimationStart}
|
|
340
|
+
on:blur={handleBlur}
|
|
341
|
+
{maxlength}
|
|
342
|
+
{minlength}
|
|
343
|
+
class="input-password-field {getContentFloatClass()}"
|
|
344
|
+
required={false}
|
|
345
|
+
{disabled}
|
|
346
|
+
{readonly}
|
|
347
|
+
aria-required={required}
|
|
348
|
+
{autocomplete}
|
|
349
|
+
{autofocus}
|
|
350
|
+
inputmode={computedInputmode}
|
|
351
|
+
/>
|
|
352
|
+
|
|
353
|
+
<button
|
|
354
|
+
type="button"
|
|
355
|
+
on:click={togglePasswordVisibility}
|
|
356
|
+
class="input-password-toggle"
|
|
357
|
+
tabindex="-1"
|
|
358
|
+
aria-label={isPasswordVisible ? "Hide password" : "Show password"}
|
|
359
|
+
>
|
|
360
|
+
{#if isPasswordVisible}
|
|
361
|
+
<!-- Eye Off Icon -->
|
|
362
|
+
<svg
|
|
363
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
364
|
+
fill="none"
|
|
365
|
+
viewBox="0 0 24 24"
|
|
366
|
+
stroke-width="1.5"
|
|
367
|
+
stroke="currentColor"
|
|
368
|
+
class="w-5 h-5"
|
|
369
|
+
>
|
|
370
|
+
<path
|
|
371
|
+
stroke-linecap="round"
|
|
372
|
+
stroke-linejoin="round"
|
|
373
|
+
d="M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"
|
|
374
|
+
/>
|
|
375
|
+
</svg>
|
|
376
|
+
{:else}
|
|
377
|
+
<!-- Eye Icon -->
|
|
378
|
+
<svg
|
|
379
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
380
|
+
fill="none"
|
|
381
|
+
viewBox="0 0 24 24"
|
|
382
|
+
stroke-width="1.5"
|
|
383
|
+
stroke="currentColor"
|
|
384
|
+
class="w-5 h-5"
|
|
385
|
+
>
|
|
386
|
+
<path
|
|
387
|
+
stroke-linecap="round"
|
|
388
|
+
stroke-linejoin="round"
|
|
389
|
+
d="M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"
|
|
390
|
+
/>
|
|
391
|
+
<path
|
|
392
|
+
stroke-linecap="round"
|
|
393
|
+
stroke-linejoin="round"
|
|
394
|
+
d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"
|
|
395
|
+
/>
|
|
396
|
+
</svg>
|
|
397
|
+
{/if}
|
|
398
|
+
</button>
|
|
399
|
+
</div>
|
|
400
|
+
{:else}
|
|
401
|
+
<!-- Standard Input Layout -->
|
|
402
|
+
<div class="flex items-center">
|
|
403
|
+
<input
|
|
404
|
+
bind:this={inputElement}
|
|
405
|
+
{id}
|
|
406
|
+
type={inputType}
|
|
407
|
+
{name}
|
|
408
|
+
{placeholder}
|
|
409
|
+
value={inputValue}
|
|
410
|
+
on:input={handleInput}
|
|
411
|
+
on:change={checkForAutofill}
|
|
412
|
+
on:animationstart={handleAnimationStart}
|
|
413
|
+
on:blur={handleBlur}
|
|
414
|
+
{maxlength}
|
|
415
|
+
{minlength}
|
|
416
|
+
class="input-field {icon
|
|
417
|
+
? 'pr-10'
|
|
418
|
+
: ''} {getContentFloatClass()} {displayErrorText
|
|
419
|
+
? 'input-error'
|
|
420
|
+
: ''} {getSizeClass()} {shouldAnimate ? 'input-animate-focus' : ''} {className}"
|
|
421
|
+
required={false}
|
|
422
|
+
{disabled}
|
|
423
|
+
{readonly}
|
|
424
|
+
aria-required={required}
|
|
425
|
+
{autocomplete}
|
|
426
|
+
{autofocus}
|
|
427
|
+
inputmode={computedInputmode}
|
|
428
|
+
/>
|
|
429
|
+
{#if controlled && (buttonIcon || buttonText)}
|
|
430
|
+
<button
|
|
431
|
+
type="button"
|
|
432
|
+
on:click={handleButtonClick}
|
|
433
|
+
disabled={buttonDisabled}
|
|
434
|
+
class="absolute inset-y-0 right-0 gap-1 flex items-center justify-center px-4 input-controlled-button {helperText ||
|
|
435
|
+
hintText ||
|
|
436
|
+
displayErrorText
|
|
437
|
+
? 'mb-7'
|
|
438
|
+
: ''}"
|
|
439
|
+
>
|
|
440
|
+
{#if buttonIcon}
|
|
441
|
+
<img src={buttonIcon} alt="Button Icon" class="w-5 h-5" />
|
|
442
|
+
{/if}
|
|
443
|
+
{#if buttonText}
|
|
444
|
+
<span class="text-sm font-medium"
|
|
445
|
+
>{buttonText}</span
|
|
446
|
+
>
|
|
447
|
+
{/if}
|
|
448
|
+
</button>
|
|
449
|
+
{/if}
|
|
450
|
+
</div>
|
|
451
|
+
{/if}
|
|
452
|
+
|
|
453
|
+
{#if displayErrorText && (touched || showErrors)}
|
|
454
|
+
<div
|
|
455
|
+
transition:slide={{ duration: 300, easing: cubicOut }}
|
|
456
|
+
class="validation-error flex items-start gap-1.5 mt-2"
|
|
457
|
+
role="alert"
|
|
458
|
+
aria-live="assertive"
|
|
459
|
+
>
|
|
460
|
+
<WarningIcon className="shrink-0 text-red-500 mt-[1px]" />
|
|
461
|
+
<p class="input-error-text">
|
|
462
|
+
{displayErrorText}
|
|
463
|
+
</p>
|
|
464
|
+
</div>
|
|
465
|
+
{:else if helperText || hintText}
|
|
466
|
+
<div class="input-helper">
|
|
467
|
+
{#if helperIcon || hintIcon}
|
|
468
|
+
<img src={helperIcon || hintIcon} alt="Helper icon" class="w-4 h-4 mr-2" />
|
|
469
|
+
{/if}
|
|
470
|
+
<span>{helperText || hintText}</span>
|
|
471
|
+
</div>
|
|
472
|
+
{/if}
|
|
473
|
+
|
|
474
|
+
{#if icon && type !== "textarea"}
|
|
475
|
+
<img
|
|
476
|
+
src={icon}
|
|
477
|
+
alt="Input icon"
|
|
478
|
+
class="absolute inset-y-0 right-0 w-5 h-5 mr-3 top-1/2 transform -translate-y-1/2 text-Text-Primary"
|
|
479
|
+
/>
|
|
480
|
+
{/if}
|
|
481
|
+
</div>
|
|
482
|
+
</div>
|
|
483
|
+
|
|
484
|
+
<style>
|
|
485
|
+
/* CSS Variables for dark mode support */
|
|
486
|
+
.input-wrapper {
|
|
487
|
+
--input-bg: #f9fafb;
|
|
488
|
+
--input-text: #0d1526;
|
|
489
|
+
--input-text-placeholder: #6b7280;
|
|
490
|
+
--input-border: #e5e7eb;
|
|
491
|
+
--input-border-error: #ff6666;
|
|
492
|
+
--input-focus-ring: #3b82f6;
|
|
493
|
+
--input-label-text: #0d1526;
|
|
494
|
+
--input-optional-text: #6b7280;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.input-label {
|
|
498
|
+
color: var(--input-label-text);
|
|
499
|
+
font-size: 0.875rem;
|
|
500
|
+
font-style: normal;
|
|
501
|
+
line-height: 1.25;
|
|
502
|
+
font-weight: 500;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
@media (min-width: 640px) {
|
|
506
|
+
.input-label {
|
|
507
|
+
line-height: 14px;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.input-required {
|
|
512
|
+
color: var(--input-border-error);
|
|
513
|
+
font-weight: 500;
|
|
514
|
+
font-size: 0.875rem;
|
|
515
|
+
margin-left: 0.125rem;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.input-optional {
|
|
519
|
+
color: var(--input-optional-text);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.input-status {
|
|
523
|
+
font-size: 0.875rem;
|
|
524
|
+
font-weight: 500;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.input-status-success {
|
|
528
|
+
color: #16a34a;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.input-status-error {
|
|
532
|
+
color: var(--input-border-error);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.input-controlled-button {
|
|
536
|
+
color: #1a56db;
|
|
537
|
+
background: transparent;
|
|
538
|
+
border: none;
|
|
539
|
+
cursor: pointer;
|
|
540
|
+
transition: opacity 0.15s ease;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.input-controlled-button:hover:not(:disabled) {
|
|
544
|
+
opacity: 0.8;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.input-controlled-button:disabled {
|
|
548
|
+
opacity: 0.5;
|
|
549
|
+
cursor: not-allowed;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.input-field {
|
|
553
|
+
padding: 0.25rem 0.625rem;
|
|
554
|
+
height: 40px;
|
|
555
|
+
background-color: var(--input-bg);
|
|
556
|
+
color: var(--input-text);
|
|
557
|
+
font-weight: 500;
|
|
558
|
+
font-size: 0.875rem;
|
|
559
|
+
line-height: 0.75rem;
|
|
560
|
+
border: 1px solid var(--input-border);
|
|
561
|
+
border-radius: 0.5rem;
|
|
562
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
@media (min-width: 640px) {
|
|
566
|
+
.input-field {
|
|
567
|
+
padding: 0.25rem 0.75rem;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.input-field:focus {
|
|
572
|
+
outline: none;
|
|
573
|
+
box-shadow: 0 0 0 2px var(--input-focus-ring);
|
|
574
|
+
border-color: var(--input-focus-ring);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.input-field:hover:not(:focus):not(:disabled) {
|
|
578
|
+
border-color: var(--input-focus-ring);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.input-field:disabled {
|
|
582
|
+
opacity: 0.5;
|
|
583
|
+
cursor: not-allowed;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.input-field.input-error {
|
|
587
|
+
border-color: var(--input-border-error);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.input-field::-moz-placeholder {
|
|
591
|
+
color: var(--input-text-placeholder);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.input-field::placeholder {
|
|
595
|
+
color: var(--input-text-placeholder);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.input-textarea {
|
|
599
|
+
padding: 0.75rem;
|
|
600
|
+
height: auto;
|
|
601
|
+
border-radius: 0.375rem;
|
|
602
|
+
line-height: calc(1em + 4px);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/* Password toggle wrapper */
|
|
606
|
+
.input-password-wrapper {
|
|
607
|
+
display: flex;
|
|
608
|
+
align-items: center;
|
|
609
|
+
height: 40px;
|
|
610
|
+
background-color: var(--input-bg);
|
|
611
|
+
border: 1px solid var(--input-border);
|
|
612
|
+
border-radius: 0.5rem;
|
|
613
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.input-password-wrapper:focus-within {
|
|
617
|
+
box-shadow: 0 0 0 2px var(--input-focus-ring);
|
|
618
|
+
border-color: var(--input-focus-ring);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.input-password-wrapper:hover:not(:focus-within) {
|
|
622
|
+
border-color: var(--input-focus-ring);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.input-password-wrapper.input-error {
|
|
626
|
+
border-color: var(--input-border-error);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.input-password-field {
|
|
630
|
+
flex: 1;
|
|
631
|
+
width: 100%;
|
|
632
|
+
height: 100%;
|
|
633
|
+
background-color: transparent;
|
|
634
|
+
border: none;
|
|
635
|
+
color: var(--input-text);
|
|
636
|
+
font-weight: 500;
|
|
637
|
+
font-size: 0.875rem;
|
|
638
|
+
line-height: 0.75rem;
|
|
639
|
+
padding: 0.25rem 0.625rem;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
@media (min-width: 640px) {
|
|
643
|
+
.input-password-field {
|
|
644
|
+
padding: 0.25rem 0.75rem;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.input-password-field:focus {
|
|
649
|
+
outline: none;
|
|
650
|
+
box-shadow: none;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.input-password-toggle {
|
|
654
|
+
display: flex;
|
|
655
|
+
align-items: center;
|
|
656
|
+
justify-content: center;
|
|
657
|
+
padding-right: 0.75rem;
|
|
658
|
+
padding-left: 0.25rem;
|
|
659
|
+
height: 100%;
|
|
660
|
+
color: var(--input-text);
|
|
661
|
+
background: transparent;
|
|
662
|
+
border: none;
|
|
663
|
+
cursor: pointer;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.input-password-toggle:hover {
|
|
667
|
+
color: var(--input-label-text);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.input-password-toggle:focus {
|
|
671
|
+
outline: none;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/* Error, hint, helper text */
|
|
675
|
+
.input-error-text {
|
|
676
|
+
margin: 0;
|
|
677
|
+
color: var(--input-border-error);
|
|
678
|
+
font-size: 0.875rem;
|
|
679
|
+
line-height: 1.25;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.input-helper {
|
|
683
|
+
margin-top: 0.5rem;
|
|
684
|
+
display: flex;
|
|
685
|
+
align-items: center;
|
|
686
|
+
color: var(--input-optional-text);
|
|
687
|
+
opacity: 0.65;
|
|
688
|
+
font-size: 0.75rem;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/* Animate focus effect */
|
|
692
|
+
.input-animate-focus {
|
|
693
|
+
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.15s ease;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.input-animate-focus:focus {
|
|
697
|
+
transform: scale(1.01);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/* Dark mode overrides via .dark class */
|
|
701
|
+
:global(.dark) .input-wrapper {
|
|
702
|
+
--input-bg: #111827;
|
|
703
|
+
--input-text: #f7f7f8;
|
|
704
|
+
--input-text-placeholder: #9ca3af;
|
|
705
|
+
--input-border: #374151;
|
|
706
|
+
--input-label-text: #f7f7f8;
|
|
707
|
+
--input-optional-text: #9ca3af;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/* Autofill detection via CSS animation - triggers animationstart event */
|
|
711
|
+
@keyframes onAutoFillStart {
|
|
712
|
+
from { /* empty */ }
|
|
713
|
+
to { /* empty */ }
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.input-field:-webkit-autofill,
|
|
717
|
+
.input-password-field:-webkit-autofill {
|
|
718
|
+
animation-name: onAutoFillStart;
|
|
719
|
+
animation-duration: 0.001s;
|
|
720
|
+
}
|
|
721
|
+
</style>
|