@rogieking/figui3 1.0.88 → 1.0.89

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/README.md +135 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Fig.js
1
+ # FigUI3
2
2
 
3
- A lightweight, customizable web component library that provides Figma-inspired UI elements for modern web applications.
3
+ A lightweight, customizable web component library that uses Figmas UI3 style for modern web applications, but specifically for Figma plugins.
4
4
 
5
5
  ## Features
6
6
 
@@ -16,13 +16,22 @@ A lightweight, customizable web component library that provides Figma-inspired U
16
16
  The library includes the following components:
17
17
 
18
18
  - `<fig-button>` - Versatile button component with multiple variants
19
- - `<fig-slider>` - Input slider with optional text input and units
20
- - `<fig-field>` - Form field wrapper with flexible layout options
21
- - `<fig-dropdown>` - Customizable dropdown select
22
- - `<fig-tooltip>` - Hover and click-triggered tooltips
19
+ - `<fig-checkbox>` - Checkbox input with indeterminate state support
23
20
  - `<fig-dialog>` - Modal dialog component
21
+ - `<fig-dropdown>` - Customizable dropdown select
22
+ - `<fig-field>` - Form field wrapper with flexible layout options
23
+ - `<fig-header>` - Section header component
24
24
  - `<fig-input-color>` - Color picker with hex/rgba support
25
- - And more...
25
+ - `<fig-input-text>` - Text/Number input with optional prefix/suffix slots
26
+ - `<fig-slider>` - Input slider with optional text input and units
27
+ - `<fig-switch>` - Toggle switch component
28
+ - `<fig-tooltip>` - Hover and click-triggered tooltips
29
+ - `<fig-spinner>` - Loading spinner component
30
+ - `<fig-combo-input>` - Combobox input
31
+ - `<fig-chit>` - Color/Gradient/Pattern/Image/Icon/Text chit component
32
+ - `<fig-tabs>` - Tabbed navigation component
33
+ - `<fig-segmented-control>` - Segmented control component
34
+ - `<fig-image>` - Image display or input component
26
35
 
27
36
  ## Installation
28
37
 
