@pipelinesolucoes/theme 1.0.7-beta.7 → 1.0.7-beta.9
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/hooks/useBreakpoints.d.ts +8 -0
- package/dist/hooks/useBreakpoints.js +13 -0
- package/dist/hooks/useBreakpoints.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/pipelinesolucoes.d.ts +3 -1
- package/dist/types/tokens/chipTokens.d.ts +7 -0
- package/dist/types/tokens/chipTokens.js +2 -0
- package/dist/types/tokens/chipTokens.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useTheme, useMediaQuery } from "@mui/material";
|
|
3
|
+
export const useBreakpoints = () => {
|
|
4
|
+
const theme = useTheme();
|
|
5
|
+
return {
|
|
6
|
+
isXs: useMediaQuery(theme.breakpoints.down("sm")),
|
|
7
|
+
isSm: useMediaQuery(theme.breakpoints.between("sm", "md")),
|
|
8
|
+
isMd: useMediaQuery(theme.breakpoints.between("md", "lg")),
|
|
9
|
+
isLg: useMediaQuery(theme.breakpoints.between("lg", "xl")),
|
|
10
|
+
isXl: useMediaQuery(theme.breakpoints.up("xl")),
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useBreakpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBreakpoints.js","sourceRoot":"","sources":["../../src/hooks/useBreakpoints.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAUxD,MAAM,CAAC,MAAM,cAAc,GAAG,GAAqB,EAAE;IACnD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IAEzB,OAAO;QACL,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC1D,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC1D,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC1D,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;KAChD,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "./mui-theme";
|
|
2
|
+
export * from './hooks/useBreakpoints';
|
|
2
3
|
export * from "./types/props/BorderProps";
|
|
3
4
|
export * from "./types/props/ColorProps";
|
|
4
5
|
export * from "./types/props/LayoutProps";
|
|
@@ -11,6 +12,7 @@ export * from "./types/tokens/typographyTokens";
|
|
|
11
12
|
export * from "./types/tokens/safeAreaTokens";
|
|
12
13
|
export * from "./types/tokens/footerTokens";
|
|
13
14
|
export * from "./types/tokens/notificationTokens";
|
|
15
|
+
export * from "./types/tokens/chipTokens";
|
|
14
16
|
export * from "./types/pipelinesolucoes";
|
|
15
17
|
export * from "./utils/mergeThemeParts";
|
|
16
18
|
export * from "./createPipelineSolucoesTheme";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "./mui-theme";
|
|
2
|
+
export * from './hooks/useBreakpoints';
|
|
2
3
|
export * from "./types/props/BorderProps";
|
|
3
4
|
export * from "./types/props/ColorProps";
|
|
4
5
|
export * from "./types/props/LayoutProps";
|
|
@@ -11,6 +12,7 @@ export * from "./types/tokens/typographyTokens";
|
|
|
11
12
|
export * from "./types/tokens/safeAreaTokens";
|
|
12
13
|
export * from "./types/tokens/footerTokens";
|
|
13
14
|
export * from "./types/tokens/notificationTokens";
|
|
15
|
+
export * from "./types/tokens/chipTokens";
|
|
14
16
|
export * from "./types/pipelinesolucoes";
|
|
15
17
|
export * from "./utils/mergeThemeParts";
|
|
16
18
|
export * from "./createPipelineSolucoesTheme";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAC;AAErB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AAExC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAC;AAErB,cAAc,wBAAwB,CAAC;AAEvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AAExC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAE1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC"}
|