@fairmint/ui 0.2.15 → 0.2.16
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/fairmint-ui.cjs +26 -17
- package/dist/fairmint-ui.cjs.map +1 -1
- package/dist/fairmint-ui.js +26 -17
- package/dist/fairmint-ui.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/spacing.d.ts +14 -0
- package/dist/theme/spacing.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/fairmint-ui.cjs
CHANGED
|
@@ -15857,14 +15857,14 @@ function useAvatarGroupContext() {
|
|
|
15857
15857
|
const ctx = React.useContext(AvatarGroupContext);
|
|
15858
15858
|
return { withinGroup: !!ctx };
|
|
15859
15859
|
}
|
|
15860
|
-
const varsResolver$v = createVarsResolver((_, { spacing }) => ({
|
|
15860
|
+
const varsResolver$v = createVarsResolver((_, { spacing: spacing2 }) => ({
|
|
15861
15861
|
group: {
|
|
15862
|
-
"--ag-spacing": getSpacing(
|
|
15862
|
+
"--ag-spacing": getSpacing(spacing2)
|
|
15863
15863
|
}
|
|
15864
15864
|
}));
|
|
15865
15865
|
const AvatarGroup = factory((_props, ref) => {
|
|
15866
15866
|
const props = useProps("AvatarGroup", null, _props);
|
|
15867
|
-
const { classNames: classNames2, className, style, styles, unstyled, vars, spacing, attributes, ...others } = props;
|
|
15867
|
+
const { classNames: classNames2, className, style, styles, unstyled, vars, spacing: spacing2, attributes, ...others } = props;
|
|
15868
15868
|
const getStyles2 = useStyles({
|
|
15869
15869
|
name: "AvatarGroup",
|
|
15870
15870
|
classes: classes$t,
|
|
@@ -21401,15 +21401,15 @@ Select$1.classes = { ...InputBase.classes, ...Combobox.classes };
|
|
|
21401
21401
|
Select$1.displayName = "@mantine/core/Select";
|
|
21402
21402
|
var classes$8 = { "container": "m_925c2d2c", "root": "m_2415a157" };
|
|
21403
21403
|
function SimpleGridMediaVariables({
|
|
21404
|
-
spacing,
|
|
21404
|
+
spacing: spacing2,
|
|
21405
21405
|
verticalSpacing,
|
|
21406
21406
|
cols,
|
|
21407
21407
|
selector
|
|
21408
21408
|
}) {
|
|
21409
21409
|
const theme2 = useMantineTheme();
|
|
21410
|
-
const _verticalSpacing = verticalSpacing === void 0 ?
|
|
21410
|
+
const _verticalSpacing = verticalSpacing === void 0 ? spacing2 : verticalSpacing;
|
|
21411
21411
|
const baseStyles = filterProps({
|
|
21412
|
-
"--sg-spacing-x": getSpacing(getBaseValue$1(
|
|
21412
|
+
"--sg-spacing-x": getSpacing(getBaseValue$1(spacing2)),
|
|
21413
21413
|
"--sg-spacing-y": getSpacing(getBaseValue$1(_verticalSpacing)),
|
|
21414
21414
|
"--sg-cols": getBaseValue$1(cols)?.toString()
|
|
21415
21415
|
});
|
|
@@ -21418,8 +21418,8 @@ function SimpleGridMediaVariables({
|
|
|
21418
21418
|
if (!acc[breakpoint]) {
|
|
21419
21419
|
acc[breakpoint] = {};
|
|
21420
21420
|
}
|
|
21421
|
-
if (typeof
|
|
21422
|
-
acc[breakpoint]["--sg-spacing-x"] = getSpacing(
|
|
21421
|
+
if (typeof spacing2 === "object" && spacing2[breakpoint] !== void 0) {
|
|
21422
|
+
acc[breakpoint]["--sg-spacing-x"] = getSpacing(spacing2[breakpoint]);
|
|
21423
21423
|
}
|
|
21424
21424
|
if (typeof _verticalSpacing === "object" && _verticalSpacing[breakpoint] !== void 0) {
|
|
21425
21425
|
acc[breakpoint]["--sg-spacing-y"] = getSpacing(_verticalSpacing[breakpoint]);
|
|
@@ -21450,13 +21450,13 @@ function sortBreakpoints(breakpoints) {
|
|
|
21450
21450
|
return breakpoints.sort((a, b) => px(a) - px(b));
|
|
21451
21451
|
}
|
|
21452
21452
|
function getUniqueBreakpoints({
|
|
21453
|
-
spacing,
|
|
21453
|
+
spacing: spacing2,
|
|
21454
21454
|
verticalSpacing,
|
|
21455
21455
|
cols
|
|
21456
21456
|
}) {
|
|
21457
21457
|
const breakpoints = Array.from(
|
|
21458
21458
|
/* @__PURE__ */ new Set([
|
|
21459
|
-
...getBreakpoints(
|
|
21459
|
+
...getBreakpoints(spacing2),
|
|
21460
21460
|
...getBreakpoints(verticalSpacing),
|
|
21461
21461
|
...getBreakpoints(cols)
|
|
21462
21462
|
])
|
|
@@ -21464,25 +21464,25 @@ function getUniqueBreakpoints({
|
|
|
21464
21464
|
return sortBreakpoints(breakpoints);
|
|
21465
21465
|
}
|
|
21466
21466
|
function SimpleGridContainerVariables({
|
|
21467
|
-
spacing,
|
|
21467
|
+
spacing: spacing2,
|
|
21468
21468
|
verticalSpacing,
|
|
21469
21469
|
cols,
|
|
21470
21470
|
selector
|
|
21471
21471
|
}) {
|
|
21472
|
-
const _verticalSpacing = verticalSpacing === void 0 ?
|
|
21472
|
+
const _verticalSpacing = verticalSpacing === void 0 ? spacing2 : verticalSpacing;
|
|
21473
21473
|
const baseStyles = filterProps({
|
|
21474
|
-
"--sg-spacing-x": getSpacing(getBaseValue$1(
|
|
21474
|
+
"--sg-spacing-x": getSpacing(getBaseValue$1(spacing2)),
|
|
21475
21475
|
"--sg-spacing-y": getSpacing(getBaseValue$1(_verticalSpacing)),
|
|
21476
21476
|
"--sg-cols": getBaseValue$1(cols)?.toString()
|
|
21477
21477
|
});
|
|
21478
|
-
const uniqueBreakpoints = getUniqueBreakpoints({ spacing, verticalSpacing, cols });
|
|
21478
|
+
const uniqueBreakpoints = getUniqueBreakpoints({ spacing: spacing2, verticalSpacing, cols });
|
|
21479
21479
|
const queries = uniqueBreakpoints.reduce(
|
|
21480
21480
|
(acc, breakpoint) => {
|
|
21481
21481
|
if (!acc[breakpoint]) {
|
|
21482
21482
|
acc[breakpoint] = {};
|
|
21483
21483
|
}
|
|
21484
|
-
if (typeof
|
|
21485
|
-
acc[breakpoint]["--sg-spacing-x"] = getSpacing(
|
|
21484
|
+
if (typeof spacing2 === "object" && spacing2[breakpoint] !== void 0) {
|
|
21485
|
+
acc[breakpoint]["--sg-spacing-x"] = getSpacing(spacing2[breakpoint]);
|
|
21486
21486
|
}
|
|
21487
21487
|
if (typeof _verticalSpacing === "object" && _verticalSpacing[breakpoint] !== void 0) {
|
|
21488
21488
|
acc[breakpoint]["--sg-spacing-y"] = getSpacing(_verticalSpacing[breakpoint]);
|
|
@@ -21516,7 +21516,7 @@ const SimpleGrid = factory((_props, ref) => {
|
|
|
21516
21516
|
vars,
|
|
21517
21517
|
cols,
|
|
21518
21518
|
verticalSpacing,
|
|
21519
|
-
spacing,
|
|
21519
|
+
spacing: spacing2,
|
|
21520
21520
|
type,
|
|
21521
21521
|
attributes,
|
|
21522
21522
|
...others
|
|
@@ -26786,6 +26786,13 @@ const z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
26786
26786
|
},
|
|
26787
26787
|
void: voidType
|
|
26788
26788
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26789
|
+
const spacing = {
|
|
26790
|
+
xs: "0.625rem",
|
|
26791
|
+
sm: "0.75rem",
|
|
26792
|
+
md: "1rem",
|
|
26793
|
+
lg: "1.25rem",
|
|
26794
|
+
xl: "2rem"
|
|
26795
|
+
};
|
|
26789
26796
|
const colors = {
|
|
26790
26797
|
/** Primary UI color — buttons, links, active states. */
|
|
26791
26798
|
primary: "indigo",
|
|
@@ -26937,6 +26944,7 @@ const theme = createTheme({
|
|
|
26937
26944
|
},
|
|
26938
26945
|
radius: radii,
|
|
26939
26946
|
defaultRadius: "md",
|
|
26947
|
+
spacing,
|
|
26940
26948
|
breakpoints: {
|
|
26941
26949
|
xs: "30em",
|
|
26942
26950
|
sm: "48em",
|
|
@@ -31258,6 +31266,7 @@ exports.passwordSchema = passwordSchema;
|
|
|
31258
31266
|
exports.phoneSchema = phoneSchema;
|
|
31259
31267
|
exports.radii = radii;
|
|
31260
31268
|
exports.semanticColors = semanticColors;
|
|
31269
|
+
exports.spacing = spacing;
|
|
31261
31270
|
exports.theme = theme;
|
|
31262
31271
|
exports.truncateAddress = truncateAddress;
|
|
31263
31272
|
exports.typography = typography;
|