@sesamehr/react-design-system 3.4.1 → 3.6.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/Button/index.d.ts +1 -1
- package/dist/Data/Table/TableBulkHeader/TableBulkHeader.d.ts +11 -8
- package/dist/Display/AiTag/AiTag.d.ts +33 -0
- package/dist/Display/AiTag/index.d.ts +21 -0
- package/dist/Display/Avatar/index.d.ts +2 -2
- package/dist/Display/Badge/index.d.ts +1 -1
- package/dist/Display/BrandLogo/BrandLogo.d.ts +53 -0
- package/dist/Display/BrandLogo/brandLogoArt.d.ts +29 -0
- package/dist/Display/BrandLogo/index.d.ts +17 -0
- package/dist/Display/FileCard/FileCard.d.ts +102 -41
- package/dist/Display/FileCard/index.d.ts +31 -0
- package/dist/Display/ImageAttachment/ImageAttachment.d.ts +58 -0
- package/dist/Display/ImageAttachment/index.d.ts +2 -0
- package/dist/Display/LinkPreview/LinkPreview.d.ts +65 -0
- package/dist/Display/LinkPreview/index.d.ts +1 -0
- package/dist/Display/LocationAttachment/LocationAttachment.d.ts +71 -0
- package/dist/Display/LocationAttachment/index.d.ts +1 -0
- package/dist/Display/VideoAttachment/VideoAttachment.d.ts +78 -0
- package/dist/Display/VideoAttachment/index.d.ts +1 -0
- package/dist/Display/VoiceMessage/VoiceMessage.d.ts +103 -0
- package/dist/Display/VoiceMessage/index.d.ts +2 -0
- package/dist/Display/VoiceMessage/toWaveformPeaks.d.ts +58 -0
- package/dist/Display/VoiceMessage/useVoiceWaveform.d.ts +90 -0
- package/dist/Feedback/Dialog/Dialog.d.ts +13 -1
- package/dist/Feedback/Dialog/DialogOverlay.d.ts +12 -1
- package/dist/Feedback/Drawer/Drawer.d.ts +68 -0
- package/dist/Feedback/Drawer/DrawerBody.d.ts +18 -0
- package/dist/Feedback/Drawer/DrawerContent.d.ts +36 -0
- package/dist/Feedback/Drawer/DrawerDescription.d.ts +10 -0
- package/dist/Feedback/Drawer/DrawerExpand.d.ts +23 -0
- package/dist/Feedback/Drawer/DrawerTitle.d.ts +13 -0
- package/dist/Feedback/Drawer/index.d.ts +7 -0
- package/dist/Feedback/Drawer/useDrawer.d.ts +30 -0
- package/dist/Feedback/Progress/index.d.ts +1 -1
- package/dist/Forms/Inputs/AiSearch/AiSearch.d.ts +67 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchAsk.d.ts +34 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchPanel.d.ts +50 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchSend.d.ts +30 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchShortcut.d.ts +23 -0
- package/dist/Forms/Inputs/AiSearch/AiSearchSuggestion.d.ts +27 -0
- package/dist/Forms/Inputs/AiSearch/index.d.ts +6 -0
- package/dist/Forms/Inputs/AiSearch/useAiSearch.d.ts +37 -0
- package/dist/Forms/Inputs/TimePicker/TimePicker.d.ts +64 -0
- package/dist/Forms/Inputs/TimePicker/TimePickerField.d.ts +35 -0
- package/dist/Forms/Inputs/TimePicker/TimePickerList.d.ts +23 -0
- package/dist/Forms/Inputs/TimePicker/TimePickerWheel.d.ts +26 -0
- package/dist/Forms/Inputs/TimePicker/TimePickerWheelColumn.d.ts +23 -0
- package/dist/Forms/Inputs/TimePicker/index.d.ts +6 -0
- package/dist/Forms/Inputs/TimePicker/time.d.ts +41 -0
- package/dist/Forms/Inputs/TimePicker/useTimeField.d.ts +62 -0
- package/dist/Forms/Inputs/TimePicker/useTimeList.d.ts +53 -0
- package/dist/Forms/Inputs/TimePicker/useTimePicker.d.ts +35 -0
- package/dist/Forms/Inputs/TimePicker/useWheelColumn.d.ts +71 -0
- package/dist/Forms/Inputs/index.d.ts +1 -0
- package/dist/Navigation/Tabs/Tabs.d.ts +18 -0
- package/dist/Navigation/Tabs/TabsContent.d.ts +7 -0
- package/dist/Navigation/Tabs/TabsList.d.ts +10 -0
- package/dist/Navigation/Tabs/TabsTrigger.d.ts +20 -0
- package/dist/Navigation/Tabs/index.d.ts +4 -0
- package/dist/internal/AttachmentMedia/AttachmentMedia.d.ts +38 -0
- package/dist/internal/AttachmentMedia/index.d.ts +36 -0
- package/dist/internal/index.d.ts +1 -0
- package/dist/main.d.ts +12 -2
- package/dist/react-design-system.css +1 -1
- package/dist/react-design-system.js +12627 -10175
- package/dist/react-design-system.umd.cjs +108 -74
- package/package.json +3 -2
- package/src/assets/styles/theme-v3.css +99 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sesamehr/react-design-system",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Sesame HR React design system — components and design tokens",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
46
46
|
"@dnd-kit/sortable": "^10.0.0",
|
|
47
47
|
"@dnd-kit/utilities": "^3.2.2",
|
|
48
|
+
"@internationalized/date": "^3.5.0",
|
|
48
49
|
"@number-flow/react": "^0.6.2",
|
|
49
50
|
"@radix-ui/react-accordion": "^1.2.11",
|
|
50
51
|
"@radix-ui/react-checkbox": "^1.3.2",
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
"@radix-ui/react-tabs": "^1.1.12",
|
|
60
61
|
"@radix-ui/react-toast": "^1.2.24",
|
|
61
62
|
"@radix-ui/react-tooltip": "^1.2.7",
|
|
62
|
-
"@sesame/orxata-icons": "1.8.
|
|
63
|
+
"@sesame/orxata-icons": "1.8.2",
|
|
63
64
|
"@tailwindcss/vite": "^4.1.13",
|
|
64
65
|
"@tanstack/react-table": "^8.21.2",
|
|
65
66
|
"@tanstack/react-virtual": "^3.14.13",
|
|
@@ -82,6 +82,31 @@
|
|
|
82
82
|
--brand-accent-300: var(--color-emerald-300);
|
|
83
83
|
--brand-accent-500: var(--color-emerald-500);
|
|
84
84
|
--brand-accent-900: var(--color-emerald-900);
|
|
85
|
+
|
|
86
|
+
/* The AI gradients. Six tokens, three pairs, each pair one `from` and one
|
|
87
|
+
`to` because a gradient is the only thing in the system that needs two
|
|
88
|
+
colours to name one surface — Figma carries them as the colour styles
|
|
89
|
+
`gradient/ai-border`, `gradient/ai-surface` and `gradient/ai-surface-active`
|
|
90
|
+
with these as the bound stops, and the stops are what the components read.
|
|
91
|
+
|
|
92
|
+
Both pairs run yellow → brand, and that is the point: the AI marker is the
|
|
93
|
+
one place in the system where two hues appear in one shape, so nothing else
|
|
94
|
+
can be mistaken for it. The yellow end is `yellow-300` rather than a lighter
|
|
95
|
+
step in the border pair because a 1px line needs the saturated one to read
|
|
96
|
+
at all.
|
|
97
|
+
|
|
98
|
+
`-active` is the louder step on an AI surface. `OxAiTag` is not
|
|
99
|
+
interactive and binds nothing to it; `OxAiSearchAsk` does, for the row the
|
|
100
|
+
arrows have reached — a zinc highlight over the surface gradient would hide
|
|
101
|
+
the thing that makes the row the AI one.
|
|
102
|
+
|
|
103
|
+
Dark values are parked with the rest of the dark theme. */
|
|
104
|
+
--ai-border-from: var(--color-yellow-300);
|
|
105
|
+
--ai-border-to: var(--color-brand-500);
|
|
106
|
+
--ai-surface-from: var(--color-yellow-50);
|
|
107
|
+
--ai-surface-to: var(--color-brand-50);
|
|
108
|
+
--ai-surface-active-from: var(--color-yellow-100);
|
|
109
|
+
--ai-surface-active-to: var(--color-brand-100);
|
|
85
110
|
}
|
|
86
111
|
|
|
87
112
|
:root {
|
|
@@ -215,8 +240,8 @@
|
|
|
215
240
|
`Semantic-Colors/overlay` (Overlay board, node 1845:51257) aliases
|
|
216
241
|
`base/alpha-60`, whose name counts the opacity of what shows *through* it
|
|
217
242
|
and whose value is therefore 0.4 — white at 40%, not 60. Paired with
|
|
218
|
-
`backdrop-blur-
|
|
219
|
-
effect is bound to.
|
|
243
|
+
`backdrop-blur-xl` at the call site, which is the 24px the component's
|
|
244
|
+
effect is bound to (`Blur/xl`).
|
|
220
245
|
|
|
221
246
|
Figma's dark mode points the same semantic name at `base/black-alpha-40`,
|
|
222
247
|
black at 40%. There is no `.dark` block in v3 yet, so that value is
|
|
@@ -232,6 +257,59 @@
|
|
|
232
257
|
pick a darker surface rather than a reason to tint it a different colour. */
|
|
233
258
|
--state-layer: var(--color-white);
|
|
234
259
|
|
|
260
|
+
/* The dark wash that makes a count, a caption or a play glyph legible over a
|
|
261
|
+
photograph nobody has seen yet. Figma's `media-scrim` aliases zinc/950 and
|
|
262
|
+
`media-scrim-foreground` white, and both hold the same value in Dark: the
|
|
263
|
+
photograph is the background, so there is nothing for a mode to invert.
|
|
264
|
+
The opacity belongs to the component rather than to the token — a gallery's
|
|
265
|
+
"+N" cell and a video's play button draw it at 55%, a duration pill at full
|
|
266
|
+
strength.
|
|
267
|
+
|
|
268
|
+
Declared here although the components that read it are Vue-only so far:
|
|
269
|
+
`orxata/parity-theme` compares both packages' token names and values, and
|
|
270
|
+
a React build fails on an unresolved `var()` rather than ignoring it. */
|
|
271
|
+
--media-scrim: var(--color-zinc-950);
|
|
272
|
+
--media-scrim-foreground: var(--color-white);
|
|
273
|
+
|
|
274
|
+
/* The brand ramp as read *inside the reader's own chat bubble*, where
|
|
275
|
+
`muted` and `secondary` read as holes punched in it. Figma's `chat-user-*`
|
|
276
|
+
family, bound on the `Surface=Brand` variant of every chat attachment and
|
|
277
|
+
identical in Dark for the same reason — the bubble is brand-coloured in
|
|
278
|
+
both modes. `-media` is the tint behind a thumbnail that has not loaded,
|
|
279
|
+
`-surface` the card body a link preview or a location draws behind its
|
|
280
|
+
text, `-muted-foreground` the secondary line on that body — a domain,
|
|
281
|
+
a description, an address — where `muted-foreground` would be unreadable
|
|
282
|
+
grey-on-blue, and `-waveform` the unplayed bars of a voice note. */
|
|
283
|
+
--chat-user-media: var(--color-brand-400);
|
|
284
|
+
--chat-user-surface: var(--color-brand-600);
|
|
285
|
+
--chat-user-muted-foreground: var(--color-brand-100);
|
|
286
|
+
--chat-user-waveform: var(--color-brand-300);
|
|
287
|
+
|
|
288
|
+
/* The bars of a voice note nobody has played yet, in somebody else's bubble.
|
|
289
|
+
Outside the `chat-user-*` family because it is the one chat colour drawn on
|
|
290
|
+
a neutral surface rather than on the brand bubble — and so the one with a
|
|
291
|
+
Dark value in Figma that differs from its Light one, zinc/600 against
|
|
292
|
+
zinc/300. Only the Light one is here, like every other semantic: this theme
|
|
293
|
+
has no dark block to put the other in. The played bars are `brand`, so this
|
|
294
|
+
is the quieter half of a pair rather than a colour of its own. */
|
|
295
|
+
--chat-waveform: var(--color-zinc-300);
|
|
296
|
+
|
|
297
|
+
/* The five file types the v3 board closes the set at, and the one foreground
|
|
298
|
+
that reads on all of them. The badge on `OxFileCard` is the only thing that
|
|
299
|
+
binds them: `type` picks the ramp, the abbreviation printed on it is the
|
|
300
|
+
caller's. Figma's `file-*` family, in `Semantic-Colors`.
|
|
301
|
+
|
|
302
|
+
Declared in both packages although the component that reads them is
|
|
303
|
+
Vue-only so far: `orxata/parity-theme` compares both packages' token names
|
|
304
|
+
and values, and a React build fails on an unresolved `var()` rather than
|
|
305
|
+
ignoring it. */
|
|
306
|
+
--file-pdf: var(--color-red-500);
|
|
307
|
+
--file-word: var(--color-blue-600);
|
|
308
|
+
--file-excel: var(--color-green-600);
|
|
309
|
+
--file-powerpoint: var(--color-orange-500);
|
|
310
|
+
--file-generic: var(--color-zinc-500);
|
|
311
|
+
--file-foreground: var(--color-white);
|
|
312
|
+
|
|
235
313
|
--chart-1: var(--color-brand-400);
|
|
236
314
|
--chart-2: var(--color-brand-500);
|
|
237
315
|
--chart-3: var(--color-brand-600);
|
|
@@ -316,6 +394,12 @@
|
|
|
316
394
|
--color-brand-accent-300: var(--brand-accent-300);
|
|
317
395
|
--color-brand-accent-500: var(--brand-accent-500);
|
|
318
396
|
--color-brand-accent-900: var(--brand-accent-900);
|
|
397
|
+
--color-ai-border-from: var(--ai-border-from);
|
|
398
|
+
--color-ai-border-to: var(--ai-border-to);
|
|
399
|
+
--color-ai-surface-from: var(--ai-surface-from);
|
|
400
|
+
--color-ai-surface-to: var(--ai-surface-to);
|
|
401
|
+
--color-ai-surface-active-from: var(--ai-surface-active-from);
|
|
402
|
+
--color-ai-surface-active-to: var(--ai-surface-active-to);
|
|
319
403
|
|
|
320
404
|
--color-background: var(--background);
|
|
321
405
|
--color-foreground: var(--foreground);
|
|
@@ -355,6 +439,19 @@
|
|
|
355
439
|
--color-ring-error: var(--ring-error);
|
|
356
440
|
--color-state-layer: var(--state-layer);
|
|
357
441
|
--color-overlay: var(--overlay);
|
|
442
|
+
--color-media-scrim: var(--media-scrim);
|
|
443
|
+
--color-media-scrim-foreground: var(--media-scrim-foreground);
|
|
444
|
+
--color-chat-user-media: var(--chat-user-media);
|
|
445
|
+
--color-chat-user-surface: var(--chat-user-surface);
|
|
446
|
+
--color-chat-user-muted-foreground: var(--chat-user-muted-foreground);
|
|
447
|
+
--color-chat-user-waveform: var(--chat-user-waveform);
|
|
448
|
+
--color-chat-waveform: var(--chat-waveform);
|
|
449
|
+
--color-file-pdf: var(--file-pdf);
|
|
450
|
+
--color-file-word: var(--file-word);
|
|
451
|
+
--color-file-excel: var(--file-excel);
|
|
452
|
+
--color-file-powerpoint: var(--file-powerpoint);
|
|
453
|
+
--color-file-generic: var(--file-generic);
|
|
454
|
+
--color-file-foreground: var(--file-foreground);
|
|
358
455
|
--color-chart-1: var(--chart-1);
|
|
359
456
|
--color-chart-2: var(--chart-2);
|
|
360
457
|
--color-chart-3: var(--chart-3);
|