@skygraph/styles 0.0.0-placeholder.0 → 0.1.0

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 (75) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +92 -6
  3. package/components/autocomplete.css +33 -0
  4. package/components/avatar.css +37 -0
  5. package/components/badge.css +102 -0
  6. package/components/breadcrumb.css +29 -0
  7. package/components/button.css +181 -0
  8. package/components/calendar.css +408 -0
  9. package/components/carousel.css +102 -0
  10. package/components/cascader.css +354 -0
  11. package/components/charts.css +408 -0
  12. package/components/checkbox.css +29 -0
  13. package/components/collapse.css +166 -0
  14. package/components/colorpicker.css +252 -0
  15. package/components/context-menu.css +95 -0
  16. package/components/dashboard.css +299 -0
  17. package/components/datagrid.css +86 -0
  18. package/components/datepicker.css +601 -0
  19. package/components/descriptions.css +82 -0
  20. package/components/diagram.css +422 -0
  21. package/components/drawer.css +103 -0
  22. package/components/dropdown.css +93 -0
  23. package/components/empty.css +25 -0
  24. package/components/event-timeline.css +100 -0
  25. package/components/field.css +35 -0
  26. package/components/form.css +115 -0
  27. package/components/gantt.css +161 -0
  28. package/components/inline-edit.css +113 -0
  29. package/components/input-group.css +79 -0
  30. package/components/input-number.css +76 -0
  31. package/components/input-password.css +104 -0
  32. package/components/input.css +110 -0
  33. package/components/list.css +357 -0
  34. package/components/mentions.css +54 -0
  35. package/components/menu.css +309 -0
  36. package/components/modal.css +77 -0
  37. package/components/notification.css +128 -0
  38. package/components/pagination.css +162 -0
  39. package/components/pin-input.css +71 -0
  40. package/components/popconfirm.css +95 -0
  41. package/components/progress.css +116 -0
  42. package/components/radio.css +38 -0
  43. package/components/rate.css +34 -0
  44. package/components/resource-calendar.css +219 -0
  45. package/components/result.css +45 -0
  46. package/components/schema-form-editor.css +425 -0
  47. package/components/search-input.css +112 -0
  48. package/components/segmented.css +76 -0
  49. package/components/select.css +172 -0
  50. package/components/skeleton.css +68 -0
  51. package/components/slider.css +51 -0
  52. package/components/spin.css +86 -0
  53. package/components/steps.css +185 -0
  54. package/components/switch.css +69 -0
  55. package/components/table.css +984 -0
  56. package/components/tabs.css +117 -0
  57. package/components/tag-input.css +94 -0
  58. package/components/tag.css +61 -0
  59. package/components/textarea.css +22 -0
  60. package/components/timeline.css +169 -0
  61. package/components/timepicker.css +213 -0
  62. package/components/tooltip.css +91 -0
  63. package/components/transfer.css +140 -0
  64. package/components/tree.css +574 -0
  65. package/components/treeselect.css +219 -0
  66. package/components/upload.css +124 -0
  67. package/index.css +69 -3
  68. package/index.d.ts +9 -0
  69. package/package.json +102 -18
  70. package/print.css +88 -0
  71. package/reset.css +17 -0
  72. package/themes/dark.css +17 -0
  73. package/themes/default.css +14 -0
  74. package/tokens.css +312 -0
  75. package/transitions.css +158 -0
