@pepperi-addons/ngx-lib 0.4.2-beta.7 → 0.4.2-beta.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/attachment/attachment.component.d.ts +11 -2
  2. package/button/button.component.d.ts +8 -8
  3. package/core/common/services/color.service.d.ts +1 -0
  4. package/core/common/services/file.service.d.ts +7 -2
  5. package/core/customization/customization.service.d.ts +3 -0
  6. package/dialog/dialog.service.d.ts +1 -0
  7. package/draggable-items/draggable-items.component.d.ts +3 -3
  8. package/draggable-items/draggable-items.module.d.ts +1 -1
  9. package/esm2020/attachment/attachment.component.mjs +38 -18
  10. package/esm2020/button/button.component.mjs +7 -7
  11. package/esm2020/chips/chips.component.mjs +2 -2
  12. package/esm2020/color/color-picker.component.mjs +1 -1
  13. package/esm2020/core/common/services/color.service.mjs +27 -1
  14. package/esm2020/core/common/services/file.service.mjs +57 -20
  15. package/esm2020/core/common/services/session.service.mjs +2 -1
  16. package/esm2020/core/customization/customization.model.mjs +7 -6
  17. package/esm2020/core/customization/customization.service.mjs +13 -4
  18. package/esm2020/core/http/services/http.service.mjs +1 -1
  19. package/esm2020/dialog/dialog.component.mjs +3 -3
  20. package/esm2020/dialog/dialog.service.mjs +22 -1
  21. package/esm2020/draggable-items/draggable-items.component.mjs +7 -7
  22. package/esm2020/draggable-items/draggable-items.module.mjs +6 -6
  23. package/esm2020/files-uploader/files-uploader.component.mjs +50 -45
  24. package/esm2020/form/field-generator.component.mjs +3 -3
  25. package/esm2020/form/form.component.mjs +4 -3
  26. package/esm2020/form/internal-field-generator.component.mjs +1 -1
  27. package/esm2020/form/internal-form.component.mjs +1 -1
  28. package/esm2020/form/internal-list.component.mjs +2 -2
  29. package/esm2020/image/image.component.mjs +32 -16
  30. package/esm2020/image/image.service.mjs +2 -4
  31. package/esm2020/images-filmstrip/images-filmstrip.component.mjs +2 -2
  32. package/esm2020/link/link.component.mjs +33 -58
  33. package/esm2020/list/list.component.mjs +74 -13
  34. package/esm2020/menu/menu.component.mjs +3 -3
  35. package/esm2020/quantity-selector/quantity-selector.component.mjs +20 -25
  36. package/esm2020/select/select.component.mjs +3 -3
  37. package/esm2020/select-panel/select-panel.component.mjs +2 -2
  38. package/esm2020/signature/public-api.mjs +2 -1
  39. package/esm2020/signature/signature-dialog.component.mjs +78 -0
  40. package/esm2020/signature/signature.component.mjs +117 -89
  41. package/esm2020/signature/signature.module.mjs +6 -5
  42. package/esm2020/skeleton-loader/pepperi-addons-ngx-lib-skeleton-loader.mjs +5 -0
  43. package/esm2020/skeleton-loader/public-api.mjs +6 -0
  44. package/esm2020/skeleton-loader/skeleton-loader.component.mjs +44 -0
  45. package/esm2020/skeleton-loader/skeleton-loader.module.mjs +24 -0
  46. package/esm2020/smart-filters/boolean-filter/boolean-filter.component.mjs +3 -3
  47. package/esm2020/smart-filters/number-filter/number-filter.component.mjs +2 -2
  48. package/esm2020/textbox/textbox.component.mjs +9 -3
  49. package/esm2020/top-bar/top-bar.component.mjs +2 -2
  50. package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs +37 -17
  51. package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs.map +1 -1
  52. package/fesm2015/pepperi-addons-ngx-lib-button.mjs +6 -6
  53. package/fesm2015/pepperi-addons-ngx-lib-button.mjs.map +1 -1
  54. package/fesm2015/pepperi-addons-ngx-lib-chips.mjs +2 -2
  55. package/fesm2015/pepperi-addons-ngx-lib-chips.mjs.map +1 -1
  56. package/fesm2015/pepperi-addons-ngx-lib-color.mjs.map +1 -1
  57. package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs +23 -2
  58. package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs.map +1 -1
  59. package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs +11 -11
  60. package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -1
  61. package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs +49 -44
  62. package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -1
  63. package/fesm2015/pepperi-addons-ngx-lib-form.mjs +8 -7
  64. package/fesm2015/pepperi-addons-ngx-lib-form.mjs.map +1 -1
  65. package/fesm2015/pepperi-addons-ngx-lib-image.mjs +32 -18
  66. package/fesm2015/pepperi-addons-ngx-lib-image.mjs.map +1 -1
  67. package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs +1 -1
  68. package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -1
  69. package/fesm2015/pepperi-addons-ngx-lib-link.mjs +32 -57
  70. package/fesm2015/pepperi-addons-ngx-lib-link.mjs.map +1 -1
  71. package/fesm2015/pepperi-addons-ngx-lib-list.mjs +73 -13
  72. package/fesm2015/pepperi-addons-ngx-lib-list.mjs.map +1 -1
  73. package/fesm2015/pepperi-addons-ngx-lib-menu.mjs +2 -2
  74. package/fesm2015/pepperi-addons-ngx-lib-menu.mjs.map +1 -1
  75. package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.mjs +19 -24
  76. package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -1
  77. package/fesm2015/pepperi-addons-ngx-lib-select-panel.mjs +2 -2
  78. package/fesm2015/pepperi-addons-ngx-lib-select-panel.mjs.map +1 -1
  79. package/fesm2015/pepperi-addons-ngx-lib-select.mjs +2 -2
  80. package/fesm2015/pepperi-addons-ngx-lib-select.mjs.map +1 -1
  81. package/fesm2015/pepperi-addons-ngx-lib-signature.mjs +205 -102
  82. package/fesm2015/pepperi-addons-ngx-lib-signature.mjs.map +1 -1
  83. package/fesm2015/pepperi-addons-ngx-lib-skeleton-loader.mjs +78 -0
  84. package/fesm2015/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +1 -0
  85. package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs +3 -3
  86. package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -1
  87. package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs +8 -2
  88. package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs.map +1 -1
  89. package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs +2 -2
  90. package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -1
  91. package/fesm2015/pepperi-addons-ngx-lib.mjs +101 -27
  92. package/fesm2015/pepperi-addons-ngx-lib.mjs.map +1 -1
  93. package/fesm2020/pepperi-addons-ngx-lib-attachment.mjs +37 -17
  94. package/fesm2020/pepperi-addons-ngx-lib-attachment.mjs.map +1 -1
  95. package/fesm2020/pepperi-addons-ngx-lib-button.mjs +6 -6
  96. package/fesm2020/pepperi-addons-ngx-lib-button.mjs.map +1 -1
  97. package/fesm2020/pepperi-addons-ngx-lib-chips.mjs +2 -2
  98. package/fesm2020/pepperi-addons-ngx-lib-chips.mjs.map +1 -1
  99. package/fesm2020/pepperi-addons-ngx-lib-color.mjs.map +1 -1
  100. package/fesm2020/pepperi-addons-ngx-lib-dialog.mjs +23 -2
  101. package/fesm2020/pepperi-addons-ngx-lib-dialog.mjs.map +1 -1
  102. package/fesm2020/pepperi-addons-ngx-lib-draggable-items.mjs +11 -11
  103. package/fesm2020/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -1
  104. package/fesm2020/pepperi-addons-ngx-lib-files-uploader.mjs +49 -44
  105. package/fesm2020/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -1
  106. package/fesm2020/pepperi-addons-ngx-lib-form.mjs +8 -7
  107. package/fesm2020/pepperi-addons-ngx-lib-form.mjs.map +1 -1
  108. package/fesm2020/pepperi-addons-ngx-lib-image.mjs +32 -18
  109. package/fesm2020/pepperi-addons-ngx-lib-image.mjs.map +1 -1
  110. package/fesm2020/pepperi-addons-ngx-lib-images-filmstrip.mjs +1 -1
  111. package/fesm2020/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -1
  112. package/fesm2020/pepperi-addons-ngx-lib-link.mjs +32 -57
  113. package/fesm2020/pepperi-addons-ngx-lib-link.mjs.map +1 -1
  114. package/fesm2020/pepperi-addons-ngx-lib-list.mjs +73 -12
  115. package/fesm2020/pepperi-addons-ngx-lib-list.mjs.map +1 -1
  116. package/fesm2020/pepperi-addons-ngx-lib-menu.mjs +2 -2
  117. package/fesm2020/pepperi-addons-ngx-lib-menu.mjs.map +1 -1
  118. package/fesm2020/pepperi-addons-ngx-lib-quantity-selector.mjs +19 -24
  119. package/fesm2020/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -1
  120. package/fesm2020/pepperi-addons-ngx-lib-select-panel.mjs +2 -2
  121. package/fesm2020/pepperi-addons-ngx-lib-select-panel.mjs.map +1 -1
  122. package/fesm2020/pepperi-addons-ngx-lib-select.mjs +2 -2
  123. package/fesm2020/pepperi-addons-ngx-lib-select.mjs.map +1 -1
  124. package/fesm2020/pepperi-addons-ngx-lib-signature.mjs +201 -102
  125. package/fesm2020/pepperi-addons-ngx-lib-signature.mjs.map +1 -1
  126. package/fesm2020/pepperi-addons-ngx-lib-skeleton-loader.mjs +76 -0
  127. package/fesm2020/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +1 -0
  128. package/fesm2020/pepperi-addons-ngx-lib-smart-filters.mjs +3 -3
  129. package/fesm2020/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -1
  130. package/fesm2020/pepperi-addons-ngx-lib-textbox.mjs +8 -2
  131. package/fesm2020/pepperi-addons-ngx-lib-textbox.mjs.map +1 -1
  132. package/fesm2020/pepperi-addons-ngx-lib-top-bar.mjs +2 -2
  133. package/fesm2020/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -1
  134. package/fesm2020/pepperi-addons-ngx-lib.mjs +101 -27
  135. package/fesm2020/pepperi-addons-ngx-lib.mjs.map +1 -1
  136. package/files-uploader/files-uploader.component.d.ts +7 -4
  137. package/image/image.component.d.ts +11 -3
  138. package/link/link.component.d.ts +23 -27
  139. package/list/list.component.d.ts +4 -0
  140. package/menu/menu.component.d.ts +1 -1
  141. package/package.json +10 -2
  142. package/quantity-selector/quantity-selector.component.d.ts +0 -2
  143. package/signature/public-api.d.ts +1 -0
  144. package/signature/signature-dialog.component.d.ts +29 -0
  145. package/signature/signature.component.d.ts +7 -16
  146. package/signature/signature.module.d.ts +16 -15
  147. package/skeleton-loader/index.d.ts +5 -0
  148. package/skeleton-loader/public-api.d.ts +2 -0
  149. package/skeleton-loader/skeleton-loader.component.d.ts +20 -0
  150. package/skeleton-loader/skeleton-loader.component.theme.scss +15 -0
  151. package/skeleton-loader/skeleton-loader.module.d.ts +9 -0
  152. package/src/core/style/abstracts/AbstractsIntro.stories.mdx +7 -0
  153. package/src/core/style/abstracts/functions.scss +11 -11
  154. package/src/core/style/abstracts/mixins.scss +9 -6
  155. package/src/core/style/abstracts/variables.scss +38 -18
  156. package/src/core/style/base/BorderRadius.stories.mdx +59 -0
  157. package/src/core/style/base/Breakpoints.stories.mdx +36 -0
  158. package/src/core/style/base/Colors.stories.mdx +128 -0
  159. package/src/core/style/base/Shadows.stories.mdx +69 -0
  160. package/src/core/style/base/Spacing.stories.mdx +75 -0
  161. package/src/core/style/base/States.stories.mdx +62 -0
  162. package/src/core/style/base/Typography.stories.mdx +89 -0
  163. package/src/core/style/base/ZIndex.stories.mdx +47 -0
  164. package/src/core/style/base/base.scss +8 -10
  165. package/src/core/style/base/borderRadius.component.ts +27 -0
  166. package/src/core/style/base/breakpoints.component.ts +14 -0
  167. package/src/core/style/base/colors.component.ts +174 -0
  168. package/src/core/style/base/shadows.component.ts +90 -0
  169. package/src/core/style/base/spacing.component.ts +71 -0
  170. package/src/core/style/base/states.component.ts +84 -0
  171. package/src/core/style/base/typography.component.ts +94 -0
  172. package/src/core/style/base/typography.scss +56 -49
  173. package/src/core/style/base/zIndex.component.ts +25 -0
  174. package/src/core/style/components/file.scss +4 -4
  175. package/src/core/style/components/general.scss +5 -0
