@soroush.tech/styled-system 5.9.0-alpha.0 → 6.0.0-alpha.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.
Files changed (111) hide show
  1. package/dist/background.d.cts +2 -2
  2. package/dist/background.d.mts +2 -2
  3. package/dist/border.d.cts +2 -2
  4. package/dist/border.d.mts +2 -2
  5. package/dist/color.d.cts +2 -2
  6. package/dist/color.d.mts +2 -2
  7. package/dist/core.cjs +31 -31
  8. package/dist/core.d.cts +3 -3
  9. package/dist/core.d.mts +3 -3
  10. package/dist/core.mjs +28 -32
  11. package/dist/{css-CunBKyMl.mjs → css-Ba4jdXOq.mjs} +26 -18
  12. package/dist/{css-BnnO16Cw.cjs → css-D1zAlDVz.cjs} +26 -18
  13. package/dist/css.cjs +1 -1
  14. package/dist/css.d.cts +1 -1
  15. package/dist/css.d.mts +1 -1
  16. package/dist/css.mjs +1 -1
  17. package/dist/flexbox.d.cts +2 -2
  18. package/dist/flexbox.d.mts +2 -2
  19. package/dist/grid-BdKZQBHF.mjs +135 -0
  20. package/dist/grid-CAlwl8LZ.cjs +165 -0
  21. package/dist/grid.cjs +5 -1
  22. package/dist/grid.d.cts +3 -3
  23. package/dist/grid.d.mts +3 -3
  24. package/dist/grid.mjs +2 -2
  25. package/dist/index-BCO1q3Ee.d.mts +6 -0
  26. package/dist/{index-BKofCDzL.d.mts → index-BgcnUGws.d.cts} +2 -2
  27. package/dist/index-BiZPbJuj.d.mts +6 -0
  28. package/dist/index-BolQQ69W.d.cts +6 -0
  29. package/dist/index-Bq7LA-5J.d.cts +6 -0
  30. package/dist/{index-wKeENlqd.d.mts → index-C4BUuCOD.d.cts} +2 -2
  31. package/dist/index-CV2xW58U.d.mts +6 -0
  32. package/dist/index-CVxHdrQd.d.mts +6 -0
  33. package/dist/index-CXOIz3b_.d.cts +6 -0
  34. package/dist/index-CkSwZa-Z.d.mts +6 -0
  35. package/dist/index-Cnya5hgU.d.mts +6 -0
  36. package/dist/{index-DzcXmzdT.d.cts → index-Cow4kTN2.d.mts} +2 -2
  37. package/dist/index-Cy51GZK8.d.mts +47 -0
  38. package/dist/index-DBX-YuCP.d.mts +6 -0
  39. package/dist/index-DJw2NCm-.d.cts +6 -0
  40. package/dist/index-DS5tvdki.d.cts +6 -0
  41. package/dist/index-DrwsZZkS.d.cts +47 -0
  42. package/dist/{index-BXP1-da3.d.mts → index-IulNhyDt.d.mts} +2 -2
  43. package/dist/index-MqRHkwxm.d.cts +6 -0
  44. package/dist/{index-BYkO78Xl.d.cts → index-iVqAMF2L.d.cts} +2 -2
  45. package/dist/{index-Bq7teef_.d.cts → index-k5b5FR_o.d.mts} +2 -2
  46. package/dist/index-o6j0bywN.d.cts +6 -0
  47. package/dist/index-ygAGm7QY.d.cts +6 -0
  48. package/dist/index-z2p2DCxL.d.mts +6 -0
  49. package/dist/index.cjs +12 -4
  50. package/dist/index.d.cts +15 -15
  51. package/dist/index.d.mts +15 -15
  52. package/dist/index.mjs +5 -5
  53. package/dist/{layout-kqQ2OsL5.cjs → layout-D3pG7vBp.cjs} +3 -1
  54. package/dist/{layout-lG3i5mWZ.mjs → layout-DF83ooFn.mjs} +3 -1
  55. package/dist/layout.cjs +1 -1
  56. package/dist/layout.d.cts +3 -3
  57. package/dist/layout.d.mts +3 -3
  58. package/dist/layout.mjs +1 -1
  59. package/dist/media-Bho3l7WK.mjs +85 -0
  60. package/dist/media-CfYDomHt.d.cts +54 -0
  61. package/dist/media-CfYDomHt.d.mts +54 -0
  62. package/dist/media-DSJdRy_k.cjs +120 -0
  63. package/dist/position.d.cts +2 -2
  64. package/dist/position.d.mts +2 -2
  65. package/dist/{presets-CV_TIXQ4.mjs → presets-DtE_nRxp.mjs} +4 -4
  66. package/dist/{presets-CCvtQotd.cjs → presets-fJFZ74qt.cjs} +4 -4
  67. package/dist/prop-types.cjs +3 -3
  68. package/dist/prop-types.mjs +3 -3
  69. package/dist/props.cjs +1 -1
  70. package/dist/props.mjs +1 -1
  71. package/dist/shadow.d.cts +2 -2
  72. package/dist/shadow.d.mts +2 -2
  73. package/dist/should-forward-prop.cjs +1 -1
  74. package/dist/should-forward-prop.mjs +1 -1
  75. package/dist/space.d.cts +2 -2
  76. package/dist/space.d.mts +2 -2
  77. package/dist/{types-B0SNbm6V.d.cts → types-C4ogGxde.d.cts} +37 -7
  78. package/dist/{types-B0SNbm6V.d.mts → types-C4ogGxde.d.mts} +37 -7
  79. package/dist/typography.d.cts +2 -2
  80. package/dist/typography.d.mts +2 -2
  81. package/dist/{variant-DdSForfI.cjs → variant-BSPTyRcQ.cjs} +1 -1
  82. package/dist/{variant-DfRW-ZJe.mjs → variant-D1u5rSqm.mjs} +1 -1
  83. package/dist/variant.cjs +1 -1
  84. package/dist/variant.d.cts +2 -2
  85. package/dist/variant.d.mts +2 -2
  86. package/dist/variant.mjs +1 -1
  87. package/package.json +1 -1
  88. package/dist/grid-Bpk-QjhF.mjs +0 -41
  89. package/dist/grid-CpvRIng4.cjs +0 -47
  90. package/dist/index-0k2kzlK5.d.cts +0 -6
  91. package/dist/index-BReBwT6c.d.mts +0 -6
  92. package/dist/index-BhbWZw53.d.mts +0 -6
  93. package/dist/index-C-B6-_Ku.d.mts +0 -6
  94. package/dist/index-C9CxJ5Zn.d.cts +0 -6
  95. package/dist/index-CIccdXWj.d.cts +0 -6
  96. package/dist/index-CJT-n3Vq.d.mts +0 -6
  97. package/dist/index-CcorN1bQ.d.mts +0 -6
  98. package/dist/index-Cd_CcxMh.d.cts +0 -6
  99. package/dist/index-Co0JY1hd.d.cts +0 -6
  100. package/dist/index-D9dwDAhC.d.mts +0 -6
  101. package/dist/index-DP40bJIa.d.cts +0 -6
  102. package/dist/index-DQhcFrR9.d.mts +0 -6
  103. package/dist/index-DcRfFIAZ.d.mts +0 -6
  104. package/dist/index-Dsc6RgbZ.d.cts +0 -6
  105. package/dist/index-Q8q5VND1.d.cts +0 -6
  106. package/dist/index-UGE-V15i.d.cts +0 -6
  107. package/dist/index-sk97pkUE.d.mts +0 -6
  108. package/dist/media-B8UpEDpY.mjs +0 -18
  109. package/dist/media-BoIPXBPV.cjs +0 -29
  110. package/dist/media-np0uvO4C.d.cts +0 -14
  111. package/dist/media-np0uvO4C.d.mts +0 -14
