panelui-native 0.44.0 → 0.49.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.
Files changed (108) hide show
  1. package/README.md +6 -1
  2. package/lib/module/components/accordion/index.js +32 -4
  3. package/lib/module/components/accordion/index.js.map +1 -1
  4. package/lib/module/components/button/index.js +83 -15
  5. package/lib/module/components/button/index.js.map +1 -1
  6. package/lib/module/components/button-group/index.js +186 -0
  7. package/lib/module/components/button-group/index.js.map +1 -0
  8. package/lib/module/components/color-picker/index.js +110 -1
  9. package/lib/module/components/color-picker/index.js.map +1 -1
  10. package/lib/module/components/combobox/index.js +7 -1
  11. package/lib/module/components/combobox/index.js.map +1 -1
  12. package/lib/module/components/date-time-picker/index.js +272 -0
  13. package/lib/module/components/date-time-picker/index.js.map +1 -0
  14. package/lib/module/components/fab/index.js +514 -0
  15. package/lib/module/components/fab/index.js.map +1 -0
  16. package/lib/module/components/grid-item/index.js +486 -0
  17. package/lib/module/components/grid-item/index.js.map +1 -0
  18. package/lib/module/components/{kpi-chart → kpi}/index.js +62 -62
  19. package/lib/module/components/kpi/index.js.map +1 -0
  20. package/lib/module/components/line-chart/index.js +92 -10
  21. package/lib/module/components/line-chart/index.js.map +1 -1
  22. package/lib/module/components/markdown-editor/index.js +406 -0
  23. package/lib/module/components/markdown-editor/index.js.map +1 -0
  24. package/lib/module/components/markdown-editor/markdown-transforms.js +243 -0
  25. package/lib/module/components/markdown-editor/markdown-transforms.js.map +1 -0
  26. package/lib/module/components/pie-chart/index.js +625 -0
  27. package/lib/module/components/pie-chart/index.js.map +1 -0
  28. package/lib/module/components/questionnaire/index.js +1312 -0
  29. package/lib/module/components/questionnaire/index.js.map +1 -0
  30. package/lib/module/components/scatter-chart/index.js +1173 -0
  31. package/lib/module/components/scatter-chart/index.js.map +1 -0
  32. package/lib/module/components/tabs/index.js +359 -41
  33. package/lib/module/components/tabs/index.js.map +1 -1
  34. package/lib/module/components/time-picker/index.js +34 -6
  35. package/lib/module/components/time-picker/index.js.map +1 -1
  36. package/lib/module/components/tree/index.js +500 -0
  37. package/lib/module/components/tree/index.js.map +1 -0
  38. package/lib/module/icons/index.js +217 -0
  39. package/lib/module/icons/index.js.map +1 -1
  40. package/lib/module/index.js +11 -2
  41. package/lib/module/index.js.map +1 -1
  42. package/lib/module/utils/chart.js +81 -0
  43. package/lib/module/utils/chart.js.map +1 -1
  44. package/lib/typescript/src/components/accordion/index.d.ts +21 -0
  45. package/lib/typescript/src/components/accordion/index.d.ts.map +1 -1
  46. package/lib/typescript/src/components/button/index.d.ts +21 -0
  47. package/lib/typescript/src/components/button/index.d.ts.map +1 -1
  48. package/lib/typescript/src/components/button-group/index.d.ts +212 -0
  49. package/lib/typescript/src/components/button-group/index.d.ts.map +1 -0
  50. package/lib/typescript/src/components/color-picker/index.d.ts +82 -1
  51. package/lib/typescript/src/components/color-picker/index.d.ts.map +1 -1
  52. package/lib/typescript/src/components/combobox/index.d.ts.map +1 -1
  53. package/lib/typescript/src/components/date-time-picker/index.d.ts +127 -0
  54. package/lib/typescript/src/components/date-time-picker/index.d.ts.map +1 -0
  55. package/lib/typescript/src/components/fab/index.d.ts +285 -0
  56. package/lib/typescript/src/components/fab/index.d.ts.map +1 -0
  57. package/lib/typescript/src/components/grid-item/index.d.ts +292 -0
  58. package/lib/typescript/src/components/grid-item/index.d.ts.map +1 -0
  59. package/lib/typescript/src/components/{kpi-chart → kpi}/index.d.ts +65 -65
  60. package/lib/typescript/src/components/kpi/index.d.ts.map +1 -0
  61. package/lib/typescript/src/components/line-chart/index.d.ts +25 -1
  62. package/lib/typescript/src/components/line-chart/index.d.ts.map +1 -1
  63. package/lib/typescript/src/components/markdown-editor/index.d.ts +102 -0
  64. package/lib/typescript/src/components/markdown-editor/index.d.ts.map +1 -0
  65. package/lib/typescript/src/components/markdown-editor/markdown-transforms.d.ts +76 -0
  66. package/lib/typescript/src/components/markdown-editor/markdown-transforms.d.ts.map +1 -0
  67. package/lib/typescript/src/components/pie-chart/index.d.ts +245 -0
  68. package/lib/typescript/src/components/pie-chart/index.d.ts.map +1 -0
  69. package/lib/typescript/src/components/questionnaire/index.d.ts +336 -0
  70. package/lib/typescript/src/components/questionnaire/index.d.ts.map +1 -0
  71. package/lib/typescript/src/components/scatter-chart/index.d.ts +309 -0
  72. package/lib/typescript/src/components/scatter-chart/index.d.ts.map +1 -0
  73. package/lib/typescript/src/components/tabs/index.d.ts +29 -2
  74. package/lib/typescript/src/components/tabs/index.d.ts.map +1 -1
  75. package/lib/typescript/src/components/time-picker/index.d.ts +19 -1
  76. package/lib/typescript/src/components/time-picker/index.d.ts.map +1 -1
  77. package/lib/typescript/src/components/tree/index.d.ts +125 -0
  78. package/lib/typescript/src/components/tree/index.d.ts.map +1 -0
  79. package/lib/typescript/src/icons/index.d.ts +22 -0
  80. package/lib/typescript/src/icons/index.d.ts.map +1 -1
  81. package/lib/typescript/src/index.d.ts +14 -5
  82. package/lib/typescript/src/index.d.ts.map +1 -1
  83. package/lib/typescript/src/utils/chart.d.ts +34 -0
  84. package/lib/typescript/src/utils/chart.d.ts.map +1 -1
  85. package/package.json +1 -1
  86. package/src/components/accordion/index.tsx +48 -6
  87. package/src/components/button/index.tsx +97 -15
  88. package/src/components/button-group/index.tsx +199 -0
  89. package/src/components/color-picker/index.tsx +140 -3
  90. package/src/components/combobox/index.tsx +7 -1
  91. package/src/components/date-time-picker/index.tsx +411 -0
  92. package/src/components/fab/index.tsx +583 -0
  93. package/src/components/grid-item/index.tsx +515 -0
  94. package/src/components/{kpi-chart → kpi}/index.tsx +85 -85
  95. package/src/components/line-chart/index.tsx +98 -8
  96. package/src/components/markdown-editor/index.tsx +526 -0
  97. package/src/components/markdown-editor/markdown-transforms.ts +228 -0
  98. package/src/components/pie-chart/index.tsx +863 -0
  99. package/src/components/questionnaire/index.tsx +1615 -0
  100. package/src/components/scatter-chart/index.tsx +1401 -0
  101. package/src/components/tabs/index.tsx +392 -50
  102. package/src/components/time-picker/index.tsx +42 -6
  103. package/src/components/tree/index.tsx +564 -0
  104. package/src/icons/index.tsx +154 -0
  105. package/src/index.ts +142 -18
  106. package/src/utils/chart.ts +110 -0
  107. package/lib/module/components/kpi-chart/index.js.map +0 -1
  108. package/lib/typescript/src/components/kpi-chart/index.d.ts.map +0 -1
