@keenmate/pure-admin-core 1.0.0 → 1.1.1

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.
Files changed (77) hide show
  1. package/README.md +85 -7
  2. package/dist/css/main.css +970 -434
  3. package/package.json +1 -1
  4. package/snippets/customization.html +1 -1
  5. package/snippets/forms.html +65 -8
  6. package/snippets/layout.html +4 -4
  7. package/snippets/manifest.json +329 -219
  8. package/snippets/profile.html +51 -3
  9. package/src/scss/_base-css-variables.scss +432 -422
  10. package/src/scss/_core.scss +105 -105
  11. package/src/scss/_fonts.scss +0 -14
  12. package/src/scss/_variables.scss +12 -14
  13. package/src/scss/core-components/_alerts.scss +7 -7
  14. package/src/scss/core-components/_base.scss +3 -3
  15. package/src/scss/core-components/_buttons.scss +425 -425
  16. package/src/scss/core-components/_callouts.scss +139 -139
  17. package/src/scss/core-components/_cards.scss +321 -321
  18. package/src/scss/core-components/_checkbox-lists.scss +2 -2
  19. package/src/scss/core-components/_code.scss +4 -4
  20. package/src/scss/core-components/_command-palette.scss +518 -518
  21. package/src/scss/core-components/_comparison.scss +3 -3
  22. package/src/scss/core-components/_file-selector.scss +780 -780
  23. package/src/scss/core-components/_forms.scss +16 -16
  24. package/src/scss/core-components/_layout.scss +15 -15
  25. package/src/scss/core-components/_lists.scss +7 -7
  26. package/src/scss/core-components/_logic-tree.scss +280 -280
  27. package/src/scss/core-components/_modals.scss +2 -2
  28. package/src/scss/core-components/_notifications.scss +7 -7
  29. package/src/scss/core-components/_pagers.scss +3 -3
  30. package/src/scss/core-components/_popconfirm.scss +1 -1
  31. package/src/scss/core-components/_profile.scss +400 -389
  32. package/src/scss/core-components/_scrollbars.scss +40 -40
  33. package/src/scss/core-components/_settings-panel.scss +5 -5
  34. package/src/scss/core-components/_statistics.scss +6 -6
  35. package/src/scss/core-components/_tables.scss +566 -566
  36. package/src/scss/core-components/_tabs.scss +493 -493
  37. package/src/scss/core-components/_timeline.scss +15 -15
  38. package/src/scss/core-components/_toasts.scss +4 -4
  39. package/src/scss/core-components/_tooltips.scss +8 -8
  40. package/src/scss/core-components/_utilities.scss +11 -30
  41. package/src/scss/core-components/_web-components-theme.scss +294 -294
  42. package/src/scss/core-components/badges/_composite-badge-variants.scss +3 -3
  43. package/src/scss/core-components/badges/_labels.scss +1 -1
  44. package/src/scss/core-components/forms/_checkboxes-radios.scss +2 -2
  45. package/src/scss/core-components/forms/_form-inputs.scss +33 -4
  46. package/src/scss/core-components/forms/_form-layout.scss +2 -2
  47. package/src/scss/core-components/forms/_form-states.scss +27 -1
  48. package/src/scss/core-components/forms/_input-wrapper.scss +1 -1
  49. package/src/scss/core-components/forms/_query-editor.scss +17 -17
  50. package/src/scss/core-components/layout/_layout-container.scss +1 -1
  51. package/src/scss/core-components/layout/_navbar-elements.scss +1 -1
  52. package/src/scss/core-components/layout/_sidebar.scss +5 -5
  53. package/src/scss/utilities.scss +24 -0
  54. package/src/scss/variables/_base.scss +20 -10
  55. package/src/scss/variables/_colors.scss +7 -6
  56. package/src/scss/variables/_components.scss +8 -11
  57. package/src/scss/variables/_index.scss +11 -7
  58. package/src/scss/variables/_spacing.scss +12 -0
  59. package/src/scss/variables/_typography.scss +2 -2
  60. package/dist/fonts/Delivery/Delivery_W_Bd.woff2 +0 -0
  61. package/dist/fonts/Delivery/Delivery_W_BdIt.woff2 +0 -0
  62. package/dist/fonts/Delivery/Delivery_W_CdBlk.woff2 +0 -0
  63. package/dist/fonts/Delivery/Delivery_W_CdLt.woff2 +0 -0
  64. package/dist/fonts/Delivery/Delivery_W_It.woff2 +0 -0
  65. package/dist/fonts/Delivery/Delivery_W_Lt.woff2 +0 -0
  66. package/dist/fonts/Delivery/Delivery_W_LtIt.woff2 +0 -0
  67. package/dist/fonts/Delivery/Delivery_W_Rg.woff2 +0 -0
  68. package/src/scss/themes/_dark-base.scss +0 -207
  69. package/src/scss/themes/audi-light.scss +0 -341
  70. package/src/scss/themes/audi.scss +0 -303
  71. package/src/scss/themes/corporate.scss +0 -229
  72. package/src/scss/themes/dark-blue.scss +0 -165
  73. package/src/scss/themes/dark-green.scss +0 -169
  74. package/src/scss/themes/dark-red.scss +0 -173
  75. package/src/scss/themes/dark.scss +0 -158
  76. package/src/scss/themes/express.scss +0 -294
  77. package/src/scss/themes/minimal.scss +0 -134
