@esrf/daiquiri-lib 1.0.3 → 2.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esrf/daiquiri-lib",
3
- "version": "1.0.3",
3
+ "version": "2.0.0",
4
4
  "sideEffects": false,
5
5
  "files": [
6
6
  "dist",
@@ -8,6 +8,14 @@
8
8
  "src/scss/**/*"
9
9
  ],
10
10
  "main": "dist/index.js",
11
+ "exports": {
12
+ "./styles.scss": "./src/styles.scss",
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.mjs",
16
+ "default": "./dist/index.js"
17
+ }
18
+ },
11
19
  "peerDependencies": {
12
20
  "react": ">=17",
13
21
  "typescript": ">=4.5"
@@ -21,6 +29,7 @@
21
29
  "bootstrap": "5.3.2",
22
30
  "classnames": "2.3.1",
23
31
  "debug": "4.3.4",
32
+ "js-quantities": "1.7.6",
24
33
  "lodash": "4.17.21",
25
34
  "react-bootstrap": "2.9.1"
26
35
  },
@@ -73,13 +82,5 @@
73
82
  "analyze": "pnpm dlx source-map-explorer dist/index.js --no-border-checks"
74
83
  },
75
84
  "module": "dist/index.mjs",
76
- "types": "dist/index.d.ts",
77
- "exports": {
78
- "./styles.scss": "./src/styles.scss",
79
- ".": {
80
- "types": "./dist/index.d.ts",
81
- "import": "./dist/index.mjs",
82
- "default": "./dist/index.js"
83
- }
84
- }
85
+ "types": "dist/index.d.ts"
85
86
  }
@@ -1,6 +1,6 @@
1
1
  .monitor-panel-item {
2
2
  margin: 0 5px;
3
- background: lighten(map-get($custom-colors, 't-purple'), 35%);
3
+ background: rgba(255, 255, 255, 0.6);
4
4
  border-radius: 4px;
5
5
 
6
6
  text-align: center;
@@ -28,6 +28,10 @@
28
28
  margin: 0 !important;
29
29
  border-bottom-left-radius: 0;
30
30
  border-top-left-radius: 0;
31
+
32
+ &.inc-dec {
33
+ padding-right: 0 !important;
34
+ }
31
35
  }
32
36
 
33
37
  .step {
@@ -41,6 +45,10 @@
41
45
  border-radius: 0;
42
46
  color: #495057;
43
47
 
48
+ &:disabled {
49
+ background: var(--bs-tertiary-bg);
50
+ }
51
+
44
52
  &:hover {
45
53
  background: lighten(#ced4da, 3%);
46
54
  }
@@ -76,7 +84,12 @@
76
84
  flex: 1;
77
85
  border: none;
78
86
  background: none;
87
+ background: lighten(#ced4da, 4%);
79
88
  font-size: 0.6rem;
89
+
90
+ &:disabled {
91
+ background: var(--bs-tertiary-bg);
92
+ }
80
93
  }
81
94
 
82
95
  &.numeric-step-horizontal {
@@ -46,7 +46,7 @@
46
46
  background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
47
47
 
48
48
  /* Bootstrap 5 sets a global th/td background for tables
49
- need to remove this for overflow ui hinting above to work
49
+ need to remove this for overflow ui hinting above to work
50
50
  */
51
51
  .table th,
52
52
  .table td {