@teseor/css 1.15.2 → 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.
Files changed (90) hide show
  1. package/package.json +1 -1
  2. package/src/base/docs.html +1 -1
  3. package/src/base/typography/docs.html +33 -33
  4. package/src/components/actions/button/docs.html +19 -19
  5. package/src/components/actions/button-group/docs.html +12 -12
  6. package/src/components/actions/close-button/docs.html +10 -10
  7. package/src/components/content/divider/docs.html +1 -1
  8. package/src/components/content/scroll-area/docs.html +81 -81
  9. package/src/components/content/spacer/docs.html +6 -6
  10. package/src/components/data-display/avatar/docs.html +8 -8
  11. package/src/components/data-display/card/docs.html +12 -12
  12. package/src/components/data-display/data-list/docs.html +32 -32
  13. package/src/components/data-display/icon/docs.html +5 -5
  14. package/src/components/data-display/image/docs.html +1 -1
  15. package/src/components/data-display/stat/docs.html +6 -6
  16. package/src/components/data-display/status/docs.html +9 -9
  17. package/src/components/data-display/table/docs.html +14 -14
  18. package/src/components/data-display/tag/docs.html +17 -17
  19. package/src/components/disclosure/accordion/docs.html +14 -14
  20. package/src/components/disclosure/disclosure/docs.html +8 -8
  21. package/src/components/feedback/alert/docs.html +18 -18
  22. package/src/components/feedback/progress/docs.html +2 -2
  23. package/src/components/feedback/toast/docs.html +22 -22
  24. package/src/components/forms/checkbox/docs.html +1 -1
  25. package/src/components/forms/checkbox-group/docs.html +21 -21
  26. package/src/components/forms/field/docs.html +11 -11
  27. package/src/components/forms/fieldset/docs.html +30 -30
  28. package/src/components/forms/form/docs.html +29 -29
  29. package/src/components/forms/form-error/docs.html +2 -2
  30. package/src/components/forms/form-helper/docs.html +9 -9
  31. package/src/components/forms/input/docs.html +13 -13
  32. package/src/components/forms/label/docs.html +7 -7
  33. package/src/components/forms/number-input/docs.html +12 -12
  34. package/src/components/forms/password-input/docs.html +14 -14
  35. package/src/components/forms/radio/docs.html +5 -5
  36. package/src/components/forms/radio-group/docs.html +20 -20
  37. package/src/components/forms/search-input/docs.html +7 -7
  38. package/src/components/forms/select/docs.html +23 -23
  39. package/src/components/forms/textarea/docs.html +18 -18
  40. package/src/components/forms/toggle/docs.html +1 -1
  41. package/src/components/navigation/breadcrumb/docs.html +11 -11
  42. package/src/components/navigation/dropdown-menu/docs.html +18 -18
  43. package/src/components/navigation/menu/docs.html +25 -25
  44. package/src/components/navigation/nav/docs.html +13 -13
  45. package/src/components/navigation/pagination/docs.html +6 -6
  46. package/src/components/navigation/tabs/docs.html +19 -19
  47. package/src/components/overlays/dialog/docs.html +12 -12
  48. package/src/components/overlays/drawer/docs.html +16 -16
  49. package/src/components/overlays/modal/docs.html +11 -11
  50. package/src/components/overlays/overlay/docs.html +3 -3
  51. package/src/components/overlays/popover/docs.html +7 -7
  52. package/src/components/overlays/tooltip/docs.html +7 -7
  53. package/src/components/typography/blockquote/docs.html +5 -5
  54. package/src/components/typography/code/docs.html +2 -2
  55. package/src/components/typography/code-block/docs.html +2 -2
  56. package/src/components/typography/heading/docs.html +11 -11
  57. package/src/components/typography/kbd/docs.html +6 -6
  58. package/src/components/typography/link/docs.html +8 -8
  59. package/src/components/typography/list/docs.html +32 -32
  60. package/src/config/guides/accessibility.docs.html +5 -5
  61. package/src/config/guides/getting-started.docs.html +7 -7
  62. package/src/config/guides/theming.docs.html +21 -21
  63. package/src/config/tokens/docs.html +7 -7
  64. package/src/config/tokens/grid/docs.html +3 -3
  65. package/src/config/tokens/spacing/docs.html +6 -6
  66. package/src/debug/docs.html +3 -3
  67. package/src/layout/app-shell/docs.html +15 -15
  68. package/src/layout/aspect-ratio/docs.html +8 -8
  69. package/src/layout/box/docs.html +10 -10
  70. package/src/layout/center/docs.html +4 -4
  71. package/src/layout/column/docs.html +11 -11
  72. package/src/layout/container/docs.html +7 -7
  73. package/src/layout/content/docs.html +9 -9
  74. package/src/layout/footer/docs.html +16 -16
  75. package/src/layout/grid/docs.html +25 -25
  76. package/src/layout/main/docs.html +3 -3
  77. package/src/layout/nav-rail/docs.html +5 -5
  78. package/src/layout/page-header/docs.html +9 -9
  79. package/src/layout/row/docs.html +18 -18
  80. package/src/layout/sidebar/docs.html +5 -5
  81. package/src/layout/sidebar-nav/docs.html +37 -37
  82. package/src/layout/topbar/docs.html +14 -14
  83. package/src/utilities/container/docs.html +4 -4
  84. package/src/utilities/display/docs.html +11 -11
  85. package/src/utilities/scroll-animation/docs.html +5 -5
  86. package/src/utilities/scroll-snap/docs.html +30 -30
  87. package/src/utilities/spacing/docs.html +12 -12
  88. package/src/utilities/text/docs.html +36 -36
  89. package/src/utilities/view-transition/docs.html +12 -12
  90. package/src/utilities/visually-hidden/docs.html +3 -3
