@salesmind-ai/design-system 0.3.10 → 0.3.12

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 (92) hide show
  1. package/dist/{AppearanceProvider-C36a8-eb.d.cts → AppearanceProvider-B_o-H39e.d.cts} +14 -1
  2. package/dist/{AppearanceProvider-C36a8-eb.d.ts → AppearanceProvider-B_o-H39e.d.ts} +14 -1
  3. package/dist/admin/index.css +3 -3
  4. package/dist/admin/index.css.map +1 -1
  5. package/dist/admin/index.d.cts +1 -1
  6. package/dist/admin/index.d.ts +1 -1
  7. package/dist/{chunk-UQ4SHBMC.js → chunk-6R4F3HK6.js} +2 -2
  8. package/dist/{chunk-CH42VPWE.cjs → chunk-BJXGIHVZ.cjs} +22 -1
  9. package/dist/chunk-BJXGIHVZ.cjs.map +1 -0
  10. package/dist/{chunk-KNQEIU7O.cjs → chunk-C4XSNMRU.cjs} +8 -4
  11. package/dist/chunk-C4XSNMRU.cjs.map +1 -0
  12. package/dist/{chunk-KVGSVGRK.cjs → chunk-D2RHF2OE.cjs} +2 -2
  13. package/dist/chunk-D2RHF2OE.cjs.map +1 -0
  14. package/dist/{chunk-IFRATNLU.js → chunk-DMRQPGQA.js} +2 -2
  15. package/dist/chunk-DMRQPGQA.js.map +1 -0
  16. package/dist/{chunk-ELKEYKEI.cjs → chunk-F33EEHWL.cjs} +4 -4
  17. package/dist/{chunk-B23AGGYI.cjs → chunk-GQELL2MF.cjs} +2 -7
  18. package/dist/chunk-GQELL2MF.cjs.map +1 -0
  19. package/dist/{chunk-W2WTP6HS.cjs → chunk-HCZW5AJN.cjs} +4 -3
  20. package/dist/chunk-HCZW5AJN.cjs.map +1 -0
  21. package/dist/{chunk-T343CCH5.js → chunk-KE7T2HQC.js} +8 -4
  22. package/dist/chunk-KE7T2HQC.js.map +1 -0
  23. package/dist/{chunk-OGKGIXFC.cjs → chunk-KR6T7N7W.cjs} +26 -25
  24. package/dist/chunk-KR6T7N7W.cjs.map +1 -0
  25. package/dist/{chunk-UIPEIRGT.js → chunk-QALDZ7WQ.js} +2 -7
  26. package/dist/chunk-QALDZ7WQ.js.map +1 -0
  27. package/dist/{chunk-JPJN4YBC.js → chunk-QTARL7VL.js} +21 -2
  28. package/dist/chunk-QTARL7VL.js.map +1 -0
  29. package/dist/{chunk-HRENHNDJ.js → chunk-TCFC7XTB.js} +4 -3
  30. package/dist/chunk-TCFC7XTB.js.map +1 -0
  31. package/dist/{chunk-5LGDEZWY.cjs → chunk-UTVXGAQP.cjs} +10 -7
  32. package/dist/chunk-UTVXGAQP.cjs.map +1 -0
  33. package/dist/{chunk-U3LK2GID.js → chunk-WN626YNO.js} +4 -3
  34. package/dist/chunk-WN626YNO.js.map +1 -0
  35. package/dist/{chunk-MU6GW5ZV.js → chunk-XPTVHPCN.js} +7 -4
  36. package/dist/chunk-XPTVHPCN.js.map +1 -0
  37. package/dist/core/index.cjs +143 -135
  38. package/dist/core/index.css +3 -1
  39. package/dist/core/index.css.map +1 -1
  40. package/dist/core/index.d.cts +6 -1
  41. package/dist/core/index.d.ts +6 -1
  42. package/dist/core/index.js +3 -3
  43. package/dist/index.cjs +205 -197
  44. package/dist/index.css +47 -20
  45. package/dist/index.css.map +1 -1
  46. package/dist/index.d.cts +1 -1
  47. package/dist/index.d.ts +1 -1
  48. package/dist/index.js +7 -7
  49. package/dist/marketing/index.cjs +36 -36
  50. package/dist/marketing/index.css +3 -0
  51. package/dist/marketing/index.css.map +1 -1
  52. package/dist/marketing/index.js +2 -2
  53. package/dist/motion/index.cjs +7 -7
  54. package/dist/motion/index.d.cts +1 -1
  55. package/dist/motion/index.d.ts +1 -1
  56. package/dist/motion/index.js +1 -1
  57. package/dist/nav/index.cjs +16 -16
  58. package/dist/nav/index.css +3 -3
  59. package/dist/nav/index.css.map +1 -1
  60. package/dist/nav/index.js +1 -1
  61. package/dist/social-proof/index.css +28 -6
  62. package/dist/social-proof/index.css.map +1 -1
  63. package/dist/styles/styles.css +12 -10
  64. package/dist/theme/index.cjs +19 -11
  65. package/dist/theme/index.css +7 -7
  66. package/dist/theme/index.css.map +1 -1
  67. package/dist/theme/index.d.cts +1 -1
  68. package/dist/theme/index.d.ts +1 -1
  69. package/dist/theme/index.js +2 -2
  70. package/dist/web/index.cjs +7 -7
  71. package/dist/web/index.js +1 -1
  72. package/dist/web/server/index.cjs +7 -7
  73. package/dist/web/server/index.d.cts +4 -3
  74. package/dist/web/server/index.d.ts +4 -3
  75. package/dist/web/server/index.js +1 -1
  76. package/package.json +16 -1
  77. package/dist/chunk-5LGDEZWY.cjs.map +0 -1
  78. package/dist/chunk-B23AGGYI.cjs.map +0 -1
  79. package/dist/chunk-CH42VPWE.cjs.map +0 -1
  80. package/dist/chunk-HRENHNDJ.js.map +0 -1
  81. package/dist/chunk-IFRATNLU.js.map +0 -1
  82. package/dist/chunk-JPJN4YBC.js.map +0 -1
  83. package/dist/chunk-KNQEIU7O.cjs.map +0 -1
  84. package/dist/chunk-KVGSVGRK.cjs.map +0 -1
  85. package/dist/chunk-MU6GW5ZV.js.map +0 -1
  86. package/dist/chunk-OGKGIXFC.cjs.map +0 -1
  87. package/dist/chunk-T343CCH5.js.map +0 -1
  88. package/dist/chunk-U3LK2GID.js.map +0 -1
  89. package/dist/chunk-UIPEIRGT.js.map +0 -1
  90. package/dist/chunk-W2WTP6HS.cjs.map +0 -1
  91. /package/dist/{chunk-ELKEYKEI.cjs.map → chunk-6R4F3HK6.js.map} +0 -0
  92. /package/dist/{chunk-UQ4SHBMC.js.map → chunk-F33EEHWL.cjs.map} +0 -0
