@plenustech/design-system 0.2.3 → 0.2.4
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/dist/components/charts/ChartGauge/ChartGauge.cjs +2 -0
- package/dist/components/charts/ChartGauge/ChartGauge.cjs.map +1 -0
- package/dist/components/charts/ChartGauge/ChartGauge.js +307 -0
- package/dist/components/charts/ChartGauge/ChartGauge.js.map +1 -0
- package/dist/components/charts/ChartGauge/ChartGauge.module.css.cjs +2 -0
- package/dist/components/charts/ChartGauge/ChartGauge.module.css.cjs.map +1 -0
- package/dist/components/charts/ChartGauge/ChartGauge.module.css.js +76 -0
- package/dist/components/charts/ChartGauge/ChartGauge.module.css.js.map +1 -0
- package/dist/components/charts/ChartGauge/gaugeLayout.cjs +2 -0
- package/dist/components/charts/ChartGauge/gaugeLayout.cjs.map +1 -0
- package/dist/components/charts/ChartGauge/gaugeLayout.js +107 -0
- package/dist/components/charts/ChartGauge/gaugeLayout.js.map +1 -0
- package/dist/components/charts/ChartGauge/gaugeReading.cjs +2 -0
- package/dist/components/charts/ChartGauge/gaugeReading.cjs.map +1 -0
- package/dist/components/charts/ChartGauge/gaugeReading.js +112 -0
- package/dist/components/charts/ChartGauge/gaugeReading.js.map +1 -0
- package/dist/components/charts/ChartGauge/gaugeScale.cjs +2 -0
- package/dist/components/charts/ChartGauge/gaugeScale.cjs.map +1 -0
- package/dist/components/charts/ChartGauge/gaugeScale.js +57 -0
- package/dist/components/charts/ChartGauge/gaugeScale.js.map +1 -0
- package/dist/components/charts/ChartMap/ChartMap.cjs +2 -0
- package/dist/components/charts/ChartMap/ChartMap.cjs.map +1 -0
- package/dist/components/charts/ChartMap/ChartMap.js +523 -0
- package/dist/components/charts/ChartMap/ChartMap.js.map +1 -0
- package/dist/components/charts/ChartMap/ChartMap.module.css.cjs +2 -0
- package/dist/components/charts/ChartMap/ChartMap.module.css.cjs.map +1 -0
- package/dist/components/charts/ChartMap/ChartMap.module.css.js +124 -0
- package/dist/components/charts/ChartMap/ChartMap.module.css.js.map +1 -0
- package/dist/components/charts/ChartMap/ChartMapLegend.cjs +2 -0
- package/dist/components/charts/ChartMap/ChartMapLegend.cjs.map +1 -0
- package/dist/components/charts/ChartMap/ChartMapLegend.js +102 -0
- package/dist/components/charts/ChartMap/ChartMapLegend.js.map +1 -0
- package/dist/components/charts/ChartMap/ChartMapTable.cjs +2 -0
- package/dist/components/charts/ChartMap/ChartMapTable.cjs.map +1 -0
- package/dist/components/charts/ChartMap/ChartMapTable.js +118 -0
- package/dist/components/charts/ChartMap/ChartMapTable.js.map +1 -0
- package/dist/components/charts/ChartMap/mapGeometry.cjs +2 -0
- package/dist/components/charts/ChartMap/mapGeometry.cjs.map +1 -0
- package/dist/components/charts/ChartMap/mapGeometry.js +113 -0
- package/dist/components/charts/ChartMap/mapGeometry.js.map +1 -0
- package/dist/components/charts/ChartMap/mapLabels.cjs +2 -0
- package/dist/components/charts/ChartMap/mapLabels.cjs.map +1 -0
- package/dist/components/charts/ChartMap/mapLabels.js +80 -0
- package/dist/components/charts/ChartMap/mapLabels.js.map +1 -0
- package/dist/components/charts/ChartMap/mapScales.cjs +2 -0
- package/dist/components/charts/ChartMap/mapScales.cjs.map +1 -0
- package/dist/components/charts/ChartMap/mapScales.js +131 -0
- package/dist/components/charts/ChartMap/mapScales.js.map +1 -0
- package/dist/components/charts/ChartMap/polylabel.cjs +2 -0
- package/dist/components/charts/ChartMap/polylabel.cjs.map +1 -0
- package/dist/components/charts/ChartMap/polylabel.js +50 -0
- package/dist/components/charts/ChartMap/polylabel.js.map +1 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.cjs +2 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.cjs.map +1 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.js +703 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.js.map +1 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.module.css.cjs +2 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.module.css.cjs.map +1 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.module.css.js +124 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.module.css.js.map +1 -0
- package/dist/components/charts/ChartTimeline/ChartTimelineTable.cjs +2 -0
- package/dist/components/charts/ChartTimeline/ChartTimelineTable.cjs.map +1 -0
- package/dist/components/charts/ChartTimeline/ChartTimelineTable.js +42 -0
- package/dist/components/charts/ChartTimeline/ChartTimelineTable.js.map +1 -0
- package/dist/components/charts/ChartTimeline/timelineLayout.cjs +2 -0
- package/dist/components/charts/ChartTimeline/timelineLayout.cjs.map +1 -0
- package/dist/components/charts/ChartTimeline/timelineLayout.js +109 -0
- package/dist/components/charts/ChartTimeline/timelineLayout.js.map +1 -0
- package/dist/components/charts/ChartTimeline/timelineTime.cjs +2 -0
- package/dist/components/charts/ChartTimeline/timelineTime.cjs.map +1 -0
- package/dist/components/charts/ChartTimeline/timelineTime.js +91 -0
- package/dist/components/charts/ChartTimeline/timelineTime.js.map +1 -0
- package/dist/components/charts/ChartTimeline/timelineTooltip.cjs +2 -0
- package/dist/components/charts/ChartTimeline/timelineTooltip.cjs.map +1 -0
- package/dist/components/charts/ChartTimeline/timelineTooltip.js +77 -0
- package/dist/components/charts/ChartTimeline/timelineTooltip.js.map +1 -0
- package/dist/components/charts/core/ChartLegend.cjs +1 -1
- package/dist/components/charts/core/ChartLegend.cjs.map +1 -1
- package/dist/components/charts/core/ChartLegend.js +37 -25
- package/dist/components/charts/core/ChartLegend.js.map +1 -1
- package/dist/components/charts/core/useChartMetrics.cjs +1 -1
- package/dist/components/charts/core/useChartMetrics.cjs.map +1 -1
- package/dist/components/charts/core/useChartMetrics.js +20 -25
- package/dist/components/charts/core/useChartMetrics.js.map +1 -1
- package/dist/components/data-display/List/List.cjs.map +1 -1
- package/dist/components/data-display/List/List.js.map +1 -1
- package/dist/components/data-display/List/List.module.css.cjs +1 -1
- package/dist/components/data-display/List/List.module.css.js +34 -24
- package/dist/components/data-display/List/List.module.css.js.map +1 -1
- package/dist/components/data-display/List/ListingOptions.cjs +1 -1
- package/dist/components/data-display/List/ListingOptions.cjs.map +1 -1
- package/dist/components/data-display/List/ListingOptions.js +98 -74
- package/dist/components/data-display/List/ListingOptions.js.map +1 -1
- package/dist/components/data-display/List/useListing.cjs.map +1 -1
- package/dist/components/data-display/List/useListing.js.map +1 -1
- package/dist/components/forms/ComboBox/ComboBox.cjs.map +1 -1
- package/dist/components/forms/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/navigation/TabsNav/TabsNav.cjs +2 -0
- package/dist/components/navigation/TabsNav/TabsNav.cjs.map +1 -0
- package/dist/components/navigation/TabsNav/TabsNav.js +21 -0
- package/dist/components/navigation/TabsNav/TabsNav.js.map +1 -0
- package/dist/components/navigation/TabsNav/TabsNav.module.css.cjs +2 -0
- package/dist/components/navigation/TabsNav/TabsNav.module.css.cjs.map +1 -0
- package/dist/components/navigation/TabsNav/TabsNav.module.css.js +18 -0
- package/dist/components/navigation/TabsNav/TabsNav.module.css.js.map +1 -0
- package/dist/components/overlays/Dialog/Dialog.cjs.map +1 -1
- package/dist/components/overlays/Dialog/Dialog.js.map +1 -1
- package/dist/components/overlays/Dialog/DialogFrame.cjs +1 -1
- package/dist/components/overlays/Dialog/DialogFrame.cjs.map +1 -1
- package/dist/components/overlays/Dialog/DialogFrame.js +30 -30
- package/dist/components/overlays/Dialog/DialogFrame.js.map +1 -1
- package/dist/components/overlays/Drawer/Drawer.cjs.map +1 -1
- package/dist/components/overlays/Drawer/Drawer.js.map +1 -1
- package/dist/design-system.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +184 -174
- package/dist/index.js.map +1 -1
- package/dist/types/components/charts/ChartGauge/ChartGauge.d.ts +83 -0
- package/dist/types/components/charts/ChartGauge/gaugeLayout.d.ts +64 -0
- package/dist/types/components/charts/ChartGauge/gaugeReading.d.ts +97 -0
- package/dist/types/components/charts/ChartGauge/gaugeScale.d.ts +38 -0
- package/dist/types/components/charts/ChartGauge/index.d.ts +2 -0
- package/dist/types/components/charts/ChartMap/ChartMap.d.ts +104 -0
- package/dist/types/components/charts/ChartMap/ChartMapLegend.d.ts +44 -0
- package/dist/types/components/charts/ChartMap/ChartMapTable.d.ts +38 -0
- package/dist/types/components/charts/ChartMap/index.d.ts +4 -0
- package/dist/types/components/charts/ChartMap/mapGeometry.d.ts +56 -0
- package/dist/types/components/charts/ChartMap/mapLabels.d.ts +51 -0
- package/dist/types/components/charts/ChartMap/mapScales.d.ts +76 -0
- package/dist/types/components/charts/ChartMap/polylabel.d.ts +9 -0
- package/dist/types/components/charts/ChartTimeline/ChartTimeline.d.ts +137 -0
- package/dist/types/components/charts/ChartTimeline/ChartTimelineTable.d.ts +25 -0
- package/dist/types/components/charts/ChartTimeline/index.d.ts +2 -0
- package/dist/types/components/charts/ChartTimeline/timelineLayout.d.ts +70 -0
- package/dist/types/components/charts/ChartTimeline/timelineTime.d.ts +16 -0
- package/dist/types/components/charts/ChartTimeline/timelineTooltip.d.ts +45 -0
- package/dist/types/components/charts/core/ChartLegend.d.ts +3 -1
- package/dist/types/components/data-display/List/List.d.ts +1 -1
- package/dist/types/components/data-display/List/useListing.d.ts +7 -1
- package/dist/types/components/forms/ComboBox/ComboBox.d.ts +7 -1
- package/dist/types/components/navigation/TabsNav/TabsNav.d.ts +20 -0
- package/dist/types/components/navigation/TabsNav/index.d.ts +2 -0
- package/dist/types/components/overlays/Dialog/Dialog.d.ts +19 -7
- package/dist/types/components/overlays/Dialog/DialogFrame.d.ts +8 -2
- package/dist/types/components/overlays/Drawer/Drawer.d.ts +2 -2
- package/dist/types/index.d.ts +9 -1
- package/dist/types/utils/formatters/formatarDuracao.d.ts +5 -0
- package/dist/types/utils/formatters/index.d.ts +1 -0
- package/dist/utils/formatters/formatarDuracao.cjs +2 -0
- package/dist/utils/formatters/formatarDuracao.cjs.map +1 -0
- package/dist/utils/formatters/formatarDuracao.js +10 -0
- package/dist/utils/formatters/formatarDuracao.js.map +1 -0
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -1,193 +1,203 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { Accordion as
|
|
4
|
-
import { Alert as
|
|
3
|
+
import { Accordion as m } from "./components/data-display/Accordion/Accordion.js";
|
|
4
|
+
import { Alert as a } from "./components/feedback/Alert/Alert.js";
|
|
5
5
|
import { Avatar as f } from "./components/data-display/Avatar/Avatar.js";
|
|
6
6
|
import { Badge as c } from "./components/data-display/Badge/Badge.js";
|
|
7
7
|
import { Breadcrumb as l } from "./components/navigation/Breadcrumb/Breadcrumb.js";
|
|
8
8
|
import { Button as C } from "./components/actions/Button/Button.js";
|
|
9
9
|
import { ButtonIcon as s } from "./components/actions/ButtonIcon/ButtonIcon.js";
|
|
10
10
|
import { ButtonTile as d } from "./components/actions/ButtonTile/ButtonTile.js";
|
|
11
|
-
import { Card as
|
|
12
|
-
import { ChartArea as
|
|
11
|
+
import { Card as g } from "./components/data-display/Card/Card.js";
|
|
12
|
+
import { ChartArea as b } from "./components/charts/ChartArea/ChartArea.js";
|
|
13
13
|
import { ChartBar as P } from "./components/charts/ChartBar/ChartBar.js";
|
|
14
|
-
import { ChartCombo as
|
|
15
|
-
import { ChartDonut as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
14
|
+
import { ChartCombo as A } from "./components/charts/ChartCombo/ChartCombo.js";
|
|
15
|
+
import { ChartDonut as B } from "./components/charts/ChartDonut/ChartDonut.js";
|
|
16
|
+
import { ChartGauge as w } from "./components/charts/ChartGauge/ChartGauge.js";
|
|
17
|
+
import { ChartLine as E } from "./components/charts/ChartLine/ChartLine.js";
|
|
18
|
+
import { ChartMap as U } from "./components/charts/ChartMap/ChartMap.js";
|
|
19
|
+
import { ChartPie as F } from "./components/charts/ChartPie/ChartPie.js";
|
|
20
|
+
import { ChartRadial as N } from "./components/charts/ChartRadial/ChartRadial.js";
|
|
21
|
+
import { ChartSankey as W } from "./components/charts/ChartSankey/ChartSankey.js";
|
|
22
|
+
import { ChartScatter as Q } from "./components/charts/ChartScatter/ChartScatter.js";
|
|
23
|
+
import { ChartSunburst as z } from "./components/charts/ChartSunburst/ChartSunburst.js";
|
|
24
|
+
import { ChartTimeline as K } from "./components/charts/ChartTimeline/ChartTimeline.js";
|
|
25
|
+
import { ChartTooltip as V } from "./components/charts/ChartTooltip/ChartTooltip.js";
|
|
26
|
+
import { ChartTreemap as Y } from "./components/charts/ChartTreemap/ChartTreemap.js";
|
|
27
|
+
import { ChartWaterfall as _ } from "./components/charts/ChartWaterfall/ChartWaterfall.js";
|
|
28
|
+
import { Checkbox as oo } from "./components/forms/Checkbox/Checkbox.js";
|
|
29
|
+
import { CheckboxGroup as eo } from "./components/forms/CheckboxGroup/CheckboxGroup.js";
|
|
30
|
+
import { CodeBlock as mo } from "./components/data-display/CodeBlock/CodeBlock.js";
|
|
31
|
+
import { ColorPicker as ao } from "./components/forms/ColorPicker/ColorPicker.js";
|
|
32
|
+
import { ComboBox as fo } from "./components/forms/ComboBox/ComboBox.js";
|
|
33
|
+
import { DatePicker as co } from "./components/forms/DatePicker/DatePicker.js";
|
|
34
|
+
import { DateTimePicker as lo } from "./components/forms/DateTimePicker/DateTimePicker.js";
|
|
35
|
+
import { Dialog as Co } from "./components/overlays/Dialog/Dialog.js";
|
|
36
|
+
import { Drawer as so } from "./components/overlays/Drawer/Drawer.js";
|
|
37
|
+
import { EmptyState as To } from "./components/feedback/EmptyState/EmptyState.js";
|
|
38
|
+
import { Field as ko } from "./components/forms/Field/Field.js";
|
|
39
|
+
import { FileUpload as So } from "./components/forms/FileUpload/FileUpload.js";
|
|
40
|
+
import { IconAlignCenter as Do, IconAlignLeft as Ao, IconAlignRight as vo, IconArrowDown as Bo, IconArrowUp as Lo, IconBold as wo, IconCalendar as Ro, IconChartBar as Eo, IconCheck as Mo, IconCheckCircle as Uo, IconChevronDown as yo, IconChevronExpand as Fo, IconChevronLeft as Go, IconChevronRight as No, IconChevronUp as Ho, IconClock as Wo, IconClose as qo, IconDesktop as Qo, IconDragHandle as jo, IconExclamationCircle as zo, IconExclamationTriangle as Jo, IconExternalLink as Ko, IconEye as Oo, IconFile as Vo, IconFilter as Xo, IconInfoCircle as Yo, IconItalic as Zo, IconLightning as _o, IconLink as $o, IconMinusCircle as or, IconMobile as rr, IconMore as er, IconPencil as tr, IconPlus as mr, IconPlusCircle as nr, IconQuestionCircle as ar, IconRedo as pr, IconSearch as fr, IconSidebar as xr, IconStructure as cr, IconTablet as ir, IconTrash as lr, IconUndo as Ir, IconUpload as Cr } from "./components/icons/icons.js";
|
|
41
|
+
import { InputCurrency as sr } from "./components/forms/InputCurrency/InputCurrency.js";
|
|
42
|
+
import { InputNumber as dr } from "./components/forms/InputNumber/InputNumber.js";
|
|
43
|
+
import { InputPassword as gr } from "./components/forms/InputPassword/InputPassword.js";
|
|
44
|
+
import { InputText as br } from "./components/forms/InputText/InputText.js";
|
|
45
|
+
import { Label as Pr } from "./components/forms/Label/Label.js";
|
|
46
|
+
import { List as Ar } from "./components/data-display/List/List.js";
|
|
47
|
+
import { Menu as Br } from "./components/overlays/Menu/Menu.js";
|
|
48
|
+
import { Pagination as wr } from "./components/navigation/Pagination/Pagination.js";
|
|
49
|
+
import { Popover as Er } from "./components/overlays/Popover/Popover.js";
|
|
50
|
+
import { Progress as Ur } from "./components/feedback/Progress/Progress.js";
|
|
51
|
+
import { Radio as Fr } from "./components/forms/RadioGroup/Radio.js";
|
|
52
|
+
import { RadioGroup as Nr } from "./components/forms/RadioGroup/RadioGroup.js";
|
|
53
|
+
import { SegmentedControl as Wr } from "./components/forms/SegmentedControl/SegmentedControl.js";
|
|
54
|
+
import { Select as Qr } from "./components/forms/Select/Select.js";
|
|
55
|
+
import { Skeleton as zr } from "./components/feedback/Skeleton/Skeleton.js";
|
|
56
|
+
import { SkipLink as Kr } from "./components/navigation/SkipLink/SkipLink.js";
|
|
57
|
+
import { SortableList as Vr } from "./components/data-display/SortableList/SortableList.js";
|
|
58
|
+
import { Spinner as Yr } from "./components/feedback/Spinner/Spinner.js";
|
|
59
|
+
import { Steps as _r } from "./components/navigation/Steps/Steps.js";
|
|
60
|
+
import { Switch as oe } from "./components/forms/Switch/Switch.js";
|
|
61
|
+
import { Table as ee } from "./components/data-display/Table/Table.js";
|
|
62
|
+
import { Tabs as me } from "./components/navigation/Tabs/Tabs.js";
|
|
63
|
+
import { TabsNav as ae } from "./components/navigation/TabsNav/TabsNav.js";
|
|
64
|
+
import { Tag as fe } from "./components/data-display/Tag/Tag.js";
|
|
65
|
+
import { Textarea as ce } from "./components/forms/Textarea/Textarea.js";
|
|
66
|
+
import { TimePicker as le } from "./components/forms/TimePicker/TimePicker.js";
|
|
67
|
+
import { Timeline as Ce } from "./components/data-display/Timeline/Timeline.js";
|
|
68
|
+
import { ToastRegion as se } from "./components/feedback/Toast/ToastRegion.js";
|
|
69
|
+
import { Toolbar as de } from "./components/actions/Toolbar/Toolbar.js";
|
|
70
|
+
import { Tooltip as ge } from "./components/overlays/Tooltip/Tooltip.js";
|
|
71
|
+
import { dismissToast as be, showToast as Se } from "./components/feedback/Toast/toastStore.js";
|
|
72
|
+
import { formatarData as De, formatarHora as Ae } from "./utils/formatters/formatarData.js";
|
|
73
|
+
import { formatarDuracao as Be } from "./utils/formatters/formatarDuracao.js";
|
|
74
|
+
import { formatarMoeda as we, formatarNumero as Re, formatarPercentual as Ee } from "./utils/formatters/formatarNumero.js";
|
|
75
|
+
import { formatarTamanhoDeArquivo as Ue } from "./utils/formatters/formatarTamanhoDeArquivo.js";
|
|
76
|
+
import { paletteWithAccent as Fe, seriesColors as Ge } from "./components/charts/palette/palette.js";
|
|
77
|
+
import { resolveSeriesColors as He } from "./components/charts/palette/seriesColor.js";
|
|
73
78
|
export {
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
m as Accordion,
|
|
80
|
+
a as Alert,
|
|
76
81
|
f as Avatar,
|
|
77
82
|
c as Badge,
|
|
78
83
|
l as Breadcrumb,
|
|
79
84
|
C as Button,
|
|
80
85
|
s as ButtonIcon,
|
|
81
86
|
d as ButtonTile,
|
|
82
|
-
|
|
83
|
-
|
|
87
|
+
g as Card,
|
|
88
|
+
b as ChartArea,
|
|
84
89
|
P as ChartBar,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
w as
|
|
88
|
-
E as
|
|
89
|
-
U as
|
|
90
|
-
F as
|
|
91
|
-
|
|
92
|
-
W as
|
|
93
|
-
Q as
|
|
94
|
-
z as
|
|
95
|
-
K as
|
|
96
|
-
V as
|
|
97
|
-
Y as
|
|
98
|
-
_ as
|
|
99
|
-
oo as
|
|
100
|
-
eo as
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
fo as
|
|
104
|
-
co as
|
|
105
|
-
lo as
|
|
106
|
-
Co as
|
|
107
|
-
so as
|
|
108
|
-
To as
|
|
109
|
-
ko as
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
Cr as
|
|
155
|
-
sr as
|
|
156
|
-
dr as
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
Pr as
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
wr as
|
|
163
|
-
Er as
|
|
164
|
-
Ur as
|
|
165
|
-
Fr as
|
|
166
|
-
|
|
167
|
-
Wr as
|
|
168
|
-
Qr as
|
|
169
|
-
zr as
|
|
170
|
-
Kr as
|
|
171
|
-
Vr as
|
|
172
|
-
Yr as
|
|
173
|
-
_r as
|
|
174
|
-
oe as
|
|
175
|
-
ee as
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
fe as
|
|
179
|
-
ce as
|
|
180
|
-
le as
|
|
181
|
-
Ce as
|
|
182
|
-
|
|
183
|
-
de as
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
90
|
+
A as ChartCombo,
|
|
91
|
+
B as ChartDonut,
|
|
92
|
+
w as ChartGauge,
|
|
93
|
+
E as ChartLine,
|
|
94
|
+
U as ChartMap,
|
|
95
|
+
F as ChartPie,
|
|
96
|
+
N as ChartRadial,
|
|
97
|
+
W as ChartSankey,
|
|
98
|
+
Q as ChartScatter,
|
|
99
|
+
z as ChartSunburst,
|
|
100
|
+
K as ChartTimeline,
|
|
101
|
+
V as ChartTooltip,
|
|
102
|
+
Y as ChartTreemap,
|
|
103
|
+
_ as ChartWaterfall,
|
|
104
|
+
oo as Checkbox,
|
|
105
|
+
eo as CheckboxGroup,
|
|
106
|
+
mo as CodeBlock,
|
|
107
|
+
ao as ColorPicker,
|
|
108
|
+
fo as ComboBox,
|
|
109
|
+
co as DatePicker,
|
|
110
|
+
lo as DateTimePicker,
|
|
111
|
+
Co as Dialog,
|
|
112
|
+
so as Drawer,
|
|
113
|
+
To as EmptyState,
|
|
114
|
+
ko as Field,
|
|
115
|
+
So as FileUpload,
|
|
116
|
+
Do as IconAlignCenter,
|
|
117
|
+
Ao as IconAlignLeft,
|
|
118
|
+
vo as IconAlignRight,
|
|
119
|
+
Bo as IconArrowDown,
|
|
120
|
+
Lo as IconArrowUp,
|
|
121
|
+
wo as IconBold,
|
|
122
|
+
Ro as IconCalendar,
|
|
123
|
+
Eo as IconChartBar,
|
|
124
|
+
Mo as IconCheck,
|
|
125
|
+
Uo as IconCheckCircle,
|
|
126
|
+
yo as IconChevronDown,
|
|
127
|
+
Fo as IconChevronExpand,
|
|
128
|
+
Go as IconChevronLeft,
|
|
129
|
+
No as IconChevronRight,
|
|
130
|
+
Ho as IconChevronUp,
|
|
131
|
+
Wo as IconClock,
|
|
132
|
+
qo as IconClose,
|
|
133
|
+
Qo as IconDesktop,
|
|
134
|
+
jo as IconDragHandle,
|
|
135
|
+
zo as IconExclamationCircle,
|
|
136
|
+
Jo as IconExclamationTriangle,
|
|
137
|
+
Ko as IconExternalLink,
|
|
138
|
+
Oo as IconEye,
|
|
139
|
+
Vo as IconFile,
|
|
140
|
+
Xo as IconFilter,
|
|
141
|
+
Yo as IconInfoCircle,
|
|
142
|
+
Zo as IconItalic,
|
|
143
|
+
_o as IconLightning,
|
|
144
|
+
$o as IconLink,
|
|
145
|
+
or as IconMinusCircle,
|
|
146
|
+
rr as IconMobile,
|
|
147
|
+
er as IconMore,
|
|
148
|
+
tr as IconPencil,
|
|
149
|
+
mr as IconPlus,
|
|
150
|
+
nr as IconPlusCircle,
|
|
151
|
+
ar as IconQuestionCircle,
|
|
152
|
+
pr as IconRedo,
|
|
153
|
+
fr as IconSearch,
|
|
154
|
+
xr as IconSidebar,
|
|
155
|
+
cr as IconStructure,
|
|
156
|
+
ir as IconTablet,
|
|
157
|
+
lr as IconTrash,
|
|
158
|
+
Ir as IconUndo,
|
|
159
|
+
Cr as IconUpload,
|
|
160
|
+
sr as InputCurrency,
|
|
161
|
+
dr as InputNumber,
|
|
162
|
+
gr as InputPassword,
|
|
163
|
+
br as InputText,
|
|
164
|
+
Pr as Label,
|
|
165
|
+
Ar as List,
|
|
166
|
+
Br as Menu,
|
|
167
|
+
wr as Pagination,
|
|
168
|
+
Er as Popover,
|
|
169
|
+
Ur as Progress,
|
|
170
|
+
Fr as Radio,
|
|
171
|
+
Nr as RadioGroup,
|
|
172
|
+
Wr as SegmentedControl,
|
|
173
|
+
Qr as Select,
|
|
174
|
+
zr as Skeleton,
|
|
175
|
+
Kr as SkipLink,
|
|
176
|
+
Vr as SortableList,
|
|
177
|
+
Yr as Spinner,
|
|
178
|
+
_r as Steps,
|
|
179
|
+
oe as Switch,
|
|
180
|
+
ee as Table,
|
|
181
|
+
me as Tabs,
|
|
182
|
+
ae as TabsNav,
|
|
183
|
+
fe as Tag,
|
|
184
|
+
ce as Textarea,
|
|
185
|
+
le as TimePicker,
|
|
186
|
+
Ce as Timeline,
|
|
187
|
+
se as ToastRegion,
|
|
188
|
+
de as Toolbar,
|
|
189
|
+
ge as Tooltip,
|
|
190
|
+
be as dismissToast,
|
|
191
|
+
De as formatarData,
|
|
192
|
+
Be as formatarDuracao,
|
|
193
|
+
Ae as formatarHora,
|
|
194
|
+
we as formatarMoeda,
|
|
195
|
+
Re as formatarNumero,
|
|
196
|
+
Ee as formatarPercentual,
|
|
197
|
+
Ue as formatarTamanhoDeArquivo,
|
|
198
|
+
Fe as paletteWithAccent,
|
|
199
|
+
He as resolveSeriesColors,
|
|
200
|
+
Ge as seriesColors,
|
|
201
|
+
Se as showToast
|
|
192
202
|
};
|
|
193
203
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type ChartHeight, type ChartLegendPosition, type MarkVisibility } from '../core/index.js';
|
|
2
|
+
import { type SeriesAppearance, type SeriesIntent } from '../palette/index.js';
|
|
3
|
+
/** Uma faixa da escala. A cor segue a regra da família: `color`, depois `intent`, depois a paleta. */
|
|
4
|
+
export interface ChartGaugeSegment extends SeriesAppearance {
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Limite superior, na unidade de `segmentUnit`. Omitido na última faixa, vai até `max`. */
|
|
7
|
+
to?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface ChartGaugeTarget {
|
|
10
|
+
label?: string;
|
|
11
|
+
value: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ChartGaugeDelta {
|
|
14
|
+
/** Formato do módulo da variação; o sinal é do componente. */
|
|
15
|
+
format?: (delta: number) => string;
|
|
16
|
+
/** Sem ela, positiva quando sobe e negativa quando desce. */
|
|
17
|
+
intent?: SeriesIntent;
|
|
18
|
+
label?: string;
|
|
19
|
+
value: number;
|
|
20
|
+
}
|
|
21
|
+
export type ChartGaugeIndicator = 'fill' | 'needle' | 'fillAndNeedle';
|
|
22
|
+
export type ChartGaugeSegmentStyle = 'track' | 'rim' | 'hidden';
|
|
23
|
+
export type ChartGaugeScaleLabels = 'hidden' | 'minMax' | 'ticks';
|
|
24
|
+
export type ChartGaugeSize = 'default' | 'compact';
|
|
25
|
+
export type ChartGaugeTicks = 'hidden' | 'major' | 'majorAndMinor';
|
|
26
|
+
/** Leitura contra a meta: a mesma palavra na exibição e na unidade das faixas. */
|
|
27
|
+
export type ChartGaugeValueDisplay = 'value' | 'percentOfTarget';
|
|
28
|
+
export type ChartGaugeSegmentUnit = 'value' | 'percentOfTarget';
|
|
29
|
+
export interface ChartGaugeProps {
|
|
30
|
+
accent?: string;
|
|
31
|
+
/** Troca a frase montada do `aria-valuetext`. */
|
|
32
|
+
ariaValueText?: string;
|
|
33
|
+
/** Texto sob o valor. Sem ele, na leitura contra a meta, a outra leitura. */
|
|
34
|
+
centerLabel?: string;
|
|
35
|
+
/** O arco assume a cor da faixa onde o valor está. */
|
|
36
|
+
colorBySegment?: boolean;
|
|
37
|
+
/** Cor do arco fora de `colorBySegment`. Vence `intent`. */
|
|
38
|
+
color?: string;
|
|
39
|
+
delta?: ChartGaugeDelta;
|
|
40
|
+
emptyMessage?: string;
|
|
41
|
+
/** Ângulo final, em graus a partir do topo. */
|
|
42
|
+
endAngle?: number;
|
|
43
|
+
/** Formato exato do balão e, na leitura contra a meta, do `aria-valuetext`. */
|
|
44
|
+
formatTooltipValue?: (value: number) => string;
|
|
45
|
+
/** Formato do centro, da escala e da meta. */
|
|
46
|
+
formatValue?: (value: number) => string;
|
|
47
|
+
height?: ChartHeight;
|
|
48
|
+
indicator?: ChartGaugeIndicator;
|
|
49
|
+
intent?: SeriesIntent;
|
|
50
|
+
legend?: ChartLegendPosition;
|
|
51
|
+
loading?: boolean;
|
|
52
|
+
/** Fim da escala. Omitido com meta, vai a 120% dela. */
|
|
53
|
+
max?: number;
|
|
54
|
+
min?: number;
|
|
55
|
+
/** De onde o arco preenchido parte. Sem ele, o zero quando a escala o cruza; senão, `min`. */
|
|
56
|
+
origin?: number;
|
|
57
|
+
scaleLabels?: ChartGaugeScaleLabels;
|
|
58
|
+
segmentStyle?: ChartGaugeSegmentStyle;
|
|
59
|
+
segmentUnit?: ChartGaugeSegmentUnit;
|
|
60
|
+
segments?: readonly ChartGaugeSegment[];
|
|
61
|
+
showCenter?: boolean;
|
|
62
|
+
showSegmentLabels?: MarkVisibility;
|
|
63
|
+
showTooltip?: boolean;
|
|
64
|
+
size?: ChartGaugeSize;
|
|
65
|
+
/** Ângulo inicial, em graus a partir do topo. */
|
|
66
|
+
startAngle?: number;
|
|
67
|
+
target?: ChartGaugeTarget;
|
|
68
|
+
/** Espessura do arco, em pixels. No compacto, até 10. */
|
|
69
|
+
thickness?: number;
|
|
70
|
+
tickCount?: number;
|
|
71
|
+
ticks?: ChartGaugeTicks;
|
|
72
|
+
title: string;
|
|
73
|
+
/** Raio das pontas, limitado a metade da espessura. Sem valor, o token de raio pequeno. */
|
|
74
|
+
trackRadius?: number;
|
|
75
|
+
/** `null` é sem dado. */
|
|
76
|
+
value: number | null;
|
|
77
|
+
valueDisplay?: ChartGaugeValueDisplay;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Medidor de um valor numa escala com faixas de significado. É `role="meter"`: o leitor de tela ouve o valor, a faixa,
|
|
81
|
+
* a meta e a variação. Carregando ou sem dado, vira `role="img"`.
|
|
82
|
+
*/
|
|
83
|
+
export declare function ChartGauge({ accent, ariaValueText, centerLabel, colorBySegment, color, delta, emptyMessage, endAngle, formatTooltipValue, formatValue, height, indicator, intent, legend, loading, max, min, origin, scaleLabels, segmentStyle, segmentUnit, segments, showCenter, showSegmentLabels, showTooltip, size, startAngle, target, thickness, tickCount, ticks, title, trackRadius, value, valueDisplay, }: ChartGaugeProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type LabelFont } from '../core/index.js';
|
|
2
|
+
import type { ChartGaugeScaleLabels, ChartGaugeTicks } from './ChartGauge.js';
|
|
3
|
+
import type { CenterLine, GaugeCenter } from './gaugeReading.js';
|
|
4
|
+
export type TextAnchor = 'start' | 'middle' | 'end';
|
|
5
|
+
export interface AngledLabel {
|
|
6
|
+
angle: number;
|
|
7
|
+
text: string;
|
|
8
|
+
}
|
|
9
|
+
export interface OutsideLabel extends AngledLabel {
|
|
10
|
+
kind: 'segment' | 'target';
|
|
11
|
+
}
|
|
12
|
+
export interface PlacedLabel<T extends AngledLabel = AngledLabel> {
|
|
13
|
+
anchor: TextAnchor;
|
|
14
|
+
label: T;
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
}
|
|
18
|
+
export interface GaugeLayoutInput {
|
|
19
|
+
center: GaugeCenter;
|
|
20
|
+
compact: boolean;
|
|
21
|
+
/** Radianos a partir do topo, no sentido horário. */
|
|
22
|
+
endAngle: number;
|
|
23
|
+
font: LabelFont;
|
|
24
|
+
height: number;
|
|
25
|
+
/** Rótulos de ponta, mínimo e máximo, quando `scaleLabels` é `minMax`. */
|
|
26
|
+
minMaxLabels: readonly [AngledLabel, AngledLabel];
|
|
27
|
+
needle: boolean;
|
|
28
|
+
/** Régua e marca da meta, além do raio externo do arco. */
|
|
29
|
+
outerBand: number;
|
|
30
|
+
outsideLabels: readonly OutsideLabel[];
|
|
31
|
+
scaleLabels: ChartGaugeScaleLabels;
|
|
32
|
+
startAngle: number;
|
|
33
|
+
thickness: number;
|
|
34
|
+
/** Rótulos das marcas principais, na ordem em que disputam espaço. */
|
|
35
|
+
tickLabels: readonly AngledLabel[];
|
|
36
|
+
ticks: ChartGaugeTicks;
|
|
37
|
+
width: number;
|
|
38
|
+
}
|
|
39
|
+
export interface GaugeCenterLayout {
|
|
40
|
+
height: number;
|
|
41
|
+
lineHeight: number;
|
|
42
|
+
lines: readonly CenterLine[];
|
|
43
|
+
top: number;
|
|
44
|
+
value?: {
|
|
45
|
+
family: string;
|
|
46
|
+
size: number;
|
|
47
|
+
text: string;
|
|
48
|
+
};
|
|
49
|
+
width: number;
|
|
50
|
+
}
|
|
51
|
+
export interface GaugeLayout {
|
|
52
|
+
center: GaugeCenterLayout;
|
|
53
|
+
cx: number;
|
|
54
|
+
cy: number;
|
|
55
|
+
innerRadius: number;
|
|
56
|
+
outsideLabels: readonly PlacedLabel<OutsideLabel>[];
|
|
57
|
+
pinRadius: number;
|
|
58
|
+
radius: number;
|
|
59
|
+
scaleLabels: readonly PlacedLabel[];
|
|
60
|
+
thickness: number;
|
|
61
|
+
}
|
|
62
|
+
export declare function pointAt(angle: number, radius: number): [number, number];
|
|
63
|
+
/** Maior raio em que arco, rótulos e centro cabem na área, e a posição de cada rótulo nele. */
|
|
64
|
+
export declare function layoutGauge(input: GaugeLayoutInput): GaugeLayout;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { ChartTooltipRow } from '../ChartTooltip/index.js';
|
|
2
|
+
import type { SeriesIntent } from '../palette/index.js';
|
|
3
|
+
import type { ChartGaugeDelta, ChartGaugeTarget } from './ChartGauge.js';
|
|
4
|
+
import { type GaugeDomain, type GaugeSegment } from './gaugeScale.js';
|
|
5
|
+
/** Como o medidor lê o valor: no formato do consumidor ou contra a meta. */
|
|
6
|
+
export interface GaugeReading {
|
|
7
|
+
/** Leitura contra a meta: a outra leitura no centro, a linha Atingido no balão e as duas no `aria-valuetext`. */
|
|
8
|
+
againstTarget: boolean;
|
|
9
|
+
/** Meta positiva, base do atingimento. */
|
|
10
|
+
base: number | null;
|
|
11
|
+
formatExact: (value: number) => string;
|
|
12
|
+
formatValue: (value: number) => string;
|
|
13
|
+
/** Centro, escala e intervalos em percentual da meta. */
|
|
14
|
+
showsPercent: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type CenterLine = {
|
|
17
|
+
kind: 'text';
|
|
18
|
+
text: string;
|
|
19
|
+
} | {
|
|
20
|
+
glyph: string;
|
|
21
|
+
kind: 'warn';
|
|
22
|
+
short: string;
|
|
23
|
+
text: string;
|
|
24
|
+
} | {
|
|
25
|
+
glyph: string;
|
|
26
|
+
intent: SeriesIntent;
|
|
27
|
+
kind: 'delta';
|
|
28
|
+
label?: string;
|
|
29
|
+
text: string;
|
|
30
|
+
};
|
|
31
|
+
export interface GaugeCenter {
|
|
32
|
+
lines: readonly CenterLine[];
|
|
33
|
+
value?: string;
|
|
34
|
+
}
|
|
35
|
+
export type GaugeStatus = 'loading' | 'empty' | 'value';
|
|
36
|
+
export interface GaugeTooltip {
|
|
37
|
+
rows: ChartTooltipRow[];
|
|
38
|
+
subtitle?: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Quem pede `percentOfTarget`, na exibição ou nas faixas, liga a leitura contra a meta; sem meta, vale o valor. */
|
|
42
|
+
export declare function gaugeReading(options: {
|
|
43
|
+
base: number | null;
|
|
44
|
+
formatTooltipValue?: (value: number) => string;
|
|
45
|
+
formatValue: (value: number) => string;
|
|
46
|
+
segmentUnit: string;
|
|
47
|
+
valueDisplay: string;
|
|
48
|
+
}): GaugeReading;
|
|
49
|
+
export declare function formatAttainment(reading: GaugeReading, value: number): string;
|
|
50
|
+
/** O número como a exibição escolhida o mostra. */
|
|
51
|
+
export declare function formatShown(reading: GaugeReading, value: number): string;
|
|
52
|
+
/** A leitura que a exibição não escolheu, como "92% de R$ 2 mi" ou "R$ 1,84 mi de R$ 2 mi". */
|
|
53
|
+
export declare function otherReading(reading: GaugeReading, value: number, format: (value: number) => string): string;
|
|
54
|
+
export declare function rangeText(reading: GaugeReading, segment: GaugeSegment): string;
|
|
55
|
+
export declare function segmentName(segment: GaugeSegment): string;
|
|
56
|
+
/** O sinal é do componente; o `format` recebe o módulo da variação. */
|
|
57
|
+
export declare function deltaText(delta: ChartGaugeDelta): string;
|
|
58
|
+
export declare function hasDelta(delta: ChartGaugeDelta | undefined): delta is ChartGaugeDelta;
|
|
59
|
+
export declare function gaugeCenter(options: {
|
|
60
|
+
centerLabel?: string;
|
|
61
|
+
compact: boolean;
|
|
62
|
+
delta?: ChartGaugeDelta;
|
|
63
|
+
domain: GaugeDomain;
|
|
64
|
+
emptyMessage: string;
|
|
65
|
+
reading: GaugeReading;
|
|
66
|
+
showCenter: boolean;
|
|
67
|
+
status: GaugeStatus;
|
|
68
|
+
value: number;
|
|
69
|
+
}): GaugeCenter;
|
|
70
|
+
/** A frase do `aria-valuetext`: o valor, o que excede a escala, a faixa, a meta e a variação. */
|
|
71
|
+
export declare function gaugeValueText(options: {
|
|
72
|
+
delta?: ChartGaugeDelta;
|
|
73
|
+
domain: GaugeDomain;
|
|
74
|
+
reading: GaugeReading;
|
|
75
|
+
segment?: GaugeSegment;
|
|
76
|
+
target?: ChartGaugeTarget;
|
|
77
|
+
value: number;
|
|
78
|
+
}): string;
|
|
79
|
+
/** Balão do centro ou do arco sem faixas: a faixa do valor, o valor, a meta, o atingido e a variação. */
|
|
80
|
+
export declare function valueTooltip(options: {
|
|
81
|
+
color: string;
|
|
82
|
+
delta?: ChartGaugeDelta;
|
|
83
|
+
domain: GaugeDomain;
|
|
84
|
+
reading: GaugeReading;
|
|
85
|
+
segment?: GaugeSegment;
|
|
86
|
+
target?: ChartGaugeTarget;
|
|
87
|
+
title: string;
|
|
88
|
+
value: number;
|
|
89
|
+
}): GaugeTooltip;
|
|
90
|
+
/** Balão de uma faixa: o intervalo dela, o valor atual e se ele está ali. */
|
|
91
|
+
export declare function segmentTooltip(options: {
|
|
92
|
+
current?: GaugeSegment;
|
|
93
|
+
reading: GaugeReading;
|
|
94
|
+
segment: GaugeSegment;
|
|
95
|
+
target?: ChartGaugeTarget;
|
|
96
|
+
value: number;
|
|
97
|
+
}): GaugeTooltip;
|