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
|
@@ -35,7 +35,9 @@
|
|
|
35
35
|
*/
|
|
36
36
|
import { type ReactNode } from 'react';
|
|
37
37
|
import { type ViewProps } from 'react-native';
|
|
38
|
-
|
|
38
|
+
import { useDirection, useDirectionSign, type DirectionValue } from '../../hooks/use-direction.js';
|
|
39
|
+
export { useDirection, useDirectionSign };
|
|
40
|
+
export type { DirectionValue };
|
|
39
41
|
export interface DirectionProps extends ViewProps {
|
|
40
42
|
className?: string;
|
|
41
43
|
children?: ReactNode;
|
|
@@ -47,18 +49,17 @@ export interface DirectionProps extends ViewProps {
|
|
|
47
49
|
dir?: DirectionValue;
|
|
48
50
|
}
|
|
49
51
|
/**
|
|
50
|
-
* Provider. Renders one `View` — it has to, since the flip is a style
|
|
51
|
-
*
|
|
52
|
-
*
|
|
52
|
+
* Provider. Renders one `View` — it has to, since the flip is a style.
|
|
53
|
+
*
|
|
54
|
+
* The view takes no layout of its own: it is as big as what is inside it, and
|
|
55
|
+
* `className` says otherwise. Wrapping a whole app therefore wants `flex-1`
|
|
56
|
+
* explicitly. It used to carry that by default, and every use inside a screen
|
|
57
|
+
* had to undo it with `flex-none` — a default that is wrong for one of its two
|
|
58
|
+
* uses is worse than no default, because the wrong one fails silently by
|
|
59
|
+
* swallowing the rest of the screen.
|
|
53
60
|
*/
|
|
54
61
|
export declare function Direction({ className, children, dir, style, ...props }: DirectionProps): import("react").JSX.Element;
|
|
55
62
|
export declare namespace Direction {
|
|
56
63
|
var displayName: string;
|
|
57
64
|
}
|
|
58
|
-
/**
|
|
59
|
-
* The reading direction in force, for a component that has to flip maths Yoga
|
|
60
|
-
* cannot flip for it. Safe with no provider mounted: it falls back to the
|
|
61
|
-
* device's own setting.
|
|
62
|
-
*/
|
|
63
|
-
export declare function useDirection(): DirectionValue;
|
|
64
65
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/direction/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/direction/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAGL,YAAY,EACZ,gBAAgB,EAChB,KAAK,cAAc,EACpB,MAAM,8BAA2B,CAAC;AAGnC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAC1C,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,GAAG,CAAC,EAAE,cAAc,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,+BAgBtF;yBAhBe,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/empty-state/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAyC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAQ,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/empty-state/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAyC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAQ,KAAK,SAAS,EAAgB,MAAM,0BAAuB,CAAC;AAE3E,KAAK,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;AAK9C,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CA0BtB,CAAC;AAEH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CA0BjB,CAAC;AAEH,MAAM,WAAW,eACf,SAAQ,SAAS,EACf,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC7B,iEAAiE;IACjE,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAuBD,MAAM,WAAW,oBACf,SAAQ,SAAS,EACf,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA2DD,eAAO,MAAM,UAAU;;;;;;oBAR8C,MAAM;;CAczE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/field/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,EAAQ,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/field/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,EAAQ,KAAK,SAAS,EAAgB,MAAM,0BAAuB,CAAC;A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S,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAUD,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAoBD,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAUD,eAAO,MAAM,KAAK;;;;;;;;;;CAUhB,CAAC"}
|
|
@@ -14,6 +14,23 @@
|
|
|
14
14
|
* surfaces read as one misdrawn shape. The panel's bottom corners are not set
|
|
15
15
|
* at all — the shell clips them, so they take its radius exactly.
|
|
16
16
|
*
|
|
17
|
+
* That clip follows the shell's *border box*, not the box inside its border.
|
|
18
|
+
* Along the straight edges the panel is held off by the border width and the
|
|
19
|
+
* edge shows through, but at the corner arcs the panel's square corner is
|
|
20
|
+
* clipped to the outer radius and paints across the border. At the default
|
|
21
|
+
* hairline that is a sliver nobody sees. Give the shell a thicker border and
|
|
22
|
+
* the corners visibly eat it, so a Frame with `border-2` or more needs the
|
|
23
|
+
* panel told where to stop:
|
|
24
|
+
*
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <Frame className="rounded-[28px] border-2 border-dashed">
|
|
27
|
+
* <Frame.Panel className="rounded-b-[26px]">…</Frame.Panel>
|
|
28
|
+
* </Frame>
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* The radius to use is the shell's less its border width. It is on the caller
|
|
32
|
+
* because both arrive as `className` strings, which the component cannot read.
|
|
33
|
+
*
|
|
17
34
|
* ```tsx
|
|
18
35
|
* <Frame>
|
|
19
36
|
* <Frame.Header>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/frame/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":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AQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,EAAE,SAAS;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAmDD,MAAM,WAAW,iBAAkB,SAAQ,UAAU,EAAE,SAAS;IAC9D,2DAA2D;IAC3D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAkCD,eAAO,MAAM,KAAK;;;;;;;;;;;CAWhB,CAAC"}
|
|
@@ -110,8 +110,8 @@ export interface HeatmapChartProps extends ViewProps {
|
|
|
110
110
|
/** Which weekday is the top row. `0` is Sunday. Labels follow it. */
|
|
111
111
|
weekStartDay?: number;
|
|
112
112
|
/**
|
|
113
|
-
* Rows per column. Seven for a calendar; use another number
|
|
114
|
-
*
|
|
113
|
+
* Rows per column. Seven for a calendar; use another number when the bins
|
|
114
|
+
* are not weekdays — twenty-four for a grid of hours.
|
|
115
115
|
*/
|
|
116
116
|
rows?: number;
|
|
117
117
|
/**
|
|
@@ -126,8 +126,27 @@ export interface HeatmapChartProps extends ViewProps {
|
|
|
126
126
|
* opacities, which follows the theme.
|
|
127
127
|
*/
|
|
128
128
|
levelColors?: string[];
|
|
129
|
-
/**
|
|
129
|
+
/**
|
|
130
|
+
* Base colour for the derived ramp — the colour the busiest cells are drawn
|
|
131
|
+
* in, with the quieter levels the same colour at lower opacity.
|
|
132
|
+
*
|
|
133
|
+
* Takes a theme token by name as well as a literal, so `"--color-chart-3"`
|
|
134
|
+
* recolours the chart and keeps following the theme through light and dark.
|
|
135
|
+
* Defaults to `--color-chart-1`.
|
|
136
|
+
*/
|
|
130
137
|
color?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Colour of a cell with nothing in it. Takes a token name too. Defaults to
|
|
140
|
+
* `--color-muted`, which is the right weight for "measured, and empty" —
|
|
141
|
+
* override it for a chart that should read as denser or fainter than that.
|
|
142
|
+
*/
|
|
143
|
+
emptyColor?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Opacity of the base colour at each of the five levels, quietest first.
|
|
146
|
+
* The way to retune the ramp's contrast without having to name five colours.
|
|
147
|
+
* Ignored when `levelColors` is given, which sets the colours outright.
|
|
148
|
+
*/
|
|
149
|
+
levelOpacity?: number[];
|
|
131
150
|
/** Milliseconds for the reveal on mount. */
|
|
132
151
|
animationDuration?: number;
|
|
133
152
|
/** Opacity of every cell that is not the one under the finger. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/heatmap-chart/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAc,IAAI,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/heatmap-chart/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAc,IAAI,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAgFxF;;;;GAIG;AACH,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG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EAClB,UAAU,GACX,EAAE,kBAAkB,+BA6BpB;kBAlCQ,aAAa;;;AAqCtB,eAAO,MAAM,YAAY;;;;;;;CAOvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/input-group/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EACL,IAAI,EAEJ,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,mBAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/input-group/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EACL,IAAI,EAEJ,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,mBAAU,CAAC;AA8BlD,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAwBD,MAAM,WAAW,wBAAyB,SAAQ,SAAS;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAwCD,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC;AA4B9C,eAAO,MAAM,UAAU;;;;CAIrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/item/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AAC,EAAE,MAAM,CAAC;CACpB;AAaD,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAgBD,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAoBD,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAgBD,eAAO,MAAM,IAAI;;;;;;;;;;CAUf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/label/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,EAAQ,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/label/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,EAAQ,KAAK,SAAS,EAAgB,MAAM,0BAAuB,CAAC;AAiC3E,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,wDAAwD;IACxD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAqCD,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AA2BD,eAAO,MAAM,KAAK;;CAEhB,CAAC"}
|
|
@@ -48,7 +48,7 @@ import { type ViewProps } from 'react-native';
|
|
|
48
48
|
* stays a flat list of children instead of two nested slots the caller has to
|
|
49
49
|
* remember the order of.
|
|
50
50
|
*/
|
|
51
|
-
type Layer = 'svg' | 'overlay';
|
|
51
|
+
type Layer = 'svg' | 'overlay' | 'header';
|
|
52
52
|
export type LineChartStatus = 'loading' | 'ready';
|
|
53
53
|
export type LineChartCurve = 'monotone' | 'linear';
|
|
54
54
|
export type LineChartDatum = Record<string, string | number | null | undefined>;
|
|
@@ -229,12 +229,52 @@ export interface LineChartLegendProps extends ViewProps {
|
|
|
229
229
|
* A swatch and a name per registered series. Sits in the top-left of the plot
|
|
230
230
|
* by default — move it with `className`.
|
|
231
231
|
*/
|
|
232
|
-
declare function LineChartLegend({ className, labels, ...props }: LineChartLegendProps): import("react").JSX.Element;
|
|
232
|
+
declare function LineChartLegend({ className, labels, ...props }: LineChartLegendProps): import("react").JSX.Element | null;
|
|
233
233
|
declare namespace LineChartLegend {
|
|
234
234
|
var displayName: string;
|
|
235
235
|
var layer: Layer;
|
|
236
236
|
}
|
|
237
|
+
export interface LineChartHeaderProps extends ViewProps {
|
|
238
|
+
className?: string;
|
|
239
|
+
/** Small line above the value — what the chart is of. */
|
|
240
|
+
title?: string;
|
|
241
|
+
/** The readout. The largest thing on the card, and the first thing read. */
|
|
242
|
+
value?: string;
|
|
243
|
+
/** One muted line under the value — a period, a comparison, a total. */
|
|
244
|
+
caption?: string;
|
|
245
|
+
/** Prettier names for the series keys, as the legend takes. */
|
|
246
|
+
labels?: Record<string, string>;
|
|
247
|
+
/**
|
|
248
|
+
* Draw a swatch and a name per series along the trailing edge. Prefer this to
|
|
249
|
+
* `LineChart.Legend` on a chart that has a header: the legend floats over the
|
|
250
|
+
* plot, where it competes with the lines for the same corner.
|
|
251
|
+
*/
|
|
252
|
+
legend?: boolean;
|
|
253
|
+
/** Trailing slot — a control, a badge, a range picker. Wins over `legend`. */
|
|
254
|
+
children?: ReactNode;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* The strip above the plot: what the chart is of, what it currently reads, and
|
|
258
|
+
* what the colours mean.
|
|
259
|
+
*
|
|
260
|
+
* It belongs to the chart rather than to the card around it because it is about
|
|
261
|
+
* the *plot* — the number changes as a finger moves along the line, and the
|
|
262
|
+
* legend is the series list the chart itself is holding. The card's header is a
|
|
263
|
+
* caption on the tray the chart sits in; this is the chart introducing itself.
|
|
264
|
+
*
|
|
265
|
+
* The value is not derived here. A readout that follows the finger belongs to
|
|
266
|
+
* whoever owns the data — take it from `onActiveIndexChange` and pass the
|
|
267
|
+
* formatted string down, so one header can show a total when nothing is pressed
|
|
268
|
+
* and a point's value when something is.
|
|
269
|
+
*/
|
|
270
|
+
declare function LineChartHeader({ className, title, value, caption, labels, legend, children, ...props }: LineChartHeaderProps): import("react").JSX.Element;
|
|
271
|
+
declare namespace LineChartHeader {
|
|
272
|
+
var displayName: string;
|
|
273
|
+
var layer: Layer;
|
|
274
|
+
}
|
|
275
|
+
/** Only reached if the theme CSS was never imported. */
|
|
237
276
|
export declare const LineChart: import("react").ForwardRefExoticComponent<LineChartProps & import("react").RefAttributes<LineChartHandle>> & {
|
|
277
|
+
Header: typeof LineChartHeader;
|
|
238
278
|
Grid: typeof LineChartGrid;
|
|
239
279
|
Area: typeof LineChartArea;
|
|
240
280
|
Line: typeof LineChartLine;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/line-chart/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;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| 'pulsating-dots' | 'liquid-dots' | 'bar-cascade' | 'bouncing-bars' | 'symmetric-wave' | 'morph-ring' | 'wave-physics';
|
|
3
|
+
export type LoaderSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface LoaderProps extends Omit<ViewProps, 'children'> {
|
|
5
|
+
/**
|
|
6
|
+
* Which animation to draw. They are interchangeable — pick one for the
|
|
7
|
+
* character it gives the screen and keep it.
|
|
8
|
+
*/
|
|
9
|
+
variant?: LoaderVariant;
|
|
10
|
+
/** Overall scale. The geometry of every variant is multiplied by it. */
|
|
11
|
+
size?: LoaderSize;
|
|
12
|
+
/**
|
|
13
|
+
* Ink. Takes a theme token by name — `"--color-primary"` — as readily as a
|
|
14
|
+
* literal, and the token is usually what you want: a literal cannot follow
|
|
15
|
+
* the theme into dark mode.
|
|
16
|
+
*
|
|
17
|
+
* With neither, the loader draws in the readable foreground of the surface
|
|
18
|
+
* it is on, so one inside a filled button is legible without being told.
|
|
19
|
+
*/
|
|
20
|
+
color?: string;
|
|
21
|
+
/** Multiplier on the tempo. `1` is the designed speed; `2` is twice as fast. */
|
|
22
|
+
speed?: number;
|
|
23
|
+
/**
|
|
24
|
+
* What a screen reader announces. Defaults to "Loading". Say what is
|
|
25
|
+
* loading when the loader is the only thing on the screen.
|
|
26
|
+
*/
|
|
27
|
+
label?: string;
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A loading animation.
|
|
32
|
+
*
|
|
33
|
+
* Nine of them, chosen with `variant`. They all take the same colour, the same
|
|
34
|
+
* `speed`, and the same treatment under reduced motion, so swapping one for
|
|
35
|
+
* another is a one-word change.
|
|
36
|
+
*/
|
|
37
|
+
export declare const Loader: import("react").MemoExoticComponent<({ variant, size, color, speed, label, className, ...props }: LoaderProps) => import("react").JSX.Element>;
|
|
38
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/loader/index.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAsBpD,MAAM,MAAM,aAAa,GACrB,YAAY,GACZ,aAAa,GACb,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,YAAY,GACZ,cAAc,CAAC;AAEnB,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAM5C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC9D;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,wEAAwE;IACxE,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA8eD;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,oGAQhB,WAAW,iCA+MZ,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The basemap, drawn from theme tokens.
|
|
3
|
+
*
|
|
4
|
+
* A hosted map style ships its colours baked in, which gives you exactly two
|
|
5
|
+
* maps: a light one and a dark one. PanelUI has six themes, and a map that
|
|
6
|
+
* stays grey while the rest of the screen turns green is the one element on
|
|
7
|
+
* the page that visibly does not belong to it.
|
|
8
|
+
*
|
|
9
|
+
* So the style is assembled here instead. Tiles still come from the vector
|
|
10
|
+
* source — that is the part worth paying someone for — but every colour in
|
|
11
|
+
* the style is a token the caller's theme already resolved, which means a new
|
|
12
|
+
* theme gets a matching basemap without anyone drawing one.
|
|
13
|
+
*
|
|
14
|
+
* The layer list is deliberately short. A full street style runs to ninety-odd
|
|
15
|
+
* layers separating tunnel casings from bridge casings at eleven zoom stops;
|
|
16
|
+
* almost none of that survives being recoloured down to five greys, and every
|
|
17
|
+
* layer is another thing to keep in step with the tokens. What is here is the
|
|
18
|
+
* set that still reads as a map at any zoom: ground, water, green space,
|
|
19
|
+
* buildings, roads, boundaries, and the labels that make them findable.
|
|
20
|
+
*/
|
|
21
|
+
import type { StyleSpecification } from './maplibre.js';
|
|
22
|
+
/** Resolved theme colours the style is built from. */
|
|
23
|
+
export interface BasemapTokens {
|
|
24
|
+
/** Ground — everything that is not something else. */
|
|
25
|
+
background: string;
|
|
26
|
+
/** Water bodies and rivers. */
|
|
27
|
+
water: string;
|
|
28
|
+
/** Parks, forest, and other green space. */
|
|
29
|
+
land: string;
|
|
30
|
+
/** Building footprints. */
|
|
31
|
+
building: string;
|
|
32
|
+
/** Roads, boundaries and other lines. */
|
|
33
|
+
line: string;
|
|
34
|
+
/** Label text. */
|
|
35
|
+
label: string;
|
|
36
|
+
/** Halo behind label text, so it stays legible over any fill. */
|
|
37
|
+
labelHalo: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Vector tiles and the glyphs to label them with.
|
|
41
|
+
*
|
|
42
|
+
* Swappable because the tiles are the one part of the style that is somebody
|
|
43
|
+
* else's to license. The defaults follow the OpenMapTiles schema, so any
|
|
44
|
+
* source using it can be dropped in without touching the layers below.
|
|
45
|
+
*/
|
|
46
|
+
export interface BasemapSource {
|
|
47
|
+
/** TileJSON URL for the vector source. */
|
|
48
|
+
url: string;
|
|
49
|
+
/** Glyph endpoint, `{fontstack}` and `{range}` templated. */
|
|
50
|
+
glyphs: string;
|
|
51
|
+
/** Font stack for labels. Needs to exist at the glyph endpoint. */
|
|
52
|
+
fonts: string[];
|
|
53
|
+
/** Shown in the attribution control. Check your provider's terms. */
|
|
54
|
+
attribution?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* CARTO's street tiles.
|
|
58
|
+
*
|
|
59
|
+
* Free for non-commercial use; commercial use needs a licence from them. Pass
|
|
60
|
+
* your own `BasemapSource` to use a different provider — the layers below only
|
|
61
|
+
* assume the OpenMapTiles schema, which most vector providers serve.
|
|
62
|
+
*/
|
|
63
|
+
export declare const CARTO_SOURCE: BasemapSource;
|
|
64
|
+
/**
|
|
65
|
+
* Builds a complete MapLibre style from resolved theme colours.
|
|
66
|
+
*
|
|
67
|
+
* `blank` drops the tile source and every layer that reads from it, leaving
|
|
68
|
+
* just the ground colour — a canvas for data that supplies its own geography,
|
|
69
|
+
* such as a choropleth or an arc diagram, where street detail underneath is
|
|
70
|
+
* noise rather than context.
|
|
71
|
+
*/
|
|
72
|
+
export declare function buildBasemapStyle(tokens: BasemapTokens, options?: {
|
|
73
|
+
blank?: boolean;
|
|
74
|
+
source?: BasemapSource;
|
|
75
|
+
}): StyleSpecification;
|
|
76
|
+
//# sourceMappingURL=basemap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basemap.d.ts","sourceRoot":"","sources":["../../../../../src/components/map/basemap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAY,CAAC;AAErD,sDAAsD;AACtD,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,0CAA0C;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,aAK1B,CAAC;AAsBF;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,aAAa,EACrB,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,aAAa,CAAA;CAAO,GACxD,kBAAkB,CAwMpB"}
|