@cryptlex/web-components 2.0.2 → 3.0.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/README.md +3 -7
- package/dist/_virtual/index.es.js +5 -0
- package/dist/_virtual/index.es.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.es.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.es.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.es.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.es.js.map +1 -0
- package/dist/components/data-table/column-picker.es.js +34 -73
- package/dist/components/data-table/column-picker.es.js.map +1 -1
- package/dist/components/data-table/data-table.es.js +106 -159
- package/dist/components/data-table/data-table.es.js.map +1 -1
- package/dist/components/data-table/page-size.es.js +15 -16
- package/dist/components/data-table/page-size.es.js.map +1 -1
- package/dist/components/data-table/paginator.es.js +37 -30
- package/dist/components/data-table/paginator.es.js.map +1 -1
- package/dist/components/data-table/table-actions.es.js +26 -61
- package/dist/components/data-table/table-actions.es.js.map +1 -1
- package/dist/components/data-table/table-commons.es.js +17 -17
- package/dist/components/data-table/table-commons.es.js.map +1 -1
- package/dist/components/data-table/table-content.es.js +42 -43
- package/dist/components/data-table/table-content.es.js.map +1 -1
- package/dist/components/data-table/table-utils/createTableFetchFn.es.js +10 -11
- package/dist/components/data-table/table-utils/createTableFetchFn.es.js.map +1 -1
- package/dist/components/data-table/table-utils/types.es.js.map +1 -1
- package/dist/components/{ui → inputs}/calendar.es.js +10 -10
- package/dist/components/inputs/calendar.es.js.map +1 -0
- package/dist/components/inputs/checkbox.es.js +27 -0
- package/dist/components/inputs/checkbox.es.js.map +1 -0
- package/dist/components/inputs/country-select.es.js +280 -0
- package/dist/components/inputs/country-select.es.js.map +1 -0
- package/dist/components/inputs/form-field.es.js +25 -0
- package/dist/components/inputs/form-field.es.js.map +1 -0
- package/dist/components/inputs/input-otp.es.js +49 -0
- package/dist/components/inputs/input-otp.es.js.map +1 -0
- package/dist/components/inputs/input.es.js +34 -0
- package/dist/components/inputs/input.es.js.map +1 -0
- package/dist/components/inputs/license-type-select.es.js +26 -0
- package/dist/components/inputs/license-type-select.es.js.map +1 -0
- package/dist/components/inputs/multi-select.es.js +57 -0
- package/dist/components/inputs/multi-select.es.js.map +1 -0
- package/dist/components/inputs/password-input.es.js +19 -0
- package/dist/components/inputs/password-input.es.js.map +1 -0
- package/dist/components/inputs/radio-group.es.js +32 -0
- package/dist/components/inputs/radio-group.es.js.map +1 -0
- package/dist/components/{ui → inputs}/search-input.es.js +7 -7
- package/dist/components/inputs/search-input.es.js.map +1 -0
- package/dist/components/inputs/select.es.js +29 -0
- package/dist/components/inputs/select.es.js.map +1 -0
- package/dist/components/inputs/textarea.es.js +35 -0
- package/dist/components/inputs/textarea.es.js.map +1 -0
- package/dist/components/key-value-card/key-value-card.es.js +32 -64
- package/dist/components/key-value-card/key-value-card.es.js.map +1 -1
- package/dist/components/sidebar/app-layout.es.js +33 -67
- package/dist/components/sidebar/app-layout.es.js.map +1 -1
- package/dist/components/sidebar/sidebar.es.js +4 -5
- package/dist/components/sidebar/sidebar.es.js.map +1 -1
- package/dist/components/ui/accordion.es.js +29 -29
- package/dist/components/ui/accordion.es.js.map +1 -1
- package/dist/components/ui/avatar.es.js +23 -23
- package/dist/components/ui/avatar.es.js.map +1 -1
- package/dist/components/ui/badge.es.js +4 -4
- package/dist/components/ui/badge.es.js.map +1 -1
- package/dist/components/ui/breadcrumb.es.js +8 -8
- package/dist/components/ui/breadcrumb.es.js.map +1 -1
- package/dist/components/ui/button.es.js +30 -28
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/card.es.js +7 -7
- package/dist/components/ui/card.es.js.map +1 -1
- package/dist/components/ui/chart.es.js +24 -24
- package/dist/components/ui/chart.es.js.map +1 -1
- package/dist/components/ui/collapsible.es.js +5 -5
- package/dist/components/ui/collapsible.es.js.map +1 -1
- package/dist/components/ui/copy-button.es.js +18 -47
- package/dist/components/ui/copy-button.es.js.map +1 -1
- package/dist/components/ui/dialog.es.js +65 -65
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/drawer.es.js +7 -7
- package/dist/components/ui/drawer.es.js.map +1 -1
- package/dist/components/ui/dropdown-menu.es.js +67 -92
- package/dist/components/ui/dropdown-menu.es.js.map +1 -1
- package/dist/components/ui/label.es.js +10 -13
- package/dist/components/ui/label.es.js.map +1 -1
- package/dist/components/ui/loader.es.js +6 -6
- package/dist/components/ui/loader.es.js.map +1 -1
- package/dist/components/ui/navigation-menu.es.js +75 -75
- package/dist/components/ui/navigation-menu.es.js.map +1 -1
- package/dist/components/ui/pagination.es.js +26 -26
- package/dist/components/ui/pagination.es.js.map +1 -1
- package/dist/components/ui/popover.es.js +15 -14
- package/dist/components/ui/popover.es.js.map +1 -1
- package/dist/components/ui/separator.es.js +11 -11
- package/dist/components/ui/separator.es.js.map +1 -1
- package/dist/components/ui/sheet.es.js +50 -50
- package/dist/components/ui/sheet.es.js.map +1 -1
- package/dist/components/ui/sidebar.es.js +105 -120
- package/dist/components/ui/sidebar.es.js.map +1 -1
- package/dist/components/ui/skeleton.es.js +3 -3
- package/dist/components/ui/skeleton.es.js.map +1 -1
- package/dist/components/{static-data-table → ui}/static-data-table.es.js +2 -2
- package/dist/components/ui/static-data-table.es.js.map +1 -0
- package/dist/components/ui/table.es.js +29 -33
- package/dist/components/ui/table.es.js.map +1 -1
- package/dist/components/ui/tabs.es.js +31 -31
- package/dist/components/ui/tabs.es.js.map +1 -1
- package/dist/components/ui/tooltip.es.js +13 -13
- package/dist/components/ui/tooltip.es.js.map +1 -1
- package/dist/index.es.d.ts +135 -188
- package/dist/index.es.js +253 -271
- package/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.es.js +530 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js +400 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.2_react-dom@18.3.1_react@18.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.es.js +208 -0
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.2_react-dom@18.3.1_react@18.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js +132 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js +130 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.es.js +10 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.10_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-accordion/dist/index.es.js +242 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.10_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-accordion/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-arrow/dist/index.es.js +25 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1.9_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-avatar/dist/index.es.js +78 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1.9_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-avatar/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.10_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-collapsible/dist/index.es.js +122 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.10_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-collapsible/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-collection/dist/index.es.js +50 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-collection/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +30 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.es.js +71 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.13_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-dialog/dist/index.es.js +264 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.13_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.es.js +11 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.9_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +129 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.9_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.14_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-dropdown-menu/dist/index.es.js +229 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.14_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-dropdown-menu/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.2_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.es.js +19 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.2_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +139 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.es.js +14 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-label/dist/index.es.js +22 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-label/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.14_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-menu/dist/index.es.js +654 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.14_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-menu/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.12_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-navigation-menu/dist/index.es.js +610 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.12_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-navigation-menu/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1.13_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-popover/dist/index.es.js +246 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1.13_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-popover/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-popper/dist/index.es.js +222 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.8_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-portal/dist/index.es.js +18 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.8_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.4_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-presence/dist/index.es.js +73 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.4_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.2_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-primitive/dist/index.es.js +37 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.2_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.3.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-radio-group/dist/index.es.js +241 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.3.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-radio-group/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.9_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-roving-focus/dist/index.es.js +185 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.9_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-roving-focus/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1.1.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-separator/dist/index.es.js +25 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1.1.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-separator/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.2_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.es.js +61 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.2_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.11_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-tabs/dist/index.es.js +166 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.11_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-tabs/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-tooltip/dist/index.es.js +341 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.6_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +14 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +55 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js +15 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.0_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.es.js +16 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.0_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +7 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.es.js +9 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.es.js +28 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@18.3.21_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.2_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +33 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.2_@types_react-dom@18.3.7_@types_react@18.3.21_react-dom@18.3.1_react@18.3.1/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.es.js +53 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.es.js +10 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.es.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.es.js +19 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.es.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchFn.es.js +32 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchFn.es.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.es.js +16 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.es.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.es.js +71 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.es.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/formatLong.es.js +34 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/formatLong.es.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.es.js +12 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.es.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/localize.es.js +156 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/localize.es.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/match.es.js +111 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/match.es.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US.es.js +22 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US.es.js.map +1 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.es.js +8 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-day-picker@8.10.1_date-fns@3.6.0_react@18.3.1/node_modules/react-day-picker/dist/index.esm.es.js +1012 -0
- package/dist/node_modules/.pnpm/react-day-picker@8.10.1_date-fns@3.6.0_react@18.3.1/node_modules/react-day-picker/dist/index.esm.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js +72 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js +8 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js +26 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.es.js +12 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js +113 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.es.js +32 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js +17 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js +65 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.es.js +6 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js +8 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@18.3.21_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.21_react@18.3.1/node_modules/react-style-singleton/dist/es2015/component.es.js +12 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.21_react@18.3.1/node_modules/react-style-singleton/dist/es2015/component.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.21_react@18.3.1/node_modules/react-style-singleton/dist/es2015/hook.es.js +16 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.21_react@18.3.1/node_modules/react-style-singleton/dist/es2015/hook.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.21_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.es.js +31 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.21_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.es.js.map +1 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.es.js +28 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.es.js.map +1 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.21_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.es.js +7 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.21_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.es.js.map +1 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.21_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js +27 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.21_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js.map +1 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.21_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.es.js +26 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.21_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.es.js.map +1 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.21_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.es.js +19 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.21_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.es.js.map +1 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.21_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.es.js +68 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.21_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.es.js.map +1 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js +68 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js.map +1 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js +56 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js.map +1 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.es.js +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.es.js.map +1 -0
- package/dist/utils/form-context.es.js +8 -0
- package/dist/utils/form-context.es.js.map +1 -0
- package/dist/utils/form-hook.es.js +28 -0
- package/dist/utils/form-hook.es.js.map +1 -0
- package/dist/utils/index.es.js.map +1 -1
- package/lib/base.css +0 -4
- package/lib/theme.css +5 -1
- package/lib/utilities.css +42 -19
- package/package.json +35 -39
- package/dist/components/data-table/table-filter.es.js +0 -261
- package/dist/components/data-table/table-filter.es.js.map +0 -1
- package/dist/components/data-table/table-utils/link-display.es.js +0 -21
- package/dist/components/data-table/table-utils/link-display.es.js.map +0 -1
- package/dist/components/sidebar/breadcrumb.es.js +0 -58
- package/dist/components/sidebar/breadcrumb.es.js.map +0 -1
- package/dist/components/sidebar/nav-main.es.js +0 -90
- package/dist/components/sidebar/nav-main.es.js.map +0 -1
- package/dist/components/static-data-table/static-data-table.es.js.map +0 -1
- package/dist/components/ui/calendar.es.js.map +0 -1
- package/dist/components/ui/checkbox.es.js +0 -22
- package/dist/components/ui/checkbox.es.js.map +0 -1
- package/dist/components/ui/command.es.js +0 -110
- package/dist/components/ui/command.es.js.map +0 -1
- package/dist/components/ui/form.es.js +0 -94
- package/dist/components/ui/form.es.js.map +0 -1
- package/dist/components/ui/input-otp.es.js +0 -49
- package/dist/components/ui/input-otp.es.js.map +0 -1
- package/dist/components/ui/input.es.js +0 -27
- package/dist/components/ui/input.es.js.map +0 -1
- package/dist/components/ui/link-button.es.js +0 -22
- package/dist/components/ui/link-button.es.js.map +0 -1
- package/dist/components/ui/mutli-select.es.js +0 -198
- package/dist/components/ui/mutli-select.es.js.map +0 -1
- package/dist/components/ui/password-input.es.js +0 -19
- package/dist/components/ui/password-input.es.js.map +0 -1
- package/dist/components/ui/radio-group.es.js +0 -32
- package/dist/components/ui/radio-group.es.js.map +0 -1
- package/dist/components/ui/search-input.es.js.map +0 -1
- package/dist/components/ui/select.es.js +0 -99
- package/dist/components/ui/select.es.js.map +0 -1
- package/dist/components/ui/textarea.es.js +0 -19
- package/dist/components/ui/textarea.es.js.map +0 -1
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { MagnifyingGlassIcon as s } from "@radix-ui/react-icons";
|
|
3
|
-
import { Command as d } from "cmdk";
|
|
4
|
-
import * as m from "react";
|
|
5
|
-
import { Dialog as i, DialogContent as c } from "./dialog.es.js";
|
|
6
|
-
import { cn as r } from "../../utils/index.es.js";
|
|
7
|
-
const n = m.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
8
|
-
d,
|
|
9
|
-
{
|
|
10
|
-
ref: t,
|
|
11
|
-
className: r(
|
|
12
|
-
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
13
|
-
e
|
|
14
|
-
),
|
|
15
|
-
...a
|
|
16
|
-
}
|
|
17
|
-
));
|
|
18
|
-
n.displayName = d.displayName;
|
|
19
|
-
const v = ({ children: e, ...a }) => /* @__PURE__ */ o(i, { ...a, children: /* @__PURE__ */ o(c, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(n, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), l = m.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ p("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
20
|
-
/* @__PURE__ */ o(s, { className: "mr-2 size-4 shrink-0 opacity-50" }),
|
|
21
|
-
/* @__PURE__ */ o(
|
|
22
|
-
d.Input,
|
|
23
|
-
{
|
|
24
|
-
ref: t,
|
|
25
|
-
className: r(
|
|
26
|
-
"flex h-input w-full rounded-md bg-transparent py-3 body outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
27
|
-
e
|
|
28
|
-
),
|
|
29
|
-
...a
|
|
30
|
-
}
|
|
31
|
-
)
|
|
32
|
-
] }));
|
|
33
|
-
l.displayName = d.Input.displayName;
|
|
34
|
-
const u = m.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
35
|
-
d.List,
|
|
36
|
-
{
|
|
37
|
-
ref: t,
|
|
38
|
-
className: r("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
39
|
-
...a
|
|
40
|
-
}
|
|
41
|
-
));
|
|
42
|
-
u.displayName = d.List.displayName;
|
|
43
|
-
const f = m.forwardRef((e, a) => /* @__PURE__ */ o(
|
|
44
|
-
d.Empty,
|
|
45
|
-
{
|
|
46
|
-
ref: a,
|
|
47
|
-
className: "py-6 text-center body",
|
|
48
|
-
...e
|
|
49
|
-
}
|
|
50
|
-
));
|
|
51
|
-
f.displayName = d.Empty.displayName;
|
|
52
|
-
const g = m.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
53
|
-
d.Group,
|
|
54
|
-
{
|
|
55
|
-
ref: t,
|
|
56
|
-
className: r(
|
|
57
|
-
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-caption [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
58
|
-
e
|
|
59
|
-
),
|
|
60
|
-
...a
|
|
61
|
-
}
|
|
62
|
-
));
|
|
63
|
-
g.displayName = d.Group.displayName;
|
|
64
|
-
const y = m.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
65
|
-
d.Separator,
|
|
66
|
-
{
|
|
67
|
-
ref: t,
|
|
68
|
-
className: r("-mx-1 h-px bg-border", e),
|
|
69
|
-
...a
|
|
70
|
-
}
|
|
71
|
-
));
|
|
72
|
-
y.displayName = d.Separator.displayName;
|
|
73
|
-
const h = m.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
74
|
-
d.Item,
|
|
75
|
-
{
|
|
76
|
-
ref: t,
|
|
77
|
-
className: r(
|
|
78
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 body outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
|
|
79
|
-
e
|
|
80
|
-
),
|
|
81
|
-
...a
|
|
82
|
-
}
|
|
83
|
-
));
|
|
84
|
-
h.displayName = d.Item.displayName;
|
|
85
|
-
const x = ({
|
|
86
|
-
className: e,
|
|
87
|
-
...a
|
|
88
|
-
}) => /* @__PURE__ */ o(
|
|
89
|
-
"span",
|
|
90
|
-
{
|
|
91
|
-
className: r(
|
|
92
|
-
"ml-auto text-caption tracking-widest text-muted-foreground",
|
|
93
|
-
e
|
|
94
|
-
),
|
|
95
|
-
...a
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
x.displayName = "CommandShortcut";
|
|
99
|
-
export {
|
|
100
|
-
n as Command,
|
|
101
|
-
v as CommandDialog,
|
|
102
|
-
f as CommandEmpty,
|
|
103
|
-
g as CommandGroup,
|
|
104
|
-
l as CommandInput,
|
|
105
|
-
h as CommandItem,
|
|
106
|
-
u as CommandList,
|
|
107
|
-
y as CommandSeparator,
|
|
108
|
-
x as CommandShortcut
|
|
109
|
-
};
|
|
110
|
-
//# sourceMappingURL=command.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command.es.js","sources":["../../../lib/components/ui/command.tsx"],"sourcesContent":["import { type DialogProps } from \"@radix-ui/react-dialog\"\nimport { MagnifyingGlassIcon } from \"@radix-ui/react-icons\"\nimport { Command as CommandPrimitive } from \"cmdk\"\nimport * as React from \"react\"\n\nimport { Dialog, DialogContent } from \"@/components/ui/dialog\"\nimport { cn } from \"@/utils\"\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n \"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground\",\n className\n )}\n {...props}\n />\n))\nCommand.displayName = CommandPrimitive.displayName\n\ninterface CommandDialogProps extends DialogProps { }\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props}>\n <DialogContent className=\"overflow-hidden p-0\">\n <Command className=\"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n )\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>\n>(({ className, ...props }, ref) => (\n <div className=\"flex items-center border-b px-3\" cmdk-input-wrapper=\"\">\n <MagnifyingGlassIcon className=\"mr-2 size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n \"flex h-input w-full rounded-md bg-transparent py-3 body outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n />\n </div>\n))\n\nCommandInput.displayName = CommandPrimitive.Input.displayName\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n className={cn(\"max-h-[300px] overflow-y-auto overflow-x-hidden\", className)}\n {...props}\n />\n))\n\nCommandList.displayName = CommandPrimitive.List.displayName\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty\n ref={ref}\n className=\"py-6 text-center body\"\n {...props}\n />\n))\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n \"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-caption [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n className\n )}\n {...props}\n />\n))\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 h-px bg-border\", className)}\n {...props}\n />\n))\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 body outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50\",\n className\n )}\n {...props}\n />\n))\n\nCommandItem.displayName = CommandPrimitive.Item.displayName\n\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\n \"ml-auto text-caption tracking-widest text-muted-foreground\",\n className\n )}\n {...props}\n />\n )\n}\nCommandShortcut.displayName = \"CommandShortcut\"\n\nexport {\n Command,\n CommandDialog, CommandEmpty,\n CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut\n}\n\n"],"names":["Command","React","className","props","ref","jsx","CommandPrimitive","cn","CommandDialog","children","Dialog","DialogContent","CommandInput","jsxs","MagnifyingGlassIcon","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut"],"mappings":";;;;;;AAQM,MAAAA,IAAUC,EAAM,WAGpB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAQ,cAAcM,EAAiB;AAIvC,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ACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AAEDc,EAAa,cAAcX,EAAiB,MAAM;AAE5C,MAAAY,IAAmBjB,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAACC,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,wBAAwBL,CAAS;AAAA,IAC9C,GAAGC;AAAA,EAAA;AACN,CACD;AACDe,EAAiB,cAAcZ,EAAiB,UAAU;AAEpD,MAAAa,IAAclB,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAACC,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AAEDgB,EAAY,cAAcb,EAAiB,KAAK;AAEhD,MAAMc,IAAkB,CAAC;AAAA,EACvB,WAAAlB;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAE;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWE;AAAA,MACT;AAAA,MACAL;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN;AAGJiB,EAAgB,cAAc;"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
-
import { Slot as F } from "@radix-ui/react-slot";
|
|
4
|
-
import * as s from "react";
|
|
5
|
-
import { useFormContext as u, FormProvider as p, Controller as x } from "react-hook-form";
|
|
6
|
-
import { Label as I } from "./label.es.js";
|
|
7
|
-
import { cn as a } from "../../utils/index.es.js";
|
|
8
|
-
const D = p, l = s.createContext({}), M = ({
|
|
9
|
-
...e
|
|
10
|
-
}) => /* @__PURE__ */ i(l.Provider, { value: { name: e.name }, children: /* @__PURE__ */ i(x, { ...e }) }), d = () => {
|
|
11
|
-
const e = s.useContext(l), t = s.useContext(f), { getFieldState: r, formState: o } = u(), m = r(e.name, o);
|
|
12
|
-
if (!e)
|
|
13
|
-
throw new Error("useFormField should be used within <FormField>");
|
|
14
|
-
const { id: n } = t;
|
|
15
|
-
return {
|
|
16
|
-
id: n,
|
|
17
|
-
name: e.name,
|
|
18
|
-
formItemId: `${n}-form-item`,
|
|
19
|
-
formDescriptionId: `${n}-form-item-description`,
|
|
20
|
-
formMessageId: `${n}-form-item-message`,
|
|
21
|
-
...m
|
|
22
|
-
};
|
|
23
|
-
}, f = s.createContext({}), C = s.forwardRef(
|
|
24
|
-
({ className: e, ...t }, r) => {
|
|
25
|
-
const o = s.useId();
|
|
26
|
-
return /* @__PURE__ */ i(f.Provider, { value: { id: o }, children: /* @__PURE__ */ i("div", { ref: r, className: a("space-y-2", e), ...t }) });
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
C.displayName = "FormItem";
|
|
30
|
-
const g = s.forwardRef(({ className: e, ...t }, r) => {
|
|
31
|
-
const { error: o, formItemId: m } = d();
|
|
32
|
-
return /* @__PURE__ */ i(
|
|
33
|
-
I,
|
|
34
|
-
{
|
|
35
|
-
ref: r,
|
|
36
|
-
className: a(o && "text-destructive", e),
|
|
37
|
-
htmlFor: m,
|
|
38
|
-
...t
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
});
|
|
42
|
-
g.displayName = "FormLabel";
|
|
43
|
-
const v = s.forwardRef(({ ...e }, t) => {
|
|
44
|
-
const { error: r, formItemId: o, formDescriptionId: m, formMessageId: n } = d();
|
|
45
|
-
return /* @__PURE__ */ i(
|
|
46
|
-
F,
|
|
47
|
-
{
|
|
48
|
-
ref: t,
|
|
49
|
-
id: o,
|
|
50
|
-
"aria-describedby": r ? `${m} ${n}` : `${m}`,
|
|
51
|
-
"aria-invalid": !!r,
|
|
52
|
-
...e
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
});
|
|
56
|
-
v.displayName = "FormControl";
|
|
57
|
-
const N = s.forwardRef(({ className: e, ...t }, r) => {
|
|
58
|
-
const { formDescriptionId: o } = d();
|
|
59
|
-
return /* @__PURE__ */ i(
|
|
60
|
-
"p",
|
|
61
|
-
{
|
|
62
|
-
ref: r,
|
|
63
|
-
id: o,
|
|
64
|
-
className: a("text-caption text-muted-foreground", e),
|
|
65
|
-
...t
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
});
|
|
69
|
-
N.displayName = "FormDescription";
|
|
70
|
-
const w = s.forwardRef(({ className: e, children: t, ...r }, o) => {
|
|
71
|
-
const { error: m, formMessageId: n } = d(), c = m ? String(m == null ? void 0 : m.message) : t;
|
|
72
|
-
return c ? /* @__PURE__ */ i(
|
|
73
|
-
"p",
|
|
74
|
-
{
|
|
75
|
-
ref: o,
|
|
76
|
-
id: n,
|
|
77
|
-
className: a("text-caption font-medium text-destructive", e),
|
|
78
|
-
...r,
|
|
79
|
-
children: c
|
|
80
|
-
}
|
|
81
|
-
) : null;
|
|
82
|
-
});
|
|
83
|
-
w.displayName = "FormMessage";
|
|
84
|
-
export {
|
|
85
|
-
D as Form,
|
|
86
|
-
v as FormControl,
|
|
87
|
-
N as FormDescription,
|
|
88
|
-
M as FormField,
|
|
89
|
-
C as FormItem,
|
|
90
|
-
g as FormLabel,
|
|
91
|
-
w as FormMessage,
|
|
92
|
-
d as useFormField
|
|
93
|
-
};
|
|
94
|
-
//# sourceMappingURL=form.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form.es.js","sources":["../../../lib/components/ui/form.tsx"],"sourcesContent":["'use client';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { Slot } from '@radix-ui/react-slot';\nimport * as React from 'react';\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from 'react-hook-form';\n\nimport { Label } from '@/components/ui/label';\nimport { cn } from '@/utils';\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = {\n name: TName;\n};\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFieldContextValue);\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>({\n ...props\n}: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n );\n};\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext);\n const itemContext = React.useContext(FormItemContext);\n const { getFieldState, formState } = useFormContext();\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n if (!fieldContext) {\n throw new Error('useFormField should be used within <FormField>');\n }\n\n const { id } = itemContext;\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n };\n};\n\ntype FormItemContextValue = {\n id: string;\n};\n\nconst FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue);\n\nconst FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const id = React.useId();\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn('space-y-2', className)} {...props} />\n </FormItemContext.Provider>\n );\n },\n);\nFormItem.displayName = 'FormItem';\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField();\n\n return (\n <Label\n ref={ref}\n className={cn(error && 'text-destructive', className)}\n htmlFor={formItemId}\n {...props}\n />\n );\n});\nFormLabel.displayName = 'FormLabel';\n\nconst FormControl = React.forwardRef<\n React.ElementRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField();\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}\n aria-invalid={!!error}\n {...props}\n />\n );\n});\nFormControl.displayName = 'FormControl';\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn('text-caption text-muted-foreground', className)}\n {...props}\n />\n );\n});\nFormDescription.displayName = 'FormDescription';\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField();\n const body = error ? String(error?.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn('text-caption font-medium text-destructive', className)}\n {...props}\n >\n {body}\n </p>\n );\n});\nFormMessage.displayName = 'FormMessage';\n\nexport {\n Form,\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n useFormField,\n};\n"],"names":["Form","FormProvider","FormFieldContext","React","FormField","props","jsx","Controller","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","useFormContext","fieldState","id","FormItem","className","ref","cn","FormLabel","error","formItemId","Label","FormControl","formDescriptionId","formMessageId","Slot","FormDescription","FormMessage","children","body"],"mappings":";;;;;;;AAgBA,MAAMA,IAAOC,GASPC,IAAmBC,EAAM,cAAqC,EAA2B,GAEzFC,IAAY,CAGhB;AAAA,EACA,GAAGC;AACL,MAEK,gBAAAC,EAAAJ,EAAiB,UAAjB,EAA0B,OAAO,EAAE,MAAMG,EAAM,KAAA,GAC9C,UAAA,gB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
|
|
|
1
|
-
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { cn as n } from "../../utils/index.es.js";
|
|
3
|
-
import { MinusIcon as m } from "@radix-ui/react-icons";
|
|
4
|
-
import { OTPInput as u, OTPInputContext as f } from "input-otp";
|
|
5
|
-
import * as o from "react";
|
|
6
|
-
const x = o.forwardRef(({ className: e, containerClassName: t, ...a }, s) => /* @__PURE__ */ r(
|
|
7
|
-
u,
|
|
8
|
-
{
|
|
9
|
-
ref: s,
|
|
10
|
-
containerClassName: n(
|
|
11
|
-
"flex items-center gap-2 has-disabled:opacity-50",
|
|
12
|
-
t
|
|
13
|
-
),
|
|
14
|
-
className: n("disabled:cursor-not-allowed", e),
|
|
15
|
-
...a
|
|
16
|
-
}
|
|
17
|
-
));
|
|
18
|
-
x.displayName = "InputOTP";
|
|
19
|
-
const I = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r("div", { ref: a, className: n("flex items-center", e), ...t }));
|
|
20
|
-
I.displayName = "InputOTPGroup";
|
|
21
|
-
const O = o.forwardRef(({ index: e, className: t, ...a }, s) => {
|
|
22
|
-
const i = o.useContext(f), { char: d, hasFakeCaret: p, isActive: l } = i.slots[e];
|
|
23
|
-
return /* @__PURE__ */ c(
|
|
24
|
-
"div",
|
|
25
|
-
{
|
|
26
|
-
ref: s,
|
|
27
|
-
className: n(
|
|
28
|
-
"relative flex h-input w-9 items-center justify-center border-2 border-input body shadow-xs transition-all first:rounded-l-md last:rounded-r-md",
|
|
29
|
-
l ? "z-10 border-2 border-primary" : "",
|
|
30
|
-
t
|
|
31
|
-
),
|
|
32
|
-
...a,
|
|
33
|
-
children: [
|
|
34
|
-
d,
|
|
35
|
-
p && /* @__PURE__ */ r("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ r("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
});
|
|
40
|
-
O.displayName = "InputOTPSlot";
|
|
41
|
-
const P = o.forwardRef(({ ...e }, t) => /* @__PURE__ */ r("div", { ref: t, role: "separator", ...e, children: /* @__PURE__ */ r(m, {}) }));
|
|
42
|
-
P.displayName = "InputOTPSeparator";
|
|
43
|
-
export {
|
|
44
|
-
x as InputOTP,
|
|
45
|
-
I as InputOTPGroup,
|
|
46
|
-
P as InputOTPSeparator,
|
|
47
|
-
O as InputOTPSlot
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=input-otp.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.es.js","sources":["../../../lib/components/ui/input-otp.tsx"],"sourcesContent":["import { cn } from \"@/utils\"\nimport { MinusIcon } from \"@radix-ui/react-icons\"\nimport { OTPInput, OTPInputContext } from \"input-otp\"\nimport * as React from \"react\"\n\nconst InputOTP = React.forwardRef<\n React.ElementRef<typeof OTPInput>,\n React.ComponentPropsWithoutRef<typeof OTPInput>\n>(({ className, containerClassName, ...props }, ref) => (\n <OTPInput\n ref={ref}\n containerClassName={cn(\n \"flex items-center gap-2 has-disabled:opacity-50\",\n containerClassName\n )}\n className={cn(\"disabled:cursor-not-allowed\", className)}\n {...props}\n />\n))\nInputOTP.displayName = \"InputOTP\"\n\nconst InputOTPGroup = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex items-center\", className)} {...props} />\n))\nInputOTPGroup.displayName = \"InputOTPGroup\"\n\nconst InputOTPSlot = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\"> & { index: number }\n>(({ index, className, ...props }, ref) => {\n const inputOTPContext = React.useContext(OTPInputContext)\n const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index]\n\n return (\n <div\n ref={ref}\n className={cn(\n \"relative flex h-input w-9 items-center justify-center border-2 border-input body shadow-xs transition-all first:rounded-l-md last:rounded-r-md\",\n isActive ? \"z-10 border-2 border-primary\" : \"\",\n className,\n )}\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"h-4 w-px animate-caret-blink bg-foreground duration-1000\" />\n </div>\n )}\n </div>\n )\n})\nInputOTPSlot.displayName = \"InputOTPSlot\"\n\nconst InputOTPSeparator = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ ...props }, ref) => (\n <div ref={ref} role=\"separator\" {...props}>\n <MinusIcon />\n </div>\n))\nInputOTPSeparator.displayName = \"InputOTPSeparator\"\n\nexport { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot }\n\n"],"names":["InputOTP","React","className","containerClassName","props","ref","jsx","OTPInput","cn","InputOTPGroup","InputOTPSlot","index","inputOTPContext","OTPInputContext","char","hasFakeCaret","isActive","jsxs","InputOTPSeparator","MinusIcon"],"mappings":";;;;;AAKM,MAAAA,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,oBAAAC,GAAoB,GAAGC,KAASC,MAC9C,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,oBAAoBG;AAAA,MAClB;AAAA,MACAL;AAAA,IACF;AAAA,IACA,WAAWK,EAAG,+BAA+BN,CAAS;AAAA,IACrD,GAAGE;AAAA,EAAA;AACN,CACD;AACDJ,EAAS,cAAc;AAEjB,MAAAS,IAAgBR,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAS,GAAAC,wBACzB,OAAI,EAAA,KAAAA,GAAU,WAAWG,EAAG,qBAAqBN,CAAS,GAAI,GAAGE,GAAO,CAC1E;AACDK,EAAc,cAAc;AAEtB,MAAAC,IAAeT,EAAM,WAGzB,CAAC,EAAE,OAAAU,GAAO,WAAAT,GAAW,GAAGE,EAAM,GAAGC,MAAQ;AACnC,QAAAO,IAAkBX,EAAM,WAAWY,CAAe,GAClD,EAAE,MAAAC,GAAM,cAAAC,GAAc,UAAAC,EAAa,IAAAJ,EAAgB,MAAMD,CAAK;AAGlE,SAAA,gBAAAM;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAZ;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACAQ,IAAW,kCAAkC;AAAA,QAC7Cd;AAAA,MACF;AAAA,MACC,GAAGE;AAAA,MAEH,UAAA;AAAA,QAAAU;AAAA,QACAC,uBACE,OAAI,EAAA,WAAU,yEACb,UAAC,gBAAAT,EAAA,OAAA,EAAI,WAAU,2DAA2D,CAAA,EAC5E,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,CAAC;AACDI,EAAa,cAAc;AAE3B,MAAMQ,IAAoBjB,EAAM,WAG9B,CAAC,EAAE,GAAGG,KAASC,wBACd,OAAI,EAAA,KAAAA,GAAU,MAAK,aAAa,GAAGD,GAClC,UAAC,gBAAAE,EAAAa,GAAA,CAAU,CAAA,GACb,CACD;AACDD,EAAkB,cAAc;"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsxs as f, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import * as m from "react";
|
|
3
|
-
import { Button as s } from "./button.es.js";
|
|
4
|
-
import { cn as r } from "../../utils/index.es.js";
|
|
5
|
-
const p = m.forwardRef(
|
|
6
|
-
({ className: a, type: l, icon: e, buttonProps: i, ...o }, n) => /* @__PURE__ */ f("div", { className: r("relative flex gap-1 items-center", a), children: [
|
|
7
|
-
e && /* @__PURE__ */ t(e, { className: "absolute left-2 size-icon text-muted-foreground" }),
|
|
8
|
-
/* @__PURE__ */ t(
|
|
9
|
-
"input",
|
|
10
|
-
{
|
|
11
|
-
type: l,
|
|
12
|
-
className: r(
|
|
13
|
-
"flex h-input input file:border-0 file:bg-transparent file:body file:font-medium w-full",
|
|
14
|
-
e ? "pl-8" : ""
|
|
15
|
-
),
|
|
16
|
-
ref: n,
|
|
17
|
-
...o
|
|
18
|
-
}
|
|
19
|
-
),
|
|
20
|
-
i && /* @__PURE__ */ t(s, { ...i, variant: "outline", size: "icon" })
|
|
21
|
-
] })
|
|
22
|
-
);
|
|
23
|
-
p.displayName = "Input";
|
|
24
|
-
export {
|
|
25
|
-
p as Input
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=input.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.es.js","sources":["../../../lib/components/ui/input.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { Button, type ButtonProps } from \"@/components/ui/button\";\nimport { cn } from \"@/utils\";\nimport type { LucideIcon } from \"lucide-react\";\n\nexport interface InputProps\n extends React.InputHTMLAttributes<HTMLInputElement> {\n icon?: LucideIcon;\n buttonProps?: ButtonProps\n}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, icon: Icon, buttonProps, ...props }, ref) => {\n return (\n <div className={cn(\"relative flex gap-1 items-center\", className)}>\n {Icon && <Icon className=\"absolute left-2 size-icon text-muted-foreground\" />}\n <input\n type={type}\n className={cn(\n \"flex h-input input file:border-0 file:bg-transparent file:body file:font-medium w-full\",\n Icon ? \"pl-8\" : \"\",\n )}\n ref={ref}\n {...props}\n />\n {buttonProps && <Button {...buttonProps} variant={'outline'} size={'icon'} />}\n </div>\n );\n }\n);\nInput.displayName = \"Input\";\n\nexport { Input };\n"],"names":["Input","React","className","type","Icon","buttonProps","props","ref","cn","jsx","Button"],"mappings":";;;;AAYA,MAAMA,IAAQC,EAAM;AAAA,EAClB,CAAC,EAAE,WAAAC,GAAW,MAAAC,GAAM,MAAMC,GAAM,aAAAC,GAAa,GAAGC,EAAM,GAAGC,wBAEpD,OAAI,EAAA,WAAWC,EAAG,oCAAoCN,CAAS,GAC7D,UAAA;AAAA,IAAQE,KAAA,gBAAAK,EAACL,GAAK,EAAA,WAAU,kDAAkD,CAAA;AAAA,IAC3E,gBAAAK;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAAN;AAAA,QACA,WAAWK;AAAA,UACT;AAAA,UACAJ,IAAO,SAAS;AAAA,QAClB;AAAA,QACA,KAAAG;AAAA,QACC,GAAGD;AAAA,MAAA;AAAA,IACN;AAAA,IACCD,uBAAgBK,GAAQ,EAAA,GAAGL,GAAa,SAAS,WAAW,MAAM,OAAQ,CAAA;AAAA,EAAA,GAC7E;AAGN;AACAL,EAAM,cAAc;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { buttonVariants as r } from "./button.es.js";
|
|
3
|
-
import { cn as a } from "../../utils/index.es.js";
|
|
4
|
-
import { Link as e } from "@tanstack/react-router";
|
|
5
|
-
function l(t) {
|
|
6
|
-
const i = t.icon;
|
|
7
|
-
return /* @__PURE__ */ n(
|
|
8
|
-
e,
|
|
9
|
-
{
|
|
10
|
-
className: a(r({ variant: t.variant, size: t.size }), "flex gap-2"),
|
|
11
|
-
to: t.to,
|
|
12
|
-
children: [
|
|
13
|
-
i && /* @__PURE__ */ o(i, { className: "size-4" }),
|
|
14
|
-
t.children
|
|
15
|
-
]
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
l as LinkButton
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=link-button.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link-button.es.js","sources":["../../../lib/components/ui/link-button.tsx"],"sourcesContent":["import { buttonVariants } from '@/components/ui/button';\nimport { cn } from '@/utils';\nimport { Link } from '@tanstack/react-router';\nimport type { VariantProps } from 'class-variance-authority';\nimport type { LucideIcon } from 'lucide-react';\n/**\n * TODO, this should be in the host project?\n * @param props buttonVariants\n * @returns Button as Tanstack Link\n */\nexport function LinkButton(\n props: VariantProps<typeof buttonVariants> & {\n icon?: LucideIcon;\n to: string;\n children: React.ReactNode;\n },\n) {\n const Icon = props.icon;\n return (\n <Link\n className={cn(buttonVariants({ variant: props.variant, size: props.size }), 'flex gap-2')}\n to={props.to}\n >\n {Icon && <Icon className=\"size-4\" />}\n {props.children}\n </Link>\n );\n}\n"],"names":["LinkButton","props","Icon","jsxs","Link","cn","buttonVariants","jsx"],"mappings":";;;;AAUO,SAASA,EACdC,GAKA;AACA,QAAMC,IAAOD,EAAM;AAEjB,SAAA,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGC,EAAe,EAAE,SAASL,EAAM,SAAS,MAAMA,EAAM,KAAM,CAAA,GAAG,YAAY;AAAA,MACxF,IAAIA,EAAM;AAAA,MAET,UAAA;AAAA,QAAQC,KAAA,gBAAAK,EAACL,GAAK,EAAA,WAAU,SAAS,CAAA;AAAA,QACjCD,EAAM;AAAA,MAAA;AAAA,IAAA;AAAA,EACT;AAEJ;"}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as i, jsx as e, Fragment as j } from "react/jsx-runtime";
|
|
3
|
-
import { Badge as z } from "./badge.es.js";
|
|
4
|
-
import { Button as E } from "./button.es.js";
|
|
5
|
-
import { CommandInput as I, CommandList as k, CommandEmpty as P, CommandGroup as h, CommandItem as d, CommandSeparator as v } from "./command.es.js";
|
|
6
|
-
import "./accordion.es.js";
|
|
7
|
-
import "./avatar.es.js";
|
|
8
|
-
import "./breadcrumb.es.js";
|
|
9
|
-
import "./calendar.es.js";
|
|
10
|
-
import "./card.es.js";
|
|
11
|
-
import "./chart.es.js";
|
|
12
|
-
import "./checkbox.es.js";
|
|
13
|
-
import "@radix-ui/react-collapsible";
|
|
14
|
-
import { XIcon as F, ChevronDown as g, Command as D, CheckIcon as O } from "lucide-react";
|
|
15
|
-
import * as c from "react";
|
|
16
|
-
import "./dialog.es.js";
|
|
17
|
-
import "./drawer.es.js";
|
|
18
|
-
import "./dropdown-menu.es.js";
|
|
19
|
-
import "./form.es.js";
|
|
20
|
-
import "./input.es.js";
|
|
21
|
-
import "./input-otp.es.js";
|
|
22
|
-
import "./label.es.js";
|
|
23
|
-
import { cn as B } from "../../utils/index.es.js";
|
|
24
|
-
import "@tanstack/react-router";
|
|
25
|
-
import "./navigation-menu.es.js";
|
|
26
|
-
import "./pagination.es.js";
|
|
27
|
-
import "./password-input.es.js";
|
|
28
|
-
import "./popover.es.js";
|
|
29
|
-
import "./radio-group.es.js";
|
|
30
|
-
import "./select.es.js";
|
|
31
|
-
import { Separator as x } from "./separator.es.js";
|
|
32
|
-
import "./sheet.es.js";
|
|
33
|
-
import "./sidebar.es.js";
|
|
34
|
-
import "sonner";
|
|
35
|
-
import "./table.es.js";
|
|
36
|
-
import "./tabs.es.js";
|
|
37
|
-
import "./textarea.es.js";
|
|
38
|
-
import "./tooltip.es.js";
|
|
39
|
-
import { Popover as K, PopoverTrigger as R, PopoverContent as M } from "@radix-ui/react-popover";
|
|
40
|
-
import { cva as A } from "class-variance-authority";
|
|
41
|
-
A(
|
|
42
|
-
"m-1 transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-110 duration-300",
|
|
43
|
-
{
|
|
44
|
-
variants: {
|
|
45
|
-
variant: {
|
|
46
|
-
default: "border-foreground/10 drop-shadow-md text-foreground bg-card hover:bg-card/80",
|
|
47
|
-
secondary: "border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
48
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
49
|
-
inverted: "inverted"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
defaultVariants: {
|
|
53
|
-
variant: "default"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
const G = c.forwardRef(
|
|
58
|
-
({
|
|
59
|
-
className: L,
|
|
60
|
-
variant: T,
|
|
61
|
-
asChild: X = !1,
|
|
62
|
-
options: p,
|
|
63
|
-
defaultValue: m,
|
|
64
|
-
onValueChange: l,
|
|
65
|
-
disabled: _,
|
|
66
|
-
placeholder: y,
|
|
67
|
-
animation: q = 0,
|
|
68
|
-
...b
|
|
69
|
-
}, N) => {
|
|
70
|
-
const [t, s] = c.useState(m || []), n = c.useRef(new Set(t)), [u, a] = c.useState(!1);
|
|
71
|
-
c.useEffect(() => {
|
|
72
|
-
s(m || []), n.current = new Set(m);
|
|
73
|
-
}, [m]);
|
|
74
|
-
const w = (r) => {
|
|
75
|
-
r.key === "Enter" ? a(!0) : r.key === "Backspace" && !r.target.value && (t.pop(), s([...t]), n.current.delete(t[t.length - 1]), l([...t]));
|
|
76
|
-
}, C = (r) => {
|
|
77
|
-
n.current.has(r) ? (n.current.delete(r), s(t.filter((o) => o !== r))) : (n.current.add(r), s([...t, r])), l(Array.from(n.current));
|
|
78
|
-
};
|
|
79
|
-
return /* @__PURE__ */ i(K, { open: u, onOpenChange: a, children: [
|
|
80
|
-
/* @__PURE__ */ e(R, { asChild: !0, children: /* @__PURE__ */ e(
|
|
81
|
-
E,
|
|
82
|
-
{
|
|
83
|
-
ref: N,
|
|
84
|
-
...b,
|
|
85
|
-
onClick: () => a(!u),
|
|
86
|
-
variant: "ghost",
|
|
87
|
-
className: "flex w-full p-1 rounded-md border items-center justify-between bg-inherit hover:bg-card",
|
|
88
|
-
children: t.length > 0 ? /* @__PURE__ */ i("div", { className: "flex justify-between items-center w-full", children: [
|
|
89
|
-
/* @__PURE__ */ e("div", { className: "flex flex-wrap items-center", children: t.map((r) => {
|
|
90
|
-
const o = p.find((S) => S.value === r), f = o == null ? void 0 : o.icon;
|
|
91
|
-
return /* @__PURE__ */ i(z, { children: [
|
|
92
|
-
f && /* @__PURE__ */ e(f, { className: "size-4 mr-2" }),
|
|
93
|
-
o == null ? void 0 : o.label
|
|
94
|
-
] }, r);
|
|
95
|
-
}) }),
|
|
96
|
-
/* @__PURE__ */ i("div", { className: "flex items-center justify-between", children: [
|
|
97
|
-
/* @__PURE__ */ e(
|
|
98
|
-
F,
|
|
99
|
-
{
|
|
100
|
-
className: "size-icon mx-2 cursor-pointer text-muted-foreground",
|
|
101
|
-
onClick: (r) => {
|
|
102
|
-
s([]), n.current.clear(), l([]), r.stopPropagation();
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
),
|
|
106
|
-
/* @__PURE__ */ e(x, { orientation: "vertical", className: "flex min-h-6 h-full" }),
|
|
107
|
-
/* @__PURE__ */ e(g, { className: "size-icon mx-2 cursor-pointer text-muted-foreground" })
|
|
108
|
-
] })
|
|
109
|
-
] }) : /* @__PURE__ */ i("div", { className: "flex items-center justify-between w-full mx-auto", children: [
|
|
110
|
-
/* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground mx-3", children: y }),
|
|
111
|
-
/* @__PURE__ */ e(g, { className: "size-icon cursor-pointer text-muted-foreground mx-2" })
|
|
112
|
-
] })
|
|
113
|
-
}
|
|
114
|
-
) }),
|
|
115
|
-
/* @__PURE__ */ e(
|
|
116
|
-
M,
|
|
117
|
-
{
|
|
118
|
-
className: "w-[200px] p-0 drop-shadow-xs",
|
|
119
|
-
align: "start",
|
|
120
|
-
onEscapeKeyDown: () => a(!1),
|
|
121
|
-
children: /* @__PURE__ */ i(D, { children: [
|
|
122
|
-
/* @__PURE__ */ e(I, { placeholder: "Search...", onKeyDown: w }),
|
|
123
|
-
/* @__PURE__ */ i(k, { children: [
|
|
124
|
-
/* @__PURE__ */ e(P, { children: "No results found." }),
|
|
125
|
-
/* @__PURE__ */ e(h, { children: p.map((r) => {
|
|
126
|
-
const o = n.current.has(r.value);
|
|
127
|
-
return /* @__PURE__ */ i(
|
|
128
|
-
d,
|
|
129
|
-
{
|
|
130
|
-
onSelect: () => C(r.value),
|
|
131
|
-
style: {
|
|
132
|
-
pointerEvents: "auto",
|
|
133
|
-
opacity: 1
|
|
134
|
-
},
|
|
135
|
-
className: "cursor-pointer",
|
|
136
|
-
children: [
|
|
137
|
-
/* @__PURE__ */ e(
|
|
138
|
-
"div",
|
|
139
|
-
{
|
|
140
|
-
className: B(
|
|
141
|
-
"mr-2 flex size-4 items-center justify-center rounded-sm border border-primary",
|
|
142
|
-
o ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
143
|
-
),
|
|
144
|
-
children: /* @__PURE__ */ e(O, { className: "size-4" })
|
|
145
|
-
}
|
|
146
|
-
),
|
|
147
|
-
r.icon && /* @__PURE__ */ e(r.icon, { className: "mr-2 size-4 text-muted-foreground" }),
|
|
148
|
-
/* @__PURE__ */ e("span", { children: r.label })
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
|
-
r.value
|
|
152
|
-
);
|
|
153
|
-
}) }),
|
|
154
|
-
/* @__PURE__ */ e(v, {}),
|
|
155
|
-
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ i("div", { className: "flex items-center justify-between", children: [
|
|
156
|
-
t.length > 0 && /* @__PURE__ */ i(j, { children: [
|
|
157
|
-
/* @__PURE__ */ e(
|
|
158
|
-
d,
|
|
159
|
-
{
|
|
160
|
-
onSelect: () => {
|
|
161
|
-
s([]), n.current.clear(), l([]);
|
|
162
|
-
},
|
|
163
|
-
style: {
|
|
164
|
-
pointerEvents: "auto",
|
|
165
|
-
opacity: 1
|
|
166
|
-
},
|
|
167
|
-
className: "flex-1 justify-center cursor-pointer",
|
|
168
|
-
children: "Clear"
|
|
169
|
-
}
|
|
170
|
-
),
|
|
171
|
-
/* @__PURE__ */ e(x, { orientation: "vertical", className: "flex min-h-6 h-full" })
|
|
172
|
-
] }),
|
|
173
|
-
/* @__PURE__ */ e(v, {}),
|
|
174
|
-
/* @__PURE__ */ e(
|
|
175
|
-
d,
|
|
176
|
-
{
|
|
177
|
-
onSelect: () => a(!1),
|
|
178
|
-
style: {
|
|
179
|
-
pointerEvents: "auto",
|
|
180
|
-
opacity: 1
|
|
181
|
-
},
|
|
182
|
-
className: "flex-1 justify-center cursor-pointer",
|
|
183
|
-
children: "Close"
|
|
184
|
-
}
|
|
185
|
-
)
|
|
186
|
-
] }) })
|
|
187
|
-
] })
|
|
188
|
-
] })
|
|
189
|
-
}
|
|
190
|
-
)
|
|
191
|
-
] });
|
|
192
|
-
}
|
|
193
|
-
);
|
|
194
|
-
G.displayName = "MultiSelectFormField";
|
|
195
|
-
export {
|
|
196
|
-
G as default
|
|
197
|
-
};
|
|
198
|
-
//# sourceMappingURL=mutli-select.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mutli-select.es.js","sources":["../../../lib/components/ui/mutli-select.tsx"],"sourcesContent":["// TODO https://headlessui.com/react/listbox#selecting-multiple-values??\n'use client';\nimport { Badge } from '@/components/ui/badge';\nimport { Button } from '@/components/ui/button';\nimport {\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n} from '@/components/ui/command';\nimport { Separator } from '@/index';\nimport { cn } from '@/utils';\nimport { Popover, PopoverContent, PopoverTrigger } from '@radix-ui/react-popover';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { CheckIcon, ChevronDown, Command, XIcon } from 'lucide-react';\nimport * as React from 'react';\n\nconst multiSelectVariants = cva(\n 'm-1 transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-110 duration-300',\n {\n variants: {\n variant: {\n default: 'border-foreground/10 drop-shadow-md text-foreground bg-card hover:bg-card/80',\n secondary:\n 'border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80',\n destructive:\n 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',\n inverted: 'inverted',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\ninterface MultiSelectFormFieldProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof multiSelectVariants> {\n asChild?: boolean;\n options: {\n label: string;\n value: string;\n icon?: React.ComponentType<{ className?: string }>;\n }[];\n defaultValue?: string[];\n disabled?: boolean;\n placeholder: string;\n className?: string;\n animation?: number;\n onValueChange: (value: string[]) => void;\n}\n\nconst MultiSelectFormField = React.forwardRef<HTMLButtonElement, MultiSelectFormFieldProps>(\n (\n {\n className,\n variant,\n asChild = false,\n options,\n defaultValue,\n onValueChange,\n disabled,\n placeholder,\n animation = 0,\n ...props\n },\n ref,\n ) => {\n const [selectedValues, setSelectedValues] = React.useState<string[]>(defaultValue || []);\n const selectedValuesSet = React.useRef(new Set(selectedValues));\n const [isPopoverOpen, setIsPopoverOpen] = React.useState(false);\n\n React.useEffect(() => {\n setSelectedValues(defaultValue || []);\n selectedValuesSet.current = new Set(defaultValue);\n }, [defaultValue]);\n\n const handleInputKeyDown = (event: any) => {\n if (event.key === 'Enter') {\n setIsPopoverOpen(true);\n } else if (event.key === 'Backspace' && !event.target.value) {\n selectedValues.pop();\n setSelectedValues([...selectedValues]);\n selectedValuesSet.current.delete(selectedValues[selectedValues.length - 1]);\n onValueChange([...selectedValues]);\n }\n };\n\n const toggleOption = (value: string) => {\n if (selectedValuesSet.current.has(value)) {\n selectedValuesSet.current.delete(value);\n setSelectedValues(selectedValues.filter((v) => v !== value));\n } else {\n selectedValuesSet.current.add(value);\n setSelectedValues([...selectedValues, value]);\n }\n onValueChange(Array.from(selectedValuesSet.current));\n };\n\n return (\n <Popover open={isPopoverOpen} onOpenChange={setIsPopoverOpen}>\n <PopoverTrigger asChild>\n <Button\n ref={ref}\n {...props}\n onClick={() => setIsPopoverOpen(!isPopoverOpen)}\n variant={'ghost'}\n className=\"flex w-full p-1 rounded-md border items-center justify-between bg-inherit hover:bg-card\"\n >\n {selectedValues.length > 0 ? (\n <div className=\"flex justify-between items-center w-full\">\n <div className=\"flex flex-wrap items-center\">\n {selectedValues.map((value) => {\n const option = options.find((o) => o.value === value);\n const IconComponent = option?.icon;\n return (\n <Badge key={value}>\n {IconComponent && <IconComponent className=\"size-4 mr-2\" />}\n {option?.label}\n </Badge>\n );\n })}\n </div>\n <div className=\"flex items-center justify-between\">\n <XIcon\n className=\"size-icon mx-2 cursor-pointer text-muted-foreground\"\n onClick={(event) => {\n setSelectedValues([]);\n selectedValuesSet.current.clear();\n onValueChange([]);\n event.stopPropagation();\n }}\n />\n <Separator orientation=\"vertical\" className=\"flex min-h-6 h-full\" />\n <ChevronDown className=\"size-icon mx-2 cursor-pointer text-muted-foreground\" />\n </div>\n </div>\n ) : (\n <div className=\"flex items-center justify-between w-full mx-auto\">\n <span className=\"text-sm text-muted-foreground mx-3\">{placeholder}</span>\n <ChevronDown className=\"size-icon cursor-pointer text-muted-foreground mx-2\" />\n </div>\n )}\n </Button>\n </PopoverTrigger>\n <PopoverContent\n className=\"w-[200px] p-0 drop-shadow-xs\"\n align=\"start\"\n onEscapeKeyDown={() => setIsPopoverOpen(false)}\n >\n <Command>\n <CommandInput placeholder=\"Search...\" onKeyDown={handleInputKeyDown} />\n <CommandList>\n <CommandEmpty>No results found.</CommandEmpty>\n <CommandGroup>\n {options.map((option) => {\n const isSelected = selectedValuesSet.current.has(option.value);\n return (\n <CommandItem\n key={option.value}\n onSelect={() => toggleOption(option.value)}\n style={{\n pointerEvents: 'auto',\n opacity: 1,\n }}\n className=\"cursor-pointer\"\n >\n <div\n className={cn(\n 'mr-2 flex size-4 items-center justify-center rounded-sm border border-primary',\n isSelected\n ? 'bg-primary text-primary-foreground'\n : 'opacity-50 [&_svg]:invisible',\n )}\n >\n <CheckIcon className=\"size-4\" />\n </div>\n {option.icon && (\n <option.icon className=\"mr-2 size-4 text-muted-foreground\" />\n )}\n <span>{option.label}</span>\n </CommandItem>\n );\n })}\n </CommandGroup>\n <CommandSeparator />\n <CommandGroup>\n <div className=\"flex items-center justify-between\">\n {selectedValues.length > 0 && (\n <>\n <CommandItem\n onSelect={() => {\n setSelectedValues([]);\n selectedValuesSet.current.clear();\n onValueChange([]);\n }}\n style={{\n pointerEvents: 'auto',\n opacity: 1,\n }}\n className=\"flex-1 justify-center cursor-pointer\"\n >\n Clear\n </CommandItem>\n <Separator orientation=\"vertical\" className=\"flex min-h-6 h-full\" />\n </>\n )}\n <CommandSeparator />\n <CommandItem\n onSelect={() => setIsPopoverOpen(false)}\n style={{\n pointerEvents: 'auto',\n opacity: 1,\n }}\n className=\"flex-1 justify-center cursor-pointer\"\n >\n Close\n </CommandItem>\n </div>\n </CommandGroup>\n </CommandList>\n </Command>\n </PopoverContent>\n </Popover>\n );\n },\n);\n\nMultiSelectFormField.displayName = 'MultiSelectFormField';\n\nexport default MultiSelectFormField;\n"],"names":["cva","MultiSelectFormField","React","className","variant","asChild","options","defaultValue","onValueChange","disabled","placeholder","animation","props","ref","selectedValues","setSelectedValues","selectedValuesSet","isPopoverOpen","setIsPopoverOpen","handleInputKeyDown","event","toggleOption","value","v","jsxs","Popover","jsx","PopoverTrigger","Button","option","o","IconComponent","Badge","XIcon","Separator","ChevronDown","PopoverContent","Command","CommandInput","CommandList","CommandEmpty","CommandGroup","isSelected","CommandItem","cn","CheckIcon","CommandSeparator","Fragment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmB4BA;AAAA,EAC1B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,WACE;AAAA,QACF,aACE;AAAA,QACF,UAAU;AAAA,MAAA;AAAA,IAEd;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAmBA,MAAMC,IAAuBC,EAAM;AAAA,EACjC,CACE;AAAA,IACE,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,SAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,GAAGC;AAAA,KAELC,MACG;AACG,UAAA,CAACC,GAAgBC,CAAiB,IAAIb,EAAM,SAAmBK,KAAgB,EAAE,GACjFS,IAAoBd,EAAM,OAAO,IAAI,IAAIY,CAAc,CAAC,GACxD,CAACG,GAAeC,CAAgB,IAAIhB,EAAM,SAAS,EAAK;AAE9D,IAAAA,EAAM,U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AA;AAAA,kBAED;AAAA,kBACC,gBAAAkB,EAAAQ,GAAA,EAAU,aAAY,YAAW,WAAU,sBAAsB,CAAA;AAAA,gBAAA,GACpE;AAAA,kCAEDY,GAAiB,EAAA;AAAA,gBAClB,gBAAApB;AAAA,kBAACiB;AAAA,kBAAA;AAAA,oBACC,UAAU,MAAMzB,EAAiB,EAAK;AAAA,oBACtC,OAAO;AAAA,sBACL,eAAe;AAAA,sBACf,SAAS;AAAA,oBACX;AAAA,oBACA,WAAU;AAAA,oBACX,UAAA;AAAA,kBAAA;AAAA,gBAAA;AAAA,cAED,EAAA,CACF,EACF,CAAA;AAAA,YAAA,EACF,CAAA;AAAA,UAAA,EACF,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACF,GACF;AAAA,EAAA;AAGN;AAEAjB,EAAqB,cAAc;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import * as s from "react";
|
|
4
|
-
import { EyeIcon as n, EyeOffIcon as p, KeySquare as c } from "lucide-react";
|
|
5
|
-
import { Input as m } from "./input.es.js";
|
|
6
|
-
const f = s.forwardRef(
|
|
7
|
-
({ className: i, ...t }, r) => {
|
|
8
|
-
const [o, e] = s.useState(!1);
|
|
9
|
-
return /* @__PURE__ */ a(m, { icon: c, type: o ? "text" : "password", ref: r, ...t, buttonProps: {
|
|
10
|
-
onClick: () => e(!o),
|
|
11
|
-
icon: () => o ? n : p
|
|
12
|
-
} });
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
f.displayName = "PasswordInput";
|
|
16
|
-
export {
|
|
17
|
-
f as PasswordInput
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=password-input.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"password-input.es.js","sources":["../../../lib/components/ui/password-input.tsx"],"sourcesContent":["'use client';\nimport * as React from 'react';\n\nimport { EyeIcon, EyeOffIcon, KeySquare } from 'lucide-react';\nimport { Input, InputProps } from './input';\n\nconst PasswordInput = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, ...props }, ref) => {\n const [showPassword, setShowPassword] = React.useState<boolean>(false);\n return (\n <Input icon={KeySquare} type={showPassword ? 'text' : 'password'} ref={ref} {...props} buttonProps={\n {\n onClick: () => setShowPassword(!showPassword),\n icon: () => showPassword ? EyeIcon : EyeOffIcon\n }\n } />\n );\n },\n);\nPasswordInput.displayName = 'PasswordInput';\n\nexport { PasswordInput };\n"],"names":["PasswordInput","React","className","props","ref","showPassword","setShowPassword","jsx","Input","KeySquare","EyeIcon","EyeOffIcon"],"mappings":";;;;;AAMA,MAAMA,IAAgBC,EAAM;AAAA,EAC1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAAQ;AAChC,UAAM,CAACC,GAAcC,CAAe,IAAIL,EAAM,SAAkB,EAAK;AAEnE,WAAA,gBAAAM,EAACC,GAAM,EAAA,MAAMC,GAAW,MAAMJ,IAAe,SAAS,YAAY,KAAAD,GAAW,GAAGD,GAAO,aACrF;AAAA,MACE,SAAS,MAAMG,EAAgB,CAACD,CAAY;AAAA,MAC5C,MAAM,MAAMA,IAAeK,IAAUC;AAAA,IAAA,GAEvC;AAAA,EAAA;AAGR;AACAX,EAAc,cAAc;"}
|