@soroush.tech/styled-system 5.4.0 → 5.5.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 CHANGED
@@ -117,9 +117,6 @@ import shouldForwardProp, {
117
117
  } from '@soroush.tech/styled-system/should-forward-prop'
118
118
  ```
119
119
 
120
- `themeGet` is also re-exported from the package root (as both a named and the default
121
- export), so `import { themeGet } from '@soroush.tech/styled-system'` works too.
122
-
123
120
  ## Drop-in via alias
124
121
 
125
122
  Existing `styled-system` users can swap with a package-manager alias — no code changes:
@@ -130,9 +127,19 @@ Existing `styled-system` users can swap with a package-manager alias — no code
130
127
  }
131
128
  ```
132
129
 
133
- Every `@styled-system/*` satellite maps 1:1 to the matching
134
- `@soroush.tech/styled-system/*` subpath — e.g. `@styled-system/should-forward-prop`,
135
- `@styled-system/prop-types`, `@styled-system/theme-get`, `@styled-system/css`.
130
+ The satellite `@styled-system/*` packages don't need separate aliases — import them as
131
+ subpaths off the aliased `styled-system` name, and they resolve through this package's
132
+ `exports`:
133
+
134
+ ```ts
135
+ import themeGet from 'styled-system/theme-get'
136
+ import propTypes from 'styled-system/prop-types'
137
+ import { css } from 'styled-system/css'
138
+ import shouldForwardProp from 'styled-system/should-forward-prop'
139
+ ```
140
+
141
+ Types resolve under both modern module resolution (`node16`/`nodenext`/`bundler`, via
142
+ `exports`) and classic `node` (via `typesVersions`).
136
143
 
137
144
  ## Documentation
138
145
 
package/dist/index.cjs CHANGED
@@ -1,7 +1,4 @@
1
- Object.defineProperties(exports, {
2
- __esModule: { value: true },
3
- [Symbol.toStringTag]: { value: "Module" }
4
- });
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
5
2
  const require_core = require("./core.cjs");
6
3
  const require_background = require("./background-wugr6cG7.cjs");
7
4
  const require_border = require("./border-UuT-fTpy.cjs");
@@ -14,7 +11,6 @@ const require_typography = require("./typography-DD_eWLLx.cjs");
14
11
  const require_space = require("./space-CAX_62yL.cjs");
15
12
  const require_shadow = require("./shadow-BrDnaQQl.cjs");
16
13
  const require_variant = require("./variant-C7vPzZHo.cjs");
17
- const require_theme_get = require("./theme-get-D0fH7Jrd.cjs");
18
14
  //#region src/style/style.ts
19
15
  const style = ({ prop, cssProperty, alias, key, transformValue, scale, properties }) => {
20
16
  const config = {};
@@ -126,7 +122,6 @@ exports.colorStyle = require_variant.colorStyle;
126
122
  exports.compose = require_core.compose;
127
123
  exports.createParser = require_core.createParser;
128
124
  exports.createStyleFunction = require_core.createStyleFunction;
129
- exports.default = require_theme_get.themeGet;
130
125
  exports.display = display;
131
126
  exports.flex = flex;
132
127
  exports.flexBasis = flexBasis;
@@ -182,7 +177,6 @@ exports.system = require_core.system;
182
177
  exports.textAlign = textAlign;
183
178
  exports.textShadow = require_shadow.shadow;
184
179
  exports.textStyle = require_variant.textStyle;
185
- exports.themeGet = require_theme_get.themeGet;
186
180
  exports.top = top;
187
181
  exports.typography = require_typography.typography;
188
182
  exports.variant = require_variant.variant;
package/dist/index.d.cts CHANGED
@@ -11,7 +11,6 @@ import { t as typography } from "./index-BrXslH97.cjs";
11
11
  import { t as position } from "./index-DS-HZ740.cjs";
12
12
  import { t as shadow } from "./index-CvbdNFVK.cjs";
13
13
  import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle } from "./index-5FNmSnEI.cjs";
14
- import { t as themeGet } from "./index-CTguR0fU.cjs";
15
14
 
16
15
  //#region src/style/style.d.ts
17
16
  interface StyleOptions {
@@ -97,4 +96,4 @@ declare const right: Parser;
97
96
  declare const bottom: Parser;
98
97
  declare const left: Parser;
99
98
  //#endregion
100
- export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, themeGet as default, themeGet, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
99
+ export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
package/dist/index.d.mts CHANGED
@@ -11,7 +11,6 @@ import { t as typography } from "./index-DzPnzx9p.mjs";
11
11
  import { t as position } from "./index-Cq-vX0It.mjs";
12
12
  import { t as shadow } from "./index-F79chYlR.mjs";
13
13
  import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle } from "./index-CeQ5ox80.mjs";
14
- import { t as themeGet } from "./index-C_ikENGU.mjs";
15
14
 
16
15
  //#region src/style/style.d.ts
