@gryt/ui 0.10.0 → 0.10.1
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/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/ConversationItem/ConversationItem.d.ts.map +1 -1
- package/dist/components/utils/styles.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -23
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme/oklch.d.ts.map +1 -1
- package/dist/theme.css +12 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -190,7 +190,7 @@ function R(o) {
|
|
|
190
190
|
const { l: e, c: r, h: t } = J(o), a = fe.map(
|
|
191
191
|
(i, l) => C({ l: i, c: be[l], h: t })
|
|
192
192
|
);
|
|
193
|
-
return a.push(o), a.push(C({ l: Math.max(0, e - 0.07), c: r, h: t })), a.push(C({ l: 0.
|
|
193
|
+
return a.push(o), a.push(C({ l: Math.max(0, e - 0.07), c: r, h: t })), a.push(C({ l: 0.46, c: 0.15, h: t })), a.push(C({ l: 0.33, c: 0.1, h: t })), a;
|
|
194
194
|
}
|
|
195
195
|
function wt(o) {
|
|
196
196
|
const [e, r, t] = Y(o).map(Ct);
|
|
@@ -672,10 +672,10 @@ const Te = {
|
|
|
672
672
|
success: "data-checked:bg-gryt-success",
|
|
673
673
|
warning: "data-checked:bg-gryt-warning"
|
|
674
674
|
}, Me = {
|
|
675
|
-
primary: "text-gryt-accent hover:not-data-disabled:bg-gryt-accent
|
|
676
|
-
secondary: "text-gryt-secondary hover:not-data-disabled:bg-gryt-secondary
|
|
675
|
+
primary: "text-gryt-accent-11 hover:not-data-disabled:bg-gryt-accent-3",
|
|
676
|
+
secondary: "text-gryt-secondary-11 hover:not-data-disabled:bg-gryt-secondary-3",
|
|
677
677
|
neutral: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text",
|
|
678
|
-
danger: "text-gryt-danger hover:not-data-disabled:bg-gryt-danger
|
|
678
|
+
danger: "text-gryt-danger-11 hover:not-data-disabled:bg-gryt-danger-3",
|
|
679
679
|
ghost: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
|
|
680
680
|
}, Ae = {
|
|
681
681
|
xsmall: "h-8 w-8",
|
|
@@ -788,7 +788,7 @@ const Te = {
|
|
|
788
788
|
{
|
|
789
789
|
className: s(
|
|
790
790
|
"text-xs",
|
|
791
|
-
r ? "text-gryt-danger" : "text-gryt-muted"
|
|
791
|
+
r ? "text-gryt-danger-11" : "text-gryt-muted"
|
|
792
792
|
),
|
|
793
793
|
children: a
|
|
794
794
|
}
|
|
@@ -900,7 +900,7 @@ const Te = {
|
|
|
900
900
|
{
|
|
901
901
|
size: "small",
|
|
902
902
|
className: s(
|
|
903
|
-
e ? "bg-gryt-on-accent text-gryt-accent ring-transparent" : "bg-gryt-surface-raised text-gryt-text"
|
|
903
|
+
e ? "bg-gryt-on-accent text-gryt-accent-9 ring-transparent" : "bg-gryt-surface-raised text-gryt-text"
|
|
904
904
|
),
|
|
905
905
|
children: i.slice(0, 1).toUpperCase()
|
|
906
906
|
}
|
|
@@ -912,7 +912,7 @@ const Te = {
|
|
|
912
912
|
{
|
|
913
913
|
className: s(
|
|
914
914
|
"block truncate text-xs",
|
|
915
|
-
e ? "text-gryt-on-accent/
|
|
915
|
+
e ? "text-gryt-on-accent/85" : "text-gryt-muted"
|
|
916
916
|
),
|
|
917
917
|
children: a
|
|
918
918
|
}
|
|
@@ -948,11 +948,11 @@ const Te = {
|
|
|
948
948
|
);
|
|
949
949
|
}), Ge = {
|
|
950
950
|
neutral: "border-gryt-border bg-gryt-surface-raised text-gryt-text",
|
|
951
|
-
primary: "border-gryt-accent
|
|
952
|
-
secondary: "border-gryt-secondary
|
|
953
|
-
success: "border-gryt-success
|
|
954
|
-
warning: "border-gryt-warning
|
|
955
|
-
danger: "border-gryt-danger
|
|
951
|
+
primary: "border-gryt-accent-6 bg-gryt-accent-3 text-gryt-accent-11",
|
|
952
|
+
secondary: "border-gryt-secondary-6 bg-gryt-secondary-3 text-gryt-secondary-11",
|
|
953
|
+
success: "border-gryt-success-6 bg-gryt-success-3 text-gryt-success-11",
|
|
954
|
+
warning: "border-gryt-warning-6 bg-gryt-warning-3 text-gryt-warning-11",
|
|
955
|
+
danger: "border-gryt-danger-6 bg-gryt-danger-3 text-gryt-danger-11"
|
|
956
956
|
}, ln = c(function({ children: e, className: r, icon: t, label: a, onDelete: i, tone: l = "neutral", ...d }, g) {
|
|
957
957
|
return /* @__PURE__ */ p(
|
|
958
958
|
"span",
|
|
@@ -1234,7 +1234,7 @@ function pn({
|
|
|
1234
1234
|
),
|
|
1235
1235
|
children: [
|
|
1236
1236
|
/* @__PURE__ */ n(v.ItemText, { children: l.label }),
|
|
1237
|
-
/* @__PURE__ */ n(v.ItemIndicator, { className: "text-gryt-accent", children: /* @__PURE__ */ n(Rt, { size: 14, weight: "bold" }) })
|
|
1237
|
+
/* @__PURE__ */ n(v.ItemIndicator, { className: "text-gryt-accent-11", children: /* @__PURE__ */ n(Rt, { size: 14, weight: "bold" }) })
|
|
1238
1238
|
]
|
|
1239
1239
|
},
|
|
1240
1240
|
String(l.value)
|
|
@@ -1346,10 +1346,10 @@ function Nn({
|
|
|
1346
1346
|
);
|
|
1347
1347
|
}
|
|
1348
1348
|
const Ee = {
|
|
1349
|
-
info: "border-gryt-secondary
|
|
1350
|
-
success: "border-gryt-success
|
|
1351
|
-
warning: "border-gryt-warning
|
|
1352
|
-
error: "border-gryt-danger
|
|
1349
|
+
info: "border-gryt-secondary-6 bg-gryt-secondary-3 text-gryt-secondary-11",
|
|
1350
|
+
success: "border-gryt-success-6 bg-gryt-success-3 text-gryt-success-11",
|
|
1351
|
+
warning: "border-gryt-warning-6 bg-gryt-warning-3 text-gryt-warning-11",
|
|
1352
|
+
error: "border-gryt-danger-6 bg-gryt-danger-3 text-gryt-danger-11"
|
|
1353
1353
|
}, Pn = c(function({ className: e, severity: r = "info", ...t }, a) {
|
|
1354
1354
|
return /* @__PURE__ */ n(
|
|
1355
1355
|
"div",
|
|
@@ -1389,7 +1389,7 @@ function Tn({
|
|
|
1389
1389
|
size: e,
|
|
1390
1390
|
weight: "bold",
|
|
1391
1391
|
className: s(
|
|
1392
|
-
"gryt-spinner text-gryt-accent motion-safe:animate-spin",
|
|
1392
|
+
"gryt-spinner text-gryt-accent-11 motion-safe:animate-spin",
|
|
1393
1393
|
o
|
|
1394
1394
|
)
|
|
1395
1395
|
}
|
|
@@ -1996,10 +1996,10 @@ const Sn = {
|
|
|
1996
1996
|
Arrow: S.Arrow
|
|
1997
1997
|
}, wr = {
|
|
1998
1998
|
neutral: "border-white/8 bg-gryt-surface",
|
|
1999
|
-
info: "border-gryt-secondary
|
|
2000
|
-
success: "border-gryt-success
|
|
2001
|
-
warning: "border-gryt-warning
|
|
2002
|
-
danger: "border-gryt-danger
|
|
1999
|
+
info: "border-gryt-secondary-6 bg-gryt-secondary-2",
|
|
2000
|
+
success: "border-gryt-success-6 bg-gryt-success-2",
|
|
2001
|
+
warning: "border-gryt-warning-6 bg-gryt-warning-2",
|
|
2002
|
+
danger: "border-gryt-danger-6 bg-gryt-danger-2"
|
|
2003
2003
|
}, vr = c(
|
|
2004
2004
|
function({ className: e, ...r }, t) {
|
|
2005
2005
|
return /* @__PURE__ */ n(
|
|
@@ -2338,7 +2338,7 @@ const Ar = c(
|
|
|
2338
2338
|
// Base UI drives keyboard and pointer highlight through one attribute, so
|
|
2339
2339
|
// arrow keys and the mouse land on identical styling.
|
|
2340
2340
|
"data-highlighted:bg-gryt-surface-raised",
|
|
2341
|
-
"data-selected:text-gryt-accent",
|
|
2341
|
+
"data-selected:text-gryt-accent-11",
|
|
2342
2342
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50"
|
|
2343
2343
|
].join(" "), Vt = [
|
|
2344
2344
|
Et,
|