panelui-native 0.101.0 → 0.102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/module/components/card/index.js +1 -1
- package/lib/module/components/card/index.js.map +1 -1
- package/lib/module/components/planner/index.js +8 -1
- package/lib/module/components/planner/index.js.map +1 -1
- package/lib/module/components/sankey-chart/index.js +801 -165
- package/lib/module/components/sankey-chart/index.js.map +1 -1
- package/lib/module/components/sankey-chart/sankey-layout.js +226 -0
- package/lib/module/components/sankey-chart/sankey-layout.js.map +1 -1
- package/lib/module/components/spinner/index.js +13 -3
- package/lib/module/components/spinner/index.js.map +1 -1
- package/lib/module/components/support/index.js +842 -0
- package/lib/module/components/support/index.js.map +1 -0
- package/lib/module/components/typography/index.js +10 -2
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/icons/index.js +40 -0
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/chart.js +24 -0
- package/lib/module/utils/chart.js.map +1 -1
- package/lib/typescript/src/components/planner/index.d.ts.map +1 -1
- package/lib/typescript/src/components/sankey-chart/index.d.ts +131 -5
- package/lib/typescript/src/components/sankey-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/sankey-chart/sankey-layout.d.ts +49 -6
- package/lib/typescript/src/components/sankey-chart/sankey-layout.d.ts.map +1 -1
- package/lib/typescript/src/components/spinner/index.d.ts +18 -1
- package/lib/typescript/src/components/spinner/index.d.ts.map +1 -1
- package/lib/typescript/src/components/support/index.d.ts +376 -0
- package/lib/typescript/src/components/support/index.d.ts.map +1 -0
- package/lib/typescript/src/components/typography/index.d.ts +0 -3
- package/lib/typescript/src/components/typography/index.d.ts.map +1 -1
- package/lib/typescript/src/icons/index.d.ts +8 -0
- package/lib/typescript/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/chart.d.ts +11 -0
- package/lib/typescript/src/utils/chart.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/card/index.tsx +1 -1
- package/src/components/planner/index.tsx +8 -1
- package/src/components/sankey-chart/index.tsx +935 -172
- package/src/components/sankey-chart/sankey-layout.ts +276 -2
- package/src/components/spinner/index.tsx +27 -1
- package/src/components/support/index.tsx +877 -0
- package/src/components/typography/index.tsx +10 -2
- package/src/icons/index.tsx +16 -0
- package/src/index.ts +35 -0
- package/src/utils/chart.ts +40 -0
|
@@ -45,8 +45,16 @@ const typographyVariants = tv({
|
|
|
45
45
|
'body-xs': 'text-xs font-normal',
|
|
46
46
|
/** Body, one step up — for a number or a name that carries the row. */
|
|
47
47
|
large: 'text-lg font-semibold',
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
/*
|
|
49
|
+
* Body, one step down and tighter — captions, footnotes, meta.
|
|
50
|
+
*
|
|
51
|
+
* Tight, but not tighter than the glyphs. A line height equal to the
|
|
52
|
+
* font size leaves nothing below the baseline, and Android clips what
|
|
53
|
+
* does not fit: `g`, `j`, `p`, `q` and `y` lose their tails. iOS draws
|
|
54
|
+
* them anyway, which is why this survived — it is a bug on both, and
|
|
55
|
+
* only one of them shows it.
|
|
56
|
+
*/
|
|
57
|
+
small: 'text-sm font-medium leading-tight',
|
|
50
58
|
blockquote: 'text-base font-normal italic',
|
|
51
59
|
code: 'font-mono text-sm text-foreground',
|
|
52
60
|
},
|
package/src/icons/index.tsx
CHANGED
|
@@ -123,6 +123,14 @@ import HgShieldCheckIcon from '@hugeicons/core-free-icons/ShieldCheckIcon';
|
|
|
123
123
|
import HgSparklesIcon from '@hugeicons/core-free-icons/SparklesIcon';
|
|
124
124
|
import HgStarIcon from '@hugeicons/core-free-icons/StarIcon';
|
|
125
125
|
import HgSun03Icon from '@hugeicons/core-free-icons/Sun03Icon';
|
|
126
|
+
import HgBook02Icon from '@hugeicons/core-free-icons/Book02Icon';
|
|
127
|
+
import HgBug01Icon from '@hugeicons/core-free-icons/Bug01Icon';
|
|
128
|
+
import HgCall02Icon from '@hugeicons/core-free-icons/Call02Icon';
|
|
129
|
+
import HgHeadsetIcon from '@hugeicons/core-free-icons/HeadsetIcon';
|
|
130
|
+
import HgHelpCircleIcon from '@hugeicons/core-free-icons/HelpCircleIcon';
|
|
131
|
+
import HgLifebuoyIcon from '@hugeicons/core-free-icons/LifebuoyIcon';
|
|
132
|
+
import HgMail01Icon from '@hugeicons/core-free-icons/Mail01Icon';
|
|
133
|
+
import HgTicket01Icon from '@hugeicons/core-free-icons/Ticket01Icon';
|
|
126
134
|
import HgTextBoldIcon from '@hugeicons/core-free-icons/TextBoldIcon';
|
|
127
135
|
import HgTextItalicIcon from '@hugeicons/core-free-icons/TextItalicIcon';
|
|
128
136
|
import HgTick02Icon from '@hugeicons/core-free-icons/Tick02Icon';
|
|
@@ -404,6 +412,14 @@ export const MessageCircleIcon = icon(HgBubbleChatIcon, {
|
|
|
404
412
|
fillable: true,
|
|
405
413
|
});
|
|
406
414
|
export const CardIcon = icon(HgCreditCardIcon, { size: 16, color: '#737373' });
|
|
415
|
+
export const HeadsetIcon = icon(HgHeadsetIcon, { size: 16, color: '#737373' });
|
|
416
|
+
export const LifebuoyIcon = icon(HgLifebuoyIcon, { size: 16, color: '#737373' });
|
|
417
|
+
export const HelpCircleIcon = icon(HgHelpCircleIcon, { size: 16, color: '#737373' });
|
|
418
|
+
export const MailIcon = icon(HgMail01Icon, { size: 16, color: '#737373' });
|
|
419
|
+
export const CallIcon = icon(HgCall02Icon, { size: 16, color: '#737373' });
|
|
420
|
+
export const BugIcon = icon(HgBug01Icon, { size: 16, color: '#737373' });
|
|
421
|
+
export const BookIcon = icon(HgBook02Icon, { size: 16, color: '#737373' });
|
|
422
|
+
export const TicketIcon = icon(HgTicket01Icon, { size: 16, color: '#737373' });
|
|
407
423
|
export const ReceiptIcon = icon(HgReceiptIcon, { size: 16, color: '#737373' });
|
|
408
424
|
export const SunIcon = icon(HgSun03Icon, { size: 18, color: '#f5f5f5' });
|
|
409
425
|
export const MoonIcon = icon(HgMoonIcon, { size: 18, color: '#262626' });
|
package/src/index.ts
CHANGED
|
@@ -1111,6 +1111,28 @@ export {
|
|
|
1111
1111
|
type RingChartLegendProps,
|
|
1112
1112
|
type RingDatum,
|
|
1113
1113
|
} from './components/ring-chart';
|
|
1114
|
+
export {
|
|
1115
|
+
Support,
|
|
1116
|
+
useSupport,
|
|
1117
|
+
type SupportProps,
|
|
1118
|
+
type SupportHeaderProps,
|
|
1119
|
+
type SupportStatusProps,
|
|
1120
|
+
type SupportGroupProps,
|
|
1121
|
+
type SupportChannelProps,
|
|
1122
|
+
type SupportTopicsProps,
|
|
1123
|
+
type SupportTopicProps,
|
|
1124
|
+
type SupportConversationProps,
|
|
1125
|
+
type SupportArticleProps,
|
|
1126
|
+
type SupportAgentProps,
|
|
1127
|
+
type SupportTicketProps,
|
|
1128
|
+
type SupportHandoffProps,
|
|
1129
|
+
type SupportNoteProps,
|
|
1130
|
+
type SupportRepliesProps,
|
|
1131
|
+
type SupportReplyProps,
|
|
1132
|
+
type SupportResolutionProps,
|
|
1133
|
+
type SupportAvailability,
|
|
1134
|
+
type SupportConversationStatus,
|
|
1135
|
+
} from './components/support';
|
|
1114
1136
|
export {
|
|
1115
1137
|
SankeyChart,
|
|
1116
1138
|
useSankeyChart,
|
|
@@ -1122,10 +1144,15 @@ export {
|
|
|
1122
1144
|
type SankeyChartLabelsProps,
|
|
1123
1145
|
type SankeyChartTooltipProps,
|
|
1124
1146
|
type SankeyChartSkeletonProps,
|
|
1147
|
+
type SankeyChartBreakdownProps,
|
|
1148
|
+
type SankeyChartLegendProps,
|
|
1149
|
+
type SankeyChartFlow,
|
|
1125
1150
|
type SankeyChartStatus,
|
|
1126
1151
|
type SankeyNode,
|
|
1127
1152
|
type SankeyLink,
|
|
1128
1153
|
type SankeyAlign,
|
|
1154
|
+
type SankeyCollapse,
|
|
1155
|
+
type SankeyOrientation,
|
|
1129
1156
|
} from './components/sankey-chart';
|
|
1130
1157
|
export {
|
|
1131
1158
|
ScatterChart,
|
|
@@ -1481,6 +1508,14 @@ export {
|
|
|
1481
1508
|
CalendarIcon,
|
|
1482
1509
|
CameraIcon,
|
|
1483
1510
|
CardIcon,
|
|
1511
|
+
HeadsetIcon,
|
|
1512
|
+
LifebuoyIcon,
|
|
1513
|
+
HelpCircleIcon,
|
|
1514
|
+
MailIcon,
|
|
1515
|
+
CallIcon,
|
|
1516
|
+
BugIcon,
|
|
1517
|
+
BookIcon,
|
|
1518
|
+
TicketIcon,
|
|
1484
1519
|
CheckCircleIcon,
|
|
1485
1520
|
CheckIcon,
|
|
1486
1521
|
ChevronDownIcon,
|
package/src/utils/chart.ts
CHANGED
|
@@ -1174,6 +1174,46 @@ export function ribbonPath(
|
|
|
1174
1174
|
* is the S that reads as one continuous flow, and `0` gives a straight
|
|
1175
1175
|
* diagonal.
|
|
1176
1176
|
*/
|
|
1177
|
+
/**
|
|
1178
|
+
* The same ribbon, running down the screen instead of across it.
|
|
1179
|
+
*
|
|
1180
|
+
* Written out rather than produced by swapping the arguments of `flowPath`,
|
|
1181
|
+
* because the coordinates in a path string are ordered and a worklet cannot
|
|
1182
|
+
* reorder them after the fact without building the string twice. The shape is
|
|
1183
|
+
* identical, reflected about the diagonal: the ends stay horizontal so a
|
|
1184
|
+
* ribbon still meets the flat side of a node, and `curve` reaches down the run
|
|
1185
|
+
* rather than along it.
|
|
1186
|
+
*/
|
|
1187
|
+
export function flowPathVertical(
|
|
1188
|
+
y0: number,
|
|
1189
|
+
cx0: number,
|
|
1190
|
+
y1: number,
|
|
1191
|
+
cx1: number,
|
|
1192
|
+
thickness: number,
|
|
1193
|
+
curve: number
|
|
1194
|
+
): string {
|
|
1195
|
+
'worklet';
|
|
1196
|
+
if (!(thickness > 0)) return '';
|
|
1197
|
+
|
|
1198
|
+
const half = thickness / 2;
|
|
1199
|
+
const leftStart = cx0 - half;
|
|
1200
|
+
const leftEnd = cx1 - half;
|
|
1201
|
+
const rightStart = cx0 + half;
|
|
1202
|
+
const rightEnd = cx1 + half;
|
|
1203
|
+
|
|
1204
|
+
const run = y1 - y0;
|
|
1205
|
+
const near = y0 + run * curve;
|
|
1206
|
+
const far = y1 - run * curve;
|
|
1207
|
+
|
|
1208
|
+
return (
|
|
1209
|
+
`M${leftStart},${y0}` +
|
|
1210
|
+
`C${leftStart},${near},${leftEnd},${far},${leftEnd},${y1}` +
|
|
1211
|
+
`L${rightEnd},${y1}` +
|
|
1212
|
+
`C${rightEnd},${far},${rightStart},${near},${rightStart},${y0}` +
|
|
1213
|
+
`Z`
|
|
1214
|
+
);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1177
1217
|
export function flowPath(
|
|
1178
1218
|
x0: number,
|
|
1179
1219
|
cy0: number,
|