@@ -6,8 +6,8 @@ description: Informational banner for important messages. Use variants for diffe
6
6
  <!-- @default -->
7
7
  <div class="ui-alert">
8
8
  <div class="ui-alert__content">
9
- <p class="ui-alert__title">Note</p>
10
- <p class="ui-alert__description">This is a default alert message.</p>
9
+ <p class="ui-alert__title">{{ t('note', 'Note') }}</p>
10
+ <p class="ui-alert__description">{{ t('this_is_a_default_alert_message', 'This is a default alert message.') }}</p>
11
11
  </div>
12
12
  </div>
13
13
 
@@ -15,26 +15,26 @@ description: Informational banner for important messages. Use variants for diffe
15
15
  <div class="ui-column" style="--column-gap: var(--ui-space-2);">
16
16
  <div class="ui-alert ui-alert--info">
17
17
  <div class="ui-alert__content">
18
- <p class="ui-alert__title">Info</p>
19
- <p class="ui-alert__description">Informational message for the user.</p>
18
+ <p class="ui-alert__title">{{ t('info', 'Info') }}</p>
19
+ <p class="ui-alert__description">{{ t('informational_message_for_the_user', 'Informational message for the user.') }}</p>
20
20
  </div>
21
21
  </div>
22
22
  <div class="ui-alert ui-alert--success">
23
23
  <div class="ui-alert__content">
24
- <p class="ui-alert__title">Success</p>
25
- <p class="ui-alert__description">Your action was completed successfully.</p>
24
+ <p class="ui-alert__title">{{ t('success', 'Success') }}</p>
25
+ <p class="ui-alert__description">{{ t('your_action_was_completed_successfully', 'Your action was completed successfully.') }}</p>
26
26
  </div>
27
27
  </div>
28
28
  <div class="ui-alert ui-alert--warning">
29
29
  <div class="ui-alert__content">
30
- <p class="ui-alert__title">Warning</p>
31
- <p class="ui-alert__description">Please review before continuing.</p>
30
+ <p class="ui-alert__title">{{ t('warning', 'Warning') }}</p>
31
+ <p class="ui-alert__description">{{ t('please_review_before_continuing', 'Please review before continuing.') }}</p>
32
32
  </div>
33
33
  </div>
34
34
  <div class="ui-alert ui-alert--danger">
35
35
  <div class="ui-alert__content">
36
- <p class="ui-alert__title">Error</p>
37
- <p class="ui-alert__description">Something went wrong. Please try again.</p>
36
+ <p class="ui-alert__title">{{ t('error', 'Error') }}</p>
37
+ <p class="ui-alert__description">{{ t('something_went_wrong_please_try_again', 'Something went wrong. Please try again.') }}</p>
38
38
  </div>
39
39
  </div>
40
40
  </div>
@@ -47,14 +47,14 @@ description: Informational banner for important messages. Use variants for diffe
47
47
  <path d="M12 8h.01"></path>
48
48
  </svg>
49
49
  <div class="ui-alert__content">
50
- <p class="ui-alert__description">Your session will expire in 5 minutes.</p>
50
+ <p class="ui-alert__description">{{ t('your_session_will_expire_in_5_minutes', 'Your session will expire in 5 minutes.') }}</p>
51
51
  </div>
52
52
  </div>
53
53
 
54
54
  <!-- @description_only -->
55
55
  <div class="ui-alert ui-alert--success">
56
56
  <div class="ui-alert__content">
57
- <p class="ui-alert__description">File uploaded successfully.</p>
57
+ <p class="ui-alert__description">{{ t('file_uploaded_successfully', 'File uploaded successfully.') }}</p>
58
58
  </div>
59
59
  </div>
60
60
 
@@ -62,17 +62,17 @@ description: Informational banner for important messages. Use variants for diffe
62
62
  <div class="ui-column" style="--column-gap: var(--ui-space-2);">