package/README.md CHANGED
@@ -38,7 +38,7 @@ npm install @keenmate/pure-admin-theme-audi
38
38
 
39
39
  ```scss
40
40
  // Override variables before importing
41
- $primary-bg: #your-color;
41
+ $main-bg: #your-color;
42
42
  $btn-primary-bg: #your-button-color;
43
43
 
44
44
  // Import the framework
@@ -189,6 +189,14 @@ This enables dark mode support for web components like `@keenmate/web-grid` that
189
189
  - `.pa-textarea` - Textareas
190
190
  - `.pa-checkbox` - Checkboxes
191
191
  - `.pa-radio` - Radio buttons
192
+ - **Size modifiers:** `--xs`, `--sm`, `--lg`, `--xl`
193
+ - **Validation states:** `--success`, `--warning`, `--error`
194
+ - **Color variants:** `--color-1` through `--color-9` (theme color slots)
195
+ - `.pa-form-group` - Form group wrapper
196
+ - `.pa-form-group--horizontal` - Horizontal label/input layout
197
+ - `.pa-form-help` - Help text below inputs
198
+ - `--success`, `--warning`, `--error` - Validation state colors
199
+ - `--color-1` through `--color-9` - Theme color variants
192
200
 
193
201
  ### Tables
194
202
  - `.pa-table` - Base table
@@ -315,11 +323,17 @@ This enables dark mode support for web components like `@keenmate/web-grid` that
315
323
  - `.self-stretch` - Stretch item to fill (`align-self: stretch`)
316
324
  - `.self-baseline` - Align item to baseline (`align-self: baseline`)
317
325
 
326
+ ### Spacing (Margin & Padding)
327
+ - **Semantic:** `.m-xs`, `.m-sm`, `.m-md`, `.m-base`, `.m-lg`, `.m-xl`, `.m-2xl`
328
+ - **Directional:** `.mt-*`, `.mr-*`, `.mb-*`, `.ml-*`, `.mx-*`, `.my-*`
329
+ - **Padding:** `.p-xs`, `.p-sm`, `.p-md`, `.p-base`, `.p-lg`, `.p-xl`, `.p-2xl` (and directional variants)
330
+ - **Numeric:** `.m-0` through `.m-20`, `.p-0` through `.p-20` (in px-equivalent rem units)
331
+
318
332
  ### Spacing (Gap)
319
- - `.gap-0` through `.gap-2xl` - Gap utilities using spacing scale
320
- - `.gap-1` through `.gap-20` - Numeric gap utilities (in px-equivalent rem units)
321
- - `.row-gap-*` - Row gap utilities
322
- - `.column-gap-*` - Column gap utilities
333
+ - **Semantic:** `.gap-0`, `.gap-xs`, `.gap-sm`, `.gap-md`, `.gap-base`, `.gap-lg`, `.gap-xl`, `.gap-2xl`
334
+ - **Numeric:** `.gap-1` through `.gap-20` (in px-equivalent rem units)
335
+ - **Row gap:** `.row-gap-0` through `.row-gap-2xl`
336
+ - **Column gap:** `.column-gap-0` through `.column-gap-2xl`
323
337
 
324
338
  ### Text Size
325
339
  - `.text-2xs` through `.text-4xl` - Font size utilities
@@ -333,12 +347,76 @@ This enables dark mode support for web components like `@keenmate/web-grid` that
333
347
 
334
348
  All components use SCSS variables with `!default` flags, making them fully customizable:
335
349
 
336
- - **Colors**: `$primary-bg`, `$accent-color`, `$text-primary`, etc.
350
+ - **Colors**: `$main-bg`, `$page-bg`, `$subtle-bg`, `$accent-color`, `$text-color-1`, `$text-color-2`, etc.
337
351
  - **Spacing**: `$spacing-xs` through `$spacing-2xl`
338
352
  - **Typography**: `$font-size-*`, `$line-height-*`, `$font-weight-*`
339
353
  - **Components**: `$btn-*`, `$card-*`, `$table-*`, etc.
340
354
 
341
- See `src/scss/_variables.scss` for the complete list.
355
+ See `src/scss/variables/` for the complete list.
356
+
357
+ ## Base CSS Variables (Web Components)
358
+
359
+ Pure Admin exports `--base-*` CSS custom properties for theming web components (datepickers, multiselects, grids, etc.).
360
+
361
+ ### Background Colors (Semantic)
362
+ | Variable | Default | Usage |
363
+ |----------|---------|-------|
364
+ | `--base-main-bg` | `#ffffff` | Cards, modals, primary content |
365
+ | `--base-page-bg` | `#f8f9fa` | Page background, subtle sections |
366
+ | `--base-subtle-bg` | `#e9ecef` | Muted areas, dividers |
367
+ | `--base-inverse-bg` | `#2c3e50` | Tooltips, dark elements |
368
+ | `--base-overlay-bg` | `rgba(0,0,0,0.5)` | Modal overlays, backdrops |
369
+ | `--base-hover-bg` | (subtle-bg) | Hover state background |
370
+ | `--base-active-bg` | (darker) | Active/pressed state |
371
+ | `--base-disabled-bg` | (subtle-bg) | Disabled elements |
372
+
373
+ ### Accent Colors
374
+ | Variable | Default | Usage |
375
+ |----------|---------|-------|
376
+ | `--base-accent-color` | `#3b82f6` | Primary accent |
377
+ | `--base-accent-color-hover` | (lighter) | Hover state |
378
+ | `--base-accent-color-active` | (darker) | Active state |
379
+ | `--base-accent-color-light` | (10% opacity) | Subtle highlights |
380
+
381
+ ### Text Colors
382
+ | Variable | Default | Usage |
383
+ |----------|---------|-------|
384
+ | `--base-text-color-1` | `#1f2937` | Primary text |
385
+ | `--base-text-color-2` | `#4b5563` | Secondary text |
386
+ | `--base-text-color-3` | `#6b7280` | Tertiary/muted text |
387
+ | `--base-text-color-4` | `#a3b1bf` | Disabled text |
388
+ | `--base-text-color-on-accent` | `#ffffff` | Text on accent backgrounds |
389
+
390
+ ### Input Fields
391
+ | Variable | Usage |
392
+ |----------|-------|
393
+ | `--base-input-background` | Input background |
394
+ | `--base-input-color` | Input text color |
395
+ | `--base-input-border` | Border shorthand |
396
+ | `--base-input-border-hover` | Hover border |
397
+ | `--base-input-border-focus` | Focus border |
398
+ | `--base-input-placeholder-color` | Placeholder text |
399
+
400
+ ### Legacy Aliases (Backward Compatibility)
401
+ The following legacy variables are still exported for backward compatibility:
402
+ - `--base-surface-1` → `--base-main-bg`
403
+ - `--base-surface-2` → `--base-page-bg`
404
+ - `--base-surface-3` → `--base-subtle-bg`
405
+ - `--base-surface-inverse` → `--base-inverse-bg`
406
+
407
+ ### Usage in Web Components
408
+ ```css
409
+ /* Web components consume via fallback chains */
410
+ .my-component {
411
+ background: var(--base-main-bg, #ffffff);
412
+ color: var(--base-text-color-1, #1f2937);
413
+ border: 1px solid var(--base-border-color, #e5e7eb);
414
+ }
415
+
416
+ .my-component:hover {
417
+ background: var(--base-hover-bg, var(--base-subtle-bg, #e9ecef));
418
+ }
419
+ ```
342
420
 
343
421
  ## License
344
422