@@ -78,16 +87,50 @@ Contributions are welcome! Please read our [contributing guidelines](CONTRIBUTIN
78
87
  <!-- Basic button -->
79
88
  <fig-button>Click me</fig-button>
80
89
 
90
+ <!-- Primary variant -->
91
+ <fig-button variant="primary">Primary Button</fig-button>
92
+
93
+ <!-- Secondary variant -->
94
+ <fig-button variant="secondary">Secondary Button</fig-button>
95
+
96
+ <!-- Ghost variant -->
97
+ <fig-button variant="ghost">Ghost Button</fig-button>
98
+
81
99
  <!-- Ghost variant with icon -->
82
100
  <fig-button variant="ghost" icon="true">
83
101
  <svg><!-- your icon svg --></svg>
84
102
  </fig-button>
85
103
 
104
+ <!-- Link variant -->
105
+ <fig-button variant="link">Link Button</fig-button>
106
+
86
107
  <!-- Disabled state -->
87
108
  <fig-button disabled>Disabled</fig-button>
88
109
 
89
110
  <!-- Toggle button -->
90
111
  <fig-button type="toggle">Toggle Me</fig-button>
112
+
113
+ <!-- Submit button -->
114
+ <fig-button type="submit">Submit</fig-button>
115
+
116
+ <!-- Select list button -->
117
+ <fig-button type="select">
118
+ Select Me
119
+ <fig-dropdown>
120
+ <option value="1">Option 1</option>
121
+ <option value="2">Option 2</option>
122
+ <option value="3">Option 3</option>
123
+ </fig-dropdown>
124
+ </fig-button>
125
+
126
+ <!-- Default button -->
127
+ <fig-button type="button">Default</fig-button>
128
+
129
+ <!-- Upload button -->
130
+ <fig-button type="upload">
131
+ Upload
132
+ <input type="file" />
133
+ </fig-button>
91
134
  ```
92
135
 
93
136
  ### Dropdown (`<fig-dropdown>`)
@@ -138,7 +181,7 @@ Contributions are welcome! Please read our [contributing guidelines](CONTRIBUTIN
138
181
  ```html
139
182
  <!-- Basic dialog -->
140
183
  <fig-dialog>
141
- <h2 slot="header">Dialog Title</h2>
184
+ <fig-header>Dialog Title</fig-header>
142
185
  <div slot="content">
143
186
  <p>Dialog content goes here.</p>
144
187
  </div>
@@ -172,15 +215,48 @@ Contributions are welcome! Please read our [contributing guidelines](CONTRIBUTIN
172
215
  ### Slider (`<fig-slider>`)
173
216
 
174
217
  ```html
175
- <!-- Basic slider -->
218
+ <!-- Basic range slider -->
176
219
  <fig-slider min="0" max="100" value="50"></fig-slider>
177
220
 
178
221
  <!-- Slider with text input and units -->
179
222
  <fig-slider min="0" max="100" value="75" text="true" units="%"> </fig-slider>
180
223
 
224
+ <!-- Hue slider -->
225
+ <fig-slider type="hue" value="55"></fig-slider>
226
+
227
+ <!-- Stepper slider with discrete snapping values-->
228
+ <fig-slider type="stepper" value="25" default="50" step="25">
229
+ <datalist id="markers">
230
+ <option value="0"></option>
231
+ <option value="25"></option>
232
+ <option value="50"></option>
233
+ <option value="75"></option>
234
+ <option value="100"></option>
235
+ </datalist>
236
+ </fig-slider>
237
+
238
+ <!-- Delta slider -->
239
+ <fig-slider type="delta" value=".25" default="0" step="0.25" min="-5" max="5">
240
+ <datalist id="markers">
241
+ <option value="0"></option>
242
+ </datalist>
243
+ </fig-slider>
244
+
181
245
  <!-- Opacity slider with color -->
182
246
  <fig-slider type="opacity" value="0.75" color="#ff0000" units="%" text="true">
183
247
  </fig-slider>
248
+
249
+ <!-- Number slider with number transform and percentage units -->
250
+ <fig-slider
251
+ min="0"
252
+ max="1"
253
+ transform="100"
254
+ units="%"
255
+ step="0.01"
256
+ text="true"
257
+ value="0.5"
258
+ >
259
+ </fig-slider>
184
260
  ```
185
261
 
186
262
  ### Text Input (`<fig-input-text>`)
@@ -251,3 +327,53 @@ Contributions are welcome! Please read our [contributing guidelines](CONTRIBUTIN
251
327
  <!-- Checked state -->
252
328
  <fig-switch checked>Active</fig-switch>
253
329
  ```
330
+
331
+ ### Spinner (`<fig-spinner>`)
332
+
333
+ ```html
334
+ <!-- Basic spinner -->
335
+ <fig-spinner></fig-spinner>
336
+ ```
337
+
338
+ ### Combo Input (`<fig-combo-input>`)
339
+
340
+ ```html
341
+ <!-- Basic combo input -->
342
+ <fig-combo-input
343
+ options="House, Apartment, Condo, Other"
344
+ placeholder="Type of residence"
345
+ ></fig-combo-input>
346
+ ```
347
+
348
+ ### Chit (`<fig-chit>`)
349
+
350
+ ```html
351
+ <!-- Basic chit -->
352
+ <fig-chit type="color" value="#ff0000"></fig-chit>
353
+ ```
354
+
355
+ ### Image (`<fig-image>`)
356
+
357
+ ```html
358
+ <!-- Basic image -->
359
+ <fig-image src="https://via.placeholder.com/150"></fig-image>
360
+ ```
361
+
362
+ ### Header (`<fig-header>`)
363
+
364
+ ```html
365
+ <!-- Basic header -->
366
+ <fig-header>
367
+ <h3>Header</h3>
368
+ </fig-header>
369
+ ```
370
+
371
+ ### fig-segmented-control (`<fig-segmented-control>`)
372
+
373
+ ```html
374
+ <!-- Basic segmented control -->
375
+ <fig-segmented-control>
376
+ <fig-segment value="1" selected="true">Option 1</fig-segment>
377
+ <fig-segment value="2">Option 2</fig-segment>
378
+ </fig-segmented-control>
379
+ ```
package/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.0.88"
3
+ "version": "1.0.89"
4
4
  }