@ship-ui/core 0.19.5 → 0.22.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 (153) hide show
  1. package/README.md +3 -0
  2. package/assets/mcp/components.json +66 -4243
  3. package/bin/mcp/index.js +6027 -273
  4. package/bin/ship-fg-scanner +0 -0
  5. package/bin/ship-fg.mjs +14 -12
  6. package/bin/src/subset.ts +3 -1
  7. package/fesm2022/ship-ui-core-sh-form-field-experimental.mjs +42 -0
  8. package/fesm2022/ship-ui-core-sh-form-field-experimental.mjs.map +1 -0
  9. package/fesm2022/ship-ui-core-ship-accordion.mjs +127 -0
  10. package/fesm2022/ship-ui-core-ship-accordion.mjs.map +1 -0
  11. package/fesm2022/ship-ui-core-ship-alert.mjs +305 -0
  12. package/fesm2022/ship-ui-core-ship-alert.mjs.map +1 -0
  13. package/fesm2022/ship-ui-core-ship-blueprint.mjs +1156 -0
  14. package/fesm2022/ship-ui-core-ship-blueprint.mjs.map +1 -0
  15. package/fesm2022/ship-ui-core-ship-button-group.mjs +41 -0
  16. package/fesm2022/ship-ui-core-ship-button-group.mjs.map +1 -0
  17. package/fesm2022/ship-ui-core-ship-button.mjs +38 -0
  18. package/fesm2022/ship-ui-core-ship-button.mjs.map +1 -0
  19. package/fesm2022/ship-ui-core-ship-card.mjs +35 -0
  20. package/fesm2022/ship-ui-core-ship-card.mjs.map +1 -0
  21. package/fesm2022/ship-ui-core-ship-checkbox.mjs +113 -0
  22. package/fesm2022/ship-ui-core-ship-checkbox.mjs.map +1 -0
  23. package/fesm2022/ship-ui-core-ship-chip.mjs +44 -0
  24. package/fesm2022/ship-ui-core-ship-chip.mjs.map +1 -0
  25. package/fesm2022/ship-ui-core-ship-color-picker.mjs +947 -0
  26. package/fesm2022/ship-ui-core-ship-color-picker.mjs.map +1 -0
  27. package/fesm2022/ship-ui-core-ship-datepicker.mjs +951 -0
  28. package/fesm2022/ship-ui-core-ship-datepicker.mjs.map +1 -0
  29. package/fesm2022/ship-ui-core-ship-dialog.mjs +263 -0
  30. package/fesm2022/ship-ui-core-ship-dialog.mjs.map +1 -0
  31. package/fesm2022/ship-ui-core-ship-divider.mjs +22 -0
  32. package/fesm2022/ship-ui-core-ship-divider.mjs.map +1 -0
  33. package/fesm2022/ship-ui-core-ship-event-card.mjs +50 -0
  34. package/fesm2022/ship-ui-core-ship-event-card.mjs.map +1 -0
  35. package/fesm2022/ship-ui-core-ship-file-upload.mjs +112 -0
  36. package/fesm2022/ship-ui-core-ship-file-upload.mjs.map +1 -0
  37. package/fesm2022/ship-ui-core-ship-form-field.mjs +310 -0
  38. package/fesm2022/ship-ui-core-ship-form-field.mjs.map +1 -0
  39. package/fesm2022/ship-ui-core-ship-icon.mjs +81 -0
  40. package/fesm2022/ship-ui-core-ship-icon.mjs.map +1 -0
  41. package/fesm2022/ship-ui-core-ship-list.mjs +22 -0
  42. package/fesm2022/ship-ui-core-ship-list.mjs.map +1 -0
  43. package/fesm2022/ship-ui-core-ship-menu.mjs +545 -0
  44. package/fesm2022/ship-ui-core-ship-menu.mjs.map +1 -0
  45. package/fesm2022/ship-ui-core-ship-popover.mjs +286 -0
  46. package/fesm2022/ship-ui-core-ship-popover.mjs.map +1 -0
  47. package/fesm2022/ship-ui-core-ship-progress-bar.mjs +37 -0
  48. package/fesm2022/ship-ui-core-ship-progress-bar.mjs.map +1 -0
  49. package/fesm2022/ship-ui-core-ship-radio.mjs +102 -0
  50. package/fesm2022/ship-ui-core-ship-radio.mjs.map +1 -0
  51. package/fesm2022/ship-ui-core-ship-range-slider.mjs +277 -0
  52. package/fesm2022/ship-ui-core-ship-range-slider.mjs.map +1 -0
  53. package/fesm2022/ship-ui-core-ship-select.mjs +971 -0
  54. package/fesm2022/ship-ui-core-ship-select.mjs.map +1 -0
  55. package/fesm2022/ship-ui-core-ship-sidenav.mjs +248 -0
  56. package/fesm2022/ship-ui-core-ship-sidenav.mjs.map +1 -0
  57. package/fesm2022/ship-ui-core-ship-sortable.mjs +485 -0
  58. package/fesm2022/ship-ui-core-ship-sortable.mjs.map +1 -0
  59. package/fesm2022/ship-ui-core-ship-spinner.mjs +28 -0
  60. package/fesm2022/ship-ui-core-ship-spinner.mjs.map +1 -0
  61. package/fesm2022/ship-ui-core-ship-stepper.mjs +76 -0
  62. package/fesm2022/ship-ui-core-ship-stepper.mjs.map +1 -0
  63. package/fesm2022/ship-ui-core-ship-table-filter-bar.mjs +28 -0
  64. package/fesm2022/ship-ui-core-ship-table-filter-bar.mjs.map +1 -0
  65. package/fesm2022/ship-ui-core-ship-table.mjs +442 -0
  66. package/fesm2022/ship-ui-core-ship-table.mjs.map +1 -0
  67. package/fesm2022/ship-ui-core-ship-tabs.mjs +38 -0
  68. package/fesm2022/ship-ui-core-ship-tabs.mjs.map +1 -0
  69. package/fesm2022/ship-ui-core-ship-theme-toggle.mjs +119 -0
  70. package/fesm2022/ship-ui-core-ship-theme-toggle.mjs.map +1 -0
  71. package/fesm2022/ship-ui-core-ship-toggle-card.mjs +75 -0
  72. package/fesm2022/ship-ui-core-ship-toggle-card.mjs.map +1 -0
  73. package/fesm2022/ship-ui-core-ship-toggle.mjs +105 -0
  74. package/fesm2022/ship-ui-core-ship-toggle.mjs.map +1 -0
  75. package/fesm2022/ship-ui-core-ship-virtual-scroll.mjs +186 -0
  76. package/fesm2022/ship-ui-core-ship-virtual-scroll.mjs.map +1 -0
  77. package/fesm2022/ship-ui-core.mjs +880 -8782
  78. package/fesm2022/ship-ui-core.mjs.map +1 -1
  79. package/package.json +147 -3
  80. package/styles/core.scss +43 -0
  81. package/styles/helpers.scss +2 -0
  82. package/styles/index.scss +12 -123
  83. package/types/ship-ui-core-sh-form-field-experimental.d.ts +11 -0
  84. package/types/ship-ui-core-ship-accordion.d.ts +19 -0
  85. package/types/ship-ui-core-ship-alert.d.ts +68 -0
  86. package/types/ship-ui-core-ship-blueprint.d.ts +112 -0
  87. package/types/ship-ui-core-ship-button-group.d.ts +15 -0
  88. package/types/ship-ui-core-ship-button.d.ts +13 -0
  89. package/types/ship-ui-core-ship-card.d.ts +11 -0
  90. package/types/ship-ui-core-ship-checkbox.d.ts +22 -0
  91. package/types/ship-ui-core-ship-chip.d.ts +15 -0
  92. package/types/ship-ui-core-ship-color-picker.d.ts +105 -0
  93. package/types/ship-ui-core-ship-datepicker.d.ts +96 -0
  94. package/types/ship-ui-core-ship-dialog.d.ts +76 -0
  95. package/types/ship-ui-core-ship-divider.d.ts +8 -0
  96. package/types/ship-ui-core-ship-event-card.d.ts +11 -0
  97. package/types/ship-ui-core-ship-file-upload.d.ts +20 -0
  98. package/types/ship-ui-core-ship-form-field.d.ts +32 -0
  99. package/types/ship-ui-core-ship-icon.d.ts +18 -0
  100. package/types/ship-ui-core-ship-list.d.ts +8 -0
  101. package/types/ship-ui-core-ship-menu.d.ts +49 -0
  102. package/types/ship-ui-core-ship-popover.d.ts +40 -0
  103. package/types/ship-ui-core-ship-progress-bar.d.ts +14 -0
  104. package/types/ship-ui-core-ship-radio.d.ts +22 -0
  105. package/types/ship-ui-core-ship-range-slider.d.ts +31 -0
  106. package/types/ship-ui-core-ship-select.d.ts +81 -0
  107. package/types/ship-ui-core-ship-sidenav.d.ts +36 -0
  108. package/types/ship-ui-core-ship-sortable.d.ts +72 -0
  109. package/types/ship-ui-core-ship-spinner.d.ts +10 -0
  110. package/types/ship-ui-core-ship-stepper.d.ts +13 -0
  111. package/types/ship-ui-core-ship-table-filter-bar.d.ts +8 -0
  112. package/types/ship-ui-core-ship-table.d.ts +69 -0
  113. package/types/ship-ui-core-ship-tabs.d.ts +14 -0
  114. package/types/ship-ui-core-ship-theme-toggle.d.ts +28 -0
  115. package/types/ship-ui-core-ship-toggle-card.d.ts +15 -0
  116. package/types/ship-ui-core-ship-toggle.d.ts +21 -0
  117. package/types/ship-ui-core-ship-virtual-scroll.d.ts +22 -0
  118. package/types/ship-ui-core.d.ts +88 -1070
  119. package/styles/components/ship-accordion.scss +0 -113
  120. package/styles/components/ship-alert-container.scss +0 -49
  121. package/styles/components/ship-alert.scss +0 -177
  122. package/styles/components/ship-blueprint.scss +0 -242
  123. package/styles/components/ship-button-group.scss +0 -165
  124. package/styles/components/ship-button.scss +0 -141
  125. package/styles/components/ship-card.scss +0 -57
  126. package/styles/components/ship-checkbox.scss +0 -116
  127. package/styles/components/ship-chip.scss +0 -104
  128. package/styles/components/ship-color-picker.scss +0 -150
  129. package/styles/components/ship-datepicker.scss +0 -317
  130. package/styles/components/ship-dialog.scss +0 -152
  131. package/styles/components/ship-divider.scss +0 -27
  132. package/styles/components/ship-event-card.scss +0 -51
  133. package/styles/components/ship-file-upload.scss +0 -47
  134. package/styles/components/ship-form-field.scss +0 -408
  135. package/styles/components/ship-icon.scss +0 -54
  136. package/styles/components/ship-list.scss +0 -165
  137. package/styles/components/ship-menu.scss +0 -237
  138. package/styles/components/ship-popover.scss +0 -205
  139. package/styles/components/ship-progress-bar.scss +0 -173
  140. package/styles/components/ship-radio.scss +0 -113
  141. package/styles/components/ship-range-slider.scss +0 -421
  142. package/styles/components/ship-select.scss +0 -153
  143. package/styles/components/ship-sidenav.scss +0 -195
  144. package/styles/components/ship-sortable.scss +0 -45
  145. package/styles/components/ship-spinner.scss +0 -53
  146. package/styles/components/ship-stepper.scss +0 -158
  147. package/styles/components/ship-table.scss +0 -443
  148. package/styles/components/ship-tabs.scss +0 -125
  149. package/styles/components/ship-theme-toggle.scss +0 -41
  150. package/styles/components/ship-toggle-card.scss +0 -69
  151. package/styles/components/ship-toggle.scss +0 -255
  152. package/styles/components/ship-tooltip.scss +0 -151
  153. package/styles/components/ship-virtual-scroll.scss +0 -12
