@appartmint/tsm-types 1.0.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.
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e={xs:480,sm:768,md:1024,lg:1200,xl:1440};exports.breakpoints=e;
@@ -0,0 +1,11 @@
1
+ export declare const breakpoints: {
2
+ readonly xs: 480;
3
+ readonly sm: 768;
4
+ readonly md: 1024;
5
+ readonly lg: 1200;
6
+ readonly xl: 1440;
7
+ };
8
+ type BP = typeof breakpoints;
9
+ export type BreakpointKey = keyof BP;
10
+ export type Breakpoint = BP[BreakpointKey];
11
+ export {};
@@ -0,0 +1,10 @@
1
+ //#region src/breakpoints.ts
2
+ var e = {
3
+ xs: 480,
4
+ sm: 768,
5
+ md: 1024,
6
+ lg: 1200,
7
+ xl: 1440
8
+ };
9
+ //#endregion
10
+ export { e as breakpoints };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});
@@ -0,0 +1,7 @@
1
+ import { Prettify } from '../../util';
2
+ export type TextTypes = 'text' | 'textarea' | 'search' | 'tel' | 'url' | 'email' | 'password';
3
+ export type NumberTypes = 'number' | 'month' | 'week';
4
+ export type BooleanTypes = 'radio' | 'checkbox';
5
+ export type DateTypes = 'date' | 'time' | 'datetime-local';
6
+ export type CustomTypes = 'text-button';
7
+ export type InputType = Prettify<BooleanTypes | TextTypes | NumberTypes | DateTypes | CustomTypes | 'color' | 'hidden' | 'image'>;
File without changes
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=[`admins`,`owners`],t=[...e,`editors`],n=[`users`];exports.adminGroups=e,exports.editorGroups=t,exports.userGroups=n;
@@ -0,0 +1,6 @@
1
+ export declare const adminGroups: readonly ["admins", "owners"];
2
+ export type AdminGroup = (typeof adminGroups)[number];
3
+ export declare const editorGroups: readonly ["admins", "owners", "editors"];
4
+ export type EditorGroup = (typeof editorGroups)[number];
5
+ export declare const userGroups: readonly ["users"];
6
+ export type UserGroup = (typeof userGroups)[number];
@@ -0,0 +1,4 @@
1
+ //#region src/groups.ts
2
+ var e = ["admins", "owners"], t = [...e, "editors"], n = ["users"];
3
+ //#endregion
4
+ export { e as adminGroups, t as editorGroups, n as userGroups };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=[`top`,`right`,`bottom`,`left`];exports.sides=e;
package/dist/side.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare const sides: readonly ["top", "right", "bottom", "left"];
2
+ export type Side = (typeof sides)[number];
@@ -0,0 +1,9 @@
1
+ //#region src/side.ts
2
+ var e = [
3
+ "top",
4
+ "right",
5
+ "bottom",
6
+ "left"
7
+ ];
8
+ //#endregion
9
+ export { e as sides };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=0,t=100,n={instant:0,fastest:100,faster:200,default:300,slower:400,slowest:500};exports.delay=n,exports.delayBase=e,exports.delayStep=t;
package/dist/time.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ export declare const delayBase: 0;
2
+ export declare const delayStep: 100;
3
+ export declare const delay: {
4
+ readonly instant: number;
5
+ readonly fastest: number;
6
+ readonly faster: number;
7
+ readonly default: number;
8
+ readonly slower: number;
9
+ readonly slowest: number;
10
+ };
@@ -0,0 +1,11 @@
1
+ //#region src/time.ts
2
+ var e = 0, t = 100, n = {
3
+ instant: 0,
4
+ fastest: 100,
5
+ faster: 200,
6
+ default: 300,
7
+ slower: 400,
8
+ slowest: 500
9
+ };
10
+ //#endregion
11
+ export { n as delay, e as delayBase, t as delayStep };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});
package/dist/util.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export type Prettify<T> = {
2
+ [K in keyof T]: T[K];
3
+ } & {};
4
+ export type HasId<T> = Omit<T, 'id'> & {
5
+ id: string;
6
+ };
File without changes
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "@appartmint/tsm-types",
3
+ "author": "App Art Mint LLC",
4
+ "version": "1.0.2",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "description": "TypeScript Types from App Art Mint LLC",
8
+ "keywords": [
9
+ "typescript",
10
+ "types",
11
+ "app art mint",
12
+ "appartmint"
13
+ ],
14
+ "homepage": "https://github.com/App-Art-Mint/tsm-types#readme",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/App-Art-Mint/tsm-types.git"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/App-Art-Mint/tsm-types/issues"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "files": [
26
+ "dist/**/*.{js,d.ts}"
27
+ ],
28
+ "exports": {
29
+ "./*": {
30
+ "types": "./dist/*.d.ts",
31
+ "import": "./dist/*.esm.js",
32
+ "require": "./dist/*.cjs.js",
33
+ "default": "./dist/*.esm.js"
34
+ }
35
+ },
36
+ "scripts": {
37
+ "version": "npm i --package-lock-only && git add -A",
38
+ "postversion": "git push && git push --tags && cross-replace gh release create \"v$npm_package_version\" --generate-notes",
39
+ "prepare": "run-s build",
40
+ "clean": "rimraf dist",
41
+ "build": "run-p test:types build:prod",
42
+ "build:prod": "vite build",
43
+ "test": "run-p test:**",
44
+ "test:types": "tsc -b",
45
+ "test:deps": "depcruise src",
46
+ "lint": "eslint --fix .",
47
+ "format": "run-s format:**",
48
+ "format:imports": "npm run format:imports --prefix ./node_modules/@appartmint/tsm-scripts",
49
+ "yalc:publish": "yalc publish",
50
+ "check:updates": "npm-check-updates"
51
+ },
52
+ "devDependencies": {
53
+ "@appartmint/tsm-scripts": "^0.4.0",
54
+ "@eslint/js": "^10.0.1",
55
+ "@types/node": "^26.1.1",
56
+ "cross-replace": "^0.2.0",
57
+ "dependency-cruiser": "^18.0.0",
58
+ "eslint": "^10.7.0",
59
+ "glob": "^13.0.6",
60
+ "globals": "^17.7.0",
61
+ "jiti": "^2.7.0",
62
+ "npm-check-updates": "^22.2.9",
63
+ "npm-run-all2": "^9.0.2",
64
+ "rimraf": "^6.1.3",
65
+ "tsx": "^4.23.0",
66
+ "typescript": "^6.0.3",
67
+ "typescript-eslint": "^8.63.0",
68
+ "vite": "^8.1.4",
69
+ "vite-plugin-dts": "^5.0.3",
70
+ "yalc": "^1.0.0-pre.53"
71
+ }
72
+ }