@versini/ui-styles 1.4.1 → 1.5.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/README.md +2 -26
- package/dist/index.js +165 -155
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @versini/ui-styles
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Currently, two official plugins are available:
|
|
6
|
-
|
|
7
|
-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
-
|
|
10
|
-
## Expanding the ESLint configuration
|
|
11
|
-
|
|
12
|
-
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
|
|
13
|
-
|
|
14
|
-
- Configure the top-level `parserOptions` property like this:
|
|
15
|
-
|
|
16
|
-
```js
|
|
17
|
-
parserOptions: {
|
|
18
|
-
ecmaVersion: 'latest',
|
|
19
|
-
sourceType: 'module',
|
|
20
|
-
project: ['./tsconfig.json', './tsconfig.node.json'],
|
|
21
|
-
tsconfigRootDir: __dirname,
|
|
22
|
-
},
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
|
|
26
|
-
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
|
|
27
|
-
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
|
|
3
|
+
Required package to handle styles via TailwindCSS, including Typography.
|
package/dist/index.js
CHANGED
|
@@ -54,13 +54,13 @@ var Rr = { exports: {} };
|
|
|
54
54
|
(function(e, t) {
|
|
55
55
|
var r = 200, i = "__lodash_hash_undefined__", n = 800, a = 16, u = 9007199254740991, p = "[object Arguments]", s = "[object Array]", l = "[object AsyncFunction]", d = "[object Boolean]", g = "[object Date]", b = "[object Error]", M = "[object Function]", I = "[object GeneratorFunction]", c = "[object Map]", m = "[object Number]", _ = "[object Null]", T = "[object Object]", k = "[object Proxy]", E = "[object RegExp]", x = "[object Set]", L = "[object String]", N = "[object Undefined]", $ = "[object WeakMap]", A = "[object ArrayBuffer]", R = "[object DataView]", G = "[object Float32Array]", ee = "[object Float64Array]", ge = "[object Int8Array]", le = "[object Int16Array]", ve = "[object Int32Array]", V = "[object Uint8Array]", ye = "[object Uint8ClampedArray]", ke = "[object Uint16Array]", Ne = "[object Uint32Array]", Pe = /[\\^$.*+?()[\]{}|]/g, q = /^\[object .+?Constructor\]$/, B = /^(?:0|[1-9]\d*)$/, O = {};
|
|
56
56
|
O[G] = O[ee] = O[ge] = O[le] = O[ve] = O[V] = O[ye] = O[ke] = O[Ne] = !0, O[p] = O[s] = O[A] = O[d] = O[R] = O[g] = O[b] = O[M] = O[c] = O[m] = O[T] = O[E] = O[x] = O[L] = O[$] = !1;
|
|
57
|
-
var w = typeof st == "object" && st && st.Object === Object && st, z = typeof self == "object" && self && self.Object === Object && self,
|
|
57
|
+
var w = typeof st == "object" && st && st.Object === Object && st, z = typeof self == "object" && self && self.Object === Object && self, U = w || z || Function("return this")(), S = t && !t.nodeType && t, X = S && !0 && e && !e.nodeType && e, ne = X && X.exports === S, Z = ne && w.process, j = function() {
|
|
58
58
|
try {
|
|
59
59
|
var f = X && X.require && X.require("util").types;
|
|
60
60
|
return f || Z && Z.binding && Z.binding("util");
|
|
61
61
|
} catch {
|
|
62
62
|
}
|
|
63
|
-
}(), ae =
|
|
63
|
+
}(), ae = j && j.isTypedArray;
|
|
64
64
|
function me(f, v, y) {
|
|
65
65
|
switch (y.length) {
|
|
66
66
|
case 0:
|
|
@@ -92,18 +92,18 @@ var Rr = { exports: {} };
|
|
|
92
92
|
return f(v(y));
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
var Me = Array.prototype, _e = Function.prototype, Se = Object.prototype, Oe =
|
|
95
|
+
var Me = Array.prototype, _e = Function.prototype, Se = Object.prototype, Oe = U["__core-js_shared__"], Ae = _e.toString, Le = Se.hasOwnProperty, Je = function() {
|
|
96
96
|
var f = /[^.]+$/.exec(Oe && Oe.keys && Oe.keys.IE_PROTO || "");
|
|
97
97
|
return f ? "Symbol(src)_1." + f : "";
|
|
98
98
|
}(), Ye = Se.toString, Vt = Ae.call(Object), Jt = RegExp(
|
|
99
99
|
"^" + Ae.call(Le).replace(Pe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
100
|
-
), it = ne ?
|
|
100
|
+
), it = ne ? U.Buffer : void 0, Tt = U.Symbol, xt = U.Uint8Array, St = it ? it.allocUnsafe : void 0, Pn = $e(Object.getPrototypeOf, Object), Ln = Object.create, _o = Se.propertyIsEnumerable, To = Me.splice, Ze = Tt ? Tt.toStringTag : void 0, kt = function() {
|
|
101
101
|
try {
|
|
102
102
|
var f = er(Object, "defineProperty");
|
|
103
103
|
return f({}, "", {}), f;
|
|
104
104
|
} catch {
|
|
105
105
|
}
|
|
106
|
-
}(), xo = it ? it.isBuffer : void 0, In = Math.max, So = Date.now, An = er(
|
|
106
|
+
}(), xo = it ? it.isBuffer : void 0, In = Math.max, So = Date.now, An = er(U, "Map"), pt = er(Object, "create"), ko = /* @__PURE__ */ function() {
|
|
107
107
|
function f() {
|
|
108
108
|
}
|
|
109
109
|
return function(v) {
|
|
@@ -950,7 +950,7 @@ var La = pn.exports;
|
|
|
950
950
|
})(yi);
|
|
951
951
|
let fr = yi;
|
|
952
952
|
var Ti = (fr.__esModule ? fr : { default: fr }).default;
|
|
953
|
-
const
|
|
953
|
+
const H = /* @__PURE__ */ dn(Ti), h = Ti, Y = (e) => e.toFixed(7).replace(/(\.[0-9]+?)0+$/, "$1").replace(/\.0$/, ""), Ee = (e) => `${Y(e / 16)}rem`, o = (e, t) => `${Y(e / t)}em`, Fe = (e) => {
|
|
954
954
|
e = e.replace("#", ""), e = e.length === 3 ? e.replace(/./g, "$&$&") : e;
|
|
955
955
|
const t = parseInt(e.substring(0, 2), 16), r = parseInt(e.substring(2, 4), 16), i = parseInt(e.substring(4, 6), 16);
|
|
956
956
|
return `${t} ${r} ${i}`;
|
|
@@ -3933,8 +3933,8 @@ F.combinator = Ys;
|
|
|
3933
3933
|
var O = {}, w = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
3934
3934
|
for (var z in q)
|
|
3935
3935
|
if (Object.prototype.hasOwnProperty.call(q, z)) {
|
|
3936
|
-
var
|
|
3937
|
-
|
|
3936
|
+
var U = w ? Object.getOwnPropertyDescriptor(q, z) : null;
|
|
3937
|
+
U && (U.get || U.set) ? Object.defineProperty(O, z, U) : O[z] = q[z];
|
|
3938
3938
|
}
|
|
3939
3939
|
return O.default = q, B && B.set(q, O), O;
|
|
3940
3940
|
}
|
|
@@ -4012,7 +4012,7 @@ F.combinator = Ys;
|
|
|
4012
4012
|
this.root = new r.default({
|
|
4013
4013
|
source: z
|
|
4014
4014
|
}), this.root.errorGenerator = this._errorGenerator();
|
|
4015
|
-
var
|
|
4015
|
+
var U = new i.default({
|
|
4016
4016
|
source: {
|
|
4017
4017
|
start: {
|
|
4018
4018
|
line: 1,
|
|
@@ -4020,13 +4020,13 @@ F.combinator = Ys;
|
|
|
4020
4020
|
}
|
|
4021
4021
|
}
|
|
4022
4022
|
});
|
|
4023
|
-
this.root.append(
|
|
4023
|
+
this.root.append(U), this.current = U, this.loop();
|
|
4024
4024
|
}
|
|
4025
4025
|
var B = q.prototype;
|
|
4026
4026
|
return B._errorGenerator = function() {
|
|
4027
4027
|
var w = this;
|
|
4028
|
-
return function(z,
|
|
4029
|
-
return typeof w.rule == "string" ? new Error(z) : w.rule.error(z,
|
|
4028
|
+
return function(z, U) {
|
|
4029
|
+
return typeof w.rule == "string" ? new Error(z) : w.rule.error(z, U);
|
|
4030
4030
|
};
|
|
4031
4031
|
}, B.attribute = function() {
|
|
4032
4032
|
var w = [], z = this.currToken;
|
|
@@ -4034,67 +4034,67 @@ F.combinator = Ys;
|
|
|
4034
4034
|
w.push(this.currToken), this.position++;
|
|
4035
4035
|
if (this.currToken[c.FIELDS.TYPE] !== m.closeSquare)
|
|
4036
4036
|
return this.expected("closing square bracket", this.currToken[c.FIELDS.START_POS]);
|
|
4037
|
-
var
|
|
4037
|
+
var U = w.length, S = {
|
|
4038
4038
|
source: le(z[1], z[2], this.currToken[3], this.currToken[4]),
|
|
4039
4039
|
sourceIndex: z[c.FIELDS.START_POS]
|
|
4040
4040
|
};
|
|
4041
|
-
if (
|
|
4041
|
+
if (U === 1 && !~[m.word].indexOf(w[0][c.FIELDS.TYPE]))
|
|
4042
4042
|
return this.expected("attribute", w[0][c.FIELDS.START_POS]);
|
|
4043
|
-
for (var X = 0, ne = "", Z = "",
|
|
4043
|
+
for (var X = 0, ne = "", Z = "", j = null, ae = !1; X < U; ) {
|
|
4044
4044
|
var me = w[X], Q = this.content(me), ce = w[X + 1];
|
|
4045
4045
|
switch (me[c.FIELDS.TYPE]) {
|
|
4046
4046
|
case m.space:
|
|
4047
4047
|
if (ae = !0, this.options.lossy)
|
|
4048
4048
|
break;
|
|
4049
|
-
if (
|
|
4050
|
-
(0, T.ensureObject)(S, "spaces",
|
|
4051
|
-
var Ce = S.spaces[
|
|
4052
|
-
S.spaces[
|
|
4053
|
-
var $e = (0, T.getProp)(S, "raws", "spaces",
|
|
4054
|
-
$e && (S.raws.spaces[
|
|
4049
|
+
if (j) {
|
|
4050
|
+
(0, T.ensureObject)(S, "spaces", j);
|
|
4051
|
+
var Ce = S.spaces[j].after || "";
|
|
4052
|
+
S.spaces[j].after = Ce + Q;
|
|
4053
|
+
var $e = (0, T.getProp)(S, "raws", "spaces", j, "after") || null;
|
|
4054
|
+
$e && (S.raws.spaces[j].after = $e + Q);
|
|
4055
4055
|
} else
|
|
4056
4056
|
ne = ne + Q, Z = Z + Q;
|
|
4057
4057
|
break;
|
|
4058
4058
|
case m.asterisk:
|
|
4059
4059
|
if (ce[c.FIELDS.TYPE] === m.equals)
|
|
4060
|
-
S.operator = Q,
|
|
4061
|
-
else if ((!S.namespace ||
|
|
4060
|
+
S.operator = Q, j = "operator";
|
|
4061
|
+
else if ((!S.namespace || j === "namespace" && !ae) && ce) {
|
|
4062
4062
|
ne && ((0, T.ensureObject)(S, "spaces", "attribute"), S.spaces.attribute.before = ne, ne = ""), Z && ((0, T.ensureObject)(S, "raws", "spaces", "attribute"), S.raws.spaces.attribute.before = ne, Z = ""), S.namespace = (S.namespace || "") + Q;
|
|
4063
4063
|
var Me = (0, T.getProp)(S, "raws", "namespace") || null;
|
|
4064
|
-
Me && (S.raws.namespace += Q),
|
|
4064
|
+
Me && (S.raws.namespace += Q), j = "namespace";
|
|
4065
4065
|
}
|
|
4066
4066
|
ae = !1;
|
|
4067
4067
|
break;
|
|
4068
4068
|
case m.dollar:
|
|
4069
|
-
if (
|
|
4069
|
+
if (j === "value") {
|
|
4070
4070
|
var _e = (0, T.getProp)(S, "raws", "value");
|
|
4071
4071
|
S.value += "$", _e && (S.raws.value = _e + "$");
|
|
4072
4072
|
break;
|
|
4073
4073
|
}
|
|
4074
4074
|
case m.caret:
|
|
4075
|
-
ce[c.FIELDS.TYPE] === m.equals && (S.operator = Q,
|
|
4075
|
+
ce[c.FIELDS.TYPE] === m.equals && (S.operator = Q, j = "operator"), ae = !1;
|
|
4076
4076
|
break;
|
|
4077
4077
|
case m.combinator:
|
|
4078
|
-
if (Q === "~" && ce[c.FIELDS.TYPE] === m.equals && (S.operator = Q,
|
|
4078
|
+
if (Q === "~" && ce[c.FIELDS.TYPE] === m.equals && (S.operator = Q, j = "operator"), Q !== "|") {
|
|
4079
4079
|
ae = !1;
|
|
4080
4080
|
break;
|
|
4081
4081
|
}
|
|
4082
|
-
ce[c.FIELDS.TYPE] === m.equals ? (S.operator = Q,
|
|
4082
|
+
ce[c.FIELDS.TYPE] === m.equals ? (S.operator = Q, j = "operator") : !S.namespace && !S.attribute && (S.namespace = !0), ae = !1;
|
|
4083
4083
|
break;
|
|
4084
4084
|
case m.word:
|
|
4085
4085
|
if (ce && this.content(ce) === "|" && w[X + 2] && w[X + 2][c.FIELDS.TYPE] !== m.equals && // this look-ahead probably fails with comment nodes involved.
|
|
4086
4086
|
!S.operator && !S.namespace)
|
|
4087
|
-
S.namespace = Q,
|
|
4088
|
-
else if (!S.attribute ||
|
|
4087
|
+
S.namespace = Q, j = "namespace";
|
|
4088
|
+
else if (!S.attribute || j === "attribute" && !ae) {
|
|
4089
4089
|
ne && ((0, T.ensureObject)(S, "spaces", "attribute"), S.spaces.attribute.before = ne, ne = ""), Z && ((0, T.ensureObject)(S, "raws", "spaces", "attribute"), S.raws.spaces.attribute.before = Z, Z = ""), S.attribute = (S.attribute || "") + Q;
|
|
4090
4090
|
var Se = (0, T.getProp)(S, "raws", "attribute") || null;
|
|
4091
|
-
Se && (S.raws.attribute += Q),
|
|
4092
|
-
} else if (!S.value && S.value !== "" ||
|
|
4091
|
+
Se && (S.raws.attribute += Q), j = "attribute";
|
|
4092
|
+
} else if (!S.value && S.value !== "" || j === "value" && !ae) {
|
|
4093
4093
|
var Oe = (0, T.unesc)(Q), Ae = (0, T.getProp)(S, "raws", "value") || "", Le = S.value || "";
|
|
4094
|
-
S.value = Le + Oe, S.quoteMark = null, (Oe !== Q || Ae) && ((0, T.ensureObject)(S, "raws"), S.raws.value = (Ae || Le) + Q),
|
|
4094
|
+
S.value = Le + Oe, S.quoteMark = null, (Oe !== Q || Ae) && ((0, T.ensureObject)(S, "raws"), S.raws.value = (Ae || Le) + Q), j = "value";
|
|
4095
4095
|
} else {
|
|
4096
4096
|
var Je = Q === "i" || Q === "I";
|
|
4097
|
-
(S.value || S.value === "") && (S.quoteMark || ae) ? (S.insensitive = Je, (!Je || Q === "I") && ((0, T.ensureObject)(S, "raws"), S.raws.insensitiveFlag = Q),
|
|
4097
|
+
(S.value || S.value === "") && (S.quoteMark || ae) ? (S.insensitive = Je, (!Je || Q === "I") && ((0, T.ensureObject)(S, "raws"), S.raws.insensitiveFlag = Q), j = "insensitive", ne && ((0, T.ensureObject)(S, "spaces", "insensitive"), S.spaces.insensitive.before = ne, ne = ""), Z && ((0, T.ensureObject)(S, "raws", "spaces", "insensitive"), S.raws.spaces.insensitive.before = Z, Z = "")) : (S.value || S.value === "") && (j = "value", S.value += Q, S.raws.value && (S.raws.value += Q));
|
|
4098
4098
|
}
|
|
4099
4099
|
ae = !1;
|
|
4100
4100
|
break;
|
|
@@ -4104,7 +4104,7 @@ F.combinator = Ys;
|
|
|
4104
4104
|
index: me[c.FIELDS.START_POS]
|
|
4105
4105
|
});
|
|
4106
4106
|
var Ye = (0, d.unescapeValue)(Q), Vt = Ye.unescaped, Jt = Ye.quoteMark;
|
|
4107
|
-
S.value = Vt, S.quoteMark = Jt,
|
|
4107
|
+
S.value = Vt, S.quoteMark = Jt, j = "value", (0, T.ensureObject)(S, "raws"), S.raws.value = Q, ae = !1;
|
|
4108
4108
|
break;
|
|
4109
4109
|
case m.equals:
|
|
4110
4110
|
if (!S.attribute)
|
|
@@ -4113,16 +4113,16 @@ F.combinator = Ys;
|
|
|
4113
4113
|
return this.error('Unexpected "=" found; an operator was already defined.', {
|
|
4114
4114
|
index: me[c.FIELDS.START_POS]
|
|
4115
4115
|
});
|
|
4116
|
-
S.operator = S.operator ? S.operator + Q : Q,
|
|
4116
|
+
S.operator = S.operator ? S.operator + Q : Q, j = "operator", ae = !1;
|
|
4117
4117
|
break;
|
|
4118
4118
|
case m.comment:
|
|
4119
|
-
if (
|
|
4120
|
-
if (ae || ce && ce[c.FIELDS.TYPE] === m.space ||
|
|
4121
|
-
var it = (0, T.getProp)(S, "spaces",
|
|
4122
|
-
(0, T.ensureObject)(S, "raws", "spaces",
|
|
4119
|
+
if (j)
|
|
4120
|
+
if (ae || ce && ce[c.FIELDS.TYPE] === m.space || j === "insensitive") {
|
|
4121
|
+
var it = (0, T.getProp)(S, "spaces", j, "after") || "", Tt = (0, T.getProp)(S, "raws", "spaces", j, "after") || it;
|
|
4122
|
+
(0, T.ensureObject)(S, "raws", "spaces", j), S.raws.spaces[j].after = Tt + Q;
|
|
4123
4123
|
} else {
|
|
4124
|
-
var xt = S[
|
|
4125
|
-
(0, T.ensureObject)(S, "raws"), S.raws[
|
|
4124
|
+
var xt = S[j] || "", St = (0, T.getProp)(S, "raws", j) || xt;
|
|
4125
|
+
(0, T.ensureObject)(S, "raws"), S.raws[j] = St + Q;
|
|
4126
4126
|
}
|
|
4127
4127
|
else
|
|
4128
4128
|
Z = Z + Q;
|
|
@@ -4137,7 +4137,7 @@ F.combinator = Ys;
|
|
|
4137
4137
|
ye(S, "attribute"), ye(S, "namespace"), this.newNode(new d.default(S)), this.position++;
|
|
4138
4138
|
}, B.parseWhitespaceEquivalentTokens = function(w) {
|
|
4139
4139
|
w < 0 && (w = this.tokens.length);
|
|
4140
|
-
var z = this.position,
|
|
4140
|
+
var z = this.position, U = [], S = "", X = void 0;
|
|
4141
4141
|
do
|
|
4142
4142
|
if (R[this.currToken[c.FIELDS.TYPE]])
|
|
4143
4143
|
this.options.lossy || (S += this.content());
|
|
@@ -4148,17 +4148,17 @@ F.combinator = Ys;
|
|
|
4148
4148
|
source: ve(this.currToken),
|
|
4149
4149
|
sourceIndex: this.currToken[c.FIELDS.START_POS],
|
|
4150
4150
|
spaces: ne
|
|
4151
|
-
}),
|
|
4151
|
+
}), U.push(X);
|
|
4152
4152
|
}
|
|
4153
4153
|
while (++this.position < w);
|
|
4154
4154
|
if (S) {
|
|
4155
4155
|
if (X)
|
|
4156
4156
|
X.spaces.after = S;
|
|
4157
4157
|
else if (!this.options.lossy) {
|
|
4158
|
-
var Z = this.tokens[z],
|
|
4159
|
-
|
|
4158
|
+
var Z = this.tokens[z], j = this.tokens[this.position - 1];
|
|
4159
|
+
U.push(new s.default({
|
|
4160
4160
|
value: "",
|
|
4161
|
-
source: le(Z[c.FIELDS.START_LINE], Z[c.FIELDS.START_COL],
|
|
4161
|
+
source: le(Z[c.FIELDS.START_LINE], Z[c.FIELDS.START_COL], j[c.FIELDS.END_LINE], j[c.FIELDS.END_COL]),
|
|
4162
4162
|
sourceIndex: Z[c.FIELDS.START_POS],
|
|
4163
4163
|
spaces: {
|
|
4164
4164
|
before: S,
|
|
@@ -4167,14 +4167,14 @@ F.combinator = Ys;
|
|
|
4167
4167
|
}));
|
|
4168
4168
|
}
|
|
4169
4169
|
}
|
|
4170
|
-
return
|
|
4170
|
+
return U;
|
|
4171
4171
|
}, B.convertWhitespaceNodesToSpace = function(w, z) {
|
|
4172
|
-
var
|
|
4172
|
+
var U = this;
|
|
4173
4173
|
z === void 0 && (z = !1);
|
|
4174
4174
|
var S = "", X = "";
|
|
4175
4175
|
w.forEach(function(Z) {
|
|
4176
|
-
var
|
|
4177
|
-
S +=
|
|
4176
|
+
var j = U.lossySpace(Z.spaces.before, z), ae = U.lossySpace(Z.rawSpaceBefore, z);
|
|
4177
|
+
S += j + U.lossySpace(Z.spaces.after, z && j.length === 0), X += j + Z.value + U.lossySpace(Z.rawSpaceAfter, z && ae.length === 0);
|
|
4178
4178
|
}), X === S && (X = void 0);
|
|
4179
4179
|
var ne = {
|
|
4180
4180
|
space: S,
|
|
@@ -4185,13 +4185,13 @@ F.combinator = Ys;
|
|
|
4185
4185
|
return w === void 0 && (w = this.position), this.tokens[w + 0] && this.tokens[w + 0][c.FIELDS.TYPE] === m.slash && this.tokens[w + 1] && this.tokens[w + 1][c.FIELDS.TYPE] === m.word && this.tokens[w + 2] && this.tokens[w + 2][c.FIELDS.TYPE] === m.slash;
|
|
4186
4186
|
}, B.namedCombinator = function() {
|
|
4187
4187
|
if (this.isNamedCombinator()) {
|
|
4188
|
-
var w = this.content(this.tokens[this.position + 1]), z = (0, T.unesc)(w).toLowerCase(),
|
|
4189
|
-
z !== w && (
|
|
4188
|
+
var w = this.content(this.tokens[this.position + 1]), z = (0, T.unesc)(w).toLowerCase(), U = {};
|
|
4189
|
+
z !== w && (U.value = "/" + w + "/");
|
|
4190
4190
|
var S = new b.default({
|
|
4191
4191
|
value: "/" + z + "/",
|
|
4192
4192
|
source: le(this.currToken[c.FIELDS.START_LINE], this.currToken[c.FIELDS.START_COL], this.tokens[this.position + 2][c.FIELDS.END_LINE], this.tokens[this.position + 2][c.FIELDS.END_COL]),
|
|
4193
4193
|
sourceIndex: this.currToken[c.FIELDS.START_POS],
|
|
4194
|
-
raws:
|
|
4194
|
+
raws: U
|
|
4195
4195
|
});
|
|
4196
4196
|
return this.position = this.position + 3, S;
|
|
4197
4197
|
} else
|
|
@@ -4202,20 +4202,20 @@ F.combinator = Ys;
|
|
|
4202
4202
|
return this.namespace();
|
|
4203
4203
|
var z = this.locateNextMeaningfulToken(this.position);
|
|
4204
4204
|
if (z < 0 || this.tokens[z][c.FIELDS.TYPE] === m.comma) {
|
|
4205
|
-
var
|
|
4206
|
-
if (
|
|
4205
|
+
var U = this.parseWhitespaceEquivalentTokens(z);
|
|
4206
|
+
if (U.length > 0) {
|
|
4207
4207
|
var S = this.current.last;
|
|
4208
4208
|
if (S) {
|
|
4209
|
-
var X = this.convertWhitespaceNodesToSpace(
|
|
4209
|
+
var X = this.convertWhitespaceNodesToSpace(U), ne = X.space, Z = X.rawSpace;
|
|
4210
4210
|
Z !== void 0 && (S.rawSpaceAfter += Z), S.spaces.after += ne;
|
|
4211
4211
|
} else
|
|
4212
|
-
|
|
4212
|
+
U.forEach(function(Ae) {
|
|
4213
4213
|
return w.newNode(Ae);
|
|
4214
4214
|
});
|
|
4215
4215
|
}
|
|
4216
4216
|
return;
|
|
4217
4217
|
}
|
|
4218
|
-
var
|
|
4218
|
+
var j = this.currToken, ae = void 0;
|
|
4219
4219
|
z > this.position && (ae = this.parseWhitespaceEquivalentTokens(z));
|
|
4220
4220
|
var me;
|
|
4221
4221
|
if (this.isNamedCombinator() ? me = this.namedCombinator() : this.currToken[c.FIELDS.TYPE] === m.combinator ? (me = new b.default({
|
|
@@ -4235,8 +4235,8 @@ F.combinator = Ys;
|
|
|
4235
4235
|
};
|
|
4236
4236
|
Me.endsWith(" ") && _e.endsWith(" ") ? (Se.before = Me.slice(0, Me.length - 1), Oe.spaces.before = _e.slice(0, _e.length - 1)) : Me.startsWith(" ") && _e.startsWith(" ") ? (Se.after = Me.slice(1), Oe.spaces.after = _e.slice(1)) : Oe.value = _e, me = new b.default({
|
|
4237
4237
|
value: " ",
|
|
4238
|
-
source: V(
|
|
4239
|
-
sourceIndex:
|
|
4238
|
+
source: V(j, this.tokens[this.position - 1]),
|
|
4239
|
+
sourceIndex: j[c.FIELDS.START_POS],
|
|
4240
4240
|
spaces: Se,
|
|
4241
4241
|
raws: Oe
|
|
4242
4242
|
});
|
|
@@ -4296,12 +4296,12 @@ F.combinator = Ys;
|
|
|
4296
4296
|
}, B.parentheses = function() {
|
|
4297
4297
|
var w = this.current.last, z = 1;
|
|
4298
4298
|
if (this.position++, w && w.type === _.PSEUDO) {
|
|
4299
|
-
var
|
|
4299
|
+
var U = new i.default({
|
|
4300
4300
|
source: {
|
|
4301
4301
|
start: ee(this.tokens[this.position - 1])
|
|
4302
4302
|
}
|
|
4303
4303
|
}), S = this.current;
|
|
4304
|
-
for (w.append(
|
|
4304
|
+
for (w.append(U), this.current = U; this.position < this.tokens.length && z; )
|
|
4305
4305
|
this.currToken[c.FIELDS.TYPE] === m.openParenthesis && z++, this.currToken[c.FIELDS.TYPE] === m.closeParenthesis && z--, z ? this.parse() : (this.current.source.end = ge(this.currToken), this.current.parent.source.end = ge(this.currToken), this.position++);
|
|
4306
4306
|
this.current = S;
|
|
4307
4307
|
} else {
|
|
@@ -4316,7 +4316,7 @@ F.combinator = Ys;
|
|
|
4316
4316
|
if (z)
|
|
4317
4317
|
return this.expected("closing parenthesis", this.currToken[c.FIELDS.START_POS]);
|
|
4318
4318
|
}, B.pseudo = function() {
|
|
4319
|
-
for (var w = this, z = "",
|
|
4319
|
+
for (var w = this, z = "", U = this.currToken; this.currToken && this.currToken[c.FIELDS.TYPE] === m.colon; )
|
|
4320
4320
|
z += this.content(), this.position++;
|
|
4321
4321
|
if (!this.currToken)
|
|
4322
4322
|
return this.expected(["pseudo-class", "pseudo-element"], this.position - 1);
|
|
@@ -4324,8 +4324,8 @@ F.combinator = Ys;
|
|
|
4324
4324
|
this.splitWord(!1, function(S, X) {
|
|
4325
4325
|
z += S, w.newNode(new l.default({
|
|
4326
4326
|
value: z,
|
|
4327
|
-
source: V(
|
|
4328
|
-
sourceIndex:
|
|
4327
|
+
source: V(U, w.currToken),
|
|
4328
|
+
sourceIndex: U[c.FIELDS.START_POS]
|
|
4329
4329
|
})), X > 1 && w.nextToken && w.nextToken[c.FIELDS.TYPE] === m.openParenthesis && w.error("Misplaced parenthesis.", {
|
|
4330
4330
|
index: w.nextToken[c.FIELDS.START_POS]
|
|
4331
4331
|
});
|
|
@@ -4348,14 +4348,14 @@ F.combinator = Ys;
|
|
|
4348
4348
|
var z = this.nextToken;
|
|
4349
4349
|
if (z && this.content(z) === "|")
|
|
4350
4350
|
return this.position++, this.namespace();
|
|
4351
|
-
var
|
|
4351
|
+
var U = this.currToken;
|
|
4352
4352
|
this.newNode(new g.default({
|
|
4353
4353
|
value: this.content(),
|
|
4354
|
-
source: ve(
|
|
4355
|
-
sourceIndex:
|
|
4354
|
+
source: ve(U),
|
|
4355
|
+
sourceIndex: U[c.FIELDS.START_POS]
|
|
4356
4356
|
}), w), this.position++;
|
|
4357
4357
|
}, B.splitWord = function(w, z) {
|
|
4358
|
-
for (var
|
|
4358
|
+
for (var U = this, S = this.nextToken, X = this.content(); S && ~[m.dollar, m.caret, m.equals, m.word].indexOf(S[c.FIELDS.TYPE]); ) {
|
|
4359
4359
|
this.position++;
|
|
4360
4360
|
var ne = this.content();
|
|
4361
4361
|
if (X += ne, ne.lastIndexOf("\\") === ne.length - 1) {
|
|
@@ -4364,7 +4364,7 @@ F.combinator = Ys;
|
|
|
4364
4364
|
}
|
|
4365
4365
|
S = this.nextToken;
|
|
4366
4366
|
}
|
|
4367
|
-
var
|
|
4367
|
+
var j = ke(X, ".").filter(function(ce) {
|
|
4368
4368
|
var Ce = X[ce - 1] === "\\", $e = /^\d+\.\d+%$/.test(X);
|
|
4369
4369
|
return !Ce && !$e;
|
|
4370
4370
|
}), ae = ke(X, "#").filter(function(ce) {
|
|
@@ -4373,13 +4373,13 @@ F.combinator = Ys;
|
|
|
4373
4373
|
me.length && (ae = ae.filter(function(ce) {
|
|
4374
4374
|
return !~me.indexOf(ce);
|
|
4375
4375
|
}));
|
|
4376
|
-
var Q = (0, I.default)(Ne([0].concat(
|
|
4376
|
+
var Q = (0, I.default)(Ne([0].concat(j, ae)));
|
|
4377
4377
|
Q.forEach(function(ce, Ce) {
|
|
4378
4378
|
var $e = Q[Ce + 1] || X.length, Me = X.slice(ce, $e);
|
|
4379
4379
|
if (Ce === 0 && z)
|
|
4380
|
-
return z.call(
|
|
4381
|
-
var _e, Se =
|
|
4382
|
-
if (~
|
|
4380
|
+
return z.call(U, Me, Q.length);
|
|
4381
|
+
var _e, Se = U.currToken, Oe = Se[c.FIELDS.START_POS] + Q[Ce], Ae = le(Se[1], Se[2] + ce, Se[3], Se[2] + ($e - 1));
|
|
4382
|
+
if (~j.indexOf(ce)) {
|
|
4383
4383
|
var Le = {
|
|
4384
4384
|
value: Me.slice(1),
|
|
4385
4385
|
source: Ae,
|
|
@@ -4401,7 +4401,7 @@ F.combinator = Ys;
|
|
|
4401
4401
|
};
|
|
4402
4402
|
ye(Ye, "value"), _e = new p.default(Ye);
|
|
4403
4403
|
}
|
|
4404
|
-
|
|
4404
|
+
U.newNode(_e, w), w = null;
|
|
4405
4405
|
}), this.position++;
|
|
4406
4406
|
}, B.word = function(w) {
|
|
4407
4407
|
var z = this.nextToken;
|
|
@@ -4459,13 +4459,13 @@ F.combinator = Ys;
|
|
|
4459
4459
|
default:
|
|
4460
4460
|
this.unexpected();
|
|
4461
4461
|
}
|
|
4462
|
-
}, B.expected = function(w, z,
|
|
4462
|
+
}, B.expected = function(w, z, U) {
|
|
4463
4463
|
if (Array.isArray(w)) {
|
|
4464
4464
|
var S = w.pop();
|
|
4465
4465
|
w = w.join(", ") + " or " + S;
|
|
4466
4466
|
}
|
|
4467
4467
|
var X = /^[aeiou]/.test(w[0]) ? "an" : "a";
|
|
4468
|
-
return
|
|
4468
|
+
return U ? this.error("Expected " + X + " " + w + ', found "' + U + '" instead.', {
|
|
4469
4469
|
index: z
|
|
4470
4470
|
}) : this.error("Expected " + X + " " + w + ".", {
|
|
4471
4471
|
index: z
|
|
@@ -5192,21 +5192,21 @@ const Uu = /* @__PURE__ */ dn(Hu), Wu = {
|
|
|
5192
5192
|
Hue: "hue",
|
|
5193
5193
|
Alpha: "alpha"
|
|
5194
5194
|
};
|
|
5195
|
-
let
|
|
5195
|
+
let W = 0;
|
|
5196
5196
|
function Lt(e) {
|
|
5197
|
-
let t = e[
|
|
5198
|
-
return t === "-" || t === "+" ? /\d/.test(r) || r === "." && /\d/.test(e[
|
|
5197
|
+
let t = e[W], r = e[W + 1];
|
|
5198
|
+
return t === "-" || t === "+" ? /\d/.test(r) || r === "." && /\d/.test(e[W + 2]) : t === "." ? /\d/.test(r) : /\d/.test(t);
|
|
5199
5199
|
}
|
|
5200
5200
|
function an(e) {
|
|
5201
|
-
if (
|
|
5201
|
+
if (W >= e.length)
|
|
5202
5202
|
return !1;
|
|
5203
|
-
let t = e[
|
|
5203
|
+
let t = e[W];
|
|
5204
5204
|
if (on.test(t))
|
|
5205
5205
|
return !0;
|
|
5206
5206
|
if (t === "-") {
|
|
5207
|
-
if (e.length -
|
|
5207
|
+
if (e.length - W < 2)
|
|
5208
5208
|
return !1;
|
|
5209
|
-
let r = e[
|
|
5209
|
+
let r = e[W + 1];
|
|
5210
5210
|
return !!(r === "-" || on.test(r));
|
|
5211
5211
|
}
|
|
5212
5212
|
return !1;
|
|
@@ -5219,36 +5219,36 @@ const d0 = {
|
|
|
5219
5219
|
};
|
|
5220
5220
|
function vt(e) {
|
|
5221
5221
|
let t = "";
|
|
5222
|
-
if ((e[
|
|
5222
|
+
if ((e[W] === "-" || e[W] === "+") && (t += e[W++]), t += It(e), e[W] === "." && /\d/.test(e[W + 1]) && (t += e[W++] + It(e)), (e[W] === "e" || e[W] === "E") && ((e[W + 1] === "-" || e[W + 1] === "+") && /\d/.test(e[W + 2]) ? t += e[W++] + e[W++] + It(e) : /\d/.test(e[W + 1]) && (t += e[W++] + It(e))), an(e)) {
|
|
5223
5223
|
let r = zt(e);
|
|
5224
5224
|
return r === "deg" || r === "rad" || r === "turn" || r === "grad" ? { type: P.Hue, value: t * d0[r] } : void 0;
|
|
5225
5225
|
}
|
|
5226
|
-
return e[
|
|
5226
|
+
return e[W] === "%" ? (W++, { type: P.Percentage, value: +t }) : { type: P.Number, value: +t };
|
|
5227
5227
|
}
|
|
5228
5228
|
function It(e) {
|
|
5229
5229
|
let t = "";
|
|
5230
|
-
for (; /\d/.test(e[
|
|
5231
|
-
t += e[
|
|
5230
|
+
for (; /\d/.test(e[W]); )
|
|
5231
|
+
t += e[W++];
|
|
5232
5232
|
return t;
|
|
5233
5233
|
}
|
|
5234
5234
|
function zt(e) {
|
|
5235
5235
|
let t = "";
|
|
5236
|
-
for (;
|
|
5237
|
-
t += e[
|
|
5236
|
+
for (; W < e.length && c0.test(e[W]); )
|
|
5237
|
+
t += e[W++];
|
|
5238
5238
|
return t;
|
|
5239
5239
|
}
|
|
5240
5240
|
function p0(e) {
|
|
5241
5241
|
let t = zt(e);
|
|
5242
|
-
return e[
|
|
5242
|
+
return e[W] === "(" ? (W++, { type: P.Function, value: t }) : t === "none" ? { type: P.None, value: void 0 } : { type: P.Ident, value: t };
|
|
5243
5243
|
}
|
|
5244
5244
|
function h0(e = "") {
|
|
5245
5245
|
let t = e.trim(), r = [], i;
|
|
5246
|
-
for (
|
|
5247
|
-
if (i = t[
|
|
5246
|
+
for (W = 0; W < t.length; ) {
|
|
5247
|
+
if (i = t[W++], i === `
|
|
5248
5248
|
` || i === " " || i === " ") {
|
|
5249
|
-
for (;
|
|
5250
|
-
` || t[
|
|
5251
|
-
|
|
5249
|
+
for (; W < t.length && (t[W] === `
|
|
5250
|
+
` || t[W] === " " || t[W] === " "); )
|
|
5251
|
+
W++;
|
|
5252
5252
|
continue;
|
|
5253
5253
|
}
|
|
5254
5254
|
if (i === ",")
|
|
@@ -5258,14 +5258,14 @@ function h0(e = "") {
|
|
|
5258
5258
|
continue;
|
|
5259
5259
|
}
|
|
5260
5260
|
if (i === "+") {
|
|
5261
|
-
if (
|
|
5261
|
+
if (W--, Lt(t)) {
|
|
5262
5262
|
r.push(vt(t));
|
|
5263
5263
|
continue;
|
|
5264
5264
|
}
|
|
5265
5265
|
return;
|
|
5266
5266
|
}
|
|
5267
5267
|
if (i === "-") {
|
|
5268
|
-
if (
|
|
5268
|
+
if (W--, Lt(t)) {
|
|
5269
5269
|
r.push(vt(t));
|
|
5270
5270
|
continue;
|
|
5271
5271
|
}
|
|
@@ -5276,16 +5276,16 @@ function h0(e = "") {
|
|
|
5276
5276
|
return;
|
|
5277
5277
|
}
|
|
5278
5278
|
if (i === ".") {
|
|
5279
|
-
if (
|
|
5279
|
+
if (W--, Lt(t)) {
|
|
5280
5280
|
r.push(vt(t));
|
|
5281
5281
|
continue;
|
|
5282
5282
|
}
|
|
5283
5283
|
return;
|
|
5284
5284
|
}
|
|
5285
5285
|
if (i === "/") {
|
|
5286
|
-
for (;
|
|
5287
|
-
` || t[
|
|
5288
|
-
|
|
5286
|
+
for (; W < t.length && (t[W] === `
|
|
5287
|
+
` || t[W] === " " || t[W] === " "); )
|
|
5288
|
+
W++;
|
|
5289
5289
|
let n;
|
|
5290
5290
|
if (Lt(t) && (n = vt(t), n.type !== P.Hue)) {
|
|
5291
5291
|
r.push({ type: P.Alpha, value: n });
|
|
@@ -5301,11 +5301,11 @@ function h0(e = "") {
|
|
|
5301
5301
|
return;
|
|
5302
5302
|
}
|
|
5303
5303
|
if (/\d/.test(i)) {
|
|
5304
|
-
|
|
5304
|
+
W--, r.push(vt(t));
|
|
5305
5305
|
continue;
|
|
5306
5306
|
}
|
|
5307
5307
|
if (on.test(i)) {
|
|
5308
|
-
|
|
5308
|
+
W--, r.push(p0(t));
|
|
5309
5309
|
continue;
|
|
5310
5310
|
}
|
|
5311
5311
|
return;
|
|
@@ -6550,8 +6550,8 @@ function Gf(e, t, r, i, n, a = null) {
|
|
|
6550
6550
|
{
|
|
6551
6551
|
let p = r - n, s = i, l = 0.3963377774 * e + 0.2158037573 * t, d = -0.1055613458 * e - 0.0638541728 * t, g = -0.0894841775 * e - 1.291485548 * t, b = p + s * l, M = p + s * d, I = p + s * g;
|
|
6552
6552
|
{
|
|
6553
|
-
let c = n * (1 - u) + u * r, m = u * i, _ = c + m * l, T = c + m * d, k = c + m * g, E = _ * _ * _, x = T * T * T, L = k * k * k, N = 3 * b * _ * _, $ = 3 * M * T * T, A = 3 * I * k * k, R = 6 * b * b * _, G = 6 * M * M * T, ee = 6 * I * I * k, ge = 4.0767416621 * E - 3.3077115913 * x + 0.2309699292 * L - 1, le = 4.0767416621 * N - 3.3077115913 * $ + 0.2309699292 * A, ve = 4.0767416621 * R - 3.3077115913 * G + 0.2309699292 * ee, V = le / (le * le - 0.5 * ge * ve), ye = -ge * V, ke = -1.2684380046 * E + 2.6097574011 * x - 0.3413193965 * L - 1, Ne = -1.2684380046 * N + 2.6097574011 * $ - 0.3413193965 * A, Pe = -1.2684380046 * R + 2.6097574011 * G - 0.3413193965 * ee, q = Ne / (Ne * Ne - 0.5 * ke * Pe), B = -ke * q, O = -0.0041960863 * E - 0.7034186147 * x + 1.707614701 * L - 1, w = -0.0041960863 * N - 0.7034186147 * $ + 1.707614701 * A, z = -0.0041960863 * R - 0.7034186147 * G + 1.707614701 * ee,
|
|
6554
|
-
ye = V >= 0 ? ye : 1e6, B = q >= 0 ? B : 1e6, S =
|
|
6553
|
+
let c = n * (1 - u) + u * r, m = u * i, _ = c + m * l, T = c + m * d, k = c + m * g, E = _ * _ * _, x = T * T * T, L = k * k * k, N = 3 * b * _ * _, $ = 3 * M * T * T, A = 3 * I * k * k, R = 6 * b * b * _, G = 6 * M * M * T, ee = 6 * I * I * k, ge = 4.0767416621 * E - 3.3077115913 * x + 0.2309699292 * L - 1, le = 4.0767416621 * N - 3.3077115913 * $ + 0.2309699292 * A, ve = 4.0767416621 * R - 3.3077115913 * G + 0.2309699292 * ee, V = le / (le * le - 0.5 * ge * ve), ye = -ge * V, ke = -1.2684380046 * E + 2.6097574011 * x - 0.3413193965 * L - 1, Ne = -1.2684380046 * N + 2.6097574011 * $ - 0.3413193965 * A, Pe = -1.2684380046 * R + 2.6097574011 * G - 0.3413193965 * ee, q = Ne / (Ne * Ne - 0.5 * ke * Pe), B = -ke * q, O = -0.0041960863 * E - 0.7034186147 * x + 1.707614701 * L - 1, w = -0.0041960863 * N - 0.7034186147 * $ + 1.707614701 * A, z = -0.0041960863 * R - 0.7034186147 * G + 1.707614701 * ee, U = w / (w * w - 0.5 * O * z), S = -O * U;
|
|
6554
|
+
ye = V >= 0 ? ye : 1e6, B = q >= 0 ? B : 1e6, S = U >= 0 ? S : 1e6, u += Math.min(ye, Math.min(B, S));
|
|
6555
6555
|
}
|
|
6556
6556
|
}
|
|
6557
6557
|
}
|
|
@@ -7029,75 +7029,84 @@ const gi = "#ff3f3f", K = {
|
|
|
7029
7029
|
/**
|
|
7030
7030
|
* Action tokens.
|
|
7031
7031
|
*/
|
|
7032
|
-
"action-dark":
|
|
7033
|
-
"action-dark-hover":
|
|
7034
|
-
"action-dark-active":
|
|
7035
|
-
"action-light":
|
|
7036
|
-
"action-light-hover":
|
|
7037
|
-
"action-light-active":
|
|
7032
|
+
"action-dark": H.slate[900],
|
|
7033
|
+
"action-dark-hover": H.slate[700],
|
|
7034
|
+
"action-dark-active": H.slate[600],
|
|
7035
|
+
"action-light": H.slate[500],
|
|
7036
|
+
"action-light-hover": H.slate[600],
|
|
7037
|
+
"action-light-active": H.slate[700],
|
|
7038
|
+
"action-danger-dark": H.red[900],
|
|
7039
|
+
"action-danger-dark-hover": H.red[700],
|
|
7040
|
+
"action-danger-dark-active": H.red[600],
|
|
7041
|
+
"action-danger-light": H.red[600],
|
|
7042
|
+
"action-danger-light-hover": H.red[700],
|
|
7043
|
+
"action-danger-light-active": H.red[800],
|
|
7038
7044
|
/**
|
|
7039
7045
|
* Surface tokens.
|
|
7040
7046
|
*/
|
|
7041
|
-
"surface-darker":
|
|
7042
|
-
"surface-dark":
|
|
7043
|
-
"surface-medium":
|
|
7044
|
-
"surface-light":
|
|
7045
|
-
"surface-lighter":
|
|
7047
|
+
"surface-darker": H.slate[900],
|
|
7048
|
+
"surface-dark": H.slate[700],
|
|
7049
|
+
"surface-medium": H.slate[500],
|
|
7050
|
+
"surface-light": H.slate[300],
|
|
7051
|
+
"surface-lighter": H.slate[200],
|
|
7046
7052
|
"surface-accent": "#0B93F6",
|
|
7047
|
-
"surface-information":
|
|
7048
|
-
"surface-success":
|
|
7049
|
-
"surface-warning":
|
|
7050
|
-
"surface-error":
|
|
7053
|
+
"surface-information": H.violet[200],
|
|
7054
|
+
"surface-success": H.green[200],
|
|
7055
|
+
"surface-warning": H.orange[200],
|
|
7056
|
+
"surface-error": H.red[200],
|
|
7051
7057
|
/**
|
|
7052
7058
|
* Typography tokens.
|
|
7053
7059
|
*/
|
|
7054
|
-
"copy-dark":
|
|
7055
|
-
"copy-dark-hover":
|
|
7056
|
-
"copy-dark-active":
|
|
7057
|
-
"copy-medium":
|
|
7058
|
-
"copy-medium-hover":
|
|
7059
|
-
"copy-medium-active":
|
|
7060
|
-
"copy-light":
|
|
7061
|
-
"copy-light-hover":
|
|
7062
|
-
"copy-light-active":
|
|
7060
|
+
"copy-dark": H.slate[900],
|
|
7061
|
+
"copy-dark-hover": H.slate[900],
|
|
7062
|
+
"copy-dark-active": H.slate[900],
|
|
7063
|
+
"copy-medium": H.slate[400],
|
|
7064
|
+
"copy-medium-hover": H.slate[400],
|
|
7065
|
+
"copy-medium-active": H.slate[400],
|
|
7066
|
+
"copy-light": H.slate[200],
|
|
7067
|
+
"copy-light-hover": H.slate[200],
|
|
7068
|
+
"copy-light-active": H.slate[400],
|
|
7063
7069
|
"copy-lighter": "#ffffff",
|
|
7064
7070
|
"copy-lighter-hover": "#ffffff",
|
|
7065
7071
|
"copy-lighter-active": "#ffffff",
|
|
7066
|
-
"copy-error-dark":
|
|
7067
|
-
"copy-error-light":
|
|
7068
|
-
"copy-information":
|
|
7069
|
-
"copy-success":
|
|
7070
|
-
"copy-warning":
|
|
7071
|
-
"copy-error":
|
|
7072
|
+
"copy-error-dark": H.red[700],
|
|
7073
|
+
"copy-error-light": H.red[500],
|
|
7074
|
+
"copy-information": H.violet[800],
|
|
7075
|
+
"copy-success": H.green[800],
|
|
7076
|
+
"copy-warning": H.orange[800],
|
|
7077
|
+
"copy-error": H.red[800],
|
|
7072
7078
|
/**
|
|
7073
7079
|
* Border tokens.
|
|
7074
7080
|
*/
|
|
7075
|
-
"border-dark":
|
|
7076
|
-
"border-medium":
|
|
7077
|
-
"border-light":
|
|
7081
|
+
"border-dark": H.slate[900],
|
|
7082
|
+
"border-medium": H.slate[400],
|
|
7083
|
+
"border-light": H.slate[300],
|
|
7084
|
+
"border-danger-dark": H.red[900],
|
|
7085
|
+
"border-danger-medium": H.red[400],
|
|
7086
|
+
"border-danger-light": H.red[300],
|
|
7078
7087
|
"border-white": "#ffffff",
|
|
7079
|
-
"border-error-dark":
|
|
7088
|
+
"border-error-dark": H.red[700],
|
|
7080
7089
|
"border-error-light": gi,
|
|
7081
|
-
"border-information":
|
|
7082
|
-
"border-success":
|
|
7083
|
-
"border-warning":
|
|
7084
|
-
"border-error":
|
|
7090
|
+
"border-information": H.violet[400],
|
|
7091
|
+
"border-success": H.green[400],
|
|
7092
|
+
"border-warning": H.orange[400],
|
|
7093
|
+
"border-error": H.red[400],
|
|
7085
7094
|
/**
|
|
7086
7095
|
* Focus tokens.
|
|
7087
7096
|
*/
|
|
7088
|
-
"focus-dark":
|
|
7089
|
-
"focus-light":
|
|
7090
|
-
"focus-error-dark":
|
|
7097
|
+
"focus-dark": H.green[700],
|
|
7098
|
+
"focus-light": H.green[300],
|
|
7099
|
+
"focus-error-dark": H.red[700],
|
|
7091
7100
|
"focus-error-light": gi,
|
|
7092
7101
|
/**
|
|
7093
7102
|
* Table tokens
|
|
7094
7103
|
*/
|
|
7095
|
-
"table-dark":
|
|
7096
|
-
"table-dark-odd":
|
|
7097
|
-
"table-dark-even":
|
|
7098
|
-
"table-light":
|
|
7099
|
-
"table-light-odd":
|
|
7100
|
-
"table-light-even":
|
|
7104
|
+
"table-dark": H.gray[700],
|
|
7105
|
+
"table-dark-odd": H.gray[800],
|
|
7106
|
+
"table-dark-even": H.gray[900],
|
|
7107
|
+
"table-light": H.gray[100],
|
|
7108
|
+
"table-light-odd": H.gray[200],
|
|
7109
|
+
"table-light-even": H.gray[300]
|
|
7101
7110
|
}
|
|
7102
7111
|
}, $l = ji("rgb"), Dl = () => {
|
|
7103
7112
|
const e = {};
|
|
@@ -7114,7 +7123,8 @@ const gi = "#ff3f3f", K = {
|
|
|
7114
7123
|
css: {
|
|
7115
7124
|
maxWidth: "inherit",
|
|
7116
7125
|
"h1, h2, h3, h4, h5, h6": {
|
|
7117
|
-
fontFamily: "Open Sans, ui-sans-serif, system-ui, sans-serif"
|
|
7126
|
+
fontFamily: "Open Sans, ui-sans-serif, system-ui, sans-serif",
|
|
7127
|
+
fontWeight: "400"
|
|
7118
7128
|
},
|
|
7119
7129
|
blockquote: {
|
|
7120
7130
|
borderLeftWidth: "6px"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-styles",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"culori": "4.0.1",
|
|
37
37
|
"tailwindcss": "3.4.1"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "421b11d82c0dde00ef1af1e2298d5beff6200f92"
|
|
40
40
|
}
|