@brycks/core-front 0.1.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/README.md +163 -0
- package/dist/colors-B_8a3coi.js +106 -0
- package/dist/colors-B_8a3coi.js.map +1 -0
- package/dist/colors-Bp6ROxvx.cjs +2 -0
- package/dist/colors-Bp6ROxvx.cjs.map +1 -0
- package/dist/components/feedback/Alert/Alert.d.ts +29 -0
- package/dist/components/feedback/Alert/Alert.d.ts.map +1 -0
- package/dist/components/feedback/Alert/index.d.ts +3 -0
- package/dist/components/feedback/Alert/index.d.ts.map +1 -0
- package/dist/components/feedback/Modal/Modal.d.ts +28 -0
- package/dist/components/feedback/Modal/Modal.d.ts.map +1 -0
- package/dist/components/feedback/Modal/index.d.ts +3 -0
- package/dist/components/feedback/Modal/index.d.ts.map +1 -0
- package/dist/components/feedback/Tooltip/Tooltip.d.ts +20 -0
- package/dist/components/feedback/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/feedback/Tooltip/index.d.ts +3 -0
- package/dist/components/feedback/Tooltip/index.d.ts.map +1 -0
- package/dist/components/feedback/index.d.ts +9 -0
- package/dist/components/feedback/index.d.ts.map +1 -0
- package/dist/components/form/Checkbox/Checkbox.d.ts +20 -0
- package/dist/components/form/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/form/Checkbox/index.d.ts +3 -0
- package/dist/components/form/Checkbox/index.d.ts.map +1 -0
- package/dist/components/form/Input/Input.d.ts +21 -0
- package/dist/components/form/Input/Input.d.ts.map +1 -0
- package/dist/components/form/Input/index.d.ts +3 -0
- package/dist/components/form/Input/index.d.ts.map +1 -0
- package/dist/components/form/Select/Select.d.ts +21 -0
- package/dist/components/form/Select/Select.d.ts.map +1 -0
- package/dist/components/form/Select/index.d.ts +3 -0
- package/dist/components/form/Select/index.d.ts.map +1 -0
- package/dist/components/form/Switch/Switch.d.ts +16 -0
- package/dist/components/form/Switch/Switch.d.ts.map +1 -0
- package/dist/components/form/Switch/index.d.ts +3 -0
- package/dist/components/form/Switch/index.d.ts.map +1 -0
- package/dist/components/form/TextField/TextField.d.ts +16 -0
- package/dist/components/form/TextField/TextField.d.ts.map +1 -0
- package/dist/components/form/TextField/index.d.ts +3 -0
- package/dist/components/form/TextField/index.d.ts.map +1 -0
- package/dist/components/form/Textarea/Textarea.d.ts +27 -0
- package/dist/components/form/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/form/Textarea/index.d.ts +3 -0
- package/dist/components/form/Textarea/index.d.ts.map +1 -0
- package/dist/components/form/index.d.ts +12 -0
- package/dist/components/form/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/layout/Box/Box.d.ts +11 -0
- package/dist/components/layout/Box/Box.d.ts.map +1 -0
- package/dist/components/layout/Box/Box.styles.d.ts +4 -0
- package/dist/components/layout/Box/Box.styles.d.ts.map +1 -0
- package/dist/components/layout/Box/Box.types.d.ts +38 -0
- package/dist/components/layout/Box/Box.types.d.ts.map +1 -0
- package/dist/components/layout/Box/index.d.ts +3 -0
- package/dist/components/layout/Box/index.d.ts.map +1 -0
- package/dist/components/layout/Container/Container.d.ts +31 -0
- package/dist/components/layout/Container/Container.d.ts.map +1 -0
- package/dist/components/layout/Container/index.d.ts +3 -0
- package/dist/components/layout/Container/index.d.ts.map +1 -0
- package/dist/components/layout/Grid/Grid.d.ts +80 -0
- package/dist/components/layout/Grid/Grid.d.ts.map +1 -0
- package/dist/components/layout/Grid/index.d.ts +3 -0
- package/dist/components/layout/Grid/index.d.ts.map +1 -0
- package/dist/components/layout/Stack/Stack.d.ts +13 -0
- package/dist/components/layout/Stack/Stack.d.ts.map +1 -0
- package/dist/components/layout/Stack/Stack.types.d.ts +33 -0
- package/dist/components/layout/Stack/Stack.types.d.ts.map +1 -0
- package/dist/components/layout/Stack/index.d.ts +3 -0
- package/dist/components/layout/Stack/index.d.ts.map +1 -0
- package/dist/components/layout/index.d.ts +10 -0
- package/dist/components/layout/index.d.ts.map +1 -0
- package/dist/components/primitives/Button/Button.d.ts +12 -0
- package/dist/components/primitives/Button/Button.d.ts.map +1 -0
- package/dist/components/primitives/Button/Button.styles.d.ts +29 -0
- package/dist/components/primitives/Button/Button.styles.d.ts.map +1 -0
- package/dist/components/primitives/Button/Button.types.d.ts +37 -0
- package/dist/components/primitives/Button/Button.types.d.ts.map +1 -0
- package/dist/components/primitives/Button/index.d.ts +3 -0
- package/dist/components/primitives/Button/index.d.ts.map +1 -0
- package/dist/components/primitives/index.d.ts +7 -0
- package/dist/components/primitives/index.d.ts.map +1 -0
- package/dist/components/typography/Heading/Heading.d.ts +38 -0
- package/dist/components/typography/Heading/Heading.d.ts.map +1 -0
- package/dist/components/typography/Heading/index.d.ts +3 -0
- package/dist/components/typography/Heading/index.d.ts.map +1 -0
- package/dist/components/typography/Text/Text.d.ts +41 -0
- package/dist/components/typography/Text/Text.d.ts.map +1 -0
- package/dist/components/typography/Text/index.d.ts +3 -0
- package/dist/components/typography/Text/index.d.ts.map +1 -0
- package/dist/components/typography/index.d.ts +8 -0
- package/dist/components/typography/index.d.ts.map +1 -0
- package/dist/components/utility/Badge/Badge.d.ts +20 -0
- package/dist/components/utility/Badge/Badge.d.ts.map +1 -0
- package/dist/components/utility/Badge/index.d.ts +3 -0
- package/dist/components/utility/Badge/index.d.ts.map +1 -0
- package/dist/components/utility/Divider/Divider.d.ts +19 -0
- package/dist/components/utility/Divider/Divider.d.ts.map +1 -0
- package/dist/components/utility/Divider/index.d.ts +3 -0
- package/dist/components/utility/Divider/index.d.ts.map +1 -0
- package/dist/components/utility/EmptyState/EmptyState.d.ts +26 -0
- package/dist/components/utility/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/components/utility/EmptyState/index.d.ts +3 -0
- package/dist/components/utility/EmptyState/index.d.ts.map +1 -0
- package/dist/components/utility/Loader/Loader.d.ts +21 -0
- package/dist/components/utility/Loader/Loader.d.ts.map +1 -0
- package/dist/components/utility/Loader/index.d.ts +3 -0
- package/dist/components/utility/Loader/index.d.ts.map +1 -0
- package/dist/components/utility/Skeleton/Skeleton.d.ts +35 -0
- package/dist/components/utility/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/utility/Skeleton/index.d.ts +3 -0
- package/dist/components/utility/Skeleton/index.d.ts.map +1 -0
- package/dist/components/utility/index.d.ts +11 -0
- package/dist/components/utility/index.d.ts.map +1 -0
- package/dist/cssVariables-CU3jCd8f.js +273 -0
- package/dist/cssVariables-CU3jCd8f.js.map +1 -0
- package/dist/cssVariables-D_naqeoR.cjs +2 -0
- package/dist/cssVariables-D_naqeoR.cjs.map +1 -0
- package/dist/design-system/index.d.ts +16 -0
- package/dist/design-system/index.d.ts.map +1 -0
- package/dist/design-system/primitives/focus.d.ts +67 -0
- package/dist/design-system/primitives/focus.d.ts.map +1 -0
- package/dist/design-system/primitives/index.d.ts +14 -0
- package/dist/design-system/primitives/index.d.ts.map +1 -0
- package/dist/design-system/primitives/opacity.d.ts +88 -0
- package/dist/design-system/primitives/opacity.d.ts.map +1 -0
- package/dist/design-system/primitives/sizing.d.ts +155 -0
- package/dist/design-system/primitives/sizing.d.ts.map +1 -0
- package/dist/design-system/primitives/transitions.d.ts +92 -0
- package/dist/design-system/primitives/transitions.d.ts.map +1 -0
- package/dist/design-system/primitives/typography.d.ts +164 -0
- package/dist/design-system/primitives/typography.d.ts.map +1 -0
- package/dist/design-system/themes/ThemeProvider.d.ts +18 -0
- package/dist/design-system/themes/ThemeProvider.d.ts.map +1 -0
- package/dist/design-system/themes/cssVariables.d.ts +52 -0
- package/dist/design-system/themes/cssVariables.d.ts.map +1 -0
- package/dist/design-system/themes/darkTheme.d.ts +3 -0
- package/dist/design-system/themes/darkTheme.d.ts.map +1 -0
- package/dist/design-system/themes/index.d.ts +11 -0
- package/dist/design-system/themes/index.d.ts.map +1 -0
- package/dist/design-system/themes/lightTheme.d.ts +3 -0
- package/dist/design-system/themes/lightTheme.d.ts.map +1 -0
- package/dist/design-system/themes/types.d.ts +134 -0
- package/dist/design-system/themes/types.d.ts.map +1 -0
- package/dist/design-system/tokens/borders.d.ts +86 -0
- package/dist/design-system/tokens/borders.d.ts.map +1 -0
- package/dist/design-system/tokens/breakpoints.d.ts +66 -0
- package/dist/design-system/tokens/breakpoints.d.ts.map +1 -0
- package/dist/design-system/tokens/colors.d.ts +206 -0
- package/dist/design-system/tokens/colors.d.ts.map +1 -0
- package/dist/design-system/tokens/index.d.ts +23 -0
- package/dist/design-system/tokens/index.d.ts.map +1 -0
- package/dist/design-system/tokens/motion.d.ts +204 -0
- package/dist/design-system/tokens/motion.d.ts.map +1 -0
- package/dist/design-system/tokens/shadows.d.ts +55 -0
- package/dist/design-system/tokens/shadows.d.ts.map +1 -0
- package/dist/design-system/tokens/spacing.d.ts +104 -0
- package/dist/design-system/tokens/spacing.d.ts.map +1 -0
- package/dist/design-system/tokens/typography.d.ts +214 -0
- package/dist/design-system/tokens/typography.d.ts.map +1 -0
- package/dist/design-system/tokens/zIndex.d.ts +36 -0
- package/dist/design-system/tokens/zIndex.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useDisclosure.d.ts +19 -0
- package/dist/hooks/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useMediaQuery.d.ts +13 -0
- package/dist/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/index.cjs +89 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3215 -0
- package/dist/index.js.map +1 -0
- package/dist/themes.cjs +2 -0
- package/dist/themes.cjs.map +1 -0
- package/dist/themes.d.ts +2 -0
- package/dist/themes.js +11 -0
- package/dist/themes.js.map +1 -0
- package/dist/tokens.cjs +2 -0
- package/dist/tokens.cjs.map +1 -0
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.js +627 -0
- package/dist/tokens.js.map +1 -0
- package/dist/types/common.d.ts +90 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/styles.d.ts +17 -0
- package/dist/utils/styles.d.ts.map +1 -0
- package/package.json +78 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brycks Design System - Focus State Primitives
|
|
3
|
+
*
|
|
4
|
+
* Centralized focus ring and state definitions.
|
|
5
|
+
* Ensures consistent accessibility across all interactive elements.
|
|
6
|
+
*
|
|
7
|
+
* RULE: All focusable elements MUST use these focus styles.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Focus ring box-shadow values.
|
|
11
|
+
* Uses CSS variables for theme-aware colors.
|
|
12
|
+
*/
|
|
13
|
+
export declare const focusRing: {
|
|
14
|
+
/** Default focus ring - primary color */
|
|
15
|
+
readonly default: "0 0 0 3px var(--brycks-focus-ring-color, rgba(85, 120, 244, 0.35))";
|
|
16
|
+
/** Error state focus ring */
|
|
17
|
+
readonly error: "0 0 0 3px var(--brycks-focus-ring-error, rgba(239, 68, 68, 0.35))";
|
|
18
|
+
/** Success state focus ring */
|
|
19
|
+
readonly success: "0 0 0 3px var(--brycks-focus-ring-success, rgba(16, 185, 129, 0.35))";
|
|
20
|
+
/** Subtle focus ring - for nested elements */
|
|
21
|
+
readonly subtle: "0 0 0 2px var(--brycks-focus-ring-color, rgba(85, 120, 244, 0.25))";
|
|
22
|
+
/** None - explicitly no focus ring */
|
|
23
|
+
readonly none: "none";
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Focus ring with offset (for elements with borders).
|
|
27
|
+
*/
|
|
28
|
+
export declare const focusRingOffset: {
|
|
29
|
+
readonly default: "0 0 0 2px var(--brycks-background-app), 0 0 0 4px var(--brycks-primary-default)";
|
|
30
|
+
readonly error: "0 0 0 2px var(--brycks-background-app), 0 0 0 4px var(--brycks-error-default)";
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* CSS custom properties that should be set by ThemeProvider.
|
|
34
|
+
* These enable theme-aware focus rings.
|
|
35
|
+
*/
|
|
36
|
+
export declare const focusRingCSSVars: {
|
|
37
|
+
readonly color: "--brycks-focus-ring-color";
|
|
38
|
+
readonly error: "--brycks-focus-ring-error";
|
|
39
|
+
readonly success: "--brycks-focus-ring-success";
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Complete focus styles object for spreading.
|
|
43
|
+
*/
|
|
44
|
+
export declare const focusStyles: {
|
|
45
|
+
/** Outline-based focus (native) */
|
|
46
|
+
readonly outline: {
|
|
47
|
+
readonly outline: "2px solid var(--brycks-border-focus)";
|
|
48
|
+
readonly outlineOffset: "2px";
|
|
49
|
+
};
|
|
50
|
+
/** Box-shadow based focus (custom) */
|
|
51
|
+
readonly ring: {
|
|
52
|
+
readonly outline: "none";
|
|
53
|
+
readonly boxShadow: "0 0 0 3px var(--brycks-focus-ring-color, rgba(85, 120, 244, 0.35))";
|
|
54
|
+
};
|
|
55
|
+
/** Error state focus */
|
|
56
|
+
readonly ringError: {
|
|
57
|
+
readonly outline: "none";
|
|
58
|
+
readonly boxShadow: "0 0 0 3px var(--brycks-focus-ring-error, rgba(239, 68, 68, 0.35))";
|
|
59
|
+
};
|
|
60
|
+
/** Remove focus styles (use sparingly) */
|
|
61
|
+
readonly none: {
|
|
62
|
+
readonly outline: "none";
|
|
63
|
+
readonly boxShadow: "none";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export type FocusRingVariant = keyof typeof focusRing;
|
|
67
|
+
//# sourceMappingURL=focus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../../src/design-system/primitives/focus.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,eAAO,MAAM,SAAS;IACpB,yCAAyC;;IAEzC,6BAA6B;;IAE7B,+BAA+B;;IAE/B,8CAA8C;;IAE9C,sCAAsC;;CAE9B,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,eAAe;;;CAGlB,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,WAAW;IACtB,mCAAmC;;;;;IAKnC,sCAAsC;;;;;IAKtC,wBAAwB;;;;;IAKxB,0CAA0C;;;;;CAKlC,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,SAAS,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brycks Design System - Primitive Constants
|
|
3
|
+
*
|
|
4
|
+
* This module provides derived constants from base tokens.
|
|
5
|
+
* Components MUST use these primitives instead of hardcoded values.
|
|
6
|
+
*
|
|
7
|
+
* @module primitives
|
|
8
|
+
*/
|
|
9
|
+
export * from './sizing';
|
|
10
|
+
export * from './focus';
|
|
11
|
+
export * from './transitions';
|
|
12
|
+
export * from './typography';
|
|
13
|
+
export * from './opacity';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/design-system/primitives/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brycks Design System - Opacity Primitives
|
|
3
|
+
*
|
|
4
|
+
* Standardized opacity values for consistent visual states.
|
|
5
|
+
*
|
|
6
|
+
* RULE: Components MUST use these values. Never hardcode opacity.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Opacity scale for various visual states.
|
|
10
|
+
*/
|
|
11
|
+
export declare const opacity: {
|
|
12
|
+
/** 0 - Fully transparent */
|
|
13
|
+
readonly transparent: 0;
|
|
14
|
+
/** 0.05 - Barely visible */
|
|
15
|
+
readonly 5: 0.05;
|
|
16
|
+
/** 0.1 - Subtle hint */
|
|
17
|
+
readonly 10: 0.1;
|
|
18
|
+
/** 0.15 - Light overlay */
|
|
19
|
+
readonly 15: 0.15;
|
|
20
|
+
/** 0.2 - Soft background */
|
|
21
|
+
readonly 20: 0.2;
|
|
22
|
+
/** 0.25 - Quarter visible */
|
|
23
|
+
readonly 25: 0.25;
|
|
24
|
+
/** 0.3 - Light emphasis */
|
|
25
|
+
readonly 30: 0.3;
|
|
26
|
+
/** 0.4 - Medium-light */
|
|
27
|
+
readonly 40: 0.4;
|
|
28
|
+
/** 0.5 - Half visible (disabled) */
|
|
29
|
+
readonly 50: 0.5;
|
|
30
|
+
/** 0.6 - Medium */
|
|
31
|
+
readonly 60: 0.6;
|
|
32
|
+
/** 0.7 - Medium-strong */
|
|
33
|
+
readonly 70: 0.7;
|
|
34
|
+
/** 0.75 - Three-quarter visible */
|
|
35
|
+
readonly 75: 0.75;
|
|
36
|
+
/** 0.8 - Strong */
|
|
37
|
+
readonly 80: 0.8;
|
|
38
|
+
/** 0.9 - Almost opaque */
|
|
39
|
+
readonly 90: 0.9;
|
|
40
|
+
/** 0.95 - Nearly opaque */
|
|
41
|
+
readonly 95: 0.95;
|
|
42
|
+
/** 1 - Fully opaque */
|
|
43
|
+
readonly opaque: 1;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Semantic opacity values for common states.
|
|
47
|
+
*/
|
|
48
|
+
export declare const stateOpacity: {
|
|
49
|
+
/** Disabled elements */
|
|
50
|
+
readonly disabled: 0.5;
|
|
51
|
+
/** Placeholder text */
|
|
52
|
+
readonly placeholder: 0.5;
|
|
53
|
+
/** Hover overlay */
|
|
54
|
+
readonly hoverOverlay: 0.05;
|
|
55
|
+
/** Active/pressed overlay */
|
|
56
|
+
readonly activeOverlay: 0.1;
|
|
57
|
+
/** Modal backdrop */
|
|
58
|
+
readonly backdrop: 0.4;
|
|
59
|
+
/** Loading state */
|
|
60
|
+
readonly loading: 0.7;
|
|
61
|
+
/** Secondary text */
|
|
62
|
+
readonly muted: 0.6;
|
|
63
|
+
/** Subtle decorative elements */
|
|
64
|
+
readonly subtle: 0.3;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Scale transform values for interactive states.
|
|
68
|
+
*/
|
|
69
|
+
export declare const scale: {
|
|
70
|
+
/** Pressed state - subtle shrink */
|
|
71
|
+
readonly pressed: 0.98;
|
|
72
|
+
/** Strong pressed - more noticeable */
|
|
73
|
+
readonly pressedStrong: 0.95;
|
|
74
|
+
/** Checkbox pressed */
|
|
75
|
+
readonly controlPressed: 0.92;
|
|
76
|
+
/** Hidden/initial state for animations */
|
|
77
|
+
readonly hidden: 0.95;
|
|
78
|
+
/** Normal state */
|
|
79
|
+
readonly normal: 1;
|
|
80
|
+
/** Slight grow on hover */
|
|
81
|
+
readonly hover: 1.02;
|
|
82
|
+
/** Emphasized grow */
|
|
83
|
+
readonly emphasized: 1.05;
|
|
84
|
+
};
|
|
85
|
+
export type OpacityValue = keyof typeof opacity;
|
|
86
|
+
export type StateOpacity = keyof typeof stateOpacity;
|
|
87
|
+
export type ScaleValue = keyof typeof scale;
|
|
88
|
+
//# sourceMappingURL=opacity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opacity.d.ts","sourceRoot":"","sources":["../../../src/design-system/primitives/opacity.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAM,OAAO;IAClB,4BAA4B;;IAE5B,4BAA4B;;IAE5B,wBAAwB;;IAExB,2BAA2B;;IAE3B,4BAA4B;;IAE5B,6BAA6B;;IAE7B,2BAA2B;;IAE3B,yBAAyB;;IAEzB,oCAAoC;;IAEpC,mBAAmB;;IAEnB,0BAA0B;;IAE1B,mCAAmC;;IAEnC,mBAAmB;;IAEnB,0BAA0B;;IAE1B,2BAA2B;;IAE3B,uBAAuB;;CAEf,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,YAAY;IACvB,wBAAwB;;IAExB,uBAAuB;;IAEvB,oBAAoB;;IAEpB,6BAA6B;;IAE7B,qBAAqB;;IAErB,oBAAoB;;IAEpB,qBAAqB;;IAErB,iCAAiC;;CAEzB,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,KAAK;IAChB,oCAAoC;;IAEpC,uCAAuC;;IAEvC,uBAAuB;;IAEvB,0CAA0C;;IAE1C,mBAAmB;;IAEnB,2BAA2B;;IAE3B,sBAAsB;;CAEd,CAAA;AAEV,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,OAAO,CAAA;AAC/C,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,YAAY,CAAA;AACpD,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,KAAK,CAAA"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brycks Design System - Component Sizing Primitives
|
|
3
|
+
*
|
|
4
|
+
* Standardized sizing scales for consistent component dimensions.
|
|
5
|
+
* All values are derived from the spacing token system (4px grid).
|
|
6
|
+
*
|
|
7
|
+
* RULE: Components MUST use these scales. Never hardcode dimensions.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Standard component heights for interactive elements.
|
|
11
|
+
* Based on touch-target guidelines (minimum 44px for accessibility).
|
|
12
|
+
*/
|
|
13
|
+
export declare const componentHeights: {
|
|
14
|
+
/** 24px - Micro elements (tags, small badges) */
|
|
15
|
+
readonly xs: number;
|
|
16
|
+
/** 32px - Small inputs, compact buttons */
|
|
17
|
+
readonly sm: number;
|
|
18
|
+
/** 40px - Default size for most interactive elements */
|
|
19
|
+
readonly md: number;
|
|
20
|
+
/** 48px - Large inputs, prominent buttons */
|
|
21
|
+
readonly lg: number;
|
|
22
|
+
/** 56px - Extra large, hero CTAs */
|
|
23
|
+
readonly xl: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Icon sizes that align with component heights.
|
|
27
|
+
*/
|
|
28
|
+
export declare const iconSizes: {
|
|
29
|
+
/** 12px */
|
|
30
|
+
readonly xs: number;
|
|
31
|
+
/** 16px */
|
|
32
|
+
readonly sm: number;
|
|
33
|
+
/** 20px */
|
|
34
|
+
readonly md: number;
|
|
35
|
+
/** 24px */
|
|
36
|
+
readonly lg: number;
|
|
37
|
+
/** 32px */
|
|
38
|
+
readonly xl: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Standard padding for interactive components (horizontal).
|
|
42
|
+
* Follows a progressive scale for visual balance.
|
|
43
|
+
*/
|
|
44
|
+
export declare const componentPaddingX: {
|
|
45
|
+
/** 8px */
|
|
46
|
+
readonly xs: number;
|
|
47
|
+
/** 12px */
|
|
48
|
+
readonly sm: number;
|
|
49
|
+
/** 16px */
|
|
50
|
+
readonly md: number;
|
|
51
|
+
/** 20px */
|
|
52
|
+
readonly lg: number;
|
|
53
|
+
/** 24px */
|
|
54
|
+
readonly xl: number;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Standard padding for interactive components (vertical).
|
|
58
|
+
*/
|
|
59
|
+
export declare const componentPaddingY: {
|
|
60
|
+
/** 4px */
|
|
61
|
+
readonly xs: 4;
|
|
62
|
+
/** 6px */
|
|
63
|
+
readonly sm: number;
|
|
64
|
+
/** 8px */
|
|
65
|
+
readonly md: number;
|
|
66
|
+
/** 10px */
|
|
67
|
+
readonly lg: number;
|
|
68
|
+
/** 12px */
|
|
69
|
+
readonly xl: number;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Standard gap values for component internals.
|
|
73
|
+
*/
|
|
74
|
+
export declare const componentGap: {
|
|
75
|
+
/** 4px - Tight spacing between icons and text */
|
|
76
|
+
readonly xs: 4;
|
|
77
|
+
/** 6px */
|
|
78
|
+
readonly sm: number;
|
|
79
|
+
/** 8px - Default internal spacing */
|
|
80
|
+
readonly md: number;
|
|
81
|
+
/** 10px */
|
|
82
|
+
readonly lg: number;
|
|
83
|
+
/** 12px - Spacious internal spacing */
|
|
84
|
+
readonly xl: number;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Modal/dialog width presets.
|
|
88
|
+
*/
|
|
89
|
+
export declare const modalWidths: {
|
|
90
|
+
/** 400px - Small dialogs, confirmations */
|
|
91
|
+
readonly sm: 400;
|
|
92
|
+
/** 500px - Medium dialogs */
|
|
93
|
+
readonly md: 500;
|
|
94
|
+
/** 640px - Large dialogs */
|
|
95
|
+
readonly lg: 640;
|
|
96
|
+
/** 800px - Extra large dialogs */
|
|
97
|
+
readonly xl: 800;
|
|
98
|
+
/** Full width minus margins */
|
|
99
|
+
readonly full: "calc(100vw - 48px)";
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Tooltip and popover constraints.
|
|
103
|
+
*/
|
|
104
|
+
export declare const popoverSizing: {
|
|
105
|
+
/** Default tooltip max width */
|
|
106
|
+
readonly tooltipMaxWidth: 300;
|
|
107
|
+
/** Default popover max width */
|
|
108
|
+
readonly popoverMaxWidth: 400;
|
|
109
|
+
/** Arrow size for tooltips */
|
|
110
|
+
readonly arrowSize: number;
|
|
111
|
+
/** Gap between trigger and popover */
|
|
112
|
+
readonly offset: number;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Checkbox and radio sizes.
|
|
116
|
+
*/
|
|
117
|
+
export declare const controlSizes: {
|
|
118
|
+
readonly sm: {
|
|
119
|
+
readonly box: 16;
|
|
120
|
+
readonly icon: 10;
|
|
121
|
+
};
|
|
122
|
+
readonly md: {
|
|
123
|
+
readonly box: 18;
|
|
124
|
+
readonly icon: 12;
|
|
125
|
+
};
|
|
126
|
+
readonly lg: {
|
|
127
|
+
readonly box: 22;
|
|
128
|
+
readonly icon: 14;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Switch/toggle sizes.
|
|
133
|
+
*/
|
|
134
|
+
export declare const switchSizes: {
|
|
135
|
+
readonly sm: {
|
|
136
|
+
readonly width: 36;
|
|
137
|
+
readonly height: 20;
|
|
138
|
+
readonly thumb: 16;
|
|
139
|
+
};
|
|
140
|
+
readonly md: {
|
|
141
|
+
readonly width: 44;
|
|
142
|
+
readonly height: 24;
|
|
143
|
+
readonly thumb: 20;
|
|
144
|
+
};
|
|
145
|
+
readonly lg: {
|
|
146
|
+
readonly width: 52;
|
|
147
|
+
readonly height: 28;
|
|
148
|
+
readonly thumb: 24;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
export type ComponentSize = keyof typeof componentHeights;
|
|
152
|
+
export type IconSize = keyof typeof iconSizes;
|
|
153
|
+
export type ControlSize = keyof typeof controlSizes;
|
|
154
|
+
export type SwitchSize = keyof typeof switchSizes;
|
|
155
|
+
//# sourceMappingURL=sizing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizing.d.ts","sourceRoot":"","sources":["../../../src/design-system/primitives/sizing.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,iDAAiD;;IAEjD,2CAA2C;;IAE3C,wDAAwD;;IAExD,6CAA6C;;IAE7C,oCAAoC;;CAE5B,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,SAAS;IACpB,WAAW;;IAEX,WAAW;;IAEX,WAAW;;IAEX,WAAW;;IAEX,WAAW;;CAEH,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,iBAAiB;IAC5B,UAAU;;IAEV,WAAW;;IAEX,WAAW;;IAEX,WAAW;;IAEX,WAAW;;CAEH,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,iBAAiB;IAC5B,UAAU;;IAEV,UAAU;;IAEV,UAAU;;IAEV,WAAW;;IAEX,WAAW;;CAEH,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,YAAY;IACvB,iDAAiD;;IAEjD,UAAU;;IAEV,qCAAqC;;IAErC,WAAW;;IAEX,uCAAuC;;CAE/B,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,WAAW;IACtB,2CAA2C;;IAE3C,6BAA6B;;IAE7B,4BAA4B;;IAE5B,kCAAkC;;IAElC,+BAA+B;;CAEvB,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,aAAa;IACxB,gCAAgC;;IAEhC,gCAAgC;;IAEhC,8BAA8B;;IAE9B,sCAAsC;;CAE9B,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAaf,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;CAgBd,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,gBAAgB,CAAA;AACzD,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAA;AAC7C,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,YAAY,CAAA;AACnD,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAA"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brycks Design System - Transition Primitives
|
|
3
|
+
*
|
|
4
|
+
* Standardized transition definitions for consistent motion.
|
|
5
|
+
* All values derived from motion tokens.
|
|
6
|
+
*
|
|
7
|
+
* RULE: Components MUST use these transitions. Never hardcode timing.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Pre-composed CSS transition strings for common use cases.
|
|
11
|
+
*/
|
|
12
|
+
export declare const transition: {
|
|
13
|
+
/** No transition */
|
|
14
|
+
readonly none: "none";
|
|
15
|
+
/** Ultra-fast - for micro-interactions (50ms) */
|
|
16
|
+
readonly instant: "all 50ms cubic-bezier(0, 0, 0.2, 1)";
|
|
17
|
+
/** Fast - for hover states, toggles (100ms) */
|
|
18
|
+
readonly fast: "all 100ms cubic-bezier(0, 0, 0.2, 1)";
|
|
19
|
+
/** Quick - standard interactive feedback (150ms) */
|
|
20
|
+
readonly quick: "all 150ms cubic-bezier(0, 0, 0.2, 1)";
|
|
21
|
+
/** Default - most state changes (200ms) */
|
|
22
|
+
readonly default: "all 200ms cubic-bezier(0, 0, 0.2, 1)";
|
|
23
|
+
/** Smooth - focus states, form elements (300ms) */
|
|
24
|
+
readonly smooth: "all 300ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
25
|
+
/** Slow - reveals, modals (400ms) */
|
|
26
|
+
readonly slow: "all 400ms cubic-bezier(0, 0, 0.2, 1)";
|
|
27
|
+
/** Spring - bouncy, tactile feel (300ms) */
|
|
28
|
+
readonly spring: "all 300ms cubic-bezier(0.22, 1, 0.36, 1)";
|
|
29
|
+
/** Colors only - optimized for color transitions */
|
|
30
|
+
readonly colors: "color 100ms cubic-bezier(0, 0, 0.2, 1), background-color 100ms cubic-bezier(0, 0, 0.2, 1), border-color 100ms cubic-bezier(0, 0, 0.2, 1)";
|
|
31
|
+
/** Transform only - for scale, translate */
|
|
32
|
+
readonly transform: "transform 200ms cubic-bezier(0, 0, 0.2, 1)";
|
|
33
|
+
/** Opacity only - for fade effects */
|
|
34
|
+
readonly opacity: "opacity 200ms cubic-bezier(0, 0, 0.2, 1)";
|
|
35
|
+
/** Shadow only - for elevation changes */
|
|
36
|
+
readonly shadow: "box-shadow 200ms cubic-bezier(0, 0, 0.2, 1)";
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* CSS transition property groups.
|
|
40
|
+
*/
|
|
41
|
+
export declare const transitionProperties: {
|
|
42
|
+
readonly all: "all";
|
|
43
|
+
readonly colors: "color, background-color, border-color, fill, stroke";
|
|
44
|
+
readonly opacity: "opacity";
|
|
45
|
+
readonly shadow: "box-shadow";
|
|
46
|
+
readonly transform: "transform";
|
|
47
|
+
readonly dimensions: "width, height, padding, margin";
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Duration values in milliseconds for use in JS.
|
|
51
|
+
*/
|
|
52
|
+
export declare const duration: {
|
|
53
|
+
readonly instant: 50;
|
|
54
|
+
readonly fast: 100;
|
|
55
|
+
readonly quick: 150;
|
|
56
|
+
readonly default: 200;
|
|
57
|
+
readonly smooth: 300;
|
|
58
|
+
readonly slow: 400;
|
|
59
|
+
readonly slower: 500;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Easing functions for use in JS animations.
|
|
63
|
+
*/
|
|
64
|
+
export declare const easing: {
|
|
65
|
+
readonly linear: "linear";
|
|
66
|
+
readonly ease: "ease";
|
|
67
|
+
readonly easeIn: "cubic-bezier(0.4, 0, 1, 1)";
|
|
68
|
+
readonly easeOut: "cubic-bezier(0, 0, 0.2, 1)";
|
|
69
|
+
readonly easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
70
|
+
readonly spring: "cubic-bezier(0.34, 1.56, 0.64, 1)";
|
|
71
|
+
readonly softSpring: "cubic-bezier(0.22, 1, 0.36, 1)";
|
|
72
|
+
readonly smooth: "cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
73
|
+
readonly snappy: "cubic-bezier(0.2, 0, 0, 1)";
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* CSS animation keyframes (as strings for style injection).
|
|
77
|
+
*/
|
|
78
|
+
export declare const keyframes: {
|
|
79
|
+
readonly fadeIn: "\n @keyframes brycks-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n ";
|
|
80
|
+
readonly fadeOut: "\n @keyframes brycks-fade-out {\n from { opacity: 1; }\n to { opacity: 0; }\n }\n ";
|
|
81
|
+
readonly scaleIn: "\n @keyframes brycks-scale-in {\n from { opacity: 0; transform: scale(0.95); }\n to { opacity: 1; transform: scale(1); }\n }\n ";
|
|
82
|
+
readonly scaleOut: "\n @keyframes brycks-scale-out {\n from { opacity: 1; transform: scale(1); }\n to { opacity: 0; transform: scale(0.95); }\n }\n ";
|
|
83
|
+
readonly slideUp: "\n @keyframes brycks-slide-up {\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 1; transform: translateY(0); }\n }\n ";
|
|
84
|
+
readonly slideDown: "\n @keyframes brycks-slide-down {\n from { opacity: 0; transform: translateY(-8px); }\n to { opacity: 1; transform: translateY(0); }\n }\n ";
|
|
85
|
+
readonly spin: "\n @keyframes brycks-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n ";
|
|
86
|
+
readonly pulse: "\n @keyframes brycks-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n ";
|
|
87
|
+
readonly shimmer: "\n @keyframes brycks-shimmer {\n 0% { transform: translateX(-100%); }\n 100% { transform: translateX(100%); }\n }\n ";
|
|
88
|
+
readonly bounce: "\n @keyframes brycks-bounce {\n 0%, 80%, 100% { transform: scale(0); opacity: 0.5; }\n 40% { transform: scale(1); opacity: 1; }\n }\n ";
|
|
89
|
+
};
|
|
90
|
+
export type TransitionPreset = keyof typeof transition;
|
|
91
|
+
export type KeyframeName = keyof typeof keyframes;
|
|
92
|
+
//# sourceMappingURL=transitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../../src/design-system/primitives/transitions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;GAEG;AACH,eAAO,MAAM,UAAU;IACrB,oBAAoB;;IAGpB,iDAAiD;;IAGjD,+CAA+C;;IAG/C,oDAAoD;;IAGpD,2CAA2C;;IAG3C,mDAAmD;;IAGnD,qCAAqC;;IAGrC,4CAA4C;;IAG5C,oDAAoD;;IAGpD,4CAA4C;;IAG5C,sCAAsC;;IAGtC,0CAA0C;;CAElC,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;CAOvB,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;CAQX,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;CAUT,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;CA6DZ,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,UAAU,CAAA;AACtD,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,SAAS,CAAA"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brycks Design System - Component Typography Primitives
|
|
3
|
+
*
|
|
4
|
+
* Typography scales specifically for component contexts.
|
|
5
|
+
* Derived from base typography tokens.
|
|
6
|
+
*
|
|
7
|
+
* RULE: Components MUST use these scales. Never hardcode font values.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Font sizes mapped to component size variants.
|
|
11
|
+
* Ensures consistent text sizing across all components.
|
|
12
|
+
*/
|
|
13
|
+
export declare const componentFontSize: {
|
|
14
|
+
/** 11px - Extra small labels, badges */
|
|
15
|
+
readonly xs: 11;
|
|
16
|
+
/** 12px - Small text, captions, helper text */
|
|
17
|
+
readonly sm: 12;
|
|
18
|
+
/** 14px - Default component text */
|
|
19
|
+
readonly md: 14;
|
|
20
|
+
/** 15px - Large component text */
|
|
21
|
+
readonly lg: 15;
|
|
22
|
+
/** 16px - Extra large component text */
|
|
23
|
+
readonly xl: 16;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Font weights for component states.
|
|
27
|
+
*/
|
|
28
|
+
export declare const componentFontWeight: {
|
|
29
|
+
/** 400 - Regular body text */
|
|
30
|
+
readonly regular: 400;
|
|
31
|
+
/** 500 - Labels, emphasized text */
|
|
32
|
+
readonly medium: 500;
|
|
33
|
+
/** 600 - Headings, titles */
|
|
34
|
+
readonly semibold: 600;
|
|
35
|
+
/** 700 - Strong emphasis */
|
|
36
|
+
readonly bold: 700;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Line heights for component text.
|
|
40
|
+
*/
|
|
41
|
+
export declare const componentLineHeight: {
|
|
42
|
+
/** 1 - Single line, badges */
|
|
43
|
+
readonly none: 1;
|
|
44
|
+
/** 1.25 - Tight, headings */
|
|
45
|
+
readonly tight: 1.25;
|
|
46
|
+
/** 1.4 - Slightly relaxed, labels */
|
|
47
|
+
readonly snug: 1.4;
|
|
48
|
+
/** 1.5 - Default body text */
|
|
49
|
+
readonly normal: 1.5;
|
|
50
|
+
/** 1.6 - Relaxed, helper text */
|
|
51
|
+
readonly relaxed: 1.6;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Pre-composed typography styles for common component elements.
|
|
55
|
+
*/
|
|
56
|
+
export declare const componentTypography: {
|
|
57
|
+
/** Form field labels */
|
|
58
|
+
readonly label: {
|
|
59
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
60
|
+
readonly fontSize: 12;
|
|
61
|
+
readonly fontWeight: 500;
|
|
62
|
+
readonly lineHeight: 1.5;
|
|
63
|
+
};
|
|
64
|
+
/** Helper/hint text below inputs */
|
|
65
|
+
readonly helperText: {
|
|
66
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
67
|
+
readonly fontSize: 11;
|
|
68
|
+
readonly fontWeight: 400;
|
|
69
|
+
readonly lineHeight: 1.6;
|
|
70
|
+
};
|
|
71
|
+
/** Error messages */
|
|
72
|
+
readonly errorText: {
|
|
73
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
74
|
+
readonly fontSize: 11;
|
|
75
|
+
readonly fontWeight: 400;
|
|
76
|
+
readonly lineHeight: 1.6;
|
|
77
|
+
};
|
|
78
|
+
/** Button text - small */
|
|
79
|
+
readonly buttonSm: {
|
|
80
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
81
|
+
readonly fontSize: 12;
|
|
82
|
+
readonly fontWeight: 500;
|
|
83
|
+
readonly lineHeight: 1;
|
|
84
|
+
};
|
|
85
|
+
/** Button text - medium (default) */
|
|
86
|
+
readonly buttonMd: {
|
|
87
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
88
|
+
readonly fontSize: 14;
|
|
89
|
+
readonly fontWeight: 500;
|
|
90
|
+
readonly lineHeight: 1;
|
|
91
|
+
};
|
|
92
|
+
/** Button text - large */
|
|
93
|
+
readonly buttonLg: {
|
|
94
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
95
|
+
readonly fontSize: 15;
|
|
96
|
+
readonly fontWeight: 500;
|
|
97
|
+
readonly lineHeight: 1;
|
|
98
|
+
};
|
|
99
|
+
/** Badge text */
|
|
100
|
+
readonly badge: {
|
|
101
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
102
|
+
readonly fontSize: 11;
|
|
103
|
+
readonly fontWeight: 500;
|
|
104
|
+
readonly lineHeight: 1;
|
|
105
|
+
};
|
|
106
|
+
/** Tooltip text */
|
|
107
|
+
readonly tooltip: {
|
|
108
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
109
|
+
readonly fontSize: 11;
|
|
110
|
+
readonly fontWeight: 500;
|
|
111
|
+
readonly lineHeight: 1.4;
|
|
112
|
+
};
|
|
113
|
+
/** Alert title */
|
|
114
|
+
readonly alertTitle: {
|
|
115
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
116
|
+
readonly fontSize: 14;
|
|
117
|
+
readonly fontWeight: 600;
|
|
118
|
+
readonly lineHeight: 1.25;
|
|
119
|
+
};
|
|
120
|
+
/** Alert description */
|
|
121
|
+
readonly alertDescription: {
|
|
122
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
123
|
+
readonly fontSize: 14;
|
|
124
|
+
readonly fontWeight: 400;
|
|
125
|
+
readonly lineHeight: 1.5;
|
|
126
|
+
};
|
|
127
|
+
/** Modal title */
|
|
128
|
+
readonly modalTitle: {
|
|
129
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
130
|
+
readonly fontSize: 18;
|
|
131
|
+
readonly fontWeight: 600;
|
|
132
|
+
readonly lineHeight: 1.25;
|
|
133
|
+
};
|
|
134
|
+
/** Modal description */
|
|
135
|
+
readonly modalDescription: {
|
|
136
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
137
|
+
readonly fontSize: 14;
|
|
138
|
+
readonly fontWeight: 400;
|
|
139
|
+
readonly lineHeight: 1.5;
|
|
140
|
+
};
|
|
141
|
+
/** Empty state title */
|
|
142
|
+
readonly emptyStateTitle: {
|
|
143
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
144
|
+
readonly fontSize: 18;
|
|
145
|
+
readonly fontWeight: 600;
|
|
146
|
+
readonly lineHeight: 1.25;
|
|
147
|
+
};
|
|
148
|
+
/** Empty state description */
|
|
149
|
+
readonly emptyStateDescription: {
|
|
150
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
151
|
+
readonly fontSize: 14;
|
|
152
|
+
readonly fontWeight: 400;
|
|
153
|
+
readonly lineHeight: 1.5;
|
|
154
|
+
};
|
|
155
|
+
/** Divider label */
|
|
156
|
+
readonly dividerLabel: {
|
|
157
|
+
readonly fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
158
|
+
readonly fontSize: 11;
|
|
159
|
+
readonly fontWeight: 500;
|
|
160
|
+
readonly lineHeight: 1.5;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
export type ComponentTypographyKey = keyof typeof componentTypography;
|
|
164
|
+
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/design-system/primitives/typography.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;IAC5B,wCAAwC;;IAExC,+CAA+C;;IAE/C,oCAAoC;;IAEpC,kCAAkC;;IAElC,wCAAwC;;CAEhC,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,mBAAmB;IAC9B,8BAA8B;;IAE9B,oCAAoC;;IAEpC,6BAA6B;;IAE7B,4BAA4B;;CAEpB,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,mBAAmB;IAC9B,8BAA8B;;IAE9B,6BAA6B;;IAE7B,qCAAqC;;IAErC,8BAA8B;;IAE9B,iCAAiC;;CAEzB,CAAA;AAEV;;GAEG;AACH,eAAO,MAAM,mBAAmB;IAC9B,wBAAwB;;;;;;;IAOxB,oCAAoC;;;;;;;IAOpC,qBAAqB;;;;;;;IAOrB,0BAA0B;;;;;;;IAO1B,qCAAqC;;;;;;;IAOrC,0BAA0B;;;;;;;IAO1B,iBAAiB;;;;;;;IAOjB,mBAAmB;;;;;;;IAOnB,kBAAkB;;;;;;;IAOlB,wBAAwB;;;;;;;IAOxB,kBAAkB;;;;;;;IAOlB,wBAAwB;;;;;;;IAOxB,wBAAwB;;;;;;;IAOxB,8BAA8B;;;;;;;IAO9B,oBAAoB;;;;;;;CAOZ,CAAA;AAEV,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ThemeContextValue, ThemeConfig, ThemeColors } from './types';
|
|
3
|
+
declare const ThemeContext: import('react').Context<ThemeContextValue | null>;
|
|
4
|
+
interface ThemeProviderProps {
|
|
5
|
+
/** Child components */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Theme configuration for customization */
|
|
8
|
+
config?: ThemeConfig;
|
|
9
|
+
/** Skip injecting CSS variables (for SSR or custom handling) */
|
|
10
|
+
skipCSSVariables?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function ThemeProvider({ children, config, skipCSSVariables, }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
/** Hook to access theme context */
|
|
14
|
+
export declare function useTheme(): ThemeContextValue;
|
|
15
|
+
/** Hook to get current theme colors */
|
|
16
|
+
export declare function useThemeColors(): ThemeColors;
|
|
17
|
+
export { ThemeContext };
|
|
18
|
+
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/design-system/themes/ThemeProvider.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAS,iBAAiB,EAAa,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE5F,QAAA,MAAM,YAAY,mDAAgD,CAAA;AAyBlE,UAAU,kBAAkB;IAC1B,uBAAuB;IACvB,QAAQ,EAAE,SAAS,CAAA;IACnB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,MAAM,EACN,gBAAwB,GACzB,EAAE,kBAAkB,2CAsGpB;AAED,mCAAmC;AACnC,wBAAgB,QAAQ,IAAI,iBAAiB,CAQ5C;AAED,uCAAuC;AACvC,wBAAgB,cAAc,gBAG7B;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|