@wistia/ui 0.21.4-beta.800805c4.f91bf1d → 0.21.4-beta.b00a8dea.d1976a6
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.d.ts +7 -2
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -920,7 +920,7 @@ declare const Breadcrumbs: {
|
|
|
920
920
|
displayName: string;
|
|
921
921
|
};
|
|
922
922
|
|
|
923
|
-
type BreadcrumbProps =
|
|
923
|
+
type BreadcrumbProps = ButtonAsLinkProps & {
|
|
924
924
|
/**
|
|
925
925
|
* An [Icon]() to show at the beginning of the breadcrumb
|
|
926
926
|
*/
|
|
@@ -929,8 +929,12 @@ type BreadcrumbProps = ButtonProps & {
|
|
|
929
929
|
* The text of the breadcrumb link
|
|
930
930
|
*/
|
|
931
931
|
children: ReactNode;
|
|
932
|
+
/**
|
|
933
|
+
* The link to the page of the breadcrumb
|
|
934
|
+
*/
|
|
935
|
+
href: string;
|
|
932
936
|
};
|
|
933
|
-
declare const Breadcrumb: ({ icon, children, ...props }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
937
|
+
declare const Breadcrumb: ({ icon, href, children, ...props }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
934
938
|
|
|
935
939
|
type ButtonGroupButtonSize = ButtonSizes | 'natural';
|
|
936
940
|
type ButtonGroupProps = ComponentPropsWithoutRef<'div'> & {
|
|
@@ -2956,6 +2960,7 @@ declare const ListItem: {
|
|
|
2956
2960
|
type MarkProps = ComponentPropsWithoutRef<'div'> & {
|
|
2957
2961
|
/** The content of the Mark component. */
|
|
2958
2962
|
children: ReactNode;
|
|
2963
|
+
/** Sets the [color scheme](/docs/color-schemes) */
|
|
2959
2964
|
colorScheme?: ColorSchemeTypes;
|
|
2960
2965
|
};
|
|
2961
2966
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.21.4-beta.
|
|
3
|
+
* @license @wistia/ui v0.21.4-beta.b00a8dea.d1976a6
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9773,12 +9773,13 @@ var BreadcrumbContent = styled19.span`
|
|
|
9773
9773
|
text-align: left;
|
|
9774
9774
|
flex: 0;
|
|
9775
9775
|
`;
|
|
9776
|
-
var Breadcrumb = ({ icon, children, ...props }) => {
|
|
9776
|
+
var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
9777
9777
|
return /* @__PURE__ */ jsxs16(Fragment4, { children: [
|
|
9778
9778
|
/* @__PURE__ */ jsx236(
|
|
9779
9779
|
Button,
|
|
9780
9780
|
{
|
|
9781
9781
|
...props,
|
|
9782
|
+
href,
|
|
9782
9783
|
leftIcon: icon,
|
|
9783
9784
|
variant: "ghost",
|
|
9784
9785
|
children: /* @__PURE__ */ jsx236(BreadcrumbContent, { "data-wui-breadcrumb": true, children })
|
|
@@ -19017,12 +19018,12 @@ var SelectedTabIndicator = () => {
|
|
|
19017
19018
|
|
|
19018
19019
|
// src/components/Tabs/TabsList.tsx
|
|
19019
19020
|
import { jsx as jsx353, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
19020
|
-
var
|
|
19021
|
+
var StyledTabsList = styled111(RadixTabList)`
|
|
19021
19022
|
${segmentedControlStyles}
|
|
19022
19023
|
`;
|
|
19023
19024
|
var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
19024
19025
|
return /* @__PURE__ */ jsxs70(
|
|
19025
|
-
|
|
19026
|
+
StyledTabsList,
|
|
19026
19027
|
{
|
|
19027
19028
|
$fullWidth: fullWidth,
|
|
19028
19029
|
"aria-label": props["aria-label"],
|
|
@@ -19039,10 +19040,10 @@ TabsList.displayName = "TabsList_UI";
|
|
|
19039
19040
|
import { forwardRef as forwardRef36, useEffect as useEffect23, useRef as useRef24 } from "react";
|
|
19040
19041
|
import { isNotNil as isNotNil42 } from "@wistia/type-guards";
|
|
19041
19042
|
|
|
19042
|
-
// src/components/Tabs/
|
|
19043
|
+
// src/components/Tabs/StyledTabsTrigger.tsx
|
|
19043
19044
|
import { styled as styled112 } from "styled-components";
|
|
19044
19045
|
import { Trigger as RadixTabsTrigger } from "@radix-ui/react-tabs";
|
|
19045
|
-
var
|
|
19046
|
+
var StyledTabsTrigger = styled112(RadixTabsTrigger)`
|
|
19046
19047
|
${segmentedControlItemStyles}
|
|
19047
19048
|
|
|
19048
19049
|
&:focus-visible {
|
|
@@ -19084,7 +19085,7 @@ var TabsTrigger = forwardRef36(
|
|
|
19084
19085
|
};
|
|
19085
19086
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
19086
19087
|
return /* @__PURE__ */ jsxs71(
|
|
19087
|
-
|
|
19088
|
+
StyledTabsTrigger,
|
|
19088
19089
|
{
|
|
19089
19090
|
...otherProps,
|
|
19090
19091
|
ref: combinedRef,
|