17
16
  interface StyleOptions {
@@ -97,4 +96,4 @@ declare const right: Parser;
97
96
  declare const bottom: Parser;
98
97
  declare const left: Parser;
99
98
  //#endregion
100
- export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, themeGet as default, themeGet, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
99
+ export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
package/dist/index.mjs CHANGED
@@ -10,7 +10,6 @@ import { t as typography } from "./typography-CptBXSy0.mjs";
10
10
  import { n as padding, r as space, t as margin } from "./space-DEf9-0r9.mjs";
11
11
  import { t as shadow } from "./shadow-Bp7lx_41.mjs";
12
12
  import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-DQA9pqwW.mjs";
13
- import { t as themeGet } from "./theme-get-CwPt9eDy.mjs";
14
13
  //#region src/style/style.ts
15
14
  const style = ({ prop, cssProperty, alias, key, transformValue, scale, properties }) => {
16
15
  const config = {};
@@ -96,4 +95,4 @@ const right = positionFns.right;
96
95
  const bottom = positionFns.bottom;
97
96
  const left = positionFns.left;
98
97
  //#endregion
99
- export { alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, themeGet as default, themeGet, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
98
+ export { alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
@@ -2,6 +2,9 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_theme_get = require("./theme-get-D0fH7Jrd.cjs");
6
- exports.default = require_theme_get.themeGet;
7
- exports.themeGet = require_theme_get.themeGet;
5
+ const require_core = require("./core.cjs");
6
+ //#region src/theme-get/theme-get.ts
7
+ const themeGet = (path, fallback = null) => (props) => require_core.get(props.theme, path, fallback);
8
+ //#endregion
9
+ exports.default = themeGet;
10
+ exports.themeGet = themeGet;
@@ -1,2 +1,6 @@
1
- import { t as themeGet } from "./index-CTguR0fU.cjs";
1
+ import { a as Props } from "./index-C6pWum7i.cjs";
2
+
3
+ //#region src/theme-get/theme-get.d.ts
4
+ declare const themeGet: (path: string, fallback?: unknown) => (props: Props) => unknown;
5
+ //#endregion
2
6
  export { themeGet as default, themeGet };
@@ -1,2 +1,6 @@
1
- import { t as themeGet } from "./index-C_ikENGU.mjs";
1
+ import { a as Props } from "./index-C6pWum7i.mjs";
2
+
3
+ //#region src/theme-get/theme-get.d.ts
4
+ declare const themeGet: (path: string, fallback?: unknown) => (props: Props) => unknown;
5
+ //#endregion
2
6
  export { themeGet as default, themeGet };
@@ -1,2 +1,5 @@
1
- import { t as themeGet } from "./theme-get-CwPt9eDy.mjs";
1
+ import { get } from "./core.mjs";
2
+ //#region src/theme-get/theme-get.ts
3
+ const themeGet = (path, fallback = null) => (props) => get(props.theme, path, fallback);
4
+ //#endregion
2
5
  export { themeGet as default, themeGet };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soroush.tech/styled-system",
3
- "version": "5.4.0",
3
+ "version": "5.5.0",
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",
@@ -248,5 +248,60 @@
248
248
  "test:coverage": "vitest run --coverage"
249
249
  },
250
250
  "main": "./dist/index.cjs",
251
- "module": "./dist/index.mjs"
251
+ "module": "./dist/index.mjs",
252
+ "typesVersions": {
253
+ "*": {
254
+ "core": [
255
+ "./dist/core.d.cts"
256
+ ],
257
+ "space": [
258
+ "./dist/space.d.cts"
259
+ ],
260
+ "color": [
261
+ "./dist/color.d.cts"
262
+ ],
263
+ "layout": [
264
+ "./dist/layout.d.cts"
265
+ ],
266
+ "typography": [
267
+ "./dist/typography.d.cts"
268
+ ],
269
+ "flexbox": [
270
+ "./dist/flexbox.d.cts"
271
+ ],
272
+ "grid": [
273
+ "./dist/grid.d.cts"
274
+ ],
275
+ "background": [
276
+ "./dist/background.d.cts"
277
+ ],
278
+ "border": [
279
+ "./dist/border.d.cts"
280
+ ],
281
+ "position": [
282
+ "./dist/position.d.cts"
283
+ ],
284
+ "shadow": [
285
+ "./dist/shadow.d.cts"
286
+ ],
287
+ "variant": [
288
+ "./dist/variant.d.cts"
289
+ ],
290
+ "css": [
291
+ "./dist/css.d.cts"
292
+ ],
293
+ "theme-get": [
294
+ "./dist/theme-get.d.cts"
295
+ ],
296
+ "props": [
297
+ "./dist/props.d.cts"
298
+ ],
299
+ "prop-types": [
300
+ "./dist/prop-types.d.cts"
301
+ ],
302
+ "should-forward-prop": [
303
+ "./dist/should-forward-prop.d.cts"
304
+ ]
305
+ }
306
+ }
252
307
  }
@@ -1,6 +0,0 @@
1
- import { a as Props } from "./index-C6pWum7i.cjs";
2
-
3
- //#region src/theme-get/theme-get.d.ts
4
- declare const themeGet: (path: string, fallback?: unknown) => (props: Props) => unknown;
5
- //#endregion
6
- export { themeGet as t };
@@ -1,6 +0,0 @@
1
- import { a as Props } from "./index-C6pWum7i.mjs";
2
-
3
- //#region src/theme-get/theme-get.d.ts
4
- declare const themeGet: (path: string, fallback?: unknown) => (props: Props) => unknown;
5
- //#endregion
6
- export { themeGet as t };
@@ -1,5 +0,0 @@
1
- import { get } from "./core.mjs";
2
- //#region src/theme-get/theme-get.ts
3
- const themeGet = (path, fallback = null) => (props) => get(props.theme, path, fallback);
4
- //#endregion
5
- export { themeGet as t };
@@ -1,10 +0,0 @@
1
- const require_core = require("./core.cjs");
2
- //#region src/theme-get/theme-get.ts
3
- const themeGet = (path, fallback = null) => (props) => require_core.get(props.theme, path, fallback);
4
- //#endregion
5
- Object.defineProperty(exports, "themeGet", {
6
- enumerable: true,
7
- get: function() {
8
- return themeGet;
9
- }
10
- });