@vector-business-services/cristal-ds-web 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +101 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +181 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +41 -2
- package/dist/index.d.ts +41 -2
- package/dist/index.js +102 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2079,6 +2079,187 @@
|
|
|
2079
2079
|
background-color: var(--cr-color-fill-brand-base);
|
|
2080
2080
|
}
|
|
2081
2081
|
|
|
2082
|
+
/* src/components/PageHeader/PageHeader.css */
|
|
2083
|
+
.cr-page-header {
|
|
2084
|
+
container-type: inline-size;
|
|
2085
|
+
display: flex;
|
|
2086
|
+
flex-direction: column;
|
|
2087
|
+
background-color: var(--cr-color-fill-neutral-container);
|
|
2088
|
+
}
|
|
2089
|
+
.cr-page-header__title-group {
|
|
2090
|
+
display: grid;
|
|
2091
|
+
grid-template-areas: "text tools expand";
|
|
2092
|
+
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
2093
|
+
column-gap: var(--cr-spacing-spacing-3);
|
|
2094
|
+
align-items: center;
|
|
2095
|
+
box-sizing: border-box;
|
|
2096
|
+
min-height: 58px;
|
|
2097
|
+
padding: var(--cr-padding-padding-4) var(--cr-padding-padding-8);
|
|
2098
|
+
}
|
|
2099
|
+
.cr-page-header__title-text {
|
|
2100
|
+
display: flex;
|
|
2101
|
+
grid-area: text;
|
|
2102
|
+
align-items: center;
|
|
2103
|
+
gap: var(--cr-spacing-spacing-4);
|
|
2104
|
+
min-width: 0;
|
|
2105
|
+
}
|
|
2106
|
+
.cr-page-header__title-text > * {
|
|
2107
|
+
flex-shrink: 0;
|
|
2108
|
+
}
|
|
2109
|
+
.cr-page-header__title {
|
|
2110
|
+
flex-shrink: 1;
|
|
2111
|
+
min-width: 0;
|
|
2112
|
+
margin: 0;
|
|
2113
|
+
overflow: hidden;
|
|
2114
|
+
color: var(--cr-color-text-neutral-base);
|
|
2115
|
+
font-family: var(--cr-typography-heading-web-small-font-family);
|
|
2116
|
+
font-size: var(--cr-typography-heading-web-small-font-size);
|
|
2117
|
+
font-weight: var(--cr-typography-heading-web-small-font-weight);
|
|
2118
|
+
line-height: var(--cr-typography-heading-web-small-line-height);
|
|
2119
|
+
letter-spacing: var(--cr-typography-heading-web-small-letter-spacing);
|
|
2120
|
+
text-overflow: ellipsis;
|
|
2121
|
+
white-space: nowrap;
|
|
2122
|
+
}
|
|
2123
|
+
.cr-page-header__tools {
|
|
2124
|
+
display: flex;
|
|
2125
|
+
grid-area: tools;
|
|
2126
|
+
align-items: center;
|
|
2127
|
+
gap: var(--cr-spacing-spacing-3);
|
|
2128
|
+
}
|
|
2129
|
+
.cr-page-header__segment {
|
|
2130
|
+
display: flex;
|
|
2131
|
+
}
|
|
2132
|
+
.cr-page-header__actions {
|
|
2133
|
+
display: flex;
|
|
2134
|
+
align-items: center;
|
|
2135
|
+
gap: var(--cr-spacing-spacing-4);
|
|
2136
|
+
}
|
|
2137
|
+
.cr-page-header__expand {
|
|
2138
|
+
grid-area: expand;
|
|
2139
|
+
}
|
|
2140
|
+
.cr-page-header__tab-list {
|
|
2141
|
+
display: flex;
|
|
2142
|
+
margin: 0;
|
|
2143
|
+
padding: 0 0 0 var(--cr-padding-padding-8);
|
|
2144
|
+
overflow-x: auto;
|
|
2145
|
+
border-bottom: var(--cr-stroke-x-small) solid var(--cr-color-stroke-neutral-base);
|
|
2146
|
+
list-style: none;
|
|
2147
|
+
scrollbar-width: none;
|
|
2148
|
+
}
|
|
2149
|
+
.cr-page-header__tab-item {
|
|
2150
|
+
display: flex;
|
|
2151
|
+
flex-shrink: 0;
|
|
2152
|
+
}
|
|
2153
|
+
.cr-page-header__inkbar {
|
|
2154
|
+
display: none;
|
|
2155
|
+
}
|
|
2156
|
+
.cr-page-header__tab {
|
|
2157
|
+
display: inline-flex;
|
|
2158
|
+
align-items: center;
|
|
2159
|
+
justify-content: center;
|
|
2160
|
+
gap: var(--cr-spacing-spacing-3);
|
|
2161
|
+
box-sizing: border-box;
|
|
2162
|
+
height: 44px;
|
|
2163
|
+
padding: 0 var(--cr-padding-padding-7);
|
|
2164
|
+
border-bottom: 2px solid transparent;
|
|
2165
|
+
border-radius: var(--cr-radius-x-small) var(--cr-radius-x-small) 0 0;
|
|
2166
|
+
color: var(--cr-color-text-neutral-subtle);
|
|
2167
|
+
font-family: var(--cr-typography-body-small-14-regular-font-family);
|
|
2168
|
+
font-size: var(--cr-typography-body-small-14-regular-font-size);
|
|
2169
|
+
font-weight: var(--cr-typography-body-small-14-regular-font-weight);
|
|
2170
|
+
line-height: var(--cr-typography-body-small-14-regular-line-height);
|
|
2171
|
+
letter-spacing: var(--cr-typography-body-small-14-regular-letter-spacing);
|
|
2172
|
+
white-space: nowrap;
|
|
2173
|
+
text-decoration: none;
|
|
2174
|
+
cursor: pointer;
|
|
2175
|
+
outline: none;
|
|
2176
|
+
}
|
|
2177
|
+
.cr-page-header__tab:hover {
|
|
2178
|
+
color: var(--cr-color-text-neutral-base);
|
|
2179
|
+
}
|
|
2180
|
+
.cr-page-header__tab[aria-current=page] {
|
|
2181
|
+
border-bottom-color: var(--cr-color-stroke-brand-base);
|
|
2182
|
+
color: var(--cr-color-text-brand-base);
|
|
2183
|
+
font-weight: var(--cr-typography-body-small-14-semibold-font-weight);
|
|
2184
|
+
}
|
|
2185
|
+
.cr-page-header__tab:focus-visible {
|
|
2186
|
+
box-shadow: inset var(--cr-effects-focus-ring);
|
|
2187
|
+
}
|
|
2188
|
+
.cr-page-header__tab-item[aria-disabled=true] .cr-page-header__tab {
|
|
2189
|
+
color: var(--cr-color-text-disabled-base);
|
|
2190
|
+
cursor: not-allowed;
|
|
2191
|
+
}
|
|
2192
|
+
.cr-page-header__tab-icon {
|
|
2193
|
+
display: inline-flex;
|
|
2194
|
+
flex-shrink: 0;
|
|
2195
|
+
align-items: center;
|
|
2196
|
+
justify-content: center;
|
|
2197
|
+
width: 32px;
|
|
2198
|
+
height: 32px;
|
|
2199
|
+
border-radius: var(--cr-radius-full);
|
|
2200
|
+
color: var(--cr-color-icon-neutral-base);
|
|
2201
|
+
font-size: 16px;
|
|
2202
|
+
}
|
|
2203
|
+
.cr-page-header__tab[aria-current=page] .cr-page-header__tab-icon {
|
|
2204
|
+
color: var(--cr-color-icon-brand-base);
|
|
2205
|
+
}
|
|
2206
|
+
.cr-page-header--primary .cr-page-header__tab-icon {
|
|
2207
|
+
background-color: var(--cr-color-fill-neutral-subtlest);
|
|
2208
|
+
}
|
|
2209
|
+
.cr-page-header--primary .cr-page-header__tab:hover .cr-page-header__tab-icon {
|
|
2210
|
+
background-color: var(--cr-color-fill-neutral-subtler);
|
|
2211
|
+
}
|
|
2212
|
+
.cr-page-header--primary .cr-page-header__tab[aria-current=page] {
|
|
2213
|
+
background-color: var(--cr-color-fill-brand-subtlest);
|
|
2214
|
+
}
|
|
2215
|
+
.cr-page-header--primary .cr-page-header__tab[aria-current=page] .cr-page-header__tab-icon {
|
|
2216
|
+
background-color: var(--cr-color-fill-neutral-container);
|
|
2217
|
+
}
|
|
2218
|
+
.cr-page-header--secondary .cr-page-header__tab {
|
|
2219
|
+
padding: 0 var(--cr-padding-padding-8);
|
|
2220
|
+
}
|
|
2221
|
+
@container (max-width: 1359px) {
|
|
2222
|
+
.cr-page-header__title-group {
|
|
2223
|
+
padding-right: var(--cr-padding-padding-6);
|
|
2224
|
+
padding-left: var(--cr-padding-padding-6);
|
|
2225
|
+
}
|
|
2226
|
+
.cr-page-header__tab-list {
|
|
2227
|
+
padding-left: var(--cr-padding-padding-6);
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
@container (max-width: 767px) {
|
|
2231
|
+
.cr-page-header {
|
|
2232
|
+
gap: var(--cr-spacing-spacing-3);
|
|
2233
|
+
}
|
|
2234
|
+
.cr-page-header__title-group {
|
|
2235
|
+
grid-template-areas: "text expand";
|
|
2236
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
2237
|
+
column-gap: var(--cr-spacing-spacing-4);
|
|
2238
|
+
row-gap: var(--cr-spacing-spacing-5);
|
|
2239
|
+
min-height: 0;
|
|
2240
|
+
}
|
|
2241
|
+
.cr-page-header__title-group--tools {
|
|
2242
|
+
grid-template-areas: "text expand" "tools tools";
|
|
2243
|
+
}
|
|
2244
|
+
.cr-page-header__tools {
|
|
2245
|
+
gap: var(--cr-spacing-spacing-4);
|
|
2246
|
+
}
|
|
2247
|
+
.cr-page-header__segment {
|
|
2248
|
+
flex: 1;
|
|
2249
|
+
min-width: 0;
|
|
2250
|
+
}
|
|
2251
|
+
.cr-page-header__segment .cr-segment {
|
|
2252
|
+
width: 100%;
|
|
2253
|
+
}
|
|
2254
|
+
.cr-page-header__segment .cr-segment__item {
|
|
2255
|
+
flex: 1 1 0;
|
|
2256
|
+
}
|
|
2257
|
+
.cr-page-header__expand {
|
|
2258
|
+
width: 36px;
|
|
2259
|
+
height: 36px;
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2082
2263
|
/* src/components/Panel/Panel.css */
|
|
2083
2264
|
.cr-panel {
|
|
2084
2265
|
display: flex;
|