lawgic-dev-kit 0.3.4 → 0.4.4
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/_virtual/index3.js +2 -3
- package/dist/_virtual/index4.js +3 -3
- package/dist/_virtual/index5.js +3 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/components/atoms/ActionButton/ActionButton.d.ts +11 -0
- package/dist/components/atoms/ActionButton/index.d.ts +1 -0
- package/dist/components/atoms/AsyncToast/index.d.ts +11 -0
- package/dist/components/atoms/Avatar/Avatar.d.ts +11 -0
- package/dist/components/atoms/Avatar/Avatar.js +2 -3
- package/dist/components/atoms/Avatar/index.d.ts +1 -0
- package/dist/components/atoms/BoxContainer/BoxContainer.d.ts +4 -0
- package/dist/components/atoms/BoxContainer/BoxContainer.types.d.ts +6 -0
- package/dist/components/atoms/BoxContainer/index.d.ts +1 -0
- package/dist/components/atoms/Button/Button.d.ts +4 -0
- package/dist/components/atoms/Button/Button.styles.d.ts +26 -0
- package/dist/components/atoms/Button/Button.types.d.ts +9 -0
- package/dist/components/atoms/Button/index.d.ts +1 -0
- package/dist/components/atoms/CenterModal/CenterModal.d.ts +4 -0
- package/dist/components/atoms/CenterModal/CenterModal.types.d.ts +5 -0
- package/dist/components/atoms/CenterModal/index.d.ts +1 -0
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +5 -0
- package/dist/components/atoms/Checkbox/index.d.ts +1 -0
- package/dist/components/atoms/CountryInput/CountryInput.d.ts +4 -0
- package/dist/components/atoms/CountryInput/CountryInput.types.d.ts +37 -0
- package/dist/components/atoms/CountryInput/index.d.ts +1 -0
- package/dist/components/atoms/CountryLabel/CountryLabel.d.ts +6 -0
- package/dist/components/atoms/CountryLabel/index.d.ts +1 -0
- package/dist/components/atoms/CountrySelectInput/CountryDropdown.d.ts +4 -0
- package/dist/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +36 -0
- package/dist/components/atoms/CountrySelectInput/index.d.ts +1 -0
- package/dist/components/atoms/Divider/Divider.d.ts +7 -0
- package/dist/components/atoms/Divider/index.d.ts +1 -0
- package/dist/components/atoms/FullLogo/FullLogo.d.ts +3 -0
- package/dist/components/atoms/FullLogo/index.d.ts +1 -0
- package/dist/components/atoms/IconButton/IconButton.d.ts +4 -0
- package/dist/components/atoms/IconButton/IconButton.styles.d.ts +10 -0
- package/dist/components/atoms/IconButton/IconButton.types.d.ts +11 -0
- package/dist/components/atoms/IconButton/index.d.ts +1 -0
- package/dist/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +4 -0
- package/dist/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +12 -0
- package/dist/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +9 -0
- package/dist/components/atoms/ImageProfileInput/index.d.ts +2 -0
- package/dist/components/atoms/IndexedStep/IndexedStep.d.ts +9 -0
- package/dist/components/atoms/IndexedStep/index.d.ts +1 -0
- package/dist/components/atoms/InfoCard/InfoCard.d.ts +3 -0
- package/dist/components/atoms/InfoCard/InfoCard.types.d.ts +6 -0
- package/dist/components/atoms/InfoCard/index.d.ts +1 -0
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +8 -0
- package/dist/components/atoms/LoadingSpinner/index.d.ts +1 -0
- package/dist/components/atoms/Logo/Logo.d.ts +3 -0
- package/dist/components/atoms/Logo/Slogan.d.ts +3 -0
- package/dist/components/atoms/PasswordInput/PasswordInput.d.ts +5 -0
- package/dist/components/atoms/PasswordInput/PasswordInput.types.d.ts +11 -0
- package/dist/components/atoms/PasswordInput/index.d.ts +1 -0
- package/dist/components/atoms/PhoneInput/PhoneInput.d.ts +4 -0
- package/dist/components/atoms/PhoneInput/PhoneInput.types.d.ts +12 -0
- package/dist/components/atoms/PhoneInput/index.d.ts +1 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.types.d.ts +4 -0
- package/dist/components/atoms/ProgressBar/index.d.ts +1 -0
- package/dist/components/atoms/SearchBar/index.d.ts +2 -0
- package/dist/components/atoms/SectionButton/SectionButton.d.ts +12 -0
- package/dist/components/atoms/SectionButton/desktop/SectionButton.d.ts +3 -0
- package/dist/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +1 -0
- package/dist/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +10 -0
- package/dist/components/atoms/SectionButton/desktop/index.d.ts +2 -0
- package/dist/components/atoms/SectionButton/index.d.ts +1 -0
- package/dist/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +2 -0
- package/dist/components/atoms/SectionButton/mobile/SectionButton.d.ts +3 -0
- package/dist/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +10 -0
- package/dist/components/atoms/SectionButton/mobile/index.d.ts +2 -0
- package/dist/components/atoms/SelectDropdown/SelectDropdown.d.ts +4 -0
- package/dist/components/atoms/SelectDropdown/SelectDropdown.types.d.ts +24 -0
- package/dist/components/atoms/SelectDropdown/index.d.ts +1 -0
- package/dist/components/atoms/SidebarButton/index.d.ts +10 -0
- package/dist/components/atoms/Tab/Tab.d.ts +3 -0
- package/dist/components/atoms/Tab/Tab.styles.d.ts +6 -0
- package/dist/components/atoms/Tab/Tab.types.d.ts +10 -0
- package/dist/components/atoms/Tab/index.d.ts +1 -0
- package/dist/components/atoms/TextButton/TextButton.d.ts +4 -0
- package/dist/components/atoms/TextButton/TextButton.styles.d.ts +2 -0
- package/dist/components/atoms/TextButton/TextButton.types.d.ts +6 -0
- package/dist/components/atoms/TextButton/index.d.ts +1 -0
- package/dist/components/atoms/TextInput/TextInput.d.ts +5 -0
- package/dist/components/atoms/TextInput/TextInput.types.d.ts +11 -0
- package/dist/components/atoms/TextInput/index.d.ts +1 -0
- package/dist/components/atoms/TextStaticInput/TextStaticInput.d.ts +3 -0
- package/dist/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +5 -0
- package/dist/components/atoms/TextStaticInput/index.d.ts +1 -0
- package/dist/components/atoms/Toast/Toast.d.ts +21 -0
- package/dist/components/atoms/Toast/index.d.ts +1 -0
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +16 -0
- package/dist/components/atoms/UncontrolledSelector/index.d.ts +1 -0
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +4 -0
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +13 -0
- package/dist/components/atoms/UncontrolledTextInput/index.d.ts +1 -0
- package/dist/components/atoms/UploadContainer/UploadContainer.d.ts +4 -0
- package/dist/components/atoms/UploadContainer/UploadContainer.types.d.ts +32 -0
- package/dist/components/atoms/UploadContainer/index.d.ts +1 -0
- package/dist/components/atoms/index.d.ts +26 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/molecules/AlertModal/AlertModal.d.ts +3 -0
- package/dist/components/molecules/AlertModal/AlertModal.js +6 -7
- package/dist/components/molecules/AlertModal/AlertModal.types.d.ts +8 -0
- package/dist/components/molecules/AlertModal/index.d.ts +2 -0
- package/dist/components/molecules/CalendarSelector/CalendarSelector.d.ts +8 -0
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +2 -3
- package/dist/components/molecules/CalendarSelector/PeriodToggle.d.ts +6 -0
- package/dist/components/molecules/CalendarSelector/TimeDisplay.d.ts +7 -0
- package/dist/components/molecules/CalendarSelector/index.d.ts +1 -0
- package/dist/components/molecules/DateInput/DateInput.d.ts +11 -0
- package/dist/components/molecules/DateInput/DateInput.js +7 -8
- package/dist/components/molecules/DateInput/index.d.ts +1 -0
- package/dist/components/molecules/DialogModal/DialogModal.d.ts +3 -0
- package/dist/components/molecules/DialogModal/DialogModal.js +2 -3
- package/dist/components/molecules/DialogModal/DialogModal.types.d.ts +10 -0
- package/dist/components/molecules/DialogModal/index.d.ts +1 -0
- package/dist/components/molecules/Dropdown/Dropdown.d.ts +3 -0
- package/dist/components/molecules/Dropdown/Dropdown.types.d.ts +7 -0
- package/dist/components/molecules/Dropdown/index.d.ts +1 -0
- package/dist/components/molecules/FileUpload/FileUpload.d.ts +4 -0
- package/dist/components/molecules/FileUpload/FileUpload.types.d.ts +17 -0
- package/dist/components/molecules/FileUpload/index.d.ts +1 -0
- package/dist/components/molecules/FloatingMenu/FloatingMenu.d.ts +4 -0
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +5 -6
- package/dist/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +11 -0
- package/dist/components/molecules/FloatingMenu/index.d.ts +1 -0
- package/dist/components/molecules/IndexedStepper/IndexedStepper.d.ts +7 -0
- package/dist/components/molecules/IndexedStepper/index.d.ts +1 -0
- package/dist/components/molecules/InformationContainer/InformationContainer.d.ts +14 -0
- package/dist/components/molecules/InformationContainer/index.d.ts +1 -0
- package/dist/components/molecules/SearchModal/SearchModal.d.ts +4 -0
- package/dist/components/molecules/SearchModal/SearchModal.types.d.ts +5 -0
- package/dist/components/molecules/SearchModal/index.d.ts +1 -0
- package/dist/components/molecules/Stepper/Stepper.d.ts +3 -0
- package/dist/components/molecules/Stepper/Stepper.types.d.ts +7 -0
- package/dist/components/molecules/Stepper/index.d.ts +1 -0
- package/dist/components/molecules/Tabs/Tabs.d.ts +19 -0
- package/dist/components/molecules/Tabs/Tabs.js +2 -3
- package/dist/components/molecules/Tabs/index.d.ts +1 -0
- package/dist/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +12 -0
- package/dist/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
- package/dist/components/molecules/index.d.ts +10 -0
- package/dist/components/organisms/index.d.ts +1 -0
- package/dist/constants/countries.d.ts +30 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +54 -56
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +57 -57
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/providers/ThemeProvider.d.ts +10 -0
- package/dist/providers/index.d.ts +1 -0
- package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +11 -0
- package/dist/src/components/atoms/ActionButton/index.d.ts +1 -0
- package/dist/src/components/atoms/AsyncToast/index.d.ts +11 -0
- package/dist/src/components/atoms/Avatar/Avatar.d.ts +11 -0
- package/dist/src/components/atoms/Avatar/index.d.ts +1 -0
- package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +4 -0
- package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +6 -0
- package/dist/src/components/atoms/BoxContainer/index.d.ts +1 -0
- package/dist/src/components/atoms/Button/Button.d.ts +4 -0
- package/dist/src/components/atoms/Button/Button.styles.d.ts +26 -0
- package/dist/src/components/atoms/Button/Button.types.d.ts +9 -0
- package/dist/src/components/atoms/Button/index.d.ts +1 -0
- package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +4 -0
- package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +5 -0
- package/dist/src/components/atoms/CenterModal/index.d.ts +1 -0
- package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +5 -0
- package/dist/src/components/atoms/Checkbox/index.d.ts +1 -0
- package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +4 -0
- package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +37 -0
- package/dist/src/components/atoms/CountryInput/index.d.ts +1 -0
- package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +6 -0
- package/dist/src/components/atoms/CountryLabel/index.d.ts +1 -0
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +4 -0
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +36 -0
- package/dist/src/components/atoms/CountrySelectInput/index.d.ts +1 -0
- package/dist/src/components/atoms/Divider/Divider.d.ts +7 -0
- package/dist/src/components/atoms/Divider/index.d.ts +1 -0
- package/dist/src/components/atoms/FullLogo/FullLogo.d.ts +3 -0
- package/dist/src/components/atoms/FullLogo/index.d.ts +1 -0
- package/dist/src/components/atoms/IconButton/IconButton.d.ts +4 -0
- package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +10 -0
- package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +11 -0
- package/dist/src/components/atoms/IconButton/index.d.ts +1 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +4 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +12 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +9 -0
- package/dist/src/components/atoms/ImageProfileInput/index.d.ts +2 -0
- package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +9 -0
- package/dist/src/components/atoms/IndexedStep/index.d.ts +1 -0
- package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +3 -0
- package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +6 -0
- package/dist/src/components/atoms/InfoCard/index.d.ts +1 -0
- package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +8 -0
- package/dist/src/components/atoms/LoadingSpinner/index.d.ts +1 -0
- package/dist/src/components/atoms/Logo/Logo.d.ts +3 -0
- package/dist/src/components/atoms/Logo/Slogan.d.ts +3 -0
- package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +5 -0
- package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +11 -0
- package/dist/src/components/atoms/PasswordInput/index.d.ts +1 -0
- package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +4 -0
- package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +12 -0
- package/dist/src/components/atoms/PhoneInput/index.d.ts +1 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +4 -0
- package/dist/src/components/atoms/ProgressBar/index.d.ts +1 -0
- package/dist/src/components/atoms/SearchBar/index.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +12 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +1 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +10 -0
- package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/index.d.ts +1 -0
- package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +10 -0
- package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +2 -0
- package/dist/src/components/atoms/SelectDropdown/SelectDropdown.d.ts +4 -0
- package/dist/src/components/atoms/SelectDropdown/SelectDropdown.types.d.ts +24 -0
- package/dist/src/components/atoms/SelectDropdown/index.d.ts +1 -0
- package/dist/src/components/atoms/SidebarButton/index.d.ts +10 -0
- package/dist/src/components/atoms/Tab/Tab.d.ts +3 -0
- package/dist/src/components/atoms/Tab/Tab.styles.d.ts +6 -0
- package/dist/src/components/atoms/Tab/Tab.types.d.ts +10 -0
- package/dist/src/components/atoms/Tab/index.d.ts +1 -0
- package/dist/src/components/atoms/TextButton/TextButton.d.ts +4 -0
- package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +2 -0
- package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +6 -0
- package/dist/src/components/atoms/TextButton/index.d.ts +1 -0
- package/dist/src/components/atoms/TextInput/TextInput.d.ts +5 -0
- package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +11 -0
- package/dist/src/components/atoms/TextInput/index.d.ts +1 -0
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +3 -0
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +5 -0
- package/dist/src/components/atoms/TextStaticInput/index.d.ts +1 -0
- package/dist/src/components/atoms/Toast/Toast.d.ts +21 -0
- package/dist/src/components/atoms/Toast/index.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +16 -0
- package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +4 -0
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +13 -0
- package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +1 -0
- package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +4 -0
- package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +32 -0
- package/dist/src/components/atoms/UploadContainer/index.d.ts +1 -0
- package/dist/src/components/atoms/index.d.ts +26 -0
- package/dist/src/components/index.d.ts +3 -0
- package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +3 -0
- package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +8 -0
- package/dist/src/components/molecules/AlertModal/index.d.ts +2 -0
- package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +8 -0
- package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +6 -0
- package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +7 -0
- package/dist/src/components/molecules/CalendarSelector/index.d.ts +1 -0
- package/dist/src/components/molecules/DateInput/DateInput.d.ts +11 -0
- package/dist/src/components/molecules/DateInput/index.d.ts +1 -0
- package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +3 -0
- package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +10 -0
- package/dist/src/components/molecules/DialogModal/index.d.ts +1 -0
- package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +3 -0
- package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +7 -0
- package/dist/src/components/molecules/Dropdown/index.d.ts +1 -0
- package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +4 -0
- package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +17 -0
- package/dist/src/components/molecules/FileUpload/index.d.ts +1 -0
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +4 -0
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +11 -0
- package/dist/src/components/molecules/FloatingMenu/index.d.ts +1 -0
- package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +7 -0
- package/dist/src/components/molecules/IndexedStepper/index.d.ts +1 -0
- package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +14 -0
- package/dist/src/components/molecules/InformationContainer/index.d.ts +1 -0
- package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +4 -0
- package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +5 -0
- package/dist/src/components/molecules/SearchModal/index.d.ts +1 -0
- package/dist/src/components/molecules/Stepper/Stepper.d.ts +3 -0
- package/dist/src/components/molecules/Stepper/Stepper.types.d.ts +7 -0
- package/dist/src/components/molecules/Stepper/index.d.ts +1 -0
- package/dist/src/components/molecules/Tabs/Tabs.d.ts +19 -0
- package/dist/src/components/molecules/Tabs/index.d.ts +1 -0
- package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +12 -0
- package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
- package/dist/src/components/molecules/index.d.ts +10 -0
- package/dist/src/components/organisms/index.d.ts +1 -0
- package/dist/src/constants/countries.d.ts +30 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/providers/ThemeProvider.d.ts +10 -0
- package/dist/src/providers/index.d.ts +1 -0
- package/dist/src/themes/default.d.ts +2 -0
- package/dist/src/themes/index.d.ts +2 -0
- package/dist/src/themes/types.d.ts +6 -0
- package/dist/src/types/baseModalProps.d.ts +4 -0
- package/dist/src/types/display.d.ts +2 -0
- package/dist/src/types/fileInfo.d.ts +2 -0
- package/dist/src/types/i18n.d.ts +1 -0
- package/dist/src/types/index.d.ts +9 -0
- package/dist/src/types/modal.d.ts +31 -0
- package/dist/src/types/modalType.d.ts +1 -0
- package/dist/src/types/navbarOption.d.ts +7 -0
- package/dist/src/types/sidebarOption.d.ts +7 -0
- package/dist/src/types/styleValues.d.ts +4 -0
- package/dist/src/types/toast.d.ts +26 -0
- package/dist/src/utils/dates.d.ts +1 -0
- package/dist/src/utils/files.d.ts +8 -0
- package/dist/src/utils/images.d.ts +1 -0
- package/dist/src/utils/index.d.ts +7 -0
- package/dist/src/utils/modal.d.ts +10 -0
- package/dist/src/utils/renderContentOptions.d.ts +3 -0
- package/dist/src/utils/strings.d.ts +2 -0
- package/dist/src/utils/toast.d.ts +15 -0
- package/dist/themes/default.d.ts +2 -0
- package/dist/themes/index.d.ts +2 -0
- package/dist/themes/types.d.ts +6 -0
- package/dist/types/baseModalProps.d.ts +4 -0
- package/dist/types/display.d.ts +2 -0
- package/dist/types/fileInfo.d.ts +2 -0
- package/dist/types/i18n.d.ts +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/modal.d.ts +31 -0
- package/dist/types/modalType.d.ts +1 -0
- package/dist/types/navbarOption.d.ts +7 -0
- package/dist/types/sidebarOption.d.ts +7 -0
- package/dist/types/styleValues.d.ts +4 -0
- package/dist/types/toast.d.ts +26 -0
- package/dist/utils/dates.d.ts +1 -0
- package/dist/utils/files.d.ts +8 -0
- package/dist/utils/files.js +12 -18
- package/dist/utils/images.d.ts +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/modal.d.ts +10 -0
- package/dist/utils/modal.js +17 -18
- package/dist/utils/renderContentOptions.d.ts +2 -0
- package/dist/utils/strings.d.ts +2 -0
- package/dist/utils/toast.d.ts +15 -0
- package/dist/utils/toast.js +8 -9
- package/dist/vite-env.d.ts +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +62 -15
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
|
+
export interface Option {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SelectDropdownProps<T extends FieldValues> {
|
|
7
|
+
options: Option[];
|
|
8
|
+
name: Path<T>;
|
|
9
|
+
control: Control<T>;
|
|
10
|
+
label?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
input?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface SelectDropdownFieldProps {
|
|
16
|
+
options: Option[];
|
|
17
|
+
value: Option | null;
|
|
18
|
+
onChange: (option: Option | null) => void;
|
|
19
|
+
label?: string;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
error?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
input?: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SelectDropdown } from './SelectDropdown';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
declare const SidebarButton: ({ active, icon, label, onClick, expanded, disabled, }: {
|
|
3
|
+
active: boolean;
|
|
4
|
+
icon: IconProp;
|
|
5
|
+
label: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
expanded: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default SidebarButton;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
export default interface TabProps {
|
|
3
|
+
href?: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: IconProp;
|
|
6
|
+
isSelected?: boolean;
|
|
7
|
+
direction?: 'row' | 'col';
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
variant?: 'default' | 'underline';
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Tab } from './Tab';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TextButton } from './TextButton';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TextInputProps } from './TextInput.types';
|
|
3
|
+
import { FieldValues } from 'react-hook-form';
|
|
4
|
+
declare const TextInput: <T extends FieldValues = FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, rightSide, ...props }: TextInputProps<T>) => React.ReactElement;
|
|
5
|
+
export default TextInput;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
|
+
export type TextInputProps<T extends FieldValues = FieldValues> = {
|
|
3
|
+
label: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
control: Control<T>;
|
|
8
|
+
name: Path<T>;
|
|
9
|
+
leftSide?: React.ReactNode;
|
|
10
|
+
rightSide?: React.ReactNode;
|
|
11
|
+
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TextInput } from './TextInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TextStaticInput } from './TextStaticInput';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ToastType } from '../../../types';
|
|
2
|
+
type ToastContent = string | React.ReactNode;
|
|
3
|
+
interface ToastProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
content: ToastContent;
|
|
6
|
+
type?: ToastType;
|
|
7
|
+
duration?: number;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Toast: React.FC<ToastProps>;
|
|
11
|
+
export default Toast;
|
|
12
|
+
interface ToastManagerProps {
|
|
13
|
+
toasts: Array<{
|
|
14
|
+
id: string;
|
|
15
|
+
content: ToastContent;
|
|
16
|
+
type: "success" | "error" | "warning" | "info" | "loading";
|
|
17
|
+
duration?: number;
|
|
18
|
+
}>;
|
|
19
|
+
removeToast: (id: string) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const ToastManager: React.FC<ToastManagerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Toast } from './Toast';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface Option {
|
|
3
|
+
label: string | React.ReactNode;
|
|
4
|
+
value: number | string;
|
|
5
|
+
}
|
|
6
|
+
interface UncontrolledSelectorProps {
|
|
7
|
+
value: number | string;
|
|
8
|
+
onChange: (value: number | string) => void;
|
|
9
|
+
options: Option[];
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
error?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const UncontrolledSelector: React.FC<UncontrolledSelectorProps>;
|
|
16
|
+
export default UncontrolledSelector;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UncontrolledSelector } from './UncontrolledSelector';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type UncontrolledTextInputProps = {
|
|
2
|
+
name: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
value: string;
|
|
8
|
+
error?: string | undefined;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
disabledInput?: boolean;
|
|
11
|
+
leftSide?: React.ReactNode;
|
|
12
|
+
rightSide?: React.ReactNode;
|
|
13
|
+
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UncontrolledTextInput } from './UncontrolledTextInput';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface UploadContainerProps {
|
|
2
|
+
/**
|
|
3
|
+
* Título que se muestra en el área de carga
|
|
4
|
+
* @default 'drag_and_drop_your_files_here'
|
|
5
|
+
*/
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Subtítulo opcional para mostrar información adicional
|
|
9
|
+
* @default null
|
|
10
|
+
*/
|
|
11
|
+
subtitle?: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Texto del botón de selección de archivos
|
|
14
|
+
* @default 'choose_files'
|
|
15
|
+
*/
|
|
16
|
+
buttonTitle?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Función que se ejecuta cuando se cargan archivos válidos
|
|
19
|
+
* @param files Array de objetos File seleccionados
|
|
20
|
+
*/
|
|
21
|
+
onUpload?: (files: File[]) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Lista de extensiones de archivo permitidas
|
|
24
|
+
* @default ['pdf', 'png', 'jpg', 'jpeg', 'svg', 'docx', 'doc', 'xls', 'xlsx']
|
|
25
|
+
*/
|
|
26
|
+
acceptedExtensions?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* Tamaño máximo de archivo en KB
|
|
29
|
+
* @default 1024
|
|
30
|
+
*/
|
|
31
|
+
maxSize?: number;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UploadContainer } from './UploadContainer';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from './ActionButton/index';
|
|
2
|
+
export * from './AsyncToast/index';
|
|
3
|
+
export * from './Avatar/index';
|
|
4
|
+
export * from './BoxContainer/index';
|
|
5
|
+
export * from './Button/index';
|
|
6
|
+
export * from './CenterModal/index';
|
|
7
|
+
export * from './CountrySelectInput/index';
|
|
8
|
+
export * from './Divider/index';
|
|
9
|
+
export * from './FullLogo/index';
|
|
10
|
+
export * from './IconButton/index';
|
|
11
|
+
export * from './ImageProfileInput/index';
|
|
12
|
+
export * from './InfoCard/index';
|
|
13
|
+
export * from './LoadingSpinner/index';
|
|
14
|
+
export * from './PasswordInput/index';
|
|
15
|
+
export * from './ProgressBar/index';
|
|
16
|
+
export * from './SearchBar/index';
|
|
17
|
+
export * from './SectionButton/index';
|
|
18
|
+
export * from './SelectDropdown/index';
|
|
19
|
+
export * from './SidebarButton/index';
|
|
20
|
+
export * from './Tab/index';
|
|
21
|
+
export * from './TextButton/index';
|
|
22
|
+
export * from './TextInput/index';
|
|
23
|
+
export * from './Toast/index';
|
|
24
|
+
export * from './UncontrolledSelector/index';
|
|
25
|
+
export * from './UncontrolledTextInput/index';
|
|
26
|
+
export * from './UploadContainer/index';
|
|
@@ -2,7 +2,6 @@ import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import { faX as h } from "../../../node_modules/@fortawesome/pro-light-svg-icons/index.js";
|
|
3
3
|
import { FontAwesomeIcon as y } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../../../utils/files.js";
|
|
6
5
|
import "../../../_virtual/lodash.js";
|
|
7
6
|
import { useTheme as j } from "../../../providers/ThemeProvider.js";
|
|
8
7
|
import g from "../../atoms/BoxContainer/BoxContainer.js";
|
|
@@ -11,12 +10,12 @@ import a from "../../atoms/Button/Button.js";
|
|
|
11
10
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
12
11
|
import { AnimatePresence as u } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
13
12
|
import { motion as n } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
14
|
-
const
|
|
13
|
+
const E = ({
|
|
15
14
|
title: s,
|
|
16
15
|
description: r,
|
|
17
|
-
open:
|
|
16
|
+
open: l,
|
|
18
17
|
onClose: i,
|
|
19
|
-
onConfirm:
|
|
18
|
+
onConfirm: o,
|
|
20
19
|
onCancel: c
|
|
21
20
|
}) => {
|
|
22
21
|
const { t: e } = j(), m = {
|
|
@@ -47,11 +46,11 @@ const I = ({
|
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
}, p = () => {
|
|
50
|
-
|
|
49
|
+
o(), i();
|
|
51
50
|
}, d = () => {
|
|
52
51
|
c(), i();
|
|
53
52
|
};
|
|
54
|
-
return /* @__PURE__ */ t.jsx(u, { children:
|
|
53
|
+
return /* @__PURE__ */ t.jsx(u, { children: l && /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
|
|
55
54
|
n.div,
|
|
56
55
|
{
|
|
57
56
|
className: "fixed inset-0 bg-black bg-opacity-50 z-9999 flex items-center justify-center",
|
|
@@ -108,5 +107,5 @@ const I = ({
|
|
|
108
107
|
) }) });
|
|
109
108
|
};
|
|
110
109
|
export {
|
|
111
|
-
|
|
110
|
+
E as default
|
|
112
111
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type CalendarSelectorProps = {
|
|
3
|
+
date: Date;
|
|
4
|
+
onDateChange: (date: Date) => void;
|
|
5
|
+
showTimeSelector?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const CalendarSelector: React.FC<CalendarSelectorProps>;
|
|
8
|
+
export default CalendarSelector;
|
|
@@ -3,7 +3,6 @@ import { faChevronRight as W } from "../../../node_modules/@fortawesome/free-sol
|
|
|
3
3
|
import { faChevronLeft as _ } from "../../../node_modules/@fortawesome/pro-solid-svg-icons/index.js";
|
|
4
4
|
import { useState as a, useEffect as q } from "react";
|
|
5
5
|
import "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
6
|
-
import "../../../utils/files.js";
|
|
7
6
|
import "../../../_virtual/lodash.js";
|
|
8
7
|
import { useTheme as z } from "../../../providers/ThemeProvider.js";
|
|
9
8
|
import G from "../FloatingMenu/FloatingMenu.js";
|
|
@@ -28,7 +27,7 @@ import { setHours as w } from "../../../node_modules/date-fns/setHours.js";
|
|
|
28
27
|
import { setMinutes as E } from "../../../node_modules/date-fns/setMinutes.js";
|
|
29
28
|
import { setSeconds as P } from "../../../node_modules/date-fns/setSeconds.js";
|
|
30
29
|
import { formatDate as h } from "../../../node_modules/date-fns/format.js";
|
|
31
|
-
const
|
|
30
|
+
const Oe = ({
|
|
32
31
|
date: o,
|
|
33
32
|
onDateChange: g,
|
|
34
33
|
showTimeSelector: S = !0
|
|
@@ -217,5 +216,5 @@ const Te = ({
|
|
|
217
216
|
] });
|
|
218
217
|
};
|
|
219
218
|
export {
|
|
220
|
-
|
|
219
|
+
Oe as default
|
|
221
220
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface PeriodToggleProps {
|
|
2
|
+
selectedPeriod: string;
|
|
3
|
+
handlePeriodChange: (period: string) => void;
|
|
4
|
+
}
|
|
5
|
+
declare const PeriodToggle: ({ selectedPeriod, handlePeriodChange, }: PeriodToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default PeriodToggle;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface TimeDisplayProps {
|
|
2
|
+
setHourMenuOpen: (value: boolean) => void;
|
|
3
|
+
hourMenuOpen: boolean;
|
|
4
|
+
selectedHour: number;
|
|
5
|
+
}
|
|
6
|
+
declare const TimeDisplay: ({ setHourMenuOpen, hourMenuOpen, selectedHour, }: TimeDisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default TimeDisplay;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CalendarSelector } from './CalendarSelector';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
export type DateInputProps<T extends FieldValues = FieldValues> = {
|
|
4
|
+
control: Control<T>;
|
|
5
|
+
name: Path<T>;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
showTimeSelector?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const DateInput: <T extends FieldValues = FieldValues>({ control, name, showTimeSelector, label, placeholder }: DateInputProps<T>) => React.ReactElement;
|
|
11
|
+
export default DateInput;
|
|
@@ -8,15 +8,14 @@ import { FontAwesomeIcon as D } from "../../../node_modules/@fortawesome/react-f
|
|
|
8
8
|
import { faX as S } from "../../../node_modules/@fortawesome/free-solid-svg-icons/index.js";
|
|
9
9
|
import { useTheme as I } from "../../../providers/ThemeProvider.js";
|
|
10
10
|
import { formatLocalizedDate as v } from "../../../utils/dates.js";
|
|
11
|
-
import "../../../utils/files.js";
|
|
12
11
|
import "../../../_virtual/lodash.js";
|
|
13
12
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
14
13
|
import "../../../_virtual/client.js";
|
|
15
|
-
const
|
|
14
|
+
const M = ({ control: l, name: r, showTimeSelector: m = !1, label: p, placeholder: i }) => {
|
|
16
15
|
const {
|
|
17
16
|
field: { value: e = /* @__PURE__ */ new Date(), onChange: a, onBlur: u },
|
|
18
17
|
fieldState: { error: o }
|
|
19
|
-
} = C({ name:
|
|
18
|
+
} = C({ name: r, control: l }), { t: f } = I(), c = f(r), [d, s] = x(!1);
|
|
20
19
|
return /* @__PURE__ */ t.jsx(
|
|
21
20
|
j,
|
|
22
21
|
{
|
|
@@ -30,8 +29,8 @@ const O = ({ control: l, name: n, showTimeSelector: m = !1, label: p, placeholde
|
|
|
30
29
|
g,
|
|
31
30
|
{
|
|
32
31
|
date: e || /* @__PURE__ */ new Date(),
|
|
33
|
-
onDateChange: (
|
|
34
|
-
a(
|
|
32
|
+
onDateChange: (n) => {
|
|
33
|
+
a(n);
|
|
35
34
|
},
|
|
36
35
|
showTimeSelector: m
|
|
37
36
|
}
|
|
@@ -42,8 +41,8 @@ const O = ({ control: l, name: n, showTimeSelector: m = !1, label: p, placeholde
|
|
|
42
41
|
onBlur: u,
|
|
43
42
|
name: c,
|
|
44
43
|
label: p,
|
|
45
|
-
onFocus: (
|
|
46
|
-
|
|
44
|
+
onFocus: (n) => {
|
|
45
|
+
n.preventDefault(), s(!0);
|
|
47
46
|
},
|
|
48
47
|
value: e && v(e) || "",
|
|
49
48
|
disabledInput: !0,
|
|
@@ -69,5 +68,5 @@ const O = ({ control: l, name: n, showTimeSelector: m = !1, label: p, placeholde
|
|
|
69
68
|
);
|
|
70
69
|
};
|
|
71
70
|
export {
|
|
72
|
-
|
|
71
|
+
M as default
|
|
73
72
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DateInput } from './DateInput';
|
|
@@ -2,7 +2,6 @@ import { j as i } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import { faX as j } from "../../../node_modules/@fortawesome/pro-light-svg-icons/index.js";
|
|
3
3
|
import { FontAwesomeIcon as t } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../../../utils/files.js";
|
|
6
5
|
import "../../../_virtual/lodash.js";
|
|
7
6
|
import "../../../providers/ThemeProvider.js";
|
|
8
7
|
import y from "../../atoms/BoxContainer/BoxContainer.js";
|
|
@@ -11,7 +10,7 @@ import a from "../../atoms/Button/Button.js";
|
|
|
11
10
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
12
11
|
import { AnimatePresence as u } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
13
12
|
import { motion as s } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
14
|
-
const
|
|
13
|
+
const V = ({
|
|
15
14
|
title: n,
|
|
16
15
|
description: l,
|
|
17
16
|
open: r,
|
|
@@ -121,5 +120,5 @@ const D = ({
|
|
|
121
120
|
) }) });
|
|
122
121
|
};
|
|
123
122
|
export {
|
|
124
|
-
|
|
123
|
+
V as default
|
|
125
124
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DialogModal } from './DialogModal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Dropdown } from './Dropdown';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FileInfo } from '../../../types';
|
|
2
|
+
export declare const FileStatus: {
|
|
3
|
+
LOADING: string;
|
|
4
|
+
COMPLETE: string;
|
|
5
|
+
ERROR: string;
|
|
6
|
+
};
|
|
7
|
+
export interface UploadingFile extends FileInfo {
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
analyzing?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface FileUploadProps {
|
|
13
|
+
file: UploadingFile;
|
|
14
|
+
onDelete?: () => void;
|
|
15
|
+
onRetry?: () => void;
|
|
16
|
+
uploadDuration?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FileUpload } from './FileUpload';
|
|
@@ -2,7 +2,6 @@ import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import { useFloating as N, useClick as O, useDismiss as R, useInteractions as S, useTransitionStyles as b } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
|
|
3
3
|
import { useState as k, useEffect as w } from "react";
|
|
4
4
|
import "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
5
|
-
import "../../../utils/files.js";
|
|
6
5
|
import "../../../_virtual/lodash.js";
|
|
7
6
|
import "../../../providers/ThemeProvider.js";
|
|
8
7
|
import P from "../../atoms/BoxContainer/BoxContainer.js";
|
|
@@ -10,7 +9,7 @@ import "../../../_virtual/client.js";
|
|
|
10
9
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
11
10
|
import { autoUpdate as z } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
12
11
|
import { offset as B, flip as D, shift as T } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
13
|
-
const
|
|
12
|
+
const V = ({
|
|
14
13
|
open: e,
|
|
15
14
|
onClose: s,
|
|
16
15
|
component: i,
|
|
@@ -18,8 +17,8 @@ const W = ({
|
|
|
18
17
|
placement: l = "bottom",
|
|
19
18
|
className: f = "",
|
|
20
19
|
strategy: m = "absolute",
|
|
21
|
-
offset:
|
|
22
|
-
padding:
|
|
20
|
+
offset: c = 8,
|
|
21
|
+
padding: p = 8
|
|
23
22
|
}) => {
|
|
24
23
|
const [d, r] = k(e);
|
|
25
24
|
w(() => {
|
|
@@ -33,7 +32,7 @@ const W = ({
|
|
|
33
32
|
onOpenChange: (M) => {
|
|
34
33
|
M || u();
|
|
35
34
|
},
|
|
36
|
-
middleware: [B(
|
|
35
|
+
middleware: [B(c), D(), T({ padding: p })],
|
|
37
36
|
whileElementsMounted: z,
|
|
38
37
|
placement: l
|
|
39
38
|
}), h = O(o), j = R(o), { getReferenceProps: v, getFloatingProps: F } = S([
|
|
@@ -78,5 +77,5 @@ const W = ({
|
|
|
78
77
|
] });
|
|
79
78
|
};
|
|
80
79
|
export {
|
|
81
|
-
|
|
80
|
+
V as default
|
|
82
81
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface FloatingMenuProps {
|
|
2
|
+
open?: boolean;
|
|
3
|
+
onClose?: () => void;
|
|
4
|
+
component: React.ReactNode | (() => React.ReactNode);
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
placement?: "top" | "bottom" | "left" | "right";
|
|
7
|
+
className?: string;
|
|
8
|
+
strategy?: "fixed" | "absolute";
|
|
9
|
+
offset?: number;
|
|
10
|
+
padding?: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FloatingMenu } from './FloatingMenu';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as IndexedStepper } from './IndexedStepper';
|