@@ -665,6 +665,160 @@ export function FileIcon({ size = 16, color, ...props }: IconProps) {
665
665
  );
666
666
  }
667
667
 
668
+ /* ------------------------------------------------------------------ *
669
+ * Text formatting. Drawn as the letterforms and marks an editor's
670
+ * toolbar uses, rather than as pictures of them — a B that is a bold B
671
+ * is read before it is recognised.
672
+ * ------------------------------------------------------------------ */
673
+
674
+ /** Bold — the two-bowled B. */
675
+ export function BoldIcon({ size = 16, color, ...props }: IconProps) {
676
+ const resolved = useResolvedColor(color, '#737373');
677
+ return (
678
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none" {...props}>
679
+ <Path
680
+ d="M6 4h8a4 4 0 0 1 0 8H6zM6 12h9a4 4 0 0 1 0 8H6z"
681
+ stroke={resolved}
682
+ strokeWidth={2}
683
+ strokeLinecap="round"
684
+ strokeLinejoin="round"
685
+ />
686
+ </Svg>
687
+ );
688
+ }
689
+
690
+ /** Italic — a slanted stroke between its serifs. */
691
+ export function ItalicIcon({ size = 16, color, ...props }: IconProps) {
692
+ const resolved = useResolvedColor(color, '#737373');
693
+ return (
694
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none" {...props}>
695
+ <Path
696
+ d="M19 4h-9M14 20H5M15 4 9 20"
697
+ stroke={resolved}
698
+ strokeWidth={2}
699
+ strokeLinecap="round"
700
+ strokeLinejoin="round"
701
+ />
702
+ </Svg>
703
+ );
704
+ }
705
+
706
+ /** Heading — the crossbar H. */
707
+ export function HeadingIcon({ size = 16, color, ...props }: IconProps) {
708
+ const resolved = useResolvedColor(color, '#737373');
709
+ return (
710
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none" {...props}>
711
+ <Path
712
+ d="M6 12h12M6 20V4M18 20V4"
713
+ stroke={resolved}
714
+ strokeWidth={2}
715
+ strokeLinecap="round"
716
+ strokeLinejoin="round"
717
+ />
718
+ </Svg>
719
+ );
720
+ }
721
+
722
+ /** Bulleted list — three rules, each behind a dot. */
723
+ export function ListIcon({ size = 16, color, ...props }: IconProps) {
724
+ const resolved = useResolvedColor(color, '#737373');
725
+ return (
726
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none" {...props}>
727
+ <Path
728
+ d="M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"
729
+ stroke={resolved}
730
+ strokeWidth={2}
731
+ strokeLinecap="round"
732
+ strokeLinejoin="round"
733
+ />
734
+ </Svg>
735
+ );
736
+ }
737
+
738
+ /** Numbered list — the same rules, counted. */
739
+ export function ListOrderedIcon({ size = 16, color, ...props }: IconProps) {
740
+ const resolved = useResolvedColor(color, '#737373');
741
+ return (
742
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none" {...props}>
743
+ <Path
744
+ d="M10 6h11M10 12h11M10 18h11M4 4h1v4M4 8h2M6 15a1.5 1.5 0 1 0-2-1.4M4 17l2-2M4 17h2"
745
+ stroke={resolved}
746
+ strokeWidth={2}
747
+ strokeLinecap="round"
748
+ strokeLinejoin="round"
749
+ />
750
+ </Svg>
751
+ );
752
+ }
753
+
754
+ /** Block quote — the rule a quoted passage is set behind. */
755
+ export function QuoteIcon({ size = 16, color, ...props }: IconProps) {
756
+ const resolved = useResolvedColor(color, '#737373');
757
+ return (
758
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none" {...props}>
759
+ <Path
760
+ d="M4 5v14M9 7h11M9 12h11M9 17h7"
761
+ stroke={resolved}
762
+ strokeWidth={2}
763
+ strokeLinecap="round"
764
+ strokeLinejoin="round"
765
+ />
766
+ </Svg>
767
+ );
768
+ }
769
+
770
+ /** Code — the pair of angle brackets. */
771
+ export function CodeIcon({ size = 16, color, ...props }: IconProps) {
772
+ const resolved = useResolvedColor(color, '#737373');
773
+ return (
774
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none" {...props}>
775
+ <Path
776
+ d="m8 18-6-6 6-6M16 6l6 6-6 6"
777
+ stroke={resolved}
778
+ strokeWidth={2}
779
+ strokeLinecap="round"
780
+ strokeLinejoin="round"
781
+ />
782
+ </Svg>
783
+ );
784
+ }
785
+
786
+ /** Closed folder with a tab — a branch nobody has opened yet. */
787
+ export function FolderIcon({ size = 16, color, ...props }: IconProps) {
788
+ const resolved = useResolvedColor(color, '#737373');
789
+ return (
790
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none" {...props}>
791
+ <Path
792
+ d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z"
793
+ stroke={resolved}
794
+ strokeWidth={2}
795
+ strokeLinecap="round"
796
+ strokeLinejoin="round"
797
+ />
798
+ </Svg>
799
+ );
800
+ }
801
+
802
+ /**
803
+ * Folder tipped open, its front face sheared to the side — the same branch
804
+ * once it is expanded. Drawn as a separate glyph rather than a rotation of
805
+ * `FolderIcon`, because a folder that opens by spinning reads as a mistake.
806
+ */
807
+ export function FolderOpenIcon({ size = 16, color, ...props }: IconProps) {
808
+ const resolved = useResolvedColor(color, '#737373');
809
+ return (
810
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none" {...props}>
811
+ <Path
812
+ d="M6 14l1.45-2.9A2 2 0 0 1 9.24 10H22a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2"
813
+ stroke={resolved}
814
+ strokeWidth={2}
815
+ strokeLinecap="round"
816
+ strokeLinejoin="round"
817
+ />
818
+ </Svg>
819
+ );
820
+ }
821
+
668
822
  /** Framed picture with a sun and a corner peak — an image attachment. */
