jvetrau-ds 0.1.16 → 0.1.17

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 (69) hide show
  1. package/components/attach/attach.css +141 -0
  2. package/components/avatar/avatar.css +69 -0
  3. package/components/button/button.css +104 -0
  4. package/components/button-icon/button-icon.css +67 -0
  5. package/components/card/card.css +128 -0
  6. package/components/checkbox/checkbox.css +80 -0
  7. package/components/dropdown/dropdown.css +156 -0
  8. package/components/field/field.css +118 -0
  9. package/components/input/input.css +81 -0
  10. package/components/logo/logo.css +41 -0
  11. package/components/menu/menu.css +110 -0
  12. package/components/panel/panel.css +87 -0
  13. package/components/progressbar/progressbar.css +170 -0
  14. package/components/radio/radio.css +80 -0
  15. package/components/richedit/richedit.css +89 -0
  16. package/components/search/search.css +89 -0
  17. package/components/select/select.css +138 -0
  18. package/components/tabs/tabs.css +107 -0
  19. package/components/tag/tag.css +87 -0
  20. package/components/textarea/textarea.css +83 -0
  21. package/components/video/video.css +206 -0
  22. package/icons/icon.css +6 -0
  23. package/layouts/base/base.css +44 -0
  24. package/layouts/foundation/foundation.css +76 -0
  25. package/layouts/sidebar/sidebar.css +86 -0
  26. package/package.json +1 -1
  27. package/patterns/footer/footer.css +114 -0
  28. package/patterns/header/header.css +81 -0
  29. package/patterns/screen-header/screen-header.css +127 -0
  30. package/schema-CvXpQjTQ.d.cts +21 -0
  31. package/schema-CvXpQjTQ.d.ts +21 -0
  32. package/tokens/scales/border.cjs +26 -0
  33. package/tokens/scales/border.cjs.map +1 -0
  34. package/tokens/scales/border.d.cts +5 -0
  35. package/tokens/scales/border.d.ts +5 -0
  36. package/tokens/scales/border.js +24 -0
  37. package/tokens/scales/border.js.map +1 -0
  38. package/tokens/scales/color.cjs +148 -0
  39. package/tokens/scales/color.cjs.map +1 -0
  40. package/tokens/scales/color.d.cts +5 -0
  41. package/tokens/scales/color.d.ts +5 -0
  42. package/tokens/scales/color.js +146 -0
  43. package/tokens/scales/color.js.map +1 -0
  44. package/tokens/scales/depth.cjs +7 -0
  45. package/tokens/scales/depth.cjs.map +1 -0
  46. package/tokens/scales/depth.d.cts +5 -0
  47. package/tokens/scales/depth.d.ts +5 -0
  48. package/tokens/scales/depth.js +5 -0
  49. package/tokens/scales/depth.js.map +1 -0
  50. package/tokens/scales/motion.cjs +7 -0
  51. package/tokens/scales/motion.cjs.map +1 -0
  52. package/tokens/scales/motion.d.cts +5 -0
  53. package/tokens/scales/motion.d.ts +5 -0
  54. package/tokens/scales/motion.js +5 -0
  55. package/tokens/scales/motion.js.map +1 -0
  56. package/tokens/scales/size.cjs +42 -0
  57. package/tokens/scales/size.cjs.map +1 -0
  58. package/tokens/scales/size.d.cts +11 -0
  59. package/tokens/scales/size.d.ts +11 -0
  60. package/tokens/scales/size.js +39 -0
  61. package/tokens/scales/size.js.map +1 -0
  62. package/tokens/scales/typography.cjs +52 -0
  63. package/tokens/scales/typography.cjs.map +1 -0
  64. package/tokens/scales/typography.d.cts +5 -0
  65. package/tokens/scales/typography.d.ts +5 -0
  66. package/tokens/scales/typography.js +50 -0
  67. package/tokens/scales/typography.js.map +1 -0
  68. package/tokens.d.cts +1 -8
  69. package/tokens.d.ts +1 -8
