@pareto-engineering/design-system 4.0.0-alpha.4 → 4.0.0-alpha.5

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 (121) hide show
  1. package/dist/cjs/a/ContentTree/ContentTree.js +2 -2
  2. package/dist/cjs/a/Conversation/Conversation.js +1 -1
  3. package/dist/cjs/a/DotInfo/DotInfo.js +1 -1
  4. package/dist/cjs/a/Figure/Figure.js +1 -1
  5. package/dist/cjs/a/HamburgerButton/HamburgerButton.js +1 -1
  6. package/dist/cjs/a/IconList/IconList.js +1 -1
  7. package/dist/cjs/a/Label/Label.js +1 -1
  8. package/dist/cjs/a/LoadingCircle/LoadingCircle.js +1 -1
  9. package/dist/cjs/a/People/People.js +1 -1
  10. package/dist/cjs/a/Popover/Popover.js +2 -2
  11. package/dist/cjs/a/ProgressBar/ProgressBar.js +1 -1
  12. package/dist/cjs/a/Quote/Quote.js +1 -1
  13. package/dist/cjs/a/SVG/SVG.js +1 -1
  14. package/dist/cjs/a/SnapScroller/SnapScroller.js +1 -1
  15. package/dist/cjs/a/Spinner/Spinner.js +1 -1
  16. package/dist/cjs/a/Timestamp/Timestamp.js +1 -1
  17. package/dist/cjs/b/Button/Button.js +2 -1
  18. package/dist/cjs/b/Logo/Logo.js +1 -1
  19. package/dist/cjs/b/Page/Page.js +1 -1
  20. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +1 -1
  21. package/dist/cjs/b/SocialMediaButton/styles.scss +1 -1
  22. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +1 -1
  23. package/dist/cjs/b/Title/Title.js +4 -1
  24. package/dist/cjs/c/ContentSlides/ContentSlides.js +2 -2
  25. package/dist/cjs/c/Modal/Modal.js +1 -1
  26. package/dist/cjs/c/Modal/styles.scss +2 -1
  27. package/dist/cjs/c/Shortener/Shortener.js +1 -1
  28. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -1
  29. package/dist/cjs/f/FormInput/FormInput.js +1 -1
  30. package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
  31. package/dist/cjs/f/common/Description/Description.js +1 -1
  32. package/dist/cjs/f/common/Label/Label.js +1 -1
  33. package/dist/cjs/f/fields/Checkbox/Checkbox.js +1 -1
  34. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  35. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +1 -1
  36. package/dist/cjs/f/fields/QueryCombobox/styles.scss +5 -4
  37. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +1 -1
  38. package/dist/cjs/f/fields/SelectInput/SelectInput.js +1 -1
  39. package/dist/cjs/f/fields/TextInput/TextInput.js +1 -1
  40. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +1 -1
  41. package/dist/es/a/ContentTree/ContentTree.js +3 -3
  42. package/dist/es/a/Conversation/Conversation.js +2 -2
  43. package/dist/es/a/DotInfo/DotInfo.js +2 -2
  44. package/dist/es/a/Figure/Figure.js +2 -2
  45. package/dist/es/a/HamburgerButton/HamburgerButton.js +2 -2
  46. package/dist/es/a/IconList/IconList.js +2 -2
  47. package/dist/es/a/Label/Label.js +2 -2
  48. package/dist/es/a/LoadingCircle/LoadingCircle.js +2 -2
  49. package/dist/es/a/People/People.js +2 -2
  50. package/dist/es/a/Popover/Popover.js +3 -3
  51. package/dist/es/a/ProgressBar/ProgressBar.js +2 -2
  52. package/dist/es/a/Quote/Quote.js +2 -2
  53. package/dist/es/a/SVG/SVG.js +2 -2
  54. package/dist/es/a/SnapScroller/SnapScroller.js +2 -2
  55. package/dist/es/a/Spinner/Spinner.js +2 -2
  56. package/dist/es/a/Timestamp/Timestamp.js +2 -2
  57. package/dist/es/b/Button/Button.js +2 -1
  58. package/dist/es/b/Logo/Logo.js +2 -2
  59. package/dist/es/b/Page/Page.js +2 -2
  60. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +2 -2
  61. package/dist/es/b/SocialMediaButton/styles.scss +1 -1
  62. package/dist/es/b/ThemeSelector/ThemeSelector.js +2 -2
  63. package/dist/es/b/Title/Title.js +18 -12
  64. package/dist/es/c/ContentSlides/ContentSlides.js +3 -3
  65. package/dist/es/c/Modal/Modal.js +2 -2
  66. package/dist/es/c/Modal/styles.scss +2 -1
  67. package/dist/es/c/Shortener/Shortener.js +2 -2
  68. package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +2 -2
  69. package/dist/es/f/FormInput/FormInput.js +2 -2
  70. package/dist/es/f/common/Debugger/Debugger.js +2 -2
  71. package/dist/es/f/common/Description/Description.js +2 -2
  72. package/dist/es/f/common/Label/Label.js +2 -2
  73. package/dist/es/f/fields/Checkbox/Checkbox.js +2 -2
  74. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +2 -2
  75. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +2 -2
  76. package/dist/es/f/fields/QueryCombobox/styles.scss +5 -4
  77. package/dist/es/f/fields/RatingsInput/RatingsInput.js +2 -2
  78. package/dist/es/f/fields/SelectInput/SelectInput.js +2 -2
  79. package/dist/es/f/fields/TextInput/TextInput.js +2 -2
  80. package/dist/es/f/fields/TextareaInput/TextareaInput.js +2 -2
  81. package/package.json +5 -5
  82. package/src/ui/a/ContentTree/ContentTree.jsx +3 -3
  83. package/src/ui/a/Conversation/Conversation.jsx +2 -2
  84. package/src/ui/a/DotInfo/DotInfo.jsx +2 -2
  85. package/src/ui/a/Figure/Figure.jsx +2 -2
  86. package/src/ui/a/HamburgerButton/HamburgerButton.jsx +2 -2
  87. package/src/ui/a/IconList/IconList.jsx +2 -2
  88. package/src/ui/a/Label/Label.jsx +2 -2
  89. package/src/ui/a/LoadingCircle/LoadingCircle.jsx +2 -2
  90. package/src/ui/a/People/People.jsx +2 -2
  91. package/src/ui/a/Popover/Popover.jsx +3 -3
  92. package/src/ui/a/ProgressBar/ProgressBar.jsx +2 -2
  93. package/src/ui/a/Quote/Quote.jsx +2 -2
  94. package/src/ui/a/SVG/SVG.jsx +2 -2
  95. package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -2
  96. package/src/ui/a/Spinner/Spinner.jsx +2 -2
  97. package/src/ui/a/Timestamp/Timestamp.jsx +2 -2
  98. package/src/ui/b/Button/Button.jsx +2 -1
  99. package/src/ui/b/Logo/Logo.jsx +2 -2
  100. package/src/ui/b/Page/Page.jsx +2 -2
  101. package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -2
  102. package/src/ui/b/SocialMediaButton/styles.scss +1 -1
  103. package/src/ui/b/ThemeSelector/ThemeSelector.jsx +2 -2
  104. package/src/ui/b/Title/Title.jsx +30 -23
  105. package/src/ui/c/ContentSlides/ContentSlides.jsx +3 -3
  106. package/src/ui/c/Modal/Modal.jsx +2 -2
  107. package/src/ui/c/Modal/styles.scss +2 -1
  108. package/src/ui/c/Shortener/Shortener.jsx +2 -2
  109. package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -2
  110. package/src/ui/f/FormInput/FormInput.jsx +2 -2
  111. package/src/ui/f/common/Debugger/Debugger.jsx +2 -2
  112. package/src/ui/f/common/Description/Description.jsx +2 -2
  113. package/src/ui/f/common/Label/Label.jsx +2 -2
  114. package/src/ui/f/fields/Checkbox/Checkbox.jsx +2 -2
  115. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +2 -2
  116. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +2 -2
  117. package/src/ui/f/fields/QueryCombobox/styles.scss +5 -4
  118. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +2 -2
  119. package/src/ui/f/fields/SelectInput/SelectInput.jsx +2 -2
  120. package/src/ui/f/fields/TextInput/TextInput.jsx +2 -2
  121. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +2 -2
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect } from 'react'
4
+ import { useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -27,7 +27,7 @@ const Label = ({
27
27
  as:Wrapper,
28
28
  // ...otherProps
29
29
  }) => {
30
- useLayoutEffect(() => {
30
+ useInsertionEffect(() => {
31
31
  import('./styles.scss')
32
32
  }, [])
33
33
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect } from 'react'
4
+ import { useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -31,7 +31,7 @@ const Checkbox = ({
31
31
  optional,
32
32
  // ...otherProps
33
33
  }) => {
34
- useLayoutEffect(() => {
34
+ useInsertionEffect(() => {
35
35
  import('./styles.scss')
36
36
  }, [])
37
37
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect, memo } from 'react'
4
+ import { useInsertionEffect, memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -37,7 +37,7 @@ const ChoicesInput = ({
37
37
  disabled,
38
38
  // ...otherProps
39
39
  }) => {
40
- useLayoutEffect(() => {
40
+ useInsertionEffect(() => {
41
41
  import('./styles.scss')
42
42
  }, [])
43
43
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useState, useLayoutEffect } from 'react'
4
+ import { useState, useInsertionEffect } from 'react'
5
5
 
6
6
  import { useField } from 'formik'
7
7
 
@@ -37,7 +37,7 @@ const QueryCombobox = ({
37
37
  validate,
38
38
  // ...otherProps
39
39
  }) => {
40
- useLayoutEffect(() => {
40
+ useInsertionEffect(() => {
41
41
  import('./styles.scss')
42
42
  }, [])
43
43
 
@@ -1,6 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
 
3
3
  @use "@pareto-engineering/bem";
4
+ @use "sass:math";
4
5
 
5
6
  $default-input-padding: .75em .75em .55em;
6
7
  $default-padding: 1em;
@@ -26,7 +27,7 @@ $default-loading-circle-displacement: 1em;
26
27
  padding: 0;
27
28
 
28
29
  >.item {
29
- padding: $default-padding / 2;
30
+ padding: math.div($default-padding, 2);
30
31
 
31
32
  &.#{bem.$modifier-active} {
32
33
  background-color: var(--background2);
@@ -76,12 +77,12 @@ $default-loading-circle-displacement: 1em;
76
77
  >.selected-items {
77
78
  display: flex;
78
79
  flex-wrap: wrap;
79
- gap: $default-gap / 2;
80
- margin-bottom: $default-margin / 2;
80
+ gap: math.div($default-gap, 2);
81
+ margin-bottom: math.div($default-margin, 2);
81
82
 
82
83
  >.item {
83
84
  background-color: var(--main2);
84
- padding: $default-padding / 4;
85
+ padding: math.div($default-padding, 4);
85
86
 
86
87
  .close {
87
88
  font-size: calc(var(--s-3) * 1em);
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useState, useLayoutEffect, memo } from 'react'
4
+ import { useState, useInsertionEffect, memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -35,7 +35,7 @@ const RatingsInput = ({
35
35
  optional,
36
36
  // ...otherProps
37
37
  }) => {
38
- useLayoutEffect(() => {
38
+ useInsertionEffect(() => {
39
39
  import('./styles.scss')
40
40
  }, [])
41
41
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect, memo } from 'react'
4
+ import { useInsertionEffect, memo } from 'react'
5
5
 
6
6
  import { useField } from 'formik'
7
7
 
@@ -38,7 +38,7 @@ const SelectInput = ({
38
38
  autoComplete,
39
39
  // ...otherProps
40
40
  }) => {
41
- useLayoutEffect(() => {
41
+ useInsertionEffect(() => {
42
42
  import('./styles.scss')
43
43
  }, [])
44
44
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect, memo } from 'react'
4
+ import { useInsertionEffect, memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -38,7 +38,7 @@ const TextInput = ({
38
38
  autoComplete,
39
39
  // ...otherProps
40
40
  }) => {
41
- useLayoutEffect(() => {
41
+ useInsertionEffect(() => {
42
42
  import('./styles.scss')
43
43
  }, [])
44
44
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect, memo } from 'react'
4
+ import { useInsertionEffect, memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -40,7 +40,7 @@ const TextareaInput = ({
40
40
  resize,
41
41
  // ...otherProps
42
42
  }) => {
43
- useLayoutEffect(() => {
43
+ useInsertionEffect(() => {
44
44
  import('./styles.scss')
45
45
  }, [])
46
46