@helloimjolopez-pathway/pathway-components 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/search/search.jsx +1 -1
- package/components/sidenav/sidenav.jsx +1 -1
- package/components/toggle-button/toggle-button-demo.jsx +193 -0
- package/components/toggle-button/toggle-button.jsx +434 -0
- package/components/top-nav/top-nav.jsx +3 -3
- package/dist/pathway-components.js +396 -0
- package/dist/pathway-sidenav.js +132 -0
- package/package.json +13 -5
|
@@ -532,7 +532,7 @@ export function OrgSwitcher({ org, open, onToggle, mobile = false, showCampus =
|
|
|
532
532
|
border: "none",
|
|
533
533
|
// Hover and pressed thicken to Button/BorderWidth/Selected (1px), as
|
|
534
534
|
// Figma binds them on 40006819:14582 and 40006933:15754.
|
|
535
|
-
boxShadow: `inset 0 0 0 ${open || hov ? "var(--contextual-layout-units-button-borderwidth-selected)" : "var(--contextual-layout-units-button-borderwidth-rest)"} ${open ? T.orgStrokePressed : hov ? T.orgStrokeHover : T.orgStroke}`,
|
|
535
|
+
boxShadow: `inset 0 0 0 ${open || hov ? "var(--contextual-layout-units-button-borderwidth-selected, 1px)" : "var(--contextual-layout-units-button-borderwidth-rest, 0.75px)"} ${open ? T.orgStrokePressed : hov ? T.orgStrokeHover : T.orgStroke}`,
|
|
536
536
|
cursor: "pointer", color: fg, fontFamily: "inherit",
|
|
537
537
|
transition: "background var(--motion-duration-3) var(--motion-easing-standard), box-shadow var(--motion-duration-3) var(--motion-easing-standard)",
|
|
538
538
|
}}
|
|
@@ -862,7 +862,7 @@ function NewCoOrgSwitcher({ org, open, onToggle, compact }) {
|
|
|
862
862
|
padding: compact ? `${u("padding-xtight")} ${u("padding-xxxtight")} ${u("padding-xtight")} ${u("padding-xtight")}`
|
|
863
863
|
: `${L.orgPadV} ${L.orgPadV} ${L.orgPadV} ${L.orgPadL}`,
|
|
864
864
|
borderRadius: u("cornerradius-full"), border: "none", background: fill, cursor: "pointer", fontFamily: "inherit",
|
|
865
|
-
boxShadow: `inset 0 0 0 var(--contextual-layout-units-button-borderwidth-rest) ${T.orgStroke}`,
|
|
865
|
+
boxShadow: `inset 0 0 0 var(--contextual-layout-units-button-borderwidth-rest, 0.75px) ${T.orgStroke}`,
|
|
866
866
|
transition: "background var(--motion-duration-3) var(--motion-easing-standard)" }}>
|
|
867
867
|
<span aria-hidden="true" style={{ ...NC_TYPE.menuBase, color: T.monoBase, whiteSpace: "nowrap", overflow: "hidden",
|
|
868
868
|
textOverflow: "ellipsis", minWidth: 0, maxWidth: compact ? L.orgNameMaxMobile : L.orgNameMax }}>
|
|
@@ -888,7 +888,7 @@ function PillarTrigger({ label, open, onToggle }) {
|
|
|
888
888
|
style={{ display: "flex", alignItems: "center", gap: "var(--semantic-layout-units-gap-xxxtight)", height: L.modInnerH,
|
|
889
889
|
boxSizing: "border-box", padding: `0 10px 0 ${u("padding-medium")}`, /* pathway-allow: Figma Pillar.Trigger right padding 10 has no token (gap logged in the spec) */
|
|
890
890
|
borderRadius: u("cornerradius-full"), border: "none", background: fill, cursor: "pointer", fontFamily: "inherit",
|
|
891
|
-
boxShadow: `inset 0 0 0 var(--contextual-layout-units-button-borderwidth-rest) ${T.orgStroke}`, color: T.monoBase }}>
|
|
891
|
+
boxShadow: `inset 0 0 0 var(--contextual-layout-units-button-borderwidth-rest, 0.75px) ${T.orgStroke}`, color: T.monoBase }}>
|
|
892
892
|
<span style={{ ...NC_TYPE.sectionSm, whiteSpace: "nowrap" }}>{label}</span>
|
|
893
893
|
<span style={{ width: L.modChevronBox, height: L.modChevronBox, display: "inline-flex", alignItems: "center", justifyContent: "center" }}>
|
|
894
894
|
<Icon name="expand_more" size={L.chevronGlyph} style={{ color: T.monoBase }} />
|