@zuzjs/ui 0.4.0 → 0.4.2

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 (46) hide show
  1. package/dist/bin.js +34 -23
  2. package/dist/comps/base.d.ts +11 -1
  3. package/dist/comps/base.js +23 -3
  4. package/dist/comps/box.d.ts +2 -0
  5. package/dist/comps/box.js +0 -7
  6. package/dist/comps/button.d.ts +2 -0
  7. package/dist/comps/button.js +0 -11
  8. package/dist/comps/checkbox.d.ts +2 -0
  9. package/dist/comps/checkbox.js +0 -18
  10. package/dist/comps/contextmenu.d.ts +6 -1
  11. package/dist/comps/contextmenu.js +3 -2
  12. package/dist/comps/cover.d.ts +2 -0
  13. package/dist/comps/cover.js +1 -25
  14. package/dist/comps/dialog.d.ts +0 -0
  15. package/dist/comps/dialog.js +1 -0
  16. package/dist/comps/form.d.ts +6 -1
  17. package/dist/comps/form.js +10 -149
  18. package/dist/comps/heading.d.ts +2 -0
  19. package/dist/comps/heading.js +0 -13
  20. package/dist/comps/icon.d.ts +2 -0
  21. package/dist/comps/icon.js +0 -10
  22. package/dist/comps/image.d.ts +13 -0
  23. package/dist/comps/image.js +8 -0
  24. package/dist/comps/input.d.ts +2 -0
  25. package/dist/comps/input.js +0 -15
  26. package/dist/comps/select.d.ts +18 -0
  27. package/dist/comps/select.js +32 -0
  28. package/dist/comps/sheet.d.ts +4 -1
  29. package/dist/comps/sheet.js +39 -59
  30. package/dist/comps/spinner.d.ts +2 -0
  31. package/dist/comps/spinner.js +0 -1
  32. package/dist/funs/colors.d.ts +0 -6
  33. package/dist/funs/colors.js +0 -6
  34. package/dist/funs/css.d.ts +25 -251
  35. package/dist/funs/css.js +355 -325
  36. package/dist/funs/index.d.ts +10 -1
  37. package/dist/funs/index.js +35 -10
  38. package/dist/funs/stylesheet.d.ts +7 -242
  39. package/dist/funs/stylesheet.js +97 -7
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.js +2 -0
  42. package/dist/styles.css +1 -1
  43. package/dist/types/enums.d.ts +1 -0
  44. package/dist/types/enums.js +1 -0
  45. package/dist/types/index.d.ts +1 -0
  46. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import { animationProps } from "./base";
