@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 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sources":["../src/design-system/tokens/spacing.ts","../src/design-system/tokens/typography.ts","../src/design-system/tokens/shadows.ts","../src/design-system/tokens/borders.ts","../src/design-system/tokens/breakpoints.ts","../src/design-system/tokens/zIndex.ts","../src/design-system/tokens/motion.ts"],"sourcesContent":["/**\r\n * Brycks Design System - Spacing Tokens\r\n *\r\n * A consistent spacing scale based on 4px grid system.\r\n * Provides harmonious visual rhythm across all components.\r\n */\r\n\r\n/** Base unit: 4px */\r\nconst BASE_UNIT = 4\r\n\r\n/** Spacing scale - values in pixels */\r\nexport const spacing = {\r\n /** 0px */\r\n 0: 0,\r\n /** 1px - hairline */\r\n px: 1,\r\n /** 2px - micro */\r\n 0.5: BASE_UNIT * 0.5,\r\n /** 4px - tiny */\r\n 1: BASE_UNIT,\r\n /** 6px */\r\n 1.5: BASE_UNIT * 1.5,\r\n /** 8px - extra small */\r\n 2: BASE_UNIT * 2,\r\n /** 10px */\r\n 2.5: BASE_UNIT * 2.5,\r\n /** 12px - small */\r\n 3: BASE_UNIT * 3,\r\n /** 14px */\r\n 3.5: BASE_UNIT * 3.5,\r\n /** 16px - medium (base) */\r\n 4: BASE_UNIT * 4,\r\n /** 20px */\r\n 5: BASE_UNIT * 5,\r\n /** 24px - large */\r\n 6: BASE_UNIT * 6,\r\n /** 28px */\r\n 7: BASE_UNIT * 7,\r\n /** 32px - extra large */\r\n 8: BASE_UNIT * 8,\r\n /** 36px */\r\n 9: BASE_UNIT * 9,\r\n /** 40px */\r\n 10: BASE_UNIT * 10,\r\n /** 44px */\r\n 11: BASE_UNIT * 11,\r\n /** 48px - 2x large */\r\n 12: BASE_UNIT * 12,\r\n /** 56px */\r\n 14: BASE_UNIT * 14,\r\n /** 64px - 3x large */\r\n 16: BASE_UNIT * 16,\r\n /** 80px */\r\n 20: BASE_UNIT * 20,\r\n /** 96px - 4x large */\r\n 24: BASE_UNIT * 24,\r\n /** 112px */\r\n 28: BASE_UNIT * 28,\r\n /** 128px */\r\n 32: BASE_UNIT * 32,\r\n /** 160px */\r\n 40: BASE_UNIT * 40,\r\n /** 192px */\r\n 48: BASE_UNIT * 48,\r\n /** 224px */\r\n 56: BASE_UNIT * 56,\r\n /** 256px */\r\n 64: BASE_UNIT * 64,\r\n /** 320px */\r\n 80: BASE_UNIT * 80,\r\n /** 384px */\r\n 96: BASE_UNIT * 96,\r\n} as const\r\n\r\n/** Semantic spacing aliases */\r\nexport const semanticSpacing = {\r\n /** Component internal padding - tight */\r\n componentPaddingXs: spacing[2],\r\n /** Component internal padding - default */\r\n componentPaddingSm: spacing[3],\r\n /** Component internal padding - comfortable */\r\n componentPaddingMd: spacing[4],\r\n /** Component internal padding - spacious */\r\n componentPaddingLg: spacing[6],\r\n\r\n /** Gap between inline elements */\r\n inlineGapXs: spacing[1],\r\n inlineGapSm: spacing[2],\r\n inlineGapMd: spacing[3],\r\n inlineGapLg: spacing[4],\r\n\r\n /** Gap between stacked elements */\r\n stackGapXs: spacing[2],\r\n stackGapSm: spacing[3],\r\n stackGapMd: spacing[4],\r\n stackGapLg: spacing[6],\r\n stackGapXl: spacing[8],\r\n\r\n /** Page/section margins */\r\n sectionGapSm: spacing[8],\r\n sectionGapMd: spacing[12],\r\n sectionGapLg: spacing[16],\r\n sectionGapXl: spacing[24],\r\n\r\n /** Container padding */\r\n containerPaddingSm: spacing[4],\r\n containerPaddingMd: spacing[6],\r\n containerPaddingLg: spacing[8],\r\n} as const\r\n\r\nexport type Spacing = typeof spacing\r\nexport type SpacingKey = keyof Spacing\r\nexport type SemanticSpacing = typeof semanticSpacing\r\n","/**\r\n * Brycks Design System - Typography Tokens\r\n *\r\n * A refined typographic scale inspired by Apple's SF Pro.\r\n * Uses Inter as the primary font (open source alternative to SF Pro).\r\n */\r\n\r\n/** Font family stacks */\r\nexport const fontFamilies = {\r\n /** Primary font - clean, modern sans-serif */\r\n sans: \"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\",\r\n /** Monospace for code */\r\n mono: \"'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace\",\r\n /** Display font for large headings (optional) */\r\n display: \"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\",\r\n} as const\r\n\r\n/** Font weights */\r\nexport const fontWeights = {\r\n /** 400 - Regular body text */\r\n regular: 400,\r\n /** 500 - Medium emphasis */\r\n medium: 500,\r\n /** 600 - Semi-bold for subheadings */\r\n semibold: 600,\r\n /** 700 - Bold for headings */\r\n bold: 700,\r\n} as const\r\n\r\n/** Font sizes in pixels */\r\nexport const fontSizes = {\r\n /** 11px - Micro text, labels */\r\n xs: 11,\r\n /** 12px - Small text, captions */\r\n sm: 12,\r\n /** 14px - Body small, secondary text */\r\n base: 14,\r\n /** 16px - Body default */\r\n md: 16,\r\n /** 18px - Body large, lead text */\r\n lg: 18,\r\n /** 20px - Heading 6 */\r\n xl: 20,\r\n /** 24px - Heading 5 */\r\n '2xl': 24,\r\n /** 28px - Heading 4 */\r\n '3xl': 28,\r\n /** 32px - Heading 3 */\r\n '4xl': 32,\r\n /** 40px - Heading 2 */\r\n '5xl': 40,\r\n /** 48px - Heading 1 */\r\n '6xl': 48,\r\n /** 60px - Display small */\r\n '7xl': 60,\r\n /** 72px - Display medium */\r\n '8xl': 72,\r\n /** 96px - Display large */\r\n '9xl': 96,\r\n} as const\r\n\r\n/** Line heights */\r\nexport const lineHeights = {\r\n /** Tight - for large headings */\r\n none: 1,\r\n tight: 1.15,\r\n /** Snug - for medium headings */\r\n snug: 1.25,\r\n /** Normal - for body text */\r\n normal: 1.5,\r\n /** Relaxed - for small text, better readability */\r\n relaxed: 1.625,\r\n /** Loose - for captions, labels */\r\n loose: 1.75,\r\n} as const\r\n\r\n/** Letter spacing (tracking) */\r\nexport const letterSpacings = {\r\n /** Tighter - for large display text */\r\n tighter: '-0.05em',\r\n /** Tight - for headings */\r\n tight: '-0.025em',\r\n /** Normal - default */\r\n normal: '0em',\r\n /** Wide - for small caps, labels */\r\n wide: '0.025em',\r\n /** Wider - for all caps text */\r\n wider: '0.05em',\r\n /** Widest - for very small text */\r\n widest: '0.1em',\r\n} as const\r\n\r\n/** Pre-composed text styles */\r\nexport const textStyles = {\r\n /** Display styles - for hero sections */\r\n displayLarge: {\r\n fontFamily: fontFamilies.display,\r\n fontSize: fontSizes['9xl'],\r\n fontWeight: fontWeights.bold,\r\n lineHeight: lineHeights.none,\r\n letterSpacing: letterSpacings.tighter,\r\n },\r\n displayMedium: {\r\n fontFamily: fontFamilies.display,\r\n fontSize: fontSizes['8xl'],\r\n fontWeight: fontWeights.bold,\r\n lineHeight: lineHeights.none,\r\n letterSpacing: letterSpacings.tighter,\r\n },\r\n displaySmall: {\r\n fontFamily: fontFamilies.display,\r\n fontSize: fontSizes['7xl'],\r\n fontWeight: fontWeights.bold,\r\n lineHeight: lineHeights.tight,\r\n letterSpacing: letterSpacings.tight,\r\n },\r\n\r\n /** Heading styles */\r\n h1: {\r\n fontFamily: fontFamilies.sans,\r\n fontSize: fontSizes['6xl'],\r\n fontWeight: fontWeights.bold,\r\n lineHeight: lineHeights.tight,\r\n letterSpacing: letterSpacings.tight,\r\n },\r\n h2: {\r\n fontFamily: fontFamilies.sans,\r\n fontSize: fontSizes['5xl'],\r\n fontWeight: fontWeights.bold,\r\n lineHeight: lineHeights.tight,\r\n letterSpacing: letterSpacings.tight,\r\n },\r\n h3: {\r\n fontFamily: fontFamilies.sans,\r\n fontSize: fontSizes['4xl'],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights.snug,\r\n letterSpacing: letterSpacings.tight,\r\n },\r\n h4: {\r\n fontFamily: fontFamilies.sans,\r\n fontSize: fontSizes['3xl'],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights.snug,\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n h5: {\r\n fontFamily: fontFamilies.sans,\r\n fontSize: fontSizes['2xl'],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights.snug,\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n h6: {\r\n fontFamily: fontFamilies.sans,\r\n fontSize: fontSizes.xl,\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights.snug,\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n\r\n /** Body text styles */\r\n bodyLarge: {\r\n fontFamily: fontFamilies.sans,\r\n fontSize: fontSizes.lg,\r\n fontWeight: fontWeights.regular,\r\n lineHeight: lineHeights.normal,\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n bodyDefault: {\r\n fontFamily: fontFamilies.sans,\r\n fontSize: fontSizes.md,\r\n fontWeight: fontWeights.regular,\r\n lineHeight: lineHeights.normal,\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n bodySmall: {\r\n fontFamily: fontFamilies.sans,\r\n fontSize: fontSizes.base,\r\n fontWeight: fontWeights.regular,\r\n lineHeight: lineHeights.normal,\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n\r\n /** Utility text styles */\r\n label: {\r\n fontFamily: fontFamilies.sans,\r\n fontSize: fontSizes.sm,\r\n fontWeight: fontWeights.medium,\r\n lineHeight: lineHeights.normal,\r\n letterSpacing: letterSpacings.wide,\r\n },\r\n caption: {\r\n fontFamily: fontFamilies.sans,\r\n fontSize: fontSizes.xs,\r\n fontWeight: fontWeights.regular,\r\n lineHeight: lineHeights.relaxed,\r\n letterSpacing: letterSpacings.wide,\r\n },\r\n overline: {\r\n fontFamily: fontFamilies.sans,\r\n fontSize: fontSizes.xs,\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights.normal,\r\n letterSpacing: letterSpacings.widest,\r\n textTransform: 'uppercase' as const,\r\n },\r\n\r\n /** Code styles */\r\n code: {\r\n fontFamily: fontFamilies.mono,\r\n fontSize: fontSizes.sm,\r\n fontWeight: fontWeights.regular,\r\n lineHeight: lineHeights.relaxed,\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n} as const\r\n\r\nexport type FontFamily = keyof typeof fontFamilies\r\nexport type FontWeight = keyof typeof fontWeights\r\nexport type FontSize = keyof typeof fontSizes\r\nexport type LineHeight = keyof typeof lineHeights\r\nexport type LetterSpacing = keyof typeof letterSpacings\r\nexport type TextStyle = keyof typeof textStyles\r\n","/**\r\n * Brycks Design System - Shadow Tokens\r\n *\r\n * Multi-layered, subtle shadows inspired by Apple's design language.\r\n * Creates depth without harsh edges - soft, natural, and tactile.\r\n */\r\n\r\n/** Shadow scale - from subtle to elevated */\r\nexport const shadows = {\r\n /** No shadow */\r\n none: 'none',\r\n\r\n /** Extra small - subtle lift, perfect for cards on hover */\r\n xs: '0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 3px 0 rgba(0, 0, 0, 0.06)',\r\n\r\n /** Small - light elevation for cards, inputs */\r\n sm: '0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 2px 6px 0 rgba(0, 0, 0, 0.06), 0 0 1px 0 rgba(0, 0, 0, 0.04)',\r\n\r\n /** Medium - default card shadow */\r\n md: '0 2px 4px -1px rgba(0, 0, 0, 0.04), 0 4px 8px -1px rgba(0, 0, 0, 0.06), 0 8px 16px -2px rgba(0, 0, 0, 0.06)',\r\n\r\n /** Large - dropdown, popover shadows */\r\n lg: '0 4px 6px -2px rgba(0, 0, 0, 0.03), 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 16px 32px -8px rgba(0, 0, 0, 0.08)',\r\n\r\n /** Extra large - modal shadows */\r\n xl: '0 8px 16px -4px rgba(0, 0, 0, 0.04), 0 16px 32px -8px rgba(0, 0, 0, 0.08), 0 32px 64px -16px rgba(0, 0, 0, 0.12)',\r\n\r\n /** 2XL - floating panels, notifications */\r\n '2xl': '0 12px 24px -6px rgba(0, 0, 0, 0.05), 0 24px 48px -12px rgba(0, 0, 0, 0.1), 0 48px 96px -24px rgba(0, 0, 0, 0.15)',\r\n\r\n /** Inner shadow - for inset effects */\r\n inner: 'inset 0 2px 4px 0 rgba(0, 0, 0, 0.05)',\r\n\r\n /** Inner shadow - stronger, for pressed states */\r\n innerStrong: 'inset 0 2px 6px 0 rgba(0, 0, 0, 0.1)',\r\n} as const\r\n\r\n/** Focus ring shadows - for accessibility */\r\nexport const focusRings = {\r\n /** Default focus ring - primary color */\r\n default: '0 0 0 3px rgba(85, 120, 244, 0.35)',\r\n\r\n /** Strong focus ring - higher visibility */\r\n strong: '0 0 0 4px rgba(85, 120, 244, 0.45)',\r\n\r\n /** Error focus ring */\r\n error: '0 0 0 3px rgba(239, 68, 68, 0.35)',\r\n\r\n /** Success focus ring */\r\n success: '0 0 0 3px rgba(16, 185, 129, 0.35)',\r\n\r\n /** Focus within container */\r\n within: '0 0 0 2px rgba(85, 120, 244, 0.2)',\r\n} as const\r\n\r\n/** Glow effects - for special elements */\r\nexport const glows = {\r\n /** Subtle primary glow */\r\n primary: '0 0 20px rgba(85, 120, 244, 0.15), 0 0 40px rgba(85, 120, 244, 0.1)',\r\n\r\n /** Subtle accent glow */\r\n accent: '0 0 20px rgba(248, 101, 69, 0.15), 0 0 40px rgba(248, 101, 69, 0.1)',\r\n\r\n /** Success glow */\r\n success: '0 0 20px rgba(16, 185, 129, 0.15), 0 0 40px rgba(16, 185, 129, 0.1)',\r\n\r\n /** Soft white glow - for dark mode highlights */\r\n white: '0 0 30px rgba(255, 255, 255, 0.1)',\r\n} as const\r\n\r\nexport type Shadow = keyof typeof shadows\r\nexport type FocusRing = keyof typeof focusRings\r\nexport type Glow = keyof typeof glows\r\n","/**\r\n * Brycks Design System - Border Tokens\r\n *\r\n * Consistent border radii and widths for a cohesive, soft visual language.\r\n */\r\n\r\n/** Border radius scale */\r\nexport const radii = {\r\n /** No radius - sharp corners */\r\n none: 0,\r\n /** 2px - very subtle rounding */\r\n xs: 2,\r\n /** 4px - subtle rounding */\r\n sm: 4,\r\n /** 6px - slight rounding */\r\n md: 6,\r\n /** 8px - default rounding */\r\n DEFAULT: 8,\r\n /** 10px - medium rounding */\r\n lg: 10,\r\n /** 12px - noticeable rounding */\r\n xl: 12,\r\n /** 16px - prominent rounding */\r\n '2xl': 16,\r\n /** 20px - heavy rounding */\r\n '3xl': 20,\r\n /** 24px - very heavy rounding */\r\n '4xl': 24,\r\n /** 9999px - full/pill shape */\r\n full: 9999,\r\n} as const\r\n\r\n/** Border width scale */\r\nexport const borderWidths = {\r\n /** No border */\r\n 0: 0,\r\n /** 1px - hairline border */\r\n DEFAULT: 1,\r\n /** 2px - medium border */\r\n 2: 2,\r\n /** 3px - thick border */\r\n 3: 3,\r\n /** 4px - heavy border */\r\n 4: 4,\r\n} as const\r\n\r\n/** Semantic border styles */\r\nexport const borderStyles = {\r\n /** Subtle divider */\r\n subtle: {\r\n width: borderWidths.DEFAULT,\r\n style: 'solid',\r\n color: 'rgba(0, 0, 0, 0.06)',\r\n },\r\n /** Default border */\r\n default: {\r\n width: borderWidths.DEFAULT,\r\n style: 'solid',\r\n color: 'rgba(0, 0, 0, 0.1)',\r\n },\r\n /** Strong border - more visible */\r\n strong: {\r\n width: borderWidths.DEFAULT,\r\n style: 'solid',\r\n color: 'rgba(0, 0, 0, 0.15)',\r\n },\r\n /** Focus border */\r\n focus: {\r\n width: borderWidths[2],\r\n style: 'solid',\r\n color: 'rgba(85, 120, 244, 0.5)',\r\n },\r\n /** Error border */\r\n error: {\r\n width: borderWidths.DEFAULT,\r\n style: 'solid',\r\n color: 'rgba(239, 68, 68, 0.5)',\r\n },\r\n /** Success border */\r\n success: {\r\n width: borderWidths.DEFAULT,\r\n style: 'solid',\r\n color: 'rgba(16, 185, 129, 0.5)',\r\n },\r\n} as const\r\n\r\nexport type Radius = keyof typeof radii\r\nexport type BorderWidth = keyof typeof borderWidths\r\nexport type BorderStyle = keyof typeof borderStyles\r\n","/**\r\n * Brycks Design System - Breakpoint Tokens\r\n *\r\n * Responsive design breakpoints for consistent layouts across devices.\r\n */\r\n\r\n/** Breakpoint values in pixels */\r\nexport const breakpoints = {\r\n /** Mobile portrait - 320px+ */\r\n xs: 320,\r\n /** Mobile landscape - 480px+ */\r\n sm: 480,\r\n /** Tablet portrait - 640px+ */\r\n md: 640,\r\n /** Tablet landscape - 768px+ */\r\n lg: 768,\r\n /** Desktop - 1024px+ */\r\n xl: 1024,\r\n /** Large desktop - 1280px+ */\r\n '2xl': 1280,\r\n /** Extra large screens - 1536px+ */\r\n '3xl': 1536,\r\n /** Ultra wide - 1920px+ */\r\n '4xl': 1920,\r\n} as const\r\n\r\n/** Media query helpers */\r\nexport const mediaQueries = {\r\n xs: `@media (min-width: ${breakpoints.xs}px)`,\r\n sm: `@media (min-width: ${breakpoints.sm}px)`,\r\n md: `@media (min-width: ${breakpoints.md}px)`,\r\n lg: `@media (min-width: ${breakpoints.lg}px)`,\r\n xl: `@media (min-width: ${breakpoints.xl}px)`,\r\n '2xl': `@media (min-width: ${breakpoints['2xl']}px)`,\r\n '3xl': `@media (min-width: ${breakpoints['3xl']}px)`,\r\n '4xl': `@media (min-width: ${breakpoints['4xl']}px)`,\r\n\r\n /** Max-width queries (mobile-first overrides) */\r\n maxXs: `@media (max-width: ${breakpoints.xs - 1}px)`,\r\n maxSm: `@media (max-width: ${breakpoints.sm - 1}px)`,\r\n maxMd: `@media (max-width: ${breakpoints.md - 1}px)`,\r\n maxLg: `@media (max-width: ${breakpoints.lg - 1}px)`,\r\n maxXl: `@media (max-width: ${breakpoints.xl - 1}px)`,\r\n max2xl: `@media (max-width: ${breakpoints['2xl'] - 1}px)`,\r\n\r\n /** Preference queries */\r\n prefersReducedMotion: '@media (prefers-reduced-motion: reduce)',\r\n prefersDark: '@media (prefers-color-scheme: dark)',\r\n prefersLight: '@media (prefers-color-scheme: light)',\r\n prefersHighContrast: '@media (prefers-contrast: high)',\r\n\r\n /** Device specific */\r\n hover: '@media (hover: hover)',\r\n touch: '@media (hover: none) and (pointer: coarse)',\r\n fine: '@media (pointer: fine)',\r\n} as const\r\n\r\n/** Container max-widths aligned with breakpoints */\r\nexport const containers = {\r\n xs: 320,\r\n sm: 480,\r\n md: 640,\r\n lg: 768,\r\n xl: 1024,\r\n '2xl': 1280,\r\n '3xl': 1440,\r\n full: '100%',\r\n} as const\r\n\r\nexport type Breakpoint = keyof typeof breakpoints\r\nexport type MediaQuery = keyof typeof mediaQueries\r\nexport type Container = keyof typeof containers\r\n","/**\r\n * Brycks Design System - Z-Index Tokens\r\n *\r\n * Layering system for consistent stacking context management.\r\n */\r\n\r\n/** Z-index scale */\r\nexport const zIndex = {\r\n /** Hidden - below everything */\r\n hide: -1,\r\n /** Auto - default stacking */\r\n auto: 'auto',\r\n /** Base - normal content */\r\n base: 0,\r\n /** Docked - sticky elements */\r\n docked: 10,\r\n /** Dropdown - menus, selects */\r\n dropdown: 1000,\r\n /** Sticky - sticky headers */\r\n sticky: 1100,\r\n /** Banner - notification banners */\r\n banner: 1200,\r\n /** Overlay - backdrop overlays */\r\n overlay: 1300,\r\n /** Modal - dialog windows */\r\n modal: 1400,\r\n /** Popover - popovers, tooltips */\r\n popover: 1500,\r\n /** Skiplink - accessibility skip links */\r\n skipLink: 1600,\r\n /** Toast - notification toasts */\r\n toast: 1700,\r\n /** Tooltip - tooltips (highest) */\r\n tooltip: 1800,\r\n} as const\r\n\r\nexport type ZIndex = keyof typeof zIndex\r\n","/**\r\n * Brycks Design System - Motion Tokens\r\n *\r\n * Smooth, Apple-inspired animations and transitions.\r\n * Creates a tactile, responsive feel with natural easing.\r\n */\r\n\r\n/** Duration scale in milliseconds */\r\nexport const durations = {\r\n /** Instant - for micro-interactions */\r\n instant: 0,\r\n /** 50ms - nearly instant */\r\n faster: 50,\r\n /** 100ms - very fast, state changes */\r\n fast: 100,\r\n /** 150ms - quick, hover states */\r\n quick: 150,\r\n /** 200ms - default transitions */\r\n normal: 200,\r\n /** 300ms - medium, focus changes */\r\n relaxed: 300,\r\n /** 400ms - slow, content reveals */\r\n slow: 400,\r\n /** 500ms - slower, modal openings */\r\n slower: 500,\r\n /** 700ms - very slow, page transitions */\r\n lazy: 700,\r\n /** 1000ms - dramatic reveals */\r\n dramatic: 1000,\r\n} as const\r\n\r\n/** Easing functions - natural, Apple-inspired curves */\r\nexport const easings = {\r\n /** Linear - constant speed */\r\n linear: 'linear',\r\n\r\n /** Ease - subtle acceleration/deceleration */\r\n ease: 'ease',\r\n\r\n /** Ease in - slow start */\r\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\r\n\r\n /** Ease out - slow end (most common) */\r\n easeOut: 'cubic-bezier(0, 0, 0.2, 1)',\r\n\r\n /** Ease in-out - slow start and end */\r\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\r\n\r\n /** Apple-style spring - bouncy, natural feel */\r\n spring: 'cubic-bezier(0.34, 1.56, 0.64, 1)',\r\n\r\n /** Soft spring - subtle bounce */\r\n softSpring: 'cubic-bezier(0.22, 1, 0.36, 1)',\r\n\r\n /** Smooth - very smooth deceleration */\r\n smooth: 'cubic-bezier(0.25, 0.1, 0.25, 1)',\r\n\r\n /** Snappy - quick with soft landing */\r\n snappy: 'cubic-bezier(0.2, 0, 0, 1)',\r\n\r\n /** Expressive - dramatic entrance */\r\n expressive: 'cubic-bezier(0.19, 1, 0.22, 1)',\r\n\r\n /** Bounce - playful */\r\n bounce: 'cubic-bezier(0.68, -0.55, 0.265, 1.55)',\r\n} as const\r\n\r\n/** Pre-composed transition presets */\r\nexport const transitions = {\r\n /** No transition */\r\n none: 'none',\r\n\r\n /** Default - for most interactions */\r\n default: `all ${durations.normal}ms ${easings.easeOut}`,\r\n\r\n /** Fast - for hover states, micro-interactions */\r\n fast: `all ${durations.fast}ms ${easings.easeOut}`,\r\n\r\n /** Quick - for quick feedback */\r\n quick: `all ${durations.quick}ms ${easings.easeOut}`,\r\n\r\n /** Smooth - for focus states */\r\n smooth: `all ${durations.relaxed}ms ${easings.smooth}`,\r\n\r\n /** Spring - for interactive elements */\r\n spring: `all ${durations.relaxed}ms ${easings.softSpring}`,\r\n\r\n /** Slow - for reveals, modals */\r\n slow: `all ${durations.slow}ms ${easings.easeOut}`,\r\n\r\n /** Transform only */\r\n transform: `transform ${durations.normal}ms ${easings.easeOut}`,\r\n\r\n /** Opacity only */\r\n opacity: `opacity ${durations.normal}ms ${easings.easeOut}`,\r\n\r\n /** Colors only */\r\n colors: `color ${durations.fast}ms ${easings.easeOut}, background-color ${durations.fast}ms ${easings.easeOut}, border-color ${durations.fast}ms ${easings.easeOut}`,\r\n\r\n /** Shadow only */\r\n shadow: `box-shadow ${durations.normal}ms ${easings.easeOut}`,\r\n} as const\r\n\r\n/** Animation keyframe names for CSS animations */\r\nexport const animations = {\r\n /** Fade in */\r\n fadeIn: {\r\n from: { opacity: 0 },\r\n to: { opacity: 1 },\r\n },\r\n /** Fade out */\r\n fadeOut: {\r\n from: { opacity: 1 },\r\n to: { opacity: 0 },\r\n },\r\n /** Scale up */\r\n scaleIn: {\r\n from: { opacity: 0, transform: 'scale(0.95)' },\r\n to: { opacity: 1, transform: 'scale(1)' },\r\n },\r\n /** Scale down */\r\n scaleOut: {\r\n from: { opacity: 1, transform: 'scale(1)' },\r\n to: { opacity: 0, transform: 'scale(0.95)' },\r\n },\r\n /** Slide up */\r\n slideUp: {\r\n from: { opacity: 0, transform: 'translateY(10px)' },\r\n to: { opacity: 1, transform: 'translateY(0)' },\r\n },\r\n /** Slide down */\r\n slideDown: {\r\n from: { opacity: 0, transform: 'translateY(-10px)' },\r\n to: { opacity: 1, transform: 'translateY(0)' },\r\n },\r\n /** Slide left */\r\n slideLeft: {\r\n from: { opacity: 0, transform: 'translateX(10px)' },\r\n to: { opacity: 1, transform: 'translateX(0)' },\r\n },\r\n /** Slide right */\r\n slideRight: {\r\n from: { opacity: 0, transform: 'translateX(-10px)' },\r\n to: { opacity: 1, transform: 'translateX(0)' },\r\n },\r\n /** Spin */\r\n spin: {\r\n from: { transform: 'rotate(0deg)' },\r\n to: { transform: 'rotate(360deg)' },\r\n },\r\n /** Pulse */\r\n pulse: {\r\n '0%': { opacity: 1 },\r\n '50%': { opacity: 0.5 },\r\n '100%': { opacity: 1 },\r\n },\r\n /** Shake - for errors */\r\n shake: {\r\n '0%, 100%': { transform: 'translateX(0)' },\r\n '10%, 30%, 50%, 70%, 90%': { transform: 'translateX(-4px)' },\r\n '20%, 40%, 60%, 80%': { transform: 'translateX(4px)' },\r\n },\r\n} as const\r\n\r\nexport type Duration = keyof typeof durations\r\nexport type Easing = keyof typeof easings\r\nexport type Transition = keyof typeof transitions\r\nexport type Animation = keyof typeof animations\r\n"],"names":["BASE_UNIT","spacing","semanticSpacing","fontFamilies","fontWeights","fontSizes","lineHeights","letterSpacings","textStyles","shadows","focusRings","glows","radii","borderWidths","borderStyles","breakpoints","mediaQueries","containers","zIndex","durations","easings","transitions","animations"],"mappings":";AAQA,MAAMA,IAAY,GAGLC,IAAU;AAAA;AAAA,EAErB,GAAG;AAAA;AAAA,EAEH,IAAI;AAAA;AAAA,EAEJ,KAAKD,IAAY;AAAA;AAAA,EAEjB,GAAGA;AAAA;AAAA,EAEH,KAAKA,IAAY;AAAA;AAAA,EAEjB,GAAGA,IAAY;AAAA;AAAA,EAEf,KAAKA,IAAY;AAAA;AAAA,EAEjB,GAAGA,IAAY;AAAA;AAAA,EAEf,KAAKA,IAAY;AAAA;AAAA,EAEjB,GAAGA,IAAY;AAAA;AAAA,EAEf,GAAGA,IAAY;AAAA;AAAA,EAEf,GAAGA,IAAY;AAAA;AAAA,EAEf,GAAGA,IAAY;AAAA;AAAA,EAEf,GAAGA,IAAY;AAAA;AAAA,EAEf,GAAGA,IAAY;AAAA;AAAA,EAEf,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AAG,WAAW,gBAAA;AAAA,EAAgB;AAAA;AAAA,EAG/C,WAAW;AAAA,IACT,MAAM,EAAE,SAAS,GAAG,WAAW,mBAAA;AAAA,IAC/B,IAAI,EAAE,SAAS,GAAG,WAAW,gBAAA;AAAA,EAAgB;AAAA;AAAA,EAG/C,YAAY;AAAA,IACV,MAAM,EAAE,SAAS,GAAG,WAAW,oBAAA;AAAA,IAC/B,IAAI,EAAE,SAAS,GAAG,WAAW,gBAAA;AAAA,EAAgB;AAAA;AAAA,EAG/C,MAAM;AAAA,IACJ,MAAM,EAAE,WAAW,eAAA;AAAA,IACnB,IAAI,EAAE,WAAW,iBAAA;AAAA,EAAiB;AAAA;AAAA,EAGpC,OAAO;AAAA,IACL,MAAM,EAAE,SAAS,EAAA;AAAA,IACjB,OAAO,EAAE,SAAS,IAAA;AAAA,IAClB,QAAQ,EAAE,SAAS,EAAA;AAAA,EAAE;AAAA;AAAA,EAGvB,OAAO;AAAA,IACL,YAAY,EAAE,WAAW,gBAAA;AAAA,IACzB,2BAA2B,EAAE,WAAW,mBAAA;AAAA,IACxC,sBAAsB,EAAE,WAAW,kBAAA;AAAA,EAAkB;AAEzD;"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { SpacingKey } from '../design-system/tokens/spacing';
|
|
3
|
+
/** Size variants */
|
|
4
|
+
export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
/** Color intent variants */
|
|
6
|
+
export type Intent = 'primary' | 'accent' | 'success' | 'warning' | 'error' | 'info';
|
|
7
|
+
/** Component state */
|
|
8
|
+
export interface ComponentState {
|
|
9
|
+
isHovered?: boolean;
|
|
10
|
+
isFocused?: boolean;
|
|
11
|
+
isPressed?: boolean;
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** Polymorphic component props */
|
|
16
|
+
export interface PolymorphicProps<E extends React.ElementType> {
|
|
17
|
+
/** The element type to render as */
|
|
18
|
+
as?: E;
|
|
19
|
+
}
|
|
20
|
+
/** Props that can be spread to elements */
|
|
21
|
+
export interface BaseProps {
|
|
22
|
+
/** Custom class name */
|
|
23
|
+
className?: string;
|
|
24
|
+
/** Custom inline styles */
|
|
25
|
+
style?: CSSProperties;
|
|
26
|
+
/** Test ID for testing */
|
|
27
|
+
testId?: string;
|
|
28
|
+
/** Children */
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
}
|
|
31
|
+
/** Spacing props for components */
|
|
32
|
+
export interface SpacingProps {
|
|
33
|
+
/** Margin all sides */
|
|
34
|
+
m?: SpacingKey;
|
|
35
|
+
/** Margin horizontal (left + right) */
|
|
36
|
+
mx?: SpacingKey;
|
|
37
|
+
/** Margin vertical (top + bottom) */
|
|
38
|
+
my?: SpacingKey;
|
|
39
|
+
/** Margin top */
|
|
40
|
+
mt?: SpacingKey;
|
|
41
|
+
/** Margin right */
|
|
42
|
+
mr?: SpacingKey;
|
|
43
|
+
/** Margin bottom */
|
|
44
|
+
mb?: SpacingKey;
|
|
45
|
+
/** Margin left */
|
|
46
|
+
ml?: SpacingKey;
|
|
47
|
+
/** Padding all sides */
|
|
48
|
+
p?: SpacingKey;
|
|
49
|
+
/** Padding horizontal (left + right) */
|
|
50
|
+
px?: SpacingKey;
|
|
51
|
+
/** Padding vertical (top + bottom) */
|
|
52
|
+
py?: SpacingKey;
|
|
53
|
+
/** Padding top */
|
|
54
|
+
pt?: SpacingKey;
|
|
55
|
+
/** Padding right */
|
|
56
|
+
pr?: SpacingKey;
|
|
57
|
+
/** Padding bottom */
|
|
58
|
+
pb?: SpacingKey;
|
|
59
|
+
/** Padding left */
|
|
60
|
+
pl?: SpacingKey;
|
|
61
|
+
}
|
|
62
|
+
/** Flex layout props */
|
|
63
|
+
export interface FlexProps {
|
|
64
|
+
/** Flex direction */
|
|
65
|
+
direction?: CSSProperties['flexDirection'];
|
|
66
|
+
/** Flex wrap */
|
|
67
|
+
wrap?: CSSProperties['flexWrap'];
|
|
68
|
+
/** Justify content */
|
|
69
|
+
justify?: CSSProperties['justifyContent'];
|
|
70
|
+
/** Align items */
|
|
71
|
+
align?: CSSProperties['alignItems'];
|
|
72
|
+
/** Gap between items */
|
|
73
|
+
gap?: SpacingKey;
|
|
74
|
+
}
|
|
75
|
+
/** Responsive value wrapper */
|
|
76
|
+
export type ResponsiveValue<T> = T | {
|
|
77
|
+
base?: T;
|
|
78
|
+
sm?: T;
|
|
79
|
+
md?: T;
|
|
80
|
+
lg?: T;
|
|
81
|
+
xl?: T;
|
|
82
|
+
'2xl'?: T;
|
|
83
|
+
};
|
|
84
|
+
/** Utility type to get component props */
|
|
85
|
+
export type ComponentProps<T> = T extends React.ComponentType<infer P> ? P : never;
|
|
86
|
+
/** Make some properties required */
|
|
87
|
+
export type RequireFields<T, K extends keyof T> = T & Required<Pick<T, K>>;
|
|
88
|
+
/** Omit properties from a type */
|
|
89
|
+
export type OmitProps<T, K extends keyof T> = Omit<T, K>;
|
|
90
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,oBAAoB;AACpB,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEnD,4BAA4B;AAC5B,MAAM,MAAM,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAEpF,sBAAsB;AACtB,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,C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H,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { SpacingProps } from '../types/common';
|
|
3
|
+
import { spacing } from '../design-system';
|
|
4
|
+
/** Merge class names, filtering out falsy values */
|
|
5
|
+
export declare function cx(...classes: (string | boolean | undefined | null)[]): string;
|
|
6
|
+
/** Convert spacing key to pixel value */
|
|
7
|
+
export declare function getSpacingValue(key: keyof typeof spacing): number;
|
|
8
|
+
/** Convert spacing key to CSS value with px unit */
|
|
9
|
+
export declare function spacingToCss(key: keyof typeof spacing | undefined): string | undefined;
|
|
10
|
+
/** Build spacing styles from props */
|
|
11
|
+
export declare function buildSpacingStyles(props: SpacingProps): CSSProperties;
|
|
12
|
+
/** Create CSS-in-JS style object with typed tokens */
|
|
13
|
+
export declare function createStyles<T extends Record<string, CSSProperties>>(styles: T): T;
|
|
14
|
+
export declare function generateId(prefix?: string): string;
|
|
15
|
+
/** Convert hex color to rgba */
|
|
16
|
+
export declare function hexToRgba(hex: string, alpha: number): string;
|
|
17
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/utils/styles.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,oDAAoD;AACpD,wBAAgB,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,GAAG,MAAM,CAE9E;AAED,yCAAyC;AACzC,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,OAAO,OAAO,GAAG,MAAM,CAEjE;AAED,oDAAoD;AACpD,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,OAAO,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAItF;AAED,sCAAsC;AACtC,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,GAAG,aAAa,CAgCrE;AAED,sDAAsD;AACtD,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAElF;AAID,wBAAgB,UAAU,CAAC,MAAM,SAAW,GAAG,MAAM,CAEpD;AAED,gCAAgC;AAChC,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAS5D"}
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@brycks/core-front",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Brycks Design System - A modern, calm, and tactile UI component library",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.cjs",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./tokens": {
|
|
16
|
+
"import": "./dist/tokens.js",
|
|
17
|
+
"require": "./dist/tokens.cjs",
|
|
18
|
+
"types": "./dist/tokens.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./themes": {
|
|
21
|
+
"import": "./dist/themes.js",
|
|
22
|
+
"require": "./dist/themes.cjs",
|
|
23
|
+
"types": "./dist/themes.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./styles.css": "./dist/styles.css"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"sideEffects": [
|
|
31
|
+
"**/*.css"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"dev": "vite",
|
|
35
|
+
"build": "tsc && vite build",
|
|
36
|
+
"lint": "eslint .",
|
|
37
|
+
"preview": "vite preview",
|
|
38
|
+
"typecheck": "tsc --noEmit",
|
|
39
|
+
"prepublishOnly": "npm run build"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"react": ">=18.0.0",
|
|
43
|
+
"react-dom": ">=18.0.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@eslint/js": "^9.18.0",
|
|
47
|
+
"@types/react": "^18.2.79",
|
|
48
|
+
"@types/react-dom": "^18.2.25",
|
|
49
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
50
|
+
"eslint": "^9.18.0",
|
|
51
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
52
|
+
"eslint-plugin-react-refresh": "^0.4.18",
|
|
53
|
+
"globals": "^15.14.0",
|
|
54
|
+
"react": "^18.2.0",
|
|
55
|
+
"react-dom": "^18.2.0",
|
|
56
|
+
"typescript": "^5.4.5",
|
|
57
|
+
"typescript-eslint": "^8.21.0",
|
|
58
|
+
"vite": "^5.2.8",
|
|
59
|
+
"vite-plugin-dts": "^4.5.4"
|
|
60
|
+
},
|
|
61
|
+
"keywords": [
|
|
62
|
+
"design-system",
|
|
63
|
+
"react",
|
|
64
|
+
"components",
|
|
65
|
+
"ui",
|
|
66
|
+
"brycks",
|
|
67
|
+
"typescript"
|
|
68
|
+
],
|
|
69
|
+
"author": "Brycks",
|
|
70
|
+
"license": "MIT",
|
|
71
|
+
"repository": {
|
|
72
|
+
"type": "git",
|
|
73
|
+
"url": "https://github.com/brycks/brycks-core-front.git"
|
|
74
|
+
},
|
|
75
|
+
"publishConfig": {
|
|
76
|
+
"access": "public"
|
|
77
|
+
}
|
|
78
|
+
}
|