@wistia/ui 0.8.20-beta.b11798a9.bb9f81a → 0.8.20
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 +8 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12 -66
- 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.8.20
|
|
3
|
+
* @license @wistia/ui v0.8.20
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -2141,7 +2141,7 @@ var useClipboard = (textToCopy, timeout = 1500) => {
|
|
|
2141
2141
|
return [onCopy, hasCopied, failedToCopy];
|
|
2142
2142
|
};
|
|
2143
2143
|
|
|
2144
|
-
// src/hooks/useFilePicker/
|
|
2144
|
+
// src/hooks/useFilePicker/index.ts
|
|
2145
2145
|
var import_use_file_picker = require("use-file-picker");
|
|
2146
2146
|
var import_validators = require("use-file-picker/validators");
|
|
2147
2147
|
|
|
@@ -9129,54 +9129,6 @@ var import_react35 = require("react");
|
|
|
9129
9129
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
9130
9130
|
var import_styled_components45 = __toESM(require("styled-components"));
|
|
9131
9131
|
var import_jsx_runtime218 = require("react/jsx-runtime");
|
|
9132
|
-
var hide = import_styled_components45.keyframes`
|
|
9133
|
-
from {
|
|
9134
|
-
opacity: 1;
|
|
9135
|
-
}
|
|
9136
|
-
to {
|
|
9137
|
-
opacity: 0;
|
|
9138
|
-
}
|
|
9139
|
-
`;
|
|
9140
|
-
var slideDownAndFade = import_styled_components45.keyframes`
|
|
9141
|
-
from {
|
|
9142
|
-
opacity: 0;
|
|
9143
|
-
transform: translateY(-6px);
|
|
9144
|
-
}
|
|
9145
|
-
to {
|
|
9146
|
-
opacity: 1;
|
|
9147
|
-
transform: translateY(0);
|
|
9148
|
-
}
|
|
9149
|
-
`;
|
|
9150
|
-
var slideLeftAndFade = import_styled_components45.keyframes`
|
|
9151
|
-
from {
|
|
9152
|
-
opacity: 0;
|
|
9153
|
-
transform: translateX(6px);
|
|
9154
|
-
}
|
|
9155
|
-
to {
|
|
9156
|
-
opacity: 1;
|
|
9157
|
-
transform: translateX(0);
|
|
9158
|
-
}
|
|
9159
|
-
`;
|
|
9160
|
-
var slideUpAndFade = import_styled_components45.keyframes`
|
|
9161
|
-
from {
|
|
9162
|
-
opacity: 0;
|
|
9163
|
-
transform: translateY(6px);
|
|
9164
|
-
}
|
|
9165
|
-
to {
|
|
9166
|
-
opacity: 1;
|
|
9167
|
-
transform: translateY(0);
|
|
9168
|
-
}
|
|
9169
|
-
`;
|
|
9170
|
-
var slideRightAndFade = import_styled_components45.keyframes`
|
|
9171
|
-
from {
|
|
9172
|
-
opacity: 0;
|
|
9173
|
-
transform: translateX(-6px);
|
|
9174
|
-
}
|
|
9175
|
-
to {
|
|
9176
|
-
opacity: 1;
|
|
9177
|
-
transform: translateX(0);
|
|
9178
|
-
}
|
|
9179
|
-
`;
|
|
9180
9132
|
var StyledContent = (0, import_styled_components45.default)(import_react_tooltip2.Content)`
|
|
9181
9133
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
9182
9134
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
@@ -9187,8 +9139,6 @@ var StyledContent = (0, import_styled_components45.default)(import_react_tooltip
|
|
|
9187
9139
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
9188
9140
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
9189
9141
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
9190
|
-
--tooltip-animation-duration: var(--wui-motion-duration-04);
|
|
9191
|
-
--tooltip-animation-timing-function: var(--wui-motion-ease-out);
|
|
9192
9142
|
|
|
9193
9143
|
font-family: var(--tooltip-font-family);
|
|
9194
9144
|
font-size: var(--tooltip-font-size);
|
|
@@ -9197,30 +9147,26 @@ var StyledContent = (0, import_styled_components45.default)(import_react_tooltip
|
|
|
9197
9147
|
background-color: var(--tooltip-bg);
|
|
9198
9148
|
color: var(--tooltip-color);
|
|
9199
9149
|
user-select: none;
|
|
9200
|
-
animation-duration:
|
|
9201
|
-
animation-timing-function:
|
|
9150
|
+
animation-duration: 400ms;
|
|
9151
|
+
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
9202
9152
|
will-change: transform, opacity;
|
|
9203
9153
|
max-width: 30em;
|
|
9204
9154
|
z-index: var(--wui-zindex-tooltip);
|
|
9205
9155
|
|
|
9206
|
-
&[data-state='closed'] {
|
|
9207
|
-
animation-name: ${hide};
|
|
9208
|
-
}
|
|
9209
|
-
|
|
9210
9156
|
&[data-state='delayed-open'][data-side='top'] {
|
|
9211
|
-
animation-name:
|
|
9157
|
+
animation-name: slideDownAndFade;
|
|
9212
9158
|
}
|
|
9213
9159
|
|
|
9214
9160
|
&[data-state='delayed-open'][data-side='right'] {
|
|
9215
|
-
animation-name:
|
|
9161
|
+
animation-name: slideLeftAndFade;
|
|
9216
9162
|
}
|
|
9217
9163
|
|
|
9218
9164
|
&[data-state='delayed-open'][data-side='bottom'] {
|
|
9219
|
-
animation-name:
|
|
9165
|
+
animation-name: slideUpAndFade;
|
|
9220
9166
|
}
|
|
9221
9167
|
|
|
9222
9168
|
&[data-state='delayed-open'][data-side='left'] {
|
|
9223
|
-
animation-name:
|
|
9169
|
+
animation-name: slideRightAndFade;
|
|
9224
9170
|
}
|
|
9225
9171
|
`;
|
|
9226
9172
|
var VISUAL_OFFSET = 6;
|