@photoroom/ui 0.1.602 → 0.1.604

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/index.mjs CHANGED
@@ -33839,14 +33839,15 @@ var vG = ({ text: e, imageUrl: t, className: n, ...r }) => /* @__PURE__ */ L("bu
33839
33839
  variants: {
33840
33840
  variant: {
33841
33841
  default: "",
33842
- accent: ""
33842
+ accent: "",
33843
+ "on-dark": ""
33843
33844
  },
33844
33845
  framed: {
33845
33846
  true: "rounded-full",
33846
33847
  false: "pt-px"
33847
33848
  },
33848
33849
  disabled: {
33849
- true: "text-content-secondary",
33850
+ true: "",
33850
33851
  false: ""
33851
33852
  },
33852
33853
  size: {
@@ -33865,6 +33866,21 @@ var vG = ({ text: e, imageUrl: t, className: n, ...r }) => /* @__PURE__ */ L("bu
33865
33866
  disabled: !1,
33866
33867
  class: "text-content-accent"
33867
33868
  },
33869
+ {
33870
+ variant: ["default", "accent"],
33871
+ disabled: !0,
33872
+ class: "text-content-secondary"
33873
+ },
33874
+ {
33875
+ variant: "on-dark",
33876
+ disabled: !1,
33877
+ class: "text-content-white-primary"
33878
+ },
33879
+ {
33880
+ variant: "on-dark",
33881
+ disabled: !0,
33882
+ class: "text-content-white-secondary"
33883
+ },
33868
33884
  {
33869
33885
  framed: !0,
33870
33886
  variant: "accent",
@@ -33878,6 +33894,12 @@ var vG = ({ text: e, imageUrl: t, className: n, ...r }) => /* @__PURE__ */ L("bu
33878
33894
  },
33879
33895
  {
33880
33896
  framed: !0,
33897
+ variant: "on-dark",
33898
+ class: "bg-white-alpha-300"
33899
+ },
33900
+ {
33901
+ framed: !0,
33902
+ variant: ["default", "accent"],
33881
33903
  disabled: !0,
33882
33904
  class: "bg-background-subdued"
33883
33905
  },
@@ -33932,16 +33954,45 @@ var vG = ({ text: e, imageUrl: t, className: n, ...r }) => /* @__PURE__ */ L("bu
33932
33954
  class: "size-3"
33933
33955
  }
33934
33956
  ]
33935
- }), wG = W("[&_strong]:font-inherit text-pretty", { variants: {
33936
- size: {
33937
- large: "component-light-600",
33938
- small: "component-light-500"
33957
+ }), wG = W("[&_strong]:font-inherit text-pretty", {
33958
+ variants: {
33959
+ size: {
33960
+ large: "component-light-600",
33961
+ small: "component-light-500"
33962
+ },
33963
+ variant: {
33964
+ default: "",
33965
+ accent: "",
33966
+ "on-dark": ""
33967
+ },
33968
+ disabled: {
33969
+ true: "",
33970
+ false: ""
33971
+ }
33939
33972
  },
33940
- disabled: {
33941
- true: "text-content-secondary",
33942
- false: "text-content-primary"
33943
- }
33944
- } }), TG = ({ children: e, icon: t, size: n, variant: r = "default", framed: i = !1, disabled: a = !1, className: o, ...l }) => {
33973
+ compoundVariants: [
33974
+ {
33975
+ variant: ["default", "accent"],
33976
+ disabled: !1,
33977
+ class: "text-content-primary"
33978
+ },
33979
+ {
33980
+ variant: ["default", "accent"],
33981
+ disabled: !0,
33982
+ class: "text-content-secondary"
33983
+ },
33984
+ {
33985
+ variant: "on-dark",
33986
+ disabled: !1,
33987
+ class: "text-content-white-primary"
33988
+ },
33989
+ {
33990
+ variant: "on-dark",
33991
+ disabled: !0,
33992
+ class: "text-content-white-secondary"
33993
+ }
33994
+ ]
33995
+ }), TG = ({ children: e, icon: t, size: n, variant: r = "default", framed: i = !1, disabled: a = !1, className: o, ...l }) => {
33945
33996
  let u = bG(), d = n ?? u ?? "large", f = t === void 0 ? i ? c : s : t;
33946
33997
  return /* @__PURE__ */ L("div", {
33947
33998
  className: H(xG({ size: d }), o),
@@ -33963,6 +34014,7 @@ var vG = ({ text: e, imageUrl: t, className: n, ...r }) => /* @__PURE__ */ L("bu
33963
34014
  }), /* @__PURE__ */ I("span", {
33964
34015
  className: wG({
33965
34016
  size: d,
34017
+ variant: r,
33966
34018
  disabled: a
33967
34019
  }),
33968
34020
  children: e
@@ -58988,7 +59040,7 @@ var uwe = ({ lang: e, monthlyProcessedImages: t = 1e3, items: n, partnerCard: r,
58988
59040
  })
58989
59041
  ]
58990
59042
  }), /* @__PURE__ */ L("div", {
58991
- className: H("flex flex-1 flex-col justify-between gap-6", N && "[&_svg]:text-content-white-primary"),
59043
+ className: "flex flex-1 flex-col justify-between gap-6",
58992
59044
  children: [r && r.length > 0 && /* @__PURE__ */ L(ge, { children: [/* @__PURE__ */ I("div", { className: H("h-px w-full shrink-0", N ? "bg-white-alpha-300" : "bg-misc-divider") }), /* @__PURE__ */ I("div", {
58993
59045
  className: H("flex flex-1 flex-col justify-between gap-8", r.length > 1 && "[&>*:last-child]:justify-end"),
58994
59046
  children: r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.602",
3
+ "version": "0.1.604",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@img-comparison-slider/react": "8.0.2",
39
39
  "@lottiefiles/react-lottie-player": "3.6.0",
40
- "@photoroom/icons": "0.1.43",
40
+ "@photoroom/icons": "0.1.44",
41
41
  "@radix-ui/react-accordion": "1.2.20",
42
42
  "@radix-ui/react-avatar": "1.2.6",
43
43
  "@radix-ui/react-checkbox": "1.3.11",