@fewangsit/wangsvue-gsts 2.0.0-alpha.24 → 2.0.0-alpha.28
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/badge/Badge.fm.md +32 -0
- package/breadcrumb/Breadcrumb.fm.md +23 -0
- package/button/Button.fm.md +53 -0
- package/buttonbulkaction/ButtonBulkAction-MenuItem.fm.md +18 -0
- package/buttonbulkaction/ButtonBulkAction.fm.md +25 -0
- package/buttondownload/ButtonDownload.fm.md +22 -0
- package/buttonfilter/ButtonFilter.fm.md +19 -0
- package/buttonsearch/ButtonSearch.fm.md +19 -0
- package/buttonsearchbyscan/ButtonSearchByScan.fm.md +25 -0
- package/buttonselecttree/ButtonSelectTree.fm.md +40 -0
- package/calendar/Calendar.fm.md +34 -0
- package/changelogpage/index.d.ts +1 -1
- package/components.fm.md +56 -0
- package/datatable/DataTable-MenuItem.fm.md +22 -0
- package/datatable/DataTable-TableColumn.fm.md +52 -0
- package/datatable/DataTable.fm.md +40 -0
- package/datatable/index.d.ts +1 -0
- package/dialogconfirm/DialogConfirm.fm.md +29 -0
- package/dialogform/DialogForm.fm.md +57 -0
- package/dialogselecttree/DialogSelectTree.fm.md +42 -0
- package/dropdown/Dropdown.fm.md +34 -0
- package/fileupload/FileUpload.fm.md +31 -0
- package/icon/index.d.ts +63 -66
- package/imagecompressor/ImageCompressor.fm.md +44 -0
- package/inputbadge/InputBadge.fm.md +34 -0
- package/inputnumber/InputNumber.fm.md +39 -0
- package/inputpassword/InputPassword.fm.md +28 -0
- package/inputphonenumber/InputPhoneNumber.fm.md +34 -0
- package/inputrangenumber/InputRangeNumber.fm.md +31 -0
- package/inputtext/InputText.fm.md +34 -0
- package/mcp/main.js +1216 -1092
- package/mcp/package.json +6 -6
- package/multiselect/MultiSelect.fm.md +34 -0
- package/package.json +1 -1
- package/stats.html +1 -1
- package/tabmenu/TabMenu.fm.md +28 -0
- package/textarea/TextArea.fm.md +34 -0
- package/wangsvue-gsts.es.js +2952 -2945
- package/wangsvue-gsts.es.js.map +1 -1
- package/wangsvue-gsts.system.js +54 -54
- package/wangsvue-gsts.system.js.map +1 -1
- package/mcp/components.json +0 -4776
- package/mcp/components.summary.txt +0 -27
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Dropdown
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `Dropdown` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "Dropdown" or similar, consisting of a select input field optionally paired with a label, required asterisk, info icon, and a dropdown arrow icon.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `label` (string)
|
|
19
|
+
The text of the label displayed above the dropdown.
|
|
20
|
+
|
|
21
|
+
- `placeholder` (string | undefined)
|
|
22
|
+
The placeholder text inside the dropdown (e.g. "Select"). When a value is selected, the placeholder is replaced with the selected option text. Omit if no placeholder text is visible.
|
|
23
|
+
|
|
24
|
+
- `mandatory` (boolean | undefined)
|
|
25
|
+
Whether a red asterisk `*` is present next to the label, indicating the field is required. Omit if absent.
|
|
26
|
+
|
|
27
|
+
- `fieldInfo` (string | undefined)
|
|
28
|
+
Whether an info icon (`information-line`) is present next to the label. Omit if absent.
|
|
29
|
+
|
|
30
|
+
- `invalid` (boolean | undefined)
|
|
31
|
+
Whether the dropdown shows an error state (red border, red caption text). Omit if the field is not in error state.
|
|
32
|
+
|
|
33
|
+
- `disabled` (boolean | undefined)
|
|
34
|
+
Whether the dropdown shows a disabled state (gray background, gray text). Omit if the field is not disabled.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# FileUpload
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `FileUpload` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "File Upload" or similar, consisting of a file selector input with a "Browse" button addon on the left, a selected file name or placeholder text, and an optional file requirement note below, optionally paired with a label, required asterisk, and info icon.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `label` (string)
|
|
19
|
+
The text of the label displayed above the file upload input.
|
|
20
|
+
|
|
21
|
+
- `placeholder` (string | undefined)
|
|
22
|
+
The placeholder text in the file name field (e.g. "Select File"). When a file is selected, the placeholder is replaced with the file name (e.g. "document.pdf"). Omit if no placeholder text is visible.
|
|
23
|
+
|
|
24
|
+
- `fileRequirements` (string | undefined)
|
|
25
|
+
The requirement note displayed below the input (e.g. "Max. file 1 MB"). Omit if no requirement text is visible.
|
|
26
|
+
|
|
27
|
+
- `mandatory` (boolean | undefined)
|
|
28
|
+
Whether a red asterisk `*` is present next to the label, indicating the field is required. Omit if absent.
|
|
29
|
+
|
|
30
|
+
- `invalid` (boolean | undefined)
|
|
31
|
+
Whether the file upload shows an error state (red border, red caption text). Omit if the field is not in error state.
|
package/icon/index.d.ts
CHANGED
|
@@ -14,11 +14,11 @@ export type WangsIconseverities =
|
|
|
14
14
|
export type WangsIcons =
|
|
15
15
|
| 'admin-line'
|
|
16
16
|
| 'arrow-down-fill'
|
|
17
|
-
| 'arrow-go-back'
|
|
18
|
-
| 'arrow-left-right'
|
|
19
|
-
| 'arrow-right'
|
|
17
|
+
| 'arrow-go-back-line'
|
|
18
|
+
| 'arrow-left-right-line'
|
|
19
|
+
| 'arrow-right-line'
|
|
20
20
|
| 'arrow-right-circle-line'
|
|
21
|
-
| 'arrow-right-double'
|
|
21
|
+
| 'arrow-right-double-line'
|
|
22
22
|
| 'arrow-right-fill'
|
|
23
23
|
| 'apps-2-line'
|
|
24
24
|
| 'asset-view'
|
|
@@ -27,100 +27,98 @@ export type WangsIcons =
|
|
|
27
27
|
| 'attachment-2'
|
|
28
28
|
| 'audit'
|
|
29
29
|
| 'bank-card-line'
|
|
30
|
-
| 'barcode'
|
|
30
|
+
| 'barcode-line'
|
|
31
31
|
| 'barricade-line'
|
|
32
32
|
| 'bell'
|
|
33
33
|
| 'bell-alert'
|
|
34
34
|
| 'borrow'
|
|
35
|
-
| 'building'
|
|
36
|
-
| 'building-2'
|
|
37
|
-
| 'building-4'
|
|
38
|
-
| 'calculator'
|
|
39
|
-
| 'calendar-event'
|
|
40
|
-
| 'calendar-todo'
|
|
41
|
-
| 'chat-check'
|
|
35
|
+
| 'building-line'
|
|
36
|
+
| 'building-2-line'
|
|
37
|
+
| 'building-4-line'
|
|
38
|
+
| 'calculator-line'
|
|
39
|
+
| 'calendar-event-line'
|
|
40
|
+
| 'calendar-todo-line'
|
|
41
|
+
| 'chat-check-line'
|
|
42
42
|
| 'change-tag'
|
|
43
43
|
| 'checkout'
|
|
44
44
|
| 'check-double-fill'
|
|
45
45
|
| 'checkbox-circle-fill'
|
|
46
|
-
| 'checkbox-blank-circle'
|
|
46
|
+
| 'checkbox-blank-circle-line'
|
|
47
47
|
| 'checkbox-blank-circle-fill'
|
|
48
|
-
| 'checkbox-multiple'
|
|
48
|
+
| 'checkbox-multiple-line'
|
|
49
49
|
| 'close-circle-fill'
|
|
50
50
|
| 'cloud-line'
|
|
51
|
-
| 'coins'
|
|
51
|
+
| 'coins-line'
|
|
52
52
|
| 'completion'
|
|
53
|
-
| 'dashboard'
|
|
54
|
-
| 'database'
|
|
55
|
-
| 'delete-bin-7'
|
|
56
|
-
| 'device'
|
|
53
|
+
| 'dashboard-line'
|
|
54
|
+
| 'database-line'
|
|
55
|
+
| 'delete-bin-7-line'
|
|
56
|
+
| 'device-line'
|
|
57
57
|
| 'disposal'
|
|
58
|
-
| 'dropbox'
|
|
58
|
+
| 'dropbox-line'
|
|
59
59
|
| 'dragable-menu'
|
|
60
60
|
| 'ellipsis-h'
|
|
61
61
|
| 'emotion-happy-fill'
|
|
62
62
|
| 'emotion-unhappy-fill'
|
|
63
63
|
| 'expired'
|
|
64
64
|
| 'extension-borrow'
|
|
65
|
-
| 'eye'
|
|
66
|
-
| 'flag'
|
|
67
|
-
| 'file-add'
|
|
65
|
+
| 'eye-line'
|
|
66
|
+
| 'flag-line'
|
|
67
|
+
| 'file-add-line'
|
|
68
68
|
| 'file-copy-2-line'
|
|
69
|
-
| 'file-history'
|
|
69
|
+
| 'file-history-line'
|
|
70
70
|
| 'file-history-fill'
|
|
71
71
|
| 'files'
|
|
72
72
|
| 'file-lines'
|
|
73
|
-
| 'file-list-3'
|
|
74
|
-
| 'file-list'
|
|
73
|
+
| 'file-list-3-line'
|
|
74
|
+
| 'file-list-line'
|
|
75
75
|
| 'file-shield-line'
|
|
76
|
-
| 'file-shield-2'
|
|
77
|
-
| 'file-
|
|
78
|
-
| 'file-user'
|
|
76
|
+
| 'file-shield-2-line'
|
|
77
|
+
| 'file-upload-line'
|
|
78
|
+
| 'file-user-line'
|
|
79
79
|
| 'filter-fill'
|
|
80
|
-
| 'filter'
|
|
80
|
+
| 'filter-line'
|
|
81
81
|
| 'fingerprint-line'
|
|
82
|
-
| 'folder'
|
|
83
82
|
| 'folder-add-line'
|
|
84
83
|
| 'gate'
|
|
85
84
|
| 'handheld'
|
|
86
85
|
| 'indeterminate-circle-fill'
|
|
87
86
|
| 'information-line'
|
|
88
|
-
| 'infrared-thermometer'
|
|
87
|
+
| 'infrared-thermometer-line'
|
|
89
88
|
| 'link'
|
|
90
|
-
| 'luggage-cart'
|
|
89
|
+
| 'luggage-cart-line'
|
|
91
90
|
| 'csv'
|
|
92
91
|
| 'xls'
|
|
93
92
|
| 'doc'
|
|
94
93
|
| 'data'
|
|
95
|
-
| 'line-chart'
|
|
94
|
+
| 'line-chart-line'
|
|
96
95
|
| 'link-unlink-m'
|
|
97
|
-
| 'list-settings'
|
|
98
96
|
| 'lock-line'
|
|
99
|
-
| 'logout-box-r'
|
|
100
|
-
| 'mail-open'
|
|
97
|
+
| 'logout-box-r-line'
|
|
98
|
+
| 'mail-open-line'
|
|
101
99
|
| 'magic-line'
|
|
102
|
-
| 'map-2'
|
|
103
|
-
| 'map-pin'
|
|
104
|
-
| 'menu'
|
|
105
|
-
| 'menu-unfold'
|
|
100
|
+
| 'map-2-line'
|
|
101
|
+
| 'map-pin-line'
|
|
102
|
+
| 'menu-line'
|
|
103
|
+
| 'menu-unfold-fill'
|
|
106
104
|
| 'mind-map'
|
|
107
105
|
| 'minus'
|
|
108
|
-
| 'money-cny-box'
|
|
109
|
-
| 'money-dollar-circle'
|
|
106
|
+
| 'money-cny-box-line'
|
|
107
|
+
| 'money-dollar-circle-line'
|
|
110
108
|
| 'move-to'
|
|
111
109
|
| 'nfc'
|
|
112
110
|
| 'node-tree'
|
|
113
111
|
| 'note'
|
|
114
|
-
| 'notification'
|
|
112
|
+
| 'notification-line'
|
|
115
113
|
| 'organization-chart'
|
|
116
114
|
| 'pdf'
|
|
117
115
|
| 'pair-tag'
|
|
118
|
-
| 'phone'
|
|
119
|
-
| 'printer-cloud'
|
|
120
|
-
| 'price-tag-3'
|
|
116
|
+
| 'phone-line'
|
|
117
|
+
| 'printer-cloud-line'
|
|
118
|
+
| 'price-tag-3-line'
|
|
121
119
|
| 'profile'
|
|
122
120
|
| 'qr'
|
|
123
|
-
| 'qr-scan'
|
|
121
|
+
| 'qr-scan-line'
|
|
124
122
|
| 'reception'
|
|
125
123
|
| 'recycle-bin'
|
|
126
124
|
| 'replace-tag'
|
|
@@ -133,33 +131,32 @@ export type WangsIcons =
|
|
|
133
131
|
| 'round-keyboard-double-arrow-right'
|
|
134
132
|
| 'search-line'
|
|
135
133
|
| 'send-plane-line'
|
|
136
|
-
| 'shopping-cart-2'
|
|
137
|
-
| 'smartphone'
|
|
134
|
+
| 'shopping-cart-2-line'
|
|
135
|
+
| 'smartphone-line'
|
|
138
136
|
| 'sort-asc'
|
|
139
137
|
| 'sort-desc'
|
|
140
138
|
| 'supplier-return'
|
|
141
139
|
| 'internal-return'
|
|
142
140
|
| 'spinner'
|
|
143
|
-
| 'stack'
|
|
144
|
-
| 'store'
|
|
145
|
-
| 'table'
|
|
146
|
-
| 'time'
|
|
147
|
-
| 'ticket'
|
|
148
|
-
| 'tools'
|
|
149
|
-
| '
|
|
141
|
+
| 'stack-line'
|
|
142
|
+
| 'store-line'
|
|
143
|
+
| 'table-line'
|
|
144
|
+
| 'time-line'
|
|
145
|
+
| 'ticket-line'
|
|
146
|
+
| 'tools-line'
|
|
147
|
+
| 'file-search-line'
|
|
150
148
|
| 'truck-line'
|
|
151
149
|
| 'unassign'
|
|
152
|
-
| 'upload-2'
|
|
153
|
-
| 'upload-cloud-2'
|
|
154
|
-
| 'user'
|
|
155
|
-
| 'user-add'
|
|
156
|
-
| 'user-follow'
|
|
150
|
+
| 'upload-2-line'
|
|
151
|
+
| 'upload-cloud-2-line'
|
|
152
|
+
| 'user-line'
|
|
153
|
+
| 'user-add-line'
|
|
154
|
+
| 'user-follow-line'
|
|
157
155
|
| 'user-received-2-line'
|
|
158
156
|
| 'user-shared-2-line'
|
|
159
|
-
| 'user-star'
|
|
160
|
-
| 'user-unfollow'
|
|
157
|
+
| 'user-star-line'
|
|
161
158
|
| 'verification'
|
|
162
|
-
| 'timer'
|
|
159
|
+
| 'timer-line'
|
|
163
160
|
| 'format-clear'
|
|
164
161
|
| 'code-line'
|
|
165
162
|
| 'link-m'
|
|
@@ -195,7 +192,7 @@ export type WangsIcons =
|
|
|
195
192
|
| 'arrow-up-down-line' // Preferred
|
|
196
193
|
| 'arrow-up-s-line' // Preferred
|
|
197
194
|
| 'calendar-line' // Preferred
|
|
198
|
-
| 'chat-1' // Preferred
|
|
195
|
+
| 'chat-1-line' // Preferred
|
|
199
196
|
| 'chat-3-line' // Preferred
|
|
200
197
|
| 'check-line' // Preferred
|
|
201
198
|
| 'checkbox-circle-line' // Preferred
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# ImageCompressor
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `ImageCompressor` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "Image Compressor" or similar, consisting of an image upload area with a square preview box (showing either an `image-add-line` icon placeholder or an actual image), Edit/Delete action buttons, requirement info text, and optionally paired with a label, required asterisk, and info icon.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `label` (string)
|
|
19
|
+
The text of the label displayed above the image input.
|
|
20
|
+
|
|
21
|
+
- `fieldInfo` (string | undefined)
|
|
22
|
+
Whether an info icon (`information-line`) is present next to the label. Omit if absent.
|
|
23
|
+
|
|
24
|
+
- `imagePreviewSize` ('small' | 'medium' | 'big' | undefined)
|
|
25
|
+
Infer from the image preview frame dimensions:
|
|
26
|
+
- `125px` → `'big'`
|
|
27
|
+
- `80px` → `'medium'`
|
|
28
|
+
- `30px` → `'small'`
|
|
29
|
+
- Omit if ambiguous.
|
|
30
|
+
|
|
31
|
+
- `rounded` (boolean | undefined)
|
|
32
|
+
Whether the image preview is displayed as a full circle. Omit if the preview is squared.
|
|
33
|
+
|
|
34
|
+
- `multiple` (boolean | undefined)
|
|
35
|
+
Whether "Add Photo" and "Remove" action buttons alongside a "Set as default" radio button are present below the image, indicating multiple image support. Omit if absent.
|
|
36
|
+
|
|
37
|
+
- `mandatory` (boolean | undefined)
|
|
38
|
+
Whether a red asterisk `*` is present next to the label, indicating the field is required. Omit if absent.
|
|
39
|
+
|
|
40
|
+
- `invalid` (boolean | undefined)
|
|
41
|
+
Whether the image input shows an error state (red border, caption text like "Photo must not be empty"). Omit if not in error state.
|
|
42
|
+
|
|
43
|
+
- `disabled` (boolean | undefined)
|
|
44
|
+
Whether the image input shows a disabled state (grayed out placeholder). Omit if not disabled.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# InputBadge
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `InputBadge` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "Input Badge" or similar, consisting of a text input area containing multiple badge chips (with close buttons), optionally paired with a label, required asterisk, and info icon.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `label` (string)
|
|
19
|
+
The text of the label displayed above the input badge area.
|
|
20
|
+
|
|
21
|
+
- `placeholder` (string | undefined)
|
|
22
|
+
The placeholder text inside the input (e.g. "Enter"). When badges are present, the placeholder is replaced by badge chips. Omit if no placeholder text is visible.
|
|
23
|
+
|
|
24
|
+
- `mandatory` (boolean | undefined)
|
|
25
|
+
Whether a red asterisk `*` is present next to the label, indicating the field is required. Omit if absent.
|
|
26
|
+
|
|
27
|
+
- `fieldInfo` (string | undefined)
|
|
28
|
+
Whether an info icon (`information-line`) is present next to the label. Omit if absent.
|
|
29
|
+
|
|
30
|
+
- `invalid` (boolean | undefined)
|
|
31
|
+
Whether the input shows an error state (red border, red caption text). Omit if the field is not in error state.
|
|
32
|
+
|
|
33
|
+
- `disabled` (boolean | undefined)
|
|
34
|
+
Whether the input shows a disabled state (gray background, gray text). Omit if the field is not disabled.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# InputNumber
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `InputNumber` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "Input Number" or similar, consisting of a numeric input field optionally paired with a label, required asterisk, info icon, increment/decrement buttons, and addon slots.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `label` (string)
|
|
19
|
+
The text of the label displayed above the input field.
|
|
20
|
+
|
|
21
|
+
- `placeholder` (string | undefined)
|
|
22
|
+
The placeholder text inside the input field (e.g. "Enter number" or "0"). Omit if no placeholder text is visible.
|
|
23
|
+
|
|
24
|
+
- `mandatory` (boolean | undefined)
|
|
25
|
+
Whether a red asterisk `*` is present next to the label. Omit if absent.
|
|
26
|
+
|
|
27
|
+
- `fieldInfo` (string | undefined)
|
|
28
|
+
Whether an info icon (`information-line`) is present next to the label. Omit if absent.
|
|
29
|
+
|
|
30
|
+
- `invalid` (boolean | undefined)
|
|
31
|
+
Whether the input field shows an error state (red border, red caption text). Omit if the field is not in error state.
|
|
32
|
+
|
|
33
|
+
- `disabled` (boolean | undefined)
|
|
34
|
+
Whether the input field shows a disabled state (gray background, gray text). Omit if the field is not disabled.
|
|
35
|
+
|
|
36
|
+
- `showButtons` (boolean | undefined)
|
|
37
|
+
Whether increment (`add-line`) and decrement (`subtract-line`) icons are present on the left and right sides of the input. Infer from the Figma type:
|
|
38
|
+
- Type `"Button Horizontal"` or `"Button Vertical"` → `true`
|
|
39
|
+
- Types without buttons (`"Default"`, `"Double Field"`, `"Addon Right"`, `"Addon Left"`, etc.) → omit this field
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# InputPassword
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `InputPassword` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "Input Password" or similar, consisting of a password input field showing masked dots (e.g. "**********") and an `eye-line` icon for toggling visibility, optionally paired with a label, required asterisk, and info icon.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `label` (string)
|
|
19
|
+
The text of the label displayed above the password input.
|
|
20
|
+
|
|
21
|
+
- `placeholder` (string | undefined)
|
|
22
|
+
The placeholder text inside the password input (e.g. "Enter password"). When a password is entered, the placeholder is replaced with masked dots. Omit if no placeholder text is visible.
|
|
23
|
+
|
|
24
|
+
- `mandatory` (boolean | undefined)
|
|
25
|
+
Whether a red asterisk `*` is present next to the label, indicating the field is required. Omit if absent.
|
|
26
|
+
|
|
27
|
+
- `invalid` (boolean | undefined)
|
|
28
|
+
Whether the password input shows an error state (red border, red caption text). Omit if the field is not in error state.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# InputPhoneNumber
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `InputPhoneNumber` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "Input Phone Number" or similar, consisting of a two-part segmented input: a dial code dropdown (e.g. "+62" with a dropdown arrow) on the left and a phone number text field on the right, optionally paired with a label, required asterisk, and info icon.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `label` (string)
|
|
19
|
+
The text of the label displayed above the phone number input.
|
|
20
|
+
|
|
21
|
+
- `placeholder` (string | undefined)
|
|
22
|
+
The placeholder text inside the phone number field (e.g. "Enter phone number"). When a number is entered, the placeholder is replaced with the phone digits. Omit if no placeholder text is visible.
|
|
23
|
+
|
|
24
|
+
- `mandatory` (boolean | undefined)
|
|
25
|
+
Whether a red asterisk `*` is present next to the label, indicating the field is required. Omit if absent.
|
|
26
|
+
|
|
27
|
+
- `fieldInfo` (string | undefined)
|
|
28
|
+
Whether an info icon (`information-line`) is present next to the label. Omit if absent.
|
|
29
|
+
|
|
30
|
+
- `invalid` (boolean | undefined)
|
|
31
|
+
Whether the input shows an error state (red border, red caption text). Omit if the field is not in error state.
|
|
32
|
+
|
|
33
|
+
- `disabled` (boolean | undefined)
|
|
34
|
+
Whether the input shows a disabled state (gray background, gray text). Omit if the field is not disabled.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# InputRangeNumber
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `InputRangeNumber` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "Input Range Number" or similar, consisting of two number input fields separated by a dash (`--`) separator, optionally paired with a label, required asterisk, and info icon.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `label` (string)
|
|
19
|
+
The text of the label displayed above the range inputs.
|
|
20
|
+
|
|
21
|
+
- `placeholder` (string | undefined)
|
|
22
|
+
The placeholder text inside both number inputs (e.g. "Enter"). When a value is entered, the placeholder is replaced with the number. Omit if no placeholder text is visible.
|
|
23
|
+
|
|
24
|
+
- `mandatory` (boolean | undefined)
|
|
25
|
+
Whether a red asterisk `*` is present next to the label, indicating the field is required. Omit if absent.
|
|
26
|
+
|
|
27
|
+
- `invalid` (boolean | undefined)
|
|
28
|
+
Whether the range inputs show an error state (red borders, red caption text). Omit if the field is not in error state.
|
|
29
|
+
|
|
30
|
+
- `disabled` (boolean | undefined)
|
|
31
|
+
Whether the range inputs show a disabled state (gray background, gray text). Omit if the field is not disabled.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# InputText
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `InputText` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "Input Text" or similar, consisting of a text input field optionally paired with a label, required asterisk, and info icon.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `label` (string)
|
|
19
|
+
The text of the label displayed above the input field.
|
|
20
|
+
|
|
21
|
+
- `placeholder` (string | undefined)
|
|
22
|
+
The placeholder text inside the input field. In the default state, the field shows a placeholder like "Enter". When a value is present, the placeholder is replaced with the filled text. Omit if no placeholder text is visible.
|
|
23
|
+
|
|
24
|
+
- `mandatory` (boolean | undefined)
|
|
25
|
+
Whether a red asterisk `*` is present next to the label, indicating the field is required. Omit if absent.
|
|
26
|
+
|
|
27
|
+
- `fieldInfo` (string | undefined)
|
|
28
|
+
Whether an info icon (`information-line`) is present next to the label. Omit if absent.
|
|
29
|
+
|
|
30
|
+
- `invalid` (boolean | undefined)
|
|
31
|
+
Whether the input field shows an error state (red border, red caption text). Omit if the field is not in error state.
|
|
32
|
+
|
|
33
|
+
- `disabled` (boolean | undefined)
|
|
34
|
+
Whether the input field shows a disabled state (gray background, gray text). Omit if the field is not disabled.
|