@triptease/tt-navbar 0.0.43 → 0.0.44
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/src/styles.js +5 -4
- package/dist/src/styles.js.map +1 -1
- package/dist/web/NavbarController.js +1 -1
- package/dist/web/Routes.js +1 -1
- package/dist/web/TtNavbar.js +6 -5
- package/dist/web/TtNavbar.js.map +2 -2
- package/dist/web/global.d.js +1 -1
- package/dist/web/index.js +6 -5
- package/dist/web/index.js.map +2 -2
- package/dist/web/styles.js +6 -5
- package/dist/web/styles.js.map +2 -2
- package/dist/web/triptease-logo.js +1 -1
- package/dist/web/tt-navbar.js +6 -5
- package/dist/web/tt-navbar.js.map +2 -2
- package/dist/web/urlMappings.js +1 -1
- package/package.json +1 -1
- package/src/styles.ts +5 -4
package/dist/src/styles.js
CHANGED
|
@@ -29,6 +29,7 @@ export const styles = css `
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
nav {
|
|
32
|
+
--menu-font-size: var(--font-size-200);
|
|
32
33
|
max-width: var(--nav-bar-width);
|
|
33
34
|
width: var(--nav-bar-width);
|
|
34
35
|
min-height: 100vh;
|
|
@@ -98,7 +99,7 @@ export const styles = css `
|
|
|
98
99
|
width: 100%;
|
|
99
100
|
|
|
100
101
|
.external-link {
|
|
101
|
-
font-size: var(--font-size
|
|
102
|
+
font-size: var(--menu-font-size);
|
|
102
103
|
line-height: var(--font-line-height-100);
|
|
103
104
|
|
|
104
105
|
.icon {
|
|
@@ -131,7 +132,7 @@ export const styles = css `
|
|
|
131
132
|
|
|
132
133
|
.nav-item {
|
|
133
134
|
display: flex;
|
|
134
|
-
font-size: var(--font-size
|
|
135
|
+
font-size: var(--menu-font-size);
|
|
135
136
|
line-height: var(--font-line-height-100);
|
|
136
137
|
gap: var(--space-scale-1-5);
|
|
137
138
|
border-radius: var(--border-radius-100);
|
|
@@ -155,7 +156,7 @@ export const styles = css `
|
|
|
155
156
|
border-radius: var(--border-radius-100);
|
|
156
157
|
|
|
157
158
|
summary {
|
|
158
|
-
font-size: var(--font-size
|
|
159
|
+
font-size: var(--menu-font-size);
|
|
159
160
|
line-height: var(--font-line-height-100);
|
|
160
161
|
position: relative;
|
|
161
162
|
display: flex;
|
|
@@ -216,7 +217,7 @@ export const styles = css `
|
|
|
216
217
|
padding-top: 10px;
|
|
217
218
|
padding-bottom: 10px;
|
|
218
219
|
color: var(--color-text-inverted-400);
|
|
219
|
-
font-size: var(--font-size
|
|
220
|
+
font-size: var(--menu-font-size);
|
|
220
221
|
line-height: var(--font-line-height-100);
|
|
221
222
|
text-decoration: none;
|
|
222
223
|
|
package/dist/src/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;CAW5B,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;CAW5B,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA0Cf,iBAAiB;;;;UAIjB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA6DjB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmQ1B,CAAC","sourcesContent":["import { css } from 'lit';\n\nconst visuallyHiddenCss = css`\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n border: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n`;\n\nexport const styles = css`\n :host {\n --nav-bar-width: 260px;\n\n display: block;\n height: 100vh;\n }\n\n :host:has(.sidebar-closed) {\n --nav-bar-width: fit-content;\n }\n\n\n * {\n box-sizing: border-box;\n }\n\n nav {\n --menu-font-size: var(--font-size-200);\n max-width: var(--nav-bar-width);\n width: var(--nav-bar-width);\n min-height: 100vh;\n height: max-content;\n display: flex;\n align-items: start;\n gap: var(--space-scale-3-5);\n flex-direction: column;\n background-color: var(--color-surface-inverted-100);\n color: var(--color-text-inverted-400);\n padding-top: var(--space-scale-2);\n padding-bottom: var(--space-scale-2);\n z-index: 1;\n\n .nav-items {\n display: flex;\n flex-direction: column;\n padding: 0 var(--space-scale-1);\n width: 100%;\n }\n\n .nav-items.sidebar-closed {\n a span {\n ${visuallyHiddenCss}\n }\n\n details summary span {\n ${visuallyHiddenCss}\n }\n }\n\n .sidebar-header {\n width: 100%;\n display: grid;\n grid-template-columns: 1fr auto;\n align-items: center;\n justify-content: center;\n padding: 0 var(--space-scale-2);\n\n button {\n background-color: transparent;\n color: var(--color-text-inverted-400);\n border: none;\n }\n }\n\n .sidebar-header.sidebar-closed {\n padding: 0 var(--space-scale-1);\n .logo {\n display: none;\n visibility: hidden;\n }\n }\n\n hr {\n width: 100%;\n height: 1px;\n background-color: var(--color-surface-inverted-200);\n border: none;\n }\n\n .tertiary-nav {\n display: flex;\n flex-direction: column;\n margin-top: auto;\n gap: var(--space-scale-2);\n width: 100%;\n\n .external-link {\n font-size: var(--menu-font-size);\n line-height: var(--font-line-height-100);\n\n .icon {\n width: var(--space-scale-2);\n height: var(--space-scale-2);\n }\n }\n }\n\n .tertiary-nav.sidebar-closed {\n .external-link,\n hr,\n #client-selector {\n display: none;\n visibility: hidden;\n }\n\n a span {\n ${visuallyHiddenCss}\n }\n }\n\n .icon {\n display: flex;\n align-items: center;\n width: var(--space-scale-3);\n height: var(--space-scale-3);\n color: var(--nav-item-color);\n }\n\n .nav-item {\n display: flex;\n font-size: var(--menu-font-size);\n line-height: var(--font-line-height-100);\n gap: var(--space-scale-1-5);\n border-radius: var(--border-radius-100);\n color: var(--nav-item-color);\n align-items: center;\n padding: var(--space-scale-1);\n width: 100%;\n text-decoration: none;\n }\n }\n\n nav.sidebar-closed {\n width: fit-content;\n\n :host {\n --nav-bar-width: fit-content;\n }\n }\n\n details {\n border-radius: var(--border-radius-100);\n\n summary {\n font-size: var(--menu-font-size);\n line-height: var(--font-line-height-100);\n position: relative;\n display: flex;\n align-items: baseline;\n\n &::marker {\n content: '';\n }\n }\n\n .chevron {\n margin-left: auto;\n margin-right: var(--space-scale-1);\n width: var(--space-scale-2);\n }\n\n &[open] .chevron svg {\n transform: rotate(180deg);\n }\n\n .dropdown-items {\n display: flex;\n flex-direction: column;\n }\n }\n\n details > summary {\n display: flex;\n gap: var(--space-scale-1-5);\n padding: var(--space-scale-1);\n border-radius: var(--border-radius-100);\n color: var(--nav-item-color);\n align-items: center;\n\n a {\n color: var(--nav-item-color);\n }\n\n &:hover,\n &:focus-visible {\n background-color: var(--color-surface-inverted-200);\n border-radius: var(--border-radius-100);\n text-decoration: none;\n }\n }\n\n .sidebar-closed details:has(.current-page) > summary {\n --nav-item-color: var(--color-primary-400);\n border-radius: var(--border-radius-100);\n background-color: var(--color-primary-100);\n color: var(--nav-item-color);\n }\n\n .sub-nav-item {\n width: 100%;\n display: flex;\n padding-left: 44px;\n padding-top: 10px;\n padding-bottom: 10px;\n color: var(--color-text-inverted-400);\n font-size: var(--menu-font-size);\n line-height: var(--font-line-height-100);\n text-decoration: none;\n\n button {\n color: var(--color-text-inverted-400);\n padding: 0;\n }\n }\n\n .sub-nav-item:hover,\n .sub-nav-item:focus-visible,\n .nav-item:hover,\n .nav-item:focus-visible {\n background-color: var(--color-surface-inverted-200);\n border-radius: var(--border-radius-100);\n text-decoration: none;\n color: var(--color-text-inverted-400);\n\n .icon {\n color: var(--color-text-inverted-400);\n }\n }\n\n .current-page {\n --nav-item-color: var(--color-primary-400);\n border-radius: var(--border-radius-100);\n background-color: var(--color-primary-100);\n color: var(--nav-item-color);\n }\n\n .link-page {\n display: flex;\n position: absolute;\n overflow: auto;\n flex-direction: column;\n gap: var(--space-scale-4);\n padding: var(--space-scale-5);\n left: var(--nav-bar-width);\n background-color: var(--color-surface-200);\n width: calc(100% - var(--nav-bar-width));\n height: 100%;\n transition-property: left, visibility;\n transition-duration: 700ms, 400ms;\n transition-timing-function: ease-out, ease-in;\n\n &.hidden {\n left: -100%;\n visibility: hidden;\n }\n }\n\n .link-page > .section {\n display: flex;\n flex-direction: column;\n gap: var(--space-scale-2);\n }\n\n .section > .links-container {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: var(--space-scale-3);\n overflow-y: auto;\n height: 100%;\n }\n\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n border: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n }\n\n .tooltip {\n position: absolute;\n display: flex;\n white-space: nowrap;\n align-items: center;\n gap: var(--space-scale-1);\n color: black;\n background-color: var(--color-surface-600);\n padding: var(--space-scale-1);\n z-index: 1000;\n border-radius: var(--border-radius-50);\n font-weight: var(--font-weight-medium);\n }\n\n .auth-container {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100vh;\n }\n\n .error-container {\n padding: 4rem 1rem 1rem;\n max-width: 1280px;\n margin-left: auto;\n margin-right: auto;\n }\n\n .error-stack {\n width: 100%;\n padding: 1rem;\n overflow-x: auto;\n }\n\n .fullscreen-iframe {\n width: 100%;\n height: 100vh;\n border: 0;\n }\n\n .nav-toggle-button {\n position: relative;\n }\n\n .nav-toggle-tooltip {\n left: 100%;\n top: 100%;\n visibility: hidden;\n opacity: 0;\n }\n\n .nav-toggle-button:hover .nav-toggle-tooltip {\n visibility: visible;\n opacity: 1;\n }\n\n #client-selector {\n display: flex;\n align-items: center;\n }\n\n #client-selector tt-combobox {\n --tt-combobox-color: var(--color-text-inverted-400);\n --tt-combobox-dropdown-color: var(--color-text-inverted-400);\n --tt-combobox-list-background-color: var(--color-surface-inverted-100);\n --tt-combobox-option-background-color-hover: var(--color-surface-inverted-200);\n --tt-combobox-placeholder-color: var(--color-text-inverted-300);\n --tt-combobox-background-color: var(--color-surface-inverted-100);\n --tt-combobox-hover-background-color: var(--color-surface-inverted-200);\n --tt-combobox-list-max-width: 80ch;\n --tt-combobox-min-width: 244px;\n --tt-combobox-max-width: 244px;\n --tt-combobox-option-selected-color: var(--color-text-inverted-500);\n }\n\n .single-client-name {\n height: 39px;\n padding: var(--space-scale-1); /* match tt-combobox height */\n font-size: var(--font-size-100);\n color: var(--color-text-inverted-400);\n }\n`;\n"]}
|
package/dist/web/Routes.js
CHANGED
package/dist/web/TtNavbar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @triptease/tt-navbar v0.0.
|
|
2
|
+
* @triptease/tt-navbar v0.0.44
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1642,6 +1642,7 @@ var styles2 = i`
|
|
|
1642
1642
|
}
|
|
1643
1643
|
|
|
1644
1644
|
nav {
|
|
1645
|
+
--menu-font-size: var(--font-size-200);
|
|
1645
1646
|
max-width: var(--nav-bar-width);
|
|
1646
1647
|
width: var(--nav-bar-width);
|
|
1647
1648
|
min-height: 100vh;
|
|
@@ -1711,7 +1712,7 @@ var styles2 = i`
|
|
|
1711
1712
|
width: 100%;
|
|
1712
1713
|
|
|
1713
1714
|
.external-link {
|
|
1714
|
-
font-size: var(--font-size
|
|
1715
|
+
font-size: var(--menu-font-size);
|
|
1715
1716
|
line-height: var(--font-line-height-100);
|
|
1716
1717
|
|
|
1717
1718
|
.icon {
|
|
@@ -1744,7 +1745,7 @@ var styles2 = i`
|
|
|
1744
1745
|
|
|
1745
1746
|
.nav-item {
|
|
1746
1747
|
display: flex;
|
|
1747
|
-
font-size: var(--font-size
|
|
1748
|
+
font-size: var(--menu-font-size);
|
|
1748
1749
|
line-height: var(--font-line-height-100);
|
|
1749
1750
|
gap: var(--space-scale-1-5);
|
|
1750
1751
|
border-radius: var(--border-radius-100);
|
|
@@ -1768,7 +1769,7 @@ var styles2 = i`
|
|
|
1768
1769
|
border-radius: var(--border-radius-100);
|
|
1769
1770
|
|
|
1770
1771
|
summary {
|
|
1771
|
-
font-size: var(--font-size
|
|
1772
|
+
font-size: var(--menu-font-size);
|
|
1772
1773
|
line-height: var(--font-line-height-100);
|
|
1773
1774
|
position: relative;
|
|
1774
1775
|
display: flex;
|
|
@@ -1829,7 +1830,7 @@ var styles2 = i`
|
|
|
1829
1830
|
padding-top: 10px;
|
|
1830
1831
|
padding-bottom: 10px;
|
|
1831
1832
|
color: var(--color-text-inverted-400);
|
|
1832
|
-
font-size: var(--font-size
|
|
1833
|
+
font-size: var(--menu-font-size);
|
|
1833
1834
|
line-height: var(--font-line-height-100);
|
|
1834
1835
|
text-decoration: none;
|
|
1835
1836
|
|