@itwin/imodel-components-react 5.0.0-dev.2 → 5.0.0-dev.3
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/lib/cjs/imodel-components-react/color/AlphaSlider.scss +71 -0
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +88 -0
- package/lib/cjs/imodel-components-react/color/ColorPickerPopup.scss +62 -0
- package/lib/cjs/imodel-components-react/color/HueSlider.scss +78 -0
- package/lib/cjs/imodel-components-react/color/SaturationPicker.scss +36 -0
- package/lib/cjs/imodel-components-react/color/Swatch.scss +22 -0
- package/lib/cjs/imodel-components-react/editors/ColorEditor.scss +16 -0
- package/lib/cjs/imodel-components-react/editors/WeightEditor.scss +14 -0
- package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.scss +106 -0
- package/lib/cjs/imodel-components-react/lineweight/Swatch.scss +46 -0
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +50 -0
- package/lib/cjs/imodel-components-react/navigationaids/Cube.scss +19 -0
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +177 -0
- package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.scss +133 -0
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +53 -0
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +22 -0
- package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +105 -0
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +43 -0
- package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.scss +38 -0
- package/lib/cjs/imodel-components-react/timeline/Timeline.scss +163 -0
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.scss +48 -0
- package/lib/esm/imodel-components-react/color/AlphaSlider.scss +71 -0
- package/lib/esm/imodel-components-react/color/ColorPickerButton.scss +88 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +62 -0
- package/lib/esm/imodel-components-react/color/HueSlider.scss +78 -0
- package/lib/esm/imodel-components-react/color/SaturationPicker.scss +36 -0
- package/lib/esm/imodel-components-react/color/Swatch.scss +22 -0
- package/lib/esm/imodel-components-react/editors/ColorEditor.scss +16 -0
- package/lib/esm/imodel-components-react/editors/WeightEditor.scss +14 -0
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +106 -0
- package/lib/esm/imodel-components-react/lineweight/Swatch.scss +46 -0
- package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.scss +50 -0
- package/lib/esm/imodel-components-react/navigationaids/Cube.scss +19 -0
- package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.scss +177 -0
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +133 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.scss +53 -0
- package/lib/esm/imodel-components-react/timeline/InlineEdit.scss +22 -0
- package/lib/esm/imodel-components-react/timeline/Scrubber.scss +105 -0
- package/lib/esm/imodel-components-react/timeline/SolarTimeline.scss +43 -0
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +38 -0
- package/lib/esm/imodel-components-react/timeline/Timeline.scss +163 -0
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +48 -0
- package/package.json +11 -16
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
.timeline {
|
|
6
|
+
position: relative;
|
|
7
|
+
height: 110px;
|
|
8
|
+
background: var(--iui-color-background);
|
|
9
|
+
border: 1px solid var(--iui-color-background-disabled);
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.rail {
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 40px;
|
|
17
|
+
top: 50%;
|
|
18
|
+
transform: translateY(-50%);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
z-index: 3;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.rail-center {
|
|
24
|
+
position: absolute;
|
|
25
|
+
left: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
top: 50%;
|
|
28
|
+
transform: translateY(-50%);
|
|
29
|
+
height: 4px;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
background: var(--iui-color-background-disabled);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tooltip-rail {
|
|
36
|
+
position: absolute;
|
|
37
|
+
margin-left: -11px;
|
|
38
|
+
top: 50%;
|
|
39
|
+
transform: translateY(-50%);
|
|
40
|
+
z-index: 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.needle {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 0;
|
|
46
|
+
transform: translateX(-50%);
|
|
47
|
+
z-index: 4;
|
|
48
|
+
width: 2px;
|
|
49
|
+
height: 100%;
|
|
50
|
+
background: var(--iui-color-icon-accent);
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.handle {
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 50%;
|
|
57
|
+
transform: translate(-50%, -50%);
|
|
58
|
+
z-index: 4;
|
|
59
|
+
width: 14px;
|
|
60
|
+
height: 14px;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
border: none;
|
|
63
|
+
border-radius: 50%;
|
|
64
|
+
background: var(--iui-color-icon-accent);
|
|
65
|
+
border: 2px solid var(--iui-color-background);
|
|
66
|
+
|
|
67
|
+
> span {
|
|
68
|
+
position: absolute;
|
|
69
|
+
left: 50%;
|
|
70
|
+
bottom: -25px;
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
transform: translateX(-50%);
|
|
74
|
+
color: rgba(black, 0.85);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
input {
|
|
78
|
+
position: absolute;
|
|
79
|
+
border: none;
|
|
80
|
+
margin-top: 10px;
|
|
81
|
+
top: 1.2rem;
|
|
82
|
+
left: 50%;
|
|
83
|
+
transform: translateX(-50%);
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
input:focus {
|
|
88
|
+
cursor: text;
|
|
89
|
+
left: -0.25rem;
|
|
90
|
+
top: calc(1.2rem - 0.25rem);
|
|
91
|
+
width: 140px;
|
|
92
|
+
padding: 0.25rem;
|
|
93
|
+
border: 1px solid #ddd;
|
|
94
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.11);
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
outline: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.tick-line {
|
|
101
|
+
position: absolute;
|
|
102
|
+
width: 2px;
|
|
103
|
+
height: 11px;
|
|
104
|
+
transform: translateX(-50%);
|
|
105
|
+
background: var(--iui-color-background-disabled);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.tick-label {
|
|
109
|
+
position: absolute;
|
|
110
|
+
margin-top: 9px;
|
|
111
|
+
font-size: 14px;
|
|
112
|
+
color: rgba(black, 0.85);
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.tick-label.start {
|
|
117
|
+
left: -50px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.tick-label.end {
|
|
121
|
+
right: -50px;
|
|
122
|
+
text-align: right;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.tick-label.tick {
|
|
126
|
+
margin-left: 11px;
|
|
127
|
+
text-align: left;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.tooltip {
|
|
131
|
+
position: absolute;
|
|
132
|
+
top: -20px;
|
|
133
|
+
display: inline-block;
|
|
134
|
+
border-bottom: 1px dotted #222;
|
|
135
|
+
margin-left: 22px;
|
|
136
|
+
font-size: 14px;
|
|
137
|
+
|
|
138
|
+
.tooltip-text {
|
|
139
|
+
width: 100px;
|
|
140
|
+
background-color: #222;
|
|
141
|
+
color: #fff;
|
|
142
|
+
// opacity: 0.8;
|
|
143
|
+
text-align: center;
|
|
144
|
+
border-radius: 6px;
|
|
145
|
+
padding: 8px 0;
|
|
146
|
+
position: absolute;
|
|
147
|
+
z-index: 1;
|
|
148
|
+
bottom: 150%;
|
|
149
|
+
left: 50%;
|
|
150
|
+
margin-left: -60px;
|
|
151
|
+
|
|
152
|
+
&:after {
|
|
153
|
+
content: "";
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: 100%;
|
|
156
|
+
left: 50%;
|
|
157
|
+
margin-left: -5px;
|
|
158
|
+
border-width: 5px;
|
|
159
|
+
border-style: solid;
|
|
160
|
+
border-color: #222 transparent transparent transparent;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
.timeline-component {
|
|
6
|
+
width: 100%;
|
|
7
|
+
min-width: 275px;
|
|
8
|
+
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
align-items: center;
|
|
12
|
+
padding: 8px 16px;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
gap: 8px;
|
|
15
|
+
|
|
16
|
+
.time-container {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.timeline-time {
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
color: var(--iui-color-text-muted);
|
|
25
|
+
text-align: center;
|
|
26
|
+
min-height: inherit;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.timeline-duration-time {
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
width: 40px;
|
|
32
|
+
color: var(--iui-color-text);
|
|
33
|
+
text-align: center;
|
|
34
|
+
min-height: inherit;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.timeline-date {
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
color: var(--iui-color-text-muted);
|
|
40
|
+
padding-bottom: 4px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.slider {
|
|
44
|
+
position: relative;
|
|
45
|
+
flex: 1;
|
|
46
|
+
margin: 0 20px;
|
|
47
|
+
}
|
|
48
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/imodel-components-react",
|
|
3
|
-
"version": "5.0.0-dev.
|
|
3
|
+
"version": "5.0.0-dev.3",
|
|
4
4
|
"description": "A react component library of iTwin.js UI iModel components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./lib/imodel-components-react.d.ts",
|
|
@@ -36,20 +36,17 @@
|
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@itwin/appui-abstract": "^4.0.0",
|
|
39
|
-
"@itwin/components-react": "^5.0.0-dev.
|
|
39
|
+
"@itwin/components-react": "^5.0.0-dev.3",
|
|
40
40
|
"@itwin/core-bentley": "^4.0.0",
|
|
41
41
|
"@itwin/core-common": "^4.0.0",
|
|
42
42
|
"@itwin/core-frontend": "^4.0.0",
|
|
43
43
|
"@itwin/core-geometry": "^4.0.0",
|
|
44
44
|
"@itwin/core-quantity": "^4.0.0",
|
|
45
|
-
"@itwin/core-react": "^5.0.0-dev.
|
|
45
|
+
"@itwin/core-react": "^5.0.0-dev.3",
|
|
46
|
+
"@itwin/itwinui-react": "^3.15.0",
|
|
46
47
|
"react": "^18.0.0",
|
|
47
48
|
"react-dom": "^18.0.0"
|
|
48
49
|
},
|
|
49
|
-
"//devDependencies": [
|
|
50
|
-
"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
|
|
51
|
-
"NOTE: All tools used by scripts in this package must be listed as devDependencies"
|
|
52
|
-
],
|
|
53
50
|
"devDependencies": {
|
|
54
51
|
"@itwin/appui-abstract": "^4.0.0",
|
|
55
52
|
"@itwin/build-tools": "4.10.0-dev.31",
|
|
@@ -60,6 +57,7 @@
|
|
|
60
57
|
"@itwin/core-orbitgt": "^4.0.0",
|
|
61
58
|
"@itwin/core-quantity": "^4.0.0",
|
|
62
59
|
"@itwin/eslint-plugin": "^4.1.1",
|
|
60
|
+
"@itwin/itwinui-react": "^3.15.0",
|
|
63
61
|
"@itwin/webgl-compatibility": "^4.0.0",
|
|
64
62
|
"@testing-library/dom": "^10.1.0",
|
|
65
63
|
"@testing-library/react": "^15.0.7",
|
|
@@ -85,26 +83,23 @@
|
|
|
85
83
|
"typescript": "~5.3.3",
|
|
86
84
|
"upath": "^2.0.1",
|
|
87
85
|
"vitest": "^1.6.0",
|
|
88
|
-
"@itwin/
|
|
89
|
-
"@itwin/
|
|
86
|
+
"@itwin/core-react": "5.0.0-dev.3",
|
|
87
|
+
"@itwin/components-react": "5.0.0-dev.3"
|
|
90
88
|
},
|
|
91
|
-
"//dependencies": [
|
|
92
|
-
"NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API",
|
|
93
|
-
"NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"
|
|
94
|
-
],
|
|
95
89
|
"dependencies": {
|
|
96
90
|
"@bentley/icons-generic": "^1.0.34",
|
|
97
|
-
"@itwin/itwinui-react": "^3.11.2",
|
|
98
|
-
"@itwin/itwinui-variables": "^3.0.0",
|
|
99
91
|
"@itwin/itwinui-icons-react": "^2.8.0",
|
|
100
92
|
"classnames": "2.5.1",
|
|
101
93
|
"ts-key-enum": "~2.0.12"
|
|
102
94
|
},
|
|
103
95
|
"scripts": {
|
|
104
96
|
"start": "run-p -l \"build -- -w\" \"copy:** -- -w\"",
|
|
105
|
-
"build": "npm run copy:css && npm run copy:locale && tsc",
|
|
97
|
+
"build": "npm run copy:css && npm run compat:css && npm run copy:locale && tsc",
|
|
106
98
|
"copy:css": "cpx \"./src/**/*.*css\" ./lib",
|
|
107
99
|
"copy:locale": "cpx ./src/imodel-components-react/UiIModelComponents.json ./lib/public/locales/en",
|
|
100
|
+
"compat:css": "npm run compat:cjs && npm run compat:esm",
|
|
101
|
+
"compat:cjs": "cpx \"./src/**/*.{*css,svg}\" ./lib/cjs",
|
|
102
|
+
"compat:esm": "cpx \"./src/**/*.{*css,svg}\" ./lib/esm",
|
|
108
103
|
"clean": "rimraf lib .rush/temp/package-deps*.json",
|
|
109
104
|
"cover": "vitest run --coverage",
|
|
110
105
|
"lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
|