@next-degree/pickle-shared-js 0.12.7 → 0.13.0
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-BzaIPM-N.d.ts} +2297 -2297
- package/dist/{company_service_sanity-KaAGfnNV.d.ts → company_service_sanity-Zy8TiORb.d.cts} +2297 -2297
- 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 +2 -3
- package/dist/components/ui/Chip.d.ts +2 -3
- 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.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-DIxMXVLl.d.ts} +2 -2
- package/dist/{displayText-DW0qiJqh.d.cts → displayText-DRyxjHTZ.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_latest-C_TEBzCf.d.cts → job_posting_service_latest-7q4A7RpW.d.cts} +1171 -1171
- package/dist/{job_posting_service_latest-C_TEBzCf.d.ts → job_posting_service_latest-7q4A7RpW.d.ts} +1171 -1171
- package/dist/{job_posting_service_latest-DdgK8Nnz.d.cts → job_posting_service_latest-BrZndMS6.d.cts} +1171 -1171
- package/dist/{job_posting_service_latest-DdgK8Nnz.d.ts → job_posting_service_latest-BrZndMS6.d.ts} +1171 -1171
- package/dist/{job_posting_service_sanity-BNq-Am9N.d.cts → job_posting_service_sanity-B5NZ-7tI.d.cts} +2126 -2126
- package/dist/{job_posting_service_sanity-BKo9TBDT.d.ts → job_posting_service_sanity-LlRkfIpt.d.ts} +2126 -2126
- 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 +149 -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 +4 -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-BwbaqchJ.d.cts} +1220 -1220
- package/dist/{company_service_latest-CITz7F53.d.ts → company_service_latest-BwbaqchJ.d.ts} +1220 -1220
- package/dist/{company_service_latest-C7Moeufo.d.cts → company_service_latest-FHqG4LjA.d.cts} +1220 -1220
- package/dist/{company_service_latest-C7Moeufo.d.ts → company_service_latest-FHqG4LjA.d.ts} +1220 -1220
- package/dist/{shared_pickle_output_latest-CXBCG04N.d.cts → shared_pickle_output_latest-CKHNY1lx.d.cts} +42 -42
- package/dist/{shared_pickle_output_latest-CXBCG04N.d.ts → shared_pickle_output_latest-CKHNY1lx.d.ts} +42 -42
- package/dist/{shared_pickle_output_latest-CtvHTPeX.d.cts → shared_pickle_output_latest-DIPgxUul.d.cts} +42 -42
- package/dist/{shared_pickle_output_latest-CtvHTPeX.d.ts → shared_pickle_output_latest-DIPgxUul.d.ts} +42 -42
|
@@ -41,12 +41,12 @@ var import_react2 = require("react");
|
|
|
41
41
|
// src/components/primitives/command.tsx
|
|
42
42
|
var import_cmdk = require("cmdk");
|
|
43
43
|
var import_lucide_react2 = require("lucide-react");
|
|
44
|
-
var
|
|
44
|
+
var React3 = __toESM(require("react"), 1);
|
|
45
45
|
|
|
46
46
|
// src/components/primitives/dialog.tsx
|
|
47
47
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
48
48
|
var import_lucide_react = require("lucide-react");
|
|
49
|
-
var
|
|
49
|
+
var React2 = __toESM(require("react"), 1);
|
|
50
50
|
|
|
51
51
|
// src/lib/utils.ts
|
|
52
52
|
var import_clsx = require("clsx");
|
|
@@ -56,9 +56,8 @@ function cn(...inputs) {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// src/components/primitives/dialog.tsx
|
|
59
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
60
59
|
var DialogPortal = DialogPrimitive.Portal;
|
|
61
|
-
var DialogOverlay =
|
|
60
|
+
var DialogOverlay = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
|
62
61
|
DialogPrimitive.Overlay,
|
|
63
62
|
{
|
|
64
63
|
ref,
|
|
@@ -70,31 +69,23 @@ var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
70
69
|
}
|
|
71
70
|
));
|
|
72
71
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
73
|
-
var DialogContent =
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
className
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
/* @__PURE__ */ (0, import_jsx_runtime.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: [
|
|
87
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.X, { className: "h-4 w-4" }),
|
|
88
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Close" })
|
|
89
|
-
] })
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
)
|
|
93
|
-
] }));
|
|
72
|
+
var DialogContent = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React2.createElement(DialogPortal, null, /* @__PURE__ */ React2.createElement(DialogOverlay, null), /* @__PURE__ */ React2.createElement(
|
|
73
|
+
DialogPrimitive.Content,
|
|
74
|
+
{
|
|
75
|
+
ref,
|
|
76
|
+
className: cn(
|
|
77
|
+
"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",
|
|
78
|
+
className
|
|
79
|
+
),
|
|
80
|
+
...props
|
|
81
|
+
},
|
|
82
|
+
children,
|
|
83
|
+
/* @__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(import_lucide_react.X, { className: "h-4 w-4" }), /* @__PURE__ */ React2.createElement("span", { className: "sr-only" }, "Close"))
|
|
84
|
+
)));
|
|
94
85
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
95
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
86
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ React2.createElement("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
96
87
|
DialogHeader.displayName = "DialogHeader";
|
|
97
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
88
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ React2.createElement(
|
|
98
89
|
"div",
|
|
99
90
|
{
|
|
100
91
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -102,7 +93,7 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_r
|
|
|
102
93
|
}
|
|
103
94
|
);
|
|
104
95
|
DialogFooter.displayName = "DialogFooter";
|
|
105
|
-
var DialogTitle =
|
|
96
|
+
var DialogTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
|
106
97
|
DialogPrimitive.Title,
|
|
107
98
|
{
|
|
108
99
|
ref,
|
|
@@ -111,7 +102,7 @@ var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
111
102
|
}
|
|
112
103
|
));
|
|
113
104
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
114
|
-
var DialogDescription =
|
|
105
|
+
var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
|
115
106
|
DialogPrimitive.Description,
|
|
116
107
|
{
|
|
117
108
|
ref,
|
|
@@ -122,8 +113,7 @@ var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
122
113
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
123
114
|
|
|
124
115
|
// src/components/primitives/command.tsx
|
|
125
|
-
var
|
|
126
|
-
var Command = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
116
|
+
var Command = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
127
117
|
import_cmdk.Command,
|
|
128
118
|
{
|
|
129
119
|
ref,
|
|
@@ -135,22 +125,19 @@ var Command = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
135
125
|
}
|
|
136
126
|
));
|
|
137
127
|
Command.displayName = import_cmdk.Command.displayName;
|
|
138
|
-
var CommandInput =
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
className
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
)
|
|
151
|
-
] }));
|
|
128
|
+
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(import_lucide_react2.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), /* @__PURE__ */ React3.createElement(
|
|
129
|
+
import_cmdk.Command.Input,
|
|
130
|
+
{
|
|
131
|
+
ref,
|
|
132
|
+
className: cn(
|
|
133
|
+
"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",
|
|
134
|
+
className
|
|
135
|
+
),
|
|
136
|
+
...props
|
|
137
|
+
}
|
|
138
|
+
)));
|
|
152
139
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
153
|
-
var CommandList =
|
|
140
|
+
var CommandList = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
154
141
|
import_cmdk.Command.List,
|
|
155
142
|
{
|
|
156
143
|
ref,
|
|
@@ -159,9 +146,9 @@ var CommandList = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
159
146
|
}
|
|
160
147
|
));
|
|
161
148
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
162
|
-
var CommandEmpty =
|
|
149
|
+
var CommandEmpty = React3.forwardRef((props, ref) => /* @__PURE__ */ React3.createElement(import_cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
163
150
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
164
|
-
var CommandGroup =
|
|
151
|
+
var CommandGroup = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
165
152
|
import_cmdk.Command.Group,
|
|
166
153
|
{
|
|
167
154
|
ref,
|
|
@@ -173,7 +160,7 @@ var CommandGroup = React2.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
173
160
|
}
|
|
174
161
|
));
|
|
175
162
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
176
|
-
var CommandSeparator =
|
|
163
|
+
var CommandSeparator = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
177
164
|
import_cmdk.Command.Separator,
|
|
178
165
|
{
|
|
179
166
|
ref,
|
|
@@ -182,7 +169,7 @@ var CommandSeparator = React2.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
182
169
|
}
|
|
183
170
|
));
|
|
184
171
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
185
|
-
var CommandItem =
|
|
172
|
+
var CommandItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
186
173
|
import_cmdk.Command.Item,
|
|
187
174
|
{
|
|
188
175
|
ref,
|
|
@@ -195,7 +182,7 @@ var CommandItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
195
182
|
));
|
|
196
183
|
CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
|
197
184
|
var CommandShortcut = ({ className, ...props }) => {
|
|
198
|
-
return /* @__PURE__ */
|
|
185
|
+
return /* @__PURE__ */ React3.createElement(
|
|
199
186
|
"span",
|
|
200
187
|
{
|
|
201
188
|
className: cn("ml-auto text-xs tracking-widest text-neutral-500", className),
|
|
@@ -207,11 +194,10 @@ CommandShortcut.displayName = "CommandShortcut";
|
|
|
207
194
|
|
|
208
195
|
// src/components/primitives/popover.tsx
|
|
209
196
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
210
|
-
var
|
|
211
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
197
|
+
var React4 = __toESM(require("react"), 1);
|
|
212
198
|
var Popover = PopoverPrimitive.Root;
|
|
213
199
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
214
|
-
var PopoverContent =
|
|
200
|
+
var PopoverContent = React4.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React4.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React4.createElement(
|
|
215
201
|
PopoverPrimitive.Content,
|
|
216
202
|
{
|
|
217
203
|
ref,
|
|
@@ -223,14 +209,13 @@ var PopoverContent = React3.forwardRef(({ className, align = "center", sideOffse
|
|
|
223
209
|
),
|
|
224
210
|
...props
|
|
225
211
|
}
|
|
226
|
-
)
|
|
212
|
+
)));
|
|
227
213
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
228
214
|
|
|
229
215
|
// src/components/primitives/separator.tsx
|
|
230
216
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
231
|
-
var
|
|
232
|
-
var
|
|
233
|
-
var Separator = React4.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
217
|
+
var React5 = __toESM(require("react"), 1);
|
|
218
|
+
var Separator = React5.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
|
234
219
|
SeparatorPrimitive.Root,
|
|
235
220
|
{
|
|
236
221
|
ref,
|
|
@@ -248,7 +233,7 @@ Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
|
248
233
|
|
|
249
234
|
// src/components/ui/Badge.tsx
|
|
250
235
|
var import_cva = require("cva");
|
|
251
|
-
var
|
|
236
|
+
var React6 = __toESM(require("react"), 1);
|
|
252
237
|
var badgeVariants = (0, import_cva.cva)("rounded-full px-2 py-0.5 text-xs font-semibold", {
|
|
253
238
|
variants: {
|
|
254
239
|
variant: {
|
|
@@ -262,14 +247,13 @@ var badgeVariants = (0, import_cva.cva)("rounded-full px-2 py-0.5 text-xs font-s
|
|
|
262
247
|
}
|
|
263
248
|
});
|
|
264
249
|
function Badge({ className, variant, ...props }) {
|
|
265
|
-
return /* @__PURE__ */
|
|
250
|
+
return /* @__PURE__ */ React6.createElement("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
266
251
|
}
|
|
267
252
|
|
|
268
253
|
// src/components/ui/ErrorMessage.tsx
|
|
269
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
270
254
|
function ErrorMessage({ message, className, ...props }) {
|
|
271
255
|
if (!message) return null;
|
|
272
|
-
return /* @__PURE__ */
|
|
256
|
+
return /* @__PURE__ */ React.createElement("p", { className: cn("px-1 text-xs text-red-600", className), ...props }, message);
|
|
273
257
|
}
|
|
274
258
|
var ErrorMessage_default = ErrorMessage;
|
|
275
259
|
|
|
@@ -278,12 +262,11 @@ var import_lucide_react3 = require("lucide-react");
|
|
|
278
262
|
|
|
279
263
|
// src/components/primitives/tooltip.tsx
|
|
280
264
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
281
|
-
var
|
|
282
|
-
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
265
|
+
var React7 = __toESM(require("react"), 1);
|
|
283
266
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
284
267
|
var Tooltip = TooltipPrimitive.Root;
|
|
285
268
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
286
|
-
var TooltipContent =
|
|
269
|
+
var TooltipContent = React7.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
287
270
|
TooltipPrimitive.Content,
|
|
288
271
|
{
|
|
289
272
|
ref,
|
|
@@ -298,29 +281,20 @@ var TooltipContent = React5.forwardRef(({ className, sideOffset = 4, ...props },
|
|
|
298
281
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
299
282
|
|
|
300
283
|
// src/components/ui/Label.tsx
|
|
301
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
302
284
|
function Label({ text, required, description, className, ...props }) {
|
|
303
285
|
if (!text) return null;
|
|
304
|
-
return /* @__PURE__ */
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
]
|
|
317
|
-
}
|
|
318
|
-
),
|
|
319
|
-
!!description && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Tooltip, { children: [
|
|
320
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.InfoIcon, { className: "h-4 w-4" }) }),
|
|
321
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TooltipContent, { className: "max-w-48", children: description })
|
|
322
|
-
] }) })
|
|
323
|
-
] });
|
|
286
|
+
return /* @__PURE__ */ React.createElement("div", { className: "flex w-full flex-row gap-1" }, /* @__PURE__ */ React.createElement(
|
|
287
|
+
"label",
|
|
288
|
+
{
|
|
289
|
+
className: cn(
|
|
290
|
+
"text-xs text-grey-80 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
291
|
+
className
|
|
292
|
+
),
|
|
293
|
+
...props
|
|
294
|
+
},
|
|
295
|
+
text,
|
|
296
|
+
required && /* @__PURE__ */ React.createElement("span", { className: "text-red-600" }, "\xA0*")
|
|
297
|
+
), !!description && /* @__PURE__ */ React.createElement(TooltipProvider, null, /* @__PURE__ */ React.createElement(Tooltip, null, /* @__PURE__ */ React.createElement(TooltipTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(import_lucide_react3.InfoIcon, { className: "h-4 w-4" })), /* @__PURE__ */ React.createElement(TooltipContent, { className: "max-w-48" }, description))));
|
|
324
298
|
}
|
|
325
299
|
var Label_default = Label;
|
|
326
300
|
|
|
@@ -332,8 +306,7 @@ var import_lucide_react6 = require("lucide-react");
|
|
|
332
306
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
333
307
|
var import_lucide_react4 = require("lucide-react");
|
|
334
308
|
var import_react = require("react");
|
|
335
|
-
var
|
|
336
|
-
var CheckboxToggle = (0, import_react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
309
|
+
var CheckboxToggle = (0, import_react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
337
310
|
CheckboxPrimitive.Root,
|
|
338
311
|
{
|
|
339
312
|
ref,
|
|
@@ -362,41 +335,32 @@ var CheckboxToggle = (0, import_react.forwardRef)(({ className, ...props }, ref)
|
|
|
362
335
|
props.disabled && "bg-grey-20 data-[state=checked]:bg-grey-20 data-[state=checked]:text-foreground",
|
|
363
336
|
className
|
|
364
337
|
),
|
|
365
|
-
...props
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react4.Minus, { className: "hidden h-4 w-4 group-data-[state=indeterminate]:block" })
|
|
369
|
-
] })
|
|
370
|
-
}
|
|
338
|
+
...props
|
|
339
|
+
},
|
|
340
|
+
/* @__PURE__ */ React.createElement(CheckboxPrimitive.Indicator, { className: "flex items-center justify-center text-current" }, /* @__PURE__ */ React.createElement(import_lucide_react4.Check, { className: "hidden h-4 w-4 group-data-[state=checked]:block" }), /* @__PURE__ */ React.createElement(import_lucide_react4.Minus, { className: "hidden h-4 w-4 group-data-[state=indeterminate]:block" }))
|
|
371
341
|
));
|
|
372
342
|
CheckboxToggle.displayName = CheckboxPrimitive.Root.displayName;
|
|
373
343
|
var Checkbox = (0, import_react.forwardRef)(
|
|
374
344
|
({ error, classNames, children, ...props }, ref) => {
|
|
375
345
|
const id = props.id ?? `${props.name ?? props.value?.toString()}-checkbox`;
|
|
376
|
-
return /* @__PURE__ */
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ErrorMessage_default, { message: error, className: "mt-1" })
|
|
390
|
-
]
|
|
391
|
-
}
|
|
392
|
-
)
|
|
393
|
-
] });
|
|
346
|
+
return /* @__PURE__ */ React.createElement("div", { className: cn("flex space-x-2", classNames?.wrapper) }, /* @__PURE__ */ React.createElement(CheckboxToggle, { id, ref, ...props }), /* @__PURE__ */ React.createElement(
|
|
347
|
+
"label",
|
|
348
|
+
{
|
|
349
|
+
htmlFor: id,
|
|
350
|
+
className: cn(
|
|
351
|
+
"text-sm",
|
|
352
|
+
props.disabled && "pointer-events-none text-grey-40",
|
|
353
|
+
classNames?.label
|
|
354
|
+
)
|
|
355
|
+
},
|
|
356
|
+
children,
|
|
357
|
+
/* @__PURE__ */ React.createElement(ErrorMessage_default, { message: error, className: "mt-1" })
|
|
358
|
+
));
|
|
394
359
|
}
|
|
395
360
|
);
|
|
396
361
|
Checkbox.displayName = "Checkbox";
|
|
397
362
|
|
|
398
363
|
// src/components/ui/ListItem.tsx
|
|
399
|
-
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
400
364
|
function ListItem({
|
|
401
365
|
icon,
|
|
402
366
|
hasCheckbox,
|
|
@@ -410,12 +374,12 @@ function ListItem({
|
|
|
410
374
|
const getIconIfValid = (icon2) => {
|
|
411
375
|
if (icon2 in import_lucide_react6.icons) {
|
|
412
376
|
const IconComponent = import_lucide_react6.icons[icon2];
|
|
413
|
-
return /* @__PURE__ */
|
|
377
|
+
return /* @__PURE__ */ React.createElement(IconComponent, { size: 14 });
|
|
414
378
|
}
|
|
415
379
|
return null;
|
|
416
380
|
};
|
|
417
381
|
const optionIcon = icon ? getIconIfValid(icon) : void 0;
|
|
418
|
-
return /* @__PURE__ */
|
|
382
|
+
return /* @__PURE__ */ React.createElement(
|
|
419
383
|
"li",
|
|
420
384
|
{
|
|
421
385
|
className: cn(
|
|
@@ -423,29 +387,23 @@ function ListItem({
|
|
|
423
387
|
className
|
|
424
388
|
),
|
|
425
389
|
...props,
|
|
426
|
-
"data-state": isSelected ? "checked" : "unchecked"
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
size: 16
|
|
439
|
-
}
|
|
440
|
-
)
|
|
441
|
-
]
|
|
442
|
-
}
|
|
390
|
+
"data-state": isSelected ? "checked" : "unchecked"
|
|
391
|
+
},
|
|
392
|
+
optionIcon && /* @__PURE__ */ React.createElement("span", { className: "mr-2" }, optionIcon),
|
|
393
|
+
hasCheckbox && /* @__PURE__ */ React.createElement(Checkbox, { id: value, checked: isSelected, onClick: (e) => e.preventDefault() }),
|
|
394
|
+
/* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("p", null, title), /* @__PURE__ */ React.createElement("p", { className: "text-xs text-grey-80" }, description)),
|
|
395
|
+
/* @__PURE__ */ React.createElement(
|
|
396
|
+
import_lucide_react5.CheckIcon,
|
|
397
|
+
{
|
|
398
|
+
className: "absolute inset-y-0 right-0 my-auto hidden w-6 text-green-100 group-data-[state=checked]:block",
|
|
399
|
+
size: 16
|
|
400
|
+
}
|
|
401
|
+
)
|
|
443
402
|
);
|
|
444
403
|
}
|
|
445
404
|
var ListItem_default = ListItem;
|
|
446
405
|
|
|
447
406
|
// src/components/ui/Combobox.tsx
|
|
448
|
-
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
449
407
|
var Combobox = (0, import_react2.forwardRef)((props, ref) => {
|
|
450
408
|
const {
|
|
451
409
|
id,
|
|
@@ -516,111 +474,91 @@ var Combobox = (0, import_react2.forwardRef)((props, ref) => {
|
|
|
516
474
|
const defaultLabel = !isEmpty ? selected.map((s) => s.title).join(", ") : placeholder;
|
|
517
475
|
return isDefault ? defaultLabel : label;
|
|
518
476
|
};
|
|
519
|
-
return /* @__PURE__ */
|
|
520
|
-
|
|
521
|
-
|
|
477
|
+
return /* @__PURE__ */ React.createElement("div", { className: cn("flex flex-col gap-1", className) }, isDefault && /* @__PURE__ */ React.createElement(
|
|
478
|
+
Label_default,
|
|
479
|
+
{
|
|
480
|
+
text: label,
|
|
481
|
+
htmlFor: name,
|
|
482
|
+
required,
|
|
483
|
+
description,
|
|
484
|
+
className: classNames?.label
|
|
485
|
+
}
|
|
486
|
+
), /* @__PURE__ */ React.createElement("div", { className: "relative flex" }, /* @__PURE__ */ React.createElement(Popover, { open, onOpenChange: setOpen }, /* @__PURE__ */ React.createElement(
|
|
487
|
+
PopoverTrigger,
|
|
488
|
+
{
|
|
489
|
+
asChild: true,
|
|
490
|
+
disabled: options.length === 0,
|
|
491
|
+
"data-testid": `${id ?? name}-combobox-trigger`
|
|
492
|
+
},
|
|
493
|
+
/* @__PURE__ */ React.createElement(
|
|
494
|
+
"div",
|
|
522
495
|
{
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
),
|
|
530
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "relative flex", children: [
|
|
531
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
532
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
533
|
-
PopoverTrigger,
|
|
534
|
-
{
|
|
535
|
-
asChild: true,
|
|
536
|
-
disabled: options.length === 0,
|
|
537
|
-
"data-testid": `${id ?? name}-combobox-trigger`,
|
|
538
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
539
|
-
"div",
|
|
540
|
-
{
|
|
541
|
-
ref,
|
|
542
|
-
className: cn(
|
|
543
|
-
triggerVariants({ variant, size }),
|
|
544
|
-
isDefault && !isEmpty && "pr-10",
|
|
545
|
-
classNames?.trigger
|
|
546
|
-
),
|
|
547
|
-
"aria-expanded": open,
|
|
548
|
-
children: [
|
|
549
|
-
isDefault && IconComponent && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(IconComponent, { className: "h-4 w-4 shrink-0" }),
|
|
550
|
-
isChip && !isEmpty && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Badge, { variant: "purple", children: selected.length }),
|
|
551
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
552
|
-
"span",
|
|
553
|
-
{
|
|
554
|
-
className: cn(
|
|
555
|
-
"w-full truncate leading-normal",
|
|
556
|
-
isDefault && isEmpty && "text-grey-40"
|
|
557
|
-
),
|
|
558
|
-
children: handleDisplayValue()
|
|
559
|
-
}
|
|
560
|
-
),
|
|
561
|
-
showChevron && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
562
|
-
import_lucide_react7.ChevronDownIcon,
|
|
563
|
-
{
|
|
564
|
-
className: "shrink-0 transform group-data-[state=open]:rotate-180",
|
|
565
|
-
size: "16"
|
|
566
|
-
}
|
|
567
|
-
)
|
|
568
|
-
]
|
|
569
|
-
}
|
|
570
|
-
)
|
|
571
|
-
}
|
|
496
|
+
ref,
|
|
497
|
+
className: cn(
|
|
498
|
+
triggerVariants({ variant, size }),
|
|
499
|
+
isDefault && !isEmpty && "pr-10",
|
|
500
|
+
classNames?.trigger
|
|
572
501
|
),
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
classNames?.content
|
|
580
|
-
),
|
|
581
|
-
collisionPadding: 8,
|
|
582
|
-
sideOffset: 4,
|
|
583
|
-
align: "start",
|
|
584
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Command, { children: [
|
|
585
|
-
!hideSearchBox && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CommandInput, { placeholder: "Search..." }),
|
|
586
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(CommandList, { children: [
|
|
587
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CommandEmpty, { children: "No results" }),
|
|
588
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CommandGroup, { children: options.map(({ id: id2, ...option }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
589
|
-
CommandItem,
|
|
590
|
-
{
|
|
591
|
-
value: option.title,
|
|
592
|
-
onSelect: () => handleSelect(option.value),
|
|
593
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
594
|
-
ListItem_default,
|
|
595
|
-
{
|
|
596
|
-
className: cn(classNames?.items, "truncate py-1"),
|
|
597
|
-
isSelected: selected.some((s) => s.value === option.value),
|
|
598
|
-
hasCheckbox: multiselect,
|
|
599
|
-
...option
|
|
600
|
-
}
|
|
601
|
-
)
|
|
602
|
-
},
|
|
603
|
-
id2
|
|
604
|
-
)) })
|
|
605
|
-
] }),
|
|
606
|
-
!!footer && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Separator, {}),
|
|
607
|
-
footer && footer({ close })
|
|
608
|
-
] })
|
|
609
|
-
}
|
|
610
|
-
)
|
|
611
|
-
] }),
|
|
612
|
-
isDefault && !isEmpty && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
613
|
-
"button",
|
|
502
|
+
"aria-expanded": open
|
|
503
|
+
},
|
|
504
|
+
isDefault && IconComponent && /* @__PURE__ */ React.createElement(IconComponent, { className: "h-4 w-4 shrink-0" }),
|
|
505
|
+
isChip && !isEmpty && /* @__PURE__ */ React.createElement(Badge, { variant: "purple" }, selected.length),
|
|
506
|
+
/* @__PURE__ */ React.createElement(
|
|
507
|
+
"span",
|
|
614
508
|
{
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
509
|
+
className: cn(
|
|
510
|
+
"w-full truncate leading-normal",
|
|
511
|
+
isDefault && isEmpty && "text-grey-40"
|
|
512
|
+
)
|
|
513
|
+
},
|
|
514
|
+
handleDisplayValue()
|
|
515
|
+
),
|
|
516
|
+
showChevron && /* @__PURE__ */ React.createElement(
|
|
517
|
+
import_lucide_react7.ChevronDownIcon,
|
|
518
|
+
{
|
|
519
|
+
className: "shrink-0 transform group-data-[state=open]:rotate-180",
|
|
520
|
+
size: "16"
|
|
619
521
|
}
|
|
620
522
|
)
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
523
|
+
)
|
|
524
|
+
), /* @__PURE__ */ React.createElement(
|
|
525
|
+
PopoverContent,
|
|
526
|
+
{
|
|
527
|
+
className: cn(
|
|
528
|
+
"flex w-full max-w-xs flex-col overflow-hidden p-0",
|
|
529
|
+
"max-h-[--radix-popover-content-available-height]",
|
|
530
|
+
classNames?.content
|
|
531
|
+
),
|
|
532
|
+
collisionPadding: 8,
|
|
533
|
+
sideOffset: 4,
|
|
534
|
+
align: "start"
|
|
535
|
+
},
|
|
536
|
+
/* @__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(
|
|
537
|
+
CommandItem,
|
|
538
|
+
{
|
|
539
|
+
key: id2,
|
|
540
|
+
value: option.title,
|
|
541
|
+
onSelect: () => handleSelect(option.value)
|
|
542
|
+
},
|
|
543
|
+
/* @__PURE__ */ React.createElement(
|
|
544
|
+
ListItem_default,
|
|
545
|
+
{
|
|
546
|
+
className: cn(classNames?.items, "truncate py-1"),
|
|
547
|
+
isSelected: selected.some((s) => s.value === option.value),
|
|
548
|
+
hasCheckbox: multiselect,
|
|
549
|
+
...option
|
|
550
|
+
}
|
|
551
|
+
)
|
|
552
|
+
)))), !!footer && /* @__PURE__ */ React.createElement(Separator, null), footer && footer({ close }))
|
|
553
|
+
)), isDefault && !isEmpty && /* @__PURE__ */ React.createElement(
|
|
554
|
+
"button",
|
|
555
|
+
{
|
|
556
|
+
type: "button",
|
|
557
|
+
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",
|
|
558
|
+
onClick: handleClear
|
|
559
|
+
},
|
|
560
|
+
/* @__PURE__ */ React.createElement(import_lucide_react7.CircleX, { className: "h-4 w-4 text-green-100" })
|
|
561
|
+
)), /* @__PURE__ */ React.createElement(ErrorMessage_default, { message: error }));
|
|
624
562
|
});
|
|
625
563
|
Combobox.displayName = "Combobox";
|
|
626
564
|
var triggerVariants = (0, import_cva2.cva)(
|