63
63
  <div class="ui-alert ui-alert--info ui-alert--sm">
64
64
  <div class="ui-alert__content">
65
- <p class="ui-alert__description">Small alert with compact padding.</p>
65
+ <p class="ui-alert__description">{{ t('small_alert_with_compact_padding', 'Small alert with compact padding.') }}</p>
66
66
  </div>
67
67
  </div>
68
68
  <div class="ui-alert ui-alert--info">
69
69
  <div class="ui-alert__content">
70
- <p class="ui-alert__description">Default alert size.</p>
70
+ <p class="ui-alert__description">{{ t('default_alert_size', 'Default alert size.') }}</p>
71
71
  </div>
72
72
  </div>
73
73
  <div class="ui-alert ui-alert--info ui-alert--lg">
74
74
  <div class="ui-alert__content">
75
- <p class="ui-alert__description">Large alert with extra padding.</p>
75
+ <p class="ui-alert__description">{{ t('large_alert_with_extra_padding', 'Large alert with extra padding.') }}</p>
76
76
  </div>
77
77
  </div>
78
78
  </div>
@@ -80,8 +80,8 @@ description: Informational banner for important messages. Use variants for diffe
80
80
  <!-- @dismissible -->
81
81
  <div class="ui-alert ui-alert--info ui-alert--dismissible">
82
82
  <div class="ui-alert__content">
83
- <p class="ui-alert__title">Dismissible</p>
84
- <p class="ui-alert__description">This alert can be closed by the user.</p>
83
+ <p class="ui-alert__title">{{ t('dismissible', 'Dismissible') }}</p>
84
+ <p class="ui-alert__description">{{ t('this_alert_can_be_closed_by_the_user', 'This alert can be closed by the user.') }}</p>
85
85
  </div>
86
- <button class="ui-alert__close ui-close-button" aria-label="Close"></button>
86
+ <button class="ui-alert__close ui-close-button" aria-label="{{ t('close', 'Close') }}"></button>
87
87
  </div>
@@ -4,7 +4,7 @@ description: Progress bar indicator showing completion status. Use aria-valuenow
4
4
  ---
5
5
 
6
6
  <!-- @default -->
7
- <div class="ui-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Loading">
7
+ <div class="ui-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="{{ t('loading', 'Loading') }}">
8
8
  <div class="ui-progress__bar" style="width: 60%;"></div>
9
9
  </div>
10
10
 
@@ -46,7 +46,7 @@ description: Progress bar indicator showing completion status. Use aria-valuenow
46
46
 
47
47
  <!-- @indeterminate -->
48
48
  <!-- For unknown progress duration -->
49
- <div class="ui-progress ui-progress--indeterminate" role="progressbar" aria-label="Loading">
49
+ <div class="ui-progress ui-progress--indeterminate" role="progressbar" aria-label="{{ t('loading', 'Loading') }}">
50
50
  <div class="ui-progress__bar"></div>
51
51
  </div>
52
52
 
@@ -4,48 +4,48 @@ title: Toast
4
4
 
5
5
  <!-- @default -->
6
6
  <div class="ui-toast">
7
- <span class="ui-toast__icon">i</span>
7
+ <span class="ui-toast__icon">{{ t('i', 'i') }}</span>
8
8
  <div class="ui-toast__content">
9
- <p class="ui-toast__title">Notification</p>
10
- <p class="ui-toast__description">Your changes have been saved.</p>
9
+ <p class="ui-toast__title">{{ t('notification', 'Notification') }}</p>
10
+ <p class="ui-toast__description">{{ t('your_changes_have_been_saved', 'Your changes have been saved.') }}</p>
11
11
  </div>
12
- <button class="ui-toast__close">X</button>
12
+ <button class="ui-toast__close">{{ t('x', 'X') }}</button>
13
13
  </div>
14
14
 
15
15
  <!-- @variants | column -->
16
16
  <div class="ui-toast ui-toast--success">
17
17
  <div class="ui-toast__content">
18
- <p class="ui-toast__title">Success</p>
19
- <p class="ui-toast__description">Operation completed successfully.</p>
18
+ <p class="ui-toast__title">{{ t('success', 'Success') }}</p>
19
+ <p class="ui-toast__description">{{ t('operation_completed_successfully', 'Operation completed successfully.') }}</p>
20
20
  </div>
21
21
  </div>
22
22
  <div class="ui-toast ui-toast--warning">
23
23
  <div class="ui-toast__content">
24
- <p class="ui-toast__title">Warning</p>
25
- <p class="ui-toast__description">Please review before continuing.</p>
24
+ <p class="ui-toast__title">{{ t('warning', 'Warning') }}</p>
25
+ <p class="ui-toast__description">{{ t('please_review_before_continuing', 'Please review before continuing.') }}</p>
26
26
  </div>
