@webquark/core 1.0.1 → 1.0.2
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/LICENSE +21 -21
- package/{readme.md → README.md} +97 -97
- package/dist/cjs/q-button_3.cjs.entry.js +22 -22
- package/dist/cjs/q-card.cjs.entry.js +3 -3
- package/dist/cjs/q-carousel.cjs.entry.js +2 -2
- package/dist/cjs/q-circular-progress_2.cjs.entry.js +5 -5
- package/dist/cjs/q-data-table.cjs.entry.js +3 -3
- package/dist/cjs/q-dialog.cjs.entry.js +1 -1
- package/dist/cjs/q-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/q-quantity-selector.cjs.entry.js +5 -5
- package/dist/cjs/q-reel.cjs.entry.js +2 -2
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +2 -2
- package/dist/cjs/q-step-diagram.cjs.entry.js +2 -2
- package/dist/cjs/q-textarea.cjs.entry.js +2 -2
- package/dist/cjs/q-thumbnail.cjs.entry.js +2 -2
- package/dist/cjs/q-toggle.cjs.entry.js +3 -3
- package/dist/collection/assets/icons/braces.svg +14 -14
- package/dist/collection/assets/icons/check.svg +1 -1
- package/dist/collection/assets/icons/chevron-down.svg +1 -1
- package/dist/collection/assets/icons/chevron-left.svg +1 -1
- package/dist/collection/assets/icons/chevron-right.svg +1 -1
- package/dist/collection/assets/icons/chevron-up.svg +1 -1
- package/dist/collection/assets/icons/copy.svg +4 -4
- package/dist/collection/assets/icons/eye-off.svg +1 -1
- package/dist/collection/assets/icons/eye.svg +1 -1
- package/dist/collection/assets/icons/minus.svg +1 -1
- package/dist/collection/assets/icons/play.svg +1 -1
- package/dist/collection/assets/icons/plus.svg +1 -1
- package/dist/collection/assets/icons/search.svg +1 -1
- package/dist/collection/assets/icons/spinner.svg +1 -1
- package/dist/collection/assets/icons/trash-2.svg +1 -1
- package/dist/collection/assets/icons/x.svg +1 -1
- package/dist/collection/components/card/card.js +3 -3
- package/dist/collection/components/carousel/carousel.js +2 -2
- package/dist/collection/components/circular-progress/circular-progress.js +2 -2
- package/dist/collection/components/data-table/data-table.css +219 -219
- package/dist/collection/components/data-table/data-table.js +4 -4
- package/dist/collection/components/dialog/dialog.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +5 -5
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/input/input.js +3 -3
- package/dist/collection/components/quantity-selector/quantity-selector.css +131 -131
- package/dist/collection/components/quantity-selector/quantity-selector.js +4 -4
- package/dist/collection/components/reel/reel.js +2 -2
- package/dist/collection/components/scrollable/scrollable.js +22 -22
- package/dist/collection/components/sidepanel/sidepanel.js +2 -2
- package/dist/collection/components/step-diagram/step-diagram.js +2 -2
- package/dist/collection/components/step-diagram-item/step-diagram-item.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/toggle/toggle.js +4 -4
- package/dist/collection/playground/components/playground-event-log/playground-event-log.js +3 -3
- package/dist/collection/playground/components/sandbox-viewport/sandbox-panel.js +3 -3
- package/dist/collection/playground/logo.svg +8 -8
- package/dist/collection/playground/playground.bundled.js +590 -590
- package/dist/collection/playground/views/q-button-view/q-button-view.js +6 -6
- package/dist/collection/playground/views/q-input-view/q-input-view.js +6 -6
- package/dist/collection/utils/formatter.unit.test.js +24 -24
- package/dist/components/{p-CYfD9z8O.js → p-B4IF9WVv.js} +1 -1
- package/dist/components/{p-BRNv11Jn.js → p-DScvq41R.js} +1 -1
- package/dist/components/{p-B7e76DLW.js → p-Do2ppeKL.js} +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-circular-progress.js +1 -1
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +1 -1
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toggle.js +1 -1
- package/dist/esm/q-button_3.entry.js +22 -22
- package/dist/esm/q-card.entry.js +3 -3
- package/dist/esm/q-carousel.entry.js +2 -2
- package/dist/esm/q-circular-progress_2.entry.js +5 -5
- package/dist/esm/q-data-table.entry.js +3 -3
- package/dist/esm/q-dialog.entry.js +1 -1
- package/dist/esm/q-dropdown.entry.js +3 -3
- package/dist/esm/q-quantity-selector.entry.js +5 -5
- package/dist/esm/q-reel.entry.js +2 -2
- package/dist/esm/q-step-diagram-item.entry.js +2 -2
- package/dist/esm/q-step-diagram.entry.js +2 -2
- package/dist/esm/q-textarea.entry.js +2 -2
- package/dist/esm/q-thumbnail.entry.js +2 -2
- package/dist/esm/q-toggle.entry.js +3 -3
- package/dist/playground/assets/icons/braces.svg +14 -14
- package/dist/playground/assets/icons/check.svg +1 -1
- package/dist/playground/assets/icons/chevron-down.svg +1 -1
- package/dist/playground/assets/icons/chevron-left.svg +1 -1
- package/dist/playground/assets/icons/chevron-right.svg +1 -1
- package/dist/playground/assets/icons/chevron-up.svg +1 -1
- package/dist/playground/assets/icons/copy.svg +4 -4
- package/dist/playground/assets/icons/eye-off.svg +1 -1
- package/dist/playground/assets/icons/eye.svg +1 -1
- package/dist/playground/assets/icons/minus.svg +1 -1
- package/dist/playground/assets/icons/play.svg +1 -1
- package/dist/playground/assets/icons/plus.svg +1 -1
- package/dist/playground/assets/icons/search.svg +1 -1
- package/dist/playground/assets/icons/spinner.svg +1 -1
- package/dist/playground/assets/icons/trash-2.svg +1 -1
- package/dist/playground/assets/icons/x.svg +1 -1
- package/dist/playground/build/{p-4f133a25.entry.js → p-1187e439.entry.js} +1 -1
- package/dist/playground/build/{p-c8d6af8e.entry.js → p-38d9e75b.entry.js} +1 -1
- package/dist/{webquark/p-f7b5b155.entry.js → playground/build/p-4ce667f1.entry.js} +1 -1
- package/dist/{webquark/p-aa9be919.entry.js → playground/build/p-66b0eb0f.entry.js} +1 -1
- package/dist/{webquark/p-b1e68119.entry.js → playground/build/p-69d33f9d.entry.js} +1 -1
- package/dist/playground/build/{p-679fa494.entry.js → p-76e04a7f.entry.js} +1 -1
- package/dist/{webquark/p-f48dd3dd.entry.js → playground/build/p-776a0eb6.entry.js} +1 -1
- package/dist/playground/build/{p-5c67a28e.entry.js → p-7c4532f3.entry.js} +1 -1
- package/dist/playground/build/p-7d2144cf.entry.js +1 -0
- package/dist/playground/build/{p-7083c5ff.entry.js → p-84185204.entry.js} +1 -1
- package/dist/{webquark/p-1238a2cc.entry.js → playground/build/p-938cd8a6.entry.js} +1 -1
- package/dist/playground/build/{p-7f47861b.entry.js → p-a182b818.entry.js} +1 -1
- package/dist/playground/build/p-aa017815.entry.js +1 -0
- package/dist/playground/build/{p-8a94a0a2.entry.js → p-d7607e11.entry.js} +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/logo.svg +8 -8
- package/dist/playground/playground/specs/q-button.sandbox.json +198 -198
- package/dist/playground/playground/specs/q-card.sandbox.json +144 -144
- package/dist/playground/playground/specs/q-carousel.sandbox.json +120 -120
- package/dist/playground/playground/specs/q-circular-progress.sandbox.json +91 -91
- package/dist/playground/playground/specs/q-data-table.sandbox.json +108 -108
- package/dist/playground/playground/specs/q-dialog.sandbox.json +108 -108
- package/dist/playground/playground/specs/q-dropdown.sandbox.json +116 -116
- package/dist/playground/playground/specs/q-icon.sandbox.json +138 -138
- package/dist/playground/playground/specs/q-input.sandbox.json +192 -192
- package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +99 -99
- package/dist/playground/playground/specs/q-reel.sandbox.json +70 -70
- package/dist/playground/playground/specs/q-scrollable.sandbox.json +102 -102
- package/dist/playground/playground/specs/q-sidepanel.sandbox.json +147 -147
- package/dist/playground/playground/specs/q-step-diagram.sandbox.json +56 -56
- package/dist/playground/playground/specs/q-syntax-box.sandbox.json +160 -160
- package/dist/playground/playground/specs/q-textarea.sandbox.json +133 -133
- package/dist/playground/playground/specs/q-toggle.sandbox.json +196 -196
- package/dist/playground/playground/specs/q-tooltip.sandbox.json +65 -65
- package/dist/playground/playground.css +1 -1
- package/dist/playground/playground.js +590 -590
- package/dist/playground/views/q-button-view/q-button-view.css +1 -1
- package/dist/playground/views/q-button-view/q-button-view.html +1 -1
- package/dist/playground/views/q-button-view/q-button-view.js +6 -6
- package/dist/playground/views/q-input-view/q-input-view.css +1 -1
- package/dist/playground/views/q-input-view/q-input-view.html +1 -1
- package/dist/playground/views/q-input-view/q-input-view.js +6 -6
- package/dist/types/declarations.d.ts +9 -9
- package/dist/webquark/{p-4f133a25.entry.js → p-1187e439.entry.js} +1 -1
- package/dist/webquark/{p-c8d6af8e.entry.js → p-38d9e75b.entry.js} +1 -1
- package/dist/{playground/build/p-f7b5b155.entry.js → webquark/p-4ce667f1.entry.js} +1 -1
- package/dist/{playground/build/p-aa9be919.entry.js → webquark/p-66b0eb0f.entry.js} +1 -1
- package/dist/{playground/build/p-b1e68119.entry.js → webquark/p-69d33f9d.entry.js} +1 -1
- package/dist/webquark/{p-679fa494.entry.js → p-76e04a7f.entry.js} +1 -1
- package/dist/{playground/build/p-f48dd3dd.entry.js → webquark/p-776a0eb6.entry.js} +1 -1
- package/dist/webquark/{p-5c67a28e.entry.js → p-7c4532f3.entry.js} +1 -1
- package/dist/webquark/p-7d2144cf.entry.js +1 -0
- package/dist/webquark/{p-7083c5ff.entry.js → p-84185204.entry.js} +1 -1
- package/dist/{playground/build/p-1238a2cc.entry.js → webquark/p-938cd8a6.entry.js} +1 -1
- package/dist/webquark/{p-7f47861b.entry.js → p-a182b818.entry.js} +1 -1
- package/dist/webquark/p-aa017815.entry.js +1 -0
- package/dist/webquark/{p-8a94a0a2.entry.js → p-d7607e11.entry.js} +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +84 -84
- package/dist/playground/build/p-9afa3fe8.entry.js +0 -1
- package/dist/playground/build/p-9bb8ed97.entry.js +0 -1
- package/dist/webquark/p-9afa3fe8.entry.js +0 -1
- package/dist/webquark/p-9bb8ed97.entry.js +0 -1
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Textarea",
|
|
3
|
-
"tag": "q-textarea",
|
|
4
|
-
"props": {
|
|
5
|
-
"rows": {
|
|
6
|
-
"type": "number",
|
|
7
|
-
"default": 3,
|
|
8
|
-
"desc": "Initial row height spacing"
|
|
9
|
-
},
|
|
10
|
-
"resizeMode": {
|
|
11
|
-
"type": "select",
|
|
12
|
-
"options": [
|
|
13
|
-
"auto",
|
|
14
|
-
"manual",
|
|
15
|
-
"fixed"
|
|
16
|
-
],
|
|
17
|
-
"default": "auto",
|
|
18
|
-
"desc": "Controls resizing behavior (auto-grow, manual drag, or fixed)"
|
|
19
|
-
},
|
|
20
|
-
"autoGrow": {
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"default": true,
|
|
23
|
-
"desc": "Expands vertical size reactively as user types new lines"
|
|
24
|
-
},
|
|
25
|
-
"label": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"default": "Review comments",
|
|
28
|
-
"desc": "Floating form label caption"
|
|
29
|
-
},
|
|
30
|
-
"placeholder": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"default": "Write feedback...",
|
|
33
|
-
"desc": "Text placeholder"
|
|
34
|
-
},
|
|
35
|
-
"value": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"default": "",
|
|
38
|
-
"desc": "Active textarea text content value"
|
|
39
|
-
},
|
|
40
|
-
"required": {
|
|
41
|
-
"type": "boolean",
|
|
42
|
-
"default": false,
|
|
43
|
-
"desc": "Native required validation attribute"
|
|
44
|
-
},
|
|
45
|
-
"disabled": {
|
|
46
|
-
"type": "boolean",
|
|
47
|
-
"default": false,
|
|
48
|
-
"desc": "Greyed out locks input element edits"
|
|
49
|
-
},
|
|
50
|
-
"error": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"default": "",
|
|
53
|
-
"desc": "Swaps borders to red warning styles and shows error message"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"slots": {},
|
|
57
|
-
"variants": [
|
|
58
|
-
{
|
|
59
|
-
"name": "Standard Textarea",
|
|
60
|
-
"props": {
|
|
61
|
-
"label": "Feedback Comments",
|
|
62
|
-
"placeholder": "Write suggestions..."
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"name": "Manual Resizable drag",
|
|
67
|
-
"props": {
|
|
68
|
-
"label": "Manual Drag Resizable",
|
|
69
|
-
"resizeMode": "manual",
|
|
70
|
-
"placeholder": "Drag the bottom-right handle to vertically resize me."
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "Auto-Grow Expanded (Default)",
|
|
75
|
-
"props": {
|
|
76
|
-
"label": "Auto-Growing Area",
|
|
77
|
-
"autoGrow": true,
|
|
78
|
-
"placeholder": "Will expand dynamically height-wise as you press Enter key."
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "Fixed Height (Static)",
|
|
83
|
-
"props": {
|
|
84
|
-
"label": "Fixed 3 Rows",
|
|
85
|
-
"resizeMode": "fixed",
|
|
86
|
-
"rows": 3,
|
|
87
|
-
"placeholder": "Fixed size, cannot be dragged or auto-grown."
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"name": "Fixed Height scrollbar",
|
|
92
|
-
"props": {
|
|
93
|
-
"label": "Fixed 4 Rows",
|
|
94
|
-
"autoGrow": false,
|
|
95
|
-
"rows": 4,
|
|
96
|
-
"placeholder": "Type multiple lines to trigger vertical scrollbar indicator."
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "Disabled State",
|
|
101
|
-
"props": {
|
|
102
|
-
"label": "Configuration Log",
|
|
103
|
-
"value": "10:04:12 - Build started\n10:04:14 - Transpiling components\n10:04:15 - Successful bundle generation.",
|
|
104
|
-
"disabled": true
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"name": "Textarea with Error",
|
|
109
|
-
"props": {
|
|
110
|
-
"label": "Feedback Description",
|
|
111
|
-
"error": "Content exceeds character limit of 500 characters.",
|
|
112
|
-
"value": "Initial text content value"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
],
|
|
116
|
-
"edgeCases": [
|
|
117
|
-
{
|
|
118
|
-
"name": "Massive Auto-Grow Height",
|
|
119
|
-
"props": {
|
|
120
|
-
"label": "Stress Test Heights",
|
|
121
|
-
"autoGrow": true,
|
|
122
|
-
"value": "Line\nLine\nLine\nLine\nLine\nLine\nLine\nLine\nLine\nLine\nLine\nLine\n"
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"name": "Empty Label & Placeholder",
|
|
127
|
-
"props": {
|
|
128
|
-
"label": "",
|
|
129
|
-
"placeholder": ""
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
]
|
|
133
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "Textarea",
|
|
3
|
+
"tag": "q-textarea",
|
|
4
|
+
"props": {
|
|
5
|
+
"rows": {
|
|
6
|
+
"type": "number",
|
|
7
|
+
"default": 3,
|
|
8
|
+
"desc": "Initial row height spacing"
|
|
9
|
+
},
|
|
10
|
+
"resizeMode": {
|
|
11
|
+
"type": "select",
|
|
12
|
+
"options": [
|
|
13
|
+
"auto",
|
|
14
|
+
"manual",
|
|
15
|
+
"fixed"
|
|
16
|
+
],
|
|
17
|
+
"default": "auto",
|
|
18
|
+
"desc": "Controls resizing behavior (auto-grow, manual drag, or fixed)"
|
|
19
|
+
},
|
|
20
|
+
"autoGrow": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"default": true,
|
|
23
|
+
"desc": "Expands vertical size reactively as user types new lines"
|
|
24
|
+
},
|
|
25
|
+
"label": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"default": "Review comments",
|
|
28
|
+
"desc": "Floating form label caption"
|
|
29
|
+
},
|
|
30
|
+
"placeholder": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"default": "Write feedback...",
|
|
33
|
+
"desc": "Text placeholder"
|
|
34
|
+
},
|
|
35
|
+
"value": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"default": "",
|
|
38
|
+
"desc": "Active textarea text content value"
|
|
39
|
+
},
|
|
40
|
+
"required": {
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"default": false,
|
|
43
|
+
"desc": "Native required validation attribute"
|
|
44
|
+
},
|
|
45
|
+
"disabled": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"default": false,
|
|
48
|
+
"desc": "Greyed out locks input element edits"
|
|
49
|
+
},
|
|
50
|
+
"error": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"default": "",
|
|
53
|
+
"desc": "Swaps borders to red warning styles and shows error message"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"slots": {},
|
|
57
|
+
"variants": [
|
|
58
|
+
{
|
|
59
|
+
"name": "Standard Textarea",
|
|
60
|
+
"props": {
|
|
61
|
+
"label": "Feedback Comments",
|
|
62
|
+
"placeholder": "Write suggestions..."
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "Manual Resizable drag",
|
|
67
|
+
"props": {
|
|
68
|
+
"label": "Manual Drag Resizable",
|
|
69
|
+
"resizeMode": "manual",
|
|
70
|
+
"placeholder": "Drag the bottom-right handle to vertically resize me."
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "Auto-Grow Expanded (Default)",
|
|
75
|
+
"props": {
|
|
76
|
+
"label": "Auto-Growing Area",
|
|
77
|
+
"autoGrow": true,
|
|
78
|
+
"placeholder": "Will expand dynamically height-wise as you press Enter key."
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "Fixed Height (Static)",
|
|
83
|
+
"props": {
|
|
84
|
+
"label": "Fixed 3 Rows",
|
|
85
|
+
"resizeMode": "fixed",
|
|
86
|
+
"rows": 3,
|
|
87
|
+
"placeholder": "Fixed size, cannot be dragged or auto-grown."
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "Fixed Height scrollbar",
|
|
92
|
+
"props": {
|
|
93
|
+
"label": "Fixed 4 Rows",
|
|
94
|
+
"autoGrow": false,
|
|
95
|
+
"rows": 4,
|
|
96
|
+
"placeholder": "Type multiple lines to trigger vertical scrollbar indicator."
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "Disabled State",
|
|
101
|
+
"props": {
|
|
102
|
+
"label": "Configuration Log",
|
|
103
|
+
"value": "10:04:12 - Build started\n10:04:14 - Transpiling components\n10:04:15 - Successful bundle generation.",
|
|
104
|
+
"disabled": true
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "Textarea with Error",
|
|
109
|
+
"props": {
|
|
110
|
+
"label": "Feedback Description",
|
|
111
|
+
"error": "Content exceeds character limit of 500 characters.",
|
|
112
|
+
"value": "Initial text content value"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"edgeCases": [
|
|
117
|
+
{
|
|
118
|
+
"name": "Massive Auto-Grow Height",
|
|
119
|
+
"props": {
|
|
120
|
+
"label": "Stress Test Heights",
|
|
121
|
+
"autoGrow": true,
|
|
122
|
+
"value": "Line\nLine\nLine\nLine\nLine\nLine\nLine\nLine\nLine\nLine\nLine\nLine\n"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "Empty Label & Placeholder",
|
|
127
|
+
"props": {
|
|
128
|
+
"label": "",
|
|
129
|
+
"placeholder": ""
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
@@ -1,196 +1,196 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Toggle / Checkbox",
|
|
3
|
-
"tag": "q-toggle",
|
|
4
|
-
"props": {
|
|
5
|
-
"type": {
|
|
6
|
-
"type": "select",
|
|
7
|
-
"options": [
|
|
8
|
-
"switch",
|
|
9
|
-
"checkbox"
|
|
10
|
-
],
|
|
11
|
-
"default": "switch",
|
|
12
|
-
"desc": "Visual presentation style"
|
|
13
|
-
},
|
|
14
|
-
"size": {
|
|
15
|
-
"type": "select",
|
|
16
|
-
"options": [
|
|
17
|
-
"sm",
|
|
18
|
-
"md",
|
|
19
|
-
"lg"
|
|
20
|
-
],
|
|
21
|
-
"default": "md",
|
|
22
|
-
"desc": "Toggle and checkbox display sizing"
|
|
23
|
-
},
|
|
24
|
-
"label": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"default": "Toggle Label",
|
|
27
|
-
"desc": "Text label adjacent to the toggle"
|
|
28
|
-
},
|
|
29
|
-
"checked": {
|
|
30
|
-
"type": "boolean",
|
|
31
|
-
"default": false,
|
|
32
|
-
"desc": "Boolean active state of the toggle"
|
|
33
|
-
},
|
|
34
|
-
"required": {
|
|
35
|
-
"type": "boolean",
|
|
36
|
-
"default": false,
|
|
37
|
-
"desc": "Required flag for form validation"
|
|
38
|
-
},
|
|
39
|
-
"disabled": {
|
|
40
|
-
"type": "boolean",
|
|
41
|
-
"default": false,
|
|
42
|
-
"desc": "Locks interaction"
|
|
43
|
-
},
|
|
44
|
-
"error": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"default": "",
|
|
47
|
-
"desc": "Validation error message"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"slots": {
|
|
51
|
-
"default": {
|
|
52
|
-
"type": "text",
|
|
53
|
-
"default": "",
|
|
54
|
-
"desc": "Optional replacement for the text label"
|
|
55
|
-
},
|
|
56
|
-
"checked-icon": {
|
|
57
|
-
"type": "html",
|
|
58
|
-
"default": "",
|
|
59
|
-
"desc": "Custom checkmark SVG when checked is true"
|
|
60
|
-
},
|
|
61
|
-
"unchecked-icon": {
|
|
62
|
-
"type": "html",
|
|
63
|
-
"default": "",
|
|
64
|
-
"desc": "Custom checkmark SVG when checked is false"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"variants": [
|
|
68
|
-
{
|
|
69
|
-
"name": "Switch Mode Off",
|
|
70
|
-
"props": {
|
|
71
|
-
"type": "switch",
|
|
72
|
-
"checked": false,
|
|
73
|
-
"label": "Off State"
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"name": "Switch Mode On",
|
|
78
|
-
"props": {
|
|
79
|
-
"type": "switch",
|
|
80
|
-
"checked": true,
|
|
81
|
-
"label": "On State"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "Switch Small On",
|
|
86
|
-
"props": {
|
|
87
|
-
"type": "switch",
|
|
88
|
-
"size": "sm",
|
|
89
|
-
"checked": true,
|
|
90
|
-
"label": "Small Toggle"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"name": "Switch Large On",
|
|
95
|
-
"props": {
|
|
96
|
-
"type": "switch",
|
|
97
|
-
"size": "lg",
|
|
98
|
-
"checked": true,
|
|
99
|
-
"label": "Large Toggle"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"name": "Checkbox Mode Off",
|
|
104
|
-
"props": {
|
|
105
|
-
"type": "checkbox",
|
|
106
|
-
"checked": false,
|
|
107
|
-
"label": "Checkbox Off"
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "Checkbox Mode On",
|
|
112
|
-
"props": {
|
|
113
|
-
"type": "checkbox",
|
|
114
|
-
"checked": true,
|
|
115
|
-
"label": "Checkbox On"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"name": "Checkbox Small On",
|
|
120
|
-
"props": {
|
|
121
|
-
"type": "checkbox",
|
|
122
|
-
"size": "sm",
|
|
123
|
-
"checked": true,
|
|
124
|
-
"label": "Small Checkbox"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"name": "Checkbox Large On",
|
|
129
|
-
"props": {
|
|
130
|
-
"type": "checkbox",
|
|
131
|
-
"size": "lg",
|
|
132
|
-
"checked": true,
|
|
133
|
-
"label": "Large Checkbox"
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"name": "Disabled Switch",
|
|
138
|
-
"props": {
|
|
139
|
-
"type": "switch",
|
|
140
|
-
"disabled": true,
|
|
141
|
-
"checked": true,
|
|
142
|
-
"label": "Disabled On"
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"name": "Required Switch",
|
|
147
|
-
"props": {
|
|
148
|
-
"type": "switch",
|
|
149
|
-
"required": true,
|
|
150
|
-
"checked": false,
|
|
151
|
-
"label": "Required Field"
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"name": "Switch with Error state",
|
|
156
|
-
"props": {
|
|
157
|
-
"type": "switch",
|
|
158
|
-
"error": "This field is required",
|
|
159
|
-
"checked": false,
|
|
160
|
-
"label": "Invalid Field"
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
"edgeCases": [
|
|
165
|
-
{
|
|
166
|
-
"name": "Custom SVG Icons (Heart)",
|
|
167
|
-
"props": {
|
|
168
|
-
"type": "checkbox",
|
|
169
|
-
"checked": true,
|
|
170
|
-
"label": "Add to Favourites"
|
|
171
|
-
},
|
|
172
|
-
"slots": {
|
|
173
|
-
"checked-icon": "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" width=\"16\" height=\"16\" style=\"color: #ef4444; display: block;\"><path d=\"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z\"/></svg>",
|
|
174
|
-
"unchecked-icon": "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" width=\"16\" height=\"16\" style=\"color: #9ca3af; display: block;\"><path d=\"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z\"/></svg>"
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"name": "Extremely Long Label text",
|
|
179
|
-
"props": {
|
|
180
|
-
"type": "switch",
|
|
181
|
-
"checked": false,
|
|
182
|
-
"label": "This is a ridiculously long label text wrapper intended to test wrapping dynamics next to the slider pill"
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"name": "HTML Slotted content label",
|
|
187
|
-
"props": {
|
|
188
|
-
"type": "switch",
|
|
189
|
-
"checked": true
|
|
190
|
-
},
|
|
191
|
-
"slots": {
|
|
192
|
-
"default": "I agree to the <a href=\"#\" style=\"color:var(--primary);text-decoration:underline\">Terms & Conditions</a>"
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
]
|
|
196
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "Toggle / Checkbox",
|
|
3
|
+
"tag": "q-toggle",
|
|
4
|
+
"props": {
|
|
5
|
+
"type": {
|
|
6
|
+
"type": "select",
|
|
7
|
+
"options": [
|
|
8
|
+
"switch",
|
|
9
|
+
"checkbox"
|
|
10
|
+
],
|
|
11
|
+
"default": "switch",
|
|
12
|
+
"desc": "Visual presentation style"
|
|
13
|
+
},
|
|
14
|
+
"size": {
|
|
15
|
+
"type": "select",
|
|
16
|
+
"options": [
|
|
17
|
+
"sm",
|
|
18
|
+
"md",
|
|
19
|
+
"lg"
|
|
20
|
+
],
|
|
21
|
+
"default": "md",
|
|
22
|
+
"desc": "Toggle and checkbox display sizing"
|
|
23
|
+
},
|
|
24
|
+
"label": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"default": "Toggle Label",
|
|
27
|
+
"desc": "Text label adjacent to the toggle"
|
|
28
|
+
},
|
|
29
|
+
"checked": {
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"default": false,
|
|
32
|
+
"desc": "Boolean active state of the toggle"
|
|
33
|
+
},
|
|
34
|
+
"required": {
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"default": false,
|
|
37
|
+
"desc": "Required flag for form validation"
|
|
38
|
+
},
|
|
39
|
+
"disabled": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"default": false,
|
|
42
|
+
"desc": "Locks interaction"
|
|
43
|
+
},
|
|
44
|
+
"error": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"default": "",
|
|
47
|
+
"desc": "Validation error message"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"slots": {
|
|
51
|
+
"default": {
|
|
52
|
+
"type": "text",
|
|
53
|
+
"default": "",
|
|
54
|
+
"desc": "Optional replacement for the text label"
|
|
55
|
+
},
|
|
56
|
+
"checked-icon": {
|
|
57
|
+
"type": "html",
|
|
58
|
+
"default": "",
|
|
59
|
+
"desc": "Custom checkmark SVG when checked is true"
|
|
60
|
+
},
|
|
61
|
+
"unchecked-icon": {
|
|
62
|
+
"type": "html",
|
|
63
|
+
"default": "",
|
|
64
|
+
"desc": "Custom checkmark SVG when checked is false"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"variants": [
|
|
68
|
+
{
|
|
69
|
+
"name": "Switch Mode Off",
|
|
70
|
+
"props": {
|
|
71
|
+
"type": "switch",
|
|
72
|
+
"checked": false,
|
|
73
|
+
"label": "Off State"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "Switch Mode On",
|
|
78
|
+
"props": {
|
|
79
|
+
"type": "switch",
|
|
80
|
+
"checked": true,
|
|
81
|
+
"label": "On State"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "Switch Small On",
|
|
86
|
+
"props": {
|
|
87
|
+
"type": "switch",
|
|
88
|
+
"size": "sm",
|
|
89
|
+
"checked": true,
|
|
90
|
+
"label": "Small Toggle"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "Switch Large On",
|
|
95
|
+
"props": {
|
|
96
|
+
"type": "switch",
|
|
97
|
+
"size": "lg",
|
|
98
|
+
"checked": true,
|
|
99
|
+
"label": "Large Toggle"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "Checkbox Mode Off",
|
|
104
|
+
"props": {
|
|
105
|
+
"type": "checkbox",
|
|
106
|
+
"checked": false,
|
|
107
|
+
"label": "Checkbox Off"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "Checkbox Mode On",
|
|
112
|
+
"props": {
|
|
113
|
+
"type": "checkbox",
|
|
114
|
+
"checked": true,
|
|
115
|
+
"label": "Checkbox On"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "Checkbox Small On",
|
|
120
|
+
"props": {
|
|
121
|
+
"type": "checkbox",
|
|
122
|
+
"size": "sm",
|
|
123
|
+
"checked": true,
|
|
124
|
+
"label": "Small Checkbox"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "Checkbox Large On",
|
|
129
|
+
"props": {
|
|
130
|
+
"type": "checkbox",
|
|
131
|
+
"size": "lg",
|
|
132
|
+
"checked": true,
|
|
133
|
+
"label": "Large Checkbox"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "Disabled Switch",
|
|
138
|
+
"props": {
|
|
139
|
+
"type": "switch",
|
|
140
|
+
"disabled": true,
|
|
141
|
+
"checked": true,
|
|
142
|
+
"label": "Disabled On"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "Required Switch",
|
|
147
|
+
"props": {
|
|
148
|
+
"type": "switch",
|
|
149
|
+
"required": true,
|
|
150
|
+
"checked": false,
|
|
151
|
+
"label": "Required Field"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "Switch with Error state",
|
|
156
|
+
"props": {
|
|
157
|
+
"type": "switch",
|
|
158
|
+
"error": "This field is required",
|
|
159
|
+
"checked": false,
|
|
160
|
+
"label": "Invalid Field"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"edgeCases": [
|
|
165
|
+
{
|
|
166
|
+
"name": "Custom SVG Icons (Heart)",
|
|
167
|
+
"props": {
|
|
168
|
+
"type": "checkbox",
|
|
169
|
+
"checked": true,
|
|
170
|
+
"label": "Add to Favourites"
|
|
171
|
+
},
|
|
172
|
+
"slots": {
|
|
173
|
+
"checked-icon": "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" width=\"16\" height=\"16\" style=\"color: #ef4444; display: block;\"><path d=\"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z\"/></svg>",
|
|
174
|
+
"unchecked-icon": "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" width=\"16\" height=\"16\" style=\"color: #9ca3af; display: block;\"><path d=\"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z\"/></svg>"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "Extremely Long Label text",
|
|
179
|
+
"props": {
|
|
180
|
+
"type": "switch",
|
|
181
|
+
"checked": false,
|
|
182
|
+
"label": "This is a ridiculously long label text wrapper intended to test wrapping dynamics next to the slider pill"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "HTML Slotted content label",
|
|
187
|
+
"props": {
|
|
188
|
+
"type": "switch",
|
|
189
|
+
"checked": true
|
|
190
|
+
},
|
|
191
|
+
"slots": {
|
|
192
|
+
"default": "I agree to the <a href=\"#\" style=\"color:var(--primary);text-decoration:underline\">Terms & Conditions</a>"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
}
|