asma-types 2.4.0 → 2.5.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/lib/index.d.ts CHANGED
@@ -3,5 +3,6 @@ export type { IFeedBack, ISaveToDataBase } from './interfaces/api/advoca/ISaveTo
3
3
  export * from './interfaces/jwtClaims.js';
4
4
  export * from './interfaces/enums.js';
5
5
  export * from './interfaces/artifactEnums.js';
6
+ export * from './interfaces/breakpoints.js';
6
7
  export * from './utilities/index.js';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AACrF,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAA;AAC5F,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AACrF,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAA;AAC5F,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sBAAsB,CAAA"}
package/lib/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './interfaces/jwtClaims.js';
2
2
  export * from './interfaces/enums.js';
3
3
  export * from './interfaces/artifactEnums.js';
4
+ export * from './interfaces/breakpoints.js';
4
5
  export * from './utilities/index.js';
5
6
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Breakpoints module — single source of truth for TypeScript consumers.
3
+ *
4
+ * @remarks
5
+ * Layout ranges:
6
+ * - mobile: `<= 743px`
7
+ * - tablet: `744px - 1023px`
8
+ * - tablet-desktop: `1024px - 1279px`
9
+ * - desktop: `>= 1280px`
10
+ *
11
+ * SCSS in `asma-ui-core/src/styles/_breakpoints.scss` mirrors these values
12
+ * manually because SCSS cannot import TypeScript. If you change values here,
13
+ * update the SCSS file too.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * import { breakpoints, twScreens, mediaQueries } from 'asma-types'
18
+ * ```
19
+ *
20
+ * @see asma-ui-core/src/styles/_breakpoints.scss
21
+ */
22
+ /**
23
+ * Numeric breakpoint values.
24
+ *
25
+ * @property mobileMax - Maximum width for mobile view.
26
+ * @property tabletMin - Minimum width for tablet view.
27
+ * @property tabletMax - Maximum width for tablet view.
28
+ * @property tabletDesktopMin - Minimum width for tablet-desktop view.
29
+ * @property tabletDesktopMax - Maximum width for tablet-desktop view.
30
+ * @property desktopMin - Minimum width for desktop view.
31
+ */
32
+ export declare const breakpoints: {
33
+ readonly mobileMax: 743;
34
+ readonly tabletMin: 744;
35
+ readonly tabletMax: 1023;
36
+ readonly tabletDesktopMin: 1024;
37
+ readonly tabletDesktopMax: 1279;
38
+ readonly desktopMin: 1280;
39
+ };
40
+ /**
41
+ * Tailwind `screens` configuration.
42
+ *
43
+ * @remarks
44
+ * Passed directly into `theme.extend.screens` in `tailwind.config.ts`.
45
+ */
46
+ export declare const twScreens: {
47
+ readonly tablet: "744px";
48
+ readonly 'tablet-desktop': "1024px";
49
+ readonly desktop: "1280px";
50
+ readonly 'max-mobile': {
51
+ readonly max: "743px";
52
+ };
53
+ readonly 'max-tablet': {
54
+ readonly max: "1023px";
55
+ };
56
+ readonly 'max-tablet-desktop': {
57
+ readonly max: "1279px";
58
+ };
59
+ };
60
+ /**
61
+ * CSS media queries for runtime responsive checks.
62
+ *
63
+ * @remarks
64
+ * Passed directly into `useMediaQuery()` implementations.
65
+ */
66
+ export declare const mediaQueries: {
67
+ readonly mobile: "(max-width: 743px)";
68
+ readonly tablet: "(min-width: 744px) and (max-width: 1023px)";
69
+ readonly tabletDesktop: "(min-width: 1024px) and (max-width: 1279px)";
70
+ readonly desktop: "(min-width: 1280px)";
71
+ };
72
+ //# sourceMappingURL=breakpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../src/interfaces/breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAA;AAEV;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;CASZ,CAAA;AAEV;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;;CAKf,CAAA"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Breakpoints module — single source of truth for TypeScript consumers.
3
+ *
4
+ * @remarks
5
+ * Layout ranges:
6
+ * - mobile: `<= 743px`
7
+ * - tablet: `744px - 1023px`
8
+ * - tablet-desktop: `1024px - 1279px`
9
+ * - desktop: `>= 1280px`
10
+ *
11
+ * SCSS in `asma-ui-core/src/styles/_breakpoints.scss` mirrors these values
12
+ * manually because SCSS cannot import TypeScript. If you change values here,
13
+ * update the SCSS file too.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * import { breakpoints, twScreens, mediaQueries } from 'asma-types'
18
+ * ```
19
+ *
20
+ * @see asma-ui-core/src/styles/_breakpoints.scss
21
+ */
22
+ /**
23
+ * Numeric breakpoint values.
24
+ *
25
+ * @property mobileMax - Maximum width for mobile view.
26
+ * @property tabletMin - Minimum width for tablet view.
27
+ * @property tabletMax - Maximum width for tablet view.
28
+ * @property tabletDesktopMin - Minimum width for tablet-desktop view.
29
+ * @property tabletDesktopMax - Maximum width for tablet-desktop view.
30
+ * @property desktopMin - Minimum width for desktop view.
31
+ */
32
+ export const breakpoints = {
33
+ mobileMax: 743,
34
+ tabletMin: 744,
35
+ tabletMax: 1023,
36
+ tabletDesktopMin: 1024,
37
+ tabletDesktopMax: 1279,
38
+ desktopMin: 1280,
39
+ };
40
+ /**
41
+ * Tailwind `screens` configuration.
42
+ *
43
+ * @remarks
44
+ * Passed directly into `theme.extend.screens` in `tailwind.config.ts`.
45
+ */
46
+ export const twScreens = {
47
+ // min-width (mobile-first)
48
+ tablet: `${breakpoints.tabletMin}px`,
49
+ 'tablet-desktop': `${breakpoints.tabletDesktopMin}px`,
50
+ desktop: `${breakpoints.desktopMin}px`,
51
+ // max-width (targeting mobile / compact)
52
+ 'max-mobile': { max: `${breakpoints.mobileMax}px` },
53
+ 'max-tablet': { max: `${breakpoints.tabletMax}px` },
54
+ 'max-tablet-desktop': { max: `${breakpoints.tabletDesktopMax}px` },
55
+ };
56
+ /**
57
+ * CSS media queries for runtime responsive checks.
58
+ *
59
+ * @remarks
60
+ * Passed directly into `useMediaQuery()` implementations.
61
+ */
62
+ export const mediaQueries = {
63
+ mobile: `(max-width: ${breakpoints.mobileMax}px)`,
64
+ tablet: `(min-width: ${breakpoints.tabletMin}px) and (max-width: ${breakpoints.tabletMax}px)`,
65
+ tabletDesktop: `(min-width: ${breakpoints.tabletDesktopMin}px) and (max-width: ${breakpoints.tabletDesktopMax}px)`,
66
+ desktop: `(min-width: ${breakpoints.desktopMin}px)`,
67
+ };
68
+ //# sourceMappingURL=breakpoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../src/interfaces/breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,SAAS,EAAE,GAAG;IACd,SAAS,EAAE,GAAG;IACd,SAAS,EAAE,IAAI;IACf,gBAAgB,EAAE,IAAI;IACtB,gBAAgB,EAAE,IAAI;IACtB,UAAU,EAAE,IAAI;CACV,CAAA;AAEV;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,2BAA2B;IAC3B,MAAM,EAAE,GAAG,WAAW,CAAC,SAAS,IAAI;IACpC,gBAAgB,EAAE,GAAG,WAAW,CAAC,gBAAgB,IAAI;IACrD,OAAO,EAAE,GAAG,WAAW,CAAC,UAAU,IAAI;IACtC,yCAAyC;IACzC,YAAY,EAAE,EAAE,GAAG,EAAE,GAAG,WAAW,CAAC,SAAS,IAAI,EAAE;IACnD,YAAY,EAAE,EAAE,GAAG,EAAE,GAAG,WAAW,CAAC,SAAS,IAAI,EAAE;IACnD,oBAAoB,EAAE,EAAE,GAAG,EAAE,GAAG,WAAW,CAAC,gBAAgB,IAAI,EAAE;CAC5D,CAAA;AAEV;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,MAAM,EAAE,eAAe,WAAW,CAAC,SAAS,KAAK;IACjD,MAAM,EAAE,eAAe,WAAW,CAAC,SAAS,uBAAuB,WAAW,CAAC,SAAS,KAAK;IAC7F,aAAa,EAAE,eAAe,WAAW,CAAC,gBAAgB,uBAAuB,WAAW,CAAC,gBAAgB,KAAK;IAClH,OAAO,EAAE,eAAe,WAAW,CAAC,UAAU,KAAK;CAC7C,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asma-types",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "shared ts asma types",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -11,7 +11,9 @@
11
11
  "exports": {
12
12
  ".": {
13
13
  "import": "./lib/index.js",
14
- "types": "./lib/index.d.ts"
14
+ "require": "./lib/index.js",
15
+ "types": "./lib/index.d.ts",
16
+ "default": "./lib/index.js"
15
17
  }
16
18
  },
17
19
  "author": "ie",