Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vivid templates): add login template #1057

Merged
merged 194 commits into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
20b9f05
feat(vwc-side-drawer): 1st draft
rinaok Jul 20, 2021
7d0d6fe
story added
rinaok Jul 25, 2021
4a0862c
story added
rinaok Jul 25, 2021
dabc12d
semi-transparent content model
yinonov Jul 25, 2021
a22dba3
alternate scheme
yinonov Jul 25, 2021
f19388c
alternate
rinaok Jul 25, 2021
4d165af
devider check
rinaok Jul 26, 2021
7f66692
working example
yinonov Jul 26, 2021
22d7599
this will break
yinonov Jul 26, 2021
e080a8c
this will not break
yinonov Jul 26, 2021
2a5ee28
slot="navigation"
rinaok Jul 26, 2021
e80c316
margin list
rinaok Jul 26, 2021
f0d12e1
side drawer bigger inline size
rinaok Jul 26, 2021
2d31f37
side drawer position
rinaok Jul 26, 2021
65cf376
appContent inlined
rinaok Jul 27, 2021
8c13aca
Merge branch 'master' into VIV-642/feature/vwc-side-drawer
tveinfeld Jul 28, 2021
cac389b
Merge branch 'master' into VIV-642/feature/vwc-side-drawer
tveinfeld Jul 28, 2021
cf6a3c6
documentation, header, image
rinaok Jul 28, 2021
e09a4c6
vvd-umbrella under devDependencies
rinaok Jul 29, 2021
3d3ac8f
@prop
rinaok Jul 29, 2021
7ff4b73
readme
rinaok Jul 29, 2021
73008d3
Update package.json
yinonov Jul 29, 2021
95f4109
Update package.json
yinonov Jul 29, 2021
0eb435f
Update package.json
yinonov Jul 29, 2021
fdc05ea
Update package.json
yinonov Jul 29, 2021
f09eb4e
Update package.json
yinonov Jul 29, 2021
51b3c8f
add border and shadow to side drawer
rinaok Jul 29, 2021
c7ed50d
activated
rinaok Jul 29, 2021
d9c5bfd
style
rinaok Jul 29, 2021
2d59c66
Extension panel should not be activated
rinaok Aug 1, 2021
913b230
wider side drawer
rinaok Aug 1, 2021
449102c
slots documentation
rinaok Aug 1, 2021
339ec8b
Merge branch 'master' into VIV-642/feature/vwc-side-drawer
yinonov Aug 2, 2021
f45ff02
restore yarn.lock
yinonov Aug 2, 2021
1c58e80
refer correct tokens
yinonov Aug 2, 2021
9cbb155
refactor
yinonov Aug 2, 2021
324d187
declartiveness
yinonov Aug 3, 2021
2e916ea
correct module import
yinonov Aug 3, 2021
e95a7f1
Merge branch 'master' of https://github.com/Vonage/vivid into VIV-642…
rinaok Aug 10, 2021
1d49563
Merge branch 'master' of https://github.com/Vonage/vivid into VIV-642…
rinaok Aug 16, 2021
b1a0d19
Merge branch 'master' of https://github.com/Vonage/vivid into VIV-642…
rinaok Aug 17, 2021
bbe0f12
ESlint
rinaok Aug 17, 2021
0b8e7ae
refactor names
rinaok Aug 17, 2021
12315e6
update readme
rinaok Aug 17, 2021
7e9df10
login template
rinaok Aug 25, 2021
51e1c13
Merge branch 'master' of https://github.com/Vonage/vivid into vivid-t…
rinaok Aug 25, 2021
302c791
forgot password
rinaok Aug 25, 2021
a9aa2c8
Merge branch 'master' into vivid-templates
rinaok Aug 29, 2021
f1c8b82
margin text
rinaok Aug 29, 2021
4e7b7df
lint
rinaok Aug 29, 2021
9402bbe
remove css
rinaok Aug 29, 2021
0ffd828
Merge branch 'master' into vivid-templates
rinaok Aug 29, 2021
e619e70
vwc-inline.sign-in-helper align-items
rinaok Aug 29, 2021
1d0c3aa
Merge branch 'vivid-templates' of https://github.com/Vonage/vivid int…
rinaok Aug 29, 2021
7a2652b
24 px gap
rinaok Aug 29, 2021
bf378bf
add css properties to side drawer
rinaok Aug 30, 2021
f59a91a
split stories
rinaok Aug 30, 2021
2b0ebe3
default vars
rinaok Aug 30, 2021
53cf6ee
figure
rinaok Aug 30, 2021
78052a4
section
rinaok Aug 30, 2021
53061f8
section
rinaok Aug 30, 2021
d6fab73
css vars
rinaok Aug 31, 2021
0094b7c
Merge branch 'master' of https://github.com/Vonage/vivid into vwc-sid…
rinaok Aug 31, 2021
8c3bc4f
css vars
rinaok Aug 31, 2021
c24f4e5
background color
rinaok Aug 31, 2021
aa0b4a9
background-color
rinaok Aug 31, 2021
dd2c018
default vars
rinaok Aug 31, 2021
a3c27f6
Merge branch 'master' into vwc-side-drawer-css-vars
rinaok Sep 1, 2021
bd95a65
Merge branch 'master' of https://github.com/Vonage/vivid into vivid-t…
rinaok Sep 1, 2021
dcf1545
Merge branch 'vwc-side-drawer-css-vars' of https://github.com/Vonage/…
rinaok Sep 1, 2021
3d21c5c
change cssprop default description
rinaok Sep 2, 2021
2e03ac7
Merge branch 'vwc-side-drawer-css-vars' of https://github.com/Vonage/…
rinaok Sep 2, 2021
411db42
use vwc-inline
rinaok Sep 2, 2021
60eb485
Merge branch 'master' of https://github.com/Vonage/vivid into vwc-grid
rinaok Sep 2, 2021
21599b1
add grid-template-rows support
rinaok Sep 5, 2021
809d6f9
Merge branch 'master' of https://github.com/Vonage/vivid into vwc-grid
rinaok Sep 5, 2021
dc13cec
remove inline-template from grid-template-rows
rinaok Sep 5, 2021
69c3c47
InlineTemplate
rinaok Sep 6, 2021
1c78888
add tests
rinaok Sep 6, 2021
a15e44c
add ui test
rinaok Sep 6, 2021
01eb660
Merge branch 'master' into vwc-grid
rinaok Sep 6, 2021
4056740
lint
rinaok Sep 6, 2021
6a9a9df
firefox test fix
rinaok Sep 6, 2021
ed469a6
firefox fix
rinaok Sep 9, 2021
ea39e7c
ui test
rinaok Sep 9, 2021
b6ccc19
ui test
rinaok Sep 9, 2021
6e5cd17
remove unnecessary
rinaok Sep 9, 2021
0cf0469
remove unnecessary
rinaok Sep 9, 2021
cd4dafc
Add size = Block
rinaok Sep 12, 2021
7f68095
ui test
rinaok Sep 12, 2021
7f987be
Merge branch 'master' into vwc-grid
rinaok Sep 12, 2021
8562cfa
Merge branch 'master' into vwc-grid
rinaok Sep 12, 2021
8617711
login
rinaok Sep 12, 2021
dc01998
Merge branch 'master' of https://github.com/Vonage/vivid into vivid-t…
rinaok Sep 12, 2021
3573de2
login
rinaok Sep 12, 2021
53947d8
login
rinaok Sep 12, 2021
11fd0cb
Merge branch 'vwc-grid' of https://github.com/Vonage/vivid into vivid…
rinaok Sep 12, 2021
647730c
min-inline-size
rinaok Sep 12, 2021
38d1645
remove unnecessary
rinaok Sep 13, 2021
2df2055
add spacing sizes
rinaok Sep 13, 2021
240f25d
define props
yinonov Sep 13, 2021
2a4eda2
lit specifics
yinonov Sep 13, 2021
941f564
renaming
yinonov Sep 13, 2021
63af90b
columnBasis
rinaok Sep 13, 2021
c611aa1
attribute fix
rinaok Sep 14, 2021
b9552d4
Update common/foundation/src/constants.ts
rinaok Sep 14, 2021
238e357
Merge branch 'master' into vwc-grid
rinaok Sep 14, 2021
a409b22
fix ui test
rinaok Sep 14, 2021
fcffe8d
add x_small size
rinaok Sep 14, 2021
a27e1d2
.
rinaok Sep 14, 2021
cb6f245
add margin
rinaok Sep 14, 2021
4df576a
add layout class
rinaok Sep 15, 2021
185716f
inline
rinaok Sep 15, 2021
d14aa34
ui test
rinaok Sep 15, 2021
b1dd261
test
rinaok Sep 15, 2021
01fd102
Merge branch 'master' into vwc-grid
rinaok Sep 15, 2021
877d96e
Merge branch 'master' of https://github.com/Vonage/vivid into vwc-grid
rinaok Sep 15, 2021
dcd9c76
Merge branch 'vwc-grid' of https://github.com/Vonage/vivid into vwc-grid
rinaok Sep 15, 2021
ab54175
irrelevant
yinonov Sep 17, 2021
cd7d0d3
Merge branch 'master' of https://github.com/Vonage/vivid into vwc-grid
rinaok Sep 29, 2021
bb5f8ae
Update components/inline/src/vwc-inline.scss
rinaok Sep 29, 2021
eecf4b2
Update components/inline/src/vwc-inline.ts
rinaok Sep 29, 2021
604e93c
InlineGutters
rinaok Sep 29, 2021
f9263e2
fix tests
rinaok Sep 29, 2021
bf21131
add block story
rinaok Sep 29, 2021
edf38bb
Merge branch 'master' of https://github.com/Vonage/vivid into vivid-t…
rinaok Sep 29, 2021
e485b88
Merge branch 'master' into vivid-template
rinaok Sep 29, 2021
084c3b5
Merge branch 'vwc-grid' of https://github.com/Vonage/vivid into vivid…
rinaok Sep 29, 2021
072890d
Merge branch 'vivid-template' of https://github.com/Vonage/vivid into…
rinaok Sep 29, 2021
b025a7f
test fix
rinaok Sep 29, 2021
d7fb158
remove duplications
rinaok Sep 29, 2021
1599ec4
Merge branch 'vwc-grid' of https://github.com/Vonage/vivid into vivid…
rinaok Sep 29, 2021
75de9e9
column-basis
rinaok Sep 29, 2021
673b70f
fix test
rinaok Sep 29, 2021
681360e
fix test
rinaok Sep 29, 2021
43b4348
test fix
rinaok Sep 29, 2021
b9ff88c
usage-examples
rinaok Sep 29, 2021
7b470ef
Merge branch 'vwc-grid' of https://github.com/Vonage/vivid into vivid…
rinaok Sep 29, 2021
1542687
without inline-gutters
rinaok Sep 29, 2021
c7167b4
Merge branch 'vwc-grid' of https://github.com/Vonage/vivid into vivid…
rinaok Sep 29, 2021
d7eac19
inline-gutters=""
rinaok Sep 29, 2021
74ff537
Merge https://github.com/Vonage/vivid into vivid-template
rinaok Sep 29, 2021
35f7991
Merge branch 'vwc-grid' of https://github.com/Vonage/vivid into vivid…
rinaok Sep 29, 2021
84f6f81
add inline-gutters
rinaok Sep 29, 2021
28b8650
Merge branch 'master' into vwc-grid
rinaok Sep 29, 2021
520df9a
change test
rinaok Sep 30, 2021
b163f81
Merge branch 'master' into vwc-grid
rinaok Oct 3, 2021
936855a
Merge branch 'master' into vwc-grid
rinaok Oct 4, 2021
c6e3be3
Merge branch 'master' of https://github.com/Vonage/vivid into vwc-grid
rinaok Oct 4, 2021
de7e2ff
change name from template to auto-sizing
rinaok Oct 4, 2021
b1a2a3d
size
rinaok Oct 4, 2021
8b76b32
Merge branch 'master' into vwc-grid
YonatanKra Oct 4, 2021
3244080
common var
rinaok Oct 5, 2021
e517f8e
parent select layout
rinaok Oct 5, 2021
4dc8361
fix test
rinaok Oct 5, 2021
67b2bf3
remove host
rinaok Oct 5, 2021
3f908b1
Merge branch 'vwc-grid' of https://github.com/Vonage/vivid into vivid…
rinaok Oct 5, 2021
305dc7c
gutters
rinaok Oct 5, 2021
dc8e36e
Merge branch 'master' of https://github.com/Vonage/vivid into vwc-layout
rinaok Oct 6, 2021
90a19da
refactor vwc-inline
rinaok Oct 6, 2021
6b6d023
Update components/layout/stories/inline-basic.stories.js
yinonov Oct 6, 2021
3d00c9d
Merge branch 'master' of https://github.com/Vonage/vivid into vivid-t…
rinaok Oct 6, 2021
5a581e9
Merge branch 'vwc-layout' of https://github.com/Vonage/vivid into viv…
rinaok Oct 6, 2021
a0ff6af
test
rinaok Oct 6, 2021
acf8acf
test
rinaok Oct 6, 2021
65e273d
ui test
rinaok Oct 6, 2021
3647546
Merge branch 'vwc-layout' of https://github.com/Vonage/vivid into viv…
rinaok Oct 6, 2021
23a7ace
refactor
rinaok Oct 6, 2021
f11b52a
test(textfield): enforce disable test unstable
yinonov Oct 6, 2021
b732d0a
1st test too
yinonov Oct 6, 2021
263d665
ui test
rinaok Oct 6, 2021
b69c731
Merge branch 'textfield-flaky-test' of https://github.com/Vonage/vivi…
rinaok Oct 6, 2021
2b4ac71
Merge branch 'master' into vwc-layout
rinaok Oct 6, 2021
31ce759
Merge branch 'master' of https://github.com/Vonage/vivid into vwc-layout
rinaok Oct 6, 2021
cae8a1c
Merge branch 'vwc-layout' of https://github.com/Vonage/vivid into vwc…
rinaok Oct 6, 2021
22a31ab
Merge branch 'master' of https://github.com/Vonage/vivid into vivid-t…
rinaok Oct 6, 2021
d75cb22
Merge branch 'vwc-layout' of https://github.com/Vonage/vivid into viv…
rinaok Oct 6, 2021
d5ca99d
refactor
rinaok Oct 6, 2021
380fd51
side-drawer-inline-size
rinaok Oct 6, 2021
fe78906
gutters
rinaok Oct 6, 2021
af50229
Merge branch 'vwc-layout' of https://github.com/Vonage/vivid into viv…
rinaok Oct 6, 2021
76e4c8e
gutters
rinaok Oct 6, 2021
adef3f6
redundant custom properties
yinonov Oct 7, 2021
62aad75
can't break out auto-sizing variable
yinonov Oct 7, 2021
c612da3
Merge branch 'master' into vivid-template
yinonov Oct 7, 2021
46ce70c
Merge branch 'master' into vwc-layout
yinonov Oct 7, 2021
e8f14b1
package name
yinonov Oct 7, 2021
04f810b
Merge branch 'vwc-layout' into vivid-template
yinonov Oct 7, 2021
48e52f7
Merge branch 'master' of https://github.com/Vonage/vivid into vivid-t…
rinaok Oct 10, 2021
4f15fef
restore style
yinonov Oct 10, 2021
e52c265
refactor
rinaok Oct 10, 2021
643a347
refactor
rinaok Oct 10, 2021
114db7a
add layout
rinaok Oct 10, 2021
2536970
lit
rinaok Oct 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/badge/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
### Features

