@brycks/core-front 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data/PieChart/PieChart.cjs +2 -0
- package/dist/components/data/PieChart/PieChart.cjs.map +1 -0
- package/dist/components/data/PieChart/PieChart.js +132 -0
- package/dist/components/data/PieChart/PieChart.js.map +1 -0
- package/dist/components/data/Table/Table.cjs.map +1 -1
- package/dist/components/data/Table/Table.js.map +1 -1
- package/dist/components/data.cjs +1 -1
- package/dist/components/data.js +16 -14
- package/dist/components/data.js.map +1 -1
- package/dist/data.d.ts +40 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +40 -0
- package/dist/index.js +37 -35
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2782,6 +2782,46 @@ export declare type PaginationSize = 'sm' | 'md' | 'lg';
|
|
|
2782
2782
|
|
|
2783
2783
|
export declare type PaginationVariant = 'default' | 'simple' | 'minimal';
|
|
2784
2784
|
|
|
2785
|
+
export declare const PieChart: ForwardRefExoticComponent<PieChartProps & RefAttributes<HTMLDivElement>>;
|
|
2786
|
+
|
|
2787
|
+
export declare type PieChartLegend = 'right' | 'bottom' | 'none';
|
|
2788
|
+
|
|
2789
|
+
export declare interface PieChartProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
2790
|
+
/** Fatias do gráfico */
|
|
2791
|
+
data: PieSlice[];
|
|
2792
|
+
/** Diâmetro do gráfico em px */
|
|
2793
|
+
size?: number;
|
|
2794
|
+
/** Espessura do anel em px. `0` = pizza cheia; padrão = rosca */
|
|
2795
|
+
thickness?: number;
|
|
2796
|
+
/** Posição da legenda */
|
|
2797
|
+
legend?: PieChartLegend;
|
|
2798
|
+
/** Rótulo no centro da rosca (ignorado quando `thickness = 0`) */
|
|
2799
|
+
centerLabel?: ReactNode;
|
|
2800
|
+
/** Conteúdo central; por padrão, a soma dos valores */
|
|
2801
|
+
centerValue?: ReactNode;
|
|
2802
|
+
/** Formata valores na legenda, no centro e no resumo acessível */
|
|
2803
|
+
valueFormatter?: (value: number) => string;
|
|
2804
|
+
/** Exibe a participação percentual de cada fatia na legenda */
|
|
2805
|
+
showShare?: boolean;
|
|
2806
|
+
/** Texto quando não há dado positivo */
|
|
2807
|
+
emptyText?: string;
|
|
2808
|
+
/** Custom class name */
|
|
2809
|
+
className?: string;
|
|
2810
|
+
/** Test ID */
|
|
2811
|
+
testId?: string;
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
export declare interface PieSlice {
|
|
2815
|
+
/** Chave estável da fatia */
|
|
2816
|
+
id: string;
|
|
2817
|
+
/** Rótulo legível (aparece na legenda e no leitor de tela) */
|
|
2818
|
+
label: string;
|
|
2819
|
+
/** Valor absoluto — negativos são ignorados */
|
|
2820
|
+
value: number;
|
|
2821
|
+
/** Cor da fatia; use um token (`var(--brycks-*)`). Sem cor, entra na paleta padrão. */
|
|
2822
|
+
color?: string;
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2785
2825
|
export declare const Popover: default_2.ForwardRefExoticComponent<PopoverProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
2786
2826
|
|
|
2787
2827
|
export declare type PopoverPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
package/dist/index.js
CHANGED
|
@@ -81,30 +81,31 @@ import { SegmentedControl as Bt } from "./components/navigation/SegmentedControl
|
|
|
81
81
|
import { Table as Rt, TableBody as Gt, TableCaption as Ot, TableCell as Et, TableEmpty as Vt, TableFoot as Wt, TableHead as Kt, TableHeader as Nt, TableRow as Qt, TableSkeleton as qt } from "./components/data/Table/Table.js";
|
|
82
82
|
import { List as Yt, ListDivider as Zt, ListHeader as jt, ListItem as Jt } from "./components/data/List/List.js";
|
|
83
83
|
import { InfoItem as _t, InfoList as $t } from "./components/data/InfoItem/InfoItem.js";
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
84
|
+
import { PieChart as ep } from "./components/data/PieChart/PieChart.js";
|
|
85
|
+
import { Badge as tp } from "./components/utility/Badge/Badge.js";
|
|
86
|
+
import { Loader as mp, Spinner as ap } from "./components/utility/Loader/Loader.js";
|
|
87
|
+
import { Skeleton as np, SkeletonText as fp } from "./components/utility/Skeleton/Skeleton.js";
|
|
88
|
+
import { Divider as xp } from "./components/utility/Divider/Divider.js";
|
|
89
|
+
import { EmptyState as cp, EmptyStateIcon as lp } from "./components/utility/EmptyState/EmptyState.js";
|
|
90
|
+
import { Portal as gp } from "./components/utility/Portal/Portal.js";
|
|
91
|
+
import { FocusTrap as Tp } from "./components/utility/FocusTrap/FocusTrap.js";
|
|
92
|
+
import { Overlay as Ip } from "./components/utility/Overlay/Overlay.js";
|
|
93
|
+
import { ScreenReaderOnly as yp, SrOnly as Cp } from "./components/utility/ScreenReaderOnly/ScreenReaderOnly.js";
|
|
94
|
+
import { Avatar as zp } from "./components/utility/Avatar/Avatar.js";
|
|
95
|
+
import { Logo as Pp } from "./components/utility/Logo/Logo.js";
|
|
96
|
+
import { Kbd as vp } from "./components/utility/Kbd/Kbd.js";
|
|
97
|
+
import { Article as wp, Aside as Hp, Footer as Ap, Header as Bp, Main as Mp, Nav as Rp } from "./components/layout/Semantic/Semantic.js";
|
|
97
98
|
export {
|
|
98
99
|
lt as Accordion,
|
|
99
100
|
ut as AccordionContent,
|
|
100
101
|
gt as AccordionItem,
|
|
101
102
|
St as AccordionTrigger,
|
|
102
103
|
Nr as Alert,
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
wp as Article,
|
|
105
|
+
Hp as Aside,
|
|
105
106
|
Ge as AspectRatio,
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
zp as Avatar,
|
|
108
|
+
tp as Badge,
|
|
108
109
|
qr as Banner,
|
|
109
110
|
le as Box,
|
|
110
111
|
wt as Breadcrumb,
|
|
@@ -120,21 +121,21 @@ export {
|
|
|
120
121
|
Ce as Container,
|
|
121
122
|
Cr as DateInput,
|
|
122
123
|
Ze as Display,
|
|
123
|
-
|
|
124
|
+
xp as Divider,
|
|
124
125
|
rt as Drawer,
|
|
125
126
|
Gr as DropZone,
|
|
126
127
|
bt as Dropdown,
|
|
127
128
|
It as DropdownDivider,
|
|
128
129
|
ht as DropdownItem,
|
|
129
130
|
yt as DropdownLabel,
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
cp as EmptyState,
|
|
132
|
+
lp as EmptyStateIcon,
|
|
132
133
|
vr as FieldError,
|
|
133
134
|
zr as FileInput,
|
|
134
135
|
Be as Flex,
|
|
135
136
|
Me as FlexItem,
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
Tp as FocusTrap,
|
|
138
|
+
Ap as Footer,
|
|
138
139
|
wr as Form,
|
|
139
140
|
Er as FormCard,
|
|
140
141
|
Pr as FormField,
|
|
@@ -143,7 +144,7 @@ export {
|
|
|
143
144
|
Ie as Grid,
|
|
144
145
|
he as GridItem,
|
|
145
146
|
ge as HStack,
|
|
146
|
-
|
|
147
|
+
Bp as Header,
|
|
147
148
|
je as Heading,
|
|
148
149
|
or as Icon,
|
|
149
150
|
_e as IconButton,
|
|
@@ -152,38 +153,39 @@ export {
|
|
|
152
153
|
_t as InfoItem,
|
|
153
154
|
$t as InfoList,
|
|
154
155
|
pr as Input,
|
|
155
|
-
|
|
156
|
+
vp as Kbd,
|
|
156
157
|
Yt as List,
|
|
157
158
|
Zt as ListDivider,
|
|
158
159
|
jt as ListHeader,
|
|
159
160
|
Jt as ListItem,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
mp as Loader,
|
|
162
|
+
Pp as Logo,
|
|
163
|
+
Mp as Main,
|
|
163
164
|
Ft as Menu,
|
|
164
165
|
zt as MenuDivider,
|
|
165
166
|
Dt as MenuGroup,
|
|
166
167
|
Pt as MenuItem,
|
|
167
168
|
Wr as Modal,
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
Rp as Nav,
|
|
170
|
+
Ip as Overlay,
|
|
170
171
|
vt as Pagination,
|
|
172
|
+
ep as PieChart,
|
|
171
173
|
pt as Popover,
|
|
172
|
-
|
|
174
|
+
gp as Portal,
|
|
173
175
|
at as Progress,
|
|
174
176
|
Tr as Radio,
|
|
175
177
|
br as RadioGroup,
|
|
176
|
-
|
|
178
|
+
yp as ScreenReaderOnly,
|
|
177
179
|
ar as SearchInput,
|
|
178
180
|
Le as Section,
|
|
179
181
|
Bt as SegmentedControl,
|
|
180
182
|
sr as Select,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
+
np as Skeleton,
|
|
184
|
+
fp as SkeletonText,
|
|
183
185
|
hr as Slider,
|
|
184
186
|
He as Spacer,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
+
ap as Spinner,
|
|
188
|
+
Cp as SrOnly,
|
|
187
189
|
Se as Stack,
|
|
188
190
|
lr as Switch,
|
|
189
191
|
nt as Tab,
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|