react-minolith 1.2.1 → 1.2.2
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/assets/Column.css +1 -1
- package/dist/layouts/Column/Column.js +980 -980
- package/dist/layouts/Columns/Columns.js +1027 -1027
- package/dist/layouts/Columns/Columns.stories.d.ts.map +1 -1
- package/dist/models/BackProps.d.ts +5 -0
- package/dist/models/BackProps.d.ts.map +1 -0
- package/dist/models/BackProps.js +2 -0
- package/dist/models/BackProps.js.map +1 -0
- package/dist/models/BaseComponentProps.d.ts +14 -64
- package/dist/models/BaseComponentProps.d.ts.map +1 -1
- package/dist/models/BorderProps.d.ts +13 -0
- package/dist/models/BorderProps.d.ts.map +1 -0
- package/dist/models/BorderProps.js +2 -0
- package/dist/models/BorderProps.js.map +1 -0
- package/dist/models/ForeProps.d.ts +10 -0
- package/dist/models/ForeProps.d.ts.map +1 -0
- package/dist/models/ForeProps.js +2 -0
- package/dist/models/ForeProps.js.map +1 -0
- package/dist/models/HighlighterProps.d.ts +5 -0
- package/dist/models/HighlighterProps.d.ts.map +1 -0
- package/dist/models/HighlighterProps.js +2 -0
- package/dist/models/HighlighterProps.js.map +1 -0
- package/dist/models/PositioningProps.d.ts +13 -0
- package/dist/models/PositioningProps.d.ts.map +1 -0
- package/dist/models/PositioningProps.js +2 -0
- package/dist/models/PositioningProps.js.map +1 -0
- package/dist/models/SizingProps.d.ts +11 -0
- package/dist/models/SizingProps.d.ts.map +1 -0
- package/dist/models/SizingProps.js +2 -0
- package/dist/models/SizingProps.js.map +1 -0
- package/dist/models/SpacingProps.d.ts +19 -0
- package/dist/models/SpacingProps.d.ts.map +1 -0
- package/dist/models/SpacingProps.js +2 -0
- package/dist/models/SpacingProps.js.map +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Columns.stories.d.ts","sourceRoot":"","sources":["../../../src/layouts/Columns/Columns.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Columns.stories.d.ts","sourceRoot":"","sources":["../../../src/layouts/Columns/Columns.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAM5D,OAAO,OAAO,MAAM,WAAW,CAAC;AAGhC,QAAA,MAAM,IAAI;;;;;CAKsB,CAAC;AAEjC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAsBnC,eAAO,MAAM,OAAO,EAAE,KAsErB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAgJvB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAkJxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAiJxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAoJpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAoJpC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAsEzB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KA8C5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackProps.d.ts","sourceRoot":"","sources":["../../src/models/BackProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,CAAC,OAAO,WAAW,SAAS;IAChC,KAAK,CAAC,EAAE,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackProps.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,69 +1,19 @@
|
|
|
1
1
|
import { Interpolation, Theme } from '@emotion/react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { default as BackProps } from './BackProps';
|
|
3
|
+
import { default as BorderProps } from './BorderProps';
|
|
4
|
+
import { default as ForeProps } from './ForeProps';
|
|
5
|
+
import { default as HighlighterProps } from './HighlighterProps';
|
|
6
|
+
import { default as PositioningProps } from './PositioningProps';
|
|
7
|
+
import { default as SizingProps } from './SizingProps';
|
|
8
|
+
import { default as SpacingProps } from './SpacingProps';
|
|
4
9
|
export default interface BaseComponentProps {
|
|
5
|
-
fore?:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
back?: {
|
|
13
|
-
color?: ColorProps<ColorName | "rainbow">;
|
|
14
|
-
};
|
|
15
|
-
highlighter?: {
|
|
16
|
-
color?: ColorProps;
|
|
17
|
-
};
|
|
18
|
-
border?: {
|
|
19
|
-
color?: ColorProps;
|
|
20
|
-
collapse?: BorderCollapse;
|
|
21
|
-
radius?: BorderRadius;
|
|
22
|
-
style: BorderStyle;
|
|
23
|
-
width?: BorderWidth;
|
|
24
|
-
top?: BorderDetailProps;
|
|
25
|
-
bottom?: BorderDetailProps;
|
|
26
|
-
left?: BorderDetailProps;
|
|
27
|
-
right?: BorderDetailProps;
|
|
28
|
-
};
|
|
29
|
-
positioning?: {
|
|
30
|
-
display?: Property.Display;
|
|
31
|
-
position?: Property.Position;
|
|
32
|
-
top?: Property.Top;
|
|
33
|
-
right?: Property.Right;
|
|
34
|
-
bottom?: Property.Bottom;
|
|
35
|
-
left?: Property.Left;
|
|
36
|
-
translateMiddle?: boolean;
|
|
37
|
-
translateMiddleX?: boolean;
|
|
38
|
-
translateMiddleY?: boolean;
|
|
39
|
-
};
|
|
40
|
-
sizing?: {
|
|
41
|
-
width?: Property.Width;
|
|
42
|
-
minWidth?: Property.MinHeight;
|
|
43
|
-
maxWidth?: Property.MaxWidth;
|
|
44
|
-
height?: Property.Height;
|
|
45
|
-
minHeight?: Property.MinHeight;
|
|
46
|
-
maxHeight?: Property.MaxHeight;
|
|
47
|
-
aspectRatio?: "square" | "paper-landscape" | "paper-portlait" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "5:8" | "8:5" | "9:16" | "16:9";
|
|
48
|
-
};
|
|
49
|
-
spacing?: {
|
|
50
|
-
margin?: {
|
|
51
|
-
x?: number | string;
|
|
52
|
-
y?: number | string;
|
|
53
|
-
top?: number | string;
|
|
54
|
-
left?: number | string;
|
|
55
|
-
bottom?: number | string;
|
|
56
|
-
right?: number | string;
|
|
57
|
-
} | number | string;
|
|
58
|
-
padding?: {
|
|
59
|
-
x?: number | string;
|
|
60
|
-
y?: number | string;
|
|
61
|
-
top?: number | string;
|
|
62
|
-
left?: number | string;
|
|
63
|
-
bottom?: number | string;
|
|
64
|
-
right?: number | string;
|
|
65
|
-
} | number | string;
|
|
66
|
-
};
|
|
10
|
+
fore?: ForeProps;
|
|
11
|
+
back?: BackProps;
|
|
12
|
+
highlighter?: HighlighterProps;
|
|
13
|
+
border?: BorderProps;
|
|
14
|
+
positioning?: PositioningProps;
|
|
15
|
+
sizing?: SizingProps;
|
|
16
|
+
spacing?: SpacingProps;
|
|
67
17
|
css?: Interpolation<Theme>;
|
|
68
18
|
}
|
|
69
19
|
//# sourceMappingURL=BaseComponentProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseComponentProps.d.ts","sourceRoot":"","sources":["../../src/models/BaseComponentProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,
|
|
1
|
+
{"version":3,"file":"BaseComponentProps.d.ts","sourceRoot":"","sources":["../../src/models/BaseComponentProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,OAAO,WAAW,kBAAkB;IACzC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,GAAG,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;CAC5B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BorderCollapse, BorderDetailProps, BorderRadius, BorderStyle, BorderWidth, ColorProps } from '../types';
|
|
2
|
+
export default interface BorderProps {
|
|
3
|
+
color?: ColorProps;
|
|
4
|
+
collapse?: BorderCollapse;
|
|
5
|
+
radius?: BorderRadius;
|
|
6
|
+
style: BorderStyle;
|
|
7
|
+
width?: BorderWidth;
|
|
8
|
+
top?: BorderDetailProps;
|
|
9
|
+
bottom?: BorderDetailProps;
|
|
10
|
+
left?: BorderDetailProps;
|
|
11
|
+
right?: BorderDetailProps;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=BorderProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BorderProps.d.ts","sourceRoot":"","sources":["../../src/models/BorderProps.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACX,MAAM,UAAU,CAAC;AAElB,MAAM,CAAC,OAAO,WAAW,WAAW;IAClC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,GAAG,CAAC,EAAE,iBAAiB,CAAC;IACxB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BorderProps.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { ColorProps, ColorName, FontSize, FontWeight } from '../types';
|
|
3
|
+
export default interface ForeProps {
|
|
4
|
+
color?: ColorProps<ColorName | "rainbow">;
|
|
5
|
+
fontSize?: FontSize;
|
|
6
|
+
fontStyle?: Property.FontStyle;
|
|
7
|
+
fontWeight?: FontWeight;
|
|
8
|
+
textTransform?: Property.TextTransform;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ForeProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForeProps.d.ts","sourceRoot":"","sources":["../../src/models/ForeProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEvE,MAAM,CAAC,OAAO,WAAW,SAAS;IAChC,KAAK,CAAC,EAAE,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IAC1C,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForeProps.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlighterProps.d.ts","sourceRoot":"","sources":["../../src/models/HighlighterProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,CAAC,OAAO,WAAW,gBAAgB;IACvC,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlighterProps.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
export default interface PositioningProps {
|
|
3
|
+
display?: Property.Display;
|
|
4
|
+
position?: Property.Position;
|
|
5
|
+
top?: Property.Top;
|
|
6
|
+
right?: Property.Right;
|
|
7
|
+
bottom?: Property.Bottom;
|
|
8
|
+
left?: Property.Left;
|
|
9
|
+
translateMiddle?: boolean;
|
|
10
|
+
translateMiddleX?: boolean;
|
|
11
|
+
translateMiddleY?: boolean;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=PositioningProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PositioningProps.d.ts","sourceRoot":"","sources":["../../src/models/PositioningProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,CAAC,OAAO,WAAW,gBAAgB;IACrC,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,GAAG,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC;IACnB,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;IACvB,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PositioningProps.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
export default interface SizingProps {
|
|
3
|
+
width?: Property.Width;
|
|
4
|
+
minWidth?: Property.MinHeight;
|
|
5
|
+
maxWidth?: Property.MaxWidth;
|
|
6
|
+
height?: Property.Height;
|
|
7
|
+
minHeight?: Property.MinHeight;
|
|
8
|
+
maxHeight?: Property.MaxHeight;
|
|
9
|
+
aspectRatio?: "square" | "paper-landscape" | "paper-portlait" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "5:8" | "8:5" | "9:16" | "16:9";
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=SizingProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SizingProps.d.ts","sourceRoot":"","sources":["../../src/models/SizingProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,CAAC,OAAO,WAAW,WAAW;IAClC,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;IACvB,QAAQ,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,WAAW,CAAC,EACR,QAAQ,GACR,iBAAiB,GACjB,gBAAgB,GAChB,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,CAAC;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SizingProps.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default interface SpacingProps {
|
|
2
|
+
margin?: {
|
|
3
|
+
x?: number | string;
|
|
4
|
+
y?: number | string;
|
|
5
|
+
top?: number | string;
|
|
6
|
+
left?: number | string;
|
|
7
|
+
bottom?: number | string;
|
|
8
|
+
right?: number | string;
|
|
9
|
+
} | number | string;
|
|
10
|
+
padding?: {
|
|
11
|
+
x?: number | string;
|
|
12
|
+
y?: number | string;
|
|
13
|
+
top?: number | string;
|
|
14
|
+
left?: number | string;
|
|
15
|
+
bottom?: number | string;
|
|
16
|
+
right?: number | string;
|
|
17
|
+
} | number | string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=SpacingProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpacingProps.d.ts","sourceRoot":"","sources":["../../src/models/SpacingProps.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,YAAY;IACnC,MAAM,CAAC,EACH;QACE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACpB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACpB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACzB,GACD,MAAM,GACN,MAAM,CAAC;IACX,OAAO,CAAC,EACJ;QACE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACpB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACpB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACzB,GACD,MAAM,GACN,MAAM,CAAC;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpacingProps.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-minolith",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "react-minolith is an open-source react wrapper for minolith.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/react-minolith.js",
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
374
374
|
"eslint-plugin-storybook": "^10.2.0",
|
|
375
375
|
"glob": "^13.0.0",
|
|
376
|
-
"minolith": "^0.1.
|
|
376
|
+
"minolith": "^0.1.3",
|
|
377
377
|
"react": "^19.2.3",
|
|
378
378
|
"react-dom": "^19.2.3",
|
|
379
379
|
"rimraf": "^6.1.2",
|