@skygraph/styles 0.2.4 → 0.6.6

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 (68) hide show
  1. package/README.md +98 -98
  2. package/components/autocomplete.css +35 -35
  3. package/components/autofield.css +67 -67
  4. package/components/avatar.css +37 -37
  5. package/components/badge.css +102 -102
  6. package/components/breadcrumb.css +29 -29
  7. package/components/button.css +181 -181
  8. package/components/calendar.css +408 -408
  9. package/components/carousel.css +102 -102
  10. package/components/cascader.css +380 -380
  11. package/components/charts.css +408 -408
  12. package/components/checkbox.css +114 -114
  13. package/components/collapse.css +166 -166
  14. package/components/colorpicker.css +252 -252
  15. package/components/context-menu.css +95 -95
  16. package/components/descriptions.css +82 -82
  17. package/components/diagram.css +435 -435
  18. package/components/drawer.css +124 -124
  19. package/components/dropdown.css +110 -110
  20. package/components/empty.css +25 -25
  21. package/components/event-timeline.css +134 -134
  22. package/components/field.css +35 -35
  23. package/components/form.css +115 -115
  24. package/components/gantt.css +166 -166
  25. package/components/input-number.css +76 -76
  26. package/components/input-password.css +104 -104
  27. package/components/input.css +211 -211
  28. package/components/list.css +366 -366
  29. package/components/mentions.css +54 -54
  30. package/components/menu.css +326 -326
  31. package/components/modal.css +1 -0
  32. package/components/notification.css +128 -128
  33. package/components/pagination.css +162 -162
  34. package/components/popconfirm.css +95 -95
  35. package/components/progress.css +116 -116
  36. package/components/radio.css +95 -95
  37. package/components/rate.css +48 -48
  38. package/components/resource-calendar.css +224 -224
  39. package/components/result.css +45 -45
  40. package/components/schema-form-editor.css +433 -433
  41. package/components/search-input.css +112 -112
  42. package/components/segmented.css +76 -76
  43. package/components/select.css +181 -181
  44. package/components/skeleton.css +72 -72
  45. package/components/slider.css +51 -51
  46. package/components/spin.css +102 -102
  47. package/components/steps.css +194 -194
  48. package/components/switch.css +75 -75
  49. package/components/table.css +9 -1
  50. package/components/tabs.css +137 -137
  51. package/components/tag.css +61 -61
  52. package/components/textarea.css +22 -22
  53. package/components/timeline.css +169 -169
  54. package/components/timepicker.css +224 -224
  55. package/components/tooltip.css +91 -91
  56. package/components/transfer.css +140 -140
  57. package/components/tree.css +601 -601
  58. package/components/treeselect.css +221 -221
  59. package/components/upload.css +124 -124
  60. package/index.css +70 -70
  61. package/index.d.ts +9 -9
  62. package/package.json +1 -1
  63. package/print.css +88 -88
  64. package/reset.css +17 -17
  65. package/themes/dark.css +17 -17
  66. package/themes/default.css +14 -14
  67. package/tokens.css +310 -310
  68. package/transitions.css +158 -158
