@pequity/squirrel 1.0.20-beta.2 → 1.0.20
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/squirrel.cjs.js +5 -0
- package/dist/squirrel.es.js +8220 -0
- package/dist/style.css +1 -1
- package/package.json +20 -22
- package/dist/cjs/chunks/_plugin-vue_export-helper.js +0 -1
- package/dist/cjs/chunks/p-action-bar.js +0 -1
- package/dist/cjs/chunks/p-card.js +0 -1
- package/dist/cjs/chunks/p-checkbox.js +0 -1
- package/dist/cjs/chunks/p-dropdown-select.js +0 -1
- package/dist/cjs/chunks/p-input-percent.js +0 -1
- package/dist/cjs/chunks/p-pagination-info.js +0 -1
- package/dist/cjs/chunks/p-pagination.js +0 -1
- package/dist/cjs/chunks/p-ring-loader.js +0 -1
- package/dist/cjs/chunks/p-select-btn.js +0 -1
- package/dist/cjs/chunks/p-select.js +0 -1
- package/dist/cjs/chunks/p-table-loader.js +0 -1
- package/dist/cjs/chunks/p-tabs.js +0 -1
- package/dist/cjs/config.js +0 -1
- package/dist/cjs/currency.js +0 -1
- package/dist/cjs/dom.js +0 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/inputClassesMixin.js +0 -1
- package/dist/cjs/inputClassesShared.js +0 -1
- package/dist/cjs/listKeyboardNavigation.js +0 -1
- package/dist/cjs/number.js +0 -1
- package/dist/cjs/object.js +0 -1
- package/dist/cjs/p-action-bar.js +0 -1
- package/dist/cjs/p-alert.js +0 -1
- package/dist/cjs/p-avatar.js +0 -1
- package/dist/cjs/p-btn.js +0 -5
- package/dist/cjs/p-card.js +0 -1
- package/dist/cjs/p-checkbox.js +0 -1
- package/dist/cjs/p-chips.js +0 -1
- package/dist/cjs/p-close-btn.js +0 -1
- package/dist/cjs/p-date-picker.js +0 -1
- package/dist/cjs/p-drawer.js +0 -1
- package/dist/cjs/p-dropdown-select.js +0 -1
- package/dist/cjs/p-dropdown.js +0 -1
- package/dist/cjs/p-file-upload.js +0 -1
- package/dist/cjs/p-info-icon.js +0 -1
- package/dist/cjs/p-inline-date-picker.js +0 -1
- package/dist/cjs/p-input-number.js +0 -1
- package/dist/cjs/p-input-percent.js +0 -1
- package/dist/cjs/p-input-search.js +0 -1
- package/dist/cjs/p-input.js +0 -1
- package/dist/cjs/p-loading.js +0 -1
- package/dist/cjs/p-modal.js +0 -1
- package/dist/cjs/p-pagination-info.js +0 -1
- package/dist/cjs/p-pagination.js +0 -1
- package/dist/cjs/p-progress-bar.js +0 -1
- package/dist/cjs/p-ring-loader.js +0 -1
- package/dist/cjs/p-select-btn.js +0 -1
- package/dist/cjs/p-select-list.js +0 -1
- package/dist/cjs/p-select-pill.js +0 -1
- package/dist/cjs/p-select.js +0 -1
- package/dist/cjs/p-skeleton-loader.js +0 -1
- package/dist/cjs/p-table-filter-icon.js +0 -1
- package/dist/cjs/p-table-header-cell.js +0 -1
- package/dist/cjs/p-table-loader.js +0 -1
- package/dist/cjs/p-table-sort.js +0 -1
- package/dist/cjs/p-table-td.js +0 -1
- package/dist/cjs/p-table.js +0 -1
- package/dist/cjs/p-tabs.js +0 -1
- package/dist/cjs/p-textarea.js +0 -1
- package/dist/cjs/p-toggle.js +0 -1
- package/dist/cjs/pagination.js +0 -1
- package/dist/cjs/string.js +0 -1
- package/dist/cjs/tailwind.js +0 -1
- package/dist/cjs/text.js +0 -1
- package/dist/cjs/useInputClasses.js +0 -1
- package/dist/cjs/usePLoading.js +0 -1
- package/dist/cjs/usePModal.js +0 -1
- package/dist/cjs/usePTableColResize.js +0 -1
- package/dist/cjs/usePTableRowVirtualizer.js +0 -1
- package/dist/cjs/useSelectList.js +0 -1
- package/dist/es/chunks/_plugin-vue_export-helper.js +0 -9
- package/dist/es/chunks/p-action-bar.js +0 -52
- package/dist/es/chunks/p-card.js +0 -25
- package/dist/es/chunks/p-checkbox.js +0 -22
- package/dist/es/chunks/p-dropdown-select.js +0 -366
- package/dist/es/chunks/p-input-percent.js +0 -45
- package/dist/es/chunks/p-pagination-info.js +0 -61
- package/dist/es/chunks/p-pagination.js +0 -93
- package/dist/es/chunks/p-ring-loader.js +0 -59
- package/dist/es/chunks/p-select-btn.js +0 -77
- package/dist/es/chunks/p-select.js +0 -97
- package/dist/es/chunks/p-table-loader.js +0 -57
- package/dist/es/chunks/p-tabs.js +0 -47
- package/dist/es/config.js +0 -105
- package/dist/es/currency.js +0 -9
- package/dist/es/dom.js +0 -15
- package/dist/es/index.js +0 -836
- package/dist/es/inputClassesMixin.js +0 -45
- package/dist/es/inputClassesShared.js +0 -61
- package/dist/es/listKeyboardNavigation.js +0 -60
- package/dist/es/number.js +0 -4
- package/dist/es/object.js +0 -4
- package/dist/es/p-action-bar.js +0 -4
- package/dist/es/p-alert.js +0 -61
- package/dist/es/p-avatar.js +0 -69
- package/dist/es/p-btn.js +0 -317
- package/dist/es/p-card.js +0 -4
- package/dist/es/p-checkbox.js +0 -4
- package/dist/es/p-chips.js +0 -91
- package/dist/es/p-close-btn.js +0 -33
- package/dist/es/p-date-picker.js +0 -132
- package/dist/es/p-drawer.js +0 -235
- package/dist/es/p-dropdown-select.js +0 -4
- package/dist/es/p-dropdown.js +0 -120
- package/dist/es/p-file-upload.js +0 -13
- package/dist/es/p-info-icon.js +0 -31
- package/dist/es/p-inline-date-picker.js +0 -132
- package/dist/es/p-input-number.js +0 -129
- package/dist/es/p-input-percent.js +0 -4
- package/dist/es/p-input-search.js +0 -109
- package/dist/es/p-input.js +0 -84
- package/dist/es/p-loading.js +0 -30
- package/dist/es/p-modal.js +0 -283
- package/dist/es/p-pagination-info.js +0 -4
- package/dist/es/p-pagination.js +0 -4
- package/dist/es/p-progress-bar.js +0 -39
- package/dist/es/p-ring-loader.js +0 -4
- package/dist/es/p-select-btn.js +0 -4
- package/dist/es/p-select-list.js +0 -4
- package/dist/es/p-select-pill.js +0 -95
- package/dist/es/p-select.js +0 -4
- package/dist/es/p-skeleton-loader.js +0 -69
- package/dist/es/p-table-filter-icon.js +0 -21
- package/dist/es/p-table-header-cell.js +0 -71
- package/dist/es/p-table-loader.js +0 -4
- package/dist/es/p-table-sort.js +0 -8
- package/dist/es/p-table-td.js +0 -42
- package/dist/es/p-table.js +0 -8
- package/dist/es/p-tabs.js +0 -4
- package/dist/es/p-textarea.js +0 -72
- package/dist/es/p-toggle.js +0 -110
- package/dist/es/pagination.js +0 -12
- package/dist/es/string.js +0 -4
- package/dist/es/tailwind.js +0 -3794
- package/dist/es/text.js +0 -11
- package/dist/es/useInputClasses.js +0 -28
- package/dist/es/usePLoading.js +0 -19
- package/dist/es/usePModal.js +0 -18
- package/dist/es/usePTableColResize.js +0 -49
- package/dist/es/usePTableRowVirtualizer.js +0 -22
- package/dist/es/useSelectList.js +0 -143
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { defineComponent as V, resolveDirective as g, openBlock as i, createElementBlock as s, normalizeClass as r, Fragment as h, renderList as y, withDirectives as B, createBlock as T, withCtx as b, renderSlot as v, createTextVNode as w, toDisplayString as k } from "vue";
|
|
2
|
-
import S from "../p-btn.js";
|
|
3
|
-
const P = /* @__PURE__ */ V({
|
|
4
|
-
name: "PBtnGroup",
|
|
5
|
-
__name: "p-select-btn",
|
|
6
|
-
props: {
|
|
7
|
-
modelValue: { default: null },
|
|
8
|
-
items: { default: () => [] },
|
|
9
|
-
itemValue: { default: "value" },
|
|
10
|
-
itemText: { default: "text" },
|
|
11
|
-
itemTooltipText: { default: "text" },
|
|
12
|
-
size: { default: "md" },
|
|
13
|
-
showTooltip: { type: Boolean, default: !1 },
|
|
14
|
-
highlightSelected: { type: Boolean, default: !0 },
|
|
15
|
-
grow: { type: Boolean, default: !1 },
|
|
16
|
-
multiple: { type: Boolean, default: !1 },
|
|
17
|
-
noPadding: { type: Boolean, default: !1 }
|
|
18
|
-
},
|
|
19
|
-
emits: ["update:modelValue"],
|
|
20
|
-
setup(m, { emit: p }) {
|
|
21
|
-
const a = p, l = m, f = (e) => l.showTooltip ? e[l.itemTooltipText] : "", c = (e) => {
|
|
22
|
-
if (!l.multiple)
|
|
23
|
-
a("update:modelValue", e[l.itemValue]);
|
|
24
|
-
else if (Array.isArray(l.modelValue)) {
|
|
25
|
-
const n = e[l.itemValue];
|
|
26
|
-
l.modelValue.findIndex((t) => t[l.itemValue] === n) !== -1 ? a(
|
|
27
|
-
"update:modelValue",
|
|
28
|
-
l.modelValue.filter((t) => t[l.itemValue] !== n)
|
|
29
|
-
) : a("update:modelValue", [...l.modelValue, e]);
|
|
30
|
-
} else
|
|
31
|
-
a("update:modelValue", [e]);
|
|
32
|
-
}, u = (e) => {
|
|
33
|
-
if (l.multiple) {
|
|
34
|
-
if (Array.isArray(l.modelValue))
|
|
35
|
-
return l.modelValue.findIndex((d) => d[l.itemValue] === e[l.itemValue]) !== -1;
|
|
36
|
-
} else
|
|
37
|
-
return l.modelValue === e[l.itemValue];
|
|
38
|
-
};
|
|
39
|
-
return (e, n) => {
|
|
40
|
-
const d = g("tooltip");
|
|
41
|
-
return i(), s("div", {
|
|
42
|
-
class: r({ flex: e.grow, "*:px-0 *:py-0": e.noPadding })
|
|
43
|
-
}, [
|
|
44
|
-
(i(!0), s(h, null, y(e.items, (t, o) => B((i(), T(S, {
|
|
45
|
-
key: t[e.itemValue],
|
|
46
|
-
size: e.size,
|
|
47
|
-
type: "secondary-outline-blue",
|
|
48
|
-
disabled: t.disabled,
|
|
49
|
-
class: r({
|
|
50
|
-
"rounded-none": o !== 0 && o !== e.items.length - 1,
|
|
51
|
-
"rounded-br-none rounded-tr-none": o === 0,
|
|
52
|
-
"rounded-bl-none rounded-tl-none": o === e.items.length - 1,
|
|
53
|
-
"-mr-0.5": o !== e.items.length - 1,
|
|
54
|
-
"flex-1": e.grow
|
|
55
|
-
}),
|
|
56
|
-
selected: u(t) && e.highlightSelected,
|
|
57
|
-
onClick: (z) => c(t)
|
|
58
|
-
}, {
|
|
59
|
-
default: b(() => [
|
|
60
|
-
v(e.$slots, `btn-${o}`, {
|
|
61
|
-
item: t,
|
|
62
|
-
isSelected: u(t)
|
|
63
|
-
}, () => [
|
|
64
|
-
w(k(t[e.itemText]), 1)
|
|
65
|
-
])
|
|
66
|
-
]),
|
|
67
|
-
_: 2
|
|
68
|
-
}, 1032, ["size", "disabled", "class", "selected", "onClick"])), [
|
|
69
|
-
[d, { content: f(t) }]
|
|
70
|
-
])), 128))
|
|
71
|
-
], 2);
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
export {
|
|
76
|
-
P as _
|
|
77
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, useAttrs as k, computed as u, openBlock as o, createElementBlock as i, normalizeClass as c, unref as s, normalizeStyle as B, renderSlot as M, toDisplayString as m, createCommentVNode as N, createElementVNode as p, mergeProps as z, Fragment as A, renderList as E, withDirectives as I, vShow as P } from "vue";
|
|
2
|
-
import { INPUT_SIZES as T } from "../inputClassesShared.js";
|
|
3
|
-
import { useInputClasses as w } from "../useInputClasses.js";
|
|
4
|
-
const D = ["data-has-error"], O = ["value"], $ = ["value"], v = "___null_value___", L = /* @__PURE__ */ x({
|
|
5
|
-
name: "PSelect",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "p-select",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: {
|
|
10
|
-
type: [String, Number, Boolean, null],
|
|
11
|
-
default: ""
|
|
12
|
-
},
|
|
13
|
-
items: {
|
|
14
|
-
type: Array,
|
|
15
|
-
default: () => []
|
|
16
|
-
},
|
|
17
|
-
label: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: ""
|
|
20
|
-
},
|
|
21
|
-
errorMsg: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: ""
|
|
24
|
-
},
|
|
25
|
-
required: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !1
|
|
28
|
-
},
|
|
29
|
-
size: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: "md",
|
|
32
|
-
validator(t) {
|
|
33
|
-
return Object.keys(T).includes(t);
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
itemText: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: "text"
|
|
39
|
-
},
|
|
40
|
-
itemValue: {
|
|
41
|
-
type: [String, Number, Boolean, null],
|
|
42
|
-
default: "value"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
emits: ["update:modelValue"],
|
|
46
|
-
setup(t, { emit: y }) {
|
|
47
|
-
const d = y, l = t, n = k(), { labelClasses: f, selectClasses: g, errorMsgClasses: S } = w(l), V = u({
|
|
48
|
-
get: () => l.modelValue === null ? v : l.modelValue,
|
|
49
|
-
set: (e) => d("update:modelValue", e)
|
|
50
|
-
}), b = u(() => {
|
|
51
|
-
const { class: e, style: a, ...r } = n;
|
|
52
|
-
return r;
|
|
53
|
-
}), h = u(() => n.style), C = u(() => l.items.map((e) => ({
|
|
54
|
-
value: e[l.itemValue] === null ? v : e[l.itemValue],
|
|
55
|
-
text: e[l.itemText]
|
|
56
|
-
}))), _ = (e) => {
|
|
57
|
-
const a = e.target.value;
|
|
58
|
-
if (a === v) {
|
|
59
|
-
d("update:modelValue", null);
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
d("update:modelValue", ["true", "false"].includes(a) ? a === "true" : a);
|
|
63
|
-
};
|
|
64
|
-
return (e, a) => (o(), i("div", {
|
|
65
|
-
class: c([{ hidden: s(n).hidden }, s(n).class]),
|
|
66
|
-
"data-has-error": !!t.errorMsg,
|
|
67
|
-
style: B(h.value)
|
|
68
|
-
}, [
|
|
69
|
-
M(e.$slots, "label", {
|
|
70
|
-
label: t.label,
|
|
71
|
-
labelClasses: s(f)
|
|
72
|
-
}, () => [
|
|
73
|
-
t.label ? (o(), i("label", {
|
|
74
|
-
key: 0,
|
|
75
|
-
class: c(s(f))
|
|
76
|
-
}, m(t.label), 3)) : N("", !0)
|
|
77
|
-
]),
|
|
78
|
-
p("select", z({ class: s(g) }, b.value, {
|
|
79
|
-
value: V.value,
|
|
80
|
-
onChange: _
|
|
81
|
-
}), [
|
|
82
|
-
(o(!0), i(A, null, E(C.value, (r) => (o(), i("option", {
|
|
83
|
-
key: String(r.value),
|
|
84
|
-
value: r.value
|
|
85
|
-
}, m(r.text), 9, $))), 128))
|
|
86
|
-
], 16, O),
|
|
87
|
-
I(p("div", {
|
|
88
|
-
class: c(s(S))
|
|
89
|
-
}, m(t.errorMsg), 3), [
|
|
90
|
-
[P, t.errorMsg]
|
|
91
|
-
])
|
|
92
|
-
], 14, D));
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
export {
|
|
96
|
-
L as _
|
|
97
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, openBlock as e, createElementBlock as t, createElementVNode as l, Fragment as a, renderList as o, createVNode as n, normalizeClass as d } from "vue";
|
|
2
|
-
import u from "../p-skeleton-loader.js";
|
|
3
|
-
const m = { class: "block overflow-hidden border border-p-gray-30" }, i = { class: "mb-0 w-full bg-surface" }, f = { class: "relative border-b border-p-gray-30 px-4 py-2" }, p = { class: "skeleton-fade" }, N = /* @__PURE__ */ b({
|
|
4
|
-
name: "PTableLoader",
|
|
5
|
-
__name: "p-table-loader",
|
|
6
|
-
props: {
|
|
7
|
-
rows: {
|
|
8
|
-
type: [Number, String],
|
|
9
|
-
default: 4
|
|
10
|
-
},
|
|
11
|
-
columns: {
|
|
12
|
-
type: [Number, String],
|
|
13
|
-
default: 6
|
|
14
|
-
},
|
|
15
|
-
tdClasses: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "px-4 py-5"
|
|
18
|
-
},
|
|
19
|
-
tdSkeletonClasses: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: "h-5"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
setup(r) {
|
|
25
|
-
return (y, h) => (e(), t("div", m, [
|
|
26
|
-
l("table", i, [
|
|
27
|
-
l("thead", null, [
|
|
28
|
-
l("tr", null, [
|
|
29
|
-
(e(!0), t(a, null, o(Number(r.columns), (s) => (e(), t("th", {
|
|
30
|
-
key: s,
|
|
31
|
-
class: "bg-surface p-0"
|
|
32
|
-
}, [
|
|
33
|
-
l("div", f, [
|
|
34
|
-
n(u, { class: "h-5" })
|
|
35
|
-
])
|
|
36
|
-
]))), 128))
|
|
37
|
-
])
|
|
38
|
-
]),
|
|
39
|
-
l("tbody", p, [
|
|
40
|
-
(e(!0), t(a, null, o(Number(r.rows), (s) => (e(), t("tr", { key: s }, [
|
|
41
|
-
(e(!0), t(a, null, o(Number(r.columns), (c) => (e(), t("td", {
|
|
42
|
-
key: c,
|
|
43
|
-
class: d([r.tdClasses, "border-b border-p-blue-15"])
|
|
44
|
-
}, [
|
|
45
|
-
n(u, {
|
|
46
|
-
class: d(r.tdSkeletonClasses)
|
|
47
|
-
}, null, 8, ["class"])
|
|
48
|
-
], 2))), 128))
|
|
49
|
-
]))), 128))
|
|
50
|
-
])
|
|
51
|
-
])
|
|
52
|
-
]));
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
export {
|
|
56
|
-
N as _
|
|
57
|
-
};
|
package/dist/es/chunks/p-tabs.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as r, createElementBlock as i, normalizeStyle as a, Fragment as m, renderList as d, createBlock as o, resolveDynamicComponent as n, mergeProps as p, withCtx as u, createElementVNode as l, normalizeClass as y, createCommentVNode as b, toDisplayString as f } from "vue";
|
|
2
|
-
const g = { class: "flex items-center gap-2" }, v = { key: 0 }, C = /* @__PURE__ */ c({
|
|
3
|
-
__name: "p-tabs",
|
|
4
|
-
props: {
|
|
5
|
-
tabs: {
|
|
6
|
-
type: Array,
|
|
7
|
-
required: !0
|
|
8
|
-
},
|
|
9
|
-
activeTab: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: !0
|
|
12
|
-
},
|
|
13
|
-
tabsLeftPadding: {
|
|
14
|
-
type: Number,
|
|
15
|
-
default: 0
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
emits: ["click:tab"],
|
|
19
|
-
setup(t) {
|
|
20
|
-
return (s, k) => (r(), i("div", {
|
|
21
|
-
class: "flex gap-4 border-b border-p-gray-30 text-base font-semibold",
|
|
22
|
-
style: a({ paddingLeft: `${t.tabsLeftPadding}px` })
|
|
23
|
-
}, [
|
|
24
|
-
(r(!0), i(m, null, d(t.tabs, (e) => (r(), o(n(e.to ? "RouterLink" : "div"), p({
|
|
25
|
-
key: `tab-${e.name}`
|
|
26
|
-
}, e.to ? { to: e.to } : {}, {
|
|
27
|
-
class: [[t.activeTab === e.name ? "border-primary text-primary" : "border-transparent text-p-gray-40"], "group cursor-pointer border-b-2 pb-3 hover:border-primary hover:text-primary"],
|
|
28
|
-
onClick: (x) => s.$emit("click:tab", e.name)
|
|
29
|
-
}), {
|
|
30
|
-
default: u(() => [
|
|
31
|
-
l("div", g, [
|
|
32
|
-
e.icon ? (r(), i("div", v, [
|
|
33
|
-
(r(), o(n(e.icon), {
|
|
34
|
-
class: y(["group-hover:fill-primary", [t.activeTab === e.name ? "fill-primary" : "fill-p-gray-40"]])
|
|
35
|
-
}, null, 8, ["class"]))
|
|
36
|
-
])) : b("", !0),
|
|
37
|
-
l("div", null, f(e.title), 1)
|
|
38
|
-
])
|
|
39
|
-
]),
|
|
40
|
-
_: 2
|
|
41
|
-
}, 1040, ["class", "onClick"]))), 128))
|
|
42
|
-
], 4));
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
export {
|
|
46
|
-
C as _
|
|
47
|
-
};
|
package/dist/es/config.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
const r = {
|
|
2
|
-
content: ["./index.html", "./squirrel/**/*.{vue,js,ts,jsx,tsx,mdx}", "./src/**/*.{vue,js,ts,jsx,tsx,mdx}"],
|
|
3
|
-
theme: {
|
|
4
|
-
colors: {
|
|
5
|
-
transparent: "transparent",
|
|
6
|
-
current: "currentColor",
|
|
7
|
-
/* Design system colors */
|
|
8
|
-
white: "#fff",
|
|
9
|
-
black: "#000",
|
|
10
|
-
night: "var(--color-night)",
|
|
11
|
-
"barley-white": "var(--color-barley-white)",
|
|
12
|
-
"horses-neck": "var(--color-horses-neck)",
|
|
13
|
-
"active-blue": "var(--color-active-blue)",
|
|
14
|
-
/* Pequity colors */
|
|
15
|
-
"p-gray": {
|
|
16
|
-
10: "var(--color-p-gray-10)",
|
|
17
|
-
20: "var(--color-p-gray-20)",
|
|
18
|
-
30: "var(--color-p-gray-30)",
|
|
19
|
-
40: "var(--color-p-gray-40)",
|
|
20
|
-
50: "var(--color-p-gray-50)",
|
|
21
|
-
60: "var(--color-p-gray-60)",
|
|
22
|
-
70: "var(--color-p-gray-70)",
|
|
23
|
-
80: "var(--color-p-gray-80)",
|
|
24
|
-
90: "var(--color-p-gray-90)",
|
|
25
|
-
100: "var(--color-p-gray-100)"
|
|
26
|
-
},
|
|
27
|
-
"p-blue": {
|
|
28
|
-
10: "var(--color-p-blue-10)",
|
|
29
|
-
15: "var(--color-p-blue-15)",
|
|
30
|
-
20: "var(--color-p-blue-20)",
|
|
31
|
-
30: "var(--color-p-blue-30)",
|
|
32
|
-
40: "var(--color-p-blue-40)",
|
|
33
|
-
50: "var(--color-p-blue-50)",
|
|
34
|
-
60: "var(--color-p-blue-60)",
|
|
35
|
-
70: "var(--color-p-blue-70)",
|
|
36
|
-
80: "var(--color-p-blue-80)"
|
|
37
|
-
},
|
|
38
|
-
"p-purple": {
|
|
39
|
-
10: "var(--color-p-purple-10)",
|
|
40
|
-
20: "var(--color-p-purple-20)",
|
|
41
|
-
30: "var(--color-p-purple-30)",
|
|
42
|
-
40: "var(--color-p-purple-40)",
|
|
43
|
-
50: "var(--color-p-purple-50)",
|
|
44
|
-
60: "var(--color-p-purple-60)"
|
|
45
|
-
},
|
|
46
|
-
"p-green": {
|
|
47
|
-
10: "var(--color-p-green-10)",
|
|
48
|
-
20: "var(--color-p-green-20)",
|
|
49
|
-
30: "var(--color-p-green-30)",
|
|
50
|
-
40: "var(--color-p-green-40)",
|
|
51
|
-
50: "var(--color-p-green-50)"
|
|
52
|
-
},
|
|
53
|
-
"p-red": {
|
|
54
|
-
10: "var(--color-p-red-10)",
|
|
55
|
-
20: "var(--color-p-red-20)",
|
|
56
|
-
30: "var(--color-p-red-30)",
|
|
57
|
-
40: "var(--color-p-red-40)",
|
|
58
|
-
50: "var(--color-p-red-50)"
|
|
59
|
-
},
|
|
60
|
-
/* Aliases */
|
|
61
|
-
primary: "var(--color-primary)",
|
|
62
|
-
accent: "var(--color-accent)",
|
|
63
|
-
surface: "var(--color-surface)",
|
|
64
|
-
"on-surface": "var(--color-on-surface)",
|
|
65
|
-
error: "var(--color-error)",
|
|
66
|
-
"on-error": "var(--color-on-error)",
|
|
67
|
-
info: "var(--color-info)",
|
|
68
|
-
"on-info": "var(--color-on-info)",
|
|
69
|
-
success: "var(--color-success)",
|
|
70
|
-
"on-success": "var(--color-on-success)",
|
|
71
|
-
warning: "var(--color-warning)",
|
|
72
|
-
"on-warning": "var(--color-on-warning)"
|
|
73
|
-
},
|
|
74
|
-
fontFamily: {
|
|
75
|
-
sans: ["Inter", "Helvetica", "Arial", "sans-serif"]
|
|
76
|
-
},
|
|
77
|
-
fontSize: {
|
|
78
|
-
xs: "0.75rem",
|
|
79
|
-
sm: "0.875rem",
|
|
80
|
-
base: "1rem",
|
|
81
|
-
lg: "1.125rem",
|
|
82
|
-
xl: "1.25rem",
|
|
83
|
-
"2xl": "1.5rem",
|
|
84
|
-
"3xl": "1.875rem",
|
|
85
|
-
"4xl": "2.25rem",
|
|
86
|
-
"5xl": "3rem",
|
|
87
|
-
"6xl": "4rem"
|
|
88
|
-
},
|
|
89
|
-
extend: {
|
|
90
|
-
borderColor: {
|
|
91
|
-
DEFAULT: "var(--color-p-gray-30)"
|
|
92
|
-
},
|
|
93
|
-
spacing: {
|
|
94
|
-
7.5: "1.875rem"
|
|
95
|
-
},
|
|
96
|
-
zIndex: {
|
|
97
|
-
110: "110"
|
|
98
|
-
},
|
|
99
|
-
screens: {}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
export {
|
|
104
|
-
r as config
|
|
105
|
-
};
|
package/dist/es/currency.js
DELETED
package/dist/es/dom.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const s = (t) => {
|
|
2
|
-
var n;
|
|
3
|
-
if (!(t instanceof Element))
|
|
4
|
-
throw Error("You must provide a DOM element.");
|
|
5
|
-
return !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length) && window.getComputedStyle(t).visibility !== "hidden" && window.getComputedStyle(t).display !== "none" && ((n = t.style) == null ? void 0 : n.transform.includes("translateY(-9999px)")) === !1;
|
|
6
|
-
}, f = (t, n, o, r) => {
|
|
7
|
-
const i = t.length;
|
|
8
|
-
let e = n ? t.indexOf(n) : -1;
|
|
9
|
-
return e === -1 ? !o && r ? t[i - 1] : t[0] : (e += o ? 1 : -1, r && (e = (e + i) % i), t[Math.max(0, Math.min(e, i - 1))]);
|
|
10
|
-
}, a = (t) => typeof t == "object" && t !== null && "tagName" in t && t instanceof HTMLElement;
|
|
11
|
-
export {
|
|
12
|
-
f as getNextActiveElement,
|
|
13
|
-
a as isElement,
|
|
14
|
-
s as isVisible
|
|
15
|
-
};
|