@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,102 +1,102 @@
1
- /* === Spin circle — the core element === */
2
- .sg-spin {
3
- --sg-spin-color: var(--sg-color-primary);
4
- --sg-spin-overlay-bg: rgba(255, 255, 255, 0.65);
5
- display: inline-block;
6
- box-sizing: border-box;
7
- flex: 0 0 auto;
8
- border: 3px solid var(--sg-spin-color);
9
- border-top-color: transparent;
10
- border-radius: 50%;
11
- animation: sg-spin-rotate 0.8s linear infinite;
12
- vertical-align: middle;
13
- }
14
-
15
- /* Size variants */
16
- .sg-spin-small {
17
- width: 12px;
18
- height: 12px;
19
- border-width: 1.5px;
20
- }
21
- .sg-spin-default {
22
- width: 24px;
23
- height: 24px;
24
- border-width: 3px;
25
- }
26
- .sg-spin-large {
27
- width: 36px;
28
- height: 36px;
29
- border-width: 4px;
30
- }
31
-
32
- /* === Standalone (no children) === */
33
- .sg-spin-standalone {
34
- display: inline-flex;
35
- flex-direction: column;
36
- align-items: center;
37
- gap: var(--sg-margin-sm);
38
- }
39
-
40
- /* === Container (wrapping children) === */
41
- .sg-spin-container {
42
- position: relative;
43
- }
44
-
45
- .sg-spin-overlay {
46
- --sg-spin-overlay-bg: rgba(255, 255, 255, 0.65);
47
- position: absolute;
48
- top: 0;
49
- left: 0;
50
- width: 100%;
51
- height: 100%;
52
- display: flex;
53
- flex-direction: column;
54
- align-items: center;
55
- justify-content: center;
56
- gap: var(--sg-margin-sm);
57
- z-index: var(--sg-z-loading);
58
- background: var(--sg-spin-overlay-bg);
59
- border-radius: var(--sg-border-radius);
60
- }
61
-
62
- [data-sg-theme='dark'] .sg-spin-overlay,
63
- [data-sg-theme='dark'] .sg-spin-fullscreen {
64
- --sg-spin-overlay-bg: rgba(20, 20, 20, 0.65);
65
- }
66
-
67
- .sg-spin-blur {
68
- pointer-events: none;
69
- user-select: none;
70
- opacity: 0.4;
71
- }
72
-
73
- /* === Fullscreen === */
74
- .sg-spin-fullscreen {
75
- --sg-spin-overlay-bg: rgba(255, 255, 255, 0.65);
76
- position: fixed;
77
- inset: 0;
78
- z-index: var(--sg-z-modal);
79
- display: flex;
80
- align-items: center;
81
- justify-content: center;
82
- background: var(--sg-spin-overlay-bg);
83
- }
84
-
85
- .sg-spin-fullscreen-inner {
86
- display: flex;
87
- flex-direction: column;
88
- align-items: center;
89
- gap: var(--sg-margin-sm);
90
- }
91
-
92
- /* === Tip text === */
93
- .sg-spin-tip {
94
- color: var(--sg-color-primary);
95
- font-size: var(--sg-font-size-sm);
96
- }
97
-
98
- @keyframes sg-spin-rotate {
99
- to {
100
- transform: rotate(360deg);
101
- }
102
- }
1
+ /* === Spin circle — the core element === */
2
+ .sg-spin {
3
+ --sg-spin-color: var(--sg-color-primary);
4
+ --sg-spin-overlay-bg: rgba(255, 255, 255, 0.65);
5
+ display: inline-block;
6
+ box-sizing: border-box;
7
+ flex: 0 0 auto;
8
+ border: 3px solid var(--sg-spin-color);
9
+ border-top-color: transparent;
10
+ border-radius: 50%;
11
+ animation: sg-spin-rotate 0.8s linear infinite;
12
+ vertical-align: middle;
13
+ }
14
+
15
+ /* Size variants */
16
+ .sg-spin-small {
17
+ width: 12px;
18
+ height: 12px;
19
+ border-width: 1.5px;
20
+ }
21
+ .sg-spin-default {
22
+ width: 24px;
23
+ height: 24px;
24
+ border-width: 3px;
25
+ }
26
+ .sg-spin-large {
27
+ width: 36px;
28
+ height: 36px;
29
+ border-width: 4px;
30
+ }
31
+
32
+ /* === Standalone (no children) === */
33
+ .sg-spin-standalone {
34
+ display: inline-flex;
35
+ flex-direction: column;
36
+ align-items: center;
37
+ gap: var(--sg-margin-sm);
38
+ }
39
+
40
+ /* === Container (wrapping children) === */
41
+ .sg-spin-container {
42
+ position: relative;
43
+ }
44
+
45
+ .sg-spin-overlay {
46
+ --sg-spin-overlay-bg: rgba(255, 255, 255, 0.65);
47
+ position: absolute;
48
+ top: 0;
49
+ left: 0;
50
+ width: 100%;
51
+ height: 100%;
52
+ display: flex;
53
+ flex-direction: column;
54
+ align-items: center;
55
+ justify-content: center;
56
+ gap: var(--sg-margin-sm);
57
+ z-index: var(--sg-z-loading);
58
+ background: var(--sg-spin-overlay-bg);
59
+ border-radius: var(--sg-border-radius);
60
+ }
61
+
62
+ [data-sg-theme='dark'] .sg-spin-overlay,
63
+ [data-sg-theme='dark'] .sg-spin-fullscreen {
64
+ --sg-spin-overlay-bg: rgba(20, 20, 20, 0.65);
65
+ }
66
+
67
+ .sg-spin-blur {
68
+ pointer-events: none;
69
+ user-select: none;
70
+ opacity: 0.4;
71
+ }
72
+
73
+ /* === Fullscreen === */
74
+ .sg-spin-fullscreen {
75
+ --sg-spin-overlay-bg: rgba(255, 255, 255, 0.65);
76
+ position: fixed;
77
+ inset: 0;
78
+ z-index: var(--sg-z-modal);
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ background: var(--sg-spin-overlay-bg);
83
+ }
84
+
85
+ .sg-spin-fullscreen-inner {
86
+ display: flex;
87
+ flex-direction: column;
88
+ align-items: center;
89
+ gap: var(--sg-margin-sm);
90
+ }
91
+
92
+ /* === Tip text === */
93
+ .sg-spin-tip {
94
+ color: var(--sg-color-primary);
95
+ font-size: var(--sg-font-size-sm);
96
+ }
97
+
98
+ @keyframes sg-spin-rotate {
99
+ to {
100
+ transform: rotate(360deg);
101
+ }
102
+ }
@@ -1,194 +1,194 @@
1
- .sg-steps {
2
- display: flex;
3
- font-size: var(--sg-font-size);
4
- color: var(--sg-color-text);
5
- }
6
-
7
- .sg-steps-horizontal {
8
- flex-direction: row;
9
- }
10
-
11
- .sg-steps-vertical {
12
- flex-direction: column;
13
- }
14
-
15
- /* Item */
16
- .sg-steps-item {
17
- position: relative;
18
- flex: 1;
19
- }
20
-
21
- .sg-steps-vertical .sg-steps-item {
22
- flex: none;
23
- }
24
-
25
- .sg-steps-item-clickable {
26
- cursor: pointer;
27
- }
28
-
29
- .sg-steps-item-container {
30
- display: flex;
31
- align-items: flex-start;
32
- gap: var(--sg-padding-sm);
33
- }
34
-
35
- /* Icon */
36
- .sg-steps-item-icon {
37
- flex-shrink: 0;
38
- width: 32px;
39
- height: 32px;
40
- display: flex;
41
- align-items: center;
42
- justify-content: center;
43
- border-radius: 50%;
44
- border: 1px solid var(--sg-color-border);
45
- font-size: var(--sg-font-size);
46
- font-weight: 500;
47
- transition: all var(--sg-transition-duration) var(--sg-transition-timing);
48
- }
49
-
50
- .sg-steps-small .sg-steps-item-icon {
51
- width: 24px;
52
- height: 24px;
53
- font-size: var(--sg-font-size-sm);
54
- }
55
-
56
- .sg-steps-icon {
57
- display: inline-flex;
58
- align-items: center;
59
- justify-content: center;
60
- }
61
-
62
- .sg-steps-icon-custom {
63
- display: inline-flex;
64
- align-items: center;
65
- justify-content: center;
66
- font-size: var(--sg-font-size-lg);
67
- }
68
-
69
- /* Status colors */
70
- .sg-steps-item-process .sg-steps-item-icon {
71
- background: var(--sg-color-primary);
72
- border-color: var(--sg-color-primary);
73
- color: var(--sg-color-white, #fff);
74
- }
75
-
76
- .sg-steps-item-finish .sg-steps-item-icon {
77
- border-color: var(--sg-color-primary);
78
- color: var(--sg-color-primary);
79
- }
80
-
81
- .sg-steps-item-wait .sg-steps-item-icon {
82
- border-color: var(--sg-color-border);
83
- color: var(--sg-color-text-disabled);
84
- }
85
-
86
- .sg-steps-item-error .sg-steps-item-icon {
87
- border-color: var(--sg-color-error);
88
- color: var(--sg-color-error);
89
- }
90
-
91
- /* Content */
92
- .sg-steps-item-content {
93
- min-width: 0;
94
- }
95
-
96
- /* Horizontal: let the content row span the full width of its (flex:1) item
97
- * so the connector tail inside the title — which is `flex:1` — can stretch
98
- * across the gap to the next step. Without this the content shrinks to its
99
- * text width, the tail collapses to its `min-width`, and the steps read as
100
- * disconnected blobs separated by huge empty gaps. */
101
- .sg-steps-horizontal .sg-steps-item-content {
102
- flex: 1;
103
- }
104
-
105
- .sg-steps-item-title {
106
- display: flex;
107
- align-items: center;
108
- font-size: var(--sg-font-size);
109
- font-weight: 500;
110
- line-height: 32px;
111
- color: var(--sg-color-text);
112
- white-space: nowrap;
113
- }
114
-
115
- .sg-steps-small .sg-steps-item-title {
116
- line-height: 24px;
117
- font-size: var(--sg-font-size-sm);
118
- }
119
-
120
- .sg-steps-item-wait .sg-steps-item-title {
121
- color: var(--sg-color-text-disabled);
122
- }
123
-
124
- .sg-steps-item-error .sg-steps-item-title {
125
- color: var(--sg-color-error);
126
- }
127
-
128
- .sg-steps-item-description {
129
- font-size: var(--sg-font-size-sm);
130
- color: var(--sg-color-text-tertiary);
131
- margin-top: var(--sg-margin-xs);
132
- }
133
-
134
- /* Horizontal tail (connector line) */
135
- .sg-steps-item-tail {
136
- flex: 1;
137
- display: inline-block;
138
- height: 1px;
139
- margin: 0 var(--sg-margin-sm);
140
- background: var(--sg-color-border-secondary);
141
- vertical-align: middle;
142
- min-width: 32px;
143
- }
144
-
145
- .sg-steps-item-finish .sg-steps-item-tail {
146
- background: var(--sg-color-primary);
147
- }
148
-
149
- /* Vertical tail */
150
- .sg-steps-item-tail-vertical {
151
- position: absolute;
152
- left: 15px;
153
- top: 38px;
154
- bottom: 0;
155
- width: 1px;
156
- background: var(--sg-color-border-secondary);
157
- min-height: 24px;
158
- }
159
-
160
- .sg-steps-small .sg-steps-item-tail-vertical {
161
- left: 11px;
162
- top: 30px;
163
- }
164
-
165
- .sg-steps-item-finish .sg-steps-item-tail-vertical {
166
- background: var(--sg-color-primary);
167
- }
168
-
169
- .sg-steps-vertical .sg-steps-item {
170
- padding-bottom: var(--sg-padding-lg);
171
- }
172
-
173
- /* Navigation type */
174
- .sg-steps-navigation {
175
- border-bottom: 1px solid var(--sg-color-border-secondary);
176
- }
177
-
178
- .sg-steps-navigation .sg-steps-item-icon {
179
- display: none;
180
- }
181
-
182
- .sg-steps-navigation .sg-steps-item {
183
- padding: var(--sg-padding-sm) var(--sg-padding-lg);
184
- border-bottom: 2px solid transparent;
185
- margin-bottom: -1px;
186
- }
187
-
188
- .sg-steps-navigation .sg-steps-item-process {
189
- border-bottom-color: var(--sg-color-primary);
190
- }
191
-
192
- .sg-steps-navigation .sg-steps-item-tail {
193
- display: none;
194
- }
1
+ .sg-steps {
2
+ display: flex;
3
+ font-size: var(--sg-font-size);
4
+ color: var(--sg-color-text);
5
+ }
6
+
7
+ .sg-steps-horizontal {
8
+ flex-direction: row;
9
+ }
10
+
11
+ .sg-steps-vertical {
12
+ flex-direction: column;
13
+ }
14
+
15
+ /* Item */
16
+ .sg-steps-item {
17
+ position: relative;
18
+ flex: 1;
19
+ }
20
+
21
+ .sg-steps-vertical .sg-steps-item {
22
+ flex: none;
23
+ }
24
+
25
+ .sg-steps-item-clickable {
26
+ cursor: pointer;
27
+ }
28
+
29
+ .sg-steps-item-container {
30
+ display: flex;
31
+ align-items: flex-start;
32
+ gap: var(--sg-padding-sm);
33
+ }
34
+
35
+ /* Icon */
36
+ .sg-steps-item-icon {
37
+ flex-shrink: 0;
38
+ width: 32px;
39
+ height: 32px;
40
+ display: flex;
41
+ align-items: center;
42
+ justify-content: center;
43
+ border-radius: 50%;
44
+ border: 1px solid var(--sg-color-border);
45
+ font-size: var(--sg-font-size);
46
+ font-weight: 500;
47
+ transition: all var(--sg-transition-duration) var(--sg-transition-timing);
48
+ }
49
+
50
+ .sg-steps-small .sg-steps-item-icon {
51
+ width: 24px;
52
+ height: 24px;
53
+ font-size: var(--sg-font-size-sm);
54
+ }
55
+
56
+ .sg-steps-icon {
57
+ display: inline-flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ }
61
+
62
+ .sg-steps-icon-custom {
63
+ display: inline-flex;
64
+ align-items: center;
65
+ justify-content: center;
66
+ font-size: var(--sg-font-size-lg);
67
+ }
68
+
69
+ /* Status colors */
70
+ .sg-steps-item-process .sg-steps-item-icon {
71
+ background: var(--sg-color-primary);
72
+ border-color: var(--sg-color-primary);
73
+ color: var(--sg-color-white, #fff);
74
+ }
75
+
76
+ .sg-steps-item-finish .sg-steps-item-icon {
77
+ border-color: var(--sg-color-primary);
78
+ color: var(--sg-color-primary);
79
+ }
80
+
81
+ .sg-steps-item-wait .sg-steps-item-icon {
82
+ border-color: var(--sg-color-border);
83
+ color: var(--sg-color-text-disabled);
84
+ }
85
+
86
+ .sg-steps-item-error .sg-steps-item-icon {
87
+ border-color: var(--sg-color-error);
88
+ color: var(--sg-color-error);
89
+ }
90
+
91
+ /* Content */
92
+ .sg-steps-item-content {
93
+ min-width: 0;
94
+ }
95
+
96
+ /* Horizontal: let the content row span the full width of its (flex:1) item
97
+ * so the connector tail inside the title — which is `flex:1` — can stretch
98
+ * across the gap to the next step. Without this the content shrinks to its
99
+ * text width, the tail collapses to its `min-width`, and the steps read as
100
+ * disconnected blobs separated by huge empty gaps. */
101
+ .sg-steps-horizontal .sg-steps-item-content {
102
+ flex: 1;
103
+ }
104
+
105
+ .sg-steps-item-title {
106
+ display: flex;
107
+ align-items: center;
108
+ font-size: var(--sg-font-size);
109
+ font-weight: 500;
110
+ line-height: 32px;
111
+ color: var(--sg-color-text);
112
+ white-space: nowrap;
113
+ }
114
+
115
+ .sg-steps-small .sg-steps-item-title {
116
+ line-height: 24px;
117
+ font-size: var(--sg-font-size-sm);
118
+ }
119
+
120
+ .sg-steps-item-wait .sg-steps-item-title {
121
+ color: var(--sg-color-text-disabled);
122
+ }
123
+
124
+ .sg-steps-item-error .sg-steps-item-title {
125
+ color: var(--sg-color-error);
126
+ }
127
+
128
+ .sg-steps-item-description {
129
+ font-size: var(--sg-font-size-sm);
130
+ color: var(--sg-color-text-tertiary);
131
+ margin-top: var(--sg-margin-xs);
132
+ }
133
+
134
+ /* Horizontal tail (connector line) */
135
+ .sg-steps-item-tail {
136
+ flex: 1;
137
+ display: inline-block;
138
+ height: 1px;
139
+ margin: 0 var(--sg-margin-sm);
140
+ background: var(--sg-color-border-secondary);
141
+ vertical-align: middle;
142
+ min-width: 32px;
143
+ }
144
+
145
+ .sg-steps-item-finish .sg-steps-item-tail {
146
+ background: var(--sg-color-primary);
147
+ }
148
+
149
+ /* Vertical tail */
150
+ .sg-steps-item-tail-vertical {
151
+ position: absolute;
152
+ left: 15px;
153
+ top: 38px;
154
+ bottom: 0;
155
+ width: 1px;
156
+ background: var(--sg-color-border-secondary);
157
+ min-height: 24px;
158
+ }
159
+
160
+ .sg-steps-small .sg-steps-item-tail-vertical {
161
+ left: 11px;
162
+ top: 30px;
163
+ }
164
+
165
+ .sg-steps-item-finish .sg-steps-item-tail-vertical {
166
+ background: var(--sg-color-primary);
167
+ }
168
+
169
+ .sg-steps-vertical .sg-steps-item {
170
+ padding-bottom: var(--sg-padding-lg);
171
+ }
172
+
173
+ /* Navigation type */
174
+ .sg-steps-navigation {
175
+ border-bottom: 1px solid var(--sg-color-border-secondary);
176
+ }
177
+
178
+ .sg-steps-navigation .sg-steps-item-icon {
179
+ display: none;
180
+ }
181
+
182
+ .sg-steps-navigation .sg-steps-item {
183
+ padding: var(--sg-padding-sm) var(--sg-padding-lg);
184
+ border-bottom: 2px solid transparent;
185
+ margin-bottom: -1px;
186
+ }
187
+
188
+ .sg-steps-navigation .sg-steps-item-process {
189
+ border-bottom-color: var(--sg-color-primary);
190
+ }
191
+
192
+ .sg-steps-navigation .sg-steps-item-tail {
193
+ display: none;
194
+ }