lawgic-dev-kit 0.21.6 → 0.22.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/README.md +54 -54
- package/dist/_virtual/index2.js +2 -3
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index5.js +5 -2
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/atoms/Checkbox/Checkbox.js +43 -30
- package/dist/components/atoms/Chip/Chip.d.ts +13 -0
- package/dist/components/atoms/Chip/Chip.js +32 -0
- package/dist/components/atoms/Chip/index.d.ts +1 -0
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.js +17 -30
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +8 -2
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.js +46 -12
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +3 -3
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.js +56 -12
- package/dist/components/atoms/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/atoms/PasswordInput/PasswordInput.js +57 -41
- package/dist/components/atoms/PasswordInput/PasswordInput.types.d.ts +1 -0
- package/dist/components/atoms/SelectInput/SelectInput.d.ts +1 -1
- package/dist/components/atoms/SelectInput/SelectInput.js +125 -140
- package/dist/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
- package/dist/components/atoms/StepIndicator/StepIndicator.d.ts +5 -0
- package/dist/components/atoms/StepIndicator/StepIndicator.js +58 -0
- package/dist/components/atoms/StepIndicator/index.d.ts +1 -0
- package/dist/components/atoms/TextInput/TextInput.js +33 -33
- package/dist/components/atoms/TextInput/TextInput.types.d.ts +1 -1
- package/dist/components/atoms/Toast/Toast.d.ts +2 -3
- package/dist/components/atoms/Toast/Toast.js +46 -53
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -0
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +98 -84
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +29 -35
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +1 -1
- package/dist/components/atoms/UploadContainer/UploadContainer.js +4 -4
- package/dist/components/atoms/index.d.ts +2 -1
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +8 -8
- package/dist/components/molecules/DateInput/DateInput.d.ts +1 -1
- package/dist/components/molecules/EmptyState/EmptyState.d.ts +9 -0
- package/dist/components/molecules/EmptyState/EmptyState.js +16 -0
- package/dist/components/molecules/EmptyState/index.d.ts +1 -0
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +24 -0
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +208 -0
- package/dist/components/molecules/MultiSelectDropdown/index.d.ts +1 -0
- package/dist/components/molecules/SingleSelectDropdown/SingleSelectDropdown.d.ts +25 -0
- package/dist/components/molecules/SingleSelectDropdown/SingleSelectDropdown.js +212 -0
- package/dist/components/molecules/SingleSelectDropdown/index.d.ts +1 -0
- package/dist/components/molecules/Stepper/Stepper.d.ts +1 -1
- package/dist/components/molecules/Stepper/Stepper.js +78 -231
- package/dist/components/molecules/Stepper/Stepper.styles.d.ts +7 -3
- package/dist/components/molecules/Stepper/Stepper.styles.js +23 -15
- package/dist/components/molecules/Tooltip/Tooltip.d.ts +20 -0
- package/dist/components/molecules/Tooltip/Tooltip.js +41 -0
- package/dist/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +1 -1
- package/dist/components/molecules/index.d.ts +4 -0
- package/dist/index.js +139 -129
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +109 -97
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +396 -712
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +33 -81
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +7 -2
- package/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +14 -49
- package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +32 -12
- package/dist/node_modules/@fortawesome/pro-solid-svg-icons/index.js +14 -9
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/src/Root.d.ts +2 -0
- package/dist/src/app.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 +12 -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 +6 -0
- package/dist/src/components/atoms/CenterModal/index.d.ts +1 -0
- package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +13 -0
- package/dist/src/components/atoms/Checkbox/index.d.ts +1 -0
- package/dist/src/components/atoms/Chip/Chip.d.ts +13 -0
- package/dist/src/components/atoms/Chip/index.d.ts +1 -0
- package/dist/src/components/atoms/CircleProgress/CircleProgress.d.ts +22 -0
- package/dist/src/components/atoms/CircleProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/ClickAwayListener/ClickAwayListener.d.ts +4 -0
- package/dist/src/components/atoms/ClickAwayListener/ClickAwayListener.types.d.ts +7 -0
- package/dist/src/components/atoms/ClickAwayListener/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/FilterPill/FilterPill.d.ts +8 -0
- package/dist/src/components/atoms/FilterPill/index.d.ts +1 -0
- package/dist/src/components/atoms/FloatingCard/FloatingCard.d.ts +4 -0
- package/dist/{components/atoms/Tooltip/Tooltip.types.d.ts → src/components/atoms/FloatingCard/FloatingCard.types.d.ts} +3 -3
- package/dist/src/components/atoms/FloatingCard/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/InformationDisclaimer/InformationDisclaimer.d.ts +4 -0
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +9 -0
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +10 -0
- package/dist/src/components/atoms/InformationDisclaimer/index.d.ts +1 -0
- package/dist/src/components/atoms/LoadingProgress/LoadingProgress.d.ts +13 -0
- package/dist/src/components/atoms/LoadingProgress/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/PasswordInput/PasswordInput.d.ts +5 -0
- package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +12 -0
- package/dist/src/components/atoms/PasswordInput/index.d.ts +1 -0
- package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +5 -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/Pill/Pill.d.ts +8 -0
- package/dist/src/components/atoms/Pill/index.d.ts +1 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.styles.d.ts +7 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +6 -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 +2 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +37 -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 +3 -0
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +37 -0
- package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +2 -0
- package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +1 -1
- package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
- package/dist/src/components/atoms/SelectInput/index.d.ts +1 -0
- package/dist/src/components/atoms/SidebarButton/SidebarButton.d.ts +13 -0
- package/dist/src/components/atoms/SidebarButton/SidebarButton.styles.d.ts +9 -0
- package/dist/src/components/atoms/SidebarButton/index.d.ts +1 -0
- package/dist/src/components/atoms/StepIndicator/StepIndicator.d.ts +5 -0
- package/dist/src/components/atoms/StepIndicator/index.d.ts +1 -0
- package/dist/src/components/atoms/Switch/Switch.d.ts +7 -0
- package/dist/src/components/atoms/Switch/index.d.ts +1 -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 +11 -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 +13 -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/ThresholdCircleProgress/ThresholdCircleProgress.d.ts +4 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +30 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.d.ts +4 -0
- package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.types.d.ts +22 -0
- package/dist/src/components/atoms/ThresholdProgressBar/index.d.ts +1 -0
- package/dist/src/components/atoms/Toast/Toast.d.ts +20 -0
- package/dist/src/components/atoms/Toast/index.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -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 +14 -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 +37 -0
- package/dist/src/components/atoms/UploadContainer/index.d.ts +1 -0
- package/dist/src/components/atoms/index.d.ts +43 -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 +9 -0
- package/dist/src/components/molecules/AlertModal/index.d.ts +2 -0
- package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.d.ts +3 -0
- package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.types.d.ts +28 -0
- package/dist/src/components/molecules/AutocompleteInput/index.d.ts +1 -0
- package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +14 -0
- package/dist/src/components/molecules/CalendarSelector/CalendarSelector.styles.d.ts +36 -0
- package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +15 -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 +14 -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 +11 -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 +9 -0
- package/dist/src/components/molecules/Dropdown/index.d.ts +1 -0
- package/dist/src/components/molecules/EmptyState/EmptyState.d.ts +9 -0
- package/dist/src/components/molecules/EmptyState/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/FiltersMenu/FiltersMenu.d.ts +13 -0
- package/dist/src/components/molecules/FiltersMenu/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 +13 -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/MultiSelectDropdown/MultiSelectDropdown.d.ts +24 -0
- package/dist/src/components/molecules/MultiSelectDropdown/index.d.ts +1 -0
- package/dist/src/components/molecules/PillsContainer/PillsContainer.d.ts +9 -0
- package/dist/src/components/molecules/PillsContainer/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/SideModal/SideModal.d.ts +4 -0
- package/dist/src/components/molecules/SideModal/SideModal.types.d.ts +11 -0
- package/dist/src/components/molecules/SideModal/index.d.ts +1 -0
- package/dist/src/components/molecules/SingleSelectDropdown/SingleSelectDropdown.d.ts +25 -0
- package/dist/src/components/molecules/SingleSelectDropdown/index.d.ts +1 -0
- package/dist/src/components/molecules/Stepper/Stepper.d.ts +3 -0
- package/dist/src/components/molecules/Stepper/Stepper.styles.d.ts +15 -0
- package/dist/src/components/molecules/Stepper/index.d.ts +1 -0
- package/dist/src/components/molecules/Tabs/Tabs.d.ts +21 -0
- package/dist/src/components/molecules/Tabs/index.d.ts +1 -0
- package/dist/src/components/molecules/Tooltip/Tooltip.d.ts +20 -0
- package/dist/src/components/molecules/Tooltip/index.d.ts +1 -0
- package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +16 -0
- package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
- package/dist/src/components/molecules/index.d.ts +23 -0
- package/dist/src/components/organisms/index.d.ts +1 -0
- package/dist/src/constants/countries.d.ts +30 -0
- package/dist/src/contexts/index.d.ts +1 -0
- package/dist/src/contexts/themeContext.d.ts +3 -0
- package/dist/src/hooks/index.d.ts +2 -0
- package/dist/src/hooks/useFilterToggler.d.ts +5 -0
- package/dist/src/hooks/useTheme.d.ts +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/lab/Laboratory.d.ts +2 -0
- package/dist/src/lab/LaboratoryLayout.d.ts +5 -0
- package/dist/src/lab/index.lab.d.ts +1 -0
- package/dist/src/providers/ThemeProvider.d.ts +7 -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/cycles.d.ts +103 -0
- package/dist/src/types/display.d.ts +2 -0
- package/dist/src/types/fileInfo.d.ts +2 -0
- package/dist/src/types/filters.d.ts +22 -0
- package/dist/src/types/i18n.d.ts +1 -0
- package/dist/src/types/index.d.ts +10 -0
- package/dist/src/types/modal.d.ts +34 -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/stepper.d.ts +23 -0
- package/dist/src/types/styleValues.d.ts +4 -0
- package/dist/src/types/toast.d.ts +29 -0
- package/dist/src/utils/cycles.d.ts +2 -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 +13 -0
- package/dist/src/utils/renderContentOptions.d.ts +3 -0
- package/dist/src/utils/stepper.d.ts +2 -0
- package/dist/src/utils/strings.d.ts +2 -0
- package/dist/src/utils/toast.d.ts +15 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stepper.d.ts +23 -0
- package/dist/types/toast.d.ts +6 -3
- package/dist/utils/stepper.d.ts +2 -0
- package/dist/utils/toast.js +3 -3
- package/dist/vite-env.d.ts +1 -1
- package/dist/vite.config.d.ts +2 -0
- package/package.json +157 -157
- package/dist/components/atoms/Tooltip/Tooltip.d.ts +0 -4
- package/dist/components/atoms/Tooltip/Tooltip.js +0 -121
- package/dist/components/molecules/Stepper/Stepper.types.d.ts +0 -9
- /package/dist/components/{atoms → molecules}/Tooltip/index.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
# React + TypeScript + Vite
|
|
2
|
-
|
|
3
|
-
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
-
|
|
5
|
-
Currently, two official plugins are available:
|
|
6
|
-
|
|
7
|
-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
-
|
|
10
|
-
## Expanding the ESLint configuration
|
|
11
|
-
|
|
12
|
-
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
13
|
-
|
|
14
|
-
```js
|
|
15
|
-
export default tseslint.config({
|
|
16
|
-
extends: [
|
|
17
|
-
// Remove ...tseslint.configs.recommended and replace with this
|
|
18
|
-
...tseslint.configs.recommendedTypeChecked,
|
|
19
|
-
// Alternatively, use this for stricter rules
|
|
20
|
-
...tseslint.configs.strictTypeChecked,
|
|
21
|
-
// Optionally, add this for stylistic rules
|
|
22
|
-
...tseslint.configs.stylisticTypeChecked,
|
|
23
|
-
],
|
|
24
|
-
languageOptions: {
|
|
25
|
-
// other options...
|
|
26
|
-
parserOptions: {
|
|
27
|
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
28
|
-
tsconfigRootDir: import.meta.dirname,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
})
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
35
|
-
|
|
36
|
-
```js
|
|
37
|
-
// eslint.config.js
|
|
38
|
-
import reactX from 'eslint-plugin-react-x'
|
|
39
|
-
import reactDom from 'eslint-plugin-react-dom'
|
|
40
|
-
|
|
41
|
-
export default tseslint.config({
|
|
42
|
-
plugins: {
|
|
43
|
-
// Add the react-x and react-dom plugins
|
|
44
|
-
'react-x': reactX,
|
|
45
|
-
'react-dom': reactDom,
|
|
46
|
-
},
|
|
47
|
-
rules: {
|
|
48
|
-
// other rules...
|
|
49
|
-
// Enable its recommended typescript rules
|
|
50
|
-
...reactX.configs['recommended-typescript'].rules,
|
|
51
|
-
...reactDom.configs.recommended.rules,
|
|
52
|
-
},
|
|
53
|
-
})
|
|
54
|
-
```
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## Expanding the ESLint configuration
|
|
11
|
+
|
|
12
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
export default tseslint.config({
|
|
16
|
+
extends: [
|
|
17
|
+
// Remove ...tseslint.configs.recommended and replace with this
|
|
18
|
+
...tseslint.configs.recommendedTypeChecked,
|
|
19
|
+
// Alternatively, use this for stricter rules
|
|
20
|
+
...tseslint.configs.strictTypeChecked,
|
|
21
|
+
// Optionally, add this for stylistic rules
|
|
22
|
+
...tseslint.configs.stylisticTypeChecked,
|
|
23
|
+
],
|
|
24
|
+
languageOptions: {
|
|
25
|
+
// other options...
|
|
26
|
+
parserOptions: {
|
|
27
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
28
|
+
tsconfigRootDir: import.meta.dirname,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
})
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
// eslint.config.js
|
|
38
|
+
import reactX from 'eslint-plugin-react-x'
|
|
39
|
+
import reactDom from 'eslint-plugin-react-dom'
|
|
40
|
+
|
|
41
|
+
export default tseslint.config({
|
|
42
|
+
plugins: {
|
|
43
|
+
// Add the react-x and react-dom plugins
|
|
44
|
+
'react-x': reactX,
|
|
45
|
+
'react-dom': reactDom,
|
|
46
|
+
},
|
|
47
|
+
rules: {
|
|
48
|
+
// other rules...
|
|
49
|
+
// Enable its recommended typescript rules
|
|
50
|
+
...reactX.configs['recommended-typescript'].rules,
|
|
51
|
+
...reactDom.configs.recommended.rules,
|
|
52
|
+
},
|
|
53
|
+
})
|
|
54
|
+
```
|
package/dist/_virtual/index2.js
CHANGED
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var t = r();
|
|
4
|
-
const s = /* @__PURE__ */ o(t);
|
|
1
|
+
import { __require as r } from "../node_modules/tiny-case/index.js";
|
|
2
|
+
var a = r();
|
|
5
3
|
export {
|
|
6
|
-
|
|
4
|
+
a as t
|
|
7
5
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -3,10 +3,11 @@ type ColorVariant = "blue" | "aqua" | "red" | "gray";
|
|
|
3
3
|
type Variant = "rounded" | "square";
|
|
4
4
|
interface CheckboxProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
5
5
|
active?: boolean | string | number;
|
|
6
|
-
color?: ColorVariant;
|
|
7
6
|
variant?: Variant;
|
|
8
|
-
|
|
7
|
+
color?: ColorVariant;
|
|
9
8
|
size?: number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
10
11
|
}
|
|
11
12
|
declare const Checkbox: React.FC<CheckboxProps>;
|
|
12
13
|
export default Checkbox;
|
|
@@ -1,42 +1,55 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { j as a } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { FontAwesomeIcon as h } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
3
|
+
import { faCheck as m } from "../../../node_modules/@fortawesome/pro-solid-svg-icons/index.js";
|
|
4
|
+
const $ = ({
|
|
5
|
+
active: d = !1,
|
|
6
|
+
variant: b = "rounded",
|
|
4
7
|
color: n = "blue",
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
size: e = 20,
|
|
9
|
+
disabled: o = !1,
|
|
10
|
+
onClick: t,
|
|
11
|
+
className: i = "",
|
|
12
|
+
...l
|
|
9
13
|
}) => {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
width: `${e}px`,
|
|
20
|
-
height: `${e}px`,
|
|
21
|
-
minWidth: `${e}px`,
|
|
22
|
-
minHeight: `${e}px`
|
|
23
|
-
});
|
|
24
|
-
return /* @__PURE__ */ d.jsx(
|
|
14
|
+
const r = !!d, s = (y) => {
|
|
15
|
+
o || t && t(y);
|
|
16
|
+
}, g = {
|
|
17
|
+
blue: r ? "bg-blue-500 border-blue-500" : "bg-white border-gray-300 hover:border-blue-400",
|
|
18
|
+
aqua: r ? "bg-aqua-500 border-aqua-500" : "bg-white border-gray-300 hover:border-aqua-400",
|
|
19
|
+
red: r ? "bg-red-500 border-red-500" : "bg-white border-gray-300 hover:border-red-400",
|
|
20
|
+
gray: r ? "bg-gray-500 border-gray-500" : "bg-white border-gray-300 hover:border-gray-400"
|
|
21
|
+
}, c = r ? "bg-gray-400 border-gray-400 opacity-60" : "bg-gray-100 border-gray-300 opacity-60", u = b === "rounded" ? "rounded-full" : "rounded-md";
|
|
22
|
+
return /* @__PURE__ */ a.jsx(
|
|
25
23
|
"div",
|
|
26
24
|
{
|
|
27
|
-
className: `
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
className: `
|
|
26
|
+
relative flex items-center justify-center border-[1.5px] transition-all duration-150
|
|
27
|
+
${u}
|
|
28
|
+
${o ? "cursor-not-allowed" : "cursor-pointer"}
|
|
29
|
+
${o ? c : g[n]}
|
|
30
|
+
${i}
|
|
31
|
+
`,
|
|
32
|
+
style: {
|
|
33
|
+
width: `${e}px`,
|
|
34
|
+
height: `${e}px`,
|
|
35
|
+
minWidth: `${e}px`,
|
|
36
|
+
minHeight: `${e}px`
|
|
37
|
+
},
|
|
38
|
+
onClick: s,
|
|
39
|
+
...l,
|
|
40
|
+
children: r && /* @__PURE__ */ a.jsx(
|
|
41
|
+
h,
|
|
32
42
|
{
|
|
33
|
-
|
|
34
|
-
|
|
43
|
+
icon: m,
|
|
44
|
+
className: "text-white",
|
|
45
|
+
style: {
|
|
46
|
+
fontSize: `${e * 0.6}px`
|
|
47
|
+
}
|
|
35
48
|
}
|
|
36
49
|
)
|
|
37
50
|
}
|
|
38
51
|
);
|
|
39
52
|
};
|
|
40
53
|
export {
|
|
41
|
-
|
|
54
|
+
$ as default
|
|
42
55
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ChipProps {
|
|
3
|
+
bgColor?: string;
|
|
4
|
+
textColor?: string;
|
|
5
|
+
label?: string | React.ReactNode;
|
|
6
|
+
labelClassName?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
size?: "sm" | "md";
|
|
9
|
+
showDot?: boolean;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
declare const Chip: React.FC<ChipProps>;
|
|
13
|
+
export default Chip;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { FontAwesomeIcon as o } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
3
|
+
import { faCircle as a } from "../../../node_modules/@fortawesome/pro-solid-svg-icons/index.js";
|
|
4
|
+
const f = ({
|
|
5
|
+
bgColor: p = "bg-green-100",
|
|
6
|
+
textColor: r = "text-green-700",
|
|
7
|
+
label: s = "Completed",
|
|
8
|
+
labelClassName: n = "",
|
|
9
|
+
className: i = "",
|
|
10
|
+
size: t = "sm",
|
|
11
|
+
showDot: x = !1,
|
|
12
|
+
style: m = {}
|
|
13
|
+
}) => /* @__PURE__ */ e.jsxs(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
className: `flex items-center justify-center rounded-[6px] ${t === "md" ? "py-8 px-12" : "py-4 px-8"} text-center text-nowrap h-fit w-fit ${x ? "gap-[6px]" : ""} ${p} ${r} ${i}`,
|
|
17
|
+
style: m,
|
|
18
|
+
children: [
|
|
19
|
+
x && /* @__PURE__ */ e.jsx(o, { icon: a, className: "text-[6px]" }),
|
|
20
|
+
/* @__PURE__ */ e.jsx(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
className: `font-semibold ${t === "md" ? "text-[16px] leading-[22px]" : "text-[12px] leading-[16px]"} ${n}`,
|
|
24
|
+
children: s
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
export {
|
|
31
|
+
f as default
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Chip } from './Chip';
|
|
@@ -1,35 +1,22 @@
|
|
|
1
1
|
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { resolveDisclaimerClasses as c, resolveIconColor as a } from "./InformationDisclaimer.styles.js";
|
|
2
|
+
import { FontAwesomeIcon as a } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
3
|
+
import { resolveSizeStyles as m, resolveIconColor as d, resolveIcon as x } from "./InformationDisclaimer.styles.js";
|
|
5
4
|
const j = ({
|
|
6
|
-
description:
|
|
7
|
-
title:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"div",
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
s
|
|
17
|
-
|
|
18
|
-
children:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
{
|
|
22
|
-
icon: t,
|
|
23
|
-
className: `min-h-20 h-20 ${l} ${a(s)}`
|
|
24
|
-
}
|
|
25
|
-
),
|
|
26
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
27
|
-
/* @__PURE__ */ e.jsx("h4", { className: "text-body-s font-500 text-black leading-none", children: i }),
|
|
28
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-gray-600 text-body-s leading-none", children: n })
|
|
29
|
-
] })
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
);
|
|
5
|
+
description: o,
|
|
6
|
+
title: r,
|
|
7
|
+
showIcon: t = !0,
|
|
8
|
+
type: l = "informative",
|
|
9
|
+
size: n = "normal"
|
|
10
|
+
}) => {
|
|
11
|
+
const s = m(n), i = x(l), c = d(l);
|
|
12
|
+
return /* @__PURE__ */ e.jsx("div", { className: `w-full rounded-xl bg-white border border-blue-100 ${s.containerStyles}`, children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-8", children: [
|
|
13
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-12", children: [
|
|
14
|
+
t && /* @__PURE__ */ e.jsx(a, { icon: i, className: `rounded-full ${s.iconStyles} ${c}` }),
|
|
15
|
+
/* @__PURE__ */ e.jsx("h5", { className: `font-semibold text-blue-900 self-center ${s.titleStyles}`, children: r })
|
|
16
|
+
] }),
|
|
17
|
+
o && /* @__PURE__ */ e.jsx("p", { className: `text-gray-500 leading-[16px] ${s.descriptionStyles}`, children: o })
|
|
18
|
+
] }) });
|
|
19
|
+
};
|
|
33
20
|
export {
|
|
34
21
|
j as default
|
|
35
22
|
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { InformationDisclaimerType } from './InformationDisclaimer.types';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
2
|
+
export declare const resolveSizeStyles: (size: "small" | "normal") => {
|
|
3
|
+
containerStyles: string;
|
|
4
|
+
titleStyles: string;
|
|
5
|
+
descriptionStyles: string;
|
|
6
|
+
iconStyles: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const resolveIconColor: (type: InformationDisclaimerType) => "bg-green-100 text-green-500" | "bg-yellow-100 text-yellow-500" | "bg-red-100 text-red-500" | "bg-blue-100 text-blue-500";
|
|
9
|
+
export declare const resolveIcon: (type: InformationDisclaimerType) => "info" | import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -1,23 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { faBell as t, faTriangleExclamation as r, faCircleInfo as s, faCircleCheck as n } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
|
|
2
|
+
const c = (e) => {
|
|
3
|
+
switch (e) {
|
|
4
|
+
case "small":
|
|
5
|
+
return {
|
|
6
|
+
containerStyles: "p-12",
|
|
7
|
+
titleStyles: "text-sm",
|
|
8
|
+
descriptionStyles: "text-xs",
|
|
9
|
+
iconStyles: "p-4 text-xs"
|
|
10
|
+
};
|
|
11
|
+
case "normal":
|
|
12
|
+
return {
|
|
13
|
+
containerStyles: "p-16",
|
|
14
|
+
titleStyles: "text-14",
|
|
15
|
+
descriptionStyles: "text-sm",
|
|
16
|
+
iconStyles: "p-6 text-md"
|
|
17
|
+
};
|
|
18
|
+
default:
|
|
19
|
+
return {
|
|
20
|
+
containerStyles: "p-16",
|
|
21
|
+
titleStyles: "text-14",
|
|
22
|
+
descriptionStyles: "text-sm",
|
|
23
|
+
iconStyles: "p-6 text-md"
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}, o = (e) => {
|
|
27
|
+
switch (e) {
|
|
28
|
+
case "success":
|
|
29
|
+
return "bg-green-100 text-green-500";
|
|
3
30
|
case "warning":
|
|
4
|
-
return "bg-yellow-
|
|
31
|
+
return "bg-yellow-100 text-yellow-500";
|
|
5
32
|
case "error":
|
|
6
|
-
return "bg-red-
|
|
33
|
+
return "bg-red-100 text-red-500";
|
|
34
|
+
case "informative":
|
|
35
|
+
return "bg-blue-100 text-blue-500";
|
|
7
36
|
default:
|
|
8
|
-
return "bg-blue-
|
|
37
|
+
return "bg-blue-100 text-blue-500";
|
|
9
38
|
}
|
|
10
|
-
},
|
|
11
|
-
switch (
|
|
39
|
+
}, i = (e) => {
|
|
40
|
+
switch (e) {
|
|
41
|
+
case "success":
|
|
42
|
+
return n;
|
|
12
43
|
case "warning":
|
|
13
|
-
return
|
|
44
|
+
return s;
|
|
14
45
|
case "error":
|
|
15
|
-
return
|
|
46
|
+
return r;
|
|
47
|
+
case "informative":
|
|
48
|
+
return t;
|
|
16
49
|
default:
|
|
17
|
-
return "
|
|
50
|
+
return "info";
|
|
18
51
|
}
|
|
19
52
|
};
|
|
20
53
|
export {
|
|
21
|
-
|
|
22
|
-
o as resolveIconColor
|
|
54
|
+
i as resolveIcon,
|
|
55
|
+
o as resolveIconColor,
|
|
56
|
+
c as resolveSizeStyles
|
|
23
57
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export type InformationDisclaimerType = "informative" | "warning" | "error";
|
|
1
|
+
export type InformationDisclaimerType = "success" | "informative" | "warning" | "error";
|
|
3
2
|
export type InformationDisclaimerProps = {
|
|
4
3
|
title: string;
|
|
5
4
|
description: string;
|
|
6
5
|
className?: string;
|
|
7
|
-
|
|
6
|
+
showIcon?: boolean;
|
|
8
7
|
type?: InformationDisclaimerType;
|
|
9
8
|
iconClassName?: string;
|
|
9
|
+
size?: "small" | "normal";
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export interface LoadingSpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
variant?: 'circle' | 'cube';
|
|
3
4
|
size?: number;
|
|
4
|
-
strokeWidth?: number;
|
|
5
5
|
color?: string;
|
|
6
6
|
}
|
|
7
7
|
declare const LoadingSpinner: React.FC<LoadingSpinnerProps>;
|
|
@@ -1,20 +1,64 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
const f = [
|
|
3
|
+
{ rotate: "0deg", delay: "0s" },
|
|
4
|
+
{ rotate: "90deg", delay: "0.3s" },
|
|
5
|
+
{ rotate: "270deg", delay: "0.9s" },
|
|
6
|
+
{ rotate: "180deg", delay: "0.6s" }
|
|
7
|
+
], x = ({
|
|
8
|
+
variant: d = "circle",
|
|
9
|
+
size: e = 16,
|
|
10
|
+
color: s = "#1DA696",
|
|
11
|
+
...h
|
|
12
|
+
}) => {
|
|
13
|
+
const { className: r = "", ...o } = h;
|
|
14
|
+
if (d === "cube") {
|
|
15
|
+
const n = e / Math.SQRT2;
|
|
16
|
+
return /* @__PURE__ */ t.jsx(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
...o,
|
|
20
|
+
className: `relative flex items-center justify-center overflow-hidden ${r}`,
|
|
21
|
+
style: { width: e, height: e },
|
|
22
|
+
children: /* @__PURE__ */ t.jsx(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
className: "relative rotate-45",
|
|
26
|
+
style: { width: n, height: n },
|
|
27
|
+
children: f.map((c, m) => /* @__PURE__ */ t.jsx(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
className: "float-left w-1/2 h-1/2 relative",
|
|
31
|
+
style: { transform: `scale(1.1) rotate(${c.rotate})` },
|
|
32
|
+
children: /* @__PURE__ */ t.jsx(
|
|
33
|
+
"span",
|
|
34
|
+
{
|
|
35
|
+
className: "absolute inset-0 origin-bottom-right animate-sk-fold-cube",
|
|
36
|
+
style: { backgroundColor: s, animationDelay: c.delay }
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
},
|
|
40
|
+
m
|
|
41
|
+
))
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
const l = Math.max(1, Math.round(e * 0.125)), i = (e - l) / 2, a = 2 * Math.PI * i;
|
|
48
|
+
return /* @__PURE__ */ t.jsx("div", { ...o, className: `relative flex items-center justify-center ${r}`, children: /* @__PURE__ */ t.jsx("svg", { height: e, width: e, className: "animate-spin", children: /* @__PURE__ */ t.jsx(
|
|
5
49
|
"circle",
|
|
6
50
|
{
|
|
7
|
-
stroke:
|
|
51
|
+
stroke: s,
|
|
8
52
|
fill: "transparent",
|
|
9
|
-
strokeWidth:
|
|
10
|
-
strokeDasharray:
|
|
11
|
-
strokeDashoffset:
|
|
12
|
-
r:
|
|
13
|
-
cx:
|
|
14
|
-
cy:
|
|
53
|
+
strokeWidth: l,
|
|
54
|
+
strokeDasharray: `${a} ${a}`,
|
|
55
|
+
strokeDashoffset: a / 4,
|
|
56
|
+
r: i,
|
|
57
|
+
cx: e / 2,
|
|
58
|
+
cy: e / 2
|
|
15
59
|
}
|
|
16
60
|
) }) });
|
|
17
61
|
};
|
|
18
62
|
export {
|
|
19
|
-
|
|
63
|
+
x as default
|
|
20
64
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { PasswordInputProps } from './PasswordInput.types';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
|
-
declare const PasswordInput: <T extends FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, }: PasswordInputProps<T>) => React.ReactElement;
|
|
4
|
+
declare const PasswordInput: <T extends FieldValues>({ label, control, name, placeholder, className, disabled, size, leftSide, }: PasswordInputProps<T>) => React.ReactElement;
|
|
5
5
|
export default PasswordInput;
|