@baseline-ui/tokens 0.1.2 → 0.2.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/dist/index.css +1 -1
- package/dist/index.d.mts +54 -16
- package/dist/index.d.ts +54 -16
- package/dist/index.js +15 -15
- package/dist/index.mjs +15 -15
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1217,7 +1217,7 @@ declare const themeVars: {
|
|
|
1217
1217
|
};
|
|
1218
1218
|
};
|
|
1219
1219
|
|
|
1220
|
-
declare const
|
|
1220
|
+
declare const createLayerSprinkles: (layer: string) => ((props: {
|
|
1221
1221
|
paddingTop?: ("none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | {
|
|
1222
1222
|
mobile?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | undefined;
|
|
1223
1223
|
tablet?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | undefined;
|
|
@@ -1312,8 +1312,8 @@ declare const sprinkles: ((props: {
|
|
|
1312
1312
|
} & {
|
|
1313
1313
|
color?: "text.primary" | "text.secondary" | "text.helper" | "text.placeholder" | "text.disabled" | "text.inverse" | "icon.primary" | "icon.secondary" | "icon.disabled" | "icon.inverse" | "icon.interactive" | "interactive.primary" | "interactive.hovered" | "interactive.active" | "interactive.visited" | "interactive.disabled" | "support.error.subtler" | "support.error.subtle" | "support.error.medium" | "support.error.strong" | "support.success.subtler" | "support.success.subtle" | "support.success.medium" | "support.success.strong" | "support.warning.subtler" | "support.warning.subtle" | "support.warning.medium" | "support.warning.strong" | "support.info.subtler" | "support.info.subtle" | "support.info.medium" | "support.info.strong" | "focused.primary" | "focused.inset" | undefined;
|
|
1314
1314
|
backgroundColor?: "background.primary.subtle" | "background.primary.medium" | "background.primary.strong" | "background.secondary.subtle" | "background.secondary.medium" | "background.secondary.strong" | "background.inverse.subtle" | "background.inverse.medium" | "background.inverse.strong" | "background.overlay.subtle" | "background.overlay.medium" | "background.positive.subtle" | "background.positive.medium" | "background.positive.strong" | "support.error.subtler" | "support.error.subtle" | "support.error.medium" | "support.error.strong" | "support.success.subtler" | "support.success.subtle" | "support.success.medium" | "support.success.strong" | "support.warning.subtler" | "support.warning.subtle" | "support.warning.medium" | "support.warning.strong" | "support.info.subtler" | "support.info.subtle" | "support.info.medium" | "support.info.strong" | "focused.primary" | "focused.inset" | undefined;
|
|
1315
|
-
borderColor?: "support.error.subtler" | "support.error.subtle" | "support.error.medium" | "support.error.strong" | "support.success.subtler" | "support.success.subtle" | "support.success.medium" | "support.success.strong" | "support.warning.subtler" | "support.warning.subtle" | "support.warning.medium" | "support.warning.strong" | "support.info.subtler" | "support.info.subtle" | "support.info.medium" | "support.info.strong" | "focused.primary" | "focused.inset" | "border.subtle" | "border.medium" | "border.strong" | "border.inverse" | "border.interactive" | "border.disabled" | undefined;
|
|
1316
|
-
outlineColor?: "support.error.subtler" | "support.error.subtle" | "support.error.medium" | "support.error.strong" | "support.success.subtler" | "support.success.subtle" | "support.success.medium" | "support.success.strong" | "support.warning.subtler" | "support.warning.subtle" | "support.warning.medium" | "support.warning.strong" | "support.info.subtler" | "support.info.subtle" | "support.info.medium" | "support.info.strong" | "focused.primary" | "focused.inset" | "border.subtle" | "border.medium" | "border.strong" | "border.inverse" | "border.interactive" | "border.disabled" | undefined;
|
|
1315
|
+
borderColor?: "transparent" | "support.error.subtler" | "support.error.subtle" | "support.error.medium" | "support.error.strong" | "support.success.subtler" | "support.success.subtle" | "support.success.medium" | "support.success.strong" | "support.warning.subtler" | "support.warning.subtle" | "support.warning.medium" | "support.warning.strong" | "support.info.subtler" | "support.info.subtle" | "support.info.medium" | "support.info.strong" | "focused.primary" | "focused.inset" | "border.subtle" | "border.medium" | "border.strong" | "border.inverse" | "border.interactive" | "border.disabled" | undefined;
|
|
1316
|
+
outlineColor?: "transparent" | "support.error.subtler" | "support.error.subtle" | "support.error.medium" | "support.error.strong" | "support.success.subtler" | "support.success.subtle" | "support.success.medium" | "support.success.strong" | "support.warning.subtler" | "support.warning.subtle" | "support.warning.medium" | "support.warning.strong" | "support.info.subtler" | "support.info.subtle" | "support.info.medium" | "support.info.strong" | "focused.primary" | "focused.inset" | "border.subtle" | "border.medium" | "border.strong" | "border.inverse" | "border.interactive" | "border.disabled" | undefined;
|
|
1317
1317
|
} & {
|
|
1318
1318
|
position?: ("fixed" | "absolute" | "relative" | {
|
|
1319
1319
|
mobile?: "fixed" | "absolute" | "relative" | undefined;
|
|
@@ -1345,24 +1345,53 @@ declare const sprinkles: ((props: {
|
|
|
1345
1345
|
tablet?: "space-between" | "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
1346
1346
|
desktop?: "space-between" | "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
1347
1347
|
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3, "space-between" | "stretch" | "center" | "flex-end" | "flex-start" | null>;
|
|
1348
|
+
placeItems?: ("stretch" | "center" | "flex-end" | "flex-start" | {
|
|
1349
|
+
mobile?: "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
1350
|
+
tablet?: "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
1351
|
+
desktop?: "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
1352
|
+
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<1 | 2 | 3, "stretch" | "center" | "flex-end" | "flex-start" | null>;
|
|
1348
1353
|
} & {
|
|
1349
1354
|
transition?: "transition.medium" | undefined;
|
|
1350
1355
|
transitionProperty?: "opacity" | "transform" | "background-color" | undefined;
|
|
1351
1356
|
} & {
|
|
1352
|
-
flexWrap?: "nowrap" | "wrap" | undefined;
|
|
1353
|
-
top?:
|
|
1354
|
-
bottom?:
|
|
1355
|
-
left?:
|
|
1356
|
-
right?:
|
|
1357
|
-
flexShrink?:
|
|
1358
|
-
flexGrow?:
|
|
1359
|
-
width?: "full" | undefined;
|
|
1360
|
-
height?: "full" | undefined;
|
|
1361
|
-
cursor?: "pointer" | undefined;
|
|
1362
|
-
inset?:
|
|
1357
|
+
readonly flexWrap?: "nowrap" | "wrap" | undefined;
|
|
1358
|
+
readonly top?: 0 | undefined;
|
|
1359
|
+
readonly bottom?: 0 | undefined;
|
|
1360
|
+
readonly left?: 0 | undefined;
|
|
1361
|
+
readonly right?: 0 | undefined;
|
|
1362
|
+
readonly flexShrink?: 0 | undefined;
|
|
1363
|
+
readonly flexGrow?: 0 | 1 | undefined;
|
|
1364
|
+
readonly width?: "full" | undefined;
|
|
1365
|
+
readonly height?: "full" | undefined;
|
|
1366
|
+
readonly cursor?: "pointer" | undefined;
|
|
1367
|
+
inset?: 0 | undefined;
|
|
1368
|
+
} & {
|
|
1369
|
+
outline?: "none" | undefined;
|
|
1370
|
+
outlineStyle?: "solid" | undefined;
|
|
1371
|
+
outlineWidth?: number | undefined;
|
|
1372
|
+
outlineOffset?: number | undefined;
|
|
1373
|
+
border?: "none" | undefined;
|
|
1374
|
+
borderStyle?: "dashed" | "solid" | undefined;
|
|
1375
|
+
borderWidth?: number | undefined;
|
|
1363
1376
|
}) => string) & {
|
|
1364
|
-
properties: Set<"opacity" | "color" | "inset" | "typography" | "backgroundColor" | "borderColor" | "outlineColor" | "alignItems" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "bottom" | "boxShadow" | "cursor" | "display" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "left" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "top" | "transitionProperty" | "width" | "borderRadius" | "flex" | "gap" | "margin" | "padding" | "transition" | "paddingX" | "paddingY" | "marginX" | "marginY" | "borderTopRadius" | "borderBottomRadius" | "borderLeftRadius" | "borderRightRadius">;
|
|
1377
|
+
properties: Set<"opacity" | "color" | "inset" | "border" | "typography" | "backgroundColor" | "borderColor" | "outlineColor" | "alignItems" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "bottom" | "boxShadow" | "cursor" | "display" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "left" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "top" | "transitionProperty" | "width" | "borderRadius" | "borderStyle" | "borderWidth" | "flex" | "gap" | "margin" | "outline" | "padding" | "placeItems" | "transition" | "paddingX" | "paddingY" | "marginX" | "marginY" | "borderTopRadius" | "borderBottomRadius" | "borderLeftRadius" | "borderRightRadius">;
|
|
1365
1378
|
};
|
|
1379
|
+
type Sprinkles = ReturnType<typeof createLayerSprinkles>;
|
|
1380
|
+
/**
|
|
1381
|
+
* @deprecated Use `Unstable_Sprinkles` instead. This will be removed in the
|
|
1382
|
+
* next major version. `Unstable_Sprinkles` takes care of all the layering for
|
|
1383
|
+
* you so that you do not run into issues with specificity.
|
|
1384
|
+
*/
|
|
1385
|
+
declare const sprinkles: Sprinkles;
|
|
1386
|
+
declare const Unstable_Sprinkles: Unstable_SprinklesInterface;
|
|
1387
|
+
interface Unstable_SprinklesInterface {
|
|
1388
|
+
components: {
|
|
1389
|
+
base: Sprinkles;
|
|
1390
|
+
variants: Sprinkles;
|
|
1391
|
+
compoundVariants: Sprinkles;
|
|
1392
|
+
};
|
|
1393
|
+
overrides: Sprinkles;
|
|
1394
|
+
}
|
|
1366
1395
|
|
|
1367
1396
|
declare const breakpoints: {
|
|
1368
1397
|
mobile: number;
|
|
@@ -1519,4 +1548,13 @@ interface Elevation {
|
|
|
1519
1548
|
medium: string;
|
|
1520
1549
|
}
|
|
1521
1550
|
|
|
1522
|
-
|
|
1551
|
+
declare const Layers: {
|
|
1552
|
+
readonly RESET: string;
|
|
1553
|
+
readonly COMPONENTS: string;
|
|
1554
|
+
readonly COMPONENTS_BASE: string;
|
|
1555
|
+
readonly COMPONENTS_VARIANTS: string;
|
|
1556
|
+
readonly COMPONENTS_COMPOUND_VARIANTS: string;
|
|
1557
|
+
readonly OVERRIDES: string;
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
export { type Breakpoint, Layers, type Sprinkles, type Theme, Unstable_Sprinkles, type Unstable_SprinklesInterface, breakpoints, dark as darkTheme, light as lightTheme, responsiveStyle, sprinkles, themeContract, themeVars };
|