@jumpgroup/jump-design-system 0.1.4 → 0.1.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.
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/{index-c572276a.js → index-46644e39.js} +499 -152
- package/dist/cjs/index-46644e39.js.map +1 -0
- package/dist/cjs/jump-button.cjs.entry.js +24 -16
- package/dist/cjs/jump-button.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-design-system.cjs.js +6 -4
- package/dist/cjs/jump-design-system.cjs.js.map +1 -1
- package/dist/cjs/jump-icon.cjs.entry.js +19 -30
- package/dist/cjs/jump-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-pagination.cjs.entry.js +22 -21
- package/dist/cjs/jump-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +6 -4
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/app-icon/jump-icon.js +59 -59
- package/dist/collection/components/app-icon/jump-icon.js.map +1 -1
- package/dist/collection/components/app-icon/jump-icon.stories.js +16 -16
- package/dist/collection/components/app-icon/jump-icon.stories.js.map +1 -1
- package/dist/collection/components/app-icon/test/jump-icon.e2e.js +6 -6
- package/dist/collection/components/app-icon/test/jump-icon.e2e.js.map +1 -1
- package/dist/collection/components/app-icon/test/jump-icon.spec.js +7 -7
- package/dist/collection/components/app-icon/test/jump-icon.spec.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button.css +47 -21
- package/dist/collection/components/jump-button/jump-button.js +285 -153
- package/dist/collection/components/jump-button/jump-button.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button.stories.js +371 -206
- package/dist/collection/components/jump-button/jump-button.stories.js.map +1 -1
- package/dist/collection/components/jump-button/test/jump-button.e2e.js +6 -6
- package/dist/collection/components/jump-button/test/jump-button.e2e.js.map +1 -1
- package/dist/collection/components/jump-button/test/jump-button.spec.js +7 -7
- package/dist/collection/components/jump-button/test/jump-button.spec.js.map +1 -1
- package/dist/collection/components/jump-pagination/jump-pagination.js +175 -175
- package/dist/collection/components/jump-pagination/jump-pagination.js.map +1 -1
- package/dist/collection/components/jump-pagination/jump-pagination.stories.js +91 -92
- package/dist/collection/components/jump-pagination/jump-pagination.stories.js.map +1 -1
- package/dist/collection/components/jump-pagination/test/jump-pagination.e2e.js +6 -6
- package/dist/collection/components/jump-pagination/test/jump-pagination.e2e.js.map +1 -1
- package/dist/collection/components/jump-pagination/test/jump-pagination.spec.js +7 -7
- package/dist/collection/components/jump-pagination/test/jump-pagination.spec.js.map +1 -1
- package/dist/collection/utils/utils.js +1 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/collection/utils/utils.spec.js +12 -12
- package/dist/collection/utils/utils.spec.js.map +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -1
- package/dist/components/jump-button.d.ts +2 -2
- package/dist/components/jump-button.js +50 -35
- package/dist/components/jump-button.js.map +1 -1
- package/dist/components/jump-icon.d.ts +2 -2
- package/dist/components/jump-icon2.js +33 -44
- package/dist/components/jump-icon2.js.map +1 -1
- package/dist/components/jump-pagination.d.ts +2 -2
- package/dist/components/jump-pagination.js +47 -46
- package/dist/components/jump-pagination.js.map +1 -1
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/{index-ad69454c.js → index-b0176170.js} +499 -152
- package/dist/esm/index-b0176170.js.map +1 -0
- package/dist/esm/jump-button.entry.js +24 -16
- package/dist/esm/jump-button.entry.js.map +1 -1
- package/dist/esm/jump-design-system.js +7 -5
- package/dist/esm/jump-design-system.js.map +1 -1
- package/dist/esm/jump-icon.entry.js +19 -30
- package/dist/esm/jump-icon.entry.js.map +1 -1
- package/dist/esm/jump-pagination.entry.js +22 -21
- package/dist/esm/jump-pagination.entry.js.map +1 -1
- package/dist/esm/loader.js +7 -5
- package/dist/esm/loader.js.map +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
- package/dist/jump-design-system/p-0d2b55a8.entry.js +2 -0
- package/dist/jump-design-system/p-0d2b55a8.entry.js.map +1 -0
- package/dist/jump-design-system/p-1bb7f2a5.entry.js +2 -0
- package/dist/jump-design-system/p-1bb7f2a5.entry.js.map +1 -0
- package/dist/jump-design-system/{p-15ecd712.entry.js → p-3cbc3a68.entry.js} +3 -3
- package/dist/jump-design-system/p-3cbc3a68.entry.js.map +1 -0
- package/dist/jump-design-system/p-68bce598.js +3 -0
- package/dist/jump-design-system/p-68bce598.js.map +1 -0
- package/dist/jump-design-system/p-e1255160.js +2 -0
- package/dist/jump-design-system/p-e1255160.js.map +1 -0
- package/dist/jump-design-system-elements.json +57 -1
- package/dist/types/components/app-icon/jump-icon.d.ts +10 -10
- package/dist/types/components/app-icon/jump-icon.stories.d.ts +14 -14
- package/dist/types/components/jump-button/jump-button.d.ts +57 -29
- package/dist/types/components/jump-button/jump-button.stories.d.ts +152 -86
- package/dist/types/components/jump-pagination/jump-pagination.d.ts +24 -24
- package/dist/types/components/jump-pagination/jump-pagination.stories.d.ts +63 -63
- package/dist/types/components.d.ts +60 -4
- package/dist/types/stencil-public-runtime.d.ts +46 -5
- package/loader/index.d.ts +1 -1
- package/package.json +2 -2
- package/readme.md +13 -8
- package/dist/cjs/index-c572276a.js.map +0 -1
- package/dist/esm/index-ad69454c.js.map +0 -1
- package/dist/jump-design-system/p-15ecd712.entry.js.map +0 -1
- package/dist/jump-design-system/p-42799645.entry.js +0 -2
- package/dist/jump-design-system/p-42799645.entry.js.map +0 -1
- package/dist/jump-design-system/p-44f459bb.js +0 -3
- package/dist/jump-design-system/p-44f459bb.js.map +0 -1
- package/dist/jump-design-system/p-6ba563bd.entry.js +0 -2
- package/dist/jump-design-system/p-6ba563bd.entry.js.map +0 -1
|
@@ -8,9 +8,25 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
export namespace Components {
|
|
9
9
|
interface JumpButton {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Indicates the value of text alternative to an element that has no visible text on the screen
|
|
12
|
+
*/
|
|
13
|
+
"ariaLabel": string;
|
|
14
|
+
/**
|
|
15
|
+
* Indicates classes of the component
|
|
16
|
+
*/
|
|
17
|
+
"class": string;
|
|
18
|
+
/**
|
|
19
|
+
* Set the button as disabled; Vale solo per i bottoni
|
|
12
20
|
*/
|
|
13
21
|
"disabled": boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Indicates if button becames a anchor
|
|
24
|
+
*/
|
|
25
|
+
"href": string;
|
|
26
|
+
/**
|
|
27
|
+
* Indicates the name that the sender button will send
|
|
28
|
+
*/
|
|
29
|
+
"name": string;
|
|
14
30
|
/**
|
|
15
31
|
* Indicates the button as only icon
|
|
16
32
|
*/
|
|
@@ -27,14 +43,26 @@ export namespace Components {
|
|
|
27
43
|
* Indicates the size of the button
|
|
28
44
|
*/
|
|
29
45
|
"size": string;
|
|
46
|
+
/**
|
|
47
|
+
* Indicates the type of anchor's target
|
|
48
|
+
*/
|
|
49
|
+
"target": '_blank' | '_parent' | '_self' | '_top';
|
|
30
50
|
/**
|
|
31
51
|
* Indicates the button as text
|
|
32
52
|
*/
|
|
33
53
|
"text": boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Indicates type button
|
|
56
|
+
*/
|
|
57
|
+
"type": 'button'|'submit'|'reset';
|
|
58
|
+
/**
|
|
59
|
+
* Indicates the value that the sender button will send
|
|
60
|
+
*/
|
|
61
|
+
"value": string;
|
|
34
62
|
/**
|
|
35
63
|
* Indicates the variant of the button
|
|
36
64
|
*/
|
|
37
|
-
"variant": 'primary'|'secondary'|'tertiary';
|
|
65
|
+
"variant": 'primary'|'secondary'|'tertiary'|'neutral';
|
|
38
66
|
}
|
|
39
67
|
interface JumpIcon {
|
|
40
68
|
/**
|
|
@@ -97,9 +125,25 @@ declare global {
|
|
|
97
125
|
declare namespace LocalJSX {
|
|
98
126
|
interface JumpButton {
|
|
99
127
|
/**
|
|
100
|
-
*
|
|
128
|
+
* Indicates the value of text alternative to an element that has no visible text on the screen
|
|
129
|
+
*/
|
|
130
|
+
"ariaLabel"?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Indicates classes of the component
|
|
133
|
+
*/
|
|
134
|
+
"class"?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Set the button as disabled; Vale solo per i bottoni
|
|
101
137
|
*/
|
|
102
138
|
"disabled"?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Indicates if button becames a anchor
|
|
141
|
+
*/
|
|
142
|
+
"href"?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Indicates the name that the sender button will send
|
|
145
|
+
*/
|
|
146
|
+
"name"?: string;
|
|
103
147
|
/**
|
|
104
148
|
* Indicates the button as only icon
|
|
105
149
|
*/
|
|
@@ -116,14 +160,26 @@ declare namespace LocalJSX {
|
|
|
116
160
|
* Indicates the size of the button
|
|
117
161
|
*/
|
|
118
162
|
"size"?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Indicates the type of anchor's target
|
|
165
|
+
*/
|
|
166
|
+
"target"?: '_blank' | '_parent' | '_self' | '_top';
|
|
119
167
|
/**
|
|
120
168
|
* Indicates the button as text
|
|
121
169
|
*/
|
|
122
170
|
"text"?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Indicates type button
|
|
173
|
+
*/
|
|
174
|
+
"type"?: 'button'|'submit'|'reset';
|
|
175
|
+
/**
|
|
176
|
+
* Indicates the value that the sender button will send
|
|
177
|
+
*/
|
|
178
|
+
"value"?: string;
|
|
123
179
|
/**
|
|
124
180
|
* Indicates the variant of the button
|
|
125
181
|
*/
|
|
126
|
-
"variant"?: 'primary'|'secondary'|'tertiary';
|
|
182
|
+
"variant"?: 'primary'|'secondary'|'tertiary'|'neutral';
|
|
127
183
|
}
|
|
128
184
|
interface JumpIcon {
|
|
129
185
|
/**
|
|
@@ -3,6 +3,16 @@ export interface ComponentDecorator {
|
|
|
3
3
|
(opts?: ComponentOptions): ClassDecorator;
|
|
4
4
|
}
|
|
5
5
|
export interface ComponentOptions {
|
|
6
|
+
/**
|
|
7
|
+
* When set to `true` this component will be form-associated. See
|
|
8
|
+
* https://stenciljs.com/docs/next/form-associated documentation on how to
|
|
9
|
+
* build form-associated Stencil components that integrate into forms like
|
|
10
|
+
* native browser elements such as `<input>` and `<textarea>`.
|
|
11
|
+
*
|
|
12
|
+
* The {@link AttachInternals} decorator allows for access to the
|
|
13
|
+
* `ElementInternals` object to modify the associated form.
|
|
14
|
+
*/
|
|
15
|
+
formAssociated?: boolean;
|
|
6
16
|
/**
|
|
7
17
|
* Tag name of the web component. Ideally, the tag name must be globally unique,
|
|
8
18
|
* so it's recommended to choose an unique prefix for all your components within the same collection.
|
|
@@ -62,7 +72,7 @@ export interface PropOptions {
|
|
|
62
72
|
/**
|
|
63
73
|
* The name of the associated DOM attribute.
|
|
64
74
|
* Stencil uses different heuristics to determine the default name of the attribute,
|
|
65
|
-
* but using this property, you can override the default
|
|
75
|
+
* but using this property, you can override the default behavior.
|
|
66
76
|
*/
|
|
67
77
|
attribute?: string | null;
|
|
68
78
|
/**
|
|
@@ -107,6 +117,9 @@ export interface EventOptions {
|
|
|
107
117
|
*/
|
|
108
118
|
composed?: boolean;
|
|
109
119
|
}
|
|
120
|
+
export interface AttachInternalsDecorator {
|
|
121
|
+
(): PropertyDecorator;
|
|
122
|
+
}
|
|
110
123
|
export interface ListenDecorator {
|
|
111
124
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
112
125
|
}
|
|
@@ -128,7 +141,7 @@ export interface ListenOptions {
|
|
|
128
141
|
* By default, Stencil uses several heuristics to determine if
|
|
129
142
|
* it must attach a `passive` event listener or not.
|
|
130
143
|
*
|
|
131
|
-
* Using the `passive` option can be used to change the default
|
|
144
|
+
* Using the `passive` option can be used to change the default behavior.
|
|
132
145
|
* Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
|
|
133
146
|
*/
|
|
134
147
|
passive?: boolean;
|
|
@@ -175,6 +188,12 @@ export declare const Element: ElementDecorator;
|
|
|
175
188
|
* https://stenciljs.com/docs/events
|
|
176
189
|
*/
|
|
177
190
|
export declare const Event: EventDecorator;
|
|
191
|
+
/**
|
|
192
|
+
* If the `formAssociated` option is set in options passed to the
|
|
193
|
+
* `@Component()` decorator then this decorator may be used to get access to the
|
|
194
|
+
* `ElementInternals` instance associated with the component.
|
|
195
|
+
*/
|
|
196
|
+
export declare const AttachInternals: AttachInternalsDecorator;
|
|
178
197
|
/**
|
|
179
198
|
* The `Listen()` decorator is for listening DOM events, including the ones
|
|
180
199
|
* dispatched from `@Events()`.
|
|
@@ -432,7 +451,7 @@ export interface QueueApi {
|
|
|
432
451
|
/**
|
|
433
452
|
* Host
|
|
434
453
|
*/
|
|
435
|
-
interface HostAttributes {
|
|
454
|
+
export interface HostAttributes {
|
|
436
455
|
class?: string | {
|
|
437
456
|
[className: string]: boolean;
|
|
438
457
|
};
|
|
@@ -471,7 +490,7 @@ export interface FunctionalUtilities {
|
|
|
471
490
|
/**
|
|
472
491
|
* Utility for reading the children of a functional component at runtime.
|
|
473
492
|
* Since the Stencil runtime uses a different interface for children it is
|
|
474
|
-
* not
|
|
493
|
+
* not recommended to read the children directly, and is preferable to use
|
|
475
494
|
* this utility to, for instance, perform a side effect for each child.
|
|
476
495
|
*/
|
|
477
496
|
forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
|
|
@@ -791,6 +810,9 @@ export declare namespace JSXBase {
|
|
|
791
810
|
name?: string;
|
|
792
811
|
type?: string;
|
|
793
812
|
value?: string | string[] | number;
|
|
813
|
+
popoverTargetAction?: string;
|
|
814
|
+
popoverTargetElement?: Element | null;
|
|
815
|
+
popoverTarget?: string;
|
|
794
816
|
}
|
|
795
817
|
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
796
818
|
height?: number | string;
|
|
@@ -872,6 +894,8 @@ export declare namespace JSXBase {
|
|
|
872
894
|
}
|
|
873
895
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
874
896
|
alt?: string;
|
|
897
|
+
crossOrigin?: string;
|
|
898
|
+
crossorigin?: string;
|
|
875
899
|
decoding?: 'async' | 'auto' | 'sync';
|
|
876
900
|
importance?: 'low' | 'auto' | 'high';
|
|
877
901
|
height?: number | string;
|
|
@@ -930,6 +954,8 @@ export declare namespace JSXBase {
|
|
|
930
954
|
minlength?: number | string;
|
|
931
955
|
multiple?: boolean;
|
|
932
956
|
name?: string;
|
|
957
|
+
onSelect?: (event: Event) => void;
|
|
958
|
+
onselect?: (event: Event) => void;
|
|
933
959
|
pattern?: string;
|
|
934
960
|
placeholder?: string;
|
|
935
961
|
readOnly?: boolean;
|
|
@@ -948,6 +974,9 @@ export declare namespace JSXBase {
|
|
|
948
974
|
webkitdirectory?: boolean;
|
|
949
975
|
webkitEntries?: any;
|
|
950
976
|
width?: number | string;
|
|
977
|
+
popoverTargetAction?: string;
|
|
978
|
+
popoverTargetElement?: Element | null;
|
|
979
|
+
popoverTarget?: string;
|
|
951
980
|
}
|
|
952
981
|
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
953
982
|
autoFocus?: boolean;
|
|
@@ -1111,11 +1140,13 @@ export declare namespace JSXBase {
|
|
|
1111
1140
|
autocomplete?: string;
|
|
1112
1141
|
}
|
|
1113
1142
|
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1143
|
+
height?: number;
|
|
1114
1144
|
media?: string;
|
|
1115
1145
|
sizes?: string;
|
|
1116
1146
|
src?: string;
|
|
1117
1147
|
srcSet?: string;
|
|
1118
1148
|
type?: string;
|
|
1149
|
+
width?: number;
|
|
1119
1150
|
}
|
|
1120
1151
|
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1121
1152
|
media?: string;
|
|
@@ -1143,6 +1174,8 @@ export declare namespace JSXBase {
|
|
|
1143
1174
|
minLength?: number;
|
|
1144
1175
|
minlength?: number | string;
|
|
1145
1176
|
name?: string;
|
|
1177
|
+
onSelect?: (event: Event) => void;
|
|
1178
|
+
onselect?: (event: Event) => void;
|
|
1146
1179
|
placeholder?: string;
|
|
1147
1180
|
readOnly?: boolean;
|
|
1148
1181
|
readonly?: boolean | string;
|
|
@@ -1196,6 +1229,7 @@ export declare namespace JSXBase {
|
|
|
1196
1229
|
draggable?: boolean;
|
|
1197
1230
|
hidden?: boolean;
|
|
1198
1231
|
id?: string;
|
|
1232
|
+
inert?: boolean;
|
|
1199
1233
|
lang?: string;
|
|
1200
1234
|
spellcheck?: 'true' | 'false' | any;
|
|
1201
1235
|
style?: {
|
|
@@ -1204,6 +1238,7 @@ export declare namespace JSXBase {
|
|
|
1204
1238
|
tabIndex?: number;
|
|
1205
1239
|
tabindex?: number | string;
|
|
1206
1240
|
title?: string;
|
|
1241
|
+
popover?: string | null;
|
|
1207
1242
|
inputMode?: string;
|
|
1208
1243
|
inputmode?: string;
|
|
1209
1244
|
enterKeyHint?: string;
|
|
@@ -1289,7 +1324,7 @@ export declare namespace JSXBase {
|
|
|
1289
1324
|
clipPathUnits?: number | string;
|
|
1290
1325
|
'clip-rule'?: number | string;
|
|
1291
1326
|
'color-interpolation'?: number | string;
|
|
1292
|
-
'color-interpolation-filters'?: 'auto' | '
|
|
1327
|
+
'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB';
|
|
1293
1328
|
'color-profile'?: number | string;
|
|
1294
1329
|
'color-rendering'?: number | string;
|
|
1295
1330
|
contentScriptType?: number | string;
|
|
@@ -1619,8 +1654,14 @@ export declare namespace JSXBase {
|
|
|
1619
1654
|
onAnimationEndCapture?: (event: AnimationEvent) => void;
|
|
1620
1655
|
onAnimationIteration?: (event: AnimationEvent) => void;
|
|
1621
1656
|
onAnimationIterationCapture?: (event: AnimationEvent) => void;
|
|
1657
|
+
onTransitionCancel?: (event: TransitionEvent) => void;
|
|
1658
|
+
onTransitionCancelCapture?: (event: TransitionEvent) => void;
|
|
1622
1659
|
onTransitionEnd?: (event: TransitionEvent) => void;
|
|
1623
1660
|
onTransitionEndCapture?: (event: TransitionEvent) => void;
|
|
1661
|
+
onTransitionRun?: (event: TransitionEvent) => void;
|
|
1662
|
+
onTransitionRunCapture?: (event: TransitionEvent) => void;
|
|
1663
|
+
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1664
|
+
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1624
1665
|
}
|
|
1625
1666
|
}
|
|
1626
1667
|
export interface JSXAttributes<T = Element> {
|
package/loader/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface CustomElementsDefineOptions {
|
|
|
8
8
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
9
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions):
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
12
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
13
|
|
|
14
14
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jumpgroup/jump-design-system",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"generate-styles": "node ./style-generator.mjs"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@stencil/core": "^4.
|
|
37
|
+
"@stencil/core": "^4.12.4"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@babel/preset-env": "^7.21.5",
|
package/readme.md
CHANGED
|
@@ -12,7 +12,8 @@ yarn stencil:watch
|
|
|
12
12
|
Pushing to MASTER deploys the changes to [Jump Design System](https://designsystem.jumpgroup.it/).
|
|
13
13
|
If you want to propagate the modification to npm to install the design system components, you need to tag the repository by incrementing the version according to [versioning rules](https://semver.org/)
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Effettuando un push su master viene automaticamente deployato lo storybook con le modifiche.
|
|
16
|
+
Per aggiornare la versione di npm è necessario creare un tag (e modificare la versione su package.json).
|
|
16
17
|
|
|
17
18
|
### Caricare gli stili
|
|
18
19
|
Per visualizzare il design system con i colori correttamente configurati, seguire i passaggi:
|
|
@@ -22,7 +23,6 @@ Per visualizzare il design system con i colori correttamente configurati, seguir
|
|
|
22
23
|
es: http://localhost/?path=/docs/tokens-colori--documentation&figma-board=rdyLtvCq162n61XTXFAmWe
|
|
23
24
|
Se non si vedono correttamente gli stili, controllare la sezione Troubleshooting.
|
|
24
25
|
|
|
25
|
-
|
|
26
26
|
## Naming Components
|
|
27
27
|
When creating new component tags, use `jump` as component name prefix (ex: `<jump-button>`)
|
|
28
28
|
|
|
@@ -32,15 +32,17 @@ So, if the prop inside `nomecomponente.tsx` is `currentPage`, in the story, it s
|
|
|
32
32
|
|
|
33
33
|
## Using this component
|
|
34
34
|
|
|
35
|
-
There are three strategies we recommend for using web components built with Stencil.
|
|
36
|
-
|
|
37
|
-
The first step for all three of these strategies is to [publish to NPM](https://docs.npmjs.com/getting-started/publishing-npm-packages).
|
|
38
|
-
|
|
39
35
|
### Script tag
|
|
40
36
|
|
|
41
|
-
|
|
37
|
+
#### unpkg
|
|
38
|
+
- This tag `<script type='module' src='https://unpkg.com/@jumpgroup/jump-design-system/dist/jump-design-system/jump-design-system.esm.js'></script>` in the head of your index.html.
|
|
39
|
+
- To include also the style, add `<style src='https://unpkg.com/@jumpgroup/jump-design-system/dist/jump-design-system/jump-design-system.css'></script>`in the head of your index.html.
|
|
42
40
|
- Then you can use the element anywhere in your template, JSX, html etc
|
|
43
41
|
|
|
42
|
+
#### jsdeliver
|
|
43
|
+
- Includi i seguenti tag
|
|
44
|
+
`<script type='module' src='https://cdn.jsdelivr.net/npm/@jumpgroup/jump-design-system/dist/jump-design-system/jump-design-system.esm.js'></script>`
|
|
45
|
+
|
|
44
46
|
### Node Modules
|
|
45
47
|
|
|
46
48
|
- Run `npm install my-component --save`
|
|
@@ -50,4 +52,7 @@ The first step for all three of these strategies is to [publish to NPM](https://
|
|
|
50
52
|
## Troubleshooting
|
|
51
53
|
### Non si vedono gli stili
|
|
52
54
|
Se in locale non si vedono gli stili una volta configurato l'url con il path corretto, potrebbero esserci diversi problemi:
|
|
53
|
-
1) L'api di figma impostata nel file env alla voce FIGMA_API_KEY non è corretta. Ad oggi chiedere a Fabio di verificare la chiave. Una volta inserita nel file env, rilanciare i comandi di start del progetto e andare nel local storage del browser e cancellare figmaBoard e figmaBoardList
|
|
55
|
+
1) L'api di figma impostata nel file env alla voce FIGMA_API_KEY non è corretta. Ad oggi chiedere a Fabio di verificare la chiave. Una volta inserita nel file env, rilanciare i comandi di start del progetto e andare nel local storage del browser e cancellare **figmaBoard** e **figmaBoardList.** Infinite rifare la procedura indicata in **Caricare gli stili**. Eliminare la cache!
|
|
56
|
+
|
|
57
|
+
## Link utili
|
|
58
|
+
- [Storybook repository](https://designsystem.jumpgroup.it/]
|