@fileverse/ui 5.0.1-sepia-4 → 5.0.1-sepia-6

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.css CHANGED
@@ -713,6 +713,75 @@ video {
713
713
  /* Utility */
714
714
  --color-utility-overlay: 0, 0%, 0%, 0.72; /* Black 72% */
715
715
  }
716
+
717
+ .theme-pink {
718
+ /* Button */
719
+ --color-button-default: 349, 25%, 13%, 1; /* #2A191C */
720
+ --color-button-default-hover: 349, 25%, 22%, 1; /* #462A2F */
721
+ --color-button-secondary: 346, 100%, 95%, 1; /* #FFE6EC */
722
+ --color-button-secondary-hover: 24, 16%, 21%, 0.06; /* #3E352D 6% */
723
+ --color-button-disabled: 24, 16%, 21%, 0.04; /* #3E352D 4% */
724
+ --color-button-danger: 2, 79%, 56%, 1; /* #E73D36 */
725
+ --color-button-danger-hover: 2, 79%, 48%, 1; /* #DB221A */
726
+ --color-button-floating: 346, 100%, 95%, 1; /* #FFE6EC */
727
+ --color-button-floating-hover: 24, 16%, 21%, 0.06; /* #3E352D 6% */
728
+
729
+ /* Text */
730
+ --color-text-default: 3, 88%, 26%, 1; /* #7C0E08 */
731
+ --color-text-secondary: 3, 39%, 59%, 1; /* #C0736F */
732
+ --color-text-disabled: 3, 43%, 76%, 1; /* #DCABA8 */
733
+ --color-text-danger: 2, 79%, 56%, 1; /* #E73D36 */
734
+ --color-text-success: 139, 35%, 42%, 1; /* #46905E */
735
+ --color-text-inverse: 346, 100%, 95%, 1; /* #FFE6EC */
736
+ --color-text-link: 209, 89%, 39%, 1; /* #0B67BD */
737
+ --color-text-on-brand: 3, 88%, 26%, 1; /* #7C0E08 */
738
+
739
+ /* Background */
740
+ --color-bg-default: 346, 100%, 95%, 1; /* #FFE6EC */
741
+ --color-bg-default-hover: 3, 88%, 26%, 0.08; /* #7C0E08 8% */
742
+ --color-bg-default-active: 45, 100%, 65%, 1; /* #FFD24D */
743
+ --color-bg-default-selected: 3, 88%, 26%, 0.06; /* #7C0E08 6% */
744
+ --color-bg-secondary: 345, 100%, 92%, 1; /* #FFD6E0 */
745
+ --color-bg-secondary-hover: 3, 88%, 26%, 0.12; /* #7C0E08 12% */
746
+ --color-bg-disabled: 24, 16%, 21%, 0.04; /* #3E352D 4% */
747
+ --color-bg-brand: 45, 100%, 65%, 1; /* #FFD24D */
748
+ --color-bg-brand-hover: 45, 100%, 56%, 1; /* #FFC61F */
749
+ --color-bg-brand-light: 45, 100%, 90%, 1; /* #FFF2CC */
750
+ --color-bg-danger: 2, 79%, 56%, 1; /* #E73D36 */
751
+ --color-bg-danger-light: 2, 79%, 56%, 0.14; /* #E73D36 14% */
752
+ --color-bg-default-inverse: 28, 16%, 21%, 1; /* #3E352D */
753
+ --color-bg-tertiary: 3, 88%, 26%, 0.12; /* #7C0E08 12% */
754
+ --color-bg-success: 139, 35%, 42%, 1; /* #46905E */
755
+ --color-bg-success-light: 140, 34%, 88%, 1; /* #D6EBDD */
756
+
757
+ /* Border */
758
+ --color-border-default: 346, 100%, 90%, 1; /* #FFCCD8 */
759
+ --color-border-hover: 346, 100%, 86%, 1; /* #FFB8C9 */
760
+ --color-border-light: 348, 100%, 96%, 1; /* #FFEBEF */
761
+ --color-border-active: 3, 88%, 26%, 1; /* #7C0E08 */
762
+ --color-border-focused: 209, 89%, 39%, 1; /* #0B67BD */
763
+ --color-border-danger: 2, 79%, 56%, 1; /* #E73D36 */
764
+ --color-border-warning: 19, 83%, 53%, 1; /* #EB6424 */
765
+ --color-border-success: 139, 35%, 42%, 1; /* #46905E */
766
+ --color-border-info: 209, 89%, 39%, 1; /* #0B67BD */
767
+ --color-border-disabled: 3, 43%, 76%, 1; /* #DCABA8 */
768
+
769
+ /* Icon */
770
+ --color-icon-default: 3, 88%, 26%, 1; /* #7C0E08 */
771
+ --color-icon-default-hover: 3, 88%, 32%, 1; /* #99110A */
772
+ --color-icon-brand: 45, 100%, 65%, 1; /* #FFD24D */
773
+ --color-icon-secondary: 3, 39%, 59%, 1; /* #C0736F */
774
+ --color-icon-disabled: 3, 43%, 76%, 1; /* #DCABA8 */
775
+ --color-icon-inverse: 346, 100%, 95%, 1; /* #FFE6EC */
776
+ --color-icon-danger: 2, 79%, 56%, 1; /* #E73D36 */
777
+ --color-icon-warning: 19, 83%, 53%, 1; /* #EB6424 */
778
+ --color-icon-info: 209, 89%, 39%, 1; /* #0B67BD */
779
+ --color-icon-success: 140, 35%, 45%, 1; /* #4B9B65 */
780
+ --color-icon-on-brand: 3, 88%, 26%, 1; /* #7C0E08 */
781
+
782
+ /* Utility */
783
+ --color-utility-overlay: 0, 0%, 0%, 0.72; /* Black 72% */
784
+ }
716
785
  * {
717
786
  border-color: hsl(var(--color-border-default));
718
787
  -webkit-font-smoothing: antialiased;
@@ -1245,9 +1314,6 @@ video {
1245
1314
  .left-1 {
1246
1315
  left: 0.25rem;
1247
1316
  }
1248
- .left-1\.5 {
1249
- left: 0.375rem;
1250
- }
1251
1317
  .left-1\/2 {
1252
1318
  left: 50%;
1253
1319
  }
@@ -1284,9 +1350,6 @@ video {
1284
1350
  .top-0 {
1285
1351
  top: 0px;
1286
1352
  }
1287
- .top-1\.5 {
1288
- top: 0.375rem;
1289
- }
1290
1353
  .top-1\/2 {
1291
1354
  top: 50%;
1292
1355
  }
@@ -1459,9 +1522,6 @@ video {
1459
1522
  .h-12 {
1460
1523
  height: 3rem;
1461
1524
  }
1462
- .h-16 {
1463
- height: 4rem;
1464
- }
1465
1525
  .h-3 {
1466
1526
  height: 0.75rem;
1467
1527
  }
@@ -2070,9 +2130,6 @@ video {
2070
2130
  .gap-1 {
2071
2131
  gap: 0.25rem;
2072
2132
  }
2073
- .gap-1\.5 {
2074
- gap: 0.375rem;
2075
- }
2076
2133
  .gap-10 {
2077
2134
  gap: 2.5rem;
2078
2135
  }
@@ -2494,6 +2551,9 @@ video {
2494
2551
  .pb-2 {
2495
2552
  padding-bottom: 0.5rem;
2496
2553
  }
2554
+ .pb-3 {
2555
+ padding-bottom: 0.75rem;
2556
+ }
2497
2557
  .pb-4 {
2498
2558
  padding-bottom: 1rem;
2499
2559
  }
@@ -2652,9 +2712,6 @@ video {
2652
2712
  .opacity-50 {
2653
2713
  opacity: 0.5;
2654
2714
  }
2655
- .opacity-60 {
2656
- opacity: 0.6;
2657
- }
2658
2715
  .opacity-90 {
2659
2716
  opacity: 0.9;
2660
2717
  }
@@ -3267,9 +3324,6 @@ textarea:is(:-webkit-autofill, :autofill) {
3267
3324
  .hover\:bg-transparent:hover {
3268
3325
  background-color: transparent;
3269
3326
  }
3270
- .hover\:opacity-80:hover {
3271
- opacity: 0.8;
3272
- }
3273
3327
  .hover\:opacity-90:hover {
3274
3328
  opacity: 0.9;
3275
3329
  }
@@ -907,7 +907,7 @@ export declare interface TextFieldProps extends React_2.InputHTMLAttributes<HTML
907
907
  icon?: LucideIconProps["name"];
908
908
  }
909
909
 
910
- declare type Theme = "light" | "dark" | "theme-sepia";
910
+ declare type Theme = "light" | "dark" | "theme-sepia" | "theme-pink";
911
911
 
912
912
  export declare const ThemeProvider: ({ children, defaultTheme, }: ThemeProviderProps) => JSX_2.Element;
913
913
 
package/dist/index.es.js CHANGED
@@ -66226,7 +66226,7 @@ const wNe = ({
66226
66226
  const [n, a] = ce(() => localStorage.getItem("theme") || t);
66227
66227
  Le(() => {
66228
66228
  const s = window.document.documentElement;
66229
- s.classList.remove("light", "dark", "theme-sepia"), s.classList.add(n), localStorage.setItem("theme", n);
66229
+ s.classList.remove("light", "dark", "theme-sepia", "theme-pink"), s.classList.add(n), localStorage.setItem("theme", n);
66230
66230
  }, [n]);
66231
66231
  const o = Ve(() => {
66232
66232
  a((s) => s === "light" ? "dark" : s === "dark" ? "theme-sepia" : "light");
@@ -66243,13 +66243,7 @@ const wNe = ({
66243
66243
  { value: "light", label: "Light", color: "#FFFFFF" },
66244
66244
  { value: "dark", label: "Dark", color: "#2E2E2E" },
66245
66245
  { value: "theme-sepia", label: "Sepia", color: "#EFDFBD" },
66246
- {
66247
- value: "pink",
66248
- label: "Pink",
66249
- color: "#F9D7EF",
66250
- disabled: !0,
66251
- comingSoon: !0
66252
- }
66246
+ { value: "theme-pink", label: "Pink", color: "#FFE6EC" }
66253
66247
  ], CNe = () => {
66254
66248
  const { theme: e, setTheme: t } = ECe(), [n, a] = ce(!1);
66255
66249
  return /* @__PURE__ */ f.jsxs("div", { className: "h-9 px-[3px] rounded outline outline-1 outline-offset-[-1px] outline-[hsl(var(--color-border-default))] inline-flex justify-start items-center", children: [
@@ -66308,27 +66302,24 @@ const wNe = ({
66308
66302
  align: "end",
66309
66303
  sideOffset: 8,
66310
66304
  children: [
66311
- /* @__PURE__ */ f.jsxs("div", { className: "flex items-center justify-between mb-3", children: [
66305
+ /* @__PURE__ */ f.jsxs("div", { className: "flex items-center justify-between pb-3 mb-3 border-b color-border-default", children: [
66312
66306
  /* @__PURE__ */ f.jsx("span", { className: "text-heading-xsm color-text-default", children: "Themes" }),
66313
66307
  /* @__PURE__ */ f.jsx(Tke, { asChild: !0, children: /* @__PURE__ */ f.jsx("button", { className: "p-1 rounded hover:color-bg-default-hover transition-colors", children: /* @__PURE__ */ f.jsx(pe, { name: "X", size: "sm" }) }) })
66314
66308
  ] }),
66315
- /* @__PURE__ */ f.jsx("div", { className: "grid grid-cols-2 gap-3", children: HCe.map((o) => {
66309
+ /* @__PURE__ */ f.jsx("div", { className: "grid grid-cols-2 gap-2", children: HCe.map((o) => {
66316
66310
  const r = e === o.value;
66317
66311
  return /* @__PURE__ */ f.jsxs(
66318
66312
  "button",
66319
66313
  {
66320
- disabled: o.disabled,
66321
- onClick: () => {
66322
- !o.disabled && o.value !== "pink" && (t(o.value), a(!1));
66323
- },
66324
- className: `flex flex-col items-center gap-1.5 cursor-pointer transition-all ${o.disabled ? "opacity-60 cursor-not-allowed" : "hover:opacity-80"}`,
66314
+ onClick: () => t(o.value),
66315
+ className: "flex flex-col items-center gap-1 p-1.5 rounded-lg cursor-pointer transition-all hover:color-bg-default-hover",
66325
66316
  children: [
66326
66317
  /* @__PURE__ */ f.jsx(
66327
66318
  "div",
66328
66319
  {
66329
- className: `w-full h-16 rounded-lg border-2 relative transition-all ${r ? "color-border-active" : "color-border-default"}`,
66320
+ className: "w-full h-10 rounded-xl transition-all flex items-center justify-center border color-border-default",
66330
66321
  style: { backgroundColor: o.color },
66331
- children: r && /* @__PURE__ */ f.jsx("div", { className: "absolute top-1.5 left-1.5 w-5 h-5 rounded-full color-bg-default-inverse flex items-center justify-center", children: /* @__PURE__ */ f.jsx(
66322
+ children: r && /* @__PURE__ */ f.jsx("div", { className: "w-5 h-5 rounded-full color-bg-default-inverse flex items-center justify-center", children: /* @__PURE__ */ f.jsx(
66332
66323
  pe,
66333
66324
  {
66334
66325
  name: "Check",
@@ -66338,13 +66329,7 @@ const wNe = ({
66338
66329
  ) })
66339
66330
  }
66340
66331
  ),
66341
- /* @__PURE__ */ f.jsxs("span", { className: "text-helper-text-sm color-text-default", children: [
66342
- o.label,
66343
- o.comingSoon && /* @__PURE__ */ f.jsxs("span", { className: "color-text-secondary", children: [
66344
- " ",
66345
- "(Coming soon)"
66346
- ] })
66347
- ] })
66332
+ /* @__PURE__ */ f.jsx("span", { className: "text-helper-text-sm color-text-default whitespace-nowrap", children: o.label })
66348
66333
  ]
66349
66334
  },
66350
66335
  o.value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse/ui",
3
- "version": "5.0.1-sepia-4",
3
+ "version": "5.0.1-sepia-6",
4
4
  "files": [
5
5
  "/dist"
6
6
  ],