@wistia/ui 0.6.23 → 0.6.24
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 +46 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +46 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -399,7 +399,7 @@ type ActionButtonProps = {
|
|
|
399
399
|
variant?: 'default' | 'gated' | 'menu-down' | 'menu-up';
|
|
400
400
|
} & (Omit<ButtonAsButtonProps, 'fullWidth' | 'isLoading' | 'leftIcon' | 'rightIcon' | 'size' | 'unstyled' | 'variant'> | Omit<ButtonAsLinkProps, 'fullWidth' | 'isLoading' | 'leftIcon' | 'rightIcon' | 'size' | 'unstyled' | 'variant'>);
|
|
401
401
|
/**
|
|
402
|
-
* Action Button component is used as one of a group of main actions on the page.
|
|
402
|
+
* Action Button component is used as one of a group of main actions on the page. It composes [Button]().
|
|
403
403
|
*/
|
|
404
404
|
declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
405
405
|
/**
|
|
@@ -488,7 +488,7 @@ type BadgeProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
488
488
|
/**
|
|
489
489
|
* The text to display in the `Badge`
|
|
490
490
|
*/
|
|
491
|
-
label:
|
|
491
|
+
label: ReactNode;
|
|
492
492
|
};
|
|
493
493
|
/**
|
|
494
494
|
* A `Badge` is a compact label, with optional icon, to convey status or context.
|
|
@@ -505,7 +505,7 @@ declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProp
|
|
|
505
505
|
/**
|
|
506
506
|
* The text to display in the `Badge`
|
|
507
507
|
*/
|
|
508
|
-
label:
|
|
508
|
+
label: ReactNode;
|
|
509
509
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
510
510
|
|
|
511
511
|
type UnknownRecord = Record<string, unknown>;
|
package/dist/index.d.ts
CHANGED
|
@@ -399,7 +399,7 @@ type ActionButtonProps = {
|
|
|
399
399
|
variant?: 'default' | 'gated' | 'menu-down' | 'menu-up';
|
|
400
400
|
} & (Omit<ButtonAsButtonProps, 'fullWidth' | 'isLoading' | 'leftIcon' | 'rightIcon' | 'size' | 'unstyled' | 'variant'> | Omit<ButtonAsLinkProps, 'fullWidth' | 'isLoading' | 'leftIcon' | 'rightIcon' | 'size' | 'unstyled' | 'variant'>);
|
|
401
401
|
/**
|
|
402
|
-
* Action Button component is used as one of a group of main actions on the page.
|
|
402
|
+
* Action Button component is used as one of a group of main actions on the page. It composes [Button]().
|
|
403
403
|
*/
|
|
404
404
|
declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
405
405
|
/**
|
|
@@ -488,7 +488,7 @@ type BadgeProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
488
488
|
/**
|
|
489
489
|
* The text to display in the `Badge`
|
|
490
490
|
*/
|
|
491
|
-
label:
|
|
491
|
+
label: ReactNode;
|
|
492
492
|
};
|
|
493
493
|
/**
|
|
494
494
|
* A `Badge` is a compact label, with optional icon, to convey status or context.
|
|
@@ -505,7 +505,7 @@ declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProp
|
|
|
505
505
|
/**
|
|
506
506
|
* The text to display in the `Badge`
|
|
507
507
|
*/
|
|
508
|
-
label:
|
|
508
|
+
label: ReactNode;
|
|
509
509
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
510
510
|
|
|
511
511
|
type UnknownRecord = Record<string, unknown>;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.24
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7559,18 +7559,33 @@ var inputSizeSmall = css20`
|
|
|
7559
7559
|
height: 14px;
|
|
7560
7560
|
min-width: 14px;
|
|
7561
7561
|
min-height: 14px;
|
|
7562
|
+
|
|
7563
|
+
svg {
|
|
7564
|
+
width: 7px;
|
|
7565
|
+
height: 7px;
|
|
7566
|
+
}
|
|
7562
7567
|
`;
|
|
7563
7568
|
var inputSizeMedium = css20`
|
|
7564
7569
|
width: 16px;
|
|
7565
7570
|
height: 16px;
|
|
7566
7571
|
min-width: 16px;
|
|
7567
7572
|
min-height: 16px;
|
|
7573
|
+
|
|
7574
|
+
svg {
|
|
7575
|
+
width: 9px;
|
|
7576
|
+
height: 9px;
|
|
7577
|
+
}
|
|
7568
7578
|
`;
|
|
7569
7579
|
var inputSizeLarge = css20`
|
|
7570
7580
|
width: 20px;
|
|
7571
7581
|
height: 20px;
|
|
7572
7582
|
min-width: 20px;
|
|
7573
7583
|
min-height: 20px;
|
|
7584
|
+
|
|
7585
|
+
svg {
|
|
7586
|
+
width: 11px;
|
|
7587
|
+
height: 11px;
|
|
7588
|
+
}
|
|
7574
7589
|
`;
|
|
7575
7590
|
var getSizeCss = (size) => {
|
|
7576
7591
|
if (size === "sm") return inputSizeSmall;
|
|
@@ -7592,9 +7607,10 @@ var StyledCheckboxInput = styled18.div`
|
|
|
7592
7607
|
display: grid;
|
|
7593
7608
|
place-content: center;
|
|
7594
7609
|
align-self: flex-start;
|
|
7610
|
+
border-width: 1px;
|
|
7611
|
+
border-style: solid;
|
|
7612
|
+
border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-border-disabled)" : "var(--wui-color-border)"};
|
|
7595
7613
|
background-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-surface)"};
|
|
7596
|
-
border: 1px solid
|
|
7597
|
-
${({ $disabled }) => $disabled ? "var(--wui-color-icon-disabled)" : "var(--wui-color-border)"};
|
|
7598
7614
|
|
|
7599
7615
|
/* checkmark icon */
|
|
7600
7616
|
svg {
|
|
@@ -7610,6 +7626,7 @@ var StyledHiddenCheckboxInput = styled18.input`
|
|
|
7610
7626
|
|
|
7611
7627
|
/* toggles display of faux-input background-color */
|
|
7612
7628
|
&:checked + label [data-wui-faux-input='true'] {
|
|
7629
|
+
border-color: ${({ disabled }) => disabled ? void 0 : "var(--wui-color-bg-fill)"};
|
|
7613
7630
|
background-color: ${({ disabled }) => disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-fill)"};
|
|
7614
7631
|
}
|
|
7615
7632
|
|
|
@@ -10267,17 +10284,17 @@ var RadioIcon = () => /* @__PURE__ */ jsx241(
|
|
|
10267
10284
|
"svg",
|
|
10268
10285
|
{
|
|
10269
10286
|
fill: "inherit",
|
|
10270
|
-
height: "
|
|
10271
|
-
viewBox: "0 0
|
|
10272
|
-
width: "
|
|
10287
|
+
height: "1",
|
|
10288
|
+
viewBox: "0 0 1 1",
|
|
10289
|
+
width: "1",
|
|
10273
10290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10274
10291
|
children: /* @__PURE__ */ jsx241(
|
|
10275
10292
|
"circle",
|
|
10276
10293
|
{
|
|
10277
|
-
cx: "
|
|
10278
|
-
cy: "
|
|
10294
|
+
cx: "0.5",
|
|
10295
|
+
cy: "0.5",
|
|
10279
10296
|
fill: "currentColor",
|
|
10280
|
-
r: "
|
|
10297
|
+
r: "0.5"
|
|
10281
10298
|
}
|
|
10282
10299
|
)
|
|
10283
10300
|
}
|
|
@@ -10287,18 +10304,33 @@ var inputSizeSmall2 = css30`
|
|
|
10287
10304
|
height: 14px;
|
|
10288
10305
|
min-width: 14px;
|
|
10289
10306
|
min-height: 14px;
|
|
10307
|
+
|
|
10308
|
+
svg {
|
|
10309
|
+
width: 7px;
|
|
10310
|
+
height: 7px;
|
|
10311
|
+
}
|
|
10290
10312
|
`;
|
|
10291
10313
|
var inputSizeMedium2 = css30`
|
|
10292
10314
|
width: 16px;
|
|
10293
10315
|
height: 16px;
|
|
10294
10316
|
min-width: 16px;
|
|
10295
10317
|
min-height: 16px;
|
|
10318
|
+
|
|
10319
|
+
svg {
|
|
10320
|
+
width: 8px;
|
|
10321
|
+
height: 8px;
|
|
10322
|
+
}
|
|
10296
10323
|
`;
|
|
10297
10324
|
var inputSizeLarge2 = css30`
|
|
10298
10325
|
width: 20px;
|
|
10299
10326
|
height: 20px;
|
|
10300
10327
|
min-width: 20px;
|
|
10301
10328
|
min-height: 20px;
|
|
10329
|
+
|
|
10330
|
+
svg {
|
|
10331
|
+
width: 10px;
|
|
10332
|
+
height: 10px;
|
|
10333
|
+
}
|
|
10302
10334
|
`;
|
|
10303
10335
|
var getSizeCss2 = (size) => {
|
|
10304
10336
|
if (size === "sm") return inputSizeSmall2;
|
|
@@ -10320,9 +10352,10 @@ var StyledRadioInput = styled49.div`
|
|
|
10320
10352
|
display: grid;
|
|
10321
10353
|
place-content: center;
|
|
10322
10354
|
align-self: flex-start;
|
|
10355
|
+
border-width: 1px;
|
|
10356
|
+
border-style: solid;
|
|
10357
|
+
border-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-border-disabled)" : "var(--wui-color-border)"};
|
|
10323
10358
|
background-color: ${({ $disabled }) => $disabled ? "var(--wui-color-bg-surface-disabled)" : "var(--wui-color-bg-surface)"};
|
|
10324
|
-
border: 1px solid
|
|
10325
|
-
${({ $disabled }) => $disabled ? "var(--wui-color-icon-disabled)" : "var(--wui-color-border)"};
|
|
10326
10359
|
|
|
10327
10360
|
/* radio button circle icon */
|
|
10328
10361
|
svg {
|
|
@@ -10336,9 +10369,9 @@ var StyledRadioInput = styled49.div`
|
|
|
10336
10369
|
var StyledHiddenRadioInput = styled49.input`
|
|
10337
10370
|
${visuallyHiddenStyle}
|
|
10338
10371
|
|
|
10339
|
-
/* toggles display of faux-input
|
|
10372
|
+
/* toggles display of faux-input border-color */
|
|
10340
10373
|
&:checked + label [data-wui-faux-input='true'] {
|
|
10341
|
-
border-color: ${({ disabled }) => disabled ? "var(--wui-color-bg-
|
|
10374
|
+
border-color: ${({ disabled }) => disabled ? "var(--wui-color-bg-border-disabled)" : "var(--wui-color-bg-fill)"};
|
|
10342
10375
|
}
|
|
10343
10376
|
|
|
10344
10377
|
/* toggles display of RadioIcon */
|