@@ -1,195 +0,0 @@
1
- @use '../helpers.scss' as *;
2
-
3
- $shipSidenav: true !default;
4
-
5
- @if $shipSidenav == true {
6
- sh-sidenav {
7
- --sidenav-width: #{p2r(280)};
8
- --sidenav-wrap-w: 100vw;
9
- --sidenav-wrap-h: 100vh;
10
-
11
- display: flex;
12
- width: var(--sidenav-wrap-w);
13
- height: var(--sidenav-wrap-h);
14
-
15
- .sidenav {
16
- width: var(--sidenav-width);
17
- transition: width 200ms linear;
18
- height: 100%;
19
- overflow-x: hidden;
20
- overflow-y: auto;
21
- -webkit-overflow-scrolling: auto;
22
- }
23
-
24
- .main-wrap {
25
- position: relative;
26
- z-index: 1;
27
- flex: 1 0;
28
- display: block;
29
- height: 100%;
30
- overflow: auto;
31
- padding: p2r(16 16 16 0);
32
- background-color: var(--base-1);
33
- }
34
-
35
- main {
36
- overflow-x: hidden;
37
- overflow-y: auto;
38
- -webkit-overflow-scrolling: auto;
39
- border: var(--border-10);
40
- border-radius: var(--shape-3);
41
- height: calc(100vh - 2rem);
42
- box-shadow: var(--box-shadow-35);
43
- }
44
-
45
- .closed-topbar {
46
- display: none;
47
- min-height: p2r(60);
48
- background-color: var(--base-1);
49
- align-items: center;
50
- justify-content: space-between;
51
- padding: p2r(0 16);
52
- border-bottom: var(--border-10);
53
- z-index: 10000;
54
- position: relative;
55
- }
56
-
57
- .dragable {
58
- display: none;
59
- }
60
-
61
- .drag-image {
62
- display: none;
63
- }
64
-
65
- &.simple {
66
- border-radius: 0;
67
-
68
- .main-wrap {
69
- padding: 0;
70
-
71
- main {
72
- height: 100vh;
73
- border-radius: 0;
74
- border-width: 0 0 0 1px;
75
- }
76
- }
77
-
78
- &.closed {
79
- --sidenav-width: #{p2r(100)};
80
- }
81
- }
82
-
83
- &.overlay {
84
- overflow: hidden;
85
-
86
- .drag-image {
87
- display: block;
88
- width: p2r(4);
89
- height: 40%;
90
- background-color: var(--base-2);
91
- border-radius: p2r(2);
92
- box-shadow: none;
93
- position: fixed;
94
- top: 0;
95
- left: -9999px;
96
- }
97
-
98
- .sidenav {
99
- position: fixed;
100
- z-index: 0;
101
- }
102
-
103
- .dragable {
104
- position: absolute;
105
- top: 0;
106
- left: 0;
107
- bottom: 0;
108
- z-index: 9999;
109
- width: 50px;
110
- padding-right: 30px;
111
- display: flex;
112
- align-items: center;
113
- justify-content: center;
114
- cursor: grab;
115
-
116
- &:active {
117
- cursor: grabbing;
118
- }
119
-
120
- &:after {
121
- content: '';
122
- display: block;
123
- width: p2r(4);
124
- height: 40%;
125
- background-color: var(--base-2);
126
- border-radius: p2r(2);
127
- }
128
-
129
- &:hover {
130
- &:after {
131
- background-color: var(--base-4);
132
- }
133
- }
134
- }
135
-
136
- .dropping-surface {
137
- position: fixed;
138
- top: 0;
139
- left: 0;
140
- bottom: 0;
141
- right: 0;
142
- z-index: 100000;
143
- }
144
-
145
- .main-wrap {
146
- z-index: 1;
147
- padding: 0;
148
- display: flex;
149
- height: 100vh;
150
- position: relative;
151
- flex-direction: column;
152
- transform: translateX(0);
153
- transition: transform 200ms linear;
154
- }
155
-
156
- &.is-dragging {
157
- user-select: none;
158
- cursor: grabbing;
159
-
160
- .main-wrap {
161
- transition: none;
162
- }
163
-
164
- > * {
165
- cursor: grabbing;
166
- }
167
-
168
- .dragable {
169
- cursor: grabbing;
170
- }
171
- }
172
-
173
- &.open .main-wrap {
174
- transform: translateX(var(--sidenav-width));
175
- box-shadow: var(--box-shadow-10);
176
- border-left: var(--border-10);
177
- }
178
-
179
- .closed-topbar {
180
- display: flex;
181
-
182
- &:empty {
183
- display: none;
184
- }
185
- }
186
-
187
- main {
188
- border: 0;
189
- box-shadow: none;
190
- flex: 1 0;
191
- border-radius: 0;
192
- }
193
- }
194
- }
195
- }
@@ -1,45 +0,0 @@
1
- @use '../helpers.scss' as *;
2
-
3
- $shipSortable: true !default;
4
-
5
- @if $shipSortable == true {
6
- .sh-sortable {
7
- position: relative;
8
-
9
- &.dragging {
10
- [draggable],
11
- .sortable-ghost {
12
- cursor: grabbing;
13
- transition: transform 40ms linear;
14
- }
15
- }
16
-
17
- [draggable] {
18
- height: auto;
19
- transform: translate(0);
20
- transition: none;
21
- z-index: 2;
22
- background: var(--base-1);
23
- user-select: none;
24
-
25
- &:not(:has([sort-handle])) {
26
- cursor: grab;
27
- }
28
- }
29
-
30
- .sortable-ghost {
31
- opacity: 0.5;
32
- z-index: 10;
33
- }
34
-
35
- &.item-dragged-out {
36
- .sortable-ghost {
37
- display: none;
38
- }
39
- }
40
-
41
- [sort-handle] {
42
- cursor: grab;
43
- }
44
- }
45
- }
@@ -1,53 +0,0 @@
1
- @use '../helpers.scss' as *;
2
-
3
- $shipSpinner: true !default;
4
-
5
- @if $shipSpinner == true {
6
- sh-spinner {
7
- --spinner-c: var(--base-8);
8
- --spinner-size: #{p2r(40)};
9
- --spinner-thickness: #{p2r(5)};
10
-
11
- width: var(--spinner-size);
12
- height: var(--spinner-size);
13
- display: grid;
14
- place-content: center;
15
- color: var(--spinner-c);
16
- position: relative;
17
-
18
- &:before {
19
- content: '';
20
- width: var(--spinner-size);
21
- height: var(--spinner-size);
22
- border: var(--spinner-thickness) solid currentColor;
23
- border-bottom-color: transparent;
24
- border-radius: 50%;
25
- display: flex;
26
- box-sizing: border-box;
27
- animation: rotation 1s linear infinite;
28
- margin: auto;
29
- inset: 0;
30
- position: absolute;
31
- }
32
-
33
- &.primary {
34
- --spinner-c: var(--primary-8);
35
- }
36
-
37
- &.accent {
38
- --spinner-c: var(--accent-8);
39
- }
40
-
41
- &.warn {
42
- --spinner-c: var(--warn-8);
43
- }
44
-
45
- &.error {
46
- --spinner-c: var(--error-8);
47
- }
48
-
49
- &.success {
50
- --spinner-c: var(--success-8);
51
- }
52
- }
53
- }
@@ -1,158 +0,0 @@
1
- @use '../helpers.scss' as *;
2
-
3
- $shipStepper: true !default;
4
-
5
- @if $shipStepper == true {
6
- sh-stepper {
7
- --step-track-bg: var(--base-3);
8
- --step-c: var(--base-6);
9
- --step-radio-cbg: var(--base-1);
10
- --step-radio-c: var(--base-g2);
11
- --step-active-c: var(--base-8);
12
-
13
- display: flex;
14
- flex-wrap: nowrap;
15
- width: 100%;
16
- position: relative;
17
- overflow: hidden;
18
-
19
- &.primary {
20
- --step-c: var(--primary-6);
21
- --step-radio-cbg: var(--primary-1);
22
- --step-radio-c: var(--primary-g2);
23
- --step-active-c: var(--primary-8);
24
- }
25
-
26
- &.accent {
27
- --step-c: var(--accent-6);
28
- --step-radio-cbg: var(--accent-1);
29
- --step-radio-c: var(--accent-g2);
30
- --step-active-c: var(--accent-8);
31
- }
32
-
33
- &.warn {
34
- --step-c: var(--warn-6);
35
- --step-radio-cbg: var(--warn-1);
36
- --step-radio-c: var(--warn-g2);
37
- --step-active-c: var(--warn-8);
38
- }
39
-
40
- &.error {
41
- --step-c: var(--error-6);
42
- --step-radio-cbg: var(--error-1);
43
- --step-radio-c: var(--error-g2);
44
- --step-active-c: var(--error-8);
45
- }
46
-
47
- &.success {
48
- --step-c: var(--success-6);
49
- --step-radio-cbg: var(--success-1);
50
- --step-radio-c: var(--success-g2);
51
- --step-active-c: var(--success-8);
52
- }
53
-
54
- button {
55
- background: transparent;
56
- border: 0;
57
- padding: 0;
58
- }
59
-
60
- button,
61
- [routerLinkActive],
62
- [step],
63
- [value] {
64
- flex: 2 0;
65
- display: flex;
66
- flex-direction: column;
67
- align-items: center;
68
- justify-content: flex-start;
69
- gap: p2r(8);
70
- position: relative;
71
- color: var(--base-8);
72
- cursor: pointer;
73
- user-select: none;
74
- outline: none;
75
-
76
- &:focus-visible .sh-radio {
77
- outline: 2px solid var(--primary-8);
78
- outline-offset: 2px;
79
- border-radius: 50%;
80
- }
81
-
82
- &:first-child {
83
- align-items: flex-start;
84
- flex: 1 0;
85
- }
86
-
87
- &:last-child {
88
- align-items: flex-end;
89
- flex: 1 0;
90
- text-align: end;
91
- }
92
-
93
- &:not(.active) .sh-radio {
94
- z-index: 10;
95
- }
96
-
97
- &:has(~ button.active),
98
- &:has(~ [step].active),
99
- &:has(~ [routerLinkActive].active),
100
- &:has(~ [value].active) {
101
- .sh-radio {
102
- --radiod-o: 1;
103
-
104
- .radio {
105
- border-width: 0;
106
- background: var(--step-radio-c);
107
- }
108
- }
109
- }
110
-
111
- .sh-radio {
112
- .radio {
113
- --radiod-c: var(--step-radio-cbg);
114
-
115
- width: p2r(16);
116
- height: p2r(16);
117
- }
118
- }
119
-
120
- &.active {
121
- color: var(--step-active-c);
122
- outline: none;
123
-
124
- .sh-radio {
125
- z-index: 0;
126
- --radiod-o: 1;
127
-
128
- .radio {
129
- border-width: 0;
130
- background: var(--step-radio-c);
131
- }
132
-
133
- &:before {
134
- content: '';
135
- position: absolute;
136
- top: p2r(6);
137
- left: -9999px;
138
- z-index: -1;
139
- right: 0;
140
- height: p2r(4);
141
- background-color: var(--step-active-c);
142
- }
143
- }
144
- }
145
- }
146
-
147
- &:before {
148
- content: '';
149
- position: absolute;
150
- top: p2r(6);
151
- left: 0;
152
- z-index: 0;
153
- right: 0;
154
- height: p2r(4);
155
- background-color: var(--step-track-bg);
156
- }
157
- }
158
- }