@teseor/css 1.15.7 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compiled.css +1 -1
- package/dist/index.css +51 -52
- package/package.json +1 -1
- package/src/base/docs.html +1 -1
- package/src/base/root.scss +1 -1
- package/src/base/typography/typography.scss +6 -6
- package/src/components/actions/button/api.json +1 -1
- package/src/components/actions/button/index.scss +1 -1
- package/src/components/content/divider/docs.html +1 -1
- package/src/components/content/scroll-area/docs.html +2 -2
- package/src/components/data-display/avatar/index.scss +1 -1
- package/src/components/data-display/badge/api.json +1 -1
- package/src/components/data-display/badge/index.scss +1 -1
- package/src/components/data-display/data-list/index.scss +1 -1
- package/src/components/data-display/stat/api.json +3 -3
- package/src/components/data-display/stat/index.scss +5 -5
- package/src/components/data-display/status/docs.html +2 -2
- package/src/components/data-display/table/index.scss +1 -1
- package/src/components/data-display/tag/index.scss +1 -1
- package/src/components/disclosure/disclosure/index.scss +1 -1
- package/src/components/feedback/alert/index.scss +1 -1
- package/src/components/feedback/skeleton/docs.html +2 -2
- package/src/components/feedback/toast/docs.html +12 -12
- package/src/components/feedback/toast/index.scss +2 -2
- package/src/components/forms/checkbox/docs.html +1 -1
- package/src/components/forms/checkbox-group/api.json +1 -1
- package/src/components/forms/checkbox-group/index.scss +2 -2
- package/src/components/forms/fieldset/api.json +1 -1
- package/src/components/forms/fieldset/index.scss +2 -2
- package/src/components/forms/form-error/index.scss +1 -1
- package/src/components/forms/form-helper/index.scss +1 -1
- package/src/components/forms/label/index.scss +3 -3
- package/src/components/forms/radio/docs.html +5 -5
- package/src/components/forms/radio-group/api.json +1 -1
- package/src/components/forms/radio-group/index.scss +2 -2
- package/src/components/forms/toggle/docs.html +3 -3
- package/src/components/navigation/dropdown-menu/api.json +1 -1
- package/src/components/navigation/dropdown-menu/docs.html +1 -1
- package/src/components/navigation/dropdown-menu/index.scss +1 -1
- package/src/components/navigation/menu/index.scss +2 -2
- package/src/components/navigation/nav/api.json +1 -1
- package/src/components/navigation/nav/index.scss +1 -1
- package/src/components/navigation/tabs/index.scss +1 -1
- package/src/components/overlays/dialog/docs.html +6 -6
- package/src/components/overlays/dialog/index.scss +1 -1
- package/src/components/overlays/drawer/docs.html +17 -17
- package/src/components/overlays/drawer/index.scss +2 -2
- package/src/components/overlays/modal/api.json +1 -1
- package/src/components/overlays/modal/docs.html +12 -12
- package/src/components/overlays/modal/index.scss +1 -1
- package/src/components/overlays/overlay/api.json +1 -1
- package/src/components/overlays/overlay/docs.html +8 -8
- package/src/components/overlays/overlay/index.scss +1 -1
- package/src/components/overlays/popover/api.json +1 -1
- package/src/components/overlays/popover/docs.html +6 -6
- package/src/components/overlays/popover/index.scss +2 -2
- package/src/components/overlays/tooltip/api.json +1 -1
- package/src/components/overlays/tooltip/docs.html +10 -10
- package/src/components/overlays/tooltip/index.scss +1 -1
- package/src/components/typography/blockquote/api.json +1 -1
- package/src/components/typography/blockquote/index.scss +2 -2
- package/src/components/typography/code/index.scss +1 -1
- package/src/components/typography/code-block/api.json +1 -1
- package/src/components/typography/code-block/index.scss +1 -1
- package/src/components/typography/heading/api.json +9 -9
- package/src/components/typography/heading/index.scss +9 -9
- package/src/components/typography/list/api.json +1 -1
- package/src/components/typography/list/index.scss +1 -1
- package/src/config/guides/accessibility.docs.html +1 -1
- package/src/config/guides/getting-started.docs.html +1 -1
- package/src/config/guides/theming.docs.html +53 -20
- package/src/config/guides/token-architecture.docs.html +87 -0
- package/src/config/tokens/_variables.scss +60 -53
- package/src/config/tokens/colors/index.scss +18 -0
- package/src/config/tokens/docs.html +10 -21
- package/src/config/tokens/index.scss +0 -1
- package/src/config/tokens/radius.scss +5 -4
- package/src/config/tokens/shadows.scss +4 -3
- package/src/config/tokens/typography.scss +47 -47
- package/src/config/tokens/zindex.scss +10 -10
- package/src/debug/docs.html +3 -3
- package/src/debug/index.scss +7 -8
- package/src/layout/aspect-ratio/docs.html +7 -7
- package/src/layout/center/docs.html +3 -3
- package/src/layout/footer/api.json +1 -1
- package/src/layout/footer/index.scss +3 -3
- package/src/layout/main/docs.html +3 -3
- package/src/layout/nav-rail/api.json +1 -1
- package/src/layout/nav-rail/docs.html +1 -1
- package/src/layout/nav-rail/index.scss +1 -1
- package/src/layout/page-header/index.scss +1 -1
- package/src/layout/sidebar/docs.html +3 -3
- package/src/layout/sidebar/index.scss +1 -1
- package/src/layout/sidebar-nav/api.json +2 -2
- package/src/layout/sidebar-nav/docs.html +6 -6
- package/src/layout/sidebar-nav/index.scss +4 -4
- package/src/layout/topbar/api.json +1 -1
- package/src/layout/topbar/index.scss +1 -1
- package/src/utilities/position/api.json +6 -0
- package/src/utilities/position/docs.html +29 -0
- package/src/utilities/position/position.scss +74 -0
- package/src/utilities/scroll-animation/docs.html +1 -1
- package/src/utilities/scroll-animation/index.scss +1 -1
- package/src/utilities/scroll-snap/docs.html +33 -33
- package/src/utilities/text/docs.html +5 -5
- package/src/utilities/text/text.scss +15 -15
- package/src/config/tokens/semantic-spacing.scss +0 -12
package/package.json
CHANGED
package/src/base/docs.html
CHANGED
|
@@ -13,7 +13,7 @@ skipValidation: true
|
|
|
13
13
|
.ui-root {
|
|
14
14
|
font-family: var(--ui-font-sans);
|
|
15
15
|
font-size: var(--ui-font-size-md);
|
|
16
|
-
line-height: var(--ui-
|
|
16
|
+
line-height: var(--ui-line-height-md);
|
|
17
17
|
color: var(--ui-color-text);
|
|
18
18
|
background: var(--ui-color-bg);
|
|
19
19
|
}
|
package/src/base/root.scss
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.root {
|
|
5
5
|
font-family: var(--ui-font-sans, #{t.$font-sans});
|
|
6
6
|
font-size: var(--ui-font-size-md, #{t.$font-size-md});
|
|
7
|
-
line-height: var(--ui-
|
|
7
|
+
line-height: var(--ui-line-height-md, calc(#{t.$unit} * 3));
|
|
8
8
|
color: var(--ui-color-text, #{t.$color-text});
|
|
9
9
|
|
|
10
10
|
background: var(--ui-color-bg, #{t.$color-bg});
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
// Inline elements - line-height: 0 prevents affecting parent rhythm
|
|
63
63
|
strong,
|
|
64
64
|
b {
|
|
65
|
-
font-weight: var(--ui-weight-bold);
|
|
65
|
+
font-weight: var(--ui-font-weight-bold);
|
|
66
66
|
line-height: 0;
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -127,22 +127,22 @@
|
|
|
127
127
|
@media (width < 45.625rem) {
|
|
128
128
|
h1 {
|
|
129
129
|
font-size: var(--ui-font-size-2xl); // 28px
|
|
130
|
-
line-height: var(--ui-
|
|
130
|
+
line-height: var(--ui-line-height-2xl); // 32px
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
h2 {
|
|
134
134
|
font-size: var(--ui-font-size-xl); // 24px
|
|
135
|
-
line-height: var(--ui-
|
|
135
|
+
line-height: var(--ui-line-height-xl); // 32px
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
h3 {
|
|
139
139
|
font-size: var(--ui-font-size-lg); // 20px
|
|
140
|
-
line-height: var(--ui-
|
|
140
|
+
line-height: var(--ui-line-height-sm); // 24px
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
h4 {
|
|
144
144
|
font-size: 1.125rem; // 18px
|
|
145
|
-
line-height: var(--ui-
|
|
145
|
+
line-height: var(--ui-line-height-sm); // 24px
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
|
|
156
156
|
h2 {
|
|
157
157
|
font-size: var(--ui-font-size-4xl); // 40px
|
|
158
|
-
line-height: var(--ui-
|
|
158
|
+
line-height: var(--ui-line-height-4xl); // 48px
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
// @desc Font size
|
|
28
28
|
--_font-size: var(--ui-button-font-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
29
29
|
// @desc Font weight
|
|
30
|
-
--_font-weight: var(--ui-button-font-weight, var(--ui-weight-medium, #{t.$weight-medium}));
|
|
30
|
+
--_font-weight: var(--ui-button-font-weight, var(--ui-font-weight-medium, #{t.$font-weight-medium}));
|
|
31
31
|
// @desc Corner radius
|
|
32
32
|
--_radius: var(--ui-button-radius, var(--ui-radius-md, #{t.$radius-md}));
|
|
33
33
|
--_bg: var(--_accent);
|
|
@@ -18,7 +18,7 @@ description: Visual separator between content sections. Supports horizontal/vert
|
|
|
18
18
|
<div class="ui-divider ui-divider--dashed" role="separator"></div>
|
|
19
19
|
|
|
20
20
|
<!-- @vertical -->
|
|
21
|
-
<div
|
|
21
|
+
<div class="ui-flex ui-items-center" style="block-size: 64px">
|
|
22
22
|
<span>{{ t('left', 'Left') }}</span>
|
|
23
23
|
<div class="ui-divider ui-divider--vertical" role="separator"></div>
|
|
24
24
|
<span>{{ t('right', 'Right') }}</span>
|
|
@@ -74,12 +74,12 @@ description: Scrollable container with styled scrollbar. Provides overflow contr
|
|
|
74
74
|
<!-- @direction | column -->
|
|
75
75
|
<div class="ui-scroll-area ui-scroll-area--horizontal">
|
|
76
76
|
<div class="ui-scroll-area__viewport">
|
|
77
|
-
<p
|
|
77
|
+
<p class="ui-nowrap">{{ t('scrolls_horizontally_demo', 'This content scrolls horizontally when it overflows the container width. Resize the window to test.') }}</p>
|
|
78
78
|
</div>
|
|
79
79
|
</div>
|
|
80
80
|
<div class="ui-scroll-area ui-scroll-area--both ui-scroll-area--sm">
|
|
81
81
|
<div class="ui-scroll-area__viewport">
|
|
82
|
-
<p
|
|
82
|
+
<p class="ui-nowrap">{{ t('both_directions_line_1', 'Both directions - Line 1 with long content that overflows horizontally') }}</p>
|
|
83
83
|
<p>{{ t('line_2', 'Line 2') }}</p>
|
|
84
84
|
<p>{{ t('line_3', 'Line 3') }}</p>
|
|
85
85
|
<p>{{ t('line_4', 'Line 4') }}</p>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
@layer components.tokens {
|
|
8
8
|
.avatar {
|
|
9
|
-
--_weight-medium: var(--ui-weight-medium, #{t.$weight-medium});
|
|
9
|
+
--_weight-medium: var(--ui-font-weight-medium, #{t.$font-weight-medium});
|
|
10
10
|
--_border-width-sm: var(--ui-border-width-sm, #{t.$border-width-sm});
|
|
11
11
|
--_color-bg: var(--ui-color-bg, #{t.$color-bg});
|
|
12
12
|
// @desc Overall size
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// @desc Font size
|
|
17
17
|
--_font-size: var(--ui-badge-font-size, var(--ui-font-size-xs, #{t.$font-size-xs}));
|
|
18
18
|
// @desc Font weight
|
|
19
|
-
--_font-weight: var(--ui-badge-font-weight, var(--ui-weight-medium, #{t.$weight-medium}));
|
|
19
|
+
--_font-weight: var(--ui-badge-font-weight, var(--ui-font-weight-medium, #{t.$font-weight-medium}));
|
|
20
20
|
// @desc Corner radius
|
|
21
21
|
--_radius: var(--ui-badge-radius, var(--ui-radius-full, #{t.$radius-full}));
|
|
22
22
|
--_bg: var(--_accent);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.data-list {
|
|
10
10
|
--_row-1: var(--ui-row-1, #{t.$row});
|
|
11
11
|
--_font-size-sm: var(--ui-font-size-sm, #{t.$font-size-sm});
|
|
12
|
-
--_weight-medium: var(--ui-weight-medium, #{t.$weight-medium});
|
|
12
|
+
--_weight-medium: var(--ui-font-weight-medium, #{t.$font-weight-medium});
|
|
13
13
|
--_border-width-sm: var(--ui-border-width-sm, #{t.$border-width-sm});
|
|
14
14
|
--_color-border: var(--ui-color-border, #{t.$color-border});
|
|
15
15
|
--_color-bg-subtle: var(--ui-color-bg-subtle, #{t.$color-bg-subtle});
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "--ui-stat-value-font-weight",
|
|
27
|
-
"default": "var(--ui-weight-bold)",
|
|
27
|
+
"default": "var(--ui-font-weight-bold)",
|
|
28
28
|
"description": "Value display font weight"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "--ui-stat-value-line-height",
|
|
32
|
-
"default": "var(--ui-
|
|
32
|
+
"default": "var(--ui-line-height-3xl)",
|
|
33
33
|
"description": "Value display line height"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"name": "--ui-stat-label-line-height",
|
|
52
|
-
"default": "var(--ui-
|
|
52
|
+
"default": "var(--ui-line-height-sm)",
|
|
53
53
|
"description": "Label line height"
|
|
54
54
|
}
|
|
55
55
|
]
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
@layer components.tokens {
|
|
6
6
|
.stat {
|
|
7
|
-
--_tracking-display: var(--ui-
|
|
7
|
+
--_tracking-display: var(--ui-letter-spacing-display, #{t.$letter-spacing-display});
|
|
8
8
|
// @desc Gap between children
|
|
9
9
|
--_gap: var(--ui-stat-gap, var(--ui-space-1, #{t.$space-1}));
|
|
10
10
|
}
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
// @desc Value display font size
|
|
14
14
|
--_font-size: var(--ui-stat-value-font-size, var(--ui-font-size-3xl, #{t.$font-size-3xl}));
|
|
15
15
|
// @desc Value display font weight
|
|
16
|
-
--_font-weight: var(--ui-stat-value-font-weight, var(--ui-weight-bold, #{t.$weight-bold}));
|
|
16
|
+
--_font-weight: var(--ui-stat-value-font-weight, var(--ui-font-weight-bold, #{t.$font-weight-bold}));
|
|
17
17
|
// @desc Value display line height
|
|
18
|
-
--_line-height: var(--ui-stat-value-line-height, var(--ui-
|
|
18
|
+
--_line-height: var(--ui-stat-value-line-height, var(--ui-line-height-3xl, #{t.$line-height-3xl}));
|
|
19
19
|
// @desc Value display text color
|
|
20
20
|
--_color: var(--ui-stat-value-color, var(--ui-color-text, #{t.$color-text}));
|
|
21
21
|
}
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
// @desc Label text color
|
|
27
27
|
--_color: var(--ui-stat-label-color, var(--ui-color-text-muted, #{t.$color-text-muted}));
|
|
28
28
|
// @desc Label line height
|
|
29
|
-
--_line-height: var(--ui-stat-label-line-height, var(--ui-
|
|
29
|
+
--_line-height: var(--ui-stat-label-line-height, var(--ui-line-height-sm, #{t.$line-height-sm}));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
// @modifier size
|
|
33
33
|
.stat--sm .stat__value {
|
|
34
34
|
--_font-size: var(--ui-font-size-xl, #{t.$font-size-xl});
|
|
35
|
-
--_line-height: var(--ui-
|
|
35
|
+
--_line-height: var(--ui-line-height-xl, #{t.$line-height-xl});
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -28,7 +28,7 @@ description: Visual status indicator with colored dot to show state.
|
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
30
|
<!-- @sizes -->
|
|
31
|
-
<div
|
|
31
|
+
<div class="ui-flex ui-gap-4 ui-items-center">
|
|
32
32
|
<span class="ui-status ui-status--success ui-status--sm">
|
|
33
33
|
<span class="ui-status__dot"></span>
|
|
34
34
|
{{ t('small', 'Small') }}
|
|
@@ -51,7 +51,7 @@ description: Visual status indicator with colored dot to show state.
|
|
|
51
51
|
</span>
|
|
52
52
|
|
|
53
53
|
<!-- @dot_only -->
|
|
54
|
-
<div
|
|
54
|
+
<div class="ui-flex ui-gap-2">
|
|
55
55
|
<span class="ui-status ui-status--success">
|
|
56
56
|
<span class="ui-status__dot"></span>
|
|
57
57
|
</span>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.table {
|
|
8
8
|
--_border-width-sm: var(--ui-border-width-sm, #{t.$border-width-sm});
|
|
9
9
|
--_unit: var(--ui-unit, #{t.$unit});
|
|
10
|
-
--_weight-medium: var(--ui-weight-medium, #{t.$weight-medium});
|
|
10
|
+
--_weight-medium: var(--ui-font-weight-medium, #{t.$font-weight-medium});
|
|
11
11
|
--_color-bg-subtle: var(--ui-color-bg-subtle, #{t.$color-bg-subtle});
|
|
12
12
|
--_color-bg-muted: var(--ui-color-bg-muted, #{t.$color-bg-muted});
|
|
13
13
|
// @desc Font size
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
@layer components.tokens {
|
|
8
8
|
.tag {
|
|
9
|
-
--_weight-medium: var(--ui-weight-medium, #{t.$weight-medium});
|
|
9
|
+
--_weight-medium: var(--ui-font-weight-medium, #{t.$font-weight-medium});
|
|
10
10
|
--_opacity-disabled: var(--ui-opacity-disabled, #{t.$opacity-disabled});
|
|
11
11
|
--_opacity-loading: var(--ui-opacity-loading, #{t.$opacity-loading});
|
|
12
12
|
// @desc Overall height
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
@layer components.tokens {
|
|
9
9
|
.disclosure {
|
|
10
|
-
--_weight-medium: var(--ui-weight-medium, #{t.$weight-medium});
|
|
10
|
+
--_weight-medium: var(--ui-font-weight-medium, #{t.$font-weight-medium});
|
|
11
11
|
--_color-bg-subtle: var(--ui-color-bg-subtle, #{t.$color-bg-subtle});
|
|
12
12
|
--_duration-fast: var(--ui-duration-fast, #{t.$duration-fast});
|
|
13
13
|
--_ease-default: var(--ui-ease-default, ease);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
@layer components.tokens {
|
|
7
7
|
.alert {
|
|
8
|
-
--_weight-medium: var(--ui-weight-medium, #{t.$weight-medium});
|
|
8
|
+
--_weight-medium: var(--ui-font-weight-medium, #{t.$font-weight-medium});
|
|
9
9
|
--_row-1: var(--ui-row-1, #{t.$row});
|
|
10
10
|
--_font-size-sm: var(--ui-font-size-sm, #{t.$font-size-sm});
|
|
11
11
|
--_color-text-muted: var(--ui-color-text-muted, #{t.$color-text-muted});
|
|
@@ -4,14 +4,14 @@ description: Loading placeholder with shimmer animation for content loading stat
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- @text_lines -->
|
|
7
|
-
<div
|
|
7
|
+
<div class="ui-flex ui-flex-col ui-gap-1">
|
|
8
8
|
<div class="ui-skeleton ui-skeleton--text"></div>
|
|
9
9
|
<div class="ui-skeleton ui-skeleton--text" style="width: 80%;"></div>
|
|
10
10
|
<div class="ui-skeleton ui-skeleton--text" style="width: 60%;"></div>
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
13
|
<!-- @shapes -->
|
|
14
|
-
<div
|
|
14
|
+
<div class="ui-flex ui-gap-2 ui-items-start">
|
|
15
15
|
<div class="ui-skeleton ui-skeleton--circle"></div>
|
|
16
16
|
<div style="flex: 1; display: flex; flex-direction: column; gap: var(--ui-space-1);">
|
|
17
17
|
<div class="ui-skeleton ui-skeleton--heading"></div>
|
|
@@ -50,8 +50,8 @@ title: Toast
|
|
|
50
50
|
|
|
51
51
|
<!-- @viewport_positions | column -->
|
|
52
52
|
<!-- Container positions for toast placement -->
|
|
53
|
-
<div
|
|
54
|
-
<div class="ui-toast-viewport ui-toast-viewport--top-end
|
|
53
|
+
<div class="demo-container">
|
|
54
|
+
<div class="ui-toast-viewport ui-toast-viewport--top-end ui-absolute">
|
|
55
55
|
<div class="ui-toast">
|
|
56
56
|
<div class="ui-toast__content">
|
|
57
57
|
<p class="ui-toast__title">{{ t('top_end', 'Top End') }}</p>
|
|
@@ -59,8 +59,8 @@ title: Toast
|
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
62
|
-
<div
|
|
63
|
-
<div class="ui-toast-viewport ui-toast-viewport--bottom-end
|
|
62
|
+
<div class="demo-container">
|
|
63
|
+
<div class="ui-toast-viewport ui-toast-viewport--bottom-end ui-absolute">
|
|
64
64
|
<div class="ui-toast">
|
|
65
65
|
<div class="ui-toast__content">
|
|
66
66
|
<p class="ui-toast__title">{{ t('bottom_end', 'Bottom End') }}</p>
|
|
@@ -68,8 +68,8 @@ title: Toast
|
|
|
68
68
|
</div>
|
|
69
69
|
</div>
|
|
70
70
|
</div>
|
|
71
|
-
<div
|
|
72
|
-
<div class="ui-toast-viewport ui-toast-viewport--top-start
|
|
71
|
+
<div class="demo-container">
|
|
72
|
+
<div class="ui-toast-viewport ui-toast-viewport--top-start ui-absolute">
|
|
73
73
|
<div class="ui-toast">
|
|
74
74
|
<div class="ui-toast__content">
|
|
75
75
|
<p class="ui-toast__title">{{ t('top_start', 'Top Start') }}</p>
|
|
@@ -77,8 +77,8 @@ title: Toast
|
|
|
77
77
|
</div>
|
|
78
78
|
</div>
|
|
79
79
|
</div>
|
|
80
|
-
<div
|
|
81
|
-
<div class="ui-toast-viewport ui-toast-viewport--top-center
|
|
80
|
+
<div class="demo-container">
|
|
81
|
+
<div class="ui-toast-viewport ui-toast-viewport--top-center ui-absolute">
|
|
82
82
|
<div class="ui-toast">
|
|
83
83
|
<div class="ui-toast__content">
|
|
84
84
|
<p class="ui-toast__title">{{ t('top_center', 'Top Center') }}</p>
|
|
@@ -86,8 +86,8 @@ title: Toast
|
|
|
86
86
|
</div>
|
|
87
87
|
</div>
|
|
88
88
|
</div>
|
|
89
|
-
<div
|
|
90
|
-
<div class="ui-toast-viewport ui-toast-viewport--bottom-start
|
|
89
|
+
<div class="demo-container">
|
|
90
|
+
<div class="ui-toast-viewport ui-toast-viewport--bottom-start ui-absolute">
|
|
91
91
|
<div class="ui-toast">
|
|
92
92
|
<div class="ui-toast__content">
|
|
93
93
|
<p class="ui-toast__title">{{ t('bottom_start', 'Bottom Start') }}</p>
|
|
@@ -95,8 +95,8 @@ title: Toast
|
|
|
95
95
|
</div>
|
|
96
96
|
</div>
|
|
97
97
|
</div>
|
|
98
|
-
<div
|
|
99
|
-
<div class="ui-toast-viewport ui-toast-viewport--bottom-center
|
|
98
|
+
<div class="demo-container">
|
|
99
|
+
<div class="ui-toast-viewport ui-toast-viewport--bottom-center ui-absolute">
|
|
100
100
|
<div class="ui-toast">
|
|
101
101
|
<div class="ui-toast__content">
|
|
102
102
|
<p class="ui-toast__title">{{ t('bottom_center', 'Bottom Center') }}</p>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
@layer components.tokens {
|
|
10
10
|
.toast-viewport {
|
|
11
|
-
--_z-toast: var(--ui-z-toast, #{t.$z-toast});
|
|
11
|
+
--_z-toast: var(--ui-z-index-toast, #{t.$z-index-toast});
|
|
12
12
|
// @desc Viewport gap
|
|
13
13
|
--_gap: var(--ui-toast-viewport-gap, calc(#{t.$unit} * 1));
|
|
14
14
|
// @desc Viewport padding
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
.toast {
|
|
21
21
|
--_border-width-sm: var(--ui-border-width-sm, #{t.$border-width-sm});
|
|
22
|
-
--_weight-medium: var(--ui-weight-medium, #{t.$weight-medium});
|
|
22
|
+
--_weight-medium: var(--ui-font-weight-medium, #{t.$font-weight-medium});
|
|
23
23
|
--_row-1: var(--ui-row-1, #{t.$row});
|
|
24
24
|
--_font-size-sm: var(--ui-font-size-sm, #{t.$font-size-sm});
|
|
25
25
|
--_color-text-muted: var(--ui-color-text-muted, #{t.$color-text-muted});
|
|
@@ -24,7 +24,7 @@ description: Native checkbox input with custom styling. Supports checked, indete
|
|
|
24
24
|
<input class="ui-checkbox ui-checkbox--success" type="checkbox" checked></input>
|
|
25
25
|
|
|
26
26
|
<!-- @with_label -->
|
|
27
|
-
<label class="ui-row" style="gap: var(--ui-space-1); cursor: pointer
|
|
27
|
+
<label class="ui-row " style="gap: var(--ui-space-1); cursor: pointer">
|
|
28
28
|
<input class="ui-checkbox" type="checkbox"></input>
|
|
29
29
|
<span>{{ t('accept_terms_and_conditions', 'Accept terms and conditions') }}</span>
|
|
30
30
|
</label>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
@layer components.tokens {
|
|
7
7
|
.checkbox-group {
|
|
8
|
-
--_leading-tight-sm: var(--ui-
|
|
8
|
+
--_leading-tight-sm: var(--ui-line-height-tight-sm, var(--ui-row-1, #{t.$line-height-tight-sm}));
|
|
9
9
|
--_row-1: var(--ui-row-1, #{t.$row-1});
|
|
10
10
|
--_opacity-disabled: var(--ui-opacity-disabled, #{t.$opacity-disabled});
|
|
11
11
|
--_space-2: var(--ui-space-2, #{t.$space-2});
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// @desc Legend size
|
|
15
15
|
--_legend-size: var(--ui-checkbox-group-legend-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
16
16
|
// @desc Legend weight
|
|
17
|
-
--_legend-weight: var(--ui-checkbox-group-legend-weight, var(--ui-weight-medium, #{t.$weight-medium}));
|
|
17
|
+
--_legend-weight: var(--ui-checkbox-group-legend-weight, var(--ui-font-weight-medium, #{t.$font-weight-medium}));
|
|
18
18
|
// @desc Legend color
|
|
19
19
|
--_legend-color: var(--ui-checkbox-group-legend-color, var(--ui-color-text, #{t.$color-text}));
|
|
20
20
|
// @desc Legend spacing
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
@layer components.tokens {
|
|
9
9
|
.fieldset {
|
|
10
|
-
--_leading-tight-sm: var(--ui-
|
|
10
|
+
--_leading-tight-sm: var(--ui-line-height-tight-sm, var(--ui-row-1, #{t.$line-height-tight-sm}));
|
|
11
11
|
--_space-half: var(--ui-space-half, #{t.$space-0});
|
|
12
12
|
--_opacity-disabled: var(--ui-opacity-disabled, #{t.$opacity-disabled});
|
|
13
13
|
// @desc Spacing
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
// @desc Legend size
|
|
24
24
|
--_legend-size: var(--ui-fieldset-legend-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
25
25
|
// @desc Legend weight
|
|
26
|
-
--_legend-weight: var(--ui-fieldset-legend-weight, var(--ui-weight-medium, #{t.$weight-medium}));
|
|
26
|
+
--_legend-weight: var(--ui-fieldset-legend-weight, var(--ui-font-weight-medium, #{t.$font-weight-medium}));
|
|
27
27
|
// @desc Legend color
|
|
28
28
|
--_legend-color: var(--ui-fieldset-legend-color, var(--ui-color-text, #{t.$color-text}));
|
|
29
29
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
@layer components.tokens {
|
|
9
9
|
.form-error {
|
|
10
|
-
--_leading-tight-sm: var(--ui-
|
|
10
|
+
--_leading-tight-sm: var(--ui-line-height-tight-sm, var(--ui-row-1, #{t.$row-1}));
|
|
11
11
|
// @desc Text color
|
|
12
12
|
--_color: var(--ui-form-error-color, var(--ui-color-danger, #{t.$color-danger}));
|
|
13
13
|
// @desc Overall size
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
@layer components.tokens {
|
|
9
9
|
.form-helper {
|
|
10
|
-
--_leading-tight-sm: var(--ui-
|
|
10
|
+
--_leading-tight-sm: var(--ui-line-height-tight-sm, var(--ui-row-1, #{t.$row-1}));
|
|
11
11
|
// @desc Text color
|
|
12
12
|
--_color: var(--ui-form-helper-color, var(--ui-color-text-muted, #{t.$color-text-muted}));
|
|
13
13
|
// @desc Overall size
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
@layer components.tokens {
|
|
7
7
|
.label {
|
|
8
|
-
--_weight-medium: var(--ui-weight-medium, #{t.$weight-medium});
|
|
9
|
-
--_leading-tight-sm: var(--ui-
|
|
8
|
+
--_weight-medium: var(--ui-font-weight-medium, #{t.$font-weight-medium});
|
|
9
|
+
--_leading-tight-sm: var(--ui-line-height-tight-sm, var(--ui-row-1, #{t.$row-1}));
|
|
10
10
|
--_opacity-disabled: var(--ui-opacity-disabled, #{t.$opacity-disabled});
|
|
11
|
-
--_weight-normal: var(--ui-weight-normal, #{t.$weight-normal});
|
|
11
|
+
--_weight-normal: var(--ui-font-weight-normal, #{t.$font-weight-normal});
|
|
12
12
|
--_color-text-muted: var(--ui-color-text-muted, #{t.$color-text-muted});
|
|
13
13
|
// @desc Font size
|
|
14
14
|
--_font-size: var(--ui-label-font-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
@@ -24,24 +24,24 @@ description: Native radio button with custom styling. Use for mutually exclusive
|
|
|
24
24
|
<input class="ui-radio ui-radio--success" type="radio" name="success2" checked></input>
|
|
25
25
|
|
|
26
26
|
<!-- @with_label -->
|
|
27
|
-
<label class="ui-row" style="gap: var(--ui-space-1); cursor: pointer
|
|
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
29
|
<span>{{ t('option_one', 'Option one') }}</span>
|
|
30
30
|
</label>
|
|
31
31
|
|
|
32
32
|
<!-- @radio_group -->
|
|
33
|
-
<fieldset style="border: none; padding: 0; margin: 0
|
|
33
|
+
<fieldset class="" style="border: none; padding: 0; margin: 0">
|
|
34
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
|
-
<label class="ui-row" style="gap: var(--ui-space-1); cursor: pointer
|
|
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
38
|
<span>{{ t('option_a', 'Option A') }}</span>
|
|
39
39
|
</label>
|
|
40
|
-
<label class="ui-row" style="gap: var(--ui-space-1); cursor: pointer
|
|
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
42
|
<span>{{ t('option_b', 'Option B') }}</span>
|
|
43
43
|
</label>
|
|
44
|
-
<label class="ui-row" style="gap: var(--ui-space-1); cursor: pointer
|
|
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
46
|
<span>{{ t('option_c', 'Option C') }}</span>
|
|
47
47
|
</label>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
@layer components.tokens {
|
|
7
7
|
.radio-group {
|
|
8
|
-
--_leading-tight-sm: var(--ui-
|
|
8
|
+
--_leading-tight-sm: var(--ui-line-height-tight-sm, var(--ui-row-1, #{t.$line-height-tight-sm}));
|
|
9
9
|
--_row-1: var(--ui-row-1, #{t.$row-1});
|
|
10
10
|
--_opacity-disabled: var(--ui-opacity-disabled, #{t.$opacity-disabled});
|
|
11
11
|
--_space-2: var(--ui-space-2, #{t.$space-2});
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// @desc Legend size
|
|
15
15
|
--_legend-size: var(--ui-radio-group-legend-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
16
16
|
// @desc Legend weight
|
|
17
|
-
--_legend-weight: var(--ui-radio-group-legend-weight, var(--ui-weight-medium, #{t.$weight-medium}));
|
|
17
|
+
--_legend-weight: var(--ui-radio-group-legend-weight, var(--ui-font-weight-medium, #{t.$font-weight-medium}));
|
|
18
18
|
// @desc Legend color
|
|
19
19
|
--_legend-color: var(--ui-radio-group-legend-color, var(--ui-color-text, #{t.$color-text}));
|
|
20
20
|
// @desc Legend spacing
|
|
@@ -18,7 +18,7 @@ description: Switch control for boolean states. Uses checkbox semantics with rol
|
|
|
18
18
|
</label>
|
|
19
19
|
|
|
20
20
|
<!-- @sizes -->
|
|
21
|
-
<div
|
|
21
|
+
<div class="ui-flex ui-gap-2 ui-items-center">
|
|
22
22
|
<label class="ui-toggle ui-toggle--sm">
|
|
23
23
|
<input class="ui-toggle__input" type="checkbox" role="switch"></input>
|
|
24
24
|
<span class="ui-toggle__track"></span>
|
|
@@ -37,7 +37,7 @@ description: Switch control for boolean states. Uses checkbox semantics with rol
|
|
|
37
37
|
</div>
|
|
38
38
|
|
|
39
39
|
<!-- @disabled -->
|
|
40
|
-
<div
|
|
40
|
+
<div class="ui-flex ui-gap-2">
|
|
41
41
|
<label class="ui-toggle">
|
|
42
42
|
<input class="ui-toggle__input" type="checkbox" role="switch" disabled></input>
|
|
43
43
|
<span class="ui-toggle__track"></span>
|
|
@@ -51,7 +51,7 @@ description: Switch control for boolean states. Uses checkbox semantics with rol
|
|
|
51
51
|
</div>
|
|
52
52
|
|
|
53
53
|
<!-- @with_label -->
|
|
54
|
-
<div
|
|
54
|
+
<div class="ui-flex ui-items-center ui-gap-2">
|
|
55
55
|
<label class="ui-toggle">
|
|
56
56
|
<input class="ui-toggle__input" type="checkbox" role="switch" id="notifications"></input>
|
|
57
57
|
<span class="ui-toggle__track"></span>
|
|
@@ -81,7 +81,7 @@ description: Trigger button with floating menu panel. Reuses the menu component
|
|
|
81
81
|
</div>
|
|
82
82
|
|
|
83
83
|
<!-- @align_end -->
|
|
84
|
-
<div
|
|
84
|
+
<div class="ui-flex ui-justify-end">
|
|
85
85
|
<div class="ui-dropdown-menu ui-dropdown-menu--open ui-dropdown-menu--align-end">
|
|
86
86
|
<button class="ui-dropdown-menu__trigger ui-button ui-button--ghost" type="button">⋮</button>
|
|
87
87
|
<div class="ui-dropdown-menu__panel" role="menu">
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--_duration-fast: var(--ui-duration-fast, #{t.$duration-fast});
|
|
11
11
|
--_ease-default: var(--ui-ease-default, #{t.$ease-default});
|
|
12
12
|
// @desc Z-index stacking order
|
|
13
|
-
--_z: var(--ui-dropdown-menu-z, #{t.$z-dropdown});
|
|
13
|
+
--_z: var(--ui-dropdown-menu-z, #{t.$z-index-dropdown});
|
|
14
14
|
// @desc Panel offset from anchor
|
|
15
15
|
--_panel-offset: var(--ui-dropdown-menu-panel-offset, var(--ui-space-1, #{t.$space-1}));
|
|
16
16
|
// @desc Panel minimum width
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.menu {
|
|
10
10
|
--_border-width-sm: var(--ui-border-width-sm, #{t.$border-width-sm});
|
|
11
11
|
--_font-size-xs: var(--ui-font-size-xs, #{t.$font-size-xs});
|
|
12
|
-
--_weight-medium: var(--ui-weight-medium, #{t.$weight-medium});
|
|
12
|
+
--_weight-medium: var(--ui-font-weight-medium, #{t.$font-weight-medium});
|
|
13
13
|
--_row-1: var(--ui-row-1, #{t.$row});
|
|
14
14
|
--_color-text-muted: var(--ui-color-text-muted, #{t.$color-text-muted});
|
|
15
15
|
--_font-size-sm: var(--ui-font-size-sm, #{t.$font-size-sm});
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
font-size: var(--_font-size-xs);
|
|
70
70
|
font-weight: var(--_weight-medium);
|
|
71
71
|
line-height: var(--_row-1);
|
|
72
|
-
letter-spacing: #{t.$
|
|
72
|
+
letter-spacing: #{t.$letter-spacing-wide};
|
|
73
73
|
text-transform: uppercase;
|
|
74
74
|
color: var(--_color-text-muted);
|
|
75
75
|
}
|