@nubitio/react-admin 0.5.0 → 0.5.2

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 +300 -2
  2. package/package.json +6 -6
package/dist/style.css CHANGED
@@ -2668,6 +2668,212 @@ 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
+
2745
+ .nb-timeline--log .nb-timeline__item {
2746
+ gap: var(--space-2);
2747
+ grid-template-columns: 16px 1fr;
2748
+ padding: var(--space-3) 0;
2749
+ }
2750
+ .nb-timeline--log .nb-timeline__item:not(:last-child) {
2751
+ border-bottom: 1px solid var(--border-color);
2752
+ padding-bottom: var(--space-3);
2753
+ }
2754
+ .nb-timeline--log .nb-timeline__item:not(:last-child)::before {
2755
+ left: 7px;
2756
+ top: 18px;
2757
+ }
2758
+ .nb-timeline--log .nb-timeline__item:last-child {
2759
+ padding-bottom: 0;
2760
+ }
2761
+
2762
+ .nb-timeline__marker-col {
2763
+ align-items: flex-start;
2764
+ display: flex;
2765
+ justify-content: center;
2766
+ padding-top: 2px;
2767
+ position: relative;
2768
+ z-index: 1;
2769
+ }
2770
+
2771
+ .nb-timeline__marker {
2772
+ align-items: center;
2773
+ border-radius: 50%;
2774
+ display: inline-flex;
2775
+ flex: 0 0 auto;
2776
+ justify-content: center;
2777
+ }
2778
+
2779
+ .nb-timeline__marker--complete {
2780
+ background: var(--accent-color);
2781
+ color: var(--surface-1);
2782
+ font-size: 11px;
2783
+ height: 20px;
2784
+ width: 20px;
2785
+ }
2786
+
2787
+ .nb-timeline__marker--current {
2788
+ background: var(--surface-1);
2789
+ border: 2px solid var(--accent-color);
2790
+ height: 20px;
2791
+ position: relative;
2792
+ width: 20px;
2793
+ }
2794
+ .nb-timeline__marker--current::after {
2795
+ background: var(--accent-color);
2796
+ border-radius: 50%;
2797
+ content: "";
2798
+ height: 8px;
2799
+ left: 50%;
2800
+ position: absolute;
2801
+ top: 50%;
2802
+ transform: translate(-50%, -50%);
2803
+ width: 8px;
2804
+ }
2805
+
2806
+ .nb-timeline__marker--pending {
2807
+ background: var(--surface-1);
2808
+ border: 2px solid var(--border-color);
2809
+ height: 20px;
2810
+ width: 20px;
2811
+ }
2812
+
2813
+ .nb-timeline__marker--error {
2814
+ background: var(--danger-color);
2815
+ color: var(--surface-1);
2816
+ font-size: 11px;
2817
+ height: 20px;
2818
+ width: 20px;
2819
+ }
2820
+
2821
+ .nb-timeline__marker--dot {
2822
+ background: var(--surface-2);
2823
+ border: 2px solid var(--accent-color);
2824
+ height: 12px;
2825
+ width: 12px;
2826
+ }
2827
+
2828
+ .nb-timeline__item--tone-success .nb-timeline__marker--dot {
2829
+ border-color: var(--success-color);
2830
+ }
2831
+
2832
+ .nb-timeline__item--tone-info .nb-timeline__marker--dot {
2833
+ border-color: var(--info-color, var(--accent-color));
2834
+ }
2835
+
2836
+ .nb-timeline__item--tone-danger .nb-timeline__marker--dot {
2837
+ border-color: var(--danger-color);
2838
+ }
2839
+
2840
+ .nb-timeline__item--tone-warning .nb-timeline__marker--dot {
2841
+ border-color: var(--warning-color);
2842
+ }
2843
+
2844
+ .nb-timeline__content {
2845
+ display: flex;
2846
+ flex-direction: column;
2847
+ gap: var(--space-2);
2848
+ min-width: 0;
2849
+ }
2850
+
2851
+ .nb-timeline__heading {
2852
+ display: flex;
2853
+ flex-direction: column;
2854
+ gap: var(--space-1);
2855
+ }
2856
+
2857
+ .nb-timeline--log .nb-timeline__heading {
2858
+ flex-direction: row;
2859
+ flex-wrap: wrap;
2860
+ align-items: center;
2861
+ gap: var(--space-2);
2862
+ }
2863
+
2864
+ .nb-timeline__label {
2865
+ color: var(--text-primary);
2866
+ font-size: var(--font-size-sm);
2867
+ font-weight: var(--font-weight-semibold);
2868
+ line-height: var(--line-height-tight);
2869
+ }
2870
+
2871
+ .nb-timeline__timestamp {
2872
+ color: var(--text-secondary);
2873
+ font-size: var(--font-size-xs);
2874
+ font-variant-numeric: tabular-nums;
2875
+ line-height: var(--line-height-normal);
2876
+ }
2671
2877
 
