@diwauhris/ui 1.4.3 → 1.5.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.
package/lib/assets/ui.css
CHANGED
|
@@ -290,6 +290,11 @@
|
|
|
290
290
|
inset: 0px;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
+
.inset-x-0 {
|
|
294
|
+
left: 0px;
|
|
295
|
+
right: 0px;
|
|
296
|
+
}
|
|
297
|
+
|
|
293
298
|
.inset-x-2 {
|
|
294
299
|
left: 0.5rem;
|
|
295
300
|
right: 0.5rem;
|
|
@@ -896,6 +901,14 @@
|
|
|
896
901
|
min-height: 32px;
|
|
897
902
|
}
|
|
898
903
|
|
|
904
|
+
.min-h-\[40px\] {
|
|
905
|
+
min-height: 40px;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.min-h-\[44px\] {
|
|
909
|
+
min-height: 44px;
|
|
910
|
+
}
|
|
911
|
+
|
|
899
912
|
.min-h-\[48px\] {
|
|
900
913
|
min-height: 48px;
|
|
901
914
|
}
|
|
@@ -1779,6 +1792,10 @@
|
|
|
1779
1792
|
align-self: stretch;
|
|
1780
1793
|
}
|
|
1781
1794
|
|
|
1795
|
+
.overflow-auto {
|
|
1796
|
+
overflow: auto;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1782
1799
|
.overflow-hidden {
|
|
1783
1800
|
overflow: hidden;
|
|
1784
1801
|
}
|
|
@@ -1872,6 +1889,11 @@
|
|
|
1872
1889
|
border-bottom-right-radius: 0.75rem;
|
|
1873
1890
|
}
|
|
1874
1891
|
|
|
1892
|
+
.rounded-t-2xl {
|
|
1893
|
+
border-top-left-radius: 1rem;
|
|
1894
|
+
border-top-right-radius: 1rem;
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1875
1897
|
.rounded-t-xl {
|
|
1876
1898
|
border-top-left-radius: 0.75rem;
|
|
1877
1899
|
border-top-right-radius: 0.75rem;
|
|
@@ -2857,6 +2879,10 @@
|
|
|
2857
2879
|
padding: 0.5rem;
|
|
2858
2880
|
}
|
|
2859
2881
|
|
|
2882
|
+
.p-2\.5 {
|
|
2883
|
+
padding: 0.625rem;
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2860
2886
|
.p-3 {
|
|
2861
2887
|
padding: 0.75rem;
|
|
2862
2888
|
}
|
|
@@ -3852,6 +3878,22 @@
|
|
|
3852
3878
|
outline-style: solid;
|
|
3853
3879
|
}
|
|
3854
3880
|
|
|
3881
|
+
.outline-2 {
|
|
3882
|
+
outline-width: 2px;
|
|
3883
|
+
}
|
|
3884
|
+
|
|
3885
|
+
.outline-offset-2 {
|
|
3886
|
+
outline-offset: 2px;
|
|
3887
|
+
}
|
|
3888
|
+
|
|
3889
|
+
.outline-emerald-400 {
|
|
3890
|
+
outline-color: #34d399;
|
|
3891
|
+
}
|
|
3892
|
+
|
|
3893
|
+
.outline-rose-400 {
|
|
3894
|
+
outline-color: #fb7185;
|
|
3895
|
+
}
|
|
3896
|
+
|
|
3855
3897
|
.ring {
|
|
3856
3898
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
3857
3899
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
@@ -4511,6 +4553,9 @@ body {
|
|
|
4511
4553
|
--tw-bg-opacity: 1;
|
|
4512
4554
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
4513
4555
|
}
|
|
4556
|
+
.hover\:bg-white\/10:hover {
|
|
4557
|
+
background-color: rgb(255 255 255 / 0.1);
|
|
4558
|
+
}
|
|
4514
4559
|
.hover\:bg-white\/20:hover {
|
|
4515
4560
|
background-color: rgb(255 255 255 / 0.2);
|
|
4516
4561
|
}
|
|
@@ -4920,6 +4965,9 @@ body {
|
|
|
4920
4965
|
.sm\:grid-cols-4 {
|
|
4921
4966
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
4922
4967
|
}
|
|
4968
|
+
.sm\:grid-cols-5 {
|
|
4969
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
4970
|
+
}
|
|
4923
4971
|
.sm\:grid-cols-6 {
|
|
4924
4972
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
4925
4973
|
}
|
|
@@ -4948,15 +4996,34 @@ body {
|
|
|
4948
4996
|
}
|
|
4949
4997
|
}
|
|
4950
4998
|
@media (min-width: 768px) {
|
|
4999
|
+
.md\:relative {
|
|
5000
|
+
position: relative;
|
|
5001
|
+
}
|
|
5002
|
+
.md\:inset-auto {
|
|
5003
|
+
inset: auto;
|
|
5004
|
+
}
|
|
5005
|
+
.md\:mx-auto {
|
|
5006
|
+
margin-left: auto;
|
|
5007
|
+
margin-right: auto;
|
|
5008
|
+
}
|
|
5009
|
+
.md\:block {
|
|
5010
|
+
display: block;
|
|
5011
|
+
}
|
|
4951
5012
|
.md\:flex {
|
|
4952
5013
|
display: flex;
|
|
4953
5014
|
}
|
|
5015
|
+
.md\:hidden {
|
|
5016
|
+
display: none;
|
|
5017
|
+
}
|
|
4954
5018
|
.md\:w-56 {
|
|
4955
5019
|
width: 14rem;
|
|
4956
5020
|
}
|
|
4957
5021
|
.md\:w-80 {
|
|
4958
5022
|
width: 20rem;
|
|
4959
5023
|
}
|
|
5024
|
+
.md\:w-96 {
|
|
5025
|
+
width: 24rem;
|
|
5026
|
+
}
|
|
4960
5027
|
.md\:grid-cols-2 {
|
|
4961
5028
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4962
5029
|
}
|
|
@@ -4981,6 +5048,9 @@ body {
|
|
|
4981
5048
|
.md\:self-auto {
|
|
4982
5049
|
align-self: auto;
|
|
4983
5050
|
}
|
|
5051
|
+
.md\:rounded-2xl {
|
|
5052
|
+
border-radius: 1rem;
|
|
5053
|
+
}
|
|
4984
5054
|
.md\:p-6 {
|
|
4985
5055
|
padding: 1.5rem;
|
|
4986
5056
|
}
|
|
@@ -4991,6 +5061,14 @@ body {
|
|
|
4991
5061
|
.md\:pt-4 {
|
|
4992
5062
|
padding-top: 1rem;
|
|
4993
5063
|
}
|
|
5064
|
+
.md\:text-3xl {
|
|
5065
|
+
font-size: 1.875rem;
|
|
5066
|
+
line-height: 2.25rem;
|
|
5067
|
+
}
|
|
5068
|
+
.md\:text-xl {
|
|
5069
|
+
font-size: 1.25rem;
|
|
5070
|
+
line-height: 1.75rem;
|
|
5071
|
+
}
|
|
4994
5072
|
}
|
|
4995
5073
|
@media (min-width: 1024px) {
|
|
4996
5074
|
.lg\:col-span-2 {
|
|
@@ -5024,6 +5102,14 @@ body {
|
|
|
5024
5102
|
padding-left: 3rem;
|
|
5025
5103
|
padding-right: 3rem;
|
|
5026
5104
|
}
|
|
5105
|
+
.lg\:px-8 {
|
|
5106
|
+
padding-left: 2rem;
|
|
5107
|
+
padding-right: 2rem;
|
|
5108
|
+
}
|
|
5109
|
+
.lg\:text-4xl {
|
|
5110
|
+
font-size: 2.25rem;
|
|
5111
|
+
line-height: 2.5rem;
|
|
5112
|
+
}
|
|
5027
5113
|
}
|
|
5028
5114
|
@media (min-width: 1280px) {
|
|
5029
5115
|
.xl\:grid-cols-4 {
|
package/lib/index.cjs
CHANGED
|
@@ -4763,12 +4763,47 @@ function Statistic({ label, value, helper, icon: Icon, trend, trendLabel, varian
|
|
|
4763
4763
|
}
|
|
4764
4764
|
//#endregion
|
|
4765
4765
|
//#region src/ui-library/gallery/status-dot/StatusDot.tsx
|
|
4766
|
+
var DOT_STYLES = {
|
|
4767
|
+
active: {
|
|
4768
|
+
bg: "#10b981",
|
|
4769
|
+
shadow: "0 0 0 3px rgba(16,185,129,0.18)"
|
|
4770
|
+
},
|
|
4771
|
+
locked: {
|
|
4772
|
+
bg: "#ef4444",
|
|
4773
|
+
shadow: "0 0 0 3px rgba(239,68,68,0.18)"
|
|
4774
|
+
},
|
|
4775
|
+
inactive: {
|
|
4776
|
+
bg: "#f59e0b",
|
|
4777
|
+
shadow: "0 0 0 3px rgba(245,158,11,0.18)"
|
|
4778
|
+
},
|
|
4779
|
+
pending: {
|
|
4780
|
+
bg: "#eab308",
|
|
4781
|
+
shadow: "0 0 0 3px rgba(234,179,8,0.18)"
|
|
4782
|
+
}
|
|
4783
|
+
};
|
|
4766
4784
|
function StatusDot({ status, label, className = "" }) {
|
|
4785
|
+
const dot = DOT_STYLES[status];
|
|
4767
4786
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
4768
|
-
|
|
4787
|
+
style: {
|
|
4788
|
+
display: "inline-flex",
|
|
4789
|
+
alignItems: "center",
|
|
4790
|
+
gap: 8,
|
|
4791
|
+
fontWeight: 600,
|
|
4792
|
+
fontSize: "0.8125rem",
|
|
4793
|
+
color: "#334155"
|
|
4794
|
+
},
|
|
4795
|
+
className,
|
|
4769
4796
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
4770
|
-
|
|
4771
|
-
|
|
4797
|
+
"aria-hidden": "true",
|
|
4798
|
+
style: {
|
|
4799
|
+
display: "inline-block",
|
|
4800
|
+
width: 8,
|
|
4801
|
+
height: 8,
|
|
4802
|
+
borderRadius: "50%",
|
|
4803
|
+
flexShrink: 0,
|
|
4804
|
+
backgroundColor: dot.bg,
|
|
4805
|
+
boxShadow: dot.shadow
|
|
4806
|
+
}
|
|
4772
4807
|
}), label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label })]
|
|
4773
4808
|
});
|
|
4774
4809
|
}
|
package/lib/index.mjs
CHANGED
|
@@ -4740,12 +4740,47 @@ function Statistic({ label, value, helper, icon: Icon, trend, trendLabel, varian
|
|
|
4740
4740
|
}
|
|
4741
4741
|
//#endregion
|
|
4742
4742
|
//#region src/ui-library/gallery/status-dot/StatusDot.tsx
|
|
4743
|
+
var DOT_STYLES = {
|
|
4744
|
+
active: {
|
|
4745
|
+
bg: "#10b981",
|
|
4746
|
+
shadow: "0 0 0 3px rgba(16,185,129,0.18)"
|
|
4747
|
+
},
|
|
4748
|
+
locked: {
|
|
4749
|
+
bg: "#ef4444",
|
|
4750
|
+
shadow: "0 0 0 3px rgba(239,68,68,0.18)"
|
|
4751
|
+
},
|
|
4752
|
+
inactive: {
|
|
4753
|
+
bg: "#f59e0b",
|
|
4754
|
+
shadow: "0 0 0 3px rgba(245,158,11,0.18)"
|
|
4755
|
+
},
|
|
4756
|
+
pending: {
|
|
4757
|
+
bg: "#eab308",
|
|
4758
|
+
shadow: "0 0 0 3px rgba(234,179,8,0.18)"
|
|
4759
|
+
}
|
|
4760
|
+
};
|
|
4743
4761
|
function StatusDot({ status, label, className = "" }) {
|
|
4762
|
+
const dot = DOT_STYLES[status];
|
|
4744
4763
|
return /* @__PURE__ */ jsxs("div", {
|
|
4745
|
-
|
|
4764
|
+
style: {
|
|
4765
|
+
display: "inline-flex",
|
|
4766
|
+
alignItems: "center",
|
|
4767
|
+
gap: 8,
|
|
4768
|
+
fontWeight: 600,
|
|
4769
|
+
fontSize: "0.8125rem",
|
|
4770
|
+
color: "#334155"
|
|
4771
|
+
},
|
|
4772
|
+
className,
|
|
4746
4773
|
children: [/* @__PURE__ */ jsx("span", {
|
|
4747
|
-
|
|
4748
|
-
|
|
4774
|
+
"aria-hidden": "true",
|
|
4775
|
+
style: {
|
|
4776
|
+
display: "inline-block",
|
|
4777
|
+
width: 8,
|
|
4778
|
+
height: 8,
|
|
4779
|
+
borderRadius: "50%",
|
|
4780
|
+
flexShrink: 0,
|
|
4781
|
+
backgroundColor: dot.bg,
|
|
4782
|
+
boxShadow: dot.shadow
|
|
4783
|
+
}
|
|
4749
4784
|
}), label && /* @__PURE__ */ jsx("span", { children: label })]
|
|
4750
4785
|
});
|
|
4751
4786
|
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* A coloured glowing dot paired with a label. Used in tables to indicate
|
|
5
5
|
* account or entity status at a glance.
|
|
6
6
|
*
|
|
7
|
+
* Self-contained: uses inline styles so it works without any external CSS.
|
|
8
|
+
*
|
|
7
9
|
* Usage:
|
|
8
10
|
* <StatusDot status="active" label="Active" />
|
|
9
11
|
* <StatusDot status="locked" label="Locked" />
|