organify-ui 0.1.0 → 0.2.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/dist/index.js CHANGED
@@ -175,14 +175,14 @@ function OrgLoaderInline({ className, ...props }) {
175
175
  );
176
176
  }
177
177
  var buttonVariants = cva(
178
- "inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium tracking-wide uppercase transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-light/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
178
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium tracking-wide uppercase transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-light disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
179
179
  {
180
180
  variants: {
181
181
  variant: {
182
182
  default: "bg-primary text-white hover:bg-primary-light shadow-glow-primary clip-geo",
183
183
  secondary: "bg-transparent border border-white/20 text-white hover:text-white hover:border-primary-light hover:bg-white/5 clip-geo-inv",
184
184
  ghost: "bg-transparent text-white/70 hover:bg-white/5 hover:text-white",
185
- destructive: "bg-semantic-error text-white hover:bg-semantic-error/90 shadow-glow-error clip-geo",
185
+ destructive: "bg-error text-white hover:bg-error/90 shadow-glow-error clip-geo",
186
186
  outline: "bg-transparent border border-white/20 text-white hover:bg-white/5 hover:border-white/40",
187
187
  link: "text-primary-light underline-offset-4 hover:underline",
188
188
  // ─── Cream Light theme buttons ─────────────
@@ -228,10 +228,10 @@ var inputVariants = cva(
228
228
  {
229
229
  variants: {
230
230
  variant: {
231
- default: "clip-geo-br focus:ring-1 focus:ring-primary-light/50 focus:border-primary-light/50",
232
- flat: "rounded-none focus:ring-1 focus:ring-primary-light/50 focus:border-primary-light/50",
233
- rounded: "rounded-lg focus:ring-1 focus:ring-primary-light/50 focus:border-primary-light/50",
234
- error: "border-semantic-error/30 bg-semantic-error/5 text-red-100 placeholder:text-red-500/30 focus:border-semantic-error focus:ring-1 focus:ring-semantic-error/20 clip-geo-br",
231
+ default: "clip-geo-br focus:ring-1 focus:ring-primary-light focus:border-primary-light/50",
232
+ flat: "rounded-none focus:ring-1 focus:ring-primary-light focus:border-primary-light/50",
233
+ rounded: "rounded-lg focus:ring-1 focus:ring-primary-light focus:border-primary-light/50",
234
+ error: "border-error/30 bg-error/5 text-red-100 placeholder:text-red-500/30 focus:border-error focus:ring-1 focus:ring-error/20 clip-geo-br",
235
235
  // ─── Cream Light theme ─────────────────────
236
236
  cream: "bg-white/40 border-black/5 text-neutral-900 placeholder:text-neutral-400 rounded-lg focus:border-primary focus:bg-white/80 focus:shadow-[0_0_0_1px_rgba(36,25,121,0.05)] backdrop-blur-sm"
237
237
  }
@@ -252,9 +252,9 @@ var Input = React3.forwardRef(
252
252
  htmlFor: id,
253
253
  className: cn(
254
254
  "absolute -top-3 z-10 px-2 text-label uppercase tracking-widest",
255
- effectiveVariant === "cream" ? "bg-cream-base" : "bg-card-surface",
255
+ effectiveVariant === "cream" ? "bg-cream-base" : "bg-surface",
256
256
  labelPosition === "left" ? "left-0 ml-2" : "right-0 mr-2",
257
- error ? "text-semantic-error" : "text-primary-light"
257
+ error ? "text-error" : "text-primary-light"
258
258
  ),
259
259
  children: label
260
260
  }
@@ -272,7 +272,7 @@ var Input = React3.forwardRef(
272
272
  }
273
273
  ),
274
274
  effectiveVariant !== "cream" && /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute bottom-0 right-0 h-4 w-4 border-b border-r border-white/20" }),
275
- error && /* @__PURE__ */ jsx("div", { id: `${id}-error`, className: "mt-2 flex items-center justify-end gap-2", children: /* @__PURE__ */ jsx("span", { className: "text-mono-xs text-semantic-error", children: error }) })
275
+ error && /* @__PURE__ */ jsx("div", { id: `${id}-error`, className: "mt-2 flex items-center justify-end gap-2", children: /* @__PURE__ */ jsx("span", { className: "text-mono-xs text-error", children: error }) })
276
276
  ] });
277
277
  }
278
278
  );
@@ -401,7 +401,7 @@ var Toggle = React3.forwardRef(({ className, label, description, ...props }, ref
401
401
  {
402
402
  id,
403
403
  ref,
404
- className: "peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-none border border-white/10 bg-black/40 transition-colors data-[state=checked]:border-primary-light data-[state=checked]:bg-primary/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-light/50",
404
+ className: "peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-none border border-white/10 bg-black/40 transition-colors data-[state=checked]:border-primary-light data-[state=checked]:bg-primary/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-light",
405
405
  ...props,
406
406
  children: /* @__PURE__ */ jsx(SwitchPrimitive.Thumb, { className: "pointer-events-none block h-4 w-4 border border-white/10 bg-white/20 transition-transform data-[state=checked]:translate-x-5 data-[state=checked]:border-white data-[state=checked]:bg-white data-[state=unchecked]:translate-x-0" })
407
407
  }
@@ -415,7 +415,7 @@ var Toggle = React3.forwardRef(({ className, label, description, ...props }, ref
415
415
  {
416
416
  ref,
417
417
  className: cn(
418
- "peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-none border border-white/10 bg-black/40 transition-colors data-[state=checked]:border-primary-light data-[state=checked]:bg-primary/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-light/50",
418
+ "peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-none border border-white/10 bg-black/40 transition-colors data-[state=checked]:border-primary-light data-[state=checked]:bg-primary/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-light",
419
419
  className
420
420
  ),
421
421
  ...props,
@@ -431,10 +431,10 @@ var badgeVariants = cva(
431
431
  variant: {
432
432
  default: "rounded-md border border-white/10 bg-white/5 px-3 py-1.5 text-white/80",
433
433
  primary: "rounded-md border border-primary-light/30 bg-primary/20 px-3 py-1.5 text-primary-light",
434
- success: "rounded-md border border-semantic-success/30 bg-semantic-success/10 px-3 py-1.5 text-emerald-200",
435
- warning: "rounded-md border border-semantic-warning/30 bg-semantic-warning/10 px-3 py-1.5 text-amber-200",
436
- error: "rounded-md border border-semantic-error/30 bg-semantic-error/10 px-3 py-1.5 text-rose-200",
437
- info: "rounded-md border border-semantic-info/30 bg-semantic-info/10 px-3 py-1.5 text-blue-200",
434
+ success: "rounded-md border border-success/30 bg-success/10 px-3 py-1.5 text-success-light",
435
+ warning: "rounded-md border border-warning/30 bg-warning/10 px-3 py-1.5 text-warning-light",
436
+ error: "rounded-md border border-error/30 bg-error/10 px-3 py-1.5 text-error-light",
437
+ info: "rounded-md border border-info/30 bg-info/10 px-3 py-1.5 text-info-light",
438
438
  // ─── Flow status (from Brand Assets HTML) ──
439
439
  "in-flow": "rounded-md border border-indigo-500/30 bg-indigo-500/20 px-3 py-1.5 text-indigo-200 shadow-[0_0_15px_rgba(99,102,241,0.15)]",
440
440
  "deep-work": "rounded-md border border-fuchsia-500/20 bg-fuchsia-500/10 px-3 py-1.5 text-fuchsia-200",
@@ -506,7 +506,7 @@ var Avatar = React3.forwardRef(({ className, shape, size, status, statusColor, g
506
506
  "span",
507
507
  {
508
508
  className: cn(
509
- "absolute -bottom-0.5 -right-0.5 rounded-full border-2 border-card-surface",
509
+ "absolute -bottom-0.5 -right-0.5 rounded-full border-2 border-surface",
510
510
  size === "sm" && "h-2.5 w-2.5",
511
511
  size === "default" && "h-3 w-3",
512
512
  (size === "lg" || size === "xl") && "h-3.5 w-3.5",
@@ -624,7 +624,7 @@ var Progress = React3.forwardRef(({ className, value, showLabel, label, variant
624
624
  ] }));
625
625
  Progress.displayName = "Progress";
626
626
  var alertVariants = cva(
627
- "group relative overflow-visible rounded-r-2xl rounded-l-md border-l-4 border-y border-r border-white/10 bg-card-surface/80 py-5 pl-12 pr-6 shadow-lg backdrop-blur-xl",
627
+ "group relative overflow-visible rounded-r-2xl rounded-l-md border-l-4 border-y border-r border-white/10 bg-surface/80 py-5 pl-12 pr-6 shadow-lg backdrop-blur-xl",
628
628
  {
629
629
  variants: {
630
630
  variant: {
@@ -724,7 +724,7 @@ function Toast({
724
724
  )
725
725
  }
726
726
  ),
727
- /* @__PURE__ */ jsxs("div", { className: "relative z-10 flex min-w-[320px] items-center gap-4 rounded-2xl border border-white/10 bg-card-surface px-5 py-4 shadow-2xl backdrop-blur-2xl", children: [
727
+ /* @__PURE__ */ jsxs("div", { className: "relative z-10 flex min-w-[320px] items-center gap-4 rounded-2xl border border-white/10 bg-surface px-5 py-4 shadow-2xl backdrop-blur-2xl", children: [
728
728
  children,
729
729
  onClose && /* @__PURE__ */ jsx(
730
730
  "button",
@@ -779,7 +779,7 @@ function EmptyState({
779
779
  /* @__PURE__ */ jsx("div", { className: "absolute inset-0 animate-[spin_10s_linear_infinite] rounded-full border border-white/5" }),
780
780
  /* @__PURE__ */ jsx("div", { className: "absolute inset-4 rounded-full bg-gradient-to-tr from-primary/30 to-purple-500/10 blur-xl transition-all duration-700 group-hover:blur-2xl" }),
781
781
  /* @__PURE__ */ jsxs("div", { className: "relative flex h-full w-full items-center justify-center", children: [
782
- /* @__PURE__ */ jsx("div", { className: "z-10 flex h-20 w-20 items-center justify-center rounded-full border border-white/10 bg-card-surface shadow-2xl", children: icon || /* @__PURE__ */ jsx("span", { className: "text-4xl text-slate-200", children: "\u{1F9D8}" }) }),
782
+ /* @__PURE__ */ jsx("div", { className: "z-10 flex h-20 w-20 items-center justify-center rounded-full border border-white/10 bg-surface shadow-2xl", children: icon || /* @__PURE__ */ jsx("span", { className: "text-4xl text-slate-200", children: "\u{1F9D8}" }) }),
783
783
  /* @__PURE__ */ jsx("div", { className: "absolute right-4 top-0 h-3 w-3 rounded-full bg-emerald-400 blur-[1px]" }),
784
784
  /* @__PURE__ */ jsx("div", { className: "absolute bottom-2 left-6 h-2 w-2 rounded-full bg-purple-400 blur-[1px]" })
785
785
  ] })
@@ -809,7 +809,7 @@ var glassPanelVariants = cva("relative transition-all duration-300", {
809
809
  highlight: "glass-panel-highlight",
810
810
  alt: "glass-panel-alt",
811
811
  cream: "glass-panel-cream",
812
- flat: "rounded-2xl border border-white/10 bg-card-surface/80 shadow-glass-lg backdrop-blur-2xl"
812
+ flat: "rounded-2xl border border-white/10 bg-surface/80 shadow-glass-lg backdrop-blur-2xl"
813
813
  },
814
814
  corners: {
815
815
  none: "",
@@ -1069,7 +1069,7 @@ var metricCardVariants = cva(
1069
1069
  variants: {
1070
1070
  variant: {
1071
1071
  default: [
1072
- "border-white/10 bg-card-surface/80 backdrop-blur-2xl",
1072
+ "border-white/10 bg-surface/80 backdrop-blur-2xl",
1073
1073
  "shadow-glass-lg hover:shadow-glass-xl"
1074
1074
  ],
1075
1075
  highlight: [
@@ -1129,7 +1129,7 @@ function MetricCard({
1129
1129
  {
1130
1130
  className: cn(
1131
1131
  "rounded-full px-2 py-0.5 text-xs font-semibold",
1132
- trend.positive ? "bg-success/15 text-success" : "bg-error/15 text-error"
1132
+ trend.positive ? "bg-success/15 text-success-light" : "bg-error/15 text-error-light"
1133
1133
  ),
1134
1134
  children: [
1135
1135
  trend.positive ? "\u2191" : "\u2193",
@@ -1318,7 +1318,7 @@ function StepCircle({
1318
1318
  variant !== "cream" && "shadow-[0_0_20px_rgba(79,57,246,0.4)]"
1319
1319
  ],
1320
1320
  status === "pending" && [
1321
- variant === "cream" ? "border-2 border-cream-border bg-cream-card text-cream-muted" : "border-2 border-white/10 bg-card-surface text-neutral-500"
1321
+ variant === "cream" ? "border-2 border-cream-border bg-cream-card text-cream-muted" : "border-2 border-white/10 bg-surface text-neutral-500"
1322
1322
  ]
1323
1323
  ),
1324
1324
  children: [