desy-html 11.1.2 → 12.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 +1 -1
- package/docs/_macro.example-render.njk +62 -18
- package/docs/ds/_ds.example.botones-primary-lg.njk +265 -0
- package/docs/ds/_ds.example.dropdowns-variaciones.njk +37 -0
- package/docs/ds/_ds.example.listbox-variaciones.njk +137 -0
- package/docs/ds/_ds.example.tabs.njk +44 -0
- package/docs/ds/_ds.example.textos.njk +5 -0
- package/docs/ds/_ds.section.botones.njk +5 -0
- package/docs/ds/_ds.section.textos.njk +11 -1
- package/docs/index.html +19 -0
- package/docs/pagina-prueba.html +2 -2
- package/package.json +3 -3
- package/src/css/component.text.css +33 -26
- package/src/js/aria/linksList.js +42 -0
- package/src/js/aria/treeitem.js +9 -2
- package/src/js/aria/utils.js +80 -15
- package/src/js/desy-html.js +249 -196
- package/src/js/filters/filter-caller.js +4 -2
- package/src/js/filters/filter-escape-ltgt.js +7 -0
- package/src/js/filters/filter-quotes.js +50 -0
- package/src/js/filters/filter-version.js +8 -0
- package/src/js/filters/index.js +7 -1
- package/src/js/index.js +2 -0
- package/src/templates/components/accordion/_examples.accordion.njk +107 -107
- package/src/templates/components/accordion/_template.accordion.njk +5 -5
- package/src/templates/components/accordion-history/_examples.accordion-history.njk +119 -119
- package/src/templates/components/accordion-history/_template.accordion-history.njk +11 -11
- package/src/templates/components/alert/_examples.alert.njk +2 -2
- package/src/templates/components/breadcrumbs/_examples.breadcrumbs.njk +4 -4
- package/src/templates/components/breadcrumbs/_template.breadcrumbs.njk +4 -4
- package/src/templates/components/button/_examples.button.njk +28 -21
- package/src/templates/components/button/_styles.button.css +7 -0
- package/src/templates/components/button/_template.button.njk +2 -2
- package/src/templates/components/button-loader/_examples.button-loader.njk +25 -18
- package/src/templates/components/button-loader/_styles.button-loader.css +6 -0
- package/src/templates/components/button-loader/_template.button-loader.njk +2 -2
- package/src/templates/components/card/_examples.card.njk +3 -3
- package/src/templates/components/card/_template.card.njk +4 -4
- package/src/templates/components/character-count/_examples.character-count.njk +2 -2
- package/src/templates/components/checkboxes/_examples.checkboxes.njk +6 -6
- package/src/templates/components/checkboxes/_template.checkboxes.njk +2 -2
- package/src/templates/components/collapsible/_examples.collapsible.njk +4 -4
- package/src/templates/components/collapsible/_template.collapsible.njk +1 -1
- package/src/templates/components/date-input/_template.date-input.njk +1 -1
- package/src/templates/components/datepicker/_examples.datepicker.njk +45 -62
- package/src/templates/components/datepicker/_styles.datepicker.css +4 -0
- package/src/templates/components/datepicker/_template.datepicker.njk +10 -2
- package/src/templates/components/description-list/_examples.description-list.njk +3 -3
- package/src/templates/components/description-list/_template.description-list.njk +2 -2
- package/src/templates/components/details/_examples.details.njk +3 -3
- package/src/templates/components/details/_template.details.njk +1 -1
- package/src/templates/components/dialog/_examples.dialog.njk +4 -4
- package/src/templates/components/dropdown/_examples.dropdown.njk +38 -16
- package/src/templates/components/dropdown/_styles.dropdown.css +7 -0
- package/src/templates/components/dropdown/_template.dropdown.njk +1 -1
- package/src/templates/components/error-message/_examples.error-message.njk +1 -1
- package/src/templates/components/error-message/_template.error-message.njk +1 -1
- package/src/templates/components/error-summary/_template.error-summary.njk +2 -2
- package/src/templates/components/fieldset/_examples.fieldset.njk +3 -3
- package/src/templates/components/fieldset/_template.fieldset.njk +7 -7
- package/src/templates/components/footer/_examples.footer.njk +32 -32
- package/src/templates/components/footer/_template.footer.njk +6 -6
- package/src/templates/components/header/_examples.header.njk +14 -8
- package/src/templates/components/header/_template.header.header__navigation.njk +2 -2
- package/src/templates/components/header/_template.header.header__offcanvasButton.njk +1 -1
- package/src/templates/components/header/_template.header.header__subnav.njk +1 -1
- package/src/templates/components/header/_template.header.njk +2 -2
- package/src/templates/components/header-advanced/_examples.header-advanced.njk +14 -8
- package/src/templates/components/header-advanced/_template.header-advanced.njk +3 -3
- package/src/templates/components/header-mini/_examples.header-mini.njk +3 -3
- package/src/templates/components/header-mini/_template.header-mini.njk +2 -2
- package/src/templates/components/hint/_examples.hint.njk +1 -1
- package/src/templates/components/hint/_template.hint.njk +1 -1
- package/src/templates/components/input/_examples.input.njk +7 -7
- package/src/templates/components/input-group/_examples.input-group.njk +1 -1
- package/src/templates/components/input-group/_template.input-group.njk +1 -1
- package/src/templates/components/item/_examples.item.njk +23 -23
- package/src/templates/components/item/_template.item.njk +9 -9
- package/src/templates/components/label/_examples.label.njk +2 -2
- package/src/templates/components/label/_template.label.njk +1 -1
- package/src/templates/components/links-list/_examples.links-list.njk +54 -34
- package/src/templates/components/links-list/_template.links-list.njk +15 -15
- package/src/templates/components/listbox/_examples.listbox.njk +52 -17
- package/src/templates/components/listbox/_styles.listbox.css +7 -0
- package/src/templates/components/listbox/_template.listbox.njk +5 -5
- package/src/templates/components/media-object/_examples.media-object.njk +5 -5
- package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +16 -16
- package/src/templates/components/menu-horizontal/_template.menu-horizontal.njk +2 -2
- package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +93 -9
- package/src/templates/components/menu-navigation/_styles.menu-navigation.css +7 -0
- package/src/templates/components/menu-navigation/_template.menu-navigation.njk +4 -4
- package/src/templates/components/menu-vertical/_examples.menu-vertical.njk +8 -8
- package/src/templates/components/menu-vertical/_template.menu-vertical.njk +9 -9
- package/src/templates/components/menubar/_examples.menubar.njk +169 -15
- package/src/templates/components/menubar/_styles.menubar.css +8 -1
- package/src/templates/components/menubar/_template.menubar.njk +7 -7
- package/src/templates/components/modal/_examples.modal.njk +18 -18
- package/src/templates/components/modal/_template.modal.njk +8 -8
- package/src/templates/components/nav/_examples.nav.njk +7 -7
- package/src/templates/components/nav/_template.nav.njk +2 -2
- package/src/templates/components/notification/_examples.notification.njk +9 -9
- package/src/templates/components/notification/_template.notification.njk +11 -11
- package/src/templates/components/pagination/_examples.pagination.njk +6 -6
- package/src/templates/components/pagination/_template.pagination.njk +3 -3
- package/src/templates/components/pill/_examples.pill.njk +8 -8
- package/src/templates/components/pill/_template.pill.njk +3 -3
- package/src/templates/components/radios/_examples.radios.njk +2 -2
- package/src/templates/components/radios/_template.radios.njk +1 -1
- package/src/templates/components/select/_examples.select.njk +1 -1
- package/src/templates/components/skip-link/_examples.skip-link.njk +1 -1
- package/src/templates/components/skip-link/_template.skip-link.njk +1 -1
- package/src/templates/components/status/_examples.status.njk +1 -1
- package/src/templates/components/status/_template.status.njk +1 -1
- package/src/templates/components/status-item/_examples.status-item.njk +15 -15
- package/src/templates/components/status-item/_template.status-item.njk +3 -3
- package/src/templates/components/table/_examples.table.njk +3 -3
- package/src/templates/components/table/_template.table.njk +2 -2
- package/src/templates/components/table-advanced/_examples.table-advanced.njk +96 -6
- package/src/templates/components/table-advanced/_template.table-advanced.njk +8 -8
- package/src/templates/components/table-advanced/params.table-advanced.yaml +4 -0
- package/src/templates/components/tabs/_examples.tabs.njk +57 -14
- package/src/templates/components/tabs/_styles.tabs.css +31 -8
- package/src/templates/components/tabs/_template.tabs.njk +8 -8
- package/src/templates/components/tabs/params.tabs.yaml +4 -0
- package/src/templates/components/textarea/_examples.textarea.njk +2 -2
- package/src/templates/components/toggle/_examples.toggle.njk +29 -29
- package/src/templates/components/toggle/_template.toggle.njk +2 -2
- package/src/templates/components/tooltip/_examples.tooltip.njk +11 -11
- package/src/templates/components/tooltip/_template.tooltip.njk +3 -3
- package/src/templates/components/tree/_examples.tree.njk +112 -47
- package/src/templates/components/tree/_template.tree.njk +6 -6
- package/src/templates/includes/_test-include.njk +2 -2
- package/src/templates/pages/_page.footer.njk +1 -1
- package/src/templates/pages/_template.logged-selector-subheader.njk +1 -1
package/docs/_global.foot.njk
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% from "components/footer/_macro.footer.njk" import componentFooter %}
|
|
2
2
|
{{ componentFooter({
|
|
3
3
|
"meta": {
|
|
4
|
-
"html":
|
|
4
|
+
"html": "Creado por <a href='https://sda.aragon.es/' class='c-link c-link--neutral'>SDA Servicios Digitales de Aragón</a>"
|
|
5
5
|
},
|
|
6
6
|
"classes": "lg:mt-48"
|
|
7
7
|
}) }}
|
|
@@ -117,29 +117,72 @@ import componentTree %}
|
|
|
117
117
|
|
|
118
118
|
<div>
|
|
119
119
|
<h1 class="c-h1">{{ exampleComponent | capitalize }}</h1>
|
|
120
|
-
{%
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
120
|
+
{% from "_macro.load-component-params.njk" import loadComponentParams %}
|
|
121
|
+
<div class="sr-only">
|
|
122
|
+
<h2 class="mb-sm font-bold">Parámetros Nunjucks del componente<span class="sr-only">: "{{ exampleComponent | capitalize }}". Versión: {{ '' | filterversion }}</span></h2>
|
|
123
|
+
<p>Los parámetros de Nunjucks para este componente están dentro de la siguiente etiqueta code en formato yaml.</p>
|
|
124
|
+
<pre>
|
|
125
|
+
<code class="language-yaml hljs text-sm">{{ loadComponentParams(exampleComponent) | filterescapeltgt }}</code>
|
|
126
|
+
</pre>
|
|
127
|
+
</div>
|
|
128
|
+
<div aria-hidden="true">
|
|
129
|
+
{% call componentDetails({
|
|
130
|
+
"summary": {
|
|
131
|
+
"html": "Mostrar parámetros",
|
|
132
|
+
"classes": "c-link text-sm"
|
|
133
|
+
}
|
|
134
|
+
}) %}
|
|
135
|
+
<div class="c-markup">
|
|
136
|
+
<div class="py-base">
|
|
137
|
+
<h2 class="mb-sm font-bold">Parámetros Nunjucks del componente<span class="sr-only">: "{{ exampleComponent | capitalize }}"</span></h2>
|
|
130
138
|
<pre>
|
|
131
139
|
<code class="language-yaml hljs text-sm">{{ loadComponentParams(exampleComponent) | highlight("yaml") | safe }}
|
|
132
140
|
</code>
|
|
133
141
|
</pre>
|
|
142
|
+
</div>
|
|
134
143
|
</div>
|
|
135
|
-
|
|
136
|
-
|
|
144
|
+
{% endcall %}
|
|
145
|
+
</div>
|
|
137
146
|
</div>
|
|
138
147
|
{% for example in examples %}
|
|
139
|
-
<
|
|
148
|
+
<article class="grid grid-cols-1 gap-x-xl mt-xl">
|
|
140
149
|
<div class="pt-xl">
|
|
141
150
|
<h3 id="{{ example.name |filterslugify }}" class="c-h3 group">{{ example.name | capitalize }} <a href="#{{ example.name |filterslugify }}" class="hidden font-semibold text-neutral-base underline group-hover:inline-block">#</a></h3>
|
|
142
151
|
<p class="c-paragraph-base mb-0">{{ example.description | safe }}</p>
|
|
152
|
+
<div class="sr-only">
|
|
153
|
+
<h4>Ejemplo: "{{ example.name | capitalize }}", de código HTML, para maquetar el componente: "{{ exampleComponent | replace("-", " ") | title }}", versión: {{ '' | filterversion }}, del sistema de diseño DESY</h4>
|
|
154
|
+
<p>Para compilar el css del siguiente código deberás instalar Tailwind CSS y usar el archivo tailwind.config.js del proyecto: <a href="https://bitbucket.org/sdaragon/desy-html/src/master/">desy-html</a>.</p>
|
|
155
|
+
<p>Para que funcione el comportamiento del siguiente código deberás importar el archivo index.js y todos los archivos javascript de la carpeta /src/js y /src/js/aria del proyecto: <a href="https://bitbucket.org/sdaragon/desy-html/src/master/">desy-html</a>.</p>
|
|
156
|
+
<p>Usar sólo el código que está dentro de la siguiente etiqueta <code>.</p>
|
|
157
|
+
<pre><code class="language-html hljs text-sm" data-desy-html-version="{{ '' | filterversion }}">
|
|
158
|
+
{{- getHTMLCodeFromExample(exampleComponent, example.data, 'component') -}}
|
|
159
|
+
</code>
|
|
160
|
+
</pre>
|
|
161
|
+
</div>
|
|
162
|
+
{% if example.data.caller %}
|
|
163
|
+
{% from "_macro.render-caller.njk" import renderCaller %}
|
|
164
|
+
{% set callerHtml %}{{ renderCaller(example.data.caller) }}{% endset %}
|
|
165
|
+
{% set callerNunjucks %}
|
|
166
|
+
{% raw %}{%{% endraw %} from "components/{{ exampleComponent }}/_macro.{{ exampleComponent }}.njk" import component{{ exampleComponent | replace("-", " ") | title | replace(" ","") }}{% raw %} %}{% endraw %}
|
|
167
|
+
{% raw %}{% {% endraw %}call component{{ exampleComponent | replace("-", " ") | title | replace(" ","") }} {% endset %}
|
|
168
|
+
<div class="sr-only">
|
|
169
|
+
<h4>Ejemplo: "{{ example.name | capitalize }}", de código Nunjucks, para maquetar el componente: "{{ exampleComponent | replace("-", " ") | title }}", versión: {{ '' | filterversion }}, del sistema de diseño DESY</h4>
|
|
170
|
+
<p>Pegar en la página: pagina-prueba.html del proyecto: <a href="https://bitbucket.org/sdaragon/desy-html-starter/src/master/">desy-html-starter</a>.</p>
|
|
171
|
+
<p>Usar sólo el código que está dentro de la siguiente etiqueta <code>.</p>
|
|
172
|
+
<pre><code class="language-js hljs text-sm" data-desy-html-version="{{ '' | filterversion }}">
|
|
173
|
+
{{ callerNunjucks | safe }}({{ example.data | filtercaller | filterescapeltgt | dump(2) | safe }}){% raw %} %}{% endraw %}
|
|
174
|
+
{{ callerHtml }}
|
|
175
|
+
{% raw %}{%{% endraw %} endcall {% raw %} %}{% endraw %}</code></pre>
|
|
176
|
+
|
|
177
|
+
</div>
|
|
178
|
+
{% else %}
|
|
179
|
+
<div class="sr-only">
|
|
180
|
+
<h4>Ejemplo: "{{ example.name | capitalize }}", de código Nunjucks, para maquetar el componente: "{{ exampleComponent | replace("-", " ") | title }}", versión: {{ '' | filterversion }}, del sistema de diseño DESY</h4>
|
|
181
|
+
<p>Pegar en la página: pagina-prueba.html del proyecto: <a href="https://bitbucket.org/sdaragon/desy-html-starter/src/master/">desy-html-starter</a>.</p>
|
|
182
|
+
<p>Usar sólo el código que está dentro de la siguiente etiqueta <code>.</p>
|
|
183
|
+
<pre><code class="language-njk hljs text-sm" data-desy-html-version="{{ '' | filterversion }}">{{- getNunjucksCodeFromExample(exampleComponent, example.data, 'component') | filterescapeltgt | safe -}}</code></pre>
|
|
184
|
+
</div>
|
|
185
|
+
{% endif %}
|
|
143
186
|
</div>
|
|
144
187
|
<div class="pt-base lg:pt-lg">
|
|
145
188
|
<div class="p-base border border-neutral-base">
|
|
@@ -260,13 +303,13 @@ import componentTree %}
|
|
|
260
303
|
<div class="pt-base lg:pt-lg mb-base">
|
|
261
304
|
{% set htmlContent %}
|
|
262
305
|
{{ componentButton({
|
|
263
|
-
"
|
|
306
|
+
"html": 'Copiar código<span class="sr-only"> HTML</span>',
|
|
264
307
|
"classes": "c-button--sm c-button--transparent mb-sm",
|
|
265
308
|
"attributes": {
|
|
266
309
|
"data-module": "c-button-copy"
|
|
267
310
|
}
|
|
268
311
|
}) }}
|
|
269
|
-
<pre class="hljs"><code class="language-html hljs text-sm">
|
|
312
|
+
<pre class="hljs" aria-hidden="true"><code class="language-html hljs text-sm">
|
|
270
313
|
{{- getHTMLCodeFromExample(exampleComponent, example.data, 'component') | highlight("html") | safe -}}
|
|
271
314
|
</code>
|
|
272
315
|
</pre>
|
|
@@ -279,7 +322,7 @@ import componentTree %}
|
|
|
279
322
|
{% raw %}{%{% endraw %} from "components/{{ exampleComponent }}/_macro.{{ exampleComponent }}.njk" import component{{ exampleComponent | replace("-", " ") | title | replace(" ","") }}{% raw %} %}{% endraw %}
|
|
280
323
|
{% raw %}{% {% endraw %}call component{{ exampleComponent | replace("-", " ") | title | replace(" ","") }} {% endset %}
|
|
281
324
|
{{ componentButton({
|
|
282
|
-
"
|
|
325
|
+
"html": 'Copiar código<span class="sr-only"> Nunjucks</span>',
|
|
283
326
|
"classes": "c-button--sm c-button--transparent mb-sm",
|
|
284
327
|
"attributes": {
|
|
285
328
|
"data-module": "c-button-copy"
|
|
@@ -291,7 +334,7 @@ import componentTree %}
|
|
|
291
334
|
{% raw %}{%{% endraw %} endcall {% raw %} %}{% endraw %}</code></pre>
|
|
292
335
|
{% else %}
|
|
293
336
|
{{ componentButton({
|
|
294
|
-
"
|
|
337
|
+
"html": 'Copiar código<span class="sr-only"> Nunjucks</span>',
|
|
295
338
|
"classes": "c-button--sm c-button--transparent mb-sm",
|
|
296
339
|
"attributes": {
|
|
297
340
|
"data-module": "c-button-copy"
|
|
@@ -307,6 +350,7 @@ import componentTree %}
|
|
|
307
350
|
}
|
|
308
351
|
}) %}
|
|
309
352
|
{{ componentTabs({
|
|
353
|
+
"headingLevel": 4,
|
|
310
354
|
"tablistAriaLabel": "Ejemplos de código de: " + example.name | capitalize,
|
|
311
355
|
"idPrefix": "tab-" + loop.index,
|
|
312
356
|
"classes": "c-tabs--scroll",
|
|
@@ -327,6 +371,6 @@ import componentTree %}
|
|
|
327
371
|
}) }}
|
|
328
372
|
{% endcall %}
|
|
329
373
|
</div>
|
|
330
|
-
</
|
|
374
|
+
</article>
|
|
331
375
|
{% endfor %}
|
|
332
376
|
{% endmacro %}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
{% from "components/button/_macro.button.njk" import componentButton %}
|
|
2
|
+
{% from "components/button-loader/_macro.button-loader.njk" import componentButtonLoader %}
|
|
3
|
+
|
|
4
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
5
|
+
<div>
|
|
6
|
+
Normal
|
|
7
|
+
</div>
|
|
8
|
+
<div>
|
|
9
|
+
{{ componentButton({
|
|
10
|
+
"text": "Primario",
|
|
11
|
+
"classes": "c-button--primary c-button--lg"
|
|
12
|
+
}) }}
|
|
13
|
+
</div>
|
|
14
|
+
<div>
|
|
15
|
+
{{ componentButton({
|
|
16
|
+
"html": '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="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"/></svg>',
|
|
17
|
+
"href": "/",
|
|
18
|
+
"classes": "c-button--primary c-button--lg"
|
|
19
|
+
}) }}
|
|
20
|
+
</div>
|
|
21
|
+
<div>
|
|
22
|
+
{{ componentButton({
|
|
23
|
+
"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"/></svg>Con icono',
|
|
24
|
+
"href": "/",
|
|
25
|
+
"classes": "c-button--primary c-button--lg"
|
|
26
|
+
}) }}
|
|
27
|
+
</div>
|
|
28
|
+
<div>
|
|
29
|
+
{{ componentButton({
|
|
30
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
|
|
31
|
+
"href": "/",
|
|
32
|
+
"classes": "c-button--primary c-button--lg p-4 align-bottom"
|
|
33
|
+
}) }}
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
37
|
+
<div>
|
|
38
|
+
:active
|
|
39
|
+
</div>
|
|
40
|
+
<div>
|
|
41
|
+
{{ componentButton({
|
|
42
|
+
"text": "Active",
|
|
43
|
+
"classes": "c-button--primary c-button--lg ds-active"
|
|
44
|
+
}) }}
|
|
45
|
+
</div>
|
|
46
|
+
<div>
|
|
47
|
+
{{ componentButton({
|
|
48
|
+
"html": '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="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"/></svg>',
|
|
49
|
+
"href": "/",
|
|
50
|
+
"classes": "c-button--primary c-button--lg ds-active"
|
|
51
|
+
}) }}
|
|
52
|
+
</div>
|
|
53
|
+
<div>
|
|
54
|
+
{{ componentButton({
|
|
55
|
+
"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"/></svg>Con icono',
|
|
56
|
+
"href": "/",
|
|
57
|
+
"classes": "c-button--primary c-button--lg ds-active"
|
|
58
|
+
}) }}
|
|
59
|
+
</div>
|
|
60
|
+
<div>
|
|
61
|
+
{{ componentButton({
|
|
62
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
|
|
63
|
+
"href": "/",
|
|
64
|
+
"classes": "c-button--primary c-button--lg ds-active p-4 align-bottom"
|
|
65
|
+
}) }}
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
69
|
+
<div>
|
|
70
|
+
:hover
|
|
71
|
+
</div>
|
|
72
|
+
<div>
|
|
73
|
+
{{ componentButton({
|
|
74
|
+
"text": "Hover",
|
|
75
|
+
"classes": "c-button--primary c-button--lg ds-hover"
|
|
76
|
+
}) }}
|
|
77
|
+
</div>
|
|
78
|
+
<div>
|
|
79
|
+
{{ componentButton({
|
|
80
|
+
"html": '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="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"/></svg>',
|
|
81
|
+
"href": "/",
|
|
82
|
+
"classes": "c-button--primary c-button--lg ds-hover"
|
|
83
|
+
}) }}
|
|
84
|
+
</div>
|
|
85
|
+
<div>
|
|
86
|
+
{{ componentButton({
|
|
87
|
+
"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"/></svg>Con icono',
|
|
88
|
+
"href": "/",
|
|
89
|
+
"classes": "c-button--primary c-button--lg ds-hover"
|
|
90
|
+
}) }}
|
|
91
|
+
</div>
|
|
92
|
+
<div>
|
|
93
|
+
{{ componentButton({
|
|
94
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
|
|
95
|
+
"href": "/",
|
|
96
|
+
"classes": "c-button--primary c-button--lg ds-hover p-4 align-bottom"
|
|
97
|
+
}) }}
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
101
|
+
<div>
|
|
102
|
+
:focus
|
|
103
|
+
</div>
|
|
104
|
+
<div>
|
|
105
|
+
{{ componentButton({
|
|
106
|
+
"text": "Focus",
|
|
107
|
+
"classes": "c-button--primary c-button--lg ds-focus"
|
|
108
|
+
}) }}
|
|
109
|
+
</div>
|
|
110
|
+
<div>
|
|
111
|
+
{{ componentButton({
|
|
112
|
+
"html": '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="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"/></svg>',
|
|
113
|
+
"href": "/",
|
|
114
|
+
"classes": "c-button--primary c-button--lg ds-focus"
|
|
115
|
+
}) }}
|
|
116
|
+
</div>
|
|
117
|
+
<div>
|
|
118
|
+
{{ componentButton({
|
|
119
|
+
"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"/></svg>Con icono',
|
|
120
|
+
"href": "/",
|
|
121
|
+
"classes": "c-button--primary c-button--lg ds-focus"
|
|
122
|
+
}) }}
|
|
123
|
+
</div>
|
|
124
|
+
<div>
|
|
125
|
+
{{ componentButton({
|
|
126
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
|
|
127
|
+
"href": "/",
|
|
128
|
+
"classes": "c-button--primary c-button--lg ds-focus p-4 align-bottom"
|
|
129
|
+
}) }}
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
133
|
+
<div>
|
|
134
|
+
Deshabilitado
|
|
135
|
+
</div>
|
|
136
|
+
<div>
|
|
137
|
+
{{ componentButton({
|
|
138
|
+
"text": "Deshabilitado",
|
|
139
|
+
"classes": "c-button--primary c-button--lg",
|
|
140
|
+
"disabled": true
|
|
141
|
+
}) }}
|
|
142
|
+
</div>
|
|
143
|
+
<div>
|
|
144
|
+
{{ componentButton({
|
|
145
|
+
"html": '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="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"/></svg>',
|
|
146
|
+
"href": "/",
|
|
147
|
+
"classes": "c-button--primary c-button--lg",
|
|
148
|
+
"disabled": true
|
|
149
|
+
}) }}
|
|
150
|
+
</div>
|
|
151
|
+
<div>
|
|
152
|
+
{{ componentButton({
|
|
153
|
+
"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"/></svg>Con icono',
|
|
154
|
+
"href": "/",
|
|
155
|
+
"classes": "c-button--primary c-button--lg",
|
|
156
|
+
"disabled": true
|
|
157
|
+
}) }}
|
|
158
|
+
</div>
|
|
159
|
+
<div>
|
|
160
|
+
{{ componentButton({
|
|
161
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
|
|
162
|
+
"href": "/",
|
|
163
|
+
"classes": "c-button--primary c-button--lg p-4 align-bottom",
|
|
164
|
+
"disabled": true
|
|
165
|
+
}) }}
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
169
|
+
<div>
|
|
170
|
+
Estado cargando
|
|
171
|
+
</div>
|
|
172
|
+
<div>
|
|
173
|
+
{{ componentButtonLoader({
|
|
174
|
+
"name": "loading",
|
|
175
|
+
"text": "Loading",
|
|
176
|
+
"state": "is-loading",
|
|
177
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-loading",
|
|
178
|
+
"loader": {
|
|
179
|
+
"text": "Acción en curso"
|
|
180
|
+
}
|
|
181
|
+
}) }}
|
|
182
|
+
</div>
|
|
183
|
+
<div>
|
|
184
|
+
{{ componentButtonLoader({
|
|
185
|
+
"html": '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="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"/></svg>',
|
|
186
|
+
"href": "/",
|
|
187
|
+
"state": "is-loading",
|
|
188
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-loading",
|
|
189
|
+
"loader": {
|
|
190
|
+
"text": "Acción en curso"
|
|
191
|
+
}
|
|
192
|
+
}) }}
|
|
193
|
+
</div>
|
|
194
|
+
<div>
|
|
195
|
+
{{ componentButtonLoader({
|
|
196
|
+
"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"/></svg>Con icono',
|
|
197
|
+
"href": "/",
|
|
198
|
+
"state": "is-loading",
|
|
199
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-loading",
|
|
200
|
+
"loader": {
|
|
201
|
+
"text": "Acción en curso"
|
|
202
|
+
}
|
|
203
|
+
}) }}
|
|
204
|
+
</div>
|
|
205
|
+
<div>
|
|
206
|
+
{{ componentButtonLoader({
|
|
207
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
|
|
208
|
+
"href": "/",
|
|
209
|
+
"state": "is-loading",
|
|
210
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-loading p-4 align-bottom",
|
|
211
|
+
"loader": {
|
|
212
|
+
"text": "Acción en curso"
|
|
213
|
+
}
|
|
214
|
+
}) }}
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
218
|
+
<div>
|
|
219
|
+
Estado éxito
|
|
220
|
+
</div>
|
|
221
|
+
<div>
|
|
222
|
+
{{ componentButtonLoader({
|
|
223
|
+
"name": "success",
|
|
224
|
+
"text": "Success",
|
|
225
|
+
"state": "is-success",
|
|
226
|
+
"success": {
|
|
227
|
+
"text": "Acción realizada con éxito"
|
|
228
|
+
},
|
|
229
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-success"
|
|
230
|
+
}) }}
|
|
231
|
+
</div>
|
|
232
|
+
<div>
|
|
233
|
+
{{ componentButtonLoader({
|
|
234
|
+
"html": '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="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"/></svg>',
|
|
235
|
+
"href": "/",
|
|
236
|
+
"state": "is-success",
|
|
237
|
+
"success": {
|
|
238
|
+
"text": "Acción realizada con éxito"
|
|
239
|
+
},
|
|
240
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-success"
|
|
241
|
+
}) }}
|
|
242
|
+
</div>
|
|
243
|
+
<div>
|
|
244
|
+
{{ componentButtonLoader({
|
|
245
|
+
"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"/></svg>Con icono',
|
|
246
|
+
"href": "/",
|
|
247
|
+
"state": "is-success",
|
|
248
|
+
"success": {
|
|
249
|
+
"text": "Acción realizada con éxito"
|
|
250
|
+
},
|
|
251
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-success"
|
|
252
|
+
}) }}
|
|
253
|
+
</div>
|
|
254
|
+
<div>
|
|
255
|
+
{{ componentButtonLoader({
|
|
256
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
|
|
257
|
+
"href": "/",
|
|
258
|
+
"state": "is-success",
|
|
259
|
+
"success": {
|
|
260
|
+
"text": "Acción realizada con éxito"
|
|
261
|
+
},
|
|
262
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-success p-4 align-bottom"
|
|
263
|
+
}) }}
|
|
264
|
+
</div>
|
|
265
|
+
</div>
|
|
@@ -185,3 +185,40 @@
|
|
|
185
185
|
{% endcall %}
|
|
186
186
|
</div>
|
|
187
187
|
</div>
|
|
188
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
189
|
+
<div>
|
|
190
|
+
Grande
|
|
191
|
+
</div>
|
|
192
|
+
<div>
|
|
193
|
+
{% call componentDropdown({
|
|
194
|
+
"text": "Primario",
|
|
195
|
+
"classes": "c-dropdown--lg"
|
|
196
|
+
}) %}
|
|
197
|
+
<div class=" w-48 p-2 "><div class=" border-4 border-dashed border-gray-200 rounded-lg h-40 "></div></div>
|
|
198
|
+
{% endcall %}
|
|
199
|
+
</div>
|
|
200
|
+
<div>
|
|
201
|
+
{% call componentDropdown({
|
|
202
|
+
"html": '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="M100 0H40a15 15 0 00-15 15v120a5 5 0 008.54 3.53l34.69-34.69a2.5 2.5 0 013.54 0l34.69 34.69A5 5 0 00115 135V15a15 15 0 00-15-15z" fill="currentColor"/></svg>',
|
|
203
|
+
"classes": "c-dropdown--lg"
|
|
204
|
+
}) %}
|
|
205
|
+
<div class=" w-48 p-2 "><div class=" border-4 border-dashed border-gray-200 rounded-lg h-40 "></div></div>
|
|
206
|
+
{% endcall %}
|
|
207
|
+
</div>
|
|
208
|
+
<div>
|
|
209
|
+
{% call componentDropdown({
|
|
210
|
+
"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="M135.57 22.29l-17.9-17.88a15.17 15.17 0 00-21.39 0L14.05 86.73a4.93 4.93 0 00-1.28 2.18L.19 133.64A5 5 0 005 140a4.84 4.84 0 001.35-.19l44.8-12.56a5.16 5.16 0 002.19-1.28l82.23-82.31a15.1 15.1 0 000-21.37z" fill="currentColor"/></svg>Con icono',
|
|
211
|
+
"classes": "c-dropdown--lg"
|
|
212
|
+
}) %}
|
|
213
|
+
<div class=" w-48 p-2 "><div class=" border-4 border-dashed border-gray-200 rounded-lg h-40 "></div></div>
|
|
214
|
+
{% endcall %}
|
|
215
|
+
</div>
|
|
216
|
+
<div>
|
|
217
|
+
{% call componentDropdown({
|
|
218
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
|
|
219
|
+
"classes": "c-dropdown--lg align-bottom"
|
|
220
|
+
}) %}
|
|
221
|
+
<div class=" w-48 p-2 "><div class=" border-4 border-dashed border-gray-200 rounded-lg h-40 "></div></div>
|
|
222
|
+
{% endcall %}
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
@@ -685,3 +685,140 @@
|
|
|
685
685
|
}) }}
|
|
686
686
|
</div>
|
|
687
687
|
</div>
|
|
688
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
689
|
+
<div>
|
|
690
|
+
Grande
|
|
691
|
+
</div>
|
|
692
|
+
<div>
|
|
693
|
+
{{ componentListbox({
|
|
694
|
+
"id":"listbox-21",
|
|
695
|
+
"text": "Primario",
|
|
696
|
+
"label": {
|
|
697
|
+
"text": "Label",
|
|
698
|
+
"classes": "sr-only"
|
|
699
|
+
},
|
|
700
|
+
"classes": "c-listbox--lg",
|
|
701
|
+
"items": [
|
|
702
|
+
{
|
|
703
|
+
"href": "#",
|
|
704
|
+
"html": "Opción 1"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"href": "#",
|
|
708
|
+
"text": "Opción 2"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"href": "#",
|
|
712
|
+
"text": "Opción 3"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"href": "#",
|
|
716
|
+
"text": "Opción 4"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"href": "#",
|
|
720
|
+
"text": "Opción 5"
|
|
721
|
+
}
|
|
722
|
+
]
|
|
723
|
+
}) }}
|
|
724
|
+
</div>
|
|
725
|
+
<div>
|
|
726
|
+
{{ componentListbox({
|
|
727
|
+
"id":"listbox-22",
|
|
728
|
+
"html": '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="M100 0H40a15 15 0 00-15 15v120a5 5 0 008.54 3.53l34.69-34.69a2.5 2.5 0 013.54 0l34.69 34.69A5 5 0 00115 135V15a15 15 0 00-15-15z" fill="currentColor"/></svg>',
|
|
729
|
+
"label": {
|
|
730
|
+
"text": "Label",
|
|
731
|
+
"classes": "sr-only"
|
|
732
|
+
},
|
|
733
|
+
"classes": "c-listbox--lg",
|
|
734
|
+
"items": [
|
|
735
|
+
{
|
|
736
|
+
"href": "#",
|
|
737
|
+
"html": "Opción 1"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"href": "#",
|
|
741
|
+
"text": "Opción 2"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"href": "#",
|
|
745
|
+
"text": "Opción 3"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"href": "#",
|
|
749
|
+
"text": "Opción 4"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"href": "#",
|
|
753
|
+
"text": "Opción 5"
|
|
754
|
+
}
|
|
755
|
+
]
|
|
756
|
+
}) }}
|
|
757
|
+
</div>
|
|
758
|
+
<div>
|
|
759
|
+
{{ componentListbox({
|
|
760
|
+
"id":"listbox-23",
|
|
761
|
+
"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="M135.57 22.29l-17.9-17.88a15.17 15.17 0 00-21.39 0L14.05 86.73a4.93 4.93 0 00-1.28 2.18L.19 133.64A5 5 0 005 140a4.84 4.84 0 001.35-.19l44.8-12.56a5.16 5.16 0 002.19-1.28l82.23-82.31a15.1 15.1 0 000-21.37z" fill="currentColor"/></svg>Con icono',
|
|
762
|
+
"label": {
|
|
763
|
+
"text": "Label",
|
|
764
|
+
"classes": "sr-only"
|
|
765
|
+
},
|
|
766
|
+
"classes": "c-listbox--lg",
|
|
767
|
+
"items": [
|
|
768
|
+
{
|
|
769
|
+
"href": "#",
|
|
770
|
+
"html": "Opción 1"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"href": "#",
|
|
774
|
+
"text": "Opción 2"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
"href": "#",
|
|
778
|
+
"text": "Opción 3"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"href": "#",
|
|
782
|
+
"text": "Opción 4"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"href": "#",
|
|
786
|
+
"text": "Opción 5"
|
|
787
|
+
}
|
|
788
|
+
]
|
|
789
|
+
}) }}
|
|
790
|
+
</div>
|
|
791
|
+
<div>
|
|
792
|
+
{{ componentListbox({
|
|
793
|
+
"id":"listbox-24",
|
|
794
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
|
|
795
|
+
"label": {
|
|
796
|
+
"text": "Label",
|
|
797
|
+
"classes": "sr-only"
|
|
798
|
+
},
|
|
799
|
+
"classes": "c-listbox--lg align-bottom",
|
|
800
|
+
"items": [
|
|
801
|
+
{
|
|
802
|
+
"href": "#",
|
|
803
|
+
"html": "Opción 1"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"href": "#",
|
|
807
|
+
"text": "Opción 2"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"href": "#",
|
|
811
|
+
"text": "Opción 3"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"href": "#",
|
|
815
|
+
"text": "Opción 4"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"href": "#",
|
|
819
|
+
"text": "Opción 5"
|
|
820
|
+
}
|
|
821
|
+
]
|
|
822
|
+
}) }}
|
|
823
|
+
</div>
|
|
824
|
+
</div>
|