@@ -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.75rem);
50
- $lh-xs: var(--pep-line-height-xs, 1rem);
51
- $lh-sm: var(--pep-line-height-sm, 1.25rem);
52
- $lh-md: var(--pep-line-height-md, 1.5rem);
53
- $lh-lg: var(--pep-line-height-lg, 1.75rem);
54
- $lh-xl: var(--pep-line-height-xl, 2rem);
55
- $lh-2xl: var(--pep-line-height-2xl, 2.25rem);
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-0: hsla(#{$color-system-primary-invert-h}, #{$color-system-primary-invert-s}, #{$color-system-primary-invert-l}, 0);
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-0: hsla(#{$color-system-primary-h}, #{$color-system-primary-s}, #{$color-system-primary-l}, 0);
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-0: hsla(#{$color-system-success-h}, #{$color-system-success-s}, #{$color-system-success-l}, 0);
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-0: hsla(#{$color-system-caution-h}, #{$color-system-caution-s}, #{$color-system-caution-l}, 0);
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-0: hsla(#{$color-user-primary-h}, #{$color-user-primary-s}, #{$color-user-primary-l}, 0);
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-0: hsla(#{$color-user-secondary-h}, #{$color-user-secondary-s}, #{$color-user-secondary-l}, 0);
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-0: hsla(#{$color-weak-h}, #{$color-weak-s}, #{$color-weak-l}, 0);
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-0: hsla(#{$color-regular-h}, #{$color-regular-s}, #{$color-regular-l}, 0);
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-0: hsla(#{$color-strong-h}, #{$color-strong-s}, #{$color-strong-l}, 0);
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-0: hsla(#{$color-top-header-h}, #{$color-top-header-s}, #{$color-top-header-l}, 0);
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-0: hsla(#{$color-qs-h}, #{$color-qs-s}, #{$color-qs-l}, 0);
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 |
@@ -0,0 +1,62 @@
1
+ import { Meta, Story } from "@storybook/addon-docs";
2
+
3
+ import States from "./states.component";
4
+
5
+ <Meta title="Abstracts/States" component={States} />
6
+
7
+ export const Template = (args) => ({ props: args });
8
+
9
+ # States
10
+
11
+ We use states all-over-the-place, from buttons to inputs, basically everywhere there's a user interaction.
12
+
13
+ > Even though, it's rare to use states as-is
14
+
15
+ States have 3 different styles
16
+
17
+ - `weak`
18
+ - `regualr`
19
+ - `strong`
20
+
21
+ Each of the styles have its common interactive states
22
+
23
+ - deafult
24
+ - hover
25
+ - active
26
+ - foucs
27
+ - read only / disabled
28
+
29
+ You can use it as a class
30
+
31
+ ```html
32
+ <button class="pep-button weak success"></button>
33
+ ```
34
+
35
+ Or throw a mixin in a class `↓`
36
+
37
+ ```css
38
+ // Make sure you call the `mixins.scss` at the top of the file
39
+ @use "@pepperi-addons/ngx-lib/src/core/style/abstracts/mixins";
40
+
41
+ .state-is-weak {
42
+ @include mixins.pep-button-states(weak);
43
+ // You do not have to include the (weak), it's the default
44
+ }
45
+ .state-is-regular {
46
+ @include mixins.pep-button-states(regular);
47
+ }
48
+ .state-is-strong {
49
+ @include mixins.pep-button-states(strong);
50
+ }
51
+ ```
52
+ ## Example
53
+
54
+ <Story name="States" args={{
55
+ storyIndex: 1,
56
+ }}>
57
+ {Template.bind({})}
58
+ </Story>
59
+
60
+ #### Todo
61
+
62
+ - [ ] think of abetter name then `pep-button-states`... should it be just `pep-states`?
@@ -0,0 +1,89 @@
1
+ import { Meta, Story } from "@storybook/addon-docs";
2
+
3
+ import Typography from "./typography.component";
4
+
5
+ <Meta title="Abstracts/Typography" component={Typography} />
6
+
7
+ export const Template = (args) => ({ props: args });
8
+
9
+ # Typography
10
+
11
+ Here you can find typography styles and colors by **classes** or **tags**
12
+
13
+ ## Examples
14
+
15
+ ### Headings by class
16
+
17
+ Use like this ` ↓ `
18
+
19
+ ```html
20
+ <span class="title-md">This is a MD title</span>
21
+ ```
22
+
23
+ <Story name="Headings by class" args={{
24
+ storyIndex: 1,
25
+ }}>
26
+ {Template.bind({})}
27
+ </Story>
28
+
29
+
30
+ ### Headings by tag
31
+
32
+ Use like this ` ↓ `
33
+
34
+ ```html
35
+ <h1>This is an h1 tag</h1>
36
+ ```
37
+
38
+ <Story name="Headings by tag" args={{
39
+ storyIndex: 2,
40
+ }}>
41
+ {Template.bind({})}
42
+ </Story>
43
+
44
+ ### Body text styles & tag
45
+
46
+ Use like this ` ↓ `
47
+
48
+ ```html
49
+ <p class="body-md">This is a MD title</p>
50
+ ```
51
+
52
+ <Story name="Body text styles & tag" args={{
53
+ storyIndex: 3,
54
+ }}>
55
+ {Template.bind({})}
56
+ </Story>
57
+
58
+ ### Text color styles
59
+
60
+ Use like this ` ↓ `
61
+
62
+ ```html
63
+ <p class="color-main">...</p>
64
+ ```
65
+
66
+ <Story name="Text color styles" args={{
67
+ storyIndex: 4,
68
+ }}>
69
+ {Template.bind({})}
70
+ </Story>
71
+
72
+ ### Stating the obvious
73
+
74
+ You can always mix tags/classes for better semantics or look and feel
75
+
76
+ Like so ` ↓ `
77
+
78
+ ```html
79
+ <p class="color-user-primary body-md">...</p>
80
+ <h4 class="color-dimmed body-xl">...</h4>
81
+ <span class="color-caution title-md">...</span>
82
+ ```
83
+
84
+ <Story name="Stating the obvious" args={{
85
+ storyIndex: 5,
86
+ }}>
87
+ {Template.bind({})}
88
+ </Story>
89
+