dothtml 5.0.4 → 5.1.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.
Files changed (52) hide show
  1. package/.vscode/launch.json +34 -0
  2. package/.vscode/settings.json +2 -1
  3. package/lib/component.d.ts +1 -1
  4. package/lib/dot-util.d.ts +13 -0
  5. package/lib/dothtml.d.ts +1 -1
  6. package/lib/dothtml.js +1 -1
  7. package/lib/i-dot.d.ts +4 -4
  8. package/lib/styling/css-types.ts/css-angle.d.ts +7 -0
  9. package/lib/styling/css-types.ts/css-color.d.ts +9 -0
  10. package/lib/styling/css-types.ts/css-complex.d.ts +7 -0
  11. package/lib/styling/css-types.ts/css-data-type.d.ts +5 -0
  12. package/lib/styling/css-types.ts/css-length.d.ts +7 -0
  13. package/lib/styling/css-types.ts/css-number.d.ts +6 -0
  14. package/lib/styling/css-types.ts/css-transform.d.ts +38 -0
  15. package/lib/styling/css-types.ts/css-unknown.d.ts +6 -0
  16. package/lib/styling/css-types.ts/css-url.d.ts +6 -0
  17. package/lib/{i-dotcss.d.ts → styling/i-dotcss.d.ts} +192 -42
  18. package/lib/styling/style-builder.d.ts +24 -0
  19. package/lib/styling/unit-function-tables.d.ts +10 -0
  20. package/package.json +2 -2
  21. package/src/component.ts +1 -1
  22. package/src/dot-util.ts +37 -1
  23. package/src/dot.ts +2 -2
  24. package/src/dothtml.ts +1 -1
  25. package/src/i-dot.ts +1 -1
  26. package/src/styling/css-types.ts/css-angle.ts +18 -0
  27. package/src/styling/css-types.ts/css-color.ts +229 -0
  28. package/src/styling/css-types.ts/css-complex.ts +20 -0
  29. package/src/styling/css-types.ts/css-data-type.ts +9 -0
  30. package/src/styling/css-types.ts/css-length.ts +20 -0
  31. package/src/styling/css-types.ts/css-number.ts +12 -0
  32. package/src/styling/css-types.ts/css-transform.ts +220 -0
  33. package/src/styling/css-types.ts/css-unknown.ts +13 -0
  34. package/src/styling/css-types.ts/css-url.ts +41 -0
  35. package/src/{i-dotcss.ts → styling/i-dotcss.ts} +206 -49
  36. package/src/styling/style-builder.ts +963 -0
  37. package/src/styling/unit-function-tables.ts +24 -0
  38. package/unittests/basic-functionality.test.ts +1 -1
  39. package/unittests/calc.test.ts +2 -0
  40. package/unittests/{component-decorator.-.ts → components/component-decorator.-.ts} +0 -0
  41. package/unittests/{components-data.test.ts → components/components-data.test.ts} +3 -3
  42. package/unittests/{components.test.ts → components/components.test.ts} +5 -4
  43. package/unittests/input-bindings.test.ts +6 -6
  44. package/unittests/non-function-props-rerender.test.ts +85 -0
  45. package/unittests/styling/animations.test.ts +14 -0
  46. package/unittests/styling/inline-styling.test.ts +18 -0
  47. package/unittests/styling/pseudo-selectors.test.ts +1 -0
  48. package/unittests/styling/transformations.test.ts +234 -0
  49. package/{lib/dot-document.d.ts → unittests/styling/value-interpretation.test.ts} +0 -0
  50. package/lib/style-builder.d.ts +0 -3
  51. package/src/dot-document.ts +0 -0
  52. package/src/style-builder.ts +0 -1516
@@ -4,11 +4,13 @@ export declare type RelativeUnits = "em" | "ex" | "ch" | "rem" | "vw" | "vh" | "
4
4
  export declare type AllUnits = AbsoluteUnits | RelativeUnits;
5
5
  export declare type OptionalWhitespace = "" | " ";
6
6
  export declare type UrlType = `url('${string}')`;
7
- export declare type LengthOrDefault = number | `${number}${AllUnits}`;
7
+ export declare type NumericLength = number | `${number}${AllUnits}`;
8
+ export declare type AngleUnits = "deg" | "turn" | "rad" | "grad";
9
+ export declare type NumericAngle = number | `${number}${AngleUnits}`;
8
10
  export declare type BackgroundAttachmentValues = BasicCommonValues | "scroll" | "fixed" | "local";
9
11
  export declare type BackgroundRepeatValues = BasicCommonValues | "no-repeat" | "repeat" | "space" | "round";
10
12
  export declare type BackgroundOriginValues = BasicCommonValues | "padding-box" | "border-box" | "content-box";
11
- export declare type BackgroundSizeValues = BasicCommonValues | "auto" | LengthOrDefault | "cover" | "contain";
13
+ export declare type BackgroundSizeValues = BasicCommonValues | "auto" | NumericLength | "cover" | "contain";
12
14
  export declare type BackfaceVisibilityValues = BasicCommonValues | "visible" | "hidden";
13
15
  export declare type BorderStyles = BasicCommonValues | "dotted" | "dashed" | "solid" | "double" | "groove" | "ridge" | "inset" | "outset" | "none" | "hidden";
14
16
  export declare type ColorName = BasicCommonValues | "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgrey" | "darkgreen" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "grey" | "green" | "greenyellow" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgrey" | "lightgreen" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "magenta" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "orangered" | "orchid" | "palegoldenrod" | "palegreen" | "paleturquoise" | "palevioletred" | "papayawhip" | "peachpuff" | "peru" | "pink" | "plum" | "powderblue" | "purple" | "rebeccapurple" | "red" | "rosybrown" | "royalblue" | "saddlebrown" | "salmon" | "sandybrown" | "seagreen" | "seashell" | "sienna" | "silver" | "skyblue" | "slateblue" | "slategray" | "slategrey" | "snow" | "springgreen" | "steelblue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "white" | "whitesmoke" | "yellow" | "yellowgreen";
@@ -19,13 +21,13 @@ export declare type FontVariantValues = BasicCommonValues | "normal" | "small-ca
19
21
  export declare type FontVariantCapsValues = FontVariantValues | "all-small-caps" | "petite-caps" | "all-petite-caps" | "unicase" | "titling-caps";
