@lt-ui/uikit 0.0.1 → 0.0.2
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/_internal/base-button/styles.module.css +1 -1
- package/_internal/field/_motion.css +0 -0
- package/_internal/field/field.module.css +21 -23
- package/_internal/picker/picker-field.module.css +1 -1
- package/_internal/picker/picker-sheet.module.css +1 -1
- package/accordion/styles.module.css +3 -4
- package/alert/styles/alert.module.css +8 -8
- package/avatar/avatar-group.module.css +1 -1
- package/avatar/styles.module.css +3 -3
- package/badge/styles.module.css +3 -3
- package/breadcrumbs/styles.module.css +4 -4
- package/button/styles.module.css +7 -7
- package/calendar/styles.module.css +11 -11
- package/caption/styles.module.css +1 -1
- package/checkbox/styles/style.module.css +10 -12
- package/chip/styles.module.css +3 -3
- package/cjs/_internal/base-button/styles.module.css +1 -1
- package/cjs/_internal/field/_motion.css +0 -0
- package/cjs/_internal/field/field.module.css +21 -23
- package/cjs/_internal/picker/picker-field.module.css +1 -1
- package/cjs/_internal/picker/picker-sheet.module.css +1 -1
- package/cjs/accordion/styles.module.css +3 -4
- package/cjs/alert/styles/alert.module.css +8 -8
- package/cjs/avatar/avatar-group.module.css +1 -1
- package/cjs/avatar/styles.module.css +3 -3
- package/cjs/badge/styles.module.css +3 -3
- package/cjs/breadcrumbs/styles.module.css +4 -4
- package/cjs/button/styles.module.css +7 -7
- package/cjs/calendar/styles.module.css +11 -11
- package/cjs/caption/styles.module.css +1 -1
- package/cjs/checkbox/styles/style.module.css +10 -12
- package/cjs/chip/styles.module.css +3 -3
- package/cjs/date-picker/styles.module.css +10 -10
- package/cjs/drawer/styles.module.css +10 -12
- package/cjs/file/styles.module.css +3 -4
- package/cjs/hint/styles/buttons.module.css +2 -2
- package/cjs/hint/styles/hint-content.module.css +3 -3
- package/cjs/hint/styles/hint.module.css +2 -2
- package/cjs/image/viewer.module.css +1 -1
- package/cjs/list/list-divider/styles.module.css +2 -2
- package/cjs/list/list-item/styles.module.css +2 -2
- package/cjs/list/list-section/styles.module.css +4 -4
- package/cjs/modal/styles/modal-footer.module.css +3 -3
- package/cjs/modal/styles/modal-header.module.css +5 -5
- package/cjs/modal/styles/modal.module.css +2 -2
- package/cjs/navigation/navigation.js +2 -1
- package/cjs/navigation/styles/navigation.module.css +96 -81
- package/cjs/pagination/styles.module.css +2 -2
- package/cjs/pin-input/styles.module.css +2 -2
- package/cjs/progress-bar/styles.module.css +1 -1
- package/cjs/quantity-input/styles.module.css +3 -3
- package/cjs/radio/styles.module.css +4 -5
- package/cjs/radio-group/styles.module.css +1 -1
- package/cjs/segmented-control/styles/segmented-control-item.module.css +9 -9
- package/cjs/segmented-control/styles/segmented-control.module.css +4 -4
- package/cjs/select/components/select-field-multiselect-value.js +2 -2
- package/cjs/select/components/select-field.js +8 -6
- package/cjs/select/hooks/use-select-view-model.js +3 -1
- package/cjs/select/styles/select-field.module.css +20 -1
- package/cjs/select/styles/select.module.css +2 -2
- package/cjs/select/views/select-view.js +2 -2
- package/cjs/select/views/styles.module.css +1 -1
- package/cjs/snackbar/styles/snack.module.css +1 -1
- package/cjs/switch/styles/base.module.css +2 -2
- package/cjs/tabs/styles/tab-list.module.css +1 -1
- package/cjs/tabs/styles/tab.module.css +6 -6
- package/cjs/textarea/styles.module.css +1 -1
- package/cjs/theme-provider/styles.module.css +6 -6
- package/cjs/time-picker/styles.module.css +9 -9
- package/cjs/tree/styles.module.css +5 -5
- package/cjs/tree/tree-select.module.css +2 -2
- package/date-picker/styles.module.css +10 -10
- package/drawer/styles.module.css +10 -12
- package/file/styles.module.css +3 -4
- package/hint/styles/buttons.module.css +2 -2
- package/hint/styles/hint-content.module.css +3 -3
- package/hint/styles/hint.module.css +2 -2
- package/image/viewer.module.css +1 -1
- package/list/list-divider/styles.module.css +2 -2
- package/list/list-item/styles.module.css +2 -2
- package/list/list-section/styles.module.css +4 -4
- package/modal/styles/modal-footer.module.css +3 -3
- package/modal/styles/modal-header.module.css +5 -5
- package/modal/styles/modal.module.css +2 -2
- package/navigation/navigation.d.ts +1 -0
- package/navigation/navigation.js +2 -1
- package/navigation/styles/navigation.module.css +96 -81
- package/navigation/types.d.ts +2 -2
- package/package.json +6 -2
- package/pagination/styles.module.css +2 -2
- package/pin-input/styles.module.css +2 -2
- package/progress-bar/styles.module.css +1 -1
- package/quantity-input/styles.module.css +3 -3
- package/radio/styles.module.css +4 -5
- package/radio-group/styles.module.css +1 -1
- package/scss/_functions.scss +12 -24
- package/scss/_grid.scss +2 -2
- package/scss/_index.scss +1 -6
- package/scss/_interaction.scss +3 -3
- package/scss/_mixins.scss +5 -51
- package/scss/_tokens.generated.scss +578 -0
- package/scss/_tokens.scss +2 -396
- package/scss/_typography.scss +0 -1
- package/segmented-control/styles/segmented-control-item.module.css +9 -9
- package/segmented-control/styles/segmented-control.module.css +4 -4
- package/select/components/select-field-multiselect-value.d.ts +1 -0
- package/select/components/select-field-multiselect-value.js +2 -2
- package/select/components/select-field.d.ts +3 -1
- package/select/components/select-field.js +8 -6
- package/select/hooks/use-select-view-model.d.ts +3 -1
- package/select/hooks/use-select-view-model.js +3 -1
- package/select/select.d.ts +2 -1
- package/select/styles/select-field.module.css +20 -1
- package/select/styles/select.module.css +2 -2
- package/select/types.d.ts +3 -1
- package/select/views/select-view.js +2 -2
- package/select/views/styles.module.css +1 -1
- package/snackbar/styles/snack.module.css +1 -1
- package/switch/styles/base.module.css +2 -2
- package/tabs/styles/tab-list.module.css +1 -1
- package/tabs/styles/tab.module.css +6 -6
- package/textarea/styles.module.css +1 -1
- package/theme-provider/styles.module.css +6 -6
- package/time-picker/styles.module.css +9 -9
- package/tree/styles.module.css +5 -5
- package/tree/tree-select.module.css +2 -2
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
--drawer-duration-in: var(--lt-ui-drawer-duration-in, 320ms);
|
|
3
3
|
--drawer-duration-out: var(--lt-ui-drawer-duration-out, 220ms);
|
|
4
|
-
--drawer-ease-in: cubic-bezier(0.32, 0.72, 0, 1);
|
|
5
|
-
--drawer-ease-out: cubic-bezier(0.4, 0, 1, 1);
|
|
6
4
|
--drawer-scrim-opacity: var(--lt-ui-drawer-scrim-opacity, 0.6);
|
|
7
5
|
--drawer-padding: var(--lt-ui-drawer-padding, 24px);
|
|
8
6
|
position: fixed;
|
|
@@ -11,7 +9,7 @@
|
|
|
11
9
|
}
|
|
12
10
|
@media (max-width: 479.98px) {
|
|
13
11
|
.root {
|
|
14
|
-
--drawer-padding:
|
|
12
|
+
--drawer-padding: var(--space-16);
|
|
15
13
|
}
|
|
16
14
|
}
|
|
17
15
|
.root:global([data-lt-ui-theme='dark']) {
|
|
@@ -153,7 +151,7 @@
|
|
|
153
151
|
}
|
|
154
152
|
.transitionEnterActive .panel {
|
|
155
153
|
transform: translate3d(0, 0, 0);
|
|
156
|
-
transition: transform var(--drawer-duration-in)
|
|
154
|
+
transition: transform var(--drawer-duration-in) cubic-bezier(0.32, 0.72, 0, 1);
|
|
157
155
|
will-change: transform;
|
|
158
156
|
}
|
|
159
157
|
|
|
@@ -167,7 +165,7 @@
|
|
|
167
165
|
}
|
|
168
166
|
.transitionExitActive .panel {
|
|
169
167
|
transform: var(--drawer-from);
|
|
170
|
-
transition: transform var(--drawer-duration-out)
|
|
168
|
+
transition: transform var(--drawer-duration-out) cubic-bezier(0.4, 0, 1, 1);
|
|
171
169
|
}
|
|
172
170
|
|
|
173
171
|
.root[data-dragging] .panel {
|
|
@@ -187,7 +185,7 @@
|
|
|
187
185
|
display: flex;
|
|
188
186
|
flex: none;
|
|
189
187
|
justify-content: center;
|
|
190
|
-
padding: 10px 0
|
|
188
|
+
padding: 10px 0 var(--space-2);
|
|
191
189
|
touch-action: none;
|
|
192
190
|
cursor: grab;
|
|
193
191
|
}
|
|
@@ -217,9 +215,9 @@
|
|
|
217
215
|
z-index: 2;
|
|
218
216
|
display: flex;
|
|
219
217
|
flex: none;
|
|
220
|
-
gap:
|
|
218
|
+
gap: var(--space-8);
|
|
221
219
|
align-items: center;
|
|
222
|
-
padding:
|
|
220
|
+
padding: var(--space-12) calc(var(--drawer-padding) - var(--space-8)) var(--space-12) var(--drawer-padding);
|
|
223
221
|
background-color: var(--background-elevated);
|
|
224
222
|
transition: box-shadow 150ms ease-out;
|
|
225
223
|
}
|
|
@@ -237,13 +235,13 @@
|
|
|
237
235
|
.actions {
|
|
238
236
|
display: flex;
|
|
239
237
|
flex: none;
|
|
240
|
-
gap:
|
|
238
|
+
gap: var(--space-4);
|
|
241
239
|
align-items: center;
|
|
242
240
|
}
|
|
243
241
|
|
|
244
242
|
.back {
|
|
245
243
|
flex: none;
|
|
246
|
-
margin-inline-start: -
|
|
244
|
+
margin-inline-start: calc(-1 * var(--space-8));
|
|
247
245
|
}
|
|
248
246
|
|
|
249
247
|
.close {
|
|
@@ -256,9 +254,9 @@
|
|
|
256
254
|
z-index: 2;
|
|
257
255
|
display: flex;
|
|
258
256
|
flex: none;
|
|
259
|
-
gap:
|
|
257
|
+
gap: var(--space-12);
|
|
260
258
|
justify-content: space-between;
|
|
261
|
-
padding:
|
|
259
|
+
padding: var(--space-16) var(--drawer-padding) max(var(--space-16), env(safe-area-inset-bottom, 0px));
|
|
262
260
|
margin-top: auto;
|
|
263
261
|
background-color: var(--background-elevated);
|
|
264
262
|
transition: box-shadow 150ms ease-out;
|
|
@@ -10,23 +10,22 @@
|
|
|
10
10
|
--file-pill-width: 132px;
|
|
11
11
|
--file-pill-height: var(--space-32);
|
|
12
12
|
--file-emblem-size: var(--space-24);
|
|
13
|
-
--file-name-
|
|
13
|
+
--file-name-max-width: 56px;
|
|
14
14
|
}
|
|
15
15
|
.root.m {
|
|
16
16
|
--file-pill-width: 144px;
|
|
17
17
|
--file-pill-height: var(--space-40);
|
|
18
18
|
--file-emblem-size: var(--space-32);
|
|
19
|
-
--file-name-
|
|
19
|
+
--file-name-max-width: 52px;
|
|
20
20
|
}
|
|
21
21
|
.root.l {
|
|
22
22
|
--file-pill-width: 152px;
|
|
23
23
|
--file-pill-height: var(--space-48);
|
|
24
24
|
--file-emblem-size: var(--space-32);
|
|
25
|
-
--file-name-
|
|
25
|
+
--file-name-max-width: 60px;
|
|
26
26
|
}
|
|
27
27
|
.root:not(.imageRoot) {
|
|
28
28
|
width: var(--file-pill-width);
|
|
29
|
-
--file-name-max-width: calc(var(--file-pill-width) - var(--file-name-chrome));
|
|
30
29
|
}
|
|
31
30
|
.root:not(.imageRoot) .pillBody .fileName {
|
|
32
31
|
max-width: var(--file-name-max-width);
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
justify-self: end;
|
|
4
4
|
width: fit-content;
|
|
5
5
|
height: fit-content;
|
|
6
|
-
margin: -
|
|
6
|
+
margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-8);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.actionButton {
|
|
10
10
|
width: 100%;
|
|
11
|
-
padding:
|
|
11
|
+
padding: var(--space-4) 10px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.extraButton {
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.hasChild {
|
|
7
|
-
margin: 0 0 0
|
|
7
|
+
margin: 0 0 0 var(--space-12);
|
|
8
8
|
}
|
|
9
9
|
.hasChild.column {
|
|
10
10
|
grid-area: 2/1/3/4;
|
|
11
|
-
margin:
|
|
11
|
+
margin: var(--space-12) 0 0;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.header {
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
color: var(--text-primary);
|
|
30
30
|
}
|
|
31
31
|
.paragraph:nth-child(2) {
|
|
32
|
-
margin-top:
|
|
32
|
+
margin-top: var(--space-4);
|
|
33
33
|
}
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
.listItemClickableContent[data-description-position=top] .description {
|
|
71
71
|
margin-top: 0;
|
|
72
|
-
margin-bottom:
|
|
72
|
+
margin-bottom: var(--space-2);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.listItemClickableContent[data-alignment=center] {
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
.description {
|
|
130
130
|
z-index: 0;
|
|
131
131
|
grid-area: description;
|
|
132
|
-
margin-top:
|
|
132
|
+
margin-top: var(--space-2);
|
|
133
133
|
color: var(--lt-ui-list-item-description-color, var(--text-minor));
|
|
134
134
|
}
|
|
135
135
|
.description:empty {
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.l.accent {
|
|
16
|
-
padding: 13px
|
|
16
|
+
padding: 13px var(--space-16);
|
|
17
17
|
}
|
|
18
18
|
.l.minor {
|
|
19
|
-
padding:
|
|
19
|
+
padding: var(--space-8) var(--space-16);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.m.accent {
|
|
23
|
-
padding: 11px
|
|
23
|
+
padding: 11px var(--space-12);
|
|
24
24
|
}
|
|
25
25
|
.m.minor {
|
|
26
|
-
padding: 6px
|
|
26
|
+
padding: 6px var(--space-12);
|
|
27
27
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.modalFooter {
|
|
2
2
|
z-index: 1;
|
|
3
3
|
display: flex;
|
|
4
|
-
gap:
|
|
4
|
+
gap: var(--space-16);
|
|
5
5
|
justify-content: space-between;
|
|
6
|
-
padding:
|
|
6
|
+
padding: var(--space-32) var(--space-40) var(--space-40);
|
|
7
7
|
margin-top: auto;
|
|
8
8
|
color: var(--text-primary);
|
|
9
9
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
@media (max-width: 767.98px) {
|
|
19
19
|
.modalFooter.column {
|
|
20
20
|
flex-direction: column-reverse;
|
|
21
|
-
row-gap:
|
|
21
|
+
row-gap: var(--space-16);
|
|
22
22
|
align-items: stretch;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.modalHeader {
|
|
2
|
-
padding: 40px 80px
|
|
2
|
+
padding: 40px 80px var(--space-16) 40px;
|
|
3
3
|
color: var(--text-primary);
|
|
4
4
|
}
|
|
5
5
|
.modalHeader.onScroll {
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
will-change: box-shadow;
|
|
9
9
|
}
|
|
10
10
|
.modalHeader.emptyHeader {
|
|
11
|
-
padding-top:
|
|
11
|
+
padding-top: var(--space-64);
|
|
12
12
|
}
|
|
13
13
|
@media (max-width: 479.98px) {
|
|
14
14
|
.modalHeader {
|
|
15
|
-
padding:
|
|
15
|
+
padding: var(--space-8) var(--space-48);
|
|
16
16
|
text-align: center;
|
|
17
17
|
}
|
|
18
18
|
.modalHeader.emptyHeader {
|
|
19
|
-
padding-top:
|
|
19
|
+
padding-top: var(--space-40);
|
|
20
20
|
}
|
|
21
21
|
.modalHeader .title {
|
|
22
|
-
padding:
|
|
22
|
+
padding: var(--space-8);
|
|
23
23
|
text-align: center;
|
|
24
24
|
}
|
|
25
25
|
.modalHeader.curtain {
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
min-height: unset;
|
|
171
171
|
}
|
|
172
172
|
.wrapper:not(.full-screen) {
|
|
173
|
-
padding: 0
|
|
173
|
+
padding: 0 var(--space-16);
|
|
174
174
|
}
|
|
175
175
|
.wrapper:not(.full-screen).toTop {
|
|
176
176
|
flex-flow: wrap;
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
transform: translate(0, 0);
|
|
217
217
|
}
|
|
218
218
|
.modal:not(.full-screen).sticky {
|
|
219
|
-
max-height: calc(100vh -
|
|
219
|
+
max-height: calc(100vh - 160px);
|
|
220
220
|
}
|
|
221
221
|
@media (max-width: 319.98px) {
|
|
222
222
|
.modal:not(.full-screen) {
|
|
@@ -73,7 +73,7 @@ const ClassNamesProvider = (0, compat_1.contextProvider)(context_1.NavigationCla
|
|
|
73
73
|
* ```
|
|
74
74
|
*/
|
|
75
75
|
exports.Navigation = (0, compat_1.withRef)(function Navigation(props, ref) {
|
|
76
|
-
const { items, orientation = 'vertical', size = 'm', collapsible = true, breakpoint = 'lg', mobile = 'drawer', mobileBreakpoint = 'sm', layout: layoutProp, onLayoutChange, persistKey, submenuTrigger = 'click', nestedIndicator = true, indicator = 'line', container, drawerFullscreen, drawerSide, renderLink, header, footer, theme, classNames: classNamesProp, className, value, defaultValue, onUpdate, openKeys, defaultOpenKeys, onOpenChange, branchesOnExpand, collapsed: collapsedProp, defaultCollapsed, onCollapsedChange, 'aria-label': ariaLabel, ...rest } = props;
|
|
76
|
+
const { items, orientation = 'vertical', size = 'm', labelLines = 1, collapsible = true, breakpoint = 'lg', mobile = 'drawer', mobileBreakpoint = 'sm', layout: layoutProp, onLayoutChange, persistKey, submenuTrigger = 'click', nestedIndicator = true, indicator = 'line', container, drawerFullscreen, drawerSide, renderLink, header, footer, theme, classNames: classNamesProp, className, value, defaultValue, onUpdate, openKeys, defaultOpenKeys, onOpenChange, branchesOnExpand, collapsed: collapsedProp, defaultCollapsed, onCollapsedChange, 'aria-label': ariaLabel, ...rest } = props;
|
|
77
77
|
const { t } = (0, use_locale_1.useLocale)();
|
|
78
78
|
const baseId = (0, hooks_1.useUniqID)(5, 'navigation');
|
|
79
79
|
const classNames = (0, utils_1.useClassNames)('Navigation', classNamesProp);
|
|
@@ -123,6 +123,7 @@ exports.Navigation = (0, compat_1.withRef)(function Navigation(props, ref) {
|
|
|
123
123
|
'data-lt-ui': 'navigation',
|
|
124
124
|
'data-layout': layout,
|
|
125
125
|
'data-size': size,
|
|
126
|
+
'data-label-lines': labelLines,
|
|
126
127
|
'data-lt-ui-theme': themeAttribute,
|
|
127
128
|
'data-indicator': indicator,
|
|
128
129
|
};
|