27
27
  </div>
28
28
  <div class="ui-toast ui-toast--danger">
29
29
  <div class="ui-toast__content">
30
- <p class="ui-toast__title">Error</p>
31
- <p class="ui-toast__description">Something went wrong.</p>
30
+ <p class="ui-toast__title">{{ t('error', 'Error') }}</p>
31
+ <p class="ui-toast__description">{{ t('something_went_wrong', 'Something went wrong.') }}</p>
32
32
  </div>
33
33
  </div>
34
34
  <div class="ui-toast ui-toast--info">
35
35
  <div class="ui-toast__content">
36
- <p class="ui-toast__title">Info</p>
37
- <p class="ui-toast__description">New updates available.</p>
36
+ <p class="ui-toast__title">{{ t('info', 'Info') }}</p>
37
+ <p class="ui-toast__description">{{ t('new_updates_available', 'New updates available.') }}</p>
38
38
  </div>
39
39
  </div>
40
40
 
41
41
  <!-- @with_action -->
42
42
  <div class="ui-toast">
43
43
  <div class="ui-toast__content">
44
- <p class="ui-toast__title">File deleted</p>
45
- <p class="ui-toast__description">document.pdf was moved to trash.</p>
44
+ <p class="ui-toast__title">{{ t('file_deleted', 'File deleted') }}</p>
45
+ <p class="ui-toast__description">{{ t('documentpdf_was_moved_to_trash', 'document.pdf was moved to trash.') }}</p>
46
46
  </div>
47
- <button class="ui-toast__action ui-button ui-button--sm ui-button--secondary">Undo</button>
48
- <button class="ui-toast__close">X</button>
47
+ <button class="ui-toast__action ui-button ui-button--sm ui-button--secondary">{{ t('undo', 'Undo') }}</button>
48
+ <button class="ui-toast__close">{{ t('x', 'X') }}</button>
49
49
  </div>
50
50
 
51
51
  <!-- @viewport_positions | column -->
@@ -54,7 +54,7 @@ title: Toast
54
54
  <div class="ui-toast-viewport ui-toast-viewport--top-end" style="position:absolute">
55
55
  <div class="ui-toast">
56
56
  <div class="ui-toast__content">
57
- <p class="ui-toast__title">Top End</p>
57
+ <p class="ui-toast__title">{{ t('top_end', 'Top End') }}</p>
58
58
  </div>
59
59
  </div>
60
60
  </div>
@@ -63,7 +63,7 @@ title: Toast
63
63
  <div class="ui-toast-viewport ui-toast-viewport--bottom-end" style="position:absolute">
64
64
  <div class="ui-toast">
65
65
  <div class="ui-toast__content">
66
- <p class="ui-toast__title">Bottom End</p>
66
+ <p class="ui-toast__title">{{ t('bottom_end', 'Bottom End') }}</p>
67
67
  </div>
68
68
  </div>
69
69
  </div>
@@ -72,7 +72,7 @@ title: Toast
72
72
  <div class="ui-toast-viewport ui-toast-viewport--top-start" style="position:absolute">
73
73
  <div class="ui-toast">
74
74
  <div class="ui-toast__content">
75
- <p class="ui-toast__title">Top Start</p>
75
+ <p class="ui-toast__title">{{ t('top_start', 'Top Start') }}</p>
76
76
  </div>
77
77
  </div>
78
78
  </div>
@@ -81,7 +81,7 @@ title: Toast
81
81
  <div class="ui-toast-viewport ui-toast-viewport--top-center" style="position:absolute">
82
82
  <div class="ui-toast">
83
83
  <div class="ui-toast__content">
84
- <p class="ui-toast__title">Top Center</p>
84
+ <p class="ui-toast__title">{{ t('top_center', 'Top Center') }}</p>
85
85
  </div>
86
86
  </div>
87
87
  </div>
@@ -90,7 +90,7 @@ title: Toast
90
90
  <div class="ui-toast-viewport ui-toast-viewport--bottom-start" style="position:absolute">
91
91
  <div class="ui-toast">
92
92
  <div class="ui-toast__content">
93
- <p class="ui-toast__title">Bottom Start</p>
93
+ <p class="ui-toast__title">{{ t('bottom_start', 'Bottom Start') }}</p>
94
94
  </div>
95
95
  </div>
96
96
  </div>
@@ -99,7 +99,7 @@ title: Toast
99
99
  <div class="ui-toast-viewport ui-toast-viewport--bottom-center" style="position:absolute">
100
100
  <div class="ui-toast">
101
101
  <div class="ui-toast__content">
102
- <p class="ui-toast__title">Bottom Center</p>
102
+ <p class="ui-toast__title">{{ t('bottom_center', 'Bottom Center') }}</p>
103
103
  </div>
104
104
  </div>
105
105
  </div>