2
+ import { FORMVALIDATION } from "../types/enums";
3
+ import { dynamicObject } from "../types";
4
+ export interface SelectProps {
5
+ as?: string;
6
+ name?: string;
7
+ animate?: animationProps;
8
+ required?: FORMVALIDATION;
9
+ options: dynamicObject[];
10
+ label?: string;
11
+ defaultValue?: string | dynamicObject;
12
+ onChange?: (v: string | dynamicObject) => void;
13
+ }
14
+ export interface SelectHandler {
15
+ onChange?: (v: string | dynamicObject) => void;
16
+ }
17
+ declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<SelectHandler>>;
18
+ export default Select;
@@ -0,0 +1,32 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { forwardRef, useEffect, useMemo, useRef, useState } from "react";
4
+ import With from "./base";
5
+ import { uuid } from "../funs";
6
+ const chevronExpand = () => _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "currentColor", className: "bi bi-chevron-expand", viewBox: "0 0 16 16", children: _jsx("path", { fillRule: "evenodd", d: "M3.646 9.146a.5.5 0 01.708 0L8 12.793l3.646-3.647a.5.5 0 01.708.708l-4 4a.5.5 0 01-.708 0l-4-4a.5.5 0 010-.708zm0-2.292a.5.5 0 00.708 0L8 3.207l3.646 3.647a.5.5 0 00.708-.708l-4-4a.5.5 0 00-.708 0l-4 4a.5.5 0 000 .708z" }) });
7
+ const Select = forwardRef((props, ref) => {
8
+ const { as, options, name, label, defaultValue, onChange, ...rest } = props;
9
+ const _ref = useRef(null);
10
+ const _id = useMemo(() => name || uuid(), []);
11
+ const [choosing, setChoosing] = useState(false);
12
+ const [value, setValue] = useState(defaultValue || options[0]);
13
+ const updateValue = (o) => {
14
+ setValue(o);
15
+ onChange && onChange(o);
16
+ };
17
+ useEffect(() => {
18
+ document.body.addEventListener(`click`, (e) => {
19
+ setChoosing(false);
20
+ });
21
+ }, []);
22
+ return _jsxs(_Fragment, { children: [_jsxs(With, { popovertarget: _id, tag: `button`, as: as, className: `zuz-select rel flex aic`, ref: _ref, onClick: (e) => setChoosing(true), ...rest, children: [_jsx(With, { tag: `h2`, className: `zuz-selected`, children: value ? `string` == typeof value ? value : value.value : label || `Choose` }), chevronExpand()] }), _jsx(With, { popover: true, id: _id, className: `zuz-select-options abs flex cols`, style: {
23
+ pointerEvents: choosing ? `auto` : `none`,
24
+ }, animate: {
25
+ from: { height: 0, opacity: 0 },
26
+ to: { height: `auto`, opacity: 1 },
27
+ when: choosing,
28
+ curve: `spring`,
29
+ duration: .4
30
+ }, children: options.map((o) => _jsx(With, { onClick: (e) => updateValue(o), className: value && (`string` == typeof o ? o : o.value) == (`string` == typeof value ? value : value.value) ? `selected` : ``, tag: `button`, children: `string` == typeof o ? o : o.label }, `option-${(`string` == typeof o ? o : o.label).replace(/\s+/g, `-`)}-${`string` == typeof o ? o : o.value}`)) })] });
31
+ });
32
+ export default Select;
@@ -1,12 +1,15 @@
1
1
  import { ReactNode } from "react";
2
+ import { animationProps } from "./base";
2
3
  import { SHEET } from "../types/enums";
3
4
  export interface SheetProps {
4
5
  as?: string;
6
+ animate?: animationProps;
5
7
  title?: string;
6
8
  message?: string | ReactNode;
7
9
  }
8
10
  export interface SheetHandler {
9
- show: (message: string, duration?: number, type?: SHEET) => void;
11
+ showDialog: (message: string | ReactNode, onShow: () => void) => void;
12
+ show: (message: string | ReactNode, duration?: number, type?: SHEET) => void;
10
13
  hide: () => void;
11
14
  }
12
15
  declare const Sheet: import("react").ForwardRefExoticComponent<SheetProps & import("react").RefAttributes<SheetHandler>>;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, useEffect, useImperativeHandle, useRef, useState } from "react";
4
4
  import With from "./base";
5
5
  import { SHEET } from "../types/enums";
