@hexclave/ui 1.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/LICENSE +7 -0
- package/dist/chunk-BE-pF4vm.js +34 -0
- package/dist/components/action-dialog.d.ts +33 -0
- package/dist/components/action-dialog.d.ts.map +1 -0
- package/dist/components/action-dialog.js +93 -0
- package/dist/components/action-dialog.js.map +1 -0
- package/dist/components/brand-icons.d.ts +78 -0
- package/dist/components/brand-icons.d.ts.map +1 -0
- package/dist/components/brand-icons.js +336 -0
- package/dist/components/brand-icons.js.map +1 -0
- package/dist/components/browser-frame/index.d.ts +21 -0
- package/dist/components/browser-frame/index.d.ts.map +1 -0
- package/dist/components/browser-frame/index.js +48 -0
- package/dist/components/browser-frame/index.js.map +1 -0
- package/dist/components/copy-button.d.ts +22 -0
- package/dist/components/copy-button.d.ts.map +1 -0
- package/dist/components/copy-button.js +42 -0
- package/dist/components/copy-button.js.map +1 -0
- package/dist/components/copy-field.d.ts +18 -0
- package/dist/components/copy-field.d.ts.map +1 -0
- package/dist/components/copy-field.js +42 -0
- package/dist/components/copy-field.js.map +1 -0
- package/dist/components/data-table/cells.d.ts +35 -0
- package/dist/components/data-table/cells.d.ts.map +1 -0
- package/dist/components/data-table/cells.js +114 -0
- package/dist/components/data-table/cells.js.map +1 -0
- package/dist/components/data-table/column-header.d.ts +16 -0
- package/dist/components/data-table/column-header.d.ts.map +1 -0
- package/dist/components/data-table/column-header.js +48 -0
- package/dist/components/data-table/column-header.js.map +1 -0
- package/dist/components/data-table/data-table.d.ts +59 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-table/data-table.js +193 -0
- package/dist/components/data-table/data-table.js.map +1 -0
- package/dist/components/data-table/faceted-filter.d.ts +24 -0
- package/dist/components/data-table/faceted-filter.d.ts.map +1 -0
- package/dist/components/data-table/faceted-filter.js +88 -0
- package/dist/components/data-table/faceted-filter.js.map +1 -0
- package/dist/components/data-table/index.d.ts +10 -0
- package/dist/components/data-table/index.js +73 -0
- package/dist/components/data-table/pagination.d.ts +13 -0
- package/dist/components/data-table/pagination.d.ts.map +1 -0
- package/dist/components/data-table/pagination.js +78 -0
- package/dist/components/data-table/pagination.js.map +1 -0
- package/dist/components/data-table/toolbar-items.d.ts +13 -0
- package/dist/components/data-table/toolbar-items.d.ts.map +1 -0
- package/dist/components/data-table/toolbar-items.js +18 -0
- package/dist/components/data-table/toolbar-items.js.map +1 -0
- package/dist/components/data-table/toolbar.d.ts +23 -0
- package/dist/components/data-table/toolbar.d.ts.map +1 -0
- package/dist/components/data-table/toolbar.js +71 -0
- package/dist/components/data-table/toolbar.js.map +1 -0
- package/dist/components/data-table/utils.d.ts +6 -0
- package/dist/components/data-table/utils.d.ts.map +1 -0
- package/dist/components/data-table/utils.js +14 -0
- package/dist/components/data-table/utils.js.map +1 -0
- package/dist/components/data-table/view-options.d.ts +19 -0
- package/dist/components/data-table/view-options.d.ts.map +1 -0
- package/dist/components/data-table/view-options.js +39 -0
- package/dist/components/data-table/view-options.js.map +1 -0
- package/dist/components/simple-tooltip.d.ts +14 -0
- package/dist/components/simple-tooltip.d.ts.map +1 -0
- package/dist/components/simple-tooltip.js +32 -0
- package/dist/components/simple-tooltip.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +17 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +48 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert.d.ts +19 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +43 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +8 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +13 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +16 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +37 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +17 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +32 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +41 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +75 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button.d.ts +32 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +71 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +18 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +52 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +27 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +58 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +10 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +28 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +10 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +17 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/command.d.ts +28 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +91 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +51 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +103 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +45 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +77 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +54 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +156 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/form.d.ts +42 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/form.js +107 -0
- package/dist/components/ui/form.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +12 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +29 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/inline-code.d.ts +9 -0
- package/dist/components/ui/inline-code.d.ts.map +1 -0
- package/dist/components/ui/inline-code.js +48 -0
- package/dist/components/ui/inline-code.js.map +1 -0
- package/dist/components/ui/input-otp.d.ts +20 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input-otp.js +53 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/input.d.ts +24 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +57 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.d.ts +15 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +32 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/menubar.d.ts +38 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar.js +118 -0
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +29 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +79 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/password-input.d.ts +11 -0
- package/dist/components/ui/password-input.d.ts.map +1 -0
- package/dist/components/ui/password-input.js +46 -0
- package/dist/components/ui/password-input.js.map +1 -0
- package/dist/components/ui/popover.d.ts +13 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +31 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +10 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +27 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +13 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +39 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/resizable.d.ts +36 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +30 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +13 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +40 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.d.ts +33 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +91 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +10 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +25 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +44 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +82 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +12 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +24 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +10 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +27 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +11 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +27 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +14 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +54 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +30 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +71 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +17 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +39 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +10 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +21 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toast.d.ts +32 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +74 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/toaster.d.ts +7 -0
- package/dist/components/ui/toaster.d.ts.map +1 -0
- package/dist/components/ui/toaster.js +29 -0
- package/dist/components/ui/toaster.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +21 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +49 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +19 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +46 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +15 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +34 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/ui/typography.d.ts +14 -0
- package/dist/components/ui/typography.d.ts.map +1 -0
- package/dist/components/ui/typography.js +50 -0
- package/dist/components/ui/typography.js.map +1 -0
- package/dist/components/ui/use-toast.d.ts +50 -0
- package/dist/components/ui/use-toast.d.ts.map +1 -0
- package/dist/components/ui/use-toast.js +127 -0
- package/dist/components/ui/use-toast.js.map +1 -0
- package/dist/esm/components/action-dialog.d.ts +33 -0
- package/dist/esm/components/action-dialog.d.ts.map +1 -0
- package/dist/esm/components/action-dialog.js +90 -0
- package/dist/esm/components/action-dialog.js.map +1 -0
- package/dist/esm/components/brand-icons.d.ts +75 -0
- package/dist/esm/components/brand-icons.d.ts.map +1 -0
- package/dist/esm/components/brand-icons.js +320 -0
- package/dist/esm/components/brand-icons.js.map +1 -0
- package/dist/esm/components/browser-frame/index.d.ts +21 -0
- package/dist/esm/components/browser-frame/index.d.ts.map +1 -0
- package/dist/esm/components/browser-frame/index.js +45 -0
- package/dist/esm/components/browser-frame/index.js.map +1 -0
- package/dist/esm/components/copy-button.d.ts +22 -0
- package/dist/esm/components/copy-button.d.ts.map +1 -0
- package/dist/esm/components/copy-button.js +39 -0
- package/dist/esm/components/copy-button.js.map +1 -0
- package/dist/esm/components/copy-field.d.ts +18 -0
- package/dist/esm/components/copy-field.d.ts.map +1 -0
- package/dist/esm/components/copy-field.js +40 -0
- package/dist/esm/components/copy-field.js.map +1 -0
- package/dist/esm/components/data-table/cells.d.ts +35 -0
- package/dist/esm/components/data-table/cells.d.ts.map +1 -0
- package/dist/esm/components/data-table/cells.js +107 -0
- package/dist/esm/components/data-table/cells.js.map +1 -0
- package/dist/esm/components/data-table/column-header.d.ts +16 -0
- package/dist/esm/components/data-table/column-header.d.ts.map +1 -0
- package/dist/esm/components/data-table/column-header.js +46 -0
- package/dist/esm/components/data-table/column-header.js.map +1 -0
- package/dist/esm/components/data-table/data-table.d.ts +59 -0
- package/dist/esm/components/data-table/data-table.d.ts.map +1 -0
- package/dist/esm/components/data-table/data-table.js +188 -0
- package/dist/esm/components/data-table/data-table.js.map +1 -0
- package/dist/esm/components/data-table/faceted-filter.d.ts +24 -0
- package/dist/esm/components/data-table/faceted-filter.d.ts.map +1 -0
- package/dist/esm/components/data-table/faceted-filter.js +85 -0
- package/dist/esm/components/data-table/faceted-filter.js.map +1 -0
- package/dist/esm/components/data-table/index.d.ts +9 -0
- package/dist/esm/components/data-table/index.js +19 -0
- package/dist/esm/components/data-table/pagination.d.ts +13 -0
- package/dist/esm/components/data-table/pagination.d.ts.map +1 -0
- package/dist/esm/components/data-table/pagination.js +76 -0
- package/dist/esm/components/data-table/pagination.js.map +1 -0
- package/dist/esm/components/data-table/toolbar-items.d.ts +13 -0
- package/dist/esm/components/data-table/toolbar-items.d.ts.map +1 -0
- package/dist/esm/components/data-table/toolbar-items.js +16 -0
- package/dist/esm/components/data-table/toolbar-items.js.map +1 -0
- package/dist/esm/components/data-table/toolbar.d.ts +23 -0
- package/dist/esm/components/data-table/toolbar.d.ts.map +1 -0
- package/dist/esm/components/data-table/toolbar.js +69 -0
- package/dist/esm/components/data-table/toolbar.js.map +1 -0
- package/dist/esm/components/data-table/utils.d.ts +6 -0
- package/dist/esm/components/data-table/utils.d.ts.map +1 -0
- package/dist/esm/components/data-table/utils.js +11 -0
- package/dist/esm/components/data-table/utils.js.map +1 -0
- package/dist/esm/components/data-table/view-options.d.ts +19 -0
- package/dist/esm/components/data-table/view-options.d.ts.map +1 -0
- package/dist/esm/components/data-table/view-options.js +37 -0
- package/dist/esm/components/data-table/view-options.js.map +1 -0
- package/dist/esm/components/simple-tooltip.d.ts +14 -0
- package/dist/esm/components/simple-tooltip.d.ts.map +1 -0
- package/dist/esm/components/simple-tooltip.js +30 -0
- package/dist/esm/components/simple-tooltip.js.map +1 -0
- package/dist/esm/components/ui/accordion.d.ts +17 -0
- package/dist/esm/components/ui/accordion.d.ts.map +1 -0
- package/dist/esm/components/ui/accordion.js +41 -0
- package/dist/esm/components/ui/accordion.js.map +1 -0
- package/dist/esm/components/ui/alert.d.ts +19 -0
- package/dist/esm/components/ui/alert.d.ts.map +1 -0
- package/dist/esm/components/ui/alert.js +38 -0
- package/dist/esm/components/ui/alert.js.map +1 -0
- package/dist/esm/components/ui/aspect-ratio.d.ts +8 -0
- package/dist/esm/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/esm/components/ui/aspect-ratio.js +10 -0
- package/dist/esm/components/ui/aspect-ratio.js.map +1 -0
- package/dist/esm/components/ui/avatar.d.ts +16 -0
- package/dist/esm/components/ui/avatar.d.ts.map +1 -0
- package/dist/esm/components/ui/avatar.js +31 -0
- package/dist/esm/components/ui/avatar.js.map +1 -0
- package/dist/esm/components/ui/badge.d.ts +17 -0
- package/dist/esm/components/ui/badge.d.ts.map +1 -0
- package/dist/esm/components/ui/badge.js +28 -0
- package/dist/esm/components/ui/badge.js.map +1 -0
- package/dist/esm/components/ui/breadcrumb.d.ts +41 -0
- package/dist/esm/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/esm/components/ui/breadcrumb.js +66 -0
- package/dist/esm/components/ui/breadcrumb.js.map +1 -0
- package/dist/esm/components/ui/button.d.ts +32 -0
- package/dist/esm/components/ui/button.d.ts.map +1 -0
- package/dist/esm/components/ui/button.js +67 -0
- package/dist/esm/components/ui/button.js.map +1 -0
- package/dist/esm/components/ui/calendar.d.ts +18 -0
- package/dist/esm/components/ui/calendar.d.ts.map +1 -0
- package/dist/esm/components/ui/calendar.js +49 -0
- package/dist/esm/components/ui/calendar.js.map +1 -0
- package/dist/esm/components/ui/card.d.ts +27 -0
- package/dist/esm/components/ui/card.d.ts.map +1 -0
- package/dist/esm/components/ui/card.js +50 -0
- package/dist/esm/components/ui/card.js.map +1 -0
- package/dist/esm/components/ui/checkbox.d.ts +10 -0
- package/dist/esm/components/ui/checkbox.d.ts.map +1 -0
- package/dist/esm/components/ui/checkbox.js +24 -0
- package/dist/esm/components/ui/checkbox.js.map +1 -0
- package/dist/esm/components/ui/collapsible.d.ts +10 -0
- package/dist/esm/components/ui/collapsible.d.ts.map +1 -0
- package/dist/esm/components/ui/collapsible.js +12 -0
- package/dist/esm/components/ui/collapsible.js.map +1 -0
- package/dist/esm/components/ui/command.d.ts +28 -0
- package/dist/esm/components/ui/command.d.ts.map +1 -0
- package/dist/esm/components/ui/command.js +80 -0
- package/dist/esm/components/ui/command.js.map +1 -0
- package/dist/esm/components/ui/context-menu.d.ts +51 -0
- package/dist/esm/components/ui/context-menu.d.ts.map +1 -0
- package/dist/esm/components/ui/context-menu.js +85 -0
- package/dist/esm/components/ui/context-menu.js.map +1 -0
- package/dist/esm/components/ui/dialog.d.ts +45 -0
- package/dist/esm/components/ui/dialog.d.ts.map +1 -0
- package/dist/esm/components/ui/dialog.js +63 -0
- package/dist/esm/components/ui/dialog.js.map +1 -0
- package/dist/esm/components/ui/dropdown-menu.d.ts +54 -0
- package/dist/esm/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/esm/components/ui/dropdown-menu.js +138 -0
- package/dist/esm/components/ui/dropdown-menu.js.map +1 -0
- package/dist/esm/components/ui/form.d.ts +42 -0
- package/dist/esm/components/ui/form.d.ts.map +1 -0
- package/dist/esm/components/ui/form.js +97 -0
- package/dist/esm/components/ui/form.js.map +1 -0
- package/dist/esm/components/ui/hover-card.d.ts +12 -0
- package/dist/esm/components/ui/hover-card.d.ts.map +1 -0
- package/dist/esm/components/ui/hover-card.js +23 -0
- package/dist/esm/components/ui/hover-card.js.map +1 -0
- package/dist/esm/components/ui/inline-code.d.ts +9 -0
- package/dist/esm/components/ui/inline-code.d.ts.map +1 -0
- package/dist/esm/components/ui/inline-code.js +45 -0
- package/dist/esm/components/ui/inline-code.js.map +1 -0
- package/dist/esm/components/ui/input-otp.d.ts +20 -0
- package/dist/esm/components/ui/input-otp.d.ts.map +1 -0
- package/dist/esm/components/ui/input-otp.js +47 -0
- package/dist/esm/components/ui/input-otp.js.map +1 -0
- package/dist/esm/components/ui/input.d.ts +24 -0
- package/dist/esm/components/ui/input.d.ts.map +1 -0
- package/dist/esm/components/ui/input.js +53 -0
- package/dist/esm/components/ui/input.js.map +1 -0
- package/dist/esm/components/ui/label.d.ts +15 -0
- package/dist/esm/components/ui/label.d.ts.map +1 -0
- package/dist/esm/components/ui/label.js +27 -0
- package/dist/esm/components/ui/label.js.map +1 -0
- package/dist/esm/components/ui/menubar.d.ts +38 -0
- package/dist/esm/components/ui/menubar.d.ts.map +1 -0
- package/dist/esm/components/ui/menubar.js +99 -0
- package/dist/esm/components/ui/menubar.js.map +1 -0
- package/dist/esm/components/ui/navigation-menu.d.ts +29 -0
- package/dist/esm/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/esm/components/ui/navigation-menu.js +67 -0
- package/dist/esm/components/ui/navigation-menu.js.map +1 -0
- package/dist/esm/components/ui/password-input.d.ts +11 -0
- package/dist/esm/components/ui/password-input.d.ts.map +1 -0
- package/dist/esm/components/ui/password-input.js +44 -0
- package/dist/esm/components/ui/password-input.js.map +1 -0
- package/dist/esm/components/ui/popover.d.ts +13 -0
- package/dist/esm/components/ui/popover.d.ts.map +1 -0
- package/dist/esm/components/ui/popover.js +24 -0
- package/dist/esm/components/ui/popover.js.map +1 -0
- package/dist/esm/components/ui/progress.d.ts +10 -0
- package/dist/esm/components/ui/progress.d.ts.map +1 -0
- package/dist/esm/components/ui/progress.js +23 -0
- package/dist/esm/components/ui/progress.js.map +1 -0
- package/dist/esm/components/ui/radio-group.d.ts +13 -0
- package/dist/esm/components/ui/radio-group.d.ts.map +1 -0
- package/dist/esm/components/ui/radio-group.js +34 -0
- package/dist/esm/components/ui/radio-group.js.map +1 -0
- package/dist/esm/components/ui/resizable.d.ts +36 -0
- package/dist/esm/components/ui/resizable.d.ts.map +1 -0
- package/dist/esm/components/ui/resizable.js +25 -0
- package/dist/esm/components/ui/resizable.js.map +1 -0
- package/dist/esm/components/ui/scroll-area.d.ts +13 -0
- package/dist/esm/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/esm/components/ui/scroll-area.js +35 -0
- package/dist/esm/components/ui/scroll-area.js.map +1 -0
- package/dist/esm/components/ui/select.d.ts +33 -0
- package/dist/esm/components/ui/select.d.ts.map +1 -0
- package/dist/esm/components/ui/select.js +78 -0
- package/dist/esm/components/ui/select.js.map +1 -0
- package/dist/esm/components/ui/separator.d.ts +10 -0
- package/dist/esm/components/ui/separator.d.ts.map +1 -0
- package/dist/esm/components/ui/separator.js +21 -0
- package/dist/esm/components/ui/separator.js.map +1 -0
- package/dist/esm/components/ui/sheet.d.ts +44 -0
- package/dist/esm/components/ui/sheet.d.ts.map +1 -0
- package/dist/esm/components/ui/sheet.js +69 -0
- package/dist/esm/components/ui/sheet.js.map +1 -0
- package/dist/esm/components/ui/skeleton.d.ts +12 -0
- package/dist/esm/components/ui/skeleton.d.ts.map +1 -0
- package/dist/esm/components/ui/skeleton.js +21 -0
- package/dist/esm/components/ui/skeleton.js.map +1 -0
- package/dist/esm/components/ui/slider.d.ts +10 -0
- package/dist/esm/components/ui/slider.d.ts.map +1 -0
- package/dist/esm/components/ui/slider.js +23 -0
- package/dist/esm/components/ui/slider.js.map +1 -0
- package/dist/esm/components/ui/spinner.d.ts +11 -0
- package/dist/esm/components/ui/spinner.d.ts.map +1 -0
- package/dist/esm/components/ui/spinner.js +24 -0
- package/dist/esm/components/ui/spinner.js.map +1 -0
- package/dist/esm/components/ui/switch.d.ts +14 -0
- package/dist/esm/components/ui/switch.d.ts.map +1 -0
- package/dist/esm/components/ui/switch.js +50 -0
- package/dist/esm/components/ui/switch.js.map +1 -0
- package/dist/esm/components/ui/table.d.ts +30 -0
- package/dist/esm/components/ui/table.d.ts.map +1 -0
- package/dist/esm/components/ui/table.js +61 -0
- package/dist/esm/components/ui/table.js.map +1 -0
- package/dist/esm/components/ui/tabs.d.ts +17 -0
- package/dist/esm/components/ui/tabs.d.ts.map +1 -0
- package/dist/esm/components/ui/tabs.js +32 -0
- package/dist/esm/components/ui/tabs.js.map +1 -0
- package/dist/esm/components/ui/textarea.d.ts +10 -0
- package/dist/esm/components/ui/textarea.d.ts.map +1 -0
- package/dist/esm/components/ui/textarea.js +18 -0
- package/dist/esm/components/ui/textarea.js.map +1 -0
- package/dist/esm/components/ui/toast.d.ts +32 -0
- package/dist/esm/components/ui/toast.d.ts.map +1 -0
- package/dist/esm/components/ui/toast.js +64 -0
- package/dist/esm/components/ui/toast.js.map +1 -0
- package/dist/esm/components/ui/toaster.d.ts +7 -0
- package/dist/esm/components/ui/toaster.d.ts.map +1 -0
- package/dist/esm/components/ui/toaster.js +27 -0
- package/dist/esm/components/ui/toaster.js.map +1 -0
- package/dist/esm/components/ui/toggle-group.d.ts +21 -0
- package/dist/esm/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/esm/components/ui/toggle-group.js +44 -0
- package/dist/esm/components/ui/toggle-group.js.map +1 -0
- package/dist/esm/components/ui/toggle.d.ts +19 -0
- package/dist/esm/components/ui/toggle.d.ts.map +1 -0
- package/dist/esm/components/ui/toggle.js +41 -0
- package/dist/esm/components/ui/toggle.js.map +1 -0
- package/dist/esm/components/ui/tooltip.d.ts +15 -0
- package/dist/esm/components/ui/tooltip.d.ts.map +1 -0
- package/dist/esm/components/ui/tooltip.js +27 -0
- package/dist/esm/components/ui/tooltip.js.map +1 -0
- package/dist/esm/components/ui/typography.d.ts +14 -0
- package/dist/esm/components/ui/typography.d.ts.map +1 -0
- package/dist/esm/components/ui/typography.js +47 -0
- package/dist/esm/components/ui/typography.js.map +1 -0
- package/dist/esm/components/ui/use-toast.d.ts +50 -0
- package/dist/esm/components/ui/use-toast.d.ts.map +1 -0
- package/dist/esm/components/ui/use-toast.js +122 -0
- package/dist/esm/components/ui/use-toast.js.map +1 -0
- package/dist/esm/index.d.ts +54 -0
- package/dist/esm/index.js +106 -0
- package/dist/esm/lib/utils.d.ts +7 -0
- package/dist/esm/lib/utils.d.ts.map +1 -0
- package/dist/esm/lib/utils.js +11 -0
- package/dist/esm/lib/utils.js.map +1 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +425 -0
- package/dist/lib/utils.d.ts +7 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +13 -0
- package/dist/lib/utils.js.map +1 -0
- package/package.json +101 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { HexclaveAssertionError, throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
3
|
+
|
|
4
|
+
//#region src/components/brand-icons.tsx
|
|
5
|
+
function Google({ iconSize }) {
|
|
6
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: iconSize,
|
|
9
|
+
height: iconSize,
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ jsx("path", {
|
|
13
|
+
fill: "#4285F4",
|
|
14
|
+
d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
|
|
15
|
+
}),
|
|
16
|
+
/* @__PURE__ */ jsx("path", {
|
|
17
|
+
fill: "#34A853",
|
|
18
|
+
d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ jsx("path", {
|
|
21
|
+
fill: "#FBBC05",
|
|
22
|
+
d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ jsx("path", {
|
|
25
|
+
fill: "#EA4335",
|
|
26
|
+
d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ jsx("path", {
|
|
29
|
+
fill: "none",
|
|
30
|
+
d: "M1 1h22v22H1z"
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function Facebook({ iconSize }) {
|
|
36
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
width: iconSize,
|
|
39
|
+
height: iconSize,
|
|
40
|
+
viewBox: "0 0 512 512",
|
|
41
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
42
|
+
fill: "#FFFFFF",
|
|
43
|
+
d: "M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function GitHub({ iconSize }) {
|
|
48
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
49
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
50
|
+
width: iconSize,
|
|
51
|
+
height: iconSize,
|
|
52
|
+
viewBox: "0 0 496 512",
|
|
53
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
54
|
+
fill: "#FFFFFF",
|
|
55
|
+
d: "M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function Microsoft({ iconSize }) {
|
|
60
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
61
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
62
|
+
width: iconSize,
|
|
63
|
+
height: iconSize,
|
|
64
|
+
viewBox: "0 0 21 21",
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ jsx("title", { children: "MS-SymbolLockup" }),
|
|
67
|
+
/* @__PURE__ */ jsx("path", {
|
|
68
|
+
fill: "#f25022",
|
|
69
|
+
d: "M1 1h9v9H1z"
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ jsx("path", {
|
|
72
|
+
fill: "#00a4ef",
|
|
73
|
+
d: "M1 11h9v9H1z"
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ jsx("path", {
|
|
76
|
+
fill: "#7fba00",
|
|
77
|
+
d: "M11 1h9v9h-9z"
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ jsx("path", {
|
|
80
|
+
fill: "#ffb900",
|
|
81
|
+
d: "M11 11h9v9h-9z"
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function Spotify({ iconSize }) {
|
|
87
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
88
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
89
|
+
width: iconSize,
|
|
90
|
+
height: iconSize,
|
|
91
|
+
viewBox: "0 0 496 512",
|
|
92
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
93
|
+
fill: "#ffffff",
|
|
94
|
+
d: "M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z"
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
function Discord({ iconSize }) {
|
|
99
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
100
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
101
|
+
width: iconSize,
|
|
102
|
+
height: iconSize,
|
|
103
|
+
viewBox: "0 0 127.14 96.36",
|
|
104
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
105
|
+
fill: "#fff",
|
|
106
|
+
d: "M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"
|
|
107
|
+
})
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function Gitlab({ iconSize }) {
|
|
111
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
112
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
113
|
+
width: iconSize,
|
|
114
|
+
height: iconSize,
|
|
115
|
+
viewBox: "0 -10 256 256",
|
|
116
|
+
version: "1.1",
|
|
117
|
+
preserveAspectRatio: "xMidYMid",
|
|
118
|
+
children: /* @__PURE__ */ jsxs("g", { children: [
|
|
119
|
+
/* @__PURE__ */ jsx("path", {
|
|
120
|
+
d: "M128.07485,236.074667 L128.07485,236.074667 L175.17885,91.1043048 L80.9708495,91.1043048 L128.07485,236.074667 L128.07485,236.074667 Z",
|
|
121
|
+
fill: "#E24329"
|
|
122
|
+
}),
|
|
123
|
+
/* @__PURE__ */ jsx("path", {
|
|
124
|
+
d: "M128.07485,236.074423 L80.9708495,91.104061 L14.9557638,91.104061 L128.07485,236.074423 L128.07485,236.074423 Z",
|
|
125
|
+
fill: "#FC6D26"
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ jsx("path", {
|
|
128
|
+
d: "M14.9558857,91.1044267 L14.9558857,91.1044267 L0.641828571,135.159589 C-0.663771429,139.17757 0.766171429,143.57955 4.18438095,146.06275 L128.074971,236.074789 L14.9558857,91.1044267 L14.9558857,91.1044267 Z",
|
|
129
|
+
fill: "#FCA326"
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ jsx("path", {
|
|
132
|
+
d: "M14.9558857,91.1045486 L80.9709714,91.1045486 L52.6000762,3.79026286 C51.1408762,-0.703146667 44.7847619,-0.701927619 43.3255619,3.79026286 L14.9558857,91.1045486 L14.9558857,91.1045486 Z",
|
|
133
|
+
fill: "#E24329"
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ jsx("path", {
|
|
136
|
+
d: "M128.07485,236.074423 L175.17885,91.104061 L241.193935,91.104061 L128.07485,236.074423 L128.07485,236.074423 Z",
|
|
137
|
+
fill: "#FC6D26"
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ jsx("path", {
|
|
140
|
+
d: "M241.193935,91.1044267 L241.193935,91.1044267 L255.507992,135.159589 C256.813592,139.17757 255.38365,143.57955 251.96544,146.06275 L128.07485,236.074789 L241.193935,91.1044267 L241.193935,91.1044267 Z",
|
|
141
|
+
fill: "#FCA326"
|
|
142
|
+
}),
|
|
143
|
+
/* @__PURE__ */ jsx("path", {
|
|
144
|
+
d: "M241.193935,91.1045486 L175.17885,91.1045486 L203.549745,3.79026286 C205.008945,-0.703146667 211.365059,-0.701927619 212.824259,3.79026286 L241.193935,91.1045486 L241.193935,91.1045486 Z",
|
|
145
|
+
fill: "#E24329"
|
|
146
|
+
})
|
|
147
|
+
] })
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
function Bitbucket({ iconSize }) {
|
|
151
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
152
|
+
preserveAspectRatio: "xMidYMid",
|
|
153
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
154
|
+
viewBox: "-0.9662264221278978 -0.5824607696358868 257.93281329857973 230.8324730411935",
|
|
155
|
+
width: iconSize,
|
|
156
|
+
height: iconSize,
|
|
157
|
+
children: [/* @__PURE__ */ jsxs("linearGradient", {
|
|
158
|
+
id: "a",
|
|
159
|
+
x1: "108.633%",
|
|
160
|
+
x2: "46.927%",
|
|
161
|
+
y1: "13.818%",
|
|
162
|
+
y2: "78.776%",
|
|
163
|
+
children: [/* @__PURE__ */ jsx("stop", {
|
|
164
|
+
offset: ".18",
|
|
165
|
+
stopColor: "#0052cc"
|
|
166
|
+
}), /* @__PURE__ */ jsx("stop", {
|
|
167
|
+
offset: "1",
|
|
168
|
+
stopColor: "#2684ff"
|
|
169
|
+
})]
|
|
170
|
+
}), /* @__PURE__ */ jsxs("g", {
|
|
171
|
+
fill: "none",
|
|
172
|
+
children: [
|
|
173
|
+
/* @__PURE__ */ jsx("path", { d: "M101.272 152.561h53.449l12.901-75.32H87.06z" }),
|
|
174
|
+
/* @__PURE__ */ jsx("path", {
|
|
175
|
+
d: "M8.308 0A8.202 8.202 0 0 0 .106 9.516l34.819 211.373a11.155 11.155 0 0 0 10.909 9.31h167.04a8.202 8.202 0 0 0 8.201-6.89l34.82-213.752a8.202 8.202 0 0 0-8.203-9.514zm146.616 152.768h-53.315l-14.436-75.42h80.67z",
|
|
176
|
+
fill: "#2684ff"
|
|
177
|
+
}),
|
|
178
|
+
/* @__PURE__ */ jsx("path", {
|
|
179
|
+
d: "M244.61 77.242h-76.916l-12.909 75.36h-53.272l-62.902 74.663a11.105 11.105 0 0 0 7.171 2.704H212.73a8.196 8.196 0 0 0 8.196-6.884z",
|
|
180
|
+
fill: "url(#a)"
|
|
181
|
+
})
|
|
182
|
+
]
|
|
183
|
+
})]
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
function LinkedIn({ iconSize }) {
|
|
187
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
188
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
189
|
+
fill: "#fff",
|
|
190
|
+
height: iconSize,
|
|
191
|
+
width: iconSize,
|
|
192
|
+
viewBox: "0 0 310 310",
|
|
193
|
+
children: /* @__PURE__ */ jsxs("g", {
|
|
194
|
+
id: "XMLID_801_",
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ jsx("path", {
|
|
197
|
+
id: "XMLID_802_",
|
|
198
|
+
d: "M72.16,99.73H9.927c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5H72.16c2.762,0,5-2.238,5-5V104.73 C77.16,101.969,74.922,99.73,72.16,99.73z"
|
|
199
|
+
}),
|
|
200
|
+
/* @__PURE__ */ jsx("path", {
|
|
201
|
+
id: "XMLID_803_",
|
|
202
|
+
d: "M41.066,0.341C18.422,0.341,0,18.743,0,41.362C0,63.991,18.422,82.4,41.066,82.4 c22.626,0,41.033-18.41,41.033-41.038C82.1,18.743,63.692,0.341,41.066,0.341z"
|
|
203
|
+
}),
|
|
204
|
+
/* @__PURE__ */ jsx("path", {
|
|
205
|
+
id: "XMLID_804_",
|
|
206
|
+
d: "M230.454,94.761c-24.995,0-43.472,10.745-54.679,22.954V104.73c0-2.761-2.238-5-5-5h-59.599 c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5h62.097c2.762,0,5-2.238,5-5v-98.918c0-33.333,9.054-46.319,32.29-46.319 c25.306,0,27.317,20.818,27.317,48.034v97.204c0,2.762,2.238,5,5,5H305c2.762,0,5-2.238,5-5V194.995 C310,145.43,300.549,94.761,230.454,94.761z"
|
|
207
|
+
})
|
|
208
|
+
]
|
|
209
|
+
})
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
function Apple({ iconSize }) {
|
|
213
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
214
|
+
fill: "#fff",
|
|
215
|
+
height: iconSize,
|
|
216
|
+
width: iconSize,
|
|
217
|
+
version: "1.1",
|
|
218
|
+
id: "Capa_1",
|
|
219
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
220
|
+
viewBox: "0 0 22.773 22.773",
|
|
221
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M15.769,0c0.053,0,0.106,0,0.162,0c0.13,1.606-0.483,2.806-1.228,3.675c-0.731,0.863-1.732,1.7-3.351,1.573c-0.108-1.583,0.506-2.694,1.25-3.561C13.292,0.879,14.557,0.16,15.769,0z" }), /* @__PURE__ */ jsx("path", { d: "M20.67,16.716c0,0.016,0,0.03,0,0.045c-0.455,1.378-1.104,2.559-1.896,3.655c-0.723,0.995-1.609,2.334-3.191,2.334c-1.367,0-2.275-0.879-3.676-0.903c-1.482-0.024-2.297,0.735-3.652,0.926c-0.155,0-0.31,0-0.462,0c-0.995-0.144-1.798-0.932-2.383-1.642c-1.725-2.098-3.058-4.808-3.306-8.276c0-0.34,0-0.679,0-1.019c0.105-2.482,1.311-4.5,2.914-5.478c0.846-0.52,2.009-0.963,3.304-0.765c0.555,0.086,1.122,0.276,1.619,0.464c0.471,0.181,1.06,0.502,1.618,0.485c0.378-0.011,0.754-0.208,1.135-0.347c1.116-0.403,2.21-0.865,3.652-0.648c1.733,0.262,2.963,1.032,3.723,2.22c-1.466,0.933-2.625,2.339-2.427,4.74C17.818,14.688,19.086,15.964,20.67,16.716z" })]
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
function X({ iconSize }) {
|
|
225
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
226
|
+
"aria-label": "X",
|
|
227
|
+
viewBox: "0 0 1200 1227",
|
|
228
|
+
width: iconSize,
|
|
229
|
+
height: iconSize,
|
|
230
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
231
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
232
|
+
fill: "#FFFFFF",
|
|
233
|
+
d: "M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"
|
|
234
|
+
})
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
function Twitch({ iconSize }) {
|
|
238
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
239
|
+
"aria-label": "Twitch",
|
|
240
|
+
viewBox: "0 0 2400 2800",
|
|
241
|
+
width: iconSize,
|
|
242
|
+
height: iconSize,
|
|
243
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
244
|
+
children: /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("polygon", {
|
|
245
|
+
fill: "#FFFFFF",
|
|
246
|
+
points: "2200,1300 1800,1700 1400,1700 1050,2050 1050,1700 600,1700 600,200 2200,200"
|
|
247
|
+
}), /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsxs("g", {
|
|
248
|
+
id: "Layer_1-2",
|
|
249
|
+
children: [
|
|
250
|
+
/* @__PURE__ */ jsx("path", {
|
|
251
|
+
fill: "#9146FF",
|
|
252
|
+
d: "M500,0L0,500v1800h600v500l500-500h400l900-900V0H500z M2200,1300l-400,400h-400l-350,350v-350H600V200h1600 V1300z"
|
|
253
|
+
}),
|
|
254
|
+
/* @__PURE__ */ jsx("rect", {
|
|
255
|
+
x: "1700",
|
|
256
|
+
y: "550",
|
|
257
|
+
fill: "#9146FF",
|
|
258
|
+
width: "200",
|
|
259
|
+
height: "600"
|
|
260
|
+
}),
|
|
261
|
+
/* @__PURE__ */ jsx("rect", {
|
|
262
|
+
x: "1150",
|
|
263
|
+
y: "550",
|
|
264
|
+
fill: "#9146FF",
|
|
265
|
+
width: "200",
|
|
266
|
+
height: "600"
|
|
267
|
+
})
|
|
268
|
+
]
|
|
269
|
+
}) })] })
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
function Mapping({ provider, iconSize }) {
|
|
273
|
+
switch (provider) {
|
|
274
|
+
case "google": return /* @__PURE__ */ jsx(Google, { iconSize });
|
|
275
|
+
case "github": return /* @__PURE__ */ jsx(GitHub, { iconSize });
|
|
276
|
+
case "facebook": return /* @__PURE__ */ jsx(Facebook, { iconSize });
|
|
277
|
+
case "microsoft": return /* @__PURE__ */ jsx(Microsoft, { iconSize });
|
|
278
|
+
case "spotify": return /* @__PURE__ */ jsx(Spotify, { iconSize });
|
|
279
|
+
case "discord": return /* @__PURE__ */ jsx(Discord, { iconSize });
|
|
280
|
+
case "gitlab": return /* @__PURE__ */ jsx(Gitlab, { iconSize });
|
|
281
|
+
case "bitbucket": return /* @__PURE__ */ jsx(Bitbucket, { iconSize });
|
|
282
|
+
case "linkedin": return /* @__PURE__ */ jsx(LinkedIn, { iconSize });
|
|
283
|
+
case "apple": return /* @__PURE__ */ jsx(Apple, { iconSize });
|
|
284
|
+
case "x": return /* @__PURE__ */ jsx(X, { iconSize });
|
|
285
|
+
case "twitch": return /* @__PURE__ */ jsx(Twitch, { iconSize });
|
|
286
|
+
default: throw new HexclaveAssertionError(`Icon not found for provider: ${provider}`);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function toTitle(id) {
|
|
290
|
+
return {
|
|
291
|
+
github: "GitHub",
|
|
292
|
+
google: "Google",
|
|
293
|
+
facebook: "Facebook",
|
|
294
|
+
microsoft: "Microsoft",
|
|
295
|
+
spotify: "Spotify",
|
|
296
|
+
discord: "Discord",
|
|
297
|
+
gitlab: "GitLab",
|
|
298
|
+
apple: "Apple",
|
|
299
|
+
bitbucket: "Bitbucket",
|
|
300
|
+
linkedin: "LinkedIn",
|
|
301
|
+
x: "X",
|
|
302
|
+
twitch: "Twitch"
|
|
303
|
+
}[id] || throwErr(`Unknown provider: ${id}`);
|
|
304
|
+
}
|
|
305
|
+
const BRAND_COLORS = {
|
|
306
|
+
github: "#24292e",
|
|
307
|
+
google: "#ffffff",
|
|
308
|
+
facebook: "#0866FF",
|
|
309
|
+
microsoft: "#2F2F2F",
|
|
310
|
+
spotify: "#1DD65F",
|
|
311
|
+
discord: "#5661F5",
|
|
312
|
+
linkedin: "#0A66C2",
|
|
313
|
+
x: "#000000",
|
|
314
|
+
apple: "#000000",
|
|
315
|
+
twitch: "#ffffff"
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
//#endregion
|
|
319
|
+
export { Apple, BRAND_COLORS, Bitbucket, Discord, Facebook, GitHub, Gitlab, Google, LinkedIn, Mapping, Microsoft, Spotify, Twitch, X, toTitle };
|
|
320
|
+
//# sourceMappingURL=brand-icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-icons.js","names":[],"sources":["../../../src/components/brand-icons.tsx"],"sourcesContent":["import { HexclaveAssertionError, throwErr } from \"@stackframe/stack-shared/dist/utils/errors\";\n\nexport function Google({ iconSize }: { iconSize: number }) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width={iconSize} height={iconSize} viewBox=\"0 0 24 24\">\n <path fill=\"#4285F4\"\n d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z\"/>\n <path fill=\"#34A853\"\n d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\"/>\n <path fill=\"#FBBC05\"\n d=\"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z\"/>\n <path fill=\"#EA4335\"\n d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\"/>\n <path fill=\"none\" d=\"M1 1h22v22H1z\"/>\n </svg>\n );\n}\n\nexport function Facebook({ iconSize }: { iconSize: number }) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width={iconSize} height={iconSize} viewBox=\"0 0 512 512\">\n <path fill='#FFFFFF'\n d=\"M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z\"/>\n </svg>\n );\n}\n\nexport function GitHub({ iconSize }: { iconSize: number }) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width={iconSize} height={iconSize} viewBox=\"0 0 496 512\">\n <path fill='#FFFFFF'\n d=\"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z\"/>\n </svg>\n );\n}\n\nexport function Microsoft({ iconSize }: { iconSize: number }) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width={iconSize} height={iconSize} viewBox=\"0 0 21 21\">\n <title>{\"MS-SymbolLockup\"}</title>\n <path fill=\"#f25022\" d=\"M1 1h9v9H1z\"/>\n <path fill=\"#00a4ef\" d=\"M1 11h9v9H1z\"/>\n <path fill=\"#7fba00\" d=\"M11 1h9v9h-9z\"/>\n <path fill=\"#ffb900\" d=\"M11 11h9v9h-9z\"/>\n </svg>\n );\n}\n\nexport function Spotify({ iconSize }: { iconSize: number }) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width={iconSize} height={iconSize} viewBox=\"0 0 496 512\">\n <path fill='#ffffff'\n d=\"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z\"/>\n </svg>\n );\n}\n\nexport function Discord({ iconSize }: { iconSize: number }) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width={iconSize} height={iconSize} viewBox=\"0 0 127.14 96.36\">\n <path fill=\"#fff\"\n d=\"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z\"/>\n </svg>\n );\n}\n\nexport function Gitlab({ iconSize }: { iconSize: number }) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={iconSize}\n height={iconSize}\n viewBox=\"0 -10 256 256\"\n version=\"1.1\"\n preserveAspectRatio=\"xMidYMid\"\n >\n <g>\n <path\n d=\"M128.07485,236.074667 L128.07485,236.074667 L175.17885,91.1043048 L80.9708495,91.1043048 L128.07485,236.074667 L128.07485,236.074667 Z\"\n fill=\"#E24329\"></path>\n <path\n d=\"M128.07485,236.074423 L80.9708495,91.104061 L14.9557638,91.104061 L128.07485,236.074423 L128.07485,236.074423 Z\"\n fill=\"#FC6D26\"></path>\n <path\n d=\"M14.9558857,91.1044267 L14.9558857,91.1044267 L0.641828571,135.159589 C-0.663771429,139.17757 0.766171429,143.57955 4.18438095,146.06275 L128.074971,236.074789 L14.9558857,91.1044267 L14.9558857,91.1044267 Z\"\n fill=\"#FCA326\"></path>\n <path\n d=\"M14.9558857,91.1045486 L80.9709714,91.1045486 L52.6000762,3.79026286 C51.1408762,-0.703146667 44.7847619,-0.701927619 43.3255619,3.79026286 L14.9558857,91.1045486 L14.9558857,91.1045486 Z\"\n fill=\"#E24329\"></path>\n <path\n d=\"M128.07485,236.074423 L175.17885,91.104061 L241.193935,91.104061 L128.07485,236.074423 L128.07485,236.074423 Z\"\n fill=\"#FC6D26\"></path>\n <path\n d=\"M241.193935,91.1044267 L241.193935,91.1044267 L255.507992,135.159589 C256.813592,139.17757 255.38365,143.57955 251.96544,146.06275 L128.07485,236.074789 L241.193935,91.1044267 L241.193935,91.1044267 Z\"\n fill=\"#FCA326\"></path>\n <path\n d=\"M241.193935,91.1045486 L175.17885,91.1045486 L203.549745,3.79026286 C205.008945,-0.703146667 211.365059,-0.701927619 212.824259,3.79026286 L241.193935,91.1045486 L241.193935,91.1045486 Z\"\n fill=\"#E24329\"></path>\n </g>\n </svg>\n );\n}\n\nexport function Bitbucket({ iconSize }: { iconSize: number }) {\n return (\n <svg\n preserveAspectRatio=\"xMidYMid\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"-0.9662264221278978 -0.5824607696358868 257.93281329857973 230.8324730411935\"\n width={iconSize}\n height={iconSize}\n >\n <linearGradient\n id=\"a\"\n x1=\"108.633%\"\n x2=\"46.927%\"\n y1=\"13.818%\"\n y2=\"78.776%\"\n >\n <stop offset=\".18\" stopColor=\"#0052cc\"/>\n <stop offset=\"1\" stopColor=\"#2684ff\"/>\n </linearGradient>\n <g fill=\"none\">\n <path d=\"M101.272 152.561h53.449l12.901-75.32H87.06z\"/>\n <path\n d=\"M8.308 0A8.202 8.202 0 0 0 .106 9.516l34.819 211.373a11.155 11.155 0 0 0 10.909 9.31h167.04a8.202 8.202 0 0 0 8.201-6.89l34.82-213.752a8.202 8.202 0 0 0-8.203-9.514zm146.616 152.768h-53.315l-14.436-75.42h80.67z\"\n fill=\"#2684ff\"/>\n <path\n d=\"M244.61 77.242h-76.916l-12.909 75.36h-53.272l-62.902 74.663a11.105 11.105 0 0 0 7.171 2.704H212.73a8.196 8.196 0 0 0 8.196-6.884z\"\n fill=\"url(#a)\"/>\n </g>\n </svg>\n );\n}\n\nexport function LinkedIn({ iconSize }: { iconSize: number }) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"#fff\"\n height={iconSize}\n width={iconSize}\n viewBox=\"0 0 310 310\"\n >\n <g id=\"XMLID_801_\">\n <path id=\"XMLID_802_\"\n d=\"M72.16,99.73H9.927c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5H72.16c2.762,0,5-2.238,5-5V104.73 C77.16,101.969,74.922,99.73,72.16,99.73z\"/>\n <path id=\"XMLID_803_\"\n d=\"M41.066,0.341C18.422,0.341,0,18.743,0,41.362C0,63.991,18.422,82.4,41.066,82.4 c22.626,0,41.033-18.41,41.033-41.038C82.1,18.743,63.692,0.341,41.066,0.341z\"/>\n <path id=\"XMLID_804_\"\n d=\"M230.454,94.761c-24.995,0-43.472,10.745-54.679,22.954V104.73c0-2.761-2.238-5-5-5h-59.599 c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5h62.097c2.762,0,5-2.238,5-5v-98.918c0-33.333,9.054-46.319,32.29-46.319 c25.306,0,27.317,20.818,27.317,48.034v97.204c0,2.762,2.238,5,5,5H305c2.762,0,5-2.238,5-5V194.995 C310,145.43,300.549,94.761,230.454,94.761z\"/>\n </g>\n </svg>\n );\n}\n\nexport function Apple({ iconSize }: { iconSize: number }) {\n return (\n <svg fill=\"#fff\" height={iconSize} width={iconSize} version=\"1.1\" id=\"Capa_1\" xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 22.773 22.773\">\n <path\n d=\"M15.769,0c0.053,0,0.106,0,0.162,0c0.13,1.606-0.483,2.806-1.228,3.675c-0.731,0.863-1.732,1.7-3.351,1.573c-0.108-1.583,0.506-2.694,1.25-3.561C13.292,0.879,14.557,0.16,15.769,0z\"/>\n <path\n d=\"M20.67,16.716c0,0.016,0,0.03,0,0.045c-0.455,1.378-1.104,2.559-1.896,3.655c-0.723,0.995-1.609,2.334-3.191,2.334c-1.367,0-2.275-0.879-3.676-0.903c-1.482-0.024-2.297,0.735-3.652,0.926c-0.155,0-0.31,0-0.462,0c-0.995-0.144-1.798-0.932-2.383-1.642c-1.725-2.098-3.058-4.808-3.306-8.276c0-0.34,0-0.679,0-1.019c0.105-2.482,1.311-4.5,2.914-5.478c0.846-0.52,2.009-0.963,3.304-0.765c0.555,0.086,1.122,0.276,1.619,0.464c0.471,0.181,1.06,0.502,1.618,0.485c0.378-0.011,0.754-0.208,1.135-0.347c1.116-0.403,2.21-0.865,3.652-0.648c1.733,0.262,2.963,1.032,3.723,2.22c-1.466,0.933-2.625,2.339-2.427,4.74C17.818,14.688,19.086,15.964,20.67,16.716z\"/>\n </svg>\n );\n}\n\nexport function X({ iconSize }: { iconSize: number }) {\n return (\n <svg aria-label=\"X\" viewBox=\"0 0 1200 1227\" width={iconSize} height={iconSize}\n xmlns=\"http://www.w3.org/2000/svg\">\n <path fill=\"#FFFFFF\"\n d=\"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z\"/>\n </svg>\n );\n}\n\nexport function Twitch({ iconSize }: { iconSize: number }) {\n return (\n <svg aria-label=\"Twitch\" viewBox=\"0 0 2400 2800\" width={iconSize} height={iconSize}\n xmlns=\"http://www.w3.org/2000/svg\">\n <g>\n <polygon fill={\"#FFFFFF\"}\n points=\"2200,1300 1800,1700 1400,1700 1050,2050 1050,1700 600,1700 600,200 2200,200\"/>\n <g>\n <g id=\"Layer_1-2\">\n <path fill={\"#9146FF\"} d=\"M500,0L0,500v1800h600v500l500-500h400l900-900V0H500z M2200,1300l-400,400h-400l-350,350v-350H600V200h1600 V1300z\"/>\n <rect x=\"1700\" y=\"550\" fill={\"#9146FF\"} width=\"200\" height=\"600\"/>\n <rect x=\"1150\" y=\"550\" fill={\"#9146FF\"} width=\"200\" height=\"600\"/>\n </g>\n </g>\n </g>\n </svg>\n );\n}\n\nexport function Mapping({\n provider,\n iconSize,\n}: {\n provider: string,\n iconSize: number,\n}) {\n switch (provider) {\n case \"google\": {\n return <Google iconSize={iconSize}/>;\n }\n case \"github\": {\n return <GitHub iconSize={iconSize}/>;\n }\n case \"facebook\": {\n return <Facebook iconSize={iconSize}/>;\n }\n case \"microsoft\": {\n return <Microsoft iconSize={iconSize}/>;\n }\n case \"spotify\": {\n return <Spotify iconSize={iconSize}/>;\n }\n case \"discord\": {\n return <Discord iconSize={iconSize}/>;\n }\n case \"gitlab\": {\n return <Gitlab iconSize={iconSize}/>;\n }\n case \"bitbucket\": {\n return <Bitbucket iconSize={iconSize}/>;\n }\n case \"linkedin\": {\n return <LinkedIn iconSize={iconSize}/>;\n }\n case \"apple\": {\n return <Apple iconSize={iconSize}/>;\n }\n case \"x\": {\n return <X iconSize={iconSize}/>;\n }\n case \"twitch\": {\n return <Twitch iconSize={iconSize}/>;\n }\n default: {\n throw new HexclaveAssertionError(`Icon not found for provider: ${provider}`);\n }\n }\n}\n\nexport function toTitle(id: string) {\n return {\n github: \"GitHub\",\n google: \"Google\",\n facebook: \"Facebook\",\n microsoft: \"Microsoft\",\n spotify: \"Spotify\",\n discord: \"Discord\",\n gitlab: \"GitLab\",\n apple: \"Apple\",\n bitbucket: \"Bitbucket\",\n linkedin: \"LinkedIn\",\n x: \"X\",\n twitch: \"Twitch\"\n }[id] || throwErr(`Unknown provider: ${id}`);\n}\n\nexport const BRAND_COLORS: Record<string, string> = {\n github: '#24292e',\n google: '#ffffff',\n facebook: '#0866FF',\n microsoft: '#2F2F2F',\n spotify: '#1DD65F',\n discord: '#5661F5',\n linkedin: '#0A66C2',\n x: '#000000',\n apple: '#000000',\n twitch: '#ffffff'\n};\n"],"mappings":";;;;AAEA,SAAgB,OAAO,EAAE,YAAkC;AACzD,QACE,qBAAC;EAAI,OAAM;EAA6B,OAAO;EAAU,QAAQ;EAAU,SAAQ;;GACjF,oBAAC;IAAK,MAAK;IACT,GAAE;KAA2H;GAC/H,oBAAC;IAAK,MAAK;IACT,GAAE;KAAyI;GAC7I,oBAAC;IAAK,MAAK;IACT,GAAE;KAAiI;GACrI,oBAAC;IAAK,MAAK;IACT,GAAE;KAAuI;GAC3I,oBAAC;IAAK,MAAK;IAAO,GAAE;KAAiB;;GACjC;;AAIV,SAAgB,SAAS,EAAE,YAAkC;AAC3D,QACE,oBAAC;EAAI,OAAM;EAA6B,OAAO;EAAU,QAAQ;EAAU,SAAQ;YACjF,oBAAC;GAAK,MAAK;GACT,GAAE;IAAgR;GAChR;;AAIV,SAAgB,OAAO,EAAE,YAAkC;AACzD,QACE,oBAAC;EAAI,OAAM;EAA6B,OAAO;EAAU,QAAQ;EAAU,SAAQ;YACjF,oBAAC;GAAK,MAAK;GACT,GAAE;IAAsyC;GACtyC;;AAIV,SAAgB,UAAU,EAAE,YAAkC;AAC5D,QACE,qBAAC;EAAI,OAAM;EAA6B,OAAO;EAAU,QAAQ;EAAU,SAAQ;;GACjF,oBAAC,qBAAO,oBAA0B;GAClC,oBAAC;IAAK,MAAK;IAAU,GAAE;KAAe;GACtC,oBAAC;IAAK,MAAK;IAAU,GAAE;KAAgB;GACvC,oBAAC;IAAK,MAAK;IAAU,GAAE;KAAiB;GACxC,oBAAC;IAAK,MAAK;IAAU,GAAE;KAAkB;;GACrC;;AAIV,SAAgB,QAAQ,EAAE,YAAkC;AAC1D,QACE,oBAAC;EAAI,OAAM;EAA6B,OAAO;EAAU,QAAQ;EAAU,SAAQ;YACjF,oBAAC;GAAK,MAAK;GACT,GAAE;IAAyxB;GACzxB;;AAIV,SAAgB,QAAQ,EAAE,YAAkC;AAC1D,QACE,oBAAC;EAAI,OAAM;EAA6B,OAAO;EAAU,QAAQ;EAAU,SAAQ;YACjF,oBAAC;GAAK,MAAK;GACT,GAAE;IAA4pB;GAC5pB;;AAIV,SAAgB,OAAO,EAAE,YAAkC;AACzD,QACE,oBAAC;EACC,OAAM;EACN,OAAO;EACP,QAAQ;EACR,SAAQ;EACR,SAAQ;EACR,qBAAoB;YAEpB,qBAAC;GACC,oBAAC;IACC,GAAE;IACF,MAAK;KAAiB;GACxB,oBAAC;IACC,GAAE;IACF,MAAK;KAAiB;GACxB,oBAAC;IACC,GAAE;IACF,MAAK;KAAiB;GACxB,oBAAC;IACC,GAAE;IACF,MAAK;KAAiB;GACxB,oBAAC;IACC,GAAE;IACF,MAAK;KAAiB;GACxB,oBAAC;IACC,GAAE;IACF,MAAK;KAAiB;GACxB,oBAAC;IACC,GAAE;IACF,MAAK;KAAiB;MACtB;GACA;;AAIV,SAAgB,UAAU,EAAE,YAAkC;AAC5D,QACE,qBAAC;EACC,qBAAoB;EACpB,OAAM;EACN,SAAQ;EACR,OAAO;EACP,QAAQ;aAER,qBAAC;GACC,IAAG;GACH,IAAG;GACH,IAAG;GACH,IAAG;GACH,IAAG;cAEH,oBAAC;IAAK,QAAO;IAAM,WAAU;KAAW,EACxC,oBAAC;IAAK,QAAO;IAAI,WAAU;KAAW;IACvB,EACjB,qBAAC;GAAE,MAAK;;IACN,oBAAC,UAAK,GAAE,gDAA+C;IACvD,oBAAC;KACC,GAAE;KACF,MAAK;MAAW;IAClB,oBAAC;KACC,GAAE;KACF,MAAK;MAAW;;IAChB;GACA;;AAIV,SAAgB,SAAS,EAAE,YAAkC;AAC3D,QACE,oBAAC;EACC,OAAM;EACN,MAAK;EACL,QAAQ;EACR,OAAO;EACP,SAAQ;YAER,qBAAC;GAAE,IAAG;;IACJ,oBAAC;KAAK,IAAG;KACP,GAAE;MAAmJ;IACvJ,oBAAC;KAAK,IAAG;KACP,GAAE;MAA+J;IACnK,oBAAC;KAAK,IAAG;KACP,GAAE;MAAsW;;IACxW;GACA;;AAIV,SAAgB,MAAM,EAAE,YAAkC;AACxD,QACE,qBAAC;EAAI,MAAK;EAAO,QAAQ;EAAU,OAAO;EAAU,SAAQ;EAAM,IAAG;EAAS,OAAM;EAClF,SAAQ;aACR,oBAAC,UACC,GAAE,mLAAkL,EACtL,oBAAC,UACC,GAAE,snBAAqnB;GACrnB;;AAIV,SAAgB,EAAE,EAAE,YAAkC;AACpD,QACE,oBAAC;EAAI,cAAW;EAAI,SAAQ;EAAgB,OAAO;EAAU,QAAQ;EACnE,OAAM;YACN,oBAAC;GAAK,MAAK;GACT,GAAE;IAAyS;GACzS;;AAIV,SAAgB,OAAO,EAAE,YAAkC;AACzD,QACE,oBAAC;EAAI,cAAW;EAAS,SAAQ;EAAgB,OAAO;EAAU,QAAQ;EACxE,OAAM;YACN,qBAAC,kBACC,oBAAC;GAAQ,MAAM;GACb,QAAO;IAA+E,EACxF,oBAAC,iBACC,qBAAC;GAAE,IAAG;;IACJ,oBAAC;KAAK,MAAM;KAAW,GAAE;MAAmH;IAC5I,oBAAC;KAAK,GAAE;KAAO,GAAE;KAAM,MAAM;KAAW,OAAM;KAAM,QAAO;MAAO;IAClE,oBAAC;KAAK,GAAE;KAAO,GAAE;KAAM,MAAM;KAAW,OAAM;KAAM,QAAO;MAAO;;IAChE,GACF,IACF;GACA;;AAIV,SAAgB,QAAQ,EACtB,UACA,YAIC;AACD,SAAQ,UAAR;EACE,KAAK,SACH,QAAO,oBAAC,UAAiB,WAAW;EAEtC,KAAK,SACH,QAAO,oBAAC,UAAiB,WAAW;EAEtC,KAAK,WACH,QAAO,oBAAC,YAAmB,WAAW;EAExC,KAAK,YACH,QAAO,oBAAC,aAAoB,WAAW;EAEzC,KAAK,UACH,QAAO,oBAAC,WAAkB,WAAW;EAEvC,KAAK,UACH,QAAO,oBAAC,WAAkB,WAAW;EAEvC,KAAK,SACH,QAAO,oBAAC,UAAiB,WAAW;EAEtC,KAAK,YACH,QAAO,oBAAC,aAAoB,WAAW;EAEzC,KAAK,WACH,QAAO,oBAAC,YAAmB,WAAW;EAExC,KAAK,QACH,QAAO,oBAAC,SAAgB,WAAW;EAErC,KAAK,IACH,QAAO,oBAAC,KAAY,WAAW;EAEjC,KAAK,SACH,QAAO,oBAAC,UAAiB,WAAW;EAEtC,QACE,OAAM,IAAI,uBAAuB,gCAAgC,WAAW;;;AAKlF,SAAgB,QAAQ,IAAY;AAClC,QAAO;EACL,QAAQ;EACR,QAAQ;EACR,UAAU;EACV,WAAW;EACX,SAAS;EACT,SAAS;EACT,QAAQ;EACR,OAAO;EACP,WAAW;EACX,UAAU;EACV,GAAG;EACH,QAAQ;EACT,CAAC,OAAO,SAAS,qBAAqB,KAAK;;AAG9C,MAAa,eAAuC;CAClD,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,WAAW;CACX,SAAS;CACT,SAAS;CACT,UAAU;CACV,GAAG;CACH,OAAO;CACP,QAAQ;CACT"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/browser-frame/index.d.ts
|
|
5
|
+
type Props = {
|
|
6
|
+
url?: string;
|
|
7
|
+
padding?: string;
|
|
8
|
+
transparentBackground?: boolean;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const BrowserFrame: ({
|
|
13
|
+
url,
|
|
14
|
+
padding,
|
|
15
|
+
transparentBackground,
|
|
16
|
+
children,
|
|
17
|
+
className
|
|
18
|
+
}: Props) => react_jsx_runtime0.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { BrowserFrame, Props };
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/browser-frame/index.tsx"],"mappings":";;;;KAEY,KAAA;EACV,GAAA;EACA,OAAA;EACA,qBAAA;EACA,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA;AAAA;AAAA,cAGW,YAAA;EAAgB,GAAA;EAAA,OAAA;EAAA,qBAAA;EAAA,QAAA;EAAA;AAAA,GAA8D,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/browser-frame/index.tsx
|
|
5
|
+
const BrowserFrame = ({ url, padding, transparentBackground, children, className }) => /* @__PURE__ */ jsxs("div", {
|
|
6
|
+
className: `rounded-xl overflow-hidden shadow-2xl ${className}`,
|
|
7
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
8
|
+
className: "bg-gray-200 dark:bg-gray-800 h-10 flex items-center py-2 px-4 box-border",
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ jsx("div", { className: "w-3 h-3 bg-red-500 rounded-full mr-1.5 flex-shrink-0" }),
|
|
11
|
+
/* @__PURE__ */ jsx("div", { className: "w-3 h-3 bg-yellow-500 rounded-full mr-1.5 flex-shrink-0" }),
|
|
12
|
+
/* @__PURE__ */ jsx("div", { className: "w-3 h-3 bg-green-500 rounded-full mr-2 flex-shrink-0" }),
|
|
13
|
+
url && /* @__PURE__ */ jsx("div", {
|
|
14
|
+
className: "text-left bg-white dark:bg-gray-700 h-6 rounded-full leading-6 text-sm text-gray-700 dark:text-gray-300 flex-grow ml-2 mr-4 px-4 whitespace-nowrap overflow-hidden overflow-ellipsis",
|
|
15
|
+
"aria-hidden": true,
|
|
16
|
+
children: url
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ jsxs("div", {
|
|
19
|
+
className: "w-4 h-4 ml-auto flex flex-col justify-evenly items-stretch flex-shrink-0",
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ jsx("span", { className: "h-0.5 bg-gray-400 dark:bg-gray-500" }),
|
|
22
|
+
/* @__PURE__ */ jsx("span", { className: "h-0.5 bg-gray-400 dark:bg-gray-500" }),
|
|
23
|
+
/* @__PURE__ */ jsx("span", { className: "h-0.5 bg-gray-400 dark:bg-gray-500" })
|
|
24
|
+
]
|
|
25
|
+
})
|
|
26
|
+
]
|
|
27
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
28
|
+
className: `flex grow flex-col p-4 rounded-b-md ${padding ? padding : ""} ${transparentBackground ? "" : "bg-white dark:bg-black"}`,
|
|
29
|
+
style: transparentBackground ? {
|
|
30
|
+
backgroundImage: `
|
|
31
|
+
linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
|
|
32
|
+
linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
|
|
33
|
+
linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
|
|
34
|
+
linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)
|
|
35
|
+
`,
|
|
36
|
+
backgroundSize: "20px 20px",
|
|
37
|
+
backgroundPosition: "0 0, 0 10px, 10px -10px, -10px 0px"
|
|
38
|
+
} : {},
|
|
39
|
+
children
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { BrowserFrame };
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/browser-frame/index.tsx"],"sourcesContent":["import React from \"react\";\n\nexport type Props = {\n url?: string,\n padding?: string,\n transparentBackground?: boolean,\n children: React.ReactNode,\n className?: string,\n};\n\nexport const BrowserFrame = ({ url, padding, transparentBackground, children, className }: Props) => (\n <div className={`rounded-xl overflow-hidden shadow-2xl ${className}`}>\n <div className=\"bg-gray-200 dark:bg-gray-800 h-10 flex items-center py-2 px-4 box-border\">\n <div className=\"w-3 h-3 bg-red-500 rounded-full mr-1.5 flex-shrink-0\" />\n <div className=\"w-3 h-3 bg-yellow-500 rounded-full mr-1.5 flex-shrink-0\" />\n <div className=\"w-3 h-3 bg-green-500 rounded-full mr-2 flex-shrink-0\" />\n {url && (\n <div\n className=\"text-left bg-white dark:bg-gray-700 h-6 rounded-full leading-6 text-sm text-gray-700 dark:text-gray-300 flex-grow ml-2 mr-4 px-4 whitespace-nowrap overflow-hidden overflow-ellipsis\"\n aria-hidden\n >\n {url}\n </div>\n )}\n <div className=\"w-4 h-4 ml-auto flex flex-col justify-evenly items-stretch flex-shrink-0\">\n <span className=\"h-0.5 bg-gray-400 dark:bg-gray-500\" />\n <span className=\"h-0.5 bg-gray-400 dark:bg-gray-500\" />\n <span className=\"h-0.5 bg-gray-400 dark:bg-gray-500\" />\n </div>\n </div>\n <div\n className={`flex grow flex-col p-4 rounded-b-md ${padding ? padding : \"\"} ${\n transparentBackground\n ? \"\"\n : \"bg-white dark:bg-black\"\n }`}\n style={transparentBackground ? {\n backgroundImage: `\n linear-gradient(45deg, #f0f0f0 25%, transparent 25%), \n linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), \n linear-gradient(45deg, transparent 75%, #f0f0f0 75%), \n linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)\n `,\n backgroundSize: '20px 20px',\n backgroundPosition: '0 0, 0 10px, 10px -10px, -10px 0px'\n } : {}}\n >\n {children}\n </div>\n </div>\n);\n"],"mappings":";;;;AAUA,MAAa,gBAAgB,EAAE,KAAK,SAAS,uBAAuB,UAAU,gBAC5E,qBAAC;CAAI,WAAW,yCAAyC;YACvD,qBAAC;EAAI,WAAU;;GACb,oBAAC,SAAI,WAAU,yDAAyD;GACxE,oBAAC,SAAI,WAAU,4DAA4D;GAC3E,oBAAC,SAAI,WAAU,yDAAyD;GACvE,OACC,oBAAC;IACC,WAAU;IACV;cAEC;KACG;GAER,qBAAC;IAAI,WAAU;;KACb,oBAAC,UAAK,WAAU,uCAAuC;KACvD,oBAAC,UAAK,WAAU,uCAAuC;KACvD,oBAAC,UAAK,WAAU,uCAAuC;;KACnD;;GACF,EACN,oBAAC;EACC,WAAW,uCAAuC,UAAU,UAAU,GAAG,GACvE,wBACI,KACA;EAEN,OAAO,wBAAwB;GAC7B,iBAAiB;;;;;;GAMjB,gBAAgB;GAChB,oBAAoB;GACrB,GAAG,EAAE;EAEL;GACG;EACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as class_variance_authority0 from "class-variance-authority";
|
|
3
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
|
+
|
|
5
|
+
//#region src/components/copy-button.d.ts
|
|
6
|
+
declare const CopyButton: React.FC<{
|
|
7
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void | Promise<void>;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
loadingStyle?: "spinner" | "disabled";
|
|
10
|
+
} & {
|
|
11
|
+
asChild?: boolean;
|
|
12
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & class_variance_authority0.VariantProps<(props?: ({
|
|
13
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
|
|
14
|
+
size?: "default" | "plain" | "sm" | "lg" | "icon" | null | undefined;
|
|
15
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string> & {
|
|
16
|
+
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
content: string;
|
|
19
|
+
}>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { CopyButton };
|
|
22
|
+
//# sourceMappingURL=copy-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-button.d.ts","names":[],"sources":["../../../src/components/copy-button.tsx"],"mappings":";;;;;cAOM,UAAA,EAAU,KAAA,CAAA,EAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { Copy } from "lucide-react";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Button, cn, useToast } from "../index.js";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
|
|
8
|
+
|
|
9
|
+
//#region src/components/copy-button.tsx
|
|
10
|
+
const CopyButton = forwardRefIfNeeded((props, ref) => {
|
|
11
|
+
const { toast } = useToast();
|
|
12
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
13
|
+
variant: "secondary",
|
|
14
|
+
...props,
|
|
15
|
+
className: cn("h-6 w-6 p-1", props.className),
|
|
16
|
+
ref,
|
|
17
|
+
onClick: async (...args) => {
|
|
18
|
+
await props.onClick?.(...args);
|
|
19
|
+
try {
|
|
20
|
+
await navigator.clipboard.writeText(props.content);
|
|
21
|
+
toast({
|
|
22
|
+
description: "Copied to clipboard!",
|
|
23
|
+
variant: "success"
|
|
24
|
+
});
|
|
25
|
+
} catch (e) {
|
|
26
|
+
toast({
|
|
27
|
+
description: "Failed to copy to clipboard",
|
|
28
|
+
variant: "destructive"
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
children: /* @__PURE__ */ jsx(Copy, {})
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
CopyButton.displayName = "CopyButton";
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { CopyButton };
|
|
39
|
+
//# sourceMappingURL=copy-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-button.js","names":[],"sources":["../../../src/components/copy-button.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRefIfNeeded } from \"@stackframe/stack-shared/dist/utils/react\";\nimport { Copy } from \"lucide-react\";\nimport React from \"react\";\nimport { Button, cn, useToast } from \"..\";\n\nconst CopyButton = forwardRefIfNeeded<\n React.ElementRef<typeof Button>,\n React.ComponentProps<typeof Button> & { content: string }\n>((props, ref) => {\n const { toast } = useToast();\n\n return (\n <Button\n variant=\"secondary\"\n {...props}\n className={cn(\"h-6 w-6 p-1\", props.className)}\n ref={ref}\n onClick={async (...args) => {\n await props.onClick?.(...args);\n try {\n await navigator.clipboard.writeText(props.content);\n toast({ description: 'Copied to clipboard!', variant: 'success' });\n } catch (e) {\n toast({ description: 'Failed to copy to clipboard', variant: 'destructive' });\n }\n }}\n >\n <Copy />\n </Button>\n );\n});\nCopyButton.displayName = \"CopyButton\";\n\nexport { CopyButton };\n"],"mappings":";;;;;;;;;AAOA,MAAM,aAAa,oBAGhB,OAAO,QAAQ;CAChB,MAAM,EAAE,UAAU,UAAU;AAE5B,QACE,oBAAC;EACC,SAAQ;EACR,GAAI;EACJ,WAAW,GAAG,eAAe,MAAM,UAAU;EACxC;EACL,SAAS,OAAO,GAAG,SAAS;AAC1B,SAAM,MAAM,UAAU,GAAG,KAAK;AAC9B,OAAI;AACF,UAAM,UAAU,UAAU,UAAU,MAAM,QAAQ;AAClD,UAAM;KAAE,aAAa;KAAwB,SAAS;KAAW,CAAC;YAC3D,GAAG;AACV,UAAM;KAAE,aAAa;KAA+B,SAAS;KAAe,CAAC;;;YAIjF,oBAAC,SAAO;GACD;EAEX;AACF,WAAW,cAAc"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/copy-field.d.ts
|
|
4
|
+
declare function CopyField(props: {
|
|
5
|
+
value: string;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
helper?: React.ReactNode;
|
|
8
|
+
monospace?: boolean;
|
|
9
|
+
fixedSize?: boolean;
|
|
10
|
+
} & ({
|
|
11
|
+
type: "textarea";
|
|
12
|
+
height?: number;
|
|
13
|
+
} | {
|
|
14
|
+
type: "input";
|
|
15
|
+
})): react_jsx_runtime0.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { CopyField };
|
|
18
|
+
//# sourceMappingURL=copy-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-field.d.ts","names":[],"sources":["../../../src/components/copy-field.tsx"],"mappings":";;;iBAGgB,SAAA,CAAU,KAAA;EACxB,KAAA;EACA,KAAA,GAAQ,KAAA,CAAM,SAAA;EACd,MAAA,GAAS,KAAA,CAAM,SAAA;EACf,SAAA;EACA,SAAA;AAAA;EAEA,IAAA;EACA,MAAA;AAAA;EAEA,IAAA;AAAA,KACA,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Input, Label, SimpleTooltip, Textarea } from "../index.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { CopyButton } from "./copy-button.js";
|
|
4
|
+
|
|
5
|
+
//#region src/components/copy-field.tsx
|
|
6
|
+
function CopyField(props) {
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", { children: [props.label && /* @__PURE__ */ jsxs(Label, {
|
|
8
|
+
className: "flex items-center gap-2 mb-2",
|
|
9
|
+
children: [props.label, props.helper && /* @__PURE__ */ jsx(SimpleTooltip, {
|
|
10
|
+
type: "info",
|
|
11
|
+
tooltip: props.helper
|
|
12
|
+
})]
|
|
13
|
+
}), props.type === "textarea" ? /* @__PURE__ */ jsxs("div", {
|
|
14
|
+
className: "relative pr-2",
|
|
15
|
+
children: [/* @__PURE__ */ jsx(Textarea, {
|
|
16
|
+
readOnly: true,
|
|
17
|
+
value: props.value,
|
|
18
|
+
style: {
|
|
19
|
+
height: props.height,
|
|
20
|
+
fontFamily: props.monospace ? "ui-monospace, monospace" : "inherit",
|
|
21
|
+
whiteSpace: props.monospace ? "pre" : "normal",
|
|
22
|
+
resize: props.fixedSize ? "none" : "vertical"
|
|
23
|
+
}
|
|
24
|
+
}), /* @__PURE__ */ jsx(CopyButton, {
|
|
25
|
+
content: props.value,
|
|
26
|
+
className: "absolute right-4 top-2"
|
|
27
|
+
})]
|
|
28
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
29
|
+
className: "flex items-center gap-2",
|
|
30
|
+
children: [/* @__PURE__ */ jsx(Input, {
|
|
31
|
+
readOnly: true,
|
|
32
|
+
value: props.value,
|
|
33
|
+
style: { fontFamily: props.monospace ? "ui-monospace, monospace" : "inherit" }
|
|
34
|
+
}), /* @__PURE__ */ jsx(CopyButton, { content: props.value })]
|
|
35
|
+
})] });
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { CopyField };
|
|
40
|
+
//# sourceMappingURL=copy-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-field.js","names":[],"sources":["../../../src/components/copy-field.tsx"],"sourcesContent":["import { Input, Label, SimpleTooltip, Textarea } from \"..\";\nimport { CopyButton } from \"./copy-button\";\n\nexport function CopyField(props: {\n value: string,\n label?: React.ReactNode,\n helper?: React.ReactNode,\n monospace?: boolean,\n fixedSize?: boolean,\n} & ({\n type: \"textarea\",\n height?: number,\n} | {\n type: \"input\",\n})) {\n return (\n <div>\n {props.label && (\n <Label className=\"flex items-center gap-2 mb-2\">\n {props.label}\n {props.helper && <SimpleTooltip type=\"info\" tooltip={props.helper} />}\n </Label>\n )}\n {props.type === \"textarea\" ? (\n <div className=\"relative pr-2\">\n <Textarea\n readOnly\n value={props.value}\n style={{\n height: props.height,\n fontFamily: props.monospace ? \"ui-monospace, monospace\" : \"inherit\",\n whiteSpace: props.monospace ? \"pre\" : \"normal\",\n resize: props.fixedSize ? \"none\" : \"vertical\"\n }}\n />\n <CopyButton content={props.value} className=\"absolute right-4 top-2\" />\n </div>\n ) : (\n <div className=\"flex items-center gap-2\">\n <Input\n readOnly\n value={props.value}\n style={{\n fontFamily: props.monospace ? \"ui-monospace, monospace\" : \"inherit\",\n }}\n />\n <CopyButton content={props.value} />\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;AAGA,SAAgB,UAAU,OAWtB;AACF,QACE,qBAAC,oBACE,MAAM,SACL,qBAAC;EAAM,WAAU;aACd,MAAM,OACN,MAAM,UAAU,oBAAC;GAAc,MAAK;GAAO,SAAS,MAAM;IAAU;GAC/D,EAET,MAAM,SAAS,aACd,qBAAC;EAAI,WAAU;aACb,oBAAC;GACC;GACA,OAAO,MAAM;GACb,OAAO;IACL,QAAQ,MAAM;IACd,YAAY,MAAM,YAAY,4BAA4B;IAC1D,YAAY,MAAM,YAAY,QAAQ;IACtC,QAAQ,MAAM,YAAY,SAAS;IACpC;IACD,EACF,oBAAC;GAAW,SAAS,MAAM;GAAO,WAAU;IAA2B;GACnE,GAEN,qBAAC;EAAI,WAAU;aACb,oBAAC;GACC;GACA,OAAO,MAAM;GACb,OAAO,EACL,YAAY,MAAM,YAAY,4BAA4B,WAC3D;IACD,EACF,oBAAC,cAAW,SAAS,MAAM,QAAS;GAChC,IAEJ"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/data-table/cells.d.ts
|
|
5
|
+
declare function TextCell(props: {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
size?: number;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
10
|
+
declare function AvatarCell(props: {
|
|
11
|
+
src?: string;
|
|
12
|
+
fallback?: string;
|
|
13
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
14
|
+
declare function DateCell(props: {
|
|
15
|
+
date: Date;
|
|
16
|
+
ignoreAfterYears?: number;
|
|
17
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
18
|
+
type ActionItem = '-' | {
|
|
19
|
+
item: React.ReactNode;
|
|
20
|
+
onClick: (e: React.MouseEvent) => void | Promise<void>;
|
|
21
|
+
danger?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
disabledTooltip?: string;
|
|
24
|
+
};
|
|
25
|
+
declare function ActionCell(props: {
|
|
26
|
+
items?: ActionItem[];
|
|
27
|
+
invisible?: boolean;
|
|
28
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
29
|
+
declare function BadgeCell(props: {
|
|
30
|
+
badges: string[];
|
|
31
|
+
size?: number;
|
|
32
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { ActionCell, AvatarCell, BadgeCell, DateCell, TextCell };
|
|
35
|
+
//# sourceMappingURL=cells.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cells.d.ts","names":[],"sources":["../../../../src/components/data-table/cells.tsx"],"mappings":";;;;iBAMgB,QAAA,CAAS,KAAA;EAAS,QAAA,EAAU,KAAA,CAAM,SAAA;EAAW,IAAA;EAAe,IAAA,GAAO,KAAA,CAAM,SAAA;AAAA,IAAW,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAsCpF,UAAA,CAAW,KAAA;EAAS,GAAA;EAAc,QAAA;AAAA,IAAmB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBASrD,QAAA,CAAS,KAAA;EAAS,IAAA,EAAM,IAAA;EAAM,gBAAA;AAAA,IAA2B,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,KAUpE,UAAA;EACH,IAAA,EAAM,KAAA,CAAM,SAAA;EACZ,OAAA,GAAU,CAAA,EAAG,KAAA,CAAM,UAAA,YAAsB,OAAA;EACzC,MAAA;EACA,QAAA;EACA,eAAA;AAAA;AAAA,iBAGc,UAAA,CAAW,KAAA;EACzB,KAAA,GAAQ,UAAA;EACR,SAAA;AAAA,IACD,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAkDe,SAAA,CAAU,KAAA;EAAS,MAAA;EAAkB,IAAA;AAAA,IAAe,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|