@julseb-lib/react 0.0.4 → 0.0.6

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.
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { forwardRef } from "react"
4
4
  import { Link } from "react-router-dom"
5
- import { Flexbox } from "../../"
6
5
  import { StyledCard } from "./styles"
7
6
  import type { ILibCard } from "./types"
8
7
 
@@ -61,6 +60,16 @@ export const Card = forwardRef<HTMLDivElement, ILibCard>(
61
60
  to,
62
61
  blank,
63
62
  onClick,
63
+ inline,
64
+ flexDirection,
65
+ flexWrap,
66
+ justifyContent,
67
+ alignItems,
68
+ justifyItems,
69
+ alignContent,
70
+ gap,
71
+ columnGap,
72
+ rowGap,
64
73
  ...rest
65
74
  },
66
75
  ref
@@ -78,7 +87,7 @@ export const Card = forwardRef<HTMLDivElement, ILibCard>(
78
87
  ? "a"
79
88
  : onClick
80
89
  ? "button"
81
- : Flexbox
90
+ : "div"
82
91
  }
83
92
  to={to}
84
93
  href={href}
@@ -105,6 +114,16 @@ export const Card = forwardRef<HTMLDivElement, ILibCard>(
105
114
  }
106
115
  }
107
116
  $textAlign={textAlign}
117
+ $inline={inline}
118
+ $flexDirection={flexDirection}
119
+ $flexWrap={flexWrap}
120
+ $justifyContent={justifyContent}
121
+ $alignItems={alignItems}
122
+ $justifyItems={justifyItems}
123
+ $alignContent={alignContent}
124
+ $gap={gap}
125
+ $columnGap={columnGap}
126
+ $rowGap={rowGap}
108
127
  {...rest}
109
128
  >
110
129
  {children}
@@ -3,7 +3,7 @@
3
3
  import styled from "styled-components"
4
4
  import type { Property } from "csstype"
5
5
  import { stringifyPx } from "ts-utils-julseb"
6
- import { setDefaultTheme, Flexbox, Mixins } from "../../"
6
+ import { setDefaultTheme, Mixins } from "../../"
7
7
  import type {
8
8
  CssCursor,
9
9
  LibAllColors,
@@ -12,9 +12,16 @@ import type {
12
12
  ILibPadding,
13
13
  ILibRadius,
14
14
  CssTextAlign,
15
+ CssAlignContent,
16
+ CssAlignItems,
17
+ CssFlexDirection,
18
+ CssFlexWrap,
19
+ CssJustifyContent,
20
+ CssJustifyItems,
21
+ LibSpacers,
15
22
  } from "../../types"
16
23
 
17
- const StyledCard = styled(Flexbox)<{
24
+ const StyledCard = styled.div<{
18
25
  $border?: ILibBorder
19
26
  $borderRadius?: ILibRadius
20
27
  $padding?: ILibPadding
@@ -33,7 +40,18 @@ const StyledCard = styled(Flexbox)<{
33
40
  $size?: Property.BackgroundSize
34
41
  }
35
42
  $textAlign?: CssTextAlign
43
+ $inline?: boolean
44
+ $flexDirection?: CssFlexDirection
45
+ $flexWrap?: CssFlexWrap
46
+ $justifyContent?: CssJustifyContent
47
+ $alignItems?: CssAlignItems
48
+ $justifyItems?: CssJustifyItems
49
+ $alignContent?: CssAlignContent
50
+ $gap?: LibSpacers
51
+ $columnGap?: LibSpacers
52
+ $rowGap?: LibSpacers
36
53
  }>`
54
+ ${Mixins.Flexbox};
37
55
  text-decoration: none;
38
56
  overflow: hidden;
39
57
  position: relative;
@@ -50,7 +50,7 @@ export function InputValidationHelper({
50
50
  iconBaseUrl,
51
51
  } = validation
52
52
 
53
- if (!message || !validation) return null
53
+ if (!message || !validation || status === undefined) return null
54
54
 
55
55
  return (
56
56
  <HelperBottomContainer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@julseb-lib/react",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "scripts": {