@@ -26,5 +26,5 @@ description: Native checkbox input with custom styling. Supports checked, indete
26
26
  <!-- @with_label -->
27
27
  <label class="ui-row" style="gap: var(--ui-space-1); cursor: pointer;">
28
28
  <input class="ui-checkbox" type="checkbox"></input>
29
- <span>Accept terms and conditions</span>
29
+ <span>{{ t('accept_terms_and_conditions', 'Accept terms and conditions') }}</span>
30
30
  </label>
@@ -6,96 +6,96 @@ mergeInto: checkbox
6
6
 
7
7
  <!-- @default -->
8
8
  <fieldset class="ui-checkbox-group">
9
- <legend class="ui-checkbox-group__legend">Notifications</legend>
9
+ <legend class="ui-checkbox-group__legend">{{ t('notifications', 'Notifications') }}</legend>
10
10
  <div class="ui-checkbox-group__items">
11
11
  <label class="ui-checkbox-group__item">
12
12
  <input class="ui-checkbox" type="checkbox" checked></input>
13
- <span>Email</span>
13
+ <span>{{ t('email', 'Email') }}</span>
14
14
  </label>
15
15
  <label class="ui-checkbox-group__item">
16
16
  <input class="ui-checkbox" type="checkbox"></input>
17
- <span>SMS</span>
17
+ <span>{{ t('sms', 'SMS') }}</span>
18
18
  </label>
19
19
  <label class="ui-checkbox-group__item">
20
20
  <input class="ui-checkbox" type="checkbox"></input>
21
- <span>Push</span>
21
+ <span>{{ t('push', 'Push') }}</span>
22
22
  </label>
23
23
  </div>
24
24
  </fieldset>
25
25
 
26
26
  <!-- @horizontal -->
27
27
  <fieldset class="ui-checkbox-group ui-checkbox-group--horizontal">
28
- <legend class="ui-checkbox-group__legend">Interests</legend>
28
+ <legend class="ui-checkbox-group__legend">{{ t('interests', 'Interests') }}</legend>
29
29
  <div class="ui-checkbox-group__items">
30
30
  <label class="ui-checkbox-group__item">
31
31
  <input class="ui-checkbox" type="checkbox" checked></input>
32
- <span>Design</span>
32
+ <span>{{ t('design', 'Design') }}</span>
33
33
  </label>
34
34
  <label class="ui-checkbox-group__item">
35
35
  <input class="ui-checkbox" type="checkbox"></input>
36
- <span>Engineering</span>
36
+ <span>{{ t('engineering', 'Engineering') }}</span>
37
37
  </label>
38
38
  <label class="ui-checkbox-group__item">
39
39
  <input class="ui-checkbox" type="checkbox" checked></input>
40
- <span>Product</span>
40
+ <span>{{ t('product', 'Product') }}</span>
41
41
  </label>
42
42
  <label class="ui-checkbox-group__item">
43
43
  <input class="ui-checkbox" type="checkbox"></input>
44
- <span>Marketing</span>
44
+ <span>{{ t('marketing', 'Marketing') }}</span>
45
45
  </label>
46
46
  </div>
47
47
  </fieldset>
48
48
 
49
49
  <!-- @compact -->
50
50
  <fieldset class="ui-checkbox-group ui-checkbox-group--compact">
51
- <legend class="ui-checkbox-group__legend">Features</legend>
51
+ <legend class="ui-checkbox-group__legend">{{ t('features', 'Features') }}</legend>
52
52
  <div class="ui-checkbox-group__items">
53
53
  <label class="ui-checkbox-group__item">
54
54
  <input class="ui-checkbox" type="checkbox" checked></input>
55
- <span>Dark mode</span>
55
+ <span>{{ t('dark_mode', 'Dark mode') }}</span>
56
56
  </label>
57
57
  <label class="ui-checkbox-group__item">
58
58
  <input class="ui-checkbox" type="checkbox" checked></input>
59
- <span>Notifications</span>
59
+ <span>{{ t('notifications', 'Notifications') }}</span>
60
60
  </label>
61
61
  <label class="ui-checkbox-group__item">
62
62
  <input class="ui-checkbox" type="checkbox"></input>
63
- <span>Analytics</span>
63
+ <span>{{ t('analytics', 'Analytics') }}</span>
64
64
  </label>
65
65
  </div>
66
66
  </fieldset>
67
67
 
68
68
  <!-- @error_state -->
69
69
  <fieldset class="ui-checkbox-group ui-checkbox-group--error">
70
- <legend class="ui-checkbox-group__legend">Terms</legend>
70
+ <legend class="ui-checkbox-group__legend">{{ t('terms', 'Terms') }}</legend>
71
71
  <div class="ui-checkbox-group__items">
72
72
  <label class="ui-checkbox-group__item">
73
73
  <input class="ui-checkbox ui-checkbox--error" type="checkbox"></input>
