Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit 91889f8

Browse files
Update components and CSS
1 parent 5f64317 commit 91889f8

File tree

15 files changed

+246
-147
lines changed

15 files changed

+246
-147
lines changed

Resources/Private/Components/Atom/Button/Current/Current.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
<f:argument name="pageType" type="int" optional="{true}" default="0" description="Integer of the serialisation (typeNum) to link to" />
66
<f:argument name="contentType" type="string" optional="{true}" default="" description="Content type of the linked serialisation" />
77
<f:argument name="language" type="string" optional="{true}" default="current" description="ID of the language version to link to" />
8+
<f:argument name="textCode" type="string" optional="{true}" default="" description="Short, bold text to show on the button before its title" />
89
<f:argument name="text" type="string" optional="{false}" description="Text to show on the button and as its title" />
10+
<f:argument name="textCount" type="int" optional="{true}" default="0" description="Count to show on the button after its title" />
911
<f:argument name="hint" type="string" optional="{true}" default="" description="Button title if different from the text" />
1012
<f:argument name="rel" type="string" optional="{true}" default="" description="The link's relationship attribute" />
1113
<f:argument name="icon" type="string" optional="{true}" default="" description="The icon to display (cf. available icon assets)" />
1214
<f:argument name="iconAfter" type="string" optional="{true}" default="" description="The icon to display after the text (cf. available icon assets)" />
1315
<f:argument name="variants" type="string[]" optional="{true}" default="{}" description="Type of button to produce (tiny, mini, icon, tinyicon, miniicon, texticon, round, light, overlay, transparent, unobtrusive, unobserved, embedded, sidelined, tacit, tacit-above-900, tacit-below-900, tacit-above-600, tacit-below-600)" />
1416
<f:argument name="function" type="string" optional="{true}" default="" description="JavaScript function to apply (copy)" />
15-
<f:argument name="aria" type="string[]" optional="{true}" default="{}" description="Array of additional ARIA attributes" />
16-
<f:argument name="data" type="string[]" optional="{true}" default="{}" description="Array of additional data attributes" />
17+
<f:argument name="aria" type="array" optional="{true}" default="{}" description="Array of additional ARIA attributes" />
18+
<f:argument name="data" type="array" optional="{true}" default="{}" description="Array of additional data attributes" />
1719

1820
<f:variable name="class">mdlr-button</f:variable>
1921
<f:for each="{variants}" as="variant">
@@ -29,7 +31,7 @@
2931
<use href="#icon-{icon}" />
3032
</svg>
3133
</f:if>
32-
<span><f:format.raw>{text}</f:format.raw></span>
34+
<span><f:if condition="{textCode}"><strong><f:format.raw>{textCode}</f:format.raw></strong> </f:if><f:format.raw>{text}</f:format.raw><f:if condition="{textCount}"> <span class="mdlr-button-count">{textCount}</span></f:if></span>
3335
<f:if condition="{iconAfter}">
3436
<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
3537
<use href="#icon-{iconAfter}" />

Resources/Private/Components/Atom/Button/Disabled/Disabled.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<f:comment>Button in an inactive state.</f:comment>
33

44
<f:argument name="id" type="string" optional="{true}" default="" description="ID of the button" />
5+
<f:argument name="textCode" type="string" optional="{true}" default="" description="Short, bold text to show on the button before its title" />
56
<f:argument name="text" type="string" optional="{false}" description="Text to show on the button and as its title" />
7+
<f:argument name="textCount" type="int" optional="{true}" default="0" description="Count to show on the button after its title" />
68
<f:argument name="hint" type="string" optional="{true}" default="" description="Button title if different from the text" />
79
<f:argument name="icon" type="string" optional="{true}" default="" description="The icon to display (cf. available icon assets)" />
810
<f:argument name="iconAfter" type="string" optional="{true}" default="" description="The icon to display after the text (cf. available icon assets)" />
@@ -19,7 +21,7 @@
1921
<use href="#icon-{icon}" />
2022
</svg>
2123
</f:if>
22-
<span><f:format.raw>{text}</f:format.raw></span>
24+
<span><f:if condition="{textCode}"><strong><f:format.raw>{textCode}</f:format.raw></strong> </f:if><f:format.raw>{text}</f:format.raw><f:if condition="{textCount}"> <span class="mdlr-button-count">{textCount}</span></f:if></span>
2325
<f:if condition="{iconAfter}">
2426
<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
2527
<use href="#icon-{iconAfter}" />

