@pathscale/ui 1.4.0 → 1.5.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.
@@ -12,6 +12,8 @@ export type FlexProps = IComponentBaseProps & Omit<JSX.HTMLAttributes<HTMLElemen
12
12
  gap?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
13
13
  gapX?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
14
14
  gapY?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
15
+ paddingInline?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
16
+ paddingBlock?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
15
17
  grow?: ResponsiveProp<boolean>;
16
18
  shrink?: ResponsiveProp<boolean>;
17
19
  basis?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
@@ -19,13 +19,15 @@ const __solidLayoutFlex = (_stable, p)=>{
19
19
  "gap",
20
20
  "gapX",
21
21
  "gapY",
22
+ "paddingInline",
23
+ "paddingBlock",
22
24
  "grow",
23
25
  "shrink",
24
26
  "basis"
25
27
  ]);
26
28
  const tag = createMemo(()=>local.as || "div");
27
29
  const resolvedChildren = children(()=>local.children);
28
- const classes = createMemo(()=>twMerge(clsx(CLASSES.base, mapResponsiveProp(local.direction, CLASSES.direction), mapResponsiveProp(local.justify, CLASSES.justify), mapResponsiveProp(local.align, CLASSES.align), mapResponsiveProp(local.wrap, CLASSES.wrap), mapResponsiveProp(local.gap, CLASSES.gap), mapResponsiveProp(local.gapX, CLASSES.gapX), mapResponsiveProp(local.gapY, CLASSES.gapY), mapResponsiveProp(local.grow, CLASSES.grow), mapResponsiveProp(local.shrink, CLASSES.shrink), mapResponsiveProp(local.basis, CLASSES.basis), local.class, local.className)));
30
+ const classes = createMemo(()=>twMerge(clsx(CLASSES.base, mapResponsiveProp(local.direction, CLASSES.direction), mapResponsiveProp(local.justify, CLASSES.justify), mapResponsiveProp(local.align, CLASSES.align), mapResponsiveProp(local.wrap, CLASSES.wrap), mapResponsiveProp(local.gap, CLASSES.gap), mapResponsiveProp(local.gapX, CLASSES.gapX), mapResponsiveProp(local.gapY, CLASSES.gapY), mapResponsiveProp(local.paddingInline, CLASSES.paddingInline), mapResponsiveProp(local.paddingBlock, CLASSES.paddingBlock), mapResponsiveProp(local.grow, CLASSES.grow), mapResponsiveProp(local.shrink, CLASSES.shrink), mapResponsiveProp(local.basis, CLASSES.basis), local.class, local.className)));
29
31
  return createComponent(Dynamic, mergeProps({
30
32
  get component () {
31
33
  return tag();
@@ -47,6 +47,20 @@ export declare const CLASSES: {
47
47
  readonly lg: "gap-y-6";
48
48
  readonly xl: "gap-y-8";
49
49
  };
50
+ readonly paddingInline: {
51
+ readonly none: "px-0";
52
+ readonly sm: "px-2";
53
+ readonly md: "px-4";
54
+ readonly lg: "px-6";
55
+ readonly xl: "px-8";
56
+ };
57
+ readonly paddingBlock: {
58
+ readonly none: "py-0";
59
+ readonly sm: "py-2";
60
+ readonly md: "py-4";
61
+ readonly lg: "py-6";
62
+ readonly xl: "py-8";
63
+ };
50
64
  readonly grow: {
51
65
  readonly true: "flex-grow";
52
66
  readonly false: "flex-grow-0";
@@ -48,6 +48,20 @@ const CLASSES = {
48
48
  lg: "gap-y-6",
49
49
  xl: "gap-y-8"
50
50
  },
51
+ paddingInline: {
52
+ none: "px-0",
53
+ sm: "px-2",
54
+ md: "px-4",
55
+ lg: "px-6",
56
+ xl: "px-8"
57
+ },
58
+ paddingBlock: {
59
+ none: "py-0",
60
+ sm: "py-2",
61
+ md: "py-4",
62
+ lg: "py-6",
63
+ xl: "py-8"
64
+ },
51
65
  grow: {
52
66
  true: "flex-grow",
53
67
  false: "flex-grow-0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "solid-layouts-library-v2",
3
3
  "package": "@pathscale/ui",
4
- "version": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "components": {
6
6
  "Accordion": {
7
7
  "kind": "embedded"
@@ -8912,6 +8912,20 @@
8912
8912
  "lg": [],
8913
8913
  "xl": []
8914
8914
  },
8915
+ "paddingInline": {
8916
+ "none": [],
8917
+ "sm": [],
8918
+ "md": [],
8919
+ "lg": [],
8920
+ "xl": []
8921
+ },
8922
+ "paddingBlock": {
8923
+ "none": [],
8924
+ "sm": [],
8925
+ "md": [],
8926
+ "lg": [],
8927
+ "xl": []
8928
+ },
8915
8929
  "grow": {
8916
8930
  "true": [],
8917
8931
  "false": []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",