@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.
Files changed (52) hide show
  1. package/dist/Button/Button.d.ts +1 -1
  2. package/dist/Data/Table/TableBody/TableBody.d.ts +1 -2
  3. package/dist/Display/Avatar/AvatarRounded/AvatarRounded.d.ts +23 -0
  4. package/dist/Display/Avatar/AvatarSquare/AvatarSquare.d.ts +23 -0
  5. package/dist/Display/Avatar/hooks/useAvatarBullet.d.ts +6 -13
  6. package/dist/Display/Avatar/index.d.ts +32 -6
  7. package/dist/Feedback/Alert/Alert.d.ts +7 -5
  8. package/dist/Feedback/Dialog/Dialog.d.ts +1 -1
  9. package/dist/Feedback/Dialog/DialogTwoPanelContent.d.ts +1 -1
  10. package/dist/Feedback/Popover/Popover.d.ts +2 -2
  11. package/dist/Feedback/Tooltip/Tooltip.d.ts +2 -2
  12. package/dist/Forms/Inputs/Combobox/Combobox.d.ts +2 -2
  13. package/dist/Forms/Inputs/Combobox/ComboboxChipsInput.d.ts +1 -1
  14. package/dist/Forms/Inputs/Combobox/ComboboxContent.d.ts +1 -1
  15. package/dist/Forms/Inputs/Combobox/ComboboxEmpty.d.ts +1 -1
  16. package/dist/Forms/Inputs/Combobox/ComboboxGroup.d.ts +1 -1
  17. package/dist/Forms/Inputs/Combobox/ComboboxInput.d.ts +1 -1
  18. package/dist/Forms/Inputs/Combobox/ComboboxItem.d.ts +1 -1
  19. package/dist/Forms/Inputs/Combobox/ComboboxSeparator.d.ts +1 -1
  20. package/dist/Forms/Inputs/Combobox/context.d.ts +4 -4
  21. package/dist/Forms/Inputs/InputNumber/InputNumber.d.ts +2 -1
  22. package/dist/Forms/Inputs/InputNumber/InputNumberDecrement.d.ts +1 -1
  23. package/dist/Forms/Inputs/InputNumber/InputNumberIncrement.d.ts +1 -1
  24. package/dist/Forms/Inputs/InputNumber/InputNumberInput.d.ts +1 -1
  25. package/dist/Forms/Inputs/InputOtp/InputOtp.d.ts +4 -5
  26. package/dist/Forms/Inputs/InputOtp/types.d.ts +2 -2
  27. package/dist/Forms/Inputs/InputPassword/InputPassword.d.ts +5 -5
  28. package/dist/Forms/Inputs/InputPassword/InputPasswordToggle.d.ts +2 -2
  29. package/dist/Forms/Inputs/InputText/InputText.d.ts +7 -7
  30. package/dist/Forms/Inputs/Toggle/Checkbox/Checkbox.d.ts +4 -4
  31. package/dist/Forms/Inputs/Toggle/RadioButton/RadioButton.d.ts +2 -2
  32. package/dist/Forms/Inputs/Toggle/RadioButton/RadioGroup.d.ts +1 -1
  33. package/dist/Forms/Inputs/Toggle/Switch/Switch.d.ts +2 -3
  34. package/dist/Forms/Inputs/inputSize.d.ts +3 -3
  35. package/dist/Layout/Card/Card.d.ts +1 -1
  36. package/dist/Layout/Divider/Divider.d.ts +6 -5
  37. package/dist/Layout/Resizable/Resizable.d.ts +4 -4
  38. package/dist/Layout/Resizable/ResizableHandle.d.ts +5 -6
  39. package/dist/Layout/Resizable/ResizablePanel.d.ts +1 -1
  40. package/dist/Navigation/Accordion/Accordion.d.ts +1 -1
  41. package/dist/Navigation/Tabs/Tabs.d.ts +1 -1
  42. package/dist/Transitions/TransitionBase.d.ts +2 -2
  43. package/dist/Transitions/TransitionFlip/TransitionFlip.d.ts +3 -2
  44. package/dist/main.d.ts +1 -1
  45. package/dist/react-design-system.css +1 -1
  46. package/dist/react-design-system.js +7816 -7763
  47. package/dist/react-design-system.umd.cjs +48 -48
  48. package/package.json +1 -1
  49. package/src/assets/styles/primitives-v3.css +9 -5
  50. package/src/assets/styles/theme-v2.css +2 -2
  51. package/src/assets/styles/theme-v3.css +2 -2
  52. package/dist/Display/Avatar/Avatar.d.ts +0 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sesamehr/react-design-system",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "Sesame HR React design system — components and design tokens",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -16,12 +16,16 @@
16
16
  =========================================== */
17
17
 
18
18
  :root {
19
- /* ===== RADIUS (custom scale, differs from Tailwind) ===== */
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.375rem; /* 6px */
22
- --radius-md: 0.5rem; /* 8px */
23
- --radius-lg: 0.625rem; /* 10px */
24
- --radius-xl: 0.875rem; /* 14px */
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(--reka-accordion-content-height);
286
+ height: var(--radix-accordion-content-height);
287
287
  }
288
288
  }
289
289
 
290
290
  @keyframes accordion-up {
291
291
  from {
292
- height: var(--reka-accordion-content-height);
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(--reka-accordion-content-height);
203
+ height: var(--radix-accordion-content-height);
204
204
  }
205
205
  }
206
206
 
207
207
  @keyframes accordion-up {
208
208
  from {
209
- height: var(--reka-accordion-content-height);
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>>;