@teseor/css 1.15.1 → 1.15.3
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/package.json +1 -1
- package/src/base/docs.html +1 -1
- package/src/base/typography/docs.html +33 -33
- package/src/components/actions/button/docs.html +19 -19
- package/src/components/actions/button-group/docs.html +12 -12
- package/src/components/actions/close-button/docs.html +10 -10
- package/src/components/content/divider/docs.html +1 -1
- package/src/components/content/scroll-area/docs.html +81 -81
- package/src/components/content/spacer/docs.html +6 -6
- package/src/components/data-display/avatar/docs.html +8 -8
- package/src/components/data-display/card/docs.html +12 -12
- package/src/components/data-display/data-list/docs.html +32 -32
- package/src/components/data-display/icon/docs.html +5 -5
- package/src/components/data-display/image/docs.html +1 -1
- package/src/components/data-display/stat/docs.html +6 -6
- package/src/components/data-display/status/docs.html +9 -9
- package/src/components/data-display/table/docs.html +14 -14
- package/src/components/data-display/tag/docs.html +17 -17
- package/src/components/disclosure/accordion/docs.html +14 -14
- package/src/components/disclosure/disclosure/docs.html +8 -8
- package/src/components/feedback/alert/docs.html +18 -18
- package/src/components/feedback/progress/docs.html +2 -2
- package/src/components/feedback/toast/docs.html +22 -22
- package/src/components/forms/checkbox/docs.html +1 -1
- package/src/components/forms/checkbox-group/docs.html +21 -21
- package/src/components/forms/field/docs.html +11 -11
- package/src/components/forms/fieldset/docs.html +30 -30
- package/src/components/forms/form/docs.html +29 -29
- package/src/components/forms/form-error/docs.html +2 -2
- package/src/components/forms/form-helper/docs.html +9 -9
- package/src/components/forms/input/docs.html +13 -13
- package/src/components/forms/label/docs.html +7 -7
- package/src/components/forms/number-input/docs.html +12 -12
- package/src/components/forms/password-input/docs.html +14 -14
- package/src/components/forms/radio/docs.html +5 -5
- package/src/components/forms/radio-group/docs.html +20 -20
- package/src/components/forms/search-input/docs.html +7 -7
- package/src/components/forms/select/docs.html +23 -23
- package/src/components/forms/textarea/docs.html +18 -18
- package/src/components/forms/toggle/docs.html +1 -1
- package/src/components/navigation/breadcrumb/docs.html +11 -11
- package/src/components/navigation/dropdown-menu/docs.html +18 -18
- package/src/components/navigation/menu/docs.html +25 -25
- package/src/components/navigation/nav/docs.html +13 -13
- package/src/components/navigation/pagination/docs.html +6 -6
- package/src/components/navigation/tabs/docs.html +19 -19
- package/src/components/overlays/dialog/docs.html +12 -12
- package/src/components/overlays/drawer/docs.html +16 -16
- package/src/components/overlays/modal/docs.html +11 -11
- package/src/components/overlays/overlay/docs.html +3 -3
- package/src/components/overlays/popover/docs.html +7 -7
- package/src/components/overlays/tooltip/docs.html +7 -7
- package/src/components/typography/blockquote/docs.html +5 -5
- package/src/components/typography/code/docs.html +2 -2
- package/src/components/typography/code-block/docs.html +2 -2
- package/src/components/typography/heading/docs.html +11 -11
- package/src/components/typography/kbd/docs.html +6 -6
- package/src/components/typography/link/docs.html +8 -8
- package/src/components/typography/list/docs.html +32 -32
- package/src/config/guides/accessibility.docs.html +5 -5
- package/src/config/guides/getting-started.docs.html +7 -7
- package/src/config/guides/theming.docs.html +21 -21
- package/src/config/tokens/docs.html +7 -7
- package/src/config/tokens/grid/docs.html +3 -3
- package/src/config/tokens/spacing/docs.html +6 -6
- package/src/debug/docs.html +3 -3
- package/src/layout/app-shell/docs.html +15 -15
- package/src/layout/aspect-ratio/docs.html +8 -8
- package/src/layout/box/docs.html +10 -10
- package/src/layout/center/docs.html +4 -4
- package/src/layout/column/docs.html +11 -11
- package/src/layout/container/docs.html +7 -7
- package/src/layout/content/docs.html +9 -9
- package/src/layout/footer/docs.html +16 -16
- package/src/layout/grid/docs.html +25 -25
- package/src/layout/main/docs.html +3 -3
- package/src/layout/nav-rail/docs.html +5 -5
- package/src/layout/page-header/docs.html +9 -9
- package/src/layout/row/docs.html +18 -18
- package/src/layout/sidebar/docs.html +5 -5
- package/src/layout/sidebar-nav/docs.html +37 -37
- package/src/layout/topbar/docs.html +14 -14
- package/src/utilities/container/docs.html +4 -4
- package/src/utilities/display/docs.html +11 -11
- package/src/utilities/scroll-animation/docs.html +5 -5
- package/src/utilities/scroll-snap/docs.html +30 -30
- package/src/utilities/spacing/docs.html +12 -12
- package/src/utilities/text/docs.html +36 -36
- package/src/utilities/view-transition/docs.html +12 -12
- package/src/utilities/visually-hidden/docs.html +3 -3
- package/src/components/actions/button/visual.png +0 -0
- package/src/components/actions/button/visual.spec.ts +0 -18
- package/src/components/actions/button-group/visual.png +0 -0
- package/src/components/actions/button-group/visual.spec.ts +0 -18
- package/src/components/actions/close-button/visual.png +0 -0
- package/src/components/actions/close-button/visual.spec.ts +0 -18
- package/src/components/content/divider/visual.png +0 -0
- package/src/components/content/divider/visual.spec.ts +0 -18
- package/src/components/content/scroll-area/visual.png +0 -0
- package/src/components/content/scroll-area/visual.spec.ts +0 -18
- package/src/components/content/spacer/visual.png +0 -0
- package/src/components/content/spacer/visual.spec.ts +0 -14
- package/src/components/data-display/avatar/visual.png +0 -0
- package/src/components/data-display/avatar/visual.spec.ts +0 -18
- package/src/components/data-display/badge/visual.png +0 -0
- package/src/components/data-display/badge/visual.spec.ts +0 -18
- package/src/components/data-display/card/visual.png +0 -0
- package/src/components/data-display/card/visual.spec.ts +0 -18
- package/src/components/data-display/data-list/visual.png +0 -0
- package/src/components/data-display/data-list/visual.spec.ts +0 -19
- package/src/components/data-display/icon/visual.png +0 -0
- package/src/components/data-display/icon/visual.spec.ts +0 -18
- package/src/components/data-display/image/visual.png +0 -0
- package/src/components/data-display/image/visual.spec.ts +0 -18
- package/src/components/data-display/stat/visual.png +0 -0
- package/src/components/data-display/stat/visual.spec.ts +0 -18
- package/src/components/data-display/status/visual.png +0 -0
- package/src/components/data-display/status/visual.spec.ts +0 -18
- package/src/components/data-display/table/visual.png +0 -0
- package/src/components/data-display/table/visual.spec.ts +0 -18
- package/src/components/data-display/tag/visual.png +0 -0
- package/src/components/data-display/tag/visual.spec.ts +0 -18
- package/src/components/disclosure/accordion/visual.png +0 -0
- package/src/components/disclosure/accordion/visual.spec.ts +0 -18
- package/src/components/disclosure/disclosure/visual.png +0 -0
- package/src/components/disclosure/disclosure/visual.spec.ts +0 -18
- package/src/components/feedback/alert/visual.png +0 -0
- package/src/components/feedback/alert/visual.spec.ts +0 -18
- package/src/components/feedback/progress/visual.png +0 -0
- package/src/components/feedback/progress/visual.spec.ts +0 -18
- package/src/components/feedback/progress-circle/visual.png +0 -0
- package/src/components/feedback/progress-circle/visual.spec.ts +0 -18
- package/src/components/feedback/skeleton/visual.png +0 -0
- package/src/components/feedback/skeleton/visual.spec.ts +0 -18
- package/src/components/feedback/spinner/visual.png +0 -0
- package/src/components/feedback/spinner/visual.spec.ts +0 -19
- package/src/components/feedback/toast/visual.png +0 -0
- package/src/components/feedback/toast/visual.spec.ts +0 -18
- package/src/components/forms/checkbox/visual.png +0 -0
- package/src/components/forms/checkbox/visual.spec.ts +0 -18
- package/src/components/forms/checkbox-group/visual.png +0 -0
- package/src/components/forms/checkbox-group/visual.spec.ts +0 -18
- package/src/components/forms/field/visual.png +0 -0
- package/src/components/forms/field/visual.spec.ts +0 -18
- package/src/components/forms/fieldset/visual.png +0 -0
- package/src/components/forms/fieldset/visual.spec.ts +0 -18
- package/src/components/forms/form/visual.png +0 -0
- package/src/components/forms/form/visual.spec.ts +0 -18
- package/src/components/forms/form-error/visual.png +0 -0
- package/src/components/forms/form-error/visual.spec.ts +0 -18
- package/src/components/forms/form-helper/visual.png +0 -0
- package/src/components/forms/form-helper/visual.spec.ts +0 -18
- package/src/components/forms/input/visual.png +0 -0
- package/src/components/forms/input/visual.spec.ts +0 -18
- package/src/components/forms/label/visual.png +0 -0
- package/src/components/forms/label/visual.spec.ts +0 -18
- package/src/components/forms/number-input/visual.png +0 -0
- package/src/components/forms/number-input/visual.spec.ts +0 -18
- package/src/components/forms/password-input/visual.png +0 -0
- package/src/components/forms/password-input/visual.spec.ts +0 -18
- package/src/components/forms/radio/visual.png +0 -0
- package/src/components/forms/radio/visual.spec.ts +0 -18
- package/src/components/forms/radio-group/visual.png +0 -0
- package/src/components/forms/radio-group/visual.spec.ts +0 -18
- package/src/components/forms/search-input/visual.png +0 -0
- package/src/components/forms/search-input/visual.spec.ts +0 -18
- package/src/components/forms/select/visual.png +0 -0
- package/src/components/forms/select/visual.spec.ts +0 -18
- package/src/components/forms/slider/visual.png +0 -0
- package/src/components/forms/slider/visual.spec.ts +0 -18
- package/src/components/forms/textarea/visual.png +0 -0
- package/src/components/forms/textarea/visual.spec.ts +0 -18
- package/src/components/forms/toggle/visual.png +0 -0
- package/src/components/forms/toggle/visual.spec.ts +0 -18
- package/src/components/navigation/breadcrumb/visual.png +0 -0
- package/src/components/navigation/breadcrumb/visual.spec.ts +0 -18
- package/src/components/navigation/dropdown-menu/visual.png +0 -0
- package/src/components/navigation/dropdown-menu/visual.spec.ts +0 -18
- package/src/components/navigation/menu/visual.png +0 -0
- package/src/components/navigation/menu/visual.spec.ts +0 -18
- package/src/components/navigation/nav/visual.png +0 -0
- package/src/components/navigation/nav/visual.spec.ts +0 -18
- package/src/components/navigation/pagination/visual.png +0 -0
- package/src/components/navigation/pagination/visual.spec.ts +0 -18
- package/src/components/navigation/tabs/visual.png +0 -0
- package/src/components/navigation/tabs/visual.spec.ts +0 -18
- package/src/components/overlays/dialog/visual.png +0 -0
- package/src/components/overlays/dialog/visual.spec.ts +0 -18
- package/src/components/overlays/drawer/visual.png +0 -0
- package/src/components/overlays/drawer/visual.spec.ts +0 -18
- package/src/components/overlays/modal/visual.png +0 -0
- package/src/components/overlays/modal/visual.spec.ts +0 -18
- package/src/components/overlays/overlay/visual.png +0 -0
- package/src/components/overlays/overlay/visual.spec.ts +0 -18
- package/src/components/overlays/popover/visual.png +0 -0
- package/src/components/overlays/popover/visual.spec.ts +0 -18
- package/src/components/overlays/tooltip/visual.png +0 -0
- package/src/components/overlays/tooltip/visual.spec.ts +0 -18
- package/src/components/typography/blockquote/visual.png +0 -0
- package/src/components/typography/blockquote/visual.spec.ts +0 -18
- package/src/components/typography/code/visual.png +0 -0
- package/src/components/typography/code/visual.spec.ts +0 -18
- package/src/components/typography/code-block/visual.png +0 -0
- package/src/components/typography/code-block/visual.spec.ts +0 -18
- package/src/components/typography/heading/visual.png +0 -0
- package/src/components/typography/heading/visual.spec.ts +0 -18
- package/src/components/typography/kbd/visual.png +0 -0
- package/src/components/typography/kbd/visual.spec.ts +0 -18
- package/src/components/typography/link/visual.png +0 -0
- package/src/components/typography/link/visual.spec.ts +0 -18
- package/src/components/typography/list/visual.png +0 -0
- package/src/components/typography/list/visual.spec.ts +0 -18
- package/src/components/typography/mark/visual.png +0 -0
- package/src/components/typography/mark/visual.spec.ts +0 -18
- package/src/layout/app-shell/visual.png +0 -0
- package/src/layout/app-shell/visual.spec.ts +0 -13
- package/src/layout/aspect-ratio/visual.png +0 -0
- package/src/layout/aspect-ratio/visual.spec.ts +0 -14
- package/src/layout/box/visual.png +0 -0
- package/src/layout/box/visual.spec.ts +0 -13
- package/src/layout/center/visual.png +0 -0
- package/src/layout/center/visual.spec.ts +0 -13
- package/src/layout/column/visual.png +0 -0
- package/src/layout/column/visual.spec.ts +0 -13
- package/src/layout/content/visual.png +0 -0
- package/src/layout/content/visual.spec.ts +0 -18
- package/src/layout/footer/visual.png +0 -0
- package/src/layout/footer/visual.spec.ts +0 -18
- package/src/layout/grid/visual.png +0 -0
- package/src/layout/grid/visual.spec.ts +0 -13
- package/src/layout/nav-rail/visual.png +0 -0
- package/src/layout/nav-rail/visual.spec.ts +0 -18
- package/src/layout/page-header/visual.png +0 -0
- package/src/layout/page-header/visual.spec.ts +0 -18
- package/src/layout/row/visual.png +0 -0
- package/src/layout/row/visual.spec.ts +0 -15
- package/src/layout/sidebar/visual.png +0 -0
- package/src/layout/sidebar/visual.spec.ts +0 -18
- package/src/layout/sidebar-nav/visual.spec.ts +0 -18
- package/src/layout/topbar/visual.png +0 -0
- package/src/layout/topbar/visual.spec.ts +0 -18
|
@@ -6,20 +6,20 @@ description: Layout container for form fields with consistent spacing, sections,
|
|
|
6
6
|
<!-- @default -->
|
|
7
7
|
<form class="ui-form">
|
|
8
8
|
<div class="ui-field">
|
|
9
|
-
<label class="ui-label" for="f-name">Name</label>
|
|
9
|
+
<label class="ui-label" for="f-name">{{ t('name', 'Name') }}</label>
|
|
10
10
|
<div class="ui-field__control">
|
|
11
|
-
<input class="ui-input" type="text" id="f-name" placeholder="Full name"></input>
|
|
11
|
+
<input class="ui-input" type="text" id="f-name" placeholder="{{ t('full_name', 'Full name') }}"></input>
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
14
14
|
<div class="ui-field">
|
|
15
|
-
<label class="ui-label" for="f-email">Email</label>
|
|
15
|
+
<label class="ui-label" for="f-email">{{ t('email', 'Email') }}</label>
|
|
16
16
|
<div class="ui-field__control">
|
|
17
|
-
<input class="ui-input" type="email" id="f-email" placeholder="you@example.com"></input>
|
|
17
|
+
<input class="ui-input" type="email" id="f-email" placeholder="{{ t('email_placeholder', 'you@example.com') }}"></input>
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
20
|
<div class="ui-form__actions">
|
|
21
|
-
<button class="ui-button">Submit</button>
|
|
22
|
-
<button class="ui-button ui-button--ghost" type="button">Cancel</button>
|
|
21
|
+
<button class="ui-button">{{ t('submit', 'Submit') }}</button>
|
|
22
|
+
<button class="ui-button ui-button--ghost" type="button">{{ t('cancel', 'Cancel') }}</button>
|
|
23
23
|
</div>
|
|
24
24
|
</form>
|
|
25
25
|
|
|
@@ -27,37 +27,37 @@ description: Layout container for form fields with consistent spacing, sections,
|
|
|
27
27
|
<!-- Group related fields using fieldset-based sections -->
|
|
28
28
|
<form class="ui-form">
|
|
29
29
|
<fieldset class="ui-form__section">
|
|
30
|
-
<legend class="ui-heading ui-heading--sm">Personal</legend>
|
|
30
|
+
<legend class="ui-heading ui-heading--sm">{{ t('personal', 'Personal') }}</legend>
|
|
31
31
|
<div class="ui-field">
|
|
32
|
-
<label class="ui-label" for="s-first">First name</label>
|
|
32
|
+
<label class="ui-label" for="s-first">{{ t('first_name', 'First name') }}</label>
|
|
33
33
|
<div class="ui-field__control">
|
|
34
34
|
<input class="ui-input" type="text" id="s-first"></input>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
37
|
<div class="ui-field">
|
|
38
|
-
<label class="ui-label" for="s-last">Last name</label>
|
|
38
|
+
<label class="ui-label" for="s-last">{{ t('last_name', 'Last name') }}</label>
|
|
39
39
|
<div class="ui-field__control">
|
|
40
40
|
<input class="ui-input" type="text" id="s-last"></input>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
</fieldset>
|
|
44
44
|
<fieldset class="ui-form__section">
|
|
45
|
-
<legend class="ui-heading ui-heading--sm">Account</legend>
|
|
45
|
+
<legend class="ui-heading ui-heading--sm">{{ t('account', 'Account') }}</legend>
|
|
46
46
|
<div class="ui-field">
|
|
47
|
-
<label class="ui-label" for="s-email">Email</label>
|
|
47
|
+
<label class="ui-label" for="s-email">{{ t('email', 'Email') }}</label>
|
|
48
48
|
<div class="ui-field__control">
|
|
49
49
|
<input class="ui-input" type="email" id="s-email"></input>
|
|
50
50
|
</div>
|
|
51
51
|
</div>
|
|
52
52
|
<div class="ui-field">
|
|
53
|
-
<label class="ui-label" for="s-pass">Password</label>
|
|
53
|
+
<label class="ui-label" for="s-pass">{{ t('password', 'Password') }}</label>
|
|
54
54
|
<div class="ui-field__control">
|
|
55
55
|
<input class="ui-input" type="password" id="s-pass"></input>
|
|
56
56
|
</div>
|
|
57
57
|
</div>
|
|
58
58
|
</fieldset>
|
|
59
59
|
<div class="ui-form__actions">
|
|
60
|
-
<button class="ui-button">Create account</button>
|
|
60
|
+
<button class="ui-button">{{ t('create_account', 'Create account') }}</button>
|
|
61
61
|
</div>
|
|
62
62
|
</form>
|
|
63
63
|
|
|
@@ -65,19 +65,19 @@ description: Layout container for form fields with consistent spacing, sections,
|
|
|
65
65
|
<!-- Tighter spacing for dense interfaces -->
|
|
66
66
|
<form class="ui-form ui-form--compact">
|
|
67
67
|
<div class="ui-field">
|
|
68
|
-
<label class="ui-label" for="c-user">Username</label>
|
|
68
|
+
<label class="ui-label" for="c-user">{{ t('username', 'Username') }}</label>
|
|
69
69
|
<div class="ui-field__control">
|
|
70
70
|
<input class="ui-input" type="text" id="c-user"></input>
|
|
71
71
|
</div>
|
|
72
72
|
</div>
|
|
73
73
|
<div class="ui-field">
|
|
74
|
-
<label class="ui-label" for="c-pass">Password</label>
|
|
74
|
+
<label class="ui-label" for="c-pass">{{ t('password', 'Password') }}</label>
|
|
75
75
|
<div class="ui-field__control">
|
|
76
76
|
<input class="ui-input" type="password" id="c-pass"></input>
|
|
77
77
|
</div>
|
|
78
78
|
</div>
|
|
79
79
|
<div class="ui-form__actions">
|
|
80
|
-
<button class="ui-button">Log in</button>
|
|
80
|
+
<button class="ui-button">{{ t('log_in', 'Log in') }}</button>
|
|
81
81
|
</div>
|
|
82
82
|
</form>
|
|
83
83
|
|
|
@@ -85,23 +85,23 @@ description: Layout container for form fields with consistent spacing, sections,
|
|
|
85
85
|
<!-- Horizontal layout for short forms like search or filters -->
|
|
86
86
|
<form class="ui-form ui-form--inline">
|
|
87
87
|
<div class="ui-field">
|
|
88
|
-
<label class="ui-label" for="i-search">Search</label>
|
|
88
|
+
<label class="ui-label" for="i-search">{{ t('search', 'Search') }}</label>
|
|
89
89
|
<div class="ui-field__control">
|
|
90
|
-
<input class="ui-input" type="search" id="i-search" placeholder="Search..."></input>
|
|
90
|
+
<input class="ui-input" type="search" id="i-search" placeholder="{{ t('search', 'Search...') }}"></input>
|
|
91
91
|
</div>
|
|
92
92
|
</div>
|
|
93
93
|
<div class="ui-field">
|
|
94
|
-
<label class="ui-label" for="i-cat">Category</label>
|
|
94
|
+
<label class="ui-label" for="i-cat">{{ t('category', 'Category') }}</label>
|
|
95
95
|
<div class="ui-field__control">
|
|
96
96
|
<select class="ui-select" id="i-cat">
|
|
97
|
-
<option>All</option>
|
|
98
|
-
<option>Articles</option>
|
|
99
|
-
<option>Products</option>
|
|
97
|
+
<option>{{ t('all', 'All') }}</option>
|
|
98
|
+
<option>{{ t('articles', 'Articles') }}</option>
|
|
99
|
+
<option>{{ t('products', 'Products') }}</option>
|
|
100
100
|
</select>
|
|
101
101
|
</div>
|
|
102
102
|
</div>
|
|
103
103
|
<div class="ui-form__actions">
|
|
104
|
-
<button class="ui-button">Filter</button>
|
|
104
|
+
<button class="ui-button">{{ t('filter', 'Filter') }}</button>
|
|
105
105
|
</div>
|
|
106
106
|
</form>
|
|
107
107
|
|
|
@@ -109,21 +109,21 @@ description: Layout container for form fields with consistent spacing, sections,
|
|
|
109
109
|
<!-- Combining form layout with field error states -->
|
|
110
110
|
<form class="ui-form">
|
|
111
111
|
<div class="ui-field">
|
|
112
|
-
<label class="ui-label ui-label--required" for="v-email">Email</label>
|
|
112
|
+
<label class="ui-label ui-label--required" for="v-email">{{ t('email', 'Email') }}</label>
|
|
113
113
|
<div class="ui-field__control">
|
|
114
114
|
<input class="ui-input ui-input--error" type="email" id="v-email" value="not-an-email"></input>
|
|
115
|
-
<span class="ui-form-error">Enter a valid email address</span>
|
|
115
|
+
<span class="ui-form-error">{{ t('enter_a_valid_email_address', 'Enter a valid email address') }}</span>
|
|
116
116
|
</div>
|
|
117
117
|
</div>
|
|
118
118
|
<div class="ui-field">
|
|
119
|
-
<label class="ui-label ui-label--required" for="v-pass">Password</label>
|
|
119
|
+
<label class="ui-label ui-label--required" for="v-pass">{{ t('password', 'Password') }}</label>
|
|
120
120
|
<div class="ui-field__control">
|
|
121
121
|
<input class="ui-input" type="password" id="v-pass"></input>
|
|
122
|
-
<span class="ui-form-helper">Must be at least 8 characters</span>
|
|
122
|
+
<span class="ui-form-helper">{{ t('must_be_at_least_8_characters', 'Must be at least 8 characters') }}</span>
|
|
123
123
|
</div>
|
|
124
124
|
</div>
|
|
125
125
|
<div class="ui-form__actions">
|
|
126
|
-
<button class="ui-button">Sign up</button>
|
|
127
|
-
<button class="ui-button ui-button--ghost" type="button">Reset</button>
|
|
126
|
+
<button class="ui-button">{{ t('sign_up', 'Sign up') }}</button>
|
|
127
|
+
<button class="ui-button ui-button--ghost" type="button">{{ t('reset', 'Reset') }}</button>
|
|
128
128
|
</div>
|
|
129
129
|
</form>
|
|
@@ -4,12 +4,12 @@ description: Validation error message for form fields. Displays in danger color.
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- @default -->
|
|
7
|
-
<span class="ui-form-error">This field is required</span>
|
|
7
|
+
<span class="ui-form-error">{{ t('this_field_is_required', 'This field is required') }}</span>
|
|
8
8
|
|
|
9
9
|
<!-- @with_icon -->
|
|
10
10
|
<span class="ui-form-error">
|
|
11
11
|
<svg class="ui-form-error__icon ui-icon ui-icon--sm" viewBox="0 0 24 24" fill="currentColor">
|
|
12
12
|
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"></path>
|
|
13
13
|
</svg>
|
|
14
|
-
<span>Please enter a valid email</span>
|
|
14
|
+
<span>{{ t('please_enter_a_valid_email', 'Please enter a valid email') }}</span>
|
|
15
15
|
</span>
|
|
@@ -4,36 +4,36 @@ description: Helper text for form fields. Provides additional context or instruc
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- @default -->
|
|
7
|
-
<span class="ui-form-helper">Must be at least 8 characters</span>
|
|
7
|
+
<span class="ui-form-helper">{{ t('must_be_at_least_8_characters', 'Must be at least 8 characters') }}</span>
|
|
8
8
|
|
|
9
9
|
<!-- @with_input_field | column -->
|
|
10
10
|
<!-- Helper text paired with a form input for context. -->
|
|
11
11
|
<div class="ui-column ui-column--xs">
|
|
12
|
-
<input class="ui-input" type="email" placeholder="Email address"></input>
|
|
13
|
-
<span class="ui-form-helper">We will never share your email</span>
|
|
12
|
+
<input class="ui-input" type="email" placeholder="{{ t('email_address', 'Email address') }}"></input>
|
|
13
|
+
<span class="ui-form-helper">{{ t('we_will_never_share_your_email', 'We will never share your email') }}</span>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
16
|
<!-- @error_state | column -->
|
|
17
17
|
<!-- Helper text styled for validation errors using the input error context. -->
|
|
18
18
|
<div class="ui-column ui-column--xs">
|
|
19
19
|
<input class="ui-input ui-input--error" type="text" value="abc"></input>
|
|
20
|
-
<span class="ui-form-helper" style="color: var(--ui-color-danger);">Password must be at least 8 characters</span>
|
|
20
|
+
<span class="ui-form-helper" style="color: var(--ui-color-danger);">{{ t('password_must_be_at_least_8_characters', 'Password must be at least 8 characters') }}</span>
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
23
|
<!-- @success_state | column -->
|
|
24
24
|
<!-- Helper text for successful validation. -->
|
|
25
25
|
<div class="ui-column ui-column--xs">
|
|
26
26
|
<input class="ui-input ui-input--success" type="text" value="strongpassword123"></input>
|
|
27
|
-
<span class="ui-form-helper" style="color: var(--ui-color-success);">Password strength: strong</span>
|
|
27
|
+
<span class="ui-form-helper" style="color: var(--ui-color-success);">{{ t('password_strength_strong', 'Password strength: strong') }}</span>
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
30
|
<!-- @with_select | column -->
|
|
31
31
|
<!-- Helper text paired with a select field. -->
|
|
32
32
|
<div class="ui-column ui-column--xs">
|
|
33
33
|
<select class="ui-select">
|
|
34
|
-
<option>Choose a country</option>
|
|
35
|
-
<option>United States</option>
|
|
36
|
-
<option>Canada</option>
|
|
34
|
+
<option>{{ t('choose_a_country', 'Choose a country') }}</option>
|
|
35
|
+
<option>{{ t('united_states', 'United States') }}</option>
|
|
36
|
+
<option>{{ t('canada', 'Canada') }}</option>
|
|
37
37
|
</select>
|
|
38
|
-
<span class="ui-form-helper">Required for shipping calculations</span>
|
|
38
|
+
<span class="ui-form-helper">{{ t('required_for_shipping_calculations', 'Required for shipping calculations') }}</span>
|
|
39
39
|
</div>
|
|
@@ -4,27 +4,27 @@ description: Text input field for user data entry. Heights align to grid rows.
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- @default -->
|
|
7
|
-
<input class="ui-input" type="text" placeholder="Enter text..."></input>
|
|
7
|
+
<input class="ui-input" type="text" placeholder="{{ t('enter_text', 'Enter text...') }}"></input>
|
|
8
8
|
|
|
9
9
|
<!-- @sizes | column -->
|
|
10
|
-
<input class="ui-input ui-input--sm" type="text" placeholder="Small (1.5 rows)"></input>
|
|
11
|
-
<input class="ui-input" type="text" placeholder="Default (2 rows)"></input>
|
|
12
|
-
<input class="ui-input ui-input--lg" type="text" placeholder="Large (2.5 rows)"></input>
|
|
10
|
+
<input class="ui-input ui-input--sm" type="text" placeholder="{{ t('small_15_rows', 'Small (1.5 rows)') }}"></input>
|
|
11
|
+
<input class="ui-input" type="text" placeholder="{{ t('default_2_rows', 'Default (2 rows)') }}"></input>
|
|
12
|
+
<input class="ui-input ui-input--lg" type="text" placeholder="{{ t('large_25_rows', 'Large (2.5 rows)') }}"></input>
|
|
13
13
|
|
|
14
14
|
<!-- @variants | column -->
|
|
15
|
-
<input class="ui-input" type="text" placeholder="Outline (default)"></input>
|
|
16
|
-
<input class="ui-input ui-input--filled" type="text" placeholder="Filled"></input>
|
|
17
|
-
<input class="ui-input ui-input--ghost" type="text" placeholder="Ghost"></input>
|
|
15
|
+
<input class="ui-input" type="text" placeholder="{{ t('outline_default', 'Outline (default)') }}"></input>
|
|
16
|
+
<input class="ui-input ui-input--filled" type="text" placeholder="{{ t('filled', 'Filled') }}"></input>
|
|
17
|
+
<input class="ui-input ui-input--ghost" type="text" placeholder="{{ t('ghost', 'Ghost') }}"></input>
|
|
18
18
|
|
|
19
19
|
<!-- @states | column -->
|
|
20
|
-
<input class="ui-input" type="text" placeholder="Default"></input>
|
|
20
|
+
<input class="ui-input" type="text" placeholder="{{ t('default', 'Default') }}"></input>
|
|
21
21
|
<input class="ui-input ui-input--error" type="text" value="Invalid input"></input>
|
|
22
22
|
<input class="ui-input ui-input--success" type="text" value="Valid input"></input>
|
|
23
|
-
<input class="ui-input" type="text" placeholder="Disabled" disabled></input>
|
|
23
|
+
<input class="ui-input" type="text" placeholder="{{ t('disabled', 'Disabled') }}" disabled></input>
|
|
24
24
|
<input class="ui-input" type="text" value="Read only" readonly></input>
|
|
25
25
|
|
|
26
26
|
<!-- @full_width -->
|
|
27
|
-
<input class="ui-input ui-input--block" type="text" placeholder="Full width input"></input>
|
|
27
|
+
<input class="ui-input ui-input--block" type="text" placeholder="{{ t('full_width_input', 'Full width input') }}"></input>
|
|
28
28
|
|
|
29
29
|
<!-- @with_prefix_icon -->
|
|
30
30
|
<div class="ui-input-group ui-input-group--has-prefix">
|
|
@@ -34,12 +34,12 @@ description: Text input field for user data entry. Heights align to grid rows.
|
|
|
34
34
|
<path d="m21 21-4.3-4.3"></path>
|
|
35
35
|
</svg>
|
|
36
36
|
</span>
|
|
37
|
-
<input class="ui-input ui-input--block" type="search" placeholder="Search..."></input>
|
|
37
|
+
<input class="ui-input ui-input--block" type="search" placeholder="{{ t('search', 'Search...') }}"></input>
|
|
38
38
|
</div>
|
|
39
39
|
|
|
40
40
|
<!-- @with_suffix_icon -->
|
|
41
41
|
<div class="ui-input-group ui-input-group--has-suffix">
|
|
42
|
-
<input class="ui-input ui-input--block" type="email" placeholder="Email address"></input>
|
|
42
|
+
<input class="ui-input ui-input--block" type="email" placeholder="{{ t('email_address', 'Email address') }}"></input>
|
|
43
43
|
<span class="ui-input-group__addon ui-input-group__addon--end">
|
|
44
44
|
<svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
45
45
|
<rect width="20" height="16" x="2" y="4" rx="2"></rect>
|
|
@@ -56,7 +56,7 @@ description: Text input field for user data entry. Heights align to grid rows.
|
|
|
56
56
|
<circle cx="12" cy="7" r="4"></circle>
|
|
57
57
|
</svg>
|
|
58
58
|
</span>
|
|
59
|
-
<input class="ui-input ui-input--block" type="text" placeholder="Username"></input>
|
|
59
|
+
<input class="ui-input ui-input--block" type="text" placeholder="{{ t('username', 'Username') }}"></input>
|
|
60
60
|
<span class="ui-input-group__addon ui-input-group__addon--end ui-input-group__addon--interactive">
|
|
61
61
|
<svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
62
62
|
<path d="M18 6 6 18"></path>
|
|
@@ -4,23 +4,23 @@ description: Form control labels. Associates text with inputs via htmlFor or wra
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- @default -->
|
|
7
|
-
<label class="ui-label" for="input1">Email address</label>
|
|
7
|
+
<label class="ui-label" for="input1">{{ t('email_address', 'Email address') }}</label>
|
|
8
8
|
|
|
9
9
|
<!-- @required -->
|
|
10
10
|
<label class="ui-label" for="input2">
|
|
11
|
-
Email address
|
|
11
|
+
{{ t('email_address', 'Email address') }}
|
|
12
12
|
<span class="ui-label__required">*</span>
|
|
13
13
|
</label>
|
|
14
14
|
|
|
15
15
|
<!-- @optional -->
|
|
16
16
|
<label class="ui-label" for="input3">
|
|
17
|
-
Phone number
|
|
18
|
-
<span class="ui-label__optional">(optional)</span>
|
|
17
|
+
{{ t('phone_number', 'Phone number') }}
|
|
18
|
+
<span class="ui-label__optional">{{ t('optional', '(optional)') }}</span>
|
|
19
19
|
</label>
|
|
20
20
|
|
|
21
21
|
<!-- @sizes | column -->
|
|
22
|
-
<label class="ui-label">Default size</label>
|
|
23
|
-
<label class="ui-label ui-label--lg">Large size</label>
|
|
22
|
+
<label class="ui-label">{{ t('default_size', 'Default size') }}</label>
|
|
23
|
+
<label class="ui-label ui-label--lg">{{ t('large_size', 'Large size') }}</label>
|
|
24
24
|
|
|
25
25
|
<!-- @disabled -->
|
|
26
|
-
<label class="ui-label" aria-disabled="true">Disabled label</label>
|
|
26
|
+
<label class="ui-label" aria-disabled="true">{{ t('disabled_label', 'Disabled label') }}</label>
|
|
@@ -5,13 +5,13 @@ description: Numeric input with increment and decrement stepper buttons.
|
|
|
5
5
|
|
|
6
6
|
<!-- @default -->
|
|
7
7
|
<div class="ui-number-input">
|
|
8
|
-
<button class="ui-number-input__decrement" type="button" aria-label="Decrease">
|
|
8
|
+
<button class="ui-number-input__decrement" type="button" aria-label="{{ t('decrease', 'Decrease') }}">
|
|
9
9
|
<svg viewBox="0 0 24 24">
|
|
10
10
|
<path d="M5 12h14"></path>
|
|
11
11
|
</svg>
|
|
12
12
|
</button>
|
|
13
13
|
<input class="ui-number-input__field" type="number" value="5"></input>
|
|
14
|
-
<button class="ui-number-input__increment" type="button" aria-label="Increase">
|
|
14
|
+
<button class="ui-number-input__increment" type="button" aria-label="{{ t('increase', 'Increase') }}">
|
|
15
15
|
<svg viewBox="0 0 24 24">
|
|
16
16
|
<path d="M12 5v14"></path>
|
|
17
17
|
<path d="M5 12h14"></path>
|
|
@@ -21,13 +21,13 @@ description: Numeric input with increment and decrement stepper buttons.
|
|
|
21
21
|
|
|
22
22
|
<!-- @sizes | column -->
|
|
23
23
|
<div class="ui-number-input ui-number-input--sm">
|
|
24
|
-
<button class="ui-number-input__decrement" type="button" aria-label="Decrease">
|
|
24
|
+
<button class="ui-number-input__decrement" type="button" aria-label="{{ t('decrease', 'Decrease') }}">
|
|
25
25
|
<svg viewBox="0 0 24 24">
|
|
26
26
|
<path d="M5 12h14"></path>
|
|
27
27
|
</svg>
|
|
28
28
|
</button>
|
|
29
29
|
<input class="ui-number-input__field" type="number" value="3"></input>
|
|
30
|
-
<button class="ui-number-input__increment" type="button" aria-label="Increase">
|
|
30
|
+
<button class="ui-number-input__increment" type="button" aria-label="{{ t('increase', 'Increase') }}">
|
|
31
31
|
<svg viewBox="0 0 24 24">
|
|
32
32
|
<path d="M12 5v14"></path>
|
|
33
33
|
<path d="M5 12h14"></path>
|
|
@@ -35,13 +35,13 @@ description: Numeric input with increment and decrement stepper buttons.
|
|
|
35
35
|
</button>
|
|
36
36
|
</div>
|
|
37
37
|
<div class="ui-number-input">
|
|
38
|
-
<button class="ui-number-input__decrement" type="button" aria-label="Decrease">
|
|
38
|
+
<button class="ui-number-input__decrement" type="button" aria-label="{{ t('decrease', 'Decrease') }}">
|
|
39
39
|
<svg viewBox="0 0 24 24">
|
|
40
40
|
<path d="M5 12h14"></path>
|
|
41
41
|
</svg>
|
|
42
42
|
</button>
|
|
43
43
|
<input class="ui-number-input__field" type="number" value="5"></input>
|
|
44
|
-
<button class="ui-number-input__increment" type="button" aria-label="Increase">
|
|
44
|
+
<button class="ui-number-input__increment" type="button" aria-label="{{ t('increase', 'Increase') }}">
|
|
45
45
|
<svg viewBox="0 0 24 24">
|
|
46
46
|
<path d="M12 5v14"></path>
|
|
47
47
|
<path d="M5 12h14"></path>
|
|
@@ -49,13 +49,13 @@ description: Numeric input with increment and decrement stepper buttons.
|
|
|
49
49
|
</button>
|
|
50
50
|
</div>
|
|
51
51
|
<div class="ui-number-input ui-number-input--lg">
|
|
52
|
-
<button class="ui-number-input__decrement" type="button" aria-label="Decrease">
|
|
52
|
+
<button class="ui-number-input__decrement" type="button" aria-label="{{ t('decrease', 'Decrease') }}">
|
|
53
53
|
<svg viewBox="0 0 24 24">
|
|
54
54
|
<path d="M5 12h14"></path>
|
|
55
55
|
</svg>
|
|
56
56
|
</button>
|
|
57
57
|
<input class="ui-number-input__field" type="number" value="10"></input>
|
|
58
|
-
<button class="ui-number-input__increment" type="button" aria-label="Increase">
|
|
58
|
+
<button class="ui-number-input__increment" type="button" aria-label="{{ t('increase', 'Increase') }}">
|
|
59
59
|
<svg viewBox="0 0 24 24">
|
|
60
60
|
<path d="M12 5v14"></path>
|
|
61
61
|
<path d="M5 12h14"></path>
|
|
@@ -66,13 +66,13 @@ description: Numeric input with increment and decrement stepper buttons.
|
|
|
66
66
|
<!-- @block -->
|
|
67
67
|
<!-- Full-width layout. -->
|
|
68
68
|
<div class="ui-number-input ui-number-input--block">
|
|
69
|
-
<button class="ui-number-input__decrement" type="button" aria-label="Decrease">
|
|
69
|
+
<button class="ui-number-input__decrement" type="button" aria-label="{{ t('decrease', 'Decrease') }}">
|
|
70
70
|
<svg viewBox="0 0 24 24">
|
|
71
71
|
<path d="M5 12h14"></path>
|
|
72
72
|
</svg>
|
|
73
73
|
</button>
|
|
74
74
|
<input class="ui-number-input__field" type="number" value="5"></input>
|
|
75
|
-
<button class="ui-number-input__increment" type="button" aria-label="Increase">
|
|
75
|
+
<button class="ui-number-input__increment" type="button" aria-label="{{ t('increase', 'Increase') }}">
|
|
76
76
|
<svg viewBox="0 0 24 24">
|
|
77
77
|
<path d="M12 5v14"></path>
|
|
78
78
|
<path d="M5 12h14"></path>
|
|
@@ -82,13 +82,13 @@ description: Numeric input with increment and decrement stepper buttons.
|
|
|
82
82
|
|
|
83
83
|
<!-- @disabled -->
|
|
84
84
|
<div class="ui-number-input ui-number-input--disabled">
|
|
85
|
-
<button class="ui-number-input__decrement" type="button" aria-label="Decrease" disabled>
|
|
85
|
+
<button class="ui-number-input__decrement" type="button" aria-label="{{ t('decrease', 'Decrease') }}" disabled>
|
|
86
86
|
<svg viewBox="0 0 24 24">
|
|
87
87
|
<path d="M5 12h14"></path>
|
|
88
88
|
</svg>
|
|
89
89
|
</button>
|
|
90
90
|
<input class="ui-number-input__field" type="number" value="0" disabled></input>
|
|
91
|
-
<button class="ui-number-input__increment" type="button" aria-label="Increase" disabled>
|
|
91
|
+
<button class="ui-number-input__increment" type="button" aria-label="{{ t('increase', 'Increase') }}" disabled>
|
|
92
92
|
<svg viewBox="0 0 24 24">
|
|
93
93
|
<path d="M12 5v14"></path>
|
|
94
94
|
<path d="M5 12h14"></path>
|
|
@@ -5,8 +5,8 @@ description: Secure password field with toggle visibility button.
|
|
|
5
5
|
|
|
6
6
|
<!-- @default -->
|
|
7
7
|
<div class="ui-password-input">
|
|
8
|
-
<input class="ui-password-input__field" type="password" placeholder="Enter password"></input>
|
|
9
|
-
<button class="ui-password-input__toggle" type="button" aria-label="Show password">
|
|
8
|
+
<input class="ui-password-input__field" type="password" placeholder="{{ t('enter_password', 'Enter password') }}"></input>
|
|
9
|
+
<button class="ui-password-input__toggle" type="button" aria-label="{{ t('show_password', 'Show password') }}">
|
|
10
10
|
<svg viewBox="0 0 24 24">
|
|
11
11
|
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
|
|
12
12
|
<circle cx="12" cy="12" r="3"></circle>
|
|
@@ -16,8 +16,8 @@ description: Secure password field with toggle visibility button.
|
|
|
16
16
|
|
|
17
17
|
<!-- @sizes | column -->
|
|
18
18
|
<div class="ui-password-input ui-password-input--sm">
|
|
19
|
-
<input class="ui-password-input__field" type="password" placeholder="Small"></input>
|
|
20
|
-
<button class="ui-password-input__toggle" type="button" aria-label="Show password">
|
|
19
|
+
<input class="ui-password-input__field" type="password" placeholder="{{ t('small', 'Small') }}"></input>
|
|
20
|
+
<button class="ui-password-input__toggle" type="button" aria-label="{{ t('show_password', 'Show password') }}">
|
|
21
21
|
<svg viewBox="0 0 24 24">
|
|
22
22
|
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
|
|
23
23
|
<circle cx="12" cy="12" r="3"></circle>
|
|
@@ -25,8 +25,8 @@ description: Secure password field with toggle visibility button.
|
|
|
25
25
|
</button>
|
|
26
26
|
</div>
|
|
27
27
|
<div class="ui-password-input">
|
|
28
|
-
<input class="ui-password-input__field" type="password" placeholder="Default"></input>
|
|
29
|
-
<button class="ui-password-input__toggle" type="button" aria-label="Show password">
|
|
28
|
+
<input class="ui-password-input__field" type="password" placeholder="{{ t('default', 'Default') }}"></input>
|
|
29
|
+
<button class="ui-password-input__toggle" type="button" aria-label="{{ t('show_password', 'Show password') }}">
|
|
30
30
|
<svg viewBox="0 0 24 24">
|
|
31
31
|
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
|
|
32
32
|
<circle cx="12" cy="12" r="3"></circle>
|
|
@@ -34,8 +34,8 @@ description: Secure password field with toggle visibility button.
|
|
|
34
34
|
</button>
|
|
35
35
|
</div>
|
|
36
36
|
<div class="ui-password-input ui-password-input--lg">
|
|
37
|
-
<input class="ui-password-input__field" type="password" placeholder="Large"></input>
|
|
38
|
-
<button class="ui-password-input__toggle" type="button" aria-label="Show password">
|
|
37
|
+
<input class="ui-password-input__field" type="password" placeholder="{{ t('large', 'Large') }}"></input>
|
|
38
|
+
<button class="ui-password-input__toggle" type="button" aria-label="{{ t('show_password', 'Show password') }}">
|
|
39
39
|
<svg viewBox="0 0 24 24">
|
|
40
40
|
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
|
|
41
41
|
<circle cx="12" cy="12" r="3"></circle>
|
|
@@ -46,8 +46,8 @@ description: Secure password field with toggle visibility button.
|
|
|
46
46
|
<!-- @block -->
|
|
47
47
|
<!-- Full-width layout. -->
|
|
48
48
|
<div class="ui-password-input ui-password-input--block">
|
|
49
|
-
<input class="ui-password-input__field" type="password" placeholder="Full width"></input>
|
|
50
|
-
<button class="ui-password-input__toggle" type="button" aria-label="Show password">
|
|
49
|
+
<input class="ui-password-input__field" type="password" placeholder="{{ t('full_width', 'Full width') }}"></input>
|
|
50
|
+
<button class="ui-password-input__toggle" type="button" aria-label="{{ t('show_password', 'Show password') }}">
|
|
51
51
|
<svg viewBox="0 0 24 24">
|
|
52
52
|
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
|
|
53
53
|
<circle cx="12" cy="12" r="3"></circle>
|
|
@@ -58,7 +58,7 @@ description: Secure password field with toggle visibility button.
|
|
|
58
58
|
<!-- @states | column -->
|
|
59
59
|
<div class="ui-password-input ui-password-input--error">
|
|
60
60
|
<input class="ui-password-input__field" type="password" value="wrongpass"></input>
|
|
61
|
-
<button class="ui-password-input__toggle" type="button" aria-label="Show password">
|
|
61
|
+
<button class="ui-password-input__toggle" type="button" aria-label="{{ t('show_password', 'Show password') }}">
|
|
62
62
|
<svg viewBox="0 0 24 24">
|
|
63
63
|
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
|
|
64
64
|
<circle cx="12" cy="12" r="3"></circle>
|
|
@@ -67,7 +67,7 @@ description: Secure password field with toggle visibility button.
|
|
|
67
67
|
</div>
|
|
68
68
|
<div class="ui-password-input ui-password-input--success">
|
|
69
69
|
<input class="ui-password-input__field" type="password" value="correctpass"></input>
|
|
70
|
-
<button class="ui-password-input__toggle" type="button" aria-label="Show password">
|
|
70
|
+
<button class="ui-password-input__toggle" type="button" aria-label="{{ t('show_password', 'Show password') }}">
|
|
71
71
|
<svg viewBox="0 0 24 24">
|
|
72
72
|
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
|
|
73
73
|
<circle cx="12" cy="12" r="3"></circle>
|
|
@@ -75,8 +75,8 @@ description: Secure password field with toggle visibility button.
|
|
|
75
75
|
</button>
|
|
76
76
|
</div>
|
|
77
77
|
<div class="ui-password-input ui-password-input--disabled">
|
|
78
|
-
<input class="ui-password-input__field" type="password" placeholder="Disabled" disabled></input>
|
|
79
|
-
<button class="ui-password-input__toggle" type="button" aria-label="Show password" disabled>
|
|
78
|
+
<input class="ui-password-input__field" type="password" placeholder="{{ t('disabled', 'Disabled') }}" disabled></input>
|
|
79
|
+
<button class="ui-password-input__toggle" type="button" aria-label="{{ t('show_password', 'Show password') }}" disabled>
|
|
80
80
|
<svg viewBox="0 0 24 24">
|
|
81
81
|
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
|
|
82
82
|
<circle cx="12" cy="12" r="3"></circle>
|
|
@@ -26,24 +26,24 @@ description: Native radio button with custom styling. Use for mutually exclusive
|
|
|
26
26
|
<!-- @with_label -->
|
|
27
27
|
<label class="ui-row" style="gap: var(--ui-space-1); cursor: pointer;">
|
|
28
28
|
<input class="ui-radio" type="radio" name="labeled"></input>
|
|
29
|
-
<span>Option one</span>
|
|
29
|
+
<span>{{ t('option_one', 'Option one') }}</span>
|
|
30
30
|
</label>
|
|
31
31
|
|
|
32
32
|
<!-- @radio_group -->
|
|
33
33
|
<fieldset style="border: none; padding: 0; margin: 0;">
|
|
34
|
-
<legend style="font-weight: 600; margin-block-end: var(--ui-space-1);">Choose an option</legend>
|
|
34
|
+
<legend style="font-weight: 600; margin-block-end: var(--ui-space-1);">{{ t('choose_an_option', 'Choose an option') }}</legend>
|
|
35
35
|
<div class="ui-column" style="--column-gap: var(--ui-space-1);">
|
|
36
36
|
<label class="ui-row" style="gap: var(--ui-space-1); cursor: pointer;">
|
|
37
37
|
<input class="ui-radio" type="radio" name="group-demo" checked></input>
|
|
38
|
-
<span>Option A</span>
|
|
38
|
+
<span>{{ t('option_a', 'Option A') }}</span>
|
|
39
39
|
</label>
|
|
40
40
|
<label class="ui-row" style="gap: var(--ui-space-1); cursor: pointer;">
|
|
41
41
|
<input class="ui-radio" type="radio" name="group-demo"></input>
|
|
42
|
-
<span>Option B</span>
|
|
42
|
+
<span>{{ t('option_b', 'Option B') }}</span>
|
|
43
43
|
</label>
|
|
44
44
|
<label class="ui-row" style="gap: var(--ui-space-1); cursor: pointer;">
|
|
45
45
|
<input class="ui-radio" type="radio" name="group-demo"></input>
|
|
46
|
-
<span>Option C</span>
|
|
46
|
+
<span>{{ t('option_c', 'Option C') }}</span>
|
|
47
47
|
</label>
|
|
48
48
|
</div>
|
|
49
49
|
</fieldset>
|