@photoroom/ui 0.1.805 → 0.1.807

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
@@ -59189,45 +59189,28 @@ var D7 = ({ label: e, value: t, max: n = 5, tooltip: r, className: i }) => {
59189
59189
  children: r
59190
59190
  })]
59191
59191
  })
59192
- }), Zwe = ({ question: e, answer: n, forceShowAll: r = !1, ...i }) => {
59193
- let a = ke(), [o, s] = Pe(!1), c = r || o;
59194
- return /* @__PURE__ */ R("article", {
59195
- ...i,
59196
- children: [/* @__PURE__ */ R("div", {
59197
- className: "group/faq-question flex cursor-pointer flex-row items-start justify-between gap-4 py-4 outline-hidden sm:py-6",
59198
- role: "button",
59199
- "aria-controls": `faq-answer-${a}`,
59200
- onClick: () => s((e) => !e),
59201
- children: [/* @__PURE__ */ L("h4", {
59202
- className: "component-600 sm:component-700 max-w-[640px] pt-[5px] [word-break:break-word] sm:pt-[3px]",
59203
- children: e
59204
- }), /* @__PURE__ */ L(Pd, {
59205
- icon: t,
59206
- variant: c ? "primary" : "secondary",
59207
- density: "regular",
59208
- className: U("h-8 w-8 shrink-0 rounded-full transition-all", {
59209
- "group-hover/faq-question:bg-background-hover -rotate-45": c,
59210
- "group-hover/faq-question:bg-background-subdued-hover": !c
59211
- })
59212
- })]
59213
- }), /* @__PURE__ */ L("div", {
59214
- id: `faq-answer-${a}`,
59215
- "aria-expanded": c,
59216
- className: U("grid", {
59217
- "transition-all duration-200 ease-in-out": !r,
59218
- "grid-rows-[0fr] opacity-0": !c,
59219
- "grid-rows-[1fr] opacity-100": c
59220
- }),
59221
- children: /* @__PURE__ */ L("div", {
59222
- className: "overflow-hidden",
59223
- children: /* @__PURE__ */ L("div", {
59224
- className: "body-light-600 text-content-secondary max-w-[640px] pb-6 sm:pb-8",
59225
- children: n
59226
- })
59227
- })
59192
+ }), Zwe = ({ question: e, answer: n, forceShowAll: r = !1, open: i, className: a, ...o }) => /* @__PURE__ */ R("details", {
59193
+ ...o,
59194
+ open: r || i,
59195
+ className: W("group/faq", "details-content:grid details-content:grid-rows-[0fr] details-content:opacity-0", "open:details-content:grid-rows-[1fr] open:details-content:opacity-100", !r && "details-content:transition-[grid-template-rows,opacity,content-visibility] details-content:transition-discrete details-content:duration-200 details-content:ease-in-out", a),
59196
+ children: [/* @__PURE__ */ R("summary", {
59197
+ className: "group/faq-question flex cursor-pointer list-none flex-row items-start justify-between gap-4 py-4 outline-hidden sm:py-6 [&::-webkit-details-marker]:hidden",
59198
+ children: [/* @__PURE__ */ L("h4", {
59199
+ className: "component-600 sm:component-700 max-w-[640px] pt-[5px] [word-break:break-word] sm:pt-[3px]",
59200
+ children: e
59201
+ }), /* @__PURE__ */ L("span", {
59202
+ "aria-hidden": "true",
59203
+ className: U("flex size-8 shrink-0 items-center justify-center rounded-full transition-all duration-200", "bg-background-subdued text-content-primary group-hover/faq-question:bg-background-subdued-hover group-active/faq-question:bg-background-subdued-down", "group-open/faq:bg-background-default group-open/faq:text-content-white-inverted-primary group-open/faq:group-hover/faq-question:bg-background-hover group-open/faq:group-active/faq-question:bg-background-down group-open/faq:-rotate-45", "group-focus-visible/faq-question:misc-border-size-focus-ring group-focus-visible/faq-question:ring-misc-focus-indicator"),
59204
+ children: /* @__PURE__ */ L(t, { className: "icon-size-500" })
59228
59205
  })]
59229
- });
59230
- }, Qwe = ({ title: e, features: t, cta: n, ...r }) => /* @__PURE__ */ R("div", {
59206
+ }), /* @__PURE__ */ L("div", {
59207
+ className: "overflow-hidden",
59208
+ children: /* @__PURE__ */ L("div", {
59209
+ className: "body-light-600 text-content-secondary max-w-[640px] pb-6 sm:pb-8",
59210
+ children: n
59211
+ })
59212
+ })]
59213
+ }), Qwe = ({ title: e, features: t, cta: n, ...r }) => /* @__PURE__ */ R("div", {
59231
59214
  className: "pt-e700 pb-e1000 gap-i600 flex flex-col",
59232
59215
  ...r,
59233
59216
  children: [e, n ? /* @__PURE__ */ R("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.805",
3
+ "version": "0.1.807",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [