@keenmate/pure-admin-core 1.0.0-rc06 → 1.1.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.
Files changed (78) hide show
  1. package/README.md +77 -7
  2. package/dist/css/main.css +1313 -452
  3. package/package.json +1 -1
  4. package/snippets/customization.html +1 -1
  5. package/snippets/layout.html +66 -0
  6. package/snippets/manifest.json +0 -50
  7. package/snippets/profile.html +51 -3
  8. package/src/scss/_base-css-variables.scss +432 -422
  9. package/src/scss/_core.scss +105 -105
  10. package/src/scss/_fonts.scss +0 -14
  11. package/src/scss/_variables.scss +12 -14
  12. package/src/scss/core-components/_alerts.scss +7 -7
  13. package/src/scss/core-components/_base.scss +3 -3
  14. package/src/scss/core-components/_buttons.scss +425 -425
  15. package/src/scss/core-components/_callouts.scss +139 -139
  16. package/src/scss/core-components/_cards.scss +321 -321
  17. package/src/scss/core-components/_checkbox-lists.scss +2 -2
  18. package/src/scss/core-components/_code.scss +4 -4
  19. package/src/scss/core-components/_command-palette.scss +518 -518
  20. package/src/scss/core-components/_comparison.scss +3 -3
  21. package/src/scss/core-components/_file-selector.scss +780 -780
  22. package/src/scss/core-components/_forms.scss +16 -16
  23. package/src/scss/core-components/_grid.scss +25 -0
  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 +74 -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 -379
  32. package/src/scss/core-components/_scrollbars.scss +40 -41
  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 +35 -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 +4 -4
  46. package/src/scss/core-components/forms/_form-layout.scss +2 -2
  47. package/src/scss/core-components/forms/_form-states.scss +1 -1
  48. package/src/scss/core-components/forms/_input-groups.scss +13 -11
  49. package/src/scss/core-components/forms/_input-wrapper.scss +1 -1
  50. package/src/scss/core-components/forms/_query-editor.scss +17 -17
  51. package/src/scss/core-components/layout/_layout-container.scss +33 -1
  52. package/src/scss/core-components/layout/_navbar-elements.scss +1 -1
  53. package/src/scss/core-components/layout/_sidebar.scss +53 -2
  54. package/src/scss/utilities.scss +81 -2
  55. package/src/scss/variables/_base.scss +20 -10
  56. package/src/scss/variables/_colors.scss +7 -6
  57. package/src/scss/variables/_components.scss +8 -11
  58. package/src/scss/variables/_index.scss +11 -7
  59. package/src/scss/variables/_spacing.scss +12 -0
  60. package/src/scss/variables/_typography.scss +2 -2
  61. package/dist/fonts/Delivery/Delivery_W_Bd.woff2 +0 -0
  62. package/dist/fonts/Delivery/Delivery_W_BdIt.woff2 +0 -0
  63. package/dist/fonts/Delivery/Delivery_W_CdBlk.woff2 +0 -0
  64. package/dist/fonts/Delivery/Delivery_W_CdLt.woff2 +0 -0
  65. package/dist/fonts/Delivery/Delivery_W_It.woff2 +0 -0
  66. package/dist/fonts/Delivery/Delivery_W_Lt.woff2 +0 -0
  67. package/dist/fonts/Delivery/Delivery_W_LtIt.woff2 +0 -0
  68. package/dist/fonts/Delivery/Delivery_W_Rg.woff2 +0 -0
  69. package/src/scss/themes/_dark-base.scss +0 -207
  70. package/src/scss/themes/audi-light.scss +0 -341
  71. package/src/scss/themes/audi.scss +0 -303
  72. package/src/scss/themes/corporate.scss +0 -229
  73. package/src/scss/themes/dark-blue.scss +0 -165
  74. package/src/scss/themes/dark-green.scss +0 -169
  75. package/src/scss/themes/dark-red.scss +0 -173
  76. package/src/scss/themes/dark.scss +0 -158
  77. package/src/scss/themes/express.scss +0 -294
  78. 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
@@ -315,11 +315,17 @@ This enables dark mode support for web components like `@keenmate/web-grid` that
315
315
  - `.self-stretch` - Stretch item to fill (`align-self: stretch`)
316
316
  - `.self-baseline` - Align item to baseline (`align-self: baseline`)
317
317
 
318
+ ### Spacing (Margin & Padding)
319
+ - **Semantic:** `.m-xs`, `.m-sm`, `.m-md`, `.m-base`, `.m-lg`, `.m-xl`, `.m-2xl`
320
+ - **Directional:** `.mt-*`, `.mr-*`, `.mb-*`, `.ml-*`, `.mx-*`, `.my-*`
321
+ - **Padding:** `.p-xs`, `.p-sm`, `.p-md`, `.p-base`, `.p-lg`, `.p-xl`, `.p-2xl` (and directional variants)
322
+ - **Numeric:** `.m-0` through `.m-20`, `.p-0` through `.p-20` (in px-equivalent rem units)
323
+
318
324
  ### 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
