@nubitio/react-admin 0.5.1 → 0.5.3

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 (2) hide show
  1. package/dist/style.css +225 -60
  2. package/package.json +6 -6
package/dist/style.css CHANGED
@@ -2668,6 +2668,218 @@ html[data-density=compact] .nb-drawer__footer {
2668
2668
  width: 100vw !important;
2669
2669
  }
2670
2670
  }
2671
+ .nb-timeline-panel {
2672
+ display: flex;
2673
+ flex-direction: column;
2674
+ gap: var(--space-4);
2675
+ min-width: 0;
2676
+ }
2677
+
2678
+ .nb-timeline-panel--card {
2679
+ background: var(--surface-1);
2680
+ border: 1px solid var(--border-color);
2681
+ border-radius: var(--radius-lg);
2682
+ box-shadow: var(--shadow-sm);
2683
+ padding: var(--space-5);
2684
+ }
2685
+
2686
+ .nb-timeline-panel__header {
2687
+ display: flex;
2688
+ flex-direction: column;
2689
+ gap: var(--space-1);
2690
+ }
2691
+
2692
+ .nb-timeline-panel__title {
2693
+ color: var(--text-primary);
2694
+ font-size: var(--font-size-md);
2695
+ font-weight: var(--font-weight-semibold);
2696
+ line-height: var(--line-height-tight);
2697
+ margin: 0;
2698
+ }
2699
+
2700
+ .nb-timeline-panel__description {
2701
+ color: var(--text-secondary);
2702
+ font-size: var(--font-size-sm);
2703
+ line-height: var(--line-height-normal);
2704
+ margin: 0;
2705
+ }
2706
+
2707
+ .nb-timeline {
2708
+ display: flex;
2709
+ flex-direction: column;
2710
+ gap: 0;
2711
+ list-style: none;
2712
+ margin: 0;
2713
+ padding: 0;
2714
+ }
2715
+
2716
+ .nb-timeline__item {
2717
+ display: grid;
2718
+ gap: var(--space-3);
2719
+ grid-template-columns: 24px 1fr;
2720
+ padding-bottom: var(--space-4);
2721
+ position: relative;
2722
+ }
2723
+ .nb-timeline__item:last-child {
2724
+ padding-bottom: 0;
2725
+ }
2726
+ .nb-timeline__item:not(:last-child)::before {
2727
+ background: var(--border-color);
2728
+ bottom: 0;
2729
+ content: "";
2730
+ left: 11px;
2731
+ position: absolute;
2732
+ top: 24px;
2733
+ width: 2px;
2734
+ }
2735
+ .nb-timeline__item--complete:not(:last-child)::before {
2736
+ background: var(--accent-color);
2737
+ }
2738
+ .nb-timeline__item--current:not(:last-child)::before {
2739
+ background: var(--border-color);
2740
+ }
2741
+ .nb-timeline__item--pending .nb-timeline__label {
2742
+ color: var(--text-tertiary);
2743
+ }
2744
+ .nb-timeline__item--error .nb-timeline__label {
2745
+ color: var(--danger-color);
2746
+ }
2747
+ .nb-timeline__item--error:not(:last-child)::before {
2748
+ background: var(--border-color);
2749
+ }
2750
+
2751
+ .nb-timeline--log .nb-timeline__item {
2752
+ gap: var(--space-2);
2753
+ grid-template-columns: 16px 1fr;
2754
+ padding: var(--space-3) 0;
2755
+ }
2756
+ .nb-timeline--log .nb-timeline__item:not(:last-child) {
2757
+ border-bottom: 1px solid var(--border-color);
2758
+ padding-bottom: var(--space-3);
2759
+ }
2760
+ .nb-timeline--log .nb-timeline__item:not(:last-child)::before {
2761
+ left: 7px;
2762
+ top: 18px;
2763
+ }
2764
+ .nb-timeline--log .nb-timeline__item:last-child {
2765
+ padding-bottom: 0;
2766
+ }
2767
+
2768
+ .nb-timeline__marker-col {
2769
+ align-items: flex-start;
2770
+ display: flex;
2771
+ justify-content: center;
2772
+ padding-top: 2px;
2773
+ position: relative;
2774
+ z-index: 1;
2775
+ }
2776
+
2777
+ .nb-timeline__marker {
2778
+ align-items: center;
2779
+ border-radius: 50%;
2780
+ display: inline-flex;
2781
+ flex: 0 0 auto;
2782
+ justify-content: center;
2783
+ }
2784
+
2785
+ .nb-timeline__marker--complete {
2786
+ background: var(--accent-color);
2787
+ color: var(--surface-1);
2788
+ font-size: 11px;
2789
+ height: 20px;
2790
+ width: 20px;
2791
+ }
2792
+
2793
+ .nb-timeline__marker--current {
2794
+ background: var(--surface-1);
2795
+ border: 2px solid var(--accent-color);
2796
+ height: 20px;
2797
+ position: relative;
2798
+ width: 20px;
2799
+ }
2800
+ .nb-timeline__marker--current::after {
2801
+ background: var(--accent-color);
2802
+ border-radius: 50%;
2803
+ content: "";
2804
+ height: 8px;
2805
+ left: 50%;
2806
+ position: absolute;
2807
+ top: 50%;
2808
+ transform: translate(-50%, -50%);
2809
+ width: 8px;
2810
+ }
2811
+
2812
+ .nb-timeline__marker--pending {
2813
+ background: var(--surface-1);
2814
+ border: 2px solid var(--border-color);
2815
+ height: 20px;
2816
+ width: 20px;
2817
+ }
2818
+
2819
+ .nb-timeline__marker--error {
2820
+ background: var(--danger-color);
2821
+ color: var(--surface-1);
2822
+ font-size: 11px;
2823
+ height: 20px;
2824
+ width: 20px;
2825
+ }
2826
+
2827
+ .nb-timeline__marker--dot {
2828
+ background: var(--surface-2);
2829
+ border: 2px solid var(--accent-color);
2830
+ height: 12px;
2831
+ width: 12px;
2832
+ }
2833
+
2834
+ .nb-timeline__item--tone-success .nb-timeline__marker--dot {
2835
+ border-color: var(--success-color);
2836
+ }
2837
+
2838
+ .nb-timeline__item--tone-info .nb-timeline__marker--dot {
2839
+ border-color: var(--info-color, var(--accent-color));
2840
+ }
2841
+
2842
+ .nb-timeline__item--tone-danger .nb-timeline__marker--dot {
2843
+ border-color: var(--danger-color);
2844
+ }
2845
+
2846
+ .nb-timeline__item--tone-warning .nb-timeline__marker--dot {
2847
+ border-color: var(--warning-color);
2848
+ }
2849
+
2850
+ .nb-timeline__content {
2851
+ display: flex;
2852
+ flex-direction: column;
2853
+ gap: var(--space-2);
2854
+ min-width: 0;
2855
+ }
2856
+
2857
+ .nb-timeline__heading {
2858
+ display: flex;
2859
+ flex-direction: column;
2860
+ gap: var(--space-1);
2861
+ }
2862
+
2863
+ .nb-timeline--log .nb-timeline__heading {
2864
+ flex-direction: row;
2865
+ flex-wrap: wrap;
2866
+ align-items: center;
2867
+ gap: var(--space-2);
2868
+ }
2869
+
2870
+ .nb-timeline__label {
2871
+ color: var(--text-primary);
2872
+ font-size: var(--font-size-sm);
2873
+ font-weight: var(--font-weight-semibold);
2874
+ line-height: var(--line-height-tight);
2875
+ }
2876
+
2877
+ .nb-timeline__timestamp {
2878
+ color: var(--text-secondary);
2879
+ font-size: var(--font-size-xs);
2880
+ font-variant-numeric: tabular-nums;
2881
+ line-height: var(--line-height-normal);
2882
+ }
2671
2883
 
