signal-layers 0.0.5 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Spinner.jsx +23 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signal-layers",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "A minimalist, framework-agnostic component library where components respond to signals of intention, not rigid variants or configuration APIs",
5
5
  "type": "module",
6
6
  "main": "./index.js",
package/src/Spinner.jsx CHANGED
@@ -64,12 +64,12 @@ export function Spinner(contract = {}) {
64
64
  * ──────────────────────────────────────────────────────────────────────────── */
65
65
  (() =>
66
66
  (
67
- layout("inline-flex items-center justify-center"),
68
- color("border-black/20 border-t-black"),
69
- border("border-2 rounded-full"),
70
- animation("animate-spin"),
71
- visibility("opacity-100"),
72
- size("w-6 h-6")
67
+ spinner.layout("inline-flex items-center justify-center"),
68
+ spinner.color("border-black/20 border-t-black"),
69
+ spinner.border("border-2 rounded-full"),
70
+ spinner.animation("animate-spin"),
71
+ spinner.visibility("opacity-100"),
72
+ spinner.size("w-6 h-6")
73
73
  )
74
74
  )(),
75
75
  /* ────────────────────────────────────────────────────────────────────────────
@@ -77,11 +77,11 @@ export function Spinner(contract = {}) {
77
77
  * ──────────────────────────────────────────────────────────────────────────── */
78
78
  (() =>
79
79
  (
80
- inputSignal.xs && size("w-3 h-3 border"),
81
- inputSignal.sm && size("w-4 h-4 border-2"),
82
- inputSignal.md && size("w-6 h-6 border-2"),
83
- inputSignal.lg && size("w-8 h-8 border-4"),
84
- inputSignal.xl && size("w-12 h-12 border-4")
80
+ inputSignal.xs && spinner.size("w-3 h-3 border"),
81
+ inputSignal.sm && spinner.size("w-4 h-4 border-2"),
82
+ inputSignal.md && spinner.size("w-6 h-6 border-2"),
83
+ inputSignal.lg && spinner.size("w-8 h-8 border-4"),
84
+ inputSignal.xl && spinner.size("w-12 h-12 border-4")
85
85
  )
86
86
  )(),
87
87
  /* ────────────────────────────────────────────────────────────────────────────
@@ -90,9 +90,9 @@ export function Spinner(contract = {}) {
90
90
  (() =>
91
91
  (
92
92
 
93
- inputSignal.light && color("border-white/30 border-t-white"),
94
- inputSignal.primary && color("border-blue-600/30 border-t-blue-500"),
95
- inputSignal.danger && color("border-red-600/30 border-t-red-500")
93
+ inputSignal.light && spinner.color("border-white/30 border-t-white"),
94
+ inputSignal.primary && spinner.color("border-blue-600/30 border-t-blue-500"),
95
+ inputSignal.danger && spinner.color("border-red-600/30 border-t-red-500")
96
96
  )
97
97
  )(),
98
98
  /* ────────────────────────────────────────────────────────────────────────────
@@ -101,8 +101,8 @@ export function Spinner(contract = {}) {
101
101
  (() =>
102
102
  (
103
103
 
104
- inputSignal.thin && border("border rounded-full"),
105
- inputSignal.thick && border("border-4 rounded-full")
104
+ inputSignal.thin && spinner.border("border rounded-full"),
105
+ inputSignal.thick && spinner.border("border-4 rounded-full")
106
106
  )
107
107
  )(),
108
108
  /* ────────────────────────────────────────────────────────────────────────────
@@ -111,9 +111,9 @@ export function Spinner(contract = {}) {
111
111
  (() =>
112
112
  (
113
113
 
114
- inputSignal.spinSlow && animation("animate-spin [animation-duration:1.5s]"),
115
- inputSignal.spinFast && animation("animate-spin [animation-duration:.6s]"),
116
- inputSignal.pause && animation("animate-spin [animation-play-state:paused]")
114
+ inputSignal.spinSlow && spinner.animation("animate-spin [animation-duration:1.5s]"),
115
+ inputSignal.spinFast && spinner.animation("animate-spin [animation-duration:.6s]"),
116
+ inputSignal.pause && spinner.animation("animate-spin [animation-play-state:paused]")
117
117
  )
118
118
  )(),
119
119
  /* ────────────────────────────────────────────────────────────────────────────
@@ -121,9 +121,9 @@ export function Spinner(contract = {}) {
121
121
  * ──────────────────────────────────────────────────────────────────────────── */
122
122
  (() =>
123
123
  (
124
- inputSignal.inline && layout("inline-flex"),
125
- inputSignal.block && layout("block mx-auto"),
126
- inputSignal.centered && layout("flex mx-auto")
124
+ inputSignal.inline && spinner.layout("inline-flex"),
125
+ inputSignal.block && spinner.layout("block mx-auto"),
126
+ inputSignal.centered && spinner.layout("flex mx-auto")
127
127
  )
128
128
  )(),
129
129
  /* ────────────────────────────────────────────────────────────────────────────
@@ -131,7 +131,7 @@ export function Spinner(contract = {}) {
131
131
  * ──────────────────────────────────────────────────────────────────────────── */
132
132
  (() =>
133
133
  (
134
- inputSignal.transparent && visibility("opacity-25")
134
+ inputSignal.transparent && spinner.visibility("opacity-25")
135
135
  )
136
136
  )(),
137
137
  /* ────────────────────────────────────────────────────────────────────────────