package/dist/space.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { R as GapProps, T as ColumnGapProps, bt as RowGapProps, ht as PaddingProps, ot as MarginProps, wt as SpaceProps } from "./types-B0SNbm6V.mjs";
2
- import { i as space, n as margin, r as padding, t as gap } from "./index-wKeENlqd.mjs";
1
+ import { B as GapProps, Ct as RowGapProps, Dt as SpaceProps, E as ColumnGapProps, lt as MarginProps, vt as PaddingProps } from "./types-C4ogGxde.mjs";
2
+ import { i as space, n as margin, r as padding, t as gap } from "./index-k5b5FR_o.mjs";
3
3
  export { type ColumnGapProps, type GapProps, type MarginProps, type PaddingProps, type RowGapProps, type SpaceProps, space as default, space, gap, margin, padding };
@@ -4,7 +4,8 @@ type ObjectOrArray<T, K extends keyof any = keyof any> = T[] | Record<K, T | Rec
4
4
  type Scale = ObjectOrArray<number | string>;
5
5
  type TLengthStyledSystem = string | number;
6
6
  interface Theme<TLength = TLengthStyledSystem> {
7
- breakpoints?: ObjectOrArray<number | string | symbol>;
7
+ /** Sizes by name or position; a scale may also carry helper methods, which are not breakpoints. */
8
+ breakpoints?: ObjectOrArray<number | string | symbol> | Record<string, unknown>;
8
9
  mediaQueries?: {
9
10
  [size: string]: string;
10
11
  };
@@ -28,10 +29,15 @@ interface Theme<TLength = TLengthStyledSystem> {
28
29
  }
29
30
  type RequiredTheme = Required<Theme>;
30
31
  type ThemeValue<K extends keyof ThemeType, ThemeType, TVal = any> = NonNullable<ThemeType[K]> extends TVal[] ? number : NonNullable<ThemeType[K]> extends Record<infer E, TVal> ? E : NonNullable<ThemeType[K]> extends ObjectOrArray<infer F> ? F : never;
31
- type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | ({ [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T; } & {
32
- /** The value below the first breakpoint. */
33
- _?: T;
34
- });
32
+ type SizeKeys<Scale> = Scale extends readonly unknown[] ? never : { [K in keyof Scale]: Scale[K] extends ((...args: never[]) => unknown) ? never : K; }[keyof Scale] & string;
33
+ /** The theme's breakpoint names (array indexes for a list scale). */
34
+ type BreakpointName<ThemeType extends Theme = RequiredTheme> = SizeKeys<NonNullable<ThemeType['breakpoints']>> | number;
35
+ /**
36
+ * A responsive value: one value; an array mapped by position onto the breakpoints,
37
+ * mobile-first (`null` skips one); or an object keyed by breakpoint name, each from that
38
+ * size up, plus `cq<Name>` keys for the same sizes as container queries.
39
+ */
40
+ type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | ({ [key in BreakpointName<ThemeType>]?: T; } & { [key in `cq${Capitalize<SizeKeys<NonNullable<ThemeType['breakpoints']>>>}`]?: T; });
35
41
  interface MarginProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
36
42
  m?: ResponsiveValue<TVal, ThemeType>;
37
43
  margin?: ResponsiveValue<TVal, ThemeType>;
@@ -113,7 +119,12 @@ interface VerticalAlignProps<ThemeType extends Theme = RequiredTheme, TVal = CSS
113
119
  interface AspectRatioProps<ThemeType extends Theme = RequiredTheme> {
114
120
  aspectRatio?: ResponsiveValue<CSS.Property.AspectRatio, ThemeType>;
115
121
  }
116
- interface LayoutProps<ThemeType extends Theme = RequiredTheme> extends WidthProps<ThemeType>, HeightProps<ThemeType>, MinWidthProps<ThemeType>, MinHeightProps<ThemeType>, MaxWidthProps<ThemeType>, MaxHeightProps<ThemeType>, DisplayProps<ThemeType>, VerticalAlignProps<ThemeType>, AspectRatioProps<ThemeType>, SizeProps<ThemeType>, OverflowProps<ThemeType> {}
122
+ /** Not in upstream styled-system: makes the element a query container. */
123
+ interface ContainerProps<ThemeType extends Theme = RequiredTheme> {
124
+ containerType?: ResponsiveValue<CSS.Property.ContainerType, ThemeType>;
125
+ containerName?: ResponsiveValue<CSS.Property.ContainerName, ThemeType>;
126
+ }
127
+ interface LayoutProps<ThemeType extends Theme = RequiredTheme> extends WidthProps<ThemeType>, HeightProps<ThemeType>, MinWidthProps<ThemeType>, MinHeightProps<ThemeType>, MaxWidthProps<ThemeType>, MaxHeightProps<ThemeType>, DisplayProps<ThemeType>, VerticalAlignProps<ThemeType>, AspectRatioProps<ThemeType>, ContainerProps<ThemeType>, SizeProps<ThemeType>, OverflowProps<ThemeType> {}
117
128
  interface FontFamilyProps<ThemeType extends Theme = RequiredTheme> {
118
129
  fontFamily?: ResponsiveValue<CSS.Property.FontFamily, ThemeType>;
119
130
  }
@@ -328,6 +339,25 @@ interface GridTemplateAreasProps<ThemeType extends Theme = RequiredTheme> {
328
339
  interface GridAreaProps<ThemeType extends Theme = RequiredTheme> {
329
340
  gridArea?: ResponsiveValue<CSS.Property.GridArea, ThemeType>;
330
341
  }
342
+ interface LayoutGridEntryProps<ThemeType extends Theme> {
343
+ columns?: number;
344
+ margin?: ThemeValue<'space', ThemeType> | string;
345
+ gutter?: ThemeValue<'space', ThemeType> | string;
346
+ mode?: 'fluid' | 'fixed';
347
+ maxWidth?: string;
348
+ }
349
+ /**
350
+ * Not in upstream styled-system: the layout grid from `theme.layout` on a Grid or Flex - `true`
351
+ * for the theme's, or an entry whose fields replace it at every breakpoint (`{ gutter: 8 }`),
352
+ * with entries under breakpoint names that replace it there only (`{ lg: { columns: 16 } }`).
353
+ */
354
+ interface LayoutGridProps<ThemeType extends Theme = RequiredTheme> {
355
+ layout?: boolean | (LayoutGridEntryProps<ThemeType> & { [key in BreakpointName<ThemeType>]?: LayoutGridEntryProps<ThemeType>; });
356
+ }
357
+ /** Not in upstream styled-system: how many layout-grid columns the element takes. */
358
+ interface SpanProps<ThemeType extends Theme = RequiredTheme> {
359
+ span?: ResponsiveValue<number, ThemeType>;
360
+ }
331
361
  interface GridProps<ThemeType extends Theme = RequiredTheme> extends GridGapProps<ThemeType>, GridColumnGapProps<ThemeType>, GridRowGapProps<ThemeType>, GridColumnProps<ThemeType>, GridRowProps<ThemeType>, GridAutoFlowProps<ThemeType>, GridAutoColumnsProps<ThemeType>, GridAutoRowsProps<ThemeType>, GridTemplateColumnsProps<ThemeType>, GridTemplateRowsProps<ThemeType>, GridTemplateAreasProps<ThemeType>, GridAreaProps<ThemeType> {}
332
362
  interface BoxShadowProps<ThemeType extends Theme = RequiredTheme> {
333
363
  boxShadow?: ResponsiveValue<CSS.Property.BoxShadow | string | number, ThemeType>;
@@ -346,4 +376,4 @@ interface ColorStyleProps<ThemeType extends Theme = RequiredTheme> {
346
376
  colors?: ResponsiveValue<string, ThemeType>;
347
377
  }
348
378
  //#endregion
349
- export { JustifyContentProps as $, FlexProps as A, TextDecorationLineProps as At, GridAutoColumnsProps as B, TopProps as Bt, ColorProps as C, SizeProps as Ct, FlexBasisProps as D, TextAlignProps as Dt, DisplayProps as E, TextAlignLastProps as Et, FontSizeProps as F, TextShadowProps as Ft, GridGapProps as G, ZIndexProps as Gt, GridAutoRowsProps as H, VerticalAlignProps as Ht, FontStyleProps as I, TextStyleProps as It, GridRowProps as J, GridProps as K, FontWeightProps as L, TextTransformProps as Lt, FlexWrapProps as M, TextDecorationStyleProps as Mt, FlexboxProps as N, TextDecorationThicknessProps as Nt, FlexDirectionProps as O, TextColorProps as Ot, FontFamilyProps as P, TextOverflowProps as Pt, HeightProps as Q, GapProps as R, Theme as Rt, ButtonStyleProps as S, ShadowProps as St, ColumnGapProps as T, TLengthStyledSystem as Tt, GridColumnGapProps as U, WhiteSpaceProps as Ut, GridAutoFlowProps as V, TypographyProps as Vt, GridColumnProps as W, WidthProps as Wt, GridTemplateColumnsProps as X, GridTemplateAreasProps as Y, GridTemplateRowsProps as Z, BorderStyleProps as _, RequiredTheme as _t, BackgroundColorProps as a, LineHeightProps as at, BottomProps as b, RowGapProps as bt, BackgroundProps as c, MaxWidthProps as ct, BorderBottomProps as d, ObjectOrArray as dt, JustifyItemsProps as et, BorderColorProps as f, OpacityProps as ft, BorderRightProps as g, PositionProps as gt, BorderRadiusProps as h, PaddingProps as ht, AspectRatioProps as i, LetterSpacingProps as it, FlexShrinkProps as j, TextDecorationProps as jt, FlexGrowProps as k, TextDecorationColorProps as kt, BackgroundRepeatProps as l, MinHeightProps as lt, BorderProps as m, OverflowProps as mt, AlignItemsProps as n, LayoutProps as nt, BackgroundImageProps as o, MarginProps as ot, BorderLeftProps as p, OrderProps as pt, GridRowGapProps as q, AlignSelfProps as r, LeftProps as rt, BackgroundPositionProps as s, MaxHeightProps as st, AlignContentProps as t, JustifySelfProps as tt, BackgroundSizeProps as u, MinWidthProps as ut, BorderTopProps as v, ResponsiveValue as vt, ColorStyleProps as w, SpaceProps as wt, BoxShadowProps as x, Scale as xt, BorderWidthProps as y, RightProps as yt, GridAreaProps as z, ThemeValue as zt };
379
+ export { GridTemplateRowsProps as $, FlexDirectionProps as A, TextAlignLastProps as At, GapProps as B, TextStyleProps as Bt, ButtonStyleProps as C, RowGapProps as Ct, ContainerProps as D, SpaceProps as Dt, ColumnGapProps as E, SizeProps as Et, FlexboxProps as F, TextDecorationProps as Ft, GridColumnGapProps as G, TypographyProps as Gt, GridAutoColumnsProps as H, Theme as Ht, FontFamilyProps as I, TextDecorationStyleProps as It, GridProps as J, WidthProps as Jt, GridColumnProps as K, VerticalAlignProps as Kt, FontSizeProps as L, TextDecorationThicknessProps as Lt, FlexProps as M, TextColorProps as Mt, FlexShrinkProps as N, TextDecorationColorProps as Nt, DisplayProps as O, SpanProps as Ot, FlexWrapProps as P, TextDecorationLineProps as Pt, GridTemplateColumnsProps as Q, FontStyleProps as R, TextOverflowProps as Rt, BreakpointName as S, RightProps as St, ColorStyleProps as T, ShadowProps as Tt, GridAutoFlowProps as U, ThemeValue as Ut, GridAreaProps as V, TextTransformProps as Vt, GridAutoRowsProps as W, TopProps as Wt, GridRowProps as X, GridRowGapProps as Y, ZIndexProps as Yt, GridTemplateAreasProps as Z, BorderStyleProps as _, OverflowProps as _t, BackgroundColorProps as a, LayoutProps as at, BottomProps as b, RequiredTheme as bt, BackgroundProps as c, LineHeightProps as ct, BorderBottomProps as d, MaxWidthProps as dt, HeightProps as et, BorderColorProps as f, MinHeightProps as ft, BorderRightProps as g, OrderProps as gt, BorderRadiusProps as h, OpacityProps as ht, AspectRatioProps as i, LayoutGridProps as it, FlexGrowProps as j, TextAlignProps as jt, FlexBasisProps as k, TLengthStyledSystem as kt, BackgroundRepeatProps as l, MarginProps as lt, BorderProps as m, ObjectOrArray as mt, AlignItemsProps as n, JustifyItemsProps as nt, BackgroundImageProps as o, LeftProps as ot, BorderLeftProps as p, MinWidthProps as pt, GridGapProps as q, WhiteSpaceProps as qt, AlignSelfProps as r, JustifySelfProps as rt, BackgroundPositionProps as s, LetterSpacingProps as st, AlignContentProps as t, JustifyContentProps as tt, BackgroundSizeProps as u, MaxHeightProps as ut, BorderTopProps as v, PaddingProps as vt, ColorProps as w, Scale as wt, BoxShadowProps as x, ResponsiveValue as xt, BorderWidthProps as y, PositionProps as yt, FontWeightProps as z, TextShadowProps as zt };
@@ -4,7 +4,8 @@ type ObjectOrArray<T, K extends keyof any = keyof any> = T[] | Record<K, T | Rec
4
4
  type Scale = ObjectOrArray<number | string>;
5
5
  type TLengthStyledSystem = string | number;
6
6
  interface Theme<TLength = TLengthStyledSystem> {
7
- breakpoints?: ObjectOrArray<number | string | symbol>;
7
+ /** Sizes by name or position; a scale may also carry helper methods, which are not breakpoints. */
8
+ breakpoints?: ObjectOrArray<number | string | symbol> | Record<string, unknown>;
8
9
  mediaQueries?: {
9
10
  [size: string]: string;
10
11
  };
@@ -28,10 +29,15 @@ interface Theme<TLength = TLengthStyledSystem> {
28
29
  }
29
30
  type RequiredTheme = Required<Theme>;
30
31
  type ThemeValue<K extends keyof ThemeType, ThemeType, TVal = any> = NonNullable<ThemeType[K]> extends TVal[] ? number : NonNullable<ThemeType[K]> extends Record<infer E, TVal> ? E : NonNullable<ThemeType[K]> extends ObjectOrArray<infer F> ? F : never;
31
- type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | ({ [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T; } & {
32
- /** The value below the first breakpoint. */
33
- _?: T;
34
- });
32
+ type SizeKeys<Scale> = Scale extends readonly unknown[] ? never : { [K in keyof Scale]: Scale[K] extends ((...args: never[]) => unknown) ? never : K; }[keyof Scale] & string;
33
+ /** The theme's breakpoint names (array indexes for a list scale). */
34
+ type BreakpointName<ThemeType extends Theme = RequiredTheme> = SizeKeys<NonNullable<ThemeType['breakpoints']>> | number;
35
+ /**
36
+ * A responsive value: one value; an array mapped by position onto the breakpoints,
37
+ * mobile-first (`null` skips one); or an object keyed by breakpoint name, each from that
38
+ * size up, plus `cq<Name>` keys for the same sizes as container queries.
39
+ */
40
+ type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | ({ [key in BreakpointName<ThemeType>]?: T; } & { [key in `cq${Capitalize<SizeKeys<NonNullable<ThemeType['breakpoints']>>>}`]?: T; });
35
41
  interface MarginProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
36
42
  m?: ResponsiveValue<TVal, ThemeType>;
37
43
  margin?: ResponsiveValue<TVal, ThemeType>;
@@ -113,7 +119,12 @@ interface VerticalAlignProps<ThemeType extends Theme = RequiredTheme, TVal = CSS
113
119
  interface AspectRatioProps<ThemeType extends Theme = RequiredTheme> {
114
120
  aspectRatio?: ResponsiveValue<CSS.Property.AspectRatio, ThemeType>;
115
121
  }
116
- interface LayoutProps<ThemeType extends Theme = RequiredTheme> extends WidthProps<ThemeType>, HeightProps<ThemeType>, MinWidthProps<ThemeType>, MinHeightProps<ThemeType>, MaxWidthProps<ThemeType>, MaxHeightProps<ThemeType>, DisplayProps<ThemeType>, VerticalAlignProps<ThemeType>, AspectRatioProps<ThemeType>, SizeProps<ThemeType>, OverflowProps<ThemeType> {}
122
+ /** Not in upstream styled-system: makes the element a query container. */
123
+ interface ContainerProps<ThemeType extends Theme = RequiredTheme> {
124
+ containerType?: ResponsiveValue<CSS.Property.ContainerType, ThemeType>;
125
+ containerName?: ResponsiveValue<CSS.Property.ContainerName, ThemeType>;
126
+ }
127
+ interface LayoutProps<ThemeType extends Theme = RequiredTheme> extends WidthProps<ThemeType>, HeightProps<ThemeType>, MinWidthProps<ThemeType>, MinHeightProps<ThemeType>, MaxWidthProps<ThemeType>, MaxHeightProps<ThemeType>, DisplayProps<ThemeType>, VerticalAlignProps<ThemeType>, AspectRatioProps<ThemeType>, ContainerProps<ThemeType>, SizeProps<ThemeType>, OverflowProps<ThemeType> {}
117
128
  interface FontFamilyProps<ThemeType extends Theme = RequiredTheme> {
118
129
  fontFamily?: ResponsiveValue<CSS.Property.FontFamily, ThemeType>;
119
130
  }
@@ -328,6 +339,25 @@ interface GridTemplateAreasProps<ThemeType extends Theme = RequiredTheme> {
328
339
  interface GridAreaProps<ThemeType extends Theme = RequiredTheme> {
329
340
  gridArea?: ResponsiveValue<CSS.Property.GridArea, ThemeType>;
330
341
  }
342
+ interface LayoutGridEntryProps<ThemeType extends Theme> {
343
+ columns?: number;
344
+ margin?: ThemeValue<'space', ThemeType> | string;
345
+ gutter?: ThemeValue<'space', ThemeType> | string;
346
+ mode?: 'fluid' | 'fixed';
347
+ maxWidth?: string;
348
+ }
349
+ /**
350
+ * Not in upstream styled-system: the layout grid from `theme.layout` on a Grid or Flex - `true`
351
+ * for the theme's, or an entry whose fields replace it at every breakpoint (`{ gutter: 8 }`),
352
+ * with entries under breakpoint names that replace it there only (`{ lg: { columns: 16 } }`).
353
+ */
354
+ interface LayoutGridProps<ThemeType extends Theme = RequiredTheme> {
355
+ layout?: boolean | (LayoutGridEntryProps<ThemeType> & { [key in BreakpointName<ThemeType>]?: LayoutGridEntryProps<ThemeType>; });
356
+ }
357
+ /** Not in upstream styled-system: how many layout-grid columns the element takes. */
358
+ interface SpanProps<ThemeType extends Theme = RequiredTheme> {
359
+ span?: ResponsiveValue<number, ThemeType>;
360
+ }
331
361
  interface GridProps<ThemeType extends Theme = RequiredTheme> extends GridGapProps<ThemeType>, GridColumnGapProps<ThemeType>, GridRowGapProps<ThemeType>, GridColumnProps<ThemeType>, GridRowProps<ThemeType>, GridAutoFlowProps<ThemeType>, GridAutoColumnsProps<ThemeType>, GridAutoRowsProps<ThemeType>, GridTemplateColumnsProps<ThemeType>, GridTemplateRowsProps<ThemeType>, GridTemplateAreasProps<ThemeType>, GridAreaProps<ThemeType> {}
332
362
  interface BoxShadowProps<ThemeType extends Theme = RequiredTheme> {
333
363
  boxShadow?: ResponsiveValue<CSS.Property.BoxShadow | string | number, ThemeType>;
@@ -346,4 +376,4 @@ interface ColorStyleProps<ThemeType extends Theme = RequiredTheme> {
346
376
  colors?: ResponsiveValue<string, ThemeType>;
347
377
  }
348
378
  //#endregion
349
- export { JustifyContentProps as $, FlexProps as A, TextDecorationLineProps as At, GridAutoColumnsProps as B, TopProps as Bt, ColorProps as C, SizeProps as Ct, FlexBasisProps as D, TextAlignProps as Dt, DisplayProps as E, TextAlignLastProps as Et, FontSizeProps as F, TextShadowProps as Ft, GridGapProps as G, ZIndexProps as Gt, GridAutoRowsProps as H, VerticalAlignProps as Ht, FontStyleProps as I, TextStyleProps as It, GridRowProps as J, GridProps as K, FontWeightProps as L, TextTransformProps as Lt, FlexWrapProps as M, TextDecorationStyleProps as Mt, FlexboxProps as N, TextDecorationThicknessProps as Nt, FlexDirectionProps as O, TextColorProps as Ot, FontFamilyProps as P, TextOverflowProps as Pt, HeightProps as Q, GapProps as R, Theme as Rt, ButtonStyleProps as S, ShadowProps as St, ColumnGapProps as T, TLengthStyledSystem as Tt, GridColumnGapProps as U, WhiteSpaceProps as Ut, GridAutoFlowProps as V, TypographyProps as Vt, GridColumnProps as W, WidthProps as Wt, GridTemplateColumnsProps as X, GridTemplateAreasProps as Y, GridTemplateRowsProps as Z, BorderStyleProps as _, RequiredTheme as _t, BackgroundColorProps as a, LineHeightProps as at, BottomProps as b, RowGapProps as bt, BackgroundProps as c, MaxWidthProps as ct, BorderBottomProps as d, ObjectOrArray as dt, JustifyItemsProps as et, BorderColorProps as f, OpacityProps as ft, BorderRightProps as g, PositionProps as gt, BorderRadiusProps as h, PaddingProps as ht, AspectRatioProps as i, LetterSpacingProps as it, FlexShrinkProps as j, TextDecorationProps as jt, FlexGrowProps as k, TextDecorationColorProps as kt, BackgroundRepeatProps as l, MinHeightProps as lt, BorderProps as m, OverflowProps as mt, AlignItemsProps as n, LayoutProps as nt, BackgroundImageProps as o, MarginProps as ot, BorderLeftProps as p, OrderProps as pt, GridRowGapProps as q, AlignSelfProps as r, LeftProps as rt, BackgroundPositionProps as s, MaxHeightProps as st, AlignContentProps as t, JustifySelfProps as tt, BackgroundSizeProps as u, MinWidthProps as ut, BorderTopProps as v, ResponsiveValue as vt, ColorStyleProps as w, SpaceProps as wt, BoxShadowProps as x, Scale as xt, BorderWidthProps as y, RightProps as yt, GridAreaProps as z, ThemeValue as zt };
379
+ export { GridTemplateRowsProps as $, FlexDirectionProps as A, TextAlignLastProps as At, GapProps as B, TextStyleProps as Bt, ButtonStyleProps as C, RowGapProps as Ct, ContainerProps as D, SpaceProps as Dt, ColumnGapProps as E, SizeProps as Et, FlexboxProps as F, TextDecorationProps as Ft, GridColumnGapProps as G, TypographyProps as Gt, GridAutoColumnsProps as H, Theme as Ht, FontFamilyProps as I, TextDecorationStyleProps as It, GridProps as J, WidthProps as Jt, GridColumnProps as K, VerticalAlignProps as Kt, FontSizeProps as L, TextDecorationThicknessProps as Lt, FlexProps as M, TextColorProps as Mt, FlexShrinkProps as N, TextDecorationColorProps as Nt, DisplayProps as O, SpanProps as Ot, FlexWrapProps as P, TextDecorationLineProps as Pt, GridTemplateColumnsProps as Q, FontStyleProps as R, TextOverflowProps as Rt, BreakpointName as S, RightProps as St, ColorStyleProps as T, ShadowProps as Tt, GridAutoFlowProps as U, ThemeValue as Ut, GridAreaProps as V, TextTransformProps as Vt, GridAutoRowsProps as W, TopProps as Wt, GridRowProps as X, GridRowGapProps as Y, ZIndexProps as Yt, GridTemplateAreasProps as Z, BorderStyleProps as _, OverflowProps as _t, BackgroundColorProps as a, LayoutProps as at, BottomProps as b, RequiredTheme as bt, BackgroundProps as c, LineHeightProps as ct, BorderBottomProps as d, MaxWidthProps as dt, HeightProps as et, BorderColorProps as f, MinHeightProps as ft, BorderRightProps as g, OrderProps as gt, BorderRadiusProps as h, OpacityProps as ht, AspectRatioProps as i, LayoutGridProps as it, FlexGrowProps as j, TextAlignProps as jt, FlexBasisProps as k, TLengthStyledSystem as kt, BackgroundRepeatProps as l, MarginProps as lt, BorderProps as m, ObjectOrArray as mt, AlignItemsProps as n, JustifyItemsProps as nt, BackgroundImageProps as o, LeftProps as ot, BorderLeftProps as p, MinWidthProps as pt, GridGapProps as q, WhiteSpaceProps as qt, AlignSelfProps as r, JustifySelfProps as rt, BackgroundPositionProps as s, LetterSpacingProps as st, AlignContentProps as t, JustifyContentProps as tt, BackgroundSizeProps as u, MaxHeightProps as ut, BorderTopProps as v, PaddingProps as vt, ColorProps as w, Scale as wt, BoxShadowProps as x, ResponsiveValue as xt, BorderWidthProps as y, PositionProps as yt, FontWeightProps as z, TextShadowProps as zt };
@@ -1,3 +1,3 @@
1
- import { Dt as TextAlignProps, F as FontSizeProps, I as FontStyleProps, L as FontWeightProps, P as FontFamilyProps, Pt as TextOverflowProps, Ut as WhiteSpaceProps, Vt as TypographyProps, at as LineHeightProps, it as LetterSpacingProps } from "./types-B0SNbm6V.cjs";
2
- import { t as typography } from "./index-UGE-V15i.cjs";
1
+ import { Gt as TypographyProps, I as FontFamilyProps, L as FontSizeProps, R as FontStyleProps, Rt as TextOverflowProps, ct as LineHeightProps, jt as TextAlignProps, qt as WhiteSpaceProps, st as LetterSpacingProps, z as FontWeightProps } from "./types-C4ogGxde.cjs";
2
+ import { t as typography } from "./index-Bq7LA-5J.cjs";
3
3
  export { type FontFamilyProps, type FontSizeProps, type FontStyleProps, type FontWeightProps, type LetterSpacingProps, type LineHeightProps, type TextAlignProps, type TextOverflowProps, type TypographyProps, type WhiteSpaceProps, typography as default, typography };
@@ -1,3 +1,3 @@
1
- import { Dt as TextAlignProps, F as FontSizeProps, I as FontStyleProps, L as FontWeightProps, P as FontFamilyProps, Pt as TextOverflowProps, Ut as WhiteSpaceProps, Vt as TypographyProps, at as LineHeightProps, it as LetterSpacingProps } from "./types-B0SNbm6V.mjs";
2
- import { t as typography } from "./index-BReBwT6c.mjs";
1
+ import { Gt as TypographyProps, I as FontFamilyProps, L as FontSizeProps, R as FontStyleProps, Rt as TextOverflowProps, ct as LineHeightProps, jt as TextAlignProps, qt as WhiteSpaceProps, st as LetterSpacingProps, z as FontWeightProps } from "./types-C4ogGxde.mjs";
2
+ import { t as typography } from "./index-CkSwZa-Z.mjs";
3
3
  export { type FontFamilyProps, type FontSizeProps, type FontStyleProps, type FontWeightProps, type LetterSpacingProps, type LineHeightProps, type TextAlignProps, type TextOverflowProps, type TypographyProps, type WhiteSpaceProps, typography as default, typography };
@@ -1,5 +1,5 @@
1
1
  const require_core = require("./core.cjs");
2
- const require_css = require("./css-BnnO16Cw.cjs");
2
+ const require_css = require("./css-D1zAlDVz.cjs");
3
3
  //#region src/variant/variant.ts
4
4
  const variant = (options = {}) => {
5
5
  const { scale, prop = "variant", variants = {}, key } = options;
@@ -1,5 +1,5 @@
1
1
  import { createParser, get } from "./core.mjs";
2
- import { t as css } from "./css-CunBKyMl.mjs";
2
+ import { t as css } from "./css-Ba4jdXOq.mjs";
3
3
  //#region src/variant/variant.ts
4
4
  const variant = (options = {}) => {
5
5
  const { scale, prop = "variant", variants = {}, key } = options;
package/dist/variant.cjs CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_variant = require("./variant-DdSForfI.cjs");
5
+ const require_variant = require("./variant-BSPTyRcQ.cjs");
6
6
  exports.buttonStyle = require_variant.buttonStyle;
7
7
  exports.colorStyle = require_variant.colorStyle;
8
8
  exports.default = require_variant.variant;
@@ -1,3 +1,3 @@
1
- import { It as TextStyleProps, S as ButtonStyleProps, w as ColorStyleProps } from "./types-B0SNbm6V.cjs";
2
- import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-DzcXmzdT.cjs";
1
+ import { Bt as TextStyleProps, C as ButtonStyleProps, T as ColorStyleProps } from "./types-C4ogGxde.cjs";
2
+ import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-BgcnUGws.cjs";
3
3
  export { type ButtonStyleProps, type ColorStyleProps, type TextStyleProps, VariantArgs, VariantOptions, buttonStyle, colorStyle, variant as default, variant, textStyle };
@@ -1,3 +1,3 @@
1
- import { It as TextStyleProps, S as ButtonStyleProps, w as ColorStyleProps } from "./types-B0SNbm6V.mjs";
2
- import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-BKofCDzL.mjs";
1
+ import { Bt as TextStyleProps, C as ButtonStyleProps, T as ColorStyleProps } from "./types-C4ogGxde.mjs";
2
+ import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-Cow4kTN2.mjs";
3
3
  export { type ButtonStyleProps, type ColorStyleProps, type TextStyleProps, VariantArgs, VariantOptions, buttonStyle, colorStyle, variant as default, variant, textStyle };
package/dist/variant.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-DfRW-ZJe.mjs";
1
+ import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-D1u5rSqm.mjs";
2
2
  export { buttonStyle, colorStyle, variant as default, variant, textStyle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soroush.tech/styled-system",
3
- "version": "5.9.0-alpha.0",
3
+ "version": "6.0.0-alpha.1",
4
4
  "description": "Maintained, first-class-TypeScript rewrite of styled-system - responsive, theme-aware style props for CSS-in-JS. Drop-in replacement for styled-system v5.",
5
5
  "keywords": [
6
6
  "styled-system",
@@ -1,41 +0,0 @@
1
- import { system } from "./core.mjs";
2
- //#region src/grid/grid.ts
3
- const spaceScale = [
4
- 0,
5
- 4,
6
- 8,
7
- 16,
8
- 32,
9
- 64,
10
- 128,
11
- 256,
12
- 512
13
- ];
14
- const grid = system({
15
- gridGap: {
16
- property: "gridGap",
17
- scale: "space",
18
- defaultScale: spaceScale
19
- },
20
- gridColumnGap: {
21
- property: "gridColumnGap",
22
- scale: "space",
23
- defaultScale: spaceScale
24
- },
25
- gridRowGap: {
26
- property: "gridRowGap",
27
- scale: "space",
28
- defaultScale: spaceScale
29
- },
30
- gridColumn: true,
31
- gridRow: true,
32
- gridAutoFlow: true,
33
- gridAutoColumns: true,
34
- gridAutoRows: true,
35
- gridTemplateColumns: true,
36
- gridTemplateRows: true,
37
- gridTemplateAreas: true,
38
- gridArea: true
39
- });
40
- //#endregion
41
- export { grid as t };
@@ -1,47 +0,0 @@
1
- const require_core = require("./core.cjs");
2
- //#region src/grid/grid.ts
3
- const spaceScale = [
4
- 0,
5
- 4,
6
- 8,
7
- 16,
8
- 32,
9
- 64,
10
- 128,
11
- 256,
12
- 512
13
- ];
14
- const config = {
15
- gridGap: {
16
- property: "gridGap",
17
- scale: "space",
18
- defaultScale: spaceScale
19
- },
20
- gridColumnGap: {
21
- property: "gridColumnGap",
22
- scale: "space",
23
- defaultScale: spaceScale
24
- },
25
- gridRowGap: {
26
- property: "gridRowGap",
27
- scale: "space",
28
- defaultScale: spaceScale
29
- },
30
- gridColumn: true,
31
- gridRow: true,
32
- gridAutoFlow: true,
33
- gridAutoColumns: true,
34
- gridAutoRows: true,
35
- gridTemplateColumns: true,
36
- gridTemplateRows: true,
37
- gridTemplateAreas: true,
38
- gridArea: true
39
- };
40
- const grid = require_core.system(config);
41
- //#endregion
42
- Object.defineProperty(exports, "grid", {
43
- enumerable: true,
44
- get: function() {
45
- return grid;
46
- }
47
- });
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BYkO78Xl.cjs";
2
- import "./types-B0SNbm6V.cjs";
3
- //#region src/grid/grid.d.ts
4
- declare const grid: Parser;
5
- //#endregion
6
- export { grid as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BXP1-da3.mjs";
2
- import "./types-B0SNbm6V.mjs";
3
- //#region src/typography/typography.d.ts
4
- declare const typography: Parser;
5
- //#endregion
6
- export { typography as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BXP1-da3.mjs";
2
- import "./types-B0SNbm6V.mjs";
3
- //#region src/position/position.d.ts
4
- declare const position: Parser;
5
- //#endregion
6
- export { position as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BXP1-da3.mjs";
2
- import "./types-B0SNbm6V.mjs";
3
- //#region src/background/background.d.ts
4
- declare const background: Parser;
5
- //#endregion
6
- export { background as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BYkO78Xl.cjs";
2
- import "./types-B0SNbm6V.cjs";
3
- //#region src/border/border.d.ts
4
- declare const border: Parser;
5
- //#endregion
6
- export { border as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BYkO78Xl.cjs";
2
- import "./types-B0SNbm6V.cjs";
3
- //#region src/flexbox/flexbox.d.ts
4
- declare const flexbox: Parser;
5
- //#endregion
6
- export { flexbox as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BXP1-da3.mjs";
2
- import "./types-B0SNbm6V.mjs";
3
- //#region src/color/color.d.ts
4
- declare const color: Parser;
5
- //#endregion
6
- export { color as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BXP1-da3.mjs";
2
- import "./types-B0SNbm6V.mjs";
3
- //#region src/shadow/shadow.d.ts
4
- declare const shadow: Parser;
5
- //#endregion
6
- export { shadow as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BYkO78Xl.cjs";
2
- import "./types-B0SNbm6V.cjs";
3
- //#region src/color/color.d.ts
4
- declare const color: Parser;
5
- //#endregion
6
- export { color as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BYkO78Xl.cjs";
2
- import "./types-B0SNbm6V.cjs";
3
- //#region src/shadow/shadow.d.ts
4
- declare const shadow: Parser;
5
- //#endregion
6
- export { shadow as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BXP1-da3.mjs";
2
- import "./types-B0SNbm6V.mjs";
3
- //#region src/border/border.d.ts
4
- declare const border: Parser;
5
- //#endregion
6
- export { border as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BYkO78Xl.cjs";
2
- import "./types-B0SNbm6V.cjs";
3
- //#region src/layout/layout.d.ts
4
- declare const layout: Parser;
5
- //#endregion
6
- export { layout as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BXP1-da3.mjs";
2
- import "./types-B0SNbm6V.mjs";
3
- //#region src/grid/grid.d.ts
4
- declare const grid: Parser;
5
- //#endregion
6
- export { grid as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BXP1-da3.mjs";
2
- import "./types-B0SNbm6V.mjs";
3
- //#region src/flexbox/flexbox.d.ts
4
- declare const flexbox: Parser;
5
- //#endregion
6
- export { flexbox as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BYkO78Xl.cjs";
2
- import "./types-B0SNbm6V.cjs";
3
- //#region src/position/position.d.ts
4
- declare const position: Parser;
5
- //#endregion
6
- export { position as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BYkO78Xl.cjs";
2
- import "./types-B0SNbm6V.cjs";
3
- //#region src/background/background.d.ts
4
- declare const background: Parser;
5
- //#endregion
6
- export { background as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BYkO78Xl.cjs";
2
- import "./types-B0SNbm6V.cjs";
3
- //#region src/typography/typography.d.ts
4
- declare const typography: Parser;
5
- //#endregion
6
- export { typography as t };
@@ -1,6 +0,0 @@
1
- import { a as Parser } from "./index-BXP1-da3.mjs";
2
- import "./types-B0SNbm6V.mjs";
3
- //#region src/layout/layout.d.ts
4
- declare const layout: Parser;
5
- //#endregion
6
- export { layout as t };
@@ -1,18 +0,0 @@
1
- //#region src/core/media.ts
2
- const isLength = (value) => /^[\d.+-]|^(calc|min|max|clamp)\(/.test(value);
3
- /**
4
- * The `@media` rule for one breakpoint value. A length is a min-width (a number
5
- * gets `px`); a string starting with `@media` is used as written; anything else
6
- * is a media query list - a condition like `(600px <= width < 1200px)` or
7
- * `(orientation: landscape)`, or a media type - and follows `@media `.
8
- */
9
- const createMediaQuery = (value) => {
10
- if (typeof value === "number") return `@media screen and (min-width: ${value}px)`;
11
- if (value.startsWith("@media")) return value;
12
- if (isLength(value)) return `@media screen and (min-width: ${value})`;
13
- return `@media ${value}`;
14
- };
15
- /** Each breakpoint's `@media` rule, in declared order, keyed by its name (or array index). */
16
- const breakpointQueries = (breakpoints) => Object.entries(breakpoints).map(([key, value]) => [key, createMediaQuery(value)]);
17
- //#endregion
18
- export { createMediaQuery as n, breakpointQueries as t };
@@ -1,29 +0,0 @@
1
- //#region src/core/media.ts
2
- const isLength = (value) => /^[\d.+-]|^(calc|min|max|clamp)\(/.test(value);
3
- /**
4
- * The `@media` rule for one breakpoint value. A length is a min-width (a number
5
- * gets `px`); a string starting with `@media` is used as written; anything else
6
- * is a media query list - a condition like `(600px <= width < 1200px)` or
7
- * `(orientation: landscape)`, or a media type - and follows `@media `.
8
- */
9
- const createMediaQuery = (value) => {
10
- if (typeof value === "number") return `@media screen and (min-width: ${value}px)`;
11
- if (value.startsWith("@media")) return value;
12
- if (isLength(value)) return `@media screen and (min-width: ${value})`;
13
- return `@media ${value}`;
14
- };
15
- /** Each breakpoint's `@media` rule, in declared order, keyed by its name (or array index). */
16
- const breakpointQueries = (breakpoints) => Object.entries(breakpoints).map(([key, value]) => [key, createMediaQuery(value)]);
17
- //#endregion
18
- Object.defineProperty(exports, "breakpointQueries", {
19
- enumerable: true,
20
- get: function() {
21
- return breakpointQueries;
22
- }
23
- });
24
- Object.defineProperty(exports, "createMediaQuery", {
25
- enumerable: true,
26
- get: function() {
27
- return createMediaQuery;
28
- }
29
- });
@@ -1,14 +0,0 @@
1
- //#region src/core/media.d.ts
2
- /** `theme.breakpoints`: an ascending list, or named breakpoints in their declared order. */
3
- type Breakpoints = readonly (string | number)[] | Record<string, string | number>;
4
- /**
5
- * The `@media` rule for one breakpoint value. A length is a min-width (a number
6
- * gets `px`); a string starting with `@media` is used as written; anything else
7
- * is a media query list - a condition like `(600px <= width < 1200px)` or
8
- * `(orientation: landscape)`, or a media type - and follows `@media `.
9
- */
10
- declare const createMediaQuery: (value: string | number) => string;
11
- /** Each breakpoint's `@media` rule, in declared order, keyed by its name (or array index). */
12
- declare const breakpointQueries: (breakpoints: Breakpoints) => [string, string][];
13
- //#endregion
14
- export { breakpointQueries as n, createMediaQuery as r, Breakpoints as t };
@@ -1,14 +0,0 @@
1
- //#region src/core/media.d.ts
2
- /** `theme.breakpoints`: an ascending list, or named breakpoints in their declared order. */
3
- type Breakpoints = readonly (string | number)[] | Record<string, string | number>;
4
- /**
5
- * The `@media` rule for one breakpoint value. A length is a min-width (a number
6
- * gets `px`); a string starting with `@media` is used as written; anything else
7
- * is a media query list - a condition like `(600px <= width < 1200px)` or
8
- * `(orientation: landscape)`, or a media type - and follows `@media `.
9
- */
10
- declare const createMediaQuery: (value: string | number) => string;
11
- /** Each breakpoint's `@media` rule, in declared order, keyed by its name (or array index). */
12
- declare const breakpointQueries: (breakpoints: Breakpoints) => [string, string][];
13
- //#endregion
14
- export { breakpointQueries as n, createMediaQuery as r, Breakpoints as t };