@wistia/ui 0.10.16 → 0.10.17-beta.32db0541.201b391
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 +45 -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 +44 -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.32db0541.201b391
|
|
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,44 @@ 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
|
+
tabIndex: disabled ? -1 : 0,
|
|
14514
|
+
variant: "ghost",
|
|
14515
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Icon, { type: isVisible ? "preview" : "hide" })
|
|
14516
|
+
}
|
|
14517
|
+
),
|
|
14518
|
+
type: isVisible ? "text" : "password"
|
|
14519
|
+
}
|
|
14520
|
+
);
|
|
14521
|
+
}
|
|
14522
|
+
);
|
|
14523
|
+
InputPassword.displayName = "InputPassword";
|
|
14481
14524
|
// Annotate the CommonJS export names for ESM import in node:
|
|
14482
14525
|
0 && (module.exports = {
|
|
14483
14526
|
ActionButton,
|
|
@@ -14524,6 +14567,7 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
14524
14567
|
ImageDimensionsValidator,
|
|
14525
14568
|
Input,
|
|
14526
14569
|
InputClickToCopy,
|
|
14570
|
+
InputPassword,
|
|
14527
14571
|
KeyboardShortcut,
|
|
14528
14572
|
Label,
|
|
14529
14573
|
Link,
|