74
- <span>I accept the terms of service</span>
74
+ <span>{{ t('i_accept_the_terms_of_service', 'I accept the terms of service') }}</span>
75
75
  </label>
76
76
  <label class="ui-checkbox-group__item">
77
77
  <input class="ui-checkbox ui-checkbox--error" type="checkbox"></input>
78
- <span>I accept the privacy policy</span>
78
+ <span>{{ t('i_accept_the_privacy_policy', 'I accept the privacy policy') }}</span>
79
79
  </label>
80
80
  </div>
81
- <span class="ui-form-error">You must accept all terms to continue</span>
81
+ <span class="ui-form-error">{{ t('you_must_accept_all_terms_to_continue', 'You must accept all terms to continue') }}</span>
82
82
  </fieldset>
83
83
 
84
84
  <!-- @disabled -->
85
85
  <fieldset class="ui-checkbox-group" disabled>
86
- <legend class="ui-checkbox-group__legend">Permissions (locked)</legend>
86
+ <legend class="ui-checkbox-group__legend">{{ t('permissions_locked', 'Permissions (locked)') }}</legend>
87
87
  <div class="ui-checkbox-group__items">
88
88
  <label class="ui-checkbox-group__item">
89
89
  <input class="ui-checkbox" type="checkbox" checked></input>
90
- <span>Read</span>
90
+ <span>{{ t('read', 'Read') }}</span>
91
91
  </label>
92
92
  <label class="ui-checkbox-group__item">
93
93
  <input class="ui-checkbox" type="checkbox" checked></input>
94
- <span>Write</span>
94
+ <span>{{ t('write', 'Write') }}</span>
95
95
  </label>
96
96
  <label class="ui-checkbox-group__item">
97
97
  <input class="ui-checkbox" type="checkbox"></input>
98
- <span>Admin</span>
98
+ <span>{{ t('admin', 'Admin') }}</span>
99
99
  </label>
100
100
  </div>
101
101
  </fieldset>
@@ -5,37 +5,37 @@ description: Form field wrapper that combines label, control, helper text, and e
5
5
 
6
6
  <!-- @default -->
7
7
  <div class="ui-field">
8
- <label class="ui-label" for="email">Email</label>
8
+ <label class="ui-label" for="email">{{ t('email', 'Email') }}</label>
9
9
  <div class="ui-field__control">
10
- <input class="ui-input" type="email" id="email" placeholder="Enter email"></input>
10
+ <input class="ui-input" type="email" id="email" placeholder="{{ t('enter_email', 'Enter email') }}"></input>
11
11
  </div>
12
12
  </div>
13
13
 
14
14
  <!-- @with_helper_text -->
15
15
  <div class="ui-field">
16
- <label class="ui-label" for="password">Password</label>
16
+ <label class="ui-label" for="password">{{ t('password', 'Password') }}</label>
17
17
  <div class="ui-field__control">
18
18
  <input class="ui-input" type="password" id="password"></input>
19
- <span class="ui-form-helper">Must be at least 8 characters</span>
19
+ <span class="ui-form-helper">{{ t('must_be_at_least_8_characters', 'Must be at least 8 characters') }}</span>
20
20
  </div>
21
21
  </div>
22
22
 
23
23
  <!-- @with_error -->
24
24
  <div class="ui-field">
25
- <label class="ui-label" for="username">Username</label>
25
+ <label class="ui-label" for="username">{{ t('username', 'Username') }}</label>
26
26
  <div class="ui-field__control">
27
27
  <input class="ui-input ui-input--error" type="text" id="username" value="ab"></input>
28
- <span class="ui-form-error">Username must be at least 3 characters</span>
28
+ <span class="ui-form-error">{{ t('username_must_be_at_least_3_characters', 'Username must be at least 3 characters') }}</span>
29
29
  </div>
30
30
  </div>
31
31
 
32
32
  <!-- @horizontal_layout -->
33
33
  <!-- Label beside control for wider forms -->
34
34
  <div class="ui-field ui-field--horizontal">
35
- <label class="ui-label ui-field__label" for="name">Full Name</label>
35
+ <label class="ui-label ui-field__label" for="name">{{ t('full_name', 'Full Name') }}</label>
36
36
  <div class="ui-field__control">
37
37
  <input class="ui-input" type="text" id="name"></input>
38
- <span class="ui-form-helper">As it appears on your ID</span>
38
+ <span class="ui-form-helper">{{ t('as_it_appears_on_your_id', 'As it appears on your ID') }}</span>
39
39
  </div>
40
40
  </div>
41
41
 
@@ -43,17 +43,17 @@ description: Form field wrapper that combines label, control, helper text, and e
43
43
  <!-- Auto-switches to horizontal layout when container is wide enough (>= 30rem). Requires a parent with container-type: inline-size (use ui-container-inline utility). -->
