sakana-element 2.2.0 → 2.3.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 (130) hide show
  1. package/README.md +95 -22
  2. package/dist/es/{Alert-C76ZWSVk.js → Alert-BwTsp4X3.js} +2 -2
  3. package/dist/es/Avatar-CJu6JYV3.js +9 -0
  4. package/dist/es/{Badge-CoFWwBwv.js → Badge-BmxZXX8k.js} +2 -2
  5. package/dist/es/{Breadcrumb-BtrwTVKW.js → Breadcrumb-BP8MSklj.js} +2 -2
  6. package/dist/es/{Button-S_31-UWJ.js → Button-BJHtN7gh.js} +2 -2
  7. package/dist/es/{Card-DcW6nHYD.js → Card-DJHkCmsz.js} +2 -2
  8. package/dist/es/Checkbox-DX8L3fyp.js +51 -0
  9. package/dist/es/{Collapse-DsS7M-m3.js → Collapse-Ir3V9CuO.js} +2 -2
  10. package/dist/es/{ConfigProvider-BgIewHXP.js → ConfigProvider-CsbSqwwi.js} +1 -1
  11. package/dist/es/Divider-C7PtODSK.js +9 -0
  12. package/dist/es/Drawer-C2eVmvUp.js +40 -0
  13. package/dist/es/Dropdown-CVg_c2fB.js +104 -0
  14. package/dist/es/{FileInput-BQ59woas.js → FileInput-BE26BmXm.js} +3 -3
  15. package/dist/es/Form-7lZt5ehf.js +122 -0
  16. package/dist/es/{Icon-DpJyuj7c.js → Icon-BLDDdSU-.js} +1 -1
  17. package/dist/es/Indicator-B-en-MgG.js +9 -0
  18. package/dist/es/{Input-CiE4bPJN.js → Input-C5HuVehE.js} +6 -6
  19. package/dist/es/{Link-B9B2APZq.js → Link-Av9RdcFv.js} +1 -1
  20. package/dist/es/{Loading-BW99pE5N.js → Loading-CBNDUWQd.js} +12 -12
  21. package/dist/es/Message-DgnyyuXn.js +152 -0
  22. package/dist/es/Notification-LYRXnVAf.js +69 -0
  23. package/dist/es/{Overlay-BRDSWspM.js → Overlay-CpvMhnuU.js} +1 -1
  24. package/dist/es/Pixelate-BPypBgJU.js +67 -0
  25. package/dist/es/Popconfirm-DvxFdLrw.js +23 -0
  26. package/dist/es/Progress-Bc5INMhJ.js +12 -0
  27. package/dist/es/Radio-263_rtRl.js +33 -0
  28. package/dist/es/{Select-Dwqv8isB.js → Select-7ZxUCS8z.js} +13 -13
  29. package/dist/es/{Switch-B1Gnv1tB.js → Switch-DiCsMJT3.js} +3 -3
  30. package/dist/es/Table-BvA_xzDe.js +10 -0
  31. package/dist/es/Tooltip-J3ji6weH.js +74 -0
  32. package/dist/es/hooks-BqobYUzS.js +171 -0
  33. package/dist/es/index.js +90 -70
  34. package/dist/{theme → es/theme}/Avatar.css +13 -43
  35. package/dist/{theme → es/theme}/Breadcrumb.css +46 -4
  36. package/dist/es/theme/Card.css +347 -0
  37. package/dist/es/theme/Checkbox.css +484 -0
  38. package/dist/es/theme/Divider.css +111 -0
  39. package/dist/es/theme/Drawer.css +206 -0
  40. package/dist/es/theme/Dropdown.css +471 -0
  41. package/dist/es/theme/Indicator.css +159 -0
  42. package/dist/{theme → es/theme}/Input.css +1 -0
  43. package/dist/{theme → es/theme}/Link.css +22 -3
  44. package/dist/{theme → es/theme}/Loading.css +50 -12
  45. package/dist/{theme → es/theme}/Message.css +249 -40
  46. package/dist/es/theme/Notification.css +316 -0
  47. package/dist/es/theme/Popconfirm.css +46 -0
  48. package/dist/es/theme/Progress.css +278 -0
  49. package/dist/es/theme/Radio.css +426 -0
  50. package/dist/es/theme/Table.css +680 -0
  51. package/dist/es/theme/Tooltip.css +235 -0
  52. package/dist/es/utils-BS5vsvlM.js +101 -0
  53. package/dist/index.css +1 -1
  54. package/dist/types/components/Avatar/types.d.ts +0 -2
  55. package/dist/types/components/Checkbox/constants.d.ts +5 -0
  56. package/dist/types/components/Checkbox/index.d.ts +94 -0
  57. package/dist/types/components/Checkbox/types.d.ts +46 -0
  58. package/dist/types/components/Collapse/index.d.ts +5 -5
  59. package/dist/types/components/Divider/index.d.ts +30 -0
  60. package/dist/types/components/Divider/types.d.ts +10 -0
  61. package/dist/types/components/Drawer/constants.d.ts +1 -0
  62. package/dist/types/components/Drawer/index.d.ts +72 -0
  63. package/dist/types/components/Drawer/types.d.ts +20 -0
  64. package/dist/types/components/Dropdown/index.d.ts +11 -1
  65. package/dist/types/components/Dropdown/types.d.ts +3 -0
  66. package/dist/types/components/Dropdown/useDropdownKeyboard.d.ts +8 -0
  67. package/dist/types/components/FileInput/index.d.ts +5 -5
  68. package/dist/types/components/Indicator/constants.d.ts +2 -0
  69. package/dist/types/components/Indicator/index.d.ts +28 -0
  70. package/dist/types/components/Indicator/types.d.ts +10 -0
  71. package/dist/types/components/Input/index.d.ts +10 -10
  72. package/dist/types/components/Message/methods.d.ts +2 -0
  73. package/dist/types/components/Message/types.d.ts +7 -1
  74. package/dist/types/components/MessageBox/types.d.ts +14 -2
  75. package/dist/types/components/Notification/methods.d.ts +3 -0
  76. package/dist/types/components/Notification/types.d.ts +8 -2
  77. package/dist/types/components/Pixelate/constants.d.ts +2 -0
  78. package/dist/types/components/Pixelate/index.d.ts +71 -0
  79. package/dist/types/components/Pixelate/types.d.ts +23 -0
  80. package/dist/types/components/Popconfirm/index.d.ts +16 -7
  81. package/dist/types/components/Popconfirm/types.d.ts +2 -1
  82. package/dist/types/components/Progress/constants.d.ts +2 -0
  83. package/dist/types/components/Progress/index.d.ts +50 -0
  84. package/dist/types/components/Progress/types.d.ts +22 -0
  85. package/dist/types/components/Radio/constants.d.ts +5 -0
  86. package/dist/types/components/Radio/index.d.ts +88 -0
  87. package/dist/types/components/Radio/types.d.ts +43 -0
  88. package/dist/types/components/Select/index.d.ts +30 -21
  89. package/dist/types/components/Switch/index.d.ts +5 -5
  90. package/dist/types/components/Table/index.d.ts +27 -0
  91. package/dist/types/components/Table/types.d.ts +20 -0
  92. package/dist/types/components/Tooltip/index.d.ts +6 -0
  93. package/dist/types/components/Tooltip/types.d.ts +7 -0
  94. package/dist/types/components/index.d.ts +8 -0
  95. package/dist/types/hooks/index.d.ts +3 -1
  96. package/dist/types/hooks/useDraggable.d.ts +7 -0
  97. package/dist/types/hooks/useFocusTrap.d.ts +5 -0
  98. package/dist/types/utils/index.d.ts +1 -0
  99. package/dist/types/utils/instance-management.d.ts +40 -0
  100. package/dist/umd/index.css +1 -1
  101. package/dist/umd/index.css.gz +0 -0
  102. package/dist/umd/index.umd.cjs +4 -4
  103. package/dist/umd/index.umd.cjs.gz +0 -0
  104. package/package.json +59 -59
  105. package/dist/es/Avatar-CxsRW-wl.js +0 -9
  106. package/dist/es/Dropdown-GcomGMAI.js +0 -40
  107. package/dist/es/Form-j90EzLXU.js +0 -122
  108. package/dist/es/Message-DCNnTUje.js +0 -123
  109. package/dist/es/Notification-CBzY5904.js +0 -58
  110. package/dist/es/Popconfirm-DF6d2ORS.js +0 -23
  111. package/dist/es/Tooltip-k6gKnMyt.js +0 -74
  112. package/dist/es/hooks-BaG7l8K5.js +0 -116
  113. package/dist/es/utils-bsCscZfS.js +0 -84
  114. package/dist/theme/Card.css +0 -263
  115. package/dist/theme/Dropdown.css +0 -187
  116. package/dist/theme/Notification.css +0 -126
  117. package/dist/theme/Popconfirm.css +0 -30
  118. package/dist/theme/Tooltip.css +0 -111
  119. /package/dist/{theme → es/theme}/Alert.css +0 -0
  120. /package/dist/{theme → es/theme}/Badge.css +0 -0
  121. /package/dist/{theme → es/theme}/Button.css +0 -0
  122. /package/dist/{theme → es/theme}/Collapse.css +0 -0
  123. /package/dist/{theme → es/theme}/FileInput.css +0 -0
  124. /package/dist/{theme → es/theme}/Form.css +0 -0
  125. /package/dist/{theme → es/theme}/Icon.css +0 -0
  126. /package/dist/{theme → es/theme}/Overlay.css +0 -0
  127. /package/dist/{theme → es/theme}/Select.css +0 -0
  128. /package/dist/{theme → es/theme}/Switch.css +0 -0
  129. /package/dist/{theme → es/theme}/fonts/zpix.woff2 +0 -0
  130. /package/dist/{theme → es/theme}/index.css +0 -0
