@ship-ui/core 0.13.28 → 0.13.29
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.
- package/bin/src/ship-fg-node.js +12 -3
- package/bin/src/ship-fg.ts +11 -5
- package/bin/src/utilities.js +4 -2
- package/bin/src/utilities.ts +4 -2
- package/fesm2022/ship-ui-core.mjs +34 -2
- package/fesm2022/ship-ui-core.mjs.map +1 -1
- package/index.d.ts +6 -1
- package/package.json +1 -1
- package/styles/components/ship-button-group.component.scss +8 -1
- package/styles/components/ship-button.component.scss +8 -1
- package/styles/components/ship-event-card.component.scss +208 -0
- package/styles/components/ship-form-field.component.scss +7 -0
- package/styles/components/ship-list.component.scss +7 -0
- package/styles/components/ship-menu.component.scss +6 -0
- package/styles/components/ship-tabs.component.scss +7 -0
- package/styles/index.scss +4 -0
package/index.d.ts
CHANGED
|
@@ -289,6 +289,11 @@ declare class ShipDividerComponent {
|
|
|
289
289
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipDividerComponent, "sh-divider", never, {}, {}, never, ["*"], true, never>;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
+
declare class ShipEventCardComponent {
|
|
293
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipEventCardComponent, never>;
|
|
294
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipEventCardComponent, "sh-event-card", never, {}, {}, never, ["*", "[actions]", "button"], true, never>;
|
|
295
|
+
}
|
|
296
|
+
|
|
292
297
|
declare class ShipFileUploadComponent {
|
|
293
298
|
_el: ElementRef<any>;
|
|
294
299
|
inputRef: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
@@ -765,5 +770,5 @@ interface ShipConfig {
|
|
|
765
770
|
sidenavType?: 'overlay' | 'simple';
|
|
766
771
|
}
|
|
767
772
|
|
|
768
|
-
export { GridSortableDirective, SHIP_CONFIG, ShipAlertComponent, ShipAlertContainerComponent, ShipAlertModule, ShipAlertService, ShipButtonComponent, ShipButtonGroupComponent, ShipCardComponent, ShipCheckboxComponent, ShipChipComponent, ShipColorPickerComponent, ShipDatepickerComponent, ShipDatepickerInputComponent, ShipDaterangeInputComponent, ShipDialogComponent, ShipDialogService, ShipDividerComponent, ShipFileDragDropDirective, ShipFileUploadComponent, ShipFormFieldComponent, ShipIconComponent, ShipListComponent, ShipMenuComponent, ShipPopoverComponent, ShipPreventWheelDirective, ShipProgressBarComponent, ShipRadioComponent, ShipRangeSliderComponent, ShipResizeDirective, ShipSelectComponent, ShipSidenavComponent, ShipSortDirective, ShipSortableComponent, ShipSortableDirective, ShipSpinnerComponent, ShipStepperComponent, ShipStickyColumnsDirective, ShipStickyRowsDirective, ShipTableComponent, ShipTabsComponent, ShipToggleCardComponent, ShipToggleComponent, ShipTooltipComponent, ShipTooltipDirective, ShipTooltipWrapper, ShipVirtualScrollComponent, moveIndex, watchHostClass };
|
|
773
|
+
export { GridSortableDirective, SHIP_CONFIG, ShipAlertComponent, ShipAlertContainerComponent, ShipAlertModule, ShipAlertService, ShipButtonComponent, ShipButtonGroupComponent, ShipCardComponent, ShipCheckboxComponent, ShipChipComponent, ShipColorPickerComponent, ShipDatepickerComponent, ShipDatepickerInputComponent, ShipDaterangeInputComponent, ShipDialogComponent, ShipDialogService, ShipDividerComponent, ShipEventCardComponent, ShipFileDragDropDirective, ShipFileUploadComponent, ShipFormFieldComponent, ShipIconComponent, ShipListComponent, ShipMenuComponent, ShipPopoverComponent, ShipPreventWheelDirective, ShipProgressBarComponent, ShipRadioComponent, ShipRangeSliderComponent, ShipResizeDirective, ShipSelectComponent, ShipSidenavComponent, ShipSortDirective, ShipSortableComponent, ShipSortableDirective, ShipSpinnerComponent, ShipStepperComponent, ShipStickyColumnsDirective, ShipStickyRowsDirective, ShipTableComponent, ShipTabsComponent, ShipToggleCardComponent, ShipToggleComponent, ShipTooltipComponent, ShipTooltipDirective, ShipTooltipWrapper, ShipVirtualScrollComponent, moveIndex, watchHostClass };
|
|
769
774
|
export type { AfterDropResponse, ShipAlertItem, ShipAlertItemInternal, ShipAlertType, ShipDialogOptions, ShipDialogReturn, ShipDialogServiceOptions, ShipPopoverOptions, ShipProgressBarMode, ShipSidenavType };
|
package/package.json
CHANGED
|
@@ -33,7 +33,6 @@ $shipButtonGroup: true !default;
|
|
|
33
33
|
gap: p2r(8);
|
|
34
34
|
position: relative;
|
|
35
35
|
padding: var(--btng-p);
|
|
36
|
-
transition: color 80ms linear;
|
|
37
36
|
min-width: auto;
|
|
38
37
|
cursor: pointer;
|
|
39
38
|
outline: none;
|
|
@@ -47,6 +46,14 @@ $shipButtonGroup: true !default;
|
|
|
47
46
|
color: var(--btng-c);
|
|
48
47
|
font: var(--btng-f);
|
|
49
48
|
border-left: 1px solid var(--btng-bc);
|
|
49
|
+
transition:
|
|
50
|
+
color 80ms linear,
|
|
51
|
+
transform 125ms linear;
|
|
52
|
+
transform: scale(1);
|
|
53
|
+
|
|
54
|
+
&:active {
|
|
55
|
+
transform: scale(0.96);
|
|
56
|
+
}
|
|
50
57
|
|
|
51
58
|
&:first-child {
|
|
52
59
|
border-left: 0;
|
|
@@ -46,7 +46,14 @@ $shipButtonShadow: false !default;
|
|
|
46
46
|
|
|
47
47
|
background: var(--btn-bg);
|
|
48
48
|
color: var(--btn-c);
|
|
49
|
-
transition:
|
|
49
|
+
transition:
|
|
50
|
+
background 75ms linear,
|
|
51
|
+
transform 125ms linear;
|
|
52
|
+
transform: scale(1);
|
|
53
|
+
|
|
54
|
+
&:active {
|
|
55
|
+
transform: scale(0.98);
|
|
56
|
+
}
|
|
50
57
|
|
|
51
58
|
sh-icon {
|
|
52
59
|
color: var(--btn-ic);
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
@use '../helpers.scss' as *;
|
|
2
|
+
|
|
3
|
+
$shipEventCard: true !default;
|
|
4
|
+
|
|
5
|
+
@if $shipEventCard == true {
|
|
6
|
+
sh-event-card {
|
|
7
|
+
--ec-c: var(--base-12);
|
|
8
|
+
--ec-bg: var(--base-1);
|
|
9
|
+
--ec-bc: var(--base-4);
|
|
10
|
+
--ec-s: var(--shape-2);
|
|
11
|
+
|
|
12
|
+
display: flex;
|
|
13
|
+
gap: p2r(8);
|
|
14
|
+
width: 100%;
|
|
15
|
+
padding: p2r(16);
|
|
16
|
+
border-radius: var(--ec-s);
|
|
17
|
+
background: var(--ec-bg);
|
|
18
|
+
border: 1px solid var(--ec-bc);
|
|
19
|
+
color: var(--ec-c);
|
|
20
|
+
|
|
21
|
+
.content {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
gap: p2r(4);
|
|
25
|
+
flex: 1;
|
|
26
|
+
|
|
27
|
+
> * {
|
|
28
|
+
color: var(--ec-c);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
h1,
|
|
32
|
+
h2,
|
|
33
|
+
h3,
|
|
34
|
+
h4,
|
|
35
|
+
h5,
|
|
36
|
+
h6 {
|
|
37
|
+
font: var(--paragraph-20B);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.actions [actions],
|
|
42
|
+
.actions {
|
|
43
|
+
display: flex;
|
|
44
|
+
gap: p2r(8);
|
|
45
|
+
align-items: center;
|
|
46
|
+
|
|
47
|
+
[shButton] {
|
|
48
|
+
--btn-bs: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:before {
|
|
53
|
+
content: '';
|
|
54
|
+
display: block;
|
|
55
|
+
border-radius: p2r(3);
|
|
56
|
+
width: p2r(6);
|
|
57
|
+
background: var(--ec-c);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.dynamic {
|
|
61
|
+
--ec-bg: rgb(from var(--ec-c) r g b / 0.14);
|
|
62
|
+
color: var(--ec-c);
|
|
63
|
+
border: 0;
|
|
64
|
+
|
|
65
|
+
.content {
|
|
66
|
+
p {
|
|
67
|
+
--ec-pc: rgb(from var(--ec-c) r g b / 0.65);
|
|
68
|
+
color: var(--ec-pc);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
sh-icon {
|
|
73
|
+
color: inherit;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.primary {
|
|
78
|
+
--ec-c: var(--primary-8);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.accent {
|
|
82
|
+
--ec-c: var(--accent-8);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.warn {
|
|
86
|
+
--ec-c: var(--warn-8);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.error {
|
|
90
|
+
--ec-c: var(--error-8);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.success {
|
|
94
|
+
--ec-c: var(--success-8);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.simple,
|
|
98
|
+
&.outlined {
|
|
99
|
+
--ec-c: var(--base-12);
|
|
100
|
+
--ec-bg: var(--base-2);
|
|
101
|
+
|
|
102
|
+
&.primary {
|
|
103
|
+
--ec-c: var(--primary-8);
|
|
104
|
+
--ec-bg: var(--primary-1);
|
|
105
|
+
--ec-bc: var(--primary-4);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.accent {
|
|
109
|
+
--ec-c: var(--accent-8);
|
|
110
|
+
--ec-bg: var(--accent-1);
|
|
111
|
+
--ec-bc: var(--accent-4);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.warn {
|
|
115
|
+
--ec-c: var(--warn-8);
|
|
116
|
+
--ec-bg: var(--warn-1);
|
|
117
|
+
--ec-bc: var(--warn-4);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&.error {
|
|
121
|
+
--ec-c: var(--error-8);
|
|
122
|
+
--ec-bg: var(--error-1);
|
|
123
|
+
--ec-bc: var(--error-4);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&.success {
|
|
127
|
+
--ec-c: var(--success-8);
|
|
128
|
+
--ec-bg: var(--success-1);
|
|
129
|
+
--ec-bc: var(--success-4);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.simple,
|
|
134
|
+
&.simple.primary,
|
|
135
|
+
&.simple.accent,
|
|
136
|
+
&.simple.warn,
|
|
137
|
+
&.simple.error,
|
|
138
|
+
&.simple.success {
|
|
139
|
+
--ec-bc: var(--ec-bg);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&.flat {
|
|
143
|
+
--ec-c: #fff;
|
|
144
|
+
--ec-ic: #fff;
|
|
145
|
+
--ec-bg: var(--base-8);
|
|
146
|
+
|
|
147
|
+
border: 0;
|
|
148
|
+
|
|
149
|
+
&.primary {
|
|
150
|
+
--ec-c: var(--primary-c8);
|
|
151
|
+
--ec-bg: var(--primary-8);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&.accent {
|
|
155
|
+
--ec-c: var(--accent-c8);
|
|
156
|
+
--ec-bg: var(--accent-8);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.warn {
|
|
160
|
+
--ec-c: var(--warn-c8);
|
|
161
|
+
--ec-bg: var(--warn-8);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&.error {
|
|
165
|
+
--ec-c: var(--error-c8);
|
|
166
|
+
--ec-bg: var(--error-8);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&.success {
|
|
170
|
+
--ec-c: var(--success-c8);
|
|
171
|
+
--ec-bg: var(--success-8);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&.raised {
|
|
176
|
+
--ec-c: #fff;
|
|
177
|
+
--ec-ic: #fff;
|
|
178
|
+
--ec-bg: var(--base-g6);
|
|
179
|
+
|
|
180
|
+
border: 0;
|
|
181
|
+
|
|
182
|
+
&.primary {
|
|
183
|
+
--ec-c: var(--primary-c8);
|
|
184
|
+
--ec-bg: var(--primary-g2);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&.accent {
|
|
188
|
+
--ec-c: var(--accent-c8);
|
|
189
|
+
--ec-bg: var(--accent-g2);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.warn {
|
|
193
|
+
--ec-c: var(--warn-c8);
|
|
194
|
+
--ec-bg: var(--warn-g2);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&.error {
|
|
198
|
+
--ec-c: var(--error-c8);
|
|
199
|
+
--ec-bg: var(--error-g2);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&.success {
|
|
203
|
+
--ec-c: var(--success-c8);
|
|
204
|
+
--ec-bg: var(--success-g2);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
@@ -49,6 +49,13 @@ $shipFormFieldShadow: false !default;
|
|
|
49
49
|
position: relative;
|
|
50
50
|
width: 100%;
|
|
51
51
|
|
|
52
|
+
transition: transform 125ms linear;
|
|
53
|
+
transform: scale(1);
|
|
54
|
+
|
|
55
|
+
&:active {
|
|
56
|
+
transform: scale(0.995);
|
|
57
|
+
}
|
|
58
|
+
|
|
52
59
|
&[read-only],
|
|
53
60
|
&[read-only='true'],
|
|
54
61
|
&[readonly='true'],
|
|
@@ -174,6 +174,12 @@ $shipMenu: true !default;
|
|
|
174
174
|
border: 0;
|
|
175
175
|
cursor: pointer;
|
|
176
176
|
color: var(--base-12);
|
|
177
|
+
transition: transform 125ms linear;
|
|
178
|
+
transform: scale(1);
|
|
179
|
+
|
|
180
|
+
&:active {
|
|
181
|
+
transform: scale(0.98);
|
|
182
|
+
}
|
|
177
183
|
|
|
178
184
|
&[disabled] {
|
|
179
185
|
opacity: 0.3;
|
package/styles/index.scss
CHANGED
|
@@ -22,6 +22,7 @@ $shipButton: true !default;
|
|
|
22
22
|
$shipProgressBar: true !default;
|
|
23
23
|
$shipCheckbox: true !default;
|
|
24
24
|
$shipDatepicker: true !default;
|
|
25
|
+
$shipEventCard: true !default;
|
|
25
26
|
$shipIcon: true !default;
|
|
26
27
|
$shipMenu: true !default;
|
|
27
28
|
$shipDivider: true !default;
|
|
@@ -69,6 +70,9 @@ $shipFileUpload: true !default;
|
|
|
69
70
|
@use './components/ship-datepicker.component.scss' with (
|
|
70
71
|
$shipDatepicker: $shipDatepicker
|
|
71
72
|
);
|
|
73
|
+
@use './components/ship-event-card.component.scss' with (
|
|
74
|
+
$shipEventCard: $shipEventCard
|
|
75
|
+
);
|
|
72
76
|
@use './components/ship-icon.component.scss' with (
|
|
73
77
|
$shipIcon: $shipIcon
|
|
74
78
|
);
|