@wistia/ui 0.26.16-beta.ce031f76.c2a6fdb → 0.26.16-beta.fc736a41.a79eb9e
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.js +397 -402
- package/dist/index.js.map +1 -1
- package/package.json +9 -3
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.26.16-beta.
|
|
3
|
+
* @license @wistia/ui v0.26.16-beta.fc736a41.a79eb9e
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -62,7 +62,7 @@ const globalStyleAdjustmentsCss = css`
|
|
|
62
62
|
-webkit-text-size-adjust: none;
|
|
63
63
|
/* stylelint-disable-next-line plugin/use-baseline */
|
|
64
64
|
text-size-adjust: none;
|
|
65
|
-
|
|
65
|
+
height: -webkit-fill-available; /* 4 */
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
*,
|
|
@@ -80,8 +80,8 @@ const globalStyleAdjustmentsCss = css`
|
|
|
80
80
|
-moz-osx-font-smoothing: grayscale; /* 1 */
|
|
81
81
|
-webkit-font-smoothing: antialiased; /* 2 */
|
|
82
82
|
line-height: 1.5; /* 2 */
|
|
83
|
-
min-
|
|
84
|
-
min-
|
|
83
|
+
min-height: 100vh; /* 3 */
|
|
84
|
+
min-height: -webkit-fill-available; /* 3 */
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/* Remove default margin in favour of better control in authored CSS */
|
|
@@ -133,7 +133,7 @@ const globalStyleAdjustmentsCss = css`
|
|
|
133
133
|
/* Make images easier to work with */
|
|
134
134
|
img,
|
|
135
135
|
picture {
|
|
136
|
-
max-
|
|
136
|
+
max-width: 100%;
|
|
137
137
|
display: block;
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -316,11 +316,6 @@ const typographyTokens = css`
|
|
|
316
316
|
${"--wui-typography-family-default: intervariable, sans-serif;\n--wui-typography-family-brand: 'GT Walsheim', sans-serif;\n--wui-typography-family-mono: 'IBM Plex Mono', monospace;\n\n/* Brand Weights */\n--wui-typography-weight-brand-bold: 600;\n--wui-typography-weight-brand-black: 700;\n\n/* Heading Hero */\n--wui-typography-heading-hero-family: var(--wui-typography-family-brand);\n--wui-typography-heading-hero-line-height: 58px;\n--wui-typography-heading-hero-size: 48px;\n--wui-typography-heading-hero-weight: var(\n --wui-typography-weight-heading,\n var(--wui-typography-weight-brand-black)\n);\n\n/* Heading 1 */\n--wui-typography-heading-1-family: var(--wui-typography-family-brand);\n--wui-typography-heading-1-line-height: 44px;\n--wui-typography-heading-1-size: 36px;\n--wui-typography-heading-1-weight: var(\n --wui-typography-weight-heading,\n var(--wui-typography-weight-brand-black)\n);\n\n/* Heading 2 */\n--wui-typography-heading-2-family: var(--wui-typography-family-brand);\n--wui-typography-heading-2-line-height: 38px;\n--wui-typography-heading-2-size: 32px;\n--wui-typography-heading-2-weight: var(\n --wui-typography-weight-heading,\n var(--wui-typography-weight-brand-black)\n);\n\n/* Heading 3 */\n--wui-typography-heading-3-family: var(--wui-typography-family-brand);\n--wui-typography-heading-3-line-height: 30px;\n--wui-typography-heading-3-size: 24px;\n--wui-typography-heading-3-weight: var(\n --wui-typography-weight-heading,\n var(--wui-typography-weight-brand-bold)\n);\n\n/* Heading 4 */\n--wui-typography-heading-4-family: var(--wui-typography-family-brand);\n--wui-typography-heading-4-line-height: 24px;\n--wui-typography-heading-4-size: 18px;\n--wui-typography-heading-4-weight: var(\n --wui-typography-weight-heading,\n var(--wui-typography-weight-brand-bold)\n);\n\n/* Heading 5 */\n--wui-typography-heading-5-family: var(--wui-typography-family-brand);\n--wui-typography-heading-5-line-height: 22px;\n--wui-typography-heading-5-size: 16px;\n--wui-typography-heading-5-weight: var(\n --wui-typography-weight-heading,\n var(--wui-typography-weight-brand-bold)\n);\n\n/* Heading 6 */\n--wui-typography-heading-6-family: var(--wui-typography-family-brand);\n--wui-typography-heading-6-line-height: 18px;\n--wui-typography-heading-6-size: 14px;\n--wui-typography-heading-6-weight: var(\n --wui-typography-weight-heading,\n var(--wui-typography-weight-brand-bold)\n);\n\n/* Body Weight */\n--wui-typography-weight-body: 425;\n--wui-typography-weight-body-bold: 700;\n\n/* Body 1 */\n--wui-typography-body-1-family: var(--wui-typography-family-default);\n--wui-typography-body-1-line-height: 30px;\n--wui-typography-body-1-size: 20px;\n--wui-typography-body-1-weight: var(--wui-typography-weight-body);\n--wui-typography-body-1-paragraph-spacing: 16px;\n\n/* Body 2 */\n--wui-typography-body-2-family: var(--wui-typography-family-default);\n--wui-typography-body-2-line-height: 26px;\n--wui-typography-body-2-size: 16px;\n--wui-typography-body-2-weight: var(--wui-typography-weight-body);\n--wui-typography-body-2-paragraph-spacing: 12px;\n\n/* Body 3 */\n--wui-typography-body-3-family: var(--wui-typography-family-default);\n--wui-typography-body-3-line-height: 22px;\n--wui-typography-body-3-size: 14px;\n--wui-typography-body-3-weight: var(--wui-typography-weight-body);\n--wui-typography-body-3-paragraph-spacing: 8px;\n\n/* Body 4 */\n--wui-typography-body-4-family: var(--wui-typography-family-default);\n--wui-typography-body-4-line-height: 18px;\n--wui-typography-body-4-size: 12px;\n--wui-typography-body-4-weight: var(--wui-typography-weight-body);\n--wui-typography-body-4-paragraph-spacing: 8px;\n\n/* Label Weight */\n--wui-typography-weight-label: 475;\n--wui-typography-weight-label-bold: 600;\n\n/* Label 1 */\n--wui-typography-label-1-family: var(--wui-typography-family-default);\n--wui-typography-label-1-line-height: 24px;\n--wui-typography-label-1-size: 18px;\n--wui-typography-label-1-weight: var(--wui-typography-weight-label);\n\n/* Label 2 */\n--wui-typography-label-2-family: var(--wui-typography-family-default);\n--wui-typography-label-2-line-height: 18px;\n--wui-typography-label-2-size: 16px;\n--wui-typography-label-2-weight: var(--wui-typography-weight-label);\n\n/* Label 3 */\n--wui-typography-label-3-family: var(--wui-typography-family-default);\n--wui-typography-label-3-line-height: 16px;\n--wui-typography-label-3-size: 14px;\n--wui-typography-label-3-weight: var(--wui-typography-weight-label);\n\n/* Label 4 */\n--wui-typography-label-4-family: var(--wui-typography-family-default);\n--wui-typography-label-4-line-height: 14px;\n--wui-typography-label-4-size: 12px;\n--wui-typography-label-4-weight: var(--wui-typography-weight-label);\n"}
|
|
317
317
|
`;
|
|
318
318
|
//#endregion
|
|
319
|
-
//#region src/css/designTokens/zIndex.tsx
|
|
320
|
-
const zIndexTokens = css`
|
|
321
|
-
${"--wui-zindex-under: -1;\n--wui-zindex-backdrop: 500;\n--wui-zindex-menu: 500;\n--wui-zindex-modal: 500;\n--wui-zindex-popover: 500;\n--wui-zindex-select: 500;\n--wui-zindex-tooltip: 500;\n"}
|
|
322
|
-
`;
|
|
323
|
-
//#endregion
|
|
324
319
|
//#region src/css/designTokens/elevation.tsx
|
|
325
320
|
const elevationTokens = css`
|
|
326
321
|
${"--wui-elevation-01: 0px 4px 8px 0px var(--wui-color-drop-shadow);\n--wui-elevation-02: 0px 4px 24px 0px var(--wui-color-drop-shadow);\n"}
|
|
@@ -335,6 +330,7 @@ const motionTokens = css`
|
|
|
335
330
|
const GlobalStyle = createGlobalStyle`
|
|
336
331
|
${globalStyleAdjustmentsCss}
|
|
337
332
|
${css`
|
|
333
|
+
${"/* -------------------------------------------\n * Autogenerated by ⛋ Terrazzo. DO NOT EDIT!\n * ------------------------------------------- */\n\n:root,\n[data-wui-theme='true'] {\n --wui-zindex-under: -1;\n --wui-zindex-backdrop: 500;\n --wui-zindex-menu: 500;\n --wui-zindex-modal: 500;\n --wui-zindex-popover: 500;\n --wui-zindex-select: 500;\n --wui-zindex-tooltip: 500;\n}\n"}
|
|
338
334
|
:root,
|
|
339
335
|
[data-wui-theme='true'] {
|
|
340
336
|
${borderRadiusTokens}
|
|
@@ -350,7 +346,6 @@ const GlobalStyle = createGlobalStyle`
|
|
|
350
346
|
${elevationTokens}
|
|
351
347
|
${spacingTokens}
|
|
352
348
|
${typographyTokens}
|
|
353
|
-
${zIndexTokens}
|
|
354
349
|
${motionTokens}
|
|
355
350
|
}
|
|
356
351
|
`}
|
|
@@ -371,11 +366,11 @@ const GlobalStyle = createGlobalStyle`
|
|
|
371
366
|
cursor: inherit;
|
|
372
367
|
display: block;
|
|
373
368
|
position: absolute;
|
|
374
|
-
|
|
375
|
-
|
|
369
|
+
top: 0;
|
|
370
|
+
left: 0;
|
|
376
371
|
z-index: 0;
|
|
377
|
-
|
|
378
|
-
|
|
372
|
+
width: 100%;
|
|
373
|
+
height: 100%;
|
|
379
374
|
}
|
|
380
375
|
`}
|
|
381
376
|
`;
|
|
@@ -1859,7 +1854,7 @@ const ellipsisStyle = css`
|
|
|
1859
1854
|
*/
|
|
1860
1855
|
@supports (background: - webkit-named-image(i)) {
|
|
1861
1856
|
& > div > div:has(p) {
|
|
1862
|
-
margin-
|
|
1857
|
+
margin-top: 16px;
|
|
1863
1858
|
}
|
|
1864
1859
|
|
|
1865
1860
|
& > div > div > p {
|
|
@@ -1926,40 +1921,40 @@ const MessageWrapper = styled.div`
|
|
|
1926
1921
|
flex-grow: 1;
|
|
1927
1922
|
flex-shrink: 1;
|
|
1928
1923
|
flex-basis: auto;
|
|
1929
|
-
margin-
|
|
1924
|
+
margin-right: var(--wui-space-03);
|
|
1930
1925
|
|
|
1931
1926
|
svg {
|
|
1932
1927
|
align-self: center;
|
|
1933
|
-
min-
|
|
1934
|
-
margin-
|
|
1928
|
+
min-width: 16px;
|
|
1929
|
+
margin-right: var(--wui-space-02); /* space between icon & message */
|
|
1935
1930
|
}
|
|
1936
1931
|
`;
|
|
1937
1932
|
const ActionWrapper = styled.div`
|
|
1938
1933
|
flex-grow: 0;
|
|
1939
1934
|
flex-shrink: 0;
|
|
1940
1935
|
flex-basis: auto;
|
|
1941
|
-
margin-
|
|
1936
|
+
margin-right: var(--wui-space-03);
|
|
1942
1937
|
`;
|
|
1943
1938
|
const StyledToast = styled.div`
|
|
1944
1939
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
1945
1940
|
display: flex;
|
|
1946
1941
|
align-items: center;
|
|
1947
1942
|
justify-content: space-between;
|
|
1948
|
-
min-
|
|
1949
|
-
|
|
1943
|
+
min-height: 56px;
|
|
1944
|
+
width: 356px;
|
|
1950
1945
|
border-radius: var(--wui-border-radius-01);
|
|
1951
1946
|
background-color: var(--wui-color-bg-surface);
|
|
1952
1947
|
border: 1px solid var(--wui-color-border);
|
|
1953
1948
|
color: var(--wui-color-text);
|
|
1954
|
-
padding-
|
|
1955
|
-
padding-
|
|
1956
|
-
padding-
|
|
1957
|
-
padding-
|
|
1949
|
+
padding-top: var(--wui-space-02);
|
|
1950
|
+
padding-right: 0; /* padding here is on the left/right slots */
|
|
1951
|
+
padding-bottom: var(--wui-space-02);
|
|
1952
|
+
padding-left: var(--wui-space-03);
|
|
1958
1953
|
box-shadow: var(--wui-elevation-02);
|
|
1959
1954
|
|
|
1960
1955
|
svg {
|
|
1961
|
-
|
|
1962
|
-
|
|
1956
|
+
height: 16px;
|
|
1957
|
+
width: 16px;
|
|
1963
1958
|
flex: 0 0 16px;
|
|
1964
1959
|
}
|
|
1965
1960
|
`;
|
|
@@ -2018,7 +2013,7 @@ const buttonResetCss = css`
|
|
|
2018
2013
|
justify-content: center;
|
|
2019
2014
|
line-height: 1;
|
|
2020
2015
|
padding: 0;
|
|
2021
|
-
text-align:
|
|
2016
|
+
text-align: left;
|
|
2022
2017
|
text-decoration: none;
|
|
2023
2018
|
vertical-align: middle;
|
|
2024
2019
|
|
|
@@ -2153,8 +2148,8 @@ const buttonBaseStyles = css`
|
|
|
2153
2148
|
&& {
|
|
2154
2149
|
& svg {
|
|
2155
2150
|
color: var(--button-color-icon);
|
|
2156
|
-
|
|
2157
|
-
|
|
2151
|
+
width: var(--button-icon-size);
|
|
2152
|
+
height: var(--button-icon-size);
|
|
2158
2153
|
flex: 0 0 var(--button-icon-size);
|
|
2159
2154
|
}
|
|
2160
2155
|
}
|
|
@@ -5478,7 +5473,7 @@ const iconInlineStyle = css`
|
|
|
5478
5473
|
--wui-icon-inline-offset: 0.05em;
|
|
5479
5474
|
--wui-icon-vertical-align: none;
|
|
5480
5475
|
|
|
5481
|
-
|
|
5476
|
+
top: var(--wui-icon-inline-offset);
|
|
5482
5477
|
position: relative;
|
|
5483
5478
|
}
|
|
5484
5479
|
`;
|
|
@@ -5488,8 +5483,8 @@ const StyledIcon = styled.svg`
|
|
|
5488
5483
|
--wui-icon-vertical-align: middle;
|
|
5489
5484
|
|
|
5490
5485
|
flex: 0 0 var(--wui-icon-size);
|
|
5491
|
-
|
|
5492
|
-
|
|
5486
|
+
height: var(--wui-icon-size);
|
|
5487
|
+
width: var(--wui-icon-size);
|
|
5493
5488
|
`;
|
|
5494
5489
|
/**
|
|
5495
5490
|
* A component that renders any of our available icons.
|
|
@@ -5568,8 +5563,8 @@ const StyledLink = styled.a`
|
|
|
5568
5563
|
|
|
5569
5564
|
&& {
|
|
5570
5565
|
& svg {
|
|
5571
|
-
|
|
5572
|
-
|
|
5566
|
+
width: 14px;
|
|
5567
|
+
height: 14px;
|
|
5573
5568
|
flex: 0 0 14px;
|
|
5574
5569
|
}
|
|
5575
5570
|
}
|
|
@@ -5655,7 +5650,7 @@ const StyledButton$2 = styled.button`
|
|
|
5655
5650
|
${({ $size }) => buttonSizeStyles[$size]}
|
|
5656
5651
|
${({ $variant }) => buttonVariantsStyles[$variant]}
|
|
5657
5652
|
${({ $unstyled }) => !$unstyled && buttonBaseStyles}
|
|
5658
|
-
|
|
5653
|
+
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "fit-content"};
|
|
5659
5654
|
text-align: center;
|
|
5660
5655
|
`;
|
|
5661
5656
|
const StyledButtonContent = styled.div`
|
|
@@ -5758,8 +5753,8 @@ const StyledActionButton = styled(Button)`
|
|
|
5758
5753
|
grid-template-columns: 24px 1fr;
|
|
5759
5754
|
grid-template-rows: 24px auto;
|
|
5760
5755
|
gap: var(--wui-space-02);
|
|
5761
|
-
|
|
5762
|
-
min-
|
|
5756
|
+
width: fit-content;
|
|
5757
|
+
min-width: 96px;
|
|
5763
5758
|
padding: var(--wui-space-03);
|
|
5764
5759
|
background: var(--wui-color-bg-surface-secondary);
|
|
5765
5760
|
row-gap: var(--wui-space-02);
|
|
@@ -5807,14 +5802,14 @@ const StyledActionButton = styled(Button)`
|
|
|
5807
5802
|
const StyledMainIcon = styled.div`
|
|
5808
5803
|
grid-column: 1;
|
|
5809
5804
|
grid-row: 1;
|
|
5810
|
-
|
|
5811
|
-
|
|
5805
|
+
width: 24px;
|
|
5806
|
+
height: 24px;
|
|
5812
5807
|
transition: color var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
5813
5808
|
|
|
5814
5809
|
&& {
|
|
5815
5810
|
& svg {
|
|
5816
|
-
|
|
5817
|
-
|
|
5811
|
+
width: 24px;
|
|
5812
|
+
height: 24px;
|
|
5818
5813
|
flex: 0 0 24px;
|
|
5819
5814
|
}
|
|
5820
5815
|
}
|
|
@@ -5822,7 +5817,7 @@ const StyledMainIcon = styled.div`
|
|
|
5822
5817
|
const StyledSecondaryIcon = styled.div`
|
|
5823
5818
|
grid-column: 2;
|
|
5824
5819
|
grid-row: 1;
|
|
5825
|
-
|
|
5820
|
+
width: 100%;
|
|
5826
5821
|
display: flex;
|
|
5827
5822
|
justify-content: flex-end;
|
|
5828
5823
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-out);
|
|
@@ -5842,8 +5837,8 @@ const StyledSecondaryIcon = styled.div`
|
|
|
5842
5837
|
|
|
5843
5838
|
&& {
|
|
5844
5839
|
& svg {
|
|
5845
|
-
|
|
5846
|
-
|
|
5840
|
+
width: 24px;
|
|
5841
|
+
height: 24px;
|
|
5847
5842
|
flex: 0 0 24px;
|
|
5848
5843
|
}
|
|
5849
5844
|
}
|
|
@@ -5856,7 +5851,7 @@ const StyledLabel$3 = styled.span`
|
|
|
5856
5851
|
color: ${({ $disabled }) => $disabled ? "var(--wui-color-text-disabled)" : "var(--wui-color-text)"};
|
|
5857
5852
|
grid-column: 1 / -1;
|
|
5858
5853
|
grid-row: 2;
|
|
5859
|
-
text-align:
|
|
5854
|
+
text-align: left;
|
|
5860
5855
|
`;
|
|
5861
5856
|
/**
|
|
5862
5857
|
* Action Button component is used as one of a group of main actions on the page. It composes [Button](/components/Button).
|
|
@@ -6004,8 +5999,8 @@ const Initial = ({ initial }) => /* @__PURE__ */ jsxs("svg", {
|
|
|
6004
5999
|
});
|
|
6005
6000
|
const AvatarWrapper = styled.div`
|
|
6006
6001
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6007
|
-
|
|
6008
|
-
|
|
6002
|
+
width: ${({ $heightAndWidth }) => $heightAndWidth}px;
|
|
6003
|
+
height: ${({ $heightAndWidth }) => $heightAndWidth}px;
|
|
6009
6004
|
place-content: center;
|
|
6010
6005
|
overflow: hidden;
|
|
6011
6006
|
background-color: var(--wui-color-bg-fill);
|
|
@@ -6108,16 +6103,16 @@ const StyledBadge = styled.div`
|
|
|
6108
6103
|
justify-content: center;
|
|
6109
6104
|
line-height: var(--wui-typography-label-3-line-height);
|
|
6110
6105
|
padding: var(--wui-space-01) var(--wui-space-02);
|
|
6111
|
-
|
|
6112
|
-
|
|
6106
|
+
width: fit-content;
|
|
6107
|
+
height: fit-content;
|
|
6113
6108
|
flex-grow: 0;
|
|
6114
6109
|
|
|
6115
6110
|
/* Icon component size and color */
|
|
6116
6111
|
&& {
|
|
6117
6112
|
& svg {
|
|
6118
6113
|
color: var(--wui-color-icon);
|
|
6119
|
-
|
|
6120
|
-
|
|
6114
|
+
height: 12px;
|
|
6115
|
+
width: 12px;
|
|
6121
6116
|
flex: 0 0 12px;
|
|
6122
6117
|
}
|
|
6123
6118
|
}
|
|
@@ -6206,8 +6201,8 @@ const StyledBoxComponent = styled.div`
|
|
|
6206
6201
|
flex-direction: ${({ $flexDirection }) => $flexDirection};
|
|
6207
6202
|
flex-wrap: ${({ $wrapItems }) => $wrapItems ? "wrap" : "nowrap"};
|
|
6208
6203
|
justify-content: ${({ $justifyContent }) => $justifyContent};
|
|
6209
|
-
|
|
6210
|
-
|
|
6204
|
+
height: ${({ $height }) => $height ?? null};
|
|
6205
|
+
width: ${({ $width }) => $width ?? null};
|
|
6211
6206
|
${({ $fillBox: fill }) => getFillStyle(fill)};
|
|
6212
6207
|
${({ $fillViewport }) => getFillViewportStyle($fillViewport)};
|
|
6213
6208
|
${({ $flexMode }) => getFlexStyle($flexMode)};
|
|
@@ -6573,7 +6568,7 @@ const StyledText = styled.div`
|
|
|
6573
6568
|
display: block;
|
|
6574
6569
|
|
|
6575
6570
|
+ p {
|
|
6576
|
-
margin-
|
|
6571
|
+
margin-top: var(--paragraph-spacing, var(--wui-space-04));
|
|
6577
6572
|
}
|
|
6578
6573
|
`}
|
|
6579
6574
|
`;
|
|
@@ -6617,7 +6612,7 @@ const ButtonGroupComponent = styled.div`
|
|
|
6617
6612
|
gap: var(--wui-space-02);
|
|
6618
6613
|
align-items: center;
|
|
6619
6614
|
justify-content: ${({ $align }) => getAlignment($align)};
|
|
6620
|
-
|
|
6615
|
+
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
6621
6616
|
|
|
6622
6617
|
${mq.smAndUp} {
|
|
6623
6618
|
flex-direction: row;
|
|
@@ -6625,7 +6620,7 @@ const ButtonGroupComponent = styled.div`
|
|
|
6625
6620
|
|
|
6626
6621
|
&:not([data-wistia-ui-icon-button]) {
|
|
6627
6622
|
${mq.smAndDown} {
|
|
6628
|
-
|
|
6623
|
+
width: 100%;
|
|
6629
6624
|
}
|
|
6630
6625
|
}
|
|
6631
6626
|
|
|
@@ -6636,8 +6631,8 @@ const ButtonGroupComponent = styled.div`
|
|
|
6636
6631
|
}
|
|
6637
6632
|
|
|
6638
6633
|
[data-wistia-ui-icon-button] {
|
|
6639
|
-
|
|
6640
|
-
|
|
6634
|
+
height: var(--icon-button-size-${$buttonSize});
|
|
6635
|
+
width: var(--icon-button-size-${$buttonSize});
|
|
6641
6636
|
}
|
|
6642
6637
|
`}
|
|
6643
6638
|
`;
|
|
@@ -6667,8 +6662,8 @@ const StyledButton$1 = styled(Button)`
|
|
|
6667
6662
|
--icon-button-size-xl: 48px;
|
|
6668
6663
|
|
|
6669
6664
|
border-radius: 50%;
|
|
6670
|
-
|
|
6671
|
-
|
|
6665
|
+
height: ${({ size }) => `var(--icon-button-size-${size})`};
|
|
6666
|
+
width: ${({ size }) => `var(--icon-button-size-${size})`};
|
|
6672
6667
|
display: flex;
|
|
6673
6668
|
justify-content: center;
|
|
6674
6669
|
align-items: center;
|
|
@@ -6699,25 +6694,25 @@ const StyledBanner = styled.div`
|
|
|
6699
6694
|
align-items: center;
|
|
6700
6695
|
padding: var(--wui-space-04);
|
|
6701
6696
|
gap: var(--wui-space-02) var(--wui-space-03);
|
|
6702
|
-
|
|
6697
|
+
width: 100%;
|
|
6703
6698
|
|
|
6704
6699
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6705
6700
|
`;
|
|
6706
6701
|
const StyledIconContainer$1 = styled(Box)`
|
|
6707
|
-
max-
|
|
6702
|
+
max-height: 44px;
|
|
6708
6703
|
`;
|
|
6709
6704
|
const StyledTextContainer = styled(Box)`
|
|
6710
6705
|
flex: 1 1 340px;
|
|
6711
|
-
min-
|
|
6712
|
-
max-
|
|
6706
|
+
min-width: 0;
|
|
6707
|
+
max-width: fit-content;
|
|
6713
6708
|
flex-wrap: wrap;
|
|
6714
6709
|
`;
|
|
6715
6710
|
const StyledButtonGroup = styled(ButtonGroup)`
|
|
6716
6711
|
flex-shrink: 0;
|
|
6717
|
-
|
|
6718
|
-
max-
|
|
6712
|
+
width: auto;
|
|
6713
|
+
max-width: 100%;
|
|
6719
6714
|
flex-wrap: wrap;
|
|
6720
|
-
min-
|
|
6715
|
+
min-width: 0;
|
|
6721
6716
|
`;
|
|
6722
6717
|
/**
|
|
6723
6718
|
* The `Banner` component is for displaying contextual information to the user such as alerts or feature announcements.
|
|
@@ -6828,7 +6823,7 @@ const BreadcrumbContent = styled.span`
|
|
|
6828
6823
|
white-space: nowrap;
|
|
6829
6824
|
display: block;
|
|
6830
6825
|
text-overflow: ellipsis;
|
|
6831
|
-
text-align:
|
|
6826
|
+
text-align: left;
|
|
6832
6827
|
flex: 0;
|
|
6833
6828
|
`;
|
|
6834
6829
|
const Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
@@ -6861,8 +6856,8 @@ const StyledCard$1 = styled(Box)`
|
|
|
6861
6856
|
outline-offset: -2px;
|
|
6862
6857
|
border-radius: ${({ $borderRadius }) => `var(--wui-${$borderRadius})`};
|
|
6863
6858
|
display: flex;
|
|
6864
|
-
|
|
6865
|
-
|
|
6859
|
+
height: ${({ $height }) => $height};
|
|
6860
|
+
width: ${({ $width }) => $width};
|
|
6866
6861
|
`;
|
|
6867
6862
|
const prominenceMap = {
|
|
6868
6863
|
primary: {
|
|
@@ -6900,9 +6895,9 @@ Card.displayName = "Card_UI";
|
|
|
6900
6895
|
//#region src/components/Center/Center.tsx
|
|
6901
6896
|
const StyledCenter = styled.div`
|
|
6902
6897
|
box-sizing: border-box;
|
|
6903
|
-
margin-
|
|
6904
|
-
margin-
|
|
6905
|
-
max-
|
|
6898
|
+
margin-left: auto;
|
|
6899
|
+
margin-right: auto;
|
|
6900
|
+
max-width: ${({ $maxWidth }) => $maxWidth};
|
|
6906
6901
|
${({ $gutterWidth }) => $gutterWidth && `padding: 0 var(--wui-${$gutterWidth});`}
|
|
6907
6902
|
${({ $intrinsic }) => $intrinsic && `
|
|
6908
6903
|
display: flex;
|
|
@@ -6982,7 +6977,7 @@ const StyledFormControlLabel = styled.label`
|
|
|
6982
6977
|
display: flex;
|
|
6983
6978
|
align-items: flex-start;
|
|
6984
6979
|
gap: var(--wui-space-02);
|
|
6985
|
-
|
|
6980
|
+
width: 100%;
|
|
6986
6981
|
color: var(--wui-color-tex);
|
|
6987
6982
|
font-size: var(--wui-typography-label-3-size);
|
|
6988
6983
|
font-weight: var(--wui-typography-label-3-weight);
|
|
@@ -7049,7 +7044,7 @@ const StyledLegend = styled.legend`
|
|
|
7049
7044
|
display: flex;
|
|
7050
7045
|
flex-direction: column;
|
|
7051
7046
|
gap: var(--wui-space-01);
|
|
7052
|
-
margin-
|
|
7047
|
+
margin-bottom: var(--wui-space-02);
|
|
7053
7048
|
`;
|
|
7054
7049
|
/**
|
|
7055
7050
|
* For grouping like form elements together.
|
|
@@ -7094,7 +7089,7 @@ const serializeFormData = (formData) => {
|
|
|
7094
7089
|
const StyledForm = styled.form`
|
|
7095
7090
|
--form-default-width: 690px;
|
|
7096
7091
|
|
|
7097
|
-
max-
|
|
7092
|
+
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
7098
7093
|
`;
|
|
7099
7094
|
const FormContext = createContext({
|
|
7100
7095
|
values: {},
|
|
@@ -7288,16 +7283,16 @@ const StyledCheckboxInput = styled.div`
|
|
|
7288
7283
|
outline-style: solid;
|
|
7289
7284
|
outline-offset: 1px;
|
|
7290
7285
|
transition: all var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
7291
|
-
margin-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
min-
|
|
7295
|
-
min-
|
|
7286
|
+
margin-top: calc(calc(1lh - var(--wui-checkbox-size)) / 2);
|
|
7287
|
+
width: var(--wui-checkbox-size);
|
|
7288
|
+
height: var(--wui-checkbox-size);
|
|
7289
|
+
min-width: var(--wui-checkbox-size);
|
|
7290
|
+
min-height: var(--wui-checkbox-size);
|
|
7296
7291
|
|
|
7297
7292
|
/* checkbox icon */
|
|
7298
7293
|
svg {
|
|
7299
|
-
|
|
7300
|
-
|
|
7294
|
+
width: var(--wui-checkbox-icon-size);
|
|
7295
|
+
height: var(--wui-checkbox-icon-size);
|
|
7301
7296
|
}
|
|
7302
7297
|
`;
|
|
7303
7298
|
const StyledHiddenCheckboxInput = styled.input`
|
|
@@ -7896,7 +7891,7 @@ const requiredStyle = css`
|
|
|
7896
7891
|
&::after {
|
|
7897
7892
|
color: var(--wui-color-text-error);
|
|
7898
7893
|
display: inline;
|
|
7899
|
-
padding-
|
|
7894
|
+
padding-left: var(--wui-space-01);
|
|
7900
7895
|
content: '*';
|
|
7901
7896
|
}
|
|
7902
7897
|
`;
|
|
@@ -7905,7 +7900,7 @@ const disabledStyle = css`
|
|
|
7905
7900
|
`;
|
|
7906
7901
|
const StyledLabel$2 = styled.label`
|
|
7907
7902
|
display: block;
|
|
7908
|
-
|
|
7903
|
+
width: 100%;
|
|
7909
7904
|
color: var(--wui-color-text);
|
|
7910
7905
|
font-family: var(--wui-typography-heading-6-family);
|
|
7911
7906
|
line-height: var(--wui-typography-heading-6-line-height);
|
|
@@ -7949,7 +7944,7 @@ const Container$9 = styled.div`
|
|
|
7949
7944
|
grid-template-columns: minmax(0, 1fr);
|
|
7950
7945
|
`;
|
|
7951
7946
|
const LabelContainer$1 = styled.div`
|
|
7952
|
-
padding-
|
|
7947
|
+
padding-top: var(--wui-space-01);
|
|
7953
7948
|
`;
|
|
7954
7949
|
const ItemsContainer$1 = styled(RadioGroup$1)`
|
|
7955
7950
|
display: flex;
|
|
@@ -7979,7 +7974,7 @@ ColorGrid.displayName = "ColorGrid_UI";
|
|
|
7979
7974
|
//#region src/components/ColorPicker/ColorSwatch.tsx
|
|
7980
7975
|
const ColorSwatchDiv = styled.div`
|
|
7981
7976
|
aspect-ratio: 1;
|
|
7982
|
-
|
|
7977
|
+
width: ${({ $diameterPx }) => `${$diameterPx}px`};
|
|
7983
7978
|
border-radius: var(--wui-border-radius-rounded);
|
|
7984
7979
|
box-shadow: inset 0 0 1px 0 var(--wui-color-border-secondary);
|
|
7985
7980
|
display: flex;
|
|
@@ -7996,10 +7991,10 @@ const ColorSwatchDiv = styled.div`
|
|
|
7996
7991
|
`;
|
|
7997
7992
|
const DerivativeHalfCircle = styled.div`
|
|
7998
7993
|
position: absolute;
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
7994
|
+
right: 0;
|
|
7995
|
+
top: 0;
|
|
7996
|
+
width: 50%;
|
|
7997
|
+
height: 100%;
|
|
8003
7998
|
background-color: ${({ $color }) => $color};
|
|
8004
7999
|
border-radius: 0 var(--wui-border-radius-rounded) var(--wui-border-radius-rounded) 0;
|
|
8005
8000
|
`;
|
|
@@ -8087,7 +8082,7 @@ const StyledPopup$5 = styled(Tooltip$1.Popup)`
|
|
|
8087
8082
|
animation-duration: var(--tooltip-animation-duration);
|
|
8088
8083
|
animation-timing-function: var(--tooltip-animation-timing-function);
|
|
8089
8084
|
will-change: transform, opacity;
|
|
8090
|
-
max-
|
|
8085
|
+
max-width: 30em;
|
|
8091
8086
|
|
|
8092
8087
|
&[data-closed] {
|
|
8093
8088
|
animation-name: ${hide};
|
|
@@ -8113,22 +8108,22 @@ const StyledPopup$5 = styled(Tooltip$1.Popup)`
|
|
|
8113
8108
|
`;
|
|
8114
8109
|
const arrowEdgeCss = css`
|
|
8115
8110
|
&[data-side='top'] {
|
|
8116
|
-
|
|
8111
|
+
bottom: 0;
|
|
8117
8112
|
transform: translateY(calc(100% - 2px));
|
|
8118
8113
|
}
|
|
8119
8114
|
|
|
8120
8115
|
&[data-side='bottom'] {
|
|
8121
|
-
|
|
8116
|
+
top: 0;
|
|
8122
8117
|
transform: translateY(calc(-100% + 2px)) rotate(180deg);
|
|
8123
8118
|
}
|
|
8124
8119
|
|
|
8125
8120
|
&[data-side='left'] {
|
|
8126
|
-
|
|
8121
|
+
right: 0;
|
|
8127
8122
|
transform: translateX(calc(100% - 4px)) rotate(-90deg);
|
|
8128
8123
|
}
|
|
8129
8124
|
|
|
8130
8125
|
&[data-side='right'] {
|
|
8131
|
-
|
|
8126
|
+
left: 0;
|
|
8132
8127
|
transform: translateX(calc(-100% + 4px)) rotate(90deg);
|
|
8133
8128
|
}
|
|
8134
8129
|
`;
|
|
@@ -8249,7 +8244,7 @@ const ItemsContainer = styled.div`
|
|
|
8249
8244
|
flex-direction: column;
|
|
8250
8245
|
`;
|
|
8251
8246
|
const LabelContainer = styled.div`
|
|
8252
|
-
padding-
|
|
8247
|
+
padding-top: var(--wui-space-01);
|
|
8253
8248
|
`;
|
|
8254
8249
|
/**
|
|
8255
8250
|
* Groups `ColorListOption` items under a labeled heading within a `ColorList`.
|
|
@@ -8386,7 +8381,7 @@ const StyledPopup$4 = styled(Popover$1.Popup)`
|
|
|
8386
8381
|
outline: none;
|
|
8387
8382
|
display: flex;
|
|
8388
8383
|
flex-direction: column;
|
|
8389
|
-
max-
|
|
8384
|
+
max-width: ${278}px;
|
|
8390
8385
|
overflow: hidden;
|
|
8391
8386
|
`;
|
|
8392
8387
|
/**
|
|
@@ -8478,7 +8473,7 @@ const DefaultTriggerContentContainer = styled.div`
|
|
|
8478
8473
|
display: flex;
|
|
8479
8474
|
flex-direction: row;
|
|
8480
8475
|
gap: var(--wui-space-02);
|
|
8481
|
-
padding-
|
|
8476
|
+
padding-right: var(--wui-space-02);
|
|
8482
8477
|
`;
|
|
8483
8478
|
const DefaultTriggerContent = () => {
|
|
8484
8479
|
return /* @__PURE__ */ jsxs(DefaultTriggerContentContainer, { children: [/* @__PURE__ */ jsx(ValueSwatch, {}), /* @__PURE__ */ jsx(ValueNameOrHexCode, {})] });
|
|
@@ -8580,10 +8575,10 @@ const StyledSwitchWrapper = styled.div`
|
|
|
8580
8575
|
user-select: none;
|
|
8581
8576
|
`;
|
|
8582
8577
|
const StyledSwitchTrack = styled.div`
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
min-
|
|
8586
|
-
min-
|
|
8578
|
+
width: var(--wui-switch-width);
|
|
8579
|
+
height: var(--wui-switch-height);
|
|
8580
|
+
min-width: var(--wui-switch-width);
|
|
8581
|
+
min-height: var(--wui-switch-height);
|
|
8587
8582
|
border-radius: var(--wui-border-radius-rounded);
|
|
8588
8583
|
display: flex;
|
|
8589
8584
|
align-items: center;
|
|
@@ -8595,7 +8590,7 @@ const StyledSwitchTrack = styled.div`
|
|
|
8595
8590
|
background-color var(--wui-motion-duration-03) var(--wui-motion-ease-out),
|
|
8596
8591
|
outline-color var(--wui-motion-duration-03) var(--wui-motion-ease-out);
|
|
8597
8592
|
background-color: var(--wui-switch-background-color);
|
|
8598
|
-
margin-
|
|
8593
|
+
margin-top: calc(calc(1lh - var(--wui-switch-height)) / 2);
|
|
8599
8594
|
`;
|
|
8600
8595
|
const StyledSwitchThumb = styled.div`
|
|
8601
8596
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8603,9 +8598,9 @@ const StyledSwitchThumb = styled.div`
|
|
|
8603
8598
|
transition:
|
|
8604
8599
|
margin var(--wui-motion-duration-03) var(--wui-motion-ease-out),
|
|
8605
8600
|
background-color var(--wui-motion-duration-03) var(--wui-motion-ease-out);
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
margin-
|
|
8601
|
+
width: var(--wui-switch-thumb-size);
|
|
8602
|
+
height: var(--wui-switch-thumb-size);
|
|
8603
|
+
margin-left: var(--wui-switch-thumb-position);
|
|
8609
8604
|
`;
|
|
8610
8605
|
const StyledHiddenSwitchInput = styled.input`
|
|
8611
8606
|
${visuallyHiddenStyle}
|
|
@@ -8780,12 +8775,12 @@ const StyledInputContainer = styled.div`
|
|
|
8780
8775
|
display: inline-flex;
|
|
8781
8776
|
position: relative;
|
|
8782
8777
|
${inputStyles};
|
|
8783
|
-
|
|
8784
|
-
|
|
8778
|
+
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
8779
|
+
height: ${({ $fullHeight, $isMultiline }) => $fullHeight && $isMultiline ? "100%" : "auto"};
|
|
8785
8780
|
|
|
8786
8781
|
input,
|
|
8787
8782
|
textarea {
|
|
8788
|
-
|
|
8783
|
+
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
8789
8784
|
${({ $monospace }) => $monospace && "font-family: var(--wui-typography-family-mono);"}
|
|
8790
8785
|
}
|
|
8791
8786
|
|
|
@@ -8793,7 +8788,7 @@ const StyledInputContainer = styled.div`
|
|
|
8793
8788
|
--wui-input-line-height: var(--wui-typography-body-3-line-height);
|
|
8794
8789
|
|
|
8795
8790
|
border-radius: var(--wui-input-multiline-border-radius);
|
|
8796
|
-
|
|
8791
|
+
height: ${({ $fullHeight }) => $fullHeight ? "100%" : "auto"};
|
|
8797
8792
|
|
|
8798
8793
|
/* override height calculations when fullHeight is enabled */
|
|
8799
8794
|
${({ $fullHeight }) => $fullHeight && `
|
|
@@ -8840,9 +8835,9 @@ const StyledInputContainer = styled.div`
|
|
|
8840
8835
|
[type='search'] {
|
|
8841
8836
|
&::-webkit-search-cancel-button {
|
|
8842
8837
|
appearance: none;
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
margin-
|
|
8838
|
+
height: 16px;
|
|
8839
|
+
width: 16px;
|
|
8840
|
+
margin-right: -4px;
|
|
8846
8841
|
|
|
8847
8842
|
/* css vars don't work in data URLs, so the stroke color value is hardcoded. if we support dark mode, we'll need to swap the background image based on the users preferred color scheme */
|
|
8848
8843
|
background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4L4 12M4 4L12 12' stroke='%2364646a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
@@ -8862,8 +8857,8 @@ const StyledInputContainer = styled.div`
|
|
|
8862
8857
|
display: flex;
|
|
8863
8858
|
align-items: center;
|
|
8864
8859
|
position: absolute;
|
|
8865
|
-
|
|
8866
|
-
|
|
8860
|
+
top: 50%;
|
|
8861
|
+
left: var(--wui-input-horizontal-padding);
|
|
8867
8862
|
transform: translateY(-50%);
|
|
8868
8863
|
}
|
|
8869
8864
|
|
|
@@ -8876,21 +8871,21 @@ const StyledInputContainer = styled.div`
|
|
|
8876
8871
|
|
|
8877
8872
|
&:has(.wui-input-left-icon) input,
|
|
8878
8873
|
&:has(.wui-input-left-icon) textarea {
|
|
8879
|
-
padding-
|
|
8874
|
+
padding-left: 32px;
|
|
8880
8875
|
}
|
|
8881
8876
|
|
|
8882
8877
|
.wui-input-right-icon {
|
|
8883
8878
|
display: flex;
|
|
8884
8879
|
align-items: center;
|
|
8885
8880
|
position: absolute;
|
|
8886
|
-
|
|
8887
|
-
|
|
8881
|
+
top: 50%;
|
|
8882
|
+
right: var(--wui-input-horizontal-padding);
|
|
8888
8883
|
transform: translateY(-50%);
|
|
8889
8884
|
}
|
|
8890
8885
|
|
|
8891
8886
|
&:has(.wui-input-right-icon) input,
|
|
8892
8887
|
&:has(.wui-input-right-icon) textarea {
|
|
8893
|
-
padding-
|
|
8888
|
+
padding-right: 32px;
|
|
8894
8889
|
}
|
|
8895
8890
|
`;
|
|
8896
8891
|
/**
|
|
@@ -9060,8 +9055,8 @@ HexColorInput.displayName = "HexColorInput_UI";
|
|
|
9060
9055
|
//#region src/components/ColorPicker/HSVHueCanvas.tsx
|
|
9061
9056
|
const Canvas$1 = styled.canvas`
|
|
9062
9057
|
display: block;
|
|
9063
|
-
|
|
9064
|
-
|
|
9058
|
+
height: 100%;
|
|
9059
|
+
width: 100%;
|
|
9065
9060
|
`;
|
|
9066
9061
|
/**
|
|
9067
9062
|
* Canvas component that draws a horizontal hue gradient.
|
|
@@ -9100,7 +9095,7 @@ const HSVHueCanvas = ({ hsv }) => {
|
|
|
9100
9095
|
const Container$2 = styled.div`
|
|
9101
9096
|
border-radius: var(--wui-border-radius-rounded);
|
|
9102
9097
|
border: 1px solid var(--wui-color-border);
|
|
9103
|
-
|
|
9098
|
+
height: ${24}px;
|
|
9104
9099
|
overflow: hidden;
|
|
9105
9100
|
padding: 0 var(--wui-space-03);
|
|
9106
9101
|
position: relative;
|
|
@@ -9109,18 +9104,18 @@ const Root = styled(Slider$1.Root)`
|
|
|
9109
9104
|
align-items: center;
|
|
9110
9105
|
display: flex;
|
|
9111
9106
|
position: absolute;
|
|
9112
|
-
|
|
9107
|
+
top: 50%;
|
|
9113
9108
|
transform: translateY(-50%);
|
|
9114
|
-
|
|
9115
|
-
|
|
9109
|
+
width: calc(100% - var(--wui-space-05));
|
|
9110
|
+
height: 16px;
|
|
9116
9111
|
`;
|
|
9117
9112
|
const Control = styled(Slider$1.Control)`
|
|
9118
|
-
|
|
9113
|
+
height: 100%;
|
|
9119
9114
|
touch-action: none;
|
|
9120
|
-
|
|
9115
|
+
width: 100%;
|
|
9121
9116
|
`;
|
|
9122
9117
|
const Track = styled(Slider$1.Track)`
|
|
9123
|
-
|
|
9118
|
+
width: 100%;
|
|
9124
9119
|
`;
|
|
9125
9120
|
const Thumb$1 = styled(Slider$1.Thumb)`
|
|
9126
9121
|
position: relative;
|
|
@@ -9132,10 +9127,10 @@ const ThumbInner = styled.div`
|
|
|
9132
9127
|
box-shadow:
|
|
9133
9128
|
inset 0 0 0 1px var(--wui-color-border),
|
|
9134
9129
|
inset 0 0 0 2px black;
|
|
9135
|
-
|
|
9130
|
+
height: 16px;
|
|
9136
9131
|
position: absolute;
|
|
9137
9132
|
transform: translate(-50%, -50%);
|
|
9138
|
-
|
|
9133
|
+
width: 16px;
|
|
9139
9134
|
|
|
9140
9135
|
${Thumb$1}:focus-visible > & {
|
|
9141
9136
|
box-shadow:
|
|
@@ -9218,7 +9213,7 @@ const drawSmoothCurve = (context, points) => {
|
|
|
9218
9213
|
//#region src/components/ColorPicker/HSVSaturationValueCanvas.tsx
|
|
9219
9214
|
const Canvas = styled.canvas`
|
|
9220
9215
|
display: block;
|
|
9221
|
-
|
|
9216
|
+
width: 100%;
|
|
9222
9217
|
`;
|
|
9223
9218
|
const calculateContrastCurve = (width, height, hue, minimumContrastRatio, colorForComparison, limit, opacityForContrastCalculation) => {
|
|
9224
9219
|
const contrastPoints = [];
|
|
@@ -9327,11 +9322,11 @@ const Thumb = styled.button.attrs({ type: "button" })`
|
|
|
9327
9322
|
inset 0 0 0 1px var(--wui-color-border),
|
|
9328
9323
|
inset 0 0 0 2px black;
|
|
9329
9324
|
cursor: pointer;
|
|
9330
|
-
|
|
9325
|
+
height: 16px;
|
|
9331
9326
|
outline: none;
|
|
9332
9327
|
position: absolute;
|
|
9333
9328
|
transform: translate(-50%, -50%);
|
|
9334
|
-
|
|
9329
|
+
width: 16px;
|
|
9335
9330
|
|
|
9336
9331
|
&:focus-visible {
|
|
9337
9332
|
box-shadow:
|
|
@@ -9518,8 +9513,8 @@ const TagLabel = styled.a`
|
|
|
9518
9513
|
gap: var(--wui-space-01);
|
|
9519
9514
|
|
|
9520
9515
|
svg {
|
|
9521
|
-
|
|
9522
|
-
|
|
9516
|
+
height: 12px;
|
|
9517
|
+
width: 12px;
|
|
9523
9518
|
flex: 0 0 12px;
|
|
9524
9519
|
}
|
|
9525
9520
|
|
|
@@ -9529,7 +9524,7 @@ const TagLabel = styled.a`
|
|
|
9529
9524
|
}
|
|
9530
9525
|
|
|
9531
9526
|
&:not(:only-child) {
|
|
9532
|
-
padding-
|
|
9527
|
+
padding-right: var(--wui-space-01);
|
|
9533
9528
|
}
|
|
9534
9529
|
|
|
9535
9530
|
&:is(a):hover {
|
|
@@ -9542,18 +9537,18 @@ const TagLabel = styled.a`
|
|
|
9542
9537
|
`;
|
|
9543
9538
|
const TagDivider = styled.div`
|
|
9544
9539
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9545
|
-
border-
|
|
9540
|
+
border-left: 1px solid var(--wui-color-border);
|
|
9546
9541
|
display: flex;
|
|
9547
|
-
|
|
9548
|
-
|
|
9542
|
+
height: 14px;
|
|
9543
|
+
width: 1px;
|
|
9549
9544
|
`;
|
|
9550
9545
|
const StyledRemoveButton = styled.button`
|
|
9551
9546
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9552
9547
|
all: unset;
|
|
9553
9548
|
cursor: pointer;
|
|
9554
9549
|
display: flex;
|
|
9555
|
-
|
|
9556
|
-
|
|
9550
|
+
height: 22px;
|
|
9551
|
+
width: 12px;
|
|
9557
9552
|
align-items: center;
|
|
9558
9553
|
padding: 0 var(--wui-space-01);
|
|
9559
9554
|
border-radius: var(--wui-border-radius-01);
|
|
@@ -9650,7 +9645,7 @@ const getDefaultTypographicElement = (variant) => {
|
|
|
9650
9645
|
//#region src/components/Combobox/Combobox.tsx
|
|
9651
9646
|
const ComboboxWrapper = styled.div`
|
|
9652
9647
|
${inputCss};
|
|
9653
|
-
|
|
9648
|
+
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
9654
9649
|
padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
|
|
9655
9650
|
background-color: var(--wui-input-color-bg);
|
|
9656
9651
|
border: none;
|
|
@@ -9666,7 +9661,7 @@ const ComboboxWrapper = styled.div`
|
|
|
9666
9661
|
gap: var(--wui-space-01);
|
|
9667
9662
|
|
|
9668
9663
|
> * {
|
|
9669
|
-
|
|
9664
|
+
width: min-content !important;
|
|
9670
9665
|
}
|
|
9671
9666
|
|
|
9672
9667
|
&:focus-within {
|
|
@@ -9700,7 +9695,7 @@ const ComboboxWrapper = styled.div`
|
|
|
9700
9695
|
const ComboboxInput = styled(Ariakit.Combobox)`
|
|
9701
9696
|
appearance: none;
|
|
9702
9697
|
padding: 0;
|
|
9703
|
-
|
|
9698
|
+
width: 100%;
|
|
9704
9699
|
border: 0 none;
|
|
9705
9700
|
flex: 1;
|
|
9706
9701
|
|
|
@@ -9722,7 +9717,7 @@ const ComboboxPopover = styled(Ariakit.ComboboxPopover)`
|
|
|
9722
9717
|
|
|
9723
9718
|
border-radius: var(--wui-border-radius-02);
|
|
9724
9719
|
padding: var(--wui-space-02);
|
|
9725
|
-
max-
|
|
9720
|
+
max-height: var(--wui-popover-max-height, 300px);
|
|
9726
9721
|
background-color: var(--wui-color-bg-surface);
|
|
9727
9722
|
box-shadow: var(--wui-elevation-01);
|
|
9728
9723
|
border: 1px solid var(--wui-color-border);
|
|
@@ -9732,7 +9727,7 @@ const ComboboxPopover = styled(Ariakit.ComboboxPopover)`
|
|
|
9732
9727
|
flex-direction: column;
|
|
9733
9728
|
overflow: auto;
|
|
9734
9729
|
overscroll-behavior: contain; /* stylelint-disable-line plugin/use-baseline */
|
|
9735
|
-
margin-
|
|
9730
|
+
margin-top: var(--wui-space-02);
|
|
9736
9731
|
|
|
9737
9732
|
&[aria-busy='true'] {
|
|
9738
9733
|
--item-opacity: 0.5;
|
|
@@ -9928,9 +9923,9 @@ const menuContentCss = css`
|
|
|
9928
9923
|
background: var(--menu-bg);
|
|
9929
9924
|
border-radius: var(--menu-border-radius);
|
|
9930
9925
|
box-shadow: var(--menu-shadow);
|
|
9931
|
-
max-
|
|
9932
|
-
min-
|
|
9933
|
-
max-
|
|
9926
|
+
max-height: var(--available-height);
|
|
9927
|
+
min-width: var(--menu-min-width);
|
|
9928
|
+
max-width: var(--menu-max-width);
|
|
9934
9929
|
overflow: auto;
|
|
9935
9930
|
padding: var(--menu-padding);
|
|
9936
9931
|
transform-origin: var(--transform-origin);
|
|
@@ -9941,10 +9936,10 @@ const menuContentCss = css`
|
|
|
9941
9936
|
}
|
|
9942
9937
|
|
|
9943
9938
|
${mq.smAndUp} {
|
|
9944
|
-
|
|
9939
|
+
bottom: 0;
|
|
9945
9940
|
padding: var(--menu-padding);
|
|
9946
|
-
|
|
9947
|
-
|
|
9941
|
+
right: 0;
|
|
9942
|
+
top: 0;
|
|
9948
9943
|
transform: initial;
|
|
9949
9944
|
}
|
|
9950
9945
|
|
|
@@ -9954,7 +9949,7 @@ const menuContentCss = css`
|
|
|
9954
9949
|
`;
|
|
9955
9950
|
const MenuPopup = styled(Menu$1.Popup)`
|
|
9956
9951
|
${menuContentCss}
|
|
9957
|
-
min-
|
|
9952
|
+
min-width: var(--anchor-width);
|
|
9958
9953
|
`;
|
|
9959
9954
|
const DEFAULT_TRIGGER_PROPS = {};
|
|
9960
9955
|
/**
|
|
@@ -10142,7 +10137,7 @@ const StyledDataCard = styled.div`
|
|
|
10142
10137
|
color: transparent;
|
|
10143
10138
|
user-select: none;
|
|
10144
10139
|
border-radius: var(--wui-border-radius-01);
|
|
10145
|
-
|
|
10140
|
+
width: fit-content;
|
|
10146
10141
|
}
|
|
10147
10142
|
|
|
10148
10143
|
&[data-click-region] {
|
|
@@ -10191,18 +10186,18 @@ const StyledLabel$1 = styled(Heading)`
|
|
|
10191
10186
|
grid-area: label;
|
|
10192
10187
|
|
|
10193
10188
|
&[data-wui-data-card-skeleton='true'] {
|
|
10194
|
-
|
|
10189
|
+
width: 80px;
|
|
10195
10190
|
}
|
|
10196
10191
|
|
|
10197
10192
|
button {
|
|
10198
|
-
text-align:
|
|
10193
|
+
text-align: left;
|
|
10199
10194
|
}
|
|
10200
10195
|
`;
|
|
10201
10196
|
const StyledValue = styled(Heading)`
|
|
10202
10197
|
grid-area: value;
|
|
10203
10198
|
|
|
10204
10199
|
&[data-wui-data-card-skeleton='true'] {
|
|
10205
|
-
|
|
10200
|
+
width: min(90%, 156px);
|
|
10206
10201
|
}
|
|
10207
10202
|
`;
|
|
10208
10203
|
const StyledSlot = styled.div`
|
|
@@ -10213,8 +10208,8 @@ const StyledSlot = styled.div`
|
|
|
10213
10208
|
`;
|
|
10214
10209
|
const StyledDataCardTrendContainer = styled.div`
|
|
10215
10210
|
position: absolute;
|
|
10216
|
-
|
|
10217
|
-
|
|
10211
|
+
bottom: var(--wui-space-01);
|
|
10212
|
+
right: var(--wui-space-01);
|
|
10218
10213
|
`;
|
|
10219
10214
|
const StyledSubtitle = styled(Text)`
|
|
10220
10215
|
grid-area: subtitle;
|
|
@@ -10285,9 +10280,9 @@ const StyledDataCards = styled(Box)`
|
|
|
10285
10280
|
);
|
|
10286
10281
|
|
|
10287
10282
|
> * {
|
|
10288
|
-
min-
|
|
10283
|
+
min-width: 120px;
|
|
10289
10284
|
flex-basis: var(--wui-data-cards-column-width, 0);
|
|
10290
|
-
max-
|
|
10285
|
+
max-width: ${({ $cardMaxWidth }) => $cardMaxWidth};
|
|
10291
10286
|
}
|
|
10292
10287
|
`;
|
|
10293
10288
|
/**
|
|
@@ -10341,7 +10336,7 @@ const StyledIconContainer = styled.div`
|
|
|
10341
10336
|
display: flex;
|
|
10342
10337
|
align-items: center;
|
|
10343
10338
|
align-self: center;
|
|
10344
|
-
|
|
10339
|
+
height: 0;
|
|
10345
10340
|
`;
|
|
10346
10341
|
const DataCardHoverArrow = (props) => /* @__PURE__ */ jsx(StyledIconContainer, {
|
|
10347
10342
|
...props,
|
|
@@ -10365,7 +10360,7 @@ const StyledDataList = styled.dl`
|
|
|
10365
10360
|
margin: 0;
|
|
10366
10361
|
padding: 0;
|
|
10367
10362
|
font-weight: var(--wui-datalist-label-prominence);
|
|
10368
|
-
|
|
10363
|
+
width: var(--wui-datalist-label-max-width, auto);
|
|
10369
10364
|
}
|
|
10370
10365
|
|
|
10371
10366
|
dd {
|
|
@@ -10440,25 +10435,25 @@ const StyledArrowSvg = styled.svg`
|
|
|
10440
10435
|
|
|
10441
10436
|
/* override inline positioning and rotate the arrow so the circle sits near the trigger and the stalk extends down toward the popup. */
|
|
10442
10437
|
&[data-side='top'] {
|
|
10443
|
-
|
|
10438
|
+
top: 100% !important;
|
|
10444
10439
|
}
|
|
10445
10440
|
|
|
10446
10441
|
&[data-side='bottom'] {
|
|
10447
|
-
|
|
10442
|
+
top: 0 !important;
|
|
10448
10443
|
transform: rotate(180deg);
|
|
10449
10444
|
transform-origin: center 0;
|
|
10450
10445
|
}
|
|
10451
10446
|
|
|
10452
10447
|
&[data-side='left'] {
|
|
10453
|
-
|
|
10454
|
-
|
|
10448
|
+
right: 0;
|
|
10449
|
+
left: auto;
|
|
10455
10450
|
transform: translateX(52px) rotate(-90deg);
|
|
10456
10451
|
transform-origin: center center;
|
|
10457
10452
|
}
|
|
10458
10453
|
|
|
10459
10454
|
&[data-side='right'] {
|
|
10460
|
-
|
|
10461
|
-
|
|
10455
|
+
left: 0;
|
|
10456
|
+
right: auto;
|
|
10462
10457
|
transform: translateX(-52px) rotate(90deg);
|
|
10463
10458
|
transform-origin: center center;
|
|
10464
10459
|
}
|
|
@@ -10536,8 +10531,8 @@ const StyledPopup$3 = styled(Popover$1.Popup)`
|
|
|
10536
10531
|
${({ $unstyled }) => !$unstyled && css`
|
|
10537
10532
|
border-radius: var(--wui-border-radius-02);
|
|
10538
10533
|
padding: var(--wui-space-04);
|
|
10539
|
-
max-
|
|
10540
|
-
max-
|
|
10534
|
+
max-width: var(--wui-popover-max-width, 320px);
|
|
10535
|
+
max-height: var(--wui-popover-max-height, auto);
|
|
10541
10536
|
background-color: var(--wui-color-bg-surface);
|
|
10542
10537
|
box-shadow: var(--wui-elevation-01);
|
|
10543
10538
|
border: 1px solid var(--wui-color-border);
|
|
@@ -10550,8 +10545,8 @@ const StyledPopup$3 = styled(Popover$1.Popup)`
|
|
|
10550
10545
|
|
|
10551
10546
|
[data-wui-popover-close] {
|
|
10552
10547
|
position: absolute;
|
|
10553
|
-
|
|
10554
|
-
|
|
10548
|
+
top: var(--wui-space-02);
|
|
10549
|
+
right: var(--wui-space-02);
|
|
10555
10550
|
}
|
|
10556
10551
|
`;
|
|
10557
10552
|
/**
|
|
@@ -10661,8 +10656,8 @@ const StyledPopup$2 = styled(Popover$1.Popup)`
|
|
|
10661
10656
|
${({ $unstyled }) => !$unstyled && css`
|
|
10662
10657
|
border-radius: var(--wui-border-radius-02);
|
|
10663
10658
|
padding: var(--wui-space-04);
|
|
10664
|
-
max-
|
|
10665
|
-
max-
|
|
10659
|
+
max-width: var(--wui-popover-max-width);
|
|
10660
|
+
max-height: var(--wui-popover-max-height);
|
|
10666
10661
|
background-color: var(--wui-color-bg-surface);
|
|
10667
10662
|
box-shadow: var(--wui-elevation-01);
|
|
10668
10663
|
border: 1px solid var(--wui-color-border);
|
|
@@ -10671,8 +10666,8 @@ const StyledPopup$2 = styled(Popover$1.Popup)`
|
|
|
10671
10666
|
|
|
10672
10667
|
[data-wui-popover-close] {
|
|
10673
10668
|
position: absolute;
|
|
10674
|
-
|
|
10675
|
-
|
|
10669
|
+
top: var(--wui-space-02);
|
|
10670
|
+
right: var(--wui-space-02);
|
|
10676
10671
|
}
|
|
10677
10672
|
`;
|
|
10678
10673
|
const DEFAULT_SIDE_OFFSET = 8;
|
|
@@ -10836,9 +10831,9 @@ const StyledMobileTrigger = styled.button`
|
|
|
10836
10831
|
align-items: center;
|
|
10837
10832
|
justify-content: space-between;
|
|
10838
10833
|
gap: var(--wui-space-02);
|
|
10839
|
-
|
|
10834
|
+
width: 100%;
|
|
10840
10835
|
font-family: inherit;
|
|
10841
|
-
text-align:
|
|
10836
|
+
text-align: left;
|
|
10842
10837
|
cursor: pointer;
|
|
10843
10838
|
|
|
10844
10839
|
&:disabled {
|
|
@@ -11416,21 +11411,21 @@ DatePicker.displayName = "DatePicker_UI";
|
|
|
11416
11411
|
//#endregion
|
|
11417
11412
|
//#region src/components/Divider/Divider.tsx
|
|
11418
11413
|
const horizontalBorderCss = css`
|
|
11419
|
-
border-
|
|
11420
|
-
border-
|
|
11421
|
-
border-
|
|
11414
|
+
border-top-color: var(--wui-color-border);
|
|
11415
|
+
border-top-style: solid;
|
|
11416
|
+
border-top-width: 1px;
|
|
11422
11417
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
11423
|
-
|
|
11424
|
-
margin-
|
|
11425
|
-
margin-
|
|
11418
|
+
height: 0;
|
|
11419
|
+
margin-left: var(--wui-divider-inset);
|
|
11420
|
+
margin-right: var(--wui-divider-inset);
|
|
11426
11421
|
`;
|
|
11427
11422
|
const verticalBorderCss = css`
|
|
11428
11423
|
background-color: var(--wui-color-border);
|
|
11429
|
-
max-
|
|
11430
|
-
min-
|
|
11431
|
-
|
|
11432
|
-
margin-
|
|
11433
|
-
margin-
|
|
11424
|
+
max-width: 1px;
|
|
11425
|
+
min-height: 100%;
|
|
11426
|
+
width: 1px;
|
|
11427
|
+
margin-top: var(--wui-divider-inset);
|
|
11428
|
+
margin-bottom: var(--wui-divider-inset);
|
|
11434
11429
|
`;
|
|
11435
11430
|
const DividerComponent = styled.div`
|
|
11436
11431
|
${({ $orientation }) => {
|
|
@@ -11461,11 +11456,11 @@ Divider.displayName = "Divider_UI";
|
|
|
11461
11456
|
//#region src/components/EditableHeading/EditableHeading.tsx
|
|
11462
11457
|
const StyledInput$1 = styled(Input)`
|
|
11463
11458
|
&:not([rows]) {
|
|
11464
|
-
min-
|
|
11459
|
+
min-height: unset;
|
|
11465
11460
|
}
|
|
11466
11461
|
|
|
11467
11462
|
&:focus {
|
|
11468
|
-
|
|
11463
|
+
height: ${({ $height }) => `${$height}px !important`};
|
|
11469
11464
|
}
|
|
11470
11465
|
|
|
11471
11466
|
&& {
|
|
@@ -11476,11 +11471,11 @@ const StyledInput$1 = styled(Input)`
|
|
|
11476
11471
|
--wui-input-line-height: var(--line-height);
|
|
11477
11472
|
|
|
11478
11473
|
font-family: var(--font-family);
|
|
11479
|
-
|
|
11474
|
+
width: 100%;
|
|
11480
11475
|
padding: var(--wui-space-02);
|
|
11481
11476
|
border: none;
|
|
11482
|
-
|
|
11483
|
-
min-
|
|
11477
|
+
height: ${({ $height }) => `${$height}px`};
|
|
11478
|
+
min-height: ${({ $height }) => `${$height}px`};
|
|
11484
11479
|
resize: none;
|
|
11485
11480
|
}
|
|
11486
11481
|
`;
|
|
@@ -11495,7 +11490,7 @@ const editableStyles = css`
|
|
|
11495
11490
|
}
|
|
11496
11491
|
`;
|
|
11497
11492
|
const StyledHeading = styled(Heading)`
|
|
11498
|
-
|
|
11493
|
+
width: 100%;
|
|
11499
11494
|
border-radius: var(--wui-border-radius-02);
|
|
11500
11495
|
padding: var(--wui-space-02);
|
|
11501
11496
|
overflow-wrap: anywhere;
|
|
@@ -11699,7 +11694,7 @@ const StyledEditableTextDisplay = styled.div`
|
|
|
11699
11694
|
`;
|
|
11700
11695
|
}}
|
|
11701
11696
|
${({ $minLines }) => isNotNil($minLines) && css`
|
|
11702
|
-
min-
|
|
11697
|
+
min-height: calc(${$minLines}lh + calc(var(--wui-editable-text-padding) * 2));
|
|
11703
11698
|
`}
|
|
11704
11699
|
word-break: normal;
|
|
11705
11700
|
overflow-wrap: anywhere;
|
|
@@ -12075,17 +12070,17 @@ const StyledFeatureCardImageContainer = styled.div`
|
|
|
12075
12070
|
|
|
12076
12071
|
overflow: hidden;
|
|
12077
12072
|
padding: var(--wui-space-04);
|
|
12078
|
-
|
|
12079
|
-
|
|
12073
|
+
height: var(--wui-feature-card-image-height);
|
|
12074
|
+
width: var(--wui-feature-card-image-width);
|
|
12080
12075
|
justify-self: stretch;
|
|
12081
12076
|
align-self: stretch;
|
|
12082
|
-
max-
|
|
12077
|
+
max-width: 300px;
|
|
12083
12078
|
|
|
12084
12079
|
/* Make image container stretch full width in vertical layout and remove bottom padding */
|
|
12085
12080
|
[data-wui-feature-card-orientation='vertical'] & {
|
|
12086
|
-
max-
|
|
12087
|
-
|
|
12088
|
-
padding-
|
|
12081
|
+
max-width: none;
|
|
12082
|
+
width: 100%;
|
|
12083
|
+
padding-bottom: var(--wui-space-00);
|
|
12089
12084
|
}
|
|
12090
12085
|
|
|
12091
12086
|
/* In horizontal layout, make image height equal to the content height and apply aspect ratio */
|
|
@@ -12096,12 +12091,12 @@ const StyledFeatureCardImageContainer = styled.div`
|
|
|
12096
12091
|
|
|
12097
12092
|
/* Handle image alignment and remove padding next to content */
|
|
12098
12093
|
&[data-wui-feature-card-image='right'] {
|
|
12099
|
-
padding-
|
|
12094
|
+
padding-left: var(--wui-space-00);
|
|
12100
12095
|
order: 2;
|
|
12101
12096
|
}
|
|
12102
12097
|
|
|
12103
12098
|
&[data-wui-feature-card-image='left'] {
|
|
12104
|
-
padding-
|
|
12099
|
+
padding-right: var(--wui-space-00);
|
|
12105
12100
|
}
|
|
12106
12101
|
}
|
|
12107
12102
|
|
|
@@ -12274,7 +12269,7 @@ const ErrorText = styled(Text)`
|
|
|
12274
12269
|
const StyledErrorList = styled.ul`
|
|
12275
12270
|
margin: 0;
|
|
12276
12271
|
padding: 0;
|
|
12277
|
-
padding-
|
|
12272
|
+
padding-left: var(--wui-space-04);
|
|
12278
12273
|
display: flex;
|
|
12279
12274
|
flex-direction: column;
|
|
12280
12275
|
gap: var(--wui-space-01);
|
|
@@ -12444,7 +12439,7 @@ const StyledGrid = styled.div`
|
|
|
12444
12439
|
|
|
12445
12440
|
display: grid;
|
|
12446
12441
|
gap: var(--wui-grid-column-gap) var(--wui-grid-row-gap);
|
|
12447
|
-
|
|
12442
|
+
width: 100%;
|
|
12448
12443
|
|
|
12449
12444
|
${({ $maxColumns, $minChildWidth, $expandItems }) => getGridTemplateColumns($maxColumns, $minChildWidth, $expandItems)}
|
|
12450
12445
|
`;
|
|
@@ -12514,8 +12509,8 @@ const StyledPopup$1 = styled(PreviewCard$1.Popup)`
|
|
|
12514
12509
|
${({ $unstyled, $paddingSize }) => !$unstyled && css`
|
|
12515
12510
|
border-radius: var(--wui-border-radius-02);
|
|
12516
12511
|
padding: var(--wui-${$paddingSize});
|
|
12517
|
-
max-
|
|
12518
|
-
max-
|
|
12512
|
+
max-width: var(--wui-preview-card-max-width, 320px);
|
|
12513
|
+
max-height: var(--wui-preview-card-max-height, auto);
|
|
12519
12514
|
background-color: var(--wui-color-bg-surface);
|
|
12520
12515
|
box-shadow: var(--wui-elevation-01);
|
|
12521
12516
|
border: 1px solid var(--wui-color-border);
|
|
@@ -12559,8 +12554,8 @@ PreviewCard.displayName = "PreviewCard_UI";
|
|
|
12559
12554
|
//#region src/components/InputClickToCopy/InputClickToCopy.tsx
|
|
12560
12555
|
const StyledIconButton$1 = styled(IconButton)`
|
|
12561
12556
|
/* override size for icon button since prop gets changed by Input */
|
|
12562
|
-
|
|
12563
|
-
|
|
12557
|
+
height: var(--icon-button-size-sm);
|
|
12558
|
+
width: var(--icon-button-size-sm);
|
|
12564
12559
|
|
|
12565
12560
|
/* override input padding variable since it is used for Input Icon positioning */
|
|
12566
12561
|
--wui-input-horizontal-padding: 4px;
|
|
@@ -13317,8 +13312,8 @@ const InputDuration = ({ decimalUnitLength = 2, disabled = false, fullWidth = fa
|
|
|
13317
13312
|
//#region src/components/InputPassword/InputPassword.tsx
|
|
13318
13313
|
const StyledIconButton = styled(IconButton)`
|
|
13319
13314
|
/* override size for icon button since prop gets changed by Input */
|
|
13320
|
-
|
|
13321
|
-
|
|
13315
|
+
height: var(--icon-button-size-sm);
|
|
13316
|
+
width: var(--icon-button-size-sm);
|
|
13322
13317
|
|
|
13323
13318
|
/* override input padding variable since it is used for Input Icon positioning */
|
|
13324
13319
|
--wui-input-horizontal-padding: 4px;
|
|
@@ -13425,7 +13420,7 @@ const StyledKeyboardShortcut = styled.div`
|
|
|
13425
13420
|
const StyledKey = styled.kbd`
|
|
13426
13421
|
align-items: center;
|
|
13427
13422
|
background: var(--wui-color-bg-surface-secondary);
|
|
13428
|
-
border-
|
|
13423
|
+
border-bottom: 1px solid var(--wui-color-border-secondary);
|
|
13429
13424
|
border-radius: 4px;
|
|
13430
13425
|
color: var(--wui-color-text);
|
|
13431
13426
|
display: flex;
|
|
@@ -13439,10 +13434,10 @@ const StyledKey = styled.kbd`
|
|
|
13439
13434
|
|
|
13440
13435
|
/* Adds tabular numbers to ensure the width of the key is consistent */
|
|
13441
13436
|
font-variant-numeric: slashed-zero tabular-nums;
|
|
13442
|
-
|
|
13437
|
+
height: 20px;
|
|
13443
13438
|
justify-content: center;
|
|
13444
13439
|
line-height: 20px;
|
|
13445
|
-
min-
|
|
13440
|
+
min-width: 20px;
|
|
13446
13441
|
padding: 0 var(--wui-space-01);
|
|
13447
13442
|
`;
|
|
13448
13443
|
const Label$1 = styled.span`
|
|
@@ -13487,7 +13482,7 @@ KeyboardShortcut.displayName = "KeyboardShortcut_UI";
|
|
|
13487
13482
|
//#endregion
|
|
13488
13483
|
//#region src/components/List/ListItem.tsx
|
|
13489
13484
|
const ListItemComponent = styled.li`
|
|
13490
|
-
margin-
|
|
13485
|
+
margin-bottom: var(--wui-space-02);
|
|
13491
13486
|
`;
|
|
13492
13487
|
const ListItem = ({ children }) => {
|
|
13493
13488
|
if (isNil(children)) return null;
|
|
@@ -13498,22 +13493,22 @@ ListItem.displayName = "ListItem_UI";
|
|
|
13498
13493
|
//#region src/components/List/List.tsx
|
|
13499
13494
|
const spacesStyle = css`
|
|
13500
13495
|
overflow: hidden;
|
|
13501
|
-
padding-
|
|
13496
|
+
padding-left: 0;
|
|
13502
13497
|
vertical-align: bottom;
|
|
13503
13498
|
|
|
13504
13499
|
li {
|
|
13505
13500
|
display: block;
|
|
13506
|
-
float:
|
|
13501
|
+
float: left;
|
|
13507
13502
|
|
|
13508
13503
|
&::after {
|
|
13509
13504
|
content: ' ';
|
|
13510
|
-
padding-
|
|
13505
|
+
padding-right: var(--wui-space-03);
|
|
13511
13506
|
}
|
|
13512
13507
|
|
|
13513
13508
|
&:last-child {
|
|
13514
13509
|
&::after {
|
|
13515
13510
|
content: '' !important;
|
|
13516
|
-
padding-
|
|
13511
|
+
padding-right: 0;
|
|
13517
13512
|
}
|
|
13518
13513
|
}
|
|
13519
13514
|
}
|
|
@@ -13524,7 +13519,7 @@ const commasStyle = css`
|
|
|
13524
13519
|
li {
|
|
13525
13520
|
&::after {
|
|
13526
13521
|
content: ',' !important;
|
|
13527
|
-
padding-
|
|
13522
|
+
padding-right: var(--wui-space-01);
|
|
13528
13523
|
}
|
|
13529
13524
|
}
|
|
13530
13525
|
`;
|
|
@@ -13534,8 +13529,8 @@ const slashesStyle = css`
|
|
|
13534
13529
|
li {
|
|
13535
13530
|
&::after {
|
|
13536
13531
|
content: '/' !important;
|
|
13537
|
-
padding-
|
|
13538
|
-
padding-
|
|
13532
|
+
padding-left: var(--wui-space-01);
|
|
13533
|
+
padding-right: var(--wui-space-01);
|
|
13539
13534
|
}
|
|
13540
13535
|
}
|
|
13541
13536
|
`;
|
|
@@ -13545,14 +13540,14 @@ const breadcrumbsStyle = css`
|
|
|
13545
13540
|
li {
|
|
13546
13541
|
&::after {
|
|
13547
13542
|
content: '>' !important;
|
|
13548
|
-
padding-
|
|
13549
|
-
padding-
|
|
13543
|
+
padding-left: var(--wui-space-01);
|
|
13544
|
+
padding-right: var(--wui-space-01);
|
|
13550
13545
|
}
|
|
13551
13546
|
}
|
|
13552
13547
|
`;
|
|
13553
13548
|
const unbulletedStyle = css`
|
|
13554
13549
|
list-style: none;
|
|
13555
|
-
padding-
|
|
13550
|
+
padding-left: 0;
|
|
13556
13551
|
`;
|
|
13557
13552
|
const ListComponent = styled.ul`
|
|
13558
13553
|
list-style-position: outside;
|
|
@@ -13565,18 +13560,18 @@ const ListComponent = styled.ul`
|
|
|
13565
13560
|
${({ $variant }) => $variant === "breadcrumbs" && breadcrumbsStyle};
|
|
13566
13561
|
|
|
13567
13562
|
> li:last-child {
|
|
13568
|
-
margin-
|
|
13563
|
+
margin-bottom: 0;
|
|
13569
13564
|
}
|
|
13570
13565
|
|
|
13571
13566
|
ul,
|
|
13572
13567
|
ol {
|
|
13573
|
-
margin-
|
|
13568
|
+
margin-top: var(--wui-space-01);
|
|
13574
13569
|
}
|
|
13575
13570
|
|
|
13576
13571
|
/* nested lists should not have bottom margins because their container <li> will have one */
|
|
13577
13572
|
li ul,
|
|
13578
13573
|
li ol {
|
|
13579
|
-
margin-
|
|
13574
|
+
margin-bottom: 0;
|
|
13580
13575
|
}
|
|
13581
13576
|
`;
|
|
13582
13577
|
const renderListComponent = (listItems, variant, { ...otherProps }) => {
|
|
@@ -13732,7 +13727,7 @@ const baseMarkdownCss = (textSize = "body2") => css`
|
|
|
13732
13727
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
13733
13728
|
border-radius: var(--wui-border-radius-01);
|
|
13734
13729
|
padding: 00.75em;
|
|
13735
|
-
overflow-
|
|
13730
|
+
overflow-x: auto;
|
|
13736
13731
|
}
|
|
13737
13732
|
|
|
13738
13733
|
pre code {
|
|
@@ -13744,13 +13739,13 @@ const baseMarkdownCss = (textSize = "body2") => css`
|
|
|
13744
13739
|
|
|
13745
13740
|
hr {
|
|
13746
13741
|
border: none;
|
|
13747
|
-
border-
|
|
13742
|
+
border-top: 1px solid var(--wui-color-border);
|
|
13748
13743
|
margin-block: calc(var(--wui-markdown-base-unit) * 1.5);
|
|
13749
13744
|
}
|
|
13750
13745
|
|
|
13751
13746
|
img {
|
|
13752
|
-
max-
|
|
13753
|
-
|
|
13747
|
+
max-width: 100%;
|
|
13748
|
+
height: auto;
|
|
13754
13749
|
}
|
|
13755
13750
|
`;
|
|
13756
13751
|
//#endregion
|
|
@@ -13796,7 +13791,7 @@ const StyledButton = styled(Button)`
|
|
|
13796
13791
|
gap: var(--menu-item-inner-gap);
|
|
13797
13792
|
padding: var(--menu-item-padding);
|
|
13798
13793
|
border-radius: var(--wui-border-radius-01);
|
|
13799
|
-
text-align:
|
|
13794
|
+
text-align: left;
|
|
13800
13795
|
color: var(--wui-color-text-button);
|
|
13801
13796
|
font-size: var(--menu-label-font-size);
|
|
13802
13797
|
font-weight: var(--menu-label-font-weight);
|
|
@@ -13824,25 +13819,25 @@ const StyledButton = styled(Button)`
|
|
|
13824
13819
|
}
|
|
13825
13820
|
`;
|
|
13826
13821
|
const StyledLeftIconContainer = styled.div`
|
|
13827
|
-
|
|
13828
|
-
|
|
13822
|
+
height: var(--menu-item-left-icon-size);
|
|
13823
|
+
width: var(--menu-item-left-icon-size);
|
|
13829
13824
|
|
|
13830
13825
|
&& {
|
|
13831
13826
|
& svg {
|
|
13832
|
-
|
|
13833
|
-
|
|
13827
|
+
height: var(--menu-item-left-icon-size);
|
|
13828
|
+
width: var(--menu-item-left-icon-size);
|
|
13834
13829
|
flex: 0 0 var(--menu-item-left-icon-size);
|
|
13835
13830
|
}
|
|
13836
13831
|
}
|
|
13837
13832
|
`;
|
|
13838
13833
|
const StyledRightIconContainer = styled.div`
|
|
13839
|
-
|
|
13840
|
-
|
|
13834
|
+
height: var(--menu-item-right-icon-size);
|
|
13835
|
+
width: var(--menu-item-right-icon-size);
|
|
13841
13836
|
|
|
13842
13837
|
&& {
|
|
13843
13838
|
& svg {
|
|
13844
|
-
|
|
13845
|
-
|
|
13839
|
+
height: var(--menu-item-right-icon-size);
|
|
13840
|
+
width: var(--menu-item-right-icon-size);
|
|
13846
13841
|
flex: 0 0 var(--menu-item-right-icon-size);
|
|
13847
13842
|
}
|
|
13848
13843
|
}
|
|
@@ -13918,7 +13913,7 @@ const SubMenuPopup = styled(Menu$1.Popup)`
|
|
|
13918
13913
|
}
|
|
13919
13914
|
`;
|
|
13920
13915
|
const StyledMobileSubMenuItems = styled.div`
|
|
13921
|
-
margin-
|
|
13916
|
+
margin-left: var(--wui-space-04);
|
|
13922
13917
|
`;
|
|
13923
13918
|
const StyledSubTrigger = styled(Menu$1.SubmenuTrigger)`
|
|
13924
13919
|
outline: none;
|
|
@@ -14164,26 +14159,26 @@ const MeterBarContainer = styled.div`
|
|
|
14164
14159
|
overflow: hidden;
|
|
14165
14160
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
14166
14161
|
border-radius: var(--wui-border-radius-rounded);
|
|
14167
|
-
|
|
14168
|
-
|
|
14162
|
+
width: 100%;
|
|
14163
|
+
height: var(--meter-height);
|
|
14169
14164
|
transform: translateZ(0);
|
|
14170
14165
|
`;
|
|
14171
14166
|
const MeterSegmentBar = styled.div`
|
|
14172
14167
|
position: absolute;
|
|
14173
|
-
|
|
14174
|
-
|
|
14175
|
-
|
|
14176
|
-
|
|
14168
|
+
top: 0;
|
|
14169
|
+
left: ${({ $offset }) => $offset}%;
|
|
14170
|
+
width: ${({ $width }) => $width}%;
|
|
14171
|
+
height: 100%;
|
|
14177
14172
|
background-color: ${({ $color }) => `var(--wui-${$color})`};
|
|
14178
14173
|
|
|
14179
14174
|
&:first-child {
|
|
14180
|
-
border-
|
|
14181
|
-
border-
|
|
14175
|
+
border-top-left-radius: var(--wui-border-radius-rounded);
|
|
14176
|
+
border-bottom-left-radius: var(--wui-border-radius-rounded);
|
|
14182
14177
|
}
|
|
14183
14178
|
|
|
14184
14179
|
&:last-child {
|
|
14185
|
-
border-
|
|
14186
|
-
border-
|
|
14180
|
+
border-top-right-radius: var(--wui-border-radius-rounded);
|
|
14181
|
+
border-bottom-right-radius: var(--wui-border-radius-rounded);
|
|
14187
14182
|
}
|
|
14188
14183
|
`;
|
|
14189
14184
|
const MeterDescription = styled.div`
|
|
@@ -14203,8 +14198,8 @@ const MeterKeyItem = styled.div`
|
|
|
14203
14198
|
gap: var(--wui-space-01);
|
|
14204
14199
|
`;
|
|
14205
14200
|
const MeterKeyColorIndicator = styled.div`
|
|
14206
|
-
|
|
14207
|
-
|
|
14201
|
+
width: 8px;
|
|
14202
|
+
height: 8px;
|
|
14208
14203
|
border-radius: 50%;
|
|
14209
14204
|
background-color: ${({ $color }) => `var(--wui-${$color})`};
|
|
14210
14205
|
flex-shrink: 0;
|
|
@@ -14309,20 +14304,20 @@ const Header = styled.header`
|
|
|
14309
14304
|
display: flex;
|
|
14310
14305
|
order: 1;
|
|
14311
14306
|
padding: 0 var(--wui-space-05);
|
|
14312
|
-
padding-
|
|
14307
|
+
padding-bottom: 0;
|
|
14313
14308
|
gap: var(--wui-space-01);
|
|
14314
14309
|
justify-content: ${({ $hideTitle }) => $hideTitle ? "flex-end" : "space-between"}; /* ensure ModalCloseButton is right-aligned */
|
|
14315
14310
|
|
|
14316
14311
|
/* Dialog.Title creates an h2 element which inherits some margin */
|
|
14317
14312
|
h2 {
|
|
14318
14313
|
margin: 0;
|
|
14319
|
-
padding-
|
|
14314
|
+
padding-right: ${({ $hideCloseButon }) => $hideCloseButon ? "0" : "var(--wui-space-03)"};
|
|
14320
14315
|
}
|
|
14321
14316
|
|
|
14322
14317
|
button {
|
|
14323
14318
|
position: absolute;
|
|
14324
|
-
|
|
14325
|
-
|
|
14319
|
+
right: var(--wui-space-03);
|
|
14320
|
+
top: var(--wui-space-03);
|
|
14326
14321
|
}
|
|
14327
14322
|
`;
|
|
14328
14323
|
const Title = styled(Dialog.Title)`
|
|
@@ -14371,10 +14366,10 @@ const positionStyleMap = {
|
|
|
14371
14366
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
14372
14367
|
--wui-modal-translate-y: -50%;
|
|
14373
14368
|
|
|
14374
|
-
|
|
14375
|
-
max-
|
|
14376
|
-
|
|
14377
|
-
|
|
14369
|
+
height: auto;
|
|
14370
|
+
max-height: calc(100vh - var(--wui-modal-screen-offset) * 2);
|
|
14371
|
+
top: 50%;
|
|
14372
|
+
left: 50%;
|
|
14378
14373
|
transform: translateX(-50%) translateY(var(--wui-modal-translate-y));
|
|
14379
14374
|
transform-origin: left center;
|
|
14380
14375
|
animation: ${modalEnter} var(--wui-motion-duration-04) var(--wui-motion-ease-out);
|
|
@@ -14384,16 +14379,16 @@ const positionStyleMap = {
|
|
|
14384
14379
|
}
|
|
14385
14380
|
`,
|
|
14386
14381
|
"fixed-top": css`
|
|
14387
|
-
--wui-modal-screen-offset-top:
|
|
14388
|
-
--wui-modal-screen-offset-bottom:
|
|
14382
|
+
--wui-modal-screen-offset-top: 15vh;
|
|
14383
|
+
--wui-modal-screen-offset-bottom: 5vh;
|
|
14389
14384
|
--wui-modal-translate-y: 0%;
|
|
14390
14385
|
|
|
14391
|
-
|
|
14392
|
-
max-
|
|
14393
|
-
|
|
14386
|
+
height: auto;
|
|
14387
|
+
max-height: calc(
|
|
14388
|
+
100vh - var(--wui-modal-screen-offset-top) - var(--wui-modal-screen-offset-bottom)
|
|
14394
14389
|
);
|
|
14395
|
-
|
|
14396
|
-
|
|
14390
|
+
top: var(--wui-modal-screen-offset-top);
|
|
14391
|
+
left: 50%;
|
|
14397
14392
|
transform: translateX(-50%) translateY(var(--wui-modal-translate-y));
|
|
14398
14393
|
transform-origin: left center;
|
|
14399
14394
|
animation: ${modalEnter} var(--wui-motion-duration-04) var(--wui-motion-ease-out);
|
|
@@ -14405,9 +14400,9 @@ const positionStyleMap = {
|
|
|
14405
14400
|
"right-side-panel": css`
|
|
14406
14401
|
--wui-modal-screen-offset: var(--wui-space-05);
|
|
14407
14402
|
|
|
14408
|
-
|
|
14409
|
-
|
|
14410
|
-
|
|
14403
|
+
height: calc(100vh - var(--wui-modal-screen-offset) * 2);
|
|
14404
|
+
top: var(--wui-modal-screen-offset);
|
|
14405
|
+
right: var(--wui-modal-screen-offset);
|
|
14411
14406
|
animation: ${keyframes`
|
|
14412
14407
|
from {
|
|
14413
14408
|
opacity: 0;
|
|
@@ -14441,10 +14436,10 @@ const StyledModalContent = styled(Dialog.Popup)`
|
|
|
14441
14436
|
display: flex;
|
|
14442
14437
|
flex-direction: column;
|
|
14443
14438
|
gap: var(--wui-space-03);
|
|
14444
|
-
|
|
14445
|
-
|
|
14446
|
-
|
|
14447
|
-
|
|
14439
|
+
top: 0;
|
|
14440
|
+
left: 0;
|
|
14441
|
+
width: 100vw;
|
|
14442
|
+
height: 100vh;
|
|
14448
14443
|
z-index: var(--wui-zindex-modal);
|
|
14449
14444
|
box-sizing: border-box;
|
|
14450
14445
|
padding: var(--wui-space-05) 0;
|
|
@@ -14452,10 +14447,10 @@ const StyledModalContent = styled(Dialog.Popup)`
|
|
|
14452
14447
|
|
|
14453
14448
|
${mq.smAndUp} {
|
|
14454
14449
|
position: fixed;
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
|
|
14458
|
-
max-
|
|
14450
|
+
top: unset;
|
|
14451
|
+
left: unset;
|
|
14452
|
+
width: calc(100vw - var(--wui-space-05) * 2);
|
|
14453
|
+
max-width: ${({ $width }) => $width ?? "532px"};
|
|
14459
14454
|
border-radius: var(--wui-border-radius-03);
|
|
14460
14455
|
animation-duration: var(--wui-motion-duration-03);
|
|
14461
14456
|
animation-timing-function: var(--wui-motion-ease-out);
|
|
@@ -14515,9 +14510,9 @@ const ModalBody = styled.div`
|
|
|
14515
14510
|
`;
|
|
14516
14511
|
const ModalScrollArea = styled.div`
|
|
14517
14512
|
order: 2;
|
|
14518
|
-
max-
|
|
14519
|
-
overflow-
|
|
14520
|
-
|
|
14513
|
+
max-height: 90vh;
|
|
14514
|
+
overflow-y: auto;
|
|
14515
|
+
height: 100%;
|
|
14521
14516
|
`;
|
|
14522
14517
|
const ModalFooter = styled.footer`
|
|
14523
14518
|
padding: 0 var(--wui-space-05);
|
|
@@ -14586,7 +14581,7 @@ const ProgressBarWrapper = styled.div`
|
|
|
14586
14581
|
gap: var(--wui-space-02);
|
|
14587
14582
|
`;
|
|
14588
14583
|
const StyledTrack = styled(Progress.Track)`
|
|
14589
|
-
|
|
14584
|
+
height: 100%;
|
|
14590
14585
|
overflow: hidden;
|
|
14591
14586
|
`;
|
|
14592
14587
|
const ProgressBarLabel = styled.div`
|
|
@@ -14601,9 +14596,9 @@ const StyledProgressIndicator = styled(Progress.Indicator)`
|
|
|
14601
14596
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
14602
14597
|
background-color: var(--wui-color-bg-fill);
|
|
14603
14598
|
display: block;
|
|
14604
|
-
border-
|
|
14605
|
-
border-
|
|
14606
|
-
transition:
|
|
14599
|
+
border-top-right-radius: var(--wui-border-radius-rounded);
|
|
14600
|
+
border-bottom-right-radius: var(--wui-border-radius-rounded);
|
|
14601
|
+
transition: width 660ms cubic-bezier(0.65, 0, 0.35, 1);
|
|
14607
14602
|
`;
|
|
14608
14603
|
const StyledProgressBar = styled(Progress.Root)`
|
|
14609
14604
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
@@ -14611,8 +14606,8 @@ const StyledProgressBar = styled(Progress.Root)`
|
|
|
14611
14606
|
overflow: hidden;
|
|
14612
14607
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
14613
14608
|
border-radius: var(--wui-border-radius-rounded);
|
|
14614
|
-
|
|
14615
|
-
|
|
14609
|
+
width: 100%;
|
|
14610
|
+
height: var(--progress-bar-height);
|
|
14616
14611
|
|
|
14617
14612
|
/* Fix overflow clipping in Safari: https://gist.github.com/domske/b66047671c780a238b51c51ffde8d3a0 */
|
|
14618
14613
|
transform: translateZ(0);
|
|
@@ -14690,25 +14685,25 @@ const StyledRadioWrapper = styled.div`
|
|
|
14690
14685
|
`;
|
|
14691
14686
|
const StyledRadioInput = styled.div`
|
|
14692
14687
|
${({ $size }) => getSizeCss($size)}
|
|
14693
|
-
|
|
14694
|
-
|
|
14695
|
-
min-
|
|
14696
|
-
min-
|
|
14688
|
+
width: var(--wui-radio-size);
|
|
14689
|
+
height: var(--wui-radio-size);
|
|
14690
|
+
min-width: var(--wui-radio-size);
|
|
14691
|
+
min-height: var(--wui-radio-size);
|
|
14697
14692
|
background-color: var(--wui-radio-background-color);
|
|
14698
14693
|
box-shadow: inset 0 0 0 1px var(--wui-radio-border-color);
|
|
14699
14694
|
border-radius: 100%;
|
|
14700
14695
|
position: relative;
|
|
14701
14696
|
cursor: pointer;
|
|
14702
14697
|
transition: box-shadow var(--wui-motion-duration-03) var(--wui-motion-ease);
|
|
14703
|
-
margin-
|
|
14698
|
+
margin-top: calc(calc(1lh - var(--wui-radio-size)) / 2);
|
|
14704
14699
|
|
|
14705
14700
|
&::after {
|
|
14706
14701
|
content: '';
|
|
14707
14702
|
position: absolute;
|
|
14708
|
-
|
|
14709
|
-
|
|
14710
|
-
|
|
14711
|
-
|
|
14703
|
+
top: 50%;
|
|
14704
|
+
left: 50%;
|
|
14705
|
+
width: 50%;
|
|
14706
|
+
height: 50%;
|
|
14712
14707
|
background-color: var(--wui-radio-icon-color);
|
|
14713
14708
|
border-radius: 100%;
|
|
14714
14709
|
transform: translate(-50%, -50%);
|
|
@@ -14793,9 +14788,9 @@ const imageCoverStyles = css`
|
|
|
14793
14788
|
&::after {
|
|
14794
14789
|
content: '';
|
|
14795
14790
|
position: absolute;
|
|
14796
|
-
|
|
14797
|
-
|
|
14798
|
-
|
|
14791
|
+
top: 0;
|
|
14792
|
+
width: 100%;
|
|
14793
|
+
height: 100%;
|
|
14799
14794
|
border-radius: var(--wui-radio-card-border-radius);
|
|
14800
14795
|
box-shadow:
|
|
14801
14796
|
inset 0 0 0 var(--wui-inset-shadow-width) var(--wui-radio-card-border-color),
|
|
@@ -14898,10 +14893,10 @@ const RadioCardIndicator = styled.div`
|
|
|
14898
14893
|
/* TODO: figure out radio / checkbox / switch colors */
|
|
14899
14894
|
--wui-radio-card-indicator-border-color: var(--wui-color-border-secondary-active);
|
|
14900
14895
|
|
|
14901
|
-
|
|
14902
|
-
|
|
14903
|
-
min-
|
|
14904
|
-
min-
|
|
14896
|
+
width: var(--wui-radio-card-indicator-size);
|
|
14897
|
+
height: var(--wui-radio-card-indicator-size);
|
|
14898
|
+
min-width: var(--wui-radio-card-indicator-size);
|
|
14899
|
+
min-height: var(--wui-radio-card-indicator-size);
|
|
14905
14900
|
background-color: var(--wui-radio-card-indicator-background-color);
|
|
14906
14901
|
box-shadow: inset 0 0 0 1px var(--wui-radio-card-indicator-border-color);
|
|
14907
14902
|
border-radius: 100%;
|
|
@@ -14912,10 +14907,10 @@ const RadioCardIndicator = styled.div`
|
|
|
14912
14907
|
&::after {
|
|
14913
14908
|
content: '';
|
|
14914
14909
|
position: absolute;
|
|
14915
|
-
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
|
|
14910
|
+
top: 50%;
|
|
14911
|
+
left: 50%;
|
|
14912
|
+
width: 0;
|
|
14913
|
+
height: 0;
|
|
14919
14914
|
background-color: var(--wui-radio-card-indicator-fill-color);
|
|
14920
14915
|
border-radius: 100%;
|
|
14921
14916
|
transform: translate(-50%, -50%);
|
|
@@ -14926,8 +14921,8 @@ const RadioCardIndicator = styled.div`
|
|
|
14926
14921
|
--wui-radio-card-indicator-fill-color: var(--wui-color-focus-ring);
|
|
14927
14922
|
|
|
14928
14923
|
&::after {
|
|
14929
|
-
|
|
14930
|
-
|
|
14924
|
+
width: calc(var(--wui-radio-card-indicator-size) / 2);
|
|
14925
|
+
height: calc(var(--wui-radio-card-indicator-size) / 2);
|
|
14931
14926
|
}
|
|
14932
14927
|
}
|
|
14933
14928
|
|
|
@@ -14949,12 +14944,12 @@ const StyledCardIcon = styled.div`
|
|
|
14949
14944
|
`;
|
|
14950
14945
|
const StyledGatedIcon = styled.div`
|
|
14951
14946
|
position: absolute;
|
|
14952
|
-
|
|
14953
|
-
|
|
14947
|
+
right: 10px;
|
|
14948
|
+
top: 10px;
|
|
14954
14949
|
z-index: 1;
|
|
14955
14950
|
`;
|
|
14956
14951
|
const StyledIndicatorContainer = styled.div`
|
|
14957
|
-
|
|
14952
|
+
height: ${({ $hasIcon }) => $hasIcon ? "24px" : "16px"};
|
|
14958
14953
|
display: flex;
|
|
14959
14954
|
align-items: center;
|
|
14960
14955
|
`;
|
|
@@ -15045,8 +15040,8 @@ const Container = styled.div`
|
|
|
15045
15040
|
`;
|
|
15046
15041
|
const ScrollContainer = styled.div`
|
|
15047
15042
|
overflow: ${({ $locked }) => $locked ? "hidden" : "auto"};
|
|
15048
|
-
|
|
15049
|
-
|
|
15043
|
+
height: 100%;
|
|
15044
|
+
width: 100%;
|
|
15050
15045
|
`;
|
|
15051
15046
|
const Shadow = styled.div`
|
|
15052
15047
|
pointer-events: none;
|
|
@@ -15057,31 +15052,31 @@ const Shadow = styled.div`
|
|
|
15057
15052
|
`;
|
|
15058
15053
|
const ShadowAtTop = styled(Shadow)`
|
|
15059
15054
|
transform: translateY(-${SHADOW_SIZE_PX}px);
|
|
15060
|
-
|
|
15061
|
-
|
|
15062
|
-
|
|
15063
|
-
|
|
15055
|
+
height: 0;
|
|
15056
|
+
left: 0;
|
|
15057
|
+
right: 0;
|
|
15058
|
+
top: 0;
|
|
15064
15059
|
`;
|
|
15065
15060
|
const ShadowAtBottom = styled(Shadow)`
|
|
15066
15061
|
transform: translateY(${SHADOW_SIZE_PX}px);
|
|
15067
|
-
|
|
15068
|
-
|
|
15069
|
-
|
|
15070
|
-
|
|
15062
|
+
bottom: 0;
|
|
15063
|
+
height: 0;
|
|
15064
|
+
left: 0;
|
|
15065
|
+
right: 0;
|
|
15071
15066
|
`;
|
|
15072
15067
|
const ShadowAtLeft = styled(Shadow)`
|
|
15073
15068
|
transform: translateX(-${SHADOW_SIZE_PX}px);
|
|
15074
|
-
|
|
15075
|
-
|
|
15076
|
-
|
|
15077
|
-
|
|
15069
|
+
bottom: 0;
|
|
15070
|
+
left: 0;
|
|
15071
|
+
top: 0;
|
|
15072
|
+
width: 0;
|
|
15078
15073
|
`;
|
|
15079
15074
|
const ShadowAtRight = styled(Shadow)`
|
|
15080
15075
|
transform: translateX(${SHADOW_SIZE_PX}px);
|
|
15081
|
-
|
|
15082
|
-
|
|
15083
|
-
|
|
15084
|
-
|
|
15076
|
+
bottom: 0;
|
|
15077
|
+
right: 0;
|
|
15078
|
+
top: 0;
|
|
15079
|
+
width: 0;
|
|
15085
15080
|
`;
|
|
15086
15081
|
/**
|
|
15087
15082
|
* ScrollArea is a simple scrollable container with shadow effects to indicate
|
|
@@ -15172,12 +15167,12 @@ const selectedItemIndicatorStyles = css`
|
|
|
15172
15167
|
`;
|
|
15173
15168
|
const SelectedItemIndicatorDiv = styled.div`
|
|
15174
15169
|
${selectedItemIndicatorStyles}
|
|
15175
|
-
|
|
15170
|
+
left: 0;
|
|
15176
15171
|
position: absolute;
|
|
15177
|
-
|
|
15172
|
+
top: 50%;
|
|
15178
15173
|
transition:
|
|
15179
15174
|
transform var(--wui-motion-duration-02) var(--wui-motion-ease-out),
|
|
15180
|
-
|
|
15175
|
+
width var(--wui-motion-duration-02) var(--wui-motion-ease-out);
|
|
15181
15176
|
z-index: var(--wui-zindex-under);
|
|
15182
15177
|
`;
|
|
15183
15178
|
const SelectedItemIndicator = () => {
|
|
@@ -15203,7 +15198,7 @@ const segmentedControlStyles = css`
|
|
|
15203
15198
|
overflow: hidden;
|
|
15204
15199
|
padding: 2px;
|
|
15205
15200
|
position: relative;
|
|
15206
|
-
|
|
15201
|
+
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
15207
15202
|
`;
|
|
15208
15203
|
const StyledSegmentedControl = styled(ToggleGroup)`
|
|
15209
15204
|
${segmentedControlStyles}
|
|
@@ -15252,8 +15247,8 @@ const segmentedControlItemStyles = css`
|
|
|
15252
15247
|
|
|
15253
15248
|
/* Icon component */
|
|
15254
15249
|
svg {
|
|
15255
|
-
|
|
15256
|
-
|
|
15250
|
+
height: 16px;
|
|
15251
|
+
width: 16px;
|
|
15257
15252
|
flex: 0 0 16px;
|
|
15258
15253
|
|
|
15259
15254
|
/* add right margin if there's a label and an icon */
|
|
@@ -15359,13 +15354,13 @@ const StyledTrigger = styled(Select$1.Trigger)`
|
|
|
15359
15354
|
outline: 1px solid var(--wui-input-color-border);
|
|
15360
15355
|
outline-offset: -2px;
|
|
15361
15356
|
border-radius: var(--wui-input-border-radius);
|
|
15362
|
-
min-
|
|
15363
|
-
text-align:
|
|
15357
|
+
min-width: 200px;
|
|
15358
|
+
text-align: left;
|
|
15364
15359
|
display: inline-flex;
|
|
15365
15360
|
align-items: center;
|
|
15366
15361
|
justify-content: space-between;
|
|
15367
|
-
max-
|
|
15368
|
-
|
|
15362
|
+
max-width: 100%;
|
|
15363
|
+
width: ${({ $fullWidth = false }) => $fullWidth ? "100%" : "auto"};
|
|
15369
15364
|
font-size: var(--wui-input-font-size);
|
|
15370
15365
|
line-height: var(--wui-input-line-height);
|
|
15371
15366
|
color: var(--wui-input-color-text);
|
|
@@ -15417,8 +15412,8 @@ const StyledPopup = styled(Select$1.Popup)`
|
|
|
15417
15412
|
border-radius: var(--wui-select-content-border-radius);
|
|
15418
15413
|
box-shadow: var(--wui-elevation-01);
|
|
15419
15414
|
padding: var(--wui-select-option-padding);
|
|
15420
|
-
min-
|
|
15421
|
-
max-
|
|
15415
|
+
min-width: var(--anchor-width);
|
|
15416
|
+
max-height: var(--available-height);
|
|
15422
15417
|
|
|
15423
15418
|
[role='separator'] {
|
|
15424
15419
|
margin: var(--wui-space-02) 0;
|
|
@@ -15432,12 +15427,12 @@ const scrollButtonStyles = css`
|
|
|
15432
15427
|
const StyledScrollDownArrow = styled(Select$1.ScrollDownArrow)`
|
|
15433
15428
|
${scrollButtonStyles}
|
|
15434
15429
|
position: sticky !important;
|
|
15435
|
-
|
|
15430
|
+
bottom: 0;
|
|
15436
15431
|
`;
|
|
15437
15432
|
const StyledScrollUpArrow = styled(Select$1.ScrollUpArrow)`
|
|
15438
15433
|
${scrollButtonStyles}
|
|
15439
15434
|
position: sticky !important;
|
|
15440
|
-
|
|
15435
|
+
top: 0;
|
|
15441
15436
|
`;
|
|
15442
15437
|
/**
|
|
15443
15438
|
* Recursively extracts string text from a React children tree. Lets us build
|
|
@@ -15615,10 +15610,10 @@ const StyledSidebar = styled.nav`
|
|
|
15615
15610
|
|
|
15616
15611
|
display: flex;
|
|
15617
15612
|
flex-direction: column;
|
|
15618
|
-
|
|
15613
|
+
width: 260px;
|
|
15619
15614
|
background: var(--wui-color-bg-surface);
|
|
15620
15615
|
overflow: hidden;
|
|
15621
|
-
border-
|
|
15616
|
+
border-right: 1px solid var(--wui-color-border);
|
|
15622
15617
|
`;
|
|
15623
15618
|
const Sidebar = ({ children, ref, ...props }) => {
|
|
15624
15619
|
return /* @__PURE__ */ jsx(StyledSidebar, {
|
|
@@ -15632,7 +15627,7 @@ const Sidebar = ({ children, ref, ...props }) => {
|
|
|
15632
15627
|
const StyledSidebarHeader = styled.div`
|
|
15633
15628
|
display: flex;
|
|
15634
15629
|
flex-direction: column;
|
|
15635
|
-
|
|
15630
|
+
width: 100%;
|
|
15636
15631
|
padding-block: var(--wui-sidebar-padding-block);
|
|
15637
15632
|
padding-inline: var(--wui-sidebar-padding-inline);
|
|
15638
15633
|
`;
|
|
@@ -15648,7 +15643,7 @@ SidebarHeader.displayName = "SidebarHeader_UI";
|
|
|
15648
15643
|
const StyledSidebarFooter = styled.div`
|
|
15649
15644
|
display: flex;
|
|
15650
15645
|
flex-direction: column;
|
|
15651
|
-
|
|
15646
|
+
width: 100%;
|
|
15652
15647
|
padding-block: var(--wui-sidebar-padding-block);
|
|
15653
15648
|
padding-inline: var(--wui-sidebar-padding-inline);
|
|
15654
15649
|
`;
|
|
@@ -15662,7 +15657,7 @@ SidebarFooter.displayName = "SidebarFooter_UI";
|
|
|
15662
15657
|
//#endregion
|
|
15663
15658
|
//#region src/components/Sidebar/SidebarTitle.tsx
|
|
15664
15659
|
const StyledSidebarTitle = styled(Heading)`
|
|
15665
|
-
padding-
|
|
15660
|
+
padding-left: var(--wui-sidebar-item-inset);
|
|
15666
15661
|
`;
|
|
15667
15662
|
const SidebarTitle = ({ children }) => {
|
|
15668
15663
|
return /* @__PURE__ */ jsx(StyledSidebarTitle, {
|
|
@@ -15677,10 +15672,10 @@ const StyledSidebarContent = styled(ScrollArea)`
|
|
|
15677
15672
|
display: flex;
|
|
15678
15673
|
flex-direction: column;
|
|
15679
15674
|
flex: 1 1 auto;
|
|
15680
|
-
min-
|
|
15675
|
+
min-height: 0;
|
|
15681
15676
|
gap: var(--wui-sidebar-group-gap);
|
|
15682
|
-
padding-
|
|
15683
|
-
padding-
|
|
15677
|
+
padding-top: var(--wui-sidebar-content-top-padding);
|
|
15678
|
+
padding-bottom: var(--wui-sidebar-content-bottom-padding);
|
|
15684
15679
|
padding-inline: var(--wui-sidebar-padding-inline);
|
|
15685
15680
|
`;
|
|
15686
15681
|
const SidebarContent = ({ children }) => {
|
|
@@ -15695,9 +15690,9 @@ SidebarContent.displayName = "SidebarContent_UI";
|
|
|
15695
15690
|
const StyledSidebarGroupLabel = styled.div`
|
|
15696
15691
|
display: flex;
|
|
15697
15692
|
align-items: center;
|
|
15698
|
-
min-
|
|
15693
|
+
min-height: 24px;
|
|
15699
15694
|
padding-inline: var(--wui-sidebar-item-inset);
|
|
15700
|
-
|
|
15695
|
+
width: 100%;
|
|
15701
15696
|
justify-content: space-between;
|
|
15702
15697
|
gap: var(--wui-space-02);
|
|
15703
15698
|
`;
|
|
@@ -15759,8 +15754,8 @@ const StyledSidebarButton = styled(Button)`
|
|
|
15759
15754
|
--button-label-padding-horizontal: var(--wui-space-00);
|
|
15760
15755
|
|
|
15761
15756
|
padding-inline: var(--wui-sidebar-item-inset);
|
|
15762
|
-
text-align:
|
|
15763
|
-
|
|
15757
|
+
text-align: left;
|
|
15758
|
+
width: 100%;
|
|
15764
15759
|
|
|
15765
15760
|
&[aria-current] {
|
|
15766
15761
|
${pressedButtonVariant};
|
|
@@ -15797,7 +15792,7 @@ const SidebarSearchInput = ({ id, label = "Search navigation", ref, ...props })
|
|
|
15797
15792
|
//#endregion
|
|
15798
15793
|
//#region src/components/Slider/Slider.tsx
|
|
15799
15794
|
const SliderContainer = styled.div`
|
|
15800
|
-
|
|
15795
|
+
width: 100%;
|
|
15801
15796
|
|
|
15802
15797
|
--wui-slider-track-color: var(--wui-gray-6);
|
|
15803
15798
|
--wui-slider-track-border-radius: var(--wui-border-radius-rounded);
|
|
@@ -15815,20 +15810,20 @@ const SliderContainer = styled.div`
|
|
|
15815
15810
|
}
|
|
15816
15811
|
`;
|
|
15817
15812
|
const StyledSliderRoot = styled(Slider$1.Root)`
|
|
15818
|
-
|
|
15813
|
+
width: 100%;
|
|
15819
15814
|
`;
|
|
15820
15815
|
const StyledSliderControl = styled(Slider$1.Control)`
|
|
15821
15816
|
display: flex;
|
|
15822
15817
|
align-items: center;
|
|
15823
15818
|
user-select: none;
|
|
15824
15819
|
touch-action: none;
|
|
15825
|
-
|
|
15820
|
+
width: 100%;
|
|
15826
15821
|
`;
|
|
15827
15822
|
const StyledSliderTrack = styled(Slider$1.Track)`
|
|
15828
15823
|
background-color: var(--wui-slider-track-color);
|
|
15829
15824
|
border-radius: var(--wui-slider-track-border-radius);
|
|
15830
|
-
|
|
15831
|
-
|
|
15825
|
+
width: 100%;
|
|
15826
|
+
height: 6px;
|
|
15832
15827
|
position: relative;
|
|
15833
15828
|
`;
|
|
15834
15829
|
const StyledSliderIndicator = styled(Slider$1.Indicator)`
|
|
@@ -15840,14 +15835,14 @@ const StyledSliderThumb = styled(Slider$1.Thumb)`
|
|
|
15840
15835
|
border-radius: var(--wui-border-radius-rounded);
|
|
15841
15836
|
cursor: grab;
|
|
15842
15837
|
display: block;
|
|
15843
|
-
|
|
15838
|
+
height: 16px;
|
|
15844
15839
|
outline-color: var(--wui-slider-thumb-border-color);
|
|
15845
15840
|
outline-style: solid;
|
|
15846
15841
|
outline-width: 1px;
|
|
15847
15842
|
transition-duration: 70ms;
|
|
15848
15843
|
transition-property: border-width, box-shadow, transform;
|
|
15849
15844
|
transition-timing-function: var(--wui-motion-ease-out);
|
|
15850
|
-
|
|
15845
|
+
width: 16px;
|
|
15851
15846
|
|
|
15852
15847
|
&:hover,
|
|
15853
15848
|
&:active {
|
|
@@ -15902,14 +15897,14 @@ const StyledSplitButton = styled.span`
|
|
|
15902
15897
|
|
|
15903
15898
|
&:has(:nth-child(2)) {
|
|
15904
15899
|
& > [data-wui-button='true']:first-child {
|
|
15905
|
-
border-
|
|
15906
|
-
border-
|
|
15907
|
-
padding-
|
|
15900
|
+
border-top-right-radius: 0;
|
|
15901
|
+
border-bottom-right-radius: 0;
|
|
15902
|
+
padding-right: 0;
|
|
15908
15903
|
}
|
|
15909
15904
|
|
|
15910
15905
|
& > [data-wui-button='true']:not(:first-child) {
|
|
15911
|
-
border-
|
|
15912
|
-
border-
|
|
15906
|
+
border-top-left-radius: 0;
|
|
15907
|
+
border-bottom-left-radius: 0;
|
|
15913
15908
|
display: inline-flex;
|
|
15914
15909
|
}
|
|
15915
15910
|
}
|
|
@@ -15958,12 +15953,12 @@ SplitButton.displayName = "SplitButton_UI";
|
|
|
15958
15953
|
//#endregion
|
|
15959
15954
|
//#region src/components/Table/Table.tsx
|
|
15960
15955
|
const StyledTable = styled.table`
|
|
15961
|
-
|
|
15956
|
+
width: 100%;
|
|
15962
15957
|
border-collapse: collapse;
|
|
15963
15958
|
|
|
15964
15959
|
${({ $divided }) => $divided && css`
|
|
15965
15960
|
tr {
|
|
15966
|
-
border-
|
|
15961
|
+
border-bottom: 1px solid var(--wui-color-border);
|
|
15967
15962
|
}
|
|
15968
15963
|
`}
|
|
15969
15964
|
|
|
@@ -16000,7 +15995,7 @@ const TableSectionContext = createContext(null);
|
|
|
16000
15995
|
//#endregion
|
|
16001
15996
|
//#region src/components/Table/TableBody.tsx
|
|
16002
15997
|
const StyledTableBody = styled.tbody`
|
|
16003
|
-
|
|
15998
|
+
width: 100%;
|
|
16004
15999
|
`;
|
|
16005
16000
|
const TableBody = ({ children, ...props }) => {
|
|
16006
16001
|
return /* @__PURE__ */ jsx(TableSectionContext, {
|
|
@@ -16016,7 +16011,7 @@ const TableBody = ({ children, ...props }) => {
|
|
|
16016
16011
|
const sharedStyles = css`
|
|
16017
16012
|
color: var(--wui-color-text);
|
|
16018
16013
|
padding: var(--wui-space-02);
|
|
16019
|
-
text-align:
|
|
16014
|
+
text-align: left;
|
|
16020
16015
|
`;
|
|
16021
16016
|
const StyledTh = styled.th`
|
|
16022
16017
|
${sharedStyles}
|
|
@@ -16043,7 +16038,7 @@ const TableCell = ({ children, ...props }) => {
|
|
|
16043
16038
|
//#endregion
|
|
16044
16039
|
//#region src/components/Table/TableFoot.tsx
|
|
16045
16040
|
const StyledTableFoot = styled.tfoot`
|
|
16046
|
-
|
|
16041
|
+
width: 100%;
|
|
16047
16042
|
`;
|
|
16048
16043
|
const TableFoot = ({ children, ...props }) => {
|
|
16049
16044
|
return /* @__PURE__ */ jsx(TableSectionContext, {
|
|
@@ -16057,7 +16052,7 @@ const TableFoot = ({ children, ...props }) => {
|
|
|
16057
16052
|
//#endregion
|
|
16058
16053
|
//#region src/components/Table/TableHead.tsx
|
|
16059
16054
|
const StyledThead = styled.thead`
|
|
16060
|
-
|
|
16055
|
+
width: 100%;
|
|
16061
16056
|
`;
|
|
16062
16057
|
const TableHead = ({ children, ...props }) => {
|
|
16063
16058
|
return /* @__PURE__ */ jsx(TableSectionContext, {
|
|
@@ -16071,7 +16066,7 @@ const TableHead = ({ children, ...props }) => {
|
|
|
16071
16066
|
//#endregion
|
|
16072
16067
|
//#region src/components/Table/TableRow.tsx
|
|
16073
16068
|
const StyledTableRow = styled.tr`
|
|
16074
|
-
|
|
16069
|
+
width: 100%;
|
|
16075
16070
|
`;
|
|
16076
16071
|
const TableRow = ({ children, ...props }) => {
|
|
16077
16072
|
return /* @__PURE__ */ jsx(StyledTableRow, {
|
|
@@ -16211,7 +16206,7 @@ const StyledThumbnailBadge = styled.div`
|
|
|
16211
16206
|
align-items: center;
|
|
16212
16207
|
background-color: rgb(0 0 0 / 50%);
|
|
16213
16208
|
border-radius: var(--wui-border-radius-01);
|
|
16214
|
-
|
|
16209
|
+
bottom: var(--wui-thumbnail-badge-offset, var(--wui-space-01));
|
|
16215
16210
|
color: var(--wui-color-text-on-fill);
|
|
16216
16211
|
display: flex;
|
|
16217
16212
|
font-size: var(--wui-typography-body-4-size);
|
|
@@ -16219,12 +16214,12 @@ const StyledThumbnailBadge = styled.div`
|
|
|
16219
16214
|
gap: var(--wui-space-01);
|
|
16220
16215
|
padding: 0 var(--wui-space-01);
|
|
16221
16216
|
position: absolute;
|
|
16222
|
-
|
|
16217
|
+
right: var(--wui-thumbnail-badge-offset, var(--wui-space-01));
|
|
16223
16218
|
z-index: 1;
|
|
16224
16219
|
|
|
16225
16220
|
svg {
|
|
16226
|
-
|
|
16227
|
-
|
|
16221
|
+
height: 12px;
|
|
16222
|
+
width: 12px;
|
|
16228
16223
|
flex: 0 0 12px;
|
|
16229
16224
|
|
|
16230
16225
|
& path {
|
|
@@ -16243,9 +16238,9 @@ ThumbnailBadge.displayName = "ThumbnailBadge_UI";
|
|
|
16243
16238
|
//#region src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
|
|
16244
16239
|
const ScrubLine = styled.div`
|
|
16245
16240
|
position: absolute;
|
|
16246
|
-
|
|
16247
|
-
|
|
16248
|
-
|
|
16241
|
+
top: 0;
|
|
16242
|
+
height: 100%;
|
|
16243
|
+
width: 2px;
|
|
16249
16244
|
background-color: var(--wui-color-bg-fill);
|
|
16250
16245
|
z-index: 1;
|
|
16251
16246
|
`;
|
|
@@ -16323,14 +16318,14 @@ const getAspectRatioValue = (aspectRatio) => {
|
|
|
16323
16318
|
return WIDE_ASPECT_RATIO;
|
|
16324
16319
|
};
|
|
16325
16320
|
const WideThumbnailImage = styled.img`
|
|
16326
|
-
|
|
16321
|
+
height: 100%;
|
|
16327
16322
|
object-fit: cover;
|
|
16328
|
-
|
|
16323
|
+
width: 100%;
|
|
16329
16324
|
`;
|
|
16330
16325
|
const SquareThumbnailImage = styled.img`
|
|
16331
16326
|
backdrop-filter: blur(8px);
|
|
16332
16327
|
object-fit: contain;
|
|
16333
|
-
|
|
16328
|
+
width: 100%;
|
|
16334
16329
|
`;
|
|
16335
16330
|
const ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
16336
16331
|
if (thumbnailImageType === "wide") return /* @__PURE__ */ jsx(WideThumbnailImage, {
|
|
@@ -16347,7 +16342,7 @@ const ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
16347
16342
|
const StyledThumbnailContainer = styled.div`
|
|
16348
16343
|
container-type: size;
|
|
16349
16344
|
aspect-ratio: ${({ $aspectRatio }) => getAspectRatioValue($aspectRatio)};
|
|
16350
|
-
|
|
16345
|
+
width: ${({ $width }) => $width};
|
|
16351
16346
|
display: flex;
|
|
16352
16347
|
overflow: hidden;
|
|
16353
16348
|
${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
|
|
@@ -16360,13 +16355,13 @@ const StyledThumbnail = styled.div`
|
|
|
16360
16355
|
background-position: center center;
|
|
16361
16356
|
background-size: cover;
|
|
16362
16357
|
display: flex;
|
|
16363
|
-
|
|
16358
|
+
width: 100%;
|
|
16364
16359
|
overflow: hidden;
|
|
16365
16360
|
position: relative;
|
|
16366
16361
|
|
|
16367
16362
|
&,
|
|
16368
16363
|
img {
|
|
16369
|
-
border-radius: clamp(var(--wui-border-radius-01),
|
|
16364
|
+
border-radius: clamp(var(--wui-border-radius-01), 8cqh, var(--wui-border-radius-05));
|
|
16370
16365
|
}
|
|
16371
16366
|
|
|
16372
16367
|
@container (min-width: 200px) {
|
|
@@ -16481,14 +16476,14 @@ const Thumbnail = ({ gradientBackground = "defaultMidOne", thumbnailImageType =
|
|
|
16481
16476
|
//#region src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
16482
16477
|
const ThumbnailCollageContainer = styled.div`
|
|
16483
16478
|
container-type: size;
|
|
16484
|
-
|
|
16479
|
+
width: 100%;
|
|
16485
16480
|
aspect-ratio: 16 / 9;
|
|
16486
16481
|
display: flex;
|
|
16487
16482
|
`;
|
|
16488
16483
|
const StyledThumbnailCollage = styled.div`
|
|
16489
16484
|
display: grid;
|
|
16490
16485
|
gap: var(--wui-space-01);
|
|
16491
|
-
|
|
16486
|
+
width: 100%;
|
|
16492
16487
|
grid-template-columns: 3fr 2fr;
|
|
16493
16488
|
grid-template-rows: 1fr 1fr;
|
|
16494
16489
|
|
|
@@ -16525,8 +16520,8 @@ const StyledThumbnailCollage = styled.div`
|
|
|
16525
16520
|
[data-wui-thumbnail-container] {
|
|
16526
16521
|
container-type: unset;
|
|
16527
16522
|
aspect-ratio: unset;
|
|
16528
|
-
|
|
16529
|
-
|
|
16523
|
+
height: 100%;
|
|
16524
|
+
width: 100%;
|
|
16530
16525
|
}
|
|
16531
16526
|
`;
|
|
16532
16527
|
const DEFAULT_CHILDREN = [];
|
|
@@ -16581,11 +16576,11 @@ const computedViewBox = (iconOnly) => {
|
|
|
16581
16576
|
return "0 0 144 31.47";
|
|
16582
16577
|
};
|
|
16583
16578
|
const WistiaLogoComponent = styled.svg`
|
|
16584
|
-
|
|
16579
|
+
height: ${({ height }) => `${height}px`};
|
|
16585
16580
|
|
|
16586
16581
|
/* ensure it will always fit on mobile */
|
|
16587
|
-
max-
|
|
16588
|
-
max-
|
|
16582
|
+
max-height: 22vw;
|
|
16583
|
+
max-width: 100%;
|
|
16589
16584
|
|
|
16590
16585
|
&:hover {
|
|
16591
16586
|
& path {
|