@preply/ds-web-core 0.25.0 → 0.26.0

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.
@@ -0,0 +1,45 @@
1
+ @import '../../generated/tokens.less';
2
+ @import '../../generated/options.less';
3
+ @import '../../theme/style/declarations.mixins.less';
4
+
5
+ .action-sizes() {
6
+ each(@BUTTON_SIZE_OPTIONS, {
7
+
8
+ &--size-@{value} {
9
+ @token: 'size-@{value}';
10
+ .min-height('action', @token);
11
+ .verticalAndHorizontalPadding('action', @token);
12
+ .font-size('action', @token);
13
+ }
14
+
15
+ &--is-icon-button&--size-@{value} {
16
+ @token: 'size-@{value}';
17
+ .size('action', @token, height);
18
+ padding: 0;
19
+ }
20
+ });
21
+ }
22
+
23
+ .action-variants() {
24
+ each(@BUTTON_VARIANT_OPTIONS, #(@variant) {
25
+ &--variant-@{variant} {
26
+ @token: 'variant-@{variant}';
27
+
28
+ .color('action', @token);
29
+ .bg-color('action', @token);
30
+ .border-color('action', @token);
31
+
32
+ &:hover {
33
+ @token: 'variant-@{variant}-hover';
34
+ .color('action', @token);
35
+ .bg-color('action', @token);
36
+ }
37
+
38
+ &:active {
39
+ @token: 'variant-@{variant}-active';
40
+ .color('action', @token);
41
+ .bg-color('action', @token);
42
+ }
43
+ }
44
+ });
45
+ }
@@ -0,0 +1,8 @@
1
+ import styleInject from '../../external/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = "";
4
+ var stylesheet="";
5
+ styleInject(css_248z);
6
+
7
+ export { css_248z as default, stylesheet };
8
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjpudWxsLCJzb3VyY2VzIjpbbnVsbF0sInNvdXJjZXNDb250ZW50IjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHdCQUF3QixxREFBeUQ7QUFDakY7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyJ9
@@ -1,4 +1,4 @@
1
- /* AUTO GENERATED @Fri Apr 22 2022 12:48:36 GMT+0000 (Coordinated Universal Time) */
1
+ /* AUTO GENERATED @Mon May 02 2022 09:35:50 GMT+0000 (Coordinated Universal Time) */
2
2
 
3
3
  @breakpoints: {
4
4
  narrow-l: 400px;
@@ -1,4 +1,4 @@
1
- /* AUTO GENERATED @Fri Apr 22 2022 12:48:35 GMT+0000 (Coordinated Universal Time) */
1
+ /* AUTO GENERATED @Mon May 02 2022 09:35:50 GMT+0000 (Coordinated Universal Time) */
2
2
 
3
3
  @AVATAR_SIZE_OPTIONS: 2xs, xs, s, m, l, xl;
4
4
  @BUTTON_SIZE_OPTIONS: xs, s, m, l, xl;
@@ -1,4 +1,4 @@
1
- /* AUTO GENERATED @Fri Apr 22 2022 12:48:35 GMT+0000 (Coordinated Universal Time) */
1
+ /* AUTO GENERATED @Mon May 02 2022 09:35:50 GMT+0000 (Coordinated Universal Time) */
2
2
 
3
3
  @scheme-color: var(--aface);
4
4
  @scheme-bgColor: var(--786b9);
@@ -5,15 +5,15 @@
5
5
  @t: @@token;
6
6
  }
7
7
 
8
- .size(@namespace, @key) {
9
- @token: '@{namespace}-@{key}-size';
8
+ .size(@namespace, @key, @tokenSufix:size) {
9
+ @token: '@{namespace}-@{key}-@{tokenSufix}';
10
10
  width: @@token;
11
11
  height: @@token;
12
12
  }
13
13
 
14
14
  .width(@namespace, @key) {
15
15
  @token: '@{namespace}-@{key}-width';
16
- height: @@token;
16
+ width: @@token;
17
17
  }
18
18
 
19
19
  .height(@namespace, @key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@preply/ds-web-core",
3
- "version": "0.25.0",
3
+ "version": "0.26.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -19,14 +19,14 @@
19
19
  "dev": "run build:rollup -w"
20
20
  },
21
21
  "dependencies": {
22
- "@preply/ds-core": "0.25.0",
23
- "@preply/ds-core-types": "0.25.0"
22
+ "@preply/ds-core": "0.26.0",
23
+ "@preply/ds-core-types": "0.26.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@preply/ds-core": "0.25.0",
27
- "@preply/ds-core-types": "0.25.0",
26
+ "@preply/ds-core": "0.26.0",
27
+ "@preply/ds-core-types": "0.26.0",
28
28
  "react": "^16.8.3",
29
29
  "react-dom": "^16.8.3"
30
30
  },
31
- "gitHead": "057c4b0b235d206ee7b08aef99e3c32933320ca6"
31
+ "gitHead": "58f5c6795b17348097f54abfef49d7fdae81ee62"
32
32
  }