@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/dist/index.d.ts +1561 -168
- package/dist/index.js +37 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5592 -1259
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -10
- package/src/scss/_monitorpanel.scss +1 -1
- package/src/scss/_numericstep.scss +13 -0
- package/src/scss/_panel.scss +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esrf/daiquiri-lib",
|
|
3
|
-
"version": "
|
|
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
|
}
|
|
@@ -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 {
|
package/src/scss/_panel.scss
CHANGED
|
@@ -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 {
|