@@ -0,0 +1,10 @@
1
+ import { w as e } from "./utils-BS5vsvlM.js";
2
+ import { defineComponent as o, computed as s, createElementBlock as t, openBlock as a, normalizeClass as l, createElementVNode as p, renderSlot as i } from "vue";
3
+ const r = { class: "px-table__inner" }, n = ["xs", "sm", "md", "lg", "xl"], b = e(o({ name: "PxTable", __name: "Table", props: { type: {}, zebra: { type: Boolean }, hover: { type: Boolean }, border: { type: Boolean }, stripe: { type: Boolean }, pinRows: { type: Boolean }, pinCols: { type: Boolean }, size: { default: "md" }, showHeader: { type: Boolean, default: true }, outline: { type: Boolean }, ghost: { type: Boolean }, hoverable: { type: Boolean } }, setup(e2) {
4
+ const o2 = e2, n2 = s((() => o2.zebra || o2.stripe)), b2 = s((() => ({ "px-table": true, [`px-table--${o2.size}`]: o2.size, [`px-table--${o2.type}`]: o2.type, "is-zebra": n2.value, "is-hover": o2.hover, "is-border": o2.border, "is-pin-rows": o2.pinRows, "is-pin-cols": o2.pinCols, "is-hide-header": !o2.showHeader, "is-outline": o2.outline, "is-ghost": o2.ghost, "is-hoverable": o2.hoverable })));
5
+ return (e3, o3) => (a(), t("div", { class: l(b2.value) }, [p("div", r, [i(e3.$slots, "default")])], 2));
6
+ } }));
7
+ export {
8
+ b as P,
9
+ n as t
10
+ };
@@ -0,0 +1,74 @@
1
+ import { e, _ as t, w as a } from "./utils-BS5vsvlM.js";
2
+ import { onMounted as o, watch as l, onUnmounted as i, defineComponent as r, ref as n, computed as u, watchEffect as s, createElementBlock as c, openBlock as v, mergeProps as p, toHandlers as d, renderSlot as f, createVNode as m, unref as g, Transition as h, withCtx as y, createCommentVNode as x, createTextVNode as _, toDisplayString as b } from "vue";
3
+ import { createPopper as k } from "@popperjs/core";
4
+ import { u as T, c as w } from "./hooks-BqobYUzS.js";
5
+ import { H as B, f as $, E as j, v as W } from "./vendor-DXmGx29U.js";
6
+ const A = ["aria-describedby"], E = ["id"], L = { key: 0, class: "px-tooltip__arrow", "data-popper-arrow": "" }, N = t(r({ name: "PxTooltip", __name: "Tooltip", props: { content: {}, trigger: { default: "hover" }, placement: { default: "bottom" }, manual: { type: Boolean }, disabled: { type: Boolean }, popperOptions: {}, transition: { default: "fade" }, showTimeout: { default: 0 }, hideTimeout: { default: 200 }, virtualRef: {}, virtualTriggering: { type: Boolean }, effect: { default: "dark" }, type: {}, enterable: { type: Boolean, default: true }, maxWidth: {}, showArrow: { type: Boolean } }, emits: ["visible-change", "click-outside"], setup(t2, { expose: a2, emit: r2 }) {
7
+ const N2 = t2, R2 = r2, O = n(false), P = T("px-tooltip"), D = n({}), H = n({}), I = n({}), M = n(), q = n(), z = n(), C = u((() => N2.virtualTriggering ? N2.virtualRef : z.value)), F = u((() => ({ placement: N2.placement, modifiers: [{ name: "offset", options: { offset: [0, 9] } }], ...N2.popperOptions }))), G = u((() => "hover" === N2.trigger ? N2.showTimeout : 0)), J = u((() => "hover" === N2.trigger ? N2.hideTimeout : 0)), K = u((() => N2.maxWidth ? { maxWidth: e(N2.maxWidth) } : {}));
8
+ let Q, S, U;
9
+ function V() {
10
+ S == null ? void 0 : S.cancel(), Q == null ? void 0 : Q();
11
+ }
12
+ function X() {
13
+ Q == null ? void 0 : Q.cancel(), S == null ? void 0 : S();
14
+ }
15
+ function Y() {
16
+ O.value ? X() : V();
17
+ }
18
+ function Z(e2) {
19
+ N2.disabled || (O.value = e2, R2("visible-change", e2));
20
+ }
21
+ function ee() {
22
+ if (!N2.disabled && !N2.manual) return "hover" === N2.trigger ? (D.value.mouseenter = V, H.value.mouseleave = X, void (N2.enterable && (I.value.mouseenter = V))) : void ("click" !== N2.trigger ? "contextmenu" !== N2.trigger || (D.value.contextmenu = (e2) => {
23
+ e2.preventDefault(), V();
24
+ }) : D.value.click = Y);
25
+ }
26
+ function te() {
27
+ U == null ? void 0 : U.destroy(), U = null;
28
+ }
29
+ function ae() {
30
+ D.value = {}, H.value = {}, I.value = {}, ee();
31
+ }
32
+ const oe = V, le = () => {
33
+ Q == null ? void 0 : Q.cancel(), Z(false);
34
+ };
35
+ return l(O, ((e2) => {
36
+ e2 && C.value && q.value && (U = k(C.value, q.value, F.value));
37
+ }), { flush: "post" }), l((() => N2.manual), ((e2) => {
38
+ e2 ? ae() : ee();
39
+ })), l((() => N2.trigger), (() => {
40
+ Q == null ? void 0 : Q.cancel(), O.value = false, R2("visible-change", false), ae();
41
+ })), s((() => {
42
+ N2.manual || ee(), Q == null ? void 0 : Q.cancel(), S == null ? void 0 : S.cancel(), Q = j(W(Z, null, true), G.value), S = j(W(Z, null, false), J.value);
43
+ })), w(M, (() => {
44
+ R2("click-outside"), "hover" === N2.trigger || N2.manual || O.value && X();
45
+ })), (function(e2, t3, a3) {
46
+ let r3, n2;
47
+ const u2 = /* @__PURE__ */ new Map(), s2 = () => {
48
+ const e3 = t3.value;
49
+ e3 && B(e3) && $(a3.value, ((t4, a4) => {
50
+ u2.set(a4, t4), e3.addEventListener(a4, t4);
51
+ }));
52
+ }, c2 = (e3) => {
53
+ const a4 = e3 ?? t3.value;
54
+ a4 && B(a4) && $(["mouseenter", "click", "contextmenu"], ((e4) => u2.has(e4) && a4.removeEventListener(e4, u2.get(e4))));
55
+ };
56
+ o((() => {
57
+ n2 = l((() => e2.virtualRef), ((t4, a4) => {
58
+ e2.virtualTriggering && (B(a4) && c2(a4), B(t4) && s2());
59
+ }), { immediate: true }), r3 = l(a3, (() => {
60
+ e2.virtualTriggering && (c2(), s2(), Q == null ? void 0 : Q.cancel(), Z(false));
61
+ }), { deep: true });
62
+ })), i((() => {
63
+ r3 == null ? void 0 : r3(), n2 == null ? void 0 : n2();
64
+ }));
65
+ })(N2, C, D), i((() => {
66
+ te(), Q == null ? void 0 : Q.cancel(), S == null ? void 0 : S.cancel();
67
+ })), a2({ show: oe, hide: le, toggle: () => {
68
+ O.value ? le() : oe();
69
+ } }), (e2, t3) => (v(), c("div", p({ class: ["px-tooltip", [`px-tooltip--${e2.effect}`, e2.type && `px-tooltip--${e2.type}`]], ref_key: "containerNode", ref: M }, d(H.value, true)), [e2.virtualTriggering ? f(e2.$slots, "default", { key: 1 }, void 0, true) : (v(), c("div", p({ key: 0, class: "px-tooltip__trigger", ref_key: "_triggerNode", ref: z }, d(D.value, true), { "aria-describedby": O.value ? g(P) : void 0 }), [f(e2.$slots, "default", {}, void 0, true)], 16, A)), m(h, { name: e2.transition, onAfterLeave: te }, { default: y((() => [O.value ? (v(), c("div", p({ key: 0, class: "px-tooltip__popper", ref_key: "popperNode", ref: q }, d(I.value, true), { id: g(P), style: K.value, role: "tooltip" }), [f(e2.$slots, "content", {}, (() => [_(b(e2.content), 1)]), true), e2.showArrow ? (v(), c("div", L)) : x("", true)], 16, E)) : x("", true)])), _: 3 }, 8, ["name"])], 16));
70
+ } }), [["__scopeId", "data-v-d982dfd2"]]), R = a(N);
71
+ export {
72
+ R as P,
73
+ N as T
74
+ };
@@ -0,0 +1,171 @@
1
+ import { isRef as e, watch as t, onMounted as n, onBeforeUnmount as o, unref as a, getCurrentInstance as r, useSlots as l, watchEffect as u, ref as s, inject as i, computed as c, onUnmounted as d } from "vue";
2
+ import { f as m, y as v, k as f, z as p, n as h, o as g, a as E } from "./vendor-DXmGx29U.js";
3
+ function L(r2, l2, u2) {
4
+ e(r2) ? t(r2, ((e2, t2) => {
5
+ null == t2 || t2.removeEventListener(l2, u2), null == e2 || e2.addEventListener(l2, u2);
6
+ })) : n((() => null == r2 ? void 0 : r2.addEventListener(l2, u2))), o((() => {
7
+ var e2;
8
+ return null == (e2 = a(r2)) ? void 0 : e2.removeEventListener(l2, u2);
9
+ }));
10
+ }
11
+ function w(e2, t2) {
12
+ L(document, "click", ((n2) => {
13
+ e2.value && n2.target && (e2.value.contains(n2.target) || t2(n2));
14
+ }));
15
+ }
16
+ const y = (e2, t2) => m(e2, ((e3) => {
17
+ v(t2) && t2(e3), e3.children && y(e3.children, t2);
18
+ }));
19
+ function x() {
20
+ var e2, t2;
21
+ const n2 = /* @__PURE__ */ new Map(), o2 = r(), a2 = null == (t2 = null == (e2 = l()) ? void 0 : e2.default) ? void 0 : t2.call(e2);
22
+ u((() => {
23
+ (null == o2 ? void 0 : o2.props.disabled) ? y(a2 ?? [], ((e3) => {
24
+ (null == e3 ? void 0 : e3.props) && (n2.set(e3, f(e3.props)), e3.props = p(null == e3 ? void 0 : e3.props, { style: { cursor: "not-allowed", color: "var(--px-text-color-placeholder)" } }));
25
+ })) : y(a2 ?? [], ((e3) => {
26
+ n2.has(e3) && (e3.props = n2.get(e3));
27
+ }));
28
+ }));
29
+ }
30
+ function k(e2, n2, a2 = {}) {
31
+ let r2 = 0, l2 = 0, u2 = 0, s2 = 0, i2 = false;
32
+ function c2(e3) {
33
+ 0 === e3.button && (i2 = true, u2 = e3.clientX - r2, s2 = e3.clientY - l2, document.addEventListener("mousemove", d2), document.addEventListener("mouseup", m2), e3.preventDefault());
34
+ }
35
+ function d2(t2) {
36
+ if (!i2) return;
37
+ const n3 = e2.value;
38
+ if (!n3) return;
39
+ let o2 = t2.clientX - u2, c3 = t2.clientY - s2;
40
+ if (a2.constrainToViewport) {
41
+ const e3 = n3.getBoundingClientRect(), t3 = document.documentElement.clientWidth, a3 = document.documentElement.clientHeight, u3 = e3.left - r2, s3 = e3.top - l2, i3 = -u3, d3 = t3 - u3 - e3.width, m3 = -s3, v3 = a3 - s3 - e3.height;
42
+ o2 = Math.max(i3, Math.min(d3, o2)), c3 = Math.max(m3, Math.min(v3, c3));
43
+ }
44
+ r2 = o2, l2 = c3, n3.style.transform = `translate(${r2}px, ${l2}px)`;
45
+ }
46
+ function m2() {
47
+ i2 = false, document.removeEventListener("mousemove", d2), document.removeEventListener("mouseup", m2);
48
+ }
49
+ function v2(e3) {
50
+ null == e3 || e3.removeEventListener("mousedown", c2);
51
+ }
52
+ return t(n2, ((e3, t2) => {
53
+ var n3;
54
+ v2(t2), i2 && (i2 = false, document.removeEventListener("mousemove", d2), document.removeEventListener("mouseup", m2)), null == (n3 = e3) || n3.addEventListener("mousedown", c2);
55
+ }), { immediate: true }), o((() => {
56
+ v2(n2.value), document.removeEventListener("mousemove", d2), document.removeEventListener("mouseup", m2);
57
+ })), { reset: function() {
58
+ const t2 = e2.value;
59
+ r2 = 0, l2 = 0, t2 && (t2.style.transform = "");
60
+ } };
61
+ }
62
+ function b(e2, { afterBlur: t2, beforeBlur: n2, afterFocus: o2 } = {}) {
63
+ const a2 = r(), { emit: l2 } = a2, u2 = s(), i2 = s(false);
64
+ return L(u2, "click", (() => {
65
+ var t3;
66
+ null == (t3 = e2.value) || t3.focus();
67
+ })), { wrapperRef: u2, isFocused: i2, handleFocus: (e3) => {
68
+ i2.value || (i2.value = true, l2("focus", e3), null == o2 || o2());
69
+ }, handleBlur: (e3) => {
70
+ var o3;
71
+ v(n2) && n2(e3) || e3.relatedTarget && (null == (o3 = u2.value) ? void 0 : o3.contains(e3.relatedTarget)) || (i2.value = false, l2("blur", e3), null == t2 || t2());
72
+ } };
73
+ }
74
+ const M = ["a[href]", "button:not([disabled])", "input:not([disabled])", "textarea:not([disabled])", "select:not([disabled])", '[tabindex]:not([tabindex="-1"])'].join(", ");
75
+ function D(e2) {
76
+ let t2 = null, n2 = false;
77
+ function a2(t3) {
78
+ if (!n2 || "Tab" !== t3.key) return;
79
+ const o2 = e2.value;
80
+ if (!o2) return;
81
+ const a3 = Array.from(o2.querySelectorAll(M)).filter(((e3) => null !== e3.offsetParent));
82
+ if (0 === a3.length) return void t3.preventDefault();
83
+ const r3 = a3[0], l2 = a3[a3.length - 1];
84
+ t3.shiftKey ? document.activeElement !== r3 && o2.contains(document.activeElement) || (t3.preventDefault(), l2.focus()) : document.activeElement !== l2 && o2.contains(document.activeElement) || (t3.preventDefault(), r3.focus());
85
+ }
86
+ function r2() {
87
+ n2 && (n2 = false, document.removeEventListener("keydown", a2), t2 && "function" == typeof t2.focus && t2.focus(), t2 = null);
88
+ }
89
+ return o((() => {
90
+ r2();
91
+ })), { activate: function() {
92
+ n2 || (t2 = document.activeElement, n2 = true, document.addEventListener("keydown", a2));
93
+ }, deactivate: r2 };
94
+ }
95
+ const T = { prefix: Math.floor(1e4 * Math.random()), current: 0 };
96
+ function B(e2 = "er") {
97
+ const t2 = `${e2}-${T.prefix}-${T.current++}`;
98
+ return s(t2);
99
+ }
100
+ const I = { name: "en", el: { select: { loading: "Loading", noMatch: "No matching data", noData: "No data", placeholder: "Select" }, dropdown: { toggleDropdown: "Toggle Dropdown" }, messagebox: { title: "Message", confirm: "OK", cancel: "Cancel", error: "Illegal input", close: "Close this dialog" }, popconfirm: { confirmButtonText: "Yes", cancelButtonText: "No" } } };
101
+ function S(e2) {
102
+ {
103
+ const e3 = i(h, s(g({ locale: I.name, messages: { en: I.el } })));
104
+ return c((() => {
105
+ return t2 = a(e3), E(t2, "install");
106
+ var t2;
107
+ }));
108
+ }
109
+ }
110
+ function $(e2) {
111
+ const t2 = c((() => e2.getLastBottomOffset())), n2 = c((() => e2.offset + t2.value)), o2 = c((() => n2.value + e2.boxHeight.value));
112
+ return { topOffset: n2, bottomOffset: o2 };
113
+ }
114
+ const O = s(0);
115
+ function j(e2 = 2e3) {
116
+ const t2 = s(e2), n2 = c((() => O.value + t2.value));
117
+ return { initialValue: t2, currentZIndex: n2, nextZIndex: () => (O.value++, n2.value) };
118
+ }
119
+ function C() {
120
+ const e2 = s(false);
121
+ let t2 = null, o2 = null;
122
+ return n((() => {
123
+ "undefined" != typeof window && (t2 = window.matchMedia("(prefers-color-scheme: dark)"), e2.value = t2.matches, o2 = (t3) => {
124
+ e2.value = t3.matches;
125
+ }, t2.addEventListener ? t2.addEventListener("change", o2) : t2.addListener(o2));
126
+ })), d((() => {
127
+ t2 && o2 && (t2.removeEventListener ? t2.removeEventListener("change", o2) : t2.removeListener(o2));
128
+ })), { prefersDark: e2, prefers: c((() => e2.value ? "dark" : "light")) };
129
+ }
130
+ const F = "px-theme", N = "px-dark", Y = s("system"), A = s(false);
131
+ function H(e2) {
132
+ "undefined" != typeof document && (e2 ? document.documentElement.classList.add(N) : document.documentElement.classList.remove(N));
133
+ }
134
+ function K(e2) {
135
+ return "system" === e2 ? "undefined" != typeof window && window.matchMedia("(prefers-color-scheme: dark)").matches : "dark" === e2;
136
+ }
137
+ let R = false;
138
+ function V() {
139
+ if (!R && "undefined" != typeof window) {
140
+ !(function() {
141
+ if ("undefined" == typeof window) return;
142
+ const e4 = localStorage.getItem(F);
143
+ e4 && ["light", "dark", "system"].includes(e4) ? Y.value = e4 : Y.value = "system", A.value = K(Y.value), H(A.value);
144
+ })(), R = true;
145
+ const e3 = window.matchMedia("(prefers-color-scheme: dark)"), t2 = (e4) => {
146
+ "system" === Y.value && (A.value = e4.matches, H(A.value));
147
+ };
148
+ e3.addEventListener ? e3.addEventListener("change", t2) : e3.addListener(t2);
149
+ }
150
+ const e2 = (e3) => {
151
+ Y.value = e3, A.value = K(e3), H(A.value), "undefined" != typeof localStorage && localStorage.setItem(F, e3);
152
+ };
153
+ return { theme: c((() => Y.value)), isDark: c((() => A.value)), setTheme: e2, toggleTheme: () => {
154
+ const t2 = A.value ? "light" : "dark";
155
+ e2(t2);
156
+ } };
157
+ }
158
+ export {
159
+ j as a,
160
+ L as b,
161
+ w as c,
162
+ x as d,
163
+ b as e,
164
+ $ as f,
165
+ S as g,
166
+ D as h,
167
+ k as i,
168
+ C as j,
169
+ V as k,
170
+ B as u
171
+ };
package/dist/es/index.js CHANGED
@@ -1,91 +1,111 @@
1
- import { P as g } from "./Alert-C76ZWSVk.js";
2
- import { P as I } from "./Avatar-CxsRW-wl.js";
3
- import { P as C } from "./Badge-CoFWwBwv.js";
4
- import { P as o, a as l } from "./Breadcrumb-BtrwTVKW.js";
5
- import { a as Z, P as c } from "./Button-S_31-UWJ.js";
6
- import { P as e } from "./Card-DcW6nHYD.js";
7
- import { P as s, a as A } from "./Collapse-DsS7M-m3.js";
8
- import { P as B, p } from "./ConfigProvider-BgIewHXP.js";
9
- import { E, u } from "./ConfigProvider-BgIewHXP.js";
10
- import { P as G, a as b } from "./Dropdown-GcomGMAI.js";
11
- import { P as t } from "./FileInput-BQ59woas.js";
12
- import { P as r, a as y } from "./Form-j90EzLXU.js";
13
- import { u as u2 } from "./Form-j90EzLXU.js";
14
- import { a as W, r as X } from "./Icon-DpJyuj7c.js";
15
- import { d, i } from "./Icon-DpJyuj7c.js";
16
- import { P as w } from "./Input-CiE4bPJN.js";
17
- import { P as H } from "./Link-B9B2APZq.js";
18
- import { P as S, a as K } from "./Loading-BW99pE5N.js";
19
- import { v, L, v as v2 } from "./Loading-BW99pE5N.js";
20
- import { P as Y, a as R } from "./Message-DCNnTUje.js";
21
- import { m } from "./Message-DCNnTUje.js";
22
- import { P as Q } from "./Notification-CBzY5904.js";
23
- import { a, n } from "./Notification-CBzY5904.js";
24
- import { P as V } from "./Popconfirm-DF6d2ORS.js";
25
- import { P as N, a as k } from "./Select-Dwqv8isB.js";
26
- import { P as f } from "./Switch-B1Gnv1tB.js";
27
- import { P as x } from "./Tooltip-k6gKnMyt.js";
28
- import { f as F } from "./vendor-DXmGx29U.js";
1
+ import { P as g } from "./Alert-BwTsp4X3.js";
2
+ import { P as o } from "./Avatar-CJu6JYV3.js";
3
+ import { P as I } from "./Badge-BmxZXX8k.js";
4
+ import { P as C, a as l } from "./Breadcrumb-BP8MSklj.js";
5
+ import { a as Z, P as s } from "./Button-BJHtN7gh.js";
6
+ import { P as c } from "./Card-DJHkCmsz.js";
7
+ import { P as e, a as A } from "./Checkbox-DX8L3fyp.js";
8
+ import { P as p, a as B } from "./Collapse-Ir3V9CuO.js";
9
+ import { P as b, p as G } from "./ConfigProvider-CsbSqwwi.js";
10
+ import { E, u } from "./ConfigProvider-CsbSqwwi.js";
11
+ import { P as r } from "./Drawer-C2eVmvUp.js";
12
+ import { P as y } from "./Divider-C7PtODSK.js";
13
+ import { P as W, a as X } from "./Dropdown-CVg_c2fB.js";
14
+ import { P as w } from "./FileInput-BE26BmXm.js";
15
+ import { P as h, a as S } from "./Form-7lZt5ehf.js";
16
+ import { u as u2 } from "./Form-7lZt5ehf.js";
17
+ import { a as H, r as K } from "./Icon-BLDDdSU-.js";
18
+ import { d, i } from "./Icon-BLDDdSU-.js";
19
+ import { P as Y } from "./Indicator-B-en-MgG.js";
20
+ import { P as R } from "./Input-C5HuVehE.js";
21
+ import { P as Q } from "./Link-Av9RdcFv.js";
22
+ import { P as V, a as f } from "./Loading-CBNDUWQd.js";
23
+ import { v, L, v as v2 } from "./Loading-CBNDUWQd.js";
24
+ import { P as x, a as N } from "./Message-DgnyyuXn.js";
25
+ import { m } from "./Message-DgnyyuXn.js";
26
+ import { P as F } from "./Notification-LYRXnVAf.js";
27
+ import { a, n } from "./Notification-LYRXnVAf.js";
28
+ import { P } from "./Pixelate-BPypBgJU.js";
29
+ import { P as J } from "./Popconfirm-DvxFdLrw.js";
30
+ import { P as D } from "./Progress-Bc5INMhJ.js";
31
+ import { P as U, a as z } from "./Radio-263_rtRl.js";
32
+ import { P as T, a as M } from "./Select-7ZxUCS8z.js";
33
+ import { P as O } from "./Switch-DiCsMJT3.js";
34
+ import { P as q } from "./Table-BvA_xzDe.js";
35
+ import { t } from "./Table-BvA_xzDe.js";
36
+ import { P as $ } from "./Tooltip-J3ji6weH.js";
37
+ import { f as _ } from "./vendor-DXmGx29U.js";
29
38
  import "vue";
