@lessly/ui 0.4.0 → 0.4.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/index.d.ts +8 -1
- package/dist/index.js +4 -3
- package/dist/styles.css +4 -0
- package/dist/tailwind-preset.d.ts +1 -0
- package/dist/tailwind-preset.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -864,7 +864,7 @@ declare const SegmentChip: React$1.ForwardRefExoticComponent<SegmentChipProps &
|
|
|
864
864
|
type ConnectionScope = 'org' | 'org/product' | 'product';
|
|
865
865
|
type ConnectionAuth = 'app' | 'oauth' | 'token';
|
|
866
866
|
type ConnectionStatus = 'connected' | 'error' | 'disconnected';
|
|
867
|
-
interface ConnectionCardProps extends
|
|
867
|
+
interface ConnectionCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
868
868
|
/** Display name, e.g. "GitHub — apliteni". */
|
|
869
869
|
name: string;
|
|
870
870
|
scope: ConnectionScope;
|
|
@@ -885,6 +885,13 @@ interface ConnectionCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement
|
|
|
885
885
|
* a warning notice is shown, e.g. "Full org access — all repositories."
|
|
886
886
|
*/
|
|
887
887
|
access?: React$1.ReactNode;
|
|
888
|
+
/**
|
|
889
|
+
* Drawer content rendered below the card body — the org surface's accordion
|
|
890
|
+
* drawer in the integration prototype (the per-product grants roster, inline
|
|
891
|
+
* requests, "+ Grant to a product"). The caller owns expand/collapse: pass
|
|
892
|
+
* children only while open. Omitted = the flat card, unchanged.
|
|
893
|
+
*/
|
|
894
|
+
children?: React$1.ReactNode;
|
|
888
895
|
}
|
|
889
896
|
declare const ConnectionCard: React$1.ForwardRefExoticComponent<ConnectionCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
890
897
|
|
package/dist/index.js
CHANGED
|
@@ -3079,7 +3079,7 @@ var segmentChipVariants = cva9(
|
|
|
3079
3079
|
{
|
|
3080
3080
|
variants: {
|
|
3081
3081
|
kind: {
|
|
3082
|
-
granted: "border-dashed border-teal
|
|
3082
|
+
granted: "border-dashed border-text-teal/40 bg-bg-teal-subtle text-text-teal",
|
|
3083
3083
|
own: "border-border-warning bg-bg-warning-subtle text-text-warning",
|
|
3084
3084
|
pending: "border-dashed border-border-default bg-bg-secondary text-text-tertiary",
|
|
3085
3085
|
available: "border-border-subtle bg-transparent text-text-secondary"
|
|
@@ -3119,7 +3119,7 @@ function monogram(name) {
|
|
|
3119
3119
|
return name.replace(/[^a-zA-Z0-9 ]/g, " ").split(/\s+/).filter(Boolean).slice(0, 2).map((w) => w[0].toUpperCase()).join("");
|
|
3120
3120
|
}
|
|
3121
3121
|
var ConnectionCard = React52.forwardRef(
|
|
3122
|
-
({ name, scope, auth, status, glyph, statusLabel, grantedCount, action, access, className, ...props }, ref) => {
|
|
3122
|
+
({ name, scope, auth, status, glyph, statusLabel, grantedCount, action, access, children, className, ...props }, ref) => {
|
|
3123
3123
|
const meta = statusMeta[status];
|
|
3124
3124
|
const connected = status !== "disconnected";
|
|
3125
3125
|
return /* @__PURE__ */ jsxs32(Card, { ref, className: cn(status === "disconnected" && "border-dashed border-border-default", className), ...props, children: [
|
|
@@ -3163,7 +3163,8 @@ var ConnectionCard = React52.forwardRef(
|
|
|
3163
3163
|
grantedCount === 1 ? "product" : "products"
|
|
3164
3164
|
] }) : /* @__PURE__ */ jsx62("span", { className: "text-text-tertiary", children: "Not granted to any product yet" }) }),
|
|
3165
3165
|
connected && action
|
|
3166
|
-
] })
|
|
3166
|
+
] }),
|
|
3167
|
+
children && /* @__PURE__ */ jsx62("div", { "data-slot": "drawer", className: "border-t border-border-subtle", children })
|
|
3167
3168
|
] });
|
|
3168
3169
|
}
|
|
3169
3170
|
);
|
package/dist/styles.css
CHANGED
|
@@ -77,6 +77,9 @@
|
|
|
77
77
|
--color-bg-teal-subtle: #091918;
|
|
78
78
|
--color-bg-violet-subtle: #12091a;
|
|
79
79
|
--color-bg-rose-subtle: #1a090b;
|
|
80
|
+
/* Vendored from design-system semantic `text.teal` (teal.300 dark / teal.600 light) —
|
|
81
|
+
the themed counterpart of the raw teal-* scale; used by SegmentChip `granted`. */
|
|
82
|
+
--color-text-teal: #70eada;
|
|
80
83
|
--color-text-primary: #eeeff0;
|
|
81
84
|
--color-text-secondary: #a5a9b5;
|
|
82
85
|
--color-text-tertiary: #8a93a8;
|
|
@@ -136,6 +139,7 @@
|
|
|
136
139
|
--color-bg-teal-subtle: #ebf3f2;
|
|
137
140
|
--color-bg-violet-subtle: #efebf3;
|
|
138
141
|
--color-bg-rose-subtle: #f4ebed;
|
|
142
|
+
--color-text-teal: #107469;
|
|
139
143
|
--color-text-primary: #0e1015;
|
|
140
144
|
--color-text-secondary: #393d4b;
|
|
141
145
|
--color-text-tertiary: #535a6e;
|
package/dist/tailwind-preset.js
CHANGED
|
@@ -372,6 +372,7 @@ var lesslyPreset = {
|
|
|
372
372
|
"bg-danger": "var(--color-bg-danger)",
|
|
373
373
|
"bg-danger-subtle": "var(--color-bg-danger-subtle)",
|
|
374
374
|
"bg-teal-subtle": "var(--color-bg-teal-subtle)",
|
|
375
|
+
"text-teal": "var(--color-text-teal)",
|
|
375
376
|
"bg-violet-subtle": "var(--color-bg-violet-subtle)",
|
|
376
377
|
"bg-rose-subtle": "var(--color-bg-rose-subtle)",
|
|
377
378
|
"text-primary": "var(--color-text-primary)",
|