Resources/Private/Components/Atom/Button/Email/Email.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@
77
<f:argument name="bcc" type="string" optional="{true}" default="" description="Email address to send a shadow copy to" />
88
<f:argument name="subject" type="string" optional="{true}" default="" description="Email subject to use" />
99
<f:argument name="body" type="string" optional="{true}" default="" description="Email body to use" />
10+
<f:argument name="textCode" type="string" optional="{true}" default="" description="Short, bold text to show on the button before its title" />
1011
<f:argument name="text" type="string" optional="{false}" description="Text to show on the button and as its title" />
12+
<f:argument name="textCount" type="int" optional="{true}" default="0" description="Count to show on the button after its title" />
1113
<f:argument name="hint" type="string" optional="{true}" default="" description="Button title if different from the text" />
1214
<f:argument name="rel" type="string" optional="{true}" default="" description="The link's relationship attribute" />
1315
<f:argument name="icon" type="string" optional="{true}" default="" description="The icon to display (cf. available icon assets)" />
1416
<f:argument name="iconAfter" type="string" optional="{true}" default="" description="The icon to display after the text (cf. available icon assets)" />
1517
<f:argument name="variants" type="string[]" optional="{true}" default="{}" description="Type of button to produce (tiny, mini, icon, tinyicon, miniicon, texticon, round, light, overlay, transparent, unobtrusive, unobserved, embedded, sidelined, tacit, tacit-above-900, tacit-below-900, tacit-above-600, tacit-below-600)" />
1618
<f:argument name="function" type="string" optional="{true}" default="" description="JavaScript function to apply (copy)" />
17-
<f:argument name="aria" type="string[]" optional="{true}" default="{}" description="Array of additional ARIA attributes" />
18-
<f:argument name="data" type="string[]" optional="{true}" default="{}" description="Array of additional data attributes" />
19+
<f:argument name="aria" type="array" optional="{true}" default="{}" description="Array of additional ARIA attributes" />
20+
<f:argument name="data" type="array" optional="{true}" default="{}" description="Array of additional data attributes" />
1921

2022
<f:variable name="class">mdlr-button</f:variable>
2123
<f:for each="{variants}" as="variant">
@@ -31,7 +33,7 @@
3133
<use href="#icon-{icon}" />
3234
</svg>
3335
</f:if>
34-
<span><f:format.raw>{text}</f:format.raw></span>
36+
<span><f:if condition="{textCode}"><strong><f:format.raw>{textCode}</f:format.raw></strong> </f:if><f:format.raw>{text}</f:format.raw><f:if condition="{textCount}"> <span class="mdlr-button-count">{textCount}</span></f:if></span>
3537
<f:if condition="{iconAfter}">
3638
<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
3739
<use href="#icon-{iconAfter}" />

Resources/Private/Components/Atom/Button/External/External.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33

44
<f:argument name="id" type="string" optional="{true}" default="" description="ID of the button" />
55
<f:argument name="uri" type="string" optional="{false}" description="External URL to link to" />
6+
<f:argument name="textCode" type="string" optional="{true}" default="" description="Short, bold text to show on the button before its title" />
67
<f:argument name="text" type="string" optional="{false}" description="Text to show on the button and as its title" />
8+
<f:argument name="textCount" type="int" optional="{true}" default="0" description="Count to show on the button after its title" />
79
<f:argument name="hint" type="string" optional="{true}" default="" description="Button title if different from the text" />
810
<f:argument name="rel" type="string" optional="{true}" default="" description="The link's relationship attribute" />
911
<f:argument name="icon" type="string" optional="{true}" default="" description="The icon to display (cf. available icon assets)" />
1012
<f:argument name="iconAfter" type="string" optional="{true}" default="" description="The icon to display after the text (cf. available icon assets)" />
1113
<f:argument name="variants" type="string[]" optional="{true}" default="{}" description="Type of button to produce (tiny, mini, icon, tinyicon, miniicon, texticon, round, light, overlay, transparent, unobtrusive, unobserved, embedded, sidelined, tacit, tacit-above-900, tacit-below-900, tacit-above-600, tacit-below-600)" />
1214
<f:argument name="function" type="string" optional="{true}" default="" description="JavaScript function to apply (copy)" />
13-
<f:argument name="aria" type="string[]" optional="{true}" default="{}" description="Array of additional ARIA attributes" />
14-
<f:argument name="data" type="string[]" optional="{true}" default="{}" description="Array of additional data attributes" />
15+
<f:argument name="aria" type="array" optional="{true}" default="{}" description="Array of additional ARIA attributes" />
16+
<f:argument name="data" type="array" optional="{true}" default="{}" description="Array of additional data attributes" />
1517

