@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,95 +1,95 @@
1
- .sg-popconfirm-wrapper {
2
- position: relative;
3
- display: inline-block;
4
- }
5
-
6
- .sg-popconfirm {
7
- position: absolute;
8
- z-index: 1030;
9
- min-width: 200px;
10
- }
11
-
12
- .sg-popconfirm-top {
13
- bottom: calc(100% + 8px);
14
- left: 50%;
15
- transform: translateX(-50%);
16
- }
17
-
18
- .sg-popconfirm-bottom {
19
- top: calc(100% + 8px);
20
- left: 50%;
21
- transform: translateX(-50%);
22
- }
23
-
24
- .sg-popconfirm-left {
25
- right: calc(100% + 8px);
26
- top: 50%;
27
- transform: translateY(-50%);
28
- }
29
-
30
- .sg-popconfirm-right {
31
- left: calc(100% + 8px);
32
- top: 50%;
33
- transform: translateY(-50%);
34
- }
35
-
36
- .sg-popconfirm-arrow {
37
- position: absolute;
38
- width: 8px;
39
- height: 8px;
40
- background: var(--sg-color-bg-elevated);
41
- border: 1px solid var(--sg-color-border-secondary);
42
- transform: rotate(45deg);
43
- }
44
-
45
- .sg-popconfirm-top .sg-popconfirm-arrow {
46
- bottom: -5px;
47
- left: 50%;
48
- margin-left: -4px;
49
- border-top: none;
50
- border-left: none;
51
- }
52
-
53
- .sg-popconfirm-bottom .sg-popconfirm-arrow {
54
- top: -5px;
55
- left: 50%;
56
- margin-left: -4px;
57
- border-bottom: none;
58
- border-right: none;
59
- }
60
-
61
- .sg-popconfirm-inner {
62
- background: var(--sg-color-bg-elevated);
63
- border-radius: var(--sg-border-radius-lg);
64
- box-shadow: var(--sg-shadow-lg);
65
- border: 1px solid var(--sg-color-border-secondary);
66
- padding: var(--sg-padding-md);
67
- }
68
-
69
- .sg-popconfirm-title {
70
- display: flex;
71
- align-items: center;
72
- gap: var(--sg-padding-sm);
73
- font-size: var(--sg-font-size);
74
- font-weight: 500;
75
- color: var(--sg-color-text);
76
- }
77
-
78
- .sg-popconfirm-icon {
79
- color: var(--sg-color-warning);
80
- font-size: var(--sg-font-size-lg);
81
- }
82
-
83
- .sg-popconfirm-description {
84
- font-size: var(--sg-font-size-sm);
85
- color: var(--sg-color-text-secondary);
86
- margin-top: var(--sg-margin-xs);
87
- margin-left: 24px;
88
- }
89
-
90
- .sg-popconfirm-buttons {
91
- display: flex;
92
- justify-content: flex-end;
93
- gap: var(--sg-padding-sm);
94
- margin-top: var(--sg-padding-sm);
95
- }
1
+ .sg-popconfirm-wrapper {
2
+ position: relative;
3
+ display: inline-block;
4
+ }
5
+
6
+ .sg-popconfirm {
7
+ position: absolute;
8
+ z-index: 1030;
9
+ min-width: 200px;
10
+ }
11
+
12
+ .sg-popconfirm-top {
13
+ bottom: calc(100% + 8px);
14
+ left: 50%;
15
+ transform: translateX(-50%);
16
+ }
17
+
18
+ .sg-popconfirm-bottom {
19
+ top: calc(100% + 8px);
20
+ left: 50%;
21
+ transform: translateX(-50%);
22
+ }
23
+
24
+ .sg-popconfirm-left {
25
+ right: calc(100% + 8px);
26
+ top: 50%;
27
+ transform: translateY(-50%);
28
+ }
29
+
30
+ .sg-popconfirm-right {
31
+ left: calc(100% + 8px);
32
+ top: 50%;
33
+ transform: translateY(-50%);
34
+ }
35
+
36
+ .sg-popconfirm-arrow {
37
+ position: absolute;
38
+ width: 8px;
39
+ height: 8px;
40
+ background: var(--sg-color-bg-elevated);
41
+ border: 1px solid var(--sg-color-border-secondary);
42
+ transform: rotate(45deg);
43
+ }
44
+
45
+ .sg-popconfirm-top .sg-popconfirm-arrow {
46
+ bottom: -5px;
47
+ left: 50%;
48
+ margin-left: -4px;
49
+ border-top: none;
50
+ border-left: none;
51
+ }
52
+
53
+ .sg-popconfirm-bottom .sg-popconfirm-arrow {
54
+ top: -5px;
55
+ left: 50%;
56
+ margin-left: -4px;
57
+ border-bottom: none;
58
+ border-right: none;
59
+ }
60
+
61
+ .sg-popconfirm-inner {
62
+ background: var(--sg-color-bg-elevated);
63
+ border-radius: var(--sg-border-radius-lg);
64
+ box-shadow: var(--sg-shadow-lg);
65
+ border: 1px solid var(--sg-color-border-secondary);
66
+ padding: var(--sg-padding-md);
67
+ }
68
+
69
+ .sg-popconfirm-title {
70
+ display: flex;
71
+ align-items: center;
72
+ gap: var(--sg-padding-sm);
73
+ font-size: var(--sg-font-size);
74
+ font-weight: 500;
75
+ color: var(--sg-color-text);
76
+ }
77
+
78
+ .sg-popconfirm-icon {
79
+ color: var(--sg-color-warning);
80
+ font-size: var(--sg-font-size-lg);
81
+ }
82
+
83
+ .sg-popconfirm-description {
84
+ font-size: var(--sg-font-size-sm);
85
+ color: var(--sg-color-text-secondary);
86
+ margin-top: var(--sg-margin-xs);
87
+ margin-left: 24px;
88
+ }
89
+
90
+ .sg-popconfirm-buttons {
91
+ display: flex;
92
+ justify-content: flex-end;
93
+ gap: var(--sg-padding-sm);
94
+ margin-top: var(--sg-padding-sm);
95
+ }
@@ -1,116 +1,116 @@
1
- /* Line progress */
2
- .sg-progress-line {
3
- display: flex;
4
- align-items: center;
5
- gap: var(--sg-padding-sm);
6
- width: 100%;
7
- }
8
-
9
- .sg-progress-outer {
10
- flex: 1;
11
- min-width: 0;
12
- }
13
-
14
- .sg-progress-inner {
15
- background: var(--sg-color-bg-hover);
16
- border-radius: 100px;
17
- overflow: hidden;
18
- }
19
-
20
- .sg-progress-bg {
21
- height: 100%;
22
- border-radius: 100px;
23
- background: var(--sg-color-primary);
24
- /*
25
- * We deliberately avoid `transition: width` here. The previous transition
26
- * would interpolate from the layout-default `width: 0` to the inline
27
- * `width: X%`, which made the bar look empty until the animation finished —
28
- * users perceived it as "no progress bar, just numbers" on initial paint.
29
- * Width now snaps to its target value; live updates (e.g. demo dynamic %)
30
- * still re-paint in the same frame.
31
- */
32
- }
33
-
34
- .sg-progress-text {
35
- flex-shrink: 0;
36
- font-size: var(--sg-font-size-sm);
37
- color: var(--sg-color-text-secondary);
38
- min-width: 36px;
39
- text-align: right;
40
- }
41
-
42
- /* Status colors */
43
- .sg-progress-success .sg-progress-bg {
44
- background: var(--sg-color-success);
45
- }
46
- .sg-progress-error .sg-progress-bg {
47
- background: var(--sg-color-error);
48
- }
49
-
50
- .sg-progress-success .sg-progress-text {
51
- color: var(--sg-color-success);
52
- }
53
- .sg-progress-error .sg-progress-text {
54
- color: var(--sg-color-error);
55
- }
56
-
57
- /* Active animation */
58
- .sg-progress-active .sg-progress-bg {
59
- position: relative;
60
- }
61
-
62
- .sg-progress-active .sg-progress-bg::after {
63
- content: '';
64
- position: absolute;
65
- inset: 0;
66
- border-radius: inherit;
67
- background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
68
- animation: sg-progress-active-anim 2s ease-in-out infinite;
69
- }
70
-
71
- @keyframes sg-progress-active-anim {
72
- 0% {
73
- transform: translateX(-100%);
74
- }
75
- 100% {
76
- transform: translateX(100%);
77
- }
78
- }
79
-
80
- /* Circle progress */
81
- .sg-progress-circle {
82
- position: relative;
83
- display: inline-flex;
84
- align-items: center;
85
- justify-content: center;
86
- }
87
-
88
- .sg-progress-circle-trail {
89
- stroke: var(--sg-color-bg-hover);
90
- }
91
-
92
- .sg-progress-circle-path {
93
- stroke: var(--sg-color-primary);
94
- transition: stroke-dashoffset var(--sg-transition-duration) var(--sg-transition-timing);
95
- }
96
-
97
- .sg-progress-success .sg-progress-circle-path {
98
- stroke: var(--sg-color-success);
99
- }
100
- .sg-progress-error .sg-progress-circle-path {
101
- stroke: var(--sg-color-error);
102
- }
103
-
104
- .sg-progress-circle-text {
105
- position: absolute;
106
- font-size: var(--sg-font-size-xl);
107
- font-weight: 500;
108
- color: var(--sg-color-text);
109
- }
110
-
111
- .sg-progress-success .sg-progress-circle-text {
112
- color: var(--sg-color-success);
113
- }
114
- .sg-progress-error .sg-progress-circle-text {
115
- color: var(--sg-color-error);
116
- }
1
+ /* Line progress */
2
+ .sg-progress-line {
3
+ display: flex;
4
+ align-items: center;
5
+ gap: var(--sg-padding-sm);
6
+ width: 100%;
7
+ }
8
+
9
+ .sg-progress-outer {
10
+ flex: 1;
11
+ min-width: 0;
12
+ }
13
+
14
+ .sg-progress-inner {
15
+ background: var(--sg-color-bg-hover);
16
+ border-radius: 100px;
17
+ overflow: hidden;
18
+ }
19
+
20
+ .sg-progress-bg {
21
+ height: 100%;
22
+ border-radius: 100px;
23
+ background: var(--sg-color-primary);
24
+ /*
25
+ * We deliberately avoid `transition: width` here. The previous transition
26
+ * would interpolate from the layout-default `width: 0` to the inline
27
+ * `width: X%`, which made the bar look empty until the animation finished —
28
+ * users perceived it as "no progress bar, just numbers" on initial paint.
29
+ * Width now snaps to its target value; live updates (e.g. demo dynamic %)
30
+ * still re-paint in the same frame.
31
+ */
32
+ }
33
+
34
+ .sg-progress-text {
35
+ flex-shrink: 0;
36
+ font-size: var(--sg-font-size-sm);
37
+ color: var(--sg-color-text-secondary);
38
+ min-width: 36px;
39
+ text-align: right;
40
+ }
41
+
42
+ /* Status colors */
43
+ .sg-progress-success .sg-progress-bg {
44
+ background: var(--sg-color-success);
45
+ }
46
+ .sg-progress-error .sg-progress-bg {
47
+ background: var(--sg-color-error);
48
+ }
49
+
50
+ .sg-progress-success .sg-progress-text {
51
+ color: var(--sg-color-success);
52
+ }
53
+ .sg-progress-error .sg-progress-text {
54
+ color: var(--sg-color-error);
55
+ }
56
+
57
+ /* Active animation */
58
+ .sg-progress-active .sg-progress-bg {
59
+ position: relative;
60
+ }
61
+
62
+ .sg-progress-active .sg-progress-bg::after {
63
+ content: '';
64
+ position: absolute;
65
+ inset: 0;
66
+ border-radius: inherit;
67
+ background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
68
+ animation: sg-progress-active-anim 2s ease-in-out infinite;
69
+ }
70
+
71
+ @keyframes sg-progress-active-anim {
72
+ 0% {
73
+ transform: translateX(-100%);
74
+ }
75
+ 100% {
76
+ transform: translateX(100%);
77
+ }
78
+ }
79
+
80
+ /* Circle progress */
81
+ .sg-progress-circle {
82
+ position: relative;
83
+ display: inline-flex;
84
+ align-items: center;
85
+ justify-content: center;
86
+ }
87
+
88
+ .sg-progress-circle-trail {
89
+ stroke: var(--sg-color-bg-hover);
90
+ }
91
+
92
+ .sg-progress-circle-path {
93
+ stroke: var(--sg-color-primary);
94
+ transition: stroke-dashoffset var(--sg-transition-duration) var(--sg-transition-timing);
95
+ }
96
+
97
+ .sg-progress-success .sg-progress-circle-path {
98
+ stroke: var(--sg-color-success);
99
+ }
100
+ .sg-progress-error .sg-progress-circle-path {
101
+ stroke: var(--sg-color-error);
102
+ }
103
+
104
+ .sg-progress-circle-text {
105
+ position: absolute;
106
+ font-size: var(--sg-font-size-xl);
107
+ font-weight: 500;
108
+ color: var(--sg-color-text);
109
+ }
110
+
111
+ .sg-progress-success .sg-progress-circle-text {
112
+ color: var(--sg-color-success);
113
+ }
114
+ .sg-progress-error .sg-progress-circle-text {
115
+ color: var(--sg-color-error);
116
+ }
@@ -1,95 +1,95 @@
1
- /* Radio — custom painted dot on top of a visually-hidden native input.
2
- *
3
- * Like Checkbox, the native `<input type="radio">` stays in the DOM for
4
- * keyboard / form / a11y but is visually hidden. `.sg-radio-box` paints
5
- * the circle so demos can rebrand through `--sg-radio-*` tokens without
6
- * fighting `accent-color` limitations across browsers. */
7
-
8
- .sg-radio-group {
9
- display: flex;
10
- gap: var(--sg-padding-md);
11
- }
12
-
13
- .sg-radio-group-vertical {
14
- flex-direction: column;
15
- }
16
-
17
- .sg-radio {
18
- --sg-radio-size: 16px;
19
- --sg-radio-border: var(--sg-color-border);
20
- --sg-radio-border-hover: var(--sg-color-primary);
21
- --sg-radio-bg: var(--sg-color-bg);
22
- --sg-radio-bg-checked: var(--sg-color-primary);
23
- --sg-radio-dot-color: var(--sg-color-white);
24
-
25
- position: relative;
26
- display: inline-flex;
27
- align-items: center;
28
- gap: var(--sg-padding-xs);
29
- cursor: pointer;
30
- font-size: var(--sg-font-size);
31
- color: var(--sg-color-text);
32
- line-height: var(--sg-line-height);
33
- }
34
-
35
- .sg-radio-disabled {
36
- color: var(--sg-color-text-disabled);
37
- cursor: not-allowed;
38
- }
39
-
40
- .sg-radio-input {
41
- position: absolute;
42
- width: var(--sg-radio-size);
43
- height: var(--sg-radio-size);
44
- margin: 0;
45
- opacity: 0;
46
- pointer-events: none;
47
- }
48
-
49
- .sg-radio-box {
50
- position: relative;
51
- flex-shrink: 0;
52
- display: inline-block;
53
- width: var(--sg-radio-size);
54
- height: var(--sg-radio-size);
55
- border: 1px solid var(--sg-radio-border);
56
- border-radius: 50%;
57
- background: var(--sg-radio-bg);
58
- transition:
59
- background var(--sg-transition-duration) var(--sg-transition-timing),
60
- border-color var(--sg-transition-duration) var(--sg-transition-timing);
61
- }
62
-
63
- .sg-radio:hover .sg-radio-box {
64
- border-color: var(--sg-radio-border-hover);
65
- }
66
-
67
- .sg-radio-input:focus-visible ~ .sg-radio-box {
68
- outline: 2px solid var(--sg-color-primary);
69
- outline-offset: 2px;
70
- }
71
-
72
- .sg-radio-input:checked ~ .sg-radio-box {
73
- background: var(--sg-radio-bg-checked);
74
- border-color: var(--sg-radio-bg-checked);
75
- }
76
-
77
- .sg-radio-input:checked ~ .sg-radio-box::after {
78
- content: '';
79
- position: absolute;
80
- top: 50%;
81
- left: 50%;
82
- width: 6px;
83
- height: 6px;
84
- border-radius: 50%;
85
- background: var(--sg-radio-dot-color);
86
- transform: translate(-50%, -50%);
87
- }
88
-
89
- .sg-radio-label {
90
- user-select: none;
91
- }
92
-
93
- .sg-radio-group-loading {
94
- --sg-spin-color: var(--sg-color-text-tertiary);
95
- }
1
+ /* Radio — custom painted dot on top of a visually-hidden native input.
2
+ *
3
+ * Like Checkbox, the native `<input type="radio">` stays in the DOM for
4
+ * keyboard / form / a11y but is visually hidden. `.sg-radio-box` paints
5
+ * the circle so demos can rebrand through `--sg-radio-*` tokens without
6
+ * fighting `accent-color` limitations across browsers. */
7
+
8
+ .sg-radio-group {
9
+ display: flex;
10
+ gap: var(--sg-padding-md);
11
+ }
12
+
13
+ .sg-radio-group-vertical {
14
+ flex-direction: column;
15
+ }
16
+
17
+ .sg-radio {
18
+ --sg-radio-size: 16px;
19
+ --sg-radio-border: var(--sg-color-border);
20
+ --sg-radio-border-hover: var(--sg-color-primary);
21
+ --sg-radio-bg: var(--sg-color-bg);
22
+ --sg-radio-bg-checked: var(--sg-color-primary);
23
+ --sg-radio-dot-color: var(--sg-color-white);
24
+
25
+ position: relative;
26
+ display: inline-flex;
27
+ align-items: center;
28
+ gap: var(--sg-padding-xs);
29
+ cursor: pointer;
30
+ font-size: var(--sg-font-size);
31
+ color: var(--sg-color-text);
32
+ line-height: var(--sg-line-height);
33
+ }
34
+
35
+ .sg-radio-disabled {
36
+ color: var(--sg-color-text-disabled);
37
+ cursor: not-allowed;
38
+ }
39
+
40
+ .sg-radio-input {
41
+ position: absolute;
42
+ width: var(--sg-radio-size);
43
+ height: var(--sg-radio-size);
44
+ margin: 0;
45
+ opacity: 0;
46
+ pointer-events: none;
47
+ }
48
+
49
+ .sg-radio-box {
50
+ position: relative;
51
+ flex-shrink: 0;
52
+ display: inline-block;
53
+ width: var(--sg-radio-size);
54
+ height: var(--sg-radio-size);
55
+ border: 1px solid var(--sg-radio-border);
56
+ border-radius: 50%;
57
+ background: var(--sg-radio-bg);
58
+ transition:
59
+ background var(--sg-transition-duration) var(--sg-transition-timing),
60
+ border-color var(--sg-transition-duration) var(--sg-transition-timing);
61
+ }
62
+
63
+ .sg-radio:hover .sg-radio-box {
64
+ border-color: var(--sg-radio-border-hover);
65
+ }
66
+
67
+ .sg-radio-input:focus-visible ~ .sg-radio-box {
68
+ outline: 2px solid var(--sg-color-primary);
69
+ outline-offset: 2px;
70
+ }
71
+
72
+ .sg-radio-input:checked ~ .sg-radio-box {
73
+ background: var(--sg-radio-bg-checked);
74
+ border-color: var(--sg-radio-bg-checked);
75
+ }
76
+
77
+ .sg-radio-input:checked ~ .sg-radio-box::after {
78
+ content: '';
79
+ position: absolute;
80
+ top: 50%;
81
+ left: 50%;
82
+ width: 6px;
83
+ height: 6px;
84
+ border-radius: 50%;
85
+ background: var(--sg-radio-dot-color);
86
+ transform: translate(-50%, -50%);
87
+ }
88
+
89
+ .sg-radio-label {
90
+ user-select: none;
91
+ }
92
+
93
+ .sg-radio-group-loading {
94
+ --sg-spin-color: var(--sg-color-text-tertiary);
95
+ }