@lolmath/ui 0.0.0-20260726105326 → 0.0.0-20260726214151
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/index.css +173 -0
- package/dist/index.d.mts +95 -317
- package/dist/index.mjs +69 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -15
package/dist/index.css
CHANGED
|
@@ -2003,3 +2003,176 @@
|
|
|
2003
2003
|
}
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
|
+
@layer lol {
|
|
2007
|
+
._tree_1jyu5_2 {
|
|
2008
|
+
--lol-tree-indent: 1.125rem;
|
|
2009
|
+
|
|
2010
|
+
box-sizing: border-box;
|
|
2011
|
+
overflow: auto;
|
|
2012
|
+
outline: none;
|
|
2013
|
+
|
|
2014
|
+
font-family: var(--lol-font-family-spiegel);
|
|
2015
|
+
font-size: var(--lol-font-size-sm);
|
|
2016
|
+
line-height: var(--lol-line-height-sm);
|
|
2017
|
+
letter-spacing: var(--lol-letter-spacing-sm);
|
|
2018
|
+
font-weight: var(--lol-font-weight-sm);
|
|
2019
|
+
|
|
2020
|
+
&[data-focus-visible] {
|
|
2021
|
+
outline: 1px solid var(--lol-color-gold-400);
|
|
2022
|
+
outline-offset: 0.25rem;
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
._item_1jyu5_21 {
|
|
2027
|
+
display: flex;
|
|
2028
|
+
align-items: center;
|
|
2029
|
+
gap: 0.375rem;
|
|
2030
|
+
/* Rows are flattened siblings, so the nesting comes from the level react
|
|
2031
|
+
aria exposes on each row rather than from the DOM. */
|
|
2032
|
+
padding: 0.375rem 0.75rem 0.375rem
|
|
2033
|
+
calc(0.5rem + (var(--tree-item-level) - 1) * var(--lol-tree-indent));
|
|
2034
|
+
color: var(--lol-color-grey-100);
|
|
2035
|
+
outline: none;
|
|
2036
|
+
cursor: default;
|
|
2037
|
+
transition: color 0.3s ease;
|
|
2038
|
+
|
|
2039
|
+
/* Every decoration is a background layer so the row keeps a single box:
|
|
2040
|
+
the chevron and the checkbox already own the inline start. */
|
|
2041
|
+
--lol-tree-item-spine: none;
|
|
2042
|
+
--lol-tree-item-hover: none;
|
|
2043
|
+
--lol-tree-item-highlight: none;
|
|
2044
|
+
|
|
2045
|
+
background-image:
|
|
2046
|
+
var(--lol-tree-item-spine), var(--lol-tree-item-hover),
|
|
2047
|
+
var(--lol-tree-item-highlight);
|
|
2048
|
+
background-repeat: no-repeat;
|
|
2049
|
+
|
|
2050
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2051
|
+
transition: none;
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
/* Branches read as the client's collapsible section headers, leaves as
|
|
2055
|
+
list content. */
|
|
2056
|
+
&[data-has-child-items] {
|
|
2057
|
+
font-family: var(--lol-font-family-beaufort);
|
|
2058
|
+
font-size: 0.75rem;
|
|
2059
|
+
font-weight: 700;
|
|
2060
|
+
letter-spacing: 0.075em;
|
|
2061
|
+
line-height: 1rem;
|
|
2062
|
+
text-transform: uppercase;
|
|
2063
|
+
color: var(--lol-color-gold-300);
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
&[data-selection-mode]:not([data-disabled]),
|
|
2067
|
+
&[data-href] {
|
|
2068
|
+
cursor: pointer;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
&[data-hovered] {
|
|
2072
|
+
color: var(--lol-color-gold-100);
|
|
2073
|
+
--lol-tree-item-hover: linear-gradient(
|
|
2074
|
+
90deg,
|
|
2075
|
+
rgb(from var(--lol-color-gold-100) r g b / 0.08),
|
|
2076
|
+
transparent
|
|
2077
|
+
);
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
&[data-selected] {
|
|
2081
|
+
color: var(--lol-color-gold-100);
|
|
2082
|
+
/* Gold spine plus hextech wash on the selected row, matching the
|
|
2083
|
+
client's "current" row. */
|
|
2084
|
+
--lol-tree-item-spine: linear-gradient(
|
|
2085
|
+
90deg,
|
|
2086
|
+
var(--lol-color-gold-500) 0 0.25rem,
|
|
2087
|
+
transparent 0.25rem
|
|
2088
|
+
);
|
|
2089
|
+
--lol-tree-item-highlight: linear-gradient(
|
|
2090
|
+
90deg,
|
|
2091
|
+
rgb(from var(--lol-color-blue-400) r g b / 0.55),
|
|
2092
|
+
rgb(from var(--lol-color-blue-300) r g b / 0.1)
|
|
2093
|
+
);
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
&[data-disabled] {
|
|
2097
|
+
color: var(--lol-color-grey-150);
|
|
2098
|
+
cursor: default;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
&[data-focus-visible] {
|
|
2102
|
+
outline: 1px solid var(--lol-color-gold-400);
|
|
2103
|
+
outline-offset: -1px;
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
/* Top-level items are separated by the client's faint gold hairline. The
|
|
2108
|
+
sibling combinator keeps it off the first row, whichever level follows. */
|
|
2109
|
+
._item_1jyu5_21 + ._item_1jyu5_21[data-level="1"] {
|
|
2110
|
+
border-top: 1px solid var(--lol-color-gold-600);
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
._chevron_1jyu5_108 {
|
|
2114
|
+
flex: none;
|
|
2115
|
+
width: 0.5rem;
|
|
2116
|
+
height: 0.75rem;
|
|
2117
|
+
padding: 0;
|
|
2118
|
+
border: none;
|
|
2119
|
+
outline: none;
|
|
2120
|
+
cursor: pointer;
|
|
2121
|
+
|
|
2122
|
+
--lol-tree-chevron: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAoCAYAAADg+OpoAAABF0lEQVR42r3WMY7CQAxA0R8r2oobUMBB9hTLPegguQJUNHuJLbZb7RU4BvQIiZaKJiNFo0wy8dhYiiJNLD+N5RmlOv9sGYgtsAQajKJOICeg6p69BSQjCMAOOFpDMYIlJhOIGSbAqitSTeQWYQJcgQ3wzMhXY6F1f8CXJ9YfBlcsHm83TAbWXDBJrJtjMvLNFJOJAmaYZBQwwSRzaIoxmXEUijCZecDVmCiuLRVWKy/jgP0CHxmYakchHpm7ArhpoU/gH1hk5DbAUd6BaFqnQuZCamQOVITkQsVIDmSCTEFmyBhkiqQgc2QIckFiyA3pQ65IgNbeSIAuwLcn0m9dCxy8kHgYUlgxMjTeMWaCpP4Z2u59t0IAXn+VXtMKZ5riAAAAAElFTkSuQmCC");
|
|
2123
|
+
background: var(--lol-tree-chevron) no-repeat center / contain;
|
|
2124
|
+
transition: rotate 0.15s ease;
|
|
2125
|
+
|
|
2126
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2127
|
+
transition: none;
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
&[data-focus-visible] {
|
|
2131
|
+
outline: 1px solid var(--lol-color-gold-400);
|
|
2132
|
+
outline-offset: 0.125rem;
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
._chevronSpacer_1jyu5_131 {
|
|
2137
|
+
flex: none;
|
|
2138
|
+
width: 0.5rem;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
._item_1jyu5_21[data-expanded] ._chevron_1jyu5_108 {
|
|
2142
|
+
rotate: 90deg;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
._item_1jyu5_21[data-hovered] ._chevron_1jyu5_108,
|
|
2146
|
+
._chevron_1jyu5_108[data-hovered],
|
|
2147
|
+
._chevron_1jyu5_108[data-focus-visible] {
|
|
2148
|
+
--lol-tree-chevron: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAoCAYAAADg+OpoAAABGElEQVR42r3WO47CMBCA4T+jaCtuQLEcZE+x3IOOxxVIRcM1tlvtPTgBNFQIQUu1TSxFVpw44xlGiiI5o/nk0dhK9bie6IkVMAe2GEWdQA5A1T4bC0gGEIA10FhDMYIlJiOIGSbAZ1ukGsktwgS4AEvglZGvxkLrfoFvT6w7DK5YPN5umPSsuWCSWDfHZOCbKSYjBcwwyShggknm0BRjMuEoFGEy8YCrMVFcWyqsVl7GAfsBPjIw1Y5CPDN3BXDTQl/AHzDLyN0CjbwD0bROhUyF1MgUqAjJhYqRHMgEGYPMkCHIFElB5kgf5ILEkBvShVyRAC28kQCdgaMn0m3dDth7IfEwpLBipG+8Y8wESf0z7Nr33QoB+AdPzF+bRdCP8QAAAABJRU5ErkJggg==");
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
._item_1jyu5_21[data-disabled] ._chevron_1jyu5_108 {
|
|
2152
|
+
cursor: default;
|
|
2153
|
+
filter: grayscale(100%);
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
._label_1jyu5_151 {
|
|
2157
|
+
flex: 1;
|
|
2158
|
+
min-width: 0;
|
|
2159
|
+
overflow: hidden;
|
|
2160
|
+
white-space: nowrap;
|
|
2161
|
+
text-overflow: ellipsis;
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
._empty_1jyu5_159 {
|
|
2165
|
+
padding: 1rem 0.75rem;
|
|
2166
|
+
text-align: center;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
._loadMore_1jyu5_164 {
|
|
2170
|
+
display: flex;
|
|
2171
|
+
justify-content: center;
|
|
2172
|
+
padding: 0.5rem;
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
._spinner_1jyu5_170 {
|
|
2176
|
+
width: 1.5rem;
|
|
2177
|
+
}
|
|
2178
|
+
}
|