nitro-web 0.0.76 → 0.0.77

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.
@@ -54,6 +54,7 @@ export function Checkbox({
54
54
  ? <>
55
55
  <input
56
56
  {...props}
57
+ id={id}
57
58
  type={type}
58
59
  style={{ width: checkboxSize, height: checkboxSize }}
59
60
  checked={value}
@@ -106,6 +107,7 @@ export function Checkbox({
106
107
  : <>
107
108
  <input
108
109
  {...props}
110
+ id={id}
109
111
  type="checkbox"
110
112
  className="sr-only peer"
111
113
  checked={value}
@@ -200,22 +200,22 @@ export function Styleguide({ className, elements, children }: StyleguideProps) {
200
200
  <div><Button size="xs" IconCenter={<FileEditIcon size={14}/>}></Button></div>
201
201
  </div>
202
202
 
203
- <h2 class="h3">Checkboxes</h2>
203
+ <h2 class="h3">Varients</h2>
204
204
  <div class="grid grid-cols-3 gap-x-6 mb-4">
205
205
  <div>
206
- <label for="input2">Label</label>
206
+ <label for="input2">Toggles</label>
207
207
  <Checkbox name="input2" type="toggle" text="Toggle sm" subtext="some additional text here." class="!mb-0"
208
208
  state={state} onChange={(e) => onChange(setState, e)} />
209
209
  <Checkbox name="input3" type="toggle" text="Toggle 22px" subtext="some additional text here." size={22} />
210
210
  </div>
211
211
  <div>
212
- <label for="input1">Label</label>
212
+ <label for="input1">Radios</label>
213
213
  <Checkbox name="input1" type="radio" text="Radio" subtext="some additional text here 1." id="input1-1" class="!mb-0"
214
214
  defaultChecked />
215
215
  <Checkbox name="input1" type="radio" text="Radio 16px" subtext="some additional text here 2." id="input1-2" size={16} />
216
216
  </div>
217
217
  <div>
218
- <label for="input0">Label</label>
218
+ <label for="input0">Checkboxes</label>
219
219
  <Checkbox name="input0" type="checkbox" text="Checkbox" subtext="some additional text here." class="!mb-0" defaultChecked />
220
220
  <Checkbox name="input0.1" type="checkbox" text="Checkbox 16px" size={16}
221
221
  subtext="some additional text here which is a bit longer that will be line-wrap to the next line." />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-web",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "repository": "github:boycce/nitro-web",
5
5
  "homepage": "https://boycce.github.io/nitro-web/",
6
6
  "description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",