669
823
  export function ImageIcon({ size = 16, color, ...props }: IconProps) {
670
824
  const resolved = useResolvedColor(color, '#737373');
package/src/index.ts CHANGED
@@ -124,7 +124,17 @@ export {
124
124
  type BreadcrumbSeparatorProps,
125
125
  type BreadcrumbEllipsisProps,
126
126
  } from './components/breadcrumb';
127
- export { Button, type ButtonProps } from './components/button';
127
+ export {
128
+ Button,
129
+ type ButtonProps,
130
+ type ButtonVariant,
131
+ type ButtonSize,
132
+ } from './components/button';
133
+ export {
134
+ ButtonGroup,
135
+ type ButtonGroupProps,
136
+ type ButtonGroupOrientation,
137
+ } from './components/button-group';
128
138
  export {
129
139
  ToggleButton,
130
140
  ToggleButtonGroup,
@@ -141,6 +151,11 @@ export {
141
151
  type DatePickerProps,
142
152
  type DatePickerMode,
143
153
  } from './components/date-picker';
154
+ export {
155
+ DateTimePicker,
156
+ type DateTimePickerProps,
157
+ type DateTimePickerPresentation,
158
+ } from './components/date-time-picker';
144
159
  export {
145
160
  Dialog,
146
161
  type DialogProps,
@@ -159,6 +174,15 @@ export {
159
174
  type DirectionProps,
160
175
  type DirectionValue,
161
176
  } from './components/direction';
177
+ export {
178
+ Fab,
179
+ type FabProps,
180
+ type FabGroupProps,
181
+ type FabActionProps,
182
+ type FabPlacement,
183
+ type FabSize,
184
+ type FabVariant,
185
+ } from './components/fab';
162
186
  export {
163
187
  Flow,
164
188
  type FlowProps,
@@ -191,6 +215,18 @@ export {
191
215
  type FrameActionsProps,
192
216
  type FrameVariant,
193
217
  } from './components/frame';
218
+ export {
219
+ GridItem,
220
+ type GridItemProps,
221
+ type GridItemGroupProps,
222
+ type GridItemBackgroundProps,
223
+ type GridItemMediaProps,
224
+ type GridItemTitleProps,
225
+ type GridItemValueProps,
226
+ type GridItemDescriptionProps,
227
+ type GridItemFooterProps,
228
+ type GridItemActionsProps,
229
+ } from './components/grid-item';
194
230
  export {
195
231
  HeatmapChart,
196
232
  useHeatmapChart,
@@ -322,6 +358,8 @@ export {
322
358
  export {
323
359
  ColorPicker,
324
360
  type ColorPickerProps,
361
+ type ColorPickerTriggerProps,
362
+ type ColorPickerContentProps,
325
363
  type ColorPickerFieldProps,
326
364
  type ColorPickerAreaProps,
327
365
  type ColorPickerWheelProps,
@@ -333,6 +371,7 @@ export {
333
371
  type ColorPickerPreviewProps,
334
372
  type ColorPickerSwatchesProps,
335
373
  type ColorPickerSize,
374
+ type ColorPickerPresentation,
336
375
  } from './components/color-picker';
337
376
  export {
338
377
  Combobox,
@@ -437,6 +476,19 @@ export {
437
476
  type PaginationSize,
438
477
  type PaginationItemValue,
439
478
  } from './components/pagination';
479
+ export {
480
+ PieChart,
481
+ usePieChart,
482
+ type PieChartProps,
483
+ type PieChartHandle,
484
+ type PieChartHeaderProps,
485
+ type PieChartSlicesProps,
486
+ type PieChartCenterProps,
487
+ type PieChartLegendProps,
488
+ type PieChartSkeletonProps,
489
+ type PieChartStatus,
490
+ type PieDatum,
491
+ } from './components/pie-chart';
440
492
  export { Textarea, type TextareaProps } from './components/textarea';
441
493
  export {
442
494
  Item,
@@ -452,25 +504,25 @@ export {
452
504
  type ItemFooterProps,
453
505
  } from './components/item';
454
506
  export {
455
- KpiChart,
456
- type KpiChartProps,
457
- type KpiChartHeaderProps,
458
- type KpiChartIconProps,
459
- type KpiChartTitleProps,
460
- type KpiChartStatProps,
461
- type KpiChartActionsProps,
462
- type KpiChartContentProps,
463
- type KpiChartValueProps,
464
- type KpiChartTrendProps,
465
- type KpiChartSparklineProps,
466
- type KpiChartProgressProps,
467
- type KpiChartFooterProps,
468
- type KpiChartSeparatorProps,
469
- type KpiChartGroupProps,
470
- type KpiChartGroupOrientation,
507
+ Kpi,
508
+ type KpiProps,
509
+ type KpiHeaderProps,
510
+ type KpiIconProps,
511
+ type KpiTitleProps,
512
+ type KpiStatProps,
513
+ type KpiActionsProps,
514
+ type KpiContentProps,
515
+ type KpiValueProps,
516
+ type KpiTrendProps,
517
+ type KpiSparklineProps,
518
+ type KpiProgressProps,
519
+ type KpiFooterProps,
520
+ type KpiSeparatorProps,
521
+ type KpiGroupProps,
522
+ type KpiGroupOrientation,
471
523
  type KpiGoodDirection,
472
524
  type KpiTone,
473
- } from './components/kpi-chart';
525
+ } from './components/kpi';
474
526
  export { Label, type LabelProps, type LabelTextProps } from './components/label';
475
527
  export {
476
528
  LineChart,
@@ -483,6 +535,7 @@ export {
483
535
  type LineChartAreaProps,
484
536
  type LineChartSkeletonProps,
485
537
  type LineChartXAxisProps,
538
+ type LineChartYAxisProps,
486
539
  type LineChartTooltipProps,
487
540
  type LineChartLegendProps,
488
541
  type LineChartDatum,
@@ -495,6 +548,17 @@ export {
495
548
  type LoaderVariant,
496
549
  type LoaderSize,
497
550
  } from './components/loader';
551
+ export {
552
+ MarkdownEditor,
553
+ type MarkdownEditorProps,
554
+ type MarkdownEditorToolbarProps,
555
+ type MarkdownEditorInputProps,
556
+ type MarkdownEditorPreviewProps,
557
+ type MarkdownEditorMode,
558
+ type MarkdownEditorAction,
559
+ type EditorSelection,
560
+ type EditResult,
561
+ } from './components/markdown-editor';
498
562
  export {
499
563
  Marker,
500
564
  type MarkerProps,
@@ -569,6 +633,28 @@ export {
569
633
  type PostVote,
570
634
  } from './components/post';
571
635
  export { Progress, type ProgressProps } from './components/progress';
636
+ export {
637
+ Questionnaire,
638
+ type QuestionnaireProps,
639
+ type QuestionnaireTitleProps,
640
+ type QuestionnaireProgressProps,
641
+ type QuestionnaireProgressState,
642
+ type QuestionnaireProgressVariant,
643
+ type QuestionnaireItemProps,
644
+ type QuestionnaireQuestionProps,
645
+ type QuestionnaireDescriptionProps,
646
+ type QuestionnaireChoicesProps,
647
+ type QuestionnaireChoiceProps,
648
+ type QuestionnaireInputProps,
649
+ type QuestionnaireErrorProps,
650
+ type QuestionnaireFooterProps,
651
+ type QuestionnaireActionProps,
652
+ type QuestionnaireActionState,
653
+ type QuestionnaireAnswers,
654
+ type QuestionnaireItemDefinition,
655
+ type QuestionnaireItemStatus,
656
+ type QuestionnaireShortcutMode,
657
+ } from './components/questionnaire';
572
658
  export {
573
659
  RadioGroup,
574
660
  type RadioGroupProps,
@@ -590,6 +676,23 @@ export {
590
676
  type RingChartLegendProps,
591
677
  type RingDatum,
592
678
  } from './components/ring-chart';
679
+ export {
680
+ ScatterChart,
681
+ useScatterChart,
682
+ type ScatterChartProps,
683
+ type ScatterChartHandle,
684
+ type ScatterChartHeaderProps,
685
+ type ScatterChartGridProps,
686
+ type ScatterChartPointsProps,
687
+ type ScatterChartSkeletonProps,
688
+ type ScatterChartXAxisProps,
689
+ type ScatterChartYAxisProps,
690
+ type ScatterChartTooltipProps,
691
+ type ScatterChartLegendProps,
692
+ type ScatterChartDatum,
693
+ type ScatterChartPoint,
694
+ type ScatterChartStatus,
695
+ } from './components/scatter-chart';
593
696
  export {
594
697
  ScrollFade,
595
698
  type ScrollFadeProps,
@@ -744,6 +847,18 @@ export {
744
847
  type ToastIndicatorProps,
745
848
  type ToastCloseProps,
746
849
  } from './components/toast';
850
+ export {
851
+ Tree,
852
+ type TreeProps,
853
+ type TreeItemProps,
854
+ type TreeTriggerProps,
855
+ type TreeIndicatorProps,
856
+ type TreeIconProps,
857
+ type TreeActionsProps,
858
+ type TreeGroupProps,
859
+ type TreeSize,
860
+ type TreeSelectionMode,
861
+ } from './components/tree';
747
862
  export {
748
863
  Tooltip,
749
864
  type TooltipProps,
@@ -776,6 +891,7 @@ export {
776
891
  BadgeCheckIcon,
777
892
  BellIcon,
778
893
  BookmarkIcon,
894
+ BoldIcon,
779
895
  CalendarIcon,
780
896
  CardIcon,
781
897
  CheckCircleIcon,
@@ -785,6 +901,7 @@ export {
785
901
  ChevronRightIcon,
786
902
  ChevronUpIcon,
787
903
  CircleIcon,
904
+ CodeIcon,
788
905
  ClockIcon,
789
906
  CompassIcon,
790
907
  CopyIcon,
@@ -794,14 +911,20 @@ export {
794
911
  EyeIcon,
795
912
  FacebookIcon,
796
913
  FileIcon,
914
+ FolderIcon,
915
+ FolderOpenIcon,
797
916
  GoogleIcon,
798
917
  HeartIcon,
918
+ HeadingIcon,
799
919
  IconColorProvider,
800
920
  InfoIcon,
921
+ ItalicIcon,
801
922
  ImageIcon,
802
923
  KeyboardIcon,
803
924
  LinkIcon,
925
+ ListIcon,
804
926
  ListChecksIcon,
927
+ ListOrderedIcon,
805
928
  LockIcon,
806
929
  MaximizeIcon,
807
930
  MenuIcon,
@@ -816,6 +939,7 @@ export {
816
939
  PlayIcon,
817
940
  PlusIcon,
818
941
  PlusSquareIcon,
942
+ QuoteIcon,
819
943
  ReceiptIcon,
820
944
  RepeatIcon,
821
945
  RotateCcwIcon,
@@ -66,6 +66,24 @@ export function yOf(value: number, plot: Plot, min: number, max: number): number
66
66
  return plot.top + plot.height - ((value - min) / span) * plot.height;
67
67
  }
68
68
 
69
+ /**
70
+ * A value's x on a *measured* axis, with `min` at the left edge and `max` at
71
+ * the right.
72
+ *
73
+ * The counterpart to `xOf`, and not a replacement for it. `xOf` spreads points
74
+ * evenly by position, which is what a time series wants — twelve months are
75
+ * twelve equal steps whatever the gaps between the dates behind them. This one
76
+ * places a point at the value it holds, which is what a scatter plot needs: the
77
+ * whole claim of a scatter plot is that both coordinates are quantities, and
78
+ * spacing its points evenly would throw away the one axis the reader is being
79
+ * asked to look for a relationship along.
80
+ */
81
+ export function xAt(value: number, plot: Plot, min: number, max: number): number {
82
+ 'worklet';
83
+ const span = max - min || 1;
84
+ return plot.left + ((value - min) / span) * plot.width;
85
+ }
86
+
69
87
  /** The centre of the `index`th of `total` bands, as used for bars and columns. */
70
88
  export function bandOf(index: number, total: number, plot: Plot): number {
71
89
  'worklet';
@@ -342,6 +360,98 @@ export function arcPath(
342
360
  return `M${x1},${y1}A${radius},${radius} 0 ${sweep > 0.5 ? 1 : 0} 1 ${x2},${y2}`;
343
361
  }
344
362
 
363
+ /**
364
+ * A filled slice of an annulus, as a path.
365
+ *
366
+ * `arcPath` above cannot express this: it draws a line to be stroked, and a
367
+ * stroke is a band of even thickness with no ends of its own. A slice is a
368
+ * region — bounded by two arcs and two radial edges — and only a closed path
369
+ * can be filled as one.
370
+ *
371
+ * `inner` of zero gives the pie's wedge, closing on the centre rather than on a
372
+ * second arc. Anything above it gives the donut's, and the two are worth being
373
+ * one function: a donut is not a pie with a circle painted over the middle,
374
+ * because a slice pushed out of a donut has to be hollow along its whole length.
375
+ *
376
+ * `corner` rounds the four turns of a slice, and rounds them with a quadratic
377
+ * through the sharp corner rather than with a true fillet arc. The two are
378
+ * indistinguishable at the radii a slice is drawn at, and the quadratic cannot
379
+ * degenerate at a narrow slice the way solving for tangent points does — which
380
+ * matters here, because the narrow slices are exactly the ones a reader is
381
+ * least able to check.
382
+ */
383
+ export function wedgePath(
384
+ cx: number,
385
+ cy: number,
386
+ outer: number,
387
+ inner: number,
388
+ from: number,
389
+ to: number,
390
+ corner: number
391
+ ): string {
392
+ 'worklet';
393
+ const sweep = to - from;
394
+ if (outer <= 0 || sweep <= 0) return '';
395
+
396
+ const at = (turn: number, radius: number) => {
397
+ const angle = (turn - 0.25) * Math.PI * 2;
398
+ return `${cx + radius * Math.cos(angle)},${cy + radius * Math.sin(angle)}`;
399
+ };
400
+
401
+ const ring = Math.max(0, Math.min(inner, outer));
402
+
403
+ /*
404
+ * A full turn cannot be drawn as one arc — its start and end are the same
405
+ * point, and the renderer draws nothing rather than everything. Two halves
406
+ * can, and the hole in a full donut comes from tracing the inner circle the
407
+ * other way round: under the nonzero fill rule an opposed subpath is a hole,
408
+ * with no fill rule to set and no second element to keep in step.
409
+ */
410
+ if (sweep >= 1) {
411
+ const disc =
412
+ `M${at(0, outer)}A${outer},${outer} 0 1 1 ${at(0.5, outer)}` +
413
+ `A${outer},${outer} 0 1 1 ${at(0, outer)}Z`;
414
+ if (ring <= 0) return disc;
415
+ return (
416
+ `${disc}M${at(0, ring)}A${ring},${ring} 0 1 0 ${at(0.5, ring)}` +
417
+ `A${ring},${ring} 0 1 0 ${at(0, ring)}Z`
418
+ );
419
+ }
420
+
421
+ // Never more than half the slice from each end, or the two roundings meet in
422
+ // the middle and cross; never more than half the band, or the outer rounding
423
+ // reaches past the inner edge.
424
+ const band = ring > 0 ? outer - ring : outer;
425
+ const k = Math.max(0, Math.min(corner, band / 2, sweep * outer * Math.PI));
426
+ const outerInset = Math.min(k / (outer * Math.PI * 2), sweep / 2);
427
+ const innerInset = ring > 0 ? Math.min(k / (ring * Math.PI * 2), sweep / 2) : 0;
428
+ const large = sweep - 2 * outerInset > 0.5 ? 1 : 0;
429
+
430
+ const outerStart = from + outerInset;
431
+ const outerEnd = to - outerInset;
432
+
433
+ if (ring <= 0) {
434
+ // A wedge closes on the centre, and its apex stays sharp: rounding a point
435
+ // that three slices share opens a hole in the middle of the chart.
436
+ return (
437
+ `M${cx},${cy}L${at(from, outer - k)}Q${at(from, outer)} ${at(outerStart, outer)}` +
438
+ `A${outer},${outer} 0 ${large} 1 ${at(outerEnd, outer)}` +
439
+ `Q${at(to, outer)} ${at(to, outer - k)}Z`
440
+ );
441
+ }
442
+
443
+ return (
444
+ `M${at(outerStart, outer)}A${outer},${outer} 0 ${large} 1 ${at(outerEnd, outer)}` +
445
+ `Q${at(to, outer)} ${at(to, outer - k)}` +
446
+ `L${at(to, ring + k)}` +
447
+ `Q${at(to, ring)} ${at(to - innerInset, ring)}` +
448
+ `A${ring},${ring} 0 ${large} 0 ${at(from + innerInset, ring)}` +
449
+ `Q${at(from, ring)} ${at(from, ring + k)}` +
450
+ `L${at(from, outer - k)}` +
451
+ `Q${at(from, outer)} ${at(outerStart, outer)}Z`
452
+ );
453
+ }
454
+
345
455
  /**
346
456
  * A point at `radius` from the centre, `turn` of the way round.
347
457
  *
@@ -1 +0,0 @@
1
- {"version":3,"names":["createContext","forwardRef","useContext","useMemo","View","ArrowDown","ArrowUp","Minus","tv","useCSSVariable","Text","cn","LineChart","Progress","Surface","jsx","_jsx","jsxs","_jsxs","CHART_HEIGHT","INLINE_CHART_WIDTH","INLINE_CHART_HEIGHT","INLINE_ASPECT","TREND_ICON","TREND_STROKE","kpiVariants","slots","root","header","icon","title","content","value","stat","trend","trendLabel","footer","separator","group","groupSeparator","variants","tone","good","bad","flat","neutral","trendVariant","text","badge","layout","below","inline","compoundVariants","class","defaultVariants","KpiChartContext","KpiHeaderContext","KpiStatContext","useKpiChart","part","context","Error","KpiChartRoot","className","colorIndex","goodDirection","surface","children","props","ref","body","undefined","Provider","variant","padding","KpiChartHeader","KpiChartIcon","KpiChartTitle","inHeader","numberOfLines","KpiChartStat","KpiChartActions","KpiChartContent","KpiChartValue","KpiChartTrend","format","caption","threshold","polarity","Math","abs","rising","inStat","goodTint","badTint","mutedTint","raw","tint","Arrow","label","toFixed","accessible","accessibilityLabel","size","strokeWidth","color","KpiChartSparkline","data","dataKey","filled","height","index","fill","style","width","compact","aspectRatio","Area","Line","KpiChartProgressBar","maxValue","showValueLabel","KpiChartFooter","KpiChartSeparator","KpiChartGroup","orientation","separated","horizontal","items","Array","isArray","visible","filter","Boolean","map","child","length","accessibilityElementsHidden","importantForAccessibility","displayName","KpiChart","Object","assign","Header","Icon","Title","Stat","Actions","Content","Value","Trend","Chart","Footer","Separator","Group"],"sourceRoot":"../../../../src","sources":["components/kpi-chart/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,EAAEC,UAAU,EAAEC,UAAU,EAAEC,OAAO,QAAwB,OAAO;AACtF,SAASC,IAAI,QAAwB,cAAc;AACnD,SAASC,SAAS,EAAEC,OAAO,EAAEC,KAAK,QAAQ,qBAAqB;AAC/D,SAASC,EAAE,QAA2B,mBAAmB;AACzD,SAASC,cAAc,QAAQ,SAAS;AACxC,SAASC,IAAI,QAAQ,0BAAuB;AAC5C,SAASC,EAAE,QAAQ,mBAAgB;AAEnC,SAASC,SAAS,QAA6B,wBAAe;AAC9D,SAAS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CAAC,CAAC;AAEFjD,YAAY,CAAC6E,WAAW,GAAG,UAAU;AACrChE,cAAc,CAACgE,WAAW,GAAG,iBAAiB;AAC9C/D,YAAY,CAAC+D,WAAW,GAAG,eAAe;AAC1C9D,aAAa,CAAC8D,WAAW,GAAG,gBAAgB;AAC5C3D,YAAY,CAAC2D,WAAW,GAAG,eAAe;AAC1C1D,eAAe,CAAC0D,WAAW,GAAG,kBAAkB;AAChDzD,eAAe,CAACyD,WAAW,GAAG,kBAAkB;AAChDxD,aAAa,CAACwD,WAAW,GAAG,gBAAgB;AAC5CvD,aAAa,CAACuD,WAAW,GAAG,gBAAgB;AAC5CjC,iBAAiB,CAACiC,WAAW,GAAG,gBAAgB;AAChDpB,mBAAmB,CAACoB,WAAW,GAAG,mBAAmB;AACrDjB,cAAc,CAACiB,WAAW,GAAG,iBAAiB;AAC9ChB,iBAAiB,CAACgB,WAAW,GAAG,oBAAoB;AACpDf,aAAa,CAACe,WAAW,GAAG,gBAAgB;AAE5C,OAAO,MAAMC,QAAQ,GAAGC,MAAM,CAACC,MAAM,CAAChF,YAAY,EAAE;EAClDiF,MAAM,EAAEpE,cAAc;EACtBqE,IAAI,EAAEpE,YAAY;EAClBqE,KAAK,EAAEpE,aAAa;EACpBqE,IAAI,EAAElE,YAAY;EAClBmE,OAAO,EAAElE,eAAe;EACxBmE,OAAO,EAAElE,eAAe;EACxBmE,KAAK,EAAElE,aAAa;EACpBmE,KAAK,EAAElE,aAAa;EACpBmE,KAAK,EAAE7C,iBAAiB;EACxB7F,QAAQ,EAAE0G,mBAAmB;EAC7BiC,MAAM,EAAE9B,cAAc;EACtB+B,SAAS,EAAE9B,iBAAiB;EAC5B+B,KAAK,EAAE9B;AACT,CAAC,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/kpi-chart/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAC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