@soroush.tech/styled-system 5.1.6
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/LICENSE +26 -0
- package/README.md +150 -0
- package/dist/background-B-jql3jb.mjs +16 -0
- package/dist/background-wugr6cG7.cjs +21 -0
- package/dist/background.cjs +7 -0
- package/dist/background.d.cts +2 -0
- package/dist/background.d.mts +2 -0
- package/dist/background.mjs +2 -0
- package/dist/border-Dder4Dhp.mjs +131 -0
- package/dist/border-UuT-fTpy.cjs +136 -0
- package/dist/border.cjs +7 -0
- package/dist/border.d.cts +2 -0
- package/dist/border.d.mts +2 -0
- package/dist/border.mjs +2 -0
- package/dist/color-BNs17Gw-.cjs +22 -0
- package/dist/color-CGmMe8yP.mjs +17 -0
- package/dist/color.cjs +7 -0
- package/dist/color.d.cts +2 -0
- package/dist/color.d.mts +2 -0
- package/dist/color.mjs +2 -0
- package/dist/core.cjs +144 -0
- package/dist/core.d.cts +2 -0
- package/dist/core.d.mts +2 -0
- package/dist/core.mjs +138 -0
- package/dist/css-nzeM_Xnf.cjs +231 -0
- package/dist/css-rLZ9Oeye.mjs +214 -0
- package/dist/css.cjs +9 -0
- package/dist/css.d.cts +12 -0
- package/dist/css.d.mts +12 -0
- package/dist/css.mjs +2 -0
- package/dist/flexbox-CFkO6PrP.cjs +22 -0
- package/dist/flexbox-XQnlnfa4.mjs +18 -0
- package/dist/flexbox.cjs +7 -0
- package/dist/flexbox.d.cts +2 -0
- package/dist/flexbox.d.mts +2 -0
- package/dist/flexbox.mjs +2 -0
- package/dist/grid-Bpk-QjhF.mjs +41 -0
- package/dist/grid-CpvRIng4.cjs +47 -0
- package/dist/grid.cjs +7 -0
- package/dist/grid.d.cts +2 -0
- package/dist/grid.d.mts +2 -0
- package/dist/grid.mjs +2 -0
- package/dist/index-50KH4Mo7.d.cts +8 -0
- package/dist/index-8PSQ0vkP.d.cts +15 -0
- package/dist/index-9ZhIewzy.d.mts +6 -0
- package/dist/index-BBTVE4EM.d.mts +15 -0
- package/dist/index-BS9GuhQN.d.cts +6 -0
- package/dist/index-BoMacn6F.d.cts +6 -0
- package/dist/index-Bx7IxKu-.d.mts +6 -0
- package/dist/index-C13YRARN.d.mts +6 -0
- package/dist/index-C3_fScux.d.mts +8 -0
- package/dist/index-CX2jWEGJ.d.mts +6 -0
- package/dist/index-CarHCWLQ.d.cts +6 -0
- package/dist/index-Ce09s0FQ.d.cts +6 -0
- package/dist/index-CrUx2vIP.d.mts +6 -0
- package/dist/index-CsS_gcI9.d.mts +6 -0
- package/dist/index-D3t1Lyte.d.mts +6 -0
- package/dist/index-D8EyRZ5p.d.cts +62 -0
- package/dist/index-D8EyRZ5p.d.mts +62 -0
- package/dist/index-DPWkvooj.d.mts +6 -0
- package/dist/index-DVR6hZCd.d.cts +6 -0
- package/dist/index-DZaFk5pk.d.cts +6 -0
- package/dist/index-J3PebPto.d.mts +6 -0
- package/dist/index-Nc-10syf.d.cts +6 -0
- package/dist/index-j3E1mxCg.d.cts +6 -0
- package/dist/index-z86wOHTb.d.cts +6 -0
- package/dist/index.cjs +185 -0
- package/dist/index.d.cts +281 -0
- package/dist/index.d.mts +281 -0
- package/dist/index.mjs +98 -0
- package/dist/layout-B1-2dfQ9.cjs +48 -0
- package/dist/layout-TqD8vcEl.mjs +42 -0
- package/dist/layout.cjs +7 -0
- package/dist/layout.d.cts +2 -0
- package/dist/layout.d.mts +2 -0
- package/dist/layout.mjs +2 -0
- package/dist/position-jf6VlRyR.mjs +42 -0
- package/dist/position-zWvCE4hD.cjs +48 -0
- package/dist/position.cjs +7 -0
- package/dist/position.d.cts +2 -0
- package/dist/position.d.mts +2 -0
- package/dist/position.mjs +2 -0
- package/dist/presets-DjaCx0dm.mjs +16 -0
- package/dist/presets-DlUVOAIL.cjs +21 -0
- package/dist/props.cjs +23 -0
- package/dist/props.d.cts +5 -0
- package/dist/props.d.mts +5 -0
- package/dist/props.mjs +21 -0
- package/dist/shadow-Bp7lx_41.mjs +14 -0
- package/dist/shadow-BrDnaQQl.cjs +18 -0
- package/dist/shadow.cjs +7 -0
- package/dist/shadow.d.cts +2 -0
- package/dist/shadow.d.mts +2 -0
- package/dist/shadow.mjs +2 -0
- package/dist/should-forward-prop.cjs +47 -0
- package/dist/should-forward-prop.d.cts +6 -0
- package/dist/should-forward-prop.d.mts +6 -0
- package/dist/should-forward-prop.mjs +18 -0
- package/dist/space-C14uiNpw.cjs +139 -0
- package/dist/space-CNrX-zoo.mjs +122 -0
- package/dist/space.cjs +9 -0
- package/dist/space.d.cts +2 -0
- package/dist/space.d.mts +2 -0
- package/dist/space.mjs +2 -0
- package/dist/theme-get.cjs +10 -0
- package/dist/theme-get.d.cts +6 -0
- package/dist/theme-get.d.mts +6 -0
- package/dist/theme-get.mjs +5 -0
- package/dist/typography-CptBXSy0.mjs +38 -0
- package/dist/typography-DD_eWLLx.cjs +42 -0
- package/dist/typography.cjs +7 -0
- package/dist/typography.d.cts +2 -0
- package/dist/typography.d.mts +2 -0
- package/dist/typography.mjs +2 -0
- package/dist/variant-CWUfe1Cc.mjs +22 -0
- package/dist/variant-ChsBzwrI.cjs +45 -0
- package/dist/variant.cjs +10 -0
- package/dist/variant.d.cts +2 -0
- package/dist/variant.d.mts +2 -0
- package/dist/variant.mjs +2 -0
- package/package.json +255 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Masoud Soroush <https://soroush.tech>
|
|
4
|
+
Copyright (c) 2017-2021 Brent Jackson
|
|
5
|
+
|
|
6
|
+
This package is a TypeScript rewrite of styled-system (https://github.com/jxnblk/styled-system),
|
|
7
|
+
originally created by Brent Jackson and released under the MIT License. The original copyright
|
|
8
|
+
notice is retained above.
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# @soroush.tech/styled-system
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
4
|
+
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
5
|
+
[](https://app.codecov.io/gh/soroush-tech/soroush.tech?flags%5B0%5D=styled-system)
|
|
6
|
+
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
7
|
+
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
8
|
+
[](./LICENSE)
|
|
9
|
+
|
|
10
|
+
A maintained, first-class-TypeScript rewrite of [styled-system](https://github.com/jxnblk/styled-system) v5 — responsive, theme-aware style props for CSS-in-JS.
|
|
11
|
+
|
|
12
|
+
It is a **drop-in replacement** for the `styled-system` runtime: the root export surface matches upstream verbatim, and the package ships its own types (replacing `@types/styled-system`).
|
|
13
|
+
|
|
14
|
+
## Features
|
|
15
|
+
|
|
16
|
+
- Add style props that hook into your own theme
|
|
17
|
+
- Quickly set responsive `font-size`, `margin`, `padding`, `width`, and more with props
|
|
18
|
+
- Influenced by constraint-based design-system principles
|
|
19
|
+
- Typographic scale, and a spacing scale for `margin` and `padding`
|
|
20
|
+
- Works with any color palette
|
|
21
|
+
- Works with most CSS-in-JS libraries, including [Emotion](https://emotion.sh) and [styled-components](https://styled-components.com)
|
|
22
|
+
- First-class TypeScript types — theme-scale-aware props, replacing `@types/styled-system`
|
|
23
|
+
|
|
24
|
+
## Install
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
# npm
|
|
28
|
+
npm install @soroush.tech/styled-system
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
# pnpm
|
|
33
|
+
pnpm add @soroush.tech/styled-system
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
# yarn
|
|
38
|
+
yarn add @soroush.tech/styled-system
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`@emotion/is-prop-valid` (`^1.4.0`) is a peer dependency used only by the
|
|
42
|
+
[`should-forward-prop`](#subpath-imports) entry — install it if you import that subpath.
|
|
43
|
+
You bring your own CSS-in-JS library (Emotion, styled-components, …); the core carries
|
|
44
|
+
neither at runtime.
|
|
45
|
+
|
|
46
|
+
## Usage
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
// Example uses Emotion, but styled-system works with most other CSS-in-JS libraries as well
|
|
50
|
+
import styled from '@emotion/styled'
|
|
51
|
+
import { space, layout, typography, color } from '@soroush.tech/styled-system'
|
|
52
|
+
|
|
53
|
+
// Add styled-system functions to your component
|
|
54
|
+
const Box = styled.div`
|
|
55
|
+
${space}
|
|
56
|
+
${layout}
|
|
57
|
+
${typography}
|
|
58
|
+
${color}
|
|
59
|
+
`
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Each style function exposes its own set of component props that handle styles based on values defined in a theme.
|
|
63
|
+
|
|
64
|
+
```tsx
|
|
65
|
+
// width: 50%
|
|
66
|
+
<Box width={1 / 2} />
|
|
67
|
+
|
|
68
|
+
// font-size: 20px (theme.fontSizes[4])
|
|
69
|
+
<Box fontSize={4} />
|
|
70
|
+
|
|
71
|
+
// margin: 16px (theme.space[2])
|
|
72
|
+
<Box m={2} />
|
|
73
|
+
|
|
74
|
+
// padding: 32px (theme.space[3])
|
|
75
|
+
<Box p={3} />
|
|
76
|
+
|
|
77
|
+
// color
|
|
78
|
+
<Box color="tomato" />
|
|
79
|
+
|
|
80
|
+
// color: #333 (theme.colors.gray[0])
|
|
81
|
+
<Box color="gray.0" />
|
|
82
|
+
|
|
83
|
+
// background-color
|
|
84
|
+
<Box bg="tomato" />
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Responsive style props
|
|
88
|
+
|
|
89
|
+
Set responsive `width`, `margin`, `padding`, `font-size`, and other properties with a shorthand array syntax. See [Responsive Styles](./docs/responsive-styles.md).
|
|
90
|
+
|
|
91
|
+
```tsx
|
|
92
|
+
// responsive width
|
|
93
|
+
<Box width={[1, 1 / 2, 1 / 4]} />
|
|
94
|
+
|
|
95
|
+
// responsive font-size
|
|
96
|
+
<Box fontSize={[2, 3, 4]} />
|
|
97
|
+
|
|
98
|
+
// responsive margin
|
|
99
|
+
<Box m={[1, 2, 3]} />
|
|
100
|
+
|
|
101
|
+
// responsive padding
|
|
102
|
+
<Box p={[1, 2, 3]} />
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Subpath imports
|
|
106
|
+
|
|
107
|
+
Subpaths mirror the original `@styled-system/*` packages:
|
|
108
|
+
|
|
109
|
+
```ts
|
|
110
|
+
import { css } from '@soroush.tech/styled-system/css'
|
|
111
|
+
import { themeGet } from '@soroush.tech/styled-system/theme-get'
|
|
112
|
+
import { pick, omit } from '@soroush.tech/styled-system/props'
|
|
113
|
+
import shouldForwardProp, {
|
|
114
|
+
createShouldForwardProp,
|
|
115
|
+
props,
|
|
116
|
+
} from '@soroush.tech/styled-system/should-forward-prop'
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Drop-in via alias
|
|
120
|
+
|
|
121
|
+
Existing `styled-system` users can swap with a package-manager alias — no code changes:
|
|
122
|
+
|
|
123
|
+
```jsonc
|
|
124
|
+
"dependencies": {
|
|
125
|
+
"styled-system": "npm:@soroush.tech/styled-system@^5"
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
`@styled-system/should-forward-prop` maps to the
|
|
130
|
+
`@soroush.tech/styled-system/should-forward-prop` subpath.
|
|
131
|
+
|
|
132
|
+
## Documentation
|
|
133
|
+
|
|
134
|
+
Full docs live in [`docs/`](./docs/README.md):
|
|
135
|
+
|
|
136
|
+
- [Getting Started](https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system/docs/getting-started.md)
|
|
137
|
+
- [Responsive Styles](https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system/docs/responsive-styles.md)
|
|
138
|
+
- [How it Works](https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system/docs/how-it-works.md)
|
|
139
|
+
- [Custom Props](https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system/docs/custom-props.md)
|
|
140
|
+
- [Variants](https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system/docs/variants.md)
|
|
141
|
+
- [API](https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system/docs/api.md)
|
|
142
|
+
- [Reference Table](https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system/docs/table.md)
|
|
143
|
+
- [TypeScript](https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system/docs/typescript.md)
|
|
144
|
+
- [Guides](https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system/docs/guides/index.md)
|
|
145
|
+
|
|
146
|
+
Runnable demos live in [`examples/styled-system/`](../../examples/styled-system).
|
|
147
|
+
|
|
148
|
+
## License
|
|
149
|
+
|
|
150
|
+
MIT — a rewrite of styled-system (© 2017–2021 Brent Jackson), see [`LICENSE`](./LICENSE).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { system } from "./core.mjs";
|
|
2
|
+
//#region src/background/background.ts
|
|
3
|
+
const config = {
|
|
4
|
+
background: true,
|
|
5
|
+
backgroundImage: true,
|
|
6
|
+
backgroundSize: true,
|
|
7
|
+
backgroundPosition: true,
|
|
8
|
+
backgroundRepeat: true
|
|
9
|
+
};
|
|
10
|
+
config.bgImage = config.backgroundImage;
|
|
11
|
+
config.bgSize = config.backgroundSize;
|
|
12
|
+
config.bgPosition = config.backgroundPosition;
|
|
13
|
+
config.bgRepeat = config.backgroundRepeat;
|
|
14
|
+
const background = system(config);
|
|
15
|
+
//#endregion
|
|
16
|
+
export { background as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_core = require("./core.cjs");
|
|
2
|
+
//#region src/background/background.ts
|
|
3
|
+
const config = {
|
|
4
|
+
background: true,
|
|
5
|
+
backgroundImage: true,
|
|
6
|
+
backgroundSize: true,
|
|
7
|
+
backgroundPosition: true,
|
|
8
|
+
backgroundRepeat: true
|
|
9
|
+
};
|
|
10
|
+
config.bgImage = config.backgroundImage;
|
|
11
|
+
config.bgSize = config.backgroundSize;
|
|
12
|
+
config.bgPosition = config.backgroundPosition;
|
|
13
|
+
config.bgRepeat = config.backgroundRepeat;
|
|
14
|
+
const background = require_core.system(config);
|
|
15
|
+
//#endregion
|
|
16
|
+
Object.defineProperty(exports, "background", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function() {
|
|
19
|
+
return background;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_background = require("./background-wugr6cG7.cjs");
|
|
6
|
+
exports.background = require_background.background;
|
|
7
|
+
exports.default = require_background.background;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { system } from "./core.mjs";
|
|
2
|
+
//#region src/border/border.ts
|
|
3
|
+
const config = {
|
|
4
|
+
border: {
|
|
5
|
+
property: "border",
|
|
6
|
+
scale: "borders"
|
|
7
|
+
},
|
|
8
|
+
borderWidth: {
|
|
9
|
+
property: "borderWidth",
|
|
10
|
+
scale: "borderWidths"
|
|
11
|
+
},
|
|
12
|
+
borderStyle: {
|
|
13
|
+
property: "borderStyle",
|
|
14
|
+
scale: "borderStyles"
|
|
15
|
+
},
|
|
16
|
+
borderColor: {
|
|
17
|
+
property: "borderColor",
|
|
18
|
+
scale: "colors"
|
|
19
|
+
},
|
|
20
|
+
borderRadius: {
|
|
21
|
+
property: "borderRadius",
|
|
22
|
+
scale: "radii"
|
|
23
|
+
},
|
|
24
|
+
borderTop: {
|
|
25
|
+
property: "borderTop",
|
|
26
|
+
scale: "borders"
|
|
27
|
+
},
|
|
28
|
+
borderTopLeftRadius: {
|
|
29
|
+
property: "borderTopLeftRadius",
|
|
30
|
+
scale: "radii"
|
|
31
|
+
},
|
|
32
|
+
borderTopRightRadius: {
|
|
33
|
+
property: "borderTopRightRadius",
|
|
34
|
+
scale: "radii"
|
|
35
|
+
},
|
|
36
|
+
borderRight: {
|
|
37
|
+
property: "borderRight",
|
|
38
|
+
scale: "borders"
|
|
39
|
+
},
|
|
40
|
+
borderBottom: {
|
|
41
|
+
property: "borderBottom",
|
|
42
|
+
scale: "borders"
|
|
43
|
+
},
|
|
44
|
+
borderBottomLeftRadius: {
|
|
45
|
+
property: "borderBottomLeftRadius",
|
|
46
|
+
scale: "radii"
|
|
47
|
+
},
|
|
48
|
+
borderBottomRightRadius: {
|
|
49
|
+
property: "borderBottomRightRadius",
|
|
50
|
+
scale: "radii"
|
|
51
|
+
},
|
|
52
|
+
borderLeft: {
|
|
53
|
+
property: "borderLeft",
|
|
54
|
+
scale: "borders"
|
|
55
|
+
},
|
|
56
|
+
borderX: {
|
|
57
|
+
properties: ["borderLeft", "borderRight"],
|
|
58
|
+
scale: "borders"
|
|
59
|
+
},
|
|
60
|
+
borderY: {
|
|
61
|
+
properties: ["borderTop", "borderBottom"],
|
|
62
|
+
scale: "borders"
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
config.borderTopWidth = {
|
|
66
|
+
property: "borderTopWidth",
|
|
67
|
+
scale: "borderWidths"
|
|
68
|
+
};
|
|
69
|
+
config.borderTopColor = {
|
|
70
|
+
property: "borderTopColor",
|
|
71
|
+
scale: "colors"
|
|
72
|
+
};
|
|
73
|
+
config.borderTopStyle = {
|
|
74
|
+
property: "borderTopStyle",
|
|
75
|
+
scale: "borderStyles"
|
|
76
|
+
};
|
|
77
|
+
config.borderTopLeftRadius = {
|
|
78
|
+
property: "borderTopLeftRadius",
|
|
79
|
+
scale: "radii"
|
|
80
|
+
};
|
|
81
|
+
config.borderTopRightRadius = {
|
|
82
|
+
property: "borderTopRightRadius",
|
|
83
|
+
scale: "radii"
|
|
84
|
+
};
|
|
85
|
+
config.borderBottomWidth = {
|
|
86
|
+
property: "borderBottomWidth",
|
|
87
|
+
scale: "borderWidths"
|
|
88
|
+
};
|
|
89
|
+
config.borderBottomColor = {
|
|
90
|
+
property: "borderBottomColor",
|
|
91
|
+
scale: "colors"
|
|
92
|
+
};
|
|
93
|
+
config.borderBottomStyle = {
|
|
94
|
+
property: "borderBottomStyle",
|
|
95
|
+
scale: "borderStyles"
|
|
96
|
+
};
|
|
97
|
+
config.borderBottomLeftRadius = {
|
|
98
|
+
property: "borderBottomLeftRadius",
|
|
99
|
+
scale: "radii"
|
|
100
|
+
};
|
|
101
|
+
config.borderBottomRightRadius = {
|
|
102
|
+
property: "borderBottomRightRadius",
|
|
103
|
+
scale: "radii"
|
|
104
|
+
};
|
|
105
|
+
config.borderLeftWidth = {
|
|
106
|
+
property: "borderLeftWidth",
|
|
107
|
+
scale: "borderWidths"
|
|
108
|
+
};
|
|
109
|
+
config.borderLeftColor = {
|
|
110
|
+
property: "borderLeftColor",
|
|
111
|
+
scale: "colors"
|
|
112
|
+
};
|
|
113
|
+
config.borderLeftStyle = {
|
|
114
|
+
property: "borderLeftStyle",
|
|
115
|
+
scale: "borderStyles"
|
|
116
|
+
};
|
|
117
|
+
config.borderRightWidth = {
|
|
118
|
+
property: "borderRightWidth",
|
|
119
|
+
scale: "borderWidths"
|
|
120
|
+
};
|
|
121
|
+
config.borderRightColor = {
|
|
122
|
+
property: "borderRightColor",
|
|
123
|
+
scale: "colors"
|
|
124
|
+
};
|
|
125
|
+
config.borderRightStyle = {
|
|
126
|
+
property: "borderRightStyle",
|
|
127
|
+
scale: "borderStyles"
|
|
128
|
+
};
|
|
129
|
+
const border = system(config);
|
|
130
|
+
//#endregion
|
|
131
|
+
export { border as t };
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
const require_core = require("./core.cjs");
|
|
2
|
+
//#region src/border/border.ts
|
|
3
|
+
const config = {
|
|
4
|
+
border: {
|
|
5
|
+
property: "border",
|
|
6
|
+
scale: "borders"
|
|
7
|
+
},
|
|
8
|
+
borderWidth: {
|
|
9
|
+
property: "borderWidth",
|
|
10
|
+
scale: "borderWidths"
|
|
11
|
+
},
|
|
12
|
+
borderStyle: {
|
|
13
|
+
property: "borderStyle",
|
|
14
|
+
scale: "borderStyles"
|
|
15
|
+
},
|
|
16
|
+
borderColor: {
|
|
17
|
+
property: "borderColor",
|
|
18
|
+
scale: "colors"
|
|
19
|
+
},
|
|
20
|
+
borderRadius: {
|
|
21
|
+
property: "borderRadius",
|
|
22
|
+
scale: "radii"
|
|
23
|
+
},
|
|
24
|
+
borderTop: {
|
|
25
|
+
property: "borderTop",
|
|
26
|
+
scale: "borders"
|
|
27
|
+
},
|
|
28
|
+
borderTopLeftRadius: {
|
|
29
|
+
property: "borderTopLeftRadius",
|
|
30
|
+
scale: "radii"
|
|
31
|
+
},
|
|
32
|
+
borderTopRightRadius: {
|
|
33
|
+
property: "borderTopRightRadius",
|
|
34
|
+
scale: "radii"
|
|
35
|
+
},
|
|
36
|
+
borderRight: {
|
|
37
|
+
property: "borderRight",
|
|
38
|
+
scale: "borders"
|
|
39
|
+
},
|
|
40
|
+
borderBottom: {
|
|
41
|
+
property: "borderBottom",
|
|
42
|
+
scale: "borders"
|
|
43
|
+
},
|
|
44
|
+
borderBottomLeftRadius: {
|
|
45
|
+
property: "borderBottomLeftRadius",
|
|
46
|
+
scale: "radii"
|
|
47
|
+
},
|
|
48
|
+
borderBottomRightRadius: {
|
|
49
|
+
property: "borderBottomRightRadius",
|
|
50
|
+
scale: "radii"
|
|
51
|
+
},
|
|
52
|
+
borderLeft: {
|
|
53
|
+
property: "borderLeft",
|
|
54
|
+
scale: "borders"
|
|
55
|
+
},
|
|
56
|
+
borderX: {
|
|
57
|
+
properties: ["borderLeft", "borderRight"],
|
|
58
|
+
scale: "borders"
|
|
59
|
+
},
|
|
60
|
+
borderY: {
|
|
61
|
+
properties: ["borderTop", "borderBottom"],
|
|
62
|
+
scale: "borders"
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
config.borderTopWidth = {
|
|
66
|
+
property: "borderTopWidth",
|
|
67
|
+
scale: "borderWidths"
|
|
68
|
+
};
|
|
69
|
+
config.borderTopColor = {
|
|
70
|
+
property: "borderTopColor",
|
|
71
|
+
scale: "colors"
|
|
72
|
+
};
|
|
73
|
+
config.borderTopStyle = {
|
|
74
|
+
property: "borderTopStyle",
|
|
75
|
+
scale: "borderStyles"
|
|
76
|
+
};
|
|
77
|
+
config.borderTopLeftRadius = {
|
|
78
|
+
property: "borderTopLeftRadius",
|
|
79
|
+
scale: "radii"
|
|
80
|
+
};
|
|
81
|
+
config.borderTopRightRadius = {
|
|
82
|
+
property: "borderTopRightRadius",
|
|
83
|
+
scale: "radii"
|
|
84
|
+
};
|
|
85
|
+
config.borderBottomWidth = {
|
|
86
|
+
property: "borderBottomWidth",
|
|
87
|
+
scale: "borderWidths"
|
|
88
|
+
};
|
|
89
|
+
config.borderBottomColor = {
|
|
90
|
+
property: "borderBottomColor",
|
|
91
|
+
scale: "colors"
|
|
92
|
+
};
|
|
93
|
+
config.borderBottomStyle = {
|
|
94
|
+
property: "borderBottomStyle",
|
|
95
|
+
scale: "borderStyles"
|
|
96
|
+
};
|
|
97
|
+
config.borderBottomLeftRadius = {
|
|
98
|
+
property: "borderBottomLeftRadius",
|
|
99
|
+
scale: "radii"
|
|
100
|
+
};
|
|
101
|
+
config.borderBottomRightRadius = {
|
|
102
|
+
property: "borderBottomRightRadius",
|
|
103
|
+
scale: "radii"
|
|
104
|
+
};
|
|
105
|
+
config.borderLeftWidth = {
|
|
106
|
+
property: "borderLeftWidth",
|
|
107
|
+
scale: "borderWidths"
|
|
108
|
+
};
|
|
109
|
+
config.borderLeftColor = {
|
|
110
|
+
property: "borderLeftColor",
|
|
111
|
+
scale: "colors"
|
|
112
|
+
};
|
|
113
|
+
config.borderLeftStyle = {
|
|
114
|
+
property: "borderLeftStyle",
|
|
115
|
+
scale: "borderStyles"
|
|
116
|
+
};
|
|
117
|
+
config.borderRightWidth = {
|
|
118
|
+
property: "borderRightWidth",
|
|
119
|
+
scale: "borderWidths"
|
|
120
|
+
};
|
|
121
|
+
config.borderRightColor = {
|
|
122
|
+
property: "borderRightColor",
|
|
123
|
+
scale: "colors"
|
|
124
|
+
};
|
|
125
|
+
config.borderRightStyle = {
|
|
126
|
+
property: "borderRightStyle",
|
|
127
|
+
scale: "borderStyles"
|
|
128
|
+
};
|
|
129
|
+
const border = require_core.system(config);
|
|
130
|
+
//#endregion
|
|
131
|
+
Object.defineProperty(exports, "border", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function() {
|
|
134
|
+
return border;
|
|
135
|
+
}
|
|
136
|
+
});
|
package/dist/border.cjs
ADDED
package/dist/border.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_core = require("./core.cjs");
|
|
2
|
+
//#region src/color/color.ts
|
|
3
|
+
const config = {
|
|
4
|
+
color: {
|
|
5
|
+
property: "color",
|
|
6
|
+
scale: "colors"
|
|
7
|
+
},
|
|
8
|
+
backgroundColor: {
|
|
9
|
+
property: "backgroundColor",
|
|
10
|
+
scale: "colors"
|
|
11
|
+
},
|
|
12
|
+
opacity: true
|
|
13
|
+
};
|
|
14
|
+
config.bg = config.backgroundColor;
|
|
15
|
+
const color = require_core.system(config);
|
|
16
|
+
//#endregion
|
|
17
|
+
Object.defineProperty(exports, "color", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return color;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { system } from "./core.mjs";
|
|
2
|
+
//#region src/color/color.ts
|
|
3
|
+
const config = {
|
|
4
|
+
color: {
|
|
5
|
+
property: "color",
|
|
6
|
+
scale: "colors"
|
|
7
|
+
},
|
|
8
|
+
backgroundColor: {
|
|
9
|
+
property: "backgroundColor",
|
|
10
|
+
scale: "colors"
|
|
11
|
+
},
|
|
12
|
+
opacity: true
|
|
13
|
+
};
|
|
14
|
+
config.bg = config.backgroundColor;
|
|
15
|
+
const color = system(config);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { color as t };
|
package/dist/color.cjs
ADDED
package/dist/color.d.cts
ADDED
package/dist/color.d.mts
ADDED
package/dist/color.mjs
ADDED