@pepperi-addons/ngx-lib 0.4.2-beta.8 → 0.4.2-beta.81
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/attachment/attachment.component.d.ts +11 -2
- package/button/button.component.d.ts +8 -8
- package/core/common/services/color.service.d.ts +1 -0
- package/core/common/services/file.service.d.ts +7 -2
- package/dialog/dialog.service.d.ts +1 -0
- package/draggable-items/draggable-items.component.d.ts +3 -3
- package/draggable-items/draggable-items.module.d.ts +1 -1
- package/esm2020/address/address.component.mjs +1 -1
- package/esm2020/attachment/attachment.component.mjs +38 -18
- package/esm2020/button/button.component.mjs +7 -7
- package/esm2020/chips/chips.component.mjs +2 -2
- package/esm2020/color/color-picker.component.mjs +1 -1
- package/esm2020/core/common/services/color.service.mjs +27 -1
- package/esm2020/core/common/services/file.service.mjs +57 -20
- package/esm2020/core/common/services/session.service.mjs +2 -1
- package/esm2020/core/customization/customization.model.mjs +7 -6
- package/esm2020/core/customization/customization.service.mjs +13 -4
- package/esm2020/core/http/services/http.service.mjs +1 -1
- package/esm2020/dialog/dialog.component.mjs +3 -3
- package/esm2020/dialog/dialog.service.mjs +22 -1
- package/esm2020/draggable-items/draggable-items.component.mjs +7 -7
- package/esm2020/draggable-items/draggable-items.module.mjs +6 -6
- package/esm2020/files-uploader/files-uploader.component.mjs +50 -45
- package/esm2020/form/field-generator.component.mjs +3 -3
- package/esm2020/form/form.component.mjs +4 -3
- package/esm2020/form/internal-field-generator.component.mjs +1 -1
- package/esm2020/form/internal-form.component.mjs +1 -1
- package/esm2020/form/internal-list.component.mjs +2 -2
- package/esm2020/image/image.component.mjs +32 -16
- package/esm2020/image/image.service.mjs +2 -4
- package/esm2020/images-filmstrip/images-filmstrip.component.mjs +2 -2
- package/esm2020/link/link.component.mjs +33 -58
- package/esm2020/list/list.component.mjs +85 -17
- package/esm2020/menu/menu.component.mjs +3 -3
- package/esm2020/profile-data-views-list/profile-data-views-list.component.mjs +1 -1
- package/esm2020/quantity-selector/quantity-selector.component.mjs +20 -25
- package/esm2020/query-builder/query-builder-item/query-builder-item.component.mjs +1 -1
- package/esm2020/select/select.component.mjs +39 -18
- package/esm2020/select-panel/select-panel.component.mjs +2 -2
- package/esm2020/signature/public-api.mjs +2 -1
- package/esm2020/signature/signature-dialog.component.mjs +78 -0
- package/esm2020/signature/signature.component.mjs +117 -89
- package/esm2020/signature/signature.module.mjs +6 -5
- package/esm2020/skeleton-loader/pepperi-addons-ngx-lib-skeleton-loader.mjs +5 -0
- package/esm2020/skeleton-loader/public-api.mjs +6 -0
- package/esm2020/skeleton-loader/skeleton-loader.component.mjs +44 -0
- package/esm2020/skeleton-loader/skeleton-loader.module.mjs +24 -0
- package/esm2020/smart-filters/boolean-filter/boolean-filter.component.mjs +3 -3
- package/esm2020/smart-filters/date-filter/date-filter.component.mjs +1 -1
- package/esm2020/smart-filters/multi-select-filter/multi-select-filter.component.mjs +1 -1
- package/esm2020/smart-filters/number-filter/number-filter.component.mjs +3 -3
- package/esm2020/smart-filters/text-filter/text-filter.component.mjs +1 -1
- package/esm2020/textbox/textbox.component.mjs +9 -3
- package/esm2020/top-bar/top-bar.component.mjs +2 -2
- package/fesm2015/pepperi-addons-ngx-lib-address.mjs +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-address.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs +37 -17
- package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-button.mjs +6 -6
- package/fesm2015/pepperi-addons-ngx-lib-button.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-chips.mjs +2 -2
- package/fesm2015/pepperi-addons-ngx-lib-chips.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-color.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs +23 -2
- package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs +11 -11
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs +49 -44
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-form.mjs +8 -7
- package/fesm2015/pepperi-addons-ngx-lib-form.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-image.mjs +32 -18
- package/fesm2015/pepperi-addons-ngx-lib-image.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-link.mjs +32 -57
- package/fesm2015/pepperi-addons-ngx-lib-link.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs +84 -17
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-menu.mjs +2 -2
- package/fesm2015/pepperi-addons-ngx-lib-menu.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.mjs +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.mjs +19 -24
- package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.mjs +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-select-panel.mjs +2 -2
- package/fesm2015/pepperi-addons-ngx-lib-select-panel.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-select.mjs +37 -16
- package/fesm2015/pepperi-addons-ngx-lib-select.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-signature.mjs +205 -102
- package/fesm2015/pepperi-addons-ngx-lib-signature.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-skeleton-loader.mjs +78 -0
- package/fesm2015/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs +7 -7
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs +8 -2
- package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs +2 -2
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib.mjs +101 -27
- package/fesm2015/pepperi-addons-ngx-lib.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-address.mjs +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-address.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-attachment.mjs +37 -17
- package/fesm2020/pepperi-addons-ngx-lib-attachment.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-button.mjs +6 -6
- package/fesm2020/pepperi-addons-ngx-lib-button.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-chips.mjs +2 -2
- package/fesm2020/pepperi-addons-ngx-lib-chips.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-color.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-dialog.mjs +23 -2
- package/fesm2020/pepperi-addons-ngx-lib-dialog.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-draggable-items.mjs +11 -11
- package/fesm2020/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-files-uploader.mjs +49 -44
- package/fesm2020/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-form.mjs +8 -7
- package/fesm2020/pepperi-addons-ngx-lib-form.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-image.mjs +32 -18
- package/fesm2020/pepperi-addons-ngx-lib-image.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-images-filmstrip.mjs +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-link.mjs +32 -57
- package/fesm2020/pepperi-addons-ngx-lib-link.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs +84 -16
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-menu.mjs +2 -2
- package/fesm2020/pepperi-addons-ngx-lib-menu.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-profile-data-views-list.mjs +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-quantity-selector.mjs +19 -24
- package/fesm2020/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-query-builder.mjs +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-query-builder.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-select-panel.mjs +2 -2
- package/fesm2020/pepperi-addons-ngx-lib-select-panel.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-select.mjs +37 -16
- package/fesm2020/pepperi-addons-ngx-lib-select.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-signature.mjs +201 -102
- package/fesm2020/pepperi-addons-ngx-lib-signature.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-skeleton-loader.mjs +76 -0
- package/fesm2020/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-smart-filters.mjs +7 -7
- package/fesm2020/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-textbox.mjs +8 -2
- package/fesm2020/pepperi-addons-ngx-lib-textbox.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-top-bar.mjs +2 -2
- package/fesm2020/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib.mjs +101 -27
- package/fesm2020/pepperi-addons-ngx-lib.mjs.map +1 -1
- package/files-uploader/files-uploader.component.d.ts +7 -4
- package/image/image.component.d.ts +11 -3
- package/link/link.component.d.ts +23 -27
- package/list/list.component.d.ts +7 -1
- package/menu/menu.component.d.ts +1 -1
- package/package.json +10 -2
- package/quantity-selector/quantity-selector.component.d.ts +0 -2
- package/select/select.component.d.ts +9 -2
- package/signature/public-api.d.ts +1 -0
- package/signature/signature-dialog.component.d.ts +29 -0
- package/signature/signature.component.d.ts +7 -16
- package/signature/signature.module.d.ts +16 -15
- package/skeleton-loader/index.d.ts +5 -0
- package/skeleton-loader/public-api.d.ts +2 -0
- package/skeleton-loader/skeleton-loader.component.d.ts +20 -0
- package/skeleton-loader/skeleton-loader.component.theme.scss +15 -0
- package/skeleton-loader/skeleton-loader.module.d.ts +9 -0
- package/src/core/style/abstracts/AbstractsIntro.stories.mdx +7 -0
- package/src/core/style/abstracts/functions.scss +11 -11
- package/src/core/style/abstracts/mixins.scss +9 -6
- package/src/core/style/abstracts/variables.scss +38 -18
- package/src/core/style/base/BorderRadius.stories.mdx +59 -0
- package/src/core/style/base/Breakpoints.stories.mdx +36 -0
- package/src/core/style/base/Colors.stories.mdx +128 -0
- package/src/core/style/base/Shadows.stories.mdx +69 -0
- package/src/core/style/base/Spacing.stories.mdx +75 -0
- package/src/core/style/base/States.stories.mdx +62 -0
- package/src/core/style/base/Typography.stories.mdx +89 -0
- package/src/core/style/base/ZIndex.stories.mdx +47 -0
- package/src/core/style/base/base.scss +8 -10
- package/src/core/style/base/borderRadius.component.ts +27 -0
- package/src/core/style/base/breakpoints.component.ts +14 -0
- package/src/core/style/base/colors.component.ts +174 -0
- package/src/core/style/base/shadows.component.ts +90 -0
- package/src/core/style/base/spacing.component.ts +71 -0
- package/src/core/style/base/states.component.ts +84 -0
- package/src/core/style/base/typography.component.ts +94 -0
- package/src/core/style/base/typography.scss +54 -48
- package/src/core/style/base/zIndex.component.ts +25 -0
- package/src/core/style/components/file.scss +4 -4
- package/src/core/style/components/general.scss +5 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'storybook-states',
|
|
5
|
+
template: `<div *ngIf="storyIndex === 1" class="set-grid">
|
|
6
|
+
<div class="color-text-grid">
|
|
7
|
+
<span>
|
|
8
|
+
<span class="side-grid-col">
|
|
9
|
+
<h2 class="body-lg color-dimmed">Weak</h2>
|
|
10
|
+
<pre class="body-xs">class="pep-button weak"</pre>
|
|
11
|
+
<button class="size-it pep-button weak"></button>
|
|
12
|
+
<hr />
|
|
13
|
+
<h3 class="body-sm color-dimmed">Caution</h3>
|
|
14
|
+
<pre class="body-xs">class="pep-button weak caution"</pre>
|
|
15
|
+
<button class="size-it pep-button weak caution"></button>
|
|
16
|
+
<h3 class="body-sm color-dimmed">Success</h3>
|
|
17
|
+
<pre class="body-xs">class="pep-button weak success"</pre>
|
|
18
|
+
<button class="size-it pep-button weak success"></button>
|
|
19
|
+
<h3 class="body-sm color-dimmed">System</h3>
|
|
20
|
+
<pre class="body-xs">class="pep-button weak system-primary"</pre>
|
|
21
|
+
<button class="size-it pep-button weak system-primary"></button>
|
|
22
|
+
<h3 class="body-sm color-dimmed">Primary</h3>
|
|
23
|
+
<pre class="body-xs">class="pep-button weak user-primary"</pre>
|
|
24
|
+
<button class="size-it pep-button weak user-primary"></button>
|
|
25
|
+
<h3 class="body-sm color-dimmed">Secondary</h3>
|
|
26
|
+
<pre class="body-xs">class="pep-button weak user-secondary"</pre>
|
|
27
|
+
<button class="size-it pep-button weak user-secondary"></button>
|
|
28
|
+
</span>
|
|
29
|
+
</span>
|
|
30
|
+
<span>
|
|
31
|
+
<span class="side-grid-col">
|
|
32
|
+
<h2 class="body-lg color-dimmed">Regular</h2>
|
|
33
|
+
<pre class="body-xs">class="pep-button regular"</pre>
|
|
34
|
+
<button class="size-it pep-button regular"></button>
|
|
35
|
+
<hr />
|
|
36
|
+
<h3 class="body-sm color-dimmed">...</h3>
|
|
37
|
+
<pre class="body-xs">class="pep-button regular caution"</pre>
|
|
38
|
+
<button class="size-it pep-button regular caution"></button>
|
|
39
|
+
<h3 class="body-sm color-dimmed">...</h3>
|
|
40
|
+
<pre class="body-xs">class="pep-button regular success"</pre>
|
|
41
|
+
<button class="size-it pep-button regular success"></button>
|
|
42
|
+
<h3 class="body-sm color-dimmed">...</h3>
|
|
43
|
+
<pre class="body-xs">class="pep-button regular system-primary"</pre>
|
|
44
|
+
<button class="size-it pep-button regular system-primary"></button>
|
|
45
|
+
<h3 class="body-sm color-dimmed">...</h3>
|
|
46
|
+
<pre class="body-xs">class="pep-button regular user-primary"</pre>
|
|
47
|
+
<button class="size-it pep-button regular user-primary"></button>
|
|
48
|
+
<h3 class="body-sm color-dimmed">...</h3>
|
|
49
|
+
<pre class="body-xs">class="pep-button regular user-secondary"</pre>
|
|
50
|
+
<button class="size-it pep-button regular user-secondary"></button>
|
|
51
|
+
</span>
|
|
52
|
+
</span>
|
|
53
|
+
<span>
|
|
54
|
+
<span class="side-grid-col">
|
|
55
|
+
<h2 class="body-lg color-dimmed">Strong</h2>
|
|
56
|
+
<pre class="body-xs">class="pep-button strong"</pre>
|
|
57
|
+
<button class="size-it pep-button strong"></button>
|
|
58
|
+
<hr />
|
|
59
|
+
<h3 class="body-sm color-dimmed">...</h3>
|
|
60
|
+
<pre class="body-xs">class="pep-button strong caution"</pre>
|
|
61
|
+
<button class="size-it pep-button strong caution"></button>
|
|
62
|
+
<h3 class="body-sm color-dimmed">...</h3>
|
|
63
|
+
<pre class="body-xs">class="pep-button strong success"</pre>
|
|
64
|
+
<button class="size-it pep-button strong success"></button>
|
|
65
|
+
<h3 class="body-sm color-dimmed">...</h3>
|
|
66
|
+
<pre class="body-xs">class="pep-button strong system-primary"</pre>
|
|
67
|
+
<button class="size-it pep-button strong system-primary"></button>
|
|
68
|
+
<h3 class="body-sm color-dimmed">...</h3>
|
|
69
|
+
<pre class="body-xs">class="pep-button strong user-primary"</pre>
|
|
70
|
+
<button class="size-it pep-button strong user-primary"></button>
|
|
71
|
+
<h3 class="body-sm color-dimmed">...</h3>
|
|
72
|
+
<pre class="body-xs">class="pep-button strong user-secondary"</pre>
|
|
73
|
+
<button class="size-it pep-button strong user-secondary"></button>
|
|
74
|
+
</span>
|
|
75
|
+
</span>
|
|
76
|
+
</div>
|
|
77
|
+
</div> `,
|
|
78
|
+
})
|
|
79
|
+
export default class StatesComponent {
|
|
80
|
+
/**
|
|
81
|
+
*/
|
|
82
|
+
@Input()
|
|
83
|
+
storyIndex?: number = 1;
|
|
84
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'storybook-typography',
|
|
5
|
+
template: `<div *ngIf="storyIndex === 1" class="set-grid">
|
|
6
|
+
<pre>.title-2xs</pre>
|
|
7
|
+
<span class="title-2xs">This is a 2XS title </span>
|
|
8
|
+
<pre>.title-xs</pre>
|
|
9
|
+
<span class="title-xs">This is a XS title </span>
|
|
10
|
+
<pre>.title-sm</pre>
|
|
11
|
+
<span class="title-sm">This is a SM title </span>
|
|
12
|
+
<pre>.title-md</pre>
|
|
13
|
+
<span class="title-md">This is a MD title </span>
|
|
14
|
+
<pre>.title-lg</pre>
|
|
15
|
+
<span class="title-lg">This is a LG title </span>
|
|
16
|
+
<pre>.title-xl</pre>
|
|
17
|
+
<span class="title-xl">This is a XL title </span>
|
|
18
|
+
<pre>.title-2xl</pre>
|
|
19
|
+
<span class="title-2xl">This is a 2XL title </span>
|
|
20
|
+
<pre>.title-3xl</pre>
|
|
21
|
+
<span class="title-3xl">This is a 3XL title </span>
|
|
22
|
+
<pre>.title-4xl</pre>
|
|
23
|
+
<span class="title-4xl">This is a 4XL title </span>
|
|
24
|
+
<pre>.title-5xl</pre>
|
|
25
|
+
<span class="title-5xl">This is a 5XL title </span>
|
|
26
|
+
<pre>.title-6xl</pre>
|
|
27
|
+
<span class="title-6xl">This is a 6XL title </span>
|
|
28
|
+
<pre>.title-7xl</pre>
|
|
29
|
+
<span class="title-7xl">This is a 7XL title </span>
|
|
30
|
+
<pre>.title-8xl</pre>
|
|
31
|
+
<span class="title-8xl">This is a 8XL title </span>
|
|
32
|
+
</div>
|
|
33
|
+
<div *ngIf="storyIndex === 2" class="set-grid">
|
|
34
|
+
<pre><h6></pre>
|
|
35
|
+
<h6>This is an h6 tag</h6>
|
|
36
|
+
<pre><h5></pre>
|
|
37
|
+
<h5>This is an h5 tag</h5>
|
|
38
|
+
<pre><h4></pre>
|
|
39
|
+
<h4>This is an h4 tag</h4>
|
|
40
|
+
<pre><h3></pre>
|
|
41
|
+
<h3>This is an h3 tag</h3>
|
|
42
|
+
<pre><h2></pre>
|
|
43
|
+
<h2>This is an h2 tag</h2>
|
|
44
|
+
<pre><h1></pre>
|
|
45
|
+
<h1>This is an h1 tag</h1>
|
|
46
|
+
</div>
|
|
47
|
+
<div *ngIf="storyIndex === 3" class="set-grid">
|
|
48
|
+
<pre>.body-2xs</pre>
|
|
49
|
+
<span class="body-2xs">This is a 2XS body class</span>
|
|
50
|
+
<pre>.body-xs</pre>
|
|
51
|
+
<span class="body-xs">This is a XS body class</span>
|
|
52
|
+
<pre>.body-sm</pre>
|
|
53
|
+
<span class="body-sm">This is a SM body class</span>
|
|
54
|
+
<pre>.body-md</pre>
|
|
55
|
+
<span class="body-md">This is a MD body class</span>
|
|
56
|
+
<pre>.body-lg</pre>
|
|
57
|
+
<span class="body-lg">This is a LG body class</span>
|
|
58
|
+
<pre>.body-xl</pre>
|
|
59
|
+
<span class="body-xl">This is a XL body class</span>
|
|
60
|
+
<pre>.body-2xl</pre>
|
|
61
|
+
<span class="body-2xl">This is a 2XL body class</span>
|
|
62
|
+
<hr/>
|
|
63
|
+
<p>This is a classless <strong><p></strong> tag</p>
|
|
64
|
+
</div>
|
|
65
|
+
<div *ngIf="storyIndex === 4" class="set-grid">
|
|
66
|
+
<pre>.color-user-primary</pre>
|
|
67
|
+
<p class="color-user-primary">This one is using the <strong>primary</strong> color class</p>
|
|
68
|
+
<pre>.color-user-secondary</pre>
|
|
69
|
+
<p class="color-user-secondary">This one is using the <strong>secondary</strong> color class</p>
|
|
70
|
+
<pre>.color-main</pre>
|
|
71
|
+
<p class="color-main">This one is using the <strong>main</strong> color class</p>
|
|
72
|
+
<pre>.color-invert</pre>
|
|
73
|
+
<p class="color-invert">This one is using the <strong>invert</strong> color class</p>
|
|
74
|
+
<pre>.color-link</pre>
|
|
75
|
+
<p class="color-link">This one is using the <strong>link</strong> color class</p>
|
|
76
|
+
<pre>.color-caution</pre>
|
|
77
|
+
<p class="color-caution">This one is using the <strong>caution</strong> color class</p>
|
|
78
|
+
<pre>.color-success</pre>
|
|
79
|
+
<p class="color-success">This one is using the <strong>success</strong> color class</p>
|
|
80
|
+
<pre>.color-dimmed class</pre>
|
|
81
|
+
<p class="color-dimmed">This one is using the <strong>dimmed</strong> color class</p>
|
|
82
|
+
</div>
|
|
83
|
+
<div *ngIf="storyIndex === 5" class="set-grid">
|
|
84
|
+
<p class="color-user-primary body-md">Unify B2B eCommerce, SFA & Trade Promotions</p>
|
|
85
|
+
<h4 class="color-dimmed body-xl">Unify B2B eCommerce, SFA & Trade Promotions</h4>
|
|
86
|
+
<span class="color-caution title-md">Unify B2B eCommerce, SFA & Trade Promotions</span>
|
|
87
|
+
</div>`,
|
|
88
|
+
})
|
|
89
|
+
export default class TypographyComponent {
|
|
90
|
+
/**
|
|
91
|
+
*/
|
|
92
|
+
@Input()
|
|
93
|
+
storyIndex?: number = 1;
|
|
94
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
3
|
-
@use
|
|
1
|
+
@use "../abstracts/variables";
|
|
2
|
+
@use "../abstracts/mixins";
|
|
3
|
+
@use "../abstracts/functions";
|
|
4
4
|
|
|
5
5
|
// -----------------------------------------------------------------------------
|
|
6
6
|
// Typography style - This file contains all @font-face declarations, if any.
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
// @import url('https://fonts.googleapis.com/css2?family=Assistant:wght@200;300;400;500;600;700;800&family=Crimson+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=David+Libre:wght@400;500;700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// Smaller then XXS
|
|
11
|
+
@media screen and (min-width: variables.$screen-max-size-2xs) {
|
|
12
|
+
// Bigger then XXS
|
|
14
13
|
.body-2xs {
|
|
15
14
|
@include mixins.font-body(variables.$fs-2xs, variables.$lh-2xs);
|
|
16
15
|
}
|
|
@@ -51,63 +50,38 @@
|
|
|
51
50
|
.title-2xl {
|
|
52
51
|
@include mixins.font-title(variables.$fs-2xl, variables.$lh-2xl);
|
|
53
52
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
@media screen and (min-width: variables.$screen-max-size-2xs) {
|
|
57
|
-
// Bigger then XXS
|
|
58
|
-
.body-2xs {
|
|
59
|
-
@include mixins.font-body(variables.$fs-2xs, variables.$lh-2xs);
|
|
60
|
-
}
|
|
61
|
-
.body-xs {
|
|
62
|
-
@include mixins.font-body(variables.$fs-xs, variables.$lh-xs);
|
|
63
|
-
}
|
|
64
|
-
.body-sm {
|
|
65
|
-
@include mixins.font-body(variables.$fs-sm, variables.$lh-sm);
|
|
66
|
-
}
|
|
67
|
-
.body-md {
|
|
68
|
-
@include mixins.font-body(variables.$fs-md, variables.$lh-md);
|
|
69
|
-
}
|
|
70
|
-
.body-lg {
|
|
71
|
-
@include mixins.font-body(variables.$fs-lg, variables.$lh-lg);
|
|
72
|
-
}
|
|
73
|
-
.body-xl {
|
|
74
|
-
@include mixins.font-body(variables.$fs-xl, variables.$lh-xl);
|
|
75
|
-
}
|
|
76
|
-
.body-2xl {
|
|
77
|
-
@include mixins.font-body(variables.$fs-2xl, variables.$lh-2xl);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.title-xs {
|
|
81
|
-
@include mixins.font-title(variables.$fs-xs, variables.$lh-xs);
|
|
53
|
+
.title-3xl {
|
|
54
|
+
@include mixins.font-title(variables.$fs-3xl, variables.$lh-3xl);
|
|
82
55
|
}
|
|
83
|
-
.title-
|
|
84
|
-
@include mixins.font-title(variables.$fs-
|
|
56
|
+
.title-4xl {
|
|
57
|
+
@include mixins.font-title(variables.$fs-4xl, variables.$lh-4xl);
|
|
85
58
|
}
|
|
86
|
-
.title-
|
|
87
|
-
@include mixins.font-title(variables.$fs-
|
|
59
|
+
.title-5xl {
|
|
60
|
+
@include mixins.font-title(variables.$fs-5xl, variables.$lh-5xl);
|
|
88
61
|
}
|
|
89
|
-
.title-
|
|
90
|
-
@include mixins.font-title(variables.$fs-
|
|
62
|
+
.title-6xl {
|
|
63
|
+
@include mixins.font-title(variables.$fs-6xl, variables.$lh-6xl);
|
|
91
64
|
}
|
|
92
|
-
.title-
|
|
93
|
-
@include mixins.font-title(variables.$fs-
|
|
65
|
+
.title-7xl {
|
|
66
|
+
@include mixins.font-title(variables.$fs-7xl, variables.$lh-7xl);
|
|
94
67
|
}
|
|
95
|
-
.title-
|
|
96
|
-
@include mixins.font-title(variables.$fs-
|
|
68
|
+
.title-8xl {
|
|
69
|
+
@include mixins.font-title(variables.$fs-8xl, variables.$lh-8xl);
|
|
97
70
|
}
|
|
98
71
|
}
|
|
99
72
|
|
|
100
73
|
@supports (font-variation-settings: normal) {
|
|
101
74
|
html,
|
|
102
75
|
body {
|
|
103
|
-
font-family:
|
|
76
|
+
font-family: "Inter var", sans-serif;
|
|
104
77
|
}
|
|
105
78
|
}
|
|
106
79
|
|
|
107
80
|
html,
|
|
108
81
|
body {
|
|
109
82
|
$font-size: 16px;
|
|
110
|
-
|
|
83
|
+
|
|
84
|
+
font:unset !important;
|
|
111
85
|
font-family: variables.$font-family-body !important;
|
|
112
86
|
font-weight: variables.$font-weight-normal !important;
|
|
113
87
|
font-size: $font-size;
|
|
@@ -122,6 +96,14 @@ body {
|
|
|
122
96
|
/*.lang-he {
|
|
123
97
|
font-family: 'Open Sans Hebrew' !important;
|
|
124
98
|
}*/
|
|
99
|
+
|
|
100
|
+
// Init Material fonts here
|
|
101
|
+
// ***********************************************
|
|
102
|
+
// .mat-expansion-panel-content,
|
|
103
|
+
.mat-expansion-panel-content {
|
|
104
|
+
font:unset !important;
|
|
105
|
+
}
|
|
106
|
+
// ***********************************************
|
|
125
107
|
}
|
|
126
108
|
|
|
127
109
|
// Font weight
|
|
@@ -156,6 +138,24 @@ h2,
|
|
|
156
138
|
h1 {
|
|
157
139
|
font-family: variables.$font-family-title !important;
|
|
158
140
|
}
|
|
141
|
+
h6 {
|
|
142
|
+
@include mixins.font-title(variables.$fs-lg, variables.$lh-lg);
|
|
143
|
+
}
|
|
144
|
+
h5 {
|
|
145
|
+
@include mixins.font-title(variables.$fs-xl, variables.$lh-xl);
|
|
146
|
+
}
|
|
147
|
+
h4 {
|
|
148
|
+
@include mixins.font-title(variables.$fs-2xl, variables.$lh-2xl);
|
|
149
|
+
}
|
|
150
|
+
h3 {
|
|
151
|
+
@include mixins.font-title(variables.$fs-3xl, variables.$lh-3xl);
|
|
152
|
+
}
|
|
153
|
+
h2 {
|
|
154
|
+
@include mixins.font-title(variables.$fs-4xl, variables.$lh-4xl);
|
|
155
|
+
}
|
|
156
|
+
h1 {
|
|
157
|
+
@include mixins.font-title(variables.$fs-5xl, variables.$lh-5xl);
|
|
158
|
+
}
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* Basic styles for links
|
|
@@ -191,14 +191,20 @@ a {
|
|
|
191
191
|
color: functions.get-pep-color(color-user-primary, color-base);
|
|
192
192
|
}
|
|
193
193
|
.background-color-user-primary {
|
|
194
|
-
background-color: functions.get-pep-color(
|
|
194
|
+
background-color: functions.get-pep-color(
|
|
195
|
+
color-user-primary,
|
|
196
|
+
color-base
|
|
197
|
+
);
|
|
195
198
|
}
|
|
196
199
|
|
|
197
200
|
.color-user-secondary {
|
|
198
201
|
color: functions.get-pep-color(color-user-secondary, color-base);
|
|
199
202
|
}
|
|
200
203
|
.background-color-user-secondary {
|
|
201
|
-
background-color: functions.get-pep-color(
|
|
204
|
+
background-color: functions.get-pep-color(
|
|
205
|
+
color-user-secondary,
|
|
206
|
+
color-base
|
|
207
|
+
);
|
|
202
208
|
}
|
|
203
209
|
|
|
204
210
|
.color-system-primary,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'storybook-z-index',
|
|
5
|
+
template: `<div *ngIf="storyIndex === 1" class="set-grid">
|
|
6
|
+
<div class="z-grid">
|
|
7
|
+
<div class="z-grid__1">
|
|
8
|
+
<code>variables.$z-index-high</code>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="z-grid__2">
|
|
11
|
+
<code>variables.$z-index-medium</code>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="z-grid__3"><code>variables.$z-index-low</code></div>
|
|
14
|
+
<div class="z-grid__4">
|
|
15
|
+
<code>variables.$z-index-lowest</code>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div> `,
|
|
19
|
+
})
|
|
20
|
+
export default class ZIndexComponent {
|
|
21
|
+
/**
|
|
22
|
+
*/
|
|
23
|
+
@Input()
|
|
24
|
+
storyIndex?: number = 1;
|
|
25
|
+
}
|
|
@@ -50,10 +50,10 @@ $file-input-z-index: 1;
|
|
|
50
50
|
|
|
51
51
|
img {
|
|
52
52
|
object-fit: contain;
|
|
53
|
-
max-height: 100
|
|
54
|
-
max-height: stretch;
|
|
55
|
-
max-width: 100
|
|
56
|
-
max-width: stretch;
|
|
53
|
+
max-height: 100% !important;
|
|
54
|
+
// max-height: stretch;
|
|
55
|
+
max-width: 100% !important;
|
|
56
|
+
// max-width: stretch;
|
|
57
57
|
position: absolute;
|
|
58
58
|
top: 50%;
|
|
59
59
|
left: 50%;
|
|
@@ -125,6 +125,11 @@
|
|
|
125
125
|
width: 100%;
|
|
126
126
|
display: flex;
|
|
127
127
|
|
|
128
|
+
// Bug fix (DI-23724)
|
|
129
|
+
.mat-select {
|
|
130
|
+
z-index: variables.$z-index-lowest;
|
|
131
|
+
}
|
|
132
|
+
|
|
128
133
|
.mat-input-element {
|
|
129
134
|
// vertical-align: unset;
|
|
130
135
|
z-index: variables.$z-index-lowest;
|
|
@@ -155,7 +160,6 @@
|
|
|
155
160
|
.mat-form-field-flex {
|
|
156
161
|
border-radius: variables.$border-radius-md;
|
|
157
162
|
}
|
|
158
|
-
|
|
159
163
|
}
|
|
160
164
|
|
|
161
165
|
@mixin pep-field-size($size: 'md') {
|