@keenmate/pure-admin-core 1.5.0 → 2.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.
- package/README.md +108 -2
- package/dist/css/main.css +1171 -19
- package/package.json +5 -1
- package/schemas/base-variables.schema.json +623 -0
- package/schemas/component-variables.schema.json +80 -0
- package/schemas/pure-admin-theme.schema.json +325 -0
- package/scripts/pack-theme.js +397 -0
- package/src/scss/_core.scss +3 -0
- package/src/scss/core-components/_cards.scss +40 -0
- package/src/scss/core-components/_data-display.scss +751 -19
- package/src/scss/core-components/_data-viz.scss +608 -0
- package/src/scss/core-components/_detail-panel.scss +6 -0
- package/src/scss/core-components/_grid.scss +3 -2
- package/src/scss/core-components/_statistics.scss +11 -10
- package/src/scss/core-components/_tables.scss +7 -0
- package/src/scss/core-components/layout/_layout-container.scss +1 -0
- package/src/scss/utilities.scss +13 -0
- package/src/scss/variables/_components.scss +165 -1
package/README.md
CHANGED
|
@@ -150,7 +150,8 @@ Sizes: `0`, `xs`, `sm`, `md`, `base`, `lg`, `xl`, `2xl`, `auto`
|
|
|
150
150
|
- `.pa-col-1-5` (20%), `.pa-col-2-5` (40%), `.pa-col-3-5` (60%), `.pa-col-4-5` (80%)
|
|
151
151
|
- `.pa-col-1-6` (16.7%), `.pa-col-5-6` (83.3%)
|
|
152
152
|
- `.pa-col-1-12` (8.3%), `.pa-col-5-12` (41.7%), `.pa-col-7-12` (58.3%), `.pa-col-11-12` (91.7%)
|
|
153
|
-
- **Responsive breakpoints:** `.pa-col-sm-*`, `.pa-col-md-*`, `.pa-col-lg-*`, `.pa-col-xl-*`
|
|
153
|
+
- **Responsive breakpoints (container-query based):** `.pa-col-sm-*`, `.pa-col-md-*`, `.pa-col-lg-*`, `.pa-col-xl-*`
|
|
154
|
+
- These respond to the **container width**, not the viewport. Requires a containment context ancestor: `.pa-layout__main` (automatic) or `.pa-cq`
|
|
154
155
|
- **Offsets:** `.pa-offset-5`, `.pa-offset-10`, ... `.pa-offset-95`
|
|
155
156
|
- **Row modifiers:**
|
|
156
157
|
- `.pa-row--no-gutter` - Remove column gutters
|
|
@@ -180,6 +181,18 @@ Sizes: `0`, `xs`, `sm`, `md`, `base`, `lg`, `xl`, `2xl`, `auto`
|
|
|
180
181
|
- **Theme color variants:** `.pa-card--color-1` through `.pa-card--color-9`
|
|
181
182
|
- Uses `--pa-color-N` for header background and border
|
|
182
183
|
- Text color automatically adjusts via `--pa-color-N-text` for readability
|
|
184
|
+
- `.pa-card--ghost` - Invisible container (no background, border, or shadow) — layout wrapper only
|
|
185
|
+
- `.pa-card--stat` - Compact padding for stat cards
|
|
186
|
+
- **Live-data states** (persistent tinted background for real-time dashboards):
|
|
187
|
+
- `.pa-card--live-up` - Green tint (value increased)
|
|
188
|
+
- `.pa-card--live-down` - Red tint (value decreased)
|
|
189
|
+
- `.pa-card--live-neutral` - Returns to default card background
|
|
190
|
+
- Smooth 0.3s transition between states; JS swaps the class on each data update
|
|
191
|
+
- **Card tabs:**
|
|
192
|
+
- `.pa-card__tabs` - Tab navigation below header
|
|
193
|
+
- `.pa-card__tab` / `.pa-card__tab--active` - Tab buttons
|
|
194
|
+
- `.pa-card__tab-content` / `.pa-card__tab-content--active` - Tab panels
|
|
195
|
+
- `.pa-card__tabs--inline` - Pill-style tabs inside header
|
|
183
196
|
|
|
184
197
|
### Layout & Sidebar
|
|
185
198
|
- `.pa-layout` - Main layout container
|
|
@@ -328,9 +341,10 @@ Works with both `pa-table` and `web-grid` component. First/last columns automati
|
|
|
328
341
|
- `.pa-stat__content` - Content wrapper
|
|
329
342
|
- `.pa-stat__number` - Large number display
|
|
330
343
|
- `.pa-stat__label` - Label text
|
|
331
|
-
- **Hero variant:** `.pa-stat--hero` -
|
|
344
|
+
- **Hero variant:** `.pa-stat--hero` - Compact centered stat with large number (~45px), tight padding, and change indicator
|
|
332
345
|
- `.pa-stat__value` - Hero number
|
|
333
346
|
- `.pa-stat__change` - Change indicator (`--positive/negative/neutral`)
|
|
347
|
+
- `.pa-stat--hero-compact` - Alias (identical to `--hero`)
|
|
334
348
|
- **Square variant:** `.pa-stat--square` - Colored square KPI card
|
|
335
349
|
- `.pa-stat__symbol` - Background symbol
|
|
336
350
|
- Color modifiers: `.pa-stat--primary/success/info/warning/danger/secondary`
|
|
@@ -380,6 +394,98 @@ Works with both `pa-table` and `web-grid` component. First/last columns automati
|
|
|
380
394
|
- `.pa-profile-panel__favorite-item` - Favorite link (with remove button)
|
|
381
395
|
- `.pa-profile-panel__actions` - Action buttons (Sign Out, etc.)
|
|
382
396
|
|
|
397
|
+
### Data Display
|
|
398
|
+
|
|
399
|
+
Read-only label-value patterns for displaying structured data. All patterns support RTL via CSS logical properties and respond to container width via CSS Container Queries.
|
|
400
|
+
|
|
401
|
+
#### Fields (label-value pairs)
|
|
402
|
+
- `.pa-field` - Single label-value pair
|
|
403
|
+
- `.pa-field__label` - Label element
|
|
404
|
+
- `.pa-field__value` - Value element
|
|
405
|
+
- `.pa-fields` - Container for multiple fields (stacked list)
|
|
406
|
+
- `.pa-fields--cols-2/3/4` - Multi-column grid layout
|
|
407
|
+
- `.pa-fields--horizontal` - Side-by-side label/value layout
|
|
408
|
+
- `.pa-fields--table` - Table-like alignment with fixed label width
|
|
409
|
+
- `.pa-fields--bordered` - Bottom borders between fields
|
|
410
|
+
- `.pa-fields--striped` - Alternating row backgrounds
|
|
411
|
+
- `.pa-fields--compact` - Reduced spacing
|
|
412
|
+
- `.pa-fields--inline` - Inline horizontal flow
|
|
413
|
+
- `.pa-fields--relaxed` - Extra spacing
|
|
414
|
+
- `.pa-fields--row` - Horizontal row with wrapping
|
|
415
|
+
- `.pa-fields--filled` - Tinted label backgrounds
|
|
416
|
+
- `.pa-fields--no-border` - Remove all borders
|
|
417
|
+
- `.pa-fields--linear` - Underline-style fields (label above, value with bottom border)
|
|
418
|
+
- `.pa-fields--chips` - Chip/tag style values with color variants
|
|
419
|
+
- `.pa-fields--color-1` through `--color-9` - Theme color accents
|
|
420
|
+
- `.pa-field--full` - Full-width field spanning all columns
|
|
421
|
+
- `.pa-field--copy-btn/--copy-click/--copy-hover` - Copy-to-clipboard patterns
|
|
422
|
+
- `.pa-field-group` - Group fields under a titled section
|
|
423
|
+
- `.pa-field__value--success/warning/danger` - Semantic chip color variants (with `--chips`)
|
|
424
|
+
|
|
425
|
+
#### Desc Table (CSS Grid description list)
|
|
426
|
+
- `.pa-desc-table` - Grid-based label-value table (auto label width)
|
|
427
|
+
- `.pa-desc-table--cols-2` - Two-column layout
|
|
428
|
+
- `.pa-desc-table--fixed` - Fixed label width (configurable via `--label-width`)
|
|
429
|
+
- `.pa-desc-table--middle` - Vertically center labels and values
|
|
430
|
+
- `.pa-desc-table--label-end` - Right-align labels
|
|
431
|
+
- `.pa-desc-table--label-center` - Center-align labels
|
|
432
|
+
- `.pa-desc-table--truncate` - Truncate overflow with ellipsis
|
|
433
|
+
- `.pa-desc-table__label` - Label cell
|
|
434
|
+
- `.pa-desc-table__value` - Value cell
|
|
435
|
+
- `.pa-desc-table__value--full` - Value spanning full row width
|
|
436
|
+
|
|
437
|
+
#### Dot Leaders (receipt/invoice style)
|
|
438
|
+
- `.pa-dot-leaders` - Container for dot-leader items
|
|
439
|
+
- `.pa-dot-leaders__item` - Single row
|
|
440
|
+
- `.pa-dot-leaders__item--total` - Bold total row with top border
|
|
441
|
+
- `.pa-dot-leaders__label` - Label text
|
|
442
|
+
- `.pa-dot-leaders__leader` - Dotted fill between label and value
|
|
443
|
+
- `.pa-dot-leaders__value` - Right-aligned value
|
|
444
|
+
|
|
445
|
+
#### Property Card (grouped key-value card)
|
|
446
|
+
- `.pa-prop-card` - Self-contained card with header + rows
|
|
447
|
+
- `.pa-prop-card__header` - Colored header bar
|
|
448
|
+
- `.pa-prop-card__row` - Key-value row with bottom border
|
|
449
|
+
- `.pa-prop-card__label` - Row label
|
|
450
|
+
- `.pa-prop-card__value` - Row value
|
|
451
|
+
- `.pa-prop-card__value--bold` - Bold value text
|
|
452
|
+
|
|
453
|
+
#### Banded (label column with tinted background)
|
|
454
|
+
- `.pa-banded` - Container for banded rows
|
|
455
|
+
- `.pa-banded__row` - Horizontal label-value row
|
|
456
|
+
- `.pa-banded__label` - Label with tinted background band
|
|
457
|
+
- `.pa-banded__value` - Value cell
|
|
458
|
+
- `.pa-banded--narrow` - Narrower label column
|
|
459
|
+
- `.pa-banded--wide` - Wider label column
|
|
460
|
+
- `.pa-banded--middle` - Vertically center content
|
|
461
|
+
- `.pa-banded--label-end` - Right-align labels
|
|
462
|
+
- `.pa-banded--label-center` - Center-align labels
|
|
463
|
+
- `.pa-banded--truncate` - Truncate overflow with ellipsis
|
|
464
|
+
|
|
465
|
+
#### Accent Grid (color-coded items)
|
|
466
|
+
- `.pa-accent-grid` - Grid container with color-coded left borders
|
|
467
|
+
- `.pa-accent-grid__item` - Grid item with accent border
|
|
468
|
+
- `.pa-accent-grid__item--success/warning/danger/info` - Semantic color variants
|
|
469
|
+
- `.pa-accent-grid__label` - Item label
|
|
470
|
+
- `.pa-accent-grid__value` - Item value
|
|
471
|
+
|
|
472
|
+
#### Bar List (horizontal bar chart)
|
|
473
|
+
- `.pa-bar-list` - Container for labeled horizontal bar chart items
|
|
474
|
+
- `.pa-bar-list__item` - Single row (header + bar)
|
|
475
|
+
- `.pa-bar-list__header` - Flex row with label and value
|
|
476
|
+
- `.pa-bar-list__label` - Left-aligned label text
|
|
477
|
+
- `.pa-bar-list__value` - Right-aligned value text
|
|
478
|
+
- `.pa-bar-list__bar` - Proportional bar (set width via `style="--value: 75%"`)
|
|
479
|
+
- `.pa-bar-list--compact` - Tighter spacing and smaller text
|
|
480
|
+
- Color variants: `.pa-bar-list--success/warning/danger/info`
|
|
481
|
+
|
|
482
|
+
#### Container Query Wrappers
|
|
483
|
+
Wrap data display components in these containers to enable responsive behavior based on the container width (not viewport):
|
|
484
|
+
- `.pa-fields-container` - Container for `.pa-fields` (collapses multi-column to single column)
|
|
485
|
+
- `.pa-desc-container` - Container for `.pa-desc-table` (collapses to narrower layout)
|
|
486
|
+
- `.pa-banded-container` - Container for `.pa-banded` (stacks label above value)
|
|
487
|
+
- `.pa-cq` - General-purpose container query utility (`container-type: inline-size`)
|
|
488
|
+
|
|
383
489
|
## Utility Classes
|
|
384
490
|
|
|
385
491
|
### Flexbox Alignment
|