From 2755376cdcae3b41e2f4ce51f7d8cd93c2f73de9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 12 Sep 2023 12:10:48 +0200 Subject: [PATCH] feat(Stack): add new parameters width and flex --- .changeset/spotty-cups-appear.md | 6 + .../__snapshots__/index.spec.tsx.snap | 26 +-- .../__snapshots__/index.spec.tsx.snap | 32 +-- .../__snapshots__/index.spec.tsx.snap | 32 +-- .../__snapshots__/index.spec.tsx.snap | 16 +- .../__snapshots__/index.spec.tsx.snap | 32 +-- .../__snapshots__/index.spec.tsx.snap | 24 +-- .../__snapshots__/index.spec.tsx.snap | 20 +- .../__snapshots__/index.spec.tsx.snap | 16 +- .../__snapshots__/index.spec.tsx.snap | 8 +- .../__snapshots__/index.spec.tsx.snap | 16 +- .../__snapshots__/index.spec.tsx.snap | 16 +- .../__snapshots__/index.spec.tsx.snap | 36 ++-- .../__snapshots__/index.test.tsx.snap | 160 +++++++------- .../__tests__/__snapshots__/index.tsx.snap | 112 +++++----- .../__tests__/__snapshots__/index.tsx.snap | 18 +- .../__tests__/__snapshots__/index.tsx.snap | 72 +++---- .../__snapshots__/index.test.tsx.snap | 98 ++++----- .../__tests__/__snapshots__/index.tsx.snap | 198 +++++++++--------- .../__snapshots__/index.test.tsx.snap | 32 +-- .../__snapshots__/index.test.tsx.snap | 66 +++--- .../__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 160 +++++++------- .../__snapshots__/index.test.tsx.snap | 6 +- .../__snapshots__/index.test.tsx.snap | 28 +-- .../__snapshots__/index.test.tsx.snap | 66 +++--- .../__tests__/__snapshots__/index.tsx.snap | 100 ++++----- .../__snapshots__/index.test.tsx.snap | 52 ++--- .../__snapshots__/index.test.tsx.snap | 44 ++-- .../__snapshots__/index.test.tsx.snap | 102 ++++++++- .../components/Stack/__tests__/index.test.tsx | 16 ++ packages/ui/src/components/Stack/index.tsx | 6 + .../__snapshots__/index.test.tsx.snap | 18 +- .../__snapshots__/index.test.tsx.snap | 40 ++-- .../__snapshots__/index.test.tsx.snap | 64 +++--- .../__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 20 +- .../__snapshots__/index.test.tsx.snap | 48 ++--- .../__snapshots__/index.test.tsx.snap | 90 ++++---- 39 files changed, 1007 insertions(+), 897 deletions(-) create mode 100644 .changeset/spotty-cups-appear.md diff --git a/.changeset/spotty-cups-appear.md b/.changeset/spotty-cups-appear.md new file mode 100644 index 0000000000..5bee43ce60 --- /dev/null +++ b/.changeset/spotty-cups-appear.md @@ -0,0 +1,6 @@ +--- +'@ultraviolet/form': minor +'@ultraviolet/ui': minor +--- + +Added new props into `Stack` component: `width` and `flex` diff --git a/packages/form/src/components/CheckboxField/__tests__/__snapshots__/index.spec.tsx.snap b/packages/form/src/components/CheckboxField/__tests__/__snapshots__/index.spec.tsx.snap index f1a04aa10f..07bcd034ae 100644 --- a/packages/form/src/components/CheckboxField/__tests__/__snapshots__/index.spec.tsx.snap +++ b/packages/form/src/components/CheckboxField/__tests__/__snapshots__/index.spec.tsx.snap @@ -224,7 +224,7 @@ exports[`CheckboxField should render correctly 1`] = ` stroke: #d9dadd; } -.cache-d2sbm0 { +.cache-n7398p { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -304,7 +304,7 @@ exports[`CheckboxField should render correctly 1`] = `
- .cache-kwbqjp { + .cache-1civgmb { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -31,7 +31,7 @@ exports[`CheckboxField should render correctly checked 1`] = ` margin: 0; } -.cache-uyols6 { +.cache-tjrecv { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -288,7 +288,7 @@ exports[`CheckboxField should render correctly checked 1`] = ` stroke: #d9dadd; } -.cache-d2sbm0 { +.cache-n7398p { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -328,13 +328,13 @@ exports[`CheckboxField should render correctly checked 1`] = ` novalidate="" >
- .cache-kwbqjp { + .cache-1civgmb { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -493,7 +493,7 @@ exports[`CheckboxField should trigger events correctly with required prop 1`] = margin: 0; } -.cache-uyols6 { +.cache-tjrecv { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -760,7 +760,7 @@ exports[`CheckboxField should trigger events correctly with required prop 1`] = stroke: #d9dadd; } -.cache-d2sbm0 { +.cache-n7398p { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -800,13 +800,13 @@ exports[`CheckboxField should trigger events correctly with required prop 1`] = novalidate="" >
- .cache-kwbqjp { + .cache-1civgmb { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -25,7 +25,7 @@ exports[`NumberInputField should render correctly 1`] = ` flex-wrap: nowrap; } -.cache-6hw7ss { +.cache-16otux { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -292,10 +292,10 @@ exports[`NumberInputField should render correctly 1`] = ` novalidate="" >
- .cache-kwbqjp { + .cache-1civgmb { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -385,7 +385,7 @@ exports[`NumberInputField should render correctly disabled 1`] = ` flex-wrap: nowrap; } -.cache-6hw7ss { +.cache-16otux { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -586,10 +586,10 @@ exports[`NumberInputField should render correctly disabled 1`] = ` novalidate="" >
- .cache-kwbqjp { + .cache-1civgmb { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -681,7 +681,7 @@ exports[`NumberInputField should trigger event onMinCrossed & onMaxCrossed 1`] = flex-wrap: nowrap; } -.cache-6hw7ss { +.cache-16otux { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -948,10 +948,10 @@ exports[`NumberInputField should trigger event onMinCrossed & onMaxCrossed 1`] = novalidate="" >
- .cache-kwbqjp { + .cache-1civgmb { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1041,7 +1041,7 @@ exports[`NumberInputField should trigger events correctly 1`] = ` flex-wrap: nowrap; } -.cache-6hw7ss { +.cache-16otux { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1251,10 +1251,10 @@ exports[`NumberInputField should trigger events correctly 1`] = ` novalidate="" >
- .cache-6hw7ss { + .cache-16otux { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -155,7 +155,7 @@ exports[`RadioField should render correctly 1`] = ` novalidate="" >
- .cache-6hw7ss { + .cache-16otux { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -362,7 +362,7 @@ exports[`RadioField should render correctly checked 1`] = ` novalidate="" >
- .cache-6hw7ss { + .cache-16otux { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -570,7 +570,7 @@ exports[`RadioField should render correctly disabled 1`] = ` novalidate="" >
- .cache-6hw7ss { + .cache-16otux { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -778,7 +778,7 @@ exports[`RadioField should trigger events correctly 1`] = ` novalidate="" >
- .cache-kwbqjp { + .cache-1civgmb { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -31,7 +31,7 @@ exports[`RadioField should render correctly checked 1`] = ` margin: 0; } -.cache-uyols6 { +.cache-tjrecv { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -66,7 +66,7 @@ exports[`RadioField should render correctly checked 1`] = ` text-decoration: none; } -.cache-6hw7ss { +.cache-16otux { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -219,13 +219,13 @@ exports[`RadioField should render correctly checked 1`] = ` novalidate="" >
- .cache-kwbqjp { + .cache-1civgmb { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -372,7 +372,7 @@ exports[`RadioField should trigger events correctly 1`] = ` margin: 0; } -.cache-uyols6 { +.cache-tjrecv { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -407,7 +407,7 @@ exports[`RadioField should trigger events correctly 1`] = ` text-decoration: none; } -.cache-6hw7ss { +.cache-16otux { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -560,13 +560,13 @@ exports[`RadioField should trigger events correctly 1`] = ` novalidate="" >