@@ -28,6 +28,19 @@ interface AppearanceContextValue extends AppearanceSettings {
28
28
  /** Detect system color scheme preference */
29
29
  /** Convert hex color to RGB triplet string (e.g., "255, 45, 138") */
30
30
  declare function hexToRgb(hex: string): string;
31
+ /**
32
+ * Compute relative luminance of an RGB triplet using the WCAG 2.1 formula.
33
+ * Returns a value between 0 (black) and 1 (white).
34
+ * @see https://www.w3.org/TR/WCAG21/#dfn-relative-luminance
35
+ */
36
+ declare function relativeLuminance(r: number, g: number, b: number): number;
37
+ /**
38
+ * Determine whether text on an accent-colored background should be black or white.
39
+ * Returns "0, 0, 0" for light accents and "255, 255, 255" for dark accents.
40
+ * Uses WCAG 2.1 relative luminance with a 0.179 threshold (equivalent to ~4.5:1
41
+ * contrast ratio against white).
42
+ */
43
+ declare function accentForegroundRgb(hex: string): string;
31
44
  /** Check if user prefers reduced motion */
32
45
  declare function prefersReducedMotion(): boolean;
33
46
  interface AppearanceProviderProps {
@@ -42,4 +55,4 @@ declare function AppearanceProvider({ initialSettings, disablePersistence, child
42
55
  declare function useAppearance(): AppearanceContextValue;
43
56
  declare function initializeAppearance(settings?: Partial<AppearanceSettings>): void;
44
57
 
45
- export { type AppearanceContextValue as A, type Brand as B, type Density as D, type NavPlacement as N, type Radius as R, type Theme as T, AppearanceProvider as a, type AppearanceProviderProps as b, type AppearanceSettings as c, hexToRgb as h, initializeAppearance as i, prefersReducedMotion as p, useAppearance as u };
58
+ export { type AppearanceContextValue as A, type Brand as B, type Density as D, type NavPlacement as N, type Radius as R, type Theme as T, AppearanceProvider as a, type AppearanceProviderProps as b, type AppearanceSettings as c, accentForegroundRgb as d, hexToRgb as h, initializeAppearance as i, prefersReducedMotion as p, relativeLuminance as r, useAppearance as u };
@@ -28,6 +28,19 @@ interface AppearanceContextValue extends AppearanceSettings {
28
28
  /** Detect system color scheme preference */
29
29
  /** Convert hex color to RGB triplet string (e.g., "255, 45, 138") */
30
30
  declare function hexToRgb(hex: string): string;
31
+ /**
32
+ * Compute relative luminance of an RGB triplet using the WCAG 2.1 formula.
33
+ * Returns a value between 0 (black) and 1 (white).
34
+ * @see https://www.w3.org/TR/WCAG21/#dfn-relative-luminance
35
+ */
36
+ declare function relativeLuminance(r: number, g: number, b: number): number;
37
+ /**
38
+ * Determine whether text on an accent-colored background should be black or white.
39
+ * Returns "0, 0, 0" for light accents and "255, 255, 255" for dark accents.
40
+ * Uses WCAG 2.1 relative luminance with a 0.179 threshold (equivalent to ~4.5:1
41
+ * contrast ratio against white).
42
+ */
43
+ declare function accentForegroundRgb(hex: string): string;
31
44
  /** Check if user prefers reduced motion */
32
45
  declare function prefersReducedMotion(): boolean;
33
46
  interface AppearanceProviderProps {
@@ -42,4 +55,4 @@ declare function AppearanceProvider({ initialSettings, disablePersistence, child
42
55
  declare function useAppearance(): AppearanceContextValue;
43
56
  declare function initializeAppearance(settings?: Partial<AppearanceSettings>): void;
44
57
 
45
- export { type AppearanceContextValue as A, type Brand as B, type Density as D, type NavPlacement as N, type Radius as R, type Theme as T, AppearanceProvider as a, type AppearanceProviderProps as b, type AppearanceSettings as c, hexToRgb as h, initializeAppearance as i, prefersReducedMotion as p, useAppearance as u };
58
+ export { type AppearanceContextValue as A, type Brand as B, type Density as D, type NavPlacement as N, type Radius as R, type Theme as T, AppearanceProvider as a, type AppearanceProviderProps as b, type AppearanceSettings as c, accentForegroundRgb as d, hexToRgb as h, initializeAppearance as i, prefersReducedMotion as p, relativeLuminance as r, useAppearance as u };
@@ -1804,7 +1804,7 @@
1804
1804
  .ds-signup__flag-display {
1805
1805
  display: flex;
1806
1806
  align-items: center;
1807
- gap: 6px;
1807
+ gap: var(--space-2);
1808
1808
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
1809
1809
  height: 100%;
1810
1810
  background: transparent;
@@ -1813,7 +1813,7 @@
1813
1813
  pointer-events: none;
1814
1814
  }
1815
1815
  .ds-signup__flag-icon {
1816
- font-size: 18px;
1816
+ font-size: var(--font-size-lg);
1817
1817
  line-height: 1;
1818
1818
  }
1819
1819
  .ds-signup__phone-input-native {
@@ -2262,7 +2262,7 @@
2262
2262
  font-weight: var(--font-weight-medium);
2263
2263
  cursor: pointer;
2264
2264
  transition: color var(--transition-glass);
2265
- margin-left: 3px;
2265
+ margin-left: var(--space-1);
2266
2266
  }
2267
2267
  .ds-forgot__link:hover:not(:disabled) {
2268
2268
  text-decoration: underline;