desy-html 7.3.1 → 8.0.0
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/docs/_global.foot.njk +0 -23
- package/docs/_global.head.njk +13 -331
- package/docs/_macro.example-render.njk +40 -15
- package/docs/_macro.render-caller.njk +2 -2
- package/docs/_macro.show-code-from-file.njk +57 -0
- package/docs/_template.examples.njk +1 -1
- package/docs/estilos.html +15 -14
- package/docs/index.html +12 -0
- package/gulpfile.js +18 -3
- package/package.json +5 -2
- package/src/css/styles.css +1 -1
- package/src/js/filters/filter-caller.js +6 -0
- package/src/js/filters/highlight.js +14 -0
- package/src/js/filters/index.js +10 -0
- package/src/js/globals/get-html-code-from-example.js +29 -0
- package/src/js/globals/get-html-code-from-file.js +26 -0
- package/src/js/globals/get-nunjucks-code-from-example.js +32 -0
- package/src/js/globals/get-nunjucks-code-from-file.js +24 -0
- package/src/js/globals/index.js +14 -0
- package/src/js/index.js +21 -0
- package/src/templates/components/accordion/_examples.accordion.njk +108 -104
- package/src/templates/components/accordion-history/_examples.accordion-history.njk +116 -112
- package/src/templates/components/alert/_examples.alert.njk +10 -6
- package/src/templates/components/breadcrumbs/_examples.breadcrumbs.njk +52 -52
- package/src/templates/components/button/_examples.button.njk +71 -71
- package/src/templates/components/button-loader/_examples.button-loader.njk +72 -72
- package/src/templates/components/card/_examples.card.njk +43 -43
- package/src/templates/components/character-count/_examples.character-count.njk +35 -33
- package/src/templates/components/checkboxes/_examples.checkboxes.njk +200 -201
- package/src/templates/components/collapsible/_examples.collapsible.njk +24 -9
- package/src/templates/components/date-input/_examples.date-input.njk +14 -14
- package/src/templates/components/description-list/_examples.description-list.njk +45 -44
- package/src/templates/components/details/_examples.details.njk +17 -16
- package/src/templates/components/dialog/_examples.dialog.njk +5 -6
- package/src/templates/components/dropdown/_examples.dropdown.njk +34 -35
- package/src/templates/components/error-message/_examples.error-message.njk +8 -2
- package/src/templates/components/error-summary/_examples.error-summary.njk +19 -19
- package/src/templates/components/fieldset/_examples.fieldset.njk +27 -25
- package/src/templates/components/file-upload/_examples.file-upload.njk +7 -7
- package/src/templates/components/footer/_examples.footer.njk +24 -24
- package/src/templates/components/footer/_template.footer.njk +1 -1
- package/src/templates/components/header/_examples.header.njk +12 -12
- package/src/templates/components/header-mini/_examples.header-mini.njk +5 -5
- package/src/templates/components/hint/_examples.hint.njk +4 -4
- package/src/templates/components/input/_examples.input.njk +68 -65
- package/src/templates/components/input-group/_examples.input-group.njk +15 -17
- package/src/templates/components/item/_examples.item.njk +21 -20
- package/src/templates/components/label/_examples.label.njk +11 -9
- package/src/templates/components/links-list/_examples.links-list.njk +34 -34
- package/src/templates/components/listbox/_examples.listbox.njk +146 -146
- package/src/templates/components/media-object/_examples.media-object.njk +7 -7
- package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +54 -54
- package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +65 -66
- package/src/templates/components/menu-vertical/_examples.menu-vertical.njk +71 -71
- package/src/templates/components/menubar/_examples.menubar.njk +42 -42
- package/src/templates/components/modal/_examples.modal.njk +21 -15
- package/src/templates/components/modal/_template.modal.njk +5 -5
- package/src/templates/components/nav/_examples.nav.njk +66 -66
- package/src/templates/components/notification/_examples.notification.njk +14 -13
- package/src/templates/components/pagination/_examples.pagination.njk +7 -6
- package/src/templates/components/pill/_examples.pill.njk +29 -29
- package/src/templates/components/radios/_examples.radios.njk +153 -142
- package/src/templates/components/searchbar/_examples.searchbar.njk +13 -13
- package/src/templates/components/select/_examples.select.njk +63 -63
- package/src/templates/components/skip-link/_examples.skip-link.njk +4 -4
- package/src/templates/components/spinner/_examples.spinner.njk +11 -11
- package/src/templates/components/status/_examples.status.njk +4 -4
- package/src/templates/components/status-item/_examples.status-item.njk +21 -21
- package/src/templates/components/table/_examples.table.njk +58 -56
- package/src/templates/components/table-advanced/_examples.table-advanced.njk +83 -83
- package/src/templates/components/tabs/_examples.tabs.njk +30 -29
- package/src/templates/components/textarea/_examples.textarea.njk +28 -27
- package/src/templates/components/toggle/_examples.toggle.njk +10 -11
- package/src/templates/components/tooltip/_examples.tooltip.njk +9 -9
- package/src/templates/components/tree/_examples.tree.njk +58 -57
- package/src/js/prism/clipboard.min.js +0 -7
- package/src/js/prism/prism-copy-to-clipboard.min.js +0 -1
- package/src/js/prism/prism-normalize-whitespace.min.js +0 -1
- package/src/js/prism/prism-toolbar.min.js +0 -1
- package/src/js/prism/prism-twig.min.js +0 -1
- package/src/js/prism/prism-yaml.min.js +0 -1
- package/src/js/prism/prism.min.js +0 -1
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
{% set exampleComponent = "breadcrumbs" %}
|
|
2
2
|
{% set examples = [
|
|
3
3
|
{
|
|
4
|
-
"name": "
|
|
4
|
+
"name": "por defecto",
|
|
5
5
|
"data": {
|
|
6
6
|
"items": [
|
|
7
7
|
{
|
|
8
|
-
"text": "
|
|
8
|
+
"text": "Sección",
|
|
9
9
|
"href": "/section"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
|
-
"text": "Sub-
|
|
12
|
+
"text": "Sub-sección",
|
|
13
13
|
"href": "/section/sub-section"
|
|
14
14
|
}
|
|
15
15
|
]
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"name": "
|
|
19
|
+
"name": "con 1 sólo nivel",
|
|
20
20
|
"data": {
|
|
21
21
|
"items": [
|
|
22
22
|
{
|
|
23
|
-
"text": "
|
|
23
|
+
"text": "Sección",
|
|
24
24
|
"href": "/section"
|
|
25
25
|
}
|
|
26
26
|
]
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
"name": "
|
|
30
|
+
"name": "con múltiples niveles",
|
|
31
31
|
"data": {
|
|
32
32
|
"items": [
|
|
33
33
|
{
|
|
34
|
-
"text": "
|
|
34
|
+
"text": "Inicio",
|
|
35
35
|
"href": "/"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
"text": "
|
|
38
|
+
"text": "Sección",
|
|
39
39
|
"href": "/section"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
"text": "Sub-
|
|
42
|
+
"text": "Sub-sección",
|
|
43
43
|
"href": "/section/sub-section"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
"text": "Sub Sub-
|
|
46
|
+
"text": "Sub Sub-sección",
|
|
47
47
|
"href": "/section/sub-section/sub-sub-section"
|
|
48
48
|
}
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
"name": "
|
|
53
|
+
"name": "con cadenas muy largas",
|
|
54
54
|
"data": {
|
|
55
55
|
"items": [
|
|
56
56
|
{
|
|
@@ -73,151 +73,151 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
"name": "
|
|
76
|
+
"name": "Item a mitad sin href",
|
|
77
77
|
"data": {
|
|
78
78
|
"items": [
|
|
79
79
|
{
|
|
80
|
-
"text": "
|
|
80
|
+
"text": "Inicio",
|
|
81
81
|
"href": "/"
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"text": "Section"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
"text": "Sub-
|
|
87
|
+
"text": "Sub-sección",
|
|
88
88
|
"href": "/section/sub-section"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
"text": "Sub Sub-
|
|
91
|
+
"text": "Sub Sub-sección",
|
|
92
92
|
"href": "/section/sub-section/sub-sub-section"
|
|
93
93
|
}
|
|
94
94
|
]
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
"name": "
|
|
98
|
+
"name": "con la última miga de pan como página actual con href",
|
|
99
99
|
"data": {
|
|
100
100
|
"items": [
|
|
101
101
|
{
|
|
102
|
-
"text": "
|
|
102
|
+
"text": "Inicio",
|
|
103
103
|
"href": "/"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
"text": "
|
|
107
|
-
"href": "/
|
|
106
|
+
"text": "Trámites por tema",
|
|
107
|
+
"href": "/tramites/tema"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
"text": "
|
|
111
|
-
"href": "/
|
|
110
|
+
"text": "Vivienda",
|
|
111
|
+
"href": "/tramites/tema/vivienda"
|
|
112
112
|
}
|
|
113
113
|
]
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
"name": "
|
|
117
|
+
"name": "con la última miga de pan como página actual sin href",
|
|
118
118
|
"data": {
|
|
119
119
|
"items": [
|
|
120
120
|
{
|
|
121
|
-
"text": "
|
|
121
|
+
"text": "Inicio",
|
|
122
122
|
"href": "/"
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
|
-
"text": "
|
|
126
|
-
"href": "/
|
|
125
|
+
"text": "Trámites por tema",
|
|
126
|
+
"href": "/tramites/tema"
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
|
-
"text": "
|
|
129
|
+
"text": "Vivienda"
|
|
130
130
|
}
|
|
131
131
|
]
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
"name": "
|
|
136
|
-
"description": "
|
|
135
|
+
"name": "con colapsar en móvil",
|
|
136
|
+
"description": "Mirar en anchuras pequeñas para ver cómo se colapsan los items intermedios y sólo se muestran el primero y último.",
|
|
137
137
|
"data": {
|
|
138
138
|
"collapseOnMobile": true,
|
|
139
139
|
"items": [
|
|
140
140
|
{
|
|
141
|
-
"text": "
|
|
141
|
+
"text": "Inicio",
|
|
142
142
|
"href": "/"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
|
-
"text": "
|
|
146
|
-
"href": "/
|
|
145
|
+
"text": "Trámites por tema",
|
|
146
|
+
"href": "/tramites/tema"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
|
-
"text": "
|
|
150
|
-
"href": "/
|
|
149
|
+
"text": "Vivienda",
|
|
150
|
+
"href": "/tramites/tema/vivienda"
|
|
151
151
|
}
|
|
152
152
|
]
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"name": "
|
|
156
|
+
"name": "con botón atrás",
|
|
157
157
|
"data": {
|
|
158
158
|
"hasBackButton": true,
|
|
159
159
|
"items": [
|
|
160
160
|
{
|
|
161
|
-
"text": "
|
|
161
|
+
"text": "Inicio",
|
|
162
162
|
"href": "/"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
|
-
"text": "
|
|
166
|
-
"href": "/
|
|
165
|
+
"text": "Trámites por tema",
|
|
166
|
+
"href": "/tramites/tema"
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
|
-
"text": "
|
|
169
|
+
"text": "Vivienda"
|
|
170
170
|
}
|
|
171
171
|
]
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
|
-
"name": "
|
|
176
|
-
"description": "
|
|
175
|
+
"name": "con botón atrás y colapsar en móvil",
|
|
176
|
+
"description": "Mirar en anchuras pequeñas para ver cómo se colapsan los items intermedios y sólo se muestran el primero y último.",
|
|
177
177
|
"data": {
|
|
178
178
|
"collapseOnMobile": true,
|
|
179
179
|
"hasBackButton": true,
|
|
180
180
|
"items": [
|
|
181
181
|
{
|
|
182
|
-
"text": "
|
|
182
|
+
"text": "Inicio",
|
|
183
183
|
"href": "/"
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
|
-
"text": "
|
|
187
|
-
"href": "/
|
|
186
|
+
"text": "Trámites por tema",
|
|
187
|
+
"href": "/tramites/tema"
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
|
-
"text": "
|
|
191
|
-
"href": "/
|
|
190
|
+
"text": "Vivienda",
|
|
191
|
+
"href": "/tramites/tema/vivienda"
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
|
-
"text": "
|
|
195
|
-
"href": "/
|
|
194
|
+
"text": "Urbanismo",
|
|
195
|
+
"href": "/tramites/tema/vivienda/urbanismo"
|
|
196
196
|
}
|
|
197
197
|
]
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
|
-
"name": "
|
|
201
|
+
"name": "con botón atrás y la clase modificadora para truncar texto",
|
|
202
202
|
"data": {
|
|
203
203
|
"hasBackButton": true,
|
|
204
204
|
"classes": "c-breadcrumbs--truncated",
|
|
205
205
|
"items": [
|
|
206
206
|
{
|
|
207
207
|
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi volutpat non augue id hendrerit. Cras at iaculis sem, eu posuere tortor",
|
|
208
|
-
"href": "
|
|
208
|
+
"href": "#"
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi volutpat non augue id hendrerit. Cras at iaculis sem, eu posuere tortor",
|
|
212
|
-
"href": "
|
|
212
|
+
"href": "#"
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi volutpat non augue id hendrerit. Cras at iaculis sem, eu posuere tortor",
|
|
216
|
-
"href": "
|
|
216
|
+
"href": "#"
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi volutpat non augue id hendrerit. Cras at iaculis sem, eu posuere tortor",
|
|
220
|
-
"href": "
|
|
220
|
+
"href": "#"
|
|
221
221
|
}
|
|
222
222
|
]
|
|
223
223
|
}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
{% set exampleComponent = "button" %}
|
|
2
2
|
{% set examples = [
|
|
3
3
|
{
|
|
4
|
-
"name": "
|
|
4
|
+
"name": "por defecto",
|
|
5
5
|
"data": {
|
|
6
|
-
"text": "
|
|
6
|
+
"text": "Por defecto"
|
|
7
7
|
}
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
|
-
"name": "
|
|
11
|
-
"description":
|
|
10
|
+
"name": "por defecto con estado activo",
|
|
11
|
+
"description": 'Simula activar la pseudoclase de CSS <code>:active</code>',
|
|
12
12
|
"data": {
|
|
13
13
|
"name": "active",
|
|
14
|
-
"text": "
|
|
14
|
+
"text": "Activo",
|
|
15
15
|
"classes": "ds-active"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"name": "
|
|
20
|
-
"description":
|
|
19
|
+
"name": "por defecto con estado hover",
|
|
20
|
+
"description": 'Simula activar la pseudoclase de CSS <code>:hover</code>',
|
|
21
21
|
"data": {
|
|
22
22
|
"name": "hover",
|
|
23
|
-
"text": "
|
|
23
|
+
"text": "Hover",
|
|
24
24
|
"classes": "ds-hover"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"name": "
|
|
29
|
-
"description":
|
|
28
|
+
"name": "por defecto con estado focus",
|
|
29
|
+
"description": 'Simula activar la pseudoclase de CSS <code>:focus</code>',
|
|
30
30
|
"data": {
|
|
31
31
|
"name": "focus",
|
|
32
|
-
"text": "
|
|
32
|
+
"text": "Focus",
|
|
33
33
|
"classes": "ds-focus"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
"name": "
|
|
37
|
+
"name": "por defecto deshabilitado",
|
|
38
38
|
"data": {
|
|
39
|
-
"text": "
|
|
39
|
+
"text": "Deshabilitado",
|
|
40
40
|
"disabled": true
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
"name": "
|
|
44
|
+
"name": "primario",
|
|
45
45
|
"data": {
|
|
46
|
-
"text": "
|
|
46
|
+
"text": "Primario",
|
|
47
47
|
"classes": "c-button--primary"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
"name": "
|
|
52
|
-
"description":
|
|
51
|
+
"name": "primario con estado activo",
|
|
52
|
+
"description": 'Simula activar la pseudoclase de CSS <code>:active</code>',
|
|
53
53
|
"data": {
|
|
54
54
|
"name": "active",
|
|
55
|
-
"text": "
|
|
55
|
+
"text": "Activo",
|
|
56
56
|
"classes": "c-button--primary ds-active"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
"name": "
|
|
61
|
-
"description":
|
|
60
|
+
"name": "primario con estado hover",
|
|
61
|
+
"description": 'Simula activar la pseudoclase de CSS <code>:hover</code>',
|
|
62
62
|
"data": {
|
|
63
63
|
"name": "hover",
|
|
64
64
|
"text": "Hover",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
"name": "
|
|
70
|
-
"description":
|
|
69
|
+
"name": "primario con estado focus",
|
|
70
|
+
"description": 'Simula activar la pseudoclase de CSS <code>:focus</code>',
|
|
71
71
|
"data": {
|
|
72
72
|
"name": "focus",
|
|
73
73
|
"text": "Focus",
|
|
@@ -75,32 +75,32 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"name": "
|
|
78
|
+
"name": "primario deshabilitado",
|
|
79
79
|
"data": {
|
|
80
|
-
"text": "
|
|
80
|
+
"text": "Deshabilitado",
|
|
81
81
|
"disabled": true,
|
|
82
82
|
"classes": "c-button--primary"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
"name": "
|
|
86
|
+
"name": "alerta",
|
|
87
87
|
"data": {
|
|
88
|
-
"text": "
|
|
88
|
+
"text": "Alerta",
|
|
89
89
|
"classes": "c-button--alert"
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
"name": "
|
|
94
|
-
"description":
|
|
93
|
+
"name": "alerta con estado activo",
|
|
94
|
+
"description": 'Simula activar la pseudoclase de CSS <code>:active</code>',
|
|
95
95
|
"data": {
|
|
96
96
|
"name": "active",
|
|
97
|
-
"text": "
|
|
97
|
+
"text": "Activo",
|
|
98
98
|
"classes": "c-button--alert ds-active"
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
"name": "
|
|
103
|
-
"description":
|
|
102
|
+
"name": "alerta con estado hover",
|
|
103
|
+
"description": 'Simula activar la pseudoclase de CSS <code>:hover</code>',
|
|
104
104
|
"data": {
|
|
105
105
|
"name": "hover",
|
|
106
106
|
"text": "Hover",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
"name": "
|
|
112
|
-
"description":
|
|
111
|
+
"name": "alerta con estado focus",
|
|
112
|
+
"description": 'Simula activar la pseudoclase de CSS <code>:focus</code>',
|
|
113
113
|
"data": {
|
|
114
114
|
"name": "focus",
|
|
115
115
|
"text": "Focus",
|
|
@@ -117,32 +117,32 @@
|
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
"name": "
|
|
120
|
+
"name": "alerta deshabilitado",
|
|
121
121
|
"data": {
|
|
122
|
-
"text": "
|
|
122
|
+
"text": "Deshabilitado",
|
|
123
123
|
"disabled": true,
|
|
124
124
|
"classes": "c-button--alert"
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
|
-
"name": "
|
|
128
|
+
"name": "transparente",
|
|
129
129
|
"data": {
|
|
130
|
-
"text": "
|
|
130
|
+
"text": "Transparente",
|
|
131
131
|
"classes": "c-button--transparent"
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
"name": "
|
|
136
|
-
"description":
|
|
135
|
+
"name": "transparente con estado activo",
|
|
136
|
+
"description": 'Simula activar la pseudoclase de CSS <code>:active</code>',
|
|
137
137
|
"data": {
|
|
138
138
|
"name": "active",
|
|
139
|
-
"text": "
|
|
139
|
+
"text": "Activo",
|
|
140
140
|
"classes": "c-button--transparent ds-active"
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
|
-
"name": "
|
|
145
|
-
"description":
|
|
144
|
+
"name": "transparente con estado hover",
|
|
145
|
+
"description": 'Simula activar la pseudoclase de CSS <code>:hover</code>',
|
|
146
146
|
"data": {
|
|
147
147
|
"name": "hover",
|
|
148
148
|
"text": "Hover",
|
|
@@ -150,8 +150,8 @@
|
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
|
-
"name": "
|
|
154
|
-
"description":
|
|
153
|
+
"name": "transparente con estado focus",
|
|
154
|
+
"description": 'Simula activar la pseudoclase de CSS <code>:focus</code>',
|
|
155
155
|
"data": {
|
|
156
156
|
"name": "focus",
|
|
157
157
|
"text": "Focus",
|
|
@@ -159,67 +159,67 @@
|
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
|
-
"name": "
|
|
162
|
+
"name": "transparente deshabilitado",
|
|
163
163
|
"data": {
|
|
164
|
-
"text": "
|
|
164
|
+
"text": "Deshabilitado",
|
|
165
165
|
"disabled": true,
|
|
166
166
|
"classes": "c-button--transparent"
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
|
-
"name": "
|
|
170
|
+
"name": "peque",
|
|
171
171
|
"data": {
|
|
172
|
-
"text": "
|
|
172
|
+
"text": "Peque",
|
|
173
173
|
"classes": "c-button--sm"
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
|
-
"name": "
|
|
177
|
+
"name": "peque tiene selección",
|
|
178
178
|
"data": {
|
|
179
|
-
"text": "
|
|
179
|
+
"text": "Peque tiene selección",
|
|
180
180
|
"classes": "c-button--sm c-button--has-selection"
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
|
-
"name": "
|
|
184
|
+
"name": "enlace",
|
|
185
185
|
"data": {
|
|
186
|
-
"text": "
|
|
186
|
+
"text": "Botón enlace",
|
|
187
187
|
"href": "/"
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
|
-
"name": "
|
|
191
|
+
"name": "botón enlace con target blank",
|
|
192
192
|
"data": {
|
|
193
|
-
"text": "
|
|
193
|
+
"text": "Botón enlace con target",
|
|
194
194
|
"href": "http://www.google.com",
|
|
195
195
|
"target": "_blank"
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
|
-
"name": "
|
|
199
|
+
"name": "enlace deshabilitado",
|
|
200
200
|
"data": {
|
|
201
|
-
"text": "
|
|
201
|
+
"text": "Botón enlace deshabilitado",
|
|
202
202
|
"href": "/",
|
|
203
203
|
"disabled": true
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
|
-
"name": "
|
|
207
|
+
"name": "botón con icono a la derecha",
|
|
208
208
|
"data": {
|
|
209
|
-
"html": '
|
|
209
|
+
"html": 'Botón con icono<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center ml-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z" fill="currentColor"/></svg>',
|
|
210
210
|
"href": "/"
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
|
-
"name": "
|
|
214
|
+
"name": "botón con icono a la izquierda",
|
|
215
215
|
"data": {
|
|
216
|
-
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center mr-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z" fill="currentColor"/></svg>
|
|
216
|
+
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center mr-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z" fill="currentColor"/></svg>Botón con icono',
|
|
217
217
|
"href": "/"
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
|
-
"name": "
|
|
222
|
-
"description": "
|
|
221
|
+
"name": "botón atrás",
|
|
222
|
+
"description": "Transparente con icono a la izquierda",
|
|
223
223
|
"data": {
|
|
224
224
|
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center mr-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M37.93 27.93l-35 35a10 10 0 000 14.14l35 35a10 10 0 1014.14-14.14L38.41 84.27A2.5 2.5 0 0140.18 80H130a10 10 0 000-20H40.18a2.5 2.5 0 01-1.77-4.27l13.66-13.66a10 10 0 00-14.14-14.14z" fill="currentColor"></path></svg>Volver',
|
|
225
225
|
"classes": "c-button--transparent",
|
|
@@ -227,8 +227,8 @@
|
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
|
-
"name": "
|
|
231
|
-
"description": "
|
|
230
|
+
"name": "botón adelante",
|
|
231
|
+
"description": "Transparente con icono a la derecha",
|
|
232
232
|
"data": {
|
|
233
233
|
"html": 'Ver más<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center ml-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z" fill="currentColor"></path></svg>',
|
|
234
234
|
"classes": "c-button--transparent",
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
}
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
|
-
"name": "
|
|
239
|
+
"name": "botón sólo con icono",
|
|
240
240
|
"data": {
|
|
241
241
|
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center my-1" aria-hidden="true" focusable="false" width="1em" height="1em" role="img" aria-label="Borrar"><path d="M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z" fill="currentColor"/></svg>',
|
|
242
242
|
"href": "/",
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
|
-
"name": "button
|
|
247
|
+
"name": "button peque sólo con icono",
|
|
248
248
|
"data": {
|
|
249
249
|
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center my-1" aria-hidden="true" focusable="false" width="1em" height="1em" role="img" aria-label="Borrar"><path d="M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z" fill="currentColor"/></svg>',
|
|
250
250
|
"href": "/",
|
|
@@ -256,21 +256,21 @@
|
|
|
256
256
|
"data": {
|
|
257
257
|
"element": "input",
|
|
258
258
|
"name": "send-form",
|
|
259
|
-
"text": "
|
|
259
|
+
"text": "Enviar"
|
|
260
260
|
}
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
|
-
"name": "input
|
|
263
|
+
"name": "input deshabilitado",
|
|
264
264
|
"data": {
|
|
265
265
|
"element": "input",
|
|
266
|
-
"text": "
|
|
266
|
+
"text": "Enviar",
|
|
267
267
|
"disabled": true
|
|
268
268
|
}
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
|
-
"name": "
|
|
271
|
+
"name": "prevenir doble click",
|
|
272
272
|
"data": {
|
|
273
|
-
"text": "
|
|
273
|
+
"text": "Enviar",
|
|
274
274
|
"preventDoubleClick": true
|
|
275
275
|
}
|
|
276
276
|
}
|