@lucca-front/scss 21.0.3 → 21.0.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/lucca-front.min.css +1 -1
- package/package.json +2 -2
- package/src/commons/core.scss +24 -6
- package/src/commons/utils/media.scss +12 -1
- package/src/components/_sample/index.scss +0 -2
- package/src/components/dataTable/index.scss +1 -1
- package/src/components/dialog/component.scss +1 -1
- package/src/components/dialog/mods.scss +1 -0
- package/src/components/dialog/vars.scss +1 -1
- package/src/components/dropdown/index.scss +5 -5
- package/src/components/highlightData/component.scss +1 -0
- package/src/components/pageHeader/component.scss +1 -1
- package/src/components/simpleSelect/states.scss +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/scss",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.5",
|
|
4
4
|
"description": "A Sass framework for Lucca products.",
|
|
5
5
|
"main": "src/main.scss",
|
|
6
6
|
"scripts": {},
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"normalize.css": "^8.0.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@lucca-front/icons": "21.0.
|
|
26
|
+
"@lucca-front/icons": "21.0.5"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/src/commons/core.scss
CHANGED
|
@@ -34,9 +34,15 @@ $cursor: 'pointer', 'auto', 'default', 'text';
|
|
|
34
34
|
// Tokens
|
|
35
35
|
|
|
36
36
|
@mixin spacing($boxModel, $boxDirection, $key, $value, $suffix: '!important') {
|
|
37
|
+
$boxDirectionString: '-';
|
|
38
|
+
|
|
39
|
+
@if $boxDirection == '' {
|
|
40
|
+
$boxDirectionString: '';
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
@if $boxModel != 'inset' or ($boxDirection != 'top' and $boxDirection != 'bottom' and $boxDirection != 'left' and $boxDirection != 'right') {
|
|
38
44
|
.pr-u-#{transform.camelize($boxModel)}#{transform.capitalize(transform.camelize($boxDirection))}#{transform.capitalize($key)} {
|
|
39
|
-
#{$boxModel}#{
|
|
45
|
+
#{$boxModel}#{$boxDirectionString}#{$boxDirection}: var(--pr-t-spacings-#{$key}) #{$suffix};
|
|
40
46
|
}
|
|
41
47
|
}
|
|
42
48
|
}
|
|
@@ -75,31 +81,43 @@ $cursor: 'pointer', 'auto', 'default', 'text';
|
|
|
75
81
|
|
|
76
82
|
@mixin cssvars($name, $properties, $after: '') {
|
|
77
83
|
@each $key, $value in $properties {
|
|
78
|
-
|
|
84
|
+
$keyString: '-';
|
|
85
|
+
|
|
86
|
+
@if $key == '' {
|
|
87
|
+
$keyString: '';
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
--#{$name}#{$keyString}#{$key}#{$after}: #{$value};
|
|
79
91
|
}
|
|
80
92
|
}
|
|
81
93
|
|
|
82
94
|
@mixin classes($name, $properties, $suffix: '!important', $prefix: '') {
|
|
83
95
|
@each $property in $properties {
|
|
96
|
+
$minusString: '';
|
|
97
|
+
|
|
98
|
+
@if string.slice($property, 1, 1) == '-' {
|
|
99
|
+
$minusString: 'Minus';
|
|
100
|
+
}
|
|
101
|
+
|
|
84
102
|
@if $prefix == '' {
|
|
85
|
-
.pr-u-#{transform.camelize($name)}#{
|
|
103
|
+
.pr-u-#{transform.camelize($name)}#{$minusString}#{transform.capitalize(transform.camelize($property))} {
|
|
86
104
|
#{$name}: #{transform.replace($property, '\\', '')} #{$suffix};
|
|
87
105
|
}
|
|
88
106
|
|
|
89
107
|
// Deprecated .u- utilities
|
|
90
108
|
@if config.$deprecatedUtilityPrefix {
|
|
91
|
-
.u-#{transform.camelize($name)}#{
|
|
109
|
+
.u-#{transform.camelize($name)}#{$minusString}#{transform.capitalize(transform.camelize($property))} {
|
|
92
110
|
#{$name}: #{transform.replace($property, '\\', '')} #{$suffix};
|
|
93
111
|
}
|
|
94
112
|
}
|
|
95
113
|
} @else {
|
|
96
|
-
.pr-u-#{$prefix}#{transform.capitalize(transform.camelize($name))}#{
|
|
114
|
+
.pr-u-#{$prefix}#{transform.capitalize(transform.camelize($name))}#{$minusString}#{transform.capitalize(transform.camelize($property))} {
|
|
97
115
|
#{$name}: #{transform.replace($property, '\\', '')} #{$suffix};
|
|
98
116
|
}
|
|
99
117
|
|
|
100
118
|
// Deprecated .u- utilities
|
|
101
119
|
@if config.$deprecatedUtilityPrefix {
|
|
102
|
-
.u-#{$prefix}#{transform.capitalize(transform.camelize($name))}#{
|
|
120
|
+
.u-#{$prefix}#{transform.capitalize(transform.camelize($name))}#{$minusString}#{transform.capitalize(transform.camelize($property))} {
|
|
103
121
|
#{$name}: #{transform.replace($property, '\\', '')} #{$suffix};
|
|
104
122
|
}
|
|
105
123
|
}
|
|
@@ -126,8 +126,19 @@
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
@mixin pointer($query, $any: false, $reversed: false) {
|
|
129
|
+
$mediaString: 'media';
|
|
130
|
+
$anyString: '';
|
|
131
|
+
|
|
132
|
+
@if $reversed {
|
|
133
|
+
$mediaString: 'media not';
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@if $any {
|
|
137
|
+
$anyString: 'any-';
|
|
138
|
+
}
|
|
139
|
+
|
|
129
140
|
// stylelint-disable-next-line scss/at-rule-no-unknown
|
|
130
|
-
@#{
|
|
141
|
+
@#{$mediaString} (#{$anyString}pointer: #{$query}) {
|
|
131
142
|
@content;
|
|
132
143
|
}
|
|
133
144
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
box-shadow: var(--pr-t-elevation-shadow-overlay);
|
|
16
16
|
margin: auto;
|
|
17
17
|
flex-direction: column;
|
|
18
|
-
display: flex
|
|
18
|
+
display: flex;
|
|
19
19
|
position: fixed !important;
|
|
20
20
|
max-inline-size: var(--components-dialog-maxWidth) !important;
|
|
21
21
|
max-block-size: var(--components-dialog-maxHeight) !important;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
--components-dialog-insideHeaderTitlePadding: calc(var(--pr-t-spacings-50) / 2) 0;
|
|
14
14
|
--components-dialog-insideHeaderButtonDisplay: flex;
|
|
15
15
|
--components-dialog-insideHeaderLinkDisplay: none;
|
|
16
|
-
--components-dialog-insideHeaderColumns: 1fr auto
|
|
16
|
+
--components-dialog-insideHeaderColumns: 1fr auto;
|
|
17
17
|
--components-dialog-insideContent-background: transparent;
|
|
18
18
|
--components-dialog-level: 0;
|
|
19
19
|
--components-dialog-translate-spacing: var(--pr-t-spacings-500);
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
.dropdown-list-option-action,
|
|
14
14
|
.lu-dropdown-options-item-action {
|
|
15
15
|
@layer mods {
|
|
16
|
-
&[disabled],
|
|
17
|
-
&.is-disabled {
|
|
18
|
-
@include disabled;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
16
|
&.mod-critical,
|
|
22
17
|
&.mod-delete {
|
|
23
18
|
@include critical;
|
|
24
19
|
}
|
|
20
|
+
|
|
21
|
+
&[disabled],
|
|
22
|
+
&.is-disabled {
|
|
23
|
+
@include disabled;
|
|
24
|
+
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
.pageHeader-description {
|
|
63
63
|
max-inline-size: var(--components-pageHeader-description-max-width);
|
|
64
64
|
margin-block-start: var(--pr-t-spacings-100);
|
|
65
|
-
color: var(--
|
|
65
|
+
color: var(--pr-t-color-text);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.pageHeader-description-paragraph {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
@mixin selected {
|
|
41
41
|
.simpleSelect-field-input {
|
|
42
42
|
&::placeholder {
|
|
43
|
-
|
|
43
|
+
opacity: 0;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
@mixin selectedSearchFilled {
|
|
49
49
|
.simpleSelect-field-input {
|
|
50
50
|
&::placeholder {
|
|
51
|
-
|
|
51
|
+
opacity: 0;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|