@medyll/cssfabric 0.1.0 → 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/README.md +38 -240
- package/_generated/cssFabric.vars.json +13 -0
- package/{src/_generated → _generated}/export.variables.md +0 -0
- package/{src/_generated → _generated}/index.d.ts +0 -0
- package/{src/_generated → _generated}/readme.md +0 -0
- package/init/importCssVars.d.ts +1 -0
- package/init/importCssVars.js +2 -0
- package/package.json +113 -69
- package/{lib/scripts → scripts}/cssfabric.d.ts +0 -0
- package/scripts/cssfabric.js +43 -0
- package/{lib/scripts → scripts}/cssfabricClassNames.d.ts +0 -0
- package/{lib/scripts → scripts}/cssfabricClassNames.js +5 -9
- package/{src/scripts → scripts}/index.d.ts +0 -0
- package/scripts/index.js +4 -0
- package/{lib/scripts → scripts}/utils.d.ts +0 -0
- package/{lib/scripts → scripts}/utils.js +1 -3
- package/{lib/styles/core → styles}/animation/animation.css +0 -0
- package/{lib/styles/core → styles}/animation/animation.min.css +0 -0
- package/{lib/styles/core → styles}/base/base.css +0 -7
- package/styles/base/base.min.css +1 -0
- package/styles/box/box.css +1379 -0
- package/styles/box/box.min.css +1 -0
- package/styles/box/box.responsive.css +5524 -0
- package/styles/box/box.responsive.min.css +1 -0
- package/styles/color/color.css +1565 -0
- package/styles/color/color.min.css +1 -0
- package/styles/color/color.responsive.css +6268 -0
- package/styles/color/color.responsive.min.css +1 -0
- package/styles/cssfabric.css +61792 -0
- package/styles/cssfabric.min.css +168 -0
- package/styles/cssfabric.responsive.css +200596 -0
- package/styles/cssfabric.responsive.min.css +108 -0
- package/{lib/styles/core → styles}/flex/flex.css +0 -0
- package/styles/flex/flex.min.css +1 -0
- package/{lib/styles/core → styles}/flex/flex.responsive.css +0 -126
- package/styles/flex/flex.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/grid/grid.css +0 -0
- package/styles/grid/grid.min.css +1 -0
- package/{lib/styles/core → styles}/grid/grid.responsive.css +0 -121
- package/styles/grid/grid.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/menu/menu.css +16 -12
- package/styles/menu/menu.min.css +1 -0
- package/{lib/styles/core → styles}/menu/menu.responsive.css +64 -129
- package/styles/menu/menu.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/overflow/overflow.css +0 -0
- package/{lib/styles/core → styles}/overflow/overflow.min.css +0 -0
- package/{lib/styles/core → styles}/overflow/overflow.responsive.css +0 -61
- package/styles/overflow/overflow.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/scale/scale.css +286 -206
- package/styles/scale/scale.min.css +1 -0
- package/styles/scale/scale.responsive.css +2884 -0
- package/styles/scale/scale.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/table/table.css +0 -0
- package/styles/table/table.min.css +1 -0
- package/{lib/styles/core → styles}/table/table.responsive.css +0 -74
- package/styles/table/table.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/text/text.css +4 -0
- package/styles/text/text.min.css +1 -0
- package/styles/text/text.responsive.css +196 -0
- package/styles/text/text.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/theme/theme.css +0 -0
- package/{lib/styles/core → styles}/theme/theme.min.css +0 -0
- package/styles/vars.css +414 -0
- package/styles/vars.min.css +1 -0
- package/{lib/styles/core → styles}/zindex/zindex.css +0 -0
- package/{lib/styles/core → styles}/zindex/zindex.min.css +0 -0
- package/.idea/cssfabric.iml +0 -8
- package/.idea/misc.xml +0 -9
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.vscode/settings.json +0 -24
- package/bin/index.js +0 -7
- package/cssfabric.config.js +0 -3
- package/cssfabric.json +0 -8
- package/gulpfile.js +0 -598
- package/lib/_generated/export.variables.json +0 -583
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -7
- package/lib/scripts/cssfabric.js +0 -48
- package/lib/scripts/index.d.ts +0 -2
- package/lib/scripts/index.js +0 -6
- package/lib/styles/core/base/base.min.css +0 -1
- package/lib/styles/core/box/box.css +0 -2449
- package/lib/styles/core/box/box.min.css +0 -1
- package/lib/styles/core/box/box.responsive.css +0 -12255
- package/lib/styles/core/box/box.responsive.min.css +0 -1
- package/lib/styles/core/color/color.css +0 -923
- package/lib/styles/core/color/color.min.css +0 -1
- package/lib/styles/core/color/color.responsive.css +0 -4625
- package/lib/styles/core/color/color.responsive.min.css +0 -1
- package/lib/styles/core/flex/flex.min.css +0 -1
- package/lib/styles/core/flex/flex.responsive.min.css +0 -1
- package/lib/styles/core/grid/grid.min.css +0 -1
- package/lib/styles/core/grid/grid.responsive.min.css +0 -1
- package/lib/styles/core/main.min.css +0 -1
- package/lib/styles/core/menu/menu.min.css +0 -1
- package/lib/styles/core/menu/menu.responsive.min.css +0 -1
- package/lib/styles/core/overflow/overflow.responsive.min.css +0 -1
- package/lib/styles/core/scale/scale.min.css +0 -1
- package/lib/styles/core/scale/scale.responsive.css +0 -3205
- package/lib/styles/core/scale/scale.responsive.min.css +0 -1
- package/lib/styles/core/table/table.min.css +0 -1
- package/lib/styles/core/table/table.responsive.min.css +0 -1
- package/lib/styles/core/text/text.min.css +0 -1
- package/lib/styles/core/text/text.responsive.css +0 -745
- package/lib/styles/core/text/text.responsive.min.css +0 -1
- package/lib/styles/core/vars.css +0 -274
- package/lib/styles/core/vars.min.css +0 -1
- package/lib/styles/cssfabric.css +0 -5367
- package/lib/styles/cssfabric.min.css +0 -15
- package/lib/styles/cssfabric.responsive.css +0 -23164
- package/lib/styles/cssfabric.responsive.min.css +0 -9
- package/src/_generated/export.variables.json +0 -760
- package/src/cssfabric/_utils.scss +0 -193
- package/src/cssfabric/index.d.ts +0 -3
- package/src/cssfabric/modules/_cssfabric-config.scss +0 -93
- package/src/cssfabric/modules/_mixins.scss +0 -1
- package/src/cssfabric/modules/animation/_animation-vars.scss +0 -17
- package/src/cssfabric/modules/animation/animation.scss +0 -3
- package/src/cssfabric/modules/base/_base-vars.scss +0 -19
- package/src/cssfabric/modules/base/base.scss +0 -80
- package/src/cssfabric/modules/box/_box-build.scss +0 -268
- package/src/cssfabric/modules/box/_box-vars.scss +0 -119
- package/src/cssfabric/modules/box/box-responsive.scss +0 -18
- package/src/cssfabric/modules/box/box.scss +0 -3
- package/src/cssfabric/modules/color/_color-build.scss +0 -108
- package/src/cssfabric/modules/color/_color-vars.scss +0 -80
- package/src/cssfabric/modules/color/color-responsive.scss +0 -23
- package/src/cssfabric/modules/color/color.scss +0 -9
- package/src/cssfabric/modules/css-fabric.scss +0 -2
- package/src/cssfabric/modules/flex/_flex-build.scss +0 -150
- package/src/cssfabric/modules/flex/_flex-vars.scss +0 -84
- package/src/cssfabric/modules/flex/flex-responsive.scss +0 -25
- package/src/cssfabric/modules/flex/flex.scss +0 -3
- package/src/cssfabric/modules/grid/_grid-build.scss +0 -84
- package/src/cssfabric/modules/grid/_grid-vars.scss +0 -88
- package/src/cssfabric/modules/grid/grid-responsive.scss +0 -25
- package/src/cssfabric/modules/grid/grid.scss +0 -6
- package/src/cssfabric/modules/menu/_menu-build.scss +0 -119
- package/src/cssfabric/modules/menu/_menu-vars.scss +0 -29
- package/src/cssfabric/modules/menu/menu-responsive.scss +0 -19
- package/src/cssfabric/modules/menu/menu.scss +0 -6
- package/src/cssfabric/modules/overflow/_overflow-build.scss +0 -22
- package/src/cssfabric/modules/overflow/_overflow-vars.scss +0 -31
- package/src/cssfabric/modules/overflow/overflow-responsive.scss +0 -25
- package/src/cssfabric/modules/overflow/overflow.scss +0 -7
- package/src/cssfabric/modules/scale/_scale-build.scss +0 -129
- package/src/cssfabric/modules/scale/_scale-vars.scss +0 -75
- package/src/cssfabric/modules/scale/scale-responsive.scss +0 -23
- package/src/cssfabric/modules/scale/scale.scss +0 -8
- package/src/cssfabric/modules/table/_table-build.scss +0 -134
- package/src/cssfabric/modules/table/_table-vars.scss +0 -30
- package/src/cssfabric/modules/table/table-responsive.scss +0 -24
- package/src/cssfabric/modules/table/table.scss +0 -8
- package/src/cssfabric/modules/text/_text-build.scss +0 -109
- package/src/cssfabric/modules/text/_text-vars.scss +0 -87
- package/src/cssfabric/modules/text/text-responsive.scss +0 -25
- package/src/cssfabric/modules/text/text.scss +0 -6
- package/src/cssfabric/modules/theme/_theme-build.scss +0 -76
- package/src/cssfabric/modules/theme/_theme-vars.scss +0 -55
- package/src/cssfabric/modules/theme/theme.scss +0 -6
- package/src/cssfabric/modules/vars.scss +0 -118
- package/src/cssfabric/modules/zindex/_zindex-vars.scss +0 -14
- package/src/cssfabric/modules/zindex/zindex.scss +0 -15
- package/src/index.d.ts +0 -3
- package/src/index.ts +0 -4
- package/src/scripts/cssfabric.ts +0 -54
- package/src/scripts/cssfabricClassNames.ts +0 -216
- package/src/scripts/index.ts +0 -8
- package/src/scripts/utils.ts +0 -37
- package/src/vendor/index.d.ts +0 -3
- package/src/vendor/normalize/normalize.min.css +0 -2
- package/src/vendor/sass-json-export/CHANGELOG.md +0 -26
- package/src/vendor/sass-json-export/Gruntfile.js +0 -60
- package/src/vendor/sass-json-export/LICENSE +0 -20
- package/src/vendor/sass-json-export/README.md +0 -90
- package/src/vendor/sass-json-export/package.json +0 -60
- package/src/vendor/sass-json-export/stylesheets/encode/api/_json.scss +0 -26
- package/src/vendor/sass-json-export/stylesheets/encode/encode.scss +0 -17
- package/src/vendor/sass-json-export/stylesheets/encode/helpers/_quote.scss +0 -9
- package/src/vendor/sass-json-export/stylesheets/encode/mixins/_json.scss +0 -42
- package/src/vendor/sass-json-export/stylesheets/encode/types/_bool.scss +0 -7
- package/src/vendor/sass-json-export/stylesheets/encode/types/_color.scss +0 -8
- package/src/vendor/sass-json-export/stylesheets/encode/types/_list.scss +0 -14
- package/src/vendor/sass-json-export/stylesheets/encode/types/_map.scss +0 -15
- package/src/vendor/sass-json-export/stylesheets/encode/types/_null.scss +0 -7
- package/src/vendor/sass-json-export/stylesheets/encode/types/_number.scss +0 -8
- package/src/vendor/sass-json-export/stylesheets/encode/types/_string.scss +0 -8
- package/src/vendor/sass-json-export/stylesheets/sass-json-export.scss +0 -2
- package/src/vendor/sass-json-export/test/encode/_index.scss +0 -14
- package/src/vendor/sass-json-export/test/encode/api/_json.scss +0 -29
- package/src/vendor/sass-json-export/test/encode/helpers/_quote.scss +0 -6
- package/src/vendor/sass-json-export/test/encode/types/_bool.scss +0 -6
- package/src/vendor/sass-json-export/test/encode/types/_color.scss +0 -7
- package/src/vendor/sass-json-export/test/encode/types/_list.scss +0 -25
- package/src/vendor/sass-json-export/test/encode/types/_map.scss +0 -17
- package/src/vendor/sass-json-export/test/encode/types/_null.scss +0 -8
- package/src/vendor/sass-json-export/test/encode/types/_number.scss +0 -68
- package/src/vendor/sass-json-export/test/encode/types/_string.scss +0 -9
- package/src/vendor/sass-json-export/test/test.scss +0 -9
- package/tsconfig.json +0 -46
- package/webpack.config.js +0 -53
package/README.md
CHANGED
|
@@ -1,240 +1,38 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<br/>
|
|
42
|
-
|
|
43
|
-
### More details
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
#### <strong>module box</strong>
|
|
48
|
-
|
|
49
|
-
#### [padding]
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
- padding properties for html elements
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: pad
|
|
56
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _ t b l r all u ii tb
|
|
57
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: _ 1 2 3 4 5 6 7 8
|
|
58
|
-
|
|
59
|
-
#### [margin]
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
- margin properties for html elements
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: marg
|
|
66
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _ t b l r all u ii tb
|
|
67
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: _ 1 2 3 4 5 6 7 8
|
|
68
|
-
|
|
69
|
-
#### [border]
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- border properties for html elements
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: border
|
|
76
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _ t b l r all u ii tb
|
|
77
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: _ 1 2 3 4 5
|
|
78
|
-
|
|
79
|
-
#### [shadow]
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
- applying shadows give depth and levels to your design
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: shad
|
|
86
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: 2 4 8 16 32 64 128 256
|
|
87
|
-
|
|
88
|
-
---
|
|
89
|
-
|
|
90
|
-
#### <strong>module color</strong>
|
|
91
|
-
|
|
92
|
-
#### [color]
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
- color for text level html elements
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: color
|
|
99
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme palette gray
|
|
100
|
-
|
|
101
|
-
#### [background-color]
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
- background colors
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: bg
|
|
108
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme palette gray
|
|
109
|
-
|
|
110
|
-
#### [background-themed]
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
- same as background-color, but with added contrasted color to text
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: bg-themed
|
|
117
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme palette gray
|
|
118
|
-
|
|
119
|
-
#### [border-color]
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
- border colors are slightly darker to maximize surrounding effect
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: border-color
|
|
126
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: palette gray
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
|
|
130
|
-
#### <strong>module grid</strong>
|
|
131
|
-
|
|
132
|
-
#### [grid]
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
- a classic grid system, and hey, it gets height !
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: grid
|
|
139
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: v h
|
|
140
|
-
|
|
141
|
-
#### [self]
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
- grid children specific classnames
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: self
|
|
148
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: start end stretch
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
|
-
#### <strong>module menu</strong>
|
|
153
|
-
|
|
154
|
-
#### [menu]
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: menu
|
|
158
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: h v
|
|
159
|
-
|
|
160
|
-
---
|
|
161
|
-
|
|
162
|
-
#### <strong>module overflow</strong>
|
|
163
|
-
|
|
164
|
-
#### [overflow]
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flow
|
|
168
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible hidden clip scroll auto
|
|
169
|
-
|
|
170
|
-
#### [overflowX]
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flowX
|
|
174
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible hidden clip scroll auto
|
|
175
|
-
|
|
176
|
-
#### [overflowY]
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flowY
|
|
180
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible hidden clip scroll auto
|
|
181
|
-
|
|
182
|
-
---
|
|
183
|
-
|
|
184
|
-
#### <strong>module scale</strong>
|
|
185
|
-
|
|
186
|
-
#### [scale]
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: scale
|
|
190
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: w h
|
|
191
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _size</span>: full mid quarter tiers<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _content</span>: content-max content-min<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _defined-steps</span>: 1 2 4 8 16 24 32 48 64<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _grid-5</span>: 1-5 2-5 3-5 4-5 5-5<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _grid-12</span>: 1-12 2-12 3-12 4-12 5-12 6-12 7-12 8-12 9-12 10-12 11-12 12-12
|
|
192
|
-
|
|
193
|
-
---
|
|
194
|
-
|
|
195
|
-
#### <strong>module table</strong>
|
|
196
|
-
|
|
197
|
-
#### [table]
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
- is a table
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: table
|
|
204
|
-
|
|
205
|
-
---
|
|
206
|
-
|
|
207
|
-
#### <strong>module text</strong>
|
|
208
|
-
|
|
209
|
-
#### [text-transform]
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
|
|
213
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: cap up low none full
|
|
214
|
-
|
|
215
|
-
#### [font-weight]
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
|
|
219
|
-
|
|
220
|
-
#### [text-align]
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
|
|
224
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: l r center justify
|
|
225
|
-
|
|
226
|
-
#### [text-shadow]
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text-shad
|
|
230
|
-
|
|
231
|
-
---
|
|
232
|
-
|
|
233
|
-
#### <strong>module theme</strong>
|
|
234
|
-
|
|
235
|
-
#### [theme]
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: theme
|
|
239
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: text bg border
|
|
240
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- primary</span>: _ light lighter dark darker complement invert<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- secondary</span>: _ light lighter dark darker complement invert<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- tertiary</span>: _ light lighter dark darker complement invert
|
|
1
|
+
# create-svelte
|
|
2
|
+
|
|
3
|
+
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
|
|
4
|
+
|
|
5
|
+
## Creating a project
|
|
6
|
+
|
|
7
|
+
If you're seeing this, you've probably already done this step. Congrats!
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# create a new project in the current directory
|
|
11
|
+
npm init svelte
|
|
12
|
+
|
|
13
|
+
# create a new project in my-app
|
|
14
|
+
npm init svelte my-app
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Developing
|
|
18
|
+
|
|
19
|
+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm run dev
|
|
23
|
+
|
|
24
|
+
# or start the server and open the app in a new browser tab
|
|
25
|
+
npm run dev -- --open
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Building
|
|
29
|
+
|
|
30
|
+
To create a production version of your app:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm run build
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
You can preview the production build with `npm run preview`.
|
|
37
|
+
|
|
38
|
+
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{"cssfabric":{"modules":{"animation":{"_data": {"attention_props": [], "in_out_props": {"back": []}}, "_metadata": {"title": "animation", "description": "cssfabric simplest animation module"}, "_docs": {"attention_props": "", "in_out_props": ""}},
|
|
2
|
+
"box":{"_data": {"unit-config": "rem", "border-unit-config": "px", "unit-size-config": 0.5, "unit-border-size-config": 1, "sizes-config": 12, "border-sizes-px-config": 3, "shadows-steps": 5, "shadows_step_multiplier": 2, "position-shorthand-config": "pos", "display-shorthand-config": "dsp", "shadow-shorthand-config": "shad", "border-shorthand-config": "border", "padding-shorthand-config": "pad", "margin-shorthand-config": "marg", "cssProps": {"borderShorthands": {"_": ["top", "bottom", "left", "right"], "t": "top", "b": "bottom", "l": "left", "r": "right", "all": ["top", "bottom", "left", "right"], "u": ["bottom", "left", "right"], "ii": ["left", "right"], "tb": ["top", "bottom"]}, "positionProps": {"abs": "absolute", "rel": "relative", "stat": "static", "fix": "fixed", "sticky": "sticky"}, "displayProps": {"block": "block", "none": "none", "inline": "inline", "block-inline": "inline-block", "flex-inline": "inline-flex", "tbl": "table", "tbl-row": "table-row", "tbl-cell": "table-cell", "tbl-column": "table-column"}}}, "_metadata": {"title": "box", "tag": "box", "description": "cssfabric box module to set heights, paddings, margins and shadows on all html elements"}, "_docs": {"attributes": {"padding": {"tag": "pad", "keys": ["_", "t", "b", "l", "r", "all", "u", "ii", "tb"], "values": {"_": "_", "1": "0.5rem", "2": "1rem", "3": "1.5rem", "4": "2rem", "5": "2.5rem", "6": "3rem", "7": "3.5rem", "8": "4rem", "9": "4.5rem", "10": "5rem", "11": "5.5rem", "12": "6rem"}, "levels": {"_": ["_", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]}, "about": "padding properties for html elements"}, "margin": {"tag": "marg", "keys": ["_", "t", "b", "l", "r", "all", "u", "ii", "tb"], "values": {"_": "_", "1": "0.5rem", "2": "1rem", "3": "1.5rem", "4": "2rem", "5": "2.5rem", "6": "3rem", "7": "3.5rem", "8": "4rem", "9": "4.5rem", "10": "5rem", "11": "5.5rem", "12": "6rem"}, "levels": {"_": ["_", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]}, "about": "margin properties for html elements"}, "border": {"tag": "border", "keys": ["_", "t", "b", "l", "r", "all", "u", "ii", "tb"], "values": {"_": "_", "1": "1px", "2": "2px", "3": "3px"}, "levels": {"_": ["_", 1, 2, 3]}, "about": "border properties for html elements"}, "radius": {"tag": "radiusGuy"}, "shadow": {"tag": "shad", "values": {"2": "0.83333333331.724137931", "4": "1.66666666673.4482758621", "8": "3.33333333336.8965517241", "16": "6.666666666713.7931034483", "32": "13.333333333327.5862068966"}, "levels": {"_": [2, 4, 8, 16, 32]}, "about": "applying shadows give depth and levels to your design"}}}},
|
|
3
|
+
"base":{"_data": {"cfg-has-dimension-strict": true, "CFG_HAS_DIMENSION_MIN": true, "CFG_HAS_DIMENSION_MAX": true, "size_step": "0.5rem", "sizes": {"tiny": 32, "small": 64, "medium": 128, "large": 256, "full": "100%"}}, "_metadata": {"title": "base", "tag": "base", "description": "cssfabric base config variables"}, "_docs": []},
|
|
4
|
+
"color":{"_data": {"gray-config": {"start": "#f4f4f4", "end": "#999", "steps": 5}, "color-types-config": ["color", "bg", "bg-themed", "border-color"], "theme": {"primary": "#201700", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#ffffff", "paper": "#f1f1f1"}, "scheme": {"discrete": "#ccc", "success": "green", "info": "#FFDD57FF", "warning": "#e6b905", "alert": "#ff7300", "error": "red"}, "palette": {"yellow": "#ffb900", "orange": "#d83b01", "red": "#d13438", "magenta": "#b4009e", "purple": "#5c2d91", "green": "#107c10", "teal": "#008272", "blue": "#0078d4", "dark": "#323232"}, "gray": "getGraySteps(5, #f4f4f4, #999)"}, "_metadata": {"title": "color", "title_tag": "its about colors", "description": "cssfabric color system: its about colors"}, "_docs": {"attributes": {"color": {"tag": "color", "keys": ["scheme", "palette", "gray"], "levelsLinked": {"scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(5, #f4f4f4, #999)"]}, "levelsDeclin": {"palette": ["_", "lighter", "light", "dark", "darker", "complement"]}, "about": "color for text level html elements"}, "background-color": {"tag": "bg", "keys": ["scheme", "palette", "gray"], "levelsLinked": {"scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(5, #f4f4f4, #999)"]}, "levelsDeclin": {"palette": ["_", "lighter", "light", "dark", "darker", "complement"]}, "about": "background colors"}, "background-themed": {"tag": "bg-themed", "keys": ["scheme", "palette", "gray"], "levelsLinked": {"gray": ["getGraySteps(5, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]}, "levelsDeclin": {"palette": ["_", "lighter", "light", "dark", "darker", "complement"]}, "about": "same as background-color, but with added contrasted color to text"}, "border-color": {"tag": "border-color", "keys": ["palette", "gray"], "levelsLinked": {"gray": ["getGraySteps(5, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]}, "about": "border colors are slightly darker to maximize surrounding effect"}}}},
|
|
5
|
+
"flex":{"_data": {"moduleName": "flex", "moduleNameShort": "flex", "horCode": "h", "vertCode": "v", "gridFullWidth": "main", "grow-shrink-steps": 2, "cssProps": {"flexWrap": {"wrap": "wrap", "wrap-reverse": "wrap-reverse"}, "grid-justify": {"start": "flex-start", "end": "flex-end", "between": "space-between", "stretch": "stretch", "center": "flex-center"}, "grid-items": {"baseline": "baseline", "stretch": "stretch", "start": "flex-start", "center": "center", "end": "flex-end"}, "grid-content": {"start": "flex-start", "center": "center", "end": "flex-end", "between": "space-between", "equal": "space-evenly"}}, "cssItemsProps": {"self": {"start": "flex-start", "end": "flex-end", "stretch": "stretch"}}}, "_metadata": {"title": "flex", "tag": "flex", "description": "cssfabric flex system module"}, "_docs": {"attributes": {"grid": {"tag": "flex", "keys": ["v", "h"], "classNames": {"align": ["top", "middle", "bottom", "left", "right", "center", "middle-center", "stretch"], "grid": ["wrap", "wrap-reverse"]}, "about": "a classic flex grid system, and hey, it gets height !"}, "self": {"tag": "self", "keys": ["start", "end", "stretch"], "about": "flex children specific classnames"}}}},
|
|
6
|
+
"grid":{"_data": {"moduleName": "grid", "moduleNameShort": "grid", "horCode": "h", "vertCode": "v", "gridFullWidth": "main", "grow-shrink-steps": 4, "cssProps": {"flexWrap": {"wrap": "wrap", "wrap-reverse": "wrap-reverse"}, "grid-justify": {"start": "flex-start", "end": "flex-end", "between": "space-between", "stretch": "stretch", "center": "flex-center"}, "grid-items": {"baseline": "baseline", "stretch": "stretch", "start": "flex-start", "center": "center", "end": "flex-end"}, "grid-content": {"start": "flex-start", "center": "center", "end": "flex-end", "between": "space-between", "equal": "space-evenly"}}, "cssItemsProps": {"self": {"start": "flex-start", "end": "flex-end", "stretch": "stretch"}}, "grid-max-rows": 8, "grid-max-cols": 12}, "_metadata": {"title": "grid", "tag": "grid", "description": "cssfabric flex grid system module"}, "_docs": {"attributes": {"grid": {"tag": "grid", "keys": ["v", "h"], "classNames": {"align": ["top", "middle", "bottom", "left", "right", "center", "middle-center", "stretch"], "grid": ["wrap", "wrap-reverse"]}, "about": "a classic grid system"}, "self": {"tag": "self", "keys": ["start", "end", "stretch"], "about": "grid children specific classnames"}}}},
|
|
7
|
+
"menu":{"_data": {"menu_class_name": "menu", "menu_class_name_short": "ul", "orientations": {"v": "vertical", "h": "horizontal"}, "menu_item_class_name": "menu-item", "menu_item_class_name_short": "li", "menu_item_disabled_tag": "disabled", "menu_item_selected_tag": "selected", "menu_dropdown_tag": "drop", "menu_dropdown_open": "open", "menu_dropdown_close": "close"}, "_metadata": {"title": "menu", "tag": "ul", "description": "cssfabric menu module to set menu style"}, "_docs": {"attributes": {"menu": {"tag": "menu", "keys": ["h", "v"]}}}},
|
|
8
|
+
"overflow":{"_data": {"overflow_props": ["overflow", "overflow-x", "overflow-y"], "overflow_values": ["visible", "hidden", "clip", "scroll", "auto"], "cssProps": {"overflow": {"visible": "visible", "hidden": "hidden", "clip": "clip", "scroll": "scroll", "_": "auto"}}}, "_metadata": {"title": "overflow", "tag": "flow", "description": "cssfabric overflow module to set overflow styles on all html elements"}, "_docs": {"attributes": {"overflow": {"tag": "flow", "keys": ["visible", "hidden", "clip", "scroll", "auto"]}, "overflowX": {"tag": "flowX", "keys": ["visible", "hidden", "clip", "scroll", "auto"]}, "overflowY": {"tag": "flowY", "keys": ["visible", "hidden", "clip", "scroll", "auto"]}}}},
|
|
9
|
+
"scale":{"_data": {"weight-config": "1em", "unit-tag-config": {"width": "w", "height": "h"}, "grid-ratios-config": 16, "defined-step-size": 2, "defined-step-unit": "rem", "defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64], "cssProps": {"size": {"full": "100%", "mid": "50%", "quarter": "25%", "tiers": "33%"}, "content": {"content-max": "max-content", "content-min": "min-content"}, "defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64]}}, "_metadata": {"title": "scale", "tag": "scale", "description": "cssfabric scale module to set dimensions and ratios on all html elements"}, "_docs": {"attributes": {"scale": {"tag": "scale", "keys": ["w", "h"], "levels": {"_size": ["full", "mid", "quarter", "tiers"], "_content": ["content-max", "content-min"], "_defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64], "_grid-16": ["1-16", "2-16", "3-16", "4-16", "5-16", "6-16", "7-16", "8-16", "9-16", "10-16", "11-16", "12-16", "13-16", "14-16", "15-16", "16-16"]}}}}},
|
|
10
|
+
"table":{"_data": {"className": "table", "classNameShort": "tbl", "table_class_name": "table", "table_class_name_short": "tbl", "table-bg-color-head": "#f4f4f4", "table-bg-color-strip-main": "#ededed", "table-bg-color-strip-second": "#f5f5f5", "table-border-color-header": "#ccc", "table-border-color-main": "#ededed", "table-border-color-second": "#f5f5f5"}, "_metadata": {"title": "table", "tag": "table", "description": "cssfabric table module to set different table styles"}, "_docs": {"attributes": {"table": {"tag": "table", "classNames": {"_": ["bg-strip-2", "bg-strip-5"], "_pos": ["sticky", "layout"], "_deco": ["h-line", "v-line", "border"]}, "about": "is a table"}}}},
|
|
11
|
+
"text":{"_data": {"moduleName": "text", "moduleNameShort": "text", "title-size-declination-config": 6, "font-size-unit-config": "rem", "font-sizes-h1-rem-config": 3.1, "font-size-h-min-rem-config": 1, "text-ellipsis-tag-config": "ellipsis", "cssProps": {"textTransform": {"cap": "capitalize", "up": "uppercase", "low": "lowercase", "none": "none", "full": "full-width"}, "fontWeight": {"50": 50, "100": 100, "300": 400, "500": 500, "900": 900, "light": "lighter", "cap": "normal", "bold": "bold", "bolder": "bolder"}, "textAlign": {"l": "left", "r": "right", "center": "center", "justify": "justify"}}, "scheme": {"discrete": "#ccc", "success": "green", "info": "#FFDD57FF", "warning": "#e6b905", "alert": "#ff7300", "error": "red"}, "palette": {"yellow": "#ffb900", "orange": "#d83b01", "red": "#d13438", "magenta": "#b4009e", "purple": "#5c2d91", "green": "#107c10", "teal": "#008272", "blue": "#0078d4", "dark": "#323232"}, "gray": "getGraySteps(5, #f4f4f4, #999)"}, "_metadata": {"title": "text", "tag": "text", "description": "cssfabric text module to set text style on all html elements"}, "_docs": {"attributes": {"text-transform": {"tag": "text", "keys": ["cap", "up", "low", "none", "full"]}, "font-weight": {"tag": "text", "keys": [50, 100, 300, 500, 900, "light", "cap", "bold", "bolder"]}, "text-align": {"tag": "text", "keys": ["l", "r", "center", "justify"]}, "text-shadow": {"tag": "text-shad", "keys": ["palette"]}}, "classNames": {"_": {"et": "ellipsis"}}}},
|
|
12
|
+
"theme":{"_data": {"moduleName": "theme", "moduleNameShort": "theme", "color-default-config": {"primary": "#201700", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#ffffff", "paper": "#f1f1f1"}, "declinations-config": ["primary", "secondary", "tertiary"], "theme-level-config": ["light", "lighter", "dark", "darker", "complement", "invert"], "theme-properties-apply-config": ["text", "bg", "border"], "color": {"primary": "#201700", "primary-light": "#6d4e00", "primary-lighter": "#b98500", "primary-dark": "black", "primary-darker": "black", "primary-complement": "#000920", "primary-invert": "#dfe8ff", "secondary": "#D14B02", "secondary-light": "#fd7023", "secondary-lighter": "#fea16e", "secondary-dark": "#9e3902", "secondary-darker": "#6c2701", "secondary-complement": "#0288d1", "secondary-invert": "#2eb4fd", "tertiary": "#88D102", "tertiary-light": "#b0fd23", "tertiary-lighter": "#cbfe6e", "tertiary-dark": "#679e02", "tertiary-darker": "#466c01", "tertiary-complement": "#4b02d1", "tertiary-invert": "#772efd"}}, "_metadata": {"title": "theme", "description": ""}, "_docs": {"attributes": {"theme": {"tag": "theme", "keys": ["text", "bg", "border"], "levels": {"primary": ["_", "light", "lighter", "dark", "darker", "complement", "invert"], "secondary": ["_", "light", "lighter", "dark", "darker", "complement", "invert"], "tertiary": ["_", "light", "lighter", "dark", "darker", "complement", "invert"]}}}}},
|
|
13
|
+
"zindex":{"_data": {"z_groups": ["a", "z"]}, "_metadata": {"title": "zindex", "tag": "zI", "description": "cssfabric zindex module to set z-index on all html elements"}, "_docs": {"z_groups": "_"}} }}}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,69 +1,113 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@medyll/cssfabric",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"bin": {
|
|
6
|
-
"@medyll/cssfabric": "./bin/index.js"
|
|
7
|
-
},
|
|
8
|
-
"repository": {
|
|
9
|
-
"type"
|
|
10
|
-
"url": "https://github.com/medyll/cssfabric.git"
|
|
11
|
-
},
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"gulp
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@medyll/cssfabric",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"bin": {
|
|
6
|
+
"@medyll/cssfabric": "./bin/index.js"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/medyll/cssfabric.git"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@lukeed/uuid": "^2.0.0",
|
|
14
|
+
"cookie": "^0.4.1",
|
|
15
|
+
"gulp-concat-util": "^0.5.5",
|
|
16
|
+
"gulp-filelist": "^2.0.5",
|
|
17
|
+
"JSON": "^1.0.0",
|
|
18
|
+
"sass": "^1.32.12",
|
|
19
|
+
"svelte2tsx": "^0.5.9"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@sveltejs/adapter-auto": "next",
|
|
23
|
+
"@sveltejs/kit": "next",
|
|
24
|
+
"@types/cookie": "^0.4.1",
|
|
25
|
+
"chokidar": "^3.5.3",
|
|
26
|
+
"cross-spawn": "^7.0.3",
|
|
27
|
+
"css-loader": "^5.2.4",
|
|
28
|
+
"gulp": "^4.0.2",
|
|
29
|
+
"gulp-cached": "^1.1.1",
|
|
30
|
+
"gulp-cli": "^2.3.0",
|
|
31
|
+
"gulp-data": "^1.3.1",
|
|
32
|
+
"gulp-download-stream": "^0.0.6",
|
|
33
|
+
"gulp-ignore": "^3.0.0",
|
|
34
|
+
"gulp-json-transform": "^0.4.7",
|
|
35
|
+
"gulp-rename": "^2.0.0",
|
|
36
|
+
"gulp-sass": "^5.1.0",
|
|
37
|
+
"gulp-util": "^3.0.8",
|
|
38
|
+
"json-to-scss": "^1.6.2",
|
|
39
|
+
"json2md": "^1.10.0",
|
|
40
|
+
"mini-css-extract-plugin": "^1.6.0",
|
|
41
|
+
"npm-run-all": "^4.1.5",
|
|
42
|
+
"sass-json-export": "^2.0.1",
|
|
43
|
+
"style-loader": "^2.0.0",
|
|
44
|
+
"svelte": "^3.46.0",
|
|
45
|
+
"svelte-check": "^2.2.6",
|
|
46
|
+
"svelte-highlight": "^6.0.1",
|
|
47
|
+
"svelte-preprocess": "^4.10.1",
|
|
48
|
+
"through2": "^4.0.2",
|
|
49
|
+
"tsconfig-paths": "^3.9.0",
|
|
50
|
+
"tslib": "^2.3.1",
|
|
51
|
+
"typescript": "~4.6.2",
|
|
52
|
+
"webpack": "^5.36.2"
|
|
53
|
+
},
|
|
54
|
+
"type": "module",
|
|
55
|
+
"exports": {
|
|
56
|
+
"./package.json": "./package.json",
|
|
57
|
+
"./init/importCssVars": "./init/importCssVars.js",
|
|
58
|
+
"./scripts/cssfabric": "./scripts/cssfabric.js",
|
|
59
|
+
"./scripts/cssfabricClassNames": "./scripts/cssfabricClassNames.js",
|
|
60
|
+
"./scripts": "./scripts/index.js",
|
|
61
|
+
"./scripts/utils": "./scripts/utils.js",
|
|
62
|
+
"./styles/animation/animation.css": "./styles/animation/animation.css",
|
|
63
|
+
"./styles/animation/animation.min.css": "./styles/animation/animation.min.css",
|
|
64
|
+
"./styles/base/base.css": "./styles/base/base.css",
|
|
65
|
+
"./styles/base/base.min.css": "./styles/base/base.min.css",
|
|
66
|
+
"./styles/box/box.css": "./styles/box/box.css",
|
|
67
|
+
"./styles/box/box.min.css": "./styles/box/box.min.css",
|
|
68
|
+
"./styles/box/box.responsive.css": "./styles/box/box.responsive.css",
|
|
69
|
+
"./styles/box/box.responsive.min.css": "./styles/box/box.responsive.min.css",
|
|
70
|
+
"./styles/color/color.css": "./styles/color/color.css",
|
|
71
|
+
"./styles/color/color.min.css": "./styles/color/color.min.css",
|
|
72
|
+
"./styles/color/color.responsive.css": "./styles/color/color.responsive.css",
|
|
73
|
+
"./styles/color/color.responsive.min.css": "./styles/color/color.responsive.min.css",
|
|
74
|
+
"./styles/cssfabric.css": "./styles/cssfabric.css",
|
|
75
|
+
"./styles/cssfabric.min.css": "./styles/cssfabric.min.css",
|
|
76
|
+
"./styles/cssfabric.responsive.css": "./styles/cssfabric.responsive.css",
|
|
77
|
+
"./styles/cssfabric.responsive.min.css": "./styles/cssfabric.responsive.min.css",
|
|
78
|
+
"./styles/flex/flex.css": "./styles/flex/flex.css",
|
|
79
|
+
"./styles/flex/flex.min.css": "./styles/flex/flex.min.css",
|
|
80
|
+
"./styles/flex/flex.responsive.css": "./styles/flex/flex.responsive.css",
|
|
81
|
+
"./styles/flex/flex.responsive.min.css": "./styles/flex/flex.responsive.min.css",
|
|
82
|
+
"./styles/grid/grid.css": "./styles/grid/grid.css",
|
|
83
|
+
"./styles/grid/grid.min.css": "./styles/grid/grid.min.css",
|
|
84
|
+
"./styles/grid/grid.responsive.css": "./styles/grid/grid.responsive.css",
|
|
85
|
+
"./styles/grid/grid.responsive.min.css": "./styles/grid/grid.responsive.min.css",
|
|
86
|
+
"./styles/menu/menu.css": "./styles/menu/menu.css",
|
|
87
|
+
"./styles/menu/menu.min.css": "./styles/menu/menu.min.css",
|
|
88
|
+
"./styles/menu/menu.responsive.css": "./styles/menu/menu.responsive.css",
|
|
89
|
+
"./styles/menu/menu.responsive.min.css": "./styles/menu/menu.responsive.min.css",
|
|
90
|
+
"./styles/overflow/overflow.css": "./styles/overflow/overflow.css",
|
|
91
|
+
"./styles/overflow/overflow.min.css": "./styles/overflow/overflow.min.css",
|
|
92
|
+
"./styles/overflow/overflow.responsive.css": "./styles/overflow/overflow.responsive.css",
|
|
93
|
+
"./styles/overflow/overflow.responsive.min.css": "./styles/overflow/overflow.responsive.min.css",
|
|
94
|
+
"./styles/scale/scale.css": "./styles/scale/scale.css",
|
|
95
|
+
"./styles/scale/scale.min.css": "./styles/scale/scale.min.css",
|
|
96
|
+
"./styles/scale/scale.responsive.css": "./styles/scale/scale.responsive.css",
|
|
97
|
+
"./styles/scale/scale.responsive.min.css": "./styles/scale/scale.responsive.min.css",
|
|
98
|
+
"./styles/table/table.css": "./styles/table/table.css",
|
|
99
|
+
"./styles/table/table.min.css": "./styles/table/table.min.css",
|
|
100
|
+
"./styles/table/table.responsive.css": "./styles/table/table.responsive.css",
|
|
101
|
+
"./styles/table/table.responsive.min.css": "./styles/table/table.responsive.min.css",
|
|
102
|
+
"./styles/text/text.css": "./styles/text/text.css",
|
|
103
|
+
"./styles/text/text.min.css": "./styles/text/text.min.css",
|
|
104
|
+
"./styles/text/text.responsive.css": "./styles/text/text.responsive.css",
|
|
105
|
+
"./styles/text/text.responsive.min.css": "./styles/text/text.responsive.min.css",
|
|
106
|
+
"./styles/theme/theme.css": "./styles/theme/theme.css",
|
|
107
|
+
"./styles/theme/theme.min.css": "./styles/theme/theme.min.css",
|
|
108
|
+
"./styles/vars.css": "./styles/vars.css",
|
|
109
|
+
"./styles/vars.min.css": "./styles/vars.min.css",
|
|
110
|
+
"./styles/zindex/zindex.css": "./styles/zindex/zindex.css",
|
|
111
|
+
"./styles/zindex/zindex.min.css": "./styles/zindex/zindex.min.css"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import jsonConfig from "../_generated/cssFabric.vars.json";
|
|
2
|
+
import cssfabricClassNames from "./cssfabricClassNames";
|
|
3
|
+
//
|
|
4
|
+
const getModuleList = () => {
|
|
5
|
+
return jsonConfig["cssfabric"]?.["modules"] || {};
|
|
6
|
+
};
|
|
7
|
+
const getModuleConfig = (module) => {
|
|
8
|
+
if (module)
|
|
9
|
+
return jsonConfig["cssfabric"]?.["modules"]?.[module] || {};
|
|
10
|
+
return jsonConfig;
|
|
11
|
+
};
|
|
12
|
+
const getModuleData = (module) => {
|
|
13
|
+
if (module)
|
|
14
|
+
return jsonConfig["cssfabric"]?.["modules"]?.[module]?.["_data"] || {};
|
|
15
|
+
return jsonConfig;
|
|
16
|
+
};
|
|
17
|
+
const getModuleMetaData = (module) => {
|
|
18
|
+
if (module)
|
|
19
|
+
return jsonConfig["cssfabric"]?.["modules"]?.[module]?.["_metadata"] || {};
|
|
20
|
+
return jsonConfig;
|
|
21
|
+
};
|
|
22
|
+
const getModuleDocs = (module) => {
|
|
23
|
+
if (module)
|
|
24
|
+
return jsonConfig["cssfabric"]?.["modules"]?.[module]?.["_docs"] || {};
|
|
25
|
+
return jsonConfig;
|
|
26
|
+
};
|
|
27
|
+
const getModuleDocsAttributes = (module) => {
|
|
28
|
+
if (module)
|
|
29
|
+
return jsonConfig["cssfabric"]?.["modules"]?.[module]?.["_docs"]?.["attributes"] || {};
|
|
30
|
+
return jsonConfig;
|
|
31
|
+
};
|
|
32
|
+
export default {
|
|
33
|
+
getModuleList,
|
|
34
|
+
getModuleConfig,
|
|
35
|
+
getModuleData,
|
|
36
|
+
getModuleMetaData,
|
|
37
|
+
getModuleDocs,
|
|
38
|
+
getModuleDocsAttributes,
|
|
39
|
+
getClassNames: cssfabricClassNames,
|
|
40
|
+
getModuleClassNames: cssfabricClassNames,
|
|
41
|
+
getModuleTagClassNames: cssfabricClassNames.getModuleTagClassNames,
|
|
42
|
+
getModuleTagDebug: cssfabricClassNames.getModuleTagDebug,
|
|
43
|
+
};
|
|
File without changes
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const cssfabric_1 = __importDefault(require("./cssfabric"));
|
|
1
|
+
import cssfabric from "./cssfabric";
|
|
2
|
+
import utils from "./utils";
|
|
7
3
|
function loopIt(props) {
|
|
8
4
|
const { module } = props;
|
|
9
|
-
const moduleAttributes =
|
|
5
|
+
const moduleAttributes = cssfabric.getModuleDocsAttributes(module);
|
|
10
6
|
}
|
|
11
7
|
function cssfabricClassNames(props) {
|
|
12
8
|
const { module, moduleAttribute, outputStyle } = props;
|
|
13
|
-
const moduleAttributes =
|
|
9
|
+
const moduleAttributes = cssfabric.getModuleDocsAttributes(module);
|
|
14
10
|
const fabricAttributes = moduleAttributes[moduleAttribute];
|
|
15
11
|
const moduleTag = fabricAttributes["tag"];
|
|
16
12
|
const moduleKeys = fabricAttributes["keys"] || undefined;
|
|
@@ -141,7 +137,7 @@ function cssfabricClassNames(props) {
|
|
|
141
137
|
});
|
|
142
138
|
}
|
|
143
139
|
}
|
|
144
|
-
|
|
140
|
+
export default {
|
|
145
141
|
getModuleTagClassNames: cssfabricClassNames,
|
|
146
142
|
getModuleTagDebug: function doIt(props) {
|
|
147
143
|
props.outputStyle = 'debug';
|
|
File without changes
|