@bwp-web/components 1.6.0 → 1.6.2
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/BiampTable/BiampTableToolbarExport.d.ts +13 -1
- package/dist/BiampTable/BiampTableToolbarExport.d.ts.map +1 -1
- package/dist/BiampTable/index.d.ts +1 -1
- package/dist/BiampTable/index.d.ts.map +1 -1
- package/dist/index.cjs +27 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2162,7 +2162,7 @@ function BiampTableToolbarActions({
|
|
|
2162
2162
|
}
|
|
2163
2163
|
|
|
2164
2164
|
// src/BiampTable/BiampTableToolbarExport.tsx
|
|
2165
|
-
import {
|
|
2165
|
+
import { Button } from "@mui/material";
|
|
2166
2166
|
import { DownloadIcon } from "@bwp-web/assets";
|
|
2167
2167
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
2168
2168
|
function BiampTableToolbarExport({
|
|
@@ -2175,20 +2175,40 @@ function BiampTableToolbarExport({
|
|
|
2175
2175
|
return /* @__PURE__ */ jsx19(
|
|
2176
2176
|
BiampTableToolbarActionButton,
|
|
2177
2177
|
{
|
|
2178
|
-
label
|
|
2179
|
-
icon
|
|
2180
|
-
|
|
2178
|
+
label,
|
|
2179
|
+
icon,
|
|
2180
|
+
loading,
|
|
2181
2181
|
onClick: onExport,
|
|
2182
2182
|
...props
|
|
2183
2183
|
}
|
|
2184
2184
|
);
|
|
2185
2185
|
}
|
|
2186
|
+
function BiampTableToolbarExportTextButton({
|
|
2187
|
+
onExport,
|
|
2188
|
+
loading,
|
|
2189
|
+
icon,
|
|
2190
|
+
label = "Export",
|
|
2191
|
+
...props
|
|
2192
|
+
}) {
|
|
2193
|
+
return /* @__PURE__ */ jsx19(
|
|
2194
|
+
Button,
|
|
2195
|
+
{
|
|
2196
|
+
variant: "outlined",
|
|
2197
|
+
size: "small",
|
|
2198
|
+
startIcon: icon,
|
|
2199
|
+
loading,
|
|
2200
|
+
onClick: onExport,
|
|
2201
|
+
...props,
|
|
2202
|
+
children: label
|
|
2203
|
+
}
|
|
2204
|
+
);
|
|
2205
|
+
}
|
|
2186
2206
|
|
|
2187
2207
|
// src/BiampTable/BiampTableToolbarFilters.tsx
|
|
2188
2208
|
import {
|
|
2189
2209
|
Badge as Badge2,
|
|
2190
2210
|
Box as Box11,
|
|
2191
|
-
Button,
|
|
2211
|
+
Button as Button2,
|
|
2192
2212
|
Divider as Divider2,
|
|
2193
2213
|
Drawer,
|
|
2194
2214
|
IconButton as IconButton4,
|
|
@@ -2296,7 +2316,7 @@ function BiampTableToolbarFilters({
|
|
|
2296
2316
|
] }),
|
|
2297
2317
|
/* @__PURE__ */ jsxs10(Box11, { display: "flex", children: [
|
|
2298
2318
|
/* @__PURE__ */ jsx20(
|
|
2299
|
-
|
|
2319
|
+
Button2,
|
|
2300
2320
|
{
|
|
2301
2321
|
variant: "overlay",
|
|
2302
2322
|
color: "secondary",
|
|
@@ -2307,7 +2327,7 @@ function BiampTableToolbarFilters({
|
|
|
2307
2327
|
}
|
|
2308
2328
|
),
|
|
2309
2329
|
/* @__PURE__ */ jsx20(
|
|
2310
|
-
|
|
2330
|
+
Button2,
|
|
2311
2331
|
{
|
|
2312
2332
|
variant: "overlay",
|
|
2313
2333
|
color: "primary",
|
|
@@ -2766,7 +2786,7 @@ function BiampBannerActions({ children, ...props }) {
|
|
|
2766
2786
|
}
|
|
2767
2787
|
|
|
2768
2788
|
// src/BiampSegmentedButton/SegmentedButton.tsx
|
|
2769
|
-
import { Button as
|
|
2789
|
+
import { Button as Button3, useTheme } from "@mui/material";
|
|
2770
2790
|
import { alpha as alpha3 } from "@mui/material/styles";
|
|
2771
2791
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2772
2792
|
function SegmentedButton({
|
|
@@ -2778,11 +2798,11 @@ function SegmentedButton({
|
|
|
2778
2798
|
}) {
|
|
2779
2799
|
const theme = useTheme();
|
|
2780
2800
|
const isDarkMode = theme.palette.mode === "dark";
|
|
2781
|
-
const backgroundColor = active ? isDarkMode ? theme.palette.grey[
|
|
2801
|
+
const backgroundColor = active ? isDarkMode ? theme.palette.grey[800] : theme.palette.common.white : "transparent";
|
|
2782
2802
|
const textColor = active ? theme.palette.text.primary : theme.palette.text.secondary;
|
|
2783
2803
|
const border = active ? "solid" : void 0;
|
|
2784
2804
|
return /* @__PURE__ */ jsx23(
|
|
2785
|
-
|
|
2805
|
+
Button3,
|
|
2786
2806
|
{
|
|
2787
2807
|
sx: {
|
|
2788
2808
|
backgroundColor,
|
|
@@ -2818,7 +2838,7 @@ function SegmentedButtonGroup({ children, sx, ...props }) {
|
|
|
2818
2838
|
borderRadius: "6px",
|
|
2819
2839
|
gap: 1,
|
|
2820
2840
|
sx: {
|
|
2821
|
-
backgroundColor: isDarkMode ? theme.palette.grey[
|
|
2841
|
+
backgroundColor: isDarkMode ? theme.palette.grey[900] : theme.palette.grey[100],
|
|
2822
2842
|
...sx
|
|
2823
2843
|
},
|
|
2824
2844
|
...props,
|
|
@@ -3428,6 +3448,7 @@ export {
|
|
|
3428
3448
|
BiampTableToolbarActions,
|
|
3429
3449
|
BiampTableToolbarColumnVisibility,
|
|
3430
3450
|
BiampTableToolbarExport,
|
|
3451
|
+
BiampTableToolbarExportTextButton,
|
|
3431
3452
|
BiampTableToolbarFilters,
|
|
3432
3453
|
BiampTableToolbarSearch,
|
|
3433
3454
|
BiampTableTruncatedCell,
|