baseline-kit 2.1.0 → 3.0.1
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 +93 -17
- package/dist/README.md +93 -17
- package/dist/baseline-kit.css +151 -0
- package/dist/components/Baseline/Baseline.d.ts +0 -23
- package/dist/components/Box/Box.d.ts +14 -24
- package/dist/components/Config/Config.d.ts +25 -25
- package/dist/components/Config/defaults.d.ts +2 -2
- package/dist/components/Config/index.d.ts +1 -1
- package/dist/components/Guide/Guide.d.ts +2 -16
- package/dist/components/Guide/index.d.ts +0 -6
- package/dist/components/Guide/types.d.ts +1 -1
- package/dist/components/Layout/Layout.d.ts +0 -10
- package/dist/components/Padder/Padder.d.ts +8 -19
- package/dist/components/Spacer/Spacer.d.ts +0 -4
- package/dist/components/Stack/Stack.d.ts +2 -11
- package/dist/components/index.d.ts +4 -3
- package/dist/components/styles/index.d.ts +11 -0
- package/dist/components/types.d.ts +2 -2
- package/dist/hooks/useConfig.d.ts +3 -3
- package/dist/hooks/useIsClient.d.ts +6 -0
- package/dist/index.cjs +1 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +25 -3
- package/dist/index.mjs +1454 -1848
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.d.ts +6 -0
- package/dist/theme/dark.css +67 -0
- package/dist/theme/default.css +82 -0
- package/dist/theme/tokens.css +82 -0
- package/dist/theme.css +116 -114
- package/dist/theme.d.ts +6 -0
- package/dist/utils/convert.d.ts +0 -17
- package/dist/utils/math.d.ts +0 -37
- package/dist/utils/normalize.d.ts +0 -35
- package/dist/utils/parse.d.ts +0 -29
- package/dist/utils/ssr.d.ts +0 -7
- package/package.json +51 -20
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,30 @@
|
|
|
3
3
|
* Lightweight development tool for visualizing and debugging grid systems and spacing in React
|
|
4
4
|
* applications. It provides configurable overlays for both column-based and baseline grids, flexible spacing components,
|
|
5
5
|
* and theme-aware configuration—all optimized for performance and built with TypeScript.
|
|
6
|
+
*
|
|
7
|
+
* Export Strategy:
|
|
8
|
+
* - Only components and types required by consumers are exported
|
|
9
|
+
* - Components are directly imported from their respective directories rather than through the components/index.ts barrel
|
|
10
|
+
* - SSR utilities (isSSR, safeClientValue) are exported for advanced consumer use cases
|
|
11
|
+
* - Internal utilities, helper functions, and implementation details are kept private
|
|
12
|
+
*
|
|
6
13
|
* @module baseline-kit
|
|
7
14
|
*/
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
15
|
+
export { Config } from './components/Config';
|
|
16
|
+
export { Baseline } from './components/Baseline';
|
|
17
|
+
export { Guide } from './components/Guide';
|
|
18
|
+
export { Box } from './components/Box';
|
|
19
|
+
export { Stack } from './components/Stack';
|
|
20
|
+
export { Layout } from './components/Layout';
|
|
21
|
+
export { Spacer } from './components/Spacer';
|
|
22
|
+
export { Padder } from './components/Padder';
|
|
23
|
+
export type { DebuggingMode, ConfigSchema } from './components/Config/Config';
|
|
24
|
+
export type { GuideVariant, Spacing, SpacingProps } from './components/types';
|
|
25
|
+
export type { BaselineProps } from './components/Baseline';
|
|
26
|
+
export type { BoxProps } from './components/Box';
|
|
27
|
+
export type { GuideProps } from './components/Guide';
|
|
28
|
+
export type { LayoutProps } from './components/Layout';
|
|
29
|
+
export type { StackProps } from './components/Stack';
|
|
30
|
+
export type { IndicatorNode, SpacerProps } from './components/Spacer';
|
|
31
|
+
export type { PadderProps } from './components/Padder';
|
|
32
|
+
export { isSSR, safeClientValue } from './utils/ssr';
|