@@ -0,0 +1,91 @@
1
+ .sg-tooltip-wrapper {
2
+ position: relative;
3
+ display: inline-block;
4
+ }
5
+
6
+ .sg-tooltip {
7
+ position: absolute;
8
+ z-index: var(--sg-z-tooltip);
9
+ pointer-events: none;
10
+ }
11
+
12
+ .sg-tooltip-content {
13
+ /* `inline-block` lets the box wrap and size itself around block-level
14
+ * children (the Rich-content demo embeds a `<div max-width:220px;
15
+ * white-space:normal>` — React renders the content node as a `<div>`
16
+ * which already enforces `display:block`; Vue uses `<span>` so we have
17
+ * to lift the box ourselves, otherwise it stays a 0-px nowrap line and
18
+ * the tooltip looks empty). */
19
+ display: inline-block;
20
+ padding: var(--sg-padding-xs) var(--sg-padding-sm);
21
+ background: var(--sg-color-tooltip-bg);
22
+ color: var(--sg-color-tooltip-text);
23
+ font-size: var(--sg-font-size-sm);
24
+ border-radius: var(--sg-border-radius-sm);
25
+ white-space: nowrap;
26
+ box-shadow: var(--sg-shadow);
27
+ }
28
+
29
+ /* dark override handled via --sg-color-tooltip-bg token */
30
+
31
+ .sg-tooltip-arrow {
32
+ position: absolute;
33
+ width: 8px;
34
+ height: 8px;
35
+ background: var(--sg-color-tooltip-bg);
36
+ transform: rotate(45deg);
37
+ }
38
+
39
+ /* dark override handled via --sg-color-tooltip-bg token */
40
+
41
+ .sg-tooltip-top {
42
+ bottom: 100%;
43
+ left: 50%;
44
+ transform: translateX(-50%);
45
+ margin-bottom: 8px;
46
+ }
47
+
48
+ .sg-tooltip-top .sg-tooltip-arrow {
49
+ bottom: -4px;
50
+ left: 50%;
51
+ margin-left: -4px;
52
+ }
53
+
54
+ .sg-tooltip-bottom {
55
+ top: 100%;
56
+ left: 50%;
57
+ transform: translateX(-50%);
58
+ margin-top: 8px;
59
+ }
60
+
61
+ .sg-tooltip-bottom .sg-tooltip-arrow {
62
+ top: -4px;
63
+ left: 50%;
64
+ margin-left: -4px;
65
+ }
66
+
67
+ .sg-tooltip-left {
68
+ right: 100%;
69
+ top: 50%;
70
+ transform: translateY(-50%);
71
+ margin-right: 8px;
72
+ }
73
+
74
+ .sg-tooltip-left .sg-tooltip-arrow {
75
+ right: -4px;
76
+ top: 50%;
77
+ margin-top: -4px;
78
+ }
79
+
80
+ .sg-tooltip-right {
81
+ left: 100%;
82
+ top: 50%;
83
+ transform: translateY(-50%);
84
+ margin-left: 8px;
85
+ }
86
+
87
+ .sg-tooltip-right .sg-tooltip-arrow {
88
+ left: -4px;
89
+ top: 50%;
90
+ margin-top: -4px;
91
+ }
@@ -0,0 +1,140 @@
1
+ /* ---- Transfer ---- */
2
+ .sg-transfer {
3
+ display: flex;
4
+ align-items: stretch;
5
+ gap: var(--sg-padding-md);
6
+ font-size: var(--sg-font-size);
7
+ color: var(--sg-color-text);
8
+ }
9
+
10
+ .sg-transfer-disabled {
11
+ opacity: 0.5;
12
+ pointer-events: none;
13
+ }
14
+
15
+ /* ---- Single list panel ---- */
16
+ .sg-transfer-list {
17
+ display: flex;
18
+ flex-direction: column;
19
+ width: 240px;
20
+ border: 1px solid var(--sg-color-border);
21
+ border-radius: var(--sg-border-radius);
22
+ background: var(--sg-color-bg-container);
23
+ overflow: hidden;
24
+ }
25
+
26
+ .sg-transfer-list-disabled {
27
+ opacity: 0.5;
28
+ pointer-events: none;
29
+ }
30
+
31
+ /* ---- Header ---- */
32
+ .sg-transfer-list-header {
33
+ display: flex;
34
+ align-items: center;
35
+ gap: var(--sg-padding-sm);
36
+ padding: var(--sg-padding-sm) var(--sg-padding-md);
37
+ background: var(--sg-color-bg-secondary);
38
+ border-bottom: 1px solid var(--sg-color-border-secondary);
39
+ }
40
+
41
+ .sg-transfer-list-header-count {
42
+ font-size: var(--sg-font-size-sm);
43
+ color: var(--sg-color-text-secondary);
44
+ }
45
+
46
+ .sg-transfer-list-header-title {
47
+ margin-left: auto;
48
+ font-weight: 600;
49
+ font-size: var(--sg-font-size-sm);
50
+ color: var(--sg-color-text);
51
+ }
52
+
53
+ /* ---- Search ---- */
54
+ .sg-transfer-list-search {
55
+ padding: var(--sg-padding-sm) var(--sg-padding-md);
56
+ border-bottom: 1px solid var(--sg-color-border-secondary);
57
+ }
58
+
59
+ /* ---- Body ---- */
60
+ .sg-transfer-list-body {
61
+ flex: 1;
62
+ min-height: 0;
63
+ overflow-y: auto;
64
+ }
65
+
66
+ .sg-transfer-list-content {
67
+ list-style: none;
68
+ margin: 0;
69
+ padding: 0;
70
+ }
71
+
72
+ /* ---- Item ---- */
73
+ .sg-transfer-list-item {
74
+ display: flex;
75
+ align-items: center;
76
+ padding: var(--sg-padding-xs) var(--sg-padding-md);
77
+ transition: background var(--sg-transition-duration);
78
+ cursor: pointer;
79
+ }
80
+
81
+ .sg-transfer-list-item:hover {
82
+ background: var(--sg-color-bg-hover);
83
+ }
84
+
85
+ .sg-transfer-list-item-selected {
86
+ background: var(--sg-color-primary-bg);
87
+ }
88
+
89
+ .sg-transfer-list-item-selected:hover {
90
+ background: var(--sg-color-primary-bg);
91
+ }
92
+
93
+ .sg-transfer-list-item-disabled {
94
+ color: var(--sg-color-text-disabled);
95
+ cursor: not-allowed;
96
+ }
97
+
98
+ .sg-transfer-list-item-disabled:hover {
99
+ background: transparent;
100
+ }
101
+
102
+ .sg-transfer-list-item-text {
103
+ flex: 1;
104
+ min-width: 0;
105
+ overflow: hidden;
106
+ text-overflow: ellipsis;
107
+ white-space: nowrap;
108
+ }
109
+
110
+ /* ---- Empty ---- */
111
+ .sg-transfer-list-empty {
112
+ display: flex;
113
+ align-items: center;
114
+ justify-content: center;
115
+ padding: var(--sg-padding-xl);
116
+ color: var(--sg-color-text-tertiary);
117
+ font-size: var(--sg-font-size-sm);
118
+ }
119
+
120
+ /* ---- Pagination ---- */
121
+ .sg-transfer-list-pagination {
122
+ display: flex;
123
+ justify-content: center;
124
+ padding: var(--sg-padding-sm);
125
+ border-top: 1px solid var(--sg-color-border-secondary);
126
+ }
127
+
128
+ /* ---- Operations (move buttons) ---- */
129
+ .sg-transfer-operations {
130
+ display: flex;
131
+ flex-direction: column;
132
+ align-items: center;
133
+ justify-content: center;
134
+ gap: var(--sg-padding-sm);
135
+ align-self: center;
136
+ }
137
+
138
+ .sg-transfer-operations .sg-button {
139
+ min-width: var(--sg-height-md);
140
+ }