@astralui/core 0.1.2 → 0.1.4
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 +9 -0
- package/dist/index.cjs +317 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +113 -1
- package/dist/index.d.ts +113 -1
- package/dist/index.js +307 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +238 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -647,3 +647,241 @@ button, input, optgroup, select, textarea { font-family: inherit; font-size: 100
|
|
|
647
647
|
@media (prefers-reduced-motion: reduce) {
|
|
648
648
|
.astral-space-bg::before, .astral-stars, .astral-stars::after { animation: none; }
|
|
649
649
|
}
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
/* ===== src/styles/charts.css ===== */
|
|
653
|
+
/* AstralUI charts - lightweight, dependency-free data viz (pure SVG + CSS).
|
|
654
|
+
Theme-aware via the --astral-*/--au-* tokens. Render through the React
|
|
655
|
+
components <Sparkline/>, <Delta/>, <Donut/>, <FunnelBars/>, <StackedBars/>. */
|
|
656
|
+
|
|
657
|
+
/* ---------- sparkline ---------- */
|
|
658
|
+
.au-spark { margin-top: 10px; height: 28px; width: 100%; display: block; }
|
|
659
|
+
|
|
660
|
+
/* ---------- delta badge ---------- */
|
|
661
|
+
.au-delta { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
|
|
662
|
+
.au-delta.up { color: var(--au-green); background: color-mix(in srgb, var(--au-green) 14%, transparent); }
|
|
663
|
+
.au-delta.down { color: var(--au-red); background: color-mix(in srgb, var(--au-red) 14%, transparent); }
|
|
664
|
+
|
|
665
|
+
/* ---------- donut ---------- */
|
|
666
|
+
.au-donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
|
|
667
|
+
.au-donut-ring { position: relative; width: 150px; height: 150px; flex: 0 0 auto; }
|
|
668
|
+
.au-donut-ctr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
|
|
669
|
+
.au-donut-ctr b { font-size: 26px; font-weight: 760; letter-spacing: -.02em; color: var(--au-text); line-height: 1; }
|
|
670
|
+
.au-donut-ctr span { font-size: 11px; color: var(--au-dim); margin-top: 3px; }
|
|
671
|
+
.au-donut-legend { display: flex; flex-direction: column; gap: 7px; min-width: 170px; flex: 1; }
|
|
672
|
+
.au-dl { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 8px; cursor: default; transition: background .12s, opacity .15s; }
|
|
673
|
+
.au-dl.on { background: var(--au-surface-2); }
|
|
674
|
+
.au-dl.off { opacity: .4; }
|
|
675
|
+
.au-dl .dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
|
|
676
|
+
.au-dl .dll { font-size: 12.5px; color: var(--au-dim); flex: 1; min-width: 0; }
|
|
677
|
+
.au-dl.on .dll { color: var(--au-text); }
|
|
678
|
+
.au-dl b { font-size: 14px; font-weight: 730; color: var(--au-text); min-width: 30px; font-variant-numeric: tabular-nums; }
|
|
679
|
+
|
|
680
|
+
/* ---------- funnel bars ---------- */
|
|
681
|
+
.au-funnel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: space-around; gap: 8px; padding: 6px 0 2px; }
|
|
682
|
+
.au-fbar { display: grid; grid-template-columns: 86px 1fr 46px; align-items: center; gap: 14px; transition: opacity .15s; }
|
|
683
|
+
.au-fbar.off { opacity: .36; }
|
|
684
|
+
.au-fbar-label { font-size: 12px; color: var(--au-dim); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
685
|
+
.au-fbar.on .au-fbar-label { color: var(--au-text); font-weight: 600; }
|
|
686
|
+
.au-fbar-track { height: 20px; border-radius: 7px; background: var(--au-surface-2); overflow: hidden; }
|
|
687
|
+
.au-fbar-fill { height: 100%; border-radius: 7px; min-width: 3px; transition: width .45s cubic-bezier(.4,0,.2,1), filter .15s; }
|
|
688
|
+
.au-fbar.on .au-fbar-fill { filter: brightness(1.18) saturate(1.08); }
|
|
689
|
+
.au-fbar-val { font-size: 14px; font-weight: 730; color: var(--au-text); font-variant-numeric: tabular-nums; text-align: right; }
|
|
690
|
+
|
|
691
|
+
/* ---------- stacked bars ---------- */
|
|
692
|
+
.au-usage { display: flex; flex-direction: column; gap: 14px; }
|
|
693
|
+
.au-usage-legend { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; }
|
|
694
|
+
.au-ulg { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--au-dim); cursor: default; transition: opacity .15s, color .15s; }
|
|
695
|
+
.au-ulg.on { color: var(--au-text); }
|
|
696
|
+
.au-ulg.off { opacity: .4; }
|
|
697
|
+
.au-ulg .dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
|
|
698
|
+
.au-usage-rows { display: flex; flex-direction: column; gap: 10px; }
|
|
699
|
+
.au-urow { display: grid; grid-template-columns: 104px 1fr auto; align-items: center; gap: 14px; }
|
|
700
|
+
.au-urow-label { font-size: 12px; color: var(--au-dim); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
|
|
701
|
+
.au-urow.on .au-urow-label { color: var(--au-text); font-weight: 600; }
|
|
702
|
+
.au-utrack { display: flex; align-items: stretch; height: 22px; border-radius: 7px; background: var(--au-surface-2); overflow: hidden; }
|
|
703
|
+
.au-useg { height: 100%; flex: 0 0 auto; cursor: pointer; transition: opacity .15s, filter .15s; }
|
|
704
|
+
.au-unums { display: inline-flex; gap: 12px; font-variant-numeric: tabular-nums; min-width: 64px; justify-content: flex-end; }
|
|
705
|
+
.au-unums b { font-size: 13.5px; font-weight: 740; transition: opacity .15s, text-shadow .15s; }
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
/* ===== src/styles/auth.css ===== */
|
|
709
|
+
/* AstralUI auth surface - sign-in / sign-up / verify / onboarding layouts.
|
|
710
|
+
A centered card on a branded backdrop, with stepper, fields, notices, and a
|
|
711
|
+
logo dropzone. Theme-aware via the --astral-* tokens. Pair with <AuthShell/>
|
|
712
|
+
(or the .astral-space-bg / .astral-grid-bg backgrounds). */
|
|
713
|
+
|
|
714
|
+
.au-auth {
|
|
715
|
+
--aa-panel: var(--astral-app-card, light-dark(#ffffff, #16161b));
|
|
716
|
+
--aa-surface-2: light-dark(var(--astral-color-gray-1), #1d1d24);
|
|
717
|
+
--aa-line: var(--astral-color-default-border);
|
|
718
|
+
--aa-text: var(--astral-color-text);
|
|
719
|
+
--aa-dim: light-dark(var(--astral-color-gray-7), #a6a6b3);
|
|
720
|
+
--aa-faint: light-dark(var(--astral-color-gray-6), #6f6f7d);
|
|
721
|
+
--aa-brand: var(--astral-primary-color-filled);
|
|
722
|
+
--aa-brand-text: light-dark(var(--astral-color-violet-7), var(--astral-color-violet-3));
|
|
723
|
+
--aa-brand-2: var(--astral-color-violet-5);
|
|
724
|
+
--aa-accent: #EF8E2E;
|
|
725
|
+
--aa-green: light-dark(#059669, #34d399);
|
|
726
|
+
--aa-red: light-dark(#dc2626, #f87171);
|
|
727
|
+
--aa-shadow: light-dark(0 1px 2px rgba(16,16,24,.06), 0 1px 2px rgba(0,0,0,.4)),
|
|
728
|
+
light-dark(0 8px 22px rgba(16,16,24,.06), 0 8px 24px rgba(0,0,0,.22));
|
|
729
|
+
font-family: var(--astral-font-family);
|
|
730
|
+
|
|
731
|
+
position: relative;
|
|
732
|
+
min-height: 100dvh;
|
|
733
|
+
display: grid;
|
|
734
|
+
place-items: center;
|
|
735
|
+
padding: 40px 22px;
|
|
736
|
+
overflow: hidden;
|
|
737
|
+
background: var(--astral-color-body);
|
|
738
|
+
color: var(--aa-text);
|
|
739
|
+
}
|
|
740
|
+
.au-auth .num { font-variant-numeric: tabular-nums; }
|
|
741
|
+
|
|
742
|
+
/* branded backdrop: soft radial wash + faint masked grid */
|
|
743
|
+
.au-auth-bg { position: absolute; inset: 0; pointer-events: none;
|
|
744
|
+
background:
|
|
745
|
+
radial-gradient(58% 46% at 50% -4%, color-mix(in srgb, var(--aa-brand) 16%, transparent), transparent 70%),
|
|
746
|
+
radial-gradient(40% 38% at 86% 108%, color-mix(in srgb, var(--aa-accent) 10%, transparent), transparent 72%); }
|
|
747
|
+
.au-auth-bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
|
|
748
|
+
background-image: linear-gradient(var(--aa-line) 1px, transparent 1px), linear-gradient(90deg, var(--aa-line) 1px, transparent 1px);
|
|
749
|
+
background-size: 44px 44px;
|
|
750
|
+
-webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
|
|
751
|
+
mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%); }
|
|
752
|
+
|
|
753
|
+
.au-auth-lang { position: absolute; top: 16px; right: 16px; z-index: 5; }
|
|
754
|
+
.au-auth-back { position: absolute; top: 16px; left: 16px; z-index: 5; display: inline-flex; align-items: center; gap: 6px;
|
|
755
|
+
font: inherit; font-size: 12.5px; font-weight: 600; color: var(--aa-dim); background: var(--aa-panel);
|
|
756
|
+
border: 1px solid var(--aa-line); border-radius: 10px; padding: 8px 13px; cursor: pointer; transition: .15s; }
|
|
757
|
+
.au-auth-back:hover { color: var(--aa-text); border-color: color-mix(in srgb, var(--aa-brand) 45%, transparent); }
|
|
758
|
+
|
|
759
|
+
/* card */
|
|
760
|
+
.au-auth-card { position: relative; z-index: 2; width: 100%; max-width: 452px;
|
|
761
|
+
background: var(--aa-panel); border: 1px solid var(--aa-line); border-radius: 20px;
|
|
762
|
+
box-shadow: var(--aa-shadow); padding: 30px 30px 26px; overflow: hidden; }
|
|
763
|
+
|
|
764
|
+
/* brand banner header */
|
|
765
|
+
.au-auth-banner { position: relative; display: flex; align-items: center; justify-content: center;
|
|
766
|
+
padding: 19px 0 17px; margin: -30px -30px 24px; border-bottom: 1px solid var(--aa-line);
|
|
767
|
+
background: linear-gradient(180deg, #f5f3fc, #ece8f8); }
|
|
768
|
+
.au-auth-banner::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
|
|
769
|
+
background: linear-gradient(90deg, var(--aa-accent), var(--aa-brand) 55%, var(--aa-brand-2)); }
|
|
770
|
+
.au-auth-banner img { height: 25px; width: auto; display: block; }
|
|
771
|
+
|
|
772
|
+
.au-auth-title { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.02em; color: var(--aa-text); }
|
|
773
|
+
.au-auth-sub { margin-top: 6px; font-size: 12.8px; color: var(--aa-dim); line-height: 1.5; }
|
|
774
|
+
|
|
775
|
+
/* error */
|
|
776
|
+
.au-auth-err { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 0; padding: 10px 13px; border-radius: 11px; font-size: 12.5px; line-height: 1.45;
|
|
777
|
+
color: var(--aa-red); background: color-mix(in srgb, var(--aa-red) 12%, transparent); border: 1px solid color-mix(in srgb, var(--aa-red) 30%, transparent); }
|
|
778
|
+
.au-auth-err svg { flex: 0 0 auto; margin-top: 1px; }
|
|
779
|
+
|
|
780
|
+
/* stepper */
|
|
781
|
+
.au-auth-steps { display: flex; align-items: center; margin: 24px 0 22px; }
|
|
782
|
+
.au-auth-step { display: flex; align-items: center; gap: 8px; }
|
|
783
|
+
.au-auth-step-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 auto;
|
|
784
|
+
background: var(--aa-surface-2); border: 1px solid var(--aa-line); color: var(--aa-faint); transition: .15s; }
|
|
785
|
+
.au-auth-step-dot svg { width: 13px; height: 13px; }
|
|
786
|
+
.au-auth-step-l { font-size: 12px; font-weight: 600; color: var(--aa-faint); white-space: nowrap; }
|
|
787
|
+
.au-auth-step.on .au-auth-step-dot { background: var(--aa-brand); border-color: var(--aa-brand); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--aa-brand) 22%, transparent); }
|
|
788
|
+
.au-auth-step.on .au-auth-step-l { color: var(--aa-text); }
|
|
789
|
+
.au-auth-step.done .au-auth-step-dot { background: color-mix(in srgb, var(--aa-brand) 18%, transparent); border-color: color-mix(in srgb, var(--aa-brand) 45%, transparent); color: var(--aa-brand-text); }
|
|
790
|
+
.au-auth-step.done .au-auth-step-l { color: var(--aa-dim); }
|
|
791
|
+
.au-auth-step-line { flex: 1; height: 2px; margin: 0 10px; border-radius: 2px; background: var(--aa-line); }
|
|
792
|
+
.au-auth-step-line.fill { background: color-mix(in srgb, var(--aa-brand) 50%, transparent); }
|
|
793
|
+
|
|
794
|
+
/* field */
|
|
795
|
+
.au-auth-field { margin-bottom: 18px; }
|
|
796
|
+
.au-auth-field label { display: block; font-size: 12px; font-weight: 600; color: var(--aa-dim); margin-bottom: 7px; }
|
|
797
|
+
.au-auth-input { display: flex; align-items: center; gap: 9px; background: var(--aa-surface-2); border: 1px solid var(--aa-line); border-radius: 11px; padding: 11px 13px; transition: .15s; }
|
|
798
|
+
.au-auth-input:focus-within { border-color: var(--aa-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--aa-brand) 18%, transparent); }
|
|
799
|
+
.au-auth-input input { flex: 1; border: 0; background: transparent; color: var(--aa-text); font: inherit; font-size: 13.5px; outline: none; }
|
|
800
|
+
.au-auth-input input::placeholder { color: var(--aa-faint); }
|
|
801
|
+
.au-auth-hint { margin-top: 7px; font-size: 11.5px; color: var(--aa-faint); }
|
|
802
|
+
|
|
803
|
+
/* logo dropzone */
|
|
804
|
+
.au-auth-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; border: 1.5px dashed var(--aa-line); border-radius: 14px; padding: 24px 18px; background: var(--aa-surface-2); transition: .15s; cursor: pointer; }
|
|
805
|
+
.au-auth-drop:hover { border-color: color-mix(in srgb, var(--aa-brand) 55%, transparent); background: color-mix(in srgb, var(--aa-brand) 6%, var(--aa-surface-2)); }
|
|
806
|
+
.au-auth-drop .ph { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--aa-brand) 14%, transparent); color: var(--aa-brand-text); overflow: hidden; }
|
|
807
|
+
.au-auth-drop .ph svg { width: 24px; height: 24px; }
|
|
808
|
+
.au-auth-drop .ph img { width: 100%; height: 100%; object-fit: cover; }
|
|
809
|
+
.au-auth-drop .t { font-size: 13px; font-weight: 600; color: var(--aa-text); }
|
|
810
|
+
.au-auth-drop .t b { color: var(--aa-brand-text); font-weight: 700; }
|
|
811
|
+
.au-auth-drop .h { font-size: 11.5px; color: var(--aa-faint); }
|
|
812
|
+
.au-auth-drop-clear { margin-top: 9px; font-size: 12px; font-weight: 600; color: var(--aa-faint); background: transparent; border: 0; cursor: pointer; }
|
|
813
|
+
.au-auth-drop-clear:hover { color: var(--aa-red); }
|
|
814
|
+
|
|
815
|
+
/* success */
|
|
816
|
+
.au-auth-ok { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 0 2px; }
|
|
817
|
+
.au-auth-okring { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; color: var(--aa-green);
|
|
818
|
+
background: color-mix(in srgb, var(--aa-green) 15%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--aa-green) 8%, transparent); }
|
|
819
|
+
.au-auth-okring svg { width: 30px; height: 30px; }
|
|
820
|
+
|
|
821
|
+
/* join icon */
|
|
822
|
+
.au-auth-jicon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; color: var(--aa-brand-text); background: color-mix(in srgb, var(--aa-brand) 14%, transparent); }
|
|
823
|
+
.au-auth-jicon svg { width: 22px; height: 22px; }
|
|
824
|
+
|
|
825
|
+
/* actions */
|
|
826
|
+
.au-auth-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
|
|
827
|
+
.au-auth-actions.center { justify-content: center; }
|
|
828
|
+
.au-auth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 650; border-radius: 11px; padding: 11px 18px; cursor: pointer; transition: .15s; border: 1px solid var(--aa-line); background: transparent; color: var(--aa-text); }
|
|
829
|
+
.au-auth-btn.ghost { color: var(--aa-dim); }
|
|
830
|
+
.au-auth-btn.ghost:hover { color: var(--aa-text); border-color: color-mix(in srgb, var(--aa-brand) 45%, transparent); }
|
|
831
|
+
.au-auth-btn.primary { background: var(--aa-brand); border-color: var(--aa-brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--aa-brand) 32%, transparent); }
|
|
832
|
+
.au-auth-btn.primary:hover { filter: brightness(1.08); }
|
|
833
|
+
.au-auth-btn.primary:active { transform: translateY(1px); }
|
|
834
|
+
.au-auth-btn:disabled { opacity: .5; cursor: not-allowed; }
|
|
835
|
+
.au-auth-btn.full, .au-auth-btn.block { flex: 1; width: 100%; }
|
|
836
|
+
.au-auth-btn svg { width: 15px; height: 15px; }
|
|
837
|
+
|
|
838
|
+
.au-auth-alt { margin-top: 16px; text-align: center; font-size: 12px; color: var(--aa-faint); }
|
|
839
|
+
.au-auth-alt button, .au-auth-alt a { color: var(--aa-brand-text); font: inherit; font-weight: 600; background: transparent; border: 0; cursor: pointer; padding: 0; text-decoration: none; }
|
|
840
|
+
.au-auth-alt button:hover, .au-auth-alt a:hover { text-decoration: underline; }
|
|
841
|
+
|
|
842
|
+
/* stacked form */
|
|
843
|
+
.au-auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
|
|
844
|
+
.au-auth-form .au-auth-field { margin-bottom: 0; }
|
|
845
|
+
|
|
846
|
+
/* notices (info / warn / ok / err) */
|
|
847
|
+
.au-auth-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding: 10px 13px; border-radius: 11px; font-size: 12.5px; line-height: 1.45; }
|
|
848
|
+
.au-auth-note svg { flex: 0 0 auto; margin-top: 1px; }
|
|
849
|
+
.au-auth-note.info { color: var(--aa-brand-text); background: color-mix(in srgb, var(--aa-brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--aa-brand) 28%, transparent); }
|
|
850
|
+
.au-auth-note.warn { color: var(--aa-accent); background: color-mix(in srgb, var(--aa-accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--aa-accent) 32%, transparent); }
|
|
851
|
+
.au-auth-note.ok { color: var(--aa-green); background: color-mix(in srgb, var(--aa-green) 13%, transparent); border: 1px solid color-mix(in srgb, var(--aa-green) 30%, transparent); }
|
|
852
|
+
.au-auth-note.err { color: var(--aa-red); background: color-mix(in srgb, var(--aa-red) 12%, transparent); border: 1px solid color-mix(in srgb, var(--aa-red) 30%, transparent); }
|
|
853
|
+
|
|
854
|
+
/* password reveal toggle */
|
|
855
|
+
.au-auth-eye { display: grid; place-items: center; padding: 0; background: none; border: 0; color: var(--aa-faint); cursor: pointer; transition: .15s; }
|
|
856
|
+
.au-auth-eye:hover { color: var(--aa-dim); }
|
|
857
|
+
.au-auth-eye svg { width: 17px; height: 17px; }
|
|
858
|
+
|
|
859
|
+
/* right-aligned inline link (forgot password) */
|
|
860
|
+
.au-auth-flink { display: block; width: fit-content; margin: 8px 0 0 auto; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--aa-brand-text); background: none; border: 0; cursor: pointer; }
|
|
861
|
+
.au-auth-flink:hover { text-decoration: underline; }
|
|
862
|
+
|
|
863
|
+
/* inline field error */
|
|
864
|
+
.au-auth-ferr { margin-top: 6px; font-size: 11.5px; color: var(--aa-red); }
|
|
865
|
+
|
|
866
|
+
/* checkbox row */
|
|
867
|
+
.au-auth-check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12.5px; color: var(--aa-dim); }
|
|
868
|
+
.au-auth-check input { width: 16px; height: 16px; accent-color: var(--aa-brand); cursor: pointer; flex: 0 0 auto; }
|
|
869
|
+
|
|
870
|
+
/* spinner */
|
|
871
|
+
.au-auth-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: au-auth-spin .6s linear infinite; flex: 0 0 auto; }
|
|
872
|
+
@keyframes au-auth-spin { to { transform: rotate(360deg); } }
|
|
873
|
+
|
|
874
|
+
/* helper line, centered */
|
|
875
|
+
.au-auth-help { margin-top: 14px; text-align: center; font-size: 11.5px; color: var(--aa-faint); }
|
|
876
|
+
|
|
877
|
+
/* when used with the cosmic backdrop, hide the default grid wash */
|
|
878
|
+
.au-auth.astral-space-bg .au-auth-bg { display: none; }
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
/* ===== src/styles/badge.css ===== */
|
|
882
|
+
/* AstralUI status badge - colored dot + label. Color comes from the inline
|
|
883
|
+
--au-sb custom property set by <StatusBadge/>. */
|
|
884
|
+
.au-sbadge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--astral-font-family); font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 7px; white-space: nowrap; color: var(--au-sb); background: color-mix(in srgb, var(--au-sb) 15%, transparent); }
|
|
885
|
+
.au-sbadge .au-sbadge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--au-sb); flex: 0 0 auto; }
|
|
886
|
+
.au-sbadge.filled { color: #fff; background: var(--au-sb); }
|
|
887
|
+
.au-sbadge.filled .au-sbadge-dot { background: #fff; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astralui/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "AstralUI - a self-contained, dependency-free React design system: theme engine (light/dark + per-brand theming), design tokens, and components (Modal, Drawer, Select, Menu, Toast, DateInput, PinInput, Spinner).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Unbounded Technologies",
|