@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.
- package/dist/cjs/a/ContentTree/ContentTree.js +2 -2
- package/dist/cjs/a/Conversation/Conversation.js +1 -1
- package/dist/cjs/a/DotInfo/DotInfo.js +1 -1
- package/dist/cjs/a/Figure/Figure.js +1 -1
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +1 -1
- package/dist/cjs/a/IconList/IconList.js +1 -1
- package/dist/cjs/a/Label/Label.js +1 -1
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +1 -1
- package/dist/cjs/a/People/People.js +1 -1
- package/dist/cjs/a/Popover/Popover.js +2 -2
- package/dist/cjs/a/ProgressBar/ProgressBar.js +1 -1
- package/dist/cjs/a/Quote/Quote.js +1 -1
- package/dist/cjs/a/SVG/SVG.js +1 -1
- package/dist/cjs/a/SnapScroller/SnapScroller.js +1 -1
- package/dist/cjs/a/Spinner/Spinner.js +1 -1
- package/dist/cjs/a/Timestamp/Timestamp.js +1 -1
- package/dist/cjs/b/Button/Button.js +2 -1
- package/dist/cjs/b/Logo/Logo.js +1 -1
- package/dist/cjs/b/Page/Page.js +1 -1
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +1 -1
- package/dist/cjs/b/SocialMediaButton/styles.scss +1 -1
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +1 -1
- package/dist/cjs/b/Title/Title.js +4 -1
- package/dist/cjs/c/ContentSlides/ContentSlides.js +2 -2
- package/dist/cjs/c/Modal/Modal.js +1 -1
- package/dist/cjs/c/Modal/styles.scss +2 -1
- package/dist/cjs/c/Shortener/Shortener.js +1 -1
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -1
- package/dist/cjs/f/FormInput/FormInput.js +1 -1
- package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
- package/dist/cjs/f/common/Description/Description.js +1 -1
- package/dist/cjs/f/common/Label/Label.js +1 -1
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +5 -4
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +1 -1
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +1 -1
- package/dist/cjs/f/fields/TextInput/TextInput.js +1 -1
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +1 -1
- package/dist/es/a/ContentTree/ContentTree.js +3 -3
- package/dist/es/a/Conversation/Conversation.js +2 -2
- package/dist/es/a/DotInfo/DotInfo.js +2 -2
- package/dist/es/a/Figure/Figure.js +2 -2
- package/dist/es/a/HamburgerButton/HamburgerButton.js +2 -2
- package/dist/es/a/IconList/IconList.js +2 -2
- package/dist/es/a/Label/Label.js +2 -2
- package/dist/es/a/LoadingCircle/LoadingCircle.js +2 -2
- package/dist/es/a/People/People.js +2 -2
- package/dist/es/a/Popover/Popover.js +3 -3
- package/dist/es/a/ProgressBar/ProgressBar.js +2 -2
- package/dist/es/a/Quote/Quote.js +2 -2
- package/dist/es/a/SVG/SVG.js +2 -2
- package/dist/es/a/SnapScroller/SnapScroller.js +2 -2
- package/dist/es/a/Spinner/Spinner.js +2 -2
- package/dist/es/a/Timestamp/Timestamp.js +2 -2
- package/dist/es/b/Button/Button.js +2 -1
- package/dist/es/b/Logo/Logo.js +2 -2
- package/dist/es/b/Page/Page.js +2 -2
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +2 -2
- package/dist/es/b/SocialMediaButton/styles.scss +1 -1
- package/dist/es/b/ThemeSelector/ThemeSelector.js +2 -2
- package/dist/es/b/Title/Title.js +18 -12
- package/dist/es/c/ContentSlides/ContentSlides.js +3 -3
- package/dist/es/c/Modal/Modal.js +2 -2
- package/dist/es/c/Modal/styles.scss +2 -1
- package/dist/es/c/Shortener/Shortener.js +2 -2
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +2 -2
- package/dist/es/f/FormInput/FormInput.js +2 -2
- package/dist/es/f/common/Debugger/Debugger.js +2 -2
- package/dist/es/f/common/Description/Description.js +2 -2
- package/dist/es/f/common/Label/Label.js +2 -2
- package/dist/es/f/fields/Checkbox/Checkbox.js +2 -2
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +2 -2
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +2 -2
- package/dist/es/f/fields/QueryCombobox/styles.scss +5 -4
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +2 -2
- package/dist/es/f/fields/SelectInput/SelectInput.js +2 -2
- package/dist/es/f/fields/TextInput/TextInput.js +2 -2
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +2 -2
- package/package.json +5 -5
- package/src/ui/a/ContentTree/ContentTree.jsx +3 -3
- package/src/ui/a/Conversation/Conversation.jsx +2 -2
- package/src/ui/a/DotInfo/DotInfo.jsx +2 -2
- package/src/ui/a/Figure/Figure.jsx +2 -2
- package/src/ui/a/HamburgerButton/HamburgerButton.jsx +2 -2
- package/src/ui/a/IconList/IconList.jsx +2 -2
- package/src/ui/a/Label/Label.jsx +2 -2
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +2 -2
- package/src/ui/a/People/People.jsx +2 -2
- package/src/ui/a/Popover/Popover.jsx +3 -3
- package/src/ui/a/ProgressBar/ProgressBar.jsx +2 -2
- package/src/ui/a/Quote/Quote.jsx +2 -2
- package/src/ui/a/SVG/SVG.jsx +2 -2
- package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -2
- package/src/ui/a/Spinner/Spinner.jsx +2 -2
- package/src/ui/a/Timestamp/Timestamp.jsx +2 -2
- package/src/ui/b/Button/Button.jsx +2 -1
- package/src/ui/b/Logo/Logo.jsx +2 -2
- package/src/ui/b/Page/Page.jsx +2 -2
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -2
- package/src/ui/b/SocialMediaButton/styles.scss +1 -1
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +2 -2
- package/src/ui/b/Title/Title.jsx +30 -23
- package/src/ui/c/ContentSlides/ContentSlides.jsx +3 -3
- package/src/ui/c/Modal/Modal.jsx +2 -2
- package/src/ui/c/Modal/styles.scss +2 -1
- package/src/ui/c/Shortener/Shortener.jsx +2 -2
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -2
- package/src/ui/f/FormInput/FormInput.jsx +2 -2
- package/src/ui/f/common/Debugger/Debugger.jsx +2 -2
- package/src/ui/f/common/Description/Description.jsx +2 -2
- package/src/ui/f/common/Label/Label.jsx +2 -2
- package/src/ui/f/fields/Checkbox/Checkbox.jsx +2 -2
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +2 -2
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +2 -2
- package/src/ui/f/fields/QueryCombobox/styles.scss +5 -4
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +2 -2
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +2 -2
- package/src/ui/f/fields/TextInput/TextInput.jsx +2 -2
- 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 {
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
|
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
|
|
80
|
-
margin-bottom: $default-margin
|
|
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
|
|
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,
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
43
|
+
useInsertionEffect(() => {
|
|
44
44
|
import('./styles.scss')
|
|
45
45
|
}, [])
|
|
46
46
|
|