@parto-system-design/ui 1.1.4 → 1.1.5
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/index.cjs +15603 -5727
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +753 -119
- package/dist/index.d.cts +2980 -229
- package/dist/index.d.ts +2980 -229
- package/dist/index.js +15609 -5870
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/tailwind.config.ts +61 -2
package/package.json
CHANGED
package/tailwind.config.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { Config } from 'tailwindcss';
|
|
|
2
2
|
import plugin from 'tailwindcss/plugin';
|
|
3
3
|
|
|
4
4
|
const config: Config = {
|
|
5
|
-
darkMode: ['class', '[data-theme
|
|
5
|
+
darkMode: ['class', '[data-theme="dark"]'],
|
|
6
6
|
content: ['./src/**/*.{ts,tsx}'],
|
|
7
7
|
theme: {
|
|
8
8
|
container: {
|
|
@@ -148,11 +148,55 @@ const config: Config = {
|
|
|
148
148
|
'poor-hover': 'hsl(var(--engagement-poor-hover))',
|
|
149
149
|
inactive: 'hsl(var(--engagement-inactive))',
|
|
150
150
|
},
|
|
151
|
-
// Sentiment Colors (social listening domain)
|
|
151
|
+
// Sentiment Colors — simple 3-class (social listening domain)
|
|
152
152
|
sentiment: {
|
|
153
153
|
positive: 'hsl(var(--sentiment-positive))',
|
|
154
154
|
negative: 'hsl(var(--sentiment-negative))',
|
|
155
155
|
neutral: 'hsl(var(--sentiment-neutral))',
|
|
156
|
+
mixed: 'hsl(var(--sentiment-mixed))',
|
|
157
|
+
},
|
|
158
|
+
// Emotion Colors — advanced 9-class (افکارسنجی domain)
|
|
159
|
+
emotion: {
|
|
160
|
+
anger: 'hsl(var(--emotion-anger))',
|
|
161
|
+
anticipation: 'hsl(var(--emotion-anticipation))',
|
|
162
|
+
joy: 'hsl(var(--emotion-joy))',
|
|
163
|
+
trust: 'hsl(var(--emotion-trust))',
|
|
164
|
+
fear: 'hsl(var(--emotion-fear))',
|
|
165
|
+
surprise: 'hsl(var(--emotion-surprise))',
|
|
166
|
+
sadness: 'hsl(var(--emotion-sadness))',
|
|
167
|
+
disgust: 'hsl(var(--emotion-disgust))',
|
|
168
|
+
neutral: 'hsl(var(--emotion-neutral))',
|
|
169
|
+
},
|
|
170
|
+
// Political Flow Colors — 5-class (افکارسنجی clustering)
|
|
171
|
+
flow: {
|
|
172
|
+
'pro-gov': 'hsl(var(--flow-pro-gov))',
|
|
173
|
+
'internal-critic': 'hsl(var(--flow-internal-critic))',
|
|
174
|
+
'internal-opponent': 'hsl(var(--flow-internal-opponent))',
|
|
175
|
+
'external-opponent': 'hsl(var(--flow-external-opponent))',
|
|
176
|
+
grey: 'hsl(var(--flow-grey))',
|
|
177
|
+
},
|
|
178
|
+
// Operational status indicator (often pulsed for critical)
|
|
179
|
+
status: {
|
|
180
|
+
critical: 'hsl(var(--status-critical))',
|
|
181
|
+
warning: 'hsl(var(--status-warning))',
|
|
182
|
+
normal: 'hsl(var(--status-normal))',
|
|
183
|
+
},
|
|
184
|
+
// Severity — urgency level, independent of status
|
|
185
|
+
severity: {
|
|
186
|
+
urgent: 'hsl(var(--severity-urgent))',
|
|
187
|
+
high: 'hsl(var(--severity-high))',
|
|
188
|
+
medium: 'hsl(var(--severity-medium))',
|
|
189
|
+
low: 'hsl(var(--severity-low))',
|
|
190
|
+
},
|
|
191
|
+
// Action Type — per-action colouring for booster/activity feeds
|
|
192
|
+
'action-type': {
|
|
193
|
+
like: 'hsl(var(--action-type-like))',
|
|
194
|
+
comment: 'hsl(var(--action-type-comment))',
|
|
195
|
+
save: 'hsl(var(--action-type-save))',
|
|
196
|
+
follow: 'hsl(var(--action-type-follow))',
|
|
197
|
+
unfollow: 'hsl(var(--action-type-unfollow))',
|
|
198
|
+
dm: 'hsl(var(--action-type-dm))',
|
|
199
|
+
share: 'hsl(var(--action-type-share))',
|
|
156
200
|
},
|
|
157
201
|
|
|
158
202
|
// Legacy Shadcn compatibility aliases
|
|
@@ -262,6 +306,14 @@ const config: Config = {
|
|
|
262
306
|
from: { height: 'var(--radix-accordion-content-height)' },
|
|
263
307
|
to: { height: '0' },
|
|
264
308
|
},
|
|
309
|
+
'collapsible-down': {
|
|
310
|
+
from: { height: '0' },
|
|
311
|
+
to: { height: 'var(--radix-collapsible-content-height)' },
|
|
312
|
+
},
|
|
313
|
+
'collapsible-up': {
|
|
314
|
+
from: { height: 'var(--radix-collapsible-content-height)' },
|
|
315
|
+
to: { height: '0' },
|
|
316
|
+
},
|
|
265
317
|
'fade-in': {
|
|
266
318
|
'0%': { opacity: '0' },
|
|
267
319
|
'100%': { opacity: '1' },
|
|
@@ -307,10 +359,17 @@ const config: Config = {
|
|
|
307
359
|
'0%': { transform: 'rotate(0deg)' },
|
|
308
360
|
'100%': { transform: 'rotate(360deg)' },
|
|
309
361
|
},
|
|
362
|
+
'job-indeterminate': {
|
|
363
|
+
'0%': { insetInlineStart: '-33%' },
|
|
364
|
+
'100%': { insetInlineStart: '100%' },
|
|
365
|
+
},
|
|
310
366
|
},
|
|
311
367
|
animation: {
|
|
312
368
|
'accordion-down': 'accordion-down 0.2s cubic-bezier(0.4, 0, 0.2, 1)',
|
|
313
369
|
'accordion-up': 'accordion-up 0.2s cubic-bezier(0.4, 0, 0.2, 1)',
|
|
370
|
+
'collapsible-down': 'collapsible-down 0.2s cubic-bezier(0.4, 0, 0.2, 1)',
|
|
371
|
+
'collapsible-up': 'collapsible-up 0.2s cubic-bezier(0.4, 0, 0.2, 1)',
|
|
372
|
+
'job-indeterminate': 'job-indeterminate 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite',
|
|
314
373
|
'fade-in': 'fade-in 0.2s cubic-bezier(0.4, 0, 0.2, 1)',
|
|
315
374
|
'fade-out': 'fade-out 0.2s cubic-bezier(0.4, 0, 0.2, 1)',
|
|
316
375
|
'slide-up': 'slide-up 0.2s cubic-bezier(0.4, 0, 0.2, 1)',
|