@linzjs/windows 9.1.4 → 9.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.
@@ -1,4 +1,4 @@
1
- import { LuiButton, LuiCheckboxInput, LuiMiniSpinner } from '@linzjs/lui';
1
+ import { LuiButton, LuiCheckboxInput, LuiIcon, LuiMiniSpinner } from '@linzjs/lui';
2
2
  import { LuiButtonProps } from '@linzjs/lui/dist/components/LuiButton/LuiButton';
3
3
  import { IconName } from '@linzjs/lui/dist/components/LuiIcon/LuiIcon';
4
4
  import clsx from 'clsx';
@@ -20,6 +20,7 @@ export interface LuiModalAsyncPrefabButton<RT> {
20
20
  default?: boolean;
21
21
  level?: LuiButtonProps['level'];
22
22
  title: string;
23
+ icon?: IconName;
23
24
  value?: RT;
24
25
  }
25
26
 
@@ -148,12 +149,14 @@ export const LuiModalPrefab = (props: PropsWithChildren<LuiModalAsyncPrefabProps
148
149
  <LuiButton
149
150
  key={i}
150
151
  level={pf.level ?? 'secondary'}
152
+ className={clsx(pf.icon && 'lui-button-icon')}
151
153
  onClick={() => {
152
154
  setDontShow();
153
155
  resolve(pf.value);
154
156
  }}
155
157
  buttonProps={pf.default ? { 'data-autofocus': true } : undefined}
156
158
  >
159
+ {pf.icon && <LuiIcon name={pf.icon} alt={pf.title} size={'md'} />}
157
160
  {pf.title}
158
161
  </LuiButton>
159
162
  ))}
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./dist/index.ts",
16
- "version": "9.1.4",
16
+ "version": "9.2.0",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": ">=23",
19
19
  "lodash-es": ">=4",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "devDependencies": {
62
62
  "@chromatic-com/storybook": "^4.1.3",
63
- "@linzjs/lui": "^24.10.1",
63
+ "@linzjs/lui": "^24.11.0",
64
64
  "@linzjs/step-ag-grid": "^29.14.1",
65
65
  "@linzjs/style": "^5.4.0",
66
66
  "@rollup/plugin-commonjs": "^28.0.9",
@@ -88,7 +88,7 @@
88
88
  "react": "^18.3.1",
89
89
  "react-app-polyfill": "^3.0.0",
90
90
  "react-dom": "18.3.1",
91
- "rollup": "^4.59.0",
91
+ "rollup": "^4.60.0",
92
92
  "rollup-plugin-copy": "^3.5.0",
93
93
  "sass": "^1.98.0",
94
94
  "sass-loader": "^16.0.7",
@@ -107,8 +107,8 @@
107
107
  "vitest": "^4.1.0"
108
108
  },
109
109
  "optionalDependencies": {
110
- "@rollup/rollup-linux-x64-gnu": "^4.59.0",
111
- "@swc/core-linux-x64-gnu": "^1.15.18"
110
+ "@rollup/rollup-linux-x64-gnu": "^4.60.0",
111
+ "@swc/core-linux-x64-gnu": "^1.15.21"
112
112
  },
113
113
  "browserslist": {
114
114
  "production": [