quirk-ui 0.0.202 → 0.0.204
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/NavLink-BimN5mAj.js +115 -0
- package/dist/assets/NavLink.css +1 -0
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/components/Calendar/Calendar.test.js +1 -1
- package/dist/components/Calendar/index.js +1 -1
- package/dist/components/DatePicker/DatePicker.test.js +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Footer/index.js +26 -27
- package/dist/components/Label/index.js +1 -1
- package/dist/components/NavBar/NavBar.test.js +70 -31
- package/dist/components/NavBar/NavLink.js +8 -0
- package/dist/components/NavBar/index.js +150 -188
- package/dist/{index-BN3GBQOK.js → index-BM1mGWJK.js} +1 -1
- package/dist/lib/components/NavBar/NavLink.d.ts +15 -0
- package/dist/lib/components/NavBar/index.d.ts +10 -2
- package/dist/lib/main.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/assets/index48.css +0 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as v } from "react";
|
|
3
|
+
import { E as g } from "./external-link-BOPobeQJ.js";
|
|
4
|
+
import { C as k } from "./chevron-down-DSUzBz9F.js";
|
|
5
|
+
import './assets/NavLink.css';const p = "_navbar_wd0jm_5", f = "_left_wd0jm_18", h = "_container_wd0jm_19", I = "_logo_wd0jm_23", T = "_nav_wd0jm_5", C = "_center_wd0jm_38", N = "_hidden_wd0jm_44", y = "_visible_wd0jm_51", x = "_right_wd0jm_66", E = "_title_wd0jm_72", $ = "_sublinks_wd0jm_82", M = "_sublinksInner_wd0jm_94", W = "_linkItem_wd0jm_108", L = "_minimal_wd0jm_113", z = "_menuToggle_wd0jm_117", R = "_linkWrapper_wd0jm_121", D = "_triangle_wd0jm_159", S = "_transparent_wd0jm_164", q = "_sticky_wd0jm_216", A = "_twoColumn_wd0jm_245", B = "_utilityMobile_wd0jm_292", F = "_utility_wd0jm_292", G = "_navInner_wd0jm_320", H = "_grid_wd0jm_329", J = "_navTitle_wd0jm_354", K = "_sublinkToggle_wd0jm_355", Q = "_link_wd0jm_108", U = "_newTabIcon_wd0jm_370", V = "_open_wd0jm_378", X = "_navItem_wd0jm_386", Y = "_show_wd0jm_433", Z = "_sublinksColumn_wd0jm_481", O = "_chevron_wd0jm_491", P = "_parent_wd0jm_570", e = {
|
|
6
|
+
navbar: p,
|
|
7
|
+
left: f,
|
|
8
|
+
container: h,
|
|
9
|
+
logo: I,
|
|
10
|
+
nav: T,
|
|
11
|
+
center: C,
|
|
12
|
+
hidden: N,
|
|
13
|
+
visible: y,
|
|
14
|
+
right: x,
|
|
15
|
+
title: E,
|
|
16
|
+
default: "_default_wd0jm_81",
|
|
17
|
+
sublinks: $,
|
|
18
|
+
sublinksInner: M,
|
|
19
|
+
linkItem: W,
|
|
20
|
+
minimal: L,
|
|
21
|
+
menuToggle: z,
|
|
22
|
+
linkWrapper: R,
|
|
23
|
+
triangle: D,
|
|
24
|
+
transparent: S,
|
|
25
|
+
sticky: q,
|
|
26
|
+
twoColumn: A,
|
|
27
|
+
utilityMobile: B,
|
|
28
|
+
utility: F,
|
|
29
|
+
navInner: G,
|
|
30
|
+
grid: H,
|
|
31
|
+
navTitle: J,
|
|
32
|
+
sublinkToggle: K,
|
|
33
|
+
link: Q,
|
|
34
|
+
newTabIcon: U,
|
|
35
|
+
open: V,
|
|
36
|
+
navItem: X,
|
|
37
|
+
show: Y,
|
|
38
|
+
sublinksColumn: Z,
|
|
39
|
+
chevron: O,
|
|
40
|
+
parent: P
|
|
41
|
+
};
|
|
42
|
+
function tn({
|
|
43
|
+
link: n,
|
|
44
|
+
path: s,
|
|
45
|
+
parentPath: r,
|
|
46
|
+
openPath: u,
|
|
47
|
+
togglePath: a,
|
|
48
|
+
updateTriangleIndicator: w,
|
|
49
|
+
setOpenPath: t,
|
|
50
|
+
renderLinks: b,
|
|
51
|
+
buttonRefs: j
|
|
52
|
+
}) {
|
|
53
|
+
var c;
|
|
54
|
+
const l = u === s, _ = !!((c = n.sublinks) != null && c.length), m = v(null);
|
|
55
|
+
return j.current.set(s, m.current), /* @__PURE__ */ i(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
className: `${e.linkWrapper} ${r ? "" : e.parent}`,
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ o("div", { className: e.linkItem, children: n.href ? /* @__PURE__ */ i(
|
|
61
|
+
"a",
|
|
62
|
+
{
|
|
63
|
+
href: n.href,
|
|
64
|
+
className: e.link,
|
|
65
|
+
target: n.isExternal ? "_blank" : "_self",
|
|
66
|
+
rel: n.isExternal ? "noopener noreferrer" : void 0,
|
|
67
|
+
onClick: () => {
|
|
68
|
+
var d;
|
|
69
|
+
t(null), (d = n.onClick) == null || d.call(n);
|
|
70
|
+
},
|
|
71
|
+
onMouseEnter: () => {
|
|
72
|
+
r || t(null);
|
|
73
|
+
},
|
|
74
|
+
role: "menuitem",
|
|
75
|
+
children: [
|
|
76
|
+
n.label,
|
|
77
|
+
n.isExternal && /* @__PURE__ */ o(g, { className: e.newTabIcon, size: 16 })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
) : /* @__PURE__ */ i(
|
|
81
|
+
"button",
|
|
82
|
+
{
|
|
83
|
+
ref: m,
|
|
84
|
+
"aria-haspopup": _ ? "true" : void 0,
|
|
85
|
+
"aria-expanded": l,
|
|
86
|
+
className: `${e.sublinkToggle} ${l ? e.open : ""}`,
|
|
87
|
+
onClick: () => a(s),
|
|
88
|
+
onMouseEnter: () => {
|
|
89
|
+
w(s), t(s);
|
|
90
|
+
},
|
|
91
|
+
children: [
|
|
92
|
+
n.label,
|
|
93
|
+
_ && /* @__PURE__ */ o(k, { size: 18, className: e.chevron })
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
) }),
|
|
97
|
+
_ && /* @__PURE__ */ o(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
className: `${e.sublinks} ${l ? e.show : ""}`,
|
|
101
|
+
onMouseLeave: () => a(s),
|
|
102
|
+
role: "menu",
|
|
103
|
+
"aria-label": `${n.label} submenu`,
|
|
104
|
+
children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o("div", { className: e.sublinksInner, children: /* @__PURE__ */ o("div", { className: e.sublinksColumn, children: b(n.sublinks, s) }) }) })
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
s
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
tn as N,
|
|
114
|
+
e as s
|
|
115
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--nav-height: 65px}._navbar_wd0jm_5{position:relative;height:var(--nav-height)}._left_wd0jm_18 ._container_wd0jm_19{justify-content:flex-start}._left_wd0jm_18 ._logo_wd0jm_23{flex:unset}._left_wd0jm_18 ._nav_wd0jm_5{flex:1}@media (max-width: 767px){._left_wd0jm_18 ._logo_wd0jm_23{flex:1}}._center_wd0jm_38 ._nav_wd0jm_5{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_wd0jm_38 ._nav_wd0jm_5._hidden_wd0jm_44{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_wd0jm_38 ._nav_wd0jm_5._visible_wd0jm_51{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_wd0jm_38 ._logo_wd0jm_23{flex:1}}._right_wd0jm_66 ._container_wd0jm_19{justify-content:flex-end}._right_wd0jm_66 ._logo_wd0jm_23,._right_wd0jm_66 ._title_wd0jm_72{flex:1}._right_wd0jm_66 ._nav_wd0jm_5{flex:unset}._default_wd0jm_81 ._sublinks_wd0jm_82{position:fixed;left:0;right:0;top:100%;padding-top:1rem}@media (max-width: 767px){._default_wd0jm_81 ._sublinks_wd0jm_82{position:relative}}._default_wd0jm_81 ._sublinksInner_wd0jm_94{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:calc(100vw - 4rem);width:78rem;min-height:24rem}@media (max-width: 767px){._default_wd0jm_81 ._sublinksInner_wd0jm_94{grid-template-columns:1fr;width:auto;min-height:unset}}._default_wd0jm_81 ._linkItem_wd0jm_108{justify-content:flex-start}._minimal_wd0jm_113{left:0;background-color:#fff}._minimal_wd0jm_113 ._menuToggle_wd0jm_117{grid-area:unset}._minimal_wd0jm_113 ._linkWrapper_wd0jm_121{position:relative}._minimal_wd0jm_113 ._sublinks_wd0jm_82{position:absolute;right:0;width:auto}@media (max-width: 767px){._minimal_wd0jm_113 ._sublinks_wd0jm_82{position:relative;justify-content:center;align-items:center}}._minimal_wd0jm_113 ._sublinksInner_wd0jm_94{display:flex;flex-direction:column;min-width:125px;justify-content:flex-end;align-items:flex-end}@media (max-width: 767px){._minimal_wd0jm_113 ._sublinksInner_wd0jm_94{justify-content:center;align-items:center}}._minimal_wd0jm_113 ._linkItem_wd0jm_108{justify-content:flex-end}@media (max-width: 767px){._minimal_wd0jm_113 ._linkItem_wd0jm_108{justify-content:center;align-items:center}}._minimal_wd0jm_113 ._triangle_wd0jm_159{display:none}._transparent_wd0jm_164{background-color:transparent}._transparent_wd0jm_164 ._nav_wd0jm_5{height:auto;border-radius:var(--radius-full);padding:0 var(--spacing-md);z-index:1001;background:#ffffff80;backdrop-filter:saturate(1.1) blur(1rem);-webkit-backdrop-filter:saturate(1.1) blur(1rem)}@media (max-width: 767px){._transparent_wd0jm_164 ._nav_wd0jm_5{padding:var(--nav-height) 0 0;background:#fffffff2;border-radius:0;top:0!important;left:0!important;height:100vh}._transparent_wd0jm_164 ._nav_wd0jm_5:before{border-radius:0}}._transparent_wd0jm_164 ._menuToggle_wd0jm_117:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#ffffff80;backdrop-filter:saturate(1.1) blur(1rem);-webkit-backdrop-filter:saturate(1.1) blur(1rem);border-radius:var(--radius-md)}._sticky_wd0jm_216{position:fixed;top:var(--spacing-md);left:0;right:0;z-index:1000;width:100%}._container_wd0jm_19{display:grid;align-items:center;grid-template-areas:"first second third";grid-template-columns:minmax(auto,1fr) auto minmax(auto,1fr);grid-gap:var(--spacing-md);width:100%;max-width:var(--layout-width);height:100%;margin:0 auto;padding:0 var(--spacing-lg);position:relative}@media (max-width: 767px){._container_wd0jm_19{grid-template-areas:"first second third fourth"}}._container_wd0jm_19._twoColumn_wd0jm_245{grid-template-columns:minmax(auto,1fr) auto;grid-template-areas:"first second"}._title_wd0jm_72{grid-area:first;color:var(--color-text-primary);font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold)}._logo_wd0jm_23{grid-area:first;font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);color:var(--color-primary);display:flex;align-items:center;justify-content:flex-start;position:relative;z-index:1005}._logo_wd0jm_23 img{height:auto;width:auto}._menuToggle_wd0jm_117{grid-area:fourth;background:none;border:none;cursor:pointer;display:none;color:var(--color-text-primary);z-index:1100;position:relative;width:40px;height:40px}._menuToggle_wd0jm_117 svg{position:relative;z-index:5}._utilityMobile_wd0jm_292{display:none;grid-area:third;justify-content:flex-end}._utility_wd0jm_292{grid-area:third;display:flex;justify-content:flex-end}._utility_wd0jm_292 a{font-size:var(--font-size-sm)}._nav_wd0jm_5{grid-area:second;display:grid;grid-template-columns:minmax(auto,1fr) auto;grid-gap:var(--spacing-sm);transition:transform .3s ease}@media (max-width: 767px){._nav_wd0jm_5{height:100vh}}._navInner_wd0jm_320{position:relative}@media (max-width: 767px){._navInner_wd0jm_320{margin:var(--spacing-xl) auto 0;min-width:300px}}._grid_wd0jm_329{display:grid;align-items:center;grid-auto-flow:column}@media (max-width: 767px){._grid_wd0jm_329{display:flex;flex-direction:column}}._linkItem_wd0jm_108{display:flex;align-items:center;box-sizing:border-box}._navTitle_wd0jm_354,._sublinkToggle_wd0jm_355,._link_wd0jm_108{text-decoration:none;color:var(--color-text-primary);padding:var(--spacing-sm);transition:color .3s ease;font-family:inherit;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);box-sizing:border-box;display:flex;align-items:center;gap:var(--spacing-xs)}._navTitle_wd0jm_354 ._newTabIcon_wd0jm_370,._sublinkToggle_wd0jm_355 ._newTabIcon_wd0jm_370,._link_wd0jm_108 ._newTabIcon_wd0jm_370{color:var(--color-muted);transition:color .3s ease-in-out}._link_wd0jm_108:hover,._sublinkToggle_wd0jm_355:hover,._sublinkToggle_wd0jm_355._open_wd0jm_378,._link_wd0jm_108:hover ._newTabIcon_wd0jm_370,._sublinkToggle_wd0jm_355:hover ._newTabIcon_wd0jm_370,._sublinkToggle_wd0jm_355._open_wd0jm_378 ._newTabIcon_wd0jm_370,._navItem_wd0jm_386:hover{color:var(--color-primary)}._sublinkToggle_wd0jm_355{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_wd0jm_82{display:flex;justify-content:center;opacity:0;visibility:hidden;z-index:1000;transition:transform .3s ease-in-out,max-height .3s ease,opacity .3s ease,visibility .3s ease}._sublinks_wd0jm_82._show_wd0jm_433{max-height:500px;opacity:1;pointer-events:auto;visibility:visible;transform:translateY(0)}._triangle_wd0jm_159{visibility:hidden;opacity:0;position:absolute;top:calc(100% + .5rem);transform:translate(-50%);z-index:10;pointer-events:none;transition:top .3s ease-in-out,left .3s ease-in-out,visbility .3s ease-in-out,opacity .3s ease-in-out}._triangle_wd0jm_159._show_wd0jm_433{top:calc(100% + .3rem);opacity:1;visibility:visible}._sublinksInner_wd0jm_94{background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;border-radius:var(--radius-md)}@media (max-width: 767px){._sublinksInner_wd0jm_94{display:flex;flex-direction:column;width:unset;max-width:unset;min-height:unset;background-color:unset;box-shadow:unset;border-radius:unset}}._sublinksColumn_wd0jm_481{display:flex;flex-direction:column;padding:var(--spacing-md)}@media (max-width: 767px){._sublinksColumn_wd0jm_481{padding:0}}._chevron_wd0jm_491{transition:transform .3s ease;display:flex;align-items:center;justify-content:center;margin-top:2px}._sublinkToggle_wd0jm_355._open_wd0jm_378 ._chevron_wd0jm_491{transform:rotate(180deg)}@media (max-width: 767px){._logo_wd0jm_23{flex:1}._menuToggle_wd0jm_117{display:flex;align-items:center;justify-content:center}._utility_wd0jm_292 a:not(._utility_wd0jm_292 a:first-of-type){display:none}._utilityMobile_wd0jm_292{display:block;transform:translateY(100px);position:fixed;bottom:1rem;left:0;right:0;margin:0 auto;width:calc(100% - 2rem);z-index:1001;transition:transform .3s ease-in-out}._utilityMobile_wd0jm_292._open_wd0jm_378{transform:translateY(0)}._nav_wd0jm_5{display:none;position:fixed;top:calc(var(--nav-height) - 1px);left:0;width:100%;height:100%;background-color:var(--color-background);display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-md);padding:var(--spacing-md);border-top:1px solid var(--color-border);z-index:1000;overflow-y:auto;transform:translate(100%)}._nav_wd0jm_5._open_wd0jm_378{transform:translate(0)}._linkWrapper_wd0jm_121{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_wd0jm_121._parent_wd0jm_570{border-bottom:1px solid var(--color-border)}._linkWrapper_wd0jm_121._parent_wd0jm_570:last-of-type{border:none}._linkItem_wd0jm_108{width:100%}._chevron_wd0jm_491{display:none}._sublinks_wd0jm_82{position:relative;top:0;box-shadow:none;max-height:fit-content;opacity:1;visibility:visible;align-items:flex-start;justify-content:flex-start;padding:var(--spacing-sm);gap:0;pointer-events:auto}._sublinkToggle_wd0jm_355{cursor:pointer;pointer-events:none;color:var(--color-muted)}}
|
package/dist/assets/index45.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._label_15ngo_1{font-weight:var(--font-weight-semibold);margin-bottom:var(--spacing-xs)}._text_15ngo_6{display:inline-flex;align-items:center;gap:var(--spacing-xs)}._sm_15ngo_13{font-size:.75rem}._md_15ngo_17{font-size:.875rem}._lg_15ngo_21{font-size:1rem}._default_15ngo_26{color:var(--color-text-primary)}._muted_15ngo_30{color:var(--color-muted)}._accent_15ngo_34{color:var(--color-primary)}._disabled_15ngo_38{color:var(--color-muted)}._error_15ngo_42{color:var(--color-error)}._required_15ngo_47{color:var(--color-error);margin-left:.25rem}._optional_15ngo_52{color:var(--color-muted);font-style:italic;margin-left:.25rem}._srOnly_15ngo_58{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}._icon_15ngo_71{line-height:0;margin-left:var(--spacing-xs)}._tooltipWrapper_15ngo_77{position:relative;display:inline-flex;align-items:center}._tooltipIcon_15ngo_83{line-height:0;font-size:var(--font-size-md);cursor:help;margin-left:var(--spacing-xs);color:var(--color-muted)}._tooltipText_15ngo_91{visibility:hidden;background-color:#111;color:#fff;text-align:center;padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--radius-md);position:absolute;z-index:10;bottom:125%;left:50%;transform:translate(-50%);font-size:var(--font-size-xs);white-space:nowrap;opacity:0;transition:opacity .2s ease}._tooltipWrapper_15ngo_77:hover ._tooltipText_15ngo_91,._tooltipWrapper_15ngo_77:focus-within ._tooltipText_15ngo_91{visibility:visible;opacity:1}
|
package/dist/assets/index46.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._footer_xfxi7_1{background-color:var(--color-background);padding:var(--spacing-xl) var(--spacing-md);font-size:var(--font-size-sm);color:var(--color-text-primary)}._container_xfxi7_8{display:flex;flex-direction:column;align-items:flex-start;gap:2rem}._utilityImage_xfxi7_17{width:100%}._primaryNav_xfxi7_21{display:flex;gap:var(--spacing-xl)}@media (max-width: 767px){._primaryNav_xfxi7_21{flex-direction:column}}._secondaryNav_xfxi7_30{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;width:100%;gap:var(--spacing-xl);margin-top:var(--spacing-xl)}._secondaryNav_xfxi7_30 a:has(img){height:unset;background-color:transparent}._secondaryNav_xfxi7_30 a:has(img) img{width:175px;height:auto}._secondaryNav_xfxi7_30 a:has(img):hover{background-color:transparent}@media (max-width: 480px){._secondaryNav_xfxi7_30{flex-direction:column-reverse}._secondaryNav_xfxi7_30 nav{width:100%}}._details_xfxi7_62{flex-basis:200px;display:flex;flex-direction:column;gap:var(--spacing-lg)}._nav_xfxi7_69{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-lg);flex:1}._logo_xfxi7_77{font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);color:var(--color-primary)}._socialItems_xfxi7_83{display:flex;align-items:center;justify-content:flex-start;gap:var(--spacing-sm)}._socialItems_xfxi7_83 ._group_xfxi7_90{min-width:unset}._socialItems_xfxi7_83 a{transition:color .3s ease-in-out;font-size:var(--font-size-xl)}._groups_xfxi7_99{display:flex;flex-wrap:wrap;gap:var(--spacing-xl)}._group_xfxi7_90{min-width:140px}._groupTitle_xfxi7_109{font-weight:var(--font-weight-semibold);margin-bottom:var(--spacing-xs)}._sublinks_xfxi7_114{position:relative;display:flex;flex-direction:column;gap:var(--spacing-sm);margin-top:var(--spacing-md)}._linkList_xfxi7_122{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;padding:0;margin:0}._link_xfxi7_122{color:var(--color-text-primary);text-decoration:none;display:block;transition:color .3s ease-in-out;display:flex;align-items:center;gap:var(--spacing-xs)}._link_xfxi7_122 ._newTabIcon_xfxi7_140{color:var(--color-muted);transition:color .3s ease-in-out}._link_xfxi7_122:hover,._link_xfxi7_122:hover ._newTabIcon_xfxi7_140{color:var(--color-primary)}._bottom_xfxi7_154{text-align:left;font-size:var(--font-size-sm);color:var(--color-muted)}._left_xfxi7_161 ._container_xfxi7_8{justify-content:flex-start}._left_xfxi7_161 ._logo_xfxi7_77{flex:unset}._left_xfxi7_161 ._nav_xfxi7_69{flex:1}@media (max-width: 767px){._left_xfxi7_161 ._logo_xfxi7_77{flex:1}}._center_xfxi7_181 ._nav_xfxi7_69{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_xfxi7_181 ._nav_xfxi7_69._hidden_xfxi7_187{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_xfxi7_181 ._nav_xfxi7_69._visible_xfxi7_194{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_xfxi7_181 ._logo_xfxi7_77{flex:1}}._right_xfxi7_209 ._container_xfxi7_8{justify-content:flex-end}._right_xfxi7_209 ._logo_xfxi7_77,._right_xfxi7_209 ._title_xfxi7_215{flex:1}._right_xfxi7_209 ._nav_xfxi7_69{flex:unset}
|
package/dist/assets/index47.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._calendar_zbxci_1{padding:var(--spacing-sm);border-radius:var(--radius-md);min-width:250px}._header_zbxci_7{display:flex;justify-content:space-between;margin-bottom:var(--spacing-sm)}._dayName_zbxci_13{font-weight:var(--font-weight-semibold);color:var(--color-text-primary);width:30px;text-align:center;flex:1;font-size:var(--font-size-sm)}._monthName_zbxci_23{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}._week_zbxci_28{display:flex;justify-content:space-between;color:var(--color-text-primary)}._cell_zbxci_34{flex:1;padding:var(--spacing-xs) 0;text-align:center;background:none;color:var(--color-text-primary);border:none;cursor:pointer;width:30px}._outside_zbxci_45{color:var(--color-muted)}._selected_zbxci_49{background-color:var(--color-primary);color:#fff;border-radius:var(--radius-md)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { d as D, i as s, r as l, g as n, s as a, v as m, f as d } from "../../vi.ClIskdbk-CZ8iFAMK.js";
|
|
3
|
-
import { f as y, C as r } from "../../index-
|
|
3
|
+
import { f as y, C as r } from "../../index-BM1mGWJK.js";
|
|
4
4
|
import "../../index-BBIdMcpm.js";
|
|
5
5
|
D("Calendar", () => {
|
|
6
6
|
s("renders the current month and year", () => {
|
|
@@ -4,7 +4,7 @@ import '../../assets/index.css';/* empty css */
|
|
|
4
4
|
import "../IconButton/index.js";
|
|
5
5
|
import "../../index-CxrBcaoP.js";
|
|
6
6
|
import "../Tabs/index.js";
|
|
7
|
-
import { C as f } from "../../index-
|
|
7
|
+
import { C as f } from "../../index-BM1mGWJK.js";
|
|
8
8
|
import "../../arrow-left-BIJvHwNQ.js";
|
|
9
9
|
import "../../arrow-right-QEwnX3Sk.js";
|
|
10
10
|
export {
|
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { v as r, d as k, i as c, r as d, g as t, s as a, f as l } from "../../vi.ClIskdbk-CZ8iFAMK.js";
|
|
3
3
|
import { DatePicker as o } from "./index.js";
|
|
4
4
|
import "../../index-BBIdMcpm.js";
|
|
5
|
-
import { f as u } from "../../index-
|
|
5
|
+
import { f as u } from "../../index-BM1mGWJK.js";
|
|
6
6
|
r.mock("../Calendar", () => ({
|
|
7
7
|
Calendar: ({ onSelectDate: e }) => /* @__PURE__ */ n(
|
|
8
8
|
"button",
|
|
@@ -4,7 +4,7 @@ import '../../assets/index.css';import '../../assets/index42.css';/* empty css
|
|
|
4
4
|
import "../../index-CxrBcaoP.js";
|
|
5
5
|
import "../Tabs/index.js";
|
|
6
6
|
import { Label as w } from "../Label/index.js";
|
|
7
|
-
import { f as x, C as D } from "../../index-
|
|
7
|
+
import { f as x, C as D } from "../../index-BM1mGWJK.js";
|
|
8
8
|
const S = "_wrapper_13tha_1", N = "_input_13tha_7", O = "_popover_13tha_25", o = {
|
|
9
9
|
wrapper: S,
|
|
10
10
|
input: N,
|
|
@@ -3,16 +3,16 @@ import { CallToAction as C } from "../CallToAction/index.js";
|
|
|
3
3
|
import { ButtonGroup as E } from "../ButtonGroup/index.js";
|
|
4
4
|
import f from "react";
|
|
5
5
|
import { E as V } from "../../external-link-BOPobeQJ.js";
|
|
6
|
-
import '../../assets/
|
|
6
|
+
import '../../assets/index46.css';var P = {
|
|
7
7
|
color: void 0,
|
|
8
8
|
size: void 0,
|
|
9
9
|
className: void 0,
|
|
10
10
|
style: void 0,
|
|
11
11
|
attr: void 0
|
|
12
|
-
}, O = f.createContext && /* @__PURE__ */ f.createContext(P),
|
|
13
|
-
function
|
|
12
|
+
}, O = f.createContext && /* @__PURE__ */ f.createContext(P), $ = ["attr", "size", "title"];
|
|
13
|
+
function F(e, t) {
|
|
14
14
|
if (e == null) return {};
|
|
15
|
-
var r =
|
|
15
|
+
var r = L(e, t), a, l;
|
|
16
16
|
if (Object.getOwnPropertySymbols) {
|
|
17
17
|
var u = Object.getOwnPropertySymbols(e);
|
|
18
18
|
for (l = 0; l < u.length; l++)
|
|
@@ -20,7 +20,7 @@ function $(e, t) {
|
|
|
20
20
|
}
|
|
21
21
|
return r;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function L(e, t) {
|
|
24
24
|
if (e == null) return {};
|
|
25
25
|
var r = {};
|
|
26
26
|
for (var a in e)
|
|
@@ -78,15 +78,15 @@ function D(e, t) {
|
|
|
78
78
|
}
|
|
79
79
|
return (t === "string" ? String : Number)(e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function z(e) {
|
|
82
82
|
return e && e.map((t, r) => /* @__PURE__ */ f.createElement(t.tag, v({
|
|
83
83
|
key: r
|
|
84
|
-
}, t.attr),
|
|
84
|
+
}, t.attr), z(t.child)));
|
|
85
85
|
}
|
|
86
86
|
function d(e) {
|
|
87
87
|
return (t) => /* @__PURE__ */ f.createElement(H, h({
|
|
88
88
|
attr: v({}, e.attr)
|
|
89
|
-
}, t),
|
|
89
|
+
}, t), z(e.child));
|
|
90
90
|
}
|
|
91
91
|
function H(e) {
|
|
92
92
|
var t = (r) => {
|
|
@@ -94,7 +94,7 @@ function H(e) {
|
|
|
94
94
|
attr: a,
|
|
95
95
|
size: l,
|
|
96
96
|
title: u
|
|
97
|
-
} = e, p =
|
|
97
|
+
} = e, p = F(e, $), b = l || r.size || "1em", s;
|
|
98
98
|
return r.className && (s = r.className), e.className && (s = (s ? s + " " : "") + e.className), /* @__PURE__ */ f.createElement("svg", h({
|
|
99
99
|
stroke: "currentColor",
|
|
100
100
|
fill: "currentColor",
|
|
@@ -111,28 +111,28 @@ function H(e) {
|
|
|
111
111
|
};
|
|
112
112
|
return O !== void 0 ? /* @__PURE__ */ f.createElement(O.Consumer, null, (r) => t(r)) : t(P);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function k(e) {
|
|
115
115
|
return d({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z" }, child: [] }] })(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function A(e) {
|
|
118
118
|
return d({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z" }, child: [] }] })(e);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function W(e) {
|
|
121
121
|
return d({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z" }, child: [] }] })(e);
|
|
122
122
|
}
|
|
123
123
|
function G(e) {
|
|
124
124
|
return d({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z" }, child: [] }] })(e);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Y(e) {
|
|
127
127
|
return d({ attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z" }, child: [] }] })(e);
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
footer:
|
|
131
|
-
container:
|
|
132
|
-
utilityImage:
|
|
133
|
-
primaryNav:
|
|
134
|
-
secondaryNav:
|
|
135
|
-
details:
|
|
129
|
+
const K = "_footer_xfxi7_1", R = "_container_xfxi7_8", q = "_utilityImage_xfxi7_17", J = "_primaryNav_xfxi7_21", Q = "_secondaryNav_xfxi7_30", U = "_details_xfxi7_62", X = "_nav_xfxi7_69", Z = "_logo_xfxi7_77", ee = "_socialItems_xfxi7_83", te = "_group_xfxi7_90", re = "_groups_xfxi7_99", ae = "_groupTitle_xfxi7_109", ne = "_sublinks_xfxi7_114", ie = "_link_xfxi7_122", oe = "_newTabIcon_xfxi7_140", ce = "_bottom_xfxi7_154", n = {
|
|
130
|
+
footer: K,
|
|
131
|
+
container: R,
|
|
132
|
+
utilityImage: q,
|
|
133
|
+
primaryNav: J,
|
|
134
|
+
secondaryNav: Q,
|
|
135
|
+
details: U,
|
|
136
136
|
nav: X,
|
|
137
137
|
logo: Z,
|
|
138
138
|
socialItems: ee,
|
|
@@ -144,11 +144,11 @@ const Y = "_footer_xfxi7_1", Q = "_container_xfxi7_8", R = "_utilityImage_xfxi7_
|
|
|
144
144
|
newTabIcon: oe,
|
|
145
145
|
bottom: ce
|
|
146
146
|
}, le = {
|
|
147
|
-
Facebook:
|
|
147
|
+
Facebook: k,
|
|
148
148
|
Twitter: G,
|
|
149
|
-
LinkedIn:
|
|
150
|
-
Instagram:
|
|
151
|
-
YouTube:
|
|
149
|
+
LinkedIn: W,
|
|
150
|
+
Instagram: A,
|
|
151
|
+
YouTube: Y
|
|
152
152
|
};
|
|
153
153
|
function pe({
|
|
154
154
|
// title,
|
|
@@ -162,9 +162,8 @@ function pe({
|
|
|
162
162
|
copyright: p,
|
|
163
163
|
className: b
|
|
164
164
|
}) {
|
|
165
|
-
const s = (i, g = "",
|
|
165
|
+
const s = (i, g = "", I = !1) => i.map((c) => {
|
|
166
166
|
var w;
|
|
167
|
-
console.log("QUI LINK", c);
|
|
168
167
|
const y = `${g}/${c.label}`, N = (w = c.sublinks) == null ? void 0 : w.length, _ = !!c.href, x = le[c.icon], S = _ ? "a" : "div", T = _ ? {
|
|
169
168
|
href: c.href,
|
|
170
169
|
target: c.isExternal ? "_blank" : "_self",
|
|
@@ -182,7 +181,7 @@ function pe({
|
|
|
182
181
|
className: `${_ ? n.link : ""} ${N ? n.groupTitle : ""}`,
|
|
183
182
|
...T,
|
|
184
183
|
children: [
|
|
185
|
-
!
|
|
184
|
+
!I && c.label,
|
|
186
185
|
x && /* @__PURE__ */ o(x, {}),
|
|
187
186
|
!x && c.isExternal && /* @__PURE__ */ o(V, { className: n.newTabIcon, size: 16 })
|
|
188
187
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { c as a } from "../../createLucideIcon-C8GTh_Qx.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index45.css';/**
|
|
4
4
|
* @license lucide-react v0.488.0 - ISC
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the ISC license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { d as
|
|
3
|
-
import { Navbar as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { d as m, i as s, r as l, g as a, s as e, f as n, w as o } from "../../vi.ClIskdbk-CZ8iFAMK.js";
|
|
3
|
+
import { Navbar as r } from "./index.js";
|
|
4
4
|
const c = [
|
|
5
5
|
{ label: "Home", href: "/" },
|
|
6
6
|
{
|
|
@@ -18,37 +18,76 @@ const c = [
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
{ label: "External", href: "https://example.com", isExternal: !0 }
|
|
21
|
+
], u = [
|
|
22
|
+
{
|
|
23
|
+
title: "Company",
|
|
24
|
+
primaryItems: [
|
|
25
|
+
{
|
|
26
|
+
label: "About",
|
|
27
|
+
sublinks: [
|
|
28
|
+
{ label: "Team", href: "/about/team" },
|
|
29
|
+
{ label: "Mission", href: "/about/mission" }
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
secondaryItems: [
|
|
34
|
+
{ label: "Careers", href: "/careers" },
|
|
35
|
+
{ label: "Blog", href: "/blog" }
|
|
36
|
+
],
|
|
37
|
+
spotlight: /* @__PURE__ */ i("div", { children: "Spotlight Content" })
|
|
38
|
+
}
|
|
21
39
|
];
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}),
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
}),
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}),
|
|
35
|
-
|
|
40
|
+
m("Navbar (default navigation)", () => {
|
|
41
|
+
s("renders all top-level nav items", () => {
|
|
42
|
+
l(/* @__PURE__ */ i(r, { navigationType: "default", alignment: "right", items: c })), a(e.getByText("Home")).toBeInTheDocument(), a(e.getByText("Services")).toBeInTheDocument(), a(e.getByText("External")).toBeInTheDocument();
|
|
43
|
+
}), s("toggles mobile menu", () => {
|
|
44
|
+
l(/* @__PURE__ */ i(r, { navigationType: "default", alignment: "right", items: c }));
|
|
45
|
+
const t = e.getByLabelText("Open menu");
|
|
46
|
+
n.click(t), a(t).toHaveAttribute("aria-label", "Close menu"), n.click(t), a(t).toHaveAttribute("aria-label", "Open menu");
|
|
47
|
+
}), s("open and closes submenu on click", async () => {
|
|
48
|
+
l(/* @__PURE__ */ i(r, { navigationType: "default", alignment: "right", items: c }));
|
|
49
|
+
const t = e.getByText("Services"), g = e.getByRole("menu", { name: "Services submenu" });
|
|
50
|
+
n.click(t), await o(() => {
|
|
51
|
+
a(g).toHaveClass("show");
|
|
52
|
+
}), n.click(t), await o(() => {
|
|
53
|
+
a(g).not.toHaveClass("show");
|
|
54
|
+
});
|
|
55
|
+
}), s("has appropriate aria attributes", async () => {
|
|
56
|
+
l(/* @__PURE__ */ i(r, { navigationType: "default", alignment: "right", items: c }));
|
|
57
|
+
const t = e.getByText("Services");
|
|
58
|
+
n.click(t), await o(() => {
|
|
59
|
+
a(t).toHaveAttribute("aria-expanded", "true");
|
|
60
|
+
}), n.click(t), await o(() => {
|
|
61
|
+
a(t).toHaveAttribute("aria-expanded", "false");
|
|
36
62
|
});
|
|
37
|
-
}),
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
63
|
+
}), s("only allows one submenu open at a time", async () => {
|
|
64
|
+
l(/* @__PURE__ */ i(r, { navigationType: "default", alignment: "right", items: c }));
|
|
65
|
+
const t = e.getByText("Services"), g = e.getByText("About");
|
|
66
|
+
n.click(t), await o(() => {
|
|
67
|
+
a(
|
|
68
|
+
e.getByRole("menu", { name: "Services submenu" })
|
|
69
|
+
).toHaveClass("show");
|
|
70
|
+
}), n.click(g), await o(() => {
|
|
71
|
+
a(
|
|
72
|
+
e.getByRole("menu", { name: "Services submenu" })
|
|
73
|
+
).not.toHaveClass("show");
|
|
44
74
|
});
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
m("Navbar (advanced navigation with groups)", () => {
|
|
78
|
+
s("renders group title", () => {
|
|
79
|
+
l(
|
|
80
|
+
/* @__PURE__ */ i(r, { alignment: "right", groups: u, navigationType: "advanced" })
|
|
81
|
+
), a(e.getByText("Company")).toBeInTheDocument();
|
|
82
|
+
}), s("renders dropdown on hover and shows all columns", async () => {
|
|
83
|
+
l(
|
|
84
|
+
/* @__PURE__ */ i(r, { alignment: "right", groups: u, navigationType: "advanced" })
|
|
85
|
+
);
|
|
86
|
+
const t = e.getByText("Company");
|
|
87
|
+
n.mouseEnter(t), await o(() => {
|
|
88
|
+
a(e.getByText("About")).toBeInTheDocument();
|
|
89
|
+
}), n.mouseEnter(e.getByText("About")), await o(() => {
|
|
90
|
+
a(e.getByText("Team")).toBeInTheDocument(), a(e.getByText("Careers")).toBeInTheDocument(), a(e.getByText("Spotlight Content")).toBeInTheDocument();
|
|
52
91
|
});
|
|
53
92
|
});
|
|
54
93
|
});
|
|
@@ -1,201 +1,162 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as a, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { useState as o, useRef as y, useCallback as v, useEffect as B } from "react";
|
|
3
|
+
import { s as e, N as ee } from "../../NavLink-BimN5mAj.js";
|
|
4
|
+
import { CallToAction as G } from "../CallToAction/index.js";
|
|
4
5
|
import { ButtonGroup as W } from "../ButtonGroup/index.js";
|
|
5
|
-
import { X as
|
|
6
|
-
import { c as
|
|
7
|
-
|
|
8
|
-
import { C as Y } from "../../chevron-down-DSUzBz9F.js";
|
|
9
|
-
import '../../assets/index45.css';/**
|
|
6
|
+
import { X as ne } from "../../x-CnsEH4Ox.js";
|
|
7
|
+
import { c as ae } from "../../createLucideIcon-C8GTh_Qx.js";
|
|
8
|
+
/**
|
|
10
9
|
* @license lucide-react v0.488.0 - ISC
|
|
11
10
|
*
|
|
12
11
|
* This source code is licensed under the ISC license.
|
|
13
12
|
* See the LICENSE file in the root directory of this source tree.
|
|
14
13
|
*/
|
|
15
|
-
const
|
|
14
|
+
const le = [
|
|
16
15
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
17
16
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
18
17
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
19
|
-
],
|
|
20
|
-
navbar: ee,
|
|
21
|
-
left: ne,
|
|
22
|
-
container: oe,
|
|
23
|
-
logo: ae,
|
|
24
|
-
nav: ie,
|
|
25
|
-
center: le,
|
|
26
|
-
hidden: re,
|
|
27
|
-
visible: te,
|
|
28
|
-
right: se,
|
|
29
|
-
title: ce,
|
|
30
|
-
default: "_default_1do0i_81",
|
|
31
|
-
sublinks: de,
|
|
32
|
-
sublinksInner: _e,
|
|
33
|
-
linkItem: ue,
|
|
34
|
-
minimal: me,
|
|
35
|
-
menuToggle: fe,
|
|
36
|
-
linkWrapper: ge,
|
|
37
|
-
triangle: he,
|
|
38
|
-
transparent: be,
|
|
39
|
-
sticky: ve,
|
|
40
|
-
twoColumn: pe,
|
|
41
|
-
utilityMobile: we,
|
|
42
|
-
utility: ke,
|
|
43
|
-
navInner: Ne,
|
|
44
|
-
grid: ye,
|
|
45
|
-
sublinkToggle: $e,
|
|
46
|
-
link: Ce,
|
|
47
|
-
newTabIcon: xe,
|
|
48
|
-
open: Te,
|
|
49
|
-
show: Le,
|
|
50
|
-
sublinksColumn: Ee,
|
|
51
|
-
chevron: Me,
|
|
52
|
-
parent: Re
|
|
53
|
-
}, Se = {
|
|
18
|
+
], re = ae("menu", le), ie = {
|
|
54
19
|
default: e.default,
|
|
55
20
|
minimal: e.minimal
|
|
56
|
-
},
|
|
21
|
+
}, se = {
|
|
57
22
|
left: e.left,
|
|
58
23
|
center: e.center,
|
|
59
24
|
right: e.right
|
|
60
25
|
};
|
|
61
|
-
function
|
|
62
|
-
title:
|
|
63
|
-
logo:
|
|
64
|
-
items:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
26
|
+
function ue({
|
|
27
|
+
title: j,
|
|
28
|
+
logo: $,
|
|
29
|
+
items: x,
|
|
30
|
+
groups: k,
|
|
31
|
+
utilityItems: l,
|
|
32
|
+
isSticky: P = !1,
|
|
33
|
+
isTransparent: X = !1,
|
|
34
|
+
alignment: p = "right",
|
|
35
|
+
variant: _ = "default",
|
|
36
|
+
navigationType: L = "default",
|
|
37
|
+
className: V
|
|
71
38
|
}) {
|
|
72
|
-
const [
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
77
|
-
const
|
|
78
|
-
|
|
39
|
+
const [c, C] = o(!1), [g, d] = o(null), [D, H] = o(0), [U, q] = o(!1), [F, J] = o(null), b = y(null), m = y(null), M = y(/* @__PURE__ */ new Map()), K = () => {
|
|
40
|
+
C((n) => !n);
|
|
41
|
+
}, Q = (n) => {
|
|
42
|
+
const r = M.current.get(n);
|
|
43
|
+
if (r && m.current) {
|
|
44
|
+
const s = r.getBoundingClientRect(), t = m.current.getBoundingClientRect(), i = s.left - t.left + s.width / 4;
|
|
45
|
+
J(i);
|
|
79
46
|
}
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
}, []),
|
|
85
|
-
|
|
86
|
-
}, []),
|
|
87
|
-
|
|
88
|
-
}, []),
|
|
89
|
-
if (
|
|
90
|
-
const
|
|
91
|
-
|
|
47
|
+
}, Y = (n) => {
|
|
48
|
+
d((r) => r === n ? null : n);
|
|
49
|
+
}, R = v((n) => {
|
|
50
|
+
b.current && !b.current.contains(n.target) && d(null);
|
|
51
|
+
}, []), S = v(() => {
|
|
52
|
+
d(null);
|
|
53
|
+
}, []), E = v(() => {
|
|
54
|
+
A(), typeof window < "u" && window.innerWidth > 768 && (C(!1), d(null), typeof document < "u" && (document.body.style.overflow = ""));
|
|
55
|
+
}, []), A = v(() => {
|
|
56
|
+
if (m.current) {
|
|
57
|
+
const n = m.current.getBoundingClientRect().width;
|
|
58
|
+
H(n), q(!0);
|
|
92
59
|
}
|
|
93
60
|
}, []);
|
|
94
|
-
|
|
95
|
-
const
|
|
96
|
-
return
|
|
97
|
-
|
|
61
|
+
B(() => {
|
|
62
|
+
const n = typeof window < "u", r = typeof document < "u";
|
|
63
|
+
return n && (window.addEventListener("resize", E), window.addEventListener("scroll", S)), r && document.addEventListener("click", R), A(), () => {
|
|
64
|
+
n && (window.removeEventListener("resize", E), window.removeEventListener("scroll", S)), r && document.removeEventListener("click", R);
|
|
98
65
|
};
|
|
99
|
-
}, []),
|
|
66
|
+
}, []), B(() => {
|
|
100
67
|
if (typeof document < "u")
|
|
101
|
-
return document.body.style.overflow =
|
|
68
|
+
return document.body.style.overflow = c ? "hidden" : "", () => {
|
|
102
69
|
document.body.style.overflow = "";
|
|
103
70
|
};
|
|
104
|
-
}, [
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
71
|
+
}, [c]);
|
|
72
|
+
const Z = (n) => {
|
|
73
|
+
const [r, s] = o(null), [t, w] = o(
|
|
74
|
+
null
|
|
75
|
+
);
|
|
76
|
+
return console.log("GROUPS", n), n.map((i, N) => {
|
|
77
|
+
var T, z;
|
|
78
|
+
const h = (T = i.primaryItems) == null ? void 0 : T[r ?? 0];
|
|
79
|
+
return /* @__PURE__ */ u(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
className: e.navItem,
|
|
83
|
+
onMouseEnter: () => w(N),
|
|
84
|
+
onMouseLeave: () => {
|
|
85
|
+
w(null), s(null);
|
|
86
|
+
},
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ a("button", { className: e.navTitle, children: i.title }),
|
|
89
|
+
t === N && /* @__PURE__ */ u("div", { className: e.dropdownMenu, children: [
|
|
90
|
+
/* @__PURE__ */ a("div", { className: e.column, children: (z = i.primaryItems) == null ? void 0 : z.map((I, O) => /* @__PURE__ */ a(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
className: e.linkItem,
|
|
94
|
+
onMouseEnter: () => s(O),
|
|
95
|
+
children: I.label
|
|
96
|
+
},
|
|
97
|
+
O
|
|
98
|
+
)) }),
|
|
99
|
+
/* @__PURE__ */ a("div", { className: e.column, children: (h == null ? void 0 : h.sublinks) && f(h.sublinks) }),
|
|
100
|
+
/* @__PURE__ */ a("div", { className: e.column, children: i.secondaryItems && f(i.secondaryItems) }),
|
|
101
|
+
i.spotlight && /* @__PURE__ */ a("div", { className: e.column, children: i.spotlight })
|
|
102
|
+
] })
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
N
|
|
106
|
+
);
|
|
107
|
+
});
|
|
108
|
+
}, f = (n, r = "") => n.map((s) => {
|
|
109
|
+
const t = `${r}/${s.label}`;
|
|
110
|
+
return /* @__PURE__ */ a(
|
|
111
|
+
ee,
|
|
110
112
|
{
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
onClick: () => {
|
|
121
|
-
var M;
|
|
122
|
-
s(null), (M = i.onClick) == null || M.call(i);
|
|
123
|
-
},
|
|
124
|
-
onMouseEnter: () => {
|
|
125
|
-
l || s(null);
|
|
126
|
-
},
|
|
127
|
-
role: "menuitem",
|
|
128
|
-
children: [
|
|
129
|
-
i.label,
|
|
130
|
-
i.isExternal && /* @__PURE__ */ n(U, { className: e.newTabIcon, size: 16 })
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
) : /* @__PURE__ */ _(
|
|
134
|
-
"button",
|
|
135
|
-
{
|
|
136
|
-
ref: L,
|
|
137
|
-
"aria-haspopup": d ? "true" : void 0,
|
|
138
|
-
"aria-expanded": m,
|
|
139
|
-
className: `${e.sublinkToggle} ${m ? e.open : ""}`,
|
|
140
|
-
onClick: () => N(r),
|
|
141
|
-
onMouseEnter: () => {
|
|
142
|
-
J(r), s(r);
|
|
143
|
-
},
|
|
144
|
-
children: [
|
|
145
|
-
i.label,
|
|
146
|
-
d && /* @__PURE__ */ n(Y, { size: 18, className: e.chevron })
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
) }),
|
|
150
|
-
d && /* @__PURE__ */ n(
|
|
151
|
-
"div",
|
|
152
|
-
{
|
|
153
|
-
className: `${e.sublinks} ${m ? e.show : ""}`,
|
|
154
|
-
onMouseLeave: () => N(r),
|
|
155
|
-
role: "menu",
|
|
156
|
-
"aria-label": `${i.label} submenu`,
|
|
157
|
-
children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n("div", { className: e.sublinksInner, children: /* @__PURE__ */ n("div", { className: e.sublinksColumn, children: T(i.sublinks, r) }) }) })
|
|
158
|
-
}
|
|
159
|
-
)
|
|
160
|
-
]
|
|
113
|
+
link: s,
|
|
114
|
+
path: t,
|
|
115
|
+
parentPath: r,
|
|
116
|
+
openPath: g,
|
|
117
|
+
togglePath: Y,
|
|
118
|
+
updateTriangleIndicator: Q,
|
|
119
|
+
setOpenPath: d,
|
|
120
|
+
renderLinks: f,
|
|
121
|
+
buttonRefs: M
|
|
161
122
|
},
|
|
162
|
-
|
|
123
|
+
t
|
|
163
124
|
);
|
|
164
125
|
});
|
|
165
|
-
return /* @__PURE__ */
|
|
126
|
+
return /* @__PURE__ */ a(
|
|
166
127
|
"header",
|
|
167
128
|
{
|
|
168
|
-
ref:
|
|
169
|
-
className: `${
|
|
129
|
+
ref: b,
|
|
130
|
+
className: `${V ?? ""} ${se[p]} ${ie[_]} ${e.navbar} ${P ? e.sticky : ""} ${X ? e.transparent : ""} `,
|
|
170
131
|
role: "navigation",
|
|
171
132
|
"aria-label": "Main navigation",
|
|
172
|
-
children: /* @__PURE__ */
|
|
133
|
+
children: /* @__PURE__ */ u(
|
|
173
134
|
"div",
|
|
174
135
|
{
|
|
175
|
-
className: `${e.container} ${(!
|
|
136
|
+
className: `${e.container} ${(!l || l.length === 0) && p !== "center" ? e.twoColumn : ""}`,
|
|
176
137
|
children: [
|
|
177
|
-
|
|
178
|
-
/* @__PURE__ */
|
|
138
|
+
$ ? /* @__PURE__ */ a("div", { className: e.logo, children: $ }) : /* @__PURE__ */ a("div", { className: e.title, children: j }),
|
|
139
|
+
/* @__PURE__ */ a(
|
|
179
140
|
"nav",
|
|
180
141
|
{
|
|
181
|
-
ref:
|
|
142
|
+
ref: m,
|
|
182
143
|
style: {
|
|
183
|
-
left:
|
|
144
|
+
left: p === "center" ? `calc(50% - ${D / 2}px)` : "0"
|
|
184
145
|
},
|
|
185
|
-
className: `${e.nav} ${
|
|
146
|
+
className: `${e.nav} ${c ? e.open : ""} ${U ? e.visible : e.hidden}`,
|
|
186
147
|
id: "main-menu",
|
|
187
148
|
role: "menubar",
|
|
188
|
-
children: /* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */
|
|
149
|
+
children: /* @__PURE__ */ u("div", { className: e.navInner, children: [
|
|
150
|
+
/* @__PURE__ */ a(
|
|
190
151
|
"svg",
|
|
191
152
|
{
|
|
192
|
-
style: { left: `${
|
|
193
|
-
className: `${e.triangle} ${
|
|
153
|
+
style: { left: `${F}px` },
|
|
154
|
+
className: `${e.triangle} ${g ? e.show : ""}`,
|
|
194
155
|
width: 16,
|
|
195
156
|
height: 12,
|
|
196
157
|
viewBox: "0 0 100 75",
|
|
197
158
|
xmlns: "http://www.w3.org/2000/svg",
|
|
198
|
-
children: /* @__PURE__ */
|
|
159
|
+
children: /* @__PURE__ */ a(
|
|
199
160
|
"polygon",
|
|
200
161
|
{
|
|
201
162
|
points: "50,5 95,70 5,70",
|
|
@@ -206,72 +167,73 @@ function Ge({
|
|
|
206
167
|
)
|
|
207
168
|
}
|
|
208
169
|
),
|
|
209
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ a(
|
|
210
171
|
"div",
|
|
211
172
|
{
|
|
212
|
-
className: `${e.triangle} ${
|
|
173
|
+
className: `${e.triangle} ${g ? e.show : ""}`
|
|
213
174
|
}
|
|
214
175
|
),
|
|
215
|
-
/* @__PURE__ */
|
|
176
|
+
L === "default" && x && /* @__PURE__ */ a("div", { className: e.grid, children: f(x) }),
|
|
177
|
+
L === "advanced" && k && /* @__PURE__ */ a("div", { className: e.grid, children: Z(k) })
|
|
216
178
|
] })
|
|
217
179
|
}
|
|
218
180
|
),
|
|
219
|
-
|
|
220
|
-
|
|
181
|
+
l && /* @__PURE__ */ a("nav", { className: e.utility, children: /* @__PURE__ */ a(W, { children: l.map((n, r) => /* @__PURE__ */ a(
|
|
182
|
+
G,
|
|
221
183
|
{
|
|
222
184
|
as: "a",
|
|
223
|
-
href:
|
|
224
|
-
variant:
|
|
225
|
-
displayType:
|
|
226
|
-
imageSrc:
|
|
227
|
-
imageAlt:
|
|
228
|
-
"aria-label":
|
|
229
|
-
children:
|
|
185
|
+
href: n.href ?? "/",
|
|
186
|
+
variant: n.variant ?? "primary",
|
|
187
|
+
displayType: n.displayType ?? "text",
|
|
188
|
+
imageSrc: n.imageSrc,
|
|
189
|
+
imageAlt: n.imageAlt,
|
|
190
|
+
"aria-label": n.ariaLabel ?? n.label,
|
|
191
|
+
children: l[1].imageSrc ? /* @__PURE__ */ a(
|
|
230
192
|
"img",
|
|
231
193
|
{
|
|
232
194
|
className: e.utilityImage,
|
|
233
|
-
src:
|
|
234
|
-
"aria-label":
|
|
195
|
+
src: l[1].imageSrc,
|
|
196
|
+
"aria-label": l[1].imageAlt ?? l[1].ariaLabel ?? l[1].label
|
|
235
197
|
}
|
|
236
|
-
) :
|
|
198
|
+
) : l[1].label
|
|
237
199
|
},
|
|
238
|
-
|
|
200
|
+
n._key || r
|
|
239
201
|
)) }) }),
|
|
240
|
-
|
|
202
|
+
l && /* @__PURE__ */ a(
|
|
241
203
|
"nav",
|
|
242
204
|
{
|
|
243
|
-
className: `${e.utilityMobile} ${
|
|
244
|
-
children: /* @__PURE__ */
|
|
245
|
-
|
|
205
|
+
className: `${e.utilityMobile} ${c ? e.open : ""}`,
|
|
206
|
+
children: /* @__PURE__ */ a(W, { alignment: "center", children: /* @__PURE__ */ a(
|
|
207
|
+
G,
|
|
246
208
|
{
|
|
247
209
|
as: "a",
|
|
248
|
-
href:
|
|
249
|
-
variant:
|
|
250
|
-
displayType:
|
|
251
|
-
imageSrc:
|
|
252
|
-
imageAlt:
|
|
253
|
-
"aria-label":
|
|
254
|
-
children:
|
|
210
|
+
href: l[1].href ?? "/",
|
|
211
|
+
variant: l[1].variant ?? "primary",
|
|
212
|
+
displayType: l[1].displayType ?? "text",
|
|
213
|
+
imageSrc: l[1].imageSrc,
|
|
214
|
+
imageAlt: l[1].imageAlt,
|
|
215
|
+
"aria-label": l[1].ariaLabel ?? l[1].label,
|
|
216
|
+
children: l[1].imageSrc ? /* @__PURE__ */ a(
|
|
255
217
|
"img",
|
|
256
218
|
{
|
|
257
219
|
className: e.utilityImage,
|
|
258
|
-
src:
|
|
259
|
-
"aria-label":
|
|
220
|
+
src: l[1].imageSrc,
|
|
221
|
+
"aria-label": l[1].imageAlt ?? l[1].ariaLabel ?? l[1].label
|
|
260
222
|
}
|
|
261
|
-
) :
|
|
223
|
+
) : l[1].label
|
|
262
224
|
}
|
|
263
225
|
) })
|
|
264
226
|
}
|
|
265
227
|
),
|
|
266
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ a(
|
|
267
229
|
"button",
|
|
268
230
|
{
|
|
269
231
|
className: e.menuToggle,
|
|
270
|
-
onClick:
|
|
271
|
-
"aria-label":
|
|
272
|
-
"aria-expanded":
|
|
232
|
+
onClick: K,
|
|
233
|
+
"aria-label": c ? "Close menu" : "Open menu",
|
|
234
|
+
"aria-expanded": c,
|
|
273
235
|
"aria-controls": "main-menu",
|
|
274
|
-
children:
|
|
236
|
+
children: c ? /* @__PURE__ */ a(ne, { size: 24 }) : /* @__PURE__ */ a(re, { size: 24 })
|
|
275
237
|
}
|
|
276
238
|
)
|
|
277
239
|
]
|
|
@@ -281,5 +243,5 @@ function Ge({
|
|
|
281
243
|
);
|
|
282
244
|
}
|
|
283
245
|
export {
|
|
284
|
-
|
|
246
|
+
ue as Navbar
|
|
285
247
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as C, jsx as b } from "react/jsx-runtime";
|
|
2
2
|
import { useState as $ } from "react";
|
|
3
|
-
import './assets/index.css';import './assets/
|
|
3
|
+
import './assets/index.css';import './assets/index47.css';/* empty css */
|
|
4
4
|
import { IconButton as q } from "./components/IconButton/index.js";
|
|
5
5
|
import "./index-CxrBcaoP.js";
|
|
6
6
|
import "./components/Tabs/index.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { NavItem } from '.';
|
|
3
|
+
type NavLinkProps = {
|
|
4
|
+
link: NavItem;
|
|
5
|
+
path: string;
|
|
6
|
+
parentPath: string;
|
|
7
|
+
openPath: string | null;
|
|
8
|
+
togglePath: (path: string) => void;
|
|
9
|
+
updateTriangleIndicator: (path: string) => void;
|
|
10
|
+
setOpenPath: (path: string | null) => void;
|
|
11
|
+
renderLinks: (links: NavItem[], parentPath: string) => JSX.Element[];
|
|
12
|
+
buttonRefs: React.RefObject<Map<string, HTMLButtonElement | null>>;
|
|
13
|
+
};
|
|
14
|
+
export declare function NavLink({ link, path, parentPath, openPath, togglePath, updateTriangleIndicator, setOpenPath, renderLinks, buttonRefs, }: NavLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -31,16 +31,24 @@ export type NavItem = {
|
|
|
31
31
|
onClick?: () => void;
|
|
32
32
|
icon?: string;
|
|
33
33
|
};
|
|
34
|
+
export type NavGroup = {
|
|
35
|
+
title: string;
|
|
36
|
+
primaryItems?: NavItem[];
|
|
37
|
+
secondaryItems?: NavItem[];
|
|
38
|
+
spotlight?: React.ReactNode;
|
|
39
|
+
};
|
|
34
40
|
type NavbarProps = {
|
|
35
41
|
title?: string;
|
|
36
42
|
logo?: React.ReactNode;
|
|
37
|
-
items
|
|
43
|
+
items?: NavItem[];
|
|
44
|
+
groups?: NavGroup[];
|
|
38
45
|
utilityItems?: UtilityItem[];
|
|
39
46
|
isSticky?: boolean;
|
|
40
47
|
isTransparent?: boolean;
|
|
41
48
|
variant?: Variant;
|
|
42
49
|
alignment: Alignment;
|
|
43
50
|
className?: string;
|
|
51
|
+
navigationType: "default" | "advanced";
|
|
44
52
|
};
|
|
45
|
-
export declare function Navbar({ title, logo, items, utilityItems, isSticky, isTransparent, alignment, variant, className, }: NavbarProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare function Navbar({ title, logo, items, groups, utilityItems, isSticky, isTransparent, alignment, variant, navigationType, className, }: NavbarProps): import("react/jsx-runtime").JSX.Element;
|
|
46
54
|
export {};
|
package/dist/lib/main.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export { Spinner } from './components/Spinner';
|
|
|
31
31
|
export { Skeleton } from './components/Skeleton';
|
|
32
32
|
export { Carousel } from './components/Carousel';
|
|
33
33
|
export { Navbar } from './components/NavBar';
|
|
34
|
-
export type { NavItem, UtilityItem } from './components/NavBar';
|
|
34
|
+
export type { NavItem, UtilityItem, NavGroup } from './components/NavBar';
|
|
35
35
|
export { Drawer } from './components/Drawer';
|
|
36
36
|
export { Tabs } from './components/Tabs';
|
|
37
37
|
export { Breadcrumbs } from './components/Breadcrumbs';
|
package/dist/styles.css
CHANGED
|
@@ -42,7 +42,7 @@ ul._list_4w9h5_1{list-style-type:none;padding:0;margin:0}ol._list_4w9h5_1{list-s
|
|
|
42
42
|
._wrapper_13tha_1{display:flex;flex-direction:column;position:relative}._input_13tha_7{padding:var(--spacing-sm) var(--spacing-sm);border:2px solid var(--color-border, #ccc);border-radius:var(--radius-md);font-size:var(--font-size-md);outline:none;background-color:var(--color-background);color:var(--color-text-primary)}._input_13tha_7::placeholder{color:var(--color-muted)}._input_13tha_7:focus{border-color:var(--color-primary)}._popover_13tha_25{position:absolute;top:100%;left:0;z-index:10;border-radius:var(--radius-md);background-color:var(--color-background);border:1px solid var(--color-border);margin-top:var(--spacing-xs)}
|
|
43
43
|
._wrapper_7toxm_1{display:flex;flex-direction:column;gap:var(--spacing-sm)}._trackContainer_7toxm_7{display:flex;align-items:center;gap:var(--spacing-sm)}._track_7toxm_7{flex:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:4px;background-color:var(--color-muted);border-radius:4px;outline:none}._track_7toxm_7::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:16px;height:16px;background-color:var(--color-primary);border-radius:var(--radius-full);cursor:pointer;border:none}._track_7toxm_7::-moz-range-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:16px;height:16px;background-color:var(--color-primary);border-radius:var(--radius-full);cursor:pointer;border:none}._value_7toxm_44{width:2rem;text-align:right;font-size:var(--font-size-sm);font-weight:var(--font-weight-bold);color:var(--color-primary)}._error_7toxm_52{color:var(--color-error)}._errorMessage_7toxm_56{font-size:var(--font-size-sm);color:var(--color-error)}
|
|
44
44
|
._wrapper_s8dew_1{display:flex;flex-direction:column;gap:var(--spacing-sm)}._dropZone_s8dew_7{border:2px dashed var(--color-border);border-radius:var(--radius-md);padding:var(--spacing-xl);text-align:center;cursor:pointer;background-color:var(--color-background);transition:background-color .3s ease}._dropZone_s8dew_7 p{color:var(--color-text-primary)}._dropZone_s8dew_7:hover{background-color:var(--color-background)}._dragging_s8dew_25{background-color:var(--color-primary);border-color:var(--color-primary)}._input_s8dew_30{display:none}._fileList_s8dew_34{display:flex;flex-direction:column;gap:var(--spacing-sm);margin-top:var(--spacing-md);list-style:none;padding:0}._fileList_s8dew_34 li{color:var(--color-text-primary);display:flex;align-items:center;gap:var(--spacing-sm)}._fileList_s8dew_34 li button{cursor:pointer}
|
|
45
|
-
:root{--nav-height: 65px}.
|
|
45
|
+
:root{--nav-height: 65px}._navbar_wd0jm_5{position:relative;height:var(--nav-height)}._left_wd0jm_18 ._container_wd0jm_19{justify-content:flex-start}._left_wd0jm_18 ._logo_wd0jm_23{flex:unset}._left_wd0jm_18 ._nav_wd0jm_5{flex:1}@media (max-width: 767px){._left_wd0jm_18 ._logo_wd0jm_23{flex:1}}._center_wd0jm_38 ._nav_wd0jm_5{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_wd0jm_38 ._nav_wd0jm_5._hidden_wd0jm_44{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_wd0jm_38 ._nav_wd0jm_5._visible_wd0jm_51{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_wd0jm_38 ._logo_wd0jm_23{flex:1}}._right_wd0jm_66 ._container_wd0jm_19{justify-content:flex-end}._right_wd0jm_66 ._logo_wd0jm_23,._right_wd0jm_66 ._title_wd0jm_72{flex:1}._right_wd0jm_66 ._nav_wd0jm_5{flex:unset}._default_wd0jm_81 ._sublinks_wd0jm_82{position:fixed;left:0;right:0;top:100%;padding-top:1rem}@media (max-width: 767px){._default_wd0jm_81 ._sublinks_wd0jm_82{position:relative}}._default_wd0jm_81 ._sublinksInner_wd0jm_94{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:calc(100vw - 4rem);width:78rem;min-height:24rem}@media (max-width: 767px){._default_wd0jm_81 ._sublinksInner_wd0jm_94{grid-template-columns:1fr;width:auto;min-height:unset}}._default_wd0jm_81 ._linkItem_wd0jm_108{justify-content:flex-start}._minimal_wd0jm_113{left:0;background-color:#fff}._minimal_wd0jm_113 ._menuToggle_wd0jm_117{grid-area:unset}._minimal_wd0jm_113 ._linkWrapper_wd0jm_121{position:relative}._minimal_wd0jm_113 ._sublinks_wd0jm_82{position:absolute;right:0;width:auto}@media (max-width: 767px){._minimal_wd0jm_113 ._sublinks_wd0jm_82{position:relative;justify-content:center;align-items:center}}._minimal_wd0jm_113 ._sublinksInner_wd0jm_94{display:flex;flex-direction:column;min-width:125px;justify-content:flex-end;align-items:flex-end}@media (max-width: 767px){._minimal_wd0jm_113 ._sublinksInner_wd0jm_94{justify-content:center;align-items:center}}._minimal_wd0jm_113 ._linkItem_wd0jm_108{justify-content:flex-end}@media (max-width: 767px){._minimal_wd0jm_113 ._linkItem_wd0jm_108{justify-content:center;align-items:center}}._minimal_wd0jm_113 ._triangle_wd0jm_159{display:none}._transparent_wd0jm_164{background-color:transparent}._transparent_wd0jm_164 ._nav_wd0jm_5{height:auto;border-radius:var(--radius-full);padding:0 var(--spacing-md);z-index:1001;background:#ffffff80;backdrop-filter:saturate(1.1) blur(1rem);-webkit-backdrop-filter:saturate(1.1) blur(1rem)}@media (max-width: 767px){._transparent_wd0jm_164 ._nav_wd0jm_5{padding:var(--nav-height) 0 0;background:#fffffff2;border-radius:0;top:0!important;left:0!important;height:100vh}._transparent_wd0jm_164 ._nav_wd0jm_5:before{border-radius:0}}._transparent_wd0jm_164 ._menuToggle_wd0jm_117:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#ffffff80;backdrop-filter:saturate(1.1) blur(1rem);-webkit-backdrop-filter:saturate(1.1) blur(1rem);border-radius:var(--radius-md)}._sticky_wd0jm_216{position:fixed;top:var(--spacing-md);left:0;right:0;z-index:1000;width:100%}._container_wd0jm_19{display:grid;align-items:center;grid-template-areas:"first second third";grid-template-columns:minmax(auto,1fr) auto minmax(auto,1fr);grid-gap:var(--spacing-md);width:100%;max-width:var(--layout-width);height:100%;margin:0 auto;padding:0 var(--spacing-lg);position:relative}@media (max-width: 767px){._container_wd0jm_19{grid-template-areas:"first second third fourth"}}._container_wd0jm_19._twoColumn_wd0jm_245{grid-template-columns:minmax(auto,1fr) auto;grid-template-areas:"first second"}._title_wd0jm_72{grid-area:first;color:var(--color-text-primary);font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold)}._logo_wd0jm_23{grid-area:first;font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);color:var(--color-primary);display:flex;align-items:center;justify-content:flex-start;position:relative;z-index:1005}._logo_wd0jm_23 img{height:auto;width:auto}._menuToggle_wd0jm_117{grid-area:fourth;background:none;border:none;cursor:pointer;display:none;color:var(--color-text-primary);z-index:1100;position:relative;width:40px;height:40px}._menuToggle_wd0jm_117 svg{position:relative;z-index:5}._utilityMobile_wd0jm_292{display:none;grid-area:third;justify-content:flex-end}._utility_wd0jm_292{grid-area:third;display:flex;justify-content:flex-end}._utility_wd0jm_292 a{font-size:var(--font-size-sm)}._nav_wd0jm_5{grid-area:second;display:grid;grid-template-columns:minmax(auto,1fr) auto;grid-gap:var(--spacing-sm);transition:transform .3s ease}@media (max-width: 767px){._nav_wd0jm_5{height:100vh}}._navInner_wd0jm_320{position:relative}@media (max-width: 767px){._navInner_wd0jm_320{margin:var(--spacing-xl) auto 0;min-width:300px}}._grid_wd0jm_329{display:grid;align-items:center;grid-auto-flow:column}@media (max-width: 767px){._grid_wd0jm_329{display:flex;flex-direction:column}}._linkItem_wd0jm_108{display:flex;align-items:center;box-sizing:border-box}._navTitle_wd0jm_354,._sublinkToggle_wd0jm_355,._link_wd0jm_108{text-decoration:none;color:var(--color-text-primary);padding:var(--spacing-sm);transition:color .3s ease;font-family:inherit;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);box-sizing:border-box;display:flex;align-items:center;gap:var(--spacing-xs)}._navTitle_wd0jm_354 ._newTabIcon_wd0jm_370,._sublinkToggle_wd0jm_355 ._newTabIcon_wd0jm_370,._link_wd0jm_108 ._newTabIcon_wd0jm_370{color:var(--color-muted);transition:color .3s ease-in-out}._link_wd0jm_108:hover,._sublinkToggle_wd0jm_355:hover,._sublinkToggle_wd0jm_355._open_wd0jm_378,._link_wd0jm_108:hover ._newTabIcon_wd0jm_370,._sublinkToggle_wd0jm_355:hover ._newTabIcon_wd0jm_370,._sublinkToggle_wd0jm_355._open_wd0jm_378 ._newTabIcon_wd0jm_370,._navItem_wd0jm_386:hover{color:var(--color-primary)}._sublinkToggle_wd0jm_355{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_wd0jm_82{display:flex;justify-content:center;opacity:0;visibility:hidden;z-index:1000;transition:transform .3s ease-in-out,max-height .3s ease,opacity .3s ease,visibility .3s ease}._sublinks_wd0jm_82._show_wd0jm_433{max-height:500px;opacity:1;pointer-events:auto;visibility:visible;transform:translateY(0)}._triangle_wd0jm_159{visibility:hidden;opacity:0;position:absolute;top:calc(100% + .5rem);transform:translate(-50%);z-index:10;pointer-events:none;transition:top .3s ease-in-out,left .3s ease-in-out,visbility .3s ease-in-out,opacity .3s ease-in-out}._triangle_wd0jm_159._show_wd0jm_433{top:calc(100% + .3rem);opacity:1;visibility:visible}._sublinksInner_wd0jm_94{background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;border-radius:var(--radius-md)}@media (max-width: 767px){._sublinksInner_wd0jm_94{display:flex;flex-direction:column;width:unset;max-width:unset;min-height:unset;background-color:unset;box-shadow:unset;border-radius:unset}}._sublinksColumn_wd0jm_481{display:flex;flex-direction:column;padding:var(--spacing-md)}@media (max-width: 767px){._sublinksColumn_wd0jm_481{padding:0}}._chevron_wd0jm_491{transition:transform .3s ease;display:flex;align-items:center;justify-content:center;margin-top:2px}._sublinkToggle_wd0jm_355._open_wd0jm_378 ._chevron_wd0jm_491{transform:rotate(180deg)}@media (max-width: 767px){._logo_wd0jm_23{flex:1}._menuToggle_wd0jm_117{display:flex;align-items:center;justify-content:center}._utility_wd0jm_292 a:not(._utility_wd0jm_292 a:first-of-type){display:none}._utilityMobile_wd0jm_292{display:block;transform:translateY(100px);position:fixed;bottom:1rem;left:0;right:0;margin:0 auto;width:calc(100% - 2rem);z-index:1001;transition:transform .3s ease-in-out}._utilityMobile_wd0jm_292._open_wd0jm_378{transform:translateY(0)}._nav_wd0jm_5{display:none;position:fixed;top:calc(var(--nav-height) - 1px);left:0;width:100%;height:100%;background-color:var(--color-background);display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-md);padding:var(--spacing-md);border-top:1px solid var(--color-border);z-index:1000;overflow-y:auto;transform:translate(100%)}._nav_wd0jm_5._open_wd0jm_378{transform:translate(0)}._linkWrapper_wd0jm_121{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_wd0jm_121._parent_wd0jm_570{border-bottom:1px solid var(--color-border)}._linkWrapper_wd0jm_121._parent_wd0jm_570:last-of-type{border:none}._linkItem_wd0jm_108{width:100%}._chevron_wd0jm_491{display:none}._sublinks_wd0jm_82{position:relative;top:0;box-shadow:none;max-height:fit-content;opacity:1;visibility:visible;align-items:flex-start;justify-content:flex-start;padding:var(--spacing-sm);gap:0;pointer-events:auto}._sublinkToggle_wd0jm_355{cursor:pointer;pointer-events:none;color:var(--color-muted)}}
|
|
46
46
|
._label_15ngo_1{font-weight:var(--font-weight-semibold);margin-bottom:var(--spacing-xs)}._text_15ngo_6{display:inline-flex;align-items:center;gap:var(--spacing-xs)}._sm_15ngo_13{font-size:.75rem}._md_15ngo_17{font-size:.875rem}._lg_15ngo_21{font-size:1rem}._default_15ngo_26{color:var(--color-text-primary)}._muted_15ngo_30{color:var(--color-muted)}._accent_15ngo_34{color:var(--color-primary)}._disabled_15ngo_38{color:var(--color-muted)}._error_15ngo_42{color:var(--color-error)}._required_15ngo_47{color:var(--color-error);margin-left:.25rem}._optional_15ngo_52{color:var(--color-muted);font-style:italic;margin-left:.25rem}._srOnly_15ngo_58{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}._icon_15ngo_71{line-height:0;margin-left:var(--spacing-xs)}._tooltipWrapper_15ngo_77{position:relative;display:inline-flex;align-items:center}._tooltipIcon_15ngo_83{line-height:0;font-size:var(--font-size-md);cursor:help;margin-left:var(--spacing-xs);color:var(--color-muted)}._tooltipText_15ngo_91{visibility:hidden;background-color:#111;color:#fff;text-align:center;padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--radius-md);position:absolute;z-index:10;bottom:125%;left:50%;transform:translate(-50%);font-size:var(--font-size-xs);white-space:nowrap;opacity:0;transition:opacity .2s ease}._tooltipWrapper_15ngo_77:hover ._tooltipText_15ngo_91,._tooltipWrapper_15ngo_77:focus-within ._tooltipText_15ngo_91{visibility:visible;opacity:1}
|
|
47
47
|
._footer_xfxi7_1{background-color:var(--color-background);padding:var(--spacing-xl) var(--spacing-md);font-size:var(--font-size-sm);color:var(--color-text-primary)}._container_xfxi7_8{display:flex;flex-direction:column;align-items:flex-start;gap:2rem}._utilityImage_xfxi7_17{width:100%}._primaryNav_xfxi7_21{display:flex;gap:var(--spacing-xl)}@media (max-width: 767px){._primaryNav_xfxi7_21{flex-direction:column}}._secondaryNav_xfxi7_30{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;width:100%;gap:var(--spacing-xl);margin-top:var(--spacing-xl)}._secondaryNav_xfxi7_30 a:has(img){height:unset;background-color:transparent}._secondaryNav_xfxi7_30 a:has(img) img{width:175px;height:auto}._secondaryNav_xfxi7_30 a:has(img):hover{background-color:transparent}@media (max-width: 480px){._secondaryNav_xfxi7_30{flex-direction:column-reverse}._secondaryNav_xfxi7_30 nav{width:100%}}._details_xfxi7_62{flex-basis:200px;display:flex;flex-direction:column;gap:var(--spacing-lg)}._nav_xfxi7_69{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-lg);flex:1}._logo_xfxi7_77{font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);color:var(--color-primary)}._socialItems_xfxi7_83{display:flex;align-items:center;justify-content:flex-start;gap:var(--spacing-sm)}._socialItems_xfxi7_83 ._group_xfxi7_90{min-width:unset}._socialItems_xfxi7_83 a{transition:color .3s ease-in-out;font-size:var(--font-size-xl)}._groups_xfxi7_99{display:flex;flex-wrap:wrap;gap:var(--spacing-xl)}._group_xfxi7_90{min-width:140px}._groupTitle_xfxi7_109{font-weight:var(--font-weight-semibold);margin-bottom:var(--spacing-xs)}._sublinks_xfxi7_114{position:relative;display:flex;flex-direction:column;gap:var(--spacing-sm);margin-top:var(--spacing-md)}._linkList_xfxi7_122{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;padding:0;margin:0}._link_xfxi7_122{color:var(--color-text-primary);text-decoration:none;display:block;transition:color .3s ease-in-out;display:flex;align-items:center;gap:var(--spacing-xs)}._link_xfxi7_122 ._newTabIcon_xfxi7_140{color:var(--color-muted);transition:color .3s ease-in-out}._link_xfxi7_122:hover,._link_xfxi7_122:hover ._newTabIcon_xfxi7_140{color:var(--color-primary)}._bottom_xfxi7_154{text-align:left;font-size:var(--font-size-sm);color:var(--color-muted)}._left_xfxi7_161 ._container_xfxi7_8{justify-content:flex-start}._left_xfxi7_161 ._logo_xfxi7_77{flex:unset}._left_xfxi7_161 ._nav_xfxi7_69{flex:1}@media (max-width: 767px){._left_xfxi7_161 ._logo_xfxi7_77{flex:1}}._center_xfxi7_181 ._nav_xfxi7_69{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_xfxi7_181 ._nav_xfxi7_69._hidden_xfxi7_187{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_xfxi7_181 ._nav_xfxi7_69._visible_xfxi7_194{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_xfxi7_181 ._logo_xfxi7_77{flex:1}}._right_xfxi7_209 ._container_xfxi7_8{justify-content:flex-end}._right_xfxi7_209 ._logo_xfxi7_77,._right_xfxi7_209 ._title_xfxi7_215{flex:1}._right_xfxi7_209 ._nav_xfxi7_69{flex:unset}
|
|
48
48
|
._calendar_zbxci_1{padding:var(--spacing-sm);border-radius:var(--radius-md);min-width:250px}._header_zbxci_7{display:flex;justify-content:space-between;margin-bottom:var(--spacing-sm)}._dayName_zbxci_13{font-weight:var(--font-weight-semibold);color:var(--color-text-primary);width:30px;text-align:center;flex:1;font-size:var(--font-size-sm)}._monthName_zbxci_23{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}._week_zbxci_28{display:flex;justify-content:space-between;color:var(--color-text-primary)}._cell_zbxci_34{flex:1;padding:var(--spacing-xs) 0;text-align:center;background:none;color:var(--color-text-primary);border:none;cursor:pointer;width:30px}._outside_zbxci_45{color:var(--color-muted)}._selected_zbxci_49{background-color:var(--color-primary);color:#fff;border-radius:var(--radius-md)}
|
package/package.json
CHANGED
package/dist/assets/index48.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._calendar_zbxci_1{padding:var(--spacing-sm);border-radius:var(--radius-md);min-width:250px}._header_zbxci_7{display:flex;justify-content:space-between;margin-bottom:var(--spacing-sm)}._dayName_zbxci_13{font-weight:var(--font-weight-semibold);color:var(--color-text-primary);width:30px;text-align:center;flex:1;font-size:var(--font-size-sm)}._monthName_zbxci_23{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}._week_zbxci_28{display:flex;justify-content:space-between;color:var(--color-text-primary)}._cell_zbxci_34{flex:1;padding:var(--spacing-xs) 0;text-align:center;background:none;color:var(--color-text-primary);border:none;cursor:pointer;width:30px}._outside_zbxci_45{color:var(--color-muted)}._selected_zbxci_49{background-color:var(--color-primary);color:#fff;border-radius:var(--radius-md)}
|