free-astro-components 0.0.13 → 0.0.14

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A collection of free Astro components",
4
4
  "author": "Denis Ventura",
5
5
  "type": "module",
6
- "version": "0.0.13",
6
+ "version": "0.0.14",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": {
@@ -1,4 +1,6 @@
1
1
  ---
2
+ import '../css/main.css'
3
+
2
4
  interface Props {
3
5
  label?: string
4
6
  error?: boolean
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import '../css/main.css'
2
3
  import Icon from './Icon.astro'
3
4
 
4
5
  interface Props {
@@ -45,7 +46,7 @@ const inputClasses = ['ac-input', statusClasses].filter(Boolean).join(' ')
45
46
  {...props}
46
47
  />
47
48
  {
48
- icon && !props.type === 'password' && (
49
+ icon && props.type !== 'password' && (
49
50
  <Icon icon={icon} class="ac-input-icon ac-input-icon--right" />
50
51
  )
51
52
  }
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import '../css/main.css'
2
3
  interface Props {
3
4
  label?: string
4
5
  error?: boolean
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import '../css/main.css'
2
3
  interface Props {
3
4
  label?: string
4
5
  class?: string
@@ -73,6 +73,12 @@ import Input from '../components/Input.astro'
73
73
  placeholder="Escribe tu contraseña"
74
74
  helperText="Helper text"
75
75
  />
76
+ <Input
77
+ icon="star"
78
+ label="Input label"
79
+ placeholder="Input with icon"
80
+ helperText="Helper text"
81
+ />
76
82
  </div>
77
83
  </div>
78
84
  </main>