2672
2884
  /* crud/dist/style.css */
2673
2885
  #wrapper {
@@ -5970,66 +6182,25 @@ html[data-density=compact] .nb-crud-page-shell__footer {
5970
6182
  min-height: 0;
5971
6183
  }
5972
6184
 
5973
- .nb-audit-trail__subtitle {
5974
- color: var(--text-secondary);
5975
- font-size: var(--font-size-sm, 0.8125rem);
5976
- line-height: 1.4;
5977
- margin: calc(var(--space-1) * -1) 0 0;
5978
- }
5979
-
5980
- .nb-audit-trail__timeline {
6185
+ .nb-audit-trail__header {
5981
6186
  display: flex;
5982
6187
  flex-direction: column;
5983
- gap: 0;
5984
- list-style: none;
5985
- margin: 0;
5986
- padding: 0;
5987
- }
5988
-
5989
- .nb-audit-trail__entry {
5990
- display: grid;
5991
- gap: var(--space-2);
5992
- grid-template-columns: 12px 1fr;
5993
- padding: var(--space-3) 0;
5994
- position: relative;
5995
- }
5996
- .nb-audit-trail__entry:not(:last-child) {
5997
- border-bottom: 1px solid var(--border-color);
5998
- }
5999
- .nb-audit-trail__entry::before {
6000
- background: var(--border-color);
6001
- bottom: 0;
6002
- content: "";
6003
- left: 5px;
6004
- position: absolute;
6005
- top: calc(var(--space-3) + 6px);
6006
- width: 2px;
6007
- }
6008
- .nb-audit-trail__entry:last-child::before {
6009
- display: none;
6010
- }
6011
-
6012
- .nb-audit-trail__marker {
6013
- background: var(--surface-2);
6014
- border: 2px solid var(--accent-color);
6015
- border-radius: 50%;
6016
- height: 12px;
6017
- margin-top: 4px;
6018
- position: relative;
6019
- width: 12px;
6020
- z-index: 1;
6021
- }
6022
-
6023
- .nb-audit-trail__entry--create .nb-audit-trail__marker {
6024
- border-color: var(--success-color);
6188
+ gap: var(--space-1);
6025
6189
  }
6026
6190
 
6027
- .nb-audit-trail__entry--update .nb-audit-trail__marker {
6028
- border-color: var(--info-color, var(--accent-color));
6191
+ .nb-audit-trail__record {
6192
+ color: var(--text-primary);
6193
+ font-size: var(--font-size-sm, 0.8125rem);
6194
+ font-weight: 600;
6195
+ line-height: 1.4;
6196
+ margin: 0;
6029
6197
  }
6030
6198
 
6031
- .nb-audit-trail__entry--delete .nb-audit-trail__marker {
6032
- border-color: var(--danger-color);
6199
+ .nb-audit-trail__drawer-label {
6200
+ color: var(--text-secondary);
6201
+ font-size: var(--font-size-xs, 0.75rem);
6202
+ line-height: 1.4;
6203
+ margin: 0;
6033
6204
  }
6034
6205
 
6035
6206
  .nb-audit-trail__meta {
@@ -6039,12 +6210,6 @@ html[data-density=compact] .nb-crud-page-shell__footer {
6039
6210
  gap: var(--space-2);
6040
6211
  }
6041
6212
 
6042
- .nb-audit-trail__timestamp {
6043
- color: var(--text-secondary);
6044
- font-size: var(--font-size-xs, 0.75rem);
6045
- font-variant-numeric: tabular-nums;
6046
- }
6047
-
6048
6213
  .nb-audit-trail__user {
6049
6214
  color: var(--text-primary);
6050
6215
  font-size: var(--font-size-sm, 0.8125rem);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubitio/react-admin",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "description": "Batteries-included admin stack: core runtime, CRUD, Hydra adapter, and AdminShell.",
6
6
  "license": "MIT",
@@ -50,11 +50,11 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@nubitio/admin": "^0.5.1",
54
- "@nubitio/hydra": "^0.5.1",
55
- "@nubitio/core": "^0.5.1",
56
- "@nubitio/ui": "^0.5.1",
57
- "@nubitio/crud": "^0.5.1"
53
+ "@nubitio/core": "^0.5.3",
54
+ "@nubitio/hydra": "^0.5.3",
55
+ "@nubitio/crud": "^0.5.3",
56
+ "@nubitio/ui": "^0.5.3",
57
+ "@nubitio/admin": "^0.5.3"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@tanstack/react-query": "^5.0.0",