@wistia/ui 0.4.0 → 0.4.2-beta.1edded51.b4258de
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 +357 -283
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +98 -3
- package/dist/index.d.ts +98 -3
- package/dist/index.mjs +289 -216
- package/dist/index.mjs.map +1 -1
- package/package.json +23 -22
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.4.
|
|
3
|
+
* @license @wistia/ui v0.4.2-beta.1edded51.b4258de
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -6053,18 +6053,69 @@ var ButtonGroup = ({
|
|
|
6053
6053
|
};
|
|
6054
6054
|
ButtonGroup.displayName = "ButtonGroup";
|
|
6055
6055
|
|
|
6056
|
+
// src/components/Card/Card.tsx
|
|
6057
|
+
import styled12 from "styled-components";
|
|
6058
|
+
import { jsx as jsx169 } from "react/jsx-runtime";
|
|
6059
|
+
var StyledCard = styled12(Box)`
|
|
6060
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6061
|
+
box-sizing: border-box;
|
|
6062
|
+
padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
|
|
6063
|
+
background-color: ${({ $backgroundColor }) => $backgroundColor};
|
|
6064
|
+
outline: 2px solid ${({ $borderColor }) => $borderColor};
|
|
6065
|
+
outline-offset: -2px;
|
|
6066
|
+
border-radius: var(--wui-border-radius-02);
|
|
6067
|
+
display: flex;
|
|
6068
|
+
`;
|
|
6069
|
+
var prominenceMap = {
|
|
6070
|
+
default: {
|
|
6071
|
+
backgroundColor: "var(--wui-color-bg-surface)",
|
|
6072
|
+
borderColor: "var(--wui-color-border)"
|
|
6073
|
+
},
|
|
6074
|
+
secondary: {
|
|
6075
|
+
backgroundColor: "var(--wui-color-bg-surface-secondary)",
|
|
6076
|
+
borderColor: "var(--wui-color-border-secondary)"
|
|
6077
|
+
},
|
|
6078
|
+
tertiary: {
|
|
6079
|
+
backgroundColor: "var(--wui-color-bg-surface-tertiary)",
|
|
6080
|
+
borderColor: "var(--wui-color-border-secondary)"
|
|
6081
|
+
}
|
|
6082
|
+
};
|
|
6083
|
+
var Card = ({
|
|
6084
|
+
children,
|
|
6085
|
+
paddingSize = "space-03",
|
|
6086
|
+
gap = "space-03",
|
|
6087
|
+
direction = "column",
|
|
6088
|
+
colorScheme = "inherit",
|
|
6089
|
+
prominence = "secondary",
|
|
6090
|
+
border = false,
|
|
6091
|
+
...props
|
|
6092
|
+
}) => /* @__PURE__ */ jsx169(
|
|
6093
|
+
StyledCard,
|
|
6094
|
+
{
|
|
6095
|
+
$backgroundColor: prominenceMap[prominence].backgroundColor,
|
|
6096
|
+
$borderColor: border ? prominenceMap[prominence].borderColor : "transparent",
|
|
6097
|
+
$colorScheme: colorScheme,
|
|
6098
|
+
$paddingSize: paddingSize,
|
|
6099
|
+
direction,
|
|
6100
|
+
gap,
|
|
6101
|
+
...props,
|
|
6102
|
+
children
|
|
6103
|
+
}
|
|
6104
|
+
);
|
|
6105
|
+
Card.displayName = "Card";
|
|
6106
|
+
|
|
6056
6107
|
// src/components/Checkbox/Checkbox.tsx
|
|
6057
6108
|
import { forwardRef as forwardRef6, useId } from "react";
|
|
6058
6109
|
import { Root as CheckboxRoot, Indicator as CheckboxIndicator } from "@radix-ui/react-checkbox";
|
|
6059
|
-
import
|
|
6110
|
+
import styled16 from "styled-components";
|
|
6060
6111
|
import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
|
|
6061
6112
|
|
|
6062
6113
|
// src/components/Label/Label.tsx
|
|
6063
|
-
import
|
|
6114
|
+
import styled14, { css as css16 } from "styled-components";
|
|
6064
6115
|
|
|
6065
6116
|
// src/components/Heading/Heading.tsx
|
|
6066
6117
|
import { forwardRef as forwardRef5 } from "react";
|
|
6067
|
-
import
|
|
6118
|
+
import styled13, { css as css15 } from "styled-components";
|
|
6068
6119
|
|
|
6069
6120
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
6070
6121
|
var makePolymorphic = (component) => {
|
|
@@ -6072,7 +6123,7 @@ var makePolymorphic = (component) => {
|
|
|
6072
6123
|
};
|
|
6073
6124
|
|
|
6074
6125
|
// src/components/Heading/Heading.tsx
|
|
6075
|
-
import { jsx as
|
|
6126
|
+
import { jsx as jsx170 } from "react/jsx-runtime";
|
|
6076
6127
|
var heroStyle = css15`
|
|
6077
6128
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
6078
6129
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
@@ -6125,7 +6176,7 @@ var variantStyleMap = {
|
|
|
6125
6176
|
heading6: heading6TextStyle
|
|
6126
6177
|
};
|
|
6127
6178
|
var DEFAULT_ELEMENT = "h1";
|
|
6128
|
-
var StyledHeading =
|
|
6179
|
+
var StyledHeading = styled13.div`
|
|
6129
6180
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6130
6181
|
font-family: var(--font-family);
|
|
6131
6182
|
font-size: var(--font-size);
|
|
@@ -6168,7 +6219,7 @@ var HeadingComponent = forwardRef5(
|
|
|
6168
6219
|
variant = "heading1",
|
|
6169
6220
|
renderAs,
|
|
6170
6221
|
...otherProps
|
|
6171
|
-
}, ref) => /* @__PURE__ */
|
|
6222
|
+
}, ref) => /* @__PURE__ */ jsx170(
|
|
6172
6223
|
StyledHeading,
|
|
6173
6224
|
{
|
|
6174
6225
|
ref,
|
|
@@ -6188,7 +6239,7 @@ HeadingComponent.displayName = "Heading";
|
|
|
6188
6239
|
var Heading = makePolymorphic(HeadingComponent);
|
|
6189
6240
|
|
|
6190
6241
|
// src/components/Label/Label.tsx
|
|
6191
|
-
import { jsx as
|
|
6242
|
+
import { jsx as jsx171 } from "react/jsx-runtime";
|
|
6192
6243
|
var requiredStyle = css16`
|
|
6193
6244
|
&::after {
|
|
6194
6245
|
color: var(--wui-color-text-error);
|
|
@@ -6200,7 +6251,7 @@ var requiredStyle = css16`
|
|
|
6200
6251
|
var disabledStyle = css16`
|
|
6201
6252
|
color: var(--wui-color-text-disabled);
|
|
6202
6253
|
`;
|
|
6203
|
-
var StyledLabel2 =
|
|
6254
|
+
var StyledLabel2 = styled14(Heading).attrs({
|
|
6204
6255
|
variant: "heading6",
|
|
6205
6256
|
renderAs: "label"
|
|
6206
6257
|
})`
|
|
@@ -6229,7 +6280,7 @@ var Label = ({
|
|
|
6229
6280
|
required = false,
|
|
6230
6281
|
screenReaderOnly = false,
|
|
6231
6282
|
...otherProps
|
|
6232
|
-
}) => /* @__PURE__ */
|
|
6283
|
+
}) => /* @__PURE__ */ jsx171(
|
|
6233
6284
|
StyledLabel2,
|
|
6234
6285
|
{
|
|
6235
6286
|
...otherProps,
|
|
@@ -6243,10 +6294,10 @@ var Label = ({
|
|
|
6243
6294
|
Label.displayName = "Label";
|
|
6244
6295
|
|
|
6245
6296
|
// src/components/Label/LabelDescription.tsx
|
|
6246
|
-
import
|
|
6297
|
+
import styled15 from "styled-components";
|
|
6247
6298
|
import { isNil as isNil9 } from "@wistia/type-guards";
|
|
6248
|
-
import { jsx as
|
|
6249
|
-
var StyledLabelDescription =
|
|
6299
|
+
import { jsx as jsx172 } from "react/jsx-runtime";
|
|
6300
|
+
var StyledLabelDescription = styled15.div`
|
|
6250
6301
|
color: var(--wui-color-text-secondary);
|
|
6251
6302
|
font-size: var(--wui-typography-body-4-size);
|
|
6252
6303
|
font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -6259,13 +6310,13 @@ var LabelDescription = ({
|
|
|
6259
6310
|
if (isNil9(children)) {
|
|
6260
6311
|
return null;
|
|
6261
6312
|
}
|
|
6262
|
-
return /* @__PURE__ */
|
|
6313
|
+
return /* @__PURE__ */ jsx172(StyledLabelDescription, { ...props, children });
|
|
6263
6314
|
};
|
|
6264
6315
|
LabelDescription.displayName = "LabelDescription";
|
|
6265
6316
|
|
|
6266
6317
|
// src/components/Checkbox/Checkbox.tsx
|
|
6267
|
-
import { jsx as
|
|
6268
|
-
var CheckIcon = () => /* @__PURE__ */
|
|
6318
|
+
import { jsx as jsx173, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
6319
|
+
var CheckIcon = () => /* @__PURE__ */ jsx173(
|
|
6269
6320
|
"svg",
|
|
6270
6321
|
{
|
|
6271
6322
|
fill: "inherit",
|
|
@@ -6273,7 +6324,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx172(
|
|
|
6273
6324
|
viewBox: "0 0 10 8",
|
|
6274
6325
|
width: "10",
|
|
6275
6326
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6276
|
-
children: /* @__PURE__ */
|
|
6327
|
+
children: /* @__PURE__ */ jsx173(
|
|
6277
6328
|
"path",
|
|
6278
6329
|
{
|
|
6279
6330
|
d: "M3.47281 7.19303L0.377565 4.07999C0.191609 3.89297 0.191609 3.58973 0.377565 3.40268L1.05098 2.72537C1.23694 2.53833 1.53847 2.53833 1.72442 2.72537L3.80953 4.82245L8.27558 0.330729C8.46154 0.143704 8.76306 0.143704 8.94902 0.330729L9.62244 1.00804C9.8084 1.19506 9.8084 1.49831 9.62244 1.68535L4.14624 7.19305C3.96027 7.38008 3.65876 7.38008 3.47281 7.19303Z",
|
|
@@ -6282,7 +6333,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx172(
|
|
|
6282
6333
|
)
|
|
6283
6334
|
}
|
|
6284
6335
|
);
|
|
6285
|
-
var StyledCheckboxWrapper =
|
|
6336
|
+
var StyledCheckboxWrapper = styled16.div`
|
|
6286
6337
|
display: flex;
|
|
6287
6338
|
align-items: center;
|
|
6288
6339
|
cursor: pointer;
|
|
@@ -6296,7 +6347,7 @@ var StyledCheckboxWrapper = styled15.div`
|
|
|
6296
6347
|
background-color: #efefef;
|
|
6297
6348
|
}
|
|
6298
6349
|
`;
|
|
6299
|
-
var StyledCheckboxRoot =
|
|
6350
|
+
var StyledCheckboxRoot = styled16(CheckboxRoot)`
|
|
6300
6351
|
all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
|
|
6301
6352
|
background-color: var(--wui-color-bg-fill-white);
|
|
6302
6353
|
min-width: 16px;
|
|
@@ -6330,10 +6381,10 @@ var StyledCheckboxRoot = styled15(CheckboxRoot)`
|
|
|
6330
6381
|
/* TODO Lamp to design focus state */
|
|
6331
6382
|
}
|
|
6332
6383
|
`;
|
|
6333
|
-
var StyledCheckboxIndicator =
|
|
6384
|
+
var StyledCheckboxIndicator = styled16(CheckboxIndicator)`
|
|
6334
6385
|
display: flex;
|
|
6335
6386
|
`;
|
|
6336
|
-
var StyledLabelWrapper =
|
|
6387
|
+
var StyledLabelWrapper = styled16.div`
|
|
6337
6388
|
display: flex;
|
|
6338
6389
|
flex-direction: column;
|
|
6339
6390
|
margin-left: var(--wui-space-02);
|
|
@@ -6355,7 +6406,7 @@ var Checkbox = forwardRef6(
|
|
|
6355
6406
|
const generatedId = useId();
|
|
6356
6407
|
const computedId = isNonEmptyString2(id) ? id : `wistia-ui-checkbox-group-${generatedId}`;
|
|
6357
6408
|
return /* @__PURE__ */ jsxs8(StyledCheckboxWrapper, { children: [
|
|
6358
|
-
/* @__PURE__ */
|
|
6409
|
+
/* @__PURE__ */ jsx173(
|
|
6359
6410
|
StyledCheckboxRoot,
|
|
6360
6411
|
{
|
|
6361
6412
|
ref,
|
|
@@ -6380,11 +6431,11 @@ var Checkbox = forwardRef6(
|
|
|
6380
6431
|
required,
|
|
6381
6432
|
value,
|
|
6382
6433
|
...otherProps,
|
|
6383
|
-
children: /* @__PURE__ */
|
|
6434
|
+
children: /* @__PURE__ */ jsx173(StyledCheckboxIndicator, { children: /* @__PURE__ */ jsx173(CheckIcon, {}) })
|
|
6384
6435
|
}
|
|
6385
6436
|
),
|
|
6386
6437
|
/* @__PURE__ */ jsxs8(StyledLabelWrapper, { children: [
|
|
6387
|
-
/* @__PURE__ */
|
|
6438
|
+
/* @__PURE__ */ jsx173(
|
|
6388
6439
|
Label,
|
|
6389
6440
|
{
|
|
6390
6441
|
disabled,
|
|
@@ -6393,7 +6444,7 @@ var Checkbox = forwardRef6(
|
|
|
6393
6444
|
children: label
|
|
6394
6445
|
}
|
|
6395
6446
|
),
|
|
6396
|
-
/* @__PURE__ */
|
|
6447
|
+
/* @__PURE__ */ jsx173(LabelDescription, { children: description })
|
|
6397
6448
|
] })
|
|
6398
6449
|
] });
|
|
6399
6450
|
}
|
|
@@ -6401,8 +6452,8 @@ var Checkbox = forwardRef6(
|
|
|
6401
6452
|
Checkbox.displayName = "Checkbox";
|
|
6402
6453
|
|
|
6403
6454
|
// src/components/Divider/Divider.tsx
|
|
6404
|
-
import
|
|
6405
|
-
import { jsx as
|
|
6455
|
+
import styled17, { css as css17 } from "styled-components";
|
|
6456
|
+
import { jsx as jsx174 } from "react/jsx-runtime";
|
|
6406
6457
|
var horizontalBorderCss = css17`
|
|
6407
6458
|
border-top-color: var(--wui-color-border);
|
|
6408
6459
|
border-top-style: solid;
|
|
@@ -6416,7 +6467,7 @@ var verticalBorderCss = css17`
|
|
|
6416
6467
|
min-height: 100%;
|
|
6417
6468
|
width: 1px;
|
|
6418
6469
|
`;
|
|
6419
|
-
var DividerComponent =
|
|
6470
|
+
var DividerComponent = styled17.div`
|
|
6420
6471
|
${({ $orientation }) => {
|
|
6421
6472
|
switch ($orientation) {
|
|
6422
6473
|
case "vertical":
|
|
@@ -6431,7 +6482,7 @@ var Divider = ({
|
|
|
6431
6482
|
orientation = "horizontal",
|
|
6432
6483
|
...otherProps
|
|
6433
6484
|
}) => {
|
|
6434
|
-
return /* @__PURE__ */
|
|
6485
|
+
return /* @__PURE__ */ jsx174(
|
|
6435
6486
|
DividerComponent,
|
|
6436
6487
|
{
|
|
6437
6488
|
$orientation: orientation,
|
|
@@ -6445,15 +6496,15 @@ Divider.displayName = "Divider";
|
|
|
6445
6496
|
|
|
6446
6497
|
// src/components/Form/Form.tsx
|
|
6447
6498
|
import { forwardRef as forwardRef8, useRef as useRef2, useMemo as useMemo4, createContext as createContext2, useState as useState4, useId as useId2 } from "react";
|
|
6448
|
-
import
|
|
6499
|
+
import styled19 from "styled-components";
|
|
6449
6500
|
import { isNotUndefined as isNotUndefined4, isUndefined as isUndefined3 } from "@wistia/type-guards";
|
|
6450
6501
|
|
|
6451
6502
|
// src/components/Stack/Stack.tsx
|
|
6452
6503
|
import { forwardRef as forwardRef7 } from "react";
|
|
6453
|
-
import
|
|
6454
|
-
import { jsx as
|
|
6504
|
+
import styled18 from "styled-components";
|
|
6505
|
+
import { jsx as jsx175 } from "react/jsx-runtime";
|
|
6455
6506
|
var DEFAULT_ELEMENT2 = "div";
|
|
6456
|
-
var StyledStack =
|
|
6507
|
+
var StyledStack = styled18.div`
|
|
6457
6508
|
display: flex;
|
|
6458
6509
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
6459
6510
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -6462,7 +6513,7 @@ var StackComponent = forwardRef7(
|
|
|
6462
6513
|
({ renderAs, direction = "vertical", gap = "space-02", ...props }, ref) => {
|
|
6463
6514
|
const responsiveGap = useResponsiveProp(gap);
|
|
6464
6515
|
const responsiveDirection = useResponsiveProp(direction);
|
|
6465
|
-
return /* @__PURE__ */
|
|
6516
|
+
return /* @__PURE__ */ jsx175(
|
|
6466
6517
|
StyledStack,
|
|
6467
6518
|
{
|
|
6468
6519
|
ref,
|
|
@@ -6478,8 +6529,8 @@ StackComponent.displayName = "Stack";
|
|
|
6478
6529
|
var Stack = makePolymorphic(StackComponent);
|
|
6479
6530
|
|
|
6480
6531
|
// src/components/Form/Form.tsx
|
|
6481
|
-
import { jsx as
|
|
6482
|
-
var StyledForm =
|
|
6532
|
+
import { jsx as jsx176 } from "react/jsx-runtime";
|
|
6533
|
+
var StyledForm = styled19.form`
|
|
6483
6534
|
--form-default-width: 690px;
|
|
6484
6535
|
|
|
6485
6536
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
@@ -6548,7 +6599,7 @@ var FormComponent = ({ children, action, values = {}, validate, fullWidth = fals
|
|
|
6548
6599
|
}, [values, errors, id, hasSubmitted]);
|
|
6549
6600
|
return (
|
|
6550
6601
|
// @ts-expect-error - generic context providers are a giant pain
|
|
6551
|
-
/* @__PURE__ */
|
|
6602
|
+
/* @__PURE__ */ jsx176(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsx176(
|
|
6552
6603
|
Stack,
|
|
6553
6604
|
{
|
|
6554
6605
|
gap: "space-05",
|
|
@@ -6607,9 +6658,9 @@ var useFormState = (action, initialData = {}) => {
|
|
|
6607
6658
|
// src/components/Form/FormErrorSummary.tsx
|
|
6608
6659
|
import { useContext as useContext2, useRef as useRef3 } from "react";
|
|
6609
6660
|
import { isArray, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
|
|
6610
|
-
import { jsx as
|
|
6661
|
+
import { jsx as jsx177, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
6611
6662
|
var ErrorItem = ({ name, error, formId }) => {
|
|
6612
|
-
return /* @__PURE__ */
|
|
6663
|
+
return /* @__PURE__ */ jsx177("li", { children: /* @__PURE__ */ jsx177(Link, { href: `${formId}-${name}`, children: error }) }, name);
|
|
6613
6664
|
};
|
|
6614
6665
|
var FormErrorSummary = ({ description }) => {
|
|
6615
6666
|
const ref = useRef3(null);
|
|
@@ -6619,9 +6670,9 @@ var FormErrorSummary = ({ description }) => {
|
|
|
6619
6670
|
return null;
|
|
6620
6671
|
}
|
|
6621
6672
|
return /* @__PURE__ */ jsxs9("div", { ref, children: [
|
|
6622
|
-
/* @__PURE__ */
|
|
6623
|
-
/* @__PURE__ */
|
|
6624
|
-
([name, error]) => isArray(error) ? error.map((err) => /* @__PURE__ */
|
|
6673
|
+
/* @__PURE__ */ jsx177("p", { children: description }),
|
|
6674
|
+
/* @__PURE__ */ jsx177("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined5(error)).map(
|
|
6675
|
+
([name, error]) => isArray(error) ? error.map((err) => /* @__PURE__ */ jsx177(
|
|
6625
6676
|
ErrorItem,
|
|
6626
6677
|
{
|
|
6627
6678
|
error: err,
|
|
@@ -6629,7 +6680,7 @@ var FormErrorSummary = ({ description }) => {
|
|
|
6629
6680
|
name
|
|
6630
6681
|
},
|
|
6631
6682
|
err
|
|
6632
|
-
)) : /* @__PURE__ */
|
|
6683
|
+
)) : /* @__PURE__ */ jsx177(
|
|
6633
6684
|
ErrorItem,
|
|
6634
6685
|
{
|
|
6635
6686
|
error: error ?? "",
|
|
@@ -6644,13 +6695,13 @@ var FormErrorSummary = ({ description }) => {
|
|
|
6644
6695
|
|
|
6645
6696
|
// src/components/FormField/FormField.tsx
|
|
6646
6697
|
import { Children as Children2, cloneElement as cloneElement3, useContext as useContext3 } from "react";
|
|
6647
|
-
import
|
|
6698
|
+
import styled22 from "styled-components";
|
|
6648
6699
|
import { isArray as isArray2, isNotNil as isNotNil7, isNotUndefined as isNotUndefined6, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
6649
6700
|
|
|
6650
6701
|
// src/components/Text/Text.tsx
|
|
6651
6702
|
import { forwardRef as forwardRef9 } from "react";
|
|
6652
|
-
import
|
|
6653
|
-
import { jsx as
|
|
6703
|
+
import styled20, { css as css18 } from "styled-components";
|
|
6704
|
+
import { jsx as jsx178 } from "react/jsx-runtime";
|
|
6654
6705
|
var bodyBoldStyles = css18`
|
|
6655
6706
|
> strong,
|
|
6656
6707
|
b {
|
|
@@ -6749,7 +6800,7 @@ var variantStyleMap2 = {
|
|
|
6749
6800
|
label3: label3TextStyle,
|
|
6750
6801
|
label4: label4TextStyle
|
|
6751
6802
|
};
|
|
6752
|
-
var StyledText =
|
|
6803
|
+
var StyledText = styled20.div`
|
|
6753
6804
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6754
6805
|
--text-color: ${({ $prominence, $disabled }) => {
|
|
6755
6806
|
if ($disabled) {
|
|
@@ -6803,7 +6854,7 @@ var TextComponent = forwardRef9(
|
|
|
6803
6854
|
renderAs,
|
|
6804
6855
|
...otherProps
|
|
6805
6856
|
}, ref) => {
|
|
6806
|
-
return /* @__PURE__ */
|
|
6857
|
+
return /* @__PURE__ */ jsx178(
|
|
6807
6858
|
StyledText,
|
|
6808
6859
|
{
|
|
6809
6860
|
ref,
|
|
@@ -6828,13 +6879,13 @@ var Text = makePolymorphic(TextComponent);
|
|
|
6828
6879
|
import { createContext as createContext3, useMemo as useMemo5 } from "react";
|
|
6829
6880
|
|
|
6830
6881
|
// src/components/FormGroup/FormGroup.tsx
|
|
6831
|
-
import
|
|
6882
|
+
import styled21 from "styled-components";
|
|
6832
6883
|
import { useRef as useRef4 } from "react";
|
|
6833
|
-
import { jsx as
|
|
6834
|
-
var StyledFieldset =
|
|
6884
|
+
import { jsx as jsx179, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
6885
|
+
var StyledFieldset = styled21.fieldset`
|
|
6835
6886
|
border: 0;
|
|
6836
6887
|
`;
|
|
6837
|
-
var StyledLegend =
|
|
6888
|
+
var StyledLegend = styled21.legend`
|
|
6838
6889
|
margin-bottom: var(--space-01);
|
|
6839
6890
|
`;
|
|
6840
6891
|
var FormGroup = ({ children, label, ...props }) => {
|
|
@@ -6846,7 +6897,7 @@ var FormGroup = ({ children, label, ...props }) => {
|
|
|
6846
6897
|
ref,
|
|
6847
6898
|
renderAs: StyledFieldset,
|
|
6848
6899
|
children: [
|
|
6849
|
-
/* @__PURE__ */
|
|
6900
|
+
/* @__PURE__ */ jsx179(
|
|
6850
6901
|
Heading,
|
|
6851
6902
|
{
|
|
6852
6903
|
renderAs: StyledLegend,
|
|
@@ -6862,7 +6913,7 @@ var FormGroup = ({ children, label, ...props }) => {
|
|
|
6862
6913
|
FormGroup.displayName = "FormGroup";
|
|
6863
6914
|
|
|
6864
6915
|
// src/components/FormGroup/CheckboxGroup.tsx
|
|
6865
|
-
import { jsx as
|
|
6916
|
+
import { jsx as jsx180 } from "react/jsx-runtime";
|
|
6866
6917
|
var CheckboxGroupContext = createContext3(null);
|
|
6867
6918
|
var CheckboxGroup = ({
|
|
6868
6919
|
children,
|
|
@@ -6877,13 +6928,13 @@ var CheckboxGroup = ({
|
|
|
6877
6928
|
onChange
|
|
6878
6929
|
};
|
|
6879
6930
|
}, [name, onChange]);
|
|
6880
|
-
return /* @__PURE__ */
|
|
6931
|
+
return /* @__PURE__ */ jsx180(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx180(FormGroup, { ...props, children }) });
|
|
6881
6932
|
};
|
|
6882
6933
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
6883
6934
|
|
|
6884
6935
|
// src/components/FormField/FormField.tsx
|
|
6885
|
-
import { jsx as
|
|
6886
|
-
var StyledFormField =
|
|
6936
|
+
import { jsx as jsx181, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
6937
|
+
var StyledFormField = styled22.div`
|
|
6887
6938
|
--form-field-spacing: var(--wui-space-01);
|
|
6888
6939
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
6889
6940
|
|
|
@@ -6891,7 +6942,7 @@ var StyledFormField = styled21.div`
|
|
|
6891
6942
|
flex-direction: column;
|
|
6892
6943
|
gap: var(--form-field-spacing);
|
|
6893
6944
|
`;
|
|
6894
|
-
var StyledErrorList =
|
|
6945
|
+
var StyledErrorList = styled22.ul`
|
|
6895
6946
|
margin: 0;
|
|
6896
6947
|
padding: 0;
|
|
6897
6948
|
padding-left: var(--wui-space-04);
|
|
@@ -6901,7 +6952,7 @@ var StyledErrorList = styled21.ul`
|
|
|
6901
6952
|
`;
|
|
6902
6953
|
var ErrorMessages = ({ errors, id }) => {
|
|
6903
6954
|
const isMultipleErrors = isArray2(errors);
|
|
6904
|
-
return isMultipleErrors ? /* @__PURE__ */
|
|
6955
|
+
return isMultipleErrors ? /* @__PURE__ */ jsx181(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ jsx181(
|
|
6905
6956
|
Text,
|
|
6906
6957
|
{
|
|
6907
6958
|
colorScheme: "error",
|
|
@@ -6911,7 +6962,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
6911
6962
|
children: error
|
|
6912
6963
|
},
|
|
6913
6964
|
`${id}-${index}`
|
|
6914
|
-
)) }) : /* @__PURE__ */
|
|
6965
|
+
)) }) : /* @__PURE__ */ jsx181(
|
|
6915
6966
|
Text,
|
|
6916
6967
|
{
|
|
6917
6968
|
colorScheme: "error",
|
|
@@ -6969,9 +7020,9 @@ var FormField = ({
|
|
|
6969
7020
|
}
|
|
6970
7021
|
Children2.only(children);
|
|
6971
7022
|
return /* @__PURE__ */ jsxs11(StyledFormField, { ...props, children: [
|
|
6972
|
-
!isInlineLabel && /* @__PURE__ */
|
|
7023
|
+
!isInlineLabel && /* @__PURE__ */ jsx181(Label, { htmlFor: id, children: label }),
|
|
6973
7024
|
cloneElement3(children, childProps),
|
|
6974
|
-
isNotNil7(computedError) ? /* @__PURE__ */
|
|
7025
|
+
isNotNil7(computedError) ? /* @__PURE__ */ jsx181(
|
|
6975
7026
|
ErrorMessages,
|
|
6976
7027
|
{
|
|
6977
7028
|
errors: computedError,
|
|
@@ -6984,7 +7035,7 @@ FormField.displayName = "FormField";
|
|
|
6984
7035
|
|
|
6985
7036
|
// src/components/FormGroup/RadioGroup.tsx
|
|
6986
7037
|
import { createContext as createContext4, useMemo as useMemo6 } from "react";
|
|
6987
|
-
import { jsx as
|
|
7038
|
+
import { jsx as jsx182 } from "react/jsx-runtime";
|
|
6988
7039
|
var RadioGroupContext = createContext4(null);
|
|
6989
7040
|
var RadioGroup = ({
|
|
6990
7041
|
children,
|
|
@@ -6999,15 +7050,15 @@ var RadioGroup = ({
|
|
|
6999
7050
|
onChange
|
|
7000
7051
|
};
|
|
7001
7052
|
}, [name, onChange]);
|
|
7002
|
-
return /* @__PURE__ */
|
|
7053
|
+
return /* @__PURE__ */ jsx182(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx182(FormGroup, { ...props, children }) });
|
|
7003
7054
|
};
|
|
7004
7055
|
RadioGroup.displayName = "RadioGroup";
|
|
7005
7056
|
|
|
7006
7057
|
// src/components/IconButton/IconButton.tsx
|
|
7007
7058
|
import { Children as Children3, cloneElement as cloneElement4, forwardRef as forwardRef10 } from "react";
|
|
7008
|
-
import
|
|
7009
|
-
import { jsx as
|
|
7010
|
-
var StyledButton2 =
|
|
7059
|
+
import styled23 from "styled-components";
|
|
7060
|
+
import { jsx as jsx183 } from "react/jsx-runtime";
|
|
7061
|
+
var StyledButton2 = styled23(Button)`
|
|
7011
7062
|
--icon-button-size-sm: 24px;
|
|
7012
7063
|
--icon-button-size-md: 32px;
|
|
7013
7064
|
--icon-button-size-lg: 40px;
|
|
@@ -7024,7 +7075,7 @@ var StyledButton2 = styled22(Button)`
|
|
|
7024
7075
|
var IconButton = forwardRef10(
|
|
7025
7076
|
({ children, label, size = "md", ...props }, ref) => {
|
|
7026
7077
|
const responsiveSize = useResponsiveProp(size);
|
|
7027
|
-
return /* @__PURE__ */
|
|
7078
|
+
return /* @__PURE__ */ jsx183(
|
|
7028
7079
|
StyledButton2,
|
|
7029
7080
|
{
|
|
7030
7081
|
...props,
|
|
@@ -7042,10 +7093,10 @@ var IconButton = forwardRef10(
|
|
|
7042
7093
|
IconButton.displayName = "IconButton";
|
|
7043
7094
|
|
|
7044
7095
|
// src/components/Input/Input.tsx
|
|
7045
|
-
import { forwardRef as forwardRef11, cloneElement as cloneElement5 } from "react";
|
|
7046
|
-
import
|
|
7096
|
+
import { forwardRef as forwardRef11, cloneElement as cloneElement5, useRef as useRef5 } from "react";
|
|
7097
|
+
import styled24, { css as css19 } from "styled-components";
|
|
7047
7098
|
import { isNil as isNil10, isNotNil as isNotNil8 } from "@wistia/type-guards";
|
|
7048
|
-
import { jsx as
|
|
7099
|
+
import { jsx as jsx184, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
7049
7100
|
var inputStyles = css19`
|
|
7050
7101
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
7051
7102
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -7087,7 +7138,7 @@ var inputStyles = css19`
|
|
|
7087
7138
|
}
|
|
7088
7139
|
}
|
|
7089
7140
|
`;
|
|
7090
|
-
var StyledInputContainer =
|
|
7141
|
+
var StyledInputContainer = styled24.div`
|
|
7091
7142
|
display: inline-flex;
|
|
7092
7143
|
position: relative;
|
|
7093
7144
|
${inputStyles};
|
|
@@ -7131,18 +7182,24 @@ var StyledInputContainer = styled23.div`
|
|
|
7131
7182
|
padding-right: 32px;
|
|
7132
7183
|
}
|
|
7133
7184
|
`;
|
|
7185
|
+
var isValidRef = (ref) => {
|
|
7186
|
+
return typeof ref === "object" && ref !== null && "current" in ref && isNotNil8(ref.current);
|
|
7187
|
+
};
|
|
7134
7188
|
var Input = forwardRef11(
|
|
7135
7189
|
({
|
|
7136
7190
|
fullWidth = false,
|
|
7137
7191
|
monospace = false,
|
|
7138
7192
|
type = "text",
|
|
7193
|
+
autoSelect = false,
|
|
7139
7194
|
leftIcon,
|
|
7140
7195
|
rightIcon,
|
|
7141
7196
|
...props
|
|
7142
|
-
},
|
|
7197
|
+
}, externalRef) => {
|
|
7198
|
+
const internalRef = useRef5();
|
|
7199
|
+
const ref = isValidRef(externalRef) ? externalRef : internalRef;
|
|
7143
7200
|
let leftIconToDisplay = leftIcon;
|
|
7144
7201
|
if (isNil10(leftIcon) && type === "search") {
|
|
7145
|
-
leftIconToDisplay = /* @__PURE__ */
|
|
7202
|
+
leftIconToDisplay = /* @__PURE__ */ jsx184(Icon, { type: "search" });
|
|
7146
7203
|
}
|
|
7147
7204
|
if (isNotNil8(leftIconToDisplay)) {
|
|
7148
7205
|
leftIconToDisplay = cloneElement5(leftIconToDisplay, {
|
|
@@ -7157,6 +7214,16 @@ var Input = forwardRef11(
|
|
|
7157
7214
|
className: "wui-input-right-icon"
|
|
7158
7215
|
});
|
|
7159
7216
|
}
|
|
7217
|
+
const handleFocus = (event) => {
|
|
7218
|
+
if (isNotNil8(props.onFocus)) {
|
|
7219
|
+
props.onFocus(event);
|
|
7220
|
+
}
|
|
7221
|
+
if (autoSelect && ref && "current" in ref) {
|
|
7222
|
+
requestAnimationFrame(() => {
|
|
7223
|
+
ref.current?.select();
|
|
7224
|
+
});
|
|
7225
|
+
}
|
|
7226
|
+
};
|
|
7160
7227
|
return /* @__PURE__ */ jsxs12(
|
|
7161
7228
|
StyledInputContainer,
|
|
7162
7229
|
{
|
|
@@ -7164,17 +7231,19 @@ var Input = forwardRef11(
|
|
|
7164
7231
|
$monospace: monospace,
|
|
7165
7232
|
children: [
|
|
7166
7233
|
leftIconToDisplay ?? null,
|
|
7167
|
-
type === "multiline" ? /* @__PURE__ */
|
|
7234
|
+
type === "multiline" ? /* @__PURE__ */ jsx184(
|
|
7168
7235
|
"textarea",
|
|
7169
7236
|
{
|
|
7170
7237
|
...props,
|
|
7171
|
-
ref
|
|
7238
|
+
ref,
|
|
7239
|
+
onFocus: handleFocus
|
|
7172
7240
|
}
|
|
7173
|
-
) : /* @__PURE__ */
|
|
7241
|
+
) : /* @__PURE__ */ jsx184(
|
|
7174
7242
|
"input",
|
|
7175
7243
|
{
|
|
7176
7244
|
...props,
|
|
7177
7245
|
ref,
|
|
7246
|
+
onFocus: handleFocus,
|
|
7178
7247
|
type
|
|
7179
7248
|
}
|
|
7180
7249
|
),
|
|
@@ -7187,7 +7256,7 @@ var Input = forwardRef11(
|
|
|
7187
7256
|
Input.displayName = "Input";
|
|
7188
7257
|
|
|
7189
7258
|
// src/components/Menu/Menu.tsx
|
|
7190
|
-
import
|
|
7259
|
+
import styled25, { css as css20, keyframes } from "styled-components";
|
|
7191
7260
|
import {
|
|
7192
7261
|
DropdownMenu,
|
|
7193
7262
|
DropdownMenuTrigger,
|
|
@@ -7195,7 +7264,7 @@ import {
|
|
|
7195
7264
|
DropdownMenuContent
|
|
7196
7265
|
} from "@radix-ui/react-dropdown-menu";
|
|
7197
7266
|
import { isNotNil as isNotNil9, isNotUndefined as isNotUndefined7 } from "@wistia/type-guards";
|
|
7198
|
-
import { jsx as
|
|
7267
|
+
import { jsx as jsx185, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
7199
7268
|
var open = keyframes`
|
|
7200
7269
|
from {
|
|
7201
7270
|
opacity: 0;
|
|
@@ -7275,7 +7344,7 @@ var compactMenuItemCss = css20`
|
|
|
7275
7344
|
--menu-label-font-weight: var(--wui-typography-label-4-weight);
|
|
7276
7345
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
7277
7346
|
`;
|
|
7278
|
-
var MenuContent =
|
|
7347
|
+
var MenuContent = styled25(DropdownMenuContent)`
|
|
7279
7348
|
${menuContentCss}
|
|
7280
7349
|
${({ $compact }) => $compact ? compactMenuItemCss : menuItemCss}
|
|
7281
7350
|
`;
|
|
@@ -7307,18 +7376,18 @@ var Menu = ({
|
|
|
7307
7376
|
modal: false,
|
|
7308
7377
|
...controlProps,
|
|
7309
7378
|
children: [
|
|
7310
|
-
/* @__PURE__ */
|
|
7379
|
+
/* @__PURE__ */ jsx185(DropdownMenuTrigger, { asChild: true, children: isNotUndefined7(trigger) ? trigger : /* @__PURE__ */ jsx185(
|
|
7311
7380
|
Button,
|
|
7312
7381
|
{
|
|
7313
7382
|
"aria-expanded": isOpen,
|
|
7314
7383
|
disabled,
|
|
7315
7384
|
forceState: isOpen ? "active" : void 0,
|
|
7316
|
-
rightIcon: /* @__PURE__ */
|
|
7385
|
+
rightIcon: /* @__PURE__ */ jsx185(Icon, { type: "caret-down" }),
|
|
7317
7386
|
...triggerProps,
|
|
7318
7387
|
children: label
|
|
7319
7388
|
}
|
|
7320
7389
|
) }),
|
|
7321
|
-
/* @__PURE__ */
|
|
7390
|
+
/* @__PURE__ */ jsx185(DropdownMenuPortal, { children: /* @__PURE__ */ jsx185(
|
|
7322
7391
|
MenuContent,
|
|
7323
7392
|
{
|
|
7324
7393
|
...props,
|
|
@@ -7338,19 +7407,19 @@ var Menu = ({
|
|
|
7338
7407
|
Menu.displayName = "Menu";
|
|
7339
7408
|
|
|
7340
7409
|
// src/components/Menu/MenuLabel.tsx
|
|
7341
|
-
import
|
|
7410
|
+
import styled26 from "styled-components";
|
|
7342
7411
|
import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
|
|
7343
|
-
import { jsx as
|
|
7344
|
-
var StyledMenuLabel =
|
|
7412
|
+
import { jsx as jsx186 } from "react/jsx-runtime";
|
|
7413
|
+
var StyledMenuLabel = styled26(DropdownMenuLabel)`
|
|
7345
7414
|
padding: var(--wui-space-02);
|
|
7346
7415
|
`;
|
|
7347
7416
|
var MenuLabel = ({ children, ...props }) => {
|
|
7348
|
-
return /* @__PURE__ */
|
|
7417
|
+
return /* @__PURE__ */ jsx186(
|
|
7349
7418
|
StyledMenuLabel,
|
|
7350
7419
|
{
|
|
7351
7420
|
asChild: true,
|
|
7352
7421
|
...props,
|
|
7353
|
-
children: /* @__PURE__ */
|
|
7422
|
+
children: /* @__PURE__ */ jsx186(
|
|
7354
7423
|
Heading,
|
|
7355
7424
|
{
|
|
7356
7425
|
renderAs: "span",
|
|
@@ -7366,7 +7435,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
7366
7435
|
|
|
7367
7436
|
// src/components/Menu/SubMenu.tsx
|
|
7368
7437
|
import { useState as useState6 } from "react";
|
|
7369
|
-
import
|
|
7438
|
+
import styled29 from "styled-components";
|
|
7370
7439
|
import {
|
|
7371
7440
|
DropdownMenuPortal as DropdownMenuPortal2,
|
|
7372
7441
|
DropdownMenuSub,
|
|
@@ -7379,10 +7448,10 @@ import { isNotNil as isNotNil11 } from "@wistia/type-guards";
|
|
|
7379
7448
|
|
|
7380
7449
|
// src/components/Menu/MenuItemButton.tsx
|
|
7381
7450
|
import { forwardRef as forwardRef12 } from "react";
|
|
7382
|
-
import
|
|
7451
|
+
import styled27 from "styled-components";
|
|
7383
7452
|
import { isNotNil as isNotNil10, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
|
|
7384
|
-
import { jsx as
|
|
7385
|
-
var StyledButton3 =
|
|
7453
|
+
import { jsx as jsx187, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
7454
|
+
var StyledButton3 = styled27(Button)`
|
|
7386
7455
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
7387
7456
|
|
|
7388
7457
|
display: flex;
|
|
@@ -7420,7 +7489,7 @@ var StyledButton3 = styled26(Button)`
|
|
|
7420
7489
|
padding-left: var(--wui-space-04);
|
|
7421
7490
|
}
|
|
7422
7491
|
`;
|
|
7423
|
-
var StyledLeftIconContainer =
|
|
7492
|
+
var StyledLeftIconContainer = styled27.div`
|
|
7424
7493
|
height: var(--menu-item-left-icon-size);
|
|
7425
7494
|
width: var(--menu-item-left-icon-size);
|
|
7426
7495
|
|
|
@@ -7429,7 +7498,7 @@ var StyledLeftIconContainer = styled26.div`
|
|
|
7429
7498
|
width: var(--menu-item-left-icon-size);
|
|
7430
7499
|
}
|
|
7431
7500
|
`;
|
|
7432
|
-
var StyledRightIconContainer =
|
|
7501
|
+
var StyledRightIconContainer = styled27.div`
|
|
7433
7502
|
height: var(--menu-item-right-icon-size);
|
|
7434
7503
|
width: var(--menu-item-right-icon-size);
|
|
7435
7504
|
|
|
@@ -7438,13 +7507,13 @@ var StyledRightIconContainer = styled26.div`
|
|
|
7438
7507
|
width: var(--menu-item-right-icon-size);
|
|
7439
7508
|
}
|
|
7440
7509
|
`;
|
|
7441
|
-
var StyledLabelAndDescriptionContainer =
|
|
7510
|
+
var StyledLabelAndDescriptionContainer = styled27.div`
|
|
7442
7511
|
display: flex;
|
|
7443
7512
|
flex-direction: column;
|
|
7444
7513
|
gap: var(--menu-label-description-gap);
|
|
7445
7514
|
flex-basis: 100%;
|
|
7446
7515
|
`;
|
|
7447
|
-
var StyledBadgeContainer =
|
|
7516
|
+
var StyledBadgeContainer = styled27.div`
|
|
7448
7517
|
align-self: start;
|
|
7449
7518
|
justify-self: end;
|
|
7450
7519
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -7459,7 +7528,7 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
|
|
|
7459
7528
|
colorScheme = "error";
|
|
7460
7529
|
}
|
|
7461
7530
|
if (appearance === "gated") {
|
|
7462
|
-
badge = /* @__PURE__ */
|
|
7531
|
+
badge = /* @__PURE__ */ jsx187(
|
|
7463
7532
|
Icon,
|
|
7464
7533
|
{
|
|
7465
7534
|
colorScheme: "purple",
|
|
@@ -7481,10 +7550,10 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
|
|
|
7481
7550
|
fullWidth: true,
|
|
7482
7551
|
unstyled: true,
|
|
7483
7552
|
children: [
|
|
7484
|
-
props.leftIcon ? /* @__PURE__ */
|
|
7485
|
-
/* @__PURE__ */
|
|
7486
|
-
isNotNil10(badge) || isNotNil10(command) ? /* @__PURE__ */
|
|
7487
|
-
props.rightIcon ? /* @__PURE__ */
|
|
7553
|
+
props.leftIcon ? /* @__PURE__ */ jsx187(StyledLeftIconContainer, { children: props.leftIcon }) : null,
|
|
7554
|
+
/* @__PURE__ */ jsx187(StyledLabelAndDescriptionContainer, { children }),
|
|
7555
|
+
isNotNil10(badge) || isNotNil10(command) ? /* @__PURE__ */ jsx187(StyledBadgeContainer, { children: badge ?? command }) : null,
|
|
7556
|
+
props.rightIcon ? /* @__PURE__ */ jsx187(StyledRightIconContainer, { children: props.rightIcon }) : null
|
|
7488
7557
|
]
|
|
7489
7558
|
}
|
|
7490
7559
|
);
|
|
@@ -7492,23 +7561,23 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
|
|
|
7492
7561
|
MenuItemButton.displayName = "MenuItemButton";
|
|
7493
7562
|
|
|
7494
7563
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
7495
|
-
import
|
|
7496
|
-
import { jsx as
|
|
7497
|
-
var StyledMenuItemLabel =
|
|
7498
|
-
var StyledMenuItemDescription =
|
|
7564
|
+
import styled28 from "styled-components";
|
|
7565
|
+
import { jsx as jsx188 } from "react/jsx-runtime";
|
|
7566
|
+
var StyledMenuItemLabel = styled28.span``;
|
|
7567
|
+
var StyledMenuItemDescription = styled28(Text).attrs({
|
|
7499
7568
|
variant: "body4",
|
|
7500
7569
|
prominence: "secondary"
|
|
7501
7570
|
})``;
|
|
7502
7571
|
var MenuItemLabel = ({ children }) => {
|
|
7503
|
-
return /* @__PURE__ */
|
|
7572
|
+
return /* @__PURE__ */ jsx188(StyledMenuItemLabel, { children });
|
|
7504
7573
|
};
|
|
7505
7574
|
var MenuItemDescription = ({ children }) => {
|
|
7506
|
-
return /* @__PURE__ */
|
|
7575
|
+
return /* @__PURE__ */ jsx188(StyledMenuItemDescription, { children });
|
|
7507
7576
|
};
|
|
7508
7577
|
|
|
7509
7578
|
// src/components/Menu/SubMenu.tsx
|
|
7510
|
-
import { jsx as
|
|
7511
|
-
var SubMenuContent =
|
|
7579
|
+
import { jsx as jsx189, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
7580
|
+
var SubMenuContent = styled29(DropdownMenuSubContent)`
|
|
7512
7581
|
${menuContentCss}
|
|
7513
7582
|
width: 298px;
|
|
7514
7583
|
|
|
@@ -7516,10 +7585,10 @@ var SubMenuContent = styled28(DropdownMenuSubContent)`
|
|
|
7516
7585
|
transform: translateX(-100%) !important;
|
|
7517
7586
|
}
|
|
7518
7587
|
`;
|
|
7519
|
-
var StyledMobileSubMenuItems =
|
|
7588
|
+
var StyledMobileSubMenuItems = styled29.div`
|
|
7520
7589
|
margin-left: var(--wui-space-04);
|
|
7521
7590
|
`;
|
|
7522
|
-
var StyledSubTrigger =
|
|
7591
|
+
var StyledSubTrigger = styled29(DropdownMenuSubTrigger)`
|
|
7523
7592
|
outline: none;
|
|
7524
7593
|
|
|
7525
7594
|
&[data-state='open'],
|
|
@@ -7530,11 +7599,11 @@ var StyledSubTrigger = styled28(DropdownMenuSubTrigger)`
|
|
|
7530
7599
|
var SubMenuTrigger = (props) => {
|
|
7531
7600
|
const { isSmAndUp } = useMq();
|
|
7532
7601
|
const Trigger2 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
|
|
7533
|
-
return /* @__PURE__ */
|
|
7602
|
+
return /* @__PURE__ */ jsx189(Trigger2, { asChild: true, children: /* @__PURE__ */ jsx189(
|
|
7534
7603
|
MenuItemButton,
|
|
7535
7604
|
{
|
|
7536
7605
|
...props,
|
|
7537
|
-
rightIcon: /* @__PURE__ */
|
|
7606
|
+
rightIcon: /* @__PURE__ */ jsx189(Icon, { type: "caret-right" })
|
|
7538
7607
|
}
|
|
7539
7608
|
) });
|
|
7540
7609
|
};
|
|
@@ -7549,10 +7618,10 @@ var SubMenu = ({
|
|
|
7549
7618
|
const [isExpanded, setIsExpanded] = useState6(false);
|
|
7550
7619
|
return isSmAndUp ? /* @__PURE__ */ jsxs15(DropdownMenuSub, { onOpenChange, children: [
|
|
7551
7620
|
/* @__PURE__ */ jsxs15(SubMenuTrigger, { ...props, children: [
|
|
7552
|
-
/* @__PURE__ */
|
|
7553
|
-
isNotNil11(description) ? /* @__PURE__ */
|
|
7621
|
+
/* @__PURE__ */ jsx189(MenuItemLabel, { children: label }),
|
|
7622
|
+
isNotNil11(description) ? /* @__PURE__ */ jsx189(MenuItemDescription, { children: description }) : null
|
|
7554
7623
|
] }),
|
|
7555
|
-
/* @__PURE__ */
|
|
7624
|
+
/* @__PURE__ */ jsx189(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx189(SubMenuContent, { children }) })
|
|
7556
7625
|
] }) : /* @__PURE__ */ jsxs15(DropdownMenuGroup, { children: [
|
|
7557
7626
|
/* @__PURE__ */ jsxs15(
|
|
7558
7627
|
SubMenuTrigger,
|
|
@@ -7563,12 +7632,12 @@ var SubMenu = ({
|
|
|
7563
7632
|
setIsExpanded((prev) => !prev);
|
|
7564
7633
|
},
|
|
7565
7634
|
children: [
|
|
7566
|
-
/* @__PURE__ */
|
|
7567
|
-
/* @__PURE__ */
|
|
7635
|
+
/* @__PURE__ */ jsx189(MenuItemLabel, { children: label }),
|
|
7636
|
+
/* @__PURE__ */ jsx189(MenuItemDescription, { children: description })
|
|
7568
7637
|
]
|
|
7569
7638
|
}
|
|
7570
7639
|
),
|
|
7571
|
-
/* @__PURE__ */
|
|
7640
|
+
/* @__PURE__ */ jsx189(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
|
|
7572
7641
|
] });
|
|
7573
7642
|
};
|
|
7574
7643
|
SubMenu.displayName = "SubMenu";
|
|
@@ -7576,15 +7645,15 @@ SubMenu.displayName = "SubMenu";
|
|
|
7576
7645
|
// src/components/Menu/MenuItem.tsx
|
|
7577
7646
|
import { forwardRef as forwardRef13 } from "react";
|
|
7578
7647
|
import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
|
|
7579
|
-
import { jsx as
|
|
7648
|
+
import { jsx as jsx190 } from "react/jsx-runtime";
|
|
7580
7649
|
var MenuItem = forwardRef13(
|
|
7581
7650
|
({ onSelect = () => null, ...props }, ref) => {
|
|
7582
|
-
return /* @__PURE__ */
|
|
7651
|
+
return /* @__PURE__ */ jsx190(
|
|
7583
7652
|
DropdownMenuItem2,
|
|
7584
7653
|
{
|
|
7585
7654
|
asChild: true,
|
|
7586
7655
|
onSelect,
|
|
7587
|
-
children: /* @__PURE__ */
|
|
7656
|
+
children: /* @__PURE__ */ jsx190(
|
|
7588
7657
|
MenuItemButton,
|
|
7589
7658
|
{
|
|
7590
7659
|
...props,
|
|
@@ -7602,10 +7671,10 @@ MenuItem.displayName = "MenuItem";
|
|
|
7602
7671
|
import {
|
|
7603
7672
|
DropdownMenuRadioGroup
|
|
7604
7673
|
} from "@radix-ui/react-dropdown-menu";
|
|
7605
|
-
import { jsx as
|
|
7674
|
+
import { jsx as jsx191, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
7606
7675
|
var MenuRadioGroup = ({ children, label, ...props }) => {
|
|
7607
7676
|
return /* @__PURE__ */ jsxs16(DropdownMenuRadioGroup, { ...props, children: [
|
|
7608
|
-
/* @__PURE__ */
|
|
7677
|
+
/* @__PURE__ */ jsx191(MenuLabel, { children: label }),
|
|
7609
7678
|
children
|
|
7610
7679
|
] });
|
|
7611
7680
|
};
|
|
@@ -7616,11 +7685,11 @@ import {
|
|
|
7616
7685
|
DropdownMenuItemIndicator,
|
|
7617
7686
|
DropdownMenuRadioItem
|
|
7618
7687
|
} from "@radix-ui/react-dropdown-menu";
|
|
7619
|
-
import { jsx as
|
|
7688
|
+
import { jsx as jsx192 } from "react/jsx-runtime";
|
|
7620
7689
|
var RadioMenuItem = ({
|
|
7621
7690
|
onSelect,
|
|
7622
7691
|
value,
|
|
7623
|
-
indicator = /* @__PURE__ */
|
|
7692
|
+
indicator = /* @__PURE__ */ jsx192(
|
|
7624
7693
|
Icon,
|
|
7625
7694
|
{
|
|
7626
7695
|
size: "sm",
|
|
@@ -7630,17 +7699,17 @@ var RadioMenuItem = ({
|
|
|
7630
7699
|
...props
|
|
7631
7700
|
}) => {
|
|
7632
7701
|
const extraProps = onSelect ? { onSelect } : {};
|
|
7633
|
-
return /* @__PURE__ */
|
|
7702
|
+
return /* @__PURE__ */ jsx192(
|
|
7634
7703
|
DropdownMenuRadioItem,
|
|
7635
7704
|
{
|
|
7636
7705
|
...extraProps,
|
|
7637
7706
|
asChild: true,
|
|
7638
7707
|
value,
|
|
7639
|
-
children: /* @__PURE__ */
|
|
7708
|
+
children: /* @__PURE__ */ jsx192(
|
|
7640
7709
|
MenuItemButton,
|
|
7641
7710
|
{
|
|
7642
7711
|
...props,
|
|
7643
|
-
rightIcon: /* @__PURE__ */
|
|
7712
|
+
rightIcon: /* @__PURE__ */ jsx192(DropdownMenuItemIndicator, { children: indicator })
|
|
7644
7713
|
}
|
|
7645
7714
|
)
|
|
7646
7715
|
}
|
|
@@ -7652,7 +7721,7 @@ RadioMenuItem.displayName = "RadioMenuItem";
|
|
|
7652
7721
|
import {
|
|
7653
7722
|
DropdownMenuCheckboxItem
|
|
7654
7723
|
} from "@radix-ui/react-dropdown-menu";
|
|
7655
|
-
import { jsx as
|
|
7724
|
+
import { jsx as jsx193, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
7656
7725
|
var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
7657
7726
|
return checked ? /* @__PURE__ */ jsxs17(
|
|
7658
7727
|
"svg",
|
|
@@ -7664,14 +7733,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
7664
7733
|
width: "24",
|
|
7665
7734
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7666
7735
|
children: [
|
|
7667
|
-
/* @__PURE__ */
|
|
7736
|
+
/* @__PURE__ */ jsx193(
|
|
7668
7737
|
"path",
|
|
7669
7738
|
{
|
|
7670
7739
|
d: "m4 8c0-2.20914 1.79086-4 4-4h8c2.2091 0 4 1.79086 4 4v8c0 2.2091-1.7909 4-4 4h-8c-2.20914 0-4-1.7909-4-4z",
|
|
7671
7740
|
fill: "#2949e5"
|
|
7672
7741
|
}
|
|
7673
7742
|
),
|
|
7674
|
-
/* @__PURE__ */
|
|
7743
|
+
/* @__PURE__ */ jsx193(
|
|
7675
7744
|
"path",
|
|
7676
7745
|
{
|
|
7677
7746
|
d: "m10.4728 15.1931-3.09523-3.1131c-.18596-.187-.18596-.4902 0-.6773l.67341-.6773c.18596-.187.48749-.187.67344 0l2.08508 2.0971 4.4661-4.49174c.1859-.18703.4875-.18703.6734 0l.6734.67731c.186.18703.186.49027 0 .67731l-5.4762 5.50772c-.1859.187-.4874.187-.6734 0z",
|
|
@@ -7690,14 +7759,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
7690
7759
|
width: "24",
|
|
7691
7760
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7692
7761
|
children: [
|
|
7693
|
-
/* @__PURE__ */
|
|
7762
|
+
/* @__PURE__ */ jsx193(
|
|
7694
7763
|
"path",
|
|
7695
7764
|
{
|
|
7696
7765
|
d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
|
|
7697
7766
|
fill: "#fcfcfd"
|
|
7698
7767
|
}
|
|
7699
7768
|
),
|
|
7700
|
-
/* @__PURE__ */
|
|
7769
|
+
/* @__PURE__ */ jsx193(
|
|
7701
7770
|
"path",
|
|
7702
7771
|
{
|
|
7703
7772
|
d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
|
|
@@ -7714,18 +7783,18 @@ var CheckboxMenuItem = ({
|
|
|
7714
7783
|
onCheckedChange,
|
|
7715
7784
|
...props
|
|
7716
7785
|
}) => {
|
|
7717
|
-
return /* @__PURE__ */
|
|
7786
|
+
return /* @__PURE__ */ jsx193(
|
|
7718
7787
|
DropdownMenuCheckboxItem,
|
|
7719
7788
|
{
|
|
7720
7789
|
asChild: true,
|
|
7721
7790
|
checked,
|
|
7722
7791
|
onCheckedChange,
|
|
7723
7792
|
onSelect,
|
|
7724
|
-
children: /* @__PURE__ */
|
|
7793
|
+
children: /* @__PURE__ */ jsx193(
|
|
7725
7794
|
MenuItemButton,
|
|
7726
7795
|
{
|
|
7727
7796
|
...props,
|
|
7728
|
-
leftIcon: /* @__PURE__ */
|
|
7797
|
+
leftIcon: /* @__PURE__ */ jsx193(CheckboxIndicator2, { checked })
|
|
7729
7798
|
}
|
|
7730
7799
|
)
|
|
7731
7800
|
}
|
|
@@ -7735,39 +7804,39 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
7735
7804
|
|
|
7736
7805
|
// src/components/Modal/Modal.tsx
|
|
7737
7806
|
import { forwardRef as forwardRef16 } from "react";
|
|
7738
|
-
import
|
|
7807
|
+
import styled35 from "styled-components";
|
|
7739
7808
|
import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
|
|
7740
7809
|
import { isNotNil as isNotNil14 } from "@wistia/type-guards";
|
|
7741
7810
|
|
|
7742
7811
|
// src/components/Modal/ModalHeader.tsx
|
|
7743
|
-
import
|
|
7812
|
+
import styled32 from "styled-components";
|
|
7744
7813
|
import { Title as DialogTitle } from "@radix-ui/react-dialog";
|
|
7745
7814
|
|
|
7746
7815
|
// src/components/Modal/ModalCloseButton.tsx
|
|
7747
|
-
import
|
|
7816
|
+
import styled30 from "styled-components";
|
|
7748
7817
|
import { Close as DialogClose } from "@radix-ui/react-dialog";
|
|
7749
|
-
import { jsx as
|
|
7750
|
-
var CloseButton =
|
|
7818
|
+
import { jsx as jsx194 } from "react/jsx-runtime";
|
|
7819
|
+
var CloseButton = styled30(DialogClose)`
|
|
7751
7820
|
align-self: start;
|
|
7752
7821
|
`;
|
|
7753
7822
|
var ModalCloseButton = () => {
|
|
7754
|
-
return /* @__PURE__ */
|
|
7823
|
+
return /* @__PURE__ */ jsx194(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx194(
|
|
7755
7824
|
IconButton,
|
|
7756
7825
|
{
|
|
7757
7826
|
label: "Dismiss modal",
|
|
7758
7827
|
size: "sm",
|
|
7759
7828
|
variant: "ghost",
|
|
7760
|
-
children: /* @__PURE__ */
|
|
7829
|
+
children: /* @__PURE__ */ jsx194(Icon, { type: "close" })
|
|
7761
7830
|
}
|
|
7762
7831
|
) });
|
|
7763
7832
|
};
|
|
7764
7833
|
|
|
7765
7834
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
7766
|
-
import
|
|
7835
|
+
import styled31 from "styled-components";
|
|
7767
7836
|
import { isNotNil as isNotNil12 } from "@wistia/type-guards";
|
|
7768
|
-
import { jsx as
|
|
7769
|
-
var VisuallyHidden =
|
|
7770
|
-
var VisuallyHiddenButFocusable =
|
|
7837
|
+
import { jsx as jsx195 } from "react/jsx-runtime";
|
|
7838
|
+
var VisuallyHidden = styled31.div({ ...visuallyHiddenStyle });
|
|
7839
|
+
var VisuallyHiddenButFocusable = styled31.div({
|
|
7771
7840
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
7772
7841
|
});
|
|
7773
7842
|
var ScreenReaderOnly = ({
|
|
@@ -7778,15 +7847,15 @@ var ScreenReaderOnly = ({
|
|
|
7778
7847
|
}) => {
|
|
7779
7848
|
const accessibleText = isNotNil12(text) ? text : children;
|
|
7780
7849
|
if (focusable) {
|
|
7781
|
-
return /* @__PURE__ */
|
|
7850
|
+
return /* @__PURE__ */ jsx195(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
|
|
7782
7851
|
}
|
|
7783
|
-
return /* @__PURE__ */
|
|
7852
|
+
return /* @__PURE__ */ jsx195(VisuallyHidden, { ...otherProps, children: accessibleText });
|
|
7784
7853
|
};
|
|
7785
7854
|
ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
7786
7855
|
|
|
7787
7856
|
// src/components/Modal/ModalHeader.tsx
|
|
7788
|
-
import { jsx as
|
|
7789
|
-
var Header =
|
|
7857
|
+
import { jsx as jsx196, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
7858
|
+
var Header = styled32.header`
|
|
7790
7859
|
display: flex;
|
|
7791
7860
|
order: 1;
|
|
7792
7861
|
gap: var(--wui-space-01);
|
|
@@ -7798,7 +7867,7 @@ var Header = styled31.header`
|
|
|
7798
7867
|
margin-top: 0;
|
|
7799
7868
|
}
|
|
7800
7869
|
`;
|
|
7801
|
-
var Title =
|
|
7870
|
+
var Title = styled32(DialogTitle)`
|
|
7802
7871
|
font-family: var(--wui-typography-heading-2-family);
|
|
7803
7872
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
7804
7873
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -7811,21 +7880,21 @@ var ModalHeader = ({
|
|
|
7811
7880
|
}) => {
|
|
7812
7881
|
const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
|
|
7813
7882
|
return /* @__PURE__ */ jsxs18(Header, { children: [
|
|
7814
|
-
/* @__PURE__ */
|
|
7815
|
-
hideCloseButton ? null : /* @__PURE__ */
|
|
7883
|
+
/* @__PURE__ */ jsx196(TitleWrapper, { children: title }),
|
|
7884
|
+
hideCloseButton ? null : /* @__PURE__ */ jsx196(ModalCloseButton, {})
|
|
7816
7885
|
] });
|
|
7817
7886
|
};
|
|
7818
7887
|
|
|
7819
7888
|
// src/components/Modal/ModalContent.tsx
|
|
7820
7889
|
import { forwardRef as forwardRef14 } from "react";
|
|
7821
|
-
import
|
|
7890
|
+
import styled33 from "styled-components";
|
|
7822
7891
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
7823
7892
|
|
|
7824
7893
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
7825
|
-
import { useRef as
|
|
7894
|
+
import { useRef as useRef6, useEffect as useEffect2 } from "react";
|
|
7826
7895
|
import { isNotNil as isNotNil13 } from "@wistia/type-guards";
|
|
7827
7896
|
var useFocusRestore = () => {
|
|
7828
|
-
const previouslyFocusedRef =
|
|
7897
|
+
const previouslyFocusedRef = useRef6(null);
|
|
7829
7898
|
useEffect2(() => {
|
|
7830
7899
|
previouslyFocusedRef.current = document.activeElement;
|
|
7831
7900
|
}, []);
|
|
@@ -7841,8 +7910,8 @@ var useFocusRestore = () => {
|
|
|
7841
7910
|
};
|
|
7842
7911
|
|
|
7843
7912
|
// src/components/Modal/ModalContent.tsx
|
|
7844
|
-
import { jsx as
|
|
7845
|
-
var StyledModalContent =
|
|
7913
|
+
import { jsx as jsx197 } from "react/jsx-runtime";
|
|
7914
|
+
var StyledModalContent = styled33(DialogContent)`
|
|
7846
7915
|
background-color: var(--wui-color-bg-app);
|
|
7847
7916
|
box-sizing: border-box;
|
|
7848
7917
|
display: flex;
|
|
@@ -7885,7 +7954,7 @@ var StyledModalContent = styled32(DialogContent)`
|
|
|
7885
7954
|
var ModalContent = forwardRef14(
|
|
7886
7955
|
({ fullHeight, width, children, ...otherProps }, ref) => {
|
|
7887
7956
|
useFocusRestore();
|
|
7888
|
-
return /* @__PURE__ */
|
|
7957
|
+
return /* @__PURE__ */ jsx197(
|
|
7889
7958
|
StyledModalContent,
|
|
7890
7959
|
{
|
|
7891
7960
|
ref,
|
|
@@ -7900,8 +7969,8 @@ var ModalContent = forwardRef14(
|
|
|
7900
7969
|
|
|
7901
7970
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
7902
7971
|
import { forwardRef as forwardRef15 } from "react";
|
|
7903
|
-
import
|
|
7904
|
-
import { jsx as
|
|
7972
|
+
import styled34 from "styled-components";
|
|
7973
|
+
import { jsx as jsx198 } from "react/jsx-runtime";
|
|
7905
7974
|
var backdropAnimationDuration = 150;
|
|
7906
7975
|
var alignVerticalMap = {
|
|
7907
7976
|
stretch: "normal",
|
|
@@ -7914,7 +7983,7 @@ var alignHorizontalMap = {
|
|
|
7914
7983
|
center: "center",
|
|
7915
7984
|
right: "end"
|
|
7916
7985
|
};
|
|
7917
|
-
var BackdropComponent =
|
|
7986
|
+
var BackdropComponent = styled34.div`
|
|
7918
7987
|
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
7919
7988
|
animation-name: backdropShow;
|
|
7920
7989
|
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
@@ -7938,7 +8007,7 @@ var BackdropComponent = styled33.div`
|
|
|
7938
8007
|
}
|
|
7939
8008
|
`;
|
|
7940
8009
|
var Backdrop = forwardRef15(
|
|
7941
|
-
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */
|
|
8010
|
+
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx198(
|
|
7942
8011
|
BackdropComponent,
|
|
7943
8012
|
{
|
|
7944
8013
|
ref,
|
|
@@ -7952,8 +8021,8 @@ var Backdrop = forwardRef15(
|
|
|
7952
8021
|
Backdrop.displayName = "Backdrop";
|
|
7953
8022
|
|
|
7954
8023
|
// src/components/Modal/Modal.tsx
|
|
7955
|
-
import { jsx as
|
|
7956
|
-
var ModalBody =
|
|
8024
|
+
import { jsx as jsx199, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
8025
|
+
var ModalBody = styled35.div`
|
|
7957
8026
|
flex-direction: column;
|
|
7958
8027
|
display: flex;
|
|
7959
8028
|
order: 2;
|
|
@@ -7971,7 +8040,7 @@ var Modal = forwardRef16(
|
|
|
7971
8040
|
width,
|
|
7972
8041
|
...props
|
|
7973
8042
|
}, ref) => {
|
|
7974
|
-
return /* @__PURE__ */
|
|
8043
|
+
return /* @__PURE__ */ jsx199(
|
|
7975
8044
|
DialogRoot,
|
|
7976
8045
|
{
|
|
7977
8046
|
onOpenChange: (open2) => {
|
|
@@ -7981,7 +8050,7 @@ var Modal = forwardRef16(
|
|
|
7981
8050
|
},
|
|
7982
8051
|
open: isOpen,
|
|
7983
8052
|
children: /* @__PURE__ */ jsxs19(DialogPortal, { children: [
|
|
7984
|
-
/* @__PURE__ */
|
|
8053
|
+
/* @__PURE__ */ jsx199(Backdrop, {}),
|
|
7985
8054
|
/* @__PURE__ */ jsxs19(
|
|
7986
8055
|
ModalContent,
|
|
7987
8056
|
{
|
|
@@ -7999,8 +8068,8 @@ var Modal = forwardRef16(
|
|
|
7999
8068
|
width,
|
|
8000
8069
|
...props,
|
|
8001
8070
|
children: [
|
|
8002
|
-
/* @__PURE__ */
|
|
8003
|
-
/* @__PURE__ */
|
|
8071
|
+
/* @__PURE__ */ jsx199(ModalBody, { children }),
|
|
8072
|
+
/* @__PURE__ */ jsx199(
|
|
8004
8073
|
ModalHeader,
|
|
8005
8074
|
{
|
|
8006
8075
|
hideCloseButton,
|
|
@@ -8020,15 +8089,15 @@ Modal.displayName = "Modal";
|
|
|
8020
8089
|
|
|
8021
8090
|
// src/components/Radio/Radio.tsx
|
|
8022
8091
|
import { forwardRef as forwardRef17, useId as useId3 } from "react";
|
|
8023
|
-
import
|
|
8092
|
+
import styled36, { css as css21 } from "styled-components";
|
|
8024
8093
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
8025
|
-
import { jsx as
|
|
8026
|
-
var StyledLabelWrapper2 =
|
|
8094
|
+
import { jsx as jsx200, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
8095
|
+
var StyledLabelWrapper2 = styled36.div`
|
|
8027
8096
|
display: flex;
|
|
8028
8097
|
flex-direction: column;
|
|
8029
8098
|
padding-left: var(--wui-space-02);
|
|
8030
8099
|
`;
|
|
8031
|
-
var StyledRadio =
|
|
8100
|
+
var StyledRadio = styled36.input`
|
|
8032
8101
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
8033
8102
|
appearance: none;
|
|
8034
8103
|
margin: 0;
|
|
@@ -8070,7 +8139,7 @@ var defaultHoverStyle = css21`
|
|
|
8070
8139
|
/* TODO Lamp to design hover state */
|
|
8071
8140
|
cursor: pointer;
|
|
8072
8141
|
`;
|
|
8073
|
-
var StyledRadioWrapper =
|
|
8142
|
+
var StyledRadioWrapper = styled36.div`
|
|
8074
8143
|
align-items: baseline;
|
|
8075
8144
|
border: 1px solid transparent;
|
|
8076
8145
|
border-radius: 4px;
|
|
@@ -8114,7 +8183,7 @@ var Radio = forwardRef17(
|
|
|
8114
8183
|
"aria-invalid": otherProps["aria-invalid"],
|
|
8115
8184
|
disabled,
|
|
8116
8185
|
children: [
|
|
8117
|
-
/* @__PURE__ */
|
|
8186
|
+
/* @__PURE__ */ jsx200(
|
|
8118
8187
|
StyledRadio,
|
|
8119
8188
|
{
|
|
8120
8189
|
ref,
|
|
@@ -8130,7 +8199,7 @@ var Radio = forwardRef17(
|
|
|
8130
8199
|
}
|
|
8131
8200
|
),
|
|
8132
8201
|
/* @__PURE__ */ jsxs20(StyledLabelWrapper2, { children: [
|
|
8133
|
-
/* @__PURE__ */
|
|
8202
|
+
/* @__PURE__ */ jsx200(
|
|
8134
8203
|
Label,
|
|
8135
8204
|
{
|
|
8136
8205
|
disabled,
|
|
@@ -8139,7 +8208,7 @@ var Radio = forwardRef17(
|
|
|
8139
8208
|
children: label
|
|
8140
8209
|
}
|
|
8141
8210
|
),
|
|
8142
|
-
/* @__PURE__ */
|
|
8211
|
+
/* @__PURE__ */ jsx200(LabelDescription, { children: description })
|
|
8143
8212
|
] })
|
|
8144
8213
|
]
|
|
8145
8214
|
}
|
|
@@ -8150,10 +8219,10 @@ Radio.displayName = "Radio";
|
|
|
8150
8219
|
|
|
8151
8220
|
// src/components/Tag/Tag.tsx
|
|
8152
8221
|
import { forwardRef as forwardRef18 } from "react";
|
|
8153
|
-
import
|
|
8222
|
+
import styled37 from "styled-components";
|
|
8154
8223
|
import { isNil as isNil11, isNotNil as isNotNil15, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
8155
|
-
import { Fragment as Fragment2, jsx as
|
|
8156
|
-
var TagLabel =
|
|
8224
|
+
import { Fragment as Fragment2, jsx as jsx201, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
8225
|
+
var TagLabel = styled37.a`
|
|
8157
8226
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8158
8227
|
font-size: var(--wui-typography-label-4-size);
|
|
8159
8228
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8181,14 +8250,14 @@ var TagLabel = styled36.a`
|
|
|
8181
8250
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8182
8251
|
}
|
|
8183
8252
|
`;
|
|
8184
|
-
var TagDivider =
|
|
8253
|
+
var TagDivider = styled37.div`
|
|
8185
8254
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8186
8255
|
border-left: 1px solid var(--wui-color-border);
|
|
8187
8256
|
display: flex;
|
|
8188
8257
|
height: 14px;
|
|
8189
8258
|
width: 1px;
|
|
8190
8259
|
`;
|
|
8191
|
-
var StyledRemoveButton =
|
|
8260
|
+
var StyledRemoveButton = styled37.button`
|
|
8192
8261
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8193
8262
|
all: unset;
|
|
8194
8263
|
cursor: pointer;
|
|
@@ -8216,7 +8285,7 @@ var StyledRemoveButton = styled36.button`
|
|
|
8216
8285
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8217
8286
|
}
|
|
8218
8287
|
`;
|
|
8219
|
-
var StyledTag =
|
|
8288
|
+
var StyledTag = styled37.div`
|
|
8220
8289
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8221
8290
|
align-items: center;
|
|
8222
8291
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -8234,7 +8303,7 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
8234
8303
|
);
|
|
8235
8304
|
}
|
|
8236
8305
|
return /* @__PURE__ */ jsxs21(Fragment2, { children: [
|
|
8237
|
-
/* @__PURE__ */
|
|
8306
|
+
/* @__PURE__ */ jsx201(TagDivider, { $colorScheme: colorScheme }),
|
|
8238
8307
|
/* @__PURE__ */ jsxs21(
|
|
8239
8308
|
StyledRemoveButton,
|
|
8240
8309
|
{
|
|
@@ -8242,14 +8311,14 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
8242
8311
|
onClick: onClickRemove,
|
|
8243
8312
|
type: "button",
|
|
8244
8313
|
children: [
|
|
8245
|
-
/* @__PURE__ */
|
|
8314
|
+
/* @__PURE__ */ jsx201(
|
|
8246
8315
|
Icon,
|
|
8247
8316
|
{
|
|
8248
8317
|
size: "sm",
|
|
8249
8318
|
type: "close"
|
|
8250
8319
|
}
|
|
8251
8320
|
),
|
|
8252
|
-
/* @__PURE__ */
|
|
8321
|
+
/* @__PURE__ */ jsx201(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
8253
8322
|
]
|
|
8254
8323
|
}
|
|
8255
8324
|
)
|
|
@@ -8265,7 +8334,7 @@ var Tag = forwardRef18(
|
|
|
8265
8334
|
$colorScheme: colorScheme,
|
|
8266
8335
|
...otherProps,
|
|
8267
8336
|
children: [
|
|
8268
|
-
/* @__PURE__ */
|
|
8337
|
+
/* @__PURE__ */ jsx201(
|
|
8269
8338
|
TagLabel,
|
|
8270
8339
|
{
|
|
8271
8340
|
...labelProps,
|
|
@@ -8273,7 +8342,7 @@ var Tag = forwardRef18(
|
|
|
8273
8342
|
children: label
|
|
8274
8343
|
}
|
|
8275
8344
|
),
|
|
8276
|
-
/* @__PURE__ */
|
|
8345
|
+
/* @__PURE__ */ jsx201(
|
|
8277
8346
|
RemoveButton,
|
|
8278
8347
|
{
|
|
8279
8348
|
colorScheme,
|
|
@@ -8296,8 +8365,8 @@ import {
|
|
|
8296
8365
|
Portal,
|
|
8297
8366
|
Arrow
|
|
8298
8367
|
} from "@radix-ui/react-tooltip";
|
|
8299
|
-
import
|
|
8300
|
-
import { jsx as
|
|
8368
|
+
import styled38, { css as css22 } from "styled-components";
|
|
8369
|
+
import { jsx as jsx202, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
8301
8370
|
var CompactTooltipStyles = css22`
|
|
8302
8371
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8303
8372
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
@@ -8305,7 +8374,7 @@ var CompactTooltipStyles = css22`
|
|
|
8305
8374
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8306
8375
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8307
8376
|
`;
|
|
8308
|
-
var StyledContent =
|
|
8377
|
+
var StyledContent = styled38(Content)`
|
|
8309
8378
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8310
8379
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8311
8380
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -8369,8 +8438,8 @@ var Tooltip = ({
|
|
|
8369
8438
|
delayDuration: delay,
|
|
8370
8439
|
...rootProps,
|
|
8371
8440
|
children: [
|
|
8372
|
-
/* @__PURE__ */
|
|
8373
|
-
/* @__PURE__ */
|
|
8441
|
+
/* @__PURE__ */ jsx202(Trigger, { asChild: true, children }),
|
|
8442
|
+
/* @__PURE__ */ jsx202(Portal, { children: /* @__PURE__ */ jsxs22(
|
|
8374
8443
|
StyledContent,
|
|
8375
8444
|
{
|
|
8376
8445
|
$compact: compact,
|
|
@@ -8378,7 +8447,7 @@ var Tooltip = ({
|
|
|
8378
8447
|
sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
|
|
8379
8448
|
children: [
|
|
8380
8449
|
content,
|
|
8381
|
-
!hideArrow ? /* @__PURE__ */
|
|
8450
|
+
!hideArrow ? /* @__PURE__ */ jsx202(Arrow, { asChild: true, children: /* @__PURE__ */ jsx202(
|
|
8382
8451
|
"svg",
|
|
8383
8452
|
{
|
|
8384
8453
|
fill: "var(--tooltip-bg)",
|
|
@@ -8387,7 +8456,7 @@ var Tooltip = ({
|
|
|
8387
8456
|
viewBox: "0 0 12 8",
|
|
8388
8457
|
width: "12",
|
|
8389
8458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8390
|
-
children: /* @__PURE__ */
|
|
8459
|
+
children: /* @__PURE__ */ jsx202("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
|
|
8391
8460
|
}
|
|
8392
8461
|
) }) : null
|
|
8393
8462
|
]
|
|
@@ -8400,26 +8469,26 @@ var Tooltip = ({
|
|
|
8400
8469
|
Tooltip.displayName = "Tooltip";
|
|
8401
8470
|
|
|
8402
8471
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
8403
|
-
import
|
|
8472
|
+
import styled39 from "styled-components";
|
|
8404
8473
|
import { isNotNil as isNotNil16 } from "@wistia/type-guards";
|
|
8405
|
-
import { jsx as
|
|
8474
|
+
import { jsx as jsx203, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
8406
8475
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
8407
8476
|
if (iconOnly) {
|
|
8408
|
-
return /* @__PURE__ */
|
|
8477
|
+
return /* @__PURE__ */ jsx203(
|
|
8409
8478
|
"g",
|
|
8410
8479
|
{
|
|
8411
8480
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
8412
8481
|
fill: brandmarkColor,
|
|
8413
|
-
children: /* @__PURE__ */
|
|
8482
|
+
children: /* @__PURE__ */ jsx203("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
|
|
8414
8483
|
}
|
|
8415
8484
|
);
|
|
8416
8485
|
}
|
|
8417
|
-
return /* @__PURE__ */
|
|
8486
|
+
return /* @__PURE__ */ jsx203(
|
|
8418
8487
|
"g",
|
|
8419
8488
|
{
|
|
8420
8489
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
8421
8490
|
fill: brandmarkColor,
|
|
8422
|
-
children: /* @__PURE__ */
|
|
8491
|
+
children: /* @__PURE__ */ jsx203("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
|
|
8423
8492
|
}
|
|
8424
8493
|
);
|
|
8425
8494
|
};
|
|
@@ -8427,12 +8496,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
8427
8496
|
if (iconOnly) {
|
|
8428
8497
|
return null;
|
|
8429
8498
|
}
|
|
8430
|
-
return /* @__PURE__ */
|
|
8499
|
+
return /* @__PURE__ */ jsx203(
|
|
8431
8500
|
"g",
|
|
8432
8501
|
{
|
|
8433
8502
|
"data-testid": "ui-wistia-logo-logotype",
|
|
8434
8503
|
fill: logotypeColor,
|
|
8435
|
-
children: /* @__PURE__ */
|
|
8504
|
+
children: /* @__PURE__ */ jsx203("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
|
|
8436
8505
|
}
|
|
8437
8506
|
);
|
|
8438
8507
|
};
|
|
@@ -8442,7 +8511,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
8442
8511
|
}
|
|
8443
8512
|
return "0 0 144 31.47";
|
|
8444
8513
|
};
|
|
8445
|
-
var WistiaLogoComponent =
|
|
8514
|
+
var WistiaLogoComponent = styled39.svg`
|
|
8446
8515
|
height: ${({ height }) => `${height}px`};
|
|
8447
8516
|
|
|
8448
8517
|
/* ensure it will always fit on mobile */
|
|
@@ -8494,21 +8563,21 @@ var WistiaLogo = ({
|
|
|
8494
8563
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8495
8564
|
...otherProps,
|
|
8496
8565
|
children: [
|
|
8497
|
-
/* @__PURE__ */
|
|
8498
|
-
isNotNil16(description) ? /* @__PURE__ */
|
|
8566
|
+
/* @__PURE__ */ jsx203("title", { children: title }),
|
|
8567
|
+
isNotNil16(description) ? /* @__PURE__ */ jsx203("desc", { children: description }) : null,
|
|
8499
8568
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
8500
8569
|
renderLogotype(logotypeColor, iconOnly)
|
|
8501
8570
|
]
|
|
8502
8571
|
}
|
|
8503
8572
|
);
|
|
8504
|
-
return href !== void 0 ? /* @__PURE__ */
|
|
8573
|
+
return href !== void 0 ? /* @__PURE__ */ jsx203("a", { href, children: Logo }) : Logo;
|
|
8505
8574
|
};
|
|
8506
8575
|
WistiaLogo.displayName = "WistiaLogo";
|
|
8507
8576
|
|
|
8508
8577
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
8509
|
-
import
|
|
8510
|
-
import { jsx as
|
|
8511
|
-
var StyledBreadcrumbs =
|
|
8578
|
+
import styled40 from "styled-components";
|
|
8579
|
+
import { jsx as jsx204 } from "react/jsx-runtime";
|
|
8580
|
+
var StyledBreadcrumbs = styled40.nav`
|
|
8512
8581
|
display: flex;
|
|
8513
8582
|
align-items: center;
|
|
8514
8583
|
gap: var(--wui-space-01);
|
|
@@ -8518,7 +8587,7 @@ var StyledBreadcrumbs = styled39.nav`
|
|
|
8518
8587
|
}
|
|
8519
8588
|
`;
|
|
8520
8589
|
var Breadcrumbs = ({ children, ...props }) => {
|
|
8521
|
-
return /* @__PURE__ */
|
|
8590
|
+
return /* @__PURE__ */ jsx204(
|
|
8522
8591
|
StyledBreadcrumbs,
|
|
8523
8592
|
{
|
|
8524
8593
|
"aria-label": "Breadcrumbs",
|
|
@@ -8530,10 +8599,10 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
8530
8599
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
8531
8600
|
|
|
8532
8601
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
8533
|
-
import { Fragment as Fragment3, jsx as
|
|
8602
|
+
import { Fragment as Fragment3, jsx as jsx205, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
8534
8603
|
var Breadcrumb = ({ icon, href, children }) => {
|
|
8535
8604
|
return /* @__PURE__ */ jsxs24(Fragment3, { children: [
|
|
8536
|
-
/* @__PURE__ */
|
|
8605
|
+
/* @__PURE__ */ jsx205(
|
|
8537
8606
|
Button,
|
|
8538
8607
|
{
|
|
8539
8608
|
href,
|
|
@@ -8542,7 +8611,7 @@ var Breadcrumb = ({ icon, href, children }) => {
|
|
|
8542
8611
|
children
|
|
8543
8612
|
}
|
|
8544
8613
|
),
|
|
8545
|
-
/* @__PURE__ */
|
|
8614
|
+
/* @__PURE__ */ jsx205(
|
|
8546
8615
|
Icon,
|
|
8547
8616
|
{
|
|
8548
8617
|
size: "sm",
|
|
@@ -8551,6 +8620,9 @@ var Breadcrumb = ({ icon, href, children }) => {
|
|
|
8551
8620
|
)
|
|
8552
8621
|
] });
|
|
8553
8622
|
};
|
|
8623
|
+
|
|
8624
|
+
// src/index.ts
|
|
8625
|
+
console.log("test");
|
|
8554
8626
|
export {
|
|
8555
8627
|
ActionButton,
|
|
8556
8628
|
Avatar,
|
|
@@ -8560,6 +8632,7 @@ export {
|
|
|
8560
8632
|
Breadcrumbs,
|
|
8561
8633
|
Button,
|
|
8562
8634
|
ButtonGroup,
|
|
8635
|
+
Card,
|
|
8563
8636
|
Checkbox,
|
|
8564
8637
|
CheckboxGroup,
|
|
8565
8638
|
CheckboxMenuItem,
|