@photoroom/ui 0.1.22 → 0.1.23

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.
Files changed (2) hide show
  1. package/index.mjs +70 -70
  2. package/package.json +35 -35
package/index.mjs CHANGED
@@ -9,13 +9,13 @@ import W, { forwardRef as te, isValidElement as Gn, Children as Qi, useLayoutEff
9
9
  import { ActivityIcon as tr, CrossIcon as mi, TeamIcon as vR, PersonIcon as gR, QuestionMarkIcon as bR, ArrowRightIcon as mo, InfoCircleIcon as is, SparklesIcon as ow, EmailIcon as yR, AppleIcon as xR, CheckSmallIcon as vi, ChevronDownShortIcon as gi, RefreshIcon as Bh, ChevronRightShortIcon as pu, AddIcon as vo, DoubleArrowHorizontalIcon as wR, CommentIcon as SR, PadlockIcon as CR, ChevronRightIcon as iw, PictureNoneIcon as NR, TextPromptIcon as ER, CheckIcon as go, DownloadIcon as kR, EllipsisHorizontalIcon as _R, SearchIcon as aw, ExclamationCircleIcon as sw, EyeIcon as TR, EyeNoneIcon as PR, DragIcon as RR, RotateLeftIcon as AR, RenameIcon as IR, PictureIcon as cw, ExclamationTriangleIcon as lw, DropIcon as DR, UploadIcon as Rf, FolderIcon as MR, PictureMultipleIcon as OR, DoubleChevronVerticalIcon as zR, ReactionAddIcon as LR, ClearMediumIcon as uw, DashMediumIcon as BR, DeleteIcon as VR, PictureAddIcon as FR, ArrowLeftIcon as hu, CheckCircleIcon as $R, RemoveIcon as jR, ChevronDownIcon as GR, StarFullIcon as WR } from "@photoroom/icons/monochromes";
10
10
  import * as mu from "react-dom";
11
11
  import Vh, { flushSync as UR } from "react-dom";
12
- import { GoogleColorIcon as HR, FacebookColorIcon as qR, PositionBottomColorIcon as ZR, PositionBottomActiveColorIcon as YR, PositionRightColorIcon as KR, PositionRightActiveColorIcon as XR, PositionLeftColorIcon as JR, PositionLeftActiveColorIcon as QR, PositionCustomColorIcon as eA, PositionCustomActiveColorIcon as tA, PositionTemplateColorIcon as rA, PositionTemplateActiveColorIcon as nA, PositionCenterColorIcon as oA, PositionCenterActiveColorIcon as iA, PositionNoneColorIcon as aA, PositionNoneActiveColorIcon as sA, AiShadowsFloatingColorIcon as cA, AiShadowsFloatingActiveColorIcon as lA, AiShadowsHardColorIcon as uA, AiShadowsHardActiveColorIcon as dA, AiShadowsSoftColorIcon as fA, AiShadowsSoftActiveColorIcon as pA, AiShadowsNoneColorIcon as hA, AiShadowsNoneActiveColorIcon as mA } from "@photoroom/icons/colors";
13
- import { PlayStoreVnIcon as vA, PlayStoreTrIcon as gA, PlayStoreThIcon as bA, PlayStoreRuIcon as yA, PlayStorePtPtIcon as xA, PlayStorePtBrIcon as wA, PlayStoreMyIcon as SA, PlayStoreKrIcon as CA, PlayStoreJpIcon as NA, PlayStoreItIcon as EA, PlayStoreIdIcon as kA, PlayStoreFrIcon as _A, PlayStoreEsIcon as TA, PlayStoreEnIcon as PA, PlayStoreDeIcon as RA, AppStoreVnIcon as AA, AppStoreTrIcon as IA, AppStoreThIcon as DA, AppStoreRuIcon as MA, AppStorePtPtIcon as OA, AppStorePtBrIcon as zA, AppStoreMyIcon as LA, AppStoreKrIcon as BA, AppStoreJpIcon as VA, AppStoreItIcon as FA, AppStoreIdIcon as $A, AppStoreFrIcon as jA, AppStoreEsIcon as GA, AppStoreEnIcon as WA, AppStoreDeIcon as UA, WebAppVnIcon as HA, WebAppTrIcon as qA, WebAppThIcon as ZA, WebAppRuIcon as YA, WebAppPtPtIcon as KA, WebAppPtBrIcon as XA, WebAppMyIcon as JA, WebAppKrIcon as QA, WebAppJpIcon as eI, WebAppItIcon as tI, WebAppIdIcon as rI, WebAppFrIcon as nI, WebAppEsIcon as oI, WebAppEnIcon as iI, WebAppDeIcon as aI } from "@photoroom/icons/store-buttons";
14
- import { useTranslation as sI } from "react-i18next";
15
- import { CrossIcon as cI } from "@photoroom/icons/monochromes/CrossIcon";
16
- import { DisclosureTriangleIcon as lI } from "@photoroom/icons/monochromes/DisclosureTriangleIcon";
17
- import uI from "next/link";
12
+ import HR from "next/link";
18
13
  import "date-fns";
14
+ import { useTranslation as qR } from "react-i18next";
15
+ import { GoogleColorIcon as ZR, FacebookColorIcon as YR, PositionBottomColorIcon as KR, PositionBottomActiveColorIcon as XR, PositionRightColorIcon as JR, PositionRightActiveColorIcon as QR, PositionLeftColorIcon as eA, PositionLeftActiveColorIcon as tA, PositionCustomColorIcon as rA, PositionCustomActiveColorIcon as nA, PositionTemplateColorIcon as oA, PositionTemplateActiveColorIcon as iA, PositionCenterColorIcon as aA, PositionCenterActiveColorIcon as sA, PositionNoneColorIcon as cA, PositionNoneActiveColorIcon as lA, AiShadowsFloatingColorIcon as uA, AiShadowsFloatingActiveColorIcon as dA, AiShadowsHardColorIcon as fA, AiShadowsHardActiveColorIcon as pA, AiShadowsSoftColorIcon as hA, AiShadowsSoftActiveColorIcon as mA, AiShadowsNoneColorIcon as vA, AiShadowsNoneActiveColorIcon as gA } from "@photoroom/icons/colors";
16
+ import { DisclosureTriangleIcon as bA } from "@photoroom/icons/monochromes/DisclosureTriangleIcon";
17
+ import { PlayStoreVnIcon as yA, PlayStoreTrIcon as xA, PlayStoreThIcon as wA, PlayStoreRuIcon as SA, PlayStorePtPtIcon as CA, PlayStorePtBrIcon as NA, PlayStoreMyIcon as EA, PlayStoreKrIcon as kA, PlayStoreJpIcon as _A, PlayStoreItIcon as TA, PlayStoreIdIcon as PA, PlayStoreFrIcon as RA, PlayStoreEsIcon as AA, PlayStoreEnIcon as IA, PlayStoreDeIcon as DA, AppStoreVnIcon as MA, AppStoreTrIcon as OA, AppStoreThIcon as zA, AppStoreRuIcon as LA, AppStorePtPtIcon as BA, AppStorePtBrIcon as VA, AppStoreMyIcon as FA, AppStoreKrIcon as $A, AppStoreJpIcon as jA, AppStoreItIcon as GA, AppStoreIdIcon as WA, AppStoreFrIcon as UA, AppStoreEsIcon as HA, AppStoreEnIcon as qA, AppStoreDeIcon as ZA, WebAppVnIcon as YA, WebAppTrIcon as KA, WebAppThIcon as XA, WebAppRuIcon as JA, WebAppPtPtIcon as QA, WebAppPtBrIcon as eI, WebAppMyIcon as tI, WebAppKrIcon as rI, WebAppJpIcon as nI, WebAppItIcon as oI, WebAppIdIcon as iI, WebAppFrIcon as aI, WebAppEsIcon as sI, WebAppEnIcon as cI, WebAppDeIcon as lI } from "@photoroom/icons/store-buttons";
18
+ import { CrossIcon as uI } from "@photoroom/icons/monochromes/CrossIcon";
19
19
  function dw(e) {
20
20
  var t, r, n = "";
21
21
  if (typeof e == "string" || typeof e == "number") n += e;
@@ -10424,9 +10424,9 @@ const _5 = se(
10424
10424
  case nn.Apple:
10425
10425
  return /* @__PURE__ */ p(xR, { className: t });
10426
10426
  case nn.Facebook:
10427
- return /* @__PURE__ */ p(qR, { className: t });
10427
+ return /* @__PURE__ */ p(YR, { className: t });
10428
10428
  case nn.Google:
10429
- return /* @__PURE__ */ p(HR, { className: t });
10429
+ return /* @__PURE__ */ p(ZR, { className: t });
10430
10430
  case nn.Email:
10431
10431
  return /* @__PURE__ */ p(yR, { className: I(t, "text-content-tertiary") });
10432
10432
  case void 0:
@@ -13533,55 +13533,55 @@ function p6(e, t, r) {
13533
13533
  }
13534
13534
  const N0 = "en", E0 = {
13535
13535
  web: {
13536
- de: aI,
13537
- en: iI,
13538
- es: oI,
13539
- fr: nI,
13540
- id: rI,
13541
- it: tI,
13542
- ja: eI,
13543
- ko: QA,
13544
- ms: JA,
13545
- "pt-br": XA,
13546
- "pt-pt": KA,
13547
- ru: YA,
13548
- th: ZA,
13549
- tr: qA,
13550
- vi: HA
13536
+ de: lI,
13537
+ en: cI,
13538
+ es: sI,
13539
+ fr: aI,
13540
+ id: iI,
13541
+ it: oI,
13542
+ ja: nI,
13543
+ ko: rI,
13544
+ ms: tI,
13545
+ "pt-br": eI,
13546
+ "pt-pt": QA,
13547
+ ru: JA,
13548
+ th: XA,
13549
+ tr: KA,
13550
+ vi: YA
13551
13551
  },
13552
13552
  ios: {
13553
- de: UA,
13554
- en: WA,
13555
- es: GA,
13556
- fr: jA,
13557
- id: $A,
13558
- it: FA,
13559
- ja: VA,
13560
- ko: BA,
13561
- ms: LA,
13562
- "pt-br": zA,
13563
- "pt-pt": OA,
13564
- ru: MA,
13565
- th: DA,
13566
- tr: IA,
13567
- vi: AA
13553
+ de: ZA,
13554
+ en: qA,
13555
+ es: HA,
13556
+ fr: UA,
13557
+ id: WA,
13558
+ it: GA,
13559
+ ja: jA,
13560
+ ko: $A,
13561
+ ms: FA,
13562
+ "pt-br": VA,
13563
+ "pt-pt": BA,
13564
+ ru: LA,
13565
+ th: zA,
13566
+ tr: OA,
13567
+ vi: MA
13568
13568
  },
13569
13569
  android: {
13570
- de: RA,
13571
- en: PA,
13572
- es: TA,
13573
- fr: _A,
13574
- id: kA,
13575
- it: EA,
13576
- ja: NA,
13577
- ko: CA,
13578
- ms: SA,
13579
- "pt-br": wA,
13580
- "pt-pt": xA,
13581
- ru: yA,
13582
- th: bA,
13583
- tr: gA,
13584
- vi: vA
13570
+ de: DA,
13571
+ en: IA,
13572
+ es: AA,
13573
+ fr: RA,
13574
+ id: PA,
13575
+ it: TA,
13576
+ ja: _A,
13577
+ ko: kA,
13578
+ ms: EA,
13579
+ "pt-br": NA,
13580
+ "pt-pt": CA,
13581
+ ru: SA,
13582
+ th: wA,
13583
+ tr: xA,
13584
+ vi: yA
13585
13585
  }
13586
13586
  }, k0 = {
13587
13587
  web: {
@@ -24646,7 +24646,7 @@ const yH = ({
24646
24646
  onDismiss: a,
24647
24647
  ...s
24648
24648
  }) => {
24649
- const { t: c } = sI();
24649
+ const { t: c } = qR();
24650
24650
  return /* @__PURE__ */ E(
24651
24651
  "div",
24652
24652
  {
@@ -40302,48 +40302,48 @@ const yie = ({
40302
40302
  }
40303
40303
  ), yx = {
40304
40304
  none: {
40305
+ checked: gA,
40306
+ unchecked: vA
40307
+ },
40308
+ soft: {
40305
40309
  checked: mA,
40306
40310
  unchecked: hA
40307
40311
  },
40308
- soft: {
40312
+ hard: {
40309
40313
  checked: pA,
40310
40314
  unchecked: fA
40311
40315
  },
40312
- hard: {
40316
+ floating: {
40313
40317
  checked: dA,
40314
40318
  unchecked: uA
40315
40319
  },
40316
- floating: {
40320
+ original: {
40317
40321
  checked: lA,
40318
40322
  unchecked: cA
40319
40323
  },
40320
- original: {
40324
+ center: {
40321
40325
  checked: sA,
40322
40326
  unchecked: aA
40323
40327
  },
40324
- center: {
40328
+ template: {
40325
40329
  checked: iA,
40326
40330
  unchecked: oA
40327
40331
  },
40328
- template: {
40332
+ custom: {
40329
40333
  checked: nA,
40330
40334
  unchecked: rA
40331
40335
  },
40332
- custom: {
40336
+ left: {
40333
40337
  checked: tA,
40334
40338
  unchecked: eA
40335
40339
  },
40336
- left: {
40340
+ right: {
40337
40341
  checked: QR,
40338
40342
  unchecked: JR
40339
40343
  },
40340
- right: {
40344
+ bottom: {
40341
40345
  checked: XR,
40342
40346
  unchecked: KR
40343
- },
40344
- bottom: {
40345
- checked: YR,
40346
- unchecked: ZR
40347
40347
  }
40348
40348
  }, eQ = ({ value: e, checked: t }) => {
40349
40349
  const r = t ? yx[e].checked : yx[e].unchecked;
@@ -43145,7 +43145,7 @@ const Mee = se(
43145
43145
  ),
43146
43146
  onClick: o,
43147
43147
  disabled: a.disabled,
43148
- children: /* @__PURE__ */ p(cI, { className: "h-3 w-3 text-content-white-primary", "aria-hidden": "true" })
43148
+ children: /* @__PURE__ */ p(uI, { className: "h-3 w-3 text-content-white-primary", "aria-hidden": "true" })
43149
43149
  }
43150
43150
  ) })
43151
43151
  ] }) }),
@@ -44371,7 +44371,7 @@ const Ste = se(
44371
44371
  disabled: i,
44372
44372
  children: [
44373
44373
  !o && /* @__PURE__ */ p(
44374
- lI,
44374
+ bA,
44375
44375
  {
44376
44376
  className: I(
44377
44377
  "h-[10px] w-[10px] shrink-0",
@@ -47829,7 +47829,7 @@ const La = {
47829
47829
  children: [
47830
47830
  e,
47831
47831
  !!t && /* @__PURE__ */ p("div", { className: I("relative m-auto", "aspect-[19/5] w-full max-w-[760px]"), children: t }),
47832
- (r == null ? void 0 : r.href) && n && /* @__PURE__ */ p("div", { className: "flex justify-center", children: /* @__PURE__ */ p(uI, { href: r.href, passHref: !0, legacyBehavior: !0, children: /* @__PURE__ */ p(yt, { size: "large", density: "spacious", as: "a", ...r.extraAttrs, children: n }) }) })
47832
+ (r == null ? void 0 : r.href) && n && /* @__PURE__ */ p("div", { className: "flex justify-center", children: /* @__PURE__ */ p(HR, { href: r.href, passHref: !0, legacyBehavior: !0, children: /* @__PURE__ */ p(yt, { size: "large", density: "spacious", as: "a", ...r.extraAttrs, children: n }) }) })
47833
47833
  ]
47834
47834
  }
47835
47835
  ), Qre = ({ author: e, className: t }) => e ? /* @__PURE__ */ E("div", { className: I("flex items-center gap-4", t), children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [
@@ -35,42 +35,42 @@
35
35
  "url": "https://github.com/Photoroom/photoroom.com"
36
36
  },
37
37
  "dependencies": {
38
- "@img-comparison-slider/react": "^8.0.0",
39
- "@lottiefiles/react-lottie-player": "^3.5.4",
40
- "@photoroom/icons": "0.1.6",
41
- "@radix-ui/react-accordion": "^1.0.4",
42
- "@radix-ui/react-avatar": "^1.0.4",
43
- "@radix-ui/react-checkbox": "^1.0.4",
44
- "@radix-ui/react-context-menu": "^2.2.7",
45
- "@radix-ui/react-dialog": "^1.0.5",
46
- "@radix-ui/react-dropdown-menu": "^2.1.1",
47
- "@radix-ui/react-menu": "^2.1.1",
48
- "@radix-ui/react-popover": "^1.0.7",
49
- "@radix-ui/react-progress": "^1.0.3",
50
- "@radix-ui/react-radio-group": "^1.1.3",
51
- "@radix-ui/react-select": "^2.0.0",
52
- "@radix-ui/react-slider": "^1.1.2",
53
- "@radix-ui/react-switch": "^1.0.3",
54
- "@radix-ui/react-tabs": "^1.0.3",
55
- "@radix-ui/react-toggle-group": "^1.1.1",
56
- "@radix-ui/react-tooltip": "^1.0.7",
57
- "class-variance-authority": "^0.7.0",
58
- "clsx": "^2.0.0",
59
- "colord": "^2.9.3",
60
- "framer-motion": "^12.38.0",
61
- "fuse.js": "^7.0.0",
62
- "lodash-es": "^4.17.21",
38
+ "@img-comparison-slider/react": "8.0.2",
39
+ "@lottiefiles/react-lottie-player": "3.6.0",
40
+ "@photoroom/icons": "0.1.7",
41
+ "@radix-ui/react-accordion": "1.2.12",
42
+ "@radix-ui/react-avatar": "1.1.11",
43
+ "@radix-ui/react-checkbox": "1.3.3",
44
+ "@radix-ui/react-context-menu": "2.2.16",
45
+ "@radix-ui/react-dialog": "1.1.15",
46
+ "@radix-ui/react-dropdown-menu": "2.1.16",
47
+ "@radix-ui/react-menu": "2.1.16",
48
+ "@radix-ui/react-popover": "1.1.15",
49
+ "@radix-ui/react-progress": "1.1.8",
50
+ "@radix-ui/react-radio-group": "1.3.8",
51
+ "@radix-ui/react-select": "2.2.6",
52
+ "@radix-ui/react-slider": "1.3.6",
53
+ "@radix-ui/react-switch": "1.2.6",
54
+ "@radix-ui/react-tabs": "1.1.13",
55
+ "@radix-ui/react-toggle-group": "1.1.11",
56
+ "@radix-ui/react-tooltip": "1.2.8",
57
+ "class-variance-authority": "0.7.1",
58
+ "clsx": "2.1.1",
59
+ "colord": "2.9.3",
60
+ "framer-motion": "12.38.0",
61
+ "fuse.js": "7.3.0",
62
+ "lodash-es": "4.18.1",
63
63
  "react-colorful": "5.6.1",
64
- "react-device-detect": "^2.1.2",
65
- "react-intersection-observer": "^10.0.0",
66
- "react-moveable": "^0.56.0",
67
- "react-textarea-autosize": "^8.5.3",
64
+ "react-device-detect": "2.2.3",
65
+ "react-intersection-observer": "10.0.3",
66
+ "react-moveable": "0.56.0",
67
+ "react-textarea-autosize": "8.5.9",
68
68
  "react-use": "17.6.0",
69
- "react-youtube": "^10.1.0",
70
- "sonner": "^2.0.0",
71
- "tailwind-merge": "^1.6.1",
72
- "vaul": "^1.1.2",
73
- "virtua": "^0.49.0",
69
+ "react-youtube": "10.1.0",
70
+ "sonner": "2.0.7",
71
+ "tailwind-merge": "1.14.0",
72
+ "vaul": "1.1.2",
73
+ "virtua": "0.49.0",
74
74
  "date-fns": "^4.0.0"
75
75
  },
76
76
  "peerDependencies": {