@pallasoft/ps-design-system 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.
@@ -0,0 +1,2 @@
1
+ import type { Config } from 'tailwindcss';
2
+ export declare const PallasoftTailwindPreset: Partial<Config>;
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PallasoftTailwindPreset = void 0;
4
+ const pallasoft_design_tokens_1 = require("./constants/pallasoft-design-tokens");
5
+ const pallasoft_z_index_1 = require("./enums/pallasoft-z-index");
6
+ exports.PallasoftTailwindPreset = {
7
+ darkMode: ['class', '.ps-theme-dark'],
8
+ theme: {
9
+ screens: {
10
+ '2xl': '1536px',
11
+ 'lg': '1024px',
12
+ 'md': '768px',
13
+ 'sm': '640px',
14
+ 'xl': '1280px',
15
+ 'xs': '420px',
16
+ },
17
+ extend: {
18
+ animation: {
19
+ 'ps-fade-in': 'ps-fade-in 180ms ease-out both',
20
+ 'ps-fade-out': 'ps-fade-out 140ms ease-in both',
21
+ 'ps-mobile-menu-in': 'ps-mobile-menu-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both',
22
+ 'ps-mobile-menu-out': 'ps-mobile-menu-out 180ms cubic-bezier(0.4, 0, 1, 1) both',
23
+ 'ps-panel-in': 'ps-panel-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both',
24
+ 'ps-panel-out': 'ps-panel-out 180ms cubic-bezier(0.4, 0, 1, 1) both',
25
+ 'ps-privacy-shimmer': 'ps-privacy-shimmer 1.35s ease-in-out infinite',
26
+ 'ps-scale-in': 'ps-scale-in 180ms ease-out both',
27
+ 'ps-scale-out': 'ps-scale-out 140ms ease-in both',
28
+ 'ps-slide-down': 'ps-slide-down 180ms ease-in both',
29
+ 'ps-slide-up': 'ps-slide-up 220ms ease-out both',
30
+ },
31
+ backgroundImage: {
32
+ 'ps-app-glow': 'linear-gradient(180deg, rgb(var(--ps-color-background-rgb, 245 247 251)), rgb(var(--ps-color-mist-rgb, 239 246 255) / 0.72))',
33
+ 'ps-reflective': 'linear-gradient(135deg, rgb(var(--ps-color-background-rgb, 245 247 251) / 0.98), rgb(var(--ps-color-mist-rgb, 239 246 255) / 0.72))',
34
+ },
35
+ borderRadius: {
36
+ 'ps-card': '1rem',
37
+ 'ps-control': '0.875rem',
38
+ 'ps-pill': '999px',
39
+ 'ps-panel': '1.5rem',
40
+ },
41
+ boxShadow: pallasoft_design_tokens_1.PallasoftShadowTokens,
42
+ colors: {
43
+ accent: {
44
+ DEFAULT: pallasoft_design_tokens_1.PallasoftColorTokens.accent,
45
+ soft: pallasoft_design_tokens_1.PallasoftColorTokens.accentSoft,
46
+ },
47
+ chart: {
48
+ 1: pallasoft_design_tokens_1.PallasoftColorTokens.chart1,
49
+ 2: pallasoft_design_tokens_1.PallasoftColorTokens.chart2,
50
+ 3: pallasoft_design_tokens_1.PallasoftColorTokens.chart3,
51
+ 4: pallasoft_design_tokens_1.PallasoftColorTokens.chart4,
52
+ 5: pallasoft_design_tokens_1.PallasoftColorTokens.chart5,
53
+ },
54
+ danger: {
55
+ DEFAULT: pallasoft_design_tokens_1.PallasoftColorTokens.danger,
56
+ soft: pallasoft_design_tokens_1.PallasoftColorTokens.dangerSoft,
57
+ },
58
+ ink: pallasoft_design_tokens_1.PallasoftColorTokens.ink,
59
+ line: pallasoft_design_tokens_1.PallasoftColorTokens.line,
60
+ mist: pallasoft_design_tokens_1.PallasoftColorTokens.mist,
61
+ primary: {
62
+ DEFAULT: pallasoft_design_tokens_1.PallasoftColorTokens.primary,
63
+ dark: pallasoft_design_tokens_1.PallasoftColorTokens.primaryDark,
64
+ hover: pallasoft_design_tokens_1.PallasoftColorTokens.primaryDark,
65
+ soft: pallasoft_design_tokens_1.PallasoftColorTokens.primarySoft,
66
+ },
67
+ secondary: {
68
+ DEFAULT: pallasoft_design_tokens_1.PallasoftColorTokens.secondary,
69
+ dark: pallasoft_design_tokens_1.PallasoftColorTokens.secondaryDark,
70
+ hover: pallasoft_design_tokens_1.PallasoftColorTokens.secondaryDark,
71
+ soft: pallasoft_design_tokens_1.PallasoftColorTokens.secondarySoft,
72
+ },
73
+ success: {
74
+ DEFAULT: pallasoft_design_tokens_1.PallasoftColorTokens.success,
75
+ soft: pallasoft_design_tokens_1.PallasoftColorTokens.successSoft,
76
+ },
77
+ surface: pallasoft_design_tokens_1.PallasoftColorTokens.surface,
78
+ warning: {
79
+ DEFAULT: pallasoft_design_tokens_1.PallasoftColorTokens.warning,
80
+ soft: pallasoft_design_tokens_1.PallasoftColorTokens.warningSoft,
81
+ },
82
+ },
83
+ fontFamily: pallasoft_design_tokens_1.PallasoftFontTokens,
84
+ zIndex: {
85
+ 'base': String(pallasoft_z_index_1.PallasoftZIndex.Base),
86
+ 'docked': String(pallasoft_z_index_1.PallasoftZIndex.Docked),
87
+ 'sticky': String(pallasoft_z_index_1.PallasoftZIndex.Sticky),
88
+ 'header': String(pallasoft_z_index_1.PallasoftZIndex.Header),
89
+ 'dropdown': String(pallasoft_z_index_1.PallasoftZIndex.Dropdown),
90
+ 'popover': String(pallasoft_z_index_1.PallasoftZIndex.Popover),
91
+ 'overlay': String(pallasoft_z_index_1.PallasoftZIndex.Overlay),
92
+ 'modal': String(pallasoft_z_index_1.PallasoftZIndex.Modal),
93
+ 'toast': String(pallasoft_z_index_1.PallasoftZIndex.Toast),
94
+ 'top-layer': String(pallasoft_z_index_1.PallasoftZIndex.TopLayer),
95
+ },
96
+ keyframes: {
97
+ 'ps-fade-in': {
98
+ from: { opacity: '0' },
99
+ to: { opacity: '1' },
100
+ },
101
+ 'ps-fade-out': {
102
+ from: { opacity: '1' },
103
+ to: { opacity: '0' },
104
+ },
105
+ 'ps-slide-up': {
106
+ from: { opacity: '0', transform: 'translateY(8px)' },
107
+ to: { opacity: '1', transform: 'translateY(0)' },
108
+ },
109
+ 'ps-slide-down': {
110
+ from: { opacity: '1', transform: 'translateY(0)' },
111
+ to: { opacity: '0', transform: 'translateY(8px)' },
112
+ },
113
+ 'ps-mobile-menu-in': {
114
+ from: { opacity: '0.75', transform: 'translateX(-100%)' },
115
+ to: { opacity: '1', transform: 'translateX(0)' },
116
+ },
117
+ 'ps-mobile-menu-out': {
118
+ from: { opacity: '1', transform: 'translateX(0)' },
119
+ to: { opacity: '0.75', transform: 'translateX(-100%)' },
120
+ },
121
+ 'ps-panel-in': {
122
+ from: { opacity: '0.8', transform: 'translateX(1rem)' },
123
+ to: { opacity: '1', transform: 'translateX(0)' },
124
+ },
125
+ 'ps-panel-out': {
126
+ from: { opacity: '1', transform: 'translateX(0)' },
127
+ to: { opacity: '0.8', transform: 'translateX(1rem)' },
128
+ },
129
+ 'ps-scale-in': {
130
+ from: { opacity: '0', transform: 'scale(0.98)' },
131
+ to: { opacity: '1', transform: 'scale(1)' },
132
+ },
133
+ 'ps-scale-out': {
134
+ from: { opacity: '1', transform: 'scale(1)' },
135
+ to: { opacity: '0', transform: 'scale(0.98)' },
136
+ },
137
+ 'ps-privacy-shimmer': {
138
+ '0%': { backgroundPosition: '120% 0' },
139
+ '100%': { backgroundPosition: '-120% 0' },
140
+ },
141
+ },
142
+ },
143
+ },
144
+ };
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@pallasoft/ps-design-system",
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "require": "./dist/index.js",
11
+ "default": "./dist/index.js"
12
+ },
13
+ "./tailwind-preset": {
14
+ "types": "./dist/tailwind-preset.d.ts",
15
+ "require": "./dist/tailwind-preset.js",
16
+ "default": "./dist/tailwind-preset.js"
17
+ },
18
+ "./styles.css": "./dist/styles.css"
19
+ },
20
+ "files": [
21
+ "/dist"
22
+ ],
23
+ "scripts": {
24
+ "husky:prepare": "npx husky",
25
+ "build": "tsc && cp src/styles.css dist/styles.css",
26
+ "setup:graphify": "sh scripts/graphify-setup.sh",
27
+ "update:graphify": "sh scripts/graphify-update.sh",
28
+ "lint": "npm run lint:eslint",
29
+ "lint:fix": "npm run lint:eslint:fix",
30
+ "format:check": "npx prettier --check --ignore-unknown \"src/**/*.{ts,css,json,md}\"",
31
+ "format:prettier": "npx prettier --write \"src/**/*.{ts,css,json,md}\"",
32
+ "lint:eslint": "npx eslint \"src/**/*.ts\"",
33
+ "lint:eslint:fix": "npx eslint --fix \"src/**/*.ts\"",
34
+ "release": "semantic-release"
35
+ },
36
+ "devDependencies": {
37
+ "@commitlint/cli": "^20.1.0",
38
+ "@commitlint/config-conventional": "^20.0.0",
39
+ "@eslint/compat": "^2.0.0",
40
+ "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
41
+ "@semantic-release/changelog": "^6.0.3",
42
+ "@semantic-release/commit-analyzer": "^13.0.0",
43
+ "@semantic-release/git": "^10.0.1",
44
+ "@semantic-release/github": "^11.0.1",
45
+ "@semantic-release/npm": "^12.0.0",
46
+ "@semantic-release/release-notes-generator": "^14.0.1",
47
+ "@typescript-eslint/eslint-plugin": "^8.48.0",
48
+ "@typescript-eslint/parser": "^8.48.0",
49
+ "commitlint": "^20.1.0",
50
+ "conventional-changelog-conventionalcommits": "^7.0.2",
51
+ "eslint": "^9.39.1",
52
+ "eslint-config-prettier": "^10.1.8",
53
+ "eslint-plugin-import": "^2.32.0",
54
+ "eslint-plugin-prettier": "^5.5.4",
55
+ "husky": "^9.1.7",
56
+ "lint-staged": "^16.2.7",
57
+ "prettier": "^3.6.2",
58
+ "semantic-release": "^24.2.0",
59
+ "ts-node": "^10.9.2",
60
+ "typescript": "^5.9.3"
61
+ },
62
+ "peerDependencies": {
63
+ "tailwindcss": "^3.4.0"
64
+ },
65
+ "publishConfig": {
66
+ "access": "public",
67
+ "registry": "https://registry.npmjs.org/"
68
+ },
69
+ "repository": {
70
+ "type": "git",
71
+ "url": "git+https://github.com/pallasoft/ps-design-system.git"
72
+ }
73
+ }