@wistia/ui 0.10.16 → 0.10.17-beta.109e10d8.e16bb3a
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 +44 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +27 -3
- package/dist/index.d.ts +27 -3
- package/dist/index.mjs +43 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.10.
|
|
3
|
+
* @license @wistia/ui v0.10.17-beta.109e10d8.e16bb3a
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -83,6 +83,7 @@ __export(index_exports, {
|
|
|
83
83
|
ImageDimensionsValidator: () => import_validators.ImageDimensionsValidator,
|
|
84
84
|
Input: () => Input,
|
|
85
85
|
InputClickToCopy: () => InputClickToCopy,
|
|
86
|
+
InputPassword: () => InputPassword,
|
|
86
87
|
KeyboardShortcut: () => KeyboardShortcut,
|
|
87
88
|
Label: () => Label,
|
|
88
89
|
Link: () => Link,
|
|
@@ -7755,6 +7756,10 @@ var AvatarWrapper = import_styled_components25.default.div`
|
|
|
7755
7756
|
grid-area: 1 / 1;
|
|
7756
7757
|
}
|
|
7757
7758
|
|
|
7759
|
+
> img {
|
|
7760
|
+
aspect-ratio: 1 / 1;
|
|
7761
|
+
}
|
|
7762
|
+
|
|
7758
7763
|
--wui-avatar-inset-opacity: 10%;
|
|
7759
7764
|
|
|
7760
7765
|
outline: 2px solid rgb(0 0 0 / var(--wui-avatar-inset-opacity));
|
|
@@ -14478,6 +14483,43 @@ var WistiaLogo = ({
|
|
|
14478
14483
|
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime283.jsx)("a", { href, children: Logo }) : Logo;
|
|
14479
14484
|
};
|
|
14480
14485
|
WistiaLogo.displayName = "WistiaLogo";
|
|
14486
|
+
|
|
14487
|
+
// src/components/InputPassword/InputPassword.tsx
|
|
14488
|
+
var import_react76 = require("react");
|
|
14489
|
+
var import_type_guards66 = require("@wistia/type-guards");
|
|
14490
|
+
var import_jsx_runtime284 = require("react/jsx-runtime");
|
|
14491
|
+
var InputPassword = (0, import_react76.forwardRef)(
|
|
14492
|
+
({ onVisibilityToggle, disabled = false, ...props }, ref) => {
|
|
14493
|
+
const [isVisible, setIsVisible] = (0, import_react76.useState)(false);
|
|
14494
|
+
const handleClick = () => {
|
|
14495
|
+
const newVisibility = !isVisible;
|
|
14496
|
+
setIsVisible(newVisibility);
|
|
14497
|
+
if ((0, import_type_guards66.isFunction)(onVisibilityToggle)) {
|
|
14498
|
+
onVisibilityToggle(newVisibility);
|
|
14499
|
+
}
|
|
14500
|
+
};
|
|
14501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
|
|
14502
|
+
Input,
|
|
14503
|
+
{
|
|
14504
|
+
...props,
|
|
14505
|
+
ref,
|
|
14506
|
+
disabled,
|
|
14507
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
|
|
14508
|
+
IconButton,
|
|
14509
|
+
{
|
|
14510
|
+
disabled,
|
|
14511
|
+
label: isVisible ? "Hide password" : "Show password",
|
|
14512
|
+
onClick: handleClick,
|
|
14513
|
+
variant: "ghost",
|
|
14514
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Icon, { type: isVisible ? "preview" : "hide" })
|
|
14515
|
+
}
|
|
14516
|
+
),
|
|
14517
|
+
type: isVisible ? "text" : "password"
|
|
14518
|
+
}
|
|
14519
|
+
);
|
|
14520
|
+
}
|
|
14521
|
+
);
|
|
14522
|
+
InputPassword.displayName = "InputPassword";
|
|
14481
14523
|
// Annotate the CommonJS export names for ESM import in node:
|
|
14482
14524
|
0 && (module.exports = {
|
|
14483
14525
|
ActionButton,
|
|
@@ -14524,6 +14566,7 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
14524
14566
|
ImageDimensionsValidator,
|
|
14525
14567
|
Input,
|
|
14526
14568
|
InputClickToCopy,
|
|
14569
|
+
InputPassword,
|
|
14527
14570
|
KeyboardShortcut,
|
|
14528
14571
|
Label,
|
|
14529
14572
|
Link,
|