@sesamehr/react-design-system 1.3.0 → 1.5.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/Display/Avatar/AvatarRounded/AvatarRounded.d.ts +23 -0
- package/dist/Display/Avatar/AvatarSquare/AvatarSquare.d.ts +23 -0
- package/dist/Display/Avatar/hooks/useAvatarBullet.d.ts +6 -13
- package/dist/Display/Avatar/index.d.ts +32 -6
- package/dist/Display/PointMarker/PointMarker.d.ts +8 -0
- package/dist/Display/PointMarker/index.d.ts +18 -0
- package/dist/main.d.ts +2 -1
- package/dist/react-design-system.css +1 -1
- package/dist/react-design-system.js +4031 -3959
- package/dist/react-design-system.umd.cjs +37 -37
- package/package.json +1 -1
- package/src/assets/styles/primitives-v3.css +9 -5
- package/src/assets/styles/theme-v3.css +42 -0
- package/dist/Display/Avatar/Avatar.d.ts +0 -24
package/package.json
CHANGED
|
@@ -16,12 +16,16 @@
|
|
|
16
16
|
=========================================== */
|
|
17
17
|
|
|
18
18
|
:root {
|
|
19
|
-
/* ===== RADIUS
|
|
19
|
+
/* ===== RADIUS =====
|
|
20
|
+
Values come from the Figma collection "Primitive-radius", which matches the
|
|
21
|
+
Tailwind v4 scale. Do not swap these for shadcn's derived scale
|
|
22
|
+
(`--radius` +/- 4px, i.e. 6/8/10/14) — that is what used to be here, and it
|
|
23
|
+
silently shifted sm/md/lg/xl two pixels away from every design. */
|
|
20
24
|
--radius-xs: 0.125rem; /* 2px */
|
|
21
|
-
--radius-sm: 0.
|
|
22
|
-
--radius-md: 0.
|
|
23
|
-
--radius-lg: 0.
|
|
24
|
-
--radius-xl: 0.
|
|
25
|
+
--radius-sm: 0.25rem; /* 4px */
|
|
26
|
+
--radius-md: 0.375rem; /* 6px */
|
|
27
|
+
--radius-lg: 0.5rem; /* 8px */
|
|
28
|
+
--radius-xl: 0.75rem; /* 12px */
|
|
25
29
|
--radius-2xl: 1rem; /* 16px */
|
|
26
30
|
--radius-3xl: 1.5rem; /* 24px */
|
|
27
31
|
--radius-4xl: 2rem; /* 32px */
|
|
@@ -92,6 +92,29 @@
|
|
|
92
92
|
--chart-4: var(--color-brand-700);
|
|
93
93
|
--chart-5: var(--color-brand-800);
|
|
94
94
|
|
|
95
|
+
/* Categorical palette. The slot number is the contract, not the hue behind
|
|
96
|
+
it: callers pick a category, so a hue can be re-pointed here without a
|
|
97
|
+
single call site changing meaning. Ordered as the Figma set is. */
|
|
98
|
+
--category-1: var(--brand); /* brand */
|
|
99
|
+
--category-2: var(--color-purple-500); /* purple */
|
|
100
|
+
--category-3: var(--color-amber-500); /* amber */
|
|
101
|
+
--category-4: var(--color-teal-500); /* teal */
|
|
102
|
+
--category-5: var(--color-orange-500); /* orange */
|
|
103
|
+
--category-6: var(--color-zinc-500); /* zinc */
|
|
104
|
+
--category-7: var(--color-red-500); /* red */
|
|
105
|
+
--category-8: var(--color-yellow-500); /* yellow */
|
|
106
|
+
--category-9: var(--color-lime-500); /* lime */
|
|
107
|
+
--category-10: var(--color-green-500); /* green */
|
|
108
|
+
--category-11: var(--color-emerald-500); /* emerald */
|
|
109
|
+
--category-12: var(--color-cyan-500); /* cyan */
|
|
110
|
+
--category-13: var(--color-sky-500); /* sky */
|
|
111
|
+
--category-14: var(--color-blue-500); /* blue */
|
|
112
|
+
--category-15: var(--color-indigo-500); /* indigo */
|
|
113
|
+
--category-16: var(--color-violet-500); /* violet */
|
|
114
|
+
--category-17: var(--color-fuchsia-500); /* fuchsia */
|
|
115
|
+
--category-18: var(--color-pink-500); /* pink */
|
|
116
|
+
--category-19: var(--color-rose-500); /* rose */
|
|
117
|
+
|
|
95
118
|
--sidebar-background: var(--color-white);
|
|
96
119
|
--sidebar-foreground: var(--color-zinc-900);
|
|
97
120
|
--sidebar-primary: var(--color-brand-500);
|
|
@@ -173,6 +196,25 @@
|
|
|
173
196
|
--color-chart-3: var(--chart-3);
|
|
174
197
|
--color-chart-4: var(--chart-4);
|
|
175
198
|
--color-chart-5: var(--chart-5);
|
|
199
|
+
--color-category-1: var(--category-1);
|
|
200
|
+
--color-category-2: var(--category-2);
|
|
201
|
+
--color-category-3: var(--category-3);
|
|
202
|
+
--color-category-4: var(--category-4);
|
|
203
|
+
--color-category-5: var(--category-5);
|
|
204
|
+
--color-category-6: var(--category-6);
|
|
205
|
+
--color-category-7: var(--category-7);
|
|
206
|
+
--color-category-8: var(--category-8);
|
|
207
|
+
--color-category-9: var(--category-9);
|
|
208
|
+
--color-category-10: var(--category-10);
|
|
209
|
+
--color-category-11: var(--category-11);
|
|
210
|
+
--color-category-12: var(--category-12);
|
|
211
|
+
--color-category-13: var(--category-13);
|
|
212
|
+
--color-category-14: var(--category-14);
|
|
213
|
+
--color-category-15: var(--category-15);
|
|
214
|
+
--color-category-16: var(--category-16);
|
|
215
|
+
--color-category-17: var(--category-17);
|
|
216
|
+
--color-category-18: var(--category-18);
|
|
217
|
+
--color-category-19: var(--category-19);
|
|
176
218
|
--color-sidebar: var(--sidebar-background);
|
|
177
219
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
178
220
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BulletVariants } from '../../Feedback/Bullet/index.ts';
|
|
2
|
-
import { AvatarVariants } from './index.ts';
|
|
3
|
-
export interface AvatarProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
4
|
-
/** Image source URL */
|
|
5
|
-
src?: string;
|
|
6
|
-
/** Fallback initials (max 2 characters) */
|
|
7
|
-
initials?: string;
|
|
8
|
-
/** Avatar size */
|
|
9
|
-
size?: AvatarVariants['size'];
|
|
10
|
-
/** Disabled state - shows gray placeholder */
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
/** Status indicator color - automatically positions Bullet based on size */
|
|
13
|
-
status?: BulletVariants['color'];
|
|
14
|
-
/** Action slot (rendered top-right) */
|
|
15
|
-
action?: React.ReactNode;
|
|
16
|
-
/** Label slot (rendered bottom-center) */
|
|
17
|
-
label?: React.ReactNode;
|
|
18
|
-
dataTestid: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Avatar — mirrors `@sesame/orxata-core` Avatar. SVG hexagon shape with hover
|
|
22
|
-
* drop-shadow, clip-path image, foreignObject initials, and status Bullet.
|
|
23
|
-
*/
|
|
24
|
-
export declare const Avatar: import('react').ForwardRefExoticComponent<AvatarProps & import('react').RefAttributes<HTMLSpanElement>>;
|