@linzjs/windows 5.5.0 → 5.5.1

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.
@@ -1,72 +1,72 @@
1
- @use "@linzjs/lui/dist/scss/Core" as lui;
2
-
3
- .lui-button.lui-button-toolbar {
4
- border-color: transparent;
5
- padding: 4px;
6
- line-height: 12px;
7
- margin: 2px;
8
- }
9
-
10
- .OpenPanelIcon-selected {
11
- cursor: pointer;
12
- color: lui.$white !important;
13
- background-color: lui.$blue-75 !important;
14
- box-shadow: inset 0 2px 4px rgb(41 92 130);
15
-
16
- fill: lui.$white !important;
17
-
18
- svg * {
19
- fill: lui.$white !important;
20
- }
21
-
22
- svg * {
23
- color: lui.$white !important;
24
- fill: lui.$white !important;
25
- }
26
- }
27
-
28
- .OpenPanelIcon-disabled {
29
- background-color: lui.$white !important;
30
-
31
- fill: lui.$grey-20 !important;
32
-
33
- svg * {
34
- fill: lui.$grey-20 !important;
35
- }
36
- }
37
-
38
- %OpenPanelIcon-Group {
39
- background-color: white;
40
- border-radius: 4px;
41
- padding: 4px;
42
- align-items: center;
43
- box-shadow: 0 0 10px rgb(0 0 0 / 20%);
44
- display: inline-flex;
45
- }
46
-
47
- .OpenPanelIcon-verticalGroup {
48
- @extend %OpenPanelIcon-Group;
49
- flex-direction: column;
50
-
51
- .OpenPanelIcon-separator {
52
- margin: 6px 0;
53
- height: 2px;
54
- width: 100%;
55
- background-color: lui.$grey-10;
56
- }
57
- }
58
-
59
- .OpenPanelIcon-horizontalGroup {
60
- @extend %OpenPanelIcon-Group;
61
- flex-direction: row;
62
-
63
- .OpenPanelIcon-separator {
64
- height: 100%;
65
- margin-left: 6px;
66
- margin-right: 6px;
67
- margin-top: -3px;
68
- padding-bottom: 8px;
69
- width: 2px;
70
- background-color: lui.$grey-10;
71
- }
1
+ @use "@linzjs/lui/dist/scss/Core" as lui;
2
+
3
+ .lui-button.lui-button-toolbar {
4
+ border-color: transparent;
5
+ padding: 4px;
6
+ line-height: 12px;
7
+ margin: 2px;
8
+ }
9
+
10
+ .OpenPanelIcon-selected {
11
+ cursor: pointer;
12
+ color: lui.$white !important;
13
+ background-color: lui.$blue-75 !important;
14
+ box-shadow: inset 0 2px 4px rgb(41 92 130);
15
+
16
+ fill: lui.$white !important;
17
+
18
+ svg * {
19
+ fill: lui.$white !important;
20
+ }
21
+
22
+ svg * {
23
+ color: lui.$white !important;
24
+ fill: lui.$white !important;
25
+ }
26
+ }
27
+
28
+ .OpenPanelIcon-disabled {
29
+ background-color: lui.$white !important;
30
+
31
+ fill: lui.$grey-20 !important;
32
+
33
+ svg * {
34
+ fill: lui.$grey-20 !important;
35
+ }
36
+ }
37
+
38
+ %OpenPanelIcon-Group {
39
+ background-color: white;
40
+ border-radius: 4px;
41
+ padding: 4px;
42
+ align-items: center;
43
+ box-shadow: 0 0 10px rgb(0 0 0 / 20%);
44
+ display: inline-flex;
45
+ }
46
+
47
+ .OpenPanelIcon-verticalGroup {
48
+ @extend %OpenPanelIcon-Group;
49
+ flex-direction: column;
50
+
51
+ .OpenPanelIcon-separator {
52
+ margin: 6px 0;
53
+ height: 2px;
54
+ width: 100%;
55
+ background-color: lui.$grey-10;
56
+ }
57
+ }
58
+
59
+ .OpenPanelIcon-horizontalGroup {
60
+ @extend %OpenPanelIcon-Group;
61
+ flex-direction: row;
62
+
63
+ .OpenPanelIcon-separator {
64
+ height: 100%;
65
+ margin-left: 6px;
66
+ margin-right: 6px;
67
+ margin-top: -3px;
68
+ padding-bottom: 8px;
69
+ width: 2px;
70
+ background-color: lui.$grey-10;
71
+ }
72
72
  }
@@ -1,123 +1,123 @@
1
- @use "@linzjs/lui/dist/scss/Core" as lui;
2
-
3
- .panelDock > .panelDock-content:not(:empty) + .panelDock-empty {
4
- display: none;
5
- }
6
-
7
- .WindowPanel-children {
8
- display: flex;
9
- overflow: hidden;
10
- text-overflow: ellipsis;
11
- flex: 1;
12
- }
13
-
14
- .WindowPanel-header {
15
- height: 48px;
16
- line-height: 48px;
17
- user-select: none;
18
- color: lui.$charcoal;
19
- padding: 0 16px;
20
- display: flex;
21
- overflow: hidden;
22
- justify-content: space-between;
23
- border-bottom: 2px lui.$lily solid;
24
- font-size: 1em;
25
- font-weight: 600;
26
- flex-direction: row;
27
- align-items: center;
28
-
29
- .LuiTabsGroup {
30
- margin-top: 4px;
31
- line-height: 16px;
32
-
33
- .LuiTab {
34
- min-width: 0;
35
- padding-left: 8px;
36
- padding-right: 8px;
37
- padding-bottom: 11px;
38
- }
39
-
40
- .LuiTab:not(.LuiTab--active):focus {
41
- padding-top: 8px;
42
- padding-bottom: 8px;
43
- }
44
-
45
- .LuiTab--active {
46
- padding-left: 7px;
47
- padding-right: 7px;
48
- }
49
-
50
- .LuiTab--active::after, .LuiTab--active:focus::after {
51
- padding: 0;
52
- }
53
- }
54
-
55
- .lui-button + .lui-button, a.lui-button + .lui-button {
56
- margin-left: 0 !important;
57
- }
58
- }
59
-
60
- .WindowPanel {
61
- box-shadow: 0 1px 6px 0 #00000026, 0 6px 10px 0 #00000040;
62
- background-color: #fff;
63
- display: flex;
64
- flex-direction: column;
65
- border-radius: 9px;
66
-
67
- .WindowPanel-header {
68
- border-radius: 9px 9px 0 0;
69
- }
70
- }
71
-
72
- %WindowPanel-divider {
73
- border-left: 2px solid lui.$lily;
74
- background-color: lui.$lily;
75
- width: 0;
76
- height: 19px;
77
- }
78
-
79
- .WindowPanel-divider-left {
80
- @extend %WindowPanel-divider;
81
- margin-right: 15px;
82
- margin-left: 19px;
83
- }
84
-
85
- .WindowPanel-divider-right {
86
- @extend %WindowPanel-divider;
87
- margin-right: 8px;
88
- margin-left: 8px;
89
- }
90
-
91
- .WindowPanel-buttons {
92
- display: flex;
93
- align-items: center;
94
-
95
- a.lui-button,
96
- button.lui-button {
97
- display: flex;
98
- align-items: center;
99
-
100
- span.LuiIcon {
101
- margin-left: auto;
102
- margin-right: auto;
103
- }
104
- }
105
- }
106
-
107
- .WindowPanel-header-title {
108
- display: flex;
109
- align-items: center;
110
- white-space: nowrap;
111
- }
112
-
113
- .WindowPanel-header-title-icon {
114
- fill: lui.$fuscous !important;
115
- margin-right: 8px;
116
- }
117
-
118
- .WindowPanel-content {
119
- flex: 1;
120
- overflow: auto;
121
- display: flex;
122
- flex-direction: column;
123
- }
1
+ @use "@linzjs/lui/dist/scss/Core" as lui;
2
+
3
+ .panelDock > .panelDock-content:not(:empty) + .panelDock-empty {
4
+ display: none;
5
+ }
6
+
7
+ .WindowPanel-children {
8
+ display: flex;
9
+ overflow: hidden;
10
+ text-overflow: ellipsis;
11
+ flex: 1;
12
+ }
13
+
14
+ .WindowPanel-header {
15
+ height: 48px;
16
+ line-height: 48px;
17
+ user-select: none;
18
+ color: lui.$charcoal;
19
+ padding: 0 16px;
20
+ display: flex;
21
+ overflow: hidden;
22
+ justify-content: space-between;
23
+ border-bottom: 2px lui.$lily solid;
24
+ font-size: 1em;
25
+ font-weight: 600;
26
+ flex-direction: row;
27
+ align-items: center;
28
+
29
+ .LuiTabsGroup {
30
+ margin-top: 4px;
31
+ line-height: 16px;
32
+
33
+ .LuiTab {
34
+ min-width: 0;
35
+ padding-left: 8px;
36
+ padding-right: 8px;
37
+ padding-bottom: 11px;
38
+ }
39
+
40
+ .LuiTab:not(.LuiTab--active):focus {
41
+ padding-top: 8px;
42
+ padding-bottom: 8px;
43
+ }
44
+
45
+ .LuiTab--active {
46
+ padding-left: 7px;
47
+ padding-right: 7px;
48
+ }
49
+
50
+ .LuiTab--active::after, .LuiTab--active:focus::after {
51
+ padding: 0;
52
+ }
53
+ }
54
+
55
+ .lui-button + .lui-button, a.lui-button + .lui-button {
56
+ margin-left: 0 !important;
57
+ }
58
+ }
59
+
60
+ .WindowPanel {
61
+ box-shadow: 0 1px 6px 0 #00000026, 0 6px 10px 0 #00000040;
62
+ background-color: #fff;
63
+ display: flex;
64
+ flex-direction: column;
65
+ border-radius: 9px;
66
+
67
+ .WindowPanel-header {
68
+ border-radius: 9px 9px 0 0;
69
+ }
70
+ }
71
+
72
+ %WindowPanel-divider {
73
+ border-left: 2px solid lui.$lily;
74
+ background-color: lui.$lily;
75
+ width: 0;
76
+ height: 19px;
77
+ }
78
+
79
+ .WindowPanel-divider-left {
80
+ @extend %WindowPanel-divider;
81
+ margin-right: 15px;
82
+ margin-left: 19px;
83
+ }
84
+
85
+ .WindowPanel-divider-right {
86
+ @extend %WindowPanel-divider;
87
+ margin-right: 8px;
88
+ margin-left: 8px;
89
+ }
90
+
91
+ .WindowPanel-buttons {
92
+ display: flex;
93
+ align-items: center;
94
+
95
+ a.lui-button,
96
+ button.lui-button {
97
+ display: flex;
98
+ align-items: center;
99
+
100
+ span.LuiIcon {
101
+ margin-left: auto;
102
+ margin-right: auto;
103
+ }
104
+ }
105
+ }
106
+
107
+ .WindowPanel-header-title {
108
+ display: flex;
109
+ align-items: center;
110
+ white-space: nowrap;
111
+ }
112
+
113
+ .WindowPanel-header-title-icon {
114
+ fill: lui.$fuscous !important;
115
+ margin-right: 8px;
116
+ }
117
+
118
+ .WindowPanel-content {
119
+ flex: 1;
120
+ overflow: auto;
121
+ display: flex;
122
+ flex-direction: column;
123
+ }
@@ -1,18 +1,18 @@
1
- @use "@linzjs/lui/dist/scss/Core" as lui;
2
-
3
- .WindowPanel-blue.WindowPanel-header, .WindowPanel-blue .WindowPanel-header {
4
- background: linear-gradient(270deg,#007198,#00425b 100%);
5
- color: #fff;
6
-
7
- svg * {
8
- fill: #fff;
9
- }
10
- }
11
-
12
- .WindowPanel-blue .LuiTab {
13
- color: lui.$iceberg
14
- }
15
-
16
- .WindowPanel-blue .LuiTab.LuiTab--active {
17
- color: lui.$downy
18
- }
1
+ @use "@linzjs/lui/dist/scss/Core" as lui;
2
+
3
+ .WindowPanel-blue.WindowPanel-header, .WindowPanel-blue .WindowPanel-header {
4
+ background: linear-gradient(270deg,#007198,#00425b 100%);
5
+ color: #fff;
6
+
7
+ svg * {
8
+ fill: #fff;
9
+ }
10
+ }
11
+
12
+ .WindowPanel-blue .LuiTab {
13
+ color: lui.$iceberg
14
+ }
15
+
16
+ .WindowPanel-blue .LuiTab.LuiTab--active {
17
+ color: lui.$downy
18
+ }
@@ -1,5 +1,5 @@
1
1
  import clsx from 'clsx';
2
- import { Dispatch, useCallback, useContext, useEffect, useRef } from 'react';
2
+ import { Dispatch, ReactNode, useCallback, useContext, useEffect, useRef } from 'react';
3
3
  import { Rnd } from 'react-rnd';
4
4
 
5
5
  import { PanelContext } from './PanelContext';
@@ -28,7 +28,7 @@ export function PopinWindow({
28
28
  setPanelPosition: Dispatch<PanelPosition>;
29
29
  panelSize: PanelSize;
30
30
  setPanelSize: Dispatch<PanelSize>;
31
- }): JSX.Element {
31
+ }): ReactNode {
32
32
  const panelRef = useRef<Rnd>(null);
33
33
 
34
34
  const { bounds, zIndex, bringPanelToFront, uniqueId } = useContext(PanelInstanceContext);
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./dist/index.ts",
16
- "version": "5.5.0",
16
+ "version": "5.5.1",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": ">=21",
19
19
  "lodash-es": ">=4",