1618
<f:variable name="class">mdlr-button</f:variable>
1719
<f:for each="{variants}" as="variant">
@@ -27,7 +29,7 @@
2729
<use href="#icon-{icon}" />
2830
</svg>
2931
</f:if>
30-
<span><f:format.raw>{text}</f:format.raw></span>
32+
<span><f:if condition="{textCode}"><strong><f:format.raw>{textCode}</f:format.raw></strong> </f:if><f:format.raw>{text}</f:format.raw><f:if condition="{textCount}"> <span class="mdlr-button-count">{textCount}</span></f:if></span>
3133
<f:if condition="{iconAfter}">
3234
<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
3335
<use href="#icon-{iconAfter}" />

Resources/Private/Components/Atom/Button/Function/Function.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
<f:comment>Button to set off a JavaScript function.</f:comment>
33

44
<f:argument name="id" type="string" optional="{true}" default="" description="ID of the button" />
5+
<f:argument name="textCode" type="string" optional="{true}" default="" description="Short, bold text to show on the button before its title" />
56
<f:argument name="text" type="string" optional="{false}" description="Text to show on the button and as its title" />
7+
<f:argument name="textCount" type="int" optional="{true}" default="0" description="Count to show on the button after its title" />
68
<f:argument name="hint" type="string" optional="{true}" default="" description="Button title if different from the text" />
79
<f:argument name="popoverTarget" type="string" optional="{true}" default="" description="ID of the popover to toggle via this button" />
810
<f:argument name="icon" type="string" optional="{true}" default="" description="The icon to display (cf. available icon assets)" />
911
<f:argument name="iconAfter" type="string" optional="{true}" default="" description="The icon to display after the text (cf. available icon assets)" />
1012
<f:argument name="variants" type="string[]" optional="{true}" default="{}" description="Type of button to produce (tiny, mini, icon, tinyicon, miniicon, texticon, round, light, overlay, transparent, unobtrusive, unobserved, embedded, sidelined, tacit, tacit-above-900, tacit-below-900, tacit-above-600, tacit-below-600)" />
1113
<f:argument name="function" type="string" optional="{false}" description="JavaScript function to apply (storage, theme, back, pdf, fullscreen, modal, modal-close, toast-close, copy, share, mastodon, watchlist-list, watchlist-add, watchlist-csv, watchlist-json, watchlist-clear, watchlist-empty, watchlist-serialisations)" />
12-
<f:argument name="aria" type="string[]" optional="{true}" default="{}" description="Array of additional ARIA attributes" />
13-
<f:argument name="data" type="string[]" optional="{true}" default="{}" description="Array of additional data attributes" />
14+
<f:argument name="aria" type="array" optional="{true}" default="{}" description="Array of additional ARIA attributes" />
15+
<f:argument name="data" type="array" optional="{true}" default="{}" description="Array of additional data attributes" />
1416

1517
<f:variable name="class"></f:variable>
1618
<f:for each="{variants}" as="variant">
@@ -26,7 +28,7 @@
2628
<use href="#icon-{icon}" />
2729
</svg>
2830
</f:if>
29-
<span><f:format.raw>{text}</f:format.raw></span>
31+
<span><f:if condition="{textCode}"><strong><f:format.raw>{textCode}</f:format.raw></strong> </f:if><f:format.raw>{text}</f:format.raw><f:if condition="{textCount}"> <span class="mdlr-button-count">{textCount}</span></f:if></span>
3032
<f:if condition="{iconAfter}">
3133
<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
3234
<use href="#icon-{iconAfter}" />

Resources/Private/Components/Atom/Button/Page/Page.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33

44
<f:argument name="id" type="string" optional="{true}" default="" description="ID of the button" />
55
<f:argument name="pageUid" type="int" optional="{false}" description="Page UID to link to" />
6+
<f:argument name="textCode" type="string" optional="{true}" default="" description="Short, bold text to show on the button before its title" />
67
<f:argument name="text" type="string" optional="{false}" description="Text to show on the button and as its title" />
8+
<f:argument name="textCount" type="int" optional="{true}" default="0" description="Count to show on the button after its title" />
79
<f:argument name="hint" type="string" optional="{true}" default="" description="Button title if different from the text" />
810
<f:argument name="rel" type="string" optional="{true}" default="" description="The link's relationship attribute" />
911
<f:argument name="icon" type="string" optional="{true}" default="" description="The icon to display (cf. available icon assets)" />
1012
<f:argument name="iconAfter" type="string" optional="{true}" default="" description="The icon to display after the text (cf. available icon assets)" />
1113
<f:argument name="variants" type="string[]" optional="{true}" default="{}" description="Type of button to produce (tiny, mini, icon, tinyicon, miniicon, texticon, round, light, overlay, transparent, unobtrusive, unobserved, embedded, sidelined, tacit, tacit-above-900, tacit-below-900, tacit-above-600, tacit-below-600)" />
1214
<f:argument name="function" type="string" optional="{true}" default="" description="JavaScript function to apply (select-form)" />
13-
<f:argument name="aria" type="string[]" optional="{true}" default="{}" description="Array of additional ARIA attributes" />
14-
<f:argument name="data" type="string[]" optional="{true}" default="{}" description="Array of additional data attributes" />
15+
<f:argument name="aria" type="array" optional="{true}" default="{}" description="Array of additional ARIA attributes" />
16+
<f:argument name="data" type="array" optional="{true}" default="{}" description="Array of additional data attributes" />
1517