20
22
  export declare type FontWeightValues = BasicCommonValues | number | "normal" | "bold" | "bolder" | "lighter";
21
23
  export declare type LengthProp = BasicCommonValues | "maxHeight" | "minHeight" | "top" | "bottom" | "height" | "maxHidth" | "minWidth" | "right" | "left" | "width" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "outlineOffset" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "lineHeight" | "flexBasis" | "fontSize";
22
- export declare type OutlineWidthValues = BasicCommonValues | "medium" | "thin" | "thick" | LengthOrDefault;
24
+ export declare type OutlineWidthValues = BasicCommonValues | "medium" | "thin" | "thick" | NumericLength;
23
25
  export declare type PositionNames = BasicCommonValues | "static" | "relative" | "fixed" | "absolute" | "sticky";
24
26
  export declare type FlexDirectionNames = BasicCommonValues | "row" | "row-reverse" | "column" | "column-reverse";
25
27
  export declare type FlexWrapNames = BasicCommonValues | "nowrap" | "wrap" | "wrap-reverse";
26
28
  export declare type ColorFormat = BasicCommonValues | ColorName | number | `#${string}` | `rgb(${number},${OptionalWhitespace}${number},${OptionalWhitespace}${number})` | `rgba(${number},${OptionalWhitespace}${number},${OptionalWhitespace}${number},${OptionalWhitespace}${number})` | `hsl(${number},${OptionalWhitespace}${number}%,${OptionalWhitespace}${number}%)` | `hsla(${number},${OptionalWhitespace}${number}%,${OptionalWhitespace}${number}%,${OptionalWhitespace}${number})`;
27
29
  export declare type BackgroundRepeatValues2d = BackgroundRepeatValues | "repeat-x" | "repeat-y" | `${BackgroundRepeatValues} ${BackgroundRepeatValues}`;
28
- export declare type BorderShorthand = BasicCommonValues | `${number}${AllUnits} ${BorderStyles} ${ColorFormat}`;
30
+ export declare type BorderShorthand = BasicCommonValues | `${BorderStyles}` | `${BorderStyles} ${ColorFormat}` | `${number}${AllUnits} ${BorderStyles} ${ColorFormat}`;
29
31
  export declare type BackgroundImageFormat = BasicCommonValues | UrlType | `${UrlType}, ${UrlType}`;
30
32
  export declare type BackgroundPositionShorthand2D = BasicCommonValues | `${BasicCommonValues | number} ${BasicCommonValues | number}` | `${number}% ${number}%` | `${"left" | "right" | "center"} ${"top" | "center" | "bottom"}`;
31
33
  export declare type BackgroundShorthand = BasicCommonValues | `${ColorFormat} ${UrlType} ${BackgroundRepeatValues} ${BackgroundPositionShorthand2D}`;
