@wistia/ui 0.14.13 → 0.14.15
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 +98 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +63 -3
- package/dist/index.d.ts +63 -3
- package/dist/index.mjs +94 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.14.
|
|
3
|
+
* @license @wistia/ui v0.14.15
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -76,6 +76,10 @@ __export(index_exports, {
|
|
|
76
76
|
DataCardHoverArrow: () => DataCardHoverArrow,
|
|
77
77
|
DataCardTrend: () => DataCardTrend,
|
|
78
78
|
DataCards: () => DataCards,
|
|
79
|
+
DataList: () => DataList,
|
|
80
|
+
DataListItem: () => DataListItem,
|
|
81
|
+
DataListItemLabel: () => DataListItemLabel,
|
|
82
|
+
DataListItemValue: () => DataListItemValue,
|
|
79
83
|
Divider: () => Divider,
|
|
80
84
|
EditableHeading: () => EditableHeading,
|
|
81
85
|
Ellipsis: () => Ellipsis,
|
|
@@ -7294,7 +7298,7 @@ var StyledLink = import_styled_components20.default.a`
|
|
|
7294
7298
|
${({ href }) => (0, import_type_guards14.isNil)(href) && buttonResetCss};
|
|
7295
7299
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
7296
7300
|
cursor: ${({ $disabled }) => $disabled ? "not-allowed" : "pointer"};
|
|
7297
|
-
font-family:
|
|
7301
|
+
font-family: inherit;
|
|
7298
7302
|
color: ${({ $disabled }) => $disabled ? "var(--wui-color-text-disabled)" : "var(--wui-color-text-link)"};
|
|
7299
7303
|
text-decoration: ${({ $underline }) => $underline === "always" ? "underline" : "none"};
|
|
7300
7304
|
display: inline-flex;
|
|
@@ -14757,8 +14761,6 @@ var import_type_guards52 = require("@wistia/type-guards");
|
|
|
14757
14761
|
var import_jsx_runtime285 = require("react/jsx-runtime");
|
|
14758
14762
|
var ProgressBarWrapper = import_styled_components92.default.div`
|
|
14759
14763
|
--progress-bar-height: 8px;
|
|
14760
|
-
--progress-bar-indicator-color: var(--wui-color-bg-fill);
|
|
14761
|
-
--progress-bar-background-color: var(--wui-color-bg-surface-secondary);
|
|
14762
14764
|
|
|
14763
14765
|
display: flex;
|
|
14764
14766
|
align-items: center;
|
|
@@ -14780,7 +14782,8 @@ var ProgressBarLabel = import_styled_components92.default.div`
|
|
|
14780
14782
|
flex-shrink: 0;
|
|
14781
14783
|
`;
|
|
14782
14784
|
var StyledProgressIndicator = (0, import_styled_components92.default)(import_react_progress.Indicator)`
|
|
14783
|
-
|
|
14785
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
14786
|
+
background-color: var(--wui-color-bg-fill);
|
|
14784
14787
|
width: 100%;
|
|
14785
14788
|
height: 100%;
|
|
14786
14789
|
border-top-right-radius: var(--wui-border-radius-rounded);
|
|
@@ -14789,9 +14792,10 @@ var StyledProgressIndicator = (0, import_styled_components92.default)(import_rea
|
|
|
14789
14792
|
transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
|
|
14790
14793
|
`;
|
|
14791
14794
|
var StyledProgressBar = (0, import_styled_components92.default)(import_react_progress.Root)`
|
|
14795
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
14792
14796
|
position: relative;
|
|
14793
14797
|
overflow: hidden;
|
|
14794
|
-
background: var(--
|
|
14798
|
+
background-color: var(--wui-color-bg-surface-secondary);
|
|
14795
14799
|
border-radius: var(--wui-border-radius-rounded);
|
|
14796
14800
|
width: 100%;
|
|
14797
14801
|
height: var(--progress-bar-height);
|
|
@@ -14805,6 +14809,7 @@ var ProgressBar = ({
|
|
|
14805
14809
|
children,
|
|
14806
14810
|
labelLeft,
|
|
14807
14811
|
labelRight,
|
|
14812
|
+
colorScheme = "inherit",
|
|
14808
14813
|
...props
|
|
14809
14814
|
}) => {
|
|
14810
14815
|
return /* @__PURE__ */ (0, import_jsx_runtime285.jsxs)(ProgressBarWrapper, { children: [
|
|
@@ -14812,12 +14817,14 @@ var ProgressBar = ({
|
|
|
14812
14817
|
/* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
|
|
14813
14818
|
StyledProgressBar,
|
|
14814
14819
|
{
|
|
14820
|
+
$colorScheme: colorScheme,
|
|
14815
14821
|
max,
|
|
14816
14822
|
value: progress,
|
|
14817
14823
|
...props,
|
|
14818
14824
|
children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
|
|
14819
14825
|
StyledProgressIndicator,
|
|
14820
14826
|
{
|
|
14827
|
+
$colorScheme: colorScheme,
|
|
14821
14828
|
$max: max,
|
|
14822
14829
|
$progress: progress
|
|
14823
14830
|
}
|
|
@@ -17028,6 +17035,87 @@ var ContextMenu = ({
|
|
|
17028
17035
|
}
|
|
17029
17036
|
) : null;
|
|
17030
17037
|
};
|
|
17038
|
+
|
|
17039
|
+
// src/components/DataList/DataList.tsx
|
|
17040
|
+
var import_styled_components121 = __toESM(require("styled-components"));
|
|
17041
|
+
var import_jsx_runtime317 = require("react/jsx-runtime");
|
|
17042
|
+
var StyledDataList = import_styled_components121.default.dl`
|
|
17043
|
+
display: grid;
|
|
17044
|
+
grid-template-columns: auto 1fr;
|
|
17045
|
+
column-gap: var(--wui-space-02);
|
|
17046
|
+
row-gap: var(--wui-space-04);
|
|
17047
|
+
align-items: baseline;
|
|
17048
|
+
align-content: start;
|
|
17049
|
+
|
|
17050
|
+
dt {
|
|
17051
|
+
margin: 0;
|
|
17052
|
+
padding: 0;
|
|
17053
|
+
font-weight: var(--wui-datalist-label-prominence);
|
|
17054
|
+
width: var(--wui-datalist-label-max-width, auto);
|
|
17055
|
+
}
|
|
17056
|
+
|
|
17057
|
+
dd {
|
|
17058
|
+
margin: 0;
|
|
17059
|
+
padding: 0;
|
|
17060
|
+
text-align: var(--wui-datalist-value-alignment, start);
|
|
17061
|
+
}
|
|
17062
|
+
`;
|
|
17063
|
+
var DataList = ({
|
|
17064
|
+
children,
|
|
17065
|
+
valueAlignment = "start",
|
|
17066
|
+
labelMaxWith = "auto",
|
|
17067
|
+
labelProminence = "primary",
|
|
17068
|
+
...props
|
|
17069
|
+
}) => {
|
|
17070
|
+
return /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
|
|
17071
|
+
StyledDataList,
|
|
17072
|
+
{
|
|
17073
|
+
role: "list",
|
|
17074
|
+
style: {
|
|
17075
|
+
"--wui-datalist-label-max-width": labelMaxWith,
|
|
17076
|
+
"--wui-datalist-value-alignment": valueAlignment === "end" ? "right" : "left",
|
|
17077
|
+
"--wui-datalist-label-prominence": labelProminence === "secondary" ? "var(--wui-typography-weight-label)" : "var(--wui-typography-weight-label-bold)"
|
|
17078
|
+
},
|
|
17079
|
+
...props,
|
|
17080
|
+
children
|
|
17081
|
+
}
|
|
17082
|
+
);
|
|
17083
|
+
};
|
|
17084
|
+
DataList.displayName = "DataList_UI";
|
|
17085
|
+
|
|
17086
|
+
// src/components/DataList/DataListItem.tsx
|
|
17087
|
+
var DataListItem = ({ children }) => {
|
|
17088
|
+
return children;
|
|
17089
|
+
};
|
|
17090
|
+
DataListItem.displayName = "DataListItem_UI";
|
|
17091
|
+
|
|
17092
|
+
// src/components/DataList/DataListItemLabel.tsx
|
|
17093
|
+
var import_jsx_runtime318 = require("react/jsx-runtime");
|
|
17094
|
+
var DataListItemLabel = (props) => {
|
|
17095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
|
|
17096
|
+
Text,
|
|
17097
|
+
{
|
|
17098
|
+
variant: "label4",
|
|
17099
|
+
...props,
|
|
17100
|
+
renderAs: "dt"
|
|
17101
|
+
}
|
|
17102
|
+
);
|
|
17103
|
+
};
|
|
17104
|
+
DataListItemLabel.displayName = "DataListItemLabel_UI";
|
|
17105
|
+
|
|
17106
|
+
// src/components/DataList/DataListItemValue.tsx
|
|
17107
|
+
var import_jsx_runtime319 = require("react/jsx-runtime");
|
|
17108
|
+
var DataListItemValue = (props) => {
|
|
17109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
|
|
17110
|
+
Text,
|
|
17111
|
+
{
|
|
17112
|
+
variant: "body3",
|
|
17113
|
+
...props,
|
|
17114
|
+
renderAs: "dd"
|
|
17115
|
+
}
|
|
17116
|
+
);
|
|
17117
|
+
};
|
|
17118
|
+
DataListItemValue.displayName = "DataListItemValue_UI";
|
|
17031
17119
|
// Annotate the CommonJS export names for ESM import in node:
|
|
17032
17120
|
0 && (module.exports = {
|
|
17033
17121
|
ActionButton,
|
|
@@ -17067,6 +17155,10 @@ var ContextMenu = ({
|
|
|
17067
17155
|
DataCardHoverArrow,
|
|
17068
17156
|
DataCardTrend,
|
|
17069
17157
|
DataCards,
|
|
17158
|
+
DataList,
|
|
17159
|
+
DataListItem,
|
|
17160
|
+
DataListItemLabel,
|
|
17161
|
+
DataListItemValue,
|
|
17070
17162
|
Divider,
|
|
17071
17163
|
EditableHeading,
|
|
17072
17164
|
Ellipsis,
|