* **connotation:** adding support for warning connotation ([#488](https://github.com/vonage/vivid/issues/488)) ([245a9b9](https://github.com/vonage/vivid/commit/245a9b9c095b2af4f3d9a088d0c6219370199c2d))
* **vwc-inline:** new component to handle inline layouts ([9b03d6b](https://github.com/vonage/vivid/commit/9b03d6b3171c891985a10c77edfc2f78b78be68d))
* **vwc-layout:** new component to handle inline layouts ([9b03d6b](https://github.com/vonage/vivid/commit/9b03d6b3171c891985a10c77edfc2f78b78be68d))



Expand Down
218 changes: 217 additions & 1 deletion components/layout/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,220 @@
## [2.20.1](https://github.com/vonage/vivid/compare/v2.20.0...v2.20.1) (2021-10-07)
# [2.20.0](https://github.com/vonage/vivid/compare/v2.19.0...v2.20.0) (2021-10-07)


### Features

* **vwc-inline:** add more inline size options ([#1053](https://github.com/vonage/vivid/issues/1053)) ([1b8020d](https://github.com/vonage/vivid/commit/1b8020d4a0137801444bc5182d12949d902def86))



# [2.19.0](https://github.com/vonage/vivid/compare/v2.18.1...v2.19.0) (2021-10-04)



## [2.18.1](https://github.com/vonage/vivid/compare/v2.18.0...v2.18.1) (2021-08-25)



# [2.18.0](https://github.com/vonage/vivid/compare/v2.17.0...v2.18.0) (2021-08-24)



# [2.17.0](https://github.com/vonage/vivid/compare/v2.16.1...v2.17.0) (2021-08-09)



## [2.16.1](https://github.com/vonage/vivid/compare/v2.16.0...v2.16.1) (2021-07-29)



# [2.16.0](https://github.com/vonage/vivid/compare/v2.15.0...v2.16.0) (2021-07-28)



# [2.15.0](https://github.com/vonage/vivid/compare/v2.14.0...v2.15.0) (2021-07-20)



# [2.14.0](https://github.com/vonage/vivid/compare/v2.13.0...v2.14.0) (2021-07-13)



# [2.13.0](https://github.com/vonage/vivid/compare/v2.12.0...v2.13.0) (2021-07-04)



# [2.12.0](https://github.com/vonage/vivid/compare/v2.11.0...v2.12.0) (2021-06-14)



# [2.11.0](https://github.com/vonage/vivid/compare/v2.10.0...v2.11.0) (2021-06-07)



# [2.10.0](https://github.com/vonage/vivid/compare/v2.9.1...v2.10.0) (2021-06-04)



## [2.9.1](https://github.com/vonage/vivid/compare/v2.9.0...v2.9.1) (2021-05-27)



# [2.9.0](https://github.com/vonage/vivid/compare/v2.8.0...v2.9.0) (2021-05-24)



# [2.8.0](https://github.com/vonage/vivid/compare/v2.7.0...v2.8.0) (2021-05-20)



# [2.7.0](https://github.com/vonage/vivid/compare/v2.6.2...v2.7.0) (2021-05-17)



## [2.6.2](https://github.com/vonage/vivid/compare/v2.6.1...v2.6.2) (2021-05-05)



## [2.6.1](https://github.com/vonage/vivid/compare/v2.6.0...v2.6.1) (2021-05-04)



# [2.6.0](https://github.com/vonage/vivid/compare/v2.5.0...v2.6.0) (2021-05-03)



# [2.5.0](https://github.com/vonage/vivid/compare/v2.4.1...v2.5.0) (2021-04-22)



## [2.4.1](https://github.com/vonage/vivid/compare/v2.4.0...v2.4.1) (2021-04-21)



# [2.4.0](https://github.com/vonage/vivid/compare/v2.3.0...v2.4.0) (2021-04-19)



# [2.3.0](https://github.com/vonage/vivid/compare/v2.2.4...v2.3.0) (2021-04-08)


### Features

* **vwc-layout:** add support for auto-fill/fit variance ([#746](https://github.com/vonage/vivid/issues/746)) ([17732b3](https://github.com/vonage/vivid/commit/17732b372d14cbba7708e3cf9332e1899850d3cd))



## [2.2.4](https://github.com/vonage/vivid/compare/v2.2.3...v2.2.4) (2021-04-05)



## [2.2.3](https://github.com/vonage/vivid/compare/v2.2.2...v2.2.3) (2021-03-30)



## [2.2.2](https://github.com/vonage/vivid/compare/v2.2.1...v2.2.2) (2021-03-19)



## [2.2.1](https://github.com/vonage/vivid/compare/v2.2.0...v2.2.1) (2021-03-18)



# [2.2.0](https://github.com/vonage/vivid/compare/v2.1.0...v2.2.0) (2021-03-17)



# [2.1.0](https://github.com/vonage/vivid/compare/v2.0.4...v2.1.0) (2021-03-16)



## [2.0.4](https://github.com/vonage/vivid/compare/v2.0.3...v2.0.4) (2021-03-03)



## [2.0.3](https://github.com/vonage/vivid/compare/v2.0.2...v2.0.3) (2021-02-28)



## [2.0.2](https://github.com/vonage/vivid/compare/v2.0.1...v2.0.2) (2021-02-24)



## [2.0.1](https://github.com/vonage/vivid/compare/v2.0.0...v2.0.1) (2021-02-23)



# [2.0.0](https://github.com/vonage/vivid/compare/v1.3.1...v2.0.0) (2021-02-22)



## [1.3.1](https://github.com/vonage/vivid/compare/v1.3.0...v1.3.1) (2021-02-11)



# [1.3.0](https://github.com/vonage/vivid/compare/v1.2.0...v1.3.0) (2021-02-11)



# [1.2.0](https://github.com/vonage/vivid/compare/v1.1.3...v1.2.0) (2021-02-03)



## [1.1.3](https://github.com/vonage/vivid/compare/v1.1.2...v1.1.3) (2021-01-27)



## [1.1.2](https://github.com/vonage/vivid/compare/v1.1.1...v1.1.2) (2021-01-27)



## [1.1.1](https://github.com/vonage/vivid/compare/v1.1.0...v1.1.1) (2021-01-25)



# [1.1.0](https://github.com/vonage/vivid/compare/v1.0.4...v1.1.0) (2021-01-25)



## [1.0.4](https://github.com/vonage/vivid/compare/v1.0.3...v1.0.4) (2021-01-19)



## [1.0.2](https://github.com/vonage/vivid/compare/v1.0.1...v1.0.2) (2021-01-15)



## [1.0.1](https://github.com/vonage/vivid/compare/v1.0.0...v1.0.1) (2021-01-15)



# [1.0.0](https://github.com/vonage/vivid/compare/v0.19.1...v1.0.0) (2021-01-13)



## [0.19.1](https://github.com/vonage/vivid/compare/v0.19.0...v0.19.1) (2021-01-10)



# [0.19.0](https://github.com/vonage/vivid/compare/v0.17.2...v0.19.0) (2021-01-07)



## [0.17.2](https://github.com/vonage/vivid/compare/v0.17.1...v0.17.2) (2020-12-17)


### Bug Fixes

* **inline:** patched typescript warning ([6a96d02](https://github.com/vonage/vivid/commit/6a96d02c4c0181e955ba4450b1c278dbb556909d))



## [0.17.1](https://github.com/vonage/vivid/compare/v0.17.0...v0.17.1) (2020-12-15)


### Features

* **vwc-layout:** new component to handle inline layouts ([9b03d6b](https://github.com/vonage/vivid/commit/9b03d6b3171c891985a10c77edfc2f78b78be68d))



4 changes: 2 additions & 2 deletions components/layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1",
"build:typescript": "tsc -b",
"build:styles": "umbrella-style-modules",
"build:styles": "umbrella-style-modules --path=\"./src\"",
"build": "yarn run build:styles && yarn run build:typescript"
},
"bugs": {
Expand All @@ -36,4 +36,4 @@
"@vonage/vvd-umbrella": "2.20.1",
"typescript": "^4.3.2"
}
}
}
15 changes: 15 additions & 0 deletions components/layout/src/partials/_vwc-layout-functions.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@function get-default-selector($list, $prefix) {
$selector: '';
@each $item in $list {
$selector: $selector + ':not(#{$prefix}-#{$item})';
}
@return $selector;
}

@function get-selector-with-default($prefix, $key, $default-key, $all-keys) {
$selector: '&#{$prefix}-#{$key}';
@if $key == $default-key {
$selector: '&#{get-default-selector($all-keys, $prefix)}', $selector;
}
@return $selector;
}
5 changes: 5 additions & 0 deletions components/layout/src/partials/_vwc-layout-mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@mixin measurement($types...) {
@each $type in $types {
@content($type);
}
}
22 changes: 22 additions & 0 deletions components/layout/src/partials/_vwc-layout-variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
$layout-auto-sizing: --layout-auto-sizing;

/* #region SIZEs */
$auto-sizes: (
fill: auto-fill,
fit: auto-fit,
);

/* #region BASES */
$bases: (
sm: 10rem,
md: 20rem,
lg: 30rem,
block: 1fr
);

/* #region SPACES */
$spaces: (
xs: 16px,
md: 24px,
xl: 32px,
);
71 changes: 25 additions & 46 deletions components/layout/src/vwc-layout.scss
Original file line number Diff line number Diff line change
@@ -1,58 +1,37 @@
@use 'sass:map';

$items-min-inline-size-v-name: --items-min-inline-size;
$items-spacing-v-name: --items-spacing;
$gutters-v-name: --gutters;
$auto-sizing: --auto-sizing;

/* #region SIZE */
$items-min-inline-sizes: (
sm: 10rem,
md: 20rem,
lg: 30rem,
);

/* #region SPACEING */
$items-spacings: (
xs: 16px,
md: 24px,
xl: 32px,
);

@each $key, $value in $items-min-inline-sizes {
.layout-column-basis-#{$key} {
#{$items-min-inline-size-v-name}: $value;
}
}

@each $key, $value in $items-spacings {
.layout-column-spacing-#{$key} {
#{$items-spacing-v-name}: $value;
}
.layout-gutters-#{$key} {
#{$gutters-v-name}: $value;
}
}
@use 'partials/vwc-layout-variables' as variables;
@use 'partials/vwc-layout-mixins' as mixins;
@use 'partials/vwc-layout-functions' as functions;

.layout {
display: grid;
margin: var(#{$gutters-v-name}, 0);
gap: var(#{$items-spacing-v-name}, #{map.get($items-spacings, md)});
grid-auto-rows: min-content;
grid-template-columns: repeat(
var(#{$auto-sizing}),
minmax(var(#{$items-min-inline-size-v-name}, #{map.get($items-min-inline-sizes, lg)}), 1fr)
);

&:not(.layout-auto-sizing-fill),
&.layout-auto-sizing-fit {
#{$auto-sizing}: auto-fit;
@include mixins.measurement(map.keys(variables.$bases)...) using ($basis) {
#{functions.get-selector-with-default(".layout-column-basis", $basis, md, map.keys(variables.$bases))} {
grid-template-columns: repeat(
var(#{variables.$layout-auto-sizing}),
minmax(map.get(variables.$bases, $basis), 1fr)
);
}
}
&.layout-auto-sizing-fill {
#{$auto-sizing}: auto-fill;

@include mixins.measurement(map.keys(variables.$spaces)...) using ($space) {
#{functions.get-selector-with-default(".layout-column-spacing", $space, md, map.keys(variables.$spaces))} {
gap: map.get(variables.$spaces, $space);
}
}

@include mixins.measurement(map.keys(variables.$spaces)...) using ($space) {
&.layout-gutters-#{$space} {
margin: map.get(variables.$spaces, $space);
}
}

&.layout-column-basis-block {
grid-template-columns: 1fr;
@include mixins.measurement(map.keys(variables.$auto-sizes)...) using ($size) {
#{functions.get-selector-with-default(".layout-auto-sizing", $size, fit, map.keys(variables.$auto-sizes))} {
#{variables.$layout-auto-sizing}: map.get(variables.$auto-sizes, $size);
}
}
}
Loading