@projectdiscoveryio/design-system 1.0.0 → 1.0.1
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/fallback.css +24 -3
- package/dist/index.cjs +4 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +208 -0
- package/dist/index.js +4 -26
- package/dist/index.js.map +1 -1
- package/dist/styles.css +225 -0
- package/package.json +8 -9
package/dist/fallback.css
CHANGED
|
@@ -142,10 +142,14 @@ body {
|
|
|
142
142
|
input:-webkit-autofill,
|
|
143
143
|
input:-webkit-autofill:hover,
|
|
144
144
|
input:-webkit-autofill:focus,
|
|
145
|
-
input:-webkit-autofill:active
|
|
146
|
-
|
|
145
|
+
input:-webkit-autofill:active,
|
|
146
|
+
input:-internal-autofill-selected {
|
|
147
|
+
background-color: var(--pd-background-primary) !important;
|
|
148
|
+
background-image: none !important;
|
|
147
149
|
transition: background-color 5000s ease-in-out 0s;
|
|
148
|
-
-webkit-text-fill-color:
|
|
150
|
+
-webkit-text-fill-color: var(--pd-content-primary) !important;
|
|
151
|
+
color: var(--pd-content-primary) !important;
|
|
152
|
+
box-shadow: 0 0 0px 1000px var(--pd-background-primary) inset !important;
|
|
149
153
|
}
|
|
150
154
|
|
|
151
155
|
@layer base {
|
|
@@ -163,6 +167,9 @@ input:-webkit-autofill:active {
|
|
|
163
167
|
textarea::placeholder {
|
|
164
168
|
font-size: 1.25rem
|
|
165
169
|
}
|
|
170
|
+
input,textarea{
|
|
171
|
+
font-size: 1.25rem !important;
|
|
172
|
+
}
|
|
166
173
|
}
|
|
167
174
|
|
|
168
175
|
.monaco-editor {
|
|
@@ -215,6 +222,7 @@ input:-webkit-autofill:active {
|
|
|
215
222
|
|
|
216
223
|
/* Legacy variables mapped to PD tokens for backward compatibility */
|
|
217
224
|
--background: var(--pd-background-primary);
|
|
225
|
+
--background-primary: var(--pd-background-primary);
|
|
218
226
|
--foreground: var(--pd-content-primary);
|
|
219
227
|
--card: var(--pd-background-secondary);
|
|
220
228
|
--card-foreground: var(--pd-content-primary);
|
|
@@ -822,3 +830,16 @@ input:-webkit-autofill:active {
|
|
|
822
830
|
.ant-picker-focused {
|
|
823
831
|
background: var(--background-primary) !important;
|
|
824
832
|
}
|
|
833
|
+
/* Skeleton shimmer animation */
|
|
834
|
+
@keyframes shimmer {
|
|
835
|
+
0% {
|
|
836
|
+
transform: translateX(-100%);
|
|
837
|
+
}
|
|
838
|
+
100% {
|
|
839
|
+
transform: translateX(50%);
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
.animate-shimmer {
|
|
844
|
+
animation: shimmer 1.5s ease-in-out infinite;
|
|
845
|
+
}
|
package/dist/index.cjs
CHANGED
|
@@ -1124,8 +1124,11 @@ function ThemeProvider({
|
|
|
1124
1124
|
return initialMode;
|
|
1125
1125
|
};
|
|
1126
1126
|
const [mode, setMode] = React.useState(getInitialMode);
|
|
1127
|
+
React.useEffect(() => {
|
|
1128
|
+
setMode(initialMode);
|
|
1129
|
+
}, [initialMode]);
|
|
1127
1130
|
const [resolvedMode, setResolvedMode] = React.useState(
|
|
1128
|
-
() => resolveThemeMode(
|
|
1131
|
+
() => resolveThemeMode(initialMode)
|
|
1129
1132
|
);
|
|
1130
1133
|
React.useEffect(() => {
|
|
1131
1134
|
if (mode !== "system" || typeof window === "undefined" || !window.matchMedia) {
|
|
@@ -1231,31 +1234,6 @@ function ThemeProvider({
|
|
|
1231
1234
|
} else {
|
|
1232
1235
|
body.classList.remove("pd-dark");
|
|
1233
1236
|
}
|
|
1234
|
-
if (mode === "system") {
|
|
1235
|
-
const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1236
|
-
const handleSystemChange = (e) => {
|
|
1237
|
-
const systemIsDark = e.matches;
|
|
1238
|
-
if (systemIsDark) {
|
|
1239
|
-
body.classList.add("pd-dark");
|
|
1240
|
-
} else {
|
|
1241
|
-
body.classList.remove("pd-dark");
|
|
1242
|
-
}
|
|
1243
|
-
};
|
|
1244
|
-
handleSystemChange(mediaQuery);
|
|
1245
|
-
if (mediaQuery.addEventListener) {
|
|
1246
|
-
mediaQuery.addEventListener("change", handleSystemChange);
|
|
1247
|
-
return () => {
|
|
1248
|
-
mediaQuery.removeEventListener("change", handleSystemChange);
|
|
1249
|
-
body.classList.remove("pd-root", "pd-dark");
|
|
1250
|
-
};
|
|
1251
|
-
} else {
|
|
1252
|
-
mediaQuery.addListener(handleSystemChange);
|
|
1253
|
-
return () => {
|
|
1254
|
-
mediaQuery.removeListener(handleSystemChange);
|
|
1255
|
-
body.classList.remove("pd-root", "pd-dark");
|
|
1256
|
-
};
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
1237
|
return () => {
|
|
1260
1238
|
body.classList.remove("pd-root", "pd-dark");
|
|
1261
1239
|
};
|