panelui-native 0.22.6 → 0.28.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/README.md +1 -0
- package/lib/module/components/accordion/index.js +8 -8
- package/lib/module/components/accordion/index.js.map +1 -1
- package/lib/module/components/alert/index.js +2 -2
- package/lib/module/components/alert/index.js.map +1 -1
- package/lib/module/components/area-chart/index.js +958 -0
- package/lib/module/components/area-chart/index.js.map +1 -0
- package/lib/module/components/attachment/index.js +2 -1
- package/lib/module/components/attachment/index.js.map +1 -1
- package/lib/module/components/avatar/index.js +4 -4
- package/lib/module/components/avatar/index.js.map +1 -1
- package/lib/module/components/badge/index.js +4 -4
- package/lib/module/components/badge/index.js.map +1 -1
- package/lib/module/components/bar-chart/index.js +994 -0
- package/lib/module/components/bar-chart/index.js.map +1 -0
- package/lib/module/components/bottom-sheet/index.js +213 -24
- package/lib/module/components/bottom-sheet/index.js.map +1 -1
- package/lib/module/components/breadcrumb/index.js +275 -0
- package/lib/module/components/breadcrumb/index.js.map +1 -0
- package/lib/module/components/button/index.js +11 -6
- package/lib/module/components/button/index.js.map +1 -1
- package/lib/module/components/calendar/index.js +557 -0
- package/lib/module/components/calendar/index.js.map +1 -0
- package/lib/module/components/carousel/index.js +680 -0
- package/lib/module/components/carousel/index.js.map +1 -0
- package/lib/module/components/chip/index.js +6 -6
- package/lib/module/components/chip/index.js.map +1 -1
- package/lib/module/components/date-picker/index.js +158 -0
- package/lib/module/components/date-picker/index.js.map +1 -0
- package/lib/module/components/dialog/index.js +7 -2
- package/lib/module/components/dialog/index.js.map +1 -1
- package/lib/module/components/direction/index.js +15 -20
- package/lib/module/components/direction/index.js.map +1 -1
- package/lib/module/components/empty-state/index.js +2 -2
- package/lib/module/components/empty-state/index.js.map +1 -1
- package/lib/module/components/field/index.js +5 -5
- package/lib/module/components/field/index.js.map +1 -1
- package/lib/module/components/flow/index.js +3 -3
- package/lib/module/components/flow/index.js.map +1 -1
- package/lib/module/components/frame/index.js +22 -5
- package/lib/module/components/frame/index.js.map +1 -1
- package/lib/module/components/heatmap-chart/index.js +28 -8
- package/lib/module/components/heatmap-chart/index.js.map +1 -1
- package/lib/module/components/input-group/index.js +5 -4
- package/lib/module/components/input-group/index.js.map +1 -1
- package/lib/module/components/item/index.js +9 -9
- package/lib/module/components/item/index.js.map +1 -1
- package/lib/module/components/label/index.js +4 -4
- package/lib/module/components/label/index.js.map +1 -1
- package/lib/module/components/line-chart/index.js +165 -184
- package/lib/module/components/line-chart/index.js.map +1 -1
- package/lib/module/components/loader/index.js +758 -0
- package/lib/module/components/loader/index.js.map +1 -0
- package/lib/module/components/map/basemap.js +265 -0
- package/lib/module/components/map/basemap.js.map +1 -0
- package/lib/module/components/map/index.js +850 -0
- package/lib/module/components/map/index.js.map +1 -0
- package/lib/module/components/map/maplibre.js +87 -0
- package/lib/module/components/map/maplibre.js.map +1 -0
- package/lib/module/components/marker/index.js +3 -3
- package/lib/module/components/marker/index.js.map +1 -1
- package/lib/module/components/message/index.js +15 -14
- package/lib/module/components/message/index.js.map +1 -1
- package/lib/module/components/message-scroller/index.js +5 -4
- package/lib/module/components/message-scroller/index.js.map +1 -1
- package/lib/module/components/otp-input/index.js +2 -2
- package/lib/module/components/popover/index.js +39 -7
- package/lib/module/components/popover/index.js.map +1 -1
- package/lib/module/components/progress/index.js +8 -2
- package/lib/module/components/progress/index.js.map +1 -1
- package/lib/module/components/radio-group/index.js +2 -2
- package/lib/module/components/radio-group/index.js.map +1 -1
- package/lib/module/components/ring-chart/index.js +423 -0
- package/lib/module/components/ring-chart/index.js.map +1 -0
- package/lib/module/components/section-rail/index.js +6 -6
- package/lib/module/components/section-rail/index.js.map +1 -1
- package/lib/module/components/select/index.js +10 -4
- package/lib/module/components/select/index.js.map +1 -1
- package/lib/module/components/separator/index.js +76 -22
- package/lib/module/components/separator/index.js.map +1 -1
- package/lib/module/components/shimmer/index.js +10 -1
- package/lib/module/components/shimmer/index.js.map +1 -1
- package/lib/module/components/slider/index.js +19 -5
- package/lib/module/components/slider/index.js.map +1 -1
- package/lib/module/components/steps/index.js +5 -5
- package/lib/module/components/steps/index.js.map +1 -1
- package/lib/module/components/switch/index.js +6 -1
- package/lib/module/components/switch/index.js.map +1 -1
- package/lib/module/components/tabs/index.js +7 -7
- package/lib/module/components/tabs/index.js.map +1 -1
- package/lib/module/components/timeline/index.js +4 -4
- package/lib/module/components/timeline/index.js.map +1 -1
- package/lib/module/components/toast/index.js +2 -2
- package/lib/module/components/toast/index.js.map +1 -1
- package/lib/module/components/toggle-button/index.js +5 -5
- package/lib/module/components/toggle-button/index.js.map +1 -1
- package/lib/module/components/tooltip/index.js +492 -0
- package/lib/module/components/tooltip/index.js.map +1 -0
- package/lib/module/components/typography/index.js +7 -2
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/hooks/index.js +1 -0
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/use-back-handler.js +37 -0
- package/lib/module/hooks/use-back-handler.js.map +1 -0
- package/lib/module/hooks/use-direction.js +43 -0
- package/lib/module/hooks/use-direction.js.map +1 -0
- package/lib/module/icons/index.js +180 -2
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +12 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/primitives/keyboard-avoider.js +2 -1
- package/lib/module/primitives/keyboard-avoider.js.map +1 -1
- package/lib/module/primitives/text.js +55 -11
- package/lib/module/primitives/text.js.map +1 -1
- package/lib/module/utils/chart.js +279 -0
- package/lib/module/utils/chart.js.map +1 -0
- package/lib/module/utils/date.js +386 -0
- package/lib/module/utils/date.js.map +1 -0
- package/lib/typescript/src/components/accordion/index.d.ts.map +1 -1
- package/lib/typescript/src/components/alert/index.d.ts.map +1 -1
- package/lib/typescript/src/components/area-chart/index.d.ts +237 -0
- package/lib/typescript/src/components/area-chart/index.d.ts.map +1 -0
- package/lib/typescript/src/components/attachment/index.d.ts.map +1 -1
- package/lib/typescript/src/components/bar-chart/index.d.ts +270 -0
- package/lib/typescript/src/components/bar-chart/index.d.ts.map +1 -0
- package/lib/typescript/src/components/bottom-sheet/index.d.ts +75 -4
- package/lib/typescript/src/components/bottom-sheet/index.d.ts.map +1 -1
- package/lib/typescript/src/components/breadcrumb/index.d.ts +100 -0
- package/lib/typescript/src/components/breadcrumb/index.d.ts.map +1 -0
- package/lib/typescript/src/components/button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/calendar/index.d.ts +108 -0
- package/lib/typescript/src/components/calendar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/carousel/index.d.ts +179 -0
- package/lib/typescript/src/components/carousel/index.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/index.d.ts.map +1 -1
- package/lib/typescript/src/components/date-picker/index.d.ts +91 -0
- package/lib/typescript/src/components/date-picker/index.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/index.d.ts.map +1 -1
- package/lib/typescript/src/components/direction/index.d.ts +11 -10
- package/lib/typescript/src/components/direction/index.d.ts.map +1 -1
- package/lib/typescript/src/components/empty-state/index.d.ts.map +1 -1
- package/lib/typescript/src/components/field/index.d.ts.map +1 -1
- package/lib/typescript/src/components/frame/index.d.ts +17 -0
- package/lib/typescript/src/components/frame/index.d.ts.map +1 -1
- package/lib/typescript/src/components/heatmap-chart/index.d.ts +22 -3
- package/lib/typescript/src/components/heatmap-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/input-group/index.d.ts.map +1 -1
- package/lib/typescript/src/components/item/index.d.ts.map +1 -1
- package/lib/typescript/src/components/label/index.d.ts.map +1 -1
- package/lib/typescript/src/components/line-chart/index.d.ts +42 -2
- package/lib/typescript/src/components/line-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/loader/index.d.ts +38 -0
- package/lib/typescript/src/components/loader/index.d.ts.map +1 -0
- package/lib/typescript/src/components/map/basemap.d.ts +76 -0
- package/lib/typescript/src/components/map/basemap.d.ts.map +1 -0
- package/lib/typescript/src/components/map/index.d.ts +367 -0
- package/lib/typescript/src/components/map/index.d.ts.map +1 -0
- package/lib/typescript/src/components/map/maplibre.d.ts +193 -0
- package/lib/typescript/src/components/map/maplibre.d.ts.map +1 -0
- package/lib/typescript/src/components/marker/index.d.ts.map +1 -1
- package/lib/typescript/src/components/message/index.d.ts.map +1 -1
- package/lib/typescript/src/components/message-scroller/index.d.ts.map +1 -1
- package/lib/typescript/src/components/popover/index.d.ts.map +1 -1
- package/lib/typescript/src/components/progress/index.d.ts.map +1 -1
- package/lib/typescript/src/components/ring-chart/index.d.ts +156 -0
- package/lib/typescript/src/components/ring-chart/index.d.ts.map +1 -0
- package/lib/typescript/src/components/select/index.d.ts.map +1 -1
- package/lib/typescript/src/components/separator/index.d.ts +36 -1
- package/lib/typescript/src/components/separator/index.d.ts.map +1 -1
- package/lib/typescript/src/components/shimmer/index.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/index.d.ts.map +1 -1
- package/lib/typescript/src/components/steps/index.d.ts.map +1 -1
- package/lib/typescript/src/components/switch/index.d.ts.map +1 -1
- package/lib/typescript/src/components/tabs/index.d.ts.map +1 -1
- package/lib/typescript/src/components/timeline/index.d.ts.map +1 -1
- package/lib/typescript/src/components/toast/index.d.ts.map +1 -1
- package/lib/typescript/src/components/toggle-button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/tooltip/index.d.ts +125 -0
- package/lib/typescript/src/components/tooltip/index.d.ts.map +1 -0
- package/lib/typescript/src/components/typography/index.d.ts +6 -0
- package/lib/typescript/src/components/typography/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/index.d.ts +1 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/use-back-handler.d.ts +19 -0
- package/lib/typescript/src/hooks/use-back-handler.d.ts.map +1 -0
- package/lib/typescript/src/hooks/use-direction.d.ts +20 -0
- package/lib/typescript/src/hooks/use-direction.d.ts.map +1 -0
- package/lib/typescript/src/icons/index.d.ts +8 -0
- package/lib/typescript/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +14 -4
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/primitives/keyboard-avoider.d.ts.map +1 -1
- package/lib/typescript/src/primitives/text.d.ts +20 -0
- package/lib/typescript/src/primitives/text.d.ts.map +1 -1
- package/lib/typescript/src/utils/chart.d.ts +96 -0
- package/lib/typescript/src/utils/chart.d.ts.map +1 -0
- package/lib/typescript/src/utils/date.d.ts +116 -0
- package/lib/typescript/src/utils/date.d.ts.map +1 -0
- package/package.json +9 -1
- package/src/components/accordion/index.tsx +8 -12
- package/src/components/alert/index.tsx +2 -2
- package/src/components/area-chart/index.tsx +1147 -0
- package/src/components/attachment/index.tsx +2 -2
- package/src/components/avatar/index.tsx +4 -4
- package/src/components/badge/index.tsx +6 -6
- package/src/components/bar-chart/index.tsx +1208 -0
- package/src/components/bottom-sheet/index.tsx +282 -21
- package/src/components/breadcrumb/index.tsx +363 -0
- package/src/components/button/index.tsx +12 -8
- package/src/components/calendar/index.tsx +703 -0
- package/src/components/carousel/index.tsx +788 -0
- package/src/components/chip/index.tsx +6 -8
- package/src/components/date-picker/index.tsx +237 -0
- package/src/components/dialog/index.tsx +7 -2
- package/src/components/direction/index.tsx +22 -22
- package/src/components/empty-state/index.tsx +2 -2
- package/src/components/field/index.tsx +3 -5
- package/src/components/flow/index.tsx +3 -3
- package/src/components/frame/index.tsx +22 -7
- package/src/components/heatmap-chart/index.tsx +58 -11
- package/src/components/input-group/index.tsx +5 -4
- package/src/components/item/index.tsx +9 -9
- package/src/components/label/index.tsx +2 -2
- package/src/components/line-chart/index.tsx +194 -223
- package/src/components/loader/index.tsx +812 -0
- package/src/components/map/basemap.ts +304 -0
- package/src/components/map/index.tsx +1116 -0
- package/src/components/map/maplibre.ts +201 -0
- package/src/components/marker/index.tsx +3 -3
- package/src/components/message/index.tsx +15 -14
- package/src/components/message-scroller/index.tsx +5 -4
- package/src/components/otp-input/index.tsx +2 -2
- package/src/components/popover/index.tsx +43 -7
- package/src/components/progress/index.tsx +10 -2
- package/src/components/radio-group/index.tsx +2 -2
- package/src/components/ring-chart/index.tsx +543 -0
- package/src/components/section-rail/index.tsx +6 -6
- package/src/components/select/index.tsx +10 -4
- package/src/components/separator/index.tsx +77 -19
- package/src/components/shimmer/index.tsx +10 -1
- package/src/components/slider/index.tsx +20 -5
- package/src/components/steps/index.tsx +5 -5
- package/src/components/switch/index.tsx +6 -1
- package/src/components/tabs/index.tsx +7 -9
- package/src/components/timeline/index.tsx +4 -4
- package/src/components/toast/index.tsx +2 -2
- package/src/components/toggle-button/index.tsx +5 -7
- package/src/components/tooltip/index.tsx +610 -0
- package/src/components/typography/index.tsx +7 -2
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-back-handler.ts +37 -0
- package/src/hooks/use-direction.ts +45 -0
- package/src/icons/index.tsx +111 -0
- package/src/index.ts +129 -0
- package/src/primitives/keyboard-avoider.tsx +2 -1
- package/src/primitives/text.tsx +53 -8
- package/src/utils/chart.ts +355 -0
- package/src/utils/date.ts +446 -0
|
@@ -12,19 +12,26 @@ export { Accordion, type AccordionProps, type AccordionItemProps, type Accordion
|
|
|
12
12
|
export { Alert, type AlertProps, type AlertIndicatorProps, } from './components/alert/index.js';
|
|
13
13
|
export { Avatar, type AvatarProps, type AvatarBadgeProps, } from './components/avatar/index.js';
|
|
14
14
|
export { Attachment, type AttachmentProps, type AttachmentGroupProps, type AttachmentMediaProps, type AttachmentContentProps, type AttachmentTitleProps, type AttachmentDescriptionProps, type AttachmentActionsProps, type AttachmentActionProps, type AttachmentState, } from './components/attachment/index.js';
|
|
15
|
+
export { AreaChart, useAreaChart, type AreaChartProps, type AreaChartHandle, type AreaChartGridProps, type AreaChartHeaderProps, type AreaChartAreaProps, type AreaChartXAxisProps, type AreaChartYAxisProps, type AreaChartTooltipProps, type AreaChartLegendProps, type AreaChartDatum, type AreaChartStatus, } from './components/area-chart/index.js';
|
|
15
16
|
export { Badge, type BadgeProps } from './components/badge/index.js';
|
|
16
|
-
export {
|
|
17
|
+
export { BarChart, useBarChart, type BarChartProps, type BarChartHandle, type BarChartHeaderProps, type BarChartGridProps, type BarChartBarProps, type BarChartXAxisProps, type BarChartYAxisProps, type BarChartTooltipProps, type BarChartLegendProps, type BarChartDatum, type BarChartStatus, type BarChartOrientation, } from './components/bar-chart/index.js';
|
|
18
|
+
export { BottomSheet, type BottomSheetProps, type BottomSheetContentProps, type BottomSheetHeaderProps, type BottomSheetBodyProps, type BottomSheetFooterProps, } from './components/bottom-sheet/index.js';
|
|
19
|
+
export { Breadcrumb, type BreadcrumbProps, type BreadcrumbListProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbPageProps, type BreadcrumbSeparatorProps, type BreadcrumbEllipsisProps, } from './components/breadcrumb/index.js';
|
|
17
20
|
export { Button, type ButtonProps } from './components/button/index.js';
|
|
18
21
|
export { ToggleButton, ToggleButtonGroup, useToggleButton, type ToggleButtonProps, type ToggleButtonGroupProps, type ToggleButtonLabelProps, type ToggleButtonSize, type ToggleButtonVariant, type ToggleSelectionMode, } from './components/toggle-button/index.js';
|
|
22
|
+
export { DatePicker, type DatePickerProps, type DatePickerMode, } from './components/date-picker/index.js';
|
|
19
23
|
export { Dialog, type DialogProps, type DialogContentProps, } from './components/dialog/index.js';
|
|
20
24
|
export { Soundwave, type SoundwaveProps, type SoundwaveState, type SoundwaveVariant, } from './components/soundwave/index.js';
|
|
21
|
-
export { Direction, useDirection, type DirectionProps, type DirectionValue, } from './components/direction/index.js';
|
|
25
|
+
export { Direction, useDirection, useDirectionSign, type DirectionProps, type DirectionValue, } from './components/direction/index.js';
|
|
22
26
|
export { Flow, type FlowProps, type FlowNodeProps, type FlowHandleProps, type FlowEdgeProps, type FlowGroupProps, type FlowBackgroundProps, type FlowControlsProps, type FlowMiniMapProps, type FlowConnection, type FlowViewport, type FlowNodePosition, type FlowEdgeVariant, type FlowSide, type FlowRect, type FlowPoint, } from './components/flow/index.js';
|
|
23
27
|
export { Frame, type FrameProps, type FrameRootProps, type FramePanelProps, type FrameRowProps, type FrameSectionProps, type FrameHeaderProps, type FrameActionProps, type FrameMediaProps, type FrameContentProps, type FrameActionsProps, type FrameVariant, } from './components/frame/index.js';
|
|
24
28
|
export { HeatmapChart, useHeatmapChart, buildHeatmapCalendar, type HeatmapChartProps, type HeatmapCellsProps, type HeatmapSeparatorProps, type HeatmapXAxisProps, type HeatmapYAxisProps, type HeatmapTooltipProps, type HeatmapLegendProps, type HeatmapColumn, type HeatmapBin, type HeatmapCell, type HeatmapLayout, } from './components/heatmap-chart/index.js';
|
|
29
|
+
export { Map, useMap, hasMapLibre, CARTO_SOURCE, type MapProps, type MapHandle, type MapMarkerProps, type MapLabelProps, type MapPopupProps, type MapControlsProps, type MapControlsPosition, type MapRouteProps, type MapArcProps, type MapGeoJSONProps, type MapClusterProps, type MapHeatmapProps, type MapUserLocationProps, type BasemapSource, type BasemapTokens, type LngLat, type LngLatBounds, type ViewState, } from './components/map/index.js';
|
|
25
30
|
export { Select, type SelectProps, type SelectItemProps, type SelectPresentation, } from './components/select/index.js';
|
|
26
31
|
export { SectionRail, type SectionRailProps, type SectionRailTriggerProps, type SectionRailBarProps, type SectionRailContentProps, type SectionRailItemProps, type SectionRailPlacement, type SectionRailAlign, } from './components/section-rail/index.js';
|
|
27
32
|
export { Tabs, type TabsProps, type TabsListProps, type TabsTriggerProps, type TabsContentProps, } from './components/tabs/index.js';
|
|
33
|
+
export { Carousel, useCarouselState, type CarouselProps, type CarouselHandle, type CarouselContentProps, type CarouselItemProps, type CarouselCaptionProps, type CarouselDotsProps, type CarouselArrowProps, type CarouselControlsProps, type CarouselVariant, type CarouselOrientation, type CarouselAlign, } from './components/carousel/index.js';
|
|
34
|
+
export { Calendar, type CalendarProps, type CalendarMode, type CalendarCaptionLayout, type CalendarDisabled, type CalendarSelection, type DateRange, } from './components/calendar/index.js';
|
|
28
35
|
export { Card, type CardProps } from './components/card/index.js';
|
|
29
36
|
export { Checkbox, type CheckboxProps } from './components/checkbox/index.js';
|
|
30
37
|
export { Chip, useChip, type ChipProps, type ChipLabelProps, type ChipVariant, type ChipSize, } from './components/chip/index.js';
|
|
@@ -37,7 +44,8 @@ export { NumberInput, type NumberInputProps, } from './components/number-input/i
|
|
|
37
44
|
export { OtpInput, type OtpInputProps } from './components/otp-input/index.js';
|
|
38
45
|
export { Item, type ItemProps, type ItemGroupProps, type ItemSeparatorProps, type ItemMediaProps, type ItemContentProps, type ItemTitleProps, type ItemDescriptionProps, type ItemActionsProps, type ItemHeaderProps, type ItemFooterProps, } from './components/item/index.js';
|
|
39
46
|
export { Label, type LabelProps, type LabelTextProps } from './components/label/index.js';
|
|
40
|
-
export { LineChart, useLineChart, type LineChartProps, type LineChartHandle, type LineChartGridProps, type LineChartLineProps, type LineChartAreaProps, type LineChartSkeletonProps, type LineChartXAxisProps, type LineChartTooltipProps, type LineChartLegendProps, type LineChartDatum, type LineChartStatus, type LineChartCurve, } from './components/line-chart/index.js';
|
|
47
|
+
export { LineChart, useLineChart, type LineChartProps, type LineChartHandle, type LineChartHeaderProps, type LineChartGridProps, type LineChartLineProps, type LineChartAreaProps, type LineChartSkeletonProps, type LineChartXAxisProps, type LineChartTooltipProps, type LineChartLegendProps, type LineChartDatum, type LineChartStatus, type LineChartCurve, } from './components/line-chart/index.js';
|
|
48
|
+
export { Loader, type LoaderProps, type LoaderVariant, type LoaderSize, } from './components/loader/index.js';
|
|
41
49
|
export { Marker, type MarkerProps, type MarkerIconProps, type MarkerContentProps, } from './components/marker/index.js';
|
|
42
50
|
export { MessageScroller, useMessageScroller, useMessageScrollerVisibility, type MessageScrollerProps, type MessageScrollerViewportProps, type MessageScrollerContentProps, type MessageScrollerItemProps, type MessageScrollerButtonProps, type MessageScrollerPosition, } from './components/message-scroller/index.js';
|
|
43
51
|
export { Message, type MessageProps, type MessageGroupProps, type MessageAvatarProps, type MessageContentProps, type MessageHeaderProps, type MessageBubbleProps, type MessageBubbleContentProps, type MessageFooterProps, type MessageActionsProps, } from './components/message/index.js';
|
|
@@ -45,6 +53,7 @@ export { Popover, type PopoverProps, type PopoverTriggerProps, type PopoverConte
|
|
|
45
53
|
export { Progress, type ProgressProps } from './components/progress/index.js';
|
|
46
54
|
export { RadioGroup, type RadioGroupProps, type RadioGroupItemProps, } from './components/radio-group/index.js';
|
|
47
55
|
export { Rating, type RatingProps, type RatingColor, type RatingSize, } from './components/rating/index.js';
|
|
56
|
+
export { RingChart, useRingChart, type RingChartProps, type RingChartHandle, type RingChartRingProps, type RingChartCenterProps, type RingChartLegendProps, type RingDatum, } from './components/ring-chart/index.js';
|
|
48
57
|
export { ScrollFade, type ScrollFadeProps, } from './components/scroll-fade/index.js';
|
|
49
58
|
export { Separator, type SeparatorProps } from './components/separator/index.js';
|
|
50
59
|
export { Signature, hasSignatureFileSystem, hasSignatureRaster, type SignatureProps, type SignatureHandle, type SignatureFile, type SignatureSaveOptions, type SignatureToolbarProps, type SignatureButtonProps, } from './components/signature/index.js';
|
|
@@ -60,8 +69,9 @@ export { Surface, type SurfaceProps } from './components/surface/index.js';
|
|
|
60
69
|
export { Switch, type SwitchProps } from './components/switch/index.js';
|
|
61
70
|
export { Timeline, type TimelineProps, type TimelineItemProps, type TimelineIndicatorProps, type TimelineStatProps, type TimelineVariant, type TimelineTone, } from './components/timeline/index.js';
|
|
62
71
|
export { Toast, ToastViewport, toast, useToast, type ToastProps, type ToastOptions, type ToastItem, type ToastVariant, type ToastPlacement, type ToastHandle, type ToastIndicatorProps, type ToastCloseProps, } from './components/toast/index.js';
|
|
72
|
+
export { Tooltip, type TooltipProps, type TooltipTriggerProps, type TooltipContentProps, type TooltipArrowProps, type TooltipPlacement, type TooltipAlign, type TooltipOpenOn, } from './components/tooltip/index.js';
|
|
63
73
|
export { Typography, type TypographyProps, type TypographyType, type TypographyHeadingProps, type TypographyParagraphProps, type TypographyCodeProps, } from './components/typography/index.js';
|
|
64
|
-
export { AlertTriangleIcon, AppleIcon, ArrowUpRightIcon, BellIcon, CardIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, DownloadIcon, FacebookIcon, FileIcon, GoogleIcon, IconColorProvider, InfoIcon, ImageIcon, LockIcon, MaximizeIcon, MicIcon, MinusIcon, MoonIcon, PackageIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, PlusSquareIcon, ReceiptIcon, RotateCcwIcon, SearchIcon, SendIcon, ShareNodesIcon, ShieldAlertIcon, ShieldCheckIcon, SunIcon, TrashIcon, UnlockIcon, XIcon, useIconColor, type IconProps, } from './icons/index.js';
|
|
74
|
+
export { AlertTriangleIcon, AppleIcon, ArrowUpRightIcon, BellIcon, BookmarkIcon, CalendarIcon, CardIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, DownloadIcon, EllipsisIcon, FacebookIcon, FileIcon, GoogleIcon, IconColorProvider, InfoIcon, ImageIcon, LockIcon, MaximizeIcon, MicIcon, MinusIcon, MoonIcon, PackageIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, PlusSquareIcon, ReceiptIcon, RotateCcwIcon, SearchIcon, SendIcon, ShareNodesIcon, ShieldAlertIcon, ShieldCheckIcon, SunIcon, TrashIcon, UnlockIcon, XIcon, useIconColor, type IconProps, } from './icons/index.js';
|
|
65
75
|
export * from './hooks/index.js';
|
|
66
76
|
export { cn } from './utils/cn.js';
|
|
67
77
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,kCAA+B,CAAC;AAG3F,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,gBA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AE,EAAE,EAAE,MAAM,eAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard-avoider.d.ts","sourceRoot":"","sources":["../../../../src/primitives/keyboard-avoider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"keyboard-avoider.d.ts","sourceRoot":"","sources":["../../../../src/primitives/keyboard-avoider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oCAAiC,CAAC;AAGzC,MAAM,WAAW,oBAAqB,SAAQ,SAAS;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,OAAc,EACd,MAAa,EACb,IAAa,EACb,MAAW,EACX,WAAe,EACf,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,+BAuBtB;yBAlCe,eAAe"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
1
2
|
import { Text as RNText, type TextProps as RNTextProps } from 'react-native';
|
|
2
3
|
import { type VariantProps } from 'tailwind-variants';
|
|
3
4
|
declare const textVariants: import("tailwind-variants").TVReturnType<{
|
|
@@ -62,5 +63,24 @@ export interface TextProps extends RNTextProps, VariantProps<typeof textVariants
|
|
|
62
63
|
className?: string;
|
|
63
64
|
}
|
|
64
65
|
export declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<RNText>>;
|
|
66
|
+
/**
|
|
67
|
+
* Wraps the bare text among `children` so it can live in a plain view.
|
|
68
|
+
*
|
|
69
|
+
* React Native will not render a string outside a `<Text>`, and a component
|
|
70
|
+
* that takes `children` has no say in whether it is handed one — so anything
|
|
71
|
+
* putting `children` into a `View`, a `Pressable` or a scroller has to allow
|
|
72
|
+
* for it. Every part in the library that does runs its children through here.
|
|
73
|
+
*
|
|
74
|
+
* Per child, and not all-or-nothing. A part is nearly always given an element
|
|
75
|
+
* and some text together — an icon and a label, an arrow and a line of text —
|
|
76
|
+
* which makes `children` an *array*, so a `typeof children === 'string'` check
|
|
77
|
+
* never matches and the text underneath reaches the view bare. That is the
|
|
78
|
+
* shape this exists to make impossible.
|
|
79
|
+
*
|
|
80
|
+
* `render` is there because the wrapper is rarely the plain default: a button
|
|
81
|
+
* wants its own label variant, a sheet header wants a heading. Pass one, and
|
|
82
|
+
* the text arrives dressed the way the part would have dressed it anyway.
|
|
83
|
+
*/
|
|
84
|
+
export declare function textChildren(children: ReactNode, render?: (text: string | number) => ReactElement): ReactNode;
|
|
65
85
|
export {};
|
|
66
86
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/primitives/text.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/primitives/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,IAAI,IAAI,MAAM,EAA2B,KAAK,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AACtG,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DA0BhB,CAAC;AAEH,MAAM,WAAW,SAAU,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,IAAI,8FAyBhB,CAAC;AAIF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,SAAS,EACnB,MAAM,GAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,KAAK,YAA4C,GAC9E,SAAS,CAIX"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The maths every chart shares.
|
|
3
|
+
*
|
|
4
|
+
* Scales, monotone tangents and path building, in one place because four
|
|
5
|
+
* charts need them and a copy per chart is four chances for two charts to
|
|
6
|
+
* disagree about where a point goes. A line and an area drawn from different
|
|
7
|
+
* code do not lie on top of each other, and that is exactly the pair most
|
|
8
|
+
* often drawn together.
|
|
9
|
+
*
|
|
10
|
+
* Everything here is a worklet. The paths are rebuilt on the UI thread on
|
|
11
|
+
* every frame a domain is tweening, so none of it can be allowed to need the
|
|
12
|
+
* JS thread — which also rules out reaching for a charting dependency, since
|
|
13
|
+
* that is the one thing none of them are written to survive.
|
|
14
|
+
*/
|
|
15
|
+
/** Which of the five chart tokens a series takes. */
|
|
16
|
+
export type SeriesColorIndex = 1 | 2 | 3 | 4 | 5;
|
|
17
|
+
/**
|
|
18
|
+
* A series' colour: an explicit one, else the `--color-chart-*` token.
|
|
19
|
+
*
|
|
20
|
+
* Shared so every chart draws its first series in the same colour. Two charts
|
|
21
|
+
* on one screen disagreeing about what "series one" looks like is the kind of
|
|
22
|
+
* thing nobody reports and everybody notices.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useSeriesColor(explicit: string | undefined, index: SeriesColorIndex): string;
|
|
25
|
+
/** `12.4k` rather than `12400` — a readout has one line to say it in. */
|
|
26
|
+
export declare function compactNumber(value: number): string;
|
|
27
|
+
/** The drawable box inside a chart, after its padding is taken off. */
|
|
28
|
+
export interface Plot {
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
left: number;
|
|
32
|
+
top: number;
|
|
33
|
+
}
|
|
34
|
+
/** A point's x, spreading `total` of them evenly across the plot. */
|
|
35
|
+
export declare function xOf(index: number, total: number, plot: Plot): number;
|
|
36
|
+
/** A value's y, with `min` at the bottom of the plot and `max` at the top. */
|
|
37
|
+
export declare function yOf(value: number, plot: Plot, min: number, max: number): number;
|
|
38
|
+
/** The centre of the `index`th of `total` bands, as used for bars and columns. */
|
|
39
|
+
export declare function bandOf(index: number, total: number, plot: Plot): number;
|
|
40
|
+
/**
|
|
41
|
+
* Monotone cubic tangents.
|
|
42
|
+
*
|
|
43
|
+
* Written out rather than taken from a charting dependency, because it is forty
|
|
44
|
+
* lines and it has to run inside a worklet.
|
|
45
|
+
*
|
|
46
|
+
* Monotone is the right default for a time series. A plain cubic spline
|
|
47
|
+
* overshoots between points, so a series that never goes below zero draws a dip
|
|
48
|
+
* under the axis between two low values — a shape that is not in the data. This
|
|
49
|
+
* one cannot, because the tangent at each point is clamped against the slopes
|
|
50
|
+
* either side of it, and a local peak or trough is given a flat one.
|
|
51
|
+
*/
|
|
52
|
+
export declare function tangents(xs: number[], ys: number[]): number[];
|
|
53
|
+
/** How a series is joined between its points. */
|
|
54
|
+
export type ChartCurve = 'monotone' | 'linear';
|
|
55
|
+
export interface ChartPoint {
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
}
|
|
59
|
+
/** Points, split at the gaps — a null breaks the series rather than crossing it. */
|
|
60
|
+
export declare function runsOf(values: (number | null)[], plot: Plot, min: number, max: number,
|
|
61
|
+
/** Baselines to stack each point on top of, for a stacked area. */
|
|
62
|
+
baselines?: number[]): ChartPoint[][];
|
|
63
|
+
/** One unbroken run of points as a path, curved or straight. */
|
|
64
|
+
export declare function segment(points: ChartPoint[], curve: ChartCurve): string;
|
|
65
|
+
/** A series as a stroked line. Flat down the middle while it is still loading. */
|
|
66
|
+
export declare function linePath(values: (number | null)[], plot: Plot, min: number, max: number, curve: ChartCurve, loading: boolean, baselines?: number[]): string;
|
|
67
|
+
/**
|
|
68
|
+
* A series as a filled area.
|
|
69
|
+
*
|
|
70
|
+
* `floors` is what makes a stack: without it every run is closed against the
|
|
71
|
+
* bottom of the plot, and with it each run is closed against the series below,
|
|
72
|
+
* so the bands sit on each other rather than overlapping. The floor is walked
|
|
73
|
+
* backwards because the fill has to trace its underside right to left to close.
|
|
74
|
+
*/
|
|
75
|
+
export declare function areaPath(values: (number | null)[], plot: Plot, min: number, max: number, curve: ChartCurve, loading: boolean, baselines?: number[]): string;
|
|
76
|
+
/**
|
|
77
|
+
* A rounded rectangle, built as a path rather than drawn as a `Rect`.
|
|
78
|
+
*
|
|
79
|
+
* A bar is rounded on the end it grows towards and square on the end it grows
|
|
80
|
+
* from, so it reads as sitting on the axis rather than floating above it —
|
|
81
|
+
* which `rx` cannot express, since it rounds all four corners or none.
|
|
82
|
+
*/
|
|
83
|
+
export declare function barPath(x: number, y: number, width: number, height: number, radius: number,
|
|
84
|
+
/** Which end is the growing one. */
|
|
85
|
+
towards: 'up' | 'down' | 'left' | 'right'): string;
|
|
86
|
+
/**
|
|
87
|
+
* An arc of a circle, as a path.
|
|
88
|
+
*
|
|
89
|
+
* Angles are in turns from twelve o'clock, clockwise, because that is how a
|
|
90
|
+
* ring chart is described — "sixty percent of the way round" — and converting
|
|
91
|
+
* at every call site is where the sign errors live.
|
|
92
|
+
*/
|
|
93
|
+
export declare function arcPath(cx: number, cy: number, radius: number, from: number, to: number): string;
|
|
94
|
+
/** The numbers of one column, with anything unusable left as a gap. */
|
|
95
|
+
export declare function columnValues(data: Record<string, unknown>[], key: string): (number | null)[];
|
|
96
|
+
//# sourceMappingURL=chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../../src/utils/chart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH,qDAAqD;AACrD,MAAM,MAAM,gBAAgB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEjD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,KAAK,EAAE,gBAAgB,GACtB,MAAM,CAGR;AAED,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKnD;AAED,uEAAuE;AACvE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,qEAAqE;AACrE,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,MAAM,CAIpE;AAED,8EAA8E;AAC9E,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAI/E;AAED,kFAAkF;AAClF,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,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,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM;AACd,oCAAoC;AACpC,OAAO,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GACxC,MAAM,CA6BR;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,GACT,MAAM,CAuBR;AAED,uEAAuE;AACvE,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAC/B,GAAG,EAAE,MAAM,GACV,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAMnB"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Date helpers for the calendar.
|
|
3
|
+
*
|
|
4
|
+
* No date library. Everything a month grid needs is arithmetic on `Date`, and
|
|
5
|
+
* a dependency that ships a full timezone database to render seven columns is
|
|
6
|
+
* a poor trade for a library whose whole runtime is three small packages.
|
|
7
|
+
*
|
|
8
|
+
* Two rules hold throughout:
|
|
9
|
+
*
|
|
10
|
+
* - **Days are compared at local midnight.** A `Date` carries a time, and two
|
|
11
|
+
* values on the same day are not equal unless that time is stripped. Every
|
|
12
|
+
* comparison here goes through `startOfDay`.
|
|
13
|
+
* - **Month arithmetic is done with `setMonth`, not by adding days.** The
|
|
14
|
+
* platform already knows that a month is 28, 29, 30 or 31 days long.
|
|
15
|
+
*/
|
|
16
|
+
/** Names of the weekdays and months, in the caller's locale. */
|
|
17
|
+
export type DateLocale = string | undefined;
|
|
18
|
+
export declare function startOfDay(date: Date): Date;
|
|
19
|
+
export declare function isSameDay(a: Date | null | undefined, b: Date | null | undefined): boolean;
|
|
20
|
+
export declare function isSameMonth(a: Date, b: Date): boolean;
|
|
21
|
+
export declare function startOfMonth(date: Date): Date;
|
|
22
|
+
/**
|
|
23
|
+
* Day 0 of the *next* month, which the platform resolves to the last day of
|
|
24
|
+
* this one — so a leap February needs no special case.
|
|
25
|
+
*/
|
|
26
|
+
export declare function endOfMonth(date: Date): Date;
|
|
27
|
+
export declare function addMonths(date: Date, months: number): Date;
|
|
28
|
+
export declare function addDays(date: Date, days: number): Date;
|
|
29
|
+
/** Whole days from `a` to `b`, ignoring the time of day on both. */
|
|
30
|
+
export declare function daysBetween(a: Date, b: Date): number;
|
|
31
|
+
export declare function isBefore(a: Date, b: Date): boolean;
|
|
32
|
+
export declare function isAfter(a: Date, b: Date): boolean;
|
|
33
|
+
/** Inclusive at both ends, which is what a selected range means to a reader. */
|
|
34
|
+
export declare function isWithin(date: Date, from: Date, to: Date): boolean;
|
|
35
|
+
export declare function clampDate(date: Date, min?: Date, max?: Date): Date;
|
|
36
|
+
/**
|
|
37
|
+
* The six-week grid for a month.
|
|
38
|
+
*
|
|
39
|
+
* Always six rows, and always starting on the chosen first day of the week, so
|
|
40
|
+
* the calendar does not change height as the months are paged through. A grid
|
|
41
|
+
* that grows a row in March and loses it again in April makes everything below
|
|
42
|
+
* it jump, and the days themselves appear to move between months.
|
|
43
|
+
*
|
|
44
|
+
* The leading and trailing cells belong to the neighbouring months; whether
|
|
45
|
+
* they are drawn or left blank is the caller's decision.
|
|
46
|
+
*/
|
|
47
|
+
export declare function monthGrid(month: Date, weekStartsOn: number): Date[][];
|
|
48
|
+
/**
|
|
49
|
+
* Which calendar the months and day numbers are counted in.
|
|
50
|
+
*
|
|
51
|
+
* `auto` takes whatever the locale resolves to, which on an Arabic device is
|
|
52
|
+
* usually islamic. It is not the default: a grid whose month boundaries move
|
|
53
|
+
* with the device's language is a surprise, and the caller who wants that can
|
|
54
|
+
* ask for it.
|
|
55
|
+
*/
|
|
56
|
+
export type CalendarSystem = 'gregory' | 'islamic' | 'auto';
|
|
57
|
+
/** Year, month and day as the chosen calendar counts them. 1-based month. */
|
|
58
|
+
export interface CalendarParts {
|
|
59
|
+
year: number;
|
|
60
|
+
month: number;
|
|
61
|
+
day: number;
|
|
62
|
+
}
|
|
63
|
+
/** What `auto` resolves to for a locale, falling back to the Gregorian. */
|
|
64
|
+
export declare function resolveCalendar(system: CalendarSystem, locale: DateLocale): 'gregory' | 'islamic';
|
|
65
|
+
/**
|
|
66
|
+
* A date's year, month and day in the given calendar.
|
|
67
|
+
*
|
|
68
|
+
* `formatToParts` rather than a parsed string, because the order and the
|
|
69
|
+
* separators are the locale's business and we only want the numbers. The
|
|
70
|
+
* numbering system is pinned to Latin so the parts come back parseable
|
|
71
|
+
* whatever language is on the device, and so the cells and the caption above
|
|
72
|
+
* them end up in one set of digits.
|
|
73
|
+
*/
|
|
74
|
+
export declare function calendarParts(date: Date, system: 'gregory' | 'islamic', locale: DateLocale): CalendarParts;
|
|
75
|
+
export declare function isSameCalendarMonth(a: Date, b: Date, system: 'gregory' | 'islamic', locale: DateLocale): boolean;
|
|
76
|
+
/**
|
|
77
|
+
* The first day of the calendar month `date` falls in.
|
|
78
|
+
*
|
|
79
|
+
* Walked back a day at a time rather than computed. A Hijri month is 29 or 30
|
|
80
|
+
* days depending on the year, and the platform's own calendar data already
|
|
81
|
+
* knows which — stepping until the day number reads 1 asks it, instead of
|
|
82
|
+
* shipping a table that will disagree with the device.
|
|
83
|
+
*/
|
|
84
|
+
export declare function startOfCalendarMonth(date: Date, system: 'gregory' | 'islamic', locale: DateLocale): Date;
|
|
85
|
+
/** Days in the calendar month `date` falls in. */
|
|
86
|
+
export declare function daysInCalendarMonth(date: Date, system: 'gregory' | 'islamic', locale: DateLocale): number;
|
|
87
|
+
/** Page by whole calendar months, forwards or back. */
|
|
88
|
+
export declare function addCalendarMonths(date: Date, months: number, system: 'gregory' | 'islamic', locale: DateLocale): Date;
|
|
89
|
+
/** The day-of-month a cell shows. */
|
|
90
|
+
export declare function calendarDayNumber(date: Date, system: 'gregory' | 'islamic', locale: DateLocale): number;
|
|
91
|
+
/** "Ramadan 1447" or "March 2026", in whichever calendar is in force. */
|
|
92
|
+
export declare function calendarMonthLabel(date: Date, system: 'gregory' | 'islamic', locale: DateLocale): string;
|
|
93
|
+
/**
|
|
94
|
+
* The names of a calendar's months, in order, for the dropdown.
|
|
95
|
+
*
|
|
96
|
+
* Sampled from a real year in that calendar rather than from twelve Gregorian
|
|
97
|
+
* firsts — the old code did the latter and got twelve arbitrary Hijri names in
|
|
98
|
+
* whatever order the Gregorian 1sts happened to fall, then indexed them by
|
|
99
|
+
* Gregorian month, which meant nothing at all.
|
|
100
|
+
*/
|
|
101
|
+
export declare function calendarMonthNames(reference: Date, system: 'gregory' | 'islamic', locale: DateLocale, style?: 'long' | 'short'): string[];
|
|
102
|
+
/** The whole date read out, in whichever calendar is in force. */
|
|
103
|
+
export declare function calendarLongDate(date: Date, system: 'gregory' | 'islamic', locale: DateLocale): string;
|
|
104
|
+
/** The compact form a trigger shows, in whichever calendar is in force. */
|
|
105
|
+
export declare function calendarShortDate(date: Date, system: 'gregory' | 'islamic', locale: DateLocale): string;
|
|
106
|
+
/** Month names in order, for the caption and its dropdown. */
|
|
107
|
+
export declare function monthNames(locale: DateLocale, style?: 'long' | 'short'): string[];
|
|
108
|
+
/** Column headings, rotated so the first one is `weekStartsOn`. */
|
|
109
|
+
export declare function weekdayNames(locale: DateLocale, weekStartsOn: number): string[];
|
|
110
|
+
/** "March 2026", for the caption. */
|
|
111
|
+
export declare function monthLabel(date: Date, locale: DateLocale): string;
|
|
112
|
+
/** "12 March 2026" — the whole date, for a screen reader to read out. */
|
|
113
|
+
export declare function longDate(date: Date, locale: DateLocale): string;
|
|
114
|
+
/** "12 Mar 2026" — the compact form a trigger shows. */
|
|
115
|
+
export declare function shortDate(date: Date, locale: DateLocale): string;
|
|
116
|
+
//# sourceMappingURL=date.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../../src/utils/date.ts"],"names":[],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json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "panelui-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.1",
|
|
4
4
|
"description": "High-performance React Native UI components for Expo. Semantic design tokens, powered by Uniwind (Tailwind v4) and Reanimated.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
@@ -64,12 +64,14 @@
|
|
|
64
64
|
"homepage": "https://github.com/panel-ui/PanelUI#readme",
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@expo/ui": "*",
|
|
67
|
+
"@maplibre/maplibre-react-native": ">=11.0.0",
|
|
67
68
|
"@react-native-masked-view/masked-view": ">=0.3.0",
|
|
68
69
|
"expo-blur": ">=13.0.0",
|
|
69
70
|
"expo-clipboard": ">=7.0.0",
|
|
70
71
|
"expo-file-system": ">=17.0.0",
|
|
71
72
|
"expo-haptics": ">=13.0.0",
|
|
72
73
|
"expo-linear-gradient": ">=13.0.0",
|
|
74
|
+
"expo-location": ">=18.0.0",
|
|
73
75
|
"react": "*",
|
|
74
76
|
"react-native": "*",
|
|
75
77
|
"react-native-gesture-handler": ">=2.0.0",
|
|
@@ -106,6 +108,9 @@
|
|
|
106
108
|
"@expo/ui": {
|
|
107
109
|
"optional": true
|
|
108
110
|
},
|
|
111
|
+
"@maplibre/maplibre-react-native": {
|
|
112
|
+
"optional": true
|
|
113
|
+
},
|
|
109
114
|
"expo-blur": {
|
|
110
115
|
"optional": true
|
|
111
116
|
},
|
|
@@ -118,6 +123,9 @@
|
|
|
118
123
|
"expo-haptics": {
|
|
119
124
|
"optional": true
|
|
120
125
|
},
|
|
126
|
+
"expo-location": {
|
|
127
|
+
"optional": true
|
|
128
|
+
},
|
|
121
129
|
"react-native-keyboard-controller": {
|
|
122
130
|
"optional": true
|
|
123
131
|
},
|
|
@@ -30,7 +30,7 @@ import Animated, {
|
|
|
30
30
|
} from 'react-native-reanimated';
|
|
31
31
|
import { tv } from 'tailwind-variants';
|
|
32
32
|
import { ChevronDownIcon } from '../../icons';
|
|
33
|
-
import { Text, type TextProps } from '../../primitives/text';
|
|
33
|
+
import { Text, type TextProps, textChildren } from '../../primitives/text';
|
|
34
34
|
|
|
35
35
|
export type AccordionVariant =
|
|
36
36
|
| 'default'
|
|
@@ -226,7 +226,7 @@ const AccordionItem = forwardRef<View, AccordionItemProps>(
|
|
|
226
226
|
className={item({ className })}
|
|
227
227
|
{...props}
|
|
228
228
|
>
|
|
229
|
-
{children}
|
|
229
|
+
{textChildren(children)}
|
|
230
230
|
</Animated.View>
|
|
231
231
|
</AccordionItemContext.Provider>
|
|
232
232
|
);
|
|
@@ -256,11 +256,9 @@ const AccordionTrigger = forwardRef<View, AccordionTriggerProps>(
|
|
|
256
256
|
className={trigger({ className })}
|
|
257
257
|
{...props}
|
|
258
258
|
>
|
|
259
|
-
{
|
|
260
|
-
<Text className={title()}>{
|
|
261
|
-
)
|
|
262
|
-
children
|
|
263
|
-
)}
|
|
259
|
+
{textChildren(children, (text) => (
|
|
260
|
+
<Text className={title()}>{text}</Text>
|
|
261
|
+
))}
|
|
264
262
|
</Pressable>
|
|
265
263
|
);
|
|
266
264
|
}
|
|
@@ -319,11 +317,9 @@ const AccordionContent = forwardRef<View, AccordionContentProps>(
|
|
|
319
317
|
|
|
320
318
|
return (
|
|
321
319
|
<View ref={ref} className={content({ className })} {...props}>
|
|
322
|
-
{
|
|
323
|
-
<Text className={contentText()}>{
|
|
324
|
-
)
|
|
325
|
-
children
|
|
326
|
-
)}
|
|
320
|
+
{textChildren(children, (text) => (
|
|
321
|
+
<Text className={contentText()}>{text}</Text>
|
|
322
|
+
))}
|
|
327
323
|
</View>
|
|
328
324
|
);
|
|
329
325
|
}
|
|
@@ -10,7 +10,7 @@ import { View, type Text as RNText, type ViewProps } from 'react-native';
|
|
|
10
10
|
import { tv, type VariantProps } from 'tailwind-variants';
|
|
11
11
|
import { useCSSVariable } from 'uniwind';
|
|
12
12
|
import { cn } from '../../utils/cn';
|
|
13
|
-
import { Text, type TextProps } from '../../primitives/text';
|
|
13
|
+
import { Text, type TextProps, textChildren } from '../../primitives/text';
|
|
14
14
|
import { AlertTriangleIcon, CheckCircleIcon, InfoIcon } from '../../icons';
|
|
15
15
|
|
|
16
16
|
const alertVariants = tv({
|
|
@@ -98,7 +98,7 @@ const AlertRoot = forwardRef<View, AlertProps>(
|
|
|
98
98
|
{icon ? (
|
|
99
99
|
<>
|
|
100
100
|
<View className={indicator()}>{icon}</View>
|
|
101
|
-
<View className={content()}>{children}</View>
|
|
101
|
+
<View className={content()}>{textChildren(children)}</View>
|
|
102
102
|
</>
|
|
103
103
|
) : (
|
|
104
104
|
children
|