@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.
- package/dist/{AppearanceProvider-C36a8-eb.d.cts → AppearanceProvider-B_o-H39e.d.cts} +14 -1
- package/dist/{AppearanceProvider-C36a8-eb.d.ts → AppearanceProvider-B_o-H39e.d.ts} +14 -1
- package/dist/admin/index.css +3 -3
- package/dist/admin/index.css.map +1 -1
- package/dist/admin/index.d.cts +1 -1
- package/dist/admin/index.d.ts +1 -1
- package/dist/{chunk-UQ4SHBMC.js → chunk-6R4F3HK6.js} +2 -2
- package/dist/{chunk-CH42VPWE.cjs → chunk-BJXGIHVZ.cjs} +22 -1
- package/dist/chunk-BJXGIHVZ.cjs.map +1 -0
- package/dist/{chunk-KNQEIU7O.cjs → chunk-C4XSNMRU.cjs} +8 -4
- package/dist/chunk-C4XSNMRU.cjs.map +1 -0
- package/dist/{chunk-KVGSVGRK.cjs → chunk-D2RHF2OE.cjs} +2 -2
- package/dist/chunk-D2RHF2OE.cjs.map +1 -0
- package/dist/{chunk-IFRATNLU.js → chunk-DMRQPGQA.js} +2 -2
- package/dist/chunk-DMRQPGQA.js.map +1 -0
- package/dist/{chunk-ELKEYKEI.cjs → chunk-F33EEHWL.cjs} +4 -4
- package/dist/{chunk-B23AGGYI.cjs → chunk-GQELL2MF.cjs} +2 -7
- package/dist/chunk-GQELL2MF.cjs.map +1 -0
- package/dist/{chunk-W2WTP6HS.cjs → chunk-HCZW5AJN.cjs} +4 -3
- package/dist/chunk-HCZW5AJN.cjs.map +1 -0
- package/dist/{chunk-T343CCH5.js → chunk-KE7T2HQC.js} +8 -4
- package/dist/chunk-KE7T2HQC.js.map +1 -0
- package/dist/{chunk-OGKGIXFC.cjs → chunk-KR6T7N7W.cjs} +26 -25
- package/dist/chunk-KR6T7N7W.cjs.map +1 -0
- package/dist/{chunk-UIPEIRGT.js → chunk-QALDZ7WQ.js} +2 -7
- package/dist/chunk-QALDZ7WQ.js.map +1 -0
- package/dist/{chunk-JPJN4YBC.js → chunk-QTARL7VL.js} +21 -2
- package/dist/chunk-QTARL7VL.js.map +1 -0
- package/dist/{chunk-HRENHNDJ.js → chunk-TCFC7XTB.js} +4 -3
- package/dist/chunk-TCFC7XTB.js.map +1 -0
- package/dist/{chunk-5LGDEZWY.cjs → chunk-UTVXGAQP.cjs} +10 -7
- package/dist/chunk-UTVXGAQP.cjs.map +1 -0
- package/dist/{chunk-U3LK2GID.js → chunk-WN626YNO.js} +4 -3
- package/dist/chunk-WN626YNO.js.map +1 -0
- package/dist/{chunk-MU6GW5ZV.js → chunk-XPTVHPCN.js} +7 -4
- package/dist/chunk-XPTVHPCN.js.map +1 -0
- package/dist/core/index.cjs +143 -135
- package/dist/core/index.css +3 -1
- package/dist/core/index.css.map +1 -1
- package/dist/core/index.d.cts +6 -1
- package/dist/core/index.d.ts +6 -1
- package/dist/core/index.js +3 -3
- package/dist/index.cjs +205 -197
- package/dist/index.css +47 -20
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -7
- package/dist/marketing/index.cjs +36 -36
- package/dist/marketing/index.css +3 -0
- package/dist/marketing/index.css.map +1 -1
- package/dist/marketing/index.js +2 -2
- package/dist/motion/index.cjs +7 -7
- package/dist/motion/index.d.cts +1 -1
- package/dist/motion/index.d.ts +1 -1
- package/dist/motion/index.js +1 -1
- package/dist/nav/index.cjs +16 -16
- package/dist/nav/index.css +3 -3
- package/dist/nav/index.css.map +1 -1
- package/dist/nav/index.js +1 -1
- package/dist/social-proof/index.css +28 -6
- package/dist/social-proof/index.css.map +1 -1
- package/dist/styles/styles.css +12 -10
- package/dist/theme/index.cjs +19 -11
- package/dist/theme/index.css +7 -7
- package/dist/theme/index.css.map +1 -1
- package/dist/theme/index.d.cts +1 -1
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.js +2 -2
- package/dist/web/index.cjs +7 -7
- package/dist/web/index.js +1 -1
- package/dist/web/server/index.cjs +7 -7
- package/dist/web/server/index.d.cts +4 -3
- package/dist/web/server/index.d.ts +4 -3
- package/dist/web/server/index.js +1 -1
- package/package.json +16 -1
- package/dist/chunk-5LGDEZWY.cjs.map +0 -1
- package/dist/chunk-B23AGGYI.cjs.map +0 -1
- package/dist/chunk-CH42VPWE.cjs.map +0 -1
- package/dist/chunk-HRENHNDJ.js.map +0 -1
- package/dist/chunk-IFRATNLU.js.map +0 -1
- package/dist/chunk-JPJN4YBC.js.map +0 -1
- package/dist/chunk-KNQEIU7O.cjs.map +0 -1
- package/dist/chunk-KVGSVGRK.cjs.map +0 -1
- package/dist/chunk-MU6GW5ZV.js.map +0 -1
- package/dist/chunk-OGKGIXFC.cjs.map +0 -1
- package/dist/chunk-T343CCH5.js.map +0 -1
- package/dist/chunk-U3LK2GID.js.map +0 -1
- package/dist/chunk-UIPEIRGT.js.map +0 -1
- package/dist/chunk-W2WTP6HS.cjs.map +0 -1
- /package/dist/{chunk-ELKEYKEI.cjs.map → chunk-6R4F3HK6.js.map} +0 -0
- /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 };
|
package/dist/admin/index.css
CHANGED
|
@@ -1804,7 +1804,7 @@
|
|
|
1804
1804
|
.ds-signup__flag-display {
|
|
1805
1805
|
display: flex;
|
|
1806
1806
|
align-items: center;
|
|
1807
|
-
gap:
|
|
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:
|
|
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:
|
|
2265
|
+
margin-left: var(--space-1);
|
|
2266
2266
|
}
|
|
2267
2267
|
.ds-forgot__link:hover:not(:disabled) {
|
|
2268
2268
|
text-decoration: underline;
|