@@ -0,0 +1,141 @@
1
+ .attach {
2
+ /* color */
3
+ --attachment-color: var(--color-text);
4
+ --attachment-item-bg: var(--color-control);
5
+ --attachment-border-color: var(--color-line);
6
+ --attachment-size-color: var(--color-text-note);
7
+
8
+ color: var(--attachment-color);
9
+
10
+ /* typography */
11
+ --attachment-font-family: var(--font-control-family);
12
+ --attachment-font-size: var(--font-control);
13
+ --attachment-font-weight: var(--font-control-weight);
14
+ --attachment-line-height: var(--font-control-line);
15
+ --attachment-letter-spacing: var(--font-control-letter-spacing);
16
+
17
+ font-family: var(--attachment-font-family);
18
+ font-size: var(--attachment-font-size);
19
+ font-weight: var(--attachment-font-weight);
20
+ line-height: var(--attachment-line-height);
21
+ letter-spacing: var(--attachment-letter-spacing);
22
+
23
+ /* size */
24
+ --attachment-gap: var(--margin-control);
25
+ --attachment-item-gap: var(--margin-icon);
26
+ --attachment-item-padding: var(--padding-control-vert);
27
+ --attachment-preview-max-width: 240px;
28
+ --attachment-preview-max-height: 180px;
29
+
30
+ /* border */
31
+ --attachment-radius: var(--radius-control);
32
+ --attachment-border-width: var(--size-border-width-base);
33
+
34
+ /* depth */
35
+
36
+ /* motion */
37
+ }
38
+
39
+ .attach__list {
40
+ /* size */
41
+ display: flex;
42
+ flex-direction: column;
43
+ gap: var(--attachment-gap);
44
+ margin: 0;
45
+ padding: 0;
46
+
47
+ /* border */
48
+ list-style: none;
49
+ }
50
+
51
+ .attach__item {
52
+ /* color */
53
+ background: var(--attachment-item-bg);
54
+
55
+ /* size */
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: space-between;
59
+ gap: var(--attachment-item-gap);
60
+ padding: var(--attachment-item-padding);
61
+
62
+ /* border */
63
+ border:
64
+ var(--attachment-border-width)
65
+ solid
66
+ var(--attachment-border-color);
67
+ border-radius: var(--attachment-radius);
68
+ }
69
+
70
+ .attach__link {
71
+ /* color */
72
+ color: inherit;
73
+
74
+ /* size */
75
+ min-width: 0;
76
+
77
+ /* typography */
78
+ text-decoration: none;
79
+ }
80
+
81
+ .attach__link:hover .attach__name {
82
+ text-decoration: underline;
83
+ }
84
+
85
+ .attach__preview {
86
+ /* size */
87
+ display: block;
88
+ max-width: var(--attachment-preview-max-width);
89
+ max-height: var(--attachment-preview-max-height);
90
+ object-fit: contain;
91
+
92
+ /* border */
93
+ border-radius: var(--attachment-radius);
94
+ }
95
+
96
+ .attach__file {
97
+ /* size */
98
+ display: flex;
99
+ flex-direction: column;
100
+ min-width: 0;
101
+ }
102
+
103
+ .attach__name {
104
+ /* size */
105
+ overflow: hidden;
106
+
107
+ /* typography */
108
+ text-overflow: ellipsis;
109
+ white-space: nowrap;
110
+ }
111
+
112
+ .attach__size {
113
+ /* color */
114
+ color: var(--attachment-size-color);
115
+
116
+ /* typography */
117
+ font-size: 0.85em;
118
+ }
119
+
120
+ .attach__remove {
121
+ /* color */
122
+ background: transparent;
123
+ color: inherit;
124
+
125
+ /* typography */
126
+ font: inherit;
127
+
128
+ /* size */
129
+ flex-shrink: 0;
130
+ padding: 0;
131
+
132
+ /* border */
133
+ border: 0;
134
+
135
+ /* motion */
136
+ cursor: pointer;
137
+ }
138
+
139
+ .attach__remove:hover {
140
+ text-decoration: underline;
141
+ }
@@ -0,0 +1,69 @@
1
+ .avatar {
2
+ /* color */
3
+ --avatar-bg: var(--color-control);
4
+ --avatar-color: var(--color-text-control);
5
+
6
+ background: var(--avatar-bg);
7
+ color: var(--avatar-color);
8
+
9
+ /* typography */
10
+ --avatar-font-family: var(--font-control-family);
11
+ --avatar-font-size: var(--font-control);
12
+ --avatar-font-weight: var(--font-control-weight);
13
+ --avatar-line-height: var(--font-control-line);
14
+ --avatar-letter-spacing: var(--font-control-letter-spacing);
15
+
16
+ font-family: var(--avatar-font-family);
17
+ font-size: var(--avatar-font-size);
18
+ font-weight: var(--avatar-font-weight);
19
+ line-height: var(--avatar-line-height);
20
+ letter-spacing: var(--avatar-letter-spacing);
21
+
22
+ /* size */
23
+ --avatar-size: 48px;
24
+
25
+ display: inline-flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ width: var(--avatar-size);
29
+ height: var(--avatar-size);
30
+ overflow: hidden;
31
+
32
+ /* border */
33
+ --avatar-radius: 50%;
34
+
35
+ border-radius: var(--avatar-radius);
36
+
37
+ /* depth */
38
+
39
+ /* motion */
40
+ }
41
+
42
+ .avatar--button {
43
+ /* color */
44
+
45
+ /* typography */
46
+ font: inherit;
47
+
48
+ /* size */
49
+ padding: 0;
50
+
51
+ /* border */
52
+ border: 0;
53
+
54
+ /* motion */
55
+ cursor: pointer;
56
+ }
57
+
58
+ .avatar__image {
59
+ /* size */
60
+ display: block;
61
+ width: 100%;
62
+ height: 100%;
63
+ object-fit: cover;
64
+ }
65
+
66
+ .avatar__initials {
67
+ /* typography */
68
+ text-transform: uppercase;
69
+ }
@@ -0,0 +1,104 @@
1
+ .button {
2
+ /* color */
3
+ --button-bg: var(--color-primary-2);
4
+ --button-color: var(--color-text-primary-2);
5
+ --button-bg-disabled: var(--color-bg-disabled);
6
+ --button-color-disabled: var(--color-text-disabled, var(--color-text-control));
7
+
8
+ background: var(--button-bg);
9
+ color: var(--button-color);
10
+
11
+ /* typography */
12
+ --button-font-family: var(--font-control-family);
13
+ --button-font-weight: var(--font-control-weight);
14
+ --button-font-size: var(--font-control);
15
+ --button-line-height: var(--font-control-line);
16
+ --button-letter-spacing: var(--font-control-letter-spacing);
17
+
18
+ font-family: var(--button-font-family);
19
+ font-size: var(--button-font-size);
20
+ font-weight: var(--button-font-weight);
21
+ line-height: var(--button-line-height);
22
+ letter-spacing: var(--button-letter-spacing);
23
+
24
+ /* size */
25
+ --button-gap: var(--margin-icon);
26
+ --button-height: var(--size-control-height);
27
+ --button-padding-x: var(--padding-control-button-horz);
28
+ --button-padding-icon-only: var(--padding-control-button-icon-horz);
29
+
30
+ display: inline-flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ gap: var(--button-gap);
34
+ min-height: var(--button-height);
35
+ padding-inline: var(--button-padding-x);
36
+
37
+ /* border */
38
+ --button-radius: var(--radius-control-button);
39
+ --button-focus-width: var(--size-border-width-base);
40
+ --button-focus-offset: var(--size-border-width-base);
41
+
42
+ border: 0;
43
+ border-radius: var(--button-radius);
44
+
45
+ /* depth */
46
+
47
+ /* motion */
48
+ --button-opacity-hover: 0.8;
49
+ --button-opacity-active: 0.6;
50
+ --button-opacity-disabled: 0.6;
51
+ --button-transition-duration: 0.2s;
52
+
53
+ cursor: pointer;
54
+ user-select: none;
55
+ transition: opacity var(--button-transition-duration) ease;
56
+ }
57
+
58
+ .button__icon {
59
+ /* color */
60
+
61
+ /* typography */
62
+ line-height: 0;
63
+
64
+ /* size */
65
+ display: inline-flex;
66
+ align-items: center;
67
+ flex-shrink: 0;
68
+
69
+ /* border */
70
+
71
+ /* depth */
72
+
73
+ /* motion */
74
+ }
75
+
76
+ .button:hover {
77
+ opacity: var(--button-opacity-hover);
78
+ }
79
+
80
+ .button:focus-visible {
81
+ outline: var(--button-focus-width) solid var(--button-bg);
82
+ outline-offset: var(--button-focus-offset);
83
+ }
84
+
85
+ .button:active {
86
+ opacity: var(--button-opacity-active);
87
+ }
88
+
89
+ .button:disabled,
90
+ .button--disabled {
91
+ background: var(--button-bg-disabled);
92
+ color: var(--button-color-disabled);
93
+ opacity: var(--button-opacity-disabled);
94
+ cursor: not-allowed;
95
+ }
96
+
97
+ .button--primary {
98
+ --button-bg: var(--color-primary-2);
99
+ --button-color: var(--color-text-primary-2);
100
+ }
101
+
102
+ .button--icon-only {
103
+ padding-inline: var(--button-padding-icon-only);
104
+ }
@@ -0,0 +1,67 @@
1
+ .button-icon {
2
+ /* color */
3
+ --button-icon-bg: transparent;
4
+ --button-icon-color: var(--color-text);
5
+ --button-icon-bg-disabled: transparent;
6
+ --button-icon-color-disabled: var(--color-text-disabled);
7
+
8
+ background: var(--button-icon-bg);
9
+ color: var(--button-icon-color);
10
+
11
+ /* typography */
12
+
13
+ /* size */
14
+ --button-icon-size: 32px;
15
+
16
+ display: inline-flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ width: var(--button-icon-size);
20
+ height: var(--button-icon-size);
21
+ padding: 0;
22
+
23
+ /* border */
24
+ --button-icon-radius: var(--radius-control);
25
+ --button-icon-focus-width: var(--size-border-width-min);
26
+ --button-icon-focus-offset: 2px;
27
+
28
+ border: 0;
29
+ border-radius: var(--button-icon-radius);
30
+
31
+ /* depth */
32
+
33
+ /* motion */
34
+ --button-icon-transition-duration: var(--motion-duration1);
35
+ --button-icon-opacity-hover: 0.8;
36
+ --button-icon-opacity-active: 0.7;
37
+
38
+ cursor: pointer;
39
+ user-select: none;
40
+ transition: opacity var(--button-icon-transition-duration);
41
+ }
42
+
43
+ .button-icon__icon {
44
+ /* size */
45
+ flex-shrink: 0;
46
+ }
47
+
48
+ .button-icon:hover {
49
+ opacity: var(--button-icon-opacity-hover);
50
+ }
51
+
52
+ .button-icon:focus-visible {
53
+ outline: var(--button-icon-focus-width) solid currentColor;
54
+ outline-offset: var(--button-icon-focus-offset);
55
+ }
56
+
57
+ .button-icon:active {
58
+ opacity: var(--button-icon-opacity-active);
59
+ }
60
+
61
+ .button-icon:disabled,
62
+ .button-icon--disabled {
63
+ background: var(--button-icon-bg-disabled);
64
+ color: var(--button-icon-color-disabled);
65
+ cursor: not-allowed;
66
+ opacity: 1;
67
+ }
@@ -0,0 +1,128 @@
1
+ .card {
2
+ /* color */
3
+ --card-bg: var(--color-bg-container);
4
+ --card-color: var(--color-text-container);
5
+
6
+ background: var(--card-bg);
7
+ color: var(--card-color);
8
+
9
+ /* typography */
10
+
11
+ /* size */
12
+ --card-width: 100%;
13
+ --card-padding: var(--padding-container);
14
+ --card-gap: var(--margin-container-item);
15
+ --card-title-gap: var(--font-h2-margin);
16
+ --card-content-min-height: 200px;
17
+
18
+ display: flex;
19
+ flex-direction: column;
20
+ align-items: stretch;
21
+ justify-content: center;
22
+ gap: var(--card-gap);
23
+ width: var(--card-width);
24
+ padding: var(--card-padding);
25
+
26
+ /* border */
27
+ --card-radius: var(--radius-container);
28
+
29
+ border-radius: var(--card-radius);
30
+
31
+ /* depth */
32
+
33
+ /* motion */
34
+ }
35
+
36
+ .card__header {
37
+ /* color */
38
+
39
+ /* typography */
40
+
41
+ /* size */
42
+ display: flex;
43
+ flex-direction: column;
44
+ gap: var(--card-title-gap);
45
+ width: 100%;
46
+
47
+ /* border */
48
+
49
+ /* depth */
50
+
51
+ /* motion */
52
+ }
53
+
54
+ .card__title {
55
+ /* color */
56
+ color: inherit;
57
+
58
+ /* typography */
59
+ font-family: var(--font-h2-family);
60
+ font-size: var(--font-h2);
61
+ font-weight: var(--font-h2-weight);
62
+ line-height: var(--font-h2-line);
63
+ letter-spacing: var(--font-h2-letter-spacing);
64
+
65
+ /* size */
66
+ margin: 0;
67
+
68
+ /* border */
69
+
70
+ /* depth */
71
+
72
+ /* motion */
73
+ }
74
+
75
+ .card__description {
76
+ /* color */
77
+ color: inherit;
78
+
79
+ /* typography */
80
+ font-family: var(--font-lead-family);
81
+ font-size: var(--font-lead);
82
+ font-weight: var(--font-lead-weight);
83
+ line-height: var(--font-lead-line);
84
+ letter-spacing: var(--font-lead-letter-spacing);
85
+
86
+ /* size */
87
+ margin: 0;
88
+
89
+ /* border */
90
+
91
+ /* depth */
92
+
93
+ /* motion */
94
+ }
95
+
96
+ .card__content {
97
+ /* color */
98
+
99
+ /* typography */
100
+
101
+ /* size */
102
+ min-height: var(--card-content-min-height);
103
+ width: 100%;
104
+
105
+ /* border */
106
+
107
+ /* depth */
108
+
109
+ /* motion */
110
+ }
111
+
112
+ .card__actions {
113
+ /* color */
114
+
115
+ /* typography */
116
+
117
+ /* size */
118
+ display: flex;
119
+ align-items: center;
120
+ gap: var(--margin-control);
121
+ width: 100%;
122
+
123
+ /* border */
124
+
125
+ /* depth */
126
+
127
+ /* motion */
128
+ }
@@ -0,0 +1,80 @@
1
+ .checkbox {
2
+ /* color */
3
+ --checkbox-label-color: var(--color-text);
4
+
5
+ color: var(--checkbox-label-color);
6
+
7
+ /* typography */
8
+ --checkbox-font-family: var(--font-body-family);
9
+ --checkbox-font-weight: var(--font-body-weight);
10
+ --checkbox-font-size: var(--font-body);
11
+ --checkbox-line-height: var(--font-body-line);
12
+ --checkbox-letter-spacing: var(--font-body-letter-spacing);
13
+
14
+ font-family: var(--checkbox-font-family);
15
+ font-size: var(--checkbox-font-size);
16
+ font-weight: var(--checkbox-font-weight);
17
+ line-height: var(--checkbox-line-height);
18
+ letter-spacing: var(--checkbox-letter-spacing);
19
+
20
+ /* size */
21
+ --checkbox-gap: var(--margin-choice);
22
+
23
+ display: inline-flex;
24
+ align-items: center;
25
+ gap: var(--checkbox-gap);
26
+
27
+ /* border */
28
+
29
+ /* depth */
30
+
31
+ /* motion */
32
+ --checkbox-opacity-disabled: 0.6;
33
+ }
34
+
35
+ .checkbox__input {
36
+ /* color */
37
+
38
+ /* typography */
39
+
40
+ /* size */
41
+ width: var(--size-control-checkbox);
42
+ height: var(--size-control-checkbox);
43
+ margin: 0;
44
+ flex-shrink: 0;
45
+
46
+ /* border */
47
+ --сheckbox-radius: var(--radius-control);
48
+ --сheckbox-focus-width: var(--size-border-width-base);
49
+ --сheckbox-focus-offset: var(--size-border-width-base);
50
+
51
+ border: var(--сheckbox-border-width) solid var(--сheckbox-border-color);
52
+ border-radius: var(--сheckbox-radius);
53
+
54
+ /* depth */
55
+
56
+ /* motion */
57
+ }
58
+
59
+ .checkbox__label {
60
+ /* color */
61
+
62
+ /* typography */
63
+
64
+ /* size */
65
+
66
+ /* border */
67
+
68
+ /* depth */
69
+
70
+ /* motion */
71
+ }
72
+
73
+ .checkbox--disabled {
74
+ opacity: var(--checkbox-opacity-disabled);
75
+ cursor: not-allowed;
76
+ }
77
+
78
+ .checkbox__input:disabled {
79
+ cursor: not-allowed;
80
+ }