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

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.9",
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 {
@@ -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
+ }