panelui-native 0.62.0 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/module/components/area-chart/index.js +14 -4
- package/lib/module/components/area-chart/index.js.map +1 -1
- package/lib/module/components/bar-chart/index.js +14 -4
- package/lib/module/components/bar-chart/index.js.map +1 -1
- package/lib/module/components/candlestick-chart/index.js +14 -4
- package/lib/module/components/candlestick-chart/index.js.map +1 -1
- package/lib/module/components/card/index.js +26 -1
- package/lib/module/components/card/index.js.map +1 -1
- package/lib/module/components/dialog/index.js +49 -3
- package/lib/module/components/dialog/index.js.map +1 -1
- package/lib/module/components/hex-chart/index.js +2 -2
- package/lib/module/components/hex-chart/index.js.map +1 -1
- package/lib/module/components/line-chart/index.js +14 -4
- package/lib/module/components/line-chart/index.js.map +1 -1
- package/lib/module/components/pie-chart/index.js +2 -2
- package/lib/module/components/pie-chart/index.js.map +1 -1
- package/lib/module/components/plot/index.js +1329 -0
- package/lib/module/components/plot/index.js.map +1 -0
- package/lib/module/components/polar-area-chart/index.js +2 -2
- package/lib/module/components/polar-area-chart/index.js.map +1 -1
- package/lib/module/components/radar-chart/index.js +14 -4
- package/lib/module/components/radar-chart/index.js.map +1 -1
- package/lib/module/components/ring-chart/index.js +2 -2
- package/lib/module/components/ring-chart/index.js.map +1 -1
- package/lib/module/components/section-rail/index.js +120 -15
- package/lib/module/components/section-rail/index.js.map +1 -1
- package/lib/module/components/selection-mode/index.js +129 -18
- package/lib/module/components/selection-mode/index.js.map +1 -1
- package/lib/module/components/sortable/index.js +15 -5
- package/lib/module/components/sortable/index.js.map +1 -1
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/components/area-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/bar-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/candlestick-chart/index.d.ts +6 -3
- package/lib/typescript/src/components/candlestick-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/card/index.d.ts +48 -1
- package/lib/typescript/src/components/card/index.d.ts.map +1 -1
- package/lib/typescript/src/components/dialog/index.d.ts +47 -2
- package/lib/typescript/src/components/dialog/index.d.ts.map +1 -1
- package/lib/typescript/src/components/line-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/plot/index.d.ts +471 -0
- package/lib/typescript/src/components/plot/index.d.ts.map +1 -0
- package/lib/typescript/src/components/radar-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/section-rail/index.d.ts +8 -1
- package/lib/typescript/src/components/section-rail/index.d.ts.map +1 -1
- package/lib/typescript/src/components/selection-mode/index.d.ts +82 -6
- package/lib/typescript/src/components/selection-mode/index.d.ts.map +1 -1
- package/lib/typescript/src/components/sortable/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/area-chart/index.tsx +14 -4
- package/src/components/bar-chart/index.tsx +14 -4
- package/src/components/candlestick-chart/index.tsx +20 -7
- package/src/components/card/index.tsx +32 -7
- package/src/components/dialog/index.tsx +55 -2
- package/src/components/hex-chart/index.tsx +2 -2
- package/src/components/line-chart/index.tsx +14 -4
- package/src/components/pie-chart/index.tsx +2 -2
- package/src/components/plot/index.tsx +1564 -0
- package/src/components/polar-area-chart/index.tsx +2 -2
- package/src/components/radar-chart/index.tsx +14 -4
- package/src/components/ring-chart/index.tsx +2 -2
- package/src/components/section-rail/index.tsx +133 -14
- package/src/components/selection-mode/index.tsx +163 -26
- package/src/components/sortable/index.tsx +15 -5
- package/src/index.ts +46 -0
- package/theme.css +24 -0
package/src/index.ts
CHANGED
|
@@ -591,6 +591,52 @@ export {
|
|
|
591
591
|
type PolarAreaScale,
|
|
592
592
|
type PolarAreaDatum,
|
|
593
593
|
} from './components/polar-area-chart';
|
|
594
|
+
export {
|
|
595
|
+
Plot,
|
|
596
|
+
usePlot,
|
|
597
|
+
usePlotCursor,
|
|
598
|
+
type PlotProps,
|
|
599
|
+
type PlotHandle,
|
|
600
|
+
type PlotGeometry,
|
|
601
|
+
type PlotHeaderProps,
|
|
602
|
+
type PlotLegendProps,
|
|
603
|
+
type PlotGridProps,
|
|
604
|
+
type PlotSeriesProps,
|
|
605
|
+
type PlotLineProps,
|
|
606
|
+
type PlotAreaProps,
|
|
607
|
+
type PlotBarsProps,
|
|
608
|
+
type PlotDotsProps,
|
|
609
|
+
type PlotRuleProps,
|
|
610
|
+
type PlotLayerProps,
|
|
611
|
+
type PlotOverlayProps,
|
|
612
|
+
type PlotXAxisProps,
|
|
613
|
+
type PlotYAxisProps,
|
|
614
|
+
type PlotCursorProps,
|
|
615
|
+
type PlotTooltipProps,
|
|
616
|
+
type PlotDatum,
|
|
617
|
+
type PlotStatus,
|
|
618
|
+
type PlotCurve,
|
|
619
|
+
type PlotScale,
|
|
620
|
+
type PlotBound,
|
|
621
|
+
type PlotBox,
|
|
622
|
+
} from './components/plot';
|
|
623
|
+
/*
|
|
624
|
+
* The scale functions, alongside the component they exist for. Every one is a
|
|
625
|
+
* worklet, which is what lets a mark somebody writes themselves be rebuilt on
|
|
626
|
+
* the UI thread on the same frames `Plot`'s own are.
|
|
627
|
+
*/
|
|
628
|
+
export {
|
|
629
|
+
areaPath,
|
|
630
|
+
bandOf,
|
|
631
|
+
barPath,
|
|
632
|
+
compactNumber,
|
|
633
|
+
linePath,
|
|
634
|
+
segment,
|
|
635
|
+
xAt,
|
|
636
|
+
xOf,
|
|
637
|
+
yOf,
|
|
638
|
+
type ChartPoint,
|
|
639
|
+
} from './components/plot';
|
|
594
640
|
export { Textarea, type TextareaProps } from './components/textarea';
|
|
595
641
|
export {
|
|
596
642
|
TagInput,
|
package/theme.css
CHANGED
|
@@ -56,6 +56,18 @@
|
|
|
56
56
|
*/
|
|
57
57
|
--color-overlay: unset;
|
|
58
58
|
--color-overlay-foreground: unset;
|
|
59
|
+
/*
|
|
60
|
+
* A band set *into* a surface rather than raised off it — the footer of
|
|
61
|
+
* actions under a card or a dialog.
|
|
62
|
+
*
|
|
63
|
+
* A translucent black in every theme, rather than a colour of its own,
|
|
64
|
+
* because it has to come out darker than whatever it is drawn on and that
|
|
65
|
+
* changes: a card, a popover, or a surface the caller passed in. `--color-
|
|
66
|
+
* muted` cannot do this job — it is white in a dark theme, so the band it
|
|
67
|
+
* draws floats forward instead of sinking, which is the opposite of what a
|
|
68
|
+
* footer is saying.
|
|
69
|
+
*/
|
|
70
|
+
--color-inset: unset;
|
|
59
71
|
--color-primary: unset;
|
|
60
72
|
--color-primary-foreground: unset;
|
|
61
73
|
--color-secondary: unset;
|
|
@@ -194,6 +206,8 @@
|
|
|
194
206
|
|
|
195
207
|
--color-overlay: #ffffff;
|
|
196
208
|
--color-overlay-foreground: #262626;
|
|
209
|
+
/* the sunken band under a card or dialog: black at 3.5% */
|
|
210
|
+
--color-inset: rgba(0, 0, 0, 0.035);
|
|
197
211
|
|
|
198
212
|
--color-primary: #262626;
|
|
199
213
|
--color-primary-foreground: #fafafa;
|
|
@@ -289,6 +303,8 @@
|
|
|
289
303
|
/* color-mix(background 92%, white) — one step past the popover */
|
|
290
304
|
--color-overlay: #232323;
|
|
291
305
|
--color-overlay-foreground: #f5f5f5;
|
|
306
|
+
/* the sunken band under a card or dialog: black at 22% */
|
|
307
|
+
--color-inset: rgba(0, 0, 0, 0.22);
|
|
292
308
|
|
|
293
309
|
--color-primary: #f5f5f5;
|
|
294
310
|
--color-primary-foreground: #262626;
|
|
@@ -413,6 +429,8 @@
|
|
|
413
429
|
|
|
414
430
|
--color-overlay: #ffffff;
|
|
415
431
|
--color-overlay-foreground: #08090a;
|
|
432
|
+
/* the sunken band under a card or dialog: black at 3.5% */
|
|
433
|
+
--color-inset: rgba(0, 0, 0, 0.035);
|
|
416
434
|
|
|
417
435
|
--color-primary: #5e6ad2;
|
|
418
436
|
--color-primary-foreground: #ffffff;
|
|
@@ -496,6 +514,8 @@
|
|
|
496
514
|
|
|
497
515
|
--color-overlay: #18191a;
|
|
498
516
|
--color-overlay-foreground: #f7f8f8;
|
|
517
|
+
/* the sunken band under a card or dialog: black at 22% */
|
|
518
|
+
--color-inset: rgba(0, 0, 0, 0.22);
|
|
499
519
|
|
|
500
520
|
--color-primary: #5e6ad2;
|
|
501
521
|
--color-primary-foreground: #ffffff;
|
|
@@ -583,6 +603,8 @@
|
|
|
583
603
|
|
|
584
604
|
--color-overlay: #ffffff;
|
|
585
605
|
--color-overlay-foreground: #171717;
|
|
606
|
+
/* the sunken band under a card or dialog: black at 3.5% */
|
|
607
|
+
--color-inset: rgba(0, 0, 0, 0.035);
|
|
586
608
|
|
|
587
609
|
/* Brand green is too light for white text; light mode uses the
|
|
588
610
|
darker ramp step so the contrast ratio holds. */
|
|
@@ -668,6 +690,8 @@
|
|
|
668
690
|
|
|
669
691
|
--color-overlay: #2a2a2a;
|
|
670
692
|
--color-overlay-foreground: #ededed;
|
|
693
|
+
/* the sunken band under a card or dialog: black at 22% */
|
|
694
|
+
--color-inset: rgba(0, 0, 0, 0.22);
|
|
671
695
|
|
|
672
696
|
--color-primary: #3ecf8e;
|
|
673
697
|
--color-primary-foreground: #052e1b;
|