lawgic-dev-kit 0.21.4 → 0.22.2
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/components/atoms/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/atoms/Checkbox/Checkbox.js +43 -30
- package/dist/components/atoms/SelectInput/SelectInput.d.ts +1 -1
- package/dist/components/atoms/SelectInput/SelectInput.js +131 -143
- package/dist/components/atoms/SelectInput/SelectInput.types.d.ts +4 -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/Toast/Toast.d.ts +2 -3
- package/dist/components/atoms/Toast/Toast.js +46 -53
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +2 -0
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +102 -87
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +20 -26
- package/dist/components/atoms/UploadContainer/UploadContainer.js +4 -4
- package/dist/components/atoms/index.d.ts +1 -1
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +8 -8
- 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 +23 -0
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +190 -0
- package/dist/components/molecules/MultiSelectDropdown/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/index.d.ts +3 -0
- package/dist/index.js +71 -65
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +80 -73
- 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/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/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 +3 -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 +11 -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 +4 -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 +2 -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 +42 -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 +23 -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/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 +22 -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 +6 -3
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as l } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { useController as w } from "react-hook-form";
|
|
3
3
|
import { useTheme as v } from "../../../hooks/useTheme.js";
|
|
4
4
|
import "react";
|
|
@@ -6,59 +6,59 @@ const S = ({
|
|
|
6
6
|
label: c,
|
|
7
7
|
control: x,
|
|
8
8
|
name: e,
|
|
9
|
-
placeholder:
|
|
10
|
-
className:
|
|
9
|
+
placeholder: p,
|
|
10
|
+
className: d = "",
|
|
11
11
|
disabled: t = !1,
|
|
12
|
-
leftSide:
|
|
12
|
+
leftSide: a,
|
|
13
13
|
rightSide: n,
|
|
14
|
-
translateKey:
|
|
15
|
-
size:
|
|
16
|
-
...
|
|
14
|
+
translateKey: i = "",
|
|
15
|
+
size: g = "base",
|
|
16
|
+
...b
|
|
17
17
|
}) => {
|
|
18
18
|
const {
|
|
19
|
-
field: { value: u = "", onChange:
|
|
19
|
+
field: { value: u = "", onChange: m, ref: f, onBlur: h },
|
|
20
20
|
fieldState: { error: r }
|
|
21
|
-
} = w({ name: e, control: x }), { t:
|
|
21
|
+
} = w({ name: e, control: x }), { t: s } = v(), o = {
|
|
22
22
|
sm: {
|
|
23
|
-
container: "
|
|
24
|
-
text: "text-
|
|
25
|
-
label: "text-
|
|
26
|
-
error: "text-
|
|
27
|
-
gap: "gap-
|
|
23
|
+
container: "px-16 py-8",
|
|
24
|
+
text: "text-sm",
|
|
25
|
+
label: "text-sm",
|
|
26
|
+
error: "text-sm",
|
|
27
|
+
gap: "gap-8"
|
|
28
28
|
},
|
|
29
29
|
base: {
|
|
30
30
|
container: "p-16",
|
|
31
31
|
text: "text-body-m",
|
|
32
|
-
label: "text-
|
|
33
|
-
error: "text-
|
|
32
|
+
label: "text-14",
|
|
33
|
+
error: "text-sm",
|
|
34
34
|
gap: "gap-8"
|
|
35
35
|
}
|
|
36
|
-
}[
|
|
37
|
-
return /* @__PURE__ */
|
|
36
|
+
}[g], y = s(e), $ = s(i);
|
|
37
|
+
return /* @__PURE__ */ l.jsxs(
|
|
38
38
|
"label",
|
|
39
39
|
{
|
|
40
|
-
className: `flex flex-col group select-none ${
|
|
40
|
+
className: `flex flex-col group select-none ${o.gap} ${t && "cursor-not-allowed"} ${d}`,
|
|
41
41
|
htmlFor: e,
|
|
42
42
|
children: [
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ l.jsx(
|
|
44
44
|
"h6",
|
|
45
45
|
{
|
|
46
|
-
className: `text-gray-600 font-600 group ${r && "text-red-500!"} ${
|
|
46
|
+
className: `text-gray-600 font-600 group ${r && "text-red-500!"} ${o.label} ${t && "text-gray-300"}`,
|
|
47
47
|
children: c
|
|
48
48
|
}
|
|
49
49
|
),
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ l.jsxs(
|
|
51
51
|
"label",
|
|
52
52
|
{
|
|
53
53
|
htmlFor: e,
|
|
54
54
|
className: `
|
|
55
|
-
flex items-center justify-between gap-8 ${
|
|
55
|
+
flex items-center justify-between gap-8 ${o.container}
|
|
56
56
|
|
|
57
57
|
${r && "border-red-500!"}
|
|
58
58
|
|
|
59
59
|
!bg-blue-50
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
rounded-full border
|
|
62
62
|
|
|
63
63
|
${u && !t ? "border-blue-200" : "border-blue-100"}
|
|
64
64
|
${!t && "group-hover:border-blue-300"}
|
|
@@ -69,27 +69,27 @@ const S = ({
|
|
|
69
69
|
group-disabled:bg-gray-500
|
|
70
70
|
`,
|
|
71
71
|
children: [
|
|
72
|
-
|
|
73
|
-
/* @__PURE__ */
|
|
72
|
+
a && a,
|
|
73
|
+
/* @__PURE__ */ l.jsx(
|
|
74
74
|
"input",
|
|
75
75
|
{
|
|
76
76
|
id: e,
|
|
77
77
|
name: e,
|
|
78
78
|
disabled: t,
|
|
79
|
-
placeholder:
|
|
79
|
+
placeholder: p,
|
|
80
80
|
value: u,
|
|
81
|
-
onChange: (j) =>
|
|
82
|
-
onBlur:
|
|
83
|
-
ref:
|
|
84
|
-
className: `group bg-transparent w-full h-full font-600 placeholder:font-600 ${
|
|
85
|
-
...
|
|
81
|
+
onChange: (j) => m(j.target.value),
|
|
82
|
+
onBlur: h,
|
|
83
|
+
ref: f,
|
|
84
|
+
className: `group bg-transparent w-full h-full font-600 placeholder:font-600 ${o.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,
|
|
85
|
+
...b
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
88
|
n && n
|
|
89
89
|
]
|
|
90
90
|
}
|
|
91
91
|
),
|
|
92
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ l.jsx("h4", { className: `font-500 text-red-500 leading-none ${o.error}`, children: (r == null ? void 0 : r.message) && s(r.message, { x: $ || y }) })
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ToastType } from '../../../types';
|
|
2
|
-
type ToastContent = string | React.ReactNode;
|
|
1
|
+
import { ToastContent, ToastType } from '../../../types';
|
|
3
2
|
interface ToastProps {
|
|
4
3
|
id?: string;
|
|
5
4
|
content: ToastContent;
|
|
@@ -13,7 +12,7 @@ interface ToastManagerProps {
|
|
|
13
12
|
toasts: Array<{
|
|
14
13
|
id: string;
|
|
15
14
|
content: ToastContent;
|
|
16
|
-
type: "success" | "error" | "warning" | "
|
|
15
|
+
type: "success" | "error" | "warning" | "notification" | "loading";
|
|
17
16
|
duration?: number;
|
|
18
17
|
}>;
|
|
19
18
|
removeToast: (id: string) => void;
|
|
@@ -1,48 +1,50 @@
|
|
|
1
1
|
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { faXmark as g, faCircleInfo as s, faBell as b, faTriangleExclamation as y, faCircleCheck as h } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
|
|
3
3
|
import { FontAwesomeIcon as x } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
4
4
|
import { useState as j, useEffect as f } from "react";
|
|
5
|
-
import { AnimatePresence as
|
|
6
|
-
import { motion as
|
|
7
|
-
const
|
|
8
|
-
id:
|
|
9
|
-
content:
|
|
10
|
-
type: u = "
|
|
11
|
-
duration:
|
|
12
|
-
onClose:
|
|
5
|
+
import { AnimatePresence as k } from "../../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
6
|
+
import { motion as w } from "../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
7
|
+
const N = 500, B = ({
|
|
8
|
+
id: p,
|
|
9
|
+
content: r,
|
|
10
|
+
type: u = "notification",
|
|
11
|
+
duration: o = 0,
|
|
12
|
+
onClose: l
|
|
13
13
|
}) => {
|
|
14
14
|
const [n, m] = j(!0);
|
|
15
|
-
let t
|
|
15
|
+
let t, a = s, i;
|
|
16
16
|
switch (u) {
|
|
17
17
|
case "success":
|
|
18
|
-
|
|
18
|
+
i = "text-green-500", t = "bg-green-100", a = h;
|
|
19
19
|
break;
|
|
20
20
|
case "error":
|
|
21
|
-
|
|
21
|
+
i = "text-red-500", t = "bg-red-100", a = y;
|
|
22
22
|
break;
|
|
23
23
|
case "warning":
|
|
24
|
-
|
|
24
|
+
i = "text-yellow-500", t = "bg-yellow-100", a = s;
|
|
25
25
|
break;
|
|
26
26
|
case "loading":
|
|
27
|
-
|
|
27
|
+
i = "text-gray-500", t = "bg-gray-100", a = s;
|
|
28
|
+
break;
|
|
29
|
+
case "notification":
|
|
30
|
+
i = "text-blue-500", t = "bg-blue-100", a = b;
|
|
28
31
|
break;
|
|
29
|
-
case "info":
|
|
30
32
|
default:
|
|
31
|
-
|
|
33
|
+
i = "text-blue-500", t = "bg-blue-100", a = s;
|
|
32
34
|
}
|
|
33
35
|
f(() => {
|
|
34
|
-
if (
|
|
35
|
-
const
|
|
36
|
+
if (o === 0) return;
|
|
37
|
+
const c = setTimeout(() => {
|
|
36
38
|
m(!1);
|
|
37
|
-
},
|
|
38
|
-
return () => clearTimeout(
|
|
39
|
-
}, [
|
|
39
|
+
}, o);
|
|
40
|
+
return () => clearTimeout(c);
|
|
41
|
+
}, [o]), f(() => {
|
|
40
42
|
if (!n) {
|
|
41
|
-
const
|
|
42
|
-
return () => clearTimeout(
|
|
43
|
+
const c = setTimeout(l, N);
|
|
44
|
+
return () => clearTimeout(c);
|
|
43
45
|
}
|
|
44
|
-
}, [n,
|
|
45
|
-
const
|
|
46
|
+
}, [n, l]);
|
|
47
|
+
const d = {
|
|
46
48
|
initial: {
|
|
47
49
|
opacity: 0,
|
|
48
50
|
y: 50,
|
|
@@ -69,45 +71,36 @@ const k = 500, D = ({
|
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
};
|
|
72
|
-
return /* @__PURE__ */ e.jsx(
|
|
73
|
-
|
|
74
|
+
return /* @__PURE__ */ e.jsx(k, { onExitComplete: l, children: n && /* @__PURE__ */ e.jsxs(
|
|
75
|
+
w.div,
|
|
74
76
|
{
|
|
75
|
-
id:
|
|
76
|
-
className:
|
|
77
|
+
id: p,
|
|
78
|
+
className: "toast w-[320px] rounded-xl border-[1.5px] p-[18px] shadow-md bg-white font-jakarta-sans",
|
|
77
79
|
initial: "initial",
|
|
78
80
|
animate: "animate",
|
|
79
81
|
exit: "exit",
|
|
80
|
-
variants:
|
|
82
|
+
variants: d,
|
|
81
83
|
layout: !0,
|
|
82
|
-
children:
|
|
83
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-6", children: [
|
|
84
|
-
/* @__PURE__ */ e.jsx(
|
|
85
|
-
x,
|
|
86
|
-
{
|
|
87
|
-
icon: t,
|
|
88
|
-
className: `w-20 h-20 min-h-20 min-w-20 ${a}`
|
|
89
|
-
}
|
|
90
|
-
),
|
|
91
|
-
/* @__PURE__ */ e.jsx("span", { className: "text-gray-800 font-medium text-base", children: b })
|
|
92
|
-
] }),
|
|
84
|
+
children: [
|
|
93
85
|
/* @__PURE__ */ e.jsx(
|
|
94
|
-
|
|
86
|
+
x,
|
|
95
87
|
{
|
|
88
|
+
icon: g,
|
|
96
89
|
onClick: () => m(!1),
|
|
97
|
-
className: "
|
|
98
|
-
children: /* @__PURE__ */ e.jsx(
|
|
99
|
-
x,
|
|
100
|
-
{
|
|
101
|
-
icon: p,
|
|
102
|
-
className: "w-20 h-20 min-h-20 min-w-20"
|
|
103
|
-
}
|
|
104
|
-
)
|
|
90
|
+
className: "float-right text-lg text-[#9CA1B6] cursor-pointer"
|
|
105
91
|
}
|
|
106
|
-
)
|
|
107
|
-
|
|
92
|
+
),
|
|
93
|
+
/* @__PURE__ */ e.jsxs("div", { className: "space-y-16", children: [
|
|
94
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-12", children: [
|
|
95
|
+
/* @__PURE__ */ e.jsx(x, { icon: a, className: `text-[20px] p-6 rounded-full self-start ${i} ${t}` }),
|
|
96
|
+
/* @__PURE__ */ e.jsx("h5", { className: "text-lg font-bold text-blue-900 self-center", children: r.title })
|
|
97
|
+
] }),
|
|
98
|
+
r.description && /* @__PURE__ */ e.jsx("span", { className: "text-sm text-gray-500 leading-[16px]", children: r.description })
|
|
99
|
+
] })
|
|
100
|
+
]
|
|
108
101
|
}
|
|
109
102
|
) });
|
|
110
103
|
};
|
|
111
104
|
export {
|
|
112
|
-
|
|
105
|
+
B as default
|
|
113
106
|
};
|
|
@@ -16,6 +16,8 @@ interface UncontrolledSelectorProps {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
innerClassName?: string;
|
|
18
18
|
dropdownStyle?: React.CSSProperties;
|
|
19
|
+
showChevron?: boolean;
|
|
20
|
+
size?: 'sm' | 'base';
|
|
19
21
|
}
|
|
20
22
|
declare const UncontrolledSelector: React.FC<UncontrolledSelectorProps>;
|
|
21
23
|
export default UncontrolledSelector;
|
|
@@ -1,28 +1,49 @@
|
|
|
1
1
|
import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import M, { useState as
|
|
3
|
-
import { useFloating as
|
|
4
|
-
import
|
|
5
|
-
import { autoUpdate as
|
|
6
|
-
import { offset as
|
|
7
|
-
const
|
|
2
|
+
import M, { useState as N, useRef as $, useMemo as g } from "react";
|
|
3
|
+
import { useFloating as Y, useClick as q, useDismiss as G, useInteractions as J, useTransitionStyles as K } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
|
|
4
|
+
import Q from "fuse.js";
|
|
5
|
+
import { autoUpdate as X } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
6
|
+
import { offset as Z, flip as ee, shift as te, size as re, arrow as se } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
7
|
+
const me = ({
|
|
8
8
|
options: r,
|
|
9
|
-
onChange:
|
|
9
|
+
onChange: b,
|
|
10
10
|
value: s,
|
|
11
|
-
disabled:
|
|
12
|
-
error:
|
|
13
|
-
label:
|
|
11
|
+
disabled: u,
|
|
12
|
+
error: i,
|
|
13
|
+
label: y = "",
|
|
14
14
|
placeholder: L = "",
|
|
15
|
-
allowSearch:
|
|
16
|
-
className:
|
|
17
|
-
innerClassName:
|
|
18
|
-
dropdownStyle:
|
|
15
|
+
allowSearch: j = !1,
|
|
16
|
+
className: S = "",
|
|
17
|
+
innerClassName: C = "",
|
|
18
|
+
dropdownStyle: O = {},
|
|
19
|
+
showChevron: z = !0,
|
|
20
|
+
size: R = "base"
|
|
19
21
|
}) => {
|
|
20
|
-
const [
|
|
22
|
+
const [l, m] = N(!1), [a, p] = N(""), h = $(null), T = $(null), x = r.find((e) => e.value === s), n = {
|
|
23
|
+
sm: {
|
|
24
|
+
container: "px-16 py-8",
|
|
25
|
+
text: "text-sm",
|
|
26
|
+
label: "text-sm",
|
|
27
|
+
error: "text-sm",
|
|
28
|
+
gap: "gap-8",
|
|
29
|
+
icon: "w-12 h-12",
|
|
30
|
+
option: "text-sm"
|
|
31
|
+
},
|
|
32
|
+
base: {
|
|
33
|
+
container: "p-16",
|
|
34
|
+
text: "text-body-m",
|
|
35
|
+
label: "text-14",
|
|
36
|
+
error: "text-sm",
|
|
37
|
+
gap: "gap-8",
|
|
38
|
+
icon: "w-16 h-16",
|
|
39
|
+
option: "text-body-m"
|
|
40
|
+
}
|
|
41
|
+
}[R], v = g(() => r.map((e) => ({
|
|
21
42
|
...e,
|
|
22
43
|
// Extract text from React nodes if needed
|
|
23
|
-
searchableLabel: typeof e.label == "string" ? e.label : M.isValidElement(e.label) ?
|
|
44
|
+
searchableLabel: typeof e.label == "string" ? e.label : M.isValidElement(e.label) ? d(e.label) : String(e.label),
|
|
24
45
|
searchableValue: String(e.value)
|
|
25
|
-
})), [r]),
|
|
46
|
+
})), [r]), w = g(() => {
|
|
26
47
|
const e = {
|
|
27
48
|
keys: [
|
|
28
49
|
{ name: "searchableLabel", weight: 2 },
|
|
@@ -40,103 +61,97 @@ const ie = ({
|
|
|
40
61
|
shouldSort: !0,
|
|
41
62
|
findAllMatches: !0
|
|
42
63
|
};
|
|
43
|
-
return new
|
|
44
|
-
}, [
|
|
45
|
-
open:
|
|
46
|
-
onOpenChange:
|
|
64
|
+
return new Q(v, e);
|
|
65
|
+
}, [v]), { x: F, y: P, strategy: A, refs: c, context: f } = Y({
|
|
66
|
+
open: l,
|
|
67
|
+
onOpenChange: m,
|
|
47
68
|
middleware: [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
apply({ availableHeight: e, elements:
|
|
53
|
-
Object.assign(
|
|
69
|
+
Z(8),
|
|
70
|
+
ee(),
|
|
71
|
+
te({ padding: 8 }),
|
|
72
|
+
re({
|
|
73
|
+
apply({ availableHeight: e, elements: o }) {
|
|
74
|
+
Object.assign(o.floating.style, {
|
|
54
75
|
maxHeight: `${Math.min(e - 10, 300)}px`
|
|
55
76
|
});
|
|
56
77
|
},
|
|
57
78
|
padding: 8
|
|
58
79
|
}),
|
|
59
|
-
|
|
80
|
+
se({ element: T })
|
|
60
81
|
],
|
|
61
82
|
placement: "bottom-start",
|
|
62
|
-
whileElementsMounted:
|
|
63
|
-
}),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
]), { isMounted:
|
|
83
|
+
whileElementsMounted: X
|
|
84
|
+
}), E = q(f), W = G(f), { getReferenceProps: B, getFloatingProps: V } = J([
|
|
85
|
+
E,
|
|
86
|
+
W
|
|
87
|
+
]), { isMounted: D, styles: I } = K(f, {
|
|
67
88
|
duration: { open: 200, close: 150 },
|
|
68
89
|
initial: { opacity: 0, transform: "translateY(-4px)" }
|
|
69
|
-
}),
|
|
70
|
-
...
|
|
71
|
-
score:
|
|
72
|
-
matches:
|
|
73
|
-
})) : r, [
|
|
74
|
-
|
|
75
|
-
},
|
|
90
|
+
}), k = g(() => a.trim() ? w.search(a).map((o) => ({
|
|
91
|
+
...o.item,
|
|
92
|
+
score: o.score,
|
|
93
|
+
matches: o.matches
|
|
94
|
+
})) : r, [a, w, r]), U = (e) => {
|
|
95
|
+
b(e.value), m(!1), p("");
|
|
96
|
+
}, _ = B({
|
|
76
97
|
onClick: () => {
|
|
77
|
-
|
|
98
|
+
u || (m(!l), !l && h.current && j && setTimeout(() => {
|
|
78
99
|
var e;
|
|
79
100
|
return (e = h.current) == null ? void 0 : e.focus();
|
|
80
101
|
}, 100));
|
|
81
102
|
}
|
|
82
103
|
});
|
|
83
|
-
return /* @__PURE__ */ t.jsxs("div", { className: `
|
|
84
|
-
|
|
104
|
+
return /* @__PURE__ */ t.jsxs("div", { className: `relative flex flex-col ${n.gap} ${S}`, children: [
|
|
105
|
+
y && /* @__PURE__ */ t.jsx(
|
|
85
106
|
"h6",
|
|
86
107
|
{
|
|
87
|
-
className: `text-gray-600 font-600 group ${
|
|
88
|
-
children:
|
|
108
|
+
className: `text-gray-600 font-600 group ${i ? "!text-red-500" : ""} ${n.label} ${u ? "text-gray-300" : ""}`,
|
|
109
|
+
children: y
|
|
89
110
|
}
|
|
90
111
|
),
|
|
91
112
|
/* @__PURE__ */ t.jsxs(
|
|
92
113
|
"div",
|
|
93
114
|
{
|
|
94
|
-
ref:
|
|
95
|
-
className: `${
|
|
96
|
-
border transition-all duration-200
|
|
97
|
-
${
|
|
98
|
-
|
|
115
|
+
ref: c.setReference,
|
|
116
|
+
className: `${C} flex items-center justify-between bg-light rounded-full
|
|
117
|
+
${n.container} cursor-pointer border transition-all duration-200
|
|
118
|
+
${u ? "opacity-60 cursor-not-allowed" : "hover:border-blue-400"}
|
|
119
|
+
${i ? "border-red-500 hover:border-red-600" : ""}
|
|
120
|
+
${l ? "border-blue-400" : "border-blue-100"}`,
|
|
121
|
+
..._,
|
|
99
122
|
children: [
|
|
100
|
-
|
|
101
|
-
/* @__PURE__ */ t.jsx(
|
|
123
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex items-center w-full overflow-hidden", children: /* @__PURE__ */ t.jsx("span", { className: `flex-grow font-600 truncate ${n.text} ${x ? "" : "text-gray-400"}`, children: x ? x.label : L }) }),
|
|
124
|
+
z && /* @__PURE__ */ t.jsx(
|
|
102
125
|
"svg",
|
|
103
126
|
{
|
|
104
|
-
className:
|
|
127
|
+
className: `${n.icon} transition-transform ${l ? "transform rotate-180" : ""}`,
|
|
105
128
|
fill: "none",
|
|
106
129
|
stroke: "currentColor",
|
|
107
130
|
viewBox: "0 0 24 24",
|
|
108
|
-
children: /* @__PURE__ */ t.jsx(
|
|
109
|
-
"path",
|
|
110
|
-
{
|
|
111
|
-
strokeLinecap: "round",
|
|
112
|
-
strokeLinejoin: "round",
|
|
113
|
-
strokeWidth: "2",
|
|
114
|
-
d: "M19 9l-7 7-7-7"
|
|
115
|
-
}
|
|
116
|
-
)
|
|
131
|
+
children: /* @__PURE__ */ t.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M19 9l-7 7-7-7" })
|
|
117
132
|
}
|
|
118
133
|
)
|
|
119
134
|
]
|
|
120
135
|
}
|
|
121
136
|
),
|
|
122
|
-
|
|
123
|
-
|
|
137
|
+
i && /* @__PURE__ */ t.jsx("p", { className: `font-500 text-red-500 leading-none ${n.error}`, children: i }),
|
|
138
|
+
D && /* @__PURE__ */ t.jsxs(
|
|
124
139
|
"div",
|
|
125
140
|
{
|
|
126
|
-
ref:
|
|
141
|
+
ref: c.setFloating,
|
|
127
142
|
style: {
|
|
128
|
-
position:
|
|
129
|
-
top:
|
|
130
|
-
left:
|
|
131
|
-
...
|
|
132
|
-
width:
|
|
143
|
+
position: A,
|
|
144
|
+
top: P ?? 0,
|
|
145
|
+
left: F ?? 0,
|
|
146
|
+
...I,
|
|
147
|
+
width: c.reference.current instanceof Element ? c.reference.current.clientWidth : void 0,
|
|
133
148
|
zIndex: 50,
|
|
134
|
-
...
|
|
149
|
+
...O
|
|
135
150
|
},
|
|
136
151
|
className: "bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",
|
|
137
|
-
...
|
|
152
|
+
...V(),
|
|
138
153
|
children: [
|
|
139
|
-
|
|
154
|
+
j && /* @__PURE__ */ t.jsx("div", { className: "sticky top-0 bg-white p-8 border-b border-gray-100 z-20", children: /* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
|
|
140
155
|
/* @__PURE__ */ t.jsx("div", { className: "absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none", children: /* @__PURE__ */ t.jsx("svg", { className: "h-16 w-16 text-gray-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ t.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
|
|
141
156
|
/* @__PURE__ */ t.jsx(
|
|
142
157
|
"input",
|
|
@@ -145,38 +160,38 @@ const ie = ({
|
|
|
145
160
|
type: "text",
|
|
146
161
|
className: "w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",
|
|
147
162
|
placeholder: "Search options...",
|
|
148
|
-
value:
|
|
149
|
-
onChange: (e) =>
|
|
163
|
+
value: a,
|
|
164
|
+
onChange: (e) => p(e.target.value),
|
|
150
165
|
onClick: (e) => e.stopPropagation(),
|
|
151
166
|
autoFocus: !0
|
|
152
167
|
}
|
|
153
168
|
),
|
|
154
|
-
|
|
169
|
+
a && /* @__PURE__ */ t.jsx(
|
|
155
170
|
"button",
|
|
156
171
|
{
|
|
157
172
|
className: "absolute inset-y-0 right-0 pr-12 flex items-center",
|
|
158
173
|
onClick: (e) => {
|
|
159
|
-
e.stopPropagation(),
|
|
174
|
+
e.stopPropagation(), p("");
|
|
160
175
|
},
|
|
161
176
|
children: /* @__PURE__ */ t.jsx("svg", { className: "h-16 w-16 text-gray-400 hover:text-gray-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ t.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" }) })
|
|
162
177
|
}
|
|
163
178
|
)
|
|
164
179
|
] }) }),
|
|
165
|
-
/* @__PURE__ */ t.jsx("div", { className: "max-h-[250px] overflow-y-auto", children:
|
|
180
|
+
/* @__PURE__ */ t.jsx("div", { className: "max-h-[250px] overflow-y-auto", children: k.length > 0 ? /* @__PURE__ */ t.jsx("ul", { className: "py-4", children: k.map((e, o) => /* @__PURE__ */ t.jsx(
|
|
166
181
|
"li",
|
|
167
182
|
{
|
|
168
|
-
className: `flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${s === e.value ? "bg-blue-100/30 text-blue-500 font-medium" : ""}`,
|
|
169
|
-
onClick: (
|
|
170
|
-
|
|
183
|
+
className: `flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n.option} ${s === e.value ? "bg-blue-100/30 text-blue-500 font-medium text" : ""}`,
|
|
184
|
+
onClick: (H) => {
|
|
185
|
+
H.stopPropagation(), U(e);
|
|
171
186
|
},
|
|
172
187
|
children: /* @__PURE__ */ t.jsx("span", { children: (e == null ? void 0 : e.expandedLabel) || e.label })
|
|
173
188
|
},
|
|
174
|
-
`${e.value}-${
|
|
189
|
+
`${e.value}-${o}`
|
|
175
190
|
)) }) : /* @__PURE__ */ t.jsxs("div", { className: "px-16 py-16 text-center text-gray-500", children: [
|
|
176
191
|
/* @__PURE__ */ t.jsx("svg", { className: "mx-auto h-24 w-24 text-gray-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ t.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) }),
|
|
177
192
|
/* @__PURE__ */ t.jsxs("p", { className: "mt-8 text-body-s", children: [
|
|
178
193
|
'No matches found for "',
|
|
179
|
-
|
|
194
|
+
a,
|
|
180
195
|
'"'
|
|
181
196
|
] })
|
|
182
197
|
] }) })
|
|
@@ -184,16 +199,16 @@ const ie = ({
|
|
|
184
199
|
}
|
|
185
200
|
)
|
|
186
201
|
] });
|
|
187
|
-
},
|
|
202
|
+
}, d = (r) => {
|
|
188
203
|
if (typeof r == "string") return r;
|
|
189
204
|
if (typeof r == "number" || typeof r == "boolean") return String(r);
|
|
190
205
|
if (!r) return "";
|
|
191
206
|
if (M.isValidElement(r)) {
|
|
192
207
|
const s = r.props.children;
|
|
193
|
-
return s ? Array.isArray(s) ? s.map(
|
|
208
|
+
return s ? Array.isArray(s) ? s.map(d).join(" ") : d(s) : "";
|
|
194
209
|
}
|
|
195
|
-
return Array.isArray(r) ? r.map(
|
|
210
|
+
return Array.isArray(r) ? r.map(d).join(" ") : "";
|
|
196
211
|
};
|
|
197
212
|
export {
|
|
198
|
-
|
|
213
|
+
me as default
|
|
199
214
|
};
|