@useupup/preact 3.3.0
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/LICENSE +21 -0
- package/README.md +80 -0
- package/dist/AudioUploader-2WITC5YR-4WGBUCEB.js +298 -0
- package/dist/AudioUploader-2WITC5YR-4WGBUCEB.js.map +1 -0
- package/dist/AudioUploader-2WITC5YR-GCKVRJAT.cjs +298 -0
- package/dist/AudioUploader-2WITC5YR-GCKVRJAT.cjs.map +1 -0
- package/dist/BoxUploader-VE5LRJ7M-CWGNYYJV.js +170 -0
- package/dist/BoxUploader-VE5LRJ7M-CWGNYYJV.js.map +1 -0
- package/dist/BoxUploader-VE5LRJ7M-IE7LYW5P.cjs +170 -0
- package/dist/BoxUploader-VE5LRJ7M-IE7LYW5P.cjs.map +1 -0
- package/dist/CameraUploader-WF5A6UIS-3KBW647M.cjs +628 -0
- package/dist/CameraUploader-WF5A6UIS-3KBW647M.cjs.map +1 -0
- package/dist/CameraUploader-WF5A6UIS-DONVXSEZ.js +628 -0
- package/dist/CameraUploader-WF5A6UIS-DONVXSEZ.js.map +1 -0
- package/dist/DropboxUploader-VMUYG3OP-7FKTLIIL.cjs +172 -0
- package/dist/DropboxUploader-VMUYG3OP-7FKTLIIL.cjs.map +1 -0
- package/dist/DropboxUploader-VMUYG3OP-DBUPHIG7.js +172 -0
- package/dist/DropboxUploader-VMUYG3OP-DBUPHIG7.js.map +1 -0
- package/dist/GoogleDriveUploader-YA56X3QR-FMS6MTYU.js +175 -0
- package/dist/GoogleDriveUploader-YA56X3QR-FMS6MTYU.js.map +1 -0
- package/dist/GoogleDriveUploader-YA56X3QR-OR3CQLX2.cjs +175 -0
- package/dist/GoogleDriveUploader-YA56X3QR-OR3CQLX2.cjs.map +1 -0
- package/dist/ImageEditorInline-N2NSAODR-QWXPP3ON.js +184 -0
- package/dist/ImageEditorInline-N2NSAODR-QWXPP3ON.js.map +1 -0
- package/dist/ImageEditorInline-N2NSAODR-ZVAM6EOA.cjs +184 -0
- package/dist/ImageEditorInline-N2NSAODR-ZVAM6EOA.cjs.map +1 -0
- package/dist/ImageEditorModal-CWKMDVPY-PRD43JPH.cjs +236 -0
- package/dist/ImageEditorModal-CWKMDVPY-PRD43JPH.cjs.map +1 -0
- package/dist/ImageEditorModal-CWKMDVPY-ZRPTYHYN.js +236 -0
- package/dist/ImageEditorModal-CWKMDVPY-ZRPTYHYN.js.map +1 -0
- package/dist/OneDriveUploader-I25Y6AJP-FVXK6RGT.js +173 -0
- package/dist/OneDriveUploader-I25Y6AJP-FVXK6RGT.js.map +1 -0
- package/dist/OneDriveUploader-I25Y6AJP-GBOBEJQR.cjs +173 -0
- package/dist/OneDriveUploader-I25Y6AJP-GBOBEJQR.cjs.map +1 -0
- package/dist/ScreenCaptureUploader-WKDO4S75-3TT6GNEN.js +286 -0
- package/dist/ScreenCaptureUploader-WKDO4S75-3TT6GNEN.js.map +1 -0
- package/dist/ScreenCaptureUploader-WKDO4S75-G7ADH264.cjs +286 -0
- package/dist/ScreenCaptureUploader-WKDO4S75-G7ADH264.cjs.map +1 -0
- package/dist/chunk-2XFVSPFN.cjs +293 -0
- package/dist/chunk-2XFVSPFN.cjs.map +1 -0
- package/dist/chunk-7JLN2HMZ.cjs +4296 -0
- package/dist/chunk-7JLN2HMZ.cjs.map +1 -0
- package/dist/chunk-BVMKSTAE.js +4296 -0
- package/dist/chunk-BVMKSTAE.js.map +1 -0
- package/dist/chunk-C7QBCXAH.js +39 -0
- package/dist/chunk-C7QBCXAH.js.map +1 -0
- package/dist/chunk-CR6CXFRP.js +195 -0
- package/dist/chunk-CR6CXFRP.js.map +1 -0
- package/dist/chunk-ETIJATY7.cjs +39 -0
- package/dist/chunk-ETIJATY7.cjs.map +1 -0
- package/dist/chunk-FH3LYESR.js +411 -0
- package/dist/chunk-FH3LYESR.js.map +1 -0
- package/dist/chunk-GKMTOOTQ.cjs +411 -0
- package/dist/chunk-GKMTOOTQ.cjs.map +1 -0
- package/dist/chunk-KHH3WHWU.js +74 -0
- package/dist/chunk-KHH3WHWU.js.map +1 -0
- package/dist/chunk-V2O5HRJV.cjs +74 -0
- package/dist/chunk-V2O5HRJV.cjs.map +1 -0
- package/dist/chunk-WCI3AGJV.js +831 -0
- package/dist/chunk-WCI3AGJV.js.map +1 -0
- package/dist/chunk-YWJHE7U4.cjs +195 -0
- package/dist/chunk-YWJHE7U4.cjs.map +1 -0
- package/dist/chunk-ZGWETRKI.js +293 -0
- package/dist/chunk-ZGWETRKI.js.map +1 -0
- package/dist/chunk-ZKZJ5PPP.cjs +831 -0
- package/dist/chunk-ZKZJ5PPP.cjs.map +1 -0
- package/dist/filerobot-bridge-52YH7W2M.cjs +92 -0
- package/dist/filerobot-bridge-52YH7W2M.cjs.map +1 -0
- package/dist/filerobot-bridge-ED4XMHX4.js +92 -0
- package/dist/filerobot-bridge-ED4XMHX4.js.map +1 -0
- package/dist/filerobot-island.css +97 -0
- package/dist/filerobot-island.css.map +1 -0
- package/dist/filerobot-island.js +77951 -0
- package/dist/filerobot-island.js.map +1 -0
- package/dist/index.cjs +5600 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5600 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.d.ts +4 -0
- package/dist/tailwind-prefixed.css +2529 -0
- package/package.json +130 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
u,
|
|
3
|
+
useUploaderTheme
|
|
4
|
+
} from "./chunk-ZGWETRKI.js";
|
|
5
|
+
|
|
6
|
+
// ../react/dist/chunk-SSLP3MEC.js
|
|
7
|
+
import { cn } from "@useupup/core/internal";
|
|
8
|
+
function SourceViewContainer({
|
|
9
|
+
children,
|
|
10
|
+
isLoading = false,
|
|
11
|
+
...rest
|
|
12
|
+
}) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
const { isDark: dark, slotOverrides: slotClasses } = useUploaderTheme();
|
|
15
|
+
return /* @__PURE__ */ u(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
"data-testid": "upup-source-view",
|
|
19
|
+
className: cn(
|
|
20
|
+
// Transparent by design: the view body sits directly on the
|
|
21
|
+
// panel's gradient chrome (the old black/[0.075] wash read as
|
|
22
|
+
// a mismatched gray block over the light gradient).
|
|
23
|
+
"upup-flex upup-items-center upup-justify-center upup-overflow-hidden",
|
|
24
|
+
{
|
|
25
|
+
"upup-text-[#FAFAFA] dark:upup-text-[#FAFAFA]": isLoading && dark,
|
|
26
|
+
[(_a = slotClasses.sourceView) != null ? _a : ""]: !isLoading && slotClasses.sourceView,
|
|
27
|
+
[(_b = slotClasses.driveLoading) != null ? _b : ""]: isLoading && slotClasses.driveLoading
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
...rest,
|
|
31
|
+
children
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
SourceViewContainer
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=chunk-C7QBCXAH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../react/src/components/shared/SourceViewContainer.tsx"],"sourcesContent":["import React, { HTMLAttributes, PropsWithChildren } from 'react'\r\nimport { useUploaderTheme } from '../../context/UploaderContext'\r\nimport { cn } from '@useupup/core/internal'\r\n\r\nexport default function SourceViewContainer({\r\n children,\r\n isLoading = false,\r\n ...rest\r\n}: PropsWithChildren<\r\n { isLoading?: boolean } & HTMLAttributes<HTMLDivElement>\r\n>): React.ReactElement | null {\r\n const { isDark: dark, slotOverrides: slotClasses } = useUploaderTheme()\r\n\r\n return (\r\n <div\r\n data-testid=\"upup-source-view\"\r\n className={cn(\r\n // Transparent by design: the view body sits directly on the\r\n // panel's gradient chrome (the old black/[0.075] wash read as\r\n // a mismatched gray block over the light gradient).\r\n 'upup-flex upup-items-center upup-justify-center upup-overflow-hidden',\r\n {\r\n 'upup-text-[#FAFAFA] dark:upup-text-[#FAFAFA]':\r\n isLoading && dark,\r\n [slotClasses.sourceView ?? '']:\r\n !isLoading && slotClasses.sourceView,\r\n [slotClasses.driveLoading ?? '']:\r\n isLoading && slotClasses.driveLoading,\r\n },\r\n )}\r\n {...rest}\r\n >\r\n {children}\r\n </div>\r\n )\r\n}\r\n"],"mappings":";;;;;;AAEA,SAAS,UAAU;AAEJ,SAAR,oBAAqC;EACxC;EACA,YAAY;EACZ,GAAG;AACP,GAE8B;AAV9B,MAAA,IAAA;AAWI,QAAM,EAAE,QAAQ,MAAM,eAAe,YAAY,IAAI,iBAAiB;AAEtE,SACI;IAAC;IAAA;MACG,eAAY;MACZ,WAAW;;;;QAIP;QACA;UACI,gDACI,aAAa;UACjB,EAAC,KAAA,YAAY,eAAZ,OAAA,KAA0B,EAAE,GACzB,CAAC,aAAa,YAAY;UAC9B,EAAC,KAAA,YAAY,iBAAZ,OAAA,KAA4B,EAAE,GAC3B,aAAa,YAAY;QACjC;MACJ;MACC,GAAG;MAEH;IAAA;EACL;AAER;","names":[]}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
// ../react/dist/chunk-N7TWHP5Z.js
|
|
2
|
+
import {
|
|
3
|
+
dataURLtoBlob,
|
|
4
|
+
blobToUploadFile,
|
|
5
|
+
revokeAndReplace
|
|
6
|
+
} from "@useupup/core/internal";
|
|
7
|
+
function getFilerobotTheme(isDarkTheme) {
|
|
8
|
+
return isDarkTheme ? {
|
|
9
|
+
palette: {
|
|
10
|
+
"bg-secondary": "#1a1a1a",
|
|
11
|
+
"bg-primary": "#232323",
|
|
12
|
+
"bg-primary-active": "#2d2d2d",
|
|
13
|
+
"bg-stateless": "#2d2d2d",
|
|
14
|
+
"bg-hover": "#3a3a3a",
|
|
15
|
+
"bg-active": "#3a3a3a",
|
|
16
|
+
"accent-primary": "#30C5F7",
|
|
17
|
+
"accent-primary-hover": "#6DD8FB",
|
|
18
|
+
"accent-primary-active": "#6DD8FB",
|
|
19
|
+
accent_1_2_opacity: "rgba(48, 197, 247, 0.12)",
|
|
20
|
+
"accent-stateless": "#30C5F7",
|
|
21
|
+
"icon-primary": "#ffffff",
|
|
22
|
+
"icons-primary": "#ffffff",
|
|
23
|
+
"icons-secondary": "#d1d5db",
|
|
24
|
+
"icons-placeholder": "#9ca3af",
|
|
25
|
+
"borders-secondary": "#374151",
|
|
26
|
+
"borders-primary": "#4b5563",
|
|
27
|
+
"borders-strong": "#6b7280",
|
|
28
|
+
"borders-disabled": "#6b7280",
|
|
29
|
+
"borders-button": "#4b5563",
|
|
30
|
+
"light-shadow": "rgba(0, 0, 0, 0.4)",
|
|
31
|
+
warning: "#f59e0b",
|
|
32
|
+
"txt-primary": "#ffffff",
|
|
33
|
+
"txt-secondary": "#d1d5db",
|
|
34
|
+
"txt-primary-invert": "#232323",
|
|
35
|
+
"txt-secondary-invert": "#1a1a1a",
|
|
36
|
+
"btn-primary-text": "#ffffff",
|
|
37
|
+
"btn-secondary-text": "#d1d5db",
|
|
38
|
+
"btn-disabled-text": "#6b7280",
|
|
39
|
+
"link-stateless": "#d1d5db"
|
|
40
|
+
},
|
|
41
|
+
typography: {
|
|
42
|
+
fontFamily: "inherit"
|
|
43
|
+
}
|
|
44
|
+
} : {
|
|
45
|
+
palette: {
|
|
46
|
+
"bg-secondary": "#f9fafb",
|
|
47
|
+
"bg-primary": "#ffffff",
|
|
48
|
+
"bg-primary-active": "#f3f4f6",
|
|
49
|
+
"bg-stateless": "#ffffff",
|
|
50
|
+
"bg-hover": "#eff6ff",
|
|
51
|
+
"bg-active": "#dbeafe",
|
|
52
|
+
"accent-primary": "#2563eb",
|
|
53
|
+
"accent-primary-hover": "#1d4ed8",
|
|
54
|
+
"accent-primary-active": "#1e40af",
|
|
55
|
+
accent_1_2_opacity: "rgba(37, 99, 235, 0.12)",
|
|
56
|
+
"accent-stateless": "#2563eb",
|
|
57
|
+
"icon-primary": "#111827",
|
|
58
|
+
"icons-primary": "#111827",
|
|
59
|
+
"icons-secondary": "#4b5563",
|
|
60
|
+
"icons-placeholder": "#9ca3af",
|
|
61
|
+
"borders-secondary": "#e5e7eb",
|
|
62
|
+
"borders-primary": "#d1d5db",
|
|
63
|
+
"borders-strong": "#9ca3af",
|
|
64
|
+
"borders-disabled": "#d1d5db",
|
|
65
|
+
"borders-button": "#2563eb",
|
|
66
|
+
"light-shadow": "rgba(15, 23, 42, 0.12)",
|
|
67
|
+
warning: "#d97706",
|
|
68
|
+
"txt-primary": "#111827",
|
|
69
|
+
"txt-secondary": "#4b5563",
|
|
70
|
+
"txt-primary-invert": "#ffffff",
|
|
71
|
+
"txt-secondary-invert": "#f9fafb",
|
|
72
|
+
"btn-primary-text": "#ffffff",
|
|
73
|
+
"btn-secondary-text": "#1d4ed8",
|
|
74
|
+
"btn-disabled-text": "#93c5fd",
|
|
75
|
+
"link-stateless": "#2563eb"
|
|
76
|
+
},
|
|
77
|
+
typography: {
|
|
78
|
+
fontFamily: "inherit"
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function getImageEditorCssOverrides(isDarkTheme) {
|
|
83
|
+
const common = `
|
|
84
|
+
/* Fill container */
|
|
85
|
+
.FIE_root {
|
|
86
|
+
height: 100% !important;
|
|
87
|
+
}
|
|
88
|
+
`;
|
|
89
|
+
return isDarkTheme ? common + `
|
|
90
|
+
/* Input background & border overrides (hardcoded in @scaleflex/ui) */
|
|
91
|
+
[data-upup-theme='dark'] .SfxInput-Base {
|
|
92
|
+
background-color: #2d2d2d !important;
|
|
93
|
+
border-color: #4b5563 !important;
|
|
94
|
+
}
|
|
95
|
+
[data-upup-theme='dark'] .SfxInput-Base:focus-within {
|
|
96
|
+
background-color: #353535 !important;
|
|
97
|
+
border-color: #6b7280 !important;
|
|
98
|
+
}
|
|
99
|
+
[data-upup-theme='dark'] .SfxInput-Base:hover {
|
|
100
|
+
background-color: #353535 !important;
|
|
101
|
+
}
|
|
102
|
+
/* Carousel gradient arrow overrides (hardcoded white in FIE) */
|
|
103
|
+
[data-upup-theme='dark'] .FIE_carousel-prev-button {
|
|
104
|
+
background: linear-gradient(
|
|
105
|
+
90deg,
|
|
106
|
+
#232323 1.56%,
|
|
107
|
+
rgba(35, 35, 35, 0.89) 52.4%,
|
|
108
|
+
rgba(35, 35, 35, 0.53) 76.04%,
|
|
109
|
+
rgba(35, 35, 35, 0) 100%
|
|
110
|
+
) !important;
|
|
111
|
+
}
|
|
112
|
+
[data-upup-theme='dark'] .FIE_carousel-next-button {
|
|
113
|
+
background: linear-gradient(
|
|
114
|
+
270deg,
|
|
115
|
+
#232323 1.56%,
|
|
116
|
+
rgba(35, 35, 35, 0.89) 52.4%,
|
|
117
|
+
rgba(35, 35, 35, 0.53) 76.04%,
|
|
118
|
+
rgba(35, 35, 35, 0) 100%
|
|
119
|
+
) !important;
|
|
120
|
+
}
|
|
121
|
+
[data-upup-theme='dark'] .FIE_topbar-save-button,
|
|
122
|
+
[data-upup-theme='dark'] .FIE_watermark-add-button {
|
|
123
|
+
background-color: #30c5f7 !important;
|
|
124
|
+
color: #ffffff !important;
|
|
125
|
+
border: none !important;
|
|
126
|
+
}
|
|
127
|
+
[data-upup-theme='dark'] .FIE_topbar-save-button .SfxButton-Label,
|
|
128
|
+
[data-upup-theme='dark'] .FIE_watermark-add-button .SfxButton-Label {
|
|
129
|
+
color: #ffffff !important;
|
|
130
|
+
opacity: 1 !important;
|
|
131
|
+
}
|
|
132
|
+
[data-upup-theme='dark'] .FIE_topbar-save-button:hover,
|
|
133
|
+
[data-upup-theme='dark'] .FIE_topbar-save-button:focus-visible,
|
|
134
|
+
[data-upup-theme='dark'] .FIE_watermark-add-button:hover,
|
|
135
|
+
[data-upup-theme='dark'] .FIE_watermark-add-button:focus-visible {
|
|
136
|
+
background-color: #6dd8fb !important;
|
|
137
|
+
}
|
|
138
|
+
[data-upup-theme='dark'] .FIE_topbar-save-button:active,
|
|
139
|
+
[data-upup-theme='dark'] .FIE_watermark-add-button:active {
|
|
140
|
+
background-color: #27b1df !important;
|
|
141
|
+
}
|
|
142
|
+
[data-upup-theme='dark'] .FIE_topbar-save-button:disabled,
|
|
143
|
+
[data-upup-theme='dark'] .FIE_watermark-add-button:disabled {
|
|
144
|
+
color: #9ca3af !important;
|
|
145
|
+
background-color: rgba(48, 197, 247, 0.12) !important;
|
|
146
|
+
border: 1px solid #4b5563 !important;
|
|
147
|
+
}
|
|
148
|
+
[data-upup-theme='dark'] .FIE_topbar-save-button:disabled .SfxButton-Label,
|
|
149
|
+
[data-upup-theme='dark'] .FIE_watermark-add-button:disabled .SfxButton-Label {
|
|
150
|
+
color: #9ca3af !important;
|
|
151
|
+
opacity: 1 !important;
|
|
152
|
+
}
|
|
153
|
+
` : common + `
|
|
154
|
+
[data-upup-theme='light'] .FIE_topbar-save-button,
|
|
155
|
+
[data-upup-theme='light'] .FIE_watermark-add-button {
|
|
156
|
+
background-color: #2563eb !important;
|
|
157
|
+
color: #ffffff !important;
|
|
158
|
+
border: 1px solid #2563eb !important;
|
|
159
|
+
}
|
|
160
|
+
[data-upup-theme='light'] .FIE_topbar-save-button .SfxButton-Label,
|
|
161
|
+
[data-upup-theme='light'] .FIE_watermark-add-button .SfxButton-Label {
|
|
162
|
+
color: #ffffff !important;
|
|
163
|
+
opacity: 1 !important;
|
|
164
|
+
}
|
|
165
|
+
[data-upup-theme='light'] .FIE_topbar-save-button:hover,
|
|
166
|
+
[data-upup-theme='light'] .FIE_topbar-save-button:focus-visible,
|
|
167
|
+
[data-upup-theme='light'] .FIE_watermark-add-button:hover,
|
|
168
|
+
[data-upup-theme='light'] .FIE_watermark-add-button:focus-visible {
|
|
169
|
+
background-color: #1d4ed8 !important;
|
|
170
|
+
border-color: #1d4ed8 !important;
|
|
171
|
+
}
|
|
172
|
+
[data-upup-theme='light'] .FIE_topbar-save-button:active,
|
|
173
|
+
[data-upup-theme='light'] .FIE_watermark-add-button:active {
|
|
174
|
+
background-color: #1e40af !important;
|
|
175
|
+
border-color: #1e40af !important;
|
|
176
|
+
}
|
|
177
|
+
[data-upup-theme='light'] .FIE_topbar-save-button:disabled,
|
|
178
|
+
[data-upup-theme='light'] .FIE_watermark-add-button:disabled {
|
|
179
|
+
color: #93c5fd !important;
|
|
180
|
+
background-color: rgba(37, 99, 235, 0.12) !important;
|
|
181
|
+
border: 1px solid #bfdbfe !important;
|
|
182
|
+
}
|
|
183
|
+
[data-upup-theme='light'] .FIE_topbar-save-button:disabled .SfxButton-Label,
|
|
184
|
+
[data-upup-theme='light'] .FIE_watermark-add-button:disabled .SfxButton-Label {
|
|
185
|
+
color: #93c5fd !important;
|
|
186
|
+
opacity: 1 !important;
|
|
187
|
+
}
|
|
188
|
+
`;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export {
|
|
192
|
+
getFilerobotTheme,
|
|
193
|
+
getImageEditorCssOverrides
|
|
194
|
+
};
|
|
195
|
+
//# sourceMappingURL=chunk-CR6CXFRP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../react/src/lib/imageEditorHelpers.ts"],"sourcesContent":["export {\r\n dataURLtoBlob,\r\n blobToUploadFile,\r\n revokeAndReplace,\r\n} from '@useupup/core/internal'\r\n\r\ntype FilerobotTheme = {\r\n palette: Record<string, string>\r\n typography: {\r\n fontFamily: string\r\n }\r\n}\r\n\r\n/**\r\n * Shared Filerobot theme used by both inline and modal editors.\r\n * Includes extra palette tokens because some editor buttons fall back to\r\n * incomplete defaults when light-mode tokens are omitted.\r\n */\r\nexport function getFilerobotTheme(isDarkTheme: boolean): FilerobotTheme {\r\n return isDarkTheme\r\n ? {\r\n palette: {\r\n 'bg-secondary': '#1a1a1a',\r\n 'bg-primary': '#232323',\r\n 'bg-primary-active': '#2d2d2d',\r\n 'bg-stateless': '#2d2d2d',\r\n 'bg-hover': '#3a3a3a',\r\n 'bg-active': '#3a3a3a',\r\n 'accent-primary': '#30C5F7',\r\n 'accent-primary-hover': '#6DD8FB',\r\n 'accent-primary-active': '#6DD8FB',\r\n accent_1_2_opacity: 'rgba(48, 197, 247, 0.12)',\r\n 'accent-stateless': '#30C5F7',\r\n 'icon-primary': '#ffffff',\r\n 'icons-primary': '#ffffff',\r\n 'icons-secondary': '#d1d5db',\r\n 'icons-placeholder': '#9ca3af',\r\n 'borders-secondary': '#374151',\r\n 'borders-primary': '#4b5563',\r\n 'borders-strong': '#6b7280',\r\n 'borders-disabled': '#6b7280',\r\n 'borders-button': '#4b5563',\r\n 'light-shadow': 'rgba(0, 0, 0, 0.4)',\r\n warning: '#f59e0b',\r\n 'txt-primary': '#ffffff',\r\n 'txt-secondary': '#d1d5db',\r\n 'txt-primary-invert': '#232323',\r\n 'txt-secondary-invert': '#1a1a1a',\r\n 'btn-primary-text': '#ffffff',\r\n 'btn-secondary-text': '#d1d5db',\r\n 'btn-disabled-text': '#6b7280',\r\n 'link-stateless': '#d1d5db',\r\n },\r\n typography: {\r\n fontFamily: 'inherit',\r\n },\r\n }\r\n : {\r\n palette: {\r\n 'bg-secondary': '#f9fafb',\r\n 'bg-primary': '#ffffff',\r\n 'bg-primary-active': '#f3f4f6',\r\n 'bg-stateless': '#ffffff',\r\n 'bg-hover': '#eff6ff',\r\n 'bg-active': '#dbeafe',\r\n 'accent-primary': '#2563eb',\r\n 'accent-primary-hover': '#1d4ed8',\r\n 'accent-primary-active': '#1e40af',\r\n accent_1_2_opacity: 'rgba(37, 99, 235, 0.12)',\r\n 'accent-stateless': '#2563eb',\r\n 'icon-primary': '#111827',\r\n 'icons-primary': '#111827',\r\n 'icons-secondary': '#4b5563',\r\n 'icons-placeholder': '#9ca3af',\r\n 'borders-secondary': '#e5e7eb',\r\n 'borders-primary': '#d1d5db',\r\n 'borders-strong': '#9ca3af',\r\n 'borders-disabled': '#d1d5db',\r\n 'borders-button': '#2563eb',\r\n 'light-shadow': 'rgba(15, 23, 42, 0.12)',\r\n warning: '#d97706',\r\n 'txt-primary': '#111827',\r\n 'txt-secondary': '#4b5563',\r\n 'txt-primary-invert': '#ffffff',\r\n 'txt-secondary-invert': '#f9fafb',\r\n 'btn-primary-text': '#ffffff',\r\n 'btn-secondary-text': '#1d4ed8',\r\n 'btn-disabled-text': '#93c5fd',\r\n 'link-stateless': '#2563eb',\r\n },\r\n typography: {\r\n fontFamily: 'inherit',\r\n },\r\n }\r\n}\r\n\r\n/**\r\n * CSS fallbacks for hardcoded editor/library values and button states that do\r\n * not consistently respect the provided theme palette.\r\n */\r\nexport function getImageEditorCssOverrides(isDarkTheme: boolean): string {\r\n const common = `\r\n /* Fill container */\r\n .FIE_root {\r\n height: 100% !important;\r\n }\r\n `\r\n\r\n return isDarkTheme\r\n ? common +\r\n `\r\n /* Input background & border overrides (hardcoded in @scaleflex/ui) */\r\n [data-upup-theme='dark'] .SfxInput-Base {\r\n background-color: #2d2d2d !important;\r\n border-color: #4b5563 !important;\r\n }\r\n [data-upup-theme='dark'] .SfxInput-Base:focus-within {\r\n background-color: #353535 !important;\r\n border-color: #6b7280 !important;\r\n }\r\n [data-upup-theme='dark'] .SfxInput-Base:hover {\r\n background-color: #353535 !important;\r\n }\r\n /* Carousel gradient arrow overrides (hardcoded white in FIE) */\r\n [data-upup-theme='dark'] .FIE_carousel-prev-button {\r\n background: linear-gradient(\r\n 90deg,\r\n #232323 1.56%,\r\n rgba(35, 35, 35, 0.89) 52.4%,\r\n rgba(35, 35, 35, 0.53) 76.04%,\r\n rgba(35, 35, 35, 0) 100%\r\n ) !important;\r\n }\r\n [data-upup-theme='dark'] .FIE_carousel-next-button {\r\n background: linear-gradient(\r\n 270deg,\r\n #232323 1.56%,\r\n rgba(35, 35, 35, 0.89) 52.4%,\r\n rgba(35, 35, 35, 0.53) 76.04%,\r\n rgba(35, 35, 35, 0) 100%\r\n ) !important;\r\n }\r\n [data-upup-theme='dark'] .FIE_topbar-save-button,\r\n [data-upup-theme='dark'] .FIE_watermark-add-button {\r\n background-color: #30c5f7 !important;\r\n color: #ffffff !important;\r\n border: none !important;\r\n }\r\n [data-upup-theme='dark'] .FIE_topbar-save-button .SfxButton-Label,\r\n [data-upup-theme='dark'] .FIE_watermark-add-button .SfxButton-Label {\r\n color: #ffffff !important;\r\n opacity: 1 !important;\r\n }\r\n [data-upup-theme='dark'] .FIE_topbar-save-button:hover,\r\n [data-upup-theme='dark'] .FIE_topbar-save-button:focus-visible,\r\n [data-upup-theme='dark'] .FIE_watermark-add-button:hover,\r\n [data-upup-theme='dark'] .FIE_watermark-add-button:focus-visible {\r\n background-color: #6dd8fb !important;\r\n }\r\n [data-upup-theme='dark'] .FIE_topbar-save-button:active,\r\n [data-upup-theme='dark'] .FIE_watermark-add-button:active {\r\n background-color: #27b1df !important;\r\n }\r\n [data-upup-theme='dark'] .FIE_topbar-save-button:disabled,\r\n [data-upup-theme='dark'] .FIE_watermark-add-button:disabled {\r\n color: #9ca3af !important;\r\n background-color: rgba(48, 197, 247, 0.12) !important;\r\n border: 1px solid #4b5563 !important;\r\n }\r\n [data-upup-theme='dark'] .FIE_topbar-save-button:disabled .SfxButton-Label,\r\n [data-upup-theme='dark'] .FIE_watermark-add-button:disabled .SfxButton-Label {\r\n color: #9ca3af !important;\r\n opacity: 1 !important;\r\n }\r\n `\r\n : common +\r\n `\r\n [data-upup-theme='light'] .FIE_topbar-save-button,\r\n [data-upup-theme='light'] .FIE_watermark-add-button {\r\n background-color: #2563eb !important;\r\n color: #ffffff !important;\r\n border: 1px solid #2563eb !important;\r\n }\r\n [data-upup-theme='light'] .FIE_topbar-save-button .SfxButton-Label,\r\n [data-upup-theme='light'] .FIE_watermark-add-button .SfxButton-Label {\r\n color: #ffffff !important;\r\n opacity: 1 !important;\r\n }\r\n [data-upup-theme='light'] .FIE_topbar-save-button:hover,\r\n [data-upup-theme='light'] .FIE_topbar-save-button:focus-visible,\r\n [data-upup-theme='light'] .FIE_watermark-add-button:hover,\r\n [data-upup-theme='light'] .FIE_watermark-add-button:focus-visible {\r\n background-color: #1d4ed8 !important;\r\n border-color: #1d4ed8 !important;\r\n }\r\n [data-upup-theme='light'] .FIE_topbar-save-button:active,\r\n [data-upup-theme='light'] .FIE_watermark-add-button:active {\r\n background-color: #1e40af !important;\r\n border-color: #1e40af !important;\r\n }\r\n [data-upup-theme='light'] .FIE_topbar-save-button:disabled,\r\n [data-upup-theme='light'] .FIE_watermark-add-button:disabled {\r\n color: #93c5fd !important;\r\n background-color: rgba(37, 99, 235, 0.12) !important;\r\n border: 1px solid #bfdbfe !important;\r\n }\r\n [data-upup-theme='light'] .FIE_topbar-save-button:disabled .SfxButton-Label,\r\n [data-upup-theme='light'] .FIE_watermark-add-button:disabled .SfxButton-Label {\r\n color: #93c5fd !important;\r\n opacity: 1 !important;\r\n }\r\n `\r\n}\r\n"],"mappings":";AAAA;EACI;EACA;EACA;OACG;AAcA,SAAS,kBAAkB,aAAsC;AACpE,SAAO,cACD;IACI,SAAS;MACL,gBAAgB;MAChB,cAAc;MACd,qBAAqB;MACrB,gBAAgB;MAChB,YAAY;MACZ,aAAa;MACb,kBAAkB;MAClB,wBAAwB;MACxB,yBAAyB;MACzB,oBAAoB;MACpB,oBAAoB;MACpB,gBAAgB;MAChB,iBAAiB;MACjB,mBAAmB;MACnB,qBAAqB;MACrB,qBAAqB;MACrB,mBAAmB;MACnB,kBAAkB;MAClB,oBAAoB;MACpB,kBAAkB;MAClB,gBAAgB;MAChB,SAAS;MACT,eAAe;MACf,iBAAiB;MACjB,sBAAsB;MACtB,wBAAwB;MACxB,oBAAoB;MACpB,sBAAsB;MACtB,qBAAqB;MACrB,kBAAkB;IACtB;IACA,YAAY;MACR,YAAY;IAChB;EACJ,IACA;IACI,SAAS;MACL,gBAAgB;MAChB,cAAc;MACd,qBAAqB;MACrB,gBAAgB;MAChB,YAAY;MACZ,aAAa;MACb,kBAAkB;MAClB,wBAAwB;MACxB,yBAAyB;MACzB,oBAAoB;MACpB,oBAAoB;MACpB,gBAAgB;MAChB,iBAAiB;MACjB,mBAAmB;MACnB,qBAAqB;MACrB,qBAAqB;MACrB,mBAAmB;MACnB,kBAAkB;MAClB,oBAAoB;MACpB,kBAAkB;MAClB,gBAAgB;MAChB,SAAS;MACT,eAAe;MACf,iBAAiB;MACjB,sBAAsB;MACtB,wBAAwB;MACxB,oBAAoB;MACpB,sBAAsB;MACtB,qBAAqB;MACrB,kBAAkB;IACtB;IACA,YAAY;MACR,YAAY;IAChB;EACJ;AACV;AAMO,SAAS,2BAA2B,aAA8B;AACrE,QAAM,SAAS;;;;;;AAOf,SAAO,cACD,SACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiEJ,SACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCd;","names":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk2XFVSPFNcjs = require('./chunk-2XFVSPFN.cjs');
|
|
5
|
+
|
|
6
|
+
// ../react/dist/chunk-SSLP3MEC.js
|
|
7
|
+
var _internal = require('@useupup/core/internal');
|
|
8
|
+
function SourceViewContainer({
|
|
9
|
+
children,
|
|
10
|
+
isLoading = false,
|
|
11
|
+
...rest
|
|
12
|
+
}) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
const { isDark: dark, slotOverrides: slotClasses } = _chunk2XFVSPFNcjs.useUploaderTheme.call(void 0, );
|
|
15
|
+
return /* @__PURE__ */ _chunk2XFVSPFNcjs.u.call(void 0,
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
"data-testid": "upup-source-view",
|
|
19
|
+
className: _internal.cn.call(void 0,
|
|
20
|
+
// Transparent by design: the view body sits directly on the
|
|
21
|
+
// panel's gradient chrome (the old black/[0.075] wash read as
|
|
22
|
+
// a mismatched gray block over the light gradient).
|
|
23
|
+
"upup-flex upup-items-center upup-justify-center upup-overflow-hidden",
|
|
24
|
+
{
|
|
25
|
+
"upup-text-[#FAFAFA] dark:upup-text-[#FAFAFA]": isLoading && dark,
|
|
26
|
+
[(_a = slotClasses.sourceView) != null ? _a : ""]: !isLoading && slotClasses.sourceView,
|
|
27
|
+
[(_b = slotClasses.driveLoading) != null ? _b : ""]: isLoading && slotClasses.driveLoading
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
...rest,
|
|
31
|
+
children
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
exports.SourceViewContainer = SourceViewContainer;
|
|
39
|
+
//# sourceMappingURL=chunk-ETIJATY7.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["c:\\Users\\amind\\OneDrive\\Desktop\\Projects\\INTERNAL\\upup\\packages\\preact\\dist\\chunk-ETIJATY7.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACA;AACA,kDAA2C;AAC3C,SAAS,mBAAmB,CAAC;AAC7B,EAAE,QAAQ;AACV,EAAE,UAAU,EAAE,KAAK;AACnB,EAAE,GAAG;AACL,CAAC,EAAE;AACH,EAAE,IAAI,EAAE,EAAE,EAAE;AACZ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE,gDAAgB,CAAE;AACzE,EAAE,uBAAuB,iCAAC;AAC1B,IAAI,KAAK;AACT,IAAI;AACJ,MAAM,aAAa,EAAE,kBAAkB;AACvC,MAAM,SAAS,EAAE,0BAAE;AACnB;AACA;AACA;AACA,QAAQ,sEAAsE;AAC9E,QAAQ;AACR,UAAU,8CAA8C,EAAE,UAAU,GAAG,IAAI;AAC3E,UAAU,CAAC,CAAC,GAAG,EAAE,WAAW,CAAC,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU;AACjG,UAAU,CAAC,CAAC,GAAG,EAAE,WAAW,CAAC,YAAY,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;AACxF,QAAQ;AACR,MAAM,CAAC;AACP,MAAM,GAAG,IAAI;AACb,MAAM;AACN,IAAI;AACJ,EAAE,CAAC;AACH;AACA;AACA;AACE;AACF,kDAAC","file":"C:\\Users\\amind\\OneDrive\\Desktop\\Projects\\INTERNAL\\upup\\packages\\preact\\dist\\chunk-ETIJATY7.cjs","sourcesContent":[null]}
|