44
44
  <div class="ui-container-inline">
45
45
  <div class="ui-field ui-field--responsive">
46
- <label class="ui-label ui-field__label" for="resp-name">Full Name</label>
46
+ <label class="ui-label ui-field__label" for="resp-name">{{ t('full_name', 'Full Name') }}</label>
47
47
  <div class="ui-field__control">
48
48
  <input class="ui-input" type="text" id="resp-name"></input>
49
- <span class="ui-form-helper">Stacks vertically in narrow containers, horizontal at >= 30rem</span>
49
+ <span class="ui-form-helper">{{ t('stacks_vertically_in_narrow_containers', 'Stacks vertically in narrow containers, horizontal at >= 30rem') }}</span>
50
50
  </div>
51
51
  </div>
52
52
  </div>
53
53
 
54
54
  <!-- @required_field -->
55
55
  <div class="ui-field">
56
- <label class="ui-label ui-label--required" for="req">Required Field</label>
56
+ <label class="ui-label ui-label--required" for="req">{{ t('required_field', 'Required Field') }}</label>
57
57
  <div class="ui-field__control">
58
58
  <input class="ui-input" type="text" id="req" required></input>
59
59
  </div>
@@ -5,17 +5,17 @@ description: Groups related form fields with an optional legend and border.
5
5
 
6
6
  <!-- @default -->
7
7
  <fieldset class="ui-fieldset">
8
- <legend class="ui-fieldset__legend">Personal Information</legend>
8
+ <legend class="ui-fieldset__legend">{{ t('personal_information', 'Personal Information') }}</legend>
9
9
  <div class="ui-field">
10
- <label class="ui-label" for="fname">First Name</label>
10
+ <label class="ui-label" for="fname">{{ t('first_name', 'First Name') }}</label>
11
11
  <div class="ui-field__control">
12
- <input class="ui-input" type="text" id="fname" placeholder="Jane"></input>
12
+ <input class="ui-input" type="text" id="fname" placeholder="{{ t('jane', 'Jane') }}"></input>
13
13
  </div>
14
14
  </div>
15
15
  <div class="ui-field">
16
- <label class="ui-label" for="lname">Last Name</label>
16
+ <label class="ui-label" for="lname">{{ t('last_name', 'Last Name') }}</label>
17
17
  <div class="ui-field__control">
18
- <input class="ui-input" type="text" id="lname" placeholder="Doe"></input>
18
+ <input class="ui-input" type="text" id="lname" placeholder="{{ t('doe', 'Doe') }}"></input>
19
19
  </div>
20
20
  </div>
21
21
  </fieldset>
@@ -23,17 +23,17 @@ description: Groups related form fields with an optional legend and border.
23
23
  <!-- @bordered -->
24
24
  <!-- Visible border wrapping the field group -->
25
25
  <fieldset class="ui-fieldset ui-fieldset--bordered">
26
- <legend class="ui-fieldset__legend">Shipping Address</legend>
26
+ <legend class="ui-fieldset__legend">{{ t('shipping_address', 'Shipping Address') }}</legend>
27
27
  <div class="ui-field">
28
- <label class="ui-label" for="street">Street</label>
28
+ <label class="ui-label" for="street">{{ t('street', 'Street') }}</label>
29
29
  <div class="ui-field__control">
30
- <input class="ui-input" type="text" id="street" placeholder="123 Example St"></input>
30
+ <input class="ui-input" type="text" id="street" placeholder="{{ t('123_example_st', '123 Example St') }}"></input>
31
31
  </div>
32
32
  </div>
33
33
  <div class="ui-field">
34
- <label class="ui-label" for="city">City</label>
34
+ <label class="ui-label" for="city">{{ t('city', 'City') }}</label>
35
35
  <div class="ui-field__control">
36
- <input class="ui-input" type="text" id="city" placeholder="Springfield"></input>
36
+ <input class="ui-input" type="text" id="city" placeholder="{{ t('springfield', 'Springfield') }}"></input>
37
37
  </div>
38
38
  </div>
39
39
  </fieldset>
@@ -41,22 +41,22 @@ description: Groups related form fields with an optional legend and border.
41
41
  <!-- @compact -->
42
42
  <!-- Reduced spacing for dense forms -->
43
43
  <fieldset class="ui-fieldset ui-fieldset--compact">
44
- <legend class="ui-fieldset__legend">Preferences</legend>
44
+ <legend class="ui-fieldset__legend">{{ t('preferences', 'Preferences') }}</legend>
45
45
  <div class="ui-field">
46
- <label class="ui-label" for="lang">Language</label>
46
+ <label class="ui-label" for="lang">{{ t('language', 'Language') }}</label>
47
47
  <div class="ui-field__control">
48
48
  <select class="ui-select" id="lang">
