@agentiffai/design 0.1.11 → 0.1.12
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/copilotkit/index.cjs +75 -85
- package/dist/copilotkit/index.cjs.map +1 -1
- package/dist/copilotkit/index.js +76 -86
- package/dist/copilotkit/index.js.map +1 -1
- package/dist/icons/index.cjs +164 -1
- package/dist/icons/index.cjs.map +1 -1
- package/dist/icons/index.d.cts +19 -1
- package/dist/icons/index.d.ts +19 -1
- package/dist/icons/index.js +164 -2
- package/dist/icons/index.js.map +1 -1
- package/dist/index.cjs +265 -94
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +265 -95
- package/dist/index.js.map +1 -1
- package/dist/layout/index.cjs +21 -21
- package/dist/layout/index.cjs.map +1 -1
- package/dist/layout/index.js +21 -21
- package/dist/layout/index.js.map +1 -1
- package/dist/workflow/index.cjs +2 -2
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.js +2 -2
- package/dist/workflow/index.js.map +1 -1
- package/package.json +1 -1
package/dist/icons/index.d.ts
CHANGED
|
@@ -146,6 +146,24 @@ declare namespace LinkedInIcon {
|
|
|
146
146
|
var displayName: string;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
type PostizIconVariant = 'colored' | 'black' | 'white';
|
|
150
|
+
interface PostizIconProps extends Partial<AriaButtonProps> {
|
|
151
|
+
variant?: PostizIconVariant;
|
|
152
|
+
size?: number;
|
|
153
|
+
className?: string;
|
|
154
|
+
style?: React.CSSProperties;
|
|
155
|
+
'aria-label'?: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Postiz logo - Official Postiz social media scheduling platform logo
|
|
160
|
+
* Brand colors: Purple (#612bd3), Dark (#131019), White (#fff)
|
|
161
|
+
*/
|
|
162
|
+
declare function PostizIcon({ variant, size, className, style, 'aria-label': ariaLabel, onPress, ...ariaProps }: PostizIconProps): react_jsx_runtime.JSX.Element;
|
|
163
|
+
declare namespace PostizIcon {
|
|
164
|
+
var displayName: string;
|
|
165
|
+
}
|
|
166
|
+
|
|
149
167
|
type RedditIconVariant = 'colored' | 'black' | 'white';
|
|
150
168
|
interface RedditIconProps extends Omit<SVGAttributes<SVGSVGElement>, 'viewBox' | 'fill' | 'xmlns'> {
|
|
151
169
|
/** Visual variant of the icon */
|
|
@@ -377,4 +395,4 @@ declare namespace YouTubeIcon {
|
|
|
377
395
|
var displayName: string;
|
|
378
396
|
}
|
|
379
397
|
|
|
380
|
-
export { FacebookIcon, type FacebookIconProps, type FacebookIconVariant, GmailIcon, type GmailIconProps, type GmailIconVariant, InstagramIcon, type InstagramIconProps, type InstagramVariant, LinkedInIcon, type LinkedInIconProps, type LinkedInIconVariant, RedditIcon, type RedditIconProps, type RedditIconVariant, SlackIcon, type SlackIconProps, type SlackIconVariant, TelegramIcon, type TelegramIconProps, type TelegramIconVariant, WhatsAppIcon, type WhatsAppIconProps, type WhatsAppIconVariant, XIcon, type XIconProps, type XIconVariant, YouTubeIcon, type YouTubeIconProps, type YouTubeIconVariant };
|
|
398
|
+
export { FacebookIcon, type FacebookIconProps, type FacebookIconVariant, GmailIcon, type GmailIconProps, type GmailIconVariant, InstagramIcon, type InstagramIconProps, type InstagramVariant, LinkedInIcon, type LinkedInIconProps, type LinkedInIconVariant, PostizIcon, type PostizIconProps, type PostizIconVariant, RedditIcon, type RedditIconProps, type RedditIconVariant, SlackIcon, type SlackIconProps, type SlackIconVariant, TelegramIcon, type TelegramIconProps, type TelegramIconVariant, WhatsAppIcon, type WhatsAppIconProps, type WhatsAppIconVariant, XIcon, type XIconProps, type XIconVariant, YouTubeIcon, type YouTubeIconProps, type YouTubeIconVariant };
|
package/dist/icons/index.js
CHANGED
|
@@ -496,6 +496,161 @@ function LinkedInIcon({
|
|
|
496
496
|
return /* @__PURE__ */ jsx("span", { className, style: { display: "inline-flex", width: size, height: size }, children: svgElement });
|
|
497
497
|
}
|
|
498
498
|
LinkedInIcon.displayName = "LinkedInIcon";
|
|
499
|
+
var StyledIconWrapper3 = styled.button`
|
|
500
|
+
display: inline-flex;
|
|
501
|
+
align-items: center;
|
|
502
|
+
justify-content: center;
|
|
503
|
+
background: transparent;
|
|
504
|
+
border: none;
|
|
505
|
+
padding: 0;
|
|
506
|
+
cursor: pointer;
|
|
507
|
+
transition: all 0.2s ease-in-out;
|
|
508
|
+
width: ${({ $size }) => `${$size}px`};
|
|
509
|
+
height: ${({ $size }) => `${$size}px`};
|
|
510
|
+
border-radius: ${({ theme }) => theme?.radii?.sm ?? "4px"};
|
|
511
|
+
|
|
512
|
+
&:hover:not(:disabled) {
|
|
513
|
+
opacity: 0.8;
|
|
514
|
+
transform: scale(1.05);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
&:active:not(:disabled) {
|
|
518
|
+
opacity: 0.6;
|
|
519
|
+
transform: scale(0.95);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
&:focus-visible {
|
|
523
|
+
outline: 2px solid ${({ theme }) => (theme?.colors?.primary && typeof theme.colors.primary === "object" ? theme.colors.primary.light : theme?.colors?.primary) ?? "#0066FF"};
|
|
524
|
+
outline-offset: 2px;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
&:disabled {
|
|
528
|
+
cursor: not-allowed;
|
|
529
|
+
opacity: 0.5;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/* Remove default focus outline, using focus-visible instead */
|
|
533
|
+
&:focus {
|
|
534
|
+
outline: none;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
svg {
|
|
538
|
+
display: block;
|
|
539
|
+
width: 100%;
|
|
540
|
+
height: 100%;
|
|
541
|
+
}
|
|
542
|
+
`;
|
|
543
|
+
function PostizIcon({
|
|
544
|
+
variant = "colored",
|
|
545
|
+
size = 24,
|
|
546
|
+
className,
|
|
547
|
+
style,
|
|
548
|
+
"aria-label": ariaLabel = "Postiz",
|
|
549
|
+
onPress,
|
|
550
|
+
...ariaProps
|
|
551
|
+
}) {
|
|
552
|
+
const ref = useRef(null);
|
|
553
|
+
const isInteractive = Boolean(onPress);
|
|
554
|
+
const { buttonProps } = useButton(
|
|
555
|
+
{
|
|
556
|
+
...ariaProps,
|
|
557
|
+
onPress,
|
|
558
|
+
"aria-label": ariaLabel,
|
|
559
|
+
isDisabled: !isInteractive
|
|
560
|
+
},
|
|
561
|
+
ref
|
|
562
|
+
);
|
|
563
|
+
const role = isInteractive ? "button" : "img";
|
|
564
|
+
const ariaHidden = !isInteractive && !ariaLabel;
|
|
565
|
+
const colors = {
|
|
566
|
+
colored: {
|
|
567
|
+
purple: "#612bd3",
|
|
568
|
+
dark: "#131019",
|
|
569
|
+
white: "#fff",
|
|
570
|
+
stroke: "#131019"
|
|
571
|
+
},
|
|
572
|
+
black: {
|
|
573
|
+
purple: "black",
|
|
574
|
+
dark: "black",
|
|
575
|
+
white: "black",
|
|
576
|
+
stroke: "black"
|
|
577
|
+
},
|
|
578
|
+
white: {
|
|
579
|
+
purple: "white",
|
|
580
|
+
dark: "white",
|
|
581
|
+
white: "white",
|
|
582
|
+
stroke: "white"
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
const c = colors[variant];
|
|
586
|
+
const svgElement = /* @__PURE__ */ jsxs(
|
|
587
|
+
"svg",
|
|
588
|
+
{
|
|
589
|
+
width: size,
|
|
590
|
+
height: size,
|
|
591
|
+
viewBox: "26.74 0.02 460.94 509.34",
|
|
592
|
+
fill: "none",
|
|
593
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
594
|
+
role,
|
|
595
|
+
"aria-label": ariaLabel,
|
|
596
|
+
"aria-hidden": ariaHidden,
|
|
597
|
+
children: [
|
|
598
|
+
/* @__PURE__ */ jsx(
|
|
599
|
+
"path",
|
|
600
|
+
{
|
|
601
|
+
d: "M103.4 82.6c.4 5.6.8 12 1.4 19.1L125 362.4c2.3 29.1 3.4 43.8 9.9 54.4 5.7 9.4 14.4 16.7 24.5 21 11.6 4.9 26.1 3.7 55.2 1.4l199.8-15.4c18.9-1.5 31.7-2.5 41.2-4.8-3.2 7.5-8.1 14.3-14.5 19.5-9.6 8-23.9 11.4-52.4 17.9l-195 45c-28.5 6.5-42.8 9.9-54.8 6.8-10.7-2.7-20.3-8.6-27.3-17.1-8-9.6-11.4-23.9-17.9-52.4L34.7 184c-6.5-28.5-9.9-42.8-6.8-54.8 2.7-10.7 8.6-20.3 17.1-27.3 9.6-8 23.9-11.4 52.4-17.9z",
|
|
602
|
+
fill: c.purple
|
|
603
|
+
}
|
|
604
|
+
),
|
|
605
|
+
/* @__PURE__ */ jsx(
|
|
606
|
+
"path",
|
|
607
|
+
{
|
|
608
|
+
d: "M112.8 101.1c-1.1-14.8-2-25.2-1.9-33.6 0-8.2.9-13.6 2.8-18 3.6-8.6 9.8-15.8 17.7-20.8 4.1-2.5 9.2-4.2 17.4-5.4 8.2-1.3 18.8-2.2 33.5-3.3L382 4.4c14.8-1.1 25.2-2 33.6-1.9 8.2 0 13.6.9 18 2.8 8.6 3.6 15.8 9.8 20.8 17.7 2.5 4.1 4.2 9.2 5.4 17.4s2.2 18.8 3.3 33.5l20.2 260.8c1.1 14.8 2 25.2 1.9 33.6 0 8.2-.9 13.6-2.8 18-3.6 8.6-9.8 15.8-17.7 20.8-4.1 2.5-9.2 4.2-17.4 5.4-8.2 1.3-18.8 2.2-33.5 3.3l-199.7 15.4c-14.8 1.1-25.2 2-33.6 1.9-8.2 0-13.6-.9-18-2.8-8.6-3.6-15.8-9.8-20.8-17.7-2.5-4.1-4.2-9.2-5.4-17.4-1.3-8.2-2.2-18.8-3.3-33.5z",
|
|
609
|
+
fill: "none",
|
|
610
|
+
stroke: c.stroke,
|
|
611
|
+
strokeWidth: "4.9373"
|
|
612
|
+
}
|
|
613
|
+
),
|
|
614
|
+
/* @__PURE__ */ jsx(
|
|
615
|
+
"path",
|
|
616
|
+
{
|
|
617
|
+
d: "m182.9 27.9 199.7-15.4c14.9-1.2 25-1.9 33-1.9 7.7 0 11.9.9 14.9 2.2 7 3 13 8 17 14.6 1.7 2.9 3.2 6.8 4.5 14.5 1.3 7.8 2.1 18 3.2 32.9l20.2 260.8c1.2 14.9 1.9 25 1.9 33 0 7.7-.9 11.9-2.2 14.9-3 7-8 13-14.6 17-2.9 1.7-6.8 3.2-14.5 4.5-7.8 1.3-18 2.1-32.9 3.2l-199.7 15.3c-14.8 1.2-25 1.9-33 1.9-7.7 0-11.9-.9-14.9-2.2-7-3-13-8-17-14.6-1.7-2.9-3.2-6.8-4.5-14.5-1.3-7.8-2.1-18-3.2-32.9l-20.2-260.8c-1.2-14.8-1.9-25-1.9-33 0-7.7.9-11.9 2.2-14.9 3-7 8-13 14.6-17 2.9-1.7 6.8-3.2 14.5-4.5 7.9-1.1 18.1-1.9 32.9-3.1",
|
|
618
|
+
fill: c.white
|
|
619
|
+
}
|
|
620
|
+
),
|
|
621
|
+
/* @__PURE__ */ jsx(
|
|
622
|
+
"path",
|
|
623
|
+
{
|
|
624
|
+
d: "m269.4 88.3 1.9 24.8c3.5-4.3 7.9-7.9 13.4-11 5.4-3.3 12.3-5.2 20.4-5.8 7.4-.6 14.7.3 21.4 2.7 7 2.4 13.3 6.4 18.8 12.5 5.7 5.7 10.6 13.7 14.5 23.8s6.3 22.5 7.5 37.2c.8 10.5.7 21.2-.5 31.9-1 10.7-3.4 20.4-7.3 29.1-4 8.7-9.7 16-17.2 21.9-7.3 5.6-16.7 8.9-28.4 9.8-8.3.7-15 .1-20-1.8-5-2.1-8.8-4.6-11.5-7.4l6.2 80-46.5 15.5L221.8 92zm26.4 149c5.7-.4 10.4-2.7 14.1-6.7 3.7-4.3 6.3-9.5 8-15.8 2-6.3 3.1-13.3 3.4-20.8.5-7.7.5-15.3-.1-22.9-.9-12.1-2.8-21.6-5.5-28.4-2.5-6.8-5.3-11.9-8.4-14.9-3.2-3.3-6.1-5.2-9.1-5.9-2.7-.7-4.9-1-6.3-.8-4 .3-7.7 2.1-11.2 5.1-3.6 3-5.9 7.2-7.3 12.9l7.1 91.9c1.2 1.7 3.2 3.3 5.6 4.9 2.5 1.2 5.7 1.7 9.7 1.4",
|
|
625
|
+
fill: c.dark
|
|
626
|
+
}
|
|
627
|
+
)
|
|
628
|
+
]
|
|
629
|
+
}
|
|
630
|
+
);
|
|
631
|
+
if (isInteractive) {
|
|
632
|
+
return /* @__PURE__ */ jsx(
|
|
633
|
+
StyledIconWrapper3,
|
|
634
|
+
{
|
|
635
|
+
...buttonProps,
|
|
636
|
+
ref,
|
|
637
|
+
className,
|
|
638
|
+
style,
|
|
639
|
+
$size: size,
|
|
640
|
+
children: svgElement
|
|
641
|
+
}
|
|
642
|
+
);
|
|
643
|
+
}
|
|
644
|
+
return /* @__PURE__ */ jsx(
|
|
645
|
+
"span",
|
|
646
|
+
{
|
|
647
|
+
className,
|
|
648
|
+
style: { display: "inline-flex", width: size, height: size, ...style },
|
|
649
|
+
children: svgElement
|
|
650
|
+
}
|
|
651
|
+
);
|
|
652
|
+
}
|
|
653
|
+
PostizIcon.displayName = "PostizIcon";
|
|
499
654
|
var ColoredVariant = () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
500
655
|
/* @__PURE__ */ jsx(
|
|
501
656
|
"path",
|
|
@@ -978,6 +1133,13 @@ function WhatsAppIcon({
|
|
|
978
1133
|
);
|
|
979
1134
|
}
|
|
980
1135
|
WhatsAppIcon.displayName = "WhatsAppIcon";
|
|
1136
|
+
|
|
1137
|
+
// src/theme/tokens.ts
|
|
1138
|
+
var tokens = {
|
|
1139
|
+
borderRadius: {
|
|
1140
|
+
sm: "0.25rem"}};
|
|
1141
|
+
|
|
1142
|
+
// src/components/icons/XIcon/XIcon.styles.ts
|
|
981
1143
|
var StyledXIcon = styled.svg`
|
|
982
1144
|
display: inline-block;
|
|
983
1145
|
vertical-align: middle;
|
|
@@ -998,7 +1160,7 @@ var StyledXIcon = styled.svg`
|
|
|
998
1160
|
&:focus-visible {
|
|
999
1161
|
outline: 2px solid ${theme?.colors?.primary ?? "#007bff"};
|
|
1000
1162
|
outline-offset: 2px;
|
|
1001
|
-
border-radius:
|
|
1163
|
+
border-radius: ${tokens.borderRadius.sm};
|
|
1002
1164
|
}
|
|
1003
1165
|
`}
|
|
1004
1166
|
`;
|
|
@@ -1149,6 +1311,6 @@ function YouTubeIcon({
|
|
|
1149
1311
|
}
|
|
1150
1312
|
YouTubeIcon.displayName = "YouTubeIcon";
|
|
1151
1313
|
|
|
1152
|
-
export { FacebookIcon, GmailIcon, InstagramIcon, LinkedInIcon, RedditIcon, SlackIcon, TelegramIcon, WhatsAppIcon, XIcon, YouTubeIcon };
|
|
1314
|
+
export { FacebookIcon, GmailIcon, InstagramIcon, LinkedInIcon, PostizIcon, RedditIcon, SlackIcon, TelegramIcon, WhatsAppIcon, XIcon, YouTubeIcon };
|
|
1153
1315
|
//# sourceMappingURL=index.js.map
|
|
1154
1316
|
//# sourceMappingURL=index.js.map
|