blimpui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/$/components/primitives/accordion.d.ts +9 -0
- package/dist/$/components/primitives/accordion.d.ts.map +1 -0
- package/dist/$/components/primitives/accordion.js +64 -0
- package/dist/$/components/primitives/alert-dialog.d.ts +31 -0
- package/dist/$/components/primitives/alert-dialog.d.ts.map +1 -0
- package/dist/$/components/primitives/alert-dialog.js +74 -0
- package/dist/$/components/primitives/alert.d.ts +13 -0
- package/dist/$/components/primitives/alert.d.ts.map +1 -0
- package/dist/$/components/primitives/alert.js +42 -0
- package/dist/$/components/primitives/aspect-ratio.d.ts +2 -0
- package/dist/$/components/primitives/aspect-ratio.d.ts.map +1 -0
- package/dist/$/components/primitives/aspect-ratio.js +1 -0
- package/dist/$/components/primitives/avatar.d.ts +6 -0
- package/dist/$/components/primitives/avatar.d.ts.map +1 -0
- package/dist/$/components/primitives/avatar.js +38 -0
- package/dist/$/components/primitives/badge.d.ts +15 -0
- package/dist/$/components/primitives/badge.d.ts.map +1 -0
- package/dist/$/components/primitives/badge.js +64 -0
- package/dist/$/components/primitives/button.d.ts +37 -0
- package/dist/$/components/primitives/button.d.ts.map +1 -0
- package/dist/$/components/primitives/button.js +100 -0
- package/dist/$/components/primitives/calendar/calendar-header.d.ts +13 -0
- package/dist/$/components/primitives/calendar/calendar-header.d.ts.map +1 -0
- package/dist/$/components/primitives/calendar/calendar-header.js +15 -0
- package/dist/$/components/primitives/calendar/calendar-month-grid.d.ts +14 -0
- package/dist/$/components/primitives/calendar/calendar-month-grid.d.ts.map +1 -0
- package/dist/$/components/primitives/calendar/calendar-month-grid.js +29 -0
- package/dist/$/components/primitives/calendar/calendar-weekdays-row.d.ts +8 -0
- package/dist/$/components/primitives/calendar/calendar-weekdays-row.d.ts.map +1 -0
- package/dist/$/components/primitives/calendar/calendar-weekdays-row.js +36 -0
- package/dist/$/components/primitives/calendar/constants.d.ts +3 -0
- package/dist/$/components/primitives/calendar/constants.d.ts.map +1 -0
- package/dist/$/components/primitives/calendar/constants.js +15 -0
- package/dist/$/components/primitives/calendar/date-utils.d.ts +14 -0
- package/dist/$/components/primitives/calendar/date-utils.d.ts.map +1 -0
- package/dist/$/components/primitives/calendar/date-utils.js +77 -0
- package/dist/$/components/primitives/calendar/month-year-overlay.d.ts +14 -0
- package/dist/$/components/primitives/calendar/month-year-overlay.d.ts.map +1 -0
- package/dist/$/components/primitives/calendar/month-year-overlay.js +11 -0
- package/dist/$/components/primitives/calendar/types.d.ts +24 -0
- package/dist/$/components/primitives/calendar/types.d.ts.map +1 -0
- package/dist/$/components/primitives/calendar/types.js +1 -0
- package/dist/$/components/primitives/calendar/use-calendar-shell.d.ts +35 -0
- package/dist/$/components/primitives/calendar/use-calendar-shell.d.ts.map +1 -0
- package/dist/$/components/primitives/calendar/use-calendar-shell.js +95 -0
- package/dist/$/components/primitives/calendar/use-controllable-state.d.ts +8 -0
- package/dist/$/components/primitives/calendar/use-controllable-state.d.ts.map +1 -0
- package/dist/$/components/primitives/calendar/use-controllable-state.js +13 -0
- package/dist/$/components/primitives/calendar.d.ts +5 -0
- package/dist/$/components/primitives/calendar.d.ts.map +1 -0
- package/dist/$/components/primitives/calendar.js +48 -0
- package/dist/$/components/primitives/card.d.ts +10 -0
- package/dist/$/components/primitives/card.d.ts.map +1 -0
- package/dist/$/components/primitives/card.js +51 -0
- package/dist/$/components/primitives/checkbox.d.ts +8 -0
- package/dist/$/components/primitives/checkbox.d.ts.map +1 -0
- package/dist/$/components/primitives/checkbox.js +37 -0
- package/dist/$/components/primitives/collapsible.d.ts +2 -0
- package/dist/$/components/primitives/collapsible.d.ts.map +1 -0
- package/dist/$/components/primitives/collapsible.js +1 -0
- package/dist/$/components/primitives/context-menu.d.ts +61 -0
- package/dist/$/components/primitives/context-menu.d.ts.map +1 -0
- package/dist/$/components/primitives/context-menu.js +101 -0
- package/dist/$/components/primitives/dialog.d.ts +35 -0
- package/dist/$/components/primitives/dialog.d.ts.map +1 -0
- package/dist/$/components/primitives/dialog.js +68 -0
- package/dist/$/components/primitives/dropdown-menu.d.ts +61 -0
- package/dist/$/components/primitives/dropdown-menu.d.ts.map +1 -0
- package/dist/$/components/primitives/dropdown-menu.js +102 -0
- package/dist/$/components/primitives/hover-card.d.ts +18 -0
- package/dist/$/components/primitives/hover-card.d.ts.map +1 -0
- package/dist/$/components/primitives/hover-card.js +41 -0
- package/dist/$/components/primitives/icon.d.ts +27 -0
- package/dist/$/components/primitives/icon.d.ts.map +1 -0
- package/dist/$/components/primitives/icon.js +64 -0
- package/dist/$/components/primitives/input.d.ts +5 -0
- package/dist/$/components/primitives/input.d.ts.map +1 -0
- package/dist/$/components/primitives/input.js +38 -0
- package/dist/$/components/primitives/label.d.ts +4 -0
- package/dist/$/components/primitives/label.d.ts.map +1 -0
- package/dist/$/components/primitives/label.js +33 -0
- package/dist/$/components/primitives/list.d.ts +9 -0
- package/dist/$/components/primitives/list.d.ts.map +1 -0
- package/dist/$/components/primitives/list.js +155 -0
- package/dist/$/components/primitives/menubar.d.ts +57 -0
- package/dist/$/components/primitives/menubar.d.ts.map +1 -0
- package/dist/$/components/primitives/menubar.js +115 -0
- package/dist/$/components/primitives/multi-column-wheelpicker/index.d.ts +2 -0
- package/dist/$/components/primitives/multi-column-wheelpicker/index.d.ts.map +1 -0
- package/dist/$/components/primitives/multi-column-wheelpicker/index.js +1 -0
- package/dist/$/components/primitives/multi-column-wheelpicker/multi-column-wheelpicker.d.ts +35 -0
- package/dist/$/components/primitives/multi-column-wheelpicker/multi-column-wheelpicker.d.ts.map +1 -0
- package/dist/$/components/primitives/multi-column-wheelpicker/multi-column-wheelpicker.js +62 -0
- package/dist/$/components/primitives/native-only-animated-view.d.ts +13 -0
- package/dist/$/components/primitives/native-only-animated-view.d.ts.map +1 -0
- package/dist/$/components/primitives/native-only-animated-view.js +32 -0
- package/dist/$/components/primitives/popover.d.ts +18 -0
- package/dist/$/components/primitives/popover.d.ts.map +1 -0
- package/dist/$/components/primitives/popover.js +41 -0
- package/dist/$/components/primitives/pressable.d.ts +14 -0
- package/dist/$/components/primitives/pressable.d.ts.map +1 -0
- package/dist/$/components/primitives/pressable.js +39 -0
- package/dist/$/components/primitives/progress.d.ts +6 -0
- package/dist/$/components/primitives/progress.d.ts.map +1 -0
- package/dist/$/components/primitives/progress.js +60 -0
- package/dist/$/components/primitives/radio-group.d.ts +5 -0
- package/dist/$/components/primitives/radio-group.d.ts.map +1 -0
- package/dist/$/components/primitives/radio-group.js +37 -0
- package/dist/$/components/primitives/range-calendar/index.d.ts +2 -0
- package/dist/$/components/primitives/range-calendar/index.d.ts.map +1 -0
- package/dist/$/components/primitives/range-calendar/index.js +1 -0
- package/dist/$/components/primitives/range-calendar/range-calendar.d.ts +25 -0
- package/dist/$/components/primitives/range-calendar/range-calendar.d.ts.map +1 -0
- package/dist/$/components/primitives/range-calendar/range-calendar.js +170 -0
- package/dist/$/components/primitives/select.d.ts +59 -0
- package/dist/$/components/primitives/select.d.ts.map +1 -0
- package/dist/$/components/primitives/select.js +119 -0
- package/dist/$/components/primitives/separator.d.ts +4 -0
- package/dist/$/components/primitives/separator.d.ts.map +1 -0
- package/dist/$/components/primitives/separator.js +30 -0
- package/dist/$/components/primitives/skeleton.d.ts +5 -0
- package/dist/$/components/primitives/skeleton.d.ts.map +1 -0
- package/dist/$/components/primitives/skeleton.js +39 -0
- package/dist/$/components/primitives/switch.d.ts +4 -0
- package/dist/$/components/primitives/switch.d.ts.map +1 -0
- package/dist/$/components/primitives/switch.js +37 -0
- package/dist/$/components/primitives/tabs.d.ts +7 -0
- package/dist/$/components/primitives/tabs.d.ts.map +1 -0
- package/dist/$/components/primitives/tabs.js +48 -0
- package/dist/$/components/primitives/text.d.ts +13 -0
- package/dist/$/components/primitives/text.d.ts.map +1 -0
- package/dist/$/components/primitives/text.js +73 -0
- package/dist/$/components/primitives/textarea.d.ts +5 -0
- package/dist/$/components/primitives/textarea.d.ts.map +1 -0
- package/dist/$/components/primitives/textarea.js +33 -0
- package/dist/$/components/primitives/toast/index.d.ts +2 -0
- package/dist/$/components/primitives/toast/index.d.ts.map +1 -0
- package/dist/$/components/primitives/toast/index.js +1 -0
- package/dist/$/components/primitives/toast/index.web.d.ts +2 -0
- package/dist/$/components/primitives/toast/index.web.d.ts.map +1 -0
- package/dist/$/components/primitives/toast/index.web.js +1 -0
- package/dist/$/components/primitives/toggle-group.d.ts +13 -0
- package/dist/$/components/primitives/toggle-group.d.ts.map +1 -0
- package/dist/$/components/primitives/toggle-group.js +65 -0
- package/dist/$/components/primitives/toggle.d.ts +12 -0
- package/dist/$/components/primitives/toggle.d.ts.map +1 -0
- package/dist/$/components/primitives/toggle.js +63 -0
- package/dist/$/components/primitives/tooltip.d.ts +21 -0
- package/dist/$/components/primitives/tooltip.d.ts.map +1 -0
- package/dist/$/components/primitives/tooltip.js +47 -0
- package/dist/$/components/primitives/view.d.ts +15 -0
- package/dist/$/components/primitives/view.d.ts.map +1 -0
- package/dist/$/components/primitives/view.js +37 -0
- package/dist/$/components/primitives/wheelpicker/index.d.ts +4 -0
- package/dist/$/components/primitives/wheelpicker/index.d.ts.map +1 -0
- package/dist/$/components/primitives/wheelpicker/index.js +3 -0
- package/dist/$/components/primitives/wheelpicker/types.d.ts +7 -0
- package/dist/$/components/primitives/wheelpicker/types.d.ts.map +1 -0
- package/dist/$/components/primitives/wheelpicker/types.js +1 -0
- package/dist/$/components/primitives/wheelpicker/use-wheel-picker-value.d.ts +16 -0
- package/dist/$/components/primitives/wheelpicker/use-wheel-picker-value.d.ts.map +1 -0
- package/dist/$/components/primitives/wheelpicker/use-wheel-picker-value.js +43 -0
- package/dist/$/components/primitives/wheelpicker/wheel-picker-item.d.ts +11 -0
- package/dist/$/components/primitives/wheelpicker/wheel-picker-item.d.ts.map +1 -0
- package/dist/$/components/primitives/wheelpicker/wheel-picker-item.js +8 -0
- package/dist/$/components/primitives/wheelpicker/wheel-picker-list.d.ts +18 -0
- package/dist/$/components/primitives/wheelpicker/wheel-picker-list.d.ts.map +1 -0
- package/dist/$/components/primitives/wheelpicker/wheel-picker-list.js +253 -0
- package/dist/$/components/primitives/wheelpicker/wheelpicker.d.ts +17 -0
- package/dist/$/components/primitives/wheelpicker/wheelpicker.d.ts.map +1 -0
- package/dist/$/components/primitives/wheelpicker/wheelpicker.js +15 -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 +39 -0
- package/dist/$/components/ui/alert-dialog.d.ts +22 -0
- package/dist/$/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/$/components/ui/alert-dialog.js +92 -0
- package/dist/$/components/ui/alert.d.ts +14 -0
- package/dist/$/components/ui/alert.d.ts.map +1 -0
- package/dist/$/components/ui/alert.js +31 -0
- package/dist/$/components/ui/aspect-ratio.d.ts +2 -0
- package/dist/$/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/$/components/ui/aspect-ratio.js +1 -0
- package/dist/$/components/ui/avatar.d.ts +14 -0
- package/dist/$/components/ui/avatar.d.ts.map +1 -0
- package/dist/$/components/ui/avatar.js +33 -0
- package/dist/$/components/ui/badge.d.ts +2 -0
- package/dist/$/components/ui/badge.d.ts.map +1 -0
- package/dist/$/components/ui/badge.js +1 -0
- package/dist/$/components/ui/button.d.ts +2 -0
- package/dist/$/components/ui/button.d.ts.map +1 -0
- package/dist/$/components/ui/button.js +1 -0
- package/dist/$/components/ui/calendar.d.ts +2 -0
- package/dist/$/components/ui/calendar.d.ts.map +1 -0
- package/dist/$/components/ui/calendar.js +1 -0
- package/dist/$/components/ui/card.d.ts +17 -0
- package/dist/$/components/ui/card.d.ts.map +1 -0
- package/dist/$/components/ui/card.js +33 -0
- package/dist/$/components/ui/checkbox.d.ts +2 -0
- package/dist/$/components/ui/checkbox.d.ts.map +1 -0
- package/dist/$/components/ui/checkbox.js +1 -0
- package/dist/$/components/ui/collapsible.d.ts +12 -0
- package/dist/$/components/ui/collapsible.d.ts.map +1 -0
- package/dist/$/components/ui/collapsible.js +33 -0
- package/dist/$/components/ui/context-menu.d.ts +59 -0
- package/dist/$/components/ui/context-menu.d.ts.map +1 -0
- package/dist/$/components/ui/context-menu.js +66 -0
- package/dist/$/components/ui/date-range-picker.d.ts +26 -0
- package/dist/$/components/ui/date-range-picker.d.ts.map +1 -0
- package/dist/$/components/ui/date-range-picker.js +89 -0
- package/dist/$/components/ui/datepicker.d.ts +26 -0
- package/dist/$/components/ui/datepicker.d.ts.map +1 -0
- package/dist/$/components/ui/datepicker.js +81 -0
- package/dist/$/components/ui/dialog.d.ts +18 -0
- package/dist/$/components/ui/dialog.d.ts.map +1 -0
- package/dist/$/components/ui/dialog.js +33 -0
- package/dist/$/components/ui/dropdown-menu.d.ts +59 -0
- package/dist/$/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/$/components/ui/dropdown-menu.js +79 -0
- package/dist/$/components/ui/form-field/form-field-label.d.ts +15 -0
- package/dist/$/components/ui/form-field/form-field-label.d.ts.map +1 -0
- package/dist/$/components/ui/form-field/form-field-label.js +15 -0
- package/dist/$/components/ui/form-field/form-field-message.d.ts +11 -0
- package/dist/$/components/ui/form-field/form-field-message.d.ts.map +1 -0
- package/dist/$/components/ui/form-field/form-field-message.js +10 -0
- package/dist/$/components/ui/form-field/index.d.ts +48 -0
- package/dist/$/components/ui/form-field/index.d.ts.map +1 -0
- package/dist/$/components/ui/form-field/index.js +80 -0
- package/dist/$/components/ui/form-field/use-form-field-animation.d.ts +8 -0
- package/dist/$/components/ui/form-field/use-form-field-animation.d.ts.map +1 -0
- package/dist/$/components/ui/form-field/use-form-field-animation.js +23 -0
- package/dist/$/components/ui/form-field/use-form-field.d.ts +28 -0
- package/dist/$/components/ui/form-field/use-form-field.d.ts.map +1 -0
- package/dist/$/components/ui/form-field/use-form-field.js +55 -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 +33 -0
- package/dist/$/components/ui/icon.d.ts +2 -0
- package/dist/$/components/ui/icon.d.ts.map +1 -0
- package/dist/$/components/ui/icon.js +1 -0
- package/dist/$/components/ui/input.d.ts +30 -0
- package/dist/$/components/ui/input.d.ts.map +1 -0
- package/dist/$/components/ui/input.js +60 -0
- package/dist/$/components/ui/label.d.ts +2 -0
- package/dist/$/components/ui/label.d.ts.map +1 -0
- package/dist/$/components/ui/label.js +1 -0
- package/dist/$/components/ui/list.d.ts +2 -0
- package/dist/$/components/ui/list.d.ts.map +1 -0
- package/dist/$/components/ui/list.js +1 -0
- package/dist/$/components/ui/menubar.d.ts +63 -0
- package/dist/$/components/ui/menubar.d.ts.map +1 -0
- package/dist/$/components/ui/menubar.js +66 -0
- package/dist/$/components/ui/multi-column-wheelpicker.d.ts +2 -0
- package/dist/$/components/ui/multi-column-wheelpicker.d.ts.map +1 -0
- package/dist/$/components/ui/multi-column-wheelpicker.js +1 -0
- package/dist/$/components/ui/native-only-animated-view.d.ts +2 -0
- package/dist/$/components/ui/native-only-animated-view.d.ts.map +1 -0
- package/dist/$/components/ui/native-only-animated-view.js +1 -0
- package/dist/$/components/ui/picker.d.ts +25 -0
- package/dist/$/components/ui/picker.d.ts.map +1 -0
- package/dist/$/components/ui/picker.js +80 -0
- package/dist/$/components/ui/popover.d.ts +34 -0
- package/dist/$/components/ui/popover.d.ts.map +1 -0
- package/dist/$/components/ui/popover.js +63 -0
- package/dist/$/components/ui/pressable.d.ts +2 -0
- package/dist/$/components/ui/pressable.d.ts.map +1 -0
- package/dist/$/components/ui/pressable.js +1 -0
- package/dist/$/components/ui/progress.d.ts +2 -0
- package/dist/$/components/ui/progress.d.ts.map +1 -0
- package/dist/$/components/ui/progress.js +1 -0
- package/dist/$/components/ui/radio-group.d.ts +15 -0
- package/dist/$/components/ui/radio-group.d.ts.map +1 -0
- package/dist/$/components/ui/radio-group.js +41 -0
- package/dist/$/components/ui/range-calendar.d.ts +2 -0
- package/dist/$/components/ui/range-calendar.d.ts.map +1 -0
- package/dist/$/components/ui/range-calendar.js +1 -0
- package/dist/$/components/ui/select.d.ts +75 -0
- package/dist/$/components/ui/select.d.ts.map +1 -0
- package/dist/$/components/ui/select.js +105 -0
- package/dist/$/components/ui/separator.d.ts +2 -0
- package/dist/$/components/ui/separator.d.ts.map +1 -0
- package/dist/$/components/ui/separator.js +1 -0
- package/dist/$/components/ui/skeleton.d.ts +2 -0
- package/dist/$/components/ui/skeleton.d.ts.map +1 -0
- package/dist/$/components/ui/skeleton.js +1 -0
- package/dist/$/components/ui/switch.d.ts +2 -0
- package/dist/$/components/ui/switch.d.ts.map +1 -0
- package/dist/$/components/ui/switch.js +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 +48 -0
- package/dist/$/components/ui/text.d.ts +2 -0
- package/dist/$/components/ui/text.d.ts.map +1 -0
- package/dist/$/components/ui/text.js +1 -0
- package/dist/$/components/ui/textarea.d.ts +30 -0
- package/dist/$/components/ui/textarea.d.ts.map +1 -0
- package/dist/$/components/ui/textarea.js +61 -0
- package/dist/$/components/ui/timepicker.d.ts +26 -0
- package/dist/$/components/ui/timepicker.d.ts.map +1 -0
- package/dist/$/components/ui/timepicker.js +90 -0
- package/dist/$/components/ui/timewheelpicker.d.ts +22 -0
- package/dist/$/components/ui/timewheelpicker.d.ts.map +1 -0
- package/dist/$/components/ui/timewheelpicker.js +112 -0
- package/dist/$/components/ui/toggle-group.d.ts +14 -0
- package/dist/$/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/$/components/ui/toggle-group.js +44 -0
- package/dist/$/components/ui/toggle.d.ts +2 -0
- package/dist/$/components/ui/toggle.d.ts.map +1 -0
- package/dist/$/components/ui/toggle.js +1 -0
- package/dist/$/components/ui/tooltip.d.ts +12 -0
- package/dist/$/components/ui/tooltip.d.ts.map +1 -0
- package/dist/$/components/ui/tooltip.js +33 -0
- package/dist/$/components/ui/view.d.ts +2 -0
- package/dist/$/components/ui/view.d.ts.map +1 -0
- package/dist/$/components/ui/view.js +1 -0
- package/dist/$/components/ui/wheelpicker.d.ts +2 -0
- package/dist/$/components/ui/wheelpicker.d.ts.map +1 -0
- package/dist/$/components/ui/wheelpicker.js +1 -0
- package/dist/$/lib/hooks/useExtractTextClasses.d.ts +2 -0
- package/dist/$/lib/hooks/useExtractTextClasses.d.ts.map +1 -0
- package/dist/$/lib/hooks/useExtractTextClasses.js +62 -0
- package/dist/$/lib/utils/renderNode.d.ts +3 -0
- package/dist/$/lib/utils/renderNode.d.ts.map +1 -0
- package/dist/$/lib/utils/renderNode.js +22 -0
- package/dist/$/lib/utils.d.ts +5 -0
- package/dist/$/lib/utils.d.ts.map +1 -0
- package/dist/$/lib/utils.js +32 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/package.json +69 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as AccordionPrimitive from "@rn-primitives/accordion";
|
|
2
|
+
declare function Accordion({ children, ...props }: Omit<AccordionPrimitive.RootProps, "asChild"> & React.RefAttributes<AccordionPrimitive.RootRef>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function AccordionItem({ children, className, value, ...props }: AccordionPrimitive.ItemProps & React.RefAttributes<AccordionPrimitive.ItemRef>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AccordionTrigger({ className, children, ...props }: AccordionPrimitive.TriggerProps & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
} & React.RefAttributes<AccordionPrimitive.TriggerRef>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AccordionContent({ className, children, ...props }: AccordionPrimitive.ContentProps & React.RefAttributes<AccordionPrimitive.ContentRef>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
9
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../../$/components/primitives/accordion.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,kBAAkB,MAAM,0BAA0B,CAAC;AAY/D,iBAAS,SAAS,CAAC,EAClB,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,IAAI,CAAC,kBAAkB,CAAC,SAAS,EAAE,SAAS,CAAC,GAC/C,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,OAAO,CAAC,2CAa/C;AAED,iBAAS,aAAa,CAAC,EACtB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACR,EAAE,kBAAkB,CAAC,SAAS,GAC9B,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,OAAO,CAAC,2CAoB/C;AAID,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,kBAAkB,CAAC,YAAY,GAAG;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,UAAU,CAAC,2CAqDrD;AAED,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,kBAAkB,CAAC,YAAY,GACjC,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,UAAU,CAAC,2CAsBlD;AAED,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { Icon } from "../../../$/components/primitives/icon";
|
|
25
|
+
import { TextClassContext } from "../../../$/components/primitives/text";
|
|
26
|
+
import { cn } from "../../../$/lib/utils";
|
|
27
|
+
import * as AccordionPrimitive from "@rn-primitives/accordion";
|
|
28
|
+
import { ChevronDown } from "lucide-react-native";
|
|
29
|
+
import { Platform, Pressable, View } from "react-native";
|
|
30
|
+
import Animated, { FadeOutUp, LayoutAnimationConfig, LinearTransition, useAnimatedStyle, useDerivedValue, withTiming, } from "react-native-reanimated";
|
|
31
|
+
function Accordion(_a) {
|
|
32
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
33
|
+
return (_jsx(LayoutAnimationConfig, { skipEntering: true, children: _jsx(AccordionPrimitive.Root, __assign({}, props, { asChild: Platform.OS !== "web", children: _jsx(Animated.View, { layout: LinearTransition.duration(200), children: children }) })) }));
|
|
34
|
+
}
|
|
35
|
+
function AccordionItem(_a) {
|
|
36
|
+
var children = _a.children, className = _a.className, value = _a.value, props = __rest(_a, ["children", "className", "value"]);
|
|
37
|
+
return (_jsx(AccordionPrimitive.Item, __assign({ className: cn("border-border border-b", Platform.select({ web: "last:border-b-0" }), className), value: value, asChild: true }, props, { children: _jsx(Animated.View, { className: "native:overflow-hidden", layout: Platform.select({ native: LinearTransition.duration(200) }), children: children }) })));
|
|
38
|
+
}
|
|
39
|
+
var Trigger = Platform.OS === "web" ? View : Pressable;
|
|
40
|
+
function AccordionTrigger(_a) {
|
|
41
|
+
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
42
|
+
var isExpanded = AccordionPrimitive.useItemContext().isExpanded;
|
|
43
|
+
var progress = useDerivedValue(function () {
|
|
44
|
+
return isExpanded
|
|
45
|
+
? withTiming(1, { duration: 250 })
|
|
46
|
+
: withTiming(0, { duration: 200 });
|
|
47
|
+
}, [isExpanded]);
|
|
48
|
+
var chevronStyle = useAnimatedStyle(function () { return ({
|
|
49
|
+
transform: [{ rotate: "".concat(progress.value * 180, "deg") }],
|
|
50
|
+
}); }, [progress]);
|
|
51
|
+
return (_jsx(TextClassContext.Provider, { value: cn("text-left text-sm font-medium", Platform.select({ web: "group-hover:underline" })), children: _jsx(AccordionPrimitive.Header, { children: _jsx(AccordionPrimitive.Trigger, __assign({}, props, { asChild: Platform.OS !== "web", children: _jsxs(Trigger, { className: cn("flex-row items-start justify-between gap-4 rounded-md py-4 disabled:opacity-50", Platform.select({
|
|
52
|
+
web: "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 outline-none transition-all hover:underline focus-visible:ring-[3px] disabled:pointer-events-none [&[data-state=open]>svg]:rotate-180",
|
|
53
|
+
}), className), children: [_jsx(_Fragment, { children: children }), _jsx(Animated.View, { style: chevronStyle, children: _jsx(Icon, { as: ChevronDown, size: 16, className: cn("text-muted-foreground shrink-0", Platform.select({
|
|
54
|
+
web: "pointer-events-none translate-y-0.5 transition-transform duration-200",
|
|
55
|
+
})) }) })] }) })) }) }));
|
|
56
|
+
}
|
|
57
|
+
function AccordionContent(_a) {
|
|
58
|
+
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
59
|
+
var isExpanded = AccordionPrimitive.useItemContext().isExpanded;
|
|
60
|
+
return (_jsx(TextClassContext.Provider, { value: "text-sm", children: _jsx(AccordionPrimitive.Content, __assign({ className: cn("overflow-hidden", Platform.select({
|
|
61
|
+
web: isExpanded ? "animate-accordion-down" : "animate-accordion-up",
|
|
62
|
+
})) }, props, { children: _jsx(Animated.View, { exiting: Platform.select({ native: FadeOutUp.duration(200) }), className: cn("pb-4", className), children: children }) })) }));
|
|
63
|
+
}
|
|
64
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as AlertDialogPrimitive from "@rn-primitives/alert-dialog";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { View, type ViewProps } from "react-native";
|
|
4
|
+
declare const AlertDialog: React.ForwardRefExoticComponent<{
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onOpenChange?: (value: boolean) => void;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
} & ViewProps & {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
} & React.RefAttributes<View>>;
|
|
11
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<Omit<import("react-native").PressableProps & React.RefAttributes<View>, "ref"> & {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
} & {
|
|
14
|
+
onKeyDown?: (ev: React.KeyboardEvent) => void;
|
|
15
|
+
onKeyUp?: (ev: React.KeyboardEvent) => void;
|
|
16
|
+
} & React.RefAttributes<View>>;
|
|
17
|
+
declare const AlertDialogPortal: typeof AlertDialogPrimitive.Portal;
|
|
18
|
+
declare function AlertDialogOverlay({ className, children, ...props }: Omit<AlertDialogPrimitive.OverlayProps, "asChild"> & React.RefAttributes<AlertDialogPrimitive.OverlayRef> & {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function AlertDialogContent({ className, portalHost, ...props }: AlertDialogPrimitive.ContentProps & React.RefAttributes<AlertDialogPrimitive.ContentRef> & {
|
|
22
|
+
portalHost?: string;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function AlertDialogHeader({ className, ...props }: ViewProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function AlertDialogFooter({ className, ...props }: ViewProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function AlertDialogTitle({ className, ...props }: AlertDialogPrimitive.TitleProps & React.RefAttributes<AlertDialogPrimitive.TitleRef>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function AlertDialogDescription({ className, ...props }: AlertDialogPrimitive.DescriptionProps & React.RefAttributes<AlertDialogPrimitive.DescriptionRef>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function AlertDialogAction({ className, ...props }: AlertDialogPrimitive.ActionProps & React.RefAttributes<AlertDialogPrimitive.ActionRef>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function AlertDialogCancel({ className, ...props }: AlertDialogPrimitive.CancelProps & React.RefAttributes<AlertDialogPrimitive.CancelRef>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
|
|
31
|
+
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../../$/components/primitives/alert-dialog.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAY,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9D,QAAA,MAAM,WAAW;;;;;;8BAA4B,CAAC;AAE9C,QAAA,MAAM,kBAAkB;;;;;8BAA+B,CAAC;AAExD,QAAA,MAAM,iBAAiB,oCAA8B,CAAC;AAKtD,iBAAS,kBAAkB,CAAC,EAC3B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,SAAS,CAAC,GACpD,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,UAAU,CAAC,GAAG;IACtD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,2CAsBD;AAED,iBAAS,kBAAkB,CAAC,EAC3B,SAAS,EACT,UAAU,EACV,GAAG,KAAK,EACR,EAAE,oBAAoB,CAAC,YAAY,GACnC,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,UAAU,CAAC,GAAG;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,2CAiBD;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAM5D;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAU5D;AAED,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,oBAAoB,CAAC,UAAU,GACjC,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,QAAQ,CAAC,2CAOlD;AAED,iBAAS,sBAAsB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,oBAAoB,CAAC,gBAAgB,GACvC,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,cAAc,CAAC,2CAOxD;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,oBAAoB,CAAC,WAAW,GAClC,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,SAAS,CAAC,2CASnD;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,oBAAoB,CAAC,WAAW,GAClC,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,SAAS,CAAC,2CAYnD;AAED,OAAO,EACN,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GAClB,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { buttonTextVariants, buttonVariants, } from "../../../$/components/primitives/button";
|
|
25
|
+
import { NativeOnlyAnimatedView } from "../../../$/components/primitives/native-only-animated-view";
|
|
26
|
+
import { TextClassContext } from "../../../$/components/primitives/text";
|
|
27
|
+
import { cn } from "../../../$/lib/utils";
|
|
28
|
+
import * as AlertDialogPrimitive from "@rn-primitives/alert-dialog";
|
|
29
|
+
import * as React from "react";
|
|
30
|
+
import { Platform, View } from "react-native";
|
|
31
|
+
import { FadeIn, FadeOut } from "react-native-reanimated";
|
|
32
|
+
import { FullWindowOverlay as RNFullWindowOverlay } from "react-native-screens";
|
|
33
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
34
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
35
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
36
|
+
var FullWindowOverlay = Platform.OS === "ios" ? RNFullWindowOverlay : React.Fragment;
|
|
37
|
+
function AlertDialogOverlay(_a) {
|
|
38
|
+
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
39
|
+
return (_jsx(FullWindowOverlay, { children: _jsx(AlertDialogPrimitive.Overlay, __assign({ className: cn("absolute bottom-0 left-0 right-0 top-0 z-50 flex items-center justify-center bg-black/50 p-2", Platform.select({
|
|
40
|
+
web: "animate-in fade-in-0 fixed",
|
|
41
|
+
}), className) }, props, { children: _jsx(NativeOnlyAnimatedView, { entering: FadeIn.duration(200).delay(50), exiting: FadeOut.duration(150), children: _jsx(_Fragment, { children: children }) }) })) }));
|
|
42
|
+
}
|
|
43
|
+
function AlertDialogContent(_a) {
|
|
44
|
+
var className = _a.className, portalHost = _a.portalHost, props = __rest(_a, ["className", "portalHost"]);
|
|
45
|
+
return (_jsx(AlertDialogPortal, { hostName: portalHost, children: _jsx(AlertDialogOverlay, { children: _jsx(AlertDialogPrimitive.Content, __assign({ className: cn("bg-background border-border z-50 flex flex-col gap-4 rounded-lg border p-6 shadow-lg shadow-black/5 sm:max-w-lg", Platform.select({
|
|
46
|
+
web: "animate-in fade-in-0 zoom-in-95 web:max-w-[calc(100%-2rem)] duration-200",
|
|
47
|
+
}), className) }, props)) }) }));
|
|
48
|
+
}
|
|
49
|
+
function AlertDialogHeader(_a) {
|
|
50
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
51
|
+
return (_jsx(TextClassContext.Provider, { value: "text-center sm:text-left", children: _jsx(View, __assign({ className: cn("flex flex-col gap-2", className) }, props)) }));
|
|
52
|
+
}
|
|
53
|
+
function AlertDialogFooter(_a) {
|
|
54
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
55
|
+
return (_jsx(View, __assign({ className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className) }, props)));
|
|
56
|
+
}
|
|
57
|
+
function AlertDialogTitle(_a) {
|
|
58
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
59
|
+
return (_jsx(AlertDialogPrimitive.Title, __assign({ className: cn("text-foreground text-lg font-semibold", className) }, props)));
|
|
60
|
+
}
|
|
61
|
+
function AlertDialogDescription(_a) {
|
|
62
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
63
|
+
return (_jsx(AlertDialogPrimitive.Description, __assign({ className: cn("text-muted-foreground text-sm", className) }, props)));
|
|
64
|
+
}
|
|
65
|
+
function AlertDialogAction(_a) {
|
|
66
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
67
|
+
return (_jsx(TextClassContext.Provider, { value: buttonTextVariants({ className: className }), children: _jsx(AlertDialogPrimitive.Action, __assign({ className: cn(buttonVariants(), className) }, props)) }));
|
|
68
|
+
}
|
|
69
|
+
function AlertDialogCancel(_a) {
|
|
70
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
71
|
+
console.log(buttonTextVariants({ className: className, variant: "outline" }));
|
|
72
|
+
return (_jsx(AlertDialogPrimitive.Cancel, __assign({}, props, { className: cn(buttonVariants({ variant: "outline" }), buttonTextVariants({ variant: "outline" }), className) })));
|
|
73
|
+
}
|
|
74
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Text } from "../../../$/components/primitives/text";
|
|
2
|
+
import type { LucideIcon } from "lucide-react-native";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { View, type ViewProps } from "react-native";
|
|
5
|
+
declare function Alert({ className, variant, children, icon, iconClassName, ...props }: ViewProps & React.RefAttributes<View> & {
|
|
6
|
+
icon: LucideIcon;
|
|
7
|
+
variant?: "default" | "destructive";
|
|
8
|
+
iconClassName?: string;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AlertTitle({ className, ...props }: React.ComponentProps<typeof Text> & React.RefAttributes<Text>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function AlertDescription({ className, ...props }: React.ComponentProps<typeof Text> & React.RefAttributes<Text>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { Alert, AlertDescription, AlertTitle };
|
|
13
|
+
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../$/components/primitives/alert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAoB,MAAM,8BAA8B,CAAC;AAEtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,iBAAS,KAAK,CAAC,EACd,SAAS,EACT,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,GAAG,KAAK,EACR,EAAE,SAAS,GACX,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB,2CA+BD;AAED,iBAAS,UAAU,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAU/D;AAED,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAY/D;AAED,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { Icon } from "../../../$/components/primitives/icon";
|
|
25
|
+
import { Text, TextClassContext } from "../../../$/components/primitives/text";
|
|
26
|
+
import { cn } from "../../../$/lib/utils";
|
|
27
|
+
import * as React from "react";
|
|
28
|
+
import { View } from "react-native";
|
|
29
|
+
function Alert(_a) {
|
|
30
|
+
var className = _a.className, variant = _a.variant, children = _a.children, icon = _a.icon, iconClassName = _a.iconClassName, props = __rest(_a, ["className", "variant", "children", "icon", "iconClassName"]);
|
|
31
|
+
return (_jsx(TextClassContext.Provider, { value: cn("text-sm text-foreground", variant === "destructive" && "text-destructive", className), children: _jsxs(View, __assign({ role: "alert", className: cn("bg-card border-border relative w-full rounded-lg border px-4 pb-2 pt-3.5", className) }, props, { children: [_jsx(View, { className: "absolute left-3.5 top-3", children: _jsx(Icon, { as: icon, className: cn("size-4", variant === "destructive" && "text-destructive", iconClassName) }) }), children] })) }));
|
|
32
|
+
}
|
|
33
|
+
function AlertTitle(_a) {
|
|
34
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
35
|
+
return (_jsx(Text, __assign({ className: cn("mb-1 ml-0.5 min-h-4 pl-6 font-medium leading-none tracking-tight", className) }, props)));
|
|
36
|
+
}
|
|
37
|
+
function AlertDescription(_a) {
|
|
38
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
39
|
+
var textClass = React.useContext(TextClassContext);
|
|
40
|
+
return (_jsx(Text, __assign({ className: cn("text-muted-foreground ml-0.5 pb-1.5 pl-6 text-sm leading-relaxed", (textClass === null || textClass === void 0 ? void 0 : textClass.includes("text-destructive")) && "text-destructive/90", className) }, props)));
|
|
41
|
+
}
|
|
42
|
+
export { Alert, AlertDescription, AlertTitle };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../../../$/components/primitives/aspect-ratio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Root as AspectRatio } from "@rn-primitives/aspect-ratio";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as AvatarPrimitive from '@rn-primitives/avatar';
|
|
2
|
+
declare function Avatar({ className, ...props }: AvatarPrimitive.RootProps & React.RefAttributes<AvatarPrimitive.RootRef>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function AvatarImage({ className, ...props }: AvatarPrimitive.ImageProps & React.RefAttributes<AvatarPrimitive.ImageRef>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AvatarFallback({ className, ...props }: AvatarPrimitive.FallbackProps & React.RefAttributes<AvatarPrimitive.FallbackRef>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { Avatar, AvatarFallback, AvatarImage };
|
|
6
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../$/components/primitives/avatar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AAEzD,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,OAAO,CAAC,2CAO1E;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,QAAQ,CAAC,2CAE5E;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,WAAW,CAAC,2CAUlF;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { cn } from '../../../$/lib/utils';
|
|
25
|
+
import * as AvatarPrimitive from '@rn-primitives/avatar';
|
|
26
|
+
function Avatar(_a) {
|
|
27
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
28
|
+
return (_jsx(AvatarPrimitive.Root, __assign({ className: cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className) }, props)));
|
|
29
|
+
}
|
|
30
|
+
function AvatarImage(_a) {
|
|
31
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
32
|
+
return _jsx(AvatarPrimitive.Image, __assign({ className: cn('aspect-square size-full', className) }, props));
|
|
33
|
+
}
|
|
34
|
+
function AvatarFallback(_a) {
|
|
35
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
36
|
+
return (_jsx(AvatarPrimitive.Fallback, __assign({ className: cn('bg-muted flex size-full flex-row items-center justify-center rounded-full', className) }, props)));
|
|
37
|
+
}
|
|
38
|
+
export { Avatar, AvatarFallback, AvatarImage };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import { View, ViewProps } from "react-native";
|
|
3
|
+
declare const badgeVariants: (props?: {
|
|
4
|
+
variant?: "default" | "destructive" | "secondary" | "outline";
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
6
|
+
declare const badgeTextVariants: (props?: {
|
|
7
|
+
variant?: "default" | "destructive" | "secondary" | "outline";
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
9
|
+
type BadgeProps = ViewProps & React.RefAttributes<View> & {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
} & VariantProps<typeof badgeVariants>;
|
|
12
|
+
declare function Badge({ className, variant, asChild, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Badge, badgeTextVariants, badgeVariants };
|
|
14
|
+
export type { BadgeProps };
|
|
15
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../$/components/primitives/badge.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAY,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,QAAA,MAAM,aAAa;;iEA+BlB,CAAC;AAEF,QAAA,MAAM,iBAAiB;;iEAYrB,CAAC;AAEH,KAAK,UAAU,GAAG,SAAS,GAC1B,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAExC,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAUnE;AAED,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,CAAC;AACnD,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { TextClassContext } from "../../../$/components/primitives/text";
|
|
25
|
+
import { cn } from "../../../$/lib/utils";
|
|
26
|
+
import * as Slot from "@rn-primitives/slot";
|
|
27
|
+
import { cva } from "class-variance-authority";
|
|
28
|
+
import { Platform, View } from "react-native";
|
|
29
|
+
var badgeVariants = cva(cn("border-border group shrink-0 flex-row items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5", Platform.select({
|
|
30
|
+
web: "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive w-fit whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",
|
|
31
|
+
})), {
|
|
32
|
+
variants: {
|
|
33
|
+
variant: {
|
|
34
|
+
default: cn("bg-primary border-transparent", Platform.select({ web: "[a&]:hover:bg-primary/90" })),
|
|
35
|
+
secondary: cn("bg-secondary border-transparent", Platform.select({ web: "[a&]:hover:bg-secondary/90" })),
|
|
36
|
+
destructive: cn("bg-destructive border-transparent", Platform.select({ web: "[a&]:hover:bg-destructive/90" })),
|
|
37
|
+
outline: Platform.select({
|
|
38
|
+
web: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
39
|
+
}),
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
variant: "default",
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
var badgeTextVariants = cva("text-xs font-medium", {
|
|
47
|
+
variants: {
|
|
48
|
+
variant: {
|
|
49
|
+
default: "text-primary-foreground",
|
|
50
|
+
secondary: "text-secondary-foreground",
|
|
51
|
+
destructive: "text-white",
|
|
52
|
+
outline: "text-foreground",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
defaultVariants: {
|
|
56
|
+
variant: "default",
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
function Badge(_a) {
|
|
60
|
+
var className = _a.className, variant = _a.variant, asChild = _a.asChild, props = __rest(_a, ["className", "variant", "asChild"]);
|
|
61
|
+
var Component = asChild ? Slot.View : View;
|
|
62
|
+
return (_jsx(TextClassContext.Provider, { value: badgeTextVariants({ variant: variant }), children: _jsx(Component, __assign({ className: cn(badgeVariants({ variant: variant }), className) }, props)) }));
|
|
63
|
+
}
|
|
64
|
+
export { Badge, badgeTextVariants, badgeVariants };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Pressable } from "../primitives/pressable";
|
|
4
|
+
declare const buttonVariants: (props?: {
|
|
5
|
+
variant?: "link" | "default" | "muted" | "destructive" | "secondary" | "accent" | "success" | "outline" | "ghost";
|
|
6
|
+
size?: "lg" | "sm" | "xl" | "default" | "icon" | "xs";
|
|
7
|
+
fullWidth?: boolean;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
9
|
+
declare const buttonTextVariants: (props?: {
|
|
10
|
+
variant?: "link" | "default" | "muted" | "destructive" | "secondary" | "accent" | "success" | "outline" | "ghost";
|
|
11
|
+
size?: "lg" | "sm" | "xl" | "default" | "icon" | "xs";
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
13
|
+
type ButtonProps = React.ComponentPropsWithoutRef<typeof Pressable> & VariantProps<typeof buttonVariants> & {
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
isLoading?: boolean;
|
|
16
|
+
left?: React.ReactNode;
|
|
17
|
+
right?: React.ReactNode;
|
|
18
|
+
spinnerColor?: string;
|
|
19
|
+
};
|
|
20
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<Omit<import("react-native").PressableProps & React.RefAttributes<import("react-native").View>, "ref"> & {
|
|
21
|
+
className?: string;
|
|
22
|
+
asChild?: boolean;
|
|
23
|
+
children?: React.ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode);
|
|
24
|
+
} & React.RefAttributes<import("react-native").View>, "ref"> & VariantProps<(props?: {
|
|
25
|
+
variant?: "link" | "default" | "muted" | "destructive" | "secondary" | "accent" | "success" | "outline" | "ghost";
|
|
26
|
+
size?: "lg" | "sm" | "xl" | "default" | "icon" | "xs";
|
|
27
|
+
fullWidth?: boolean;
|
|
28
|
+
} & import("class-variance-authority/types").ClassProp) => string> & {
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
isLoading?: boolean;
|
|
31
|
+
left?: React.ReactNode;
|
|
32
|
+
right?: React.ReactNode;
|
|
33
|
+
spinnerColor?: string;
|
|
34
|
+
} & React.RefAttributes<import("react-native").View>>;
|
|
35
|
+
export { Button, buttonTextVariants, buttonVariants };
|
|
36
|
+
export type { ButtonProps };
|
|
37
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../$/components/primitives/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,QAAA,MAAM,cAAc;;;;iEAoCnB,CAAC;AAGF,QAAA,MAAM,kBAAkB;;;iEA6BvB,CAAC;AAEF,KAAK,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAClE,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACrC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEH,QAAA,MAAM,MAAM;;;;;;;;;eAPC,KAAK,CAAC,SAAS;gBACd,OAAO;WACZ,KAAK,CAAC,SAAS;YACd,KAAK,CAAC,SAAS;mBACR,MAAM;qDAqDtB,CAAC;AAIF,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { cn } from "../../../$/lib/utils";
|
|
25
|
+
import { cva } from "class-variance-authority";
|
|
26
|
+
import * as React from "react";
|
|
27
|
+
import { ActivityIndicator } from "react-native";
|
|
28
|
+
import { useExtractTextClasses } from "../../lib/hooks/useExtractTextClasses";
|
|
29
|
+
import { Pressable } from "../primitives/pressable";
|
|
30
|
+
// Button container variants (theme-token based)
|
|
31
|
+
var buttonVariants = cva("group flex flex-row items-center justify-center rounded-button active:translate-y-0.5 transition-all hover:brightness-90 active:brightness-80 overflow-hidden", {
|
|
32
|
+
variants: {
|
|
33
|
+
variant: {
|
|
34
|
+
// Solid styles
|
|
35
|
+
default: "bg-primary",
|
|
36
|
+
secondary: "bg-secondary",
|
|
37
|
+
accent: "bg-accent",
|
|
38
|
+
success: "bg-success",
|
|
39
|
+
destructive: "bg-destructive",
|
|
40
|
+
// Non-solid styles
|
|
41
|
+
outline: "border border-input bg-background active:bg-accent",
|
|
42
|
+
ghost: "bg-transparent active:bg-accent ",
|
|
43
|
+
link: "bg-transparent font-bold",
|
|
44
|
+
muted: "bg-muted",
|
|
45
|
+
},
|
|
46
|
+
size: {
|
|
47
|
+
xs: "h-8 px-3",
|
|
48
|
+
sm: "h-9 px-3",
|
|
49
|
+
default: "h-10 px-4",
|
|
50
|
+
lg: "h-11 px-5",
|
|
51
|
+
xl: "h-12 px-6",
|
|
52
|
+
icon: "h-10 w-10",
|
|
53
|
+
},
|
|
54
|
+
fullWidth: {
|
|
55
|
+
true: "w-full",
|
|
56
|
+
false: "",
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
variant: "default",
|
|
61
|
+
size: "default",
|
|
62
|
+
fullWidth: false,
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
// Text variants aligned with container variant for proper foreground contrast
|
|
66
|
+
var buttonTextVariants = cva("whitespace-nowrap text-sm font-medium transition-colors", {
|
|
67
|
+
variants: {
|
|
68
|
+
variant: {
|
|
69
|
+
default: "text-primary-foreground",
|
|
70
|
+
secondary: "text-secondary-foreground",
|
|
71
|
+
accent: "text-accent-foreground",
|
|
72
|
+
success: "text-success-foreground",
|
|
73
|
+
destructive: "text-destructive-foreground",
|
|
74
|
+
outline: "text-foreground group-active:text-accent-foreground",
|
|
75
|
+
ghost: "text-foreground group-active:text-accent-foreground",
|
|
76
|
+
link: "text-primary underline-offset-4 group-active:underline",
|
|
77
|
+
muted: "text-muted-foreground",
|
|
78
|
+
},
|
|
79
|
+
size: {
|
|
80
|
+
xs: "text-xs",
|
|
81
|
+
sm: "text-sm",
|
|
82
|
+
default: "text-sm",
|
|
83
|
+
lg: "text-base",
|
|
84
|
+
xl: "text-base",
|
|
85
|
+
icon: "text-sm",
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
defaultVariants: {
|
|
89
|
+
variant: "default",
|
|
90
|
+
size: "default",
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
var Button = React.forwardRef(function (_a, ref) {
|
|
94
|
+
var className = _a.className, variant = _a.variant, size = _a.size, isLoading = _a.isLoading, left = _a.left, right = _a.right, children = _a.children, fullWidth = _a.fullWidth, disabled = _a.disabled, spinnerColor = _a.spinnerColor, props = __rest(_a, ["className", "variant", "size", "isLoading", "left", "right", "children", "fullWidth", "disabled", "spinnerColor"]);
|
|
95
|
+
var extractedTextClasses = useExtractTextClasses(className);
|
|
96
|
+
var textClasses = cn(buttonTextVariants({ variant: variant, size: size }), extractedTextClasses);
|
|
97
|
+
return (_jsx(Pressable, __assign({ ref: ref, accessibilityRole: "button", className: cn(buttonVariants({ variant: variant, size: size, fullWidth: fullWidth }), className, textClasses), disabled: isLoading || disabled }, props, { children: isLoading ? (_jsx(ActivityIndicator, { size: "small", animating: true, color: spinnerColor })) : (_jsxs(_Fragment, { children: [left, children, right] })) })));
|
|
98
|
+
});
|
|
99
|
+
Button.displayName = "Button";
|
|
100
|
+
export { Button, buttonTextVariants, buttonVariants };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type CalendarHeaderProps = {
|
|
2
|
+
displayMonth: Date;
|
|
3
|
+
pickerOpen: boolean;
|
|
4
|
+
onTogglePicker: () => void;
|
|
5
|
+
canGoPrev: boolean;
|
|
6
|
+
canGoNext: boolean;
|
|
7
|
+
onPrev: () => void;
|
|
8
|
+
onNext: () => void;
|
|
9
|
+
};
|
|
10
|
+
declare function CalendarHeader({ displayMonth, pickerOpen, onTogglePicker, canGoPrev, canGoNext, onPrev, onNext, }: CalendarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { CalendarHeader };
|
|
12
|
+
export type { CalendarHeaderProps };
|
|
13
|
+
//# sourceMappingURL=calendar-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-header.d.ts","sourceRoot":"","sources":["../../../../../$/components/primitives/calendar/calendar-header.tsx"],"names":[],"mappings":"AAeA,KAAK,mBAAmB,GAAG;IAC1B,YAAY,EAAE,IAAI,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,iBAAS,cAAc,CAAC,EACvB,YAAY,EACZ,UAAU,EACV,cAAc,EACd,SAAS,EACT,SAAS,EACT,MAAM,EACN,MAAM,GACN,EAAE,mBAAmB,2CA0CrB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { Button } from "../../../../$/components/primitives/button";
|
|
4
|
+
import { Icon } from "../../../../$/components/primitives/icon";
|
|
5
|
+
import { Text } from "../../../../$/components/primitives/text";
|
|
6
|
+
import { cn } from "../../../../$/lib/utils";
|
|
7
|
+
import { MONTHS } from "./constants";
|
|
8
|
+
import { ChevronDown, ChevronLeft, ChevronRight, ChevronUp, } from "lucide-react-native";
|
|
9
|
+
function CalendarHeader(_a) {
|
|
10
|
+
var displayMonth = _a.displayMonth, pickerOpen = _a.pickerOpen, onTogglePicker = _a.onTogglePicker, canGoPrev = _a.canGoPrev, canGoNext = _a.canGoNext, onPrev = _a.onPrev, onNext = _a.onNext;
|
|
11
|
+
var headerMonthIndex = displayMonth.getMonth();
|
|
12
|
+
var headerYear = displayMonth.getFullYear();
|
|
13
|
+
return (_jsxs(View, { className: "flex-row items-center justify-between", children: [_jsx(Button, { variant: "ghost", size: "icon", className: "h-9 w-9", disabled: !canGoPrev, onPress: onPrev, children: _jsx(Icon, { as: ChevronLeft, className: "text-muted-foreground size-5" }) }), _jsxs(Button, { variant: "secondary", size: "sm", className: cn("rounded-full px-4", pickerOpen && "border-ring border"), onPress: onTogglePicker, children: [_jsxs(Text, { className: "font-semibold", children: [MONTHS[headerMonthIndex], " ", headerYear] }), _jsx(Icon, { as: pickerOpen ? ChevronUp : ChevronDown, className: "text-muted-foreground size-4" })] }), _jsx(Button, { variant: "ghost", size: "icon", className: "h-9 w-9", disabled: !canGoNext, onPress: onNext, children: _jsx(Icon, { as: ChevronRight, className: "text-muted-foreground size-5" }) })] }));
|
|
14
|
+
}
|
|
15
|
+
export { CalendarHeader };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type CalendarMonthGridProps = {
|
|
2
|
+
displayMonth: Date;
|
|
3
|
+
firstDayOfWeekIndex: number;
|
|
4
|
+
selectedDate?: Date;
|
|
5
|
+
today: Date;
|
|
6
|
+
disabled?: (date: Date) => boolean;
|
|
7
|
+
isDateUnavailable?: (date: Date) => boolean;
|
|
8
|
+
pickerOpen: boolean;
|
|
9
|
+
onSelectDay: (day: Date) => void;
|
|
10
|
+
};
|
|
11
|
+
declare function CalendarMonthGrid({ displayMonth, firstDayOfWeekIndex, selectedDate, today, disabled, isDateUnavailable, pickerOpen, onSelectDay, }: CalendarMonthGridProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { CalendarMonthGrid };
|
|
13
|
+
export type { CalendarMonthGridProps };
|
|
14
|
+
//# sourceMappingURL=calendar-month-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-month-grid.d.ts","sourceRoot":"","sources":["../../../../../$/components/primitives/calendar/calendar-month-grid.tsx"],"names":[],"mappings":"AAOA,KAAK,sBAAsB,GAAG;IAC7B,YAAY,EAAE,IAAI,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IACnC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IAC5C,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,iBAAS,iBAAiB,CAAC,EAC1B,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,iBAAiB,EACjB,UAAU,EACV,WAAW,GACX,EAAE,sBAAsB,2CA8DxB;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,YAAY,EAAE,sBAAsB,EAAE,CAAC"}
|