49
- <option>English</option>
50
- <option>Spanish</option>
49
+ <option>{{ t('english', 'English') }}</option>
50
+ <option>{{ t('spanish', 'Spanish') }}</option>
51
51
  </select>
52
52
  </div>
53
53
  </div>
54
54
  <div class="ui-field">
55
- <label class="ui-label" for="tz">Timezone</label>
55
+ <label class="ui-label" for="tz">{{ t('timezone', 'Timezone') }}</label>
56
56
  <div class="ui-field__control">
57
57
  <select class="ui-select" id="tz">
58
- <option>UTC-5 Eastern</option>
59
- <option>UTC-8 Pacific</option>
58
+ <option>{{ t('utc_5_eastern', 'UTC-5 Eastern') }}</option>
59
+ <option>{{ t('utc_8_pacific', 'UTC-8 Pacific') }}</option>
60
60
  </select>
61
61
  </div>
62
62
  </div>
@@ -65,17 +65,17 @@ description: Groups related form fields with an optional legend and border.
65
65
  <!-- @bordered_compact -->
66
66
  <!-- Bordered with reduced spacing -->
67
67
  <fieldset class="ui-fieldset ui-fieldset--bordered ui-fieldset--compact">
68
- <legend class="ui-fieldset__legend">Payment</legend>
68
+ <legend class="ui-fieldset__legend">{{ t('payment', 'Payment') }}</legend>
69
69
  <div class="ui-field">
70
- <label class="ui-label" for="card">Card Number</label>
70
+ <label class="ui-label" for="card">{{ t('card_number', 'Card Number') }}</label>
71
71
  <div class="ui-field__control">
72
- <input class="ui-input" type="text" id="card" placeholder="4242 4242 4242 4242"></input>
72
+ <input class="ui-input" type="text" id="card" placeholder="{{ t('4242_4242_4242_4242', '4242 4242 4242 4242') }}"></input>
73
73
  </div>
74
74
  </div>
75
75
  <div class="ui-field">
76
- <label class="ui-label" for="exp">Expiry</label>
76
+ <label class="ui-label" for="exp">{{ t('expiry', 'Expiry') }}</label>
77
77
  <div class="ui-field__control">
78
- <input class="ui-input" type="text" id="exp" placeholder="MM/YY"></input>
78
+ <input class="ui-input" type="text" id="exp" placeholder="{{ t('mmyy', 'MM/YY') }}"></input>
79
79
  </div>
80
80
  </div>
81
81
  </fieldset>
@@ -83,15 +83,15 @@ description: Groups related form fields with an optional legend and border.
83
83
  <!-- @disabled -->
84
84
  <!-- Native disabled attribute disables all child controls -->
85
85
  <fieldset class="ui-fieldset ui-fieldset--bordered" disabled>
86
- <legend class="ui-fieldset__legend">Account (locked)</legend>
86
+ <legend class="ui-fieldset__legend">{{ t('account_locked', 'Account (locked)') }}</legend>
87
87
  <div class="ui-field">
88
- <label class="ui-label" for="uname">Username</label>
88
+ <label class="ui-label" for="uname">{{ t('username', 'Username') }}</label>
89
89
  <div class="ui-field__control">
90
90
  <input class="ui-input" type="text" id="uname" value="janedoe"></input>
91
91
  </div>
92
92
  </div>
93
93
  <div class="ui-field">
94
- <label class="ui-label" for="role">Role</label>
94
+ <label class="ui-label" for="role">{{ t('role', 'Role') }}</label>
95
95
  <div class="ui-field__control">
96
96
  <input class="ui-input" type="text" id="role" value="Editor"></input>
97
97
  </div>
@@ -102,17 +102,17 @@ description: Groups related form fields with an optional legend and border.
102
102
  <!-- Fieldset as a spacing container without visible legend -->
103
103
  <fieldset class="ui-fieldset">
104
104
  <div class="ui-field">
105
- <label class="ui-label" for="search">Search</label>
105
+ <label class="ui-label" for="search">{{ t('search', 'Search') }}</label>
106
106
  <div class="ui-field__control">
107
- <input class="ui-input" type="search" id="search" placeholder="Search..."></input>
107
+ <input class="ui-input" type="search" id="search" placeholder="{{ t('search', 'Search...') }}"></input>
108
108
  </div>
109
109
  </div>
110
110
  <div class="ui-field">
111
- <label class="ui-label" for="cat">Category</label>
111
+ <label class="ui-label" for="cat">{{ t('category', 'Category') }}</label>
112
112
  <div class="ui-field__control">
113
113
  <select class="ui-select" id="cat">
114
- <option>All</option>
115
- <option>Articles</option>
114
+ <option>{{ t('all', 'All') }}</option>
115
+ <option>{{ t('articles', 'Articles') }}</option>
116
116
  </select>
117
117
  </div>
118
118
  </div>