@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.js
CHANGED
|
@@ -15839,14 +15839,14 @@ function useAvatarGroupContext() {
|
|
|
15839
15839
|
const ctx = useContext(AvatarGroupContext);
|
|
15840
15840
|
return { withinGroup: !!ctx };
|
|
15841
15841
|
}
|
|
15842
|
-
const varsResolver$v = createVarsResolver((_, { spacing }) => ({
|
|
15842
|
+
const varsResolver$v = createVarsResolver((_, { spacing: spacing2 }) => ({
|
|
15843
15843
|
group: {
|
|
15844
|
-
"--ag-spacing": getSpacing(
|
|
15844
|
+
"--ag-spacing": getSpacing(spacing2)
|
|
15845
15845
|
}
|
|
15846
15846
|
}));
|
|
15847
15847
|
const AvatarGroup = factory((_props, ref) => {
|
|
15848
15848
|
const props = useProps("AvatarGroup", null, _props);
|
|
15849
|
-
const { classNames: classNames2, className, style, styles, unstyled, vars, spacing, attributes, ...others } = props;
|
|
15849
|
+
const { classNames: classNames2, className, style, styles, unstyled, vars, spacing: spacing2, attributes, ...others } = props;
|
|
15850
15850
|
const getStyles2 = useStyles({
|
|
15851
15851
|
name: "AvatarGroup",
|
|
15852
15852
|
classes: classes$t,
|
|
@@ -21383,15 +21383,15 @@ Select$1.classes = { ...InputBase.classes, ...Combobox.classes };
|
|
|
21383
21383
|
Select$1.displayName = "@mantine/core/Select";
|
|
21384
21384
|
var classes$8 = { "container": "m_925c2d2c", "root": "m_2415a157" };
|
|
21385
21385
|
function SimpleGridMediaVariables({
|
|
21386
|
-
spacing,
|
|
21386
|
+
spacing: spacing2,
|
|
21387
21387
|
verticalSpacing,
|
|
21388
21388
|
cols,
|
|
21389
21389
|
selector
|
|
21390
21390
|
}) {
|
|
21391
21391
|
const theme2 = useMantineTheme();
|
|
21392
|
-
const _verticalSpacing = verticalSpacing === void 0 ?
|
|
21392
|
+
const _verticalSpacing = verticalSpacing === void 0 ? spacing2 : verticalSpacing;
|
|
21393
21393
|
const baseStyles = filterProps({
|
|
21394
|
-
"--sg-spacing-x": getSpacing(getBaseValue$1(
|
|
21394
|
+
"--sg-spacing-x": getSpacing(getBaseValue$1(spacing2)),
|
|
21395
21395
|
"--sg-spacing-y": getSpacing(getBaseValue$1(_verticalSpacing)),
|
|
21396
21396
|
"--sg-cols": getBaseValue$1(cols)?.toString()
|
|
21397
21397
|
});
|
|
@@ -21400,8 +21400,8 @@ function SimpleGridMediaVariables({
|
|
|
21400
21400
|
if (!acc[breakpoint]) {
|
|
21401
21401
|
acc[breakpoint] = {};
|
|
21402
21402
|
}
|
|
21403
|
-
if (typeof
|
|
21404
|
-
acc[breakpoint]["--sg-spacing-x"] = getSpacing(
|
|
21403
|
+
if (typeof spacing2 === "object" && spacing2[breakpoint] !== void 0) {
|
|
21404
|
+
acc[breakpoint]["--sg-spacing-x"] = getSpacing(spacing2[breakpoint]);
|
|
21405
21405
|
}
|
|
21406
21406
|
if (typeof _verticalSpacing === "object" && _verticalSpacing[breakpoint] !== void 0) {
|
|
21407
21407
|
acc[breakpoint]["--sg-spacing-y"] = getSpacing(_verticalSpacing[breakpoint]);
|
|
@@ -21432,13 +21432,13 @@ function sortBreakpoints(breakpoints) {
|
|
|
21432
21432
|
return breakpoints.sort((a, b) => px(a) - px(b));
|
|
21433
21433
|
}
|
|
21434
21434
|
function getUniqueBreakpoints({
|
|
21435
|
-
spacing,
|
|
21435
|
+
spacing: spacing2,
|
|
21436
21436
|
verticalSpacing,
|
|
21437
21437
|
cols
|
|
21438
21438
|
}) {
|
|
21439
21439
|
const breakpoints = Array.from(
|
|
21440
21440
|
/* @__PURE__ */ new Set([
|
|
21441
|
-
...getBreakpoints(
|
|
21441
|
+
...getBreakpoints(spacing2),
|
|
21442
21442
|
...getBreakpoints(verticalSpacing),
|
|
21443
21443
|
...getBreakpoints(cols)
|
|
21444
21444
|
])
|
|
@@ -21446,25 +21446,25 @@ function getUniqueBreakpoints({
|
|
|
21446
21446
|
return sortBreakpoints(breakpoints);
|
|
21447
21447
|
}
|
|
21448
21448
|
function SimpleGridContainerVariables({
|
|
21449
|
-
spacing,
|
|
21449
|
+
spacing: spacing2,
|
|
21450
21450
|
verticalSpacing,
|
|
21451
21451
|
cols,
|
|
21452
21452
|
selector
|
|
21453
21453
|
}) {
|
|
21454
|
-
const _verticalSpacing = verticalSpacing === void 0 ?
|
|
21454
|
+
const _verticalSpacing = verticalSpacing === void 0 ? spacing2 : verticalSpacing;
|
|
21455
21455
|
const baseStyles = filterProps({
|
|
21456
|
-
"--sg-spacing-x": getSpacing(getBaseValue$1(
|
|
21456
|
+
"--sg-spacing-x": getSpacing(getBaseValue$1(spacing2)),
|
|
21457
21457
|
"--sg-spacing-y": getSpacing(getBaseValue$1(_verticalSpacing)),
|
|
21458
21458
|
"--sg-cols": getBaseValue$1(cols)?.toString()
|
|
21459
21459
|
});
|
|
21460
|
-
const uniqueBreakpoints = getUniqueBreakpoints({ spacing, verticalSpacing, cols });
|
|
21460
|
+
const uniqueBreakpoints = getUniqueBreakpoints({ spacing: spacing2, verticalSpacing, cols });
|
|
21461
21461
|
const queries = uniqueBreakpoints.reduce(
|
|
21462
21462
|
(acc, breakpoint) => {
|
|
21463
21463
|
if (!acc[breakpoint]) {
|
|
21464
21464
|
acc[breakpoint] = {};
|
|
21465
21465
|
}
|
|
21466
|
-
if (typeof
|
|
21467
|
-
acc[breakpoint]["--sg-spacing-x"] = getSpacing(
|
|
21466
|
+
if (typeof spacing2 === "object" && spacing2[breakpoint] !== void 0) {
|
|
21467
|
+
acc[breakpoint]["--sg-spacing-x"] = getSpacing(spacing2[breakpoint]);
|
|
21468
21468
|
}
|
|
21469
21469
|
if (typeof _verticalSpacing === "object" && _verticalSpacing[breakpoint] !== void 0) {
|
|
21470
21470
|
acc[breakpoint]["--sg-spacing-y"] = getSpacing(_verticalSpacing[breakpoint]);
|
|
@@ -21498,7 +21498,7 @@ const SimpleGrid = factory((_props, ref) => {
|
|
|
21498
21498
|
vars,
|
|
21499
21499
|
cols,
|
|
21500
21500
|
verticalSpacing,
|
|
21501
|
-
spacing,
|
|
21501
|
+
spacing: spacing2,
|
|
21502
21502
|
type,
|
|
21503
21503
|
attributes,
|
|
21504
21504
|
...others
|
|
@@ -26768,6 +26768,13 @@ const z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
26768
26768
|
},
|
|
26769
26769
|
void: voidType
|
|
26770
26770
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26771
|
+
const spacing = {
|
|
26772
|
+
xs: "0.625rem",
|
|
26773
|
+
sm: "0.75rem",
|
|
26774
|
+
md: "1rem",
|
|
26775
|
+
lg: "1.25rem",
|
|
26776
|
+
xl: "2rem"
|
|
26777
|
+
};
|
|
26771
26778
|
const colors = {
|
|
26772
26779
|
/** Primary UI color — buttons, links, active states. */
|
|
26773
26780
|
primary: "indigo",
|
|
@@ -26919,6 +26926,7 @@ const theme = createTheme({
|
|
|
26919
26926
|
},
|
|
26920
26927
|
radius: radii,
|
|
26921
26928
|
defaultRadius: "md",
|
|
26929
|
+
spacing,
|
|
26922
26930
|
breakpoints: {
|
|
26923
26931
|
xs: "30em",
|
|
26924
26932
|
sm: "48em",
|
|
@@ -31241,6 +31249,7 @@ export {
|
|
|
31241
31249
|
phoneSchema,
|
|
31242
31250
|
radii,
|
|
31243
31251
|
semanticColors,
|
|
31252
|
+
spacing,
|
|
31244
31253
|
theme,
|
|
31245
31254
|
truncateAddress,
|
|
31246
31255
|
typography,
|