@rubin-epo/epo-widget-lib 0.10.2 → 0.10.3-beta.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.
Files changed (53) hide show
  1. package/dist/atomic/Blinker/Controls/styles.d.ts +56 -54
  2. package/dist/atomic/Blinker/styles.d.ts +109 -108
  3. package/dist/atomic/ElapsedTime/styles.d.ts +326 -324
  4. package/dist/atomic/LiveRegion/styles.d.ts +56 -54
  5. package/dist/atomic/Loader/styles.d.ts +56 -54
  6. package/dist/atomic/PlaybackControl/styles.d.ts +110 -108
  7. package/dist/atomic/PlotWrapper/styles.d.ts +56 -54
  8. package/dist/charts/Base/styles.d.ts +541 -539
  9. package/dist/charts/Readout/styles.d.ts +110 -108
  10. package/dist/charts/Tooltip/styles.d.ts +109 -108
  11. package/dist/charts/XAxis/index.cjs +1 -1
  12. package/dist/charts/XAxis/index.js +47 -32
  13. package/dist/charts/YAxis/index.cjs +1 -1
  14. package/dist/charts/YAxis/index.js +44 -29
  15. package/dist/charts/hooks/useAxis.cjs +1 -1
  16. package/dist/charts/hooks/useAxis.d.ts +4 -3
  17. package/dist/charts/hooks/useAxis.js +15 -25
  18. package/dist/charts/styles.d.ts +320 -318
  19. package/dist/layout/AspectRatio/styles.d.ts +55 -54
  20. package/dist/layout/Controls/styles.d.ts +379 -378
  21. package/dist/lib/utils.d.ts +2 -2
  22. package/dist/styles/svg.d.ts +56 -54
  23. package/dist/widgets/CameraFilter/styles.d.ts +860 -860
  24. package/dist/widgets/ColorTool/FilterControls/styles.d.ts +222 -221
  25. package/dist/widgets/FilterTool/styles.d.ts +426 -426
  26. package/dist/widgets/LightCurvePlot/Plot/index.cjs +1 -1
  27. package/dist/widgets/LightCurvePlot/Plot/index.js +67 -52
  28. package/dist/widgets/LightCurvePlot/Plot/styles.d.ts +110 -108
  29. package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/styles.d.ts +56 -54
  30. package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.cjs +1 -1
  31. package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.d.ts +1 -1
  32. package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.js +29 -33
  33. package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.cjs +1 -1
  34. package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.js +4 -4
  35. package/dist/widgets/LightCurvePlot/PlotWithCurve/index.cjs +1 -1
  36. package/dist/widgets/LightCurvePlot/PlotWithCurve/index.js +85 -81
  37. package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.d.ts +164 -162
  38. package/dist/widgets/LightCurvePlot/defaults.cjs +1 -1
  39. package/dist/widgets/LightCurvePlot/defaults.d.ts +10 -6
  40. package/dist/widgets/LightCurvePlot/defaults.js +2 -6
  41. package/dist/widgets/LightCurvePlot/helpers.cjs +1 -1
  42. package/dist/widgets/LightCurvePlot/helpers.js +1 -1
  43. package/dist/widgets/SourceSelector/Point/styles.d.ts +55 -53
  44. package/dist/widgets/SourceSelector/SelectionList/styles.d.ts +164 -162
  45. package/dist/widgets/SourceSelector/styles.d.ts +496 -0
  46. package/dist/widgets/SupernovaThreeVector/Histogram/index.cjs +1 -1
  47. package/dist/widgets/SupernovaThreeVector/Histogram/index.js +8 -8
  48. package/dist/widgets/SupernovaThreeVector/Histogram/styles.d.ts +55 -53
  49. package/dist/widgets/SupernovaThreeVector/Skymap/styles.d.ts +373 -371
  50. package/package.json +4 -4
  51. package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/styles.cjs +0 -5
  52. package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/styles.d.ts +0 -272
  53. package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/styles.js +0 -10
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="react" />
1
3
  export declare const DisplayContainer: import('styled-components').IStyledComponent<"web", {
2
4
  ref?: import('react').LegacyRef<HTMLDivElement> | undefined;
3
5
  key?: import('react').Key | null | undefined;
@@ -50,60 +52,60 @@ export declare const DisplayContainer: import('styled-components').IStyledCompon
50
52
  unselectable?: "on" | "off" | undefined;
51
53
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
52
54
  is?: string | undefined;
53
- children?: import('react').ReactNode;
54
- "aria-activedescendant"?: string | undefined;
55
- "aria-atomic"?: (boolean | "true" | "false") | undefined;
56
- "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
57
- "aria-braillelabel"?: string | undefined;
58
- "aria-brailleroledescription"?: string | undefined;
59
- "aria-busy"?: (boolean | "true" | "false") | undefined;
60
- "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
61
- "aria-colcount"?: number | undefined;
62
- "aria-colindex"?: number | undefined;
63
- "aria-colindextext"?: string | undefined;
64
- "aria-colspan"?: number | undefined;
65
- "aria-controls"?: string | undefined;
66
- "aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
67
- "aria-describedby"?: string | undefined;
68
- "aria-description"?: string | undefined;
69
- "aria-details"?: string | undefined;
70
- "aria-disabled"?: (boolean | "true" | "false") | undefined;
71
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
72
- "aria-errormessage"?: string | undefined;
73
- "aria-expanded"?: (boolean | "true" | "false") | undefined;
74
- "aria-flowto"?: string | undefined;
75
- "aria-grabbed"?: (boolean | "true" | "false") | undefined;
76
- "aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
77
- "aria-hidden"?: (boolean | "true" | "false") | undefined;
78
- "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
79
- "aria-keyshortcuts"?: string | undefined;
80
- "aria-label"?: string | undefined;
81
- "aria-labelledby"?: string | undefined;
82
- "aria-level"?: number | undefined;
83
- "aria-live"?: "off" | "assertive" | "polite" | undefined;
84
- "aria-modal"?: (boolean | "true" | "false") | undefined;
85
- "aria-multiline"?: (boolean | "true" | "false") | undefined;
86
- "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
87
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
88
- "aria-owns"?: string | undefined;
89
- "aria-placeholder"?: string | undefined;
90
- "aria-posinset"?: number | undefined;
91
- "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
92
- "aria-readonly"?: (boolean | "true" | "false") | undefined;
93
- "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
94
- "aria-required"?: (boolean | "true" | "false") | undefined;
95
- "aria-roledescription"?: string | undefined;
96
- "aria-rowcount"?: number | undefined;
97
- "aria-rowindex"?: number | undefined;
98
- "aria-rowindextext"?: string | undefined;
99
- "aria-rowspan"?: number | undefined;
100
- "aria-selected"?: (boolean | "true" | "false") | undefined;
101
- "aria-setsize"?: number | undefined;
102
- "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
103
- "aria-valuemax"?: number | undefined;
104
- "aria-valuemin"?: number | undefined;
105
- "aria-valuenow"?: number | undefined;
106
- "aria-valuetext"?: string | undefined;
55
+ children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
56
+ 'aria-activedescendant'?: string | undefined;
57
+ 'aria-atomic'?: (boolean | "true" | "false") | undefined;
58
+ 'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
59
+ 'aria-braillelabel'?: string | undefined;
60
+ 'aria-brailleroledescription'?: string | undefined;
61
+ 'aria-busy'?: (boolean | "true" | "false") | undefined;
62
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
63
+ 'aria-colcount'?: number | undefined;
64
+ 'aria-colindex'?: number | undefined;
65
+ 'aria-colindextext'?: string | undefined;
66
+ 'aria-colspan'?: number | undefined;
67
+ 'aria-controls'?: string | undefined;
68
+ 'aria-current'?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
69
+ 'aria-describedby'?: string | undefined;
70
+ 'aria-description'?: string | undefined;
71
+ 'aria-details'?: string | undefined;
72
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
73
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
74
+ 'aria-errormessage'?: string | undefined;
75
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
76
+ 'aria-flowto'?: string | undefined;
77
+ 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
78
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
79
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
80
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
81
+ 'aria-keyshortcuts'?: string | undefined;
82
+ 'aria-label'?: string | undefined;
83
+ 'aria-labelledby'?: string | undefined;
84
+ 'aria-level'?: number | undefined;
85
+ 'aria-live'?: "off" | "assertive" | "polite" | undefined;
86
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
87
+ 'aria-multiline'?: (boolean | "true" | "false") | undefined;
88
+ 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
89
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
90
+ 'aria-owns'?: string | undefined;
91
+ 'aria-placeholder'?: string | undefined;
92
+ 'aria-posinset'?: number | undefined;
93
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
94
+ 'aria-readonly'?: (boolean | "true" | "false") | undefined;
95
+ 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
96
+ 'aria-required'?: (boolean | "true" | "false") | undefined;
97
+ 'aria-roledescription'?: string | undefined;
98
+ 'aria-rowcount'?: number | undefined;
99
+ 'aria-rowindex'?: number | undefined;
100
+ 'aria-rowindextext'?: string | undefined;
101
+ 'aria-rowspan'?: number | undefined;
102
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
103
+ 'aria-setsize'?: number | undefined;
104
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
105
+ 'aria-valuemax'?: number | undefined;
106
+ 'aria-valuemin'?: number | undefined;
107
+ 'aria-valuenow'?: number | undefined;
108
+ 'aria-valuetext'?: string | undefined;
107
109
  dangerouslySetInnerHTML?: {
108
110
  __html: string | TrustedHTML;
109
111
  } | undefined;
@@ -325,60 +327,60 @@ export declare const Display: import('styled-components').IStyledComponent<"web"
325
327
  unselectable?: "on" | "off" | undefined;
326
328
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
327
329
  is?: string | undefined;
328
- children?: import('react').ReactNode;
329
- "aria-activedescendant"?: string | undefined;
330
- "aria-atomic"?: (boolean | "true" | "false") | undefined;
331
- "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
332
- "aria-braillelabel"?: string | undefined;
333
- "aria-brailleroledescription"?: string | undefined;
334
- "aria-busy"?: (boolean | "true" | "false") | undefined;
335
- "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
336
- "aria-colcount"?: number | undefined;
337
- "aria-colindex"?: number | undefined;
338
- "aria-colindextext"?: string | undefined;
339
- "aria-colspan"?: number | undefined;
340
- "aria-controls"?: string | undefined;
341
- "aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
342
- "aria-describedby"?: string | undefined;
343
- "aria-description"?: string | undefined;
344
- "aria-details"?: string | undefined;
345
- "aria-disabled"?: (boolean | "true" | "false") | undefined;
346
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
347
- "aria-errormessage"?: string | undefined;
348
- "aria-expanded"?: (boolean | "true" | "false") | undefined;
349
- "aria-flowto"?: string | undefined;
350
- "aria-grabbed"?: (boolean | "true" | "false") | undefined;
351
- "aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
352
- "aria-hidden"?: (boolean | "true" | "false") | undefined;
353
- "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
354
- "aria-keyshortcuts"?: string | undefined;
355
- "aria-label"?: string | undefined;
356
- "aria-labelledby"?: string | undefined;
357
- "aria-level"?: number | undefined;
358
- "aria-live"?: "off" | "assertive" | "polite" | undefined;
359
- "aria-modal"?: (boolean | "true" | "false") | undefined;
360
- "aria-multiline"?: (boolean | "true" | "false") | undefined;
361
- "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
362
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
363
- "aria-owns"?: string | undefined;
364
- "aria-placeholder"?: string | undefined;
365
- "aria-posinset"?: number | undefined;
366
- "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
367
- "aria-readonly"?: (boolean | "true" | "false") | undefined;
368
- "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
369
- "aria-required"?: (boolean | "true" | "false") | undefined;
370
- "aria-roledescription"?: string | undefined;
371
- "aria-rowcount"?: number | undefined;
372
- "aria-rowindex"?: number | undefined;
373
- "aria-rowindextext"?: string | undefined;
374
- "aria-rowspan"?: number | undefined;
375
- "aria-selected"?: (boolean | "true" | "false") | undefined;
376
- "aria-setsize"?: number | undefined;
377
- "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
378
- "aria-valuemax"?: number | undefined;
379
- "aria-valuemin"?: number | undefined;
380
- "aria-valuenow"?: number | undefined;
381
- "aria-valuetext"?: string | undefined;
330
+ children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
331
+ 'aria-activedescendant'?: string | undefined;
332
+ 'aria-atomic'?: (boolean | "true" | "false") | undefined;
333
+ 'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
334
+ 'aria-braillelabel'?: string | undefined;
335
+ 'aria-brailleroledescription'?: string | undefined;
336
+ 'aria-busy'?: (boolean | "true" | "false") | undefined;
337
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
338
+ 'aria-colcount'?: number | undefined;
339
+ 'aria-colindex'?: number | undefined;
340
+ 'aria-colindextext'?: string | undefined;
341
+ 'aria-colspan'?: number | undefined;
342
+ 'aria-controls'?: string | undefined;
343
+ 'aria-current'?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
344
+ 'aria-describedby'?: string | undefined;
345
+ 'aria-description'?: string | undefined;
346
+ 'aria-details'?: string | undefined;
347
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
348
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
349
+ 'aria-errormessage'?: string | undefined;
350
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
351
+ 'aria-flowto'?: string | undefined;
352
+ 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
353
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
354
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
355
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
356
+ 'aria-keyshortcuts'?: string | undefined;
357
+ 'aria-label'?: string | undefined;
358
+ 'aria-labelledby'?: string | undefined;
359
+ 'aria-level'?: number | undefined;
360
+ 'aria-live'?: "off" | "assertive" | "polite" | undefined;
361
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
362
+ 'aria-multiline'?: (boolean | "true" | "false") | undefined;
363
+ 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
364
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
365
+ 'aria-owns'?: string | undefined;
366
+ 'aria-placeholder'?: string | undefined;
367
+ 'aria-posinset'?: number | undefined;
368
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
369
+ 'aria-readonly'?: (boolean | "true" | "false") | undefined;
370
+ 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
371
+ 'aria-required'?: (boolean | "true" | "false") | undefined;
372
+ 'aria-roledescription'?: string | undefined;
373
+ 'aria-rowcount'?: number | undefined;
374
+ 'aria-rowindex'?: number | undefined;
375
+ 'aria-rowindextext'?: string | undefined;
376
+ 'aria-rowspan'?: number | undefined;
377
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
378
+ 'aria-setsize'?: number | undefined;
379
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
380
+ 'aria-valuemax'?: number | undefined;
381
+ 'aria-valuemin'?: number | undefined;
382
+ 'aria-valuenow'?: number | undefined;
383
+ 'aria-valuetext'?: string | undefined;
382
384
  dangerouslySetInnerHTML?: {
383
385
  __html: string | TrustedHTML;
384
386
  } | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const TooltipContainer: import('styled-components').IStyledComponent<"web", {
3
4
  className?: string | undefined;
4
5
  width?: string | number | undefined;
@@ -61,60 +62,60 @@ export declare const Tooltip: import('styled-components').IStyledComponent<"web"
61
62
  unselectable?: "on" | "off" | undefined;
62
63
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
63
64
  is?: string | undefined;
64
- children?: import('react').ReactNode;
65
- "aria-activedescendant"?: string | undefined;
66
- "aria-atomic"?: (boolean | "true" | "false") | undefined;
67
- "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
68
- "aria-braillelabel"?: string | undefined;
69
- "aria-brailleroledescription"?: string | undefined;
70
- "aria-busy"?: (boolean | "true" | "false") | undefined;
71
- "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
72
- "aria-colcount"?: number | undefined;
73
- "aria-colindex"?: number | undefined;
74
- "aria-colindextext"?: string | undefined;
75
- "aria-colspan"?: number | undefined;
76
- "aria-controls"?: string | undefined;
77
- "aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
78
- "aria-describedby"?: string | undefined;
79
- "aria-description"?: string | undefined;
80
- "aria-details"?: string | undefined;
81
- "aria-disabled"?: (boolean | "true" | "false") | undefined;
82
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
83
- "aria-errormessage"?: string | undefined;
84
- "aria-expanded"?: (boolean | "true" | "false") | undefined;
85
- "aria-flowto"?: string | undefined;
86
- "aria-grabbed"?: (boolean | "true" | "false") | undefined;
87
- "aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
88
- "aria-hidden"?: (boolean | "true" | "false") | undefined;
89
- "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
90
- "aria-keyshortcuts"?: string | undefined;
91
- "aria-label"?: string | undefined;
92
- "aria-labelledby"?: string | undefined;
93
- "aria-level"?: number | undefined;
94
- "aria-live"?: "off" | "assertive" | "polite" | undefined;
95
- "aria-modal"?: (boolean | "true" | "false") | undefined;
96
- "aria-multiline"?: (boolean | "true" | "false") | undefined;
97
- "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
98
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
99
- "aria-owns"?: string | undefined;
100
- "aria-placeholder"?: string | undefined;
101
- "aria-posinset"?: number | undefined;
102
- "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
103
- "aria-readonly"?: (boolean | "true" | "false") | undefined;
104
- "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
105
- "aria-required"?: (boolean | "true" | "false") | undefined;
106
- "aria-roledescription"?: string | undefined;
107
- "aria-rowcount"?: number | undefined;
108
- "aria-rowindex"?: number | undefined;
109
- "aria-rowindextext"?: string | undefined;
110
- "aria-rowspan"?: number | undefined;
111
- "aria-selected"?: (boolean | "true" | "false") | undefined;
112
- "aria-setsize"?: number | undefined;
113
- "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
114
- "aria-valuemax"?: number | undefined;
115
- "aria-valuemin"?: number | undefined;
116
- "aria-valuenow"?: number | undefined;
117
- "aria-valuetext"?: string | undefined;
65
+ children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
66
+ 'aria-activedescendant'?: string | undefined;
67
+ 'aria-atomic'?: (boolean | "true" | "false") | undefined;
68
+ 'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
69
+ 'aria-braillelabel'?: string | undefined;
70
+ 'aria-brailleroledescription'?: string | undefined;
71
+ 'aria-busy'?: (boolean | "true" | "false") | undefined;
72
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
73
+ 'aria-colcount'?: number | undefined;
74
+ 'aria-colindex'?: number | undefined;
75
+ 'aria-colindextext'?: string | undefined;
76
+ 'aria-colspan'?: number | undefined;
77
+ 'aria-controls'?: string | undefined;
78
+ 'aria-current'?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
79
+ 'aria-describedby'?: string | undefined;
80
+ 'aria-description'?: string | undefined;
81
+ 'aria-details'?: string | undefined;
82
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
83
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
84
+ 'aria-errormessage'?: string | undefined;
85
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
86
+ 'aria-flowto'?: string | undefined;
87
+ 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
88
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
89
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
90
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
91
+ 'aria-keyshortcuts'?: string | undefined;
92
+ 'aria-label'?: string | undefined;
93
+ 'aria-labelledby'?: string | undefined;
94
+ 'aria-level'?: number | undefined;
95
+ 'aria-live'?: "off" | "assertive" | "polite" | undefined;
96
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
97
+ 'aria-multiline'?: (boolean | "true" | "false") | undefined;
98
+ 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
99
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
100
+ 'aria-owns'?: string | undefined;
101
+ 'aria-placeholder'?: string | undefined;
102
+ 'aria-posinset'?: number | undefined;
103
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
104
+ 'aria-readonly'?: (boolean | "true" | "false") | undefined;
105
+ 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
106
+ 'aria-required'?: (boolean | "true" | "false") | undefined;
107
+ 'aria-roledescription'?: string | undefined;
108
+ 'aria-rowcount'?: number | undefined;
109
+ 'aria-rowindex'?: number | undefined;
110
+ 'aria-rowindextext'?: string | undefined;
111
+ 'aria-rowspan'?: number | undefined;
112
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
113
+ 'aria-setsize'?: number | undefined;
114
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
115
+ 'aria-valuemax'?: number | undefined;
116
+ 'aria-valuemin'?: number | undefined;
117
+ 'aria-valuenow'?: number | undefined;
118
+ 'aria-valuetext'?: string | undefined;
118
119
  dangerouslySetInnerHTML?: {
119
120
  __html: string | TrustedHTML;
120
121
  } | undefined;
@@ -333,60 +334,60 @@ export declare const Arrow: import('styled-components').IStyledComponent<"web",
333
334
  unselectable?: "on" | "off" | undefined;
334
335
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
335
336
  is?: string | undefined;
336
- children?: import('react').ReactNode;
337
- "aria-activedescendant"?: string | undefined;
338
- "aria-atomic"?: (boolean | "true" | "false") | undefined;
339
- "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
340
- "aria-braillelabel"?: string | undefined;
341
- "aria-brailleroledescription"?: string | undefined;
342
- "aria-busy"?: (boolean | "true" | "false") | undefined;
343
- "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
344
- "aria-colcount"?: number | undefined;
345
- "aria-colindex"?: number | undefined;
346
- "aria-colindextext"?: string | undefined;
347
- "aria-colspan"?: number | undefined;
348
- "aria-controls"?: string | undefined;
349
- "aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
350
- "aria-describedby"?: string | undefined;
351
- "aria-description"?: string | undefined;
352
- "aria-details"?: string | undefined;
353
- "aria-disabled"?: (boolean | "true" | "false") | undefined;
354
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
355
- "aria-errormessage"?: string | undefined;
356
- "aria-expanded"?: (boolean | "true" | "false") | undefined;
357
- "aria-flowto"?: string | undefined;
358
- "aria-grabbed"?: (boolean | "true" | "false") | undefined;
359
- "aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
360
- "aria-hidden"?: (boolean | "true" | "false") | undefined;
361
- "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
362
- "aria-keyshortcuts"?: string | undefined;
363
- "aria-label"?: string | undefined;
364
- "aria-labelledby"?: string | undefined;
365
- "aria-level"?: number | undefined;
366
- "aria-live"?: "off" | "assertive" | "polite" | undefined;
367
- "aria-modal"?: (boolean | "true" | "false") | undefined;
368
- "aria-multiline"?: (boolean | "true" | "false") | undefined;
369
- "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
370
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
371
- "aria-owns"?: string | undefined;
372
- "aria-placeholder"?: string | undefined;
373
- "aria-posinset"?: number | undefined;
374
- "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
375
- "aria-readonly"?: (boolean | "true" | "false") | undefined;
376
- "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
377
- "aria-required"?: (boolean | "true" | "false") | undefined;
378
- "aria-roledescription"?: string | undefined;
379
- "aria-rowcount"?: number | undefined;
380
- "aria-rowindex"?: number | undefined;
381
- "aria-rowindextext"?: string | undefined;
382
- "aria-rowspan"?: number | undefined;
383
- "aria-selected"?: (boolean | "true" | "false") | undefined;
384
- "aria-setsize"?: number | undefined;
385
- "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
386
- "aria-valuemax"?: number | undefined;
387
- "aria-valuemin"?: number | undefined;
388
- "aria-valuenow"?: number | undefined;
389
- "aria-valuetext"?: string | undefined;
337
+ children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
338
+ 'aria-activedescendant'?: string | undefined;
339
+ 'aria-atomic'?: (boolean | "true" | "false") | undefined;
340
+ 'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
341
+ 'aria-braillelabel'?: string | undefined;
342
+ 'aria-brailleroledescription'?: string | undefined;
343
+ 'aria-busy'?: (boolean | "true" | "false") | undefined;
344
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
345
+ 'aria-colcount'?: number | undefined;
346
+ 'aria-colindex'?: number | undefined;
347
+ 'aria-colindextext'?: string | undefined;
348
+ 'aria-colspan'?: number | undefined;
349
+ 'aria-controls'?: string | undefined;
350
+ 'aria-current'?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
351
+ 'aria-describedby'?: string | undefined;
352
+ 'aria-description'?: string | undefined;
353
+ 'aria-details'?: string | undefined;
354
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
355
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
356
+ 'aria-errormessage'?: string | undefined;
357
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
358
+ 'aria-flowto'?: string | undefined;
359
+ 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
360
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
361
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
362
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
363
+ 'aria-keyshortcuts'?: string | undefined;
364
+ 'aria-label'?: string | undefined;
365
+ 'aria-labelledby'?: string | undefined;
366
+ 'aria-level'?: number | undefined;
367
+ 'aria-live'?: "off" | "assertive" | "polite" | undefined;
368
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
369
+ 'aria-multiline'?: (boolean | "true" | "false") | undefined;
370
+ 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
371
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
372
+ 'aria-owns'?: string | undefined;
373
+ 'aria-placeholder'?: string | undefined;
374
+ 'aria-posinset'?: number | undefined;
375
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
376
+ 'aria-readonly'?: (boolean | "true" | "false") | undefined;
377
+ 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
378
+ 'aria-required'?: (boolean | "true" | "false") | undefined;
379
+ 'aria-roledescription'?: string | undefined;
380
+ 'aria-rowcount'?: number | undefined;
381
+ 'aria-rowindex'?: number | undefined;
382
+ 'aria-rowindextext'?: string | undefined;
383
+ 'aria-rowspan'?: number | undefined;
384
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
385
+ 'aria-setsize'?: number | undefined;
386
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
387
+ 'aria-valuemax'?: number | undefined;
388
+ 'aria-valuemin'?: number | undefined;
389
+ 'aria-valuenow'?: number | undefined;
390
+ 'aria-valuetext'?: string | undefined;
390
391
  dangerouslySetInnerHTML?: {
391
392
  __html: string | TrustedHTML;
392
393
  } | undefined;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),M=require("d3-array"),u=require("../styles.cjs"),h=({xDomain:r=[0,1],xScale:n=c=>c,y:t=0,ticks:i=0,labelRender:a,labelledById:j,margin:b,tickHeight:d=5,showBaseline:x=!0,className:A})=>{if(r.length<2)return console.error("Failed to render: invalid domain",r),null;const g={...{top:0,right:0,bottom:0,left:0},...b},f=Array.isArray(i)?i:M.ticks(r[0],r[1],i);return e.jsxs(e.Fragment,{children:[x&&e.jsx(u.BaseLine,{x1:n(r[0])-g.left,x2:n(r[1])+g.right,y1:t,y2:t}),f.length>0&&e.jsx("g",{role:"list","aria-labelledby":j,className:A,children:f.map((s,y)=>{if(s>=r[1])return null;const o=t+d,l=n(s);return e.jsxs("g",{role:"listitem",children:[d>0&&e.jsx(u.Tick,{x1:l,x2:l,y1:t,y2:o}),a?a(s,l,o,y):e.jsx(u.XLabel,{x:l,y:o,children:s})]},y)})})]})};h.displayName="Charts.XAxis";const X=h;exports.default=X;
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),M=require("d3-array"),c=require("../styles.cjs"),X=require("react-i18next"),b=({xDomain:e,xScale:o,y:i=0,ticks:a=0,labelRender:g,labelledById:h,margin:x,tickHeight:d=5,showBaseline:y=!0,className:j})=>{const{i18n:{language:A}}=X.useTranslation();if(e.length<2)return console.error("Failed to render: invalid domain",e),null;const f={...{top:0,right:0,bottom:0,left:0},...x},u=Array.isArray(a)?a:M.ticks(e[0],e[1],a),m=u.reduce((t,n)=>{if(Number.isInteger(n))return t;{const s=n.toString().split(".")[1].length;return s>t?s:t}},0),{format:F}=new Intl.NumberFormat(A,{minimumFractionDigits:m,maximumFractionDigits:m});return r.jsxs(r.Fragment,{children:[y&&r.jsx(c.BaseLine,{x1:o(e[0])-f.left,x2:o(e[1])+f.right,y1:i,y2:i}),u.length>0&&r.jsx("g",{role:"list","aria-labelledby":h,className:j,children:u.map((t,n)=>{if(t>=e[1])return null;const s=i+d,l=o(t);return r.jsxs("g",{role:"listitem",children:[d>0&&r.jsx(c.Tick,{x1:l,x2:l,y1:i,y2:s}),g?g(t,l,s,n):r.jsx(c.XLabel,{x:l,y:s,children:F(t)})]},n)})})]})};b.displayName="Charts.XAxis";const q=b;exports.default=q;
@@ -1,44 +1,59 @@
1
- import { jsxs as p, Fragment as X, jsx as s } from "react/jsx-runtime";
2
- import { ticks as x } from "d3-array";
3
- import { BaseLine as M, Tick as j, XLabel as F } from "../styles.js";
4
- const u = ({
5
- xDomain: r = [0, 1],
6
- xScale: i = (c) => c,
7
- y: t = 0,
8
- ticks: n = 0,
9
- labelRender: a,
10
- labelledById: m,
11
- margin: y,
12
- tickHeight: d = 5,
13
- showBaseline: A = !0,
14
- className: b
1
+ "use client";
2
+ import { jsxs as d, Fragment as x, jsx as l } from "react/jsx-runtime";
3
+ import { ticks as M } from "d3-array";
4
+ import { BaseLine as N, Tick as j, XLabel as I } from "../styles.js";
5
+ import { useTranslation as L } from "react-i18next";
6
+ const h = ({
7
+ xDomain: r,
8
+ xScale: o,
9
+ y: e = 0,
10
+ ticks: a = 0,
11
+ labelRender: g,
12
+ labelledById: b,
13
+ margin: p,
14
+ tickHeight: m = 5,
15
+ showBaseline: y = !0,
16
+ className: A
15
17
  }) => {
18
+ const {
19
+ i18n: { language: F }
20
+ } = L();
16
21
  if (r.length < 2)
17
22
  return console.error("Failed to render: invalid domain", r), null;
18
- const f = { ...{ top: 0, right: 0, bottom: 0, left: 0 }, ...y }, g = Array.isArray(n) ? n : x(r[0], r[1], n);
19
- return /* @__PURE__ */ p(X, { children: [
20
- A && /* @__PURE__ */ s(
21
- M,
23
+ const u = { ...{ top: 0, right: 0, bottom: 0, left: 0 }, ...p }, c = Array.isArray(a) ? a : M(r[0], r[1], a), f = c.reduce((t, n) => {
24
+ if (Number.isInteger(n))
25
+ return t;
26
+ {
27
+ const i = n.toString().split(".")[1].length;
28
+ return i > t ? i : t;
29
+ }
30
+ }, 0), { format: X } = new Intl.NumberFormat(F, {
31
+ minimumFractionDigits: f,
32
+ maximumFractionDigits: f
33
+ });
34
+ return /* @__PURE__ */ d(x, { children: [
35
+ y && /* @__PURE__ */ l(
36
+ N,
22
37
  {
23
- x1: i(r[0]) - f.left,
24
- x2: i(r[1]) + f.right,
25
- y1: t,
26
- y2: t
38
+ x1: o(r[0]) - u.left,
39
+ x2: o(r[1]) + u.right,
40
+ y1: e,
41
+ y2: e
27
42
  }
28
43
  ),
29
- g.length > 0 && /* @__PURE__ */ s("g", { role: "list", "aria-labelledby": m, className: b, children: g.map((e, h) => {
30
- if (e >= r[1])
44
+ c.length > 0 && /* @__PURE__ */ l("g", { role: "list", "aria-labelledby": b, className: A, children: c.map((t, n) => {
45
+ if (t >= r[1])
31
46
  return null;
32
- const o = t + d, l = i(e);
33
- return /* @__PURE__ */ p("g", { role: "listitem", children: [
34
- d > 0 && /* @__PURE__ */ s(j, { x1: l, x2: l, y1: t, y2: o }),
35
- a ? a(e, l, o, h) : /* @__PURE__ */ s(F, { x: l, y: o, children: e })
36
- ] }, h);
47
+ const i = e + m, s = o(t);
48
+ return /* @__PURE__ */ d("g", { role: "listitem", children: [
49
+ m > 0 && /* @__PURE__ */ l(j, { x1: s, x2: s, y1: e, y2: i }),
50
+ g ? g(t, s, i, n) : /* @__PURE__ */ l(I, { x: s, y: i, children: X(t) })
51
+ ] }, n);
37
52
  }) })
38
53
  ] });
39
54
  };
40
- u.displayName = "Charts.XAxis";
41
- const C = u;
55
+ h.displayName = "Charts.XAxis";
56
+ const Y = h;
42
57
  export {
43
- C as default
58
+ Y as default
44
59
  };