@@ -75,7 +77,7 @@ export interface IDotcssProp {
75
77
  backgroundSizeVw: IDotcssAnimatable<number>;
76
78
  backgroundSizeVMax: IDotcssAnimatable<number>;
77
79
  backgroundSizeVMin: IDotcssAnimatable<number>;
78
- borderBottomLeftRadius: IDotcssAnimatable<number | string>;
80
+ borderBottomLeftRadius: IDotcssAnimatable<NumericLength>;
79
81
  borderBottomLeftRadiusCm: IDotcssAnimatable<number>;
80
82
  borderBottomLeftRadiusCh: IDotcssAnimatable<number>;
81
83
  borderBottomLeftRadiusEm: IDotcssAnimatable<number>;
@@ -91,7 +93,7 @@ export interface IDotcssProp {
91
93
  borderBottomLeftRadiusVw: IDotcssAnimatable<number>;
92
94
  borderBottomLeftRadiusVMax: IDotcssAnimatable<number>;
93
95
  borderBottomLeftRadiusVMin: IDotcssAnimatable<number>;
94
- borderBottomRightRadius: IDotcssAnimatable<number | string>;
96
+ borderBottomRightRadius: IDotcssAnimatable<NumericLength>;
95
97
  borderBottomRightRadiusCm: IDotcssAnimatable<number>;
96
98
  borderBottomRightRadiusCh: IDotcssAnimatable<number>;
97
99
  borderBottomRightRadiusEm: IDotcssAnimatable<number>;
@@ -107,7 +109,7 @@ export interface IDotcssProp {
107
109
  borderBottomRightRadiusVw: IDotcssAnimatable<number>;
108
110
  borderBottomRightRadiusVMax: IDotcssAnimatable<number>;
109
111
  borderBottomRightRadiusVMin: IDotcssAnimatable<number>;
110
- borderBottomWidth: IDotcssAnimatable<number | string>;
112
+ borderBottomWidth: IDotcssAnimatable<NumericLength>;
111
113
  borderBottomWidthCm: IDotcssAnimatable<number>;
112
114
  borderBottomWidthCh: IDotcssAnimatable<number>;
113
115
  borderBottomWidthEm: IDotcssAnimatable<number>;
@@ -123,7 +125,7 @@ export interface IDotcssProp {
123
125
  borderBottomWidthVw: IDotcssAnimatable<number>;
124
126
  borderBottomWidthVMax: IDotcssAnimatable<number>;
125
127
  borderBottomWidthVMin: IDotcssAnimatable<number>;
126
- borderImageWidth: IDotcssAnimatable<number | string>;
128
+ borderImageWidth: IDotcssAnimatable<NumericLength>;
127
129
  borderImageWidthCm: IDotcssAnimatable<number>;
128
130
  borderImageWidthCh: IDotcssAnimatable<number>;
129
131
  borderImageWidthEm: IDotcssAnimatable<number>;
@@ -139,7 +141,7 @@ export interface IDotcssProp {
139
141
  borderImageWidthVw: IDotcssAnimatable<number>;
140
142
  borderImageWidthVMax: IDotcssAnimatable<number>;
141
143
  borderImageWidthVMin: IDotcssAnimatable<number>;
142
- borderLeftWidth: IDotcssAnimatable<number | string>;
144
+ borderLeftWidth: IDotcssAnimatable<NumericLength>;
143
145
  borderLeftWidthCm: IDotcssAnimatable<number>;
144
146
  borderLeftWidthCh: IDotcssAnimatable<number>;
145
147
  borderLeftWidthEm: IDotcssAnimatable<number>;
@@ -155,7 +157,7 @@ export interface IDotcssProp {
155
157
  borderLeftWidthVw: IDotcssAnimatable<number>;
156
158
  borderLeftWidthVMax: IDotcssAnimatable<number>;
157
159
  borderLeftWidthVMin: IDotcssAnimatable<number>;
158
- borderRadius: IDotcssAnimatable<number | string>;
160
+ borderRadius: IDotcssAnimatable<NumericLength>;
159
161
  borderRadiusCm: IDotcssAnimatable<number>;
160
162
  borderRadiusCh: IDotcssAnimatable<number>;
161
163
  borderRadiusEm: IDotcssAnimatable<number>;
@@ -171,7 +173,7 @@ export interface IDotcssProp {
171
173
  borderRadiusVw: IDotcssAnimatable<number>;
172
174
  borderRadiusVMax: IDotcssAnimatable<number>;
173
175
  borderRadiusVMin: IDotcssAnimatable<number>;
174
- borderRightWidth: IDotcssAnimatable<number | string>;
176
+ borderRightWidth: IDotcssAnimatable<NumericLength>;
175
177
  borderRightWidthCm: IDotcssAnimatable<number>;
176
178
  borderRightWidthCh: IDotcssAnimatable<number>;
177
179
  borderRightWidthEm: IDotcssAnimatable<number>;
@@ -187,7 +189,7 @@ export interface IDotcssProp {
187
189
  borderRightWidthVw: IDotcssAnimatable<number>;
188
190
  borderRightWidthVMax: IDotcssAnimatable<number>;
189
191
  borderRightWidthVMin: IDotcssAnimatable<number>;
190
- borderTopLeftRadius: IDotcssAnimatable<number | string>;
192
+ borderTopLeftRadius: IDotcssAnimatable<NumericLength>;
191
193
  borderTopLeftRadiusCm: IDotcssAnimatable<number>;
192
194
  borderTopLeftRadiusCh: IDotcssAnimatable<number>;
193
195
  borderTopLeftRadiusEm: IDotcssAnimatable<number>;
@@ -203,7 +205,7 @@ export interface IDotcssProp {
203
205
  borderTopLeftRadiusVw: IDotcssAnimatable<number>;
204
206
  borderTopLeftRadiusVMax: IDotcssAnimatable<number>;
205
207
  borderTopLeftRadiusVMin: IDotcssAnimatable<number>;
206
- borderTopRightRadius: IDotcssAnimatable<number | string>;
208
+ borderTopRightRadius: IDotcssAnimatable<NumericLength>;
207
209
  borderTopRightRadiusCm: IDotcssAnimatable<number>;
208
210
  borderTopRightRadiusCh: IDotcssAnimatable<number>;
209
211
  borderTopRightRadiusEm: IDotcssAnimatable<number>;
@@ -219,7 +221,7 @@ export interface IDotcssProp {
219
221
  borderTopRightRadiusVw: IDotcssAnimatable<number>;
220
222
  borderTopRightRadiusVMax: IDotcssAnimatable<number>;
221
223
  borderTopRightRadiusVMin: IDotcssAnimatable<number>;
222
- borderTopWidth: IDotcssAnimatable<number | string>;
224
+ borderTopWidth: IDotcssAnimatable<NumericLength>;
223
225
  borderTopWidthCm: IDotcssAnimatable<number>;
224
226
  borderTopWidthCh: IDotcssAnimatable<number>;
225
227
  borderTopWidthEm: IDotcssAnimatable<number>;
@@ -235,7 +237,7 @@ export interface IDotcssProp {
235
237
  borderTopWidthVw: IDotcssAnimatable<number>;
236
238
  borderTopWidthVMax: IDotcssAnimatable<number>;
237
239
  borderTopWidthVMin: IDotcssAnimatable<number>;
238
- borderWidth: IDotcssAnimatable<number | string>;
240
+ borderWidth: IDotcssAnimatable<NumericLength>;
239
241
  borderWidthCm: IDotcssAnimatable<number>;
240
242
  borderWidthCh: IDotcssAnimatable<number>;
241
243
  borderWidthEm: IDotcssAnimatable<number>;
@@ -251,7 +253,7 @@ export interface IDotcssProp {
251
253
  borderWidthVw: IDotcssAnimatable<number>;
252
254
  borderWidthVMax: IDotcssAnimatable<number>;
253
255
  borderWidthVMin: IDotcssAnimatable<number>;
254
- bottom: IDotcssAnimatable<number | string>;
256
+ bottom: IDotcssAnimatable<NumericLength>;
255
257
  bottomCm: IDotcssAnimatable<number>;
256
258
  bottomCh: IDotcssAnimatable<number>;
257
259
  bottomEm: IDotcssAnimatable<number>;
@@ -267,7 +269,7 @@ export interface IDotcssProp {
267
269
  bottomVw: IDotcssAnimatable<number>;
268
270
  bottomVMax: IDotcssAnimatable<number>;
269
271
  bottomVMin: IDotcssAnimatable<number>;
270
- height: IDotcssAnimatable<number | string>;
272
+ height: IDotcssAnimatable<NumericLength>;
271
273
  heightCm: IDotcssAnimatable<number>;
272
274
  heightCh: IDotcssAnimatable<number>;
273
275
  heightEm: IDotcssAnimatable<number>;
@@ -283,7 +285,7 @@ export interface IDotcssProp {
283
285
  heightVw: IDotcssAnimatable<number>;
284
286
  heightVMax: IDotcssAnimatable<number>;
285
287
  heightVMin: IDotcssAnimatable<number>;
286
- left: IDotcssAnimatable<number | string>;
288
+ left: IDotcssAnimatable<NumericLength>;
287
289
  leftCm: IDotcssAnimatable<number>;
288
290
  leftCh: IDotcssAnimatable<number>;
289
291
  leftEm: IDotcssAnimatable<number>;
@@ -299,7 +301,7 @@ export interface IDotcssProp {
299
301
  leftVw: IDotcssAnimatable<number>;
300
302
  leftVMax: IDotcssAnimatable<number>;
301
303
  leftVMin: IDotcssAnimatable<number>;
302
- margin: IDotcssAnimatable<number | string>;
304
+ margin: IDotcssAnimatable<NumericLength>;
303
305
  marginCm: IDotcssAnimatable<number>;
304
306
  marginCh: IDotcssAnimatable<number>;
305
307
  marginEm: IDotcssAnimatable<number>;
@@ -315,7 +317,7 @@ export interface IDotcssProp {
315
317
  marginVw: IDotcssAnimatable<number>;
316
318
  marginVMax: IDotcssAnimatable<number>;
317
319
  marginVMin: IDotcssAnimatable<number>;
318
- marginBottom: IDotcssAnimatable<number | string>;
320
+ marginBottom: IDotcssAnimatable<NumericLength>;
319
321
  marginBottomCm: IDotcssAnimatable<number>;
320
322
  marginBottomCh: IDotcssAnimatable<number>;
321
323
  marginBottomEm: IDotcssAnimatable<number>;
@@ -331,7 +333,7 @@ export interface IDotcssProp {
331
333
  marginBottomVw: IDotcssAnimatable<number>;
332
334
  marginBottomVMax: IDotcssAnimatable<number>;
333
335
  marginBottomVMin: IDotcssAnimatable<number>;
334
- marginLeft: IDotcssAnimatable<number | string>;
336
+ marginLeft: IDotcssAnimatable<NumericLength>;
335
337
  marginLeftCm: IDotcssAnimatable<number>;
336
338
  marginLeftCh: IDotcssAnimatable<number>;
337
339
  marginLeftEm: IDotcssAnimatable<number>;
@@ -347,7 +349,7 @@ export interface IDotcssProp {
347
349
  marginLeftVw: IDotcssAnimatable<number>;
348
350
  marginLeftVMax: IDotcssAnimatable<number>;
349
351
  marginLeftVMin: IDotcssAnimatable<number>;
350
- marginRight: IDotcssAnimatable<number | string>;
352
+ marginRight: IDotcssAnimatable<NumericLength>;
351
353
  marginRightCm: IDotcssAnimatable<number>;
352
354
  marginRightCh: IDotcssAnimatable<number>;
353
355
  marginRightEm: IDotcssAnimatable<number>;
@@ -363,7 +365,7 @@ export interface IDotcssProp {
363
365
  marginRightVw: IDotcssAnimatable<number>;
364
366
  marginRightVMax: IDotcssAnimatable<number>;
365
367
  marginRightVMin: IDotcssAnimatable<number>;
366
- marginTop: IDotcssAnimatable<number | string>;
368
+ marginTop: IDotcssAnimatable<NumericLength>;
367
369
  marginTopCm: IDotcssAnimatable<number>;
368
370
  marginTopCh: IDotcssAnimatable<number>;
369
371
  marginTopEm: IDotcssAnimatable<number>;
@@ -379,7 +381,7 @@ export interface IDotcssProp {
379
381
  marginTopVw: IDotcssAnimatable<number>;
380
382
  marginTopVMax: IDotcssAnimatable<number>;
381
383
  marginTopVMin: IDotcssAnimatable<number>;
382
- maxHeight: IDotcssAnimatable<number | string>;
384
+ maxHeight: IDotcssAnimatable<NumericLength>;
383
385
  maxHeightCm: IDotcssAnimatable<number>;
384
386
  maxHeightCh: IDotcssAnimatable<number>;
385
387
  maxHeightEm: IDotcssAnimatable<number>;
@@ -395,7 +397,7 @@ export interface IDotcssProp {
395
397
  maxHeightVw: IDotcssAnimatable<number>;
396
398
  maxHeightVMax: IDotcssAnimatable<number>;
397
399
  maxHeightVMin: IDotcssAnimatable<number>;
398
- maxWidth: IDotcssAnimatable<number | string>;
400
+ maxWidth: IDotcssAnimatable<NumericLength>;
399
401
  maxWidthCm: IDotcssAnimatable<number>;
400
402
  maxWidthCh: IDotcssAnimatable<number>;
401
403
  maxWidthEm: IDotcssAnimatable<number>;
@@ -411,7 +413,7 @@ export interface IDotcssProp {
411
413
  maxWidthVw: IDotcssAnimatable<number>;
412
414
  maxWidthVMax: IDotcssAnimatable<number>;
413
415
  maxWidthVMin: IDotcssAnimatable<number>;
414
- minHeight: IDotcssAnimatable<number | string>;
416
+ minHeight: IDotcssAnimatable<NumericLength>;
415
417
  minHeightCm: IDotcssAnimatable<number>;
416
418
  minHeightCh: IDotcssAnimatable<number>;
417
419
  minHeightEm: IDotcssAnimatable<number>;
@@ -427,7 +429,7 @@ export interface IDotcssProp {
427
429
  minHeightVw: IDotcssAnimatable<number>;
428
430
  minHeightVMax: IDotcssAnimatable<number>;
429
431
  minHeightVMin: IDotcssAnimatable<number>;
430
- minWidth: IDotcssAnimatable<number | string>;
432
+ minWidth: IDotcssAnimatable<NumericLength>;
431
433
  minWidthCm: IDotcssAnimatable<number>;
432
434
  minWidthCh: IDotcssAnimatable<number>;
433
435
  minWidthEm: IDotcssAnimatable<number>;
@@ -443,7 +445,7 @@ export interface IDotcssProp {
443
445
  minWidthVw: IDotcssAnimatable<number>;
444
446
  minWidthVMax: IDotcssAnimatable<number>;
445
447
  minWidthVMin: IDotcssAnimatable<number>;
446
- outlineOffset: IDotcssAnimatable<number | string>;
448
+ outlineOffset: IDotcssAnimatable<NumericLength>;
447
449
  outlineOffsetCm: IDotcssAnimatable<number>;
448
450
  outlineOffsetCh: IDotcssAnimatable<number>;
449
451
  outlineOffsetEm: IDotcssAnimatable<number>;
@@ -459,7 +461,7 @@ export interface IDotcssProp {
459
461
  outlineOffsetVw: IDotcssAnimatable<number>;
460
462
  outlineOffsetVMax: IDotcssAnimatable<number>;
461
463
  outlineOffsetVMin: IDotcssAnimatable<number>;
462
- padding: IDotcssAnimatable<number | string>;
464
+ padding: IDotcssAnimatable<NumericLength>;
463
465
  paddingCm: IDotcssAnimatable<number>;
464
466
  paddingCh: IDotcssAnimatable<number>;
465
467
  paddingEm: IDotcssAnimatable<number>;
@@ -475,7 +477,7 @@ export interface IDotcssProp {
475
477
  paddingVw: IDotcssAnimatable<number>;
476
478
  paddingVMax: IDotcssAnimatable<number>;
477
479
  paddingVMin: IDotcssAnimatable<number>;
478
- paddingBottom: IDotcssAnimatable<number | string>;
480
+ paddingBottom: IDotcssAnimatable<NumericLength>;
479
481
  paddingBottomCm: IDotcssAnimatable<number>;
480
482
  paddingBottomCh: IDotcssAnimatable<number>;
481
483
  paddingBottomEm: IDotcssAnimatable<number>;
@@ -491,7 +493,7 @@ export interface IDotcssProp {
491
493
  paddingBottomVw: IDotcssAnimatable<number>;
492
494
  paddingBottomVMax: IDotcssAnimatable<number>;
493
495
  paddingBottomVMin: IDotcssAnimatable<number>;
494
- paddingLeft: IDotcssAnimatable<number | string>;
496
+ paddingLeft: IDotcssAnimatable<NumericLength>;
495
497
  paddingLeftCm: IDotcssAnimatable<number>;
496
498
  paddingLeftCh: IDotcssAnimatable<number>;
497
499
  paddingLeftEm: IDotcssAnimatable<number>;
@@ -507,7 +509,7 @@ export interface IDotcssProp {
507
509
  paddingLeftVw: IDotcssAnimatable<number>;
508
510
  paddingLeftVMax: IDotcssAnimatable<number>;
509
511
  paddingLeftVMin: IDotcssAnimatable<number>;
510
- paddingRight: IDotcssAnimatable<number | string>;
512
+ paddingRight: IDotcssAnimatable<NumericLength>;
511
513
  paddingRightCm: IDotcssAnimatable<number>;
512
514
  paddingRightCh: IDotcssAnimatable<number>;
513
515
  paddingRightEm: IDotcssAnimatable<number>;
@@ -523,7 +525,7 @@ export interface IDotcssProp {
523
525
  paddingRightVw: IDotcssAnimatable<number>;
524
526
  paddingRightVMax: IDotcssAnimatable<number>;
525
527
  paddingRightVMin: IDotcssAnimatable<number>;
526
- paddingTop: IDotcssAnimatable<number | string>;
528
+ paddingTop: IDotcssAnimatable<NumericLength>;
527
529
  paddingTopCm: IDotcssAnimatable<number>;
528
530
  paddingTopCh: IDotcssAnimatable<number>;
529
531
  paddingTopEm: IDotcssAnimatable<number>;
@@ -539,7 +541,7 @@ export interface IDotcssProp {
539
541
  paddingTopVw: IDotcssAnimatable<number>;
540
542
  paddingTopVMax: IDotcssAnimatable<number>;
541
543
  paddingTopVMin: IDotcssAnimatable<number>;
542
- right: IDotcssAnimatable<number | string>;
544
+ right: IDotcssAnimatable<NumericLength>;
543
545
  rightCm: IDotcssAnimatable<number>;
544
546
  rightCh: IDotcssAnimatable<number>;
545
547
  rightEm: IDotcssAnimatable<number>;
@@ -555,7 +557,7 @@ export interface IDotcssProp {
555
557
  rightVw: IDotcssAnimatable<number>;
556
558
  rightVMax: IDotcssAnimatable<number>;
557
559
  rightVMin: IDotcssAnimatable<number>;
558
- top: IDotcssAnimatable<number | string>;
560
+ top: IDotcssAnimatable<NumericLength>;
559
561
  topCm: IDotcssAnimatable<number>;
560
562
  topCh: IDotcssAnimatable<number>;
561
563
  topEm: IDotcssAnimatable<number>;
@@ -571,7 +573,7 @@ export interface IDotcssProp {
571
573
  topVw: IDotcssAnimatable<number>;
572
574
  topVMax: IDotcssAnimatable<number>;
573
575
  topVMin: IDotcssAnimatable<number>;
574
- width: IDotcssAnimatable<number | string>;
576
+ width: IDotcssAnimatable<NumericLength>;
575
577
  widthCm: IDotcssAnimatable<number>;
576
578
  widthCh: IDotcssAnimatable<number>;
577
579
  widthEm: IDotcssAnimatable<number>;
@@ -587,7 +589,7 @@ export interface IDotcssProp {
587
589
  widthVw: IDotcssAnimatable<number>;
588
590
  widthVMax: IDotcssAnimatable<number>;
589
591
  widthVMin: IDotcssAnimatable<number>;
590
- lineHeight: IDotcssAnimatable<number | string>;
592
+ lineHeight: IDotcssAnimatable<NumericLength>;
591
593
  lineHeightCm: IDotcssAnimatable<number>;
592
594
  lineHeightCh: IDotcssAnimatable<number>;
593
595
  lineHeightEm: IDotcssAnimatable<number>;
@@ -603,7 +605,7 @@ export interface IDotcssProp {
603
605
  lineHeightVw: IDotcssAnimatable<number>;
604
606
  lineHeightVMax: IDotcssAnimatable<number>;
605
607
  lineHeightVMin: IDotcssAnimatable<number>;
606
- fontSize: IDotcssAnimatable<number | string>;
608
+ fontSize: IDotcssAnimatable<NumericLength>;
607
609
  fontSizeCm: IDotcssAnimatable<number>;
608
610
  fontSizeCh: IDotcssAnimatable<number>;
609
611
  fontSizeEm: IDotcssAnimatable<number>;
@@ -619,7 +621,7 @@ export interface IDotcssProp {
619
621
  fontSizeVw: IDotcssAnimatable<number>;
620
622
  fontSizeVMax: IDotcssAnimatable<number>;
621
623
  fontSizeVMin: IDotcssAnimatable<number>;
622
- flexBasis: IDotcssAnimatable<number | string>;
624
+ flexBasis: IDotcssAnimatable<NumericLength>;
623
625
  flexBasisCm: IDotcssAnimatable<number>;
624
626
  flexBasisCh: IDotcssAnimatable<number>;
625
627
  flexBasisEm: IDotcssAnimatable<number>;
@@ -639,7 +641,7 @@ export interface IDotcssProp {
639
641
  borderImage: (value: BackgroundImageFormat) => IDotcssProp;
640
642
  listStyleImage: (value: BackgroundImageFormat) => IDotcssProp;
641
643
  content: (value: BasicCommonValues | UrlType) => IDotcssProp;
642
- transformation: any;
644
+ transform: (transformOrTransformBuilder: BasicCommonValues | TransformationBuilder) => IDotcssProp;
643
645
  opacity: IDotcssAnimatable<number | string>;
644
646
  background: (value: BasicCommonValues | string) => IDotcssProp;
645
647
  backgroundAttachment: (value: BackgroundAttachmentValues) => IDotcssProp;
@@ -837,12 +839,12 @@ export interface IDotcssProp {
837
839
  pointerEvents: (value: BasicCommonValues | string) => IDotcssProp;
838
840
  }
839
841
  export default interface IDotCss extends IDotcssProp {
840
- (document?: Element | string): IDotcssProp;
842
+ (document?: Array<HTMLElement> | HTMLElement | string): IDotcssProp;
841
843
  version: string;
842
844
  }
843
845
  export interface IDotcssAnimatable<T> extends IDotcssProp {
844
846
  (value: T): IDotcssProp;
845
- animate(value: number, duration: number, style: "ease", complete: Function): IDotcssProp;
847
+ animate(value: number | string, duration: number, style: "ease", complete: Function): IDotcssProp;
846
848
  }
847
849
  export interface IDotcssAnimatableColor extends IDotcssProp {
848
850
  (value: ColorFormat | Array<number>): IDotcssProp;
@@ -865,3 +867,151 @@ export interface ShowParams {
865
867
  showStyle?: "normal" | "fade" | "grow";
866
868
  animationStyle?: "ease";
867
869
  }
870
+ export interface TransformationBuilder {
871
+ (trns: ITransformationContext): ITransformationContext | string;
872
+ }
873
+ export type ITransformationContext = {
874
+ matrix: (a: number, b: number, c: number, d: number, tx: number, ty: number) => ITransformationContext;
875
+ matrix3d: (a1: number, b1: number, c1: number, d1: number, a2: number, b2: number, c2: number, d2: number, a3: number, b3: number, c3: number, d3: number, a4: number, b4: number, c4: number, d4: number) => ITransformationContext;
876
+ translate: (x: NumericLength, y?: NumericLength) => ITransformationContext;
877
+ translateCm: (x: number, y?: number) => ITransformationContext;
878
+ translateCh: (x: number, y?: number) => ITransformationContext;
879
+ translateEm: (x: number, y?: number) => ITransformationContext;
880
+ translateEx: (x: number, y?: number) => ITransformationContext;
881
+ translateIn: (x: number, y?: number) => ITransformationContext;
882
+ translateMm: (x: number, y?: number) => ITransformationContext;
883
+ translateP: (x: number, y?: number) => ITransformationContext;
884
+ translatePc: (x: number, y?: number) => ITransformationContext;
885
+ translatePt: (x: number, y?: number) => ITransformationContext;
886
+ translatePx: (x: number, y?: number) => ITransformationContext;
887
+ translateRem: (x: number, y?: number) => ITransformationContext;
888
+ translateVh: (x: number, y?: number) => ITransformationContext;
889
+ translateVw: (x: number, y?: number) => ITransformationContext;
890
+ translateVMax: (x: number, y?: number) => ITransformationContext;
891
+ translateVMin: (x: number, y?: number) => ITransformationContext;
892
+ translate3d: (x: NumericLength, y: NumericLength, z: NumericLength) => ITransformationContext;
893
+ translate3dCm: (x: number, y: number, z: number) => ITransformationContext;
894
+ translate3dCh: (x: number, y: number, z: number) => ITransformationContext;
895
+ translate3dEm: (x: number, y: number, z: number) => ITransformationContext;
896
+ translate3dEx: (x: number, y: number, z: number) => ITransformationContext;
897
+ translate3dIn: (x: number, y: number, z: number) => ITransformationContext;
898
+ translate3dMm: (x: number, y: number, z: number) => ITransformationContext;
899
+ translate3dP: (x: number, y: number, z: number) => ITransformationContext;
900
+ translate3dPc: (x: number, y: number, z: number) => ITransformationContext;
901
+ translate3dPt: (x: number, y: number, z: number) => ITransformationContext;
902
+ translate3dPx: (x: number, y: number, z: number) => ITransformationContext;
903
+ translate3dRem: (x: number, y: number, z: number) => ITransformationContext;
904
+ translate3dVh: (x: number, y: number, z: number) => ITransformationContext;
905
+ translate3dVw: (x: number, y: number, z: number) => ITransformationContext;
906
+ translate3dVMax: (x: number, y: number, z: number) => ITransformationContext;
907
+ translate3dVMin: (x: number, y: number, z: number) => ITransformationContext;
908
+ translateX: (v: NumericLength) => ITransformationContext;
909
+ translateXCm: (v: number) => ITransformationContext;
910
+ translateXCh: (v: number) => ITransformationContext;
911
+ translateXEm: (v: number) => ITransformationContext;
912
+ translateXEx: (v: number) => ITransformationContext;
913
+ translateXIn: (v: number) => ITransformationContext;
914
+ translateXMm: (v: number) => ITransformationContext;
915
+ translateXP: (v: number) => ITransformationContext;
916
+ translateXPc: (v: number) => ITransformationContext;
917
+ translateXPt: (v: number) => ITransformationContext;
918
+ translateXPx: (v: number) => ITransformationContext;
919
+ translateXRem: (v: number) => ITransformationContext;
920
+ translateXVh: (v: number) => ITransformationContext;
921
+ translateXVw: (v: number) => ITransformationContext;
922
+ translateXVMax: (v: number) => ITransformationContext;
923
+ translateXVMin: (v: number) => ITransformationContext;
924
+ translateY: (v: NumericLength) => ITransformationContext;
925
+ translateYCm: (v: number) => ITransformationContext;
926
+ translateYCh: (v: number) => ITransformationContext;
927
+ translateYEm: (v: number) => ITransformationContext;
928
+ translateYEx: (v: number) => ITransformationContext;
929
+ translateYIn: (v: number) => ITransformationContext;
930
+ translateYMm: (v: number) => ITransformationContext;
931
+ translateYP: (v: number) => ITransformationContext;
932
+ translateYPc: (v: number) => ITransformationContext;
933
+ translateYPt: (v: number) => ITransformationContext;
934
+ translateYPx: (v: number) => ITransformationContext;
935
+ translateYRem: (v: number) => ITransformationContext;
936
+ translateYVh: (v: number) => ITransformationContext;
937
+ translateYVw: (v: number) => ITransformationContext;
938
+ translateYVMax: (v: number) => ITransformationContext;
939
+ translateYVMin: (v: number) => ITransformationContext;
940
+ translateZ: (v: NumericLength) => ITransformationContext;
941
+ translateZCm: (v: number) => ITransformationContext;
942
+ translateZCh: (v: number) => ITransformationContext;
943
+ translateZEm: (v: number) => ITransformationContext;
944
+ translateZEx: (v: number) => ITransformationContext;
945
+ translateZIn: (v: number) => ITransformationContext;
946
+ translateZMm: (v: number) => ITransformationContext;
947
+ translateZP: (v: number) => ITransformationContext;
948
+ translateZPc: (v: number) => ITransformationContext;
949
+ translateZPt: (v: number) => ITransformationContext;
950
+ translateZPx: (v: number) => ITransformationContext;
951
+ translateZRem: (v: number) => ITransformationContext;
952
+ translateZVh: (v: number) => ITransformationContext;
953
+ translateZVw: (v: number) => ITransformationContext;
954
+ translateZVMax: (v: number) => ITransformationContext;
955
+ translateZVMin: (v: number) => ITransformationContext;
956
+ scale: (x: number, y?: number) => ITransformationContext;
957
+ scale3d: (x: number, y: number, z: number) => ITransformationContext;
958
+ scaleX: (v: number) => ITransformationContext;
959
+ scaleY: (v: number) => ITransformationContext;
960
+ scaleZ: (v: number) => ITransformationContext;
961
+ rotate: (v: NumericAngle) => ITransformationContext;
962
+ rotateDeg: (v: number) => ITransformationContext;
963
+ rotateTurn: (v: number) => ITransformationContext;
964
+ rotateRad: (v: number) => ITransformationContext;
965
+ rotateGrad: (v: number) => ITransformationContext;
966
+ rotate3d: (x: number, y: number, z: number, a: NumericAngle) => ITransformationContext;
967
+ rotate3dDeg: (x: number, y: number, z: number, a: number) => ITransformationContext;
968
+ rotate3dTurn: (x: number, y: number, z: number, a: number) => ITransformationContext;
969
+ rotate3dRad: (x: number, y: number, z: number, a: number) => ITransformationContext;
970
+ rotate3dGrad: (x: number, y: number, z: number, a: number) => ITransformationContext;
971
+ rotateX: (v: NumericAngle) => ITransformationContext;
972
+ rotateXDeg: (v: number) => ITransformationContext;
973
+ rotateXTurn: (v: number) => ITransformationContext;
974
+ rotateXRad: (v: number) => ITransformationContext;
975
+ rotateXGrad: (v: number) => ITransformationContext;
976
+ rotateY: (v: NumericAngle) => ITransformationContext;
977
+ rotateYDeg: (v: number) => ITransformationContext;
978
+ rotateYTurn: (v: number) => ITransformationContext;
979
+ rotateYRad: (v: number) => ITransformationContext;
980
+ rotateYGrad: (v: number) => ITransformationContext;
981
+ rotateZ: (v: NumericAngle) => ITransformationContext;
982
+ rotateZDeg: (v: number) => ITransformationContext;
983
+ rotateZTurn: (v: number) => ITransformationContext;
984
+ rotateZRad: (v: number) => ITransformationContext;
985
+ rotateZGrad: (v: number) => ITransformationContext;
986
+ skew: (x: NumericAngle, y?: NumericAngle) => ITransformationContext;
987
+ skewDeg: (x: number, y?: number) => ITransformationContext;
988
+ skewTurn: (x: number, y?: number) => ITransformationContext;
989
+ skewRad: (x: number, y?: number) => ITransformationContext;
990
+ skewGrad: (x: number, y?: number) => ITransformationContext;
991
+ skewX: (v: NumericAngle) => ITransformationContext;
992
+ skewXDeg: (v: number) => ITransformationContext;
993
+ skewXTurn: (v: number) => ITransformationContext;
994
+ skewXRad: (v: number) => ITransformationContext;
995
+ skewXGrad: (v: number) => ITransformationContext;
996
+ skewY: (v: NumericAngle) => ITransformationContext;
997
+ skewYDeg: (v: number) => ITransformationContext;
998
+ skewYTurn: (v: number) => ITransformationContext;
999
+ skewYRad: (v: number) => ITransformationContext;
1000
+ skewYGrad: (v: number) => ITransformationContext;
1001
+ perspective: (v: NumericLength) => ITransformationContext;
1002
+ perspectiveCm: (v: number) => ITransformationContext;
1003
+ perspectiveCh: (v: number) => ITransformationContext;
1004
+ perspectiveEm: (v: number) => ITransformationContext;
1005
+ perspectiveEx: (v: number) => ITransformationContext;
1006
+ perspectiveIn: (v: number) => ITransformationContext;
1007
+ perspectiveMm: (v: number) => ITransformationContext;
1008
+ perspectiveP: (v: number) => ITransformationContext;
1009
+ perspectivePc: (v: number) => ITransformationContext;
1010
+ perspectivePt: (v: number) => ITransformationContext;
1011
+ perspectivePx: (v: number) => ITransformationContext;
1012
+ perspectiveRem: (v: number) => ITransformationContext;
1013
+ perspectiveVh: (v: number) => ITransformationContext;
1014
+ perspectiveVw: (v: number) => ITransformationContext;
1015
+ perspectiveVMax: (v: number) => ITransformationContext;
1016
+ perspectiveVMin: (v: number) => ITransformationContext;
1017
+ };
@@ -0,0 +1,24 @@
1
+ import IDotCss from "./i-dotcss";
2
+ declare const dotcss: IDotCss;
3
+ /**
4
+ * The dotcss builder gets extended with all of the css functions at runtime.
5
+ */
6
+ export declare class _Builder {
7
+ currentCss: string;
8
+ targets: Array<HTMLElement>;
9
+ constructor(targets?: Array<HTMLElement>);
10
+ toString(): string;
11
+ hide(style?: {
12
+ duration: any;
13
+ hideStyle: any;
14
+ complete: any;
15
+ }): this;
16
+ show(style?: {
17
+ duration: any;
18
+ showStyle: any;
19
+ complete: any;
20
+ }): import("./i-dotcss").IDotcssProp | this;
21
+ fadeOut(duration: any, complete: any): this;
22
+ fadeIn(duration: any, complete: any): import("./i-dotcss").IDotcssProp | this;
23
+ }
24
+ export default dotcss;
@@ -0,0 +1,10 @@
1
+ export declare const AllLengthUnits: ({
2
+ unit: string;
3
+ jsName?: undefined;
4
+ } | {
5
+ unit: string;
6
+ jsName: string;
7
+ })[];
8
+ export declare const AllAngleUnits: {
9
+ unit: string;
10
+ }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dothtml",
3
- "version": "5.0.4",
3
+ "version": "5.1.0",
4
4
  "description": "DOThtml is a client-side framework for building single-page applications.",
5
5
  "main": "lib/dothtml.js",
6
6
  "devDependencies": {
@@ -11,7 +11,7 @@
11
11
  "jest": "^27.0.6",
12
12
  "ts-jest": "^27.1.4",
13
13
  "ts-loader": "^9.2.8",
14
- "typescript": "^4.6.3",
14
+ "typescript": "^4.9.3",
15
15
  "webpack": "^5.49.0",
16
16
  "webpack-cli": "^4.9.2"
17
17
  },
package/src/component.ts CHANGED
@@ -4,7 +4,7 @@ import { ClassPrefix, eachK, GlobalComponentStack, isF, sT } from "./dot-util";
4
4
  import ERR from "./err";
5
5
  import { IDotDocument, IDotElement, IDotElementDocument, IDotGenericElement } from "./i-dot";
6
6
  import { ArgCallback, ArrayArgCallback, AttrArgCallback } from "./arg-callback-obj";
7
- import IDotCss from "./i-dotcss";
7
+ import IDotCss from "./styling/i-dotcss";
8
8
 
9
9
  interface IPropertyContainer{
10
10
  activePropConstructor: Function;
package/src/dot-util.ts CHANGED
@@ -30,4 +30,40 @@ class _ClassPrefix{
30
30
 
31
31
  export const ClassPrefix = new _ClassPrefix()
32
32
 
33
- export const GlobalComponentStack: Array<Component> = [];
33
+ export const GlobalComponentStack: Array<Component> = [];
34
+
35
+
36
+ export type AnimationType = "geometric"|"exponential"|"ease"|"linear";
37
+
38
+ export var floatRegex = new RegExp("[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?", "g");
39
+
40
+ /**
41
+ * Function that takes in a bunch of parameters and steps the start value toward the target based on timeRemaining and style.
42
+ * currentValue is the current value.
43
+ * targetValue is the target valaue.
44
+ * timeRemaining is the time remaining in ms.
45
+ * stepProgress is the size of this step.
46
+ * totalDuration is the duration of the entire animation from start to finish (not just this step).
47
+ * style is the type of transition (geometric=exponential, ease, linear).
48
+ * Returns the result.
49
+ */
50
+ export function numberStep(startValue: number, targetValue: number, currentTime: number, totalDuration: number, style: AnimationType){
51
+
52
+ startValue = Number(startValue);
53
+ targetValue = Number(targetValue);
54
+
55
+ var timeRemaining = totalDuration - currentTime;
56
+
57
+ switch(style){
58
+ case "geometric":
59
+ case "exponential"://This is kind of stupid now that we have ease. I might come back and add it in the future. For now assume ease.
60
+ // var m = Math.exp(-1 / timeRemaining);
61
+ // return targetValue + m * (startValue - targetValue);
62
+ case "ease":
63
+ var m = (-Math.cos(Math.PI * (currentTime / totalDuration)) + 1) * 0.5;
64
+ return startValue + m * (targetValue - startValue);
65
+ case "linear":
66
+ default:
67
+ return startValue + (targetValue - startValue) * (currentTime / totalDuration);
68
+ }
69
+ }
package/src/dot.ts CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  import eventBus from "./event-bus";
3
3
  import {IDotCore, IDotGenericElement} from "./i-dot";
4
- import dotcss from "./style-builder";
4
+ import dotcss, { _Builder } from "./styling/style-builder";
5
5
  import ERR from "./err";
6
6
  import { DotContent, IDotElementDocument, IDotDocument } from "./i-dot";
7
7
  import { ClassPrefix, eachK, GlobalComponentStack, isF, sT, str } from "./dot-util";
@@ -706,7 +706,7 @@ ext("attr", function(attr, value, arg3?){
706
706
  if (!isF(value)) {
707
707
 
708
708
  // Objects (except for the css builder :/)
709
- if(typeof value == "object" && !(value instanceof dot.css["_Builder"])){
709
+ if(typeof value == "object" && !(value instanceof _Builder)){
710
710
  var originalValue = value;
711
711
  var valueSetter = function(){
712
712
  var str = "";
package/src/dothtml.ts CHANGED
@@ -29,6 +29,6 @@ dot.Component = Component;
29
29
  export default dot;
30
30
  export {default as DotComponent} from "./component";
31
31
  export {IDotElement} from "./i-dot";
32
- export {default as IDotCss} from "./i-dotcss";
32
+ export {default as IDotCss} from "./styling/i-dotcss";
33
33
 
34
34
  // https://www.youtube.com/JoshSideris