325
+ - **Semantic:** `.gap-0`, `.gap-xs`, `.gap-sm`, `.gap-md`, `.gap-base`, `.gap-lg`, `.gap-xl`, `.gap-2xl`
326
+ - **Numeric:** `.gap-1` through `.gap-20` (in px-equivalent rem units)
327
+ - **Row gap:** `.row-gap-0` through `.row-gap-2xl`
328
+ - **Column gap:** `.column-gap-0` through `.column-gap-2xl`
323
329
 
324
330
  ### Text Size
325
331
  - `.text-2xs` through `.text-4xl` - Font size utilities
@@ -333,12 +339,76 @@ This enables dark mode support for web components like `@keenmate/web-grid` that
333
339
 
334
340
  All components use SCSS variables with `!default` flags, making them fully customizable:
335
341
 
336
- - **Colors**: `$primary-bg`, `$accent-color`, `$text-primary`, etc.
342
+ - **Colors**: `$main-bg`, `$page-bg`, `$subtle-bg`, `$accent-color`, `$text-color-1`, `$text-color-2`, etc.
337
343
  - **Spacing**: `$spacing-xs` through `$spacing-2xl`
338
344
  - **Typography**: `$font-size-*`, `$line-height-*`, `$font-weight-*`
339
345
  - **Components**: `$btn-*`, `$card-*`, `$table-*`, etc.
340
346
 
341
- See `src/scss/_variables.scss` for the complete list.
347
+ See `src/scss/variables/` for the complete list.
348
+
349
+ ## Base CSS Variables (Web Components)
350
+
351
+ Pure Admin exports `--base-*` CSS custom properties for theming web components (datepickers, multiselects, grids, etc.).
352
+
353
+ ### Background Colors (Semantic)
354
+ | Variable | Default | Usage |
355
+ |----------|---------|-------|
356
+ | `--base-main-bg` | `#ffffff` | Cards, modals, primary content |
357
+ | `--base-page-bg` | `#f8f9fa` | Page background, subtle sections |
358
+ | `--base-subtle-bg` | `#e9ecef` | Muted areas, dividers |
359
+ | `--base-inverse-bg` | `#2c3e50` | Tooltips, dark elements |
360
+ | `--base-overlay-bg` | `rgba(0,0,0,0.5)` | Modal overlays, backdrops |
361
+ | `--base-hover-bg` | (subtle-bg) | Hover state background |
362
+ | `--base-active-bg` | (darker) | Active/pressed state |
363
+ | `--base-disabled-bg` | (subtle-bg) | Disabled elements |
364
+
365
+ ### Accent Colors
366
+ | Variable | Default | Usage |
367
+ |----------|---------|-------|
368
+ | `--base-accent-color` | `#3b82f6` | Primary accent |
369
+ | `--base-accent-color-hover` | (lighter) | Hover state |
370
+ | `--base-accent-color-active` | (darker) | Active state |
371
+ | `--base-accent-color-light` | (10% opacity) | Subtle highlights |
372
+
373
+ ### Text Colors
374
+ | Variable | Default | Usage |
375
+ |----------|---------|-------|
376
+ | `--base-text-color-1` | `#1f2937` | Primary text |
377
+ | `--base-text-color-2` | `#4b5563` | Secondary text |
378
+ | `--base-text-color-3` | `#6b7280` | Tertiary/muted text |
379
+ | `--base-text-color-4` | `#a3b1bf` | Disabled text |
380
+ | `--base-text-color-on-accent` | `#ffffff` | Text on accent backgrounds |
381
+
382
+ ### Input Fields
383
+ | Variable | Usage |
384
+ |----------|-------|
385
+ | `--base-input-background` | Input background |
386
+ | `--base-input-color` | Input text color |
387
+ | `--base-input-border` | Border shorthand |
388
+ | `--base-input-border-hover` | Hover border |
389
+ | `--base-input-border-focus` | Focus border |
390
+ | `--base-input-placeholder-color` | Placeholder text |
391
+
392
+ ### Legacy Aliases (Backward Compatibility)
393
+ The following legacy variables are still exported for backward compatibility:
394
+ - `--base-surface-1` → `--base-main-bg`
395
+ - `--base-surface-2` → `--base-page-bg`
396
+ - `--base-surface-3` → `--base-subtle-bg`
397
+ - `--base-surface-inverse` → `--base-inverse-bg`
398
+
399
+ ### Usage in Web Components
400
+ ```css
401
+ /* Web components consume via fallback chains */
402
+ .my-component {
403
+ background: var(--base-main-bg, #ffffff);
404
+ color: var(--base-text-color-1, #1f2937);
405
+ border: 1px solid var(--base-border-color, #e5e7eb);
406
+ }
407
+
408
+ .my-component:hover {
409
+ background: var(--base-hover-bg, var(--base-subtle-bg, #e9ecef));
410
+ }
411
+ ```
342
412
 
343
413
  ## License
344
414