@@ -1,181 +1,181 @@
1
- .sg-select {
2
- position: relative;
3
- display: inline-block;
4
- min-width: 120px;
5
- font-size: var(--sg-font-size);
6
- }
7
-
8
- .sg-select-disabled {
9
- opacity: 0.5;
10
- pointer-events: none;
11
- }
12
-
13
- .sg-select-selector {
14
- display: flex;
15
- align-items: center;
16
- justify-content: space-between;
17
- /* Honour the shared `--sg-input-*` family (same as `Input`) so a scoped
18
- * override re-skins the trigger, falling back to the semantic palette. */
19
- height: var(--sg-input-height, var(--sg-height-md));
20
- padding: 0 var(--sg-padding-md);
21
- color: var(--sg-input-color, var(--sg-color-text));
22
- background: var(--sg-input-bg, var(--sg-color-bg-container));
23
- border: 1px solid var(--sg-input-border, var(--sg-color-border));
24
- border-radius: var(--sg-input-radius, var(--sg-border-radius));
25
- cursor: pointer;
26
- transition: border-color var(--sg-transition-duration);
27
- }
28
-
29
- .sg-select-small .sg-select-selector {
30
- height: var(--sg-height-sm);
31
- font-size: var(--sg-font-size-sm);
32
- }
33
-
34
- .sg-select-large .sg-select-selector {
35
- height: var(--sg-height-lg);
36
- font-size: var(--sg-font-size-lg);
37
- }
38
-
39
- .sg-select-open .sg-select-selector {
40
- border-color: var(--sg-color-primary);
41
- box-shadow: 0 0 0 2px var(--sg-color-primary-bg);
42
- }
43
-
44
- .sg-select-selector:hover {
45
- border-color: var(--sg-color-primary-hover);
46
- }
47
-
48
- .sg-select-placeholder {
49
- color: var(--sg-color-text-placeholder);
50
- }
51
-
52
- .sg-select-selection-item {
53
- color: var(--sg-input-color, var(--sg-color-text));
54
- }
55
-
56
- .sg-select-arrow {
57
- font-size: 10px;
58
- color: var(--sg-color-text-tertiary);
59
- margin-left: var(--sg-padding-sm);
60
- }
61
-
62
- .sg-select-dropdown {
63
- position: absolute;
64
- top: 100%;
65
- left: 0;
66
- right: 0;
67
- z-index: var(--sg-z-dropdown);
68
- margin-top: 4px;
69
- padding: var(--sg-padding-xs) 0;
70
- background: var(--sg-color-bg-elevated);
71
- border-radius: var(--sg-border-radius);
72
- box-shadow: var(--sg-shadow-lg);
73
- max-height: 256px;
74
- overflow-y: auto;
75
- }
76
-
77
- .sg-select-option {
78
- padding: var(--sg-padding-xs) var(--sg-padding-md);
79
- cursor: pointer;
80
- color: var(--sg-color-text);
81
- transition: background var(--sg-transition-duration);
82
- }
83
-
84
- .sg-select-option:hover {
85
- background: var(--sg-color-bg-hover);
86
- }
87
-
88
- .sg-select-option-focused {
89
- background: var(--sg-color-bg-hover);
90
- }
91
-
92
- .sg-select-option-selected {
93
- font-weight: 600;
94
- background: var(--sg-color-primary-bg);
95
- }
96
-
97
- .sg-select-option-disabled {
98
- color: var(--sg-color-text-disabled);
99
- cursor: not-allowed;
100
- }
101
-
102
- .sg-select-loading {
103
- --sg-spin-color: var(--sg-color-text-tertiary);
104
- }
105
-
106
- .sg-select-option-loading {
107
- display: flex;
108
- align-items: center;
109
- justify-content: space-between;
110
- --sg-spin-color: var(--sg-color-text-tertiary);
111
- }
112
-
113
- /* === Multiple-select chips === */
114
- .sg-select-multiple .sg-select-selector {
115
- height: auto;
116
- min-height: var(--sg-height-md);
117
- padding: 2px var(--sg-padding-sm) 2px 4px;
118
- flex-wrap: wrap;
119
- }
120
-
121
- .sg-select-multiple.sg-select-small .sg-select-selector {
122
- min-height: var(--sg-height-sm);
123
- }
124
-
125
- .sg-select-multiple.sg-select-large .sg-select-selector {
126
- min-height: var(--sg-height-lg);
127
- }
128
-
129
- .sg-select-tags {
130
- display: flex;
131
- flex-wrap: wrap;
132
- gap: 4px;
133
- flex: 1;
134
- min-width: 0;
135
- }
136
-
137
- .sg-select-tag {
138
- display: inline-flex;
139
- align-items: center;
140
- gap: 4px;
141
- height: 22px;
142
- padding: 0 4px 0 8px;
143
- font-size: var(--sg-font-size-sm);
144
- line-height: 20px;
145
- color: var(--sg-color-text);
146
- background: var(--sg-color-bg-secondary);
147
- border: 1px solid var(--sg-color-border-secondary);
148
- border-radius: var(--sg-border-radius);
149
- user-select: none;
150
- max-width: 100%;
151
- }
152
-
153
- .sg-select-tag-label {
154
- overflow: hidden;
155
- text-overflow: ellipsis;
156
- white-space: nowrap;
157
- }
158
-
159
- .sg-select-tag-remove {
160
- display: inline-flex;
161
- align-items: center;
162
- justify-content: center;
163
- width: 16px;
164
- height: 16px;
165
- padding: 0;
166
- font-size: 14px;
167
- line-height: 1;
168
- color: var(--sg-color-text-tertiary);
169
- background: transparent;
170
- border: none;
171
- border-radius: 2px;
172
- cursor: pointer;
173
- transition:
174
- color var(--sg-transition-duration),
175
- background var(--sg-transition-duration);
176
- }
177
-
178
- .sg-select-tag-remove:hover {
179
- color: var(--sg-color-text);
180
- background: var(--sg-color-bg-hover);
181
- }
1
+ .sg-select {
2
+ position: relative;
3
+ display: inline-block;
4
+ min-width: 120px;
5
+ font-size: var(--sg-font-size);
6
+ }
7
+
8
+ .sg-select-disabled {
9
+ opacity: 0.5;
10
+ pointer-events: none;
11
+ }
12
+
13
+ .sg-select-selector {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: space-between;
17
+ /* Honour the shared `--sg-input-*` family (same as `Input`) so a scoped
18
+ * override re-skins the trigger, falling back to the semantic palette. */
19
+ height: var(--sg-input-height, var(--sg-height-md));
20
+ padding: 0 var(--sg-padding-md);
21
+ color: var(--sg-input-color, var(--sg-color-text));
22
+ background: var(--sg-input-bg, var(--sg-color-bg-container));
23
+ border: 1px solid var(--sg-input-border, var(--sg-color-border));
24
+ border-radius: var(--sg-input-radius, var(--sg-border-radius));
25
+ cursor: pointer;
26
+ transition: border-color var(--sg-transition-duration);
27
+ }
28
+
29
+ .sg-select-small .sg-select-selector {
30
+ height: var(--sg-height-sm);
31
+ font-size: var(--sg-font-size-sm);
32
+ }
33
+
34
+ .sg-select-large .sg-select-selector {
35
+ height: var(--sg-height-lg);
36
+ font-size: var(--sg-font-size-lg);
37
+ }
38
+
39
+ .sg-select-open .sg-select-selector {
40
+ border-color: var(--sg-color-primary);
41
+ box-shadow: 0 0 0 2px var(--sg-color-primary-bg);
42
+ }
43
+
44
+ .sg-select-selector:hover {
45
+ border-color: var(--sg-color-primary-hover);
46
+ }
47
+
48
+ .sg-select-placeholder {
49
+ color: var(--sg-color-text-placeholder);
50
+ }
51
+
52
+ .sg-select-selection-item {
53
+ color: var(--sg-input-color, var(--sg-color-text));
54
+ }
55
+
56
+ .sg-select-arrow {
57
+ font-size: 10px;
58
+ color: var(--sg-color-text-tertiary);
59
+ margin-left: var(--sg-padding-sm);
60
+ }
61
+
62
+ .sg-select-dropdown {
63
+ position: absolute;
64
+ top: 100%;
65
+ left: 0;
66
+ right: 0;
67
+ z-index: var(--sg-z-dropdown);
68
+ margin-top: 4px;
69
+ padding: var(--sg-padding-xs) 0;
70
+ background: var(--sg-color-bg-elevated);
71
+ border-radius: var(--sg-border-radius);
72
+ box-shadow: var(--sg-shadow-lg);
73
+ max-height: 256px;
74
+ overflow-y: auto;
75
+ }
76
+
77
+ .sg-select-option {
78
+ padding: var(--sg-padding-xs) var(--sg-padding-md);
79
+ cursor: pointer;
80
+ color: var(--sg-color-text);
81
+ transition: background var(--sg-transition-duration);
82
+ }
83
+
84
+ .sg-select-option:hover {
85
+ background: var(--sg-color-bg-hover);
86
+ }
87
+
88
+ .sg-select-option-focused {
89
+ background: var(--sg-color-bg-hover);
90
+ }
91
+
92
+ .sg-select-option-selected {
93
+ font-weight: 600;
94
+ background: var(--sg-color-primary-bg);
95
+ }
96
+
97
+ .sg-select-option-disabled {
98
+ color: var(--sg-color-text-disabled);
99
+ cursor: not-allowed;
100
+ }
101
+
102
+ .sg-select-loading {
103
+ --sg-spin-color: var(--sg-color-text-tertiary);
104
+ }
105
+
106
+ .sg-select-option-loading {
107
+ display: flex;
108
+ align-items: center;
109
+ justify-content: space-between;
110
+ --sg-spin-color: var(--sg-color-text-tertiary);
111
+ }
112
+
113
+ /* === Multiple-select chips === */
114
+ .sg-select-multiple .sg-select-selector {
115
+ height: auto;
116
+ min-height: var(--sg-height-md);
117
+ padding: 2px var(--sg-padding-sm) 2px 4px;
118
+ flex-wrap: wrap;
119
+ }
120
+
121
+ .sg-select-multiple.sg-select-small .sg-select-selector {
122
+ min-height: var(--sg-height-sm);
123
+ }
124
+
125
+ .sg-select-multiple.sg-select-large .sg-select-selector {
126
+ min-height: var(--sg-height-lg);
127
+ }
128
+
129
+ .sg-select-tags {
130
+ display: flex;
131
+ flex-wrap: wrap;
132
+ gap: 4px;
133
+ flex: 1;
134
+ min-width: 0;
135
+ }
136
+
137
+ .sg-select-tag {
138
+ display: inline-flex;
139
+ align-items: center;
140
+ gap: 4px;
141
+ height: 22px;
142
+ padding: 0 4px 0 8px;
143
+ font-size: var(--sg-font-size-sm);
144
+ line-height: 20px;
145
+ color: var(--sg-color-text);
146
+ background: var(--sg-color-bg-secondary);
147
+ border: 1px solid var(--sg-color-border-secondary);
148
+ border-radius: var(--sg-border-radius);
149
+ user-select: none;
150
+ max-width: 100%;
151
+ }
152
+
153
+ .sg-select-tag-label {
154
+ overflow: hidden;
155
+ text-overflow: ellipsis;
156
+ white-space: nowrap;
157
+ }
158
+
159
+ .sg-select-tag-remove {
160
+ display: inline-flex;
161
+ align-items: center;
162
+ justify-content: center;
163
+ width: 16px;
164
+ height: 16px;
165
+ padding: 0;
166
+ font-size: 14px;
167
+ line-height: 1;
168
+ color: var(--sg-color-text-tertiary);
169
+ background: transparent;
170
+ border: none;
171
+ border-radius: 2px;
172
+ cursor: pointer;
173
+ transition:
174
+ color var(--sg-transition-duration),
175
+ background var(--sg-transition-duration);
176
+ }
177
+
178
+ .sg-select-tag-remove:hover {
179
+ color: var(--sg-color-text);
180
+ background: var(--sg-color-bg-hover);
181
+ }
@@ -1,72 +1,72 @@
1
- .sg-skeleton {
2
- display: flex;
3
- gap: var(--sg-padding-lg);
4
- width: 100%;
5
- }
6
-
7
- .sg-skeleton-header {
8
- flex-shrink: 0;
9
- }
10
-
11
- .sg-skeleton-avatar {
12
- display: block;
13
- background: var(--sg-skeleton-bg, var(--sg-color-bg-hover));
14
- }
15
-
16
- .sg-skeleton-avatar-circle {
17
- border-radius: 50%;
18
- }
19
-
20
- .sg-skeleton-avatar-square {
21
- border-radius: var(--sg-border-radius);
22
- }
23
-
24
- .sg-skeleton-content {
25
- flex: 1;
26
- min-width: 0;
27
- }
28
-
29
- .sg-skeleton-title {
30
- height: 16px;
31
- margin-bottom: var(--sg-margin-md);
32
- background: var(--sg-skeleton-bg, var(--sg-color-bg-hover));
33
- border-radius: var(--sg-border-radius-sm);
34
- }
35
-
36
- .sg-skeleton-paragraph {
37
- list-style: none;
38
- margin: 0;
39
- padding: 0;
40
- display: flex;
41
- flex-direction: column;
42
- gap: var(--sg-margin-sm);
43
- }
44
-
45
- .sg-skeleton-paragraph li {
46
- height: 16px;
47
- background: var(--sg-skeleton-bg, var(--sg-color-bg-hover));
48
- border-radius: var(--sg-border-radius-sm);
49
- }
50
-
51
- /* Pulse animation — gradient sweeps the shimmer highlight across the bar. */
52
- .sg-skeleton-active .sg-skeleton-avatar,
53
- .sg-skeleton-active .sg-skeleton-title,
54
- .sg-skeleton-active .sg-skeleton-paragraph li {
55
- animation: sg-skeleton-pulse 1.5s ease-in-out infinite;
56
- background: linear-gradient(
57
- 90deg,
58
- var(--sg-skeleton-bg, var(--sg-color-bg-hover)) 25%,
59
- var(--sg-skeleton-shimmer, var(--sg-color-bg-secondary)) 37%,
60
- var(--sg-skeleton-bg, var(--sg-color-bg-hover)) 63%
61
- );
62
- background-size: 400% 100%;
63
- }
64
-
65
- @keyframes sg-skeleton-pulse {
66
- 0% {
67
- background-position: 100% 50%;
68
- }
69
- 100% {
70
- background-position: 0 50%;
71
- }
72
- }
1
+ .sg-skeleton {
2
+ display: flex;
3
+ gap: var(--sg-padding-lg);
4
+ width: 100%;
5
+ }
6
+
7
+ .sg-skeleton-header {
8
+ flex-shrink: 0;
9
+ }
10
+
11
+ .sg-skeleton-avatar {
12
+ display: block;
13
+ background: var(--sg-skeleton-bg, var(--sg-color-bg-hover));
14
+ }
15
+
16
+ .sg-skeleton-avatar-circle {
17
+ border-radius: 50%;
18
+ }
19
+
20
+ .sg-skeleton-avatar-square {
21
+ border-radius: var(--sg-border-radius);
22
+ }
23
+
24
+ .sg-skeleton-content {
25
+ flex: 1;
26
+ min-width: 0;
27
+ }
28
+
29
+ .sg-skeleton-title {
30
+ height: 16px;
31
+ margin-bottom: var(--sg-margin-md);
32
+ background: var(--sg-skeleton-bg, var(--sg-color-bg-hover));
33
+ border-radius: var(--sg-border-radius-sm);
34
+ }
35
+
36
+ .sg-skeleton-paragraph {
37
+ list-style: none;
38
+ margin: 0;
39
+ padding: 0;
40
+ display: flex;
41
+ flex-direction: column;
42
+ gap: var(--sg-margin-sm);
43
+ }
44
+
45
+ .sg-skeleton-paragraph li {
46
+ height: 16px;
47
+ background: var(--sg-skeleton-bg, var(--sg-color-bg-hover));
48
+ border-radius: var(--sg-border-radius-sm);
49
+ }
50
+
51
+ /* Pulse animation — gradient sweeps the shimmer highlight across the bar. */
52
+ .sg-skeleton-active .sg-skeleton-avatar,
53
+ .sg-skeleton-active .sg-skeleton-title,
54
+ .sg-skeleton-active .sg-skeleton-paragraph li {
55
+ animation: sg-skeleton-pulse 1.5s ease-in-out infinite;
56
+ background: linear-gradient(
57
+ 90deg,
58
+ var(--sg-skeleton-bg, var(--sg-color-bg-hover)) 25%,
59
+ var(--sg-skeleton-shimmer, var(--sg-color-bg-secondary)) 37%,
60
+ var(--sg-skeleton-bg, var(--sg-color-bg-hover)) 63%
61
+ );
62
+ background-size: 400% 100%;
63
+ }
64
+
65
+ @keyframes sg-skeleton-pulse {
66
+ 0% {
67
+ background-position: 100% 50%;
68
+ }
69
+ 100% {
70
+ background-position: 0 50%;
71
+ }
72
+ }
@@ -1,51 +1,51 @@
1
- .sg-slider {
2
- /* Track children are positioned; intrinsic width collapses inside flex/grid.
3
- * Width follows the container; floor scales with the global font-size token. */
4
- --sg-slider-min-inline-size: calc(8 * var(--sg-font-size));
5
- box-sizing: border-box;
6
- width: 100%;
7
- min-inline-size: var(--sg-slider-min-inline-size);
8
- padding: var(--sg-padding-sm) 0;
9
- }
10
-
11
- .sg-slider-disabled {
12
- opacity: 0.4;
13
- pointer-events: none;
14
- }
15
-
16
- .sg-slider-track {
17
- position: relative;
18
- box-sizing: border-box;
19
- width: 100%;
20
- height: 4px;
21
- background: var(--sg-color-border);
22
- border-radius: 2px;
23
- cursor: pointer;
24
- }
25
-
26
- .sg-slider-fill {
27
- position: absolute;
28
- top: 0;
29
- left: 0;
30
- height: 100%;
31
- background: var(--sg-color-primary);
32
- border-radius: 2px;
33
- }
34
-
35
- .sg-slider-handle {
36
- position: absolute;
37
- top: 50%;
38
- width: 14px;
39
- height: 14px;
40
- margin-top: -7px;
41
- margin-left: -7px;
42
- background: var(--sg-color-white);
43
- border: 2px solid var(--sg-color-primary);
44
- border-radius: 50%;
45
- cursor: grab;
46
- transition: box-shadow var(--sg-transition-duration);
47
- }
48
-
49
- .sg-slider-handle:hover {
50
- box-shadow: 0 0 0 4px var(--sg-color-primary-bg);
51
- }
1
+ .sg-slider {
2
+ /* Track children are positioned; intrinsic width collapses inside flex/grid.
3
+ * Width follows the container; floor scales with the global font-size token. */
4
+ --sg-slider-min-inline-size: calc(8 * var(--sg-font-size));
5
+ box-sizing: border-box;
6
+ width: 100%;
7
+ min-inline-size: var(--sg-slider-min-inline-size);
8
+ padding: var(--sg-padding-sm) 0;
9
+ }
10
+
11
+ .sg-slider-disabled {
12
+ opacity: 0.4;
13
+ pointer-events: none;
14
+ }
15
+
16
+ .sg-slider-track {
17
+ position: relative;
18
+ box-sizing: border-box;
19
+ width: 100%;
20
+ height: 4px;
21
+ background: var(--sg-color-border);
22
+ border-radius: 2px;
23
+ cursor: pointer;
24
+ }
25
+
26
+ .sg-slider-fill {
27
+ position: absolute;
28
+ top: 0;
29
+ left: 0;
30
+ height: 100%;
31
+ background: var(--sg-color-primary);
32
+ border-radius: 2px;
33
+ }
34
+
35
+ .sg-slider-handle {
36
+ position: absolute;
37
+ top: 50%;
38
+ width: 14px;
39
+ height: 14px;
40
+ margin-top: -7px;
41
+ margin-left: -7px;
42
+ background: var(--sg-color-white);
43
+ border: 2px solid var(--sg-color-primary);
44
+ border-radius: 50%;
45
+ cursor: grab;
46
+ transition: box-shadow var(--sg-transition-duration);
47
+ }
48
+
49
+ .sg-slider-handle:hover {
50
+ box-shadow: 0 0 0 4px var(--sg-color-primary-bg);
51
+ }