1618
<f:variable name="class">mdlr-button</f:variable>
1719
<f:for each="{variants}" as="variant">
@@ -27,7 +29,7 @@
2729
<use href="#icon-{icon}" />
2830
</svg>
2931
</f:if>
30-
<span><f:format.raw>{text}</f:format.raw></span>
32+
<span><f:if condition="{textCode}"><strong><f:format.raw>{textCode}</f:format.raw></strong> </f:if><f:format.raw>{text}</f:format.raw><f:if condition="{textCount}"> <span class="mdlr-button-count">{textCount}</span></f:if></span>
3133
<f:if condition="{iconAfter}">
3234
<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
3335
<use href="#icon-{iconAfter}" />

Resources/Private/Components/Atom/Button/Section/Section.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33

44
<f:argument name="id" type="string" optional="{true}" default="" description="ID of the button" />
55
<f:argument name="section" type="string" optional="{false}" description="Page section to link to" />
6+
<f:argument name="textCode" type="string" optional="{true}" default="" description="Short, bold text to show on the button before its title" />
67
<f:argument name="text" type="string" optional="{false}" description="Text to show on the button and as its title" />
8+
<f:argument name="textCount" type="int" optional="{true}" default="0" description="Count to show on the button after its title" />
79
<f:argument name="hint" type="string" optional="{true}" default="" description="Button title if different from the text" />
810
<f:argument name="rel" type="string" optional="{true}" default="" description="The link's relationship attribute" />
911
<f:argument name="icon" type="string" optional="{true}" default="" description="The icon to display (cf. available icon assets)" />
1012
<f:argument name="iconAfter" type="string" optional="{true}" default="" description="The icon to display after the text (cf. available icon assets)" />
1113
<f:argument name="variants" type="string[]" optional="{true}" default="{}" description="Type of button to produce (tiny, mini, icon, tinyicon, miniicon, texticon, round, light, overlay, transparent, unobtrusive, unobserved, embedded, sidelined, tacit, tacit-above-900, tacit-below-900, tacit-above-600, tacit-below-600)" />
1214
<f:argument name="function" type="string" optional="{true}" default="" description="JavaScript function to apply (up)" />
13-
<f:argument name="aria" type="string[]" optional="{true}" default="{}" description="Array of additional ARIA attributes" />
14-
<f:argument name="data" type="string[]" optional="{true}" default="{}" description="Array of additional data attributes" />
15+
<f:argument name="aria" type="array" optional="{true}" default="{}" description="Array of additional ARIA attributes" />
16+
<f:argument name="data" type="array" optional="{true}" default="{}" description="Array of additional data attributes" />
1517

1618
<f:variable name="class">mdlr-button</f:variable>
1719
<f:for each="{variants}" as="variant">
@@ -27,7 +29,7 @@
2729
<use href="#icon-{icon}" />
2830
</svg>
2931
</f:if>
30-
<span><f:format.raw>{text}</f:format.raw></span>
32+
<span><f:if condition="{textCode}"><strong><f:format.raw>{textCode}</f:format.raw></strong> </f:if><f:format.raw>{text}</f:format.raw><f:if condition="{textCount}"> <span class="mdlr-button-count">{textCount}</span></f:if></span>
3133
<f:if condition="{iconAfter}">
3234
<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
3335
<use href="#icon-{iconAfter}" />
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
2+
<f:comment>Component to produce a simple list item.</f:comment>
3+
4+
<li>
5+
<f:slot />
6+
</li>
7+
</html>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
2+
<f:comment>Component to produce a simple list.</f:comment>
3+
4+
<ul>
5+
<f:slot />
6+
</ul>
7+
</html>

0 commit comments

Comments
 (0)