@pepperi-addons/ngx-lib 0.4.2-beta.9 → 0.4.2-beta.91
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 +109 -18
- package/esm2020/list/list.model.mjs +1 -1
- 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/common/model/operator.mjs +2 -2
- package/esm2020/query-builder/query-builder-item/query-builder-item.component.mjs +1 -1
- package/esm2020/select/select.component.mjs +66 -40
- 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 +108 -18
- 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 +2 -2
- 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 +64 -38
- 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 +108 -17
- 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 +2 -2
- 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 +64 -38
- 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 +10 -2
- package/list/list.model.d.ts +3 -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 +10 -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 +52 -50
- 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
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
color-tran-30: variables.$color-system-primary-invert-tran-30,
|
|
20
20
|
color-tran-20: variables.$color-system-primary-invert-tran-20,
|
|
21
21
|
color-tran-10: variables.$color-system-primary-invert-tran-10,
|
|
22
|
-
color-tran-
|
|
22
|
+
color-tran-00: variables.$color-system-primary-invert-tran-00,
|
|
23
23
|
// Flat colors.
|
|
24
24
|
color-flat-l-20: variables.$color-system-primary-invert-flat-l-20,
|
|
25
25
|
color-flat-l-10: variables.$color-system-primary-invert-flat-l-10,
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
color-tran-30: variables.$color-system-primary-tran-30,
|
|
45
45
|
color-tran-20: variables.$color-system-primary-tran-20,
|
|
46
46
|
color-tran-10: variables.$color-system-primary-tran-10,
|
|
47
|
-
color-tran-
|
|
47
|
+
color-tran-00: variables.$color-system-primary-tran-00,
|
|
48
48
|
// Flat colors.
|
|
49
49
|
color-flat-l-20: variables.$color-system-primary-flat-l-20,
|
|
50
50
|
color-flat-l-10: variables.$color-system-primary-flat-l-10,
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
color-tran-30: variables.$color-system-success-tran-30,
|
|
70
70
|
color-tran-20: variables.$color-system-success-tran-20,
|
|
71
71
|
color-tran-10: variables.$color-system-success-tran-10,
|
|
72
|
-
color-tran-
|
|
72
|
+
color-tran-00: variables.$color-system-success-tran-00,
|
|
73
73
|
// Flat colors.
|
|
74
74
|
color-flat-l-20: variables.$color-system-success-flat-l-20,
|
|
75
75
|
color-flat-l-10: variables.$color-system-success-flat-l-10,
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
color-tran-30: variables.$color-system-caution-tran-30,
|
|
95
95
|
color-tran-20: variables.$color-system-caution-tran-20,
|
|
96
96
|
color-tran-10: variables.$color-system-caution-tran-10,
|
|
97
|
-
color-tran-
|
|
97
|
+
color-tran-00: variables.$color-system-caution-tran-00,
|
|
98
98
|
// Flat colors.
|
|
99
99
|
color-flat-l-20: variables.$color-system-caution-flat-l-20,
|
|
100
100
|
color-flat-l-10: variables.$color-system-caution-flat-l-10,
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
color-tran-30: variables.$color-user-primary-tran-30,
|
|
120
120
|
color-tran-20: variables.$color-user-primary-tran-20,
|
|
121
121
|
color-tran-10: variables.$color-user-primary-tran-10,
|
|
122
|
-
color-tran-
|
|
122
|
+
color-tran-00: variables.$color-user-primary-tran-00,
|
|
123
123
|
// Flat colors.
|
|
124
124
|
color-flat-l-20: variables.$color-user-primary-flat-l-20,
|
|
125
125
|
color-flat-l-10: variables.$color-user-primary-flat-l-10,
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
color-tran-30: variables.$color-user-secondary-tran-30,
|
|
145
145
|
color-tran-20: variables.$color-user-secondary-tran-20,
|
|
146
146
|
color-tran-10: variables.$color-user-secondary-tran-10,
|
|
147
|
-
color-tran-
|
|
147
|
+
color-tran-00: variables.$color-user-secondary-tran-00,
|
|
148
148
|
// Flat colors.
|
|
149
149
|
color-flat-l-20: variables.$color-user-secondary-flat-l-20,
|
|
150
150
|
color-flat-l-10: variables.$color-user-secondary-flat-l-10,
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
color-tran-30: variables.$color-weak-tran-30,
|
|
170
170
|
color-tran-20: variables.$color-weak-tran-20,
|
|
171
171
|
color-tran-10: variables.$color-weak-tran-10,
|
|
172
|
-
color-tran-
|
|
172
|
+
color-tran-00: variables.$color-weak-tran-00,
|
|
173
173
|
// Flat colors.
|
|
174
174
|
color-flat-l-20: variables.$color-weak-flat-l-20,
|
|
175
175
|
color-flat-l-10: variables.$color-weak-flat-l-10,
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
color-tran-30: variables.$color-regular-tran-30,
|
|
195
195
|
color-tran-20: variables.$color-regular-tran-20,
|
|
196
196
|
color-tran-10: variables.$color-regular-tran-10,
|
|
197
|
-
color-tran-
|
|
197
|
+
color-tran-00: variables.$color-regular-tran-00,
|
|
198
198
|
// Flat colors.
|
|
199
199
|
color-flat-l-20: variables.$color-regular-flat-l-20,
|
|
200
200
|
color-flat-l-10: variables.$color-regular-flat-l-10,
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
color-tran-30: variables.$color-strong-tran-30,
|
|
220
220
|
color-tran-20: variables.$color-strong-tran-20,
|
|
221
221
|
color-tran-10: variables.$color-strong-tran-10,
|
|
222
|
-
color-tran-
|
|
222
|
+
color-tran-00: variables.$color-strong-tran-00,
|
|
223
223
|
// Flat colors.
|
|
224
224
|
color-flat-l-20: variables.$color-strong-flat-l-20,
|
|
225
225
|
color-flat-l-10: variables.$color-strong-flat-l-10,
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
color-tran-30: variables.$color-top-header-tran-30,
|
|
245
245
|
color-tran-20: variables.$color-top-header-tran-20,
|
|
246
246
|
color-tran-10: variables.$color-top-header-tran-10,
|
|
247
|
-
color-tran-
|
|
247
|
+
color-tran-00: variables.$color-top-header-tran-00,
|
|
248
248
|
// Flat colors.
|
|
249
249
|
color-flat-l-20: variables.$color-top-header-flat-l-20,
|
|
250
250
|
color-flat-l-10: variables.$color-top-header-flat-l-10,
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
color-tran-30: variables.$color-qs-tran-30,
|
|
269
269
|
color-tran-20: variables.$color-qs-tran-20,
|
|
270
270
|
color-tran-10: variables.$color-qs-tran-10,
|
|
271
|
-
color-tran-
|
|
271
|
+
color-tran-00: variables.$color-qs-tran-00,
|
|
272
272
|
// Flat colors.
|
|
273
273
|
color-flat-l-20: variables.$color-qs-flat-l-20,
|
|
274
274
|
color-flat-l-10: variables.$color-qs-flat-l-10,
|
|
@@ -194,14 +194,17 @@
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
@mixin font-title($fs: variables.$fs-md, $lh: variables.$lh-md) {
|
|
197
|
-
font-family: variables.$font-family-title;
|
|
198
|
-
font-weight: variables.$font-weight-bold;
|
|
197
|
+
font-family: variables.$font-family-title !important;
|
|
198
|
+
font-weight: variables.$font-weight-bold !important;
|
|
199
199
|
|
|
200
200
|
@include font-size($fs);
|
|
201
201
|
@include line-height($lh);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
@mixin font-body($fs: variables.$fs-sm, $lh: variables.$lh-sm) {
|
|
205
|
+
font-family: variables.$font-family-body !important;
|
|
206
|
+
font-weight: variables.$font-weight-normal;
|
|
207
|
+
|
|
205
208
|
@include font-size($fs);
|
|
206
209
|
@include line-height($lh);
|
|
207
210
|
}
|
|
@@ -280,7 +283,7 @@
|
|
|
280
283
|
$color-high-opacity: null;
|
|
281
284
|
|
|
282
285
|
@if ($hex-color == null) {
|
|
283
|
-
$color-low-opacity: functions.get-pep-color(color-system-caution, color-tran-
|
|
286
|
+
$color-low-opacity: functions.get-pep-color(color-system-caution, color-tran-00);
|
|
284
287
|
$color-high-opacity: functions.get-pep-color(color-system-caution, color-tran-60);
|
|
285
288
|
} @else {
|
|
286
289
|
$color-low-opacity: rgba($hex-color, 0);
|
|
@@ -485,7 +488,7 @@
|
|
|
485
488
|
}
|
|
486
489
|
|
|
487
490
|
&:not(.keep-background-on-focus) {
|
|
488
|
-
// background: functions.get-pep-color($color-map-key, color-tran-
|
|
491
|
+
// background: functions.get-pep-color($color-map-key, color-tran-00); // TODO: In Table view is gray so what sould we do ask Yonatan.
|
|
489
492
|
background: functions.get-pep-color(color-system-primary-invert, color-base);
|
|
490
493
|
}
|
|
491
494
|
|
|
@@ -654,11 +657,11 @@
|
|
|
654
657
|
// None - default
|
|
655
658
|
// -----------------------------------------------------------------------------
|
|
656
659
|
@mixin state-none-default() {
|
|
657
|
-
background: functions.get-pep-color(color-system-primary, color-tran-
|
|
660
|
+
background: functions.get-pep-color(color-system-primary, color-tran-00);
|
|
658
661
|
}
|
|
659
662
|
@mixin state-none-disable() {
|
|
660
663
|
@include state-disabled();
|
|
661
|
-
background: functions.get-pep-color(color-system-primary, color-tran-
|
|
664
|
+
background: functions.get-pep-color(color-system-primary, color-tran-00) !important;
|
|
662
665
|
}
|
|
663
666
|
@mixin state-none-hover() {
|
|
664
667
|
@include state-weak-hover();
|
|
@@ -44,15 +44,35 @@ $fs-md: var(--pep-font-size-md, 1rem);
|
|
|
44
44
|
$fs-lg: var(--pep-font-size-lg, 1.125rem);
|
|
45
45
|
$fs-xl: var(--pep-font-size-xl, 1.25rem);
|
|
46
46
|
$fs-2xl: var(--pep-font-size-2xl, 1.5rem);
|
|
47
|
+
$fs-3xl: var(--pep-font-size-3xl, 1.75rem);
|
|
48
|
+
$fs-4xl: var(--pep-font-size-4xl, 2rem);
|
|
49
|
+
$fs-5xl: var(--pep-font-size-5xl, 2.5rem);
|
|
50
|
+
$fs-6xl: var(--pep-font-size-6xl, 3rem);
|
|
51
|
+
$fs-7xl: var(--pep-font-size-7xl, 3.5rem);
|
|
52
|
+
$fs-8xl: var(--pep-font-size-8xl, 4rem);
|
|
53
|
+
$fs-9xl: var(--pep-font-size-9xl, 5rem);
|
|
54
|
+
$fs-10xl: var(--pep-font-size-10xl, 6rem);
|
|
55
|
+
$fs-11xl: var(--pep-font-size-11xl, 7rem);
|
|
56
|
+
$fs-12xl: var(--pep-font-size-12xl, 8rem);
|
|
47
57
|
|
|
48
58
|
// Line Height
|
|
49
|
-
$lh-2xs: var(--pep-line-height-2xs, 0.
|
|
50
|
-
$lh-xs: var(--pep-line-height-xs,
|
|
51
|
-
$lh-sm: var(--pep-line-height-sm, 1.
|
|
52
|
-
$lh-md: var(--pep-line-height-md, 1.
|
|
53
|
-
$lh-lg: var(--pep-line-height-lg, 1.
|
|
54
|
-
$lh-xl: var(--pep-line-height-xl,
|
|
55
|
-
$lh-2xl: var(--pep-line-height-2xl,
|
|
59
|
+
$lh-2xs: var(--pep-line-height-2xs, 0.78125rem);
|
|
60
|
+
$lh-xs: var(--pep-line-height-xs, 0.9375rem);
|
|
61
|
+
$lh-sm: var(--pep-line-height-sm, 1.09375rem);
|
|
62
|
+
$lh-md: var(--pep-line-height-md, 1.25rem);
|
|
63
|
+
$lh-lg: var(--pep-line-height-lg, 1.40625rem);
|
|
64
|
+
$lh-xl: var(--pep-line-height-xl, 1.5625rem);
|
|
65
|
+
$lh-2xl: var(--pep-line-height-2xl, 1.875rem);
|
|
66
|
+
$lh-3xl: var(--pep-line-height-3xl, 2.1875rem);
|
|
67
|
+
$lh-4xl: var(--pep-line-height-4xl, 2.5rem);
|
|
68
|
+
$lh-5xl: var(--pep-line-height-5xl, 3.125rem);
|
|
69
|
+
$lh-6xl: var(--pep-line-height-6xl, 3.75rem);
|
|
70
|
+
$lh-7xl: var(--pep-line-height-7xl, 4.375rem);
|
|
71
|
+
$lh-8xl: var(--pep-line-height-8xl, 5rem);
|
|
72
|
+
$lh-9xl: var(--pep-line-height-9xl, 6.25rem);
|
|
73
|
+
$lh-10xl: var(--pep-line-height-10xl, 7.5rem);
|
|
74
|
+
$lh-11xl: var(--pep-line-height-11xl, 8.75rem);
|
|
75
|
+
$lh-12xl: var(--pep-line-height-12xl, 10rem);
|
|
56
76
|
|
|
57
77
|
// Fonts weight - General
|
|
58
78
|
$font-weight-normal: var(--pep-font-weight-normal, 400);
|
|
@@ -195,7 +215,7 @@ $color-system-primary-invert-tran-40: hsla(#{$color-system-primary-invert-h}, #{
|
|
|
195
215
|
$color-system-primary-invert-tran-30: hsla(#{$color-system-primary-invert-h}, #{$color-system-primary-invert-s}, #{$color-system-primary-invert-l}, 0.12);
|
|
196
216
|
$color-system-primary-invert-tran-20: hsla(#{$color-system-primary-invert-h}, #{$color-system-primary-invert-s}, #{$color-system-primary-invert-l}, 0.08);
|
|
197
217
|
$color-system-primary-invert-tran-10: hsla(#{$color-system-primary-invert-h}, #{$color-system-primary-invert-s}, #{$color-system-primary-invert-l}, 0.04);
|
|
198
|
-
$color-system-primary-invert-tran-
|
|
218
|
+
$color-system-primary-invert-tran-00: hsla(#{$color-system-primary-invert-h}, #{$color-system-primary-invert-s}, #{$color-system-primary-invert-l}, 0);
|
|
199
219
|
// Flat colors.
|
|
200
220
|
$color-system-primary-invert-flat-l-20: hsl(#{$color-system-primary-invert-h}, #{$color-system-primary-invert-s}, calc(#{$color-system-primary-invert-l} - #{$flat-l-20-lp}));
|
|
201
221
|
$color-system-primary-invert-flat-l-10: hsl(#{$color-system-primary-invert-h}, #{$color-system-primary-invert-s}, calc(#{$color-system-primary-invert-l} - #{$flat-l-10-lp}));
|
|
@@ -223,7 +243,7 @@ $color-system-primary-tran-40: hsla(#{$color-system-primary-h}, #{$color-system-
|
|
|
223
243
|
$color-system-primary-tran-30: hsla(#{$color-system-primary-h}, #{$color-system-primary-s}, #{$color-system-primary-l}, 0.12);
|
|
224
244
|
$color-system-primary-tran-20: hsla(#{$color-system-primary-h}, #{$color-system-primary-s}, #{$color-system-primary-l}, 0.08);
|
|
225
245
|
$color-system-primary-tran-10: hsla(#{$color-system-primary-h}, #{$color-system-primary-s}, #{$color-system-primary-l}, 0.04);
|
|
226
|
-
$color-system-primary-tran-
|
|
246
|
+
$color-system-primary-tran-00: hsla(#{$color-system-primary-h}, #{$color-system-primary-s}, #{$color-system-primary-l}, 0);
|
|
227
247
|
// Flat colors.
|
|
228
248
|
$color-system-primary-flat-l-20: hsl(#{$color-system-primary-h}, #{$color-system-primary-s}, calc(#{$color-system-primary-l} - #{$flat-l-20-lp}));
|
|
229
249
|
$color-system-primary-flat-l-10: hsl(#{$color-system-primary-h}, #{$color-system-primary-s}, calc(#{$color-system-primary-l} - #{$flat-l-10-lp}));
|
|
@@ -251,7 +271,7 @@ $color-system-success-tran-40: hsla(#{$color-system-success-h}, #{$color-system-
|
|
|
251
271
|
$color-system-success-tran-30: hsla(#{$color-system-success-h}, #{$color-system-success-s}, #{$color-system-success-l}, 0.12);
|
|
252
272
|
$color-system-success-tran-20: hsla(#{$color-system-success-h}, #{$color-system-success-s}, #{$color-system-success-l}, 0.08);
|
|
253
273
|
$color-system-success-tran-10: hsla(#{$color-system-success-h}, #{$color-system-success-s}, #{$color-system-success-l}, 0.04);
|
|
254
|
-
$color-system-success-tran-
|
|
274
|
+
$color-system-success-tran-00: hsla(#{$color-system-success-h}, #{$color-system-success-s}, #{$color-system-success-l}, 0);
|
|
255
275
|
// Flat colors.
|
|
256
276
|
$color-system-success-flat-l-20: hsl(#{$color-system-success-h}, #{$color-system-success-s}, calc(#{$color-system-success-l} - #{$flat-l-20-lp}));
|
|
257
277
|
$color-system-success-flat-l-10: hsl(#{$color-system-success-h}, #{$color-system-success-s}, calc(#{$color-system-success-l} - #{$flat-l-10-lp}));
|
|
@@ -279,7 +299,7 @@ $color-system-caution-tran-40: hsla(#{$color-system-caution-h}, #{$color-system-
|
|
|
279
299
|
$color-system-caution-tran-30: hsla(#{$color-system-caution-h}, #{$color-system-caution-s}, #{$color-system-caution-l}, 0.12);
|
|
280
300
|
$color-system-caution-tran-20: hsla(#{$color-system-caution-h}, #{$color-system-caution-s}, #{$color-system-caution-l}, 0.08);
|
|
281
301
|
$color-system-caution-tran-10: hsla(#{$color-system-caution-h}, #{$color-system-caution-s}, #{$color-system-caution-l}, 0.04);
|
|
282
|
-
$color-system-caution-tran-
|
|
302
|
+
$color-system-caution-tran-00: hsla(#{$color-system-caution-h}, #{$color-system-caution-s}, #{$color-system-caution-l}, 0);
|
|
283
303
|
// Flat colors.
|
|
284
304
|
$color-system-caution-flat-l-20: hsl(#{$color-system-caution-h}, #{$color-system-caution-s}, calc(#{$color-system-caution-l} - #{$flat-l-20-lp}));
|
|
285
305
|
$color-system-caution-flat-l-10: hsl(#{$color-system-caution-h}, #{$color-system-caution-s}, calc(#{$color-system-caution-l} - #{$flat-l-10-lp}));
|
|
@@ -307,7 +327,7 @@ $color-user-primary-tran-40: hsla(#{$color-user-primary-h}, #{$color-user-primar
|
|
|
307
327
|
$color-user-primary-tran-30: hsla(#{$color-user-primary-h}, #{$color-user-primary-s}, #{$color-user-primary-l}, 0.12);
|
|
308
328
|
$color-user-primary-tran-20: hsla(#{$color-user-primary-h}, #{$color-user-primary-s}, #{$color-user-primary-l}, 0.08);
|
|
309
329
|
$color-user-primary-tran-10: hsla(#{$color-user-primary-h}, #{$color-user-primary-s}, #{$color-user-primary-l}, 0.04);
|
|
310
|
-
$color-user-primary-tran-
|
|
330
|
+
$color-user-primary-tran-00: hsla(#{$color-user-primary-h}, #{$color-user-primary-s}, #{$color-user-primary-l}, 0);
|
|
311
331
|
// Flat colors.
|
|
312
332
|
$color-user-primary-flat-l-20: hsl(#{$color-user-primary-h}, #{$color-user-primary-s}, calc(#{$color-user-primary-l} - #{$flat-l-20-lp}));
|
|
313
333
|
$color-user-primary-flat-l-10: hsl(#{$color-user-primary-h}, #{$color-user-primary-s}, calc(#{$color-user-primary-l} - #{$flat-l-10-lp}));
|
|
@@ -335,7 +355,7 @@ $color-user-secondary-tran-40: hsla(#{$color-user-secondary-h}, #{$color-user-se
|
|
|
335
355
|
$color-user-secondary-tran-30: hsla(#{$color-user-secondary-h}, #{$color-user-secondary-s}, #{$color-user-secondary-l}, 0.12);
|
|
336
356
|
$color-user-secondary-tran-20: hsla(#{$color-user-secondary-h}, #{$color-user-secondary-s}, #{$color-user-secondary-l}, 0.08);
|
|
337
357
|
$color-user-secondary-tran-10: hsla(#{$color-user-secondary-h}, #{$color-user-secondary-s}, #{$color-user-secondary-l}, 0.04);
|
|
338
|
-
$color-user-secondary-tran-
|
|
358
|
+
$color-user-secondary-tran-00: hsla(#{$color-user-secondary-h}, #{$color-user-secondary-s}, #{$color-user-secondary-l}, 0);
|
|
339
359
|
// Flat colors.
|
|
340
360
|
$color-user-secondary-flat-l-20: hsl(#{$color-user-secondary-h}, #{$color-user-secondary-s}, calc(#{$color-user-secondary-l} - #{$flat-l-20-lp}));
|
|
341
361
|
$color-user-secondary-flat-l-10: hsl(#{$color-user-secondary-h}, #{$color-user-secondary-s}, calc(#{$color-user-secondary-l} - #{$flat-l-10-lp}));
|
|
@@ -363,7 +383,7 @@ $color-weak-tran-40: hsla(#{$color-weak-h}, #{$color-weak-s}, #{$color-weak-l},
|
|
|
363
383
|
$color-weak-tran-30: hsla(#{$color-weak-h}, #{$color-weak-s}, #{$color-weak-l}, 0.12);
|
|
364
384
|
$color-weak-tran-20: hsla(#{$color-weak-h}, #{$color-weak-s}, #{$color-weak-l}, 0.08);
|
|
365
385
|
$color-weak-tran-10: hsla(#{$color-weak-h}, #{$color-weak-s}, #{$color-weak-l}, 0.04);
|
|
366
|
-
$color-weak-tran-
|
|
386
|
+
$color-weak-tran-00: hsla(#{$color-weak-h}, #{$color-weak-s}, #{$color-weak-l}, 0);
|
|
367
387
|
// Flat colors.
|
|
368
388
|
$color-weak-flat-l-20: hsl(#{$color-weak-h}, #{$color-weak-s}, calc(#{$color-weak-l} - #{$flat-l-20-lp}));
|
|
369
389
|
$color-weak-flat-l-10: hsl(#{$color-weak-h}, #{$color-weak-s}, calc(#{$color-weak-l} - #{$flat-l-10-lp}));
|
|
@@ -391,7 +411,7 @@ $color-regular-tran-40: hsla(#{$color-regular-h}, #{$color-regular-s}, #{$color-
|
|
|
391
411
|
$color-regular-tran-30: hsla(#{$color-regular-h}, #{$color-regular-s}, #{$color-regular-l}, 0.12);
|
|
392
412
|
$color-regular-tran-20: hsla(#{$color-regular-h}, #{$color-regular-s}, #{$color-regular-l}, 0.08);
|
|
393
413
|
$color-regular-tran-10: hsla(#{$color-regular-h}, #{$color-regular-s}, #{$color-regular-l}, 0.04);
|
|
394
|
-
$color-regular-tran-
|
|
414
|
+
$color-regular-tran-00: hsla(#{$color-regular-h}, #{$color-regular-s}, #{$color-regular-l}, 0);
|
|
395
415
|
// Flat colors.
|
|
396
416
|
$color-regular-flat-l-20: hsl(#{$color-regular-h}, #{$color-regular-s}, calc(#{$color-regular-l} - #{$flat-l-20-lp}));
|
|
397
417
|
$color-regular-flat-l-10: hsl(#{$color-regular-h}, #{$color-regular-s}, calc(#{$color-regular-l} - #{$flat-l-10-lp}));
|
|
@@ -419,7 +439,7 @@ $color-strong-tran-40: hsla(#{$color-strong-h}, #{$color-strong-s}, #{$color-str
|
|
|
419
439
|
$color-strong-tran-30: hsla(#{$color-strong-h}, #{$color-strong-s}, #{$color-strong-l}, 0.12);
|
|
420
440
|
$color-strong-tran-20: hsla(#{$color-strong-h}, #{$color-strong-s}, #{$color-strong-l}, 0.08);
|
|
421
441
|
$color-strong-tran-10: hsla(#{$color-strong-h}, #{$color-strong-s}, #{$color-strong-l}, 0.04);
|
|
422
|
-
$color-strong-tran-
|
|
442
|
+
$color-strong-tran-00: hsla(#{$color-strong-h}, #{$color-strong-s}, #{$color-strong-l}, 0);
|
|
423
443
|
// Flat colors.
|
|
424
444
|
$color-strong-flat-l-20: hsl(#{$color-strong-h}, #{$color-strong-s}, calc(#{$color-strong-l} - #{$flat-l-20-lp}));
|
|
425
445
|
$color-strong-flat-l-10: hsl(#{$color-strong-h}, #{$color-strong-s}, calc(#{$color-strong-l} - #{$flat-l-10-lp}));
|
|
@@ -467,7 +487,7 @@ $color-top-header-tran-40: hsla(#{$color-top-header-h}, #{$color-top-header-s},
|
|
|
467
487
|
$color-top-header-tran-30: hsla(#{$color-top-header-h}, #{$color-top-header-s}, #{$color-top-header-l}, 0.12);
|
|
468
488
|
$color-top-header-tran-20: hsla(#{$color-top-header-h}, #{$color-top-header-s}, #{$color-top-header-l}, 0.08);
|
|
469
489
|
$color-top-header-tran-10: hsla(#{$color-top-header-h}, #{$color-top-header-s}, #{$color-top-header-l}, 0.04);
|
|
470
|
-
$color-top-header-tran-
|
|
490
|
+
$color-top-header-tran-00: hsla(#{$color-top-header-h}, #{$color-top-header-s}, #{$color-top-header-l}, 0);
|
|
471
491
|
// Flat colors.
|
|
472
492
|
$color-top-header-flat-l-20: hsl(#{$color-top-header-h}, #{$color-top-header-s}, calc(#{$color-top-header-l} - #{$flat-l-20-lp}));
|
|
473
493
|
$color-top-header-flat-l-10: hsl(#{$color-top-header-h}, #{$color-top-header-s}, calc(#{$color-top-header-l} - #{$flat-l-10-lp}));
|
|
@@ -495,7 +515,7 @@ $color-qs-tran-40: hsla(#{$color-qs-h}, #{$color-qs-s}, #{$color-qs-l}, 0.16);
|
|
|
495
515
|
$color-qs-tran-30: hsla(#{$color-qs-h}, #{$color-qs-s}, #{$color-qs-l}, 0.12);
|
|
496
516
|
$color-qs-tran-20: hsla(#{$color-qs-h}, #{$color-qs-s}, #{$color-qs-l}, 0.08);
|
|
497
517
|
$color-qs-tran-10: hsla(#{$color-qs-h}, #{$color-qs-s}, #{$color-qs-l}, 0.04);
|
|
498
|
-
$color-qs-tran-
|
|
518
|
+
$color-qs-tran-00: hsla(#{$color-qs-h}, #{$color-qs-s}, #{$color-qs-l}, 0);
|
|
499
519
|
// Flat colors.
|
|
500
520
|
$color-qs-flat-l-20: hsl(#{$color-qs-h}, #{$color-qs-s}, calc(#{$color-qs-l} - #{$flat-l-20-lp}));
|
|
501
521
|
$color-qs-flat-l-10: hsl(#{$color-qs-h}, #{$color-qs-s}, calc(#{$color-qs-l} - #{$flat-l-10-lp}));
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/addon-docs";
|
|
2
|
+
|
|
3
|
+
import { componentWrapperDecorator } from "@storybook/angular";
|
|
4
|
+
|
|
5
|
+
import BorderRadius from "./borderRadius.component";
|
|
6
|
+
|
|
7
|
+
<Meta title="Abstracts/Border Radius" component={BorderRadius}
|
|
8
|
+
decorators={[
|
|
9
|
+
componentWrapperDecorator(
|
|
10
|
+
(story) => `<div class="this-max-width">${story}</div>`
|
|
11
|
+
),
|
|
12
|
+
]}
|
|
13
|
+
/>
|
|
14
|
+
|
|
15
|
+
export const Template = (args) => ({ props: args });
|
|
16
|
+
|
|
17
|
+
# Border Radius
|
|
18
|
+
|
|
19
|
+
You can use the border radius as a class
|
|
20
|
+
|
|
21
|
+
- `.border-radius-sm`
|
|
22
|
+
- `.border-radius-md`
|
|
23
|
+
- `.border-radius-lg`
|
|
24
|
+
- `.border-radius-xl`
|
|
25
|
+
|
|
26
|
+
Like so `↓`
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<div class="border-radius-md">
|
|
30
|
+
<!-- ... -->
|
|
31
|
+
</div>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Or or as a variable
|
|
35
|
+
|
|
36
|
+
- `variables.$border-radius-sm`
|
|
37
|
+
- `variables.$border-radius-md`
|
|
38
|
+
- `variables.$border-radius-lg`
|
|
39
|
+
- `variables.$border-radius-xl`
|
|
40
|
+
|
|
41
|
+
Like so `↓`
|
|
42
|
+
|
|
43
|
+
```css
|
|
44
|
+
// Make sure you call the `variables.scss` at the top of the file
|
|
45
|
+
@use "@pepperi-addons/ngx-lib/src/core/style/abstracts/variables";
|
|
46
|
+
|
|
47
|
+
.losing-my-edge {
|
|
48
|
+
border-radius: variables.$border-radius-sm;
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
##### For the most part you should use the `border-radius-md` size
|
|
52
|
+
|
|
53
|
+
## Example
|
|
54
|
+
|
|
55
|
+
<Story name="Border Radius" args={{
|
|
56
|
+
storyIndex: 1,
|
|
57
|
+
}}>
|
|
58
|
+
{Template.bind({})}
|
|
59
|
+
</Story>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/addon-docs";
|
|
2
|
+
|
|
3
|
+
import Breakpoints from "./breakpoints.component";
|
|
4
|
+
|
|
5
|
+
<Meta title="Abstracts/Breakpoints" component={Breakpoints} />
|
|
6
|
+
|
|
7
|
+
export const Template = (args) => ({ props: args });
|
|
8
|
+
|
|
9
|
+
# Breakpoints
|
|
10
|
+
|
|
11
|
+
The see the breakpoints in action decrease and increase your viewport
|
|
12
|
+
|
|
13
|
+
These are the breakpoints `↓`
|
|
14
|
+
|
|
15
|
+
```css
|
|
16
|
+
$screen-max-size-2xs: 460px;
|
|
17
|
+
$screen-max-size-xs: 599px;
|
|
18
|
+
$screen-max-size-sm: 959px;
|
|
19
|
+
$screen-max-size-md: 1279px;
|
|
20
|
+
$screen-max-size-lg: 1919px;
|
|
21
|
+
$screen-max-size-xl: 5000px;
|
|
22
|
+
```
|
|
23
|
+
Use them like so `↓`
|
|
24
|
+
|
|
25
|
+
```css
|
|
26
|
+
@media (max-width: variables.$screen-max-size-xs) {
|
|
27
|
+
...
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
## Example
|
|
31
|
+
|
|
32
|
+
<Story name="Breakpoints" args={{
|
|
33
|
+
storyIndex: 1,
|
|
34
|
+
}}>
|
|
35
|
+
{Template.bind({})}
|
|
36
|
+
</Story>
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/addon-docs";
|
|
2
|
+
|
|
3
|
+
import Colors from "./colors.component";
|
|
4
|
+
|
|
5
|
+
<Meta title="Abstracts/Colors" component={Colors} />
|
|
6
|
+
|
|
7
|
+
export const Template = (args) => ({ props: args });
|
|
8
|
+
|
|
9
|
+
# Colors
|
|
10
|
+
|
|
11
|
+
Pepperi design system has its pair share of color set with semantic naming (not by color name)
|
|
12
|
+
|
|
13
|
+
You can see them all here
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
### Text colors
|
|
18
|
+
|
|
19
|
+
You can use a functions to use the `color-text` like so `↓`
|
|
20
|
+
|
|
21
|
+
```css
|
|
22
|
+
// Make sure you call the `functions.scss` at the top of the file
|
|
23
|
+
@use "@pepperi-addons/ngx-lib/src/core/style/abstracts/functions";
|
|
24
|
+
|
|
25
|
+
color: functions.get-pep-color(color-text, color-main);
|
|
26
|
+
```
|
|
27
|
+
In the function, the 1st argument is `color-text`, and for the 2nd argument use one of the following:
|
|
28
|
+
|
|
29
|
+
- `color-main`
|
|
30
|
+
- `color-dimmed`
|
|
31
|
+
- `color-disabled`
|
|
32
|
+
- `color-invert`
|
|
33
|
+
- `color-link`
|
|
34
|
+
- `color-link`
|
|
35
|
+
- `color-link`
|
|
36
|
+
- `color-success`
|
|
37
|
+
- `color-caution`
|
|
38
|
+
|
|
39
|
+
<Story name="Text colors" args={{
|
|
40
|
+
storyIndex: 1,
|
|
41
|
+
}}>
|
|
42
|
+
{Template.bind({})}
|
|
43
|
+
</Story>
|
|
44
|
+
|
|
45
|
+
### System colors
|
|
46
|
+
|
|
47
|
+
Like the example above you can use a functions to use the `color-system-primary` like so `↓`
|
|
48
|
+
|
|
49
|
+
```css
|
|
50
|
+
// Make sure you call the `functions.scss` at the top of the file
|
|
51
|
+
@use "@pepperi-addons/ngx-lib/src/core/style/abstracts/functions";
|
|
52
|
+
|
|
53
|
+
color: functions.get-pep-color(color-system-primary, color-base);
|
|
54
|
+
```
|
|
55
|
+
In the function, the 1st argument is `color-system-primary`, and for the 2nd argument use one of the following:
|
|
56
|
+
|
|
57
|
+
- `color-tran-00`
|
|
58
|
+
- `color-tran-10`
|
|
59
|
+
- `color-tran-20`
|
|
60
|
+
- `color-tran-30`
|
|
61
|
+
- `color-tran-40`
|
|
62
|
+
- `color-tran-50`
|
|
63
|
+
- `color-tran-60`
|
|
64
|
+
- `color-tran-70`
|
|
65
|
+
- `color-tran-80`
|
|
66
|
+
- `color-tran-90`
|
|
67
|
+
- `color-flat-l-20`
|
|
68
|
+
- `color-flat-l-10`
|
|
69
|
+
- `color-base`
|
|
70
|
+
- `color-flat-r-20`
|
|
71
|
+
- `color-flat-r-30`
|
|
72
|
+
- `color-flat-r-40`
|
|
73
|
+
|
|
74
|
+
<Story name="System colors" args={{
|
|
75
|
+
storyIndex: 2,
|
|
76
|
+
}}>
|
|
77
|
+
{Template.bind({})}
|
|
78
|
+
</Story>
|
|
79
|
+
|
|
80
|
+
### Inverted system colors
|
|
81
|
+
|
|
82
|
+
You can use them like the system color above but with `color-system-primary-invert` as the 1st argument
|
|
83
|
+
|
|
84
|
+
<Story name="Inverted system colors" args={{
|
|
85
|
+
storyIndex: 3,
|
|
86
|
+
}}>
|
|
87
|
+
{Template.bind({})}
|
|
88
|
+
</Story>
|
|
89
|
+
|
|
90
|
+
### Success colors
|
|
91
|
+
|
|
92
|
+
You can use them like the system color above but with `color-system-success` as the 1st argument
|
|
93
|
+
|
|
94
|
+
<Story name="Success colors" args={{
|
|
95
|
+
storyIndex: 4,
|
|
96
|
+
}}>
|
|
97
|
+
{Template.bind({})}
|
|
98
|
+
</Story>
|
|
99
|
+
|
|
100
|
+
### Caution colors
|
|
101
|
+
|
|
102
|
+
You can use them like the system color above but with `color-system-caution` as the 1st argument
|
|
103
|
+
|
|
104
|
+
<Story name="Caution colors" args={{
|
|
105
|
+
storyIndex: 5,
|
|
106
|
+
}}>
|
|
107
|
+
{Template.bind({})}
|
|
108
|
+
</Story>
|
|
109
|
+
|
|
110
|
+
### Primary user colors
|
|
111
|
+
|
|
112
|
+
You can use them like the system color above but with `color-user-primary` as the 1st argument
|
|
113
|
+
|
|
114
|
+
<Story name="Primary user colors" args={{
|
|
115
|
+
storyIndex: 6,
|
|
116
|
+
}}>
|
|
117
|
+
{Template.bind({})}
|
|
118
|
+
</Story>
|
|
119
|
+
|
|
120
|
+
### Secondary user colors
|
|
121
|
+
|
|
122
|
+
You can use them like the system color above but with `color-user-secondary` as the 1st argument
|
|
123
|
+
|
|
124
|
+
<Story name="Secondary user colors" args={{
|
|
125
|
+
storyIndex: 7,
|
|
126
|
+
}}>
|
|
127
|
+
{Template.bind({})}
|
|
128
|
+
</Story>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/addon-docs";
|
|
2
|
+
|
|
3
|
+
import Shadows from "./shadows.component";
|
|
4
|
+
|
|
5
|
+
<Meta title="Abstracts/Shadows" component={Shadows} />
|
|
6
|
+
|
|
7
|
+
export const Template = (args) => ({ props: args });
|
|
8
|
+
|
|
9
|
+
# Shadows
|
|
10
|
+
|
|
11
|
+
Here are the available shadow classes
|
|
12
|
+
|
|
13
|
+
- `.shadow-xs-xsoft`
|
|
14
|
+
- `.shadow-xs-soft`
|
|
15
|
+
- `.shadow-xs-regular`
|
|
16
|
+
- `.shadow-xs-hard`
|
|
17
|
+
- `.shadow-sm-xsoft`
|
|
18
|
+
- `.shadow-sm-soft`
|
|
19
|
+
- `.shadow-sm-regular`
|
|
20
|
+
- `.shadow-sm-hard`
|
|
21
|
+
- `.shadow-md-xsoft`
|
|
22
|
+
- `.shadow-md-soft`
|
|
23
|
+
- `.shadow-md-regular`
|
|
24
|
+
- `.shadow-md-hard`
|
|
25
|
+
- `.shadow-lg-xsoft`
|
|
26
|
+
- `.shadow-lg-soft`
|
|
27
|
+
- `.shadow-lg-regular`
|
|
28
|
+
- `.shadow-lg-hard`
|
|
29
|
+
- `.shadow-xl-xsoft`
|
|
30
|
+
- `.shadow-xl-soft`
|
|
31
|
+
- `.shadow-xl-regular`
|
|
32
|
+
- `.shadow-xl-hard`
|
|
33
|
+
|
|
34
|
+
Use them like so `↓`
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<div class="shadow-xl-soft">
|
|
38
|
+
<!-- ... -->
|
|
39
|
+
</div>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
You can also use the as variable function
|
|
43
|
+
|
|
44
|
+
- `functions.get-pep-shadow(shadow-xs, xsoft | soft | regular | hard);`
|
|
45
|
+
- `functions.get-pep-shadow(shadow-sm, xsoft | soft | regular | hard);`
|
|
46
|
+
- `functions.get-pep-shadow(shadow-md, xsoft | soft | regular | hard);`
|
|
47
|
+
- `functions.get-pep-shadow(shadow-lg, xsoft | soft | regular | hard);`
|
|
48
|
+
- `functions.get-pep-shadow(shadow-xl, xsoft | soft | regular | hard);`
|
|
49
|
+
|
|
50
|
+
Like so `↓`
|
|
51
|
+
|
|
52
|
+
```css
|
|
53
|
+
// Make sure you call the `functions.scss` at the top of the file
|
|
54
|
+
@use "@pepperi-addons/ngx-lib/src/core/style/abstracts/functions";
|
|
55
|
+
|
|
56
|
+
.burn-my-shadow {
|
|
57
|
+
box-shadow: : functions.get-pep-shadow(shadow-xl, hard);
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Example
|
|
61
|
+
|
|
62
|
+
<Story
|
|
63
|
+
name="Shadows"
|
|
64
|
+
args={{
|
|
65
|
+
storyIndex: 1,
|
|
66
|
+
}}
|
|
67
|
+
>
|
|
68
|
+
{Template.bind({})}
|
|
69
|
+
</Story>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/addon-docs";
|
|
2
|
+
|
|
3
|
+
import Spacing from "./spacing.component";
|
|
4
|
+
|
|
5
|
+
<Meta title="Abstracts/Spacing" component={Spacing} />
|
|
6
|
+
|
|
7
|
+
export const Template = (args) => ({ props: args });
|
|
8
|
+
|
|
9
|
+
# Spacing
|
|
10
|
+
|
|
11
|
+
Here are the available spacing vars, see them play out in the box below
|
|
12
|
+
|
|
13
|
+
- `$spacing-2xs`
|
|
14
|
+
- `$spacing-xs`
|
|
15
|
+
- `$spacing-sm`
|
|
16
|
+
- `$spacing-md`
|
|
17
|
+
- `$spacing-lg`
|
|
18
|
+
- `$spacing-xl`
|
|
19
|
+
- `$spacing-xl2`
|
|
20
|
+
- `$spacing-xl3`
|
|
21
|
+
- `$spacing-xl4`
|
|
22
|
+
- `$spacing-xl5`
|
|
23
|
+
- `$spacing-xl6`
|
|
24
|
+
- `$spacing-xl7`
|
|
25
|
+
- `$spacing-xl8`
|
|
26
|
+
- `$spacing-xl9`
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
Use them like so `↓`
|
|
30
|
+
|
|
31
|
+
```css
|
|
32
|
+
// Make sure you call the `variables.scss` at the top of the file
|
|
33
|
+
@use "@pepperi-addons/ngx-lib/src/core/style/abstracts/variables";
|
|
34
|
+
|
|
35
|
+
.size-class {
|
|
36
|
+
width: variables.$spacing-lg;
|
|
37
|
+
height: variables.$spacing-xl;
|
|
38
|
+
padding: variables.$spacing-xs;
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
> You can use `calc` to reach a bigger size - here we reach a 512px wide class
|
|
43
|
+
|
|
44
|
+
```css
|
|
45
|
+
.widddde {
|
|
46
|
+
width: calc(variables.$spacing-lg * 4);
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
## Example
|
|
51
|
+
|
|
52
|
+
<Story name="Spacing" args={{
|
|
53
|
+
storyIndex: 1,
|
|
54
|
+
}}>
|
|
55
|
+
{Template.bind({})}
|
|
56
|
+
</Story>
|
|
57
|
+
|
|
58
|
+
BTW, these are the vaules of the spacing `↓`
|
|
59
|
+
|
|
60
|
+
| Name | In rems | In PX on base size (1rem=16px) |
|
|
61
|
+
|:---|:---|:---|
|
|
62
|
+
|`$spacing-2xs` | 0.125rem | 2px |
|
|
63
|
+
|`$spacing-xs` | 0.25rem | 4px |
|
|
64
|
+
|`$spacing-sm` | 0.5rem | 8px |
|
|
65
|
+
|`$spacing-md` | 0.75rem | 12px |
|
|
66
|
+
|`$spacing-lg` | 1rem | 16px |
|
|
67
|
+
|`$spacing-xl` | 1.5rem | 24px |
|
|
68
|
+
|`$spacing-xl2` | 2rem | 32px |
|
|
69
|
+
|`$spacing-xl3` | 2.5rem | 40px |
|
|
70
|
+
|`$spacing-xl4` | 3rem | 48px |
|
|
71
|
+
|`$spacing-xl5` | 3.5rem | 56px |
|
|
72
|
+
|`$spacing-xl6` | 5rem | 80px |
|
|
73
|
+
|`$spacing-xl7` | 6rem | 96px |
|
|
74
|
+
|`$spacing-xl8` | 8rem | 128px |
|
|
75
|
+
|`$spacing-xl9` | 16rem | 256px |
|