@webquark/core 1.0.0 → 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 -78
- 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,198 +1,198 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Button",
|
|
3
|
-
"tag": "q-button",
|
|
4
|
-
"props": {
|
|
5
|
-
"variant": {
|
|
6
|
-
"type": "select",
|
|
7
|
-
"options": [
|
|
8
|
-
"primary",
|
|
9
|
-
"secondary",
|
|
10
|
-
"success",
|
|
11
|
-
"danger",
|
|
12
|
-
"ghost",
|
|
13
|
-
"text"
|
|
14
|
-
],
|
|
15
|
-
"default": "primary",
|
|
16
|
-
"desc": "Shorthand button background styling variant"
|
|
17
|
-
},
|
|
18
|
-
"size": {
|
|
19
|
-
"type": "select",
|
|
20
|
-
"options": [
|
|
21
|
-
"sm",
|
|
22
|
-
"md",
|
|
23
|
-
"lg"
|
|
24
|
-
],
|
|
25
|
-
"default": "md",
|
|
26
|
-
"desc": "Vertical padding & font size modifier"
|
|
27
|
-
},
|
|
28
|
-
"expand": {
|
|
29
|
-
"type": "boolean",
|
|
30
|
-
"default": false,
|
|
31
|
-
"desc": "Width layout block stretch (100% parent container width)"
|
|
32
|
-
},
|
|
33
|
-
"href": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"default": "",
|
|
36
|
-
"desc": "Turns the button element into a standard anchor link tag"
|
|
37
|
-
},
|
|
38
|
-
"target": {
|
|
39
|
-
"type": "select",
|
|
40
|
-
"options": [
|
|
41
|
-
"",
|
|
42
|
-
"_blank",
|
|
43
|
-
"_self",
|
|
44
|
-
"_parent",
|
|
45
|
-
"_top"
|
|
46
|
-
],
|
|
47
|
-
"default": "",
|
|
48
|
-
"desc": "Target link viewport target context (when href is set)"
|
|
49
|
-
},
|
|
50
|
-
"disabled": {
|
|
51
|
-
"type": "boolean",
|
|
52
|
-
"default": false,
|
|
53
|
-
"desc": "Locks click events and styles disabled state"
|
|
54
|
-
},
|
|
55
|
-
"loading": {
|
|
56
|
-
"type": "boolean",
|
|
57
|
-
"default": false,
|
|
58
|
-
"desc": "Swaps label with spinner icon while blocking events"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"slots": {
|
|
62
|
-
"default": {
|
|
63
|
-
"type": "text",
|
|
64
|
-
"default": "Click Me",
|
|
65
|
-
"desc": "Default Slot label content text"
|
|
66
|
-
},
|
|
67
|
-
"icon-left": {
|
|
68
|
-
"type": "html",
|
|
69
|
-
"default": "",
|
|
70
|
-
"desc": "Appends inline element/icon to the left side"
|
|
71
|
-
},
|
|
72
|
-
"icon-right": {
|
|
73
|
-
"type": "html",
|
|
74
|
-
"default": "",
|
|
75
|
-
"desc": "Appends inline element/icon to the right side"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"variants": [
|
|
79
|
-
{
|
|
80
|
-
"name": "Primary MD",
|
|
81
|
-
"props": {
|
|
82
|
-
"variant": "primary",
|
|
83
|
-
"size": "md"
|
|
84
|
-
},
|
|
85
|
-
"slots": {
|
|
86
|
-
"default": "Primary Button"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"name": "Secondary MD",
|
|
91
|
-
"props": {
|
|
92
|
-
"variant": "secondary",
|
|
93
|
-
"size": "md"
|
|
94
|
-
},
|
|
95
|
-
"slots": {
|
|
96
|
-
"default": "Secondary Button"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "Success LG",
|
|
101
|
-
"props": {
|
|
102
|
-
"variant": "success",
|
|
103
|
-
"size": "lg"
|
|
104
|
-
},
|
|
105
|
-
"slots": {
|
|
106
|
-
"default": "Success Action"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "Danger SM",
|
|
111
|
-
"props": {
|
|
112
|
-
"variant": "danger",
|
|
113
|
-
"size": "sm"
|
|
114
|
-
},
|
|
115
|
-
"slots": {
|
|
116
|
-
"default": "Danger Trigger"
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "Ghost Styling",
|
|
121
|
-
"props": {
|
|
122
|
-
"variant": "ghost"
|
|
123
|
-
},
|
|
124
|
-
"slots": {
|
|
125
|
-
"default": "Ghost Button"
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"name": "Text Only link style",
|
|
130
|
-
"props": {
|
|
131
|
-
"variant": "text"
|
|
132
|
-
},
|
|
133
|
-
"slots": {
|
|
134
|
-
"default": "Text Button"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"name": "Disabled State",
|
|
139
|
-
"props": {
|
|
140
|
-
"variant": "primary",
|
|
141
|
-
"disabled": true
|
|
142
|
-
},
|
|
143
|
-
"slots": {
|
|
144
|
-
"default": "Disabled Button"
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"name": "Loading State spinner",
|
|
149
|
-
"props": {
|
|
150
|
-
"variant": "primary",
|
|
151
|
-
"loading": true
|
|
152
|
-
},
|
|
153
|
-
"slots": {
|
|
154
|
-
"default": "Loading Button"
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"name": "Expanded full width",
|
|
159
|
-
"props": {
|
|
160
|
-
"variant": "primary",
|
|
161
|
-
"expand": true
|
|
162
|
-
},
|
|
163
|
-
"slots": {
|
|
164
|
-
"default": "Expanded Block Button"
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
"edgeCases": [
|
|
169
|
-
{
|
|
170
|
-
"name": "Super Long Text Wrapping",
|
|
171
|
-
"props": {
|
|
172
|
-
"variant": "primary"
|
|
173
|
-
},
|
|
174
|
-
"slots": {
|
|
175
|
-
"default": "This is a button containing a ridiculously long text content that will test wrapping dynamics and grid boundaries"
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"name": "HTML Injection Safe Verification",
|
|
180
|
-
"props": {
|
|
181
|
-
"variant": "primary"
|
|
182
|
-
},
|
|
183
|
-
"slots": {
|
|
184
|
-
"default": "<b>Formatted HTML</b> <script>console.log(\"XSS block test\")</script>"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"name": "Icon-only Button",
|
|
189
|
-
"props": {
|
|
190
|
-
"variant": "primary"
|
|
191
|
-
},
|
|
192
|
-
"slots": {
|
|
193
|
-
"default": "",
|
|
194
|
-
"icon-left": "<span style=\"font-size:16px\">🔥</span>"
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "Button",
|
|
3
|
+
"tag": "q-button",
|
|
4
|
+
"props": {
|
|
5
|
+
"variant": {
|
|
6
|
+
"type": "select",
|
|
7
|
+
"options": [
|
|
8
|
+
"primary",
|
|
9
|
+
"secondary",
|
|
10
|
+
"success",
|
|
11
|
+
"danger",
|
|
12
|
+
"ghost",
|
|
13
|
+
"text"
|
|
14
|
+
],
|
|
15
|
+
"default": "primary",
|
|
16
|
+
"desc": "Shorthand button background styling variant"
|
|
17
|
+
},
|
|
18
|
+
"size": {
|
|
19
|
+
"type": "select",
|
|
20
|
+
"options": [
|
|
21
|
+
"sm",
|
|
22
|
+
"md",
|
|
23
|
+
"lg"
|
|
24
|
+
],
|
|
25
|
+
"default": "md",
|
|
26
|
+
"desc": "Vertical padding & font size modifier"
|
|
27
|
+
},
|
|
28
|
+
"expand": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"default": false,
|
|
31
|
+
"desc": "Width layout block stretch (100% parent container width)"
|
|
32
|
+
},
|
|
33
|
+
"href": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"default": "",
|
|
36
|
+
"desc": "Turns the button element into a standard anchor link tag"
|
|
37
|
+
},
|
|
38
|
+
"target": {
|
|
39
|
+
"type": "select",
|
|
40
|
+
"options": [
|
|
41
|
+
"",
|
|
42
|
+
"_blank",
|
|
43
|
+
"_self",
|
|
44
|
+
"_parent",
|
|
45
|
+
"_top"
|
|
46
|
+
],
|
|
47
|
+
"default": "",
|
|
48
|
+
"desc": "Target link viewport target context (when href is set)"
|
|
49
|
+
},
|
|
50
|
+
"disabled": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"default": false,
|
|
53
|
+
"desc": "Locks click events and styles disabled state"
|
|
54
|
+
},
|
|
55
|
+
"loading": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"default": false,
|
|
58
|
+
"desc": "Swaps label with spinner icon while blocking events"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"slots": {
|
|
62
|
+
"default": {
|
|
63
|
+
"type": "text",
|
|
64
|
+
"default": "Click Me",
|
|
65
|
+
"desc": "Default Slot label content text"
|
|
66
|
+
},
|
|
67
|
+
"icon-left": {
|
|
68
|
+
"type": "html",
|
|
69
|
+
"default": "",
|
|
70
|
+
"desc": "Appends inline element/icon to the left side"
|
|
71
|
+
},
|
|
72
|
+
"icon-right": {
|
|
73
|
+
"type": "html",
|
|
74
|
+
"default": "",
|
|
75
|
+
"desc": "Appends inline element/icon to the right side"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"variants": [
|
|
79
|
+
{
|
|
80
|
+
"name": "Primary MD",
|
|
81
|
+
"props": {
|
|
82
|
+
"variant": "primary",
|
|
83
|
+
"size": "md"
|
|
84
|
+
},
|
|
85
|
+
"slots": {
|
|
86
|
+
"default": "Primary Button"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "Secondary MD",
|
|
91
|
+
"props": {
|
|
92
|
+
"variant": "secondary",
|
|
93
|
+
"size": "md"
|
|
94
|
+
},
|
|
95
|
+
"slots": {
|
|
96
|
+
"default": "Secondary Button"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "Success LG",
|
|
101
|
+
"props": {
|
|
102
|
+
"variant": "success",
|
|
103
|
+
"size": "lg"
|
|
104
|
+
},
|
|
105
|
+
"slots": {
|
|
106
|
+
"default": "Success Action"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "Danger SM",
|
|
111
|
+
"props": {
|
|
112
|
+
"variant": "danger",
|
|
113
|
+
"size": "sm"
|
|
114
|
+
},
|
|
115
|
+
"slots": {
|
|
116
|
+
"default": "Danger Trigger"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "Ghost Styling",
|
|
121
|
+
"props": {
|
|
122
|
+
"variant": "ghost"
|
|
123
|
+
},
|
|
124
|
+
"slots": {
|
|
125
|
+
"default": "Ghost Button"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "Text Only link style",
|
|
130
|
+
"props": {
|
|
131
|
+
"variant": "text"
|
|
132
|
+
},
|
|
133
|
+
"slots": {
|
|
134
|
+
"default": "Text Button"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "Disabled State",
|
|
139
|
+
"props": {
|
|
140
|
+
"variant": "primary",
|
|
141
|
+
"disabled": true
|
|
142
|
+
},
|
|
143
|
+
"slots": {
|
|
144
|
+
"default": "Disabled Button"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "Loading State spinner",
|
|
149
|
+
"props": {
|
|
150
|
+
"variant": "primary",
|
|
151
|
+
"loading": true
|
|
152
|
+
},
|
|
153
|
+
"slots": {
|
|
154
|
+
"default": "Loading Button"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "Expanded full width",
|
|
159
|
+
"props": {
|
|
160
|
+
"variant": "primary",
|
|
161
|
+
"expand": true
|
|
162
|
+
},
|
|
163
|
+
"slots": {
|
|
164
|
+
"default": "Expanded Block Button"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"edgeCases": [
|
|
169
|
+
{
|
|
170
|
+
"name": "Super Long Text Wrapping",
|
|
171
|
+
"props": {
|
|
172
|
+
"variant": "primary"
|
|
173
|
+
},
|
|
174
|
+
"slots": {
|
|
175
|
+
"default": "This is a button containing a ridiculously long text content that will test wrapping dynamics and grid boundaries"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "HTML Injection Safe Verification",
|
|
180
|
+
"props": {
|
|
181
|
+
"variant": "primary"
|
|
182
|
+
},
|
|
183
|
+
"slots": {
|
|
184
|
+
"default": "<b>Formatted HTML</b> <script>console.log(\"XSS block test\")</script>"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "Icon-only Button",
|
|
189
|
+
"props": {
|
|
190
|
+
"variant": "primary"
|
|
191
|
+
},
|
|
192
|
+
"slots": {
|
|
193
|
+
"default": "",
|
|
194
|
+
"icon-left": "<span style=\"font-size:16px\">🔥</span>"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|