@next-degree/pickle-shared-js 0.12.7 → 0.13.1
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/{company_service_sanity-2J1ZuUnu.d.cts → company_service_sanity-ByIKe90u.d.cts} +560 -560
- package/dist/{company_service_sanity-KaAGfnNV.d.ts → company_service_sanity-DbYwWmnS.d.ts} +560 -560
- package/dist/components/buttons/BackButton.cjs +5 -8
- package/dist/components/buttons/BackButton.cjs.map +1 -1
- package/dist/components/buttons/BackButton.d.cts +2 -2
- package/dist/components/buttons/BackButton.d.ts +2 -2
- package/dist/components/buttons/BackButton.js +5 -8
- package/dist/components/buttons/BackButton.js.map +1 -1
- package/dist/components/company/CompanyBenefits.cjs +1 -5
- package/dist/components/company/CompanyBenefits.cjs.map +1 -1
- package/dist/components/company/CompanyBenefits.d.cts +2 -2
- package/dist/components/company/CompanyBenefits.d.ts +2 -2
- package/dist/components/company/CompanyBenefits.js +1 -5
- package/dist/components/company/CompanyBenefits.js.map +1 -1
- package/dist/components/company/CompanyInformation.cjs +23 -44
- package/dist/components/company/CompanyInformation.cjs.map +1 -1
- package/dist/components/company/CompanyInformation.d.cts +2 -2
- package/dist/components/company/CompanyInformation.d.ts +2 -2
- package/dist/components/company/CompanyInformation.js +23 -44
- package/dist/components/company/CompanyInformation.js.map +1 -1
- package/dist/components/company/CompanyTake.cjs +12 -26
- package/dist/components/company/CompanyTake.cjs.map +1 -1
- package/dist/components/company/CompanyTake.d.cts +2 -2
- package/dist/components/company/CompanyTake.d.ts +2 -2
- package/dist/components/company/CompanyTake.js +12 -26
- package/dist/components/company/CompanyTake.js.map +1 -1
- package/dist/components/jobCard/JobLocation.cjs +23 -34
- package/dist/components/jobCard/JobLocation.cjs.map +1 -1
- package/dist/components/jobCard/JobLocation.d.cts +3 -3
- package/dist/components/jobCard/JobLocation.d.ts +3 -3
- package/dist/components/jobCard/JobLocation.js +23 -34
- package/dist/components/jobCard/JobLocation.js.map +1 -1
- package/dist/components/jobPost/JobDescription.cjs +164 -30
- package/dist/components/jobPost/JobDescription.cjs.map +1 -1
- package/dist/components/jobPost/JobDescription.d.cts +2 -2
- package/dist/components/jobPost/JobDescription.d.ts +2 -2
- package/dist/components/jobPost/JobDescription.js +164 -30
- package/dist/components/jobPost/JobDescription.js.map +1 -1
- package/dist/components/jobPost/JobHeader.cjs +110 -138
- package/dist/components/jobPost/JobHeader.cjs.map +1 -1
- package/dist/components/jobPost/JobHeader.d.cts +2 -2
- package/dist/components/jobPost/JobHeader.d.ts +2 -2
- package/dist/components/jobPost/JobHeader.js +110 -138
- package/dist/components/jobPost/JobHeader.js.map +1 -1
- package/dist/components/jobPost/JobPost.cjs +382 -318
- package/dist/components/jobPost/JobPost.cjs.map +1 -1
- package/dist/components/jobPost/JobPost.d.cts +3 -3
- package/dist/components/jobPost/JobPost.d.ts +3 -3
- package/dist/components/jobPost/JobPost.js +344 -280
- package/dist/components/jobPost/JobPost.js.map +1 -1
- package/dist/components/primitives/avatar.cjs +3 -4
- package/dist/components/primitives/avatar.cjs.map +1 -1
- package/dist/components/primitives/avatar.js +3 -4
- package/dist/components/primitives/avatar.js.map +1 -1
- package/dist/components/primitives/command.cjs +37 -50
- package/dist/components/primitives/command.cjs.map +1 -1
- package/dist/components/primitives/command.d.cts +5 -6
- package/dist/components/primitives/command.d.ts +5 -6
- package/dist/components/primitives/command.js +37 -50
- package/dist/components/primitives/command.js.map +1 -1
- package/dist/components/primitives/dialog.cjs +18 -27
- package/dist/components/primitives/dialog.cjs.map +1 -1
- package/dist/components/primitives/dialog.d.cts +2 -3
- package/dist/components/primitives/dialog.d.ts +2 -3
- package/dist/components/primitives/dialog.js +18 -27
- package/dist/components/primitives/dialog.js.map +1 -1
- package/dist/components/primitives/input-otp.cjs +8 -11
- package/dist/components/primitives/input-otp.cjs.map +1 -1
- package/dist/components/primitives/input-otp.d.cts +2 -2
- package/dist/components/primitives/input-otp.d.ts +2 -2
- package/dist/components/primitives/input-otp.js +8 -11
- package/dist/components/primitives/input-otp.js.map +1 -1
- package/dist/components/primitives/popover.cjs +2 -3
- package/dist/components/primitives/popover.cjs.map +1 -1
- package/dist/components/primitives/popover.js +2 -3
- package/dist/components/primitives/popover.js.map +1 -1
- package/dist/components/primitives/radio-group.cjs +12 -16
- package/dist/components/primitives/radio-group.cjs.map +1 -1
- package/dist/components/primitives/radio-group.js +12 -16
- package/dist/components/primitives/radio-group.js.map +1 -1
- package/dist/components/primitives/separator.cjs +1 -2
- package/dist/components/primitives/separator.cjs.map +1 -1
- package/dist/components/primitives/separator.js +1 -2
- package/dist/components/primitives/separator.js.map +1 -1
- package/dist/components/primitives/tooltip.cjs +1 -2
- package/dist/components/primitives/tooltip.cjs.map +1 -1
- package/dist/components/primitives/tooltip.js +1 -2
- package/dist/components/primitives/tooltip.js.map +1 -1
- package/dist/components/ui/Avatar.cjs +6 -11
- package/dist/components/ui/Avatar.cjs.map +1 -1
- package/dist/components/ui/Avatar.d.cts +3 -3
- package/dist/components/ui/Avatar.d.ts +3 -3
- package/dist/components/ui/Avatar.js +6 -11
- package/dist/components/ui/Avatar.js.map +1 -1
- package/dist/components/ui/Badge.cjs +12 -2
- package/dist/components/ui/Badge.cjs.map +1 -1
- package/dist/components/ui/Badge.d.cts +1 -2
- package/dist/components/ui/Badge.d.ts +1 -2
- package/dist/components/ui/Badge.js +2 -2
- package/dist/components/ui/Badge.js.map +1 -1
- package/dist/components/ui/Button.cjs +163 -8
- package/dist/components/ui/Button.cjs.map +1 -1
- package/dist/components/ui/Button.d.cts +4 -8
- package/dist/components/ui/Button.d.ts +4 -8
- package/dist/components/ui/Button.js +153 -8
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/Checkbox.cjs +18 -28
- package/dist/components/ui/Checkbox.cjs.map +1 -1
- package/dist/components/ui/Checkbox.js +18 -28
- package/dist/components/ui/Checkbox.js.map +1 -1
- package/dist/components/ui/Chip.cjs +12 -2
- package/dist/components/ui/Chip.cjs.map +1 -1
- package/dist/components/ui/Chip.d.cts +1 -2
- package/dist/components/ui/Chip.d.ts +1 -2
- package/dist/components/ui/Chip.js +2 -2
- package/dist/components/ui/Chip.js.map +1 -1
- package/dist/components/ui/Combobox.cjs +171 -233
- package/dist/components/ui/Combobox.cjs.map +1 -1
- package/dist/components/ui/Combobox.js +171 -233
- package/dist/components/ui/Combobox.js.map +1 -1
- package/dist/components/ui/Counter.cjs +56 -74
- package/dist/components/ui/Counter.cjs.map +1 -1
- package/dist/components/ui/Counter.js +56 -74
- package/dist/components/ui/Counter.js.map +1 -1
- package/dist/components/ui/DatePicker.cjs +44 -68
- package/dist/components/ui/DatePicker.cjs.map +1 -1
- package/dist/components/ui/DatePicker.js +44 -68
- package/dist/components/ui/DatePicker.js.map +1 -1
- package/dist/components/ui/DismissibleBanner.cjs +13 -16
- package/dist/components/ui/DismissibleBanner.cjs.map +1 -1
- package/dist/components/ui/DismissibleBanner.d.cts +2 -2
- package/dist/components/ui/DismissibleBanner.d.ts +2 -2
- package/dist/components/ui/DismissibleBanner.js +13 -16
- package/dist/components/ui/DismissibleBanner.js.map +1 -1
- package/dist/components/ui/ErrorMessage.cjs +1 -2
- package/dist/components/ui/ErrorMessage.cjs.map +1 -1
- package/dist/components/ui/ErrorMessage.d.cts +2 -2
- package/dist/components/ui/ErrorMessage.d.ts +2 -2
- package/dist/components/ui/ErrorMessage.js +1 -2
- package/dist/components/ui/ErrorMessage.js.map +1 -1
- package/dist/components/ui/Icon.cjs +1 -2
- package/dist/components/ui/Icon.cjs.map +1 -1
- package/dist/components/ui/Icon.js +1 -2
- package/dist/components/ui/Icon.js.map +1 -1
- package/dist/components/ui/Input.cjs +48 -68
- package/dist/components/ui/Input.cjs.map +1 -1
- package/dist/components/ui/Input.js +48 -68
- package/dist/components/ui/Input.js.map +1 -1
- package/dist/components/ui/InputOtp.cjs +56 -73
- package/dist/components/ui/InputOtp.cjs.map +1 -1
- package/dist/components/ui/InputOtp.js +56 -73
- package/dist/components/ui/InputOtp.js.map +1 -1
- package/dist/components/ui/Label.cjs +14 -24
- package/dist/components/ui/Label.cjs.map +1 -1
- package/dist/components/ui/Label.d.cts +2 -2
- package/dist/components/ui/Label.d.ts +2 -2
- package/dist/components/ui/Label.js +14 -24
- package/dist/components/ui/Label.js.map +1 -1
- package/dist/components/ui/LinkButton.cjs +5 -5
- package/dist/components/ui/LinkButton.cjs.map +1 -1
- package/dist/components/ui/LinkButton.d.cts +1 -2
- package/dist/components/ui/LinkButton.d.ts +1 -2
- package/dist/components/ui/LinkButton.js +5 -5
- package/dist/components/ui/LinkButton.js.map +1 -1
- package/dist/components/ui/ListItem.cjs +32 -48
- package/dist/components/ui/ListItem.cjs.map +1 -1
- package/dist/components/ui/ListItem.d.cts +2 -2
- package/dist/components/ui/ListItem.d.ts +2 -2
- package/dist/components/ui/ListItem.js +32 -48
- package/dist/components/ui/ListItem.js.map +1 -1
- package/dist/components/ui/Map/ClusterMarker.cjs +80 -0
- package/dist/components/ui/Map/ClusterMarker.cjs.map +1 -0
- package/dist/components/ui/Map/ClusterMarker.d.cts +6 -0
- package/dist/components/ui/Map/ClusterMarker.d.ts +6 -0
- package/dist/components/ui/Map/ClusterMarker.js +56 -0
- package/dist/components/ui/Map/ClusterMarker.js.map +1 -0
- package/dist/components/ui/Map/FocusCircle.cjs +86 -0
- package/dist/components/ui/Map/FocusCircle.cjs.map +1 -0
- package/dist/components/ui/Map/FocusCircle.d.cts +5 -0
- package/dist/components/ui/Map/FocusCircle.d.ts +5 -0
- package/dist/components/ui/Map/FocusCircle.js +62 -0
- package/dist/components/ui/Map/FocusCircle.js.map +1 -0
- package/dist/components/ui/Map/IndividualMarker.cjs +60 -0
- package/dist/components/ui/Map/IndividualMarker.cjs.map +1 -0
- package/dist/components/ui/Map/IndividualMarker.d.cts +6 -0
- package/dist/components/ui/Map/IndividualMarker.d.ts +6 -0
- package/dist/components/ui/Map/IndividualMarker.js +36 -0
- package/dist/components/ui/Map/IndividualMarker.js.map +1 -0
- package/dist/components/ui/Map/MapComponent.cjs +401 -0
- package/dist/components/ui/Map/MapComponent.cjs.map +1 -0
- package/dist/components/ui/Map/MapComponent.d.cts +6 -0
- package/dist/components/ui/Map/MapComponent.d.ts +6 -0
- package/dist/components/ui/Map/MapComponent.js +367 -0
- package/dist/components/ui/Map/MapComponent.js.map +1 -0
- package/dist/components/ui/Map/MapContent.cjs +279 -0
- package/dist/components/ui/Map/MapContent.cjs.map +1 -0
- package/dist/components/ui/Map/MapContent.d.cts +6 -0
- package/dist/components/ui/Map/MapContent.d.ts +6 -0
- package/dist/components/ui/Map/MapContent.js +255 -0
- package/dist/components/ui/Map/MapContent.js.map +1 -0
- package/dist/components/ui/Map/clustering.cjs +105 -0
- package/dist/components/ui/Map/clustering.cjs.map +1 -0
- package/dist/components/ui/Map/clustering.d.cts +17 -0
- package/dist/components/ui/Map/clustering.d.ts +17 -0
- package/dist/components/ui/Map/clustering.js +77 -0
- package/dist/components/ui/Map/clustering.js.map +1 -0
- package/dist/components/ui/Map/constants.cjs +65 -0
- package/dist/components/ui/Map/constants.cjs.map +1 -0
- package/dist/components/ui/Map/constants.d.cts +28 -0
- package/dist/components/ui/Map/constants.d.ts +28 -0
- package/dist/components/ui/Map/constants.js +34 -0
- package/dist/components/ui/Map/constants.js.map +1 -0
- package/dist/components/ui/Map/hooks.cjs +96 -0
- package/dist/components/ui/Map/hooks.cjs.map +1 -0
- package/dist/components/ui/Map/hooks.d.cts +17 -0
- package/dist/components/ui/Map/hooks.d.ts +17 -0
- package/dist/components/ui/Map/hooks.js +59 -0
- package/dist/components/ui/Map/hooks.js.map +1 -0
- package/dist/components/ui/Map/index.cjs +402 -0
- package/dist/components/ui/Map/index.cjs.map +1 -0
- package/dist/components/ui/Map/index.d.cts +3 -0
- package/dist/components/ui/Map/index.d.ts +3 -0
- package/dist/components/ui/Map/index.js +365 -0
- package/dist/components/ui/Map/index.js.map +1 -0
- package/dist/components/ui/Map/types.cjs +19 -0
- package/dist/components/ui/Map/types.cjs.map +1 -0
- package/dist/components/ui/Map/types.d.cts +82 -0
- package/dist/components/ui/Map/types.d.ts +82 -0
- package/dist/components/ui/Map/types.js +1 -0
- package/dist/components/ui/Map/types.js.map +1 -0
- package/dist/components/ui/Map/utils.cjs +80 -0
- package/dist/components/ui/Map/utils.cjs.map +1 -0
- package/dist/components/ui/Map/utils.d.cts +9 -0
- package/dist/components/ui/Map/utils.d.ts +9 -0
- package/dist/components/ui/Map/utils.js +49 -0
- package/dist/components/ui/Map/utils.js.map +1 -0
- package/dist/components/ui/PlacesQueryInput.cjs +71 -94
- package/dist/components/ui/PlacesQueryInput.cjs.map +1 -1
- package/dist/components/ui/PlacesQueryInput.d.cts +2 -2
- package/dist/components/ui/PlacesQueryInput.d.ts +2 -2
- package/dist/components/ui/PlacesQueryInput.js +71 -94
- package/dist/components/ui/PlacesQueryInput.js.map +1 -1
- package/dist/components/ui/Radio.cjs +49 -69
- package/dist/components/ui/Radio.cjs.map +1 -1
- package/dist/components/ui/Radio.js +49 -69
- package/dist/components/ui/Radio.js.map +1 -1
- package/dist/components/ui/ReadMore.cjs +163 -25
- package/dist/components/ui/ReadMore.cjs.map +1 -1
- package/dist/components/ui/ReadMore.d.cts +2 -2
- package/dist/components/ui/ReadMore.d.ts +2 -2
- package/dist/components/ui/ReadMore.js +163 -25
- package/dist/components/ui/ReadMore.js.map +1 -1
- package/dist/components/ui/Select.cjs +138 -172
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.js +132 -166
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/components/ui/StepTabs.cjs +24 -27
- package/dist/components/ui/StepTabs.cjs.map +1 -1
- package/dist/components/ui/StepTabs.d.cts +3 -3
- package/dist/components/ui/StepTabs.d.ts +3 -3
- package/dist/components/ui/StepTabs.js +24 -27
- package/dist/components/ui/StepTabs.js.map +1 -1
- package/dist/components/ui/Switch.cjs +13 -21
- package/dist/components/ui/Switch.cjs.map +1 -1
- package/dist/components/ui/Switch.js +13 -21
- package/dist/components/ui/Switch.js.map +1 -1
- package/dist/components/ui/buttonShadcn.cjs +1 -2
- package/dist/components/ui/buttonShadcn.cjs.map +1 -1
- package/dist/components/ui/buttonShadcn.d.cts +1 -1
- package/dist/components/ui/buttonShadcn.d.ts +1 -1
- package/dist/components/ui/buttonShadcn.js +1 -2
- package/dist/components/ui/buttonShadcn.js.map +1 -1
- package/dist/components/ui/calendar.cjs +5 -6
- package/dist/components/ui/calendar.cjs.map +1 -1
- package/dist/components/ui/calendar.d.cts +1 -2
- package/dist/components/ui/calendar.d.ts +1 -2
- package/dist/components/ui/calendar.js +5 -6
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/contexts/WindowHistoryProvider.cjs +1 -2
- package/dist/contexts/WindowHistoryProvider.cjs.map +1 -1
- package/dist/contexts/WindowHistoryProvider.d.cts +1 -2
- package/dist/contexts/WindowHistoryProvider.d.ts +1 -2
- package/dist/contexts/WindowHistoryProvider.js +1 -2
- package/dist/contexts/WindowHistoryProvider.js.map +1 -1
- package/dist/{displayText-DahwdHdi.d.ts → displayText-Ce_aqgGP.d.ts} +2 -2
- package/dist/{displayText-DW0qiJqh.d.cts → displayText-Cm8PqS6s.d.cts} +2 -2
- package/dist/hooks/useDisplayText.d.cts +3 -3
- package/dist/hooks/useDisplayText.d.ts +3 -3
- package/dist/hooks/useWindowHistory.cjs +0 -1
- package/dist/hooks/useWindowHistory.cjs.map +1 -1
- package/dist/hooks/useWindowHistory.d.cts +0 -1
- package/dist/hooks/useWindowHistory.d.ts +0 -1
- package/dist/hooks/useWindowHistory.js +0 -1
- package/dist/hooks/useWindowHistory.js.map +1 -1
- package/dist/index.cjs +1343 -1111
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1293 -1061
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_sanity-BKo9TBDT.d.ts → job_posting_service_sanity-1eG3Jh9_.d.ts} +496 -496
- package/dist/{job_posting_service_sanity-BNq-Am9N.d.cts → job_posting_service_sanity-DKYye6oH.d.cts} +496 -496
- package/dist/lib/locations.d.cts +3 -3
- package/dist/lib/locations.d.ts +3 -3
- package/dist/lib/mappings.d.cts +3 -3
- package/dist/lib/mappings.d.ts +3 -3
- package/dist/lib/salaryRange.d.cts +1 -1
- package/dist/lib/salaryRange.d.ts +1 -1
- package/dist/services/displayText.d.cts +3 -3
- package/dist/services/displayText.d.ts +3 -3
- package/dist/styles/globals.css +179 -6
- package/dist/styles/globals.css.map +1 -1
- package/dist/types/data/company_service_latest.d.cts +1 -1
- package/dist/types/data/company_service_latest.d.ts +1 -1
- package/dist/types/data/job_posting_service_latest.d.cts +1 -1
- package/dist/types/data/job_posting_service_latest.d.ts +1 -1
- package/dist/types/data/shared_pickle_output_latest.d.cts +1 -1
- package/dist/types/data/shared_pickle_output_latest.d.ts +1 -1
- package/dist/types/index.d.cts +6 -6
- package/dist/types/index.d.ts +6 -6
- package/dist/types/latest/company_service_latest.d.cts +1 -1
- package/dist/types/latest/company_service_latest.d.ts +1 -1
- package/dist/types/latest/custom/company_service_sanity.d.cts +3 -3
- package/dist/types/latest/custom/company_service_sanity.d.ts +3 -3
- package/dist/types/latest/custom/job_posting_service_sanity.d.cts +3 -3
- package/dist/types/latest/custom/job_posting_service_sanity.d.ts +3 -3
- package/dist/types/latest/job_posting_service_latest.d.cts +1 -1
- package/dist/types/latest/job_posting_service_latest.d.ts +1 -1
- package/dist/types/latest/shared_pickle_output_latest.d.cts +1 -1
- package/dist/types/latest/shared_pickle_output_latest.d.ts +1 -1
- package/package.json +5 -3
- package/dist/components/ui/MapComponent.cjs +0 -61
- package/dist/components/ui/MapComponent.cjs.map +0 -1
- package/dist/components/ui/MapComponent.d.cts +0 -15
- package/dist/components/ui/MapComponent.d.ts +0 -15
- package/dist/components/ui/MapComponent.js +0 -41
- package/dist/components/ui/MapComponent.js.map +0 -1
- package/dist/{company_service_latest-CITz7F53.d.cts → company_service_latest-BjyG4KCB.d.cts} +319 -319
- package/dist/{company_service_latest-CITz7F53.d.ts → company_service_latest-BjyG4KCB.d.ts} +319 -319
- package/dist/{company_service_latest-C7Moeufo.d.cts → company_service_latest-KJi2W9Ij.d.cts} +319 -319
- package/dist/{company_service_latest-C7Moeufo.d.ts → company_service_latest-KJi2W9Ij.d.ts} +319 -319
- package/dist/{job_posting_service_latest-DdgK8Nnz.d.cts → job_posting_service_latest-82DHqOGu.d.cts} +274 -274
- package/dist/{job_posting_service_latest-DdgK8Nnz.d.ts → job_posting_service_latest-82DHqOGu.d.ts} +274 -274
- package/dist/{job_posting_service_latest-C_TEBzCf.d.cts → job_posting_service_latest-D9I5NE7l.d.cts} +274 -274
- package/dist/{job_posting_service_latest-C_TEBzCf.d.ts → job_posting_service_latest-D9I5NE7l.d.ts} +274 -274
- package/dist/{shared_pickle_output_latest-CtvHTPeX.d.cts → shared_pickle_output_latest-YbRs_xtC.d.cts} +22 -22
- package/dist/{shared_pickle_output_latest-CtvHTPeX.d.ts → shared_pickle_output_latest-YbRs_xtC.d.ts} +22 -22
- package/dist/{shared_pickle_output_latest-CXBCG04N.d.cts → shared_pickle_output_latest-dO-t8iZx.d.cts} +22 -22
- package/dist/{shared_pickle_output_latest-CXBCG04N.d.ts → shared_pickle_output_latest-dO-t8iZx.d.ts} +22 -22
|
@@ -8,12 +8,12 @@ import { forwardRef as forwardRef7, useEffect, useRef, useState } from "react";
|
|
|
8
8
|
// src/components/primitives/command.tsx
|
|
9
9
|
import { Command as CommandPrimitive } from "cmdk";
|
|
10
10
|
import { Search } from "lucide-react";
|
|
11
|
-
import * as
|
|
11
|
+
import * as React3 from "react";
|
|
12
12
|
|
|
13
13
|
// src/components/primitives/dialog.tsx
|
|
14
14
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
15
15
|
import { X } from "lucide-react";
|
|
16
|
-
import * as
|
|
16
|
+
import * as React2 from "react";
|
|
17
17
|
|
|
18
18
|
// src/lib/utils.ts
|
|
19
19
|
import { clsx } from "clsx";
|
|
@@ -23,9 +23,8 @@ function cn(...inputs) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
// src/components/primitives/dialog.tsx
|
|
26
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
27
26
|
var DialogPortal = DialogPrimitive.Portal;
|
|
28
|
-
var DialogOverlay =
|
|
27
|
+
var DialogOverlay = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
|
29
28
|
DialogPrimitive.Overlay,
|
|
30
29
|
{
|
|
31
30
|
ref,
|
|
@@ -37,31 +36,23 @@ var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
37
36
|
}
|
|
38
37
|
));
|
|
39
38
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
40
|
-
var DialogContent =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
className
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400", children: [
|
|
54
|
-
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
55
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
56
|
-
] })
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
] }));
|
|
39
|
+
var DialogContent = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React2.createElement(DialogPortal, null, /* @__PURE__ */ React2.createElement(DialogOverlay, null), /* @__PURE__ */ React2.createElement(
|
|
40
|
+
DialogPrimitive.Content,
|
|
41
|
+
{
|
|
42
|
+
ref,
|
|
43
|
+
className: cn(
|
|
44
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] dark:border-neutral-800 dark:bg-neutral-950 sm:rounded-lg",
|
|
45
|
+
className
|
|
46
|
+
),
|
|
47
|
+
...props
|
|
48
|
+
},
|
|
49
|
+
children,
|
|
50
|
+
/* @__PURE__ */ React2.createElement(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400" }, /* @__PURE__ */ React2.createElement(X, { className: "h-4 w-4" }), /* @__PURE__ */ React2.createElement("span", { className: "sr-only" }, "Close"))
|
|
51
|
+
)));
|
|
61
52
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
62
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
53
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ React2.createElement("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
63
54
|
DialogHeader.displayName = "DialogHeader";
|
|
64
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
55
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ React2.createElement(
|
|
65
56
|
"div",
|
|
66
57
|
{
|
|
67
58
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -69,7 +60,7 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
69
60
|
}
|
|
70
61
|
);
|
|
71
62
|
DialogFooter.displayName = "DialogFooter";
|
|
72
|
-
var DialogTitle =
|
|
63
|
+
var DialogTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
|
73
64
|
DialogPrimitive.Title,
|
|
74
65
|
{
|
|
75
66
|
ref,
|
|
@@ -78,7 +69,7 @@ var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
78
69
|
}
|
|
79
70
|
));
|
|
80
71
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
81
|
-
var DialogDescription =
|
|
72
|
+
var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
|
82
73
|
DialogPrimitive.Description,
|
|
83
74
|
{
|
|
84
75
|
ref,
|
|
@@ -89,8 +80,7 @@ var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
89
80
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
90
81
|
|
|
91
82
|
// src/components/primitives/command.tsx
|
|
92
|
-
|
|
93
|
-
var Command = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
83
|
+
var Command = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
94
84
|
CommandPrimitive,
|
|
95
85
|
{
|
|
96
86
|
ref,
|
|
@@ -102,22 +92,19 @@ var Command = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
102
92
|
}
|
|
103
93
|
));
|
|
104
94
|
Command.displayName = CommandPrimitive.displayName;
|
|
105
|
-
var CommandInput =
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
className
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
)
|
|
118
|
-
] }));
|
|
95
|
+
var CommandInput = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement("div", { className: "m-1 flex items-center rounded-xl border px-3", "cmdk-input-wrapper": "" }, /* @__PURE__ */ React3.createElement(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), /* @__PURE__ */ React3.createElement(
|
|
96
|
+
CommandPrimitive.Input,
|
|
97
|
+
{
|
|
98
|
+
ref,
|
|
99
|
+
className: cn(
|
|
100
|
+
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50",
|
|
101
|
+
className
|
|
102
|
+
),
|
|
103
|
+
...props
|
|
104
|
+
}
|
|
105
|
+
)));
|
|
119
106
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
120
|
-
var CommandList =
|
|
107
|
+
var CommandList = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
121
108
|
CommandPrimitive.List,
|
|
122
109
|
{
|
|
123
110
|
ref,
|
|
@@ -126,9 +113,9 @@ var CommandList = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
126
113
|
}
|
|
127
114
|
));
|
|
128
115
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
129
|
-
var CommandEmpty =
|
|
116
|
+
var CommandEmpty = React3.forwardRef((props, ref) => /* @__PURE__ */ React3.createElement(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
130
117
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
131
|
-
var CommandGroup =
|
|
118
|
+
var CommandGroup = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
132
119
|
CommandPrimitive.Group,
|
|
133
120
|
{
|
|
134
121
|
ref,
|
|
@@ -140,7 +127,7 @@ var CommandGroup = React2.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
140
127
|
}
|
|
141
128
|
));
|
|
142
129
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
143
|
-
var CommandSeparator =
|
|
130
|
+
var CommandSeparator = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
144
131
|
CommandPrimitive.Separator,
|
|
145
132
|
{
|
|
146
133
|
ref,
|
|
@@ -149,7 +136,7 @@ var CommandSeparator = React2.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
149
136
|
}
|
|
150
137
|
));
|
|
151
138
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
152
|
-
var CommandItem =
|
|
139
|
+
var CommandItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
153
140
|
CommandPrimitive.Item,
|
|
154
141
|
{
|
|
155
142
|
ref,
|
|
@@ -162,7 +149,7 @@ var CommandItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
162
149
|
));
|
|
163
150
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
164
151
|
var CommandShortcut = ({ className, ...props }) => {
|
|
165
|
-
return /* @__PURE__ */
|
|
152
|
+
return /* @__PURE__ */ React3.createElement(
|
|
166
153
|
"span",
|
|
167
154
|
{
|
|
168
155
|
className: cn("ml-auto text-xs tracking-widest text-neutral-500", className),
|
|
@@ -174,11 +161,10 @@ CommandShortcut.displayName = "CommandShortcut";
|
|
|
174
161
|
|
|
175
162
|
// src/components/primitives/popover.tsx
|
|
176
163
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
177
|
-
import * as
|
|
178
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
164
|
+
import * as React4 from "react";
|
|
179
165
|
var Popover = PopoverPrimitive.Root;
|
|
180
166
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
181
|
-
var PopoverContent =
|
|
167
|
+
var PopoverContent = React4.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React4.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React4.createElement(
|
|
182
168
|
PopoverPrimitive.Content,
|
|
183
169
|
{
|
|
184
170
|
ref,
|
|
@@ -190,14 +176,13 @@ var PopoverContent = React3.forwardRef(({ className, align = "center", sideOffse
|
|
|
190
176
|
),
|
|
191
177
|
...props
|
|
192
178
|
}
|
|
193
|
-
)
|
|
179
|
+
)));
|
|
194
180
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
195
181
|
|
|
196
182
|
// src/components/primitives/separator.tsx
|
|
197
183
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
198
|
-
import * as
|
|
199
|
-
|
|
200
|
-
var Separator = React4.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx4(
|
|
184
|
+
import * as React5 from "react";
|
|
185
|
+
var Separator = React5.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
|
201
186
|
SeparatorPrimitive.Root,
|
|
202
187
|
{
|
|
203
188
|
ref,
|
|
@@ -215,7 +200,7 @@ Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
|
215
200
|
|
|
216
201
|
// src/components/ui/Badge.tsx
|
|
217
202
|
import { cva } from "cva";
|
|
218
|
-
import
|
|
203
|
+
import * as React6 from "react";
|
|
219
204
|
var badgeVariants = cva("rounded-full px-2 py-0.5 text-xs font-semibold", {
|
|
220
205
|
variants: {
|
|
221
206
|
variant: {
|
|
@@ -229,14 +214,13 @@ var badgeVariants = cva("rounded-full px-2 py-0.5 text-xs font-semibold", {
|
|
|
229
214
|
}
|
|
230
215
|
});
|
|
231
216
|
function Badge({ className, variant, ...props }) {
|
|
232
|
-
return /* @__PURE__ */
|
|
217
|
+
return /* @__PURE__ */ React6.createElement("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
233
218
|
}
|
|
234
219
|
|
|
235
220
|
// src/components/ui/ErrorMessage.tsx
|
|
236
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
237
221
|
function ErrorMessage({ message, className, ...props }) {
|
|
238
222
|
if (!message) return null;
|
|
239
|
-
return /* @__PURE__ */
|
|
223
|
+
return /* @__PURE__ */ React.createElement("p", { className: cn("px-1 text-xs text-red-600", className), ...props }, message);
|
|
240
224
|
}
|
|
241
225
|
var ErrorMessage_default = ErrorMessage;
|
|
242
226
|
|
|
@@ -245,12 +229,11 @@ import { InfoIcon } from "lucide-react";
|
|
|
245
229
|
|
|
246
230
|
// src/components/primitives/tooltip.tsx
|
|
247
231
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
248
|
-
import * as
|
|
249
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
232
|
+
import * as React7 from "react";
|
|
250
233
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
251
234
|
var Tooltip = TooltipPrimitive.Root;
|
|
252
235
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
253
|
-
var TooltipContent =
|
|
236
|
+
var TooltipContent = React7.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
254
237
|
TooltipPrimitive.Content,
|
|
255
238
|
{
|
|
256
239
|
ref,
|
|
@@ -265,29 +248,20 @@ var TooltipContent = React5.forwardRef(({ className, sideOffset = 4, ...props },
|
|
|
265
248
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
266
249
|
|
|
267
250
|
// src/components/ui/Label.tsx
|
|
268
|
-
import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
269
251
|
function Label({ text, required, description, className, ...props }) {
|
|
270
252
|
if (!text) return null;
|
|
271
|
-
return /* @__PURE__ */
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
]
|
|
284
|
-
}
|
|
285
|
-
),
|
|
286
|
-
!!description && /* @__PURE__ */ jsx8(TooltipProvider, { children: /* @__PURE__ */ jsxs3(Tooltip, { children: [
|
|
287
|
-
/* @__PURE__ */ jsx8(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx8(InfoIcon, { className: "h-4 w-4" }) }),
|
|
288
|
-
/* @__PURE__ */ jsx8(TooltipContent, { className: "max-w-48", children: description })
|
|
289
|
-
] }) })
|
|
290
|
-
] });
|
|
253
|
+
return /* @__PURE__ */ React.createElement("div", { className: "flex w-full flex-row gap-1" }, /* @__PURE__ */ React.createElement(
|
|
254
|
+
"label",
|
|
255
|
+
{
|
|
256
|
+
className: cn(
|
|
257
|
+
"text-xs text-grey-80 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
258
|
+
className
|
|
259
|
+
),
|
|
260
|
+
...props
|
|
261
|
+
},
|
|
262
|
+
text,
|
|
263
|
+
required && /* @__PURE__ */ React.createElement("span", { className: "text-red-600" }, "\xA0*")
|
|
264
|
+
), !!description && /* @__PURE__ */ React.createElement(TooltipProvider, null, /* @__PURE__ */ React.createElement(Tooltip, null, /* @__PURE__ */ React.createElement(TooltipTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(InfoIcon, { className: "h-4 w-4" })), /* @__PURE__ */ React.createElement(TooltipContent, { className: "max-w-48" }, description))));
|
|
291
265
|
}
|
|
292
266
|
var Label_default = Label;
|
|
293
267
|
|
|
@@ -301,8 +275,7 @@ import { Check, Minus } from "lucide-react";
|
|
|
301
275
|
import {
|
|
302
276
|
forwardRef as forwardRef6
|
|
303
277
|
} from "react";
|
|
304
|
-
|
|
305
|
-
var CheckboxToggle = forwardRef6(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
278
|
+
var CheckboxToggle = forwardRef6(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
306
279
|
CheckboxPrimitive.Root,
|
|
307
280
|
{
|
|
308
281
|
ref,
|
|
@@ -331,41 +304,32 @@ var CheckboxToggle = forwardRef6(({ className, ...props }, ref) => /* @__PURE__
|
|
|
331
304
|
props.disabled && "bg-grey-20 data-[state=checked]:bg-grey-20 data-[state=checked]:text-foreground",
|
|
332
305
|
className
|
|
333
306
|
),
|
|
334
|
-
...props
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
/* @__PURE__ */ jsx9(Minus, { className: "hidden h-4 w-4 group-data-[state=indeterminate]:block" })
|
|
338
|
-
] })
|
|
339
|
-
}
|
|
307
|
+
...props
|
|
308
|
+
},
|
|
309
|
+
/* @__PURE__ */ React.createElement(CheckboxPrimitive.Indicator, { className: "flex items-center justify-center text-current" }, /* @__PURE__ */ React.createElement(Check, { className: "hidden h-4 w-4 group-data-[state=checked]:block" }), /* @__PURE__ */ React.createElement(Minus, { className: "hidden h-4 w-4 group-data-[state=indeterminate]:block" }))
|
|
340
310
|
));
|
|
341
311
|
CheckboxToggle.displayName = CheckboxPrimitive.Root.displayName;
|
|
342
312
|
var Checkbox = forwardRef6(
|
|
343
313
|
({ error, classNames, children, ...props }, ref) => {
|
|
344
314
|
const id = props.id ?? `${props.name ?? props.value?.toString()}-checkbox`;
|
|
345
|
-
return /* @__PURE__ */
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
/* @__PURE__ */ jsx9(ErrorMessage_default, { message: error, className: "mt-1" })
|
|
359
|
-
]
|
|
360
|
-
}
|
|
361
|
-
)
|
|
362
|
-
] });
|
|
315
|
+
return /* @__PURE__ */ React.createElement("div", { className: cn("flex space-x-2", classNames?.wrapper) }, /* @__PURE__ */ React.createElement(CheckboxToggle, { id, ref, ...props }), /* @__PURE__ */ React.createElement(
|
|
316
|
+
"label",
|
|
317
|
+
{
|
|
318
|
+
htmlFor: id,
|
|
319
|
+
className: cn(
|
|
320
|
+
"text-sm",
|
|
321
|
+
props.disabled && "pointer-events-none text-grey-40",
|
|
322
|
+
classNames?.label
|
|
323
|
+
)
|
|
324
|
+
},
|
|
325
|
+
children,
|
|
326
|
+
/* @__PURE__ */ React.createElement(ErrorMessage_default, { message: error, className: "mt-1" })
|
|
327
|
+
));
|
|
363
328
|
}
|
|
364
329
|
);
|
|
365
330
|
Checkbox.displayName = "Checkbox";
|
|
366
331
|
|
|
367
332
|
// src/components/ui/ListItem.tsx
|
|
368
|
-
import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
369
333
|
function ListItem({
|
|
370
334
|
icon,
|
|
371
335
|
hasCheckbox,
|
|
@@ -379,12 +343,12 @@ function ListItem({
|
|
|
379
343
|
const getIconIfValid = (icon2) => {
|
|
380
344
|
if (icon2 in icons) {
|
|
381
345
|
const IconComponent = icons[icon2];
|
|
382
|
-
return /* @__PURE__ */
|
|
346
|
+
return /* @__PURE__ */ React.createElement(IconComponent, { size: 14 });
|
|
383
347
|
}
|
|
384
348
|
return null;
|
|
385
349
|
};
|
|
386
350
|
const optionIcon = icon ? getIconIfValid(icon) : void 0;
|
|
387
|
-
return /* @__PURE__ */
|
|
351
|
+
return /* @__PURE__ */ React.createElement(
|
|
388
352
|
"li",
|
|
389
353
|
{
|
|
390
354
|
className: cn(
|
|
@@ -392,29 +356,23 @@ function ListItem({
|
|
|
392
356
|
className
|
|
393
357
|
),
|
|
394
358
|
...props,
|
|
395
|
-
"data-state": isSelected ? "checked" : "unchecked"
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
size: 16
|
|
408
|
-
}
|
|
409
|
-
)
|
|
410
|
-
]
|
|
411
|
-
}
|
|
359
|
+
"data-state": isSelected ? "checked" : "unchecked"
|
|
360
|
+
},
|
|
361
|
+
optionIcon && /* @__PURE__ */ React.createElement("span", { className: "mr-2" }, optionIcon),
|
|
362
|
+
hasCheckbox && /* @__PURE__ */ React.createElement(Checkbox, { id: value, checked: isSelected, onClick: (e) => e.preventDefault() }),
|
|
363
|
+
/* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("p", null, title), /* @__PURE__ */ React.createElement("p", { className: "text-xs text-grey-80" }, description)),
|
|
364
|
+
/* @__PURE__ */ React.createElement(
|
|
365
|
+
CheckIcon,
|
|
366
|
+
{
|
|
367
|
+
className: "absolute inset-y-0 right-0 my-auto hidden w-6 text-green-100 group-data-[state=checked]:block",
|
|
368
|
+
size: 16
|
|
369
|
+
}
|
|
370
|
+
)
|
|
412
371
|
);
|
|
413
372
|
}
|
|
414
373
|
var ListItem_default = ListItem;
|
|
415
374
|
|
|
416
375
|
// src/components/ui/Combobox.tsx
|
|
417
|
-
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
418
376
|
var Combobox = forwardRef7((props, ref) => {
|
|
419
377
|
const {
|
|
420
378
|
id,
|
|
@@ -485,111 +443,91 @@ var Combobox = forwardRef7((props, ref) => {
|
|
|
485
443
|
const defaultLabel = !isEmpty ? selected.map((s) => s.title).join(", ") : placeholder;
|
|
486
444
|
return isDefault ? defaultLabel : label;
|
|
487
445
|
};
|
|
488
|
-
return /* @__PURE__ */
|
|
489
|
-
|
|
490
|
-
|
|
446
|
+
return /* @__PURE__ */ React.createElement("div", { className: cn("flex flex-col gap-1", className) }, isDefault && /* @__PURE__ */ React.createElement(
|
|
447
|
+
Label_default,
|
|
448
|
+
{
|
|
449
|
+
text: label,
|
|
450
|
+
htmlFor: name,
|
|
451
|
+
required,
|
|
452
|
+
description,
|
|
453
|
+
className: classNames?.label
|
|
454
|
+
}
|
|
455
|
+
), /* @__PURE__ */ React.createElement("div", { className: "relative flex" }, /* @__PURE__ */ React.createElement(Popover, { open, onOpenChange: setOpen }, /* @__PURE__ */ React.createElement(
|
|
456
|
+
PopoverTrigger,
|
|
457
|
+
{
|
|
458
|
+
asChild: true,
|
|
459
|
+
disabled: options.length === 0,
|
|
460
|
+
"data-testid": `${id ?? name}-combobox-trigger`
|
|
461
|
+
},
|
|
462
|
+
/* @__PURE__ */ React.createElement(
|
|
463
|
+
"div",
|
|
491
464
|
{
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
498
|
-
),
|
|
499
|
-
/* @__PURE__ */ jsxs6("div", { className: "relative flex", children: [
|
|
500
|
-
/* @__PURE__ */ jsxs6(Popover, { open, onOpenChange: setOpen, children: [
|
|
501
|
-
/* @__PURE__ */ jsx11(
|
|
502
|
-
PopoverTrigger,
|
|
503
|
-
{
|
|
504
|
-
asChild: true,
|
|
505
|
-
disabled: options.length === 0,
|
|
506
|
-
"data-testid": `${id ?? name}-combobox-trigger`,
|
|
507
|
-
children: /* @__PURE__ */ jsxs6(
|
|
508
|
-
"div",
|
|
509
|
-
{
|
|
510
|
-
ref,
|
|
511
|
-
className: cn(
|
|
512
|
-
triggerVariants({ variant, size }),
|
|
513
|
-
isDefault && !isEmpty && "pr-10",
|
|
514
|
-
classNames?.trigger
|
|
515
|
-
),
|
|
516
|
-
"aria-expanded": open,
|
|
517
|
-
children: [
|
|
518
|
-
isDefault && IconComponent && /* @__PURE__ */ jsx11(IconComponent, { className: "h-4 w-4 shrink-0" }),
|
|
519
|
-
isChip && !isEmpty && /* @__PURE__ */ jsx11(Badge, { variant: "purple", children: selected.length }),
|
|
520
|
-
/* @__PURE__ */ jsx11(
|
|
521
|
-
"span",
|
|
522
|
-
{
|
|
523
|
-
className: cn(
|
|
524
|
-
"w-full truncate leading-normal",
|
|
525
|
-
isDefault && isEmpty && "text-grey-40"
|
|
526
|
-
),
|
|
527
|
-
children: handleDisplayValue()
|
|
528
|
-
}
|
|
529
|
-
),
|
|
530
|
-
showChevron && /* @__PURE__ */ jsx11(
|
|
531
|
-
ChevronDownIcon,
|
|
532
|
-
{
|
|
533
|
-
className: "shrink-0 transform group-data-[state=open]:rotate-180",
|
|
534
|
-
size: "16"
|
|
535
|
-
}
|
|
536
|
-
)
|
|
537
|
-
]
|
|
538
|
-
}
|
|
539
|
-
)
|
|
540
|
-
}
|
|
465
|
+
ref,
|
|
466
|
+
className: cn(
|
|
467
|
+
triggerVariants({ variant, size }),
|
|
468
|
+
isDefault && !isEmpty && "pr-10",
|
|
469
|
+
classNames?.trigger
|
|
541
470
|
),
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
classNames?.content
|
|
549
|
-
),
|
|
550
|
-
collisionPadding: 8,
|
|
551
|
-
sideOffset: 4,
|
|
552
|
-
align: "start",
|
|
553
|
-
children: /* @__PURE__ */ jsxs6(Command, { children: [
|
|
554
|
-
!hideSearchBox && /* @__PURE__ */ jsx11(CommandInput, { placeholder: "Search..." }),
|
|
555
|
-
/* @__PURE__ */ jsxs6(CommandList, { children: [
|
|
556
|
-
/* @__PURE__ */ jsx11(CommandEmpty, { children: "No results" }),
|
|
557
|
-
/* @__PURE__ */ jsx11(CommandGroup, { children: options.map(({ id: id2, ...option }) => /* @__PURE__ */ jsx11(
|
|
558
|
-
CommandItem,
|
|
559
|
-
{
|
|
560
|
-
value: option.title,
|
|
561
|
-
onSelect: () => handleSelect(option.value),
|
|
562
|
-
children: /* @__PURE__ */ jsx11(
|
|
563
|
-
ListItem_default,
|
|
564
|
-
{
|
|
565
|
-
className: cn(classNames?.items, "truncate py-1"),
|
|
566
|
-
isSelected: selected.some((s) => s.value === option.value),
|
|
567
|
-
hasCheckbox: multiselect,
|
|
568
|
-
...option
|
|
569
|
-
}
|
|
570
|
-
)
|
|
571
|
-
},
|
|
572
|
-
id2
|
|
573
|
-
)) })
|
|
574
|
-
] }),
|
|
575
|
-
!!footer && /* @__PURE__ */ jsx11(Separator, {}),
|
|
576
|
-
footer && footer({ close })
|
|
577
|
-
] })
|
|
578
|
-
}
|
|
579
|
-
)
|
|
580
|
-
] }),
|
|
581
|
-
isDefault && !isEmpty && /* @__PURE__ */ jsx11(
|
|
582
|
-
"button",
|
|
471
|
+
"aria-expanded": open
|
|
472
|
+
},
|
|
473
|
+
isDefault && IconComponent && /* @__PURE__ */ React.createElement(IconComponent, { className: "h-4 w-4 shrink-0" }),
|
|
474
|
+
isChip && !isEmpty && /* @__PURE__ */ React.createElement(Badge, { variant: "purple" }, selected.length),
|
|
475
|
+
/* @__PURE__ */ React.createElement(
|
|
476
|
+
"span",
|
|
583
477
|
{
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
478
|
+
className: cn(
|
|
479
|
+
"w-full truncate leading-normal",
|
|
480
|
+
isDefault && isEmpty && "text-grey-40"
|
|
481
|
+
)
|
|
482
|
+
},
|
|
483
|
+
handleDisplayValue()
|
|
484
|
+
),
|
|
485
|
+
showChevron && /* @__PURE__ */ React.createElement(
|
|
486
|
+
ChevronDownIcon,
|
|
487
|
+
{
|
|
488
|
+
className: "shrink-0 transform group-data-[state=open]:rotate-180",
|
|
489
|
+
size: "16"
|
|
588
490
|
}
|
|
589
491
|
)
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
492
|
+
)
|
|
493
|
+
), /* @__PURE__ */ React.createElement(
|
|
494
|
+
PopoverContent,
|
|
495
|
+
{
|
|
496
|
+
className: cn(
|
|
497
|
+
"flex w-full max-w-xs flex-col overflow-hidden p-0",
|
|
498
|
+
"max-h-[--radix-popover-content-available-height]",
|
|
499
|
+
classNames?.content
|
|
500
|
+
),
|
|
501
|
+
collisionPadding: 8,
|
|
502
|
+
sideOffset: 4,
|
|
503
|
+
align: "start"
|
|
504
|
+
},
|
|
505
|
+
/* @__PURE__ */ React.createElement(Command, null, !hideSearchBox && /* @__PURE__ */ React.createElement(CommandInput, { placeholder: "Search..." }), /* @__PURE__ */ React.createElement(CommandList, null, /* @__PURE__ */ React.createElement(CommandEmpty, null, "No results"), /* @__PURE__ */ React.createElement(CommandGroup, null, options.map(({ id: id2, ...option }) => /* @__PURE__ */ React.createElement(
|
|
506
|
+
CommandItem,
|
|
507
|
+
{
|
|
508
|
+
key: id2,
|
|
509
|
+
value: option.title,
|
|
510
|
+
onSelect: () => handleSelect(option.value)
|
|
511
|
+
},
|
|
512
|
+
/* @__PURE__ */ React.createElement(
|
|
513
|
+
ListItem_default,
|
|
514
|
+
{
|
|
515
|
+
className: cn(classNames?.items, "truncate py-1"),
|
|
516
|
+
isSelected: selected.some((s) => s.value === option.value),
|
|
517
|
+
hasCheckbox: multiselect,
|
|
518
|
+
...option
|
|
519
|
+
}
|
|
520
|
+
)
|
|
521
|
+
)))), !!footer && /* @__PURE__ */ React.createElement(Separator, null), footer && footer({ close }))
|
|
522
|
+
)), isDefault && !isEmpty && /* @__PURE__ */ React.createElement(
|
|
523
|
+
"button",
|
|
524
|
+
{
|
|
525
|
+
type: "button",
|
|
526
|
+
className: "absolute inset-y-0 right-1 my-auto flex h-8 w-8 cursor-pointer items-center justify-center rounded-full hover:bg-pickle-20",
|
|
527
|
+
onClick: handleClear
|
|
528
|
+
},
|
|
529
|
+
/* @__PURE__ */ React.createElement(CircleX, { className: "h-4 w-4 text-green-100" })
|
|
530
|
+
)), /* @__PURE__ */ React.createElement(ErrorMessage_default, { message: error }));
|
|
593
531
|
});
|
|
594
532
|
Combobox.displayName = "Combobox";
|
|
595
533
|
var triggerVariants = cva2(
|