@cfx-dev/ui-components 3.0.5 → 4.0.1
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/dist/assets/css/Modal.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/components/Slider/Slider.js +1 -0
- package/dist/components/ui.d.ts +2 -2
- package/dist/components/ui.js +13 -13
- package/dist/main.d.ts +1 -1
- package/dist/styles-scss/_ui.scss +5 -5
- package/package.json +1 -1
package/dist/components/ui.d.ts
CHANGED
|
@@ -16,10 +16,10 @@ export declare enum OffsetEnum {
|
|
|
16
16
|
export type OffesetType = keyof typeof OffsetEnum;
|
|
17
17
|
export declare enum MediaQueryEnum {
|
|
18
18
|
initial = "initial",
|
|
19
|
-
xxsmall = "xxsmall",
|
|
20
|
-
xsmall = "xsmall",
|
|
21
19
|
small = "small",
|
|
20
|
+
'small-medium' = "small-medium",
|
|
22
21
|
medium = "medium",
|
|
22
|
+
'medium-large' = "medium-large",
|
|
23
23
|
large = "large",
|
|
24
24
|
xlarge = "xlarge"
|
|
25
25
|
}
|
package/dist/components/ui.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var z = /* @__PURE__ */ ((t) => (t.none = "none", t.hairthin = "hairthin", t.thin = "thin", t.xxsmall = "xxsmall", t.xsmall = "xsmall", t.small = "small", t.normal = "normal", t.medium = "medium", t.large = "large", t.xlarge = "xlarge", t.safezone = "safezone", t))(z || {}), A = /* @__PURE__ */ ((t) => (t.initial = "initial", t.
|
|
1
|
+
var z = /* @__PURE__ */ ((t) => (t.none = "none", t.hairthin = "hairthin", t.thin = "thin", t.xxsmall = "xxsmall", t.xsmall = "xsmall", t.small = "small", t.normal = "normal", t.medium = "medium", t.large = "large", t.xlarge = "xlarge", t.safezone = "safezone", t))(z || {}), A = /* @__PURE__ */ ((t) => (t.initial = "initial", t.small = "small", t["small-medium"] = "small-medium", t.medium = "medium", t["medium-large"] = "medium-large", t.large = "large", t.xlarge = "xlarge", t))(A || {}), d;
|
|
2
2
|
((t) => {
|
|
3
3
|
function i(r = 1) {
|
|
4
4
|
return `calc(var(--quant) * ${r})`;
|
|
5
5
|
}
|
|
6
6
|
t.q = i;
|
|
7
|
-
function
|
|
7
|
+
function m(r) {
|
|
8
8
|
return `var(--offset-${r})`;
|
|
9
9
|
}
|
|
10
|
-
t.offset =
|
|
10
|
+
t.offset = m;
|
|
11
11
|
function u(r = "normal") {
|
|
12
12
|
return `var(--font-size-${r})`;
|
|
13
13
|
}
|
|
@@ -25,20 +25,20 @@ var z = /* @__PURE__ */ ((t) => (t.none = "none", t.hairthin = "hairthin", t.thi
|
|
|
25
25
|
})(t.cls || (t.cls = {})), t.pc = (r) => `${r}%`, t.px = (r) => `${r}px`, t.ch = (r) => `${r}ch`, t.em = (r) => `${r}em`, t.rem = (r) => `${r}rem`, t.vh = (r) => `${r}vh`, t.vw = (r) => `${r}vw`, t.url = (r) => `url(${r})`, t.getOffsetAttrs = (r, l) => typeof l == "string" || typeof l == "number" ? {
|
|
26
26
|
[`data-${r}-initial`]: l.toString()
|
|
27
27
|
} : Object.entries(l).reduce((n, [e, o]) => (n[`data-${r}-${e}`] = o.toString(), n), {}), t.getOffsetStyles = (r, l) => typeof l == "string" ? {
|
|
28
|
-
[`--${r}-initial`]:
|
|
28
|
+
[`--${r}-initial`]: m(l)
|
|
29
29
|
} : typeof l == "number" ? {
|
|
30
30
|
[`--${r}-initial`]: i(l)
|
|
31
|
-
} : Object.entries(l).reduce((n, [e, o]) => (n[`--${r}-${e}`] = typeof o == "number" ? i(o) :
|
|
32
|
-
function
|
|
31
|
+
} : Object.entries(l).reduce((n, [e, o]) => (n[`--${r}-${e}`] = typeof o == "number" ? i(o) : m(o), n), {});
|
|
32
|
+
function s(r, l) {
|
|
33
33
|
const {
|
|
34
34
|
m: n,
|
|
35
35
|
mt: e,
|
|
36
36
|
mr: o,
|
|
37
37
|
mb: f,
|
|
38
|
-
ml:
|
|
39
|
-
p:
|
|
38
|
+
ml: g,
|
|
39
|
+
p: $,
|
|
40
40
|
pt: p,
|
|
41
|
-
pr:
|
|
41
|
+
pr: x,
|
|
42
42
|
pb: a,
|
|
43
43
|
pl: h
|
|
44
44
|
} = r;
|
|
@@ -47,15 +47,15 @@ var z = /* @__PURE__ */ ((t) => (t.none = "none", t.hairthin = "hairthin", t.thi
|
|
|
47
47
|
...e ? l("mt", e) : null,
|
|
48
48
|
...o ? l("mr", o) : null,
|
|
49
49
|
...f ? l("mb", f) : null,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
...g ? l("ml", g) : null,
|
|
51
|
+
...$ ? l("p", $) : null,
|
|
52
52
|
...p ? l("pt", p) : null,
|
|
53
|
-
...
|
|
53
|
+
...x ? l("pr", x) : null,
|
|
54
54
|
...a ? l("pb", a) : null,
|
|
55
55
|
...h ? l("pl", h) : null
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
t.callAllMPProps =
|
|
58
|
+
t.callAllMPProps = s, t.getAllMPStyles = (r) => s(r, t.getOffsetStyles), t.getAllMPAttrs = (r) => s(r, t.getOffsetAttrs);
|
|
59
59
|
})(d || (d = {}));
|
|
60
60
|
export {
|
|
61
61
|
A as MediaQueryEnum,
|
package/dist/main.d.ts
CHANGED
|
@@ -94,5 +94,5 @@ export type { PopoverProps } from './components/Popover';
|
|
|
94
94
|
export type { AvatarProps, AvatarSize } from './components/Avatar';
|
|
95
95
|
export { OnScreenSensor } from './components/OnScreenSensor';
|
|
96
96
|
export { ui } from './components/ui';
|
|
97
|
-
export type { OffesetType, MediaQueryType } from './components/ui';
|
|
97
|
+
export type { OffesetType, MediaQueryType, MediaQueryEnum, OffsetEnum, } from './components/ui';
|
|
98
98
|
export { Symbols } from './components/Symbols';
|
|
@@ -326,12 +326,12 @@ $zindexMap: (
|
|
|
326
326
|
|
|
327
327
|
$mediaMap: (
|
|
328
328
|
'initial': 0px,
|
|
329
|
-
'
|
|
330
|
-
'
|
|
331
|
-
'small': 768px,
|
|
329
|
+
'small': 360px,
|
|
330
|
+
'small-medium': 640px,
|
|
332
331
|
'medium': 1024px,
|
|
333
|
-
'large': 1280px,
|
|
334
|
-
'
|
|
332
|
+
'medium-large': 1280px,
|
|
333
|
+
'large': 1920px,
|
|
334
|
+
'xlarge': 2560px,
|
|
335
335
|
);
|
|
336
336
|
|
|
337
337
|
@mixin media-max($size: 'medium', $fix: 'empty') {
|