@@ -12,6 +12,24 @@ const Sheet = forwardRef((props, ref) => {
12
12
  const [_errorType, setErrorType] = useState(SHEET.Default);
13
13
  const divRef = useRef(null);
14
14
  useImperativeHandle(ref, () => ({
15
+ showDialog(message, onShow) {
16
+ if (_sheetTimeout) {
17
+ clearTimeout(_sheetTimeout);
18
+ if (_sheetWobbleTimeout) {
19
+ clearTimeout(_sheetWobbleTimeout);
20
+ }
21
+ divRef.current.classList.remove(`wobble`);
22
+ setTimeout(() => divRef.current.classList.add(`wobble`), 50);
23
+ _sheetWobbleTimeout = setTimeout(() => {
24
+ divRef.current.classList.remove(`wobble`);
25
+ _sheetWobbleTimeout = null;
26
+ }, 500);
27
+ }
28
+ setErrorType(SHEET.Dialog);
29
+ setMsg(message);
30
+ setVisible(true);
31
+ setTimeout(() => onShow ? onShow() : () => { }, 1000);
32
+ },
15
33
  show(message, duration, type) {
16
34
  if (_sheetTimeout) {
17
35
  clearTimeout(_sheetTimeout);
@@ -40,63 +58,25 @@ const Sheet = forwardRef((props, ref) => {
40
58
  }));
41
59
  useEffect(() => {
42
60
  }, []);
43
- return _jsx(With, { as: as, className: `zuz-sheet toast-${_errorType.toLowerCase()} zuz-toast${visible ? ` is-visible` : ``} fixed`.trim(), ...rest, ref: divRef, children: msg == `` ? `Lorem ipsum dolor sit amet, consectetur adipiscing...` : msg });
61
+ return _jsxs(_Fragment, { children: [_errorType == SHEET.Dialog && _jsx(With, { className: `zuz-sheet-overlay fixed fill`, animate: {
62
+ from: { y: `-100vh`, opacity: 0 },
63
+ to: { y: 0, opacity: 1 },
64
+ when: visible,
65
+ duration: 0.1,
66
+ } }), _jsx(With, { animate: _errorType == SHEET.Dialog ? {
67
+ from: { scale: 0, x: `-50%`, y: `-50%`, opacity: 0 },
68
+ to: { scale: 1, x: `-50%`, y: `-50%`, opacity: 1 },
69
+ when: visible,
70
+ duration: 0.3,
71
+ delay: 0.1,
72
+ curve: `spring`
73
+ } : {
74
+ from: { scale: 0, x: `-50%`, y: `-10vh`, opacity: 0 },
75
+ to: { scale: 1, x: `-50%`, y: 0, opacity: 1 },
76
+ when: visible,
77
+ duration: 0.3,
78
+ delay: 0.1,
79
+ curve: `spring`
80
+ }, as: as, className: `zuz-sheet toast-${_errorType.toLowerCase()} fixed`.trim(), ...rest, ref: divRef, children: visible && msg == `` ? `Lorem ipsum dolor sit amet, consectetur adipiscing...` : msg })] });
44
81
  });
45
- // import { forwardRef, ReactNode, Ref, useEffect, useImperativeHandle, useRef, useState } from "react";
46
- // import { css, cleanProps } from "../funs";
47
- // import { UIProps } from "../types/interfaces";
48
- // import { SHEET } from "../types/enums";
49
- // export interface SheetProps extends UIProps<HTMLDivElement> {
50
- // title?: string,
51
- // message?: string | ReactNode
52
- // }
53
- // export interface SheetHandler {
54
- // show: ( message : string, duration?: number, type?: SHEET ) => void,
55
- // hide: () => void
56
- // }
57
- // let _sheetTimeout: NodeJS.Timeout | null = null
58
- // let _sheetWobbleTimeout: NodeJS.Timeout | null = null
59
- // const Sheet = forwardRef<SheetHandler, SheetProps>(( props : SheetProps, ref ) => {
60
- // const { as, title } = props
61
- // const { cx } = css.Build(as)
62
- // const [ visible, setVisible ] = useState(false)
63
- // const [ msg, setMsg ] = useState(``)
64
- // const [ _errorType, setErrorType ] = useState(SHEET.Default)
65
- // const divRef = useRef<HTMLDivElement>(null);
66
- // useImperativeHandle(ref, () => ({
67
- // show( message: string, duration?: number, type?: SHEET ){
68
- // if ( _sheetTimeout ){
69
- // clearTimeout(_sheetTimeout);
70
- // if ( _sheetWobbleTimeout ){
71
- // clearTimeout(_sheetWobbleTimeout);
72
- // }
73
- // divRef.current!.classList.remove(`wobble`)
74
- // setTimeout(() => divRef.current!.classList.add(`wobble`), 50)
75
- // _sheetWobbleTimeout = setTimeout(() => {
76
- // divRef.current!.classList.remove(`wobble`)
77
- // _sheetWobbleTimeout = null
78
- // }, 500)
79
- // }
80
- // _sheetTimeout = setTimeout(() => {
81
- // setVisible(false)
82
- // _sheetTimeout = null
83
- // _sheetWobbleTimeout = null
84
- // }, (duration || 4) * 1000)
85
- // setErrorType(type || SHEET.Default)
86
- // setMsg(message);
87
- // setVisible(true);
88
- // },
89
- // hide(){
90
- // setVisible(false)
91
- // }
92
- // }))
93
- // useEffect(() => {
94
- // }, [])
95
- // return <div
96
- // ref={divRef}
97
- // className={[`zuz-sheet toast-${_errorType.toLowerCase()} zuz-toast${visible ? ` is-visible` : ``} fixed`, ...cx].join(` `).trim()}
98
- // {...(cleanProps(props) as UIProps<HTMLDivElement>)}>
99
- // {msg == `` ? `Lorem ipsum dolor sit amet, consectetur adipiscing...` : msg}
100
- // </div>
101
- // })
102
82
  export default Sheet;
@@ -1,7 +1,9 @@
1
1
  import { ComponentPropsWithoutRef } from "react";
2
+ import { animationProps } from "./base";
2
3
  import { SPINNER } from "../types/enums";
3
4
  export interface SpinnerProps extends ComponentPropsWithoutRef<`div`> {
4
5
  as?: string;
6
+ animate?: animationProps;
5
7
  type?: SPINNER;
6
8
  size?: number;
7
9
  width?: number;
@@ -6,7 +6,6 @@ import { hexToRgba } from "../funs";
6
6
  const Spinner = forwardRef((props, ref) => {
7
7
  const { as, type, width, speed, size, color, background, foreground, ...rest } = props;
8
8
  const defaultColor = `#000000`;
9
- // console.log(`sp`, props)
10
9
  const buildSimple = () => {
11
10
  const c = hexToRgba(color || defaultColor);
12
11
  const bg = hexToRgba(color || defaultColor, .3);
@@ -1,7 +1 @@
1
- /**
2
- * An array of color names.
3
- *
4
- * @remarks
5
- * This array contains a list of color names that can be used in CSS or other color-related operations.
6
- */
7
1
  export declare const colorNames: string[];
@@ -1,9 +1,3 @@
1
- /**
2
- * An array of color names.
3
- *
4
- * @remarks
5
- * This array contains a list of color names that can be used in CSS or other color-related operations.
6
- */
7
1
  export const colorNames = [
8
2
  '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', 'darkgreen', 'darkgrey', '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', 'green', 'greenyellow', 'grey', 'honeydew', 'hotpink', 'indianred', 'indigo', 'ivory', 'khaki', 'lavender', 'lavenderblush', 'lawngreen', 'lemonchiffon', 'lightblue', 'lightcoral', 'lightcyan', 'lightgoldenrodyellow', 'lightgray', 'lightgreen', 'lightgrey', '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'
9
3
  ];
@@ -1,263 +1,37 @@
1
- import { dynamicObject } from "../types/index.js";
1
+ import { dynamicObject } from "../types";
2
+ import Hashids from "hashids";
2
3
  declare class CSS {
3
- unit: any;
4
- PROPS: {
5
- [x: string]: any;
6
- alignContent: string;
7
- alignItems: string;
8
- alignSelf: string;
9
- animation: string;
10
- animationDelay: string;
11
- animationDirection: string;
12
- animationDuration: string;
13
- animationFillMode: string;
14
- animationIterationCount: string;
15
- animationName: string;
16
- animationPlayState: string;
17
- animationTimingFunction: string;
18
- background: string;
19
- backgroundColor: string;
20
- backgroundImage: string;
21
- backgroundOrigin: string;
22
- backgroundPosition: string;
23
- backgroundRepeat: string;
24
- backgroundSize: string;
25
- backfaceVisibility: string;
26
- backgroundAttachment: string;
27
- backgroundBlendMode: string;
28
- backgroundClip: string;
29
- border: string;
30
- borderBottom: string;
31
- borderBottomColor: string;
32
- borderBottomStyle: string;
33
- borderBottomWidth: string;
34
- borderCollapse: string;
35
- borderColor: string;
36
- borderImage: string;
37
- borderImageOutset: string;
38
- borderImageRepeat: string;
39
- borderImageSlice: string;
40
- borderImageSource: string;
41
- borderImageWidth: string;
42
- borderLeft: string;
43
- borderLeftColor: string;
44
- borderLeftStyle: string;
45
- borderLeftWidth: string;
46
- borderRight: string;
47
- borderRightColor: string;
48
- borderRightStyle: string;
49
- borderRightWidth: string;
50
- borderSpacing: string;
51
- borderStyle: string;
52
- borderTop: string;
53
- borderTopColor: string;
54
- borderTopStyle: string;
55
- borderTopWidth: string;
56
- borderWidth: string;
57
- borderRadius: string;
58
- borderTopLeftRadius: string;
59
- borderTopRightRadius: string;
60
- borderBottomLeftRadius: string;
61
- borderBottomRightRadius: string;
62
- bottom: string;
63
- boxDecorationBreak: string;
64
- boxShadow: string;
65
- boxSizing: string;
66
- captionSide: string;
67
- caretColor: string;
68
- "@charset": string;
69
- clear: string;
70
- clip: string;
71
- clipPath: string;
72
- color: string;
73
- columnCount: string;
74
- columnFill: string;
75
- columnGap: string;
76
- colGap: string;
77
- columnRule: string;
78
- columnRuleColor: string;
79
- columnRuleStyle: string;
80
- columnRuleWidth: string;
81
- columnSpan: string;
82
- columnWidth: string;
83
- columns: string;
84
- content: string;
85
- counterIncrement: string;
86
- counterReset: string;
87
- cursor: string;
88
- pointer: string;
89
- direction: string;
90
- display: string;
91
- emptyCells: string;
92
- filter: string;
93
- flex: string;
94
- flexBasis: string;
95
- flexDirection: string;
96
- flexFlow: string;
97
- flexGrow: string;
98
- flexShrink: string;
99
- flexWrap: string;
100
- float: string;
101
- font: string;
102
- fontFamily: string;
103
- fontKerning: string;
104
- fontSize: string;
105
- fontSizeAdjust: string;
106
- fontStretch: string;
107
- fontStyle: string;
108
- fontVariant: string;
109
- bold: string;
110
- fontWeight: string;
111
- gap: string;
112
- grid: string;
113
- gridArea: string;
114
- gridAutoColumns: string;
115
- gridAutoFlow: string;
116
- gridAutoRows: string;
117
- gridColumn: string;
118
- gridColumnEnd: string;
119
- gridColumnGap: string;
120
- gridColumnStart: string;
121
- gridGap: string;
122
- gridRow: string;
123
- gridRowEnd: string;
124
- gridRowGap: string;
125
- gridRowStart: string;
126
- gridTemplate: string;
127
- gridTemplateAreas: string;
128
- gridTemplateColumns: string;
129
- gridTemplateRows: string;
130
- hangingPunctuation: string;
131
- hyphens: string;
132
- isolation: string;
133
- justifyContent: string;
134
- left: string;
135
- letterSpacing: string;
136
- lineHeight: string;
137
- listStyle: string;
138
- listStyleImage: string;
139
- listStylePosition: string;
140
- listStyleType: string;
141
- aspectRatio: string;
142
- margin: string;
143
- marginBottom: string;
144
- marginLeft: string;
145
- marginRight: string;
146
- marginTop: string;
147
- height: string;
148
- minHeight: string;
149
- maxHeight: string;
150
- width: string;
151
- minWidth: string;
152
- maxWidth: string;
153
- mixBlendMode: string;
154
- objectFit: string;
155
- objectPosition: string;
156
- opacity: string;
157
- order: string;
158
- outline: string;
159
- outlineColor: string;
160
- outlineOffset: string;
161
- outlineStyle: string;
162
- outlineWidth: string;
163
- overflow: string;
164
- overflowX: string;
165
- overflowY: string;
166
- padding: string;
167
- paddingBottom: string;
168
- paddingLeft: string;
169
- paddingRight: string;
170
- paddingTop: string;
171
- pageBreakAfter: string;
172
- pageBreakBefore: string;
173
- pageBreakInside: string;
174
- perspective: string;
175
- perspectiveOrigin: string;
176
- pointerEvents: string;
177
- position: string;
178
- quotes: string;
179
- resize: string;
180
- right: string;
181
- scrollBehavior: string;
182
- tabSize: string;
183
- tableLayout: string;
184
- align: string;
185
- textAlign: string;
186
- textAlignLast: string;
187
- textDecoration: string;
188
- textDecorationColor: string;
189
- textDecorationLine: string;
190
- textDecorationStyle: string;
191
- textIndent: string;
192
- textJustify: string;
193
- textOverflow: string;
194
- textShadow: string;
195
- textTransform: string;
196
- top: string;
197
- transform: string;
198
- "transform(2D)": string;
199
- "transformOrigin(twoValue syntax)": string;
200
- transformStyle: string;
201
- transition: string;
202
- transitionDelay: string;
203
- transitionDuration: string;
204
- transitionProperty: string;
205
- transitionTimingFunction: string;
206
- unicodeBidi: string;
207
- userSelect: string;
208
- verticalAlign: string;
209
- visibility: string;
210
- whiteSpace: string;
211
- wordBreak: string;
212
- wordSpacing: string;
213
- textWrap: string;
214
- wordWrap: string;
215
- writingMode: string;
216
- zIndex: string;
217
- backdropFilter: string;
218
- };
219
- DIRECT: {
220
- [x: string]: any;
221
- fill: string;
222
- abc: string;
223
- };
224
- IGNORE: string[];
225
- chars: string;
226
- hashids: any;
227
4
  cx: string[];
228
- cache: {
229
- [x: string]: any;
230
- };
231
- pseudoRegExp: RegExp;
232
- pseudoList: string[];
233
- pseudoCounter: {
234
- [key: string]: number;
235
- };
236
- pseudoPattern: string;
237
- pseudoReg: RegExp;
238
- propCounter: dynamicObject;
239
- keysWithoutCommaToSpace: string[];
5
+ cache: dynamicObject;
6
+ PROPS: dynamicObject;
7
+ DIRECT: dynamicObject;
8
+ hashids: Hashids;
9
+ chars: string;
240
10
  rgbaRegex: RegExp;
11
+ IGNORE: string[];
12
+ unit: any;
13
+ keysWithoutCommaToSpace: string[];
14
+ propCounter: dynamicObject;
241
15
  seperator: string;
242
- constructor(options?: {
243
- [x: string]: any;
244
- } | undefined);
245
- getStyleSheet(cache: {
246
- [key: string]: any;
247
- }, indentLevel?: number, pseudo?: boolean): string;
248
- makeColor(): void;
16
+ pseudoList: string[];
17
+ ids: string[];
18
+ constructor(options?: dynamicObject | undefined);
19
+ styleSheet(cache: dynamicObject, pseudo?: string): string;
20
+ _styleSheet(cache: dynamicObject): string;
21
+ cleanKey(key: string): string;
22
+ deepClean(cache: dynamicObject, level?: number): dynamicObject;
249
23
  makeUnit(k: string, v: any): any;
250
24
  makeValue(k: string, v: any): string;
25
+ calcIndexes(str: string): string;
26
+ mmakeID(k: string, v: string, _out: string): string;
251
27
  makeID(k: string, v: string, _out: string): string;
252
- makeIDFromObject(key: string, obj: dynamicObject): string;
253
- parseRawLine(line: string): {
254
- [key: string]: {};
255
- };
256
- makeCSS(line: string): void;
257
- cleanPseudo(cache: dynamicObject): dynamicObject;
258
- Build(css: string | string[][]): {
28
+ lexer(line: string): dynamicObject;
29
+ processLine(line: string): void;
30
+ Build(css: string | string[][], cli?: boolean): {
259
31
  cx: string[];
260
32
  sheet: string;
261
33
  };
262
34
  }
263
35
  export default CSS;
36
+ export declare const buildWithStyles: (source: dynamicObject) => dynamicObject;
37
+ export declare const getAnimationCurve: (curve?: string) => string;