@omnific/atelier 0.1.0 → 0.3.0

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.
Files changed (58) hide show
  1. package/README.md +10 -1
  2. package/dist/box/Box.d.ts +7 -0
  3. package/dist/box/Box.js +23 -0
  4. package/dist/box/constants.js +8 -0
  5. package/dist/box/index.d.ts +3 -0
  6. package/dist/box/index.js +2 -0
  7. package/dist/box/types.d.ts +24 -0
  8. package/dist/button/Button.js +1 -1
  9. package/dist/button/LoadingIcon.js +1 -1
  10. package/dist/main.d.ts +4 -1
  11. package/dist/main.js +2 -1
  12. package/dist/props/display.props.d.ts +10 -0
  13. package/dist/props/display.props.js +15 -0
  14. package/dist/props/flex.props.d.ts +58 -0
  15. package/dist/props/flex.props.js +72 -0
  16. package/dist/props/gap.props.d.ts +10 -0
  17. package/dist/props/gap.props.js +18 -0
  18. package/dist/props/height.props.d.ts +10 -0
  19. package/dist/props/height.props.js +27 -0
  20. package/dist/props/index.d.ts +95 -0
  21. package/dist/props/index.js +158 -0
  22. package/dist/props/justify.props.d.ts +34 -0
  23. package/dist/props/justify.props.js +43 -0
  24. package/dist/props/margin.props.d.ts +10 -0
  25. package/dist/props/margin.props.js +27 -0
  26. package/dist/props/overflow.props.d.ts +10 -0
  27. package/dist/props/overflow.props.js +13 -0
  28. package/dist/props/padding.props.d.ts +10 -0
  29. package/dist/props/padding.props.js +18 -0
  30. package/dist/props/position.props.d.ts +18 -0
  31. package/dist/props/position.props.js +38 -0
  32. package/dist/props/radius.props.d.ts +10 -0
  33. package/dist/props/radius.props.js +19 -0
  34. package/dist/props/scaling.props.d.ts +10 -0
  35. package/dist/props/shadow.props.d.ts +10 -0
  36. package/dist/props/shadow.props.js +16 -0
  37. package/dist/props/width.props.d.ts +10 -0
  38. package/dist/props/width.props.js +26 -0
  39. package/dist/styles.css +2432 -76
  40. package/dist/system/create-system.d.ts +14 -0
  41. package/dist/system/create-system.js +22 -0
  42. package/dist/system/css-vars.d.ts +17 -0
  43. package/dist/system/css-vars.js +56 -0
  44. package/dist/system/default-system.d.ts +11 -0
  45. package/dist/system/default-system.js +9 -0
  46. package/dist/system/defaults/colors.d.ts +254 -0
  47. package/dist/system/defaults/colors.js +94 -0
  48. package/dist/system/define-colors.d.ts +7 -0
  49. package/dist/system/define-colors.js +7 -0
  50. package/dist/system/index.d.ts +9 -0
  51. package/dist/system/index.js +8 -0
  52. package/dist/system/merge-colors.d.ts +10 -0
  53. package/dist/system/merge-colors.js +21 -0
  54. package/dist/system/types.d.ts +37 -0
  55. package/dist/system/use-theme.d.ts +11 -0
  56. package/dist/system/use-theme.js +20 -0
  57. package/dist/utils/extractProps.js +34 -0
  58. package/package.json +16 -7
