@wistia/ui 0.3.1 → 0.4.0-beta.030e03ae.416a771
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 +111 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +83 -13
- package/dist/index.d.ts +83 -13
- package/dist/index.mjs +109 -59
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -22
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.
|
|
3
|
+
* @license @wistia/ui v0.4.0-beta.030e03ae.416a771
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -43,6 +43,8 @@ __export(index_exports, {
|
|
|
43
43
|
Avatar: () => Avatar,
|
|
44
44
|
Badge: () => Badge,
|
|
45
45
|
Box: () => Box,
|
|
46
|
+
Breadcrumb: () => Breadcrumb,
|
|
47
|
+
Breadcrumbs: () => Breadcrumbs,
|
|
46
48
|
Button: () => Button,
|
|
47
49
|
ButtonGroup: () => ButtonGroup,
|
|
48
50
|
Checkbox: () => Checkbox,
|
|
@@ -927,7 +929,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
927
929
|
--wui-color-icon: var(--wui-gray-11);
|
|
928
930
|
--wui-color-icon-on-fill: var(--wui-gray-contrast);
|
|
929
931
|
--wui-color-text: var(--wui-gray-12);
|
|
930
|
-
--wui-color-text-
|
|
932
|
+
--wui-color-text-button: var(--wui-gray-12);
|
|
931
933
|
--wui-color-text-link: var(--wui-blue-9);
|
|
932
934
|
--wui-color-text-on-fill: var(--wui-gray-contrast);
|
|
933
935
|
--wui-color-text-secondary: var(--wui-gray-11);
|
|
@@ -955,7 +957,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
955
957
|
--wui-color-icon-error: var(--wui-error-11);
|
|
956
958
|
--wui-color-icon-on-fill-error: var(--wui-error-contrast);
|
|
957
959
|
--wui-color-text-error: var(--wui-error-11);
|
|
958
|
-
--wui-color-text-
|
|
960
|
+
--wui-color-text-button-error: var(--wui-error-11);
|
|
959
961
|
--wui-color-text-link-error: var(--wui-error-11);
|
|
960
962
|
--wui-color-text-on-fill-error: var(--wui-error-contrast);
|
|
961
963
|
--wui-color-text-secondary-error: var(--wui-error-11);
|
|
@@ -980,8 +982,8 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
980
982
|
--wui-color-border-secondary-active-info: var(--wui-blue-11);
|
|
981
983
|
--wui-color-icon-info: var(--wui-blue-11);
|
|
982
984
|
--wui-color-icon-on-fill-info: var(--wui-blue-contrast);
|
|
983
|
-
--wui-color-text-
|
|
984
|
-
--wui-color-text-info: var(--wui-blue-11);
|
|
985
|
+
--wui-color-text-info: var(--wui-blue-12);
|
|
986
|
+
--wui-color-text-button-info: var(--wui-blue-11);
|
|
985
987
|
--wui-color-text-link-info: var(--wui-blue-9);
|
|
986
988
|
--wui-color-text-on-fill-info: var(--wui-blue-contrast);
|
|
987
989
|
--wui-color-text-secondary-info: var(--wui-blue-11);
|
|
@@ -1006,11 +1008,11 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1006
1008
|
--wui-color-border-secondary-active-success: var(--wui-success-11);
|
|
1007
1009
|
--wui-color-icon-on-fill-success: var(--wui-success-contrast);
|
|
1008
1010
|
--wui-color-icon-success: var(--wui-success-11);
|
|
1009
|
-
--wui-color-text-high-contrast-success: var(--wui-success-12);
|
|
1010
1011
|
--wui-color-text-link-success: var(--wui-success-9);
|
|
1011
1012
|
--wui-color-text-on-fill-success: var(--wui-success-contrast);
|
|
1012
1013
|
--wui-color-text-secondary-success: var(--wui-success-11);
|
|
1013
|
-
--wui-color-text-success: var(--wui-success-
|
|
1014
|
+
--wui-color-text-success: var(--wui-success-12);
|
|
1015
|
+
--wui-color-text-button-success: var(--wui-success-11);
|
|
1014
1016
|
--wui-color-focus-ring-success: var(--wui-success-9);
|
|
1015
1017
|
|
|
1016
1018
|
/* Warning */
|
|
@@ -1032,11 +1034,11 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1032
1034
|
--wui-color-border-secondary-active-warning: var(--wui-warning-11);
|
|
1033
1035
|
--wui-color-icon-on-fill-warning: var(--wui-warning-2);
|
|
1034
1036
|
--wui-color-icon-warning: var(--wui-warning-11);
|
|
1035
|
-
--wui-color-text-high-contrast-warning: var(--wui-warning-12);
|
|
1036
1037
|
--wui-color-text-link-warning: var(--wui-warning-11);
|
|
1037
1038
|
--wui-color-text-on-fill-warning: var(--wui-warning-contrast);
|
|
1038
1039
|
--wui-color-text-secondary-warning: var(--wui-warning-11);
|
|
1039
|
-
--wui-color-text-warning: var(--wui-warning-11);
|
|
1040
|
+
--wui-color-text-button-warning: var(--wui-warning-11);
|
|
1041
|
+
--wui-color-text-warning: var(--wui-warning-12);
|
|
1040
1042
|
--wui-color-focus-ring-warning: var(--wui-warning-9);
|
|
1041
1043
|
|
|
1042
1044
|
/* --- Accent --- */
|
|
@@ -1060,8 +1062,8 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1060
1062
|
--wui-color-border-secondary-active-blue: var(--wui-blue-11);
|
|
1061
1063
|
--wui-color-icon-blue: var(--wui-blue-11);
|
|
1062
1064
|
--wui-color-icon-on-fill-blue: var(--wui-blue-contrast);
|
|
1063
|
-
--wui-color-text-blue: var(--wui-blue-
|
|
1064
|
-
--wui-color-text-
|
|
1065
|
+
--wui-color-text-blue: var(--wui-blue-12);
|
|
1066
|
+
--wui-color-text-button-blue: var(--wui-blue-11);
|
|
1065
1067
|
--wui-color-text-link-blue: var(--wui-blue-9);
|
|
1066
1068
|
--wui-color-text-on-fill-blue: var(--wui-blue-2);
|
|
1067
1069
|
--wui-color-text-secondary-blue: var(--wui-blue-5);
|
|
@@ -1086,8 +1088,8 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1086
1088
|
--wui-color-border-secondary-active-green: var(--wui-green-11);
|
|
1087
1089
|
--wui-color-icon-green: var(--wui-green-11);
|
|
1088
1090
|
--wui-color-icon-on-fill-green: var(--wui-green-contrast);
|
|
1089
|
-
--wui-color-text-green: var(--wui-green-
|
|
1090
|
-
--wui-color-text-
|
|
1091
|
+
--wui-color-text-green: var(--wui-green-12);
|
|
1092
|
+
--wui-color-text-button-green: var(--wui-green-11);
|
|
1091
1093
|
--wui-color-text-link-green: var(--wui-green-11);
|
|
1092
1094
|
--wui-color-text-on-fill-green: var(--wui-green-contrast);
|
|
1093
1095
|
--wui-color-text-secondary-green: var(--wui-green-10);
|
|
@@ -1112,10 +1114,10 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1112
1114
|
--wui-color-border-secondary-active-orange: var(--wui-orange-11);
|
|
1113
1115
|
--wui-color-icon-on-fill-orange: var(--wui-orange-contrast);
|
|
1114
1116
|
--wui-color-icon-orange: var(--wui-orange-11);
|
|
1115
|
-
--wui-color-text-high-contrast-orange: var(--wui-orange-12);
|
|
1116
1117
|
--wui-color-text-link-orange: var(--wui-orange-11);
|
|
1117
1118
|
--wui-color-text-on-fill-orange: var(--wui-orange-contrast);
|
|
1118
|
-
--wui-color-text-orange: var(--wui-orange-
|
|
1119
|
+
--wui-color-text-orange: var(--wui-orange-12);
|
|
1120
|
+
--wui-color-text-button-orange: var(--wui-orange-11);
|
|
1119
1121
|
--wui-color-text-secondary-orange: var(--wui-orange-10);
|
|
1120
1122
|
--wui-color-focus-ring-orange: var(--wui-orange-9);
|
|
1121
1123
|
|
|
@@ -1138,10 +1140,10 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1138
1140
|
--wui-color-border-secondary-active-pink: var(--wui-pink-11);
|
|
1139
1141
|
--wui-color-icon-on-fill-pink: var(--wui-pink-contrast);
|
|
1140
1142
|
--wui-color-icon-pink: var(--wui-pink-11);
|
|
1141
|
-
--wui-color-text-high-contrast-pink: var(--wui-pink-12);
|
|
1142
1143
|
--wui-color-text-link-pink: var(--wui-pink-11);
|
|
1143
1144
|
--wui-color-text-on-fill-pink: var(--wui-pink-contrast);
|
|
1144
|
-
--wui-color-text-pink: var(--wui-pink-
|
|
1145
|
+
--wui-color-text-pink: var(--wui-pink-12);
|
|
1146
|
+
--wui-color-text-button-pink: var(--wui-pink-11);
|
|
1145
1147
|
--wui-color-text-secondary-pink: var(--wui-pink-10);
|
|
1146
1148
|
--wui-color-focus-ring-pink: var(--wui-pink-9);
|
|
1147
1149
|
|
|
@@ -1164,10 +1166,10 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1164
1166
|
--wui-color-border-secondary-active-purple: var(--wui-purple-11);
|
|
1165
1167
|
--wui-color-icon-on-fill-purple: var(--wui-purple-contrast);
|
|
1166
1168
|
--wui-color-icon-purple: var(--wui-purple-11);
|
|
1167
|
-
--wui-color-text-high-contrast-purple: var(--wui-purple-12);
|
|
1168
1169
|
--wui-color-text-link-purple: var(--wui-purple-11);
|
|
1169
1170
|
--wui-color-text-on-fill-purple: var(--wui-purple-contrast);
|
|
1170
|
-
--wui-color-text-purple: var(--wui-purple-11);
|
|
1171
|
+
--wui-color-text-button-purple: var(--wui-purple-11);
|
|
1172
|
+
--wui-color-text-purple: var(--wui-purple-12);
|
|
1171
1173
|
--wui-color-text-secondary-purple: var(--wui-purple-11);
|
|
1172
1174
|
--wui-color-focus-ring-purple: var(--wui-purple-9);
|
|
1173
1175
|
|
|
@@ -1190,11 +1192,11 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1190
1192
|
--wui-color-border-secondary-active-yellow: var(--wui-yellow-11);
|
|
1191
1193
|
--wui-color-icon-on-fill-yellow: var(--wui-yellow-contrast);
|
|
1192
1194
|
--wui-color-icon-yellow: var(--wui-yellow-11);
|
|
1193
|
-
--wui-color-text-high-contrast-yellow: var(--wui-yellow-12);
|
|
1194
1195
|
--wui-color-text-link-yellow: var(--wui-yellow-11);
|
|
1195
1196
|
--wui-color-text-on-fill-yellow: var(--wui-yellow-contrast);
|
|
1196
1197
|
--wui-color-text-secondary-yellow: var(--wui-yellow-10);
|
|
1197
1198
|
--wui-color-text-yellow: var(--wui-yellow-11);
|
|
1199
|
+
--wui-color-text-button-yellow: var(--wui-yellow-12);
|
|
1198
1200
|
--wui-color-focus-ring-yellow: var(--wui-yellow-9);
|
|
1199
1201
|
|
|
1200
1202
|
/* --- Misc --- */
|
|
@@ -1696,10 +1698,10 @@ var colorSchemeSchema = [
|
|
|
1696
1698
|
{ token: "bg-fill", step: "9" },
|
|
1697
1699
|
{ token: "bg-fill-hover", step: "10" },
|
|
1698
1700
|
{ token: "bg-fill-active", step: "11" },
|
|
1699
|
-
{ token: "text", step: "
|
|
1700
|
-
{ token: "text-high-contrast", step: "12" },
|
|
1701
|
+
{ token: "text", step: "12" },
|
|
1701
1702
|
{ token: "text-link", step: "9" },
|
|
1702
1703
|
{ token: "text-secondary", step: "11" },
|
|
1704
|
+
{ token: "text-button", step: "11" },
|
|
1703
1705
|
{ token: "text-on-fill", step: "contrast" },
|
|
1704
1706
|
{ token: "border", step: "6" },
|
|
1705
1707
|
{ token: "border-hover", step: "8" },
|
|
@@ -1723,7 +1725,7 @@ var defaultScheme = import_styled_components12.css`
|
|
|
1723
1725
|
--wui-color-bg-fill-hover: var(--wui-blue-10);
|
|
1724
1726
|
--wui-color-bg-fill-active: var(--wui-blue-11);
|
|
1725
1727
|
--wui-color-text: var(--wui-gray-12);
|
|
1726
|
-
--wui-color-text-
|
|
1728
|
+
--wui-color-text-button: var(--wui-gray-12);
|
|
1727
1729
|
--wui-color-text-link: var(--wui-blue-9);
|
|
1728
1730
|
--wui-color-text-secondary: var(--wui-gray-11);
|
|
1729
1731
|
--wui-color-text-on-fill: var(--wui-gray-contrast);
|
|
@@ -1756,11 +1758,11 @@ var navScheme = import_styled_components12.css`
|
|
|
1756
1758
|
--wui-color-border-secondary-active: var(--wui-blue-12);
|
|
1757
1759
|
--wui-color-icon-on-fill: var(--wui-blue-9);
|
|
1758
1760
|
--wui-color-icon: var(--wui-blue-4);
|
|
1759
|
-
--wui-color-text-high-contrast: var(--wui-blue-1);
|
|
1760
1761
|
--wui-color-text-link: var(--wui-blue-4);
|
|
1761
1762
|
--wui-color-text-on-fill: var(--wui-blue-9);
|
|
1762
1763
|
--wui-color-text-secondary: var(--wui-blue-4);
|
|
1763
1764
|
--wui-color-text: var(--wui-blue-1);
|
|
1765
|
+
--wui-color-text-button: var(--wui-blue-1);
|
|
1764
1766
|
--wui-color-focus-ring: var(--wui-blue-1);
|
|
1765
1767
|
|
|
1766
1768
|
/* Nav - Disabled */
|
|
@@ -1831,7 +1833,7 @@ var StyledToast = import_styled_components13.default.div`
|
|
|
1831
1833
|
border-radius: var(--wui-border-radius-01);
|
|
1832
1834
|
background-color: var(--wui-color-bg-surface);
|
|
1833
1835
|
border: 1px solid var(--wui-color-border);
|
|
1834
|
-
color: var(--wui-color-text
|
|
1836
|
+
color: var(--wui-color-text);
|
|
1835
1837
|
padding-top: var(--wui-space-02);
|
|
1836
1838
|
padding-right: 0; /* padding here is on the left/right slots */
|
|
1837
1839
|
padding-bottom: var(--wui-space-02);
|
|
@@ -2020,7 +2022,7 @@ var ghostButtonVariant = import_styled_components15.css`
|
|
|
2020
2022
|
--button-color-bg: transparent;
|
|
2021
2023
|
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
2022
2024
|
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
2023
|
-
--button-color-text: var(--wui-color-text);
|
|
2025
|
+
--button-color-text: var(--wui-color-text-button);
|
|
2024
2026
|
--button-color-icon: var(--wui-color-icon);
|
|
2025
2027
|
`;
|
|
2026
2028
|
var outlineButtonVariant = import_styled_components15.css`
|
|
@@ -2033,7 +2035,7 @@ var softButtonVariant = import_styled_components15.css`
|
|
|
2033
2035
|
--button-color-bg: var(--wui-color-bg-surface-secondary);
|
|
2034
2036
|
--button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
2035
2037
|
--button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
|
|
2036
|
-
--button-color-text: var(--wui-color-text);
|
|
2038
|
+
--button-color-text: var(--wui-color-text-button);
|
|
2037
2039
|
--button-color-icon: var(--wui-color-icon);
|
|
2038
2040
|
`;
|
|
2039
2041
|
var solidButtonVariant = import_styled_components15.css`
|
|
@@ -5692,8 +5694,7 @@ var StyledLabel = import_styled_components19.default.span`
|
|
|
5692
5694
|
font-size: var(--wui-typography-heading-4-size);
|
|
5693
5695
|
font-weight: var(--wui-typography-heading-4-weight);
|
|
5694
5696
|
line-height: var(--wui-typography-heading-4-line-height);
|
|
5695
|
-
color: var(--wui-color-text-
|
|
5696
|
-
color: ${({ $disabled }) => $disabled ? "var(--wui-color-text-disabled)" : "var(--wui-color-text-high-contrast)"};
|
|
5697
|
+
color: ${({ $disabled }) => $disabled ? "var(--wui-color-text-disabled)" : "var(--wui-color-text)"};
|
|
5697
5698
|
grid-column: 1 / -1;
|
|
5698
5699
|
grid-row: 2;
|
|
5699
5700
|
text-align: left;
|
|
@@ -5963,7 +5964,6 @@ var import_styled_components23 = __toESM(require("styled-components"));
|
|
|
5963
5964
|
var import_type_guards14 = require("@wistia/type-guards");
|
|
5964
5965
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
5965
5966
|
var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
|
|
5966
|
-
var propsForFlexChildren = /* @__PURE__ */ new Set(["alignSelf", "basis", "grow", "order", "shrink"]);
|
|
5967
5967
|
var getGapStyle = (gap) => {
|
|
5968
5968
|
if ((0, import_type_guards14.isNotNil)(gap)) {
|
|
5969
5969
|
if ((0, import_type_guards14.isRecord)(gap)) {
|
|
@@ -6042,35 +6042,39 @@ var wrapChildren = (children) => {
|
|
|
6042
6042
|
var Box = ({
|
|
6043
6043
|
alignContent = "stretch",
|
|
6044
6044
|
alignItems = "flex-start",
|
|
6045
|
+
alignSelf,
|
|
6046
|
+
basis,
|
|
6045
6047
|
children,
|
|
6046
6048
|
direction = "row",
|
|
6047
|
-
hasBoxParent = false,
|
|
6048
6049
|
fill = false,
|
|
6049
6050
|
fillViewport = false,
|
|
6050
6051
|
gap,
|
|
6052
|
+
grow,
|
|
6053
|
+
hasBoxParent = false,
|
|
6054
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6051
6055
|
inline = false,
|
|
6052
6056
|
justifyContent = "flex-start",
|
|
6057
|
+
order,
|
|
6058
|
+
shrink,
|
|
6053
6059
|
wrapItems = false,
|
|
6054
6060
|
...otherProps
|
|
6055
6061
|
}) => {
|
|
6056
|
-
if (isDev && !hasBoxParent) {
|
|
6057
|
-
Object.keys(otherProps).forEach((prop) => {
|
|
6058
|
-
if (propsForFlexChildren.has(prop)) {
|
|
6059
|
-
console.warn(`${prop} only has an effect on <Box> instances that are children of a <Box>`);
|
|
6060
|
-
}
|
|
6061
|
-
});
|
|
6062
|
-
}
|
|
6063
6062
|
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
6064
6063
|
BoxComponent,
|
|
6065
6064
|
{
|
|
6066
6065
|
$alignContent: alignContent,
|
|
6067
6066
|
$alignItems: alignItems,
|
|
6067
|
+
$alignSelf: alignSelf,
|
|
6068
|
+
$basis: basis,
|
|
6068
6069
|
$fillBox: fill,
|
|
6069
6070
|
$fillViewport: fillViewport,
|
|
6070
6071
|
$flexDirection: direction,
|
|
6071
6072
|
$gap: gap,
|
|
6073
|
+
$grow: grow,
|
|
6072
6074
|
$inline: inline,
|
|
6073
6075
|
$justifyContent: justifyContent,
|
|
6076
|
+
$order: order,
|
|
6077
|
+
$shrink: shrink,
|
|
6074
6078
|
$wrapItems: wrapItems,
|
|
6075
6079
|
as: "div",
|
|
6076
6080
|
...otherProps,
|
|
@@ -6833,31 +6837,29 @@ var variantStyleMap2 = {
|
|
|
6833
6837
|
label3: label3TextStyle,
|
|
6834
6838
|
label4: label4TextStyle
|
|
6835
6839
|
};
|
|
6836
|
-
var highContrastProminenceStyle = import_styled_components32.css`
|
|
6837
|
-
--text-color: var(--wui-color-text-high-contrast);
|
|
6838
|
-
`;
|
|
6839
|
-
var vibrantProminenceStyle = import_styled_components32.css`
|
|
6840
|
-
--text-color: var(--wui-color-text);
|
|
6841
|
-
`;
|
|
6842
|
-
var secondaryProminenceStyle = import_styled_components32.css`
|
|
6843
|
-
--text-color: var(--wui-color-text-secondary);
|
|
6844
|
-
`;
|
|
6845
|
-
var prominenceMap = {
|
|
6846
|
-
highContrast: highContrastProminenceStyle,
|
|
6847
|
-
vibrant: vibrantProminenceStyle,
|
|
6848
|
-
secondary: secondaryProminenceStyle
|
|
6849
|
-
};
|
|
6850
6840
|
var StyledText = import_styled_components32.default.div`
|
|
6851
6841
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6842
|
+
--text-color: ${({ $prominence, $disabled }) => {
|
|
6843
|
+
if ($disabled) {
|
|
6844
|
+
return "var(--wui-color-text-disabled)";
|
|
6845
|
+
}
|
|
6846
|
+
if ($prominence === "secondary") {
|
|
6847
|
+
return "var(--wui-color-text-secondary)";
|
|
6848
|
+
}
|
|
6849
|
+
if ($prominence === "button") {
|
|
6850
|
+
return "var(--wui-color-text-button)";
|
|
6851
|
+
}
|
|
6852
|
+
return "var(--wui-color-text)";
|
|
6853
|
+
}};
|
|
6854
|
+
|
|
6855
|
+
color: var(--text-color);
|
|
6852
6856
|
font-family: var(--font-family);
|
|
6853
6857
|
font-size: var(--font-size);
|
|
6854
6858
|
font-weight: var(--font-weight);
|
|
6855
6859
|
line-height: var(--line-height);
|
|
6856
|
-
color: var(--text-color);
|
|
6857
6860
|
font-style: normal;
|
|
6858
6861
|
margin: 0;
|
|
6859
6862
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
6860
|
-
${({ $prominence }) => prominenceMap[$prominence]}
|
|
6861
6863
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
6862
6864
|
${({ $inline }) => $inline && import_styled_components32.css`
|
|
6863
6865
|
display: inline-block;
|
|
@@ -6884,7 +6886,7 @@ var TextComponent = (0, import_react20.forwardRef)(
|
|
|
6884
6886
|
ellipsis = false,
|
|
6885
6887
|
inline = false,
|
|
6886
6888
|
preventUserSelect = false,
|
|
6887
|
-
prominence = "
|
|
6889
|
+
prominence = "primary",
|
|
6888
6890
|
variant = "body2",
|
|
6889
6891
|
renderAs,
|
|
6890
6892
|
...otherProps
|
|
@@ -6971,7 +6973,7 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
6971
6973
|
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
6972
6974
|
var StyledFormField = import_styled_components34.default.div`
|
|
6973
6975
|
--form-field-spacing: var(--wui-space-01);
|
|
6974
|
-
--form-field-error-color: var(--wui-color-text-error);
|
|
6976
|
+
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
6975
6977
|
|
|
6976
6978
|
display: flex;
|
|
6977
6979
|
flex-direction: column;
|
|
@@ -7002,6 +7004,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
7002
7004
|
{
|
|
7003
7005
|
colorScheme: "error",
|
|
7004
7006
|
id,
|
|
7007
|
+
prominence: "secondary",
|
|
7005
7008
|
variant: "label4",
|
|
7006
7009
|
children: errors
|
|
7007
7010
|
},
|
|
@@ -7464,7 +7467,7 @@ var StyledButton3 = (0, import_styled_components39.default)(Button)`
|
|
|
7464
7467
|
padding: var(--menu-item-padding);
|
|
7465
7468
|
border-radius: var(--wui-border-radius-01);
|
|
7466
7469
|
text-align: left;
|
|
7467
|
-
color: var(--wui-color-text);
|
|
7470
|
+
color: var(--wui-color-text-button);
|
|
7468
7471
|
font-size: var(--menu-label-font-size);
|
|
7469
7472
|
font-weight: var(--menu-label-font-weight);
|
|
7470
7473
|
line-height: var(--menu-label-line-height);
|
|
@@ -7480,7 +7483,7 @@ var StyledButton3 = (0, import_styled_components39.default)(Button)`
|
|
|
7480
7483
|
}
|
|
7481
7484
|
|
|
7482
7485
|
&[aria-disabled='true'] {
|
|
7483
|
-
--wui-color-text: var(--wui-color-text-disabled);
|
|
7486
|
+
--wui-color-text-button: var(--wui-color-text-disabled);
|
|
7484
7487
|
--wui-color-text-secondary: var(--wui-color-text-disabled);
|
|
7485
7488
|
--wui-color-icon: var(--wui-color-icon-disabled);
|
|
7486
7489
|
|
|
@@ -8226,7 +8229,7 @@ var TagLabel = import_styled_components49.default.a`
|
|
|
8226
8229
|
line-height: var(--wui-typography-label-4-line-height);
|
|
8227
8230
|
border-radius: var(--wui-border-radius-01);
|
|
8228
8231
|
align-items: center;
|
|
8229
|
-
color: var(--wui-color-text
|
|
8232
|
+
color: var(--wui-color-text);
|
|
8230
8233
|
text-decoration: none;
|
|
8231
8234
|
padding: var(--wui-space-01);
|
|
8232
8235
|
|
|
@@ -8564,12 +8567,61 @@ var WistiaLogo = ({
|
|
|
8564
8567
|
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("a", { href, children: Logo }) : Logo;
|
|
8565
8568
|
};
|
|
8566
8569
|
WistiaLogo.displayName = "WistiaLogo";
|
|
8570
|
+
|
|
8571
|
+
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
8572
|
+
var import_styled_components52 = __toESM(require("styled-components"));
|
|
8573
|
+
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
8574
|
+
var StyledBreadcrumbs = import_styled_components52.default.nav`
|
|
8575
|
+
display: flex;
|
|
8576
|
+
align-items: center;
|
|
8577
|
+
gap: var(--wui-space-01);
|
|
8578
|
+
|
|
8579
|
+
> svg:last-of-type {
|
|
8580
|
+
display: none;
|
|
8581
|
+
}
|
|
8582
|
+
`;
|
|
8583
|
+
var Breadcrumbs = ({ children, ...props }) => {
|
|
8584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
|
|
8585
|
+
StyledBreadcrumbs,
|
|
8586
|
+
{
|
|
8587
|
+
"aria-label": "Breadcrumbs",
|
|
8588
|
+
...props,
|
|
8589
|
+
children
|
|
8590
|
+
}
|
|
8591
|
+
);
|
|
8592
|
+
};
|
|
8593
|
+
Breadcrumbs.displayName = "Breadcrumbs";
|
|
8594
|
+
|
|
8595
|
+
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
8596
|
+
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
8597
|
+
var Breadcrumb = ({ icon, href, children }) => {
|
|
8598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(import_jsx_runtime204.Fragment, { children: [
|
|
8599
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
|
|
8600
|
+
Button,
|
|
8601
|
+
{
|
|
8602
|
+
href,
|
|
8603
|
+
leftIcon: icon,
|
|
8604
|
+
variant: "ghost",
|
|
8605
|
+
children
|
|
8606
|
+
}
|
|
8607
|
+
),
|
|
8608
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
|
|
8609
|
+
Icon,
|
|
8610
|
+
{
|
|
8611
|
+
size: "sm",
|
|
8612
|
+
type: "caret-right"
|
|
8613
|
+
}
|
|
8614
|
+
)
|
|
8615
|
+
] });
|
|
8616
|
+
};
|
|
8567
8617
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8568
8618
|
0 && (module.exports = {
|
|
8569
8619
|
ActionButton,
|
|
8570
8620
|
Avatar,
|
|
8571
8621
|
Badge,
|
|
8572
8622
|
Box,
|
|
8623
|
+
Breadcrumb,
|
|
8624
|
+
Breadcrumbs,
|
|
8573
8625
|
Button,
|
|
8574
8626
|
ButtonGroup,
|
|
8575
8627
|
Checkbox,
|