@linzjs/windows 16.1.0 → 16.2.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/README.md +159 -146
- package/dist/LuiModalAsync/LuiModalAsync.scss +11 -9
- package/dist/components/CopyableText.scss +8 -4
- package/dist/index.js +21 -45
- package/dist/index.js.map +1 -1
- package/dist/panel/PanelBlue.scss +6 -5
- package/dist/panel/index.d.ts +0 -1
- package/dist/panel/index.js +0 -1
- package/dist/panel/index.js.map +1 -1
- package/dist/ribbon/Ribbon.scss +13 -7
- package/dist/ribbon/RibbonMenu.scss +4 -4
- package/package.json +17 -15
- package/dist/panel/OpenPanelButton.d.ts +0 -8
- package/dist/panel/OpenPanelButton.js +0 -11
- package/dist/panel/OpenPanelButton.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use '@linzjs/lui/dist/scss/Foundation/Variables/ColorVars' as lui;
|
|
2
2
|
|
|
3
|
-
.WindowPanel-blue.WindowPanel-header,
|
|
4
|
-
|
|
3
|
+
.WindowPanel-blue.WindowPanel-header,
|
|
4
|
+
.WindowPanel-blue .WindowPanel-header {
|
|
5
|
+
background: linear-gradient(270deg, #007198, #00425b 100%);
|
|
5
6
|
color: #fff;
|
|
6
7
|
|
|
7
8
|
svg * {
|
|
@@ -10,9 +11,9 @@
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.WindowPanel-blue .LuiTab {
|
|
13
|
-
color: lui.$iceberg
|
|
14
|
+
color: lui.$iceberg;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.WindowPanel-blue .LuiTab.LuiTab--active {
|
|
17
|
-
color: lui.$downy
|
|
18
|
+
color: lui.$downy;
|
|
18
19
|
}
|
package/dist/panel/index.d.ts
CHANGED
package/dist/panel/index.js
CHANGED
package/dist/panel/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/panel/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/panel/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC"}
|
package/dist/ribbon/Ribbon.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use '@linzjs/lui/dist/scss/Foundation/Variables/ColorVars' as lui;
|
|
2
2
|
|
|
3
3
|
.RibbonButton {
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
background-color: lui.$polar;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
&:disabled,
|
|
25
|
+
&:disabled,
|
|
26
|
+
.RibbonButton-disabled {
|
|
26
27
|
cursor: not-allowed;
|
|
27
28
|
background-color: lui.$disabled-bg-color;
|
|
28
29
|
fill: lui.$fuscous;
|
|
@@ -58,7 +59,8 @@
|
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
|
|
61
|
-
.RibbonButton-selected,
|
|
62
|
+
.RibbonButton-selected,
|
|
63
|
+
.RibbonButton:has(+ *:popover-open) {
|
|
62
64
|
cursor: pointer;
|
|
63
65
|
color: lui.$white !important;
|
|
64
66
|
background-color: lui.$sea !important;
|
|
@@ -128,7 +130,8 @@ $RibbonSliderMenu-buttonMargin: 2px;
|
|
|
128
130
|
$RibbonSliderMenu-gap: 6px;
|
|
129
131
|
$RibbonSliderMenu-buttonHalfHeight: 20px;
|
|
130
132
|
|
|
131
|
-
.RibbonSliderMenu-right,
|
|
133
|
+
.RibbonSliderMenu-right,
|
|
134
|
+
.RibbonSliderMenu-right-down {
|
|
132
135
|
translate: ($RibbonSliderMenu-buttonMargin) (-$RibbonSliderMenu-gap);
|
|
133
136
|
}
|
|
134
137
|
|
|
@@ -140,7 +143,8 @@ $RibbonSliderMenu-buttonHalfHeight: 20px;
|
|
|
140
143
|
translate: ($RibbonSliderMenu-buttonMargin) ($RibbonSliderMenu-buttonHalfHeight);
|
|
141
144
|
}
|
|
142
145
|
|
|
143
|
-
.RibbonSliderMenu-left,
|
|
146
|
+
.RibbonSliderMenu-left,
|
|
147
|
+
.RibbonSliderMenu-left-down {
|
|
144
148
|
translate: (-$RibbonSliderMenu-buttonMargin) (-$RibbonSliderMenu-gap);
|
|
145
149
|
}
|
|
146
150
|
|
|
@@ -152,7 +156,8 @@ $RibbonSliderMenu-buttonHalfHeight: 20px;
|
|
|
152
156
|
translate: (-$RibbonSliderMenu-buttonMargin) ($RibbonSliderMenu-gap);
|
|
153
157
|
}
|
|
154
158
|
|
|
155
|
-
.RibbonSliderMenu-up,
|
|
159
|
+
.RibbonSliderMenu-up,
|
|
160
|
+
.RibbonSliderMenu-up-right {
|
|
156
161
|
translate: (-$RibbonSliderMenu-gap) (-$RibbonSliderMenu-buttonMargin);
|
|
157
162
|
}
|
|
158
163
|
|
|
@@ -160,7 +165,8 @@ $RibbonSliderMenu-buttonHalfHeight: 20px;
|
|
|
160
165
|
translate: ($RibbonSliderMenu-gap) ($RibbonSliderMenu-buttonMargin);
|
|
161
166
|
}
|
|
162
167
|
|
|
163
|
-
.RibbonSliderMenu-down,
|
|
168
|
+
.RibbonSliderMenu-down,
|
|
169
|
+
.RibbonSliderMenu-down-right {
|
|
164
170
|
translate: (-$RibbonSliderMenu-gap) ($RibbonSliderMenu-buttonMargin);
|
|
165
171
|
}
|
|
166
172
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use '@linzjs/lui/dist/scss/Foundation/Variables/ColorVars' as lui;
|
|
2
2
|
|
|
3
3
|
.RibbonMenuSeparator {
|
|
4
4
|
height: 1px;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.RibbonMenuOption {
|
|
10
|
-
font-family:
|
|
10
|
+
font-family: 'Open Sans', system-ui, sans-serif;
|
|
11
11
|
color: lui.$charcoal;
|
|
12
12
|
|
|
13
13
|
path {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
padding: 6px 12px;
|
|
26
26
|
line-height: 24px;
|
|
27
27
|
font-size: 16px;
|
|
28
|
-
align-items: center
|
|
28
|
+
align-items: center;
|
|
29
29
|
|
|
30
30
|
&:hover {
|
|
31
31
|
background-color: lui.$polar;
|
|
@@ -42,4 +42,4 @@
|
|
|
42
42
|
fill: lui.$disabled-color;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
}
|
|
45
|
+
}
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"./dist/index.scss": "./dist/index.scss"
|
|
23
23
|
},
|
|
24
|
-
"version": "16.
|
|
24
|
+
"version": "16.2.0",
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@linzjs/lui": ">=23",
|
|
27
27
|
"react": ">=18",
|
|
@@ -48,10 +48,12 @@
|
|
|
48
48
|
"lint:style": "stylelint src/**/*.scss src/**/*.css --fix",
|
|
49
49
|
"lint:oxlint": "oxlint ./src",
|
|
50
50
|
"lint:fix": "oxlint --fix ./src",
|
|
51
|
+
"format": "oxfmt --write ./src",
|
|
52
|
+
"format:check": "oxfmt --check ./src",
|
|
51
53
|
"storybook": "storybook dev -p 6006",
|
|
52
54
|
"build-storybook": "storybook build",
|
|
53
55
|
"chromatic": "chromatic --exit-zero-on-changes",
|
|
54
|
-
"update": "npx npm-check-updates -i --format group -c
|
|
56
|
+
"update": "npx npm-check-updates -i --format group -c 7d"
|
|
55
57
|
},
|
|
56
58
|
"dependencies": {
|
|
57
59
|
"@emotion/cache": "^11.14.0",
|
|
@@ -61,18 +63,18 @@
|
|
|
61
63
|
"react-rnd": "10.5.3"
|
|
62
64
|
},
|
|
63
65
|
"devDependencies": {
|
|
64
|
-
"@chromatic-com/storybook": "^5.3.
|
|
65
|
-
"@linzjs/lui": "^
|
|
66
|
-
"@linzjs/step-ag-grid": "^32.
|
|
66
|
+
"@chromatic-com/storybook": "^5.3.1",
|
|
67
|
+
"@linzjs/lui": "^27.0.0",
|
|
68
|
+
"@linzjs/step-ag-grid": "^32.7.1",
|
|
67
69
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
68
70
|
"@rollup/plugin-json": "^6.1.0",
|
|
69
71
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
70
|
-
"@storybook/addon-docs": "10.
|
|
71
|
-
"@storybook/addon-links": "10.
|
|
72
|
-
"@storybook/react-vite": "10.
|
|
72
|
+
"@storybook/addon-docs": "10.6.0",
|
|
73
|
+
"@storybook/addon-links": "10.6.0",
|
|
74
|
+
"@storybook/react-vite": "10.6.0",
|
|
73
75
|
"@testing-library/dom": "^10.4.1",
|
|
74
|
-
"@testing-library/react": "^16.3.
|
|
75
|
-
"@testing-library/user-event": "^14.6.
|
|
76
|
+
"@testing-library/react": "^16.3.3",
|
|
77
|
+
"@testing-library/user-event": "^14.6.7",
|
|
76
78
|
"@types/lodash-es": "^4.17.12",
|
|
77
79
|
"@types/node": "^24.13.3",
|
|
78
80
|
"@types/react": "^18.3.31",
|
|
@@ -83,22 +85,22 @@
|
|
|
83
85
|
"ag-grid-react": "34.2.0",
|
|
84
86
|
"jsdom": "^27.3.0",
|
|
85
87
|
"oxfmt": "^0.61.0",
|
|
86
|
-
"oxlint": "^1.
|
|
88
|
+
"oxlint": "^1.82.0",
|
|
87
89
|
"react": "^18.3.1",
|
|
88
90
|
"react-dom": "18.3.1",
|
|
89
|
-
"rollup": "^4.
|
|
91
|
+
"rollup": "^4.63.1",
|
|
90
92
|
"rollup-plugin-copy": "^3.5.0",
|
|
91
93
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
92
94
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
93
|
-
"sass": "^1.
|
|
94
|
-
"storybook": "10.
|
|
95
|
+
"sass": "^1.104.0",
|
|
96
|
+
"storybook": "10.6.0",
|
|
95
97
|
"stylelint": "^16.26.1",
|
|
96
98
|
"stylelint-config-recommended": "^17.0.0",
|
|
97
99
|
"stylelint-config-recommended-scss": "^16.0.2",
|
|
98
100
|
"stylelint-config-standard": "^39.0.1",
|
|
99
101
|
"stylelint-scss": "6.14.0",
|
|
100
102
|
"typescript": "^7.0.2",
|
|
101
|
-
"vite": "^8.2.
|
|
103
|
+
"vite": "^8.2.2",
|
|
102
104
|
"vitest": "^4.1.11"
|
|
103
105
|
},
|
|
104
106
|
"browserslist": {
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { OpenPanelOptions } from './PanelsContext';
|
|
2
|
-
interface OpenPanelButtonProps extends OpenPanelOptions {
|
|
3
|
-
uniqueId?: string;
|
|
4
|
-
testId?: string;
|
|
5
|
-
buttonText: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const OpenPanelButton: ({ buttonText, testId, uniqueId, ...openPanelOptions }: OpenPanelButtonProps) => import("react").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Simple button to open panel and show panel state
|
|
3
|
-
import { useContext } from 'react';
|
|
4
|
-
import { PanelsContext } from './PanelsContext';
|
|
5
|
-
export const OpenPanelButton = ({ buttonText, testId, uniqueId = buttonText, ...openPanelOptions }) => {
|
|
6
|
-
const { openPanel, closePanel, hidePanel, unhidePanel, hasOpenPanel, hasHiddenPanel } = useContext(PanelsContext);
|
|
7
|
-
const open = hasOpenPanel(uniqueId);
|
|
8
|
-
const hidden = hasHiddenPanel(uniqueId);
|
|
9
|
-
return (_jsxs("div", { children: [_jsxs("b", { children: [buttonText, " ", open ? '(Open)' : ''] }), _jsx("br", {}), !open && (_jsx("button", { "data-testid": testId + 'Open', onClick: () => openPanel({ uniqueId, ...openPanelOptions }), children: "Open" })), open && (_jsxs(_Fragment, { children: [_jsx("button", { "data-testid": testId + 'Close', onClick: () => closePanel(uniqueId), children: "Close" }), hidden ? (_jsx("button", { "data-testid": testId + 'Unhide', onClick: () => unhidePanel(uniqueId), children: "Unhide" })) : (_jsx("button", { "data-testid": testId + 'Hide', onClick: () => hidePanel(uniqueId), children: "Hide" }))] }))] }));
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=OpenPanelButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OpenPanelButton.js","sourceRoot":"","sources":["../../src/panel/OpenPanelButton.tsx"],"names":[],"mappings":";AAAA,mDAAmD;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAoB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQlE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,UAAU,EACV,MAAM,EACN,QAAQ,GAAG,UAAU,EACrB,GAAG,gBAAgB,EACE,EAAE,EAAE;IACzB,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAElH,MAAM,IAAI,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IACpC,MAAM,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;IACxC,OAAO,CACL,0BACE,wBACG,UAAU,OAAG,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,IAChC,EACJ,cAAM,EAEL,CAAC,IAAI,IAAI,CACR,gCAAqB,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,GAAG,gBAAgB,EAAE,CAAC,qBAExF,CACV,EACA,IAAI,IAAI,CACP,8BACE,gCAAqB,MAAM,GAAG,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,sBAEjE,EACR,MAAM,CAAC,CAAC,CAAC,CACR,gCAAqB,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,uBAEnE,CACV,CAAC,CAAC,CAAC,CACF,gCAAqB,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,qBAE/D,CACV,IACA,CACJ,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|