@levo-so/studio 0.1.98 → 0.1.99
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/{BillingStep-C3jJkLXQ.js → BillingStep-CD-nP5Zg.js} +1 -1
- package/{Button-CwN6jTXH.js → Button-BN9tHQ7U.js} +1 -1
- package/{CollectionInput-BoNAc4sq.js → CollectionInput-57OEuaRO.js} +1 -1
- package/{DateTimeWidget-IRleQI-3.js → DateTimeWidget-BlOQYia2.js} +4 -4
- package/{EntryCard-xpo36vUc.js → EntryCard-DMxKxYzC.js} +1 -1
- package/{LoginCard-DG8NAN0B.js → LoginCard-Dgl3uq38.js} +1 -1
- package/{LoginModal-BPI5tOIZ.js → LoginModal-CVh8k24t.js} +2 -2
- package/{ModalManager-BaIL6HG-.js → ModalManager-D2pV7Ba2.js} +1 -1
- package/{PendingApprovalCard-DID1FhwF.js → PendingApprovalCard-ZIhBzT3K.js} +1 -1
- package/{PhoneWidget-CjhHfwuG.js → PhoneWidget-cSp-CqJl.js} +4 -4
- package/{Popover-DHVZdJuv.js → Popover-ieqK7ZXF.js} +1 -1
- package/{RichTextWidget-CgT1_zC3.js → RichTextWidget-BeUcHYmx.js} +337 -341
- package/Tooltip-9zds9Zoi.js +67 -0
- package/{VerifyButton-DFKzKYxC.js → VerifyButton-faa0wOES.js} +2 -2
- package/{bookingCard-Bw4tvDYh.js → bookingCard-OUT621LL.js} +3 -3
- package/collection.js +7 -7
- package/dist-IAADcuph.js +3113 -0
- package/{getFieldValidations-qVzuq6mv.js → getFieldValidations-j341NV59.js} +5 -2
- package/index.d.ts +90 -1
- package/index.js +1227 -1194
- package/{nodeAlignment-CG3qmAuQ.js → nodeAlignment-UpurkBVP.js} +37 -37
- package/package.json +3 -3
- package/studio.css +1 -1
- package/theme.cssm-2YTdd8Yh.js +15 -0
- package/{utils-F6eBcsyI.js → utils-C_ATWxPM.js} +1 -1
- package/widgets-BHUjv2OM.js +289 -0
- package/Tooltip-ByJRyayB.js +0 -78
- package/dist-B7TPxn7o.js +0 -3180
- package/theme.cssm-De_pl52g.js +0 -4
- package/widgets-Dvyv5_uj.js +0 -215
- /package/{CollectionField-DnbpB0Z5.js → CollectionField-BpRjsPIl.js} +0 -0
- /package/{StripePaymentModal-BcePXzmC.js → StripePaymentModal-DC-ySB_o.js} +0 -0
- /package/{dialog-CCWrvmHd.js → dialog-BJpM4UEG.js} +0 -0
|
@@ -43,10 +43,13 @@ var f = "_1er5g5a0", p = /* @__PURE__ */ new Set(), m = {}, h = e(null), g = ()
|
|
|
43
43
|
};
|
|
44
44
|
}, []), n(() => {
|
|
45
45
|
let e = g.current;
|
|
46
|
-
|
|
46
|
+
if (!e) return;
|
|
47
|
+
e.className = c(_, ...b.classes), e.style.cssText = "";
|
|
48
|
+
let t = {
|
|
47
49
|
display: "contents",
|
|
48
50
|
...b.overrides
|
|
49
|
-
}
|
|
51
|
+
};
|
|
52
|
+
for (let [n, r] of Object.entries(t)) r != null && e.style.setProperty(n, String(r));
|
|
50
53
|
}, [
|
|
51
54
|
b.classes,
|
|
52
55
|
b.overrides,
|
package/index.d.ts
CHANGED
|
@@ -161,7 +161,7 @@ declare interface BaseAccordionTriggerProps extends BaseElementProps, Omit<React
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
export declare const BaseBlogContent: {
|
|
164
|
-
({ className, content, config, styles, elementKey, generatedClassName, ref, ...rest }: BaseBlogContentProps): JSX.Element
|
|
164
|
+
({ className, content, config, styles, elementKey, generatedClassName, ref, ...rest }: BaseBlogContentProps): JSX.Element;
|
|
165
165
|
displayName: string;
|
|
166
166
|
};
|
|
167
167
|
|
|
@@ -541,6 +541,10 @@ declare type DeepConfig<T> = T extends Array<infer U> ? IFieldConfig & {
|
|
|
541
541
|
[x: string]: IFieldConfig;
|
|
542
542
|
} : IFieldConfig;
|
|
543
543
|
|
|
544
|
+
declare type DeepPartial<T> = {
|
|
545
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
546
|
+
};
|
|
547
|
+
|
|
544
548
|
declare type DeepStyles<T> = T extends Array<infer U> ? IStyles & {
|
|
545
549
|
[index: number]: DeepStyles<U>;
|
|
546
550
|
} : T extends object ? {
|
|
@@ -1056,6 +1060,31 @@ export declare interface ICategoryFilterProps {
|
|
|
1056
1060
|
className?: string;
|
|
1057
1061
|
}
|
|
1058
1062
|
|
|
1063
|
+
declare interface ICollectionTheme {
|
|
1064
|
+
form: {
|
|
1065
|
+
maxWidth: string;
|
|
1066
|
+
gap: string;
|
|
1067
|
+
borderRadius: string;
|
|
1068
|
+
labelFontSize: string;
|
|
1069
|
+
helpFontSize: string;
|
|
1070
|
+
textColor: string;
|
|
1071
|
+
helperTextColor: string;
|
|
1072
|
+
};
|
|
1073
|
+
input: {
|
|
1074
|
+
fontSize: string;
|
|
1075
|
+
height: string;
|
|
1076
|
+
borderRadius: string;
|
|
1077
|
+
};
|
|
1078
|
+
checkbox: {
|
|
1079
|
+
labelFontSize: string;
|
|
1080
|
+
};
|
|
1081
|
+
button: {
|
|
1082
|
+
fontSize: string;
|
|
1083
|
+
padding: string;
|
|
1084
|
+
borderRadius: string;
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1059
1088
|
declare interface ICommentsRestrictionOverlayProps {
|
|
1060
1089
|
communityName?: string;
|
|
1061
1090
|
className?: string;
|
|
@@ -1201,6 +1230,8 @@ export declare interface IFieldConfig {
|
|
|
1201
1230
|
after?: string;
|
|
1202
1231
|
};
|
|
1203
1232
|
custom_fields?: Record<string, unknown>;
|
|
1233
|
+
/** Theme overrides passed to self-themed child libraries (RTE, Collection Forms, etc.). */
|
|
1234
|
+
theme?: DeepPartial<ITheme_2 & IRteTheme & ICollectionTheme>;
|
|
1204
1235
|
}
|
|
1205
1236
|
|
|
1206
1237
|
/**
|
|
@@ -1626,6 +1657,10 @@ declare type IPreviewDevice = "desktop" | "tablet" | "mobile";
|
|
|
1626
1657
|
*/
|
|
1627
1658
|
export declare type IRenderMode = "live" | "studio.page" | "studio.block";
|
|
1628
1659
|
|
|
1660
|
+
declare interface IRteTheme {
|
|
1661
|
+
baseSpacing: string;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1629
1664
|
/**
|
|
1630
1665
|
* Type guard to check if a method is alternate (OAuth)
|
|
1631
1666
|
*/
|
|
@@ -1910,6 +1945,60 @@ export declare interface ITheme {
|
|
|
1910
1945
|
[x: string]: unknown;
|
|
1911
1946
|
}
|
|
1912
1947
|
|
|
1948
|
+
declare interface ITheme_2 {
|
|
1949
|
+
colors: {
|
|
1950
|
+
text: string;
|
|
1951
|
+
heading: string;
|
|
1952
|
+
primary: string;
|
|
1953
|
+
primaryForeground: string;
|
|
1954
|
+
accent: string;
|
|
1955
|
+
accentForeground: string;
|
|
1956
|
+
border: string;
|
|
1957
|
+
background: string;
|
|
1958
|
+
foreground: string;
|
|
1959
|
+
card: string;
|
|
1960
|
+
cardForeground: string;
|
|
1961
|
+
popover: string;
|
|
1962
|
+
popoverForeground: string;
|
|
1963
|
+
secondary: string;
|
|
1964
|
+
secondaryForeground: string;
|
|
1965
|
+
muted: string;
|
|
1966
|
+
mutedForeground: string;
|
|
1967
|
+
destructive: string;
|
|
1968
|
+
input: string;
|
|
1969
|
+
ring: string;
|
|
1970
|
+
};
|
|
1971
|
+
radius: string;
|
|
1972
|
+
radiusScale: {
|
|
1973
|
+
sm: string;
|
|
1974
|
+
base: string;
|
|
1975
|
+
md: string;
|
|
1976
|
+
lg: string;
|
|
1977
|
+
xl: string;
|
|
1978
|
+
"2xl": string;
|
|
1979
|
+
"3xl": string;
|
|
1980
|
+
"4xl": string;
|
|
1981
|
+
"5xl": string;
|
|
1982
|
+
"6xl": string;
|
|
1983
|
+
"7xl": string;
|
|
1984
|
+
"8xl": string;
|
|
1985
|
+
full: string;
|
|
1986
|
+
};
|
|
1987
|
+
baseFontSize: string;
|
|
1988
|
+
fonts: {
|
|
1989
|
+
body: string;
|
|
1990
|
+
heading: string;
|
|
1991
|
+
};
|
|
1992
|
+
shadow: {
|
|
1993
|
+
xs: string;
|
|
1994
|
+
sm: string;
|
|
1995
|
+
md: string;
|
|
1996
|
+
lg: string;
|
|
1997
|
+
xl: string;
|
|
1998
|
+
inner: string;
|
|
1999
|
+
};
|
|
2000
|
+
}
|
|
2001
|
+
|
|
1913
2002
|
/**
|
|
1914
2003
|
* Container for all component themes in the system
|
|
1915
2004
|
*
|