@@ -0,0 +1,43 @@
1
+ //#region props/justify.props.ts
2
+ /**
3
+ * Atelier justify-items 的静态值。
4
+ */
5
+ const justifyItemsValues = [
6
+ "start",
7
+ "center",
8
+ "end",
9
+ "stretch"
10
+ ];
11
+ /**
12
+ * Atelier justify-content 与 place-content 的静态值。
13
+ */
14
+ const contentDistributionValues = [
15
+ "start",
16
+ "center",
17
+ "end",
18
+ "space-between",
19
+ "space-around",
20
+ "space-evenly",
21
+ "stretch"
22
+ ];
23
+ /**
24
+ * Atelier justify-self 的静态值。
25
+ */
26
+ const justifySelfValues = [
27
+ "start",
28
+ "center",
29
+ "end",
30
+ "baseline",
31
+ "stretch"
32
+ ];
33
+ /**
34
+ * Atelier place-items 的静态值。
35
+ */
36
+ const placeItemsValues = [
37
+ "start",
38
+ "center",
39
+ "end",
40
+ "stretch"
41
+ ];
42
+ //#endregion
43
+ export { contentDistributionValues, justifyItemsValues, justifySelfValues, placeItemsValues };
@@ -0,0 +1,10 @@
1
+ //#region props/margin.props.d.ts
2
+ /**
3
+ * Atelier margin 的静态刻度,包含负值。
4
+ */
5
+ export declare const marginValues: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"];
6
+ /**
7
+ * Atelier margin 值。
8
+ */
9
+ export type MarginValue = (typeof marginValues)[number];
10
+ //#endregion
@@ -0,0 +1,27 @@
1
+ //#region props/margin.props.ts
2
+ /**
3
+ * Atelier margin 的静态刻度,包含负值。
4
+ */
5
+ const marginValues = [
6
+ "0",
7
+ "1",
8
+ "2",
9
+ "3",
10
+ "4",
11
+ "5",
12
+ "6",
13
+ "7",
14
+ "8",
15
+ "9",
16
+ "-1",
17
+ "-2",
18
+ "-3",
19
+ "-4",
20
+ "-5",
21
+ "-6",
22
+ "-7",
23
+ "-8",
24
+ "-9"
25
+ ];
26
+ //#endregion
27
+ export { marginValues };
@@ -0,0 +1,10 @@
1
+ //#region props/overflow.props.d.ts
2
+ /**
3
+ * Atelier overflow 的静态值。
4
+ */
5
+ export declare const overflowValues: readonly ["visible", "hidden", "clip", "scroll", "auto"];
6
+ /**
7
+ * Atelier overflow 值。
8
+ */
9
+ export type OverflowValue = (typeof overflowValues)[number];
10
+ //#endregion
@@ -0,0 +1,13 @@
1
+ //#region props/overflow.props.ts
2
+ /**
3
+ * Atelier overflow 的静态值。
4
+ */
5
+ const overflowValues = [
6
+ "visible",
7
+ "hidden",
8
+ "clip",
9
+ "scroll",
10
+ "auto"
11
+ ];
12
+ //#endregion
13
+ export { overflowValues };
@@ -0,0 +1,10 @@
1
+ //#region props/padding.props.d.ts
2
+ /**
3
+ * Atelier padding 的静态刻度。
4
+ */
5
+ export declare const paddingValues: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
6
+ /**
7
+ * Atelier padding 值。
8
+ */
9
+ export type PaddingValue = (typeof paddingValues)[number];
10
+ //#endregion
@@ -0,0 +1,18 @@
1
+ //#region props/padding.props.ts
2
+ /**
3
+ * Atelier padding 的静态刻度。
4
+ */
5
+ const paddingValues = [
6
+ "0",
7
+ "1",
8
+ "2",
9
+ "3",
10
+ "4",
11
+ "5",
12
+ "6",
13
+ "7",
14
+ "8",
15
+ "9"
16
+ ];
17
+ //#endregion
18
+ export { paddingValues };
@@ -0,0 +1,18 @@
1
+ //#region props/position.props.d.ts
2
+ /**
3
+ * Atelier position 的静态值。
4
+ */
5
+ export declare const positionValues: readonly ["static", "relative", "absolute", "fixed", "sticky"];
6
+ /**
7
+ * Atelier position 值。
8
+ */
9
+ export type PositionValue = (typeof positionValues)[number];
10
+ /**
11
+ * Atelier inset / top / right / bottom / left 的静态刻度。
12
+ */
13
+ export declare const positionEdgeValues: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "auto", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"];
14
+ /**
15
+ * Atelier inset / top / right / bottom / left 值。
16
+ */
17
+ export type PositionEdgeValue = (typeof positionEdgeValues)[number];
18
+ //#endregion
@@ -0,0 +1,38 @@
1
+ //#region props/position.props.ts
2
+ /**
3
+ * Atelier position 的静态值。
4
+ */
5
+ const positionValues = [
6
+ "static",
7
+ "relative",
8
+ "absolute",
9
+ "fixed",
10
+ "sticky"
11
+ ];
12
+ /**
13
+ * Atelier inset / top / right / bottom / left 的静态刻度。
14
+ */
15
+ const positionEdgeValues = [
16
+ "0",
17
+ "1",
18
+ "2",
19
+ "3",
20
+ "4",
21
+ "5",
22
+ "6",
23
+ "7",
24
+ "8",
25
+ "9",
26
+ "auto",
27
+ "-1",
28
+ "-2",
29
+ "-3",
30
+ "-4",
31
+ "-5",
32
+ "-6",
33
+ "-7",
34
+ "-8",
35
+ "-9"
36
+ ];
37
+ //#endregion
38
+ export { positionEdgeValues, positionValues };
@@ -0,0 +1,10 @@
1
+ //#region props/radius.props.d.ts
2
+ /**
3
+ * Atelier radius 的静态值。
4
+ */
5
+ export declare const radiusValues: readonly ["none", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "full"];
6
+ /**
7
+ * Atelier radius 值。
8
+ */
9
+ export type RadiusValue = (typeof radiusValues)[number];
10
+ //#endregion
@@ -0,0 +1,19 @@
1
+ //#region props/radius.props.ts
2
+ /**
3
+ * Atelier radius 的静态值。
4
+ */
5
+ const radiusValues = [
6
+ "none",
7
+ "2xs",
8
+ "xs",
9
+ "sm",
10
+ "md",
11
+ "lg",
12
+ "xl",
13
+ "2xl",
14
+ "3xl",
15
+ "4xl",
16
+ "full"
17
+ ];
18
+ //#endregion
19
+ export { radiusValues };
@@ -0,0 +1,10 @@
1
+ //#region props/scaling.props.d.ts
2
+ /**
3
+ * Atelier 结构缩放的静态值。
4
+ */
5
+ export declare const scalingValues: readonly ["90%", "95%", "100%", "105%", "110%"];
6
+ /**
7
+ * Atelier 结构缩放值。
8
+ */
9
+ export type ScalingValue = (typeof scalingValues)[number];
10
+ //#endregion
@@ -0,0 +1,10 @@
1
+ //#region props/shadow.props.d.ts
2
+ /**
3
+ * Atelier shadow 的静态值。
4
+ */
5
+ export declare const shadowValues: readonly ["xs", "sm", "md", "lg", "xl", "2xl", "inner", "inset"];
6
+ /**
7
+ * Atelier shadow 值。
8
+ */
9
+ export type ShadowValue = (typeof shadowValues)[number];
10
+ //#endregion
@@ -0,0 +1,16 @@
1
+ //#region props/shadow.props.ts
2
+ /**
3
+ * Atelier shadow 的静态值。
4
+ */
5
+ const shadowValues = [
6
+ "xs",
7
+ "sm",
8
+ "md",
9
+ "lg",
10
+ "xl",
11
+ "2xl",
12
+ "inner",
13
+ "inset"
14
+ ];
15
+ //#endregion
16
+ export { shadowValues };
@@ -0,0 +1,10 @@
1
+ //#region props/width.props.d.ts
2
+ /**
3
+ * Atelier width 的静态刻度、百分比与关键字值。
4
+ */
5
+ export declare const widthValues: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "50%", "75%", "100%", "100vw", "auto", "min-content", "max-content", "fit-content"];
6
+ /**
7
+ * Atelier width 值。
8
+ */
9
+ export type WidthValue = (typeof widthValues)[number];
10
+ //#endregion
@@ -0,0 +1,26 @@
1
+ //#region props/width.props.ts
2
+ /**
3
+ * Atelier width 的静态刻度、百分比与关键字值。
4
+ */
5
+ const widthValues = [
6
+ "0",
7
+ "1",
8
+ "2",
9
+ "3",
10
+ "4",
11
+ "5",
12
+ "6",
13
+ "7",
14
+ "8",
15
+ "9",
16
+ "50%",
17
+ "75%",
18
+ "100%",
19
+ "100vw",
20
+ "auto",
21
+ "min-content",
22
+ "max-content",
23
+ "fit-content"
24
+ ];
25
+ //#endregion
26
+ export { widthValues };