@bwp-web/components 0.15.0 → 1.0.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/dist/BiampSegmentedButton/SegmentedButton.d.ts +10 -0
- package/dist/BiampSegmentedButton/SegmentedButton.d.ts.map +1 -0
- package/dist/BiampSegmentedButton/SegmentedButtonGroup.d.ts +8 -0
- package/dist/BiampSegmentedButton/SegmentedButtonGroup.d.ts.map +1 -0
- package/dist/BiampSegmentedButton/index.d.ts +3 -0
- package/dist/BiampSegmentedButton/index.d.ts.map +1 -0
- package/dist/index.cjs +66 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1892,6 +1892,68 @@ function BiampBannerContent({ children, ...props }) {
|
|
|
1892
1892
|
function BiampBannerActions({ children, ...props }) {
|
|
1893
1893
|
return /* @__PURE__ */ jsx20(Box10, { display: "flex", gap: 1, alignItems: "center", ...props, children });
|
|
1894
1894
|
}
|
|
1895
|
+
|
|
1896
|
+
// src/BiampSegmentedButton/SegmentedButton.tsx
|
|
1897
|
+
import { Button as Button2, useTheme } from "@mui/material";
|
|
1898
|
+
import { alpha as alpha3 } from "@mui/material/styles";
|
|
1899
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1900
|
+
function SegmentedButton({
|
|
1901
|
+
children,
|
|
1902
|
+
active,
|
|
1903
|
+
small,
|
|
1904
|
+
sx,
|
|
1905
|
+
...props
|
|
1906
|
+
}) {
|
|
1907
|
+
const theme = useTheme();
|
|
1908
|
+
const isDarkMode = theme.palette.mode === "dark";
|
|
1909
|
+
const backgroundColor = active ? isDarkMode ? theme.palette.grey[900] : theme.palette.common.white : "transparent";
|
|
1910
|
+
const textColor = active ? theme.palette.text.primary : theme.palette.text.secondary;
|
|
1911
|
+
const border = active ? "solid" : void 0;
|
|
1912
|
+
return /* @__PURE__ */ jsx21(
|
|
1913
|
+
Button2,
|
|
1914
|
+
{
|
|
1915
|
+
sx: {
|
|
1916
|
+
backgroundColor,
|
|
1917
|
+
color: textColor,
|
|
1918
|
+
borderRadius: "4px",
|
|
1919
|
+
border,
|
|
1920
|
+
borderColor: "divider",
|
|
1921
|
+
lineHeight: 1.5,
|
|
1922
|
+
px: 1.5,
|
|
1923
|
+
py: 0,
|
|
1924
|
+
height: small ? "22px" : "26px",
|
|
1925
|
+
...small && { fontSize: "12px", letterSpacing: "-0.24px" },
|
|
1926
|
+
boxShadow: active ? `0 1px 2px 0 ${alpha3(theme.palette.common.black, 0.05)} !important` : "none !important",
|
|
1927
|
+
...sx
|
|
1928
|
+
},
|
|
1929
|
+
...props,
|
|
1930
|
+
children
|
|
1931
|
+
}
|
|
1932
|
+
);
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
// src/BiampSegmentedButton/SegmentedButtonGroup.tsx
|
|
1936
|
+
import { Stack as Stack7, useTheme as useTheme2 } from "@mui/material";
|
|
1937
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1938
|
+
function SegmentedButtonGroup({ children, sx, ...props }) {
|
|
1939
|
+
const theme = useTheme2();
|
|
1940
|
+
const isDarkMode = theme.palette.mode === "dark";
|
|
1941
|
+
return /* @__PURE__ */ jsx22(
|
|
1942
|
+
Stack7,
|
|
1943
|
+
{
|
|
1944
|
+
direction: "row",
|
|
1945
|
+
p: 0.5,
|
|
1946
|
+
borderRadius: "6px",
|
|
1947
|
+
gap: 1,
|
|
1948
|
+
sx: {
|
|
1949
|
+
backgroundColor: isDarkMode ? theme.palette.grey[800] : theme.palette.grey[100],
|
|
1950
|
+
...sx
|
|
1951
|
+
},
|
|
1952
|
+
...props,
|
|
1953
|
+
children
|
|
1954
|
+
}
|
|
1955
|
+
);
|
|
1956
|
+
}
|
|
1895
1957
|
export {
|
|
1896
1958
|
BIAMP_TABLE_DEBOUNCE_DELAY,
|
|
1897
1959
|
BiampAppDialog,
|
|
@@ -1930,6 +1992,8 @@ export {
|
|
|
1930
1992
|
BiampTableToolbarSearch,
|
|
1931
1993
|
BiampTableTruncatedCell,
|
|
1932
1994
|
BiampWrapper,
|
|
1995
|
+
SegmentedButton,
|
|
1996
|
+
SegmentedButtonGroup,
|
|
1933
1997
|
buildCsvString,
|
|
1934
1998
|
exportToCsv,
|
|
1935
1999
|
getColumnVisibilityDirtyCount,
|