30
- import { h, i as i2 } from "./hooks-BaG7l8K5.js";
31
- const j = [I, C, o, l, Z, c, e, W, s, A, g, x, V, G, b, Y, Q, w, H, t, R, S, K, f, N, k, r, y, B], J = { name: "ja", el: { select: { loading: "ロード中", noMatch: "データなし", noData: "データなし", placeholder: "選択してください" }, dropdown: { toggleDropdown: "ドロップダウン切替" }, messagebox: { title: "メッセージ", confirm: "OK", cancel: "キャンセル", error: "正しくない入力", close: "このダイアログを閉じる" }, popconfirm: { confirmButtonText: "はい", cancelButtonText: "いいえ" } } }, D = { name: "ko", el: { select: { loading: "불러오는 중", noMatch: "검색된 데이터 없음", noData: "데이터 없음", placeholder: "선택" }, dropdown: { toggleDropdown: "드롭다운 전환" }, messagebox: { title: "메시지", confirm: "확인", cancel: "취소", error: "올바르지 않은 입력", close: "대화 상자 닫기" }, popconfirm: { confirmButtonText: "예", cancelButtonText: "아니오" } } }, P = { name: "zh-cn", el: { select: { loading: "加载中", noMatch: "无匹配数据", noData: "无数据", placeholder: "请选择" }, dropdown: { toggleDropdown: "切换下拉菜单" }, messagebox: { title: "提示", confirm: "确定", cancel: "取消", error: "输入的数据不合法!", close: "关闭此对话框" }, popconfirm: { confirmButtonText: "确定", cancelButtonText: "取消" } } }, U = { name: "zh-tw", el: { select: { loading: "載入中", noMatch: "無相符資料", noData: "無資料", placeholder: "請選擇" }, dropdown: { toggleDropdown: "切換下拉選單" }, messagebox: { title: "提示", confirm: "確定", cancel: "取消", error: "輸入的資料不符規定!", close: "關閉此對話框" }, popconfirm: { confirmButtonText: "確認", cancelButtonText: "取消" } } };
32
- if (X(), "undefined" != typeof CSS && "paintWorklet" in CSS) try {
39
+ import { j, k } from "./hooks-BqobYUzS.js";
40
+ const gg = [o, I, C, l, Z, s, c, e, A, H, Y, p, B, g, r, $, J, W, X, x, F, R, Q, w, N, V, f, O, q, T, M, P, D, h, S, b, y, U, z], og = { name: "ja", el: { select: { loading: "ロード中", noMatch: "データなし", noData: "データなし", placeholder: "選択してください" }, dropdown: { toggleDropdown: "ドロップダウン切替" }, messagebox: { title: "メッセージ", confirm: "OK", cancel: "キャンセル", error: "正しくない入力", close: "このダイアログを閉じる" }, popconfirm: { confirmButtonText: "はい", cancelButtonText: "いいえ" } } }, Ig = { name: "ko", el: { select: { loading: "불러오는 중", noMatch: "검색된 데이터 없음", noData: "데이터 없음", placeholder: "선택" }, dropdown: { toggleDropdown: "드롭다운 전환" }, messagebox: { title: "메시지", confirm: "확인", cancel: "취소", error: "올바르지 않은 입력", close: "대화 상자 닫기" }, popconfirm: { confirmButtonText: "예", cancelButtonText: "아니오" } } }, Cg = { name: "zh-cn", el: { select: { loading: "加载中", noMatch: "无匹配数据", noData: "无数据", placeholder: "请选择" }, dropdown: { toggleDropdown: "切换下拉菜单" }, messagebox: { title: "提示", confirm: "确定", cancel: "取消", error: "输入的数据不合法!", close: "关闭此对话框" }, popconfirm: { confirmButtonText: "确定", cancelButtonText: "取消" } } }, ag = { name: "zh-tw", el: { select: { loading: "載入中", noMatch: "無相符資料", noData: "無資料", placeholder: "請選擇" }, dropdown: { toggleDropdown: "切換下拉選單" }, messagebox: { title: "提示", confirm: "確定", cancel: "取消", error: "輸入的資料不符規定!", close: "關閉此對話框" }, popconfirm: { confirmButtonText: "確認", cancelButtonText: "取消" } } };
41
+ if (K(), "undefined" != typeof CSS && "paintWorklet" in CSS) try {
33
42
  CSS.paintWorklet.addModule(new URL("data:text/javascript;base64,LyoqCiAqIENTUyBIb3VkaW5pIFBhaW50IFdvcmtsZXQgLSBQaXhlbCBCb3JkZXIKICoKICogQ3JlYXRlcyBhdXRoZW50aWMgcGl4ZWxhdGVkIGJvcmRlcnMgZm9yIHJldHJvIFVJIGFlc3RoZXRpYwogKgogKiBDdXN0b20gUHJvcGVydGllczoKICogLSAtLXB4LWJvcmRlci1jb2xvcjogQm9yZGVyIGNvbG9yIChkZWZhdWx0OiAjMDAwMDAwKQogKiAtIC0tcHgtYm9yZGVyLXdpZHRoOiBCb3JkZXIgd2lkdGggaW4gcGl4ZWxzIChkZWZhdWx0OiAyKQogKiAtIC0tcHgtYm9yZGVyLXBpeGVsLXNpemU6IFNpemUgb2YgZWFjaCBwaXhlbCBibG9jayAoZGVmYXVsdDogMikKICovCgpjbGFzcyBQaXhlbEJvcmRlclBhaW50ZXIgewogIHN0YXRpYyBnZXQgaW5wdXRQcm9wZXJ0aWVzKCkgewogICAgcmV0dXJuIFsnLS1weC1ib3JkZXItY29sb3InLCAnLS1weC1ib3JkZXItd2lkdGgnLCAnLS1weC1ib3JkZXItcGl4ZWwtc2l6ZSddOwogIH0KCiAgcGFpbnQoY3R4LCBzaXplLCBwcm9wZXJ0aWVzKSB7CiAgICAvLyBHZXQgY3VzdG9tIHByb3BlcnR5IHZhbHVlcwogICAgY29uc3QgYm9yZGVyQ29sb3IgPSBwcm9wZXJ0aWVzLmdldCgnLS1weC1ib3JkZXItY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CB3aWR0aDsgeCArPSBwaXhlbFNpemUpIHsKICAgICAgZm9yIChsZXQgeSA9IGhlaWdodDsgeSA8IGhlaWdodCArIHNoYWRvd09mZnNldDsgeSArPSBwaXhlbFNpemUpIHsKICAgICAgICBjb25zdCBkaXN0YW5jZSA9IHkgLSBoZWlnaHQ7CiAgICAgICAgaWYgKGRpc3RhbmNlIDwgc2hhZG93T2Zmc2V0KSB7CiAgICAgICAgICBjdHguZ2xvYmFsQWxwaGEgPSAxIC0gZGlzdGFuY2UgLyBzaGFkb3dPZmZzZXQ7CiAgICAgICAgICBjdHguZmlsbFJlY3QoeCwgeSwgcGl4ZWxTaXplLCBwaXhlbFNpemUpOwogICAgICAgIH0KICAgICAgfQogICAgfQoKICAgIC8vIERyYXcgY29ybmVyIHNoYWRvdwogICAgY3R4Lmdsb2JhbEFscGhhID0gMC41OwogICAgZm9yIChsZXQgeCA9IHdpZHRoOyB4IDwgd2lkdGggKyBzaGFkb3dPZmZzZXQ7IHggKz0gcGl4ZWxTaXplKSB7CiAgICAgIGZvciAobGV0IHkgPSBoZWlnaHQ7IHkgPCBoZWlnaHQgKyBzaGFkb3dPZmZzZXQ7IHkgKz0gcGl4ZWxTaXplKSB7CiAgICAgICAgY3R4LmZpbGxSZWN0KHgsIHksIHBpeGVsU2l6ZSwgcGl4ZWxTaXplKTsKICAgICAgfQogICAgfQoKICAgIGN0eC5nbG9iYWxBbHBoYSA9IDE7CiAgfQp9CgovLyBSZWdpc3RlciB0aGUgcGFpbnQgd29ya2xldApyZWdpc3RlclBhaW50KCdwaXhlbC1zaGFkb3cnLCBQaXhlbFNoYWRvd1BhaW50ZXIpOwo=", import.meta.url).href);
34
43
  } catch (g2) {
35
44
  }
36
- const z = /* @__PURE__ */ (function(g2) {
37
- return (I2, C2) => {
38
- F(g2, ((g3) => I2.use(g3))), C2 && p(C2, I2, true);
45
+ const lg = /* @__PURE__ */ (function(g2) {
46
+ return (o2, I2) => {
47
+ _(g2, ((g3) => o2.use(g3))), I2 && G(I2, o2, true);
39
48
  };
40
- })(j);
49
+ })(gg);
41
50
  export {
42
51
  g as PxAlert,
43
- I as PxAvatar,
44
- C as PxBadge,
45
- o as PxBreadcrumb,
52
+ o as PxAvatar,
53
+ I as PxBadge,
54
+ C as PxBreadcrumb,
46
55
  l as PxBreadcrumbItem,
47
56
  Z as PxButton,
48
- c as PxButtonGroup,
49
- e as PxCard,
50
- s as PxCollapse,
51
- A as PxCollapseItem,
52
- B as PxConfigProvider,
53
- G as PxDropdown,
54
- b as PxDropdownItem,
55
- t as PxFileInput,
56
- r as PxForm,
57
- y as PxFormItem,
58
- W as PxIcon,
59
- w as PxInput,
60
- H as PxLink,
61
- S as PxLoading,
57
+ s as PxButtonGroup,
58
+ c as PxCard,
59
+ e as PxCheckbox,
60
+ A as PxCheckboxGroup,
61
+ p as PxCollapse,
62
+ B as PxCollapseItem,
63
+ b as PxConfigProvider,
64
+ y as PxDivider,
65
+ r as PxDrawer,
66
+ W as PxDropdown,
67
+ X as PxDropdownItem,
68
+ w as PxFileInput,
69
+ h as PxForm,
70
+ S as PxFormItem,
71
+ H as PxIcon,
72
+ Y as PxIndicator,
73
+ R as PxInput,
74
+ Q as PxLink,
75
+ V as PxLoading,
62
76
  v as PxLoadingDirective,
63
- K as PxLoadingIndicator,
77
+ f as PxLoadingIndicator,
64
78
  L as PxLoadingService,
65
- Y as PxMessage,
66
- R as PxMessageBox,
67
- Q as PxNotification,
68
- k as PxOption,
69
- V as PxPopconfirm,
70
- N as PxSelect,
71
- f as PxSwitch,
72
- x as PxTooltip,
73
- z as default,
79
+ x as PxMessage,
80
+ N as PxMessageBox,
81
+ F as PxNotification,
82
+ M as PxOption,
83
+ P as PxPixelate,
84
+ J as PxPopconfirm,
85
+ D as PxProgress,
86
+ U as PxRadio,
87
+ z as PxRadioGroup,
88
+ T as PxSelect,
89
+ O as PxSwitch,
90
+ q as PxTable,
91
+ $ as PxTooltip,
92
+ lg as default,
74
93
  d as defaultPixelIcons,
75
94
  E as en,
76
95
  i as iconSizeMap,
77
- J as ja,
78
- D as ko,
96
+ og as ja,
97
+ Ig as ko,
79
98
  m as messageTypes,
80
99
  a as notificationPosition,
81
100
  n as notificationTypes,
82
- p as provideGlobalConfig,
83
- X as registerDefaultPixelIcons,
101
+ G as provideGlobalConfig,
102
+ K as registerDefaultPixelIcons,
103
+ t as tableSize,
84
104
  u2 as useFormItem,
85
105
  u as useGlobalConfig,
86
- h as useSystemTheme,
87
- i2 as useTheme,
106
+ j as useSystemTheme,
107
+ k as useTheme,
88
108
  v2 as vLoading,
89
- P as zhCn,
90
- U as zhTw
109
+ Cg as zhCn,
110
+ ag as zhTw
91
111
  };
@@ -1,5 +1,5 @@
1
1
  /* Avatar Variables */
2
- .px-avatar[data-v-47da9c60] {
2
+ .px-avatar[data-v-be451b35] {
3
3
  --px-avatar-size: 48px;
4
4
  --px-avatar-bg-color: var(--px-fill-color);
5
5
  --px-avatar-text-color: var(--px-text-color-primary);
@@ -8,7 +8,7 @@
8
8
  --px-avatar-font-size: var(--px-font-size-base);
9
9
  }
10
10
  /* Base Avatar Styles - Pixel Game Aesthetic */
11
- .px-avatar[data-v-47da9c60] {
11
+ .px-avatar[data-v-be451b35] {
12
12
  display: inline-flex;
13
13
  justify-content: center;
14
14
  align-items: center;
@@ -31,8 +31,8 @@
31
31
  filter: drop-shadow(2px 2px 0px var(--px-avatar-shadow-color));
32
32
  }
33
33
  /* Circle shape (default) — 4-step staircase pixel circle */
34
- .px-avatar[data-v-47da9c60]::before,
35
- .px-avatar[data-v-47da9c60]::after {
34
+ .px-avatar[data-v-be451b35]::before,
35
+ .px-avatar[data-v-be451b35]::after {
36
36
  content: '';
37
37
  position: absolute;
38
38
  background: var(--px-avatar-bg-color);
@@ -45,25 +45,25 @@
45
45
  );
46
46
  }
47
47
  /* Border layer — hidden by default, shown with is-border */
48
- .px-avatar[data-v-47da9c60]::before {
48
+ .px-avatar[data-v-be451b35]::before {
49
49
  inset: 0;
50
50
  background: var(--px-avatar-border-color);
51
51
  display: none;
52
52
  }
53
53
  /* Fill layer */
54
- .px-avatar[data-v-47da9c60]::after {
54
+ .px-avatar[data-v-be451b35]::after {
55
55
  inset: 0;
56
56
  }
57
57
  /* Border visible */
58
- .px-avatar.is-border[data-v-47da9c60]::before {
58
+ .px-avatar.is-border[data-v-be451b35]::before {
59
59
  display: block;
60
60
  }
61
- .px-avatar.is-border[data-v-47da9c60]::after {
61
+ .px-avatar.is-border[data-v-be451b35]::after {
62
62
  inset: 2px;
63
63
  }
64
64
  /* Square shape — 2px chamfered pixel rectangle */
65
- .px-avatar.is-square[data-v-47da9c60]::before,
66
- .px-avatar.is-square[data-v-47da9c60]::after {
65
+ .px-avatar.is-square[data-v-be451b35]::before,
66
+ .px-avatar.is-square[data-v-be451b35]::after {
67
67
  clip-path: polygon(
68
68
  0 2px, 2px 2px, 2px 0,
69
69
  calc(100% - 2px) 0, calc(100% - 2px) 2px, 100% 2px,
@@ -71,46 +71,16 @@
71
71
  2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px)
72
72
  );
73
73
  }
74
- .px-avatar + .px-avatar[data-v-47da9c60] {
74
+ .px-avatar + .px-avatar[data-v-be451b35] {
75
75
  margin-left: 8px;
76
76
  }
77
77
  /* Size variants */
78
- .px-avatar--large[data-v-47da9c60] {
78
+ .px-avatar--large[data-v-be451b35] {
79
79
  --px-avatar-size: 64px;
80
80
  --px-avatar-font-size: var(--px-font-size-large);
81
81
  }
82
- .px-avatar--small[data-v-47da9c60] {
82
+ .px-avatar--small[data-v-be451b35] {
83
83
  --px-avatar-size: 32px;
84
84
  --px-avatar-font-size: var(--px-font-size-small);
85
85
  filter: drop-shadow(1px 1px 0px var(--px-avatar-shadow-color));
86
86
  }
87
- /* Online/Offline indicator dot */
88
- .px-avatar__indicator[data-v-47da9c60] {
89
- --px-avatar-indicator-size: 10px;
90
-
91
- position: absolute;
92
- top: 2px;
93
- right: 2px;
94
- width: var(--px-avatar-indicator-size);
95
- height: var(--px-avatar-indicator-size);
96
- border: 2px solid var(--px-bg-color, #ffffff);
97
- border-radius: 50%;
98
- z-index: 1;
99
- }
100
- .px-avatar__indicator.is-online[data-v-47da9c60] {
101
- background-color: var(--px-color-success);
102
- }
103
- .px-avatar__indicator.is-offline[data-v-47da9c60] {
104
- background-color: var(--px-color-info);
105
- }
106
- .px-avatar--large .px-avatar__indicator[data-v-47da9c60] {
107
- --px-avatar-indicator-size: 12px;
108
- top: 4px;
109
- right: 4px;
110
- }
111
- .px-avatar--small .px-avatar__indicator[data-v-47da9c60] {
112
- --px-avatar-indicator-size: 8px;
113
- top: 0;
114
- right: 0;
115
- border-width: 1px;
116
- }
@@ -42,10 +42,29 @@
42
42
  }
43
43
  a.px-breadcrumb__link[data-v-a0927948] {
44
44
  cursor: pointer;
45
- border-bottom: 2px solid transparent;
45
+ background-image: none;
46
+ background-repeat: no-repeat;
47
+ background-position: bottom 0 left 0;
48
+ background-size: 100% 2px;
49
+ padding-bottom: 2px;
50
+ transition: none;
46
51
  }
47
52
  a.px-breadcrumb__link[data-v-a0927948]:hover:not(.is-disabled) {
48
- border-bottom: 2px solid var(--px-breadcrumb-link-color);
53
+ background-image: repeating-linear-gradient(
54
+ to right,
55
+ var(--px-breadcrumb-link-color) 0px,
56
+ var(--px-breadcrumb-link-color) 4px,
57
+ transparent 4px,
58
+ transparent 8px
59
+ );
60
+ transform: translate(-1px, -1px);
61
+ }
62
+ a.px-breadcrumb__link[data-v-a0927948]:active:not(.is-disabled) {
63
+ transform: translate(1px, 1px);
64
+ }
65
+ a.px-breadcrumb__link[data-v-a0927948]:focus-visible:not(.is-disabled) {
66
+ outline: 2px dashed var(--px-color-primary);
67
+ outline-offset: 2px;
49
68
  }
50
69
  /* Current (last) item — plain text, no link styling */
51
70
  .px-breadcrumb__link.is-current[data-v-a0927948] {
@@ -72,6 +91,8 @@ a.px-breadcrumb__link[data-v-a0927948]:hover:not(.is-disabled) {
72
91
  margin: 0 8px;
73
92
  color: var(--px-breadcrumb-separator-color);
74
93
  font-weight: 400;
94
+ font-family: var(--px-font-family);
95
+ image-rendering: pixelated;
75
96
  }
76
97
  /* Breadcrumb Variables */
77
98
  .px-breadcrumb[data-v-8be388ff] {
@@ -117,10 +138,29 @@ a.px-breadcrumb__link[data-v-a0927948]:hover:not(.is-disabled) {
117
138
  }
118
139
  a.px-breadcrumb__link[data-v-8be388ff] {
119
140
  cursor: pointer;
120
- border-bottom: 2px solid transparent;
141
+ background-image: none;
142
+ background-repeat: no-repeat;
143
+ background-position: bottom 0 left 0;
144
+ background-size: 100% 2px;
145
+ padding-bottom: 2px;
146
+ transition: none;
121
147
  }
122
148
  a.px-breadcrumb__link[data-v-8be388ff]:hover:not(.is-disabled) {
123
- border-bottom: 2px solid var(--px-breadcrumb-link-color);
149
+ background-image: repeating-linear-gradient(
150
+ to right,
151
+ var(--px-breadcrumb-link-color) 0px,
152
+ var(--px-breadcrumb-link-color) 4px,
153
+ transparent 4px,
154
+ transparent 8px
155
+ );
156
+ transform: translate(-1px, -1px);
157
+ }
158
+ a.px-breadcrumb__link[data-v-8be388ff]:active:not(.is-disabled) {
159
+ transform: translate(1px, 1px);
160
+ }
161
+ a.px-breadcrumb__link[data-v-8be388ff]:focus-visible:not(.is-disabled) {
162
+ outline: 2px dashed var(--px-color-primary);
163
+ outline-offset: 2px;
124
164
  }
125
165
  /* Current (last) item — plain text, no link styling */
126
166
  .px-breadcrumb__link.is-current[data-v-8be388ff] {
@@ -147,4 +187,6 @@ a.px-breadcrumb__link[data-v-8be388ff]:hover:not(.is-disabled) {
147
187
  margin: 0 8px;
148
188
  color: var(--px-breadcrumb-separator-color);
149
189
  font-weight: 400;
190
+ font-family: var(--px-font-family);
191
+ image-rendering: pixelated;
150
192
  }