@3dsource/source-ui-native 1.0.8 → 1.0.11

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/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
  #### import needed styles in your main styles file
16
16
 
17
17
  ```scss
18
- @use '../node_modules/@3dsource/source-ui-native/styles/source.ui.native.scss'
18
+ @use '../node_modules/@3dsource/source-ui-native/styles/source.ui.native.scss';
19
19
  ```
20
20
 
21
21
  _List of native ui elements_
package/package.json CHANGED
@@ -1,11 +1,6 @@
1
1
  {
2
2
  "name": "@3dsource/source-ui-native",
3
- "version": "1.0.8",
4
- "license": "UNLICENSED",
5
- "sideEffects": false,
6
- "dependencies": {
7
- "tslib": "^2.8.1"
8
- },
3
+ "version": "1.0.11",
9
4
  "description": "A bunch of native ui elements",
10
5
  "keywords": [
11
6
  "3dsource",
@@ -17,7 +12,12 @@
17
12
  "type": "git",
18
13
  "url": "private"
19
14
  },
15
+ "license": "UNLICENSED",
20
16
  "author": "3dsource",
17
+ "sideEffects": false,
18
+ "dependencies": {
19
+ "tslib": "^2.8.1"
20
+ },
21
21
  "engines": {
22
22
  "node": ">=20",
23
23
  "npm": ">9"
package/styles/base.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  // SourceUI Global Styles: base.scss
2
- // TODO: get rid of tags, subscitute them with classes
2
+ // TODO: get rid of tags, substitute them with classes
3
3
 
4
4
  .section_3dsourcecom,
5
5
  .cdk-overlay-container {
@@ -54,8 +54,10 @@
54
54
  }
55
55
 
56
56
  &:disabled,
57
- &[disabled],
58
- &.disabled {
57
+ &[disabled] {
58
+ --srcButtonBgColor: var(--src-color-bg-default-disabled);
59
+ --srcButtonBoxShadow: none;
60
+ --srcButtonFontColor: var(--src-color-text-default-disabled);
59
61
  cursor: default;
60
62
  pointer-events: none;
61
63
  }
@@ -101,17 +103,6 @@
101
103
  }
102
104
  }
103
105
 
104
- &--secondary {
105
- --srcButtonFontColor: var(--src-color-text-default);
106
-
107
- &:disabled,
108
- &[disabled] {
109
- --srcButtonBgColor: var(--src-color-bg-default-disabled);
110
- --srcButtonBoxShadow: none;
111
- --srcButtonFontColor: var(--src-color-text-default-disabled);
112
- }
113
- }
114
-
115
106
  &--destructive {
116
107
  --srcButtonBgColor: var(--src-color-bg-critical);
117
108
  --srcButtonBgHoverColor: var(--src-color-bg-critical-strong);
@@ -7,6 +7,16 @@
7
7
  gap: var(--srcFormRowGap);
8
8
  }
9
9
 
10
+ .src-form__row-group {
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: 0;
14
+
15
+ .src-form__row + .src-form__row {
16
+ margin-top: var(--srcFormRowGap);
17
+ }
18
+ }
19
+
10
20
  .src-form__row {
11
21
  display: grid;
12
22
  gap: var(--srcFormItemsGap);
@@ -20,3 +30,16 @@
20
30
  grid-template-columns: repeat(3, minmax(0, 1fr));
21
31
  }
22
32
  }
33
+
34
+ .src-form__item {
35
+ width: 100%;
36
+ display: flex;
37
+ flex-direction: column;
38
+ }
39
+
40
+ .src-form__button-row {
41
+ display: flex;
42
+ gap: var(--srcFormItemsGap);
43
+ justify-content: flex-end;
44
+ align-items: center;
45
+ }
@@ -6,7 +6,6 @@
6
6
  padding: 8px;
7
7
 
8
8
  .src-list__item {
9
- display: block;
10
9
  margin-bottom: 4px;
11
10
  }
12
11
 
@@ -19,7 +18,6 @@
19
18
  }
20
19
  }
21
20
 
22
- // source-list-item.component.scss
23
21
  .src-list__item {
24
22
  --srcListItemBgColor: var(--src-color-bg-default);
25
23
  --srcListItemBgHoverColor: var(--src-color-bg-default-hover);
@@ -31,16 +29,15 @@
31
29
  --srcListItemLineHeight: var(--src-lh-base);
32
30
  --srcListItemPaddings: 8px;
33
31
  --srcListItemTextTransform: default;
34
- --srcListItemIconColor: var(--src-color-icon-default);
32
+ --srcListItemDisplay: block;
35
33
  position: relative;
36
- align-items: flex-start;
34
+ display: var(--srcListItemDisplay);
37
35
  width: 100%;
38
36
  padding: var(--srcListItemPaddings);
39
- font-weight: var(--srcListItemFontWeight);
40
- display: inline-flex;
41
- font-size: var(--srcListItemFontSize);
42
- line-height: var(--srcListItemLineHeight);
43
37
  text-align: left;
38
+ line-height: var(--srcListItemLineHeight);
39
+ font-size: var(--srcListItemFontSize);
40
+ font-weight: var(--srcListItemFontWeight);
44
41
  color: var(--srcListItemFontColor);
45
42
  text-transform: var(--srcListItemTextTransform);
46
43
  letter-spacing: 0;
@@ -50,6 +47,11 @@
50
47
  cursor: pointer;
51
48
  word-break: break-word;
52
49
 
50
+ &--flex {
51
+ --srcListItemDisplay: inline-flex;
52
+ align-items: flex-start;
53
+ gap: 8px;
54
+ }
53
55
  @media (hover: hover) and (pointer: fine) {
54
56
  &:hover,
55
57
  &:focus-visible {
@@ -64,14 +66,12 @@
64
66
  cursor: default;
65
67
  pointer-events: none;
66
68
  --srcListItemFontColor: var(--src-color-text-default-disabled);
67
- --srcListItemIconColor: var(--src-color-icon-default-disabled);
68
69
  background-color: var(--src-color-bg-default);
69
70
  }
70
71
  }
71
72
 
72
73
  .src-list__item--selected {
73
74
  --srcListItemBgColor: var(--src-color-bg-default-active);
74
- --srcListItemIconColor: var(--src-color-icon-primary);
75
75
 
76
76
  @media (hover: hover) and (pointer: fine) {
77
77
  &:hover,
@@ -80,3 +80,9 @@
80
80
  }
81
81
  }
82
82
  }
83
+
84
+ .src-list__item--destructive {
85
+ --srcListItemBgColor: transparent;
86
+ --srcListItemBgHoverColor: var(--src-color-bg-critical-subdued);
87
+ --srcListItemFontColor: var(--src-color-text-critical);
88
+ }
package/styles/utils.scss CHANGED
@@ -1,4 +1,4 @@
1
- // SourceUI Global Styles: utils.scss
1
+ // SourceUI Global Styles: helpers.scss
2
2
  // Use only prefixed classes
3
3
  .section_3dsourcecom,
4
4
  .cdk-overlay-container {