@pathscale/ui 2.0.0 → 2.1.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.
@@ -14,6 +14,10 @@ export type FlexProps = IComponentBaseProps & Omit<JSX.HTMLAttributes<HTMLElemen
14
14
  gapY?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
15
15
  paddingInline?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
16
16
  paddingBlock?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
17
+ width?: ResponsiveProp<"full">;
18
+ height?: ResponsiveProp<"full">;
19
+ minWidth?: ResponsiveProp<"zero">;
20
+ minHeight?: ResponsiveProp<"zero">;
17
21
  grow?: ResponsiveProp<boolean>;
18
22
  shrink?: ResponsiveProp<boolean>;
19
23
  basis?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
@@ -21,13 +21,17 @@ const __solidLayoutFlex = (_stable, p)=>{
21
21
  "gapY",
22
22
  "paddingInline",
23
23
  "paddingBlock",
24
+ "width",
25
+ "height",
26
+ "minWidth",
27
+ "minHeight",
24
28
  "grow",
25
29
  "shrink",
26
30
  "basis"
27
31
  ]);
28
32
  const tag = createMemo(()=>local.as || "div");
29
33
  const resolvedChildren = children(()=>local.children);
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)));
34
+ 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.width, CLASSES.width), mapResponsiveProp(local.height, CLASSES.height), mapResponsiveProp(local.minWidth, CLASSES.minWidth), mapResponsiveProp(local.minHeight, CLASSES.minHeight), mapResponsiveProp(local.grow, CLASSES.grow), mapResponsiveProp(local.shrink, CLASSES.shrink), mapResponsiveProp(local.basis, CLASSES.basis), local.class, local.className)));
31
35
  return createComponent(Dynamic, mergeProps({
32
36
  get component () {
33
37
  return tag();
@@ -61,6 +61,18 @@ export declare const CLASSES: {
61
61
  readonly lg: "py-6";
62
62
  readonly xl: "py-8";
63
63
  };
64
+ readonly width: {
65
+ readonly full: "w-full";
66
+ };
67
+ readonly height: {
68
+ readonly full: "h-full";
69
+ };
70
+ readonly minWidth: {
71
+ readonly zero: "min-w-0";
72
+ };
73
+ readonly minHeight: {
74
+ readonly zero: "min-h-0";
75
+ };
64
76
  readonly grow: {
65
77
  readonly true: "flex-grow";
66
78
  readonly false: "flex-grow-0";
@@ -62,6 +62,18 @@ const CLASSES = {
62
62
  lg: "py-6",
63
63
  xl: "py-8"
64
64
  },
65
+ width: {
66
+ full: "w-full"
67
+ },
68
+ height: {
69
+ full: "h-full"
70
+ },
71
+ minWidth: {
72
+ zero: "min-w-0"
73
+ },
74
+ minHeight: {
75
+ zero: "min-h-0"
76
+ },
65
77
  grow: {
66
78
  true: "flex-grow",
67
79
  false: "flex-grow-0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "solid-layouts-library-v2",
3
3
  "package": "@pathscale/ui",
4
- "version": "2.0.0",
4
+ "version": "2.1.0",
5
5
  "components": {
6
6
  "Accordion": {
7
7
  "kind": "embedded"
@@ -8926,6 +8926,18 @@
8926
8926
  "lg": [],
8927
8927
  "xl": []
8928
8928
  },
8929
+ "width": {
8930
+ "full": []
8931
+ },
8932
+ "height": {
8933
+ "full": []
8934
+ },
8935
+ "minWidth": {
8936
+ "zero": []
8937
+ },
8938
+ "minHeight": {
8939
+ "zero": []
8940
+ },
8929
8941
  "grow": {
8930
8942
  "true": [],
8931
8943
  "false": []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",