2672
2878
  /* crud/dist/style.css */
2673
2879
  #wrapper {
@@ -5948,8 +6154,7 @@ html[data-density=compact] .nb-datagrid .nb-badge {
5948
6154
 
5949
6155
  #wrapper.wrapper--with-page > .data-grid-view,
5950
6156
  #wrapper.wrapper--with-page > .view.datagrid-list,
5951
- #wrapper.wrapper--with-page > .nb-bulk-toolbar,
5952
- #wrapper.wrapper--with-page > .nb-audit-trail-toolbar {
6157
+ #wrapper.wrapper--with-page > .nb-bulk-toolbar {
5953
6158
  display: none;
5954
6159
  }
5955
6160
 
@@ -5964,6 +6169,99 @@ html[data-density=compact] .nb-crud-page-shell__footer {
5964
6169
  gap: var(--space-1);
5965
6170
  padding: var(--space-2) var(--space-3);
5966
6171
  }
6172
+ .nb-audit-trail {
6173
+ display: flex;
6174
+ flex-direction: column;
6175
+ gap: var(--space-3);
6176
+ min-height: 0;
6177
+ }
6178
+
6179
+ .nb-audit-trail__subtitle {
6180
+ color: var(--text-secondary);
6181
+ font-size: var(--font-size-sm, 0.8125rem);
6182
+ line-height: 1.4;
6183
+ margin: calc(var(--space-1) * -1) 0 0;
6184
+ }
6185
+
6186
+ .nb-audit-trail__meta {
6187
+ align-items: center;
6188
+ display: flex;
6189
+ flex-wrap: wrap;
6190
+ gap: var(--space-2);
6191
+ }
6192
+
6193
+ .nb-audit-trail__user {
6194
+ color: var(--text-primary);
6195
+ font-size: var(--font-size-sm, 0.8125rem);
6196
+ font-weight: 500;
6197
+ }
6198
+
6199
+ .nb-audit-trail__changes {
6200
+ display: flex;
6201
+ flex-direction: column;
6202
+ gap: var(--space-2);
6203
+ list-style: none;
6204
+ margin: 0;
6205
+ padding: 0;
6206
+ }
6207
+
6208
+ .nb-audit-trail__change {
6209
+ background: var(--surface-2);
6210
+ border: 1px solid var(--border-color);
6211
+ border-radius: var(--radius-md, 6px);
6212
+ display: grid;
6213
+ gap: var(--space-1);
6214
+ padding: var(--space-2) var(--space-3);
6215
+ }
6216
+
6217
+ .nb-audit-trail__field {
6218
+ color: var(--text-primary);
6219
+ font-size: var(--font-size-sm, 0.8125rem);
6220
+ font-weight: 600;
6221
+ }
6222
+
6223
+ .nb-audit-trail__diff {
6224
+ align-items: center;
6225
+ color: var(--text-secondary);
6226
+ display: flex;
6227
+ flex-wrap: wrap;
6228
+ font-size: var(--font-size-sm, 0.8125rem);
6229
+ gap: var(--space-2);
6230
+ }
6231
+
6232
+ .nb-audit-trail__value {
6233
+ font-variant-numeric: tabular-nums;
6234
+ max-width: 100%;
6235
+ overflow-wrap: anywhere;
6236
+ }
6237
+
6238
+ .nb-audit-trail__value--before {
6239
+ color: var(--danger-color);
6240
+ text-decoration: line-through;
6241
+ text-decoration-color: color-mix(in srgb, var(--danger-color) 55%, transparent);
6242
+ }
6243
+
6244
+ .nb-audit-trail__value--after {
6245
+ color: var(--success-color);
6246
+ font-weight: 500;
6247
+ }
6248
+
6249
+ .nb-audit-trail__arrow {
6250
+ color: var(--text-tertiary);
6251
+ flex: 0 0 auto;
6252
+ }
6253
+
6254
+ .nb-audit-trail__skeleton {
6255
+ display: flex;
6256
+ flex-direction: column;
6257
+ gap: var(--space-3);
6258
+ }
6259
+
6260
+ .nb-audit-trail__error {
6261
+ display: flex;
6262
+ flex-direction: column;
6263
+ gap: var(--space-3);
6264
+ }
5967
6265
  .nb-smart-crud-fallback {
5968
6266
  display: flex;
5969
6267
  flex-direction: column;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubitio/react-admin",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
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.0",
54
- "@nubitio/hydra": "^0.5.0",
55
- "@nubitio/core": "^0.5.0",
56
- "@nubitio/crud": "^0.5.0",
57
- "@nubitio/ui": "^0.5.0"
53
+ "@nubitio/admin": "^0.5.2",
54
+ "@nubitio/hydra": "^0.5.2",
55
+ "@nubitio/core": "^0.5.2",
56
+ "@nubitio/crud": "^0.5.2",
57
+ "@nubitio/ui": "^0.5.2"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@tanstack/react-query": "^5.0.0",