@sesamehr/react-design-system 1.2.0 → 1.4.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/Button.d.ts +1 -1
- package/dist/Data/Table/TableBody/TableBody.d.ts +1 -2
- 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/Feedback/Alert/Alert.d.ts +7 -5
- package/dist/Feedback/Dialog/Dialog.d.ts +1 -1
- package/dist/Feedback/Dialog/DialogTwoPanelContent.d.ts +1 -1
- package/dist/Feedback/Popover/Popover.d.ts +2 -2
- package/dist/Feedback/Tooltip/Tooltip.d.ts +2 -2
- package/dist/Forms/Inputs/Combobox/Combobox.d.ts +2 -2
- package/dist/Forms/Inputs/Combobox/ComboboxChipsInput.d.ts +1 -1
- package/dist/Forms/Inputs/Combobox/ComboboxContent.d.ts +1 -1
- package/dist/Forms/Inputs/Combobox/ComboboxEmpty.d.ts +1 -1
- package/dist/Forms/Inputs/Combobox/ComboboxGroup.d.ts +1 -1
- package/dist/Forms/Inputs/Combobox/ComboboxInput.d.ts +1 -1
- package/dist/Forms/Inputs/Combobox/ComboboxItem.d.ts +1 -1
- package/dist/Forms/Inputs/Combobox/ComboboxSeparator.d.ts +1 -1
- package/dist/Forms/Inputs/Combobox/context.d.ts +4 -4
- package/dist/Forms/Inputs/InputNumber/InputNumber.d.ts +2 -1
- package/dist/Forms/Inputs/InputNumber/InputNumberDecrement.d.ts +1 -1
- package/dist/Forms/Inputs/InputNumber/InputNumberIncrement.d.ts +1 -1
- package/dist/Forms/Inputs/InputNumber/InputNumberInput.d.ts +1 -1
- package/dist/Forms/Inputs/InputOtp/InputOtp.d.ts +4 -5
- package/dist/Forms/Inputs/InputOtp/types.d.ts +2 -2
- package/dist/Forms/Inputs/InputPassword/InputPassword.d.ts +5 -5
- package/dist/Forms/Inputs/InputPassword/InputPasswordToggle.d.ts +2 -2
- package/dist/Forms/Inputs/InputText/InputText.d.ts +7 -7
- package/dist/Forms/Inputs/Toggle/Checkbox/Checkbox.d.ts +4 -4
- package/dist/Forms/Inputs/Toggle/RadioButton/RadioButton.d.ts +2 -2
- package/dist/Forms/Inputs/Toggle/RadioButton/RadioGroup.d.ts +1 -1
- package/dist/Forms/Inputs/Toggle/Switch/Switch.d.ts +2 -3
- package/dist/Forms/Inputs/inputSize.d.ts +3 -3
- package/dist/Layout/Card/Card.d.ts +1 -1
- package/dist/Layout/Divider/Divider.d.ts +6 -5
- package/dist/Layout/Resizable/Resizable.d.ts +4 -4
- package/dist/Layout/Resizable/ResizableHandle.d.ts +5 -6
- package/dist/Layout/Resizable/ResizablePanel.d.ts +1 -1
- package/dist/Navigation/Accordion/Accordion.d.ts +1 -1
- package/dist/Navigation/Tabs/Tabs.d.ts +1 -1
- package/dist/Transitions/TransitionBase.d.ts +2 -2
- package/dist/Transitions/TransitionFlip/TransitionFlip.d.ts +3 -2
- package/dist/main.d.ts +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/react-design-system.js +7816 -7763
- package/dist/react-design-system.umd.cjs +48 -48
- package/package.json +1 -1
- package/src/assets/styles/primitives-v3.css +9 -5
- package/src/assets/styles/theme-v2.css +2 -2
- package/src/assets/styles/theme-v3.css +2 -2
- 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 */
|
|
@@ -283,13 +283,13 @@
|
|
|
283
283
|
height: 0;
|
|
284
284
|
}
|
|
285
285
|
to {
|
|
286
|
-
height: var(--
|
|
286
|
+
height: var(--radix-accordion-content-height);
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
@keyframes accordion-up {
|
|
291
291
|
from {
|
|
292
|
-
height: var(--
|
|
292
|
+
height: var(--radix-accordion-content-height);
|
|
293
293
|
}
|
|
294
294
|
to {
|
|
295
295
|
height: 0;
|
|
@@ -200,13 +200,13 @@
|
|
|
200
200
|
height: 0;
|
|
201
201
|
}
|
|
202
202
|
to {
|
|
203
|
-
height: var(--
|
|
203
|
+
height: var(--radix-accordion-content-height);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
@keyframes accordion-up {
|
|
208
208
|
from {
|
|
209
|
-
height: var(--
|
|
209
|
+
height: var(--radix-accordion-content-height);
|
|
210
210
|
}
|
|
211
211
|
to {
|
|
212
212
|
height: 0;
|
|
@@ -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>>;
|