@designa8/vibedesign-perplexity-internal-v1-2-176b 0.1.2 → 0.1.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/README.md +1 -1
- package/dist/index.cjs +4 -3
- package/dist/index.js +4 -3
- package/dist/styles.css +19 -0
- package/package.json +1 -1
- package/src/atoms/ChatWindow/ChatWindow.tsx +2 -1
- package/src/atoms/FileUpload/FileUpload.tsx +12 -3
- package/src/atoms/Image/Image.tsx +1 -1
- package/src/atoms/Radio/Radio.tsx +1 -1
- package/src/atoms/SearchResultsList/SearchResultsList.tsx +2 -1
- package/src/atoms/StepperItem/StepperItem.tsx +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-perplexity-internal-v1-2-176b
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.1.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.1.4**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -4408,6 +4408,7 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
4408
4408
|
// virtual-pkg:src/atoms/FileUpload/FileUpload.tsx
|
|
4409
4409
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4410
4410
|
var cn38 = (...parts) => parts.filter(Boolean).join(" ");
|
|
4411
|
+
var HIDDEN_INPUT = "sr-only h-px! w-px! min-w-0! flex-none! p-0! border-0!";
|
|
4411
4412
|
var formatBytes = (bytes) => {
|
|
4412
4413
|
if (bytes < 1024) return `${bytes} B`;
|
|
4413
4414
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -4439,7 +4440,7 @@ var FileUpload = React42.forwardRef(
|
|
|
4439
4440
|
if (!list || list.length === 0) return;
|
|
4440
4441
|
onFilesAdded?.(Array.from(list));
|
|
4441
4442
|
};
|
|
4442
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { ref, className: cn38("flex w-full flex-col gap-md rounded-none", className), ...rest, children: [
|
|
4443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { ref, className: cn38("relative flex w-full flex-col gap-md rounded-none", className), ...rest, children: [
|
|
4443
4444
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex w-full items-stretch gap-sm", children: [
|
|
4444
4445
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4445
4446
|
"div",
|
|
@@ -4514,7 +4515,7 @@ var FileUpload = React42.forwardRef(
|
|
|
4514
4515
|
accept,
|
|
4515
4516
|
multiple,
|
|
4516
4517
|
disabled,
|
|
4517
|
-
className:
|
|
4518
|
+
className: HIDDEN_INPUT,
|
|
4518
4519
|
onChange: (e) => {
|
|
4519
4520
|
emit(e.target.files);
|
|
4520
4521
|
e.target.value = "";
|
|
@@ -4532,7 +4533,7 @@ var FileUpload = React42.forwardRef(
|
|
|
4532
4533
|
accept: "image/*",
|
|
4533
4534
|
multiple: true,
|
|
4534
4535
|
disabled,
|
|
4535
|
-
className:
|
|
4536
|
+
className: HIDDEN_INPUT,
|
|
4536
4537
|
onChange: (e) => {
|
|
4537
4538
|
emit(e.target.files);
|
|
4538
4539
|
e.target.value = "";
|
package/dist/index.js
CHANGED
|
@@ -4286,6 +4286,7 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
4286
4286
|
// virtual-pkg:src/atoms/FileUpload/FileUpload.tsx
|
|
4287
4287
|
import { jsx as jsx42, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4288
4288
|
var cn38 = (...parts) => parts.filter(Boolean).join(" ");
|
|
4289
|
+
var HIDDEN_INPUT = "sr-only h-px! w-px! min-w-0! flex-none! p-0! border-0!";
|
|
4289
4290
|
var formatBytes = (bytes) => {
|
|
4290
4291
|
if (bytes < 1024) return `${bytes} B`;
|
|
4291
4292
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -4317,7 +4318,7 @@ var FileUpload = React42.forwardRef(
|
|
|
4317
4318
|
if (!list || list.length === 0) return;
|
|
4318
4319
|
onFilesAdded?.(Array.from(list));
|
|
4319
4320
|
};
|
|
4320
|
-
return /* @__PURE__ */ jsxs37("div", { ref, className: cn38("flex w-full flex-col gap-md rounded-none", className), ...rest, children: [
|
|
4321
|
+
return /* @__PURE__ */ jsxs37("div", { ref, className: cn38("relative flex w-full flex-col gap-md rounded-none", className), ...rest, children: [
|
|
4321
4322
|
/* @__PURE__ */ jsxs37("div", { className: "flex w-full items-stretch gap-sm", children: [
|
|
4322
4323
|
/* @__PURE__ */ jsx42(
|
|
4323
4324
|
"div",
|
|
@@ -4392,7 +4393,7 @@ var FileUpload = React42.forwardRef(
|
|
|
4392
4393
|
accept,
|
|
4393
4394
|
multiple,
|
|
4394
4395
|
disabled,
|
|
4395
|
-
className:
|
|
4396
|
+
className: HIDDEN_INPUT,
|
|
4396
4397
|
onChange: (e) => {
|
|
4397
4398
|
emit(e.target.files);
|
|
4398
4399
|
e.target.value = "";
|
|
@@ -4410,7 +4411,7 @@ var FileUpload = React42.forwardRef(
|
|
|
4410
4411
|
accept: "image/*",
|
|
4411
4412
|
multiple: true,
|
|
4412
4413
|
disabled,
|
|
4413
|
-
className:
|
|
4414
|
+
className: HIDDEN_INPUT,
|
|
4414
4415
|
onChange: (e) => {
|
|
4415
4416
|
emit(e.target.files);
|
|
4416
4417
|
e.target.value = "";
|
package/dist/styles.css
CHANGED
|
@@ -655,6 +655,9 @@
|
|
|
655
655
|
.h-px {
|
|
656
656
|
height: 1px;
|
|
657
657
|
}
|
|
658
|
+
.h-px\! {
|
|
659
|
+
height: 1px !important;
|
|
660
|
+
}
|
|
658
661
|
.max-h-72 {
|
|
659
662
|
max-height: calc(var(--spacing) * 72);
|
|
660
663
|
}
|
|
@@ -748,6 +751,9 @@
|
|
|
748
751
|
.w-px {
|
|
749
752
|
width: 1px;
|
|
750
753
|
}
|
|
754
|
+
.w-px\! {
|
|
755
|
+
width: 1px !important;
|
|
756
|
+
}
|
|
751
757
|
.max-w-3xl {
|
|
752
758
|
max-width: var(--container-3xl);
|
|
753
759
|
}
|
|
@@ -766,6 +772,9 @@
|
|
|
766
772
|
.min-w-0 {
|
|
767
773
|
min-width: 0;
|
|
768
774
|
}
|
|
775
|
+
.min-w-0\! {
|
|
776
|
+
min-width: 0 !important;
|
|
777
|
+
}
|
|
769
778
|
.min-w-5 {
|
|
770
779
|
min-width: calc(var(--spacing) * 5);
|
|
771
780
|
}
|
|
@@ -778,6 +787,9 @@
|
|
|
778
787
|
.flex-1 {
|
|
779
788
|
flex: 1;
|
|
780
789
|
}
|
|
790
|
+
.flex-none\! {
|
|
791
|
+
flex: none !important;
|
|
792
|
+
}
|
|
781
793
|
.shrink-0 {
|
|
782
794
|
flex-shrink: 0;
|
|
783
795
|
}
|
|
@@ -1138,6 +1150,10 @@
|
|
|
1138
1150
|
border-style: var(--tw-border-style);
|
|
1139
1151
|
border-width: 0px;
|
|
1140
1152
|
}
|
|
1153
|
+
.border-0\! {
|
|
1154
|
+
border-style: var(--tw-border-style) !important;
|
|
1155
|
+
border-width: 0px !important;
|
|
1156
|
+
}
|
|
1141
1157
|
.border-2 {
|
|
1142
1158
|
border-style: var(--tw-border-style);
|
|
1143
1159
|
border-width: 2px;
|
|
@@ -1333,6 +1349,9 @@
|
|
|
1333
1349
|
.p-0 {
|
|
1334
1350
|
padding: 0;
|
|
1335
1351
|
}
|
|
1352
|
+
.p-0\! {
|
|
1353
|
+
padding: 0 !important;
|
|
1354
|
+
}
|
|
1336
1355
|
.p-base {
|
|
1337
1356
|
padding: var(--spacing-base);
|
|
1338
1357
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designa8/vibedesign-perplexity-internal-v1-2-176b",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Complete design system \"My Project perplexity-internal-v1\" generated by Atoms Design.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -39,7 +39,8 @@ export interface ChatSuggestion {
|
|
|
39
39
|
icon?: IconName;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export interface ChatWindowProps
|
|
42
|
+
export interface ChatWindowProps
|
|
43
|
+
extends Omit<React.HTMLAttributes<HTMLElement>, "onSubmit" | "onCopy"> {
|
|
43
44
|
messages: ChatMessage[];
|
|
44
45
|
/** Send a question (also used by related questions and suggestions). */
|
|
45
46
|
onSend?: (text: string) => void;
|
|
@@ -48,6 +48,15 @@ export interface FileUploadProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
48
48
|
|
|
49
49
|
const cn = (...parts: Array<string | false | null | undefined>) => parts.filter(Boolean).join(" ");
|
|
50
50
|
|
|
51
|
+
/**
|
|
52
|
+
* The file inputs are absolutely positioned by `sr-only`, but `Input` also ships
|
|
53
|
+
* `w-full` / `flex-1`. Those outrank `sr-only`'s 1px box, so an as-wide-as-the-page
|
|
54
|
+
* input escapes the component and creates horizontal scroll. The important
|
|
55
|
+
* utilities below pin the box to a single pixel, and `relative` on the root keeps
|
|
56
|
+
* the absolutely positioned input contained.
|
|
57
|
+
*/
|
|
58
|
+
const HIDDEN_INPUT = "sr-only h-px! w-px! min-w-0! flex-none! p-0! border-0!";
|
|
59
|
+
|
|
51
60
|
export const formatBytes = (bytes: number) => {
|
|
52
61
|
if (bytes < 1024) return `${bytes} B`;
|
|
53
62
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -86,7 +95,7 @@ export const FileUpload = React.forwardRef<HTMLDivElement, FileUploadProps>(
|
|
|
86
95
|
};
|
|
87
96
|
|
|
88
97
|
return (
|
|
89
|
-
<div ref={ref} className={cn("flex w-full flex-col gap-md rounded-none", className)} {...rest}>
|
|
98
|
+
<div ref={ref} className={cn("relative flex w-full flex-col gap-md rounded-none", className)} {...rest}>
|
|
90
99
|
<div className="flex w-full items-stretch gap-sm">
|
|
91
100
|
<div
|
|
92
101
|
data-state={dragging ? "over" : "idle"}
|
|
@@ -169,7 +178,7 @@ export const FileUpload = React.forwardRef<HTMLDivElement, FileUploadProps>(
|
|
|
169
178
|
accept={accept}
|
|
170
179
|
multiple={multiple}
|
|
171
180
|
disabled={disabled}
|
|
172
|
-
className=
|
|
181
|
+
className={HIDDEN_INPUT}
|
|
173
182
|
onChange={(e) => {
|
|
174
183
|
emit(e.target.files);
|
|
175
184
|
e.target.value = "";
|
|
@@ -184,7 +193,7 @@ export const FileUpload = React.forwardRef<HTMLDivElement, FileUploadProps>(
|
|
|
184
193
|
accept="image/*"
|
|
185
194
|
multiple
|
|
186
195
|
disabled={disabled}
|
|
187
|
-
className=
|
|
196
|
+
className={HIDDEN_INPUT}
|
|
188
197
|
onChange={(e) => {
|
|
189
198
|
emit(e.target.files);
|
|
190
199
|
e.target.value = "";
|
|
@@ -6,7 +6,7 @@ export type ImageRatio = "landscape" | "wide" | "square" | "portrait" | "auto";
|
|
|
6
6
|
export type ImageRadius = "md" | "lg" | "xl";
|
|
7
7
|
|
|
8
8
|
export interface ImageProps
|
|
9
|
-
extends Omit<React.ComponentPropsWithoutRef<"img">, "alt"> {
|
|
9
|
+
extends Omit<React.ComponentPropsWithoutRef<"img">, "alt" | "loading"> {
|
|
10
10
|
/** Required. Use "" for a purely decorative image. */
|
|
11
11
|
alt: string;
|
|
12
12
|
ratio?: ImageRatio;
|
|
@@ -4,7 +4,7 @@ import { Input } from "../Input";
|
|
|
4
4
|
export type RadioSize = "sm" | "md";
|
|
5
5
|
|
|
6
6
|
export interface RadioProps
|
|
7
|
-
extends Omit<React.ComponentPropsWithoutRef<"input">, "type" | "size" | "onChange"> {
|
|
7
|
+
extends Omit<React.ComponentPropsWithoutRef<"input">, "type" | "size" | "onChange" | "onSelect"> {
|
|
8
8
|
/** Text next to the circle. */
|
|
9
9
|
label?: React.ReactNode;
|
|
10
10
|
/** Muted helper line under the label. */
|
|
@@ -16,7 +16,8 @@ export interface SearchResult {
|
|
|
16
16
|
icon?: IconName;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export interface SearchResultsListProps
|
|
19
|
+
export interface SearchResultsListProps
|
|
20
|
+
extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect" | "onSearch"> {
|
|
20
21
|
results: SearchResult[];
|
|
21
22
|
query?: string;
|
|
22
23
|
defaultQuery?: string;
|
|
@@ -5,7 +5,7 @@ import { Link } from "../Link";
|
|
|
5
5
|
|
|
6
6
|
export type StepStatus = "upcoming" | "active" | "complete" | "error";
|
|
7
7
|
|
|
8
|
-
export interface StepperItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
export interface StepperItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
9
9
|
title: React.ReactNode;
|
|
10
10
|
/** Muted line under the title: "Upcoming", "In progress", a time. */
|
|
11
11
|
description?: React.ReactNode;
|