@photoroom/ui 0.1.118 → 0.1.119
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/README.md +12 -1
- package/animations.css +13 -0
- package/colors.css +445 -0
- package/components/index.d.ts +1 -0
- package/components/index.d.ts.map +1 -1
- package/components/input/OptionSelectionListItem/OptionSelectionListItem.d.ts +41 -0
- package/components/input/OptionSelectionListItem/OptionSelectionListItem.d.ts.map +1 -0
- package/components/input/OptionSelectionListItem/index.d.ts +2 -0
- package/components/input/OptionSelectionListItem/index.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.mjs +12 -12
- package/package.json +5 -5
- package/theme.css +1420 -0
- package/plugins/backgrounds.js +0 -43
- package/plugins/colors.js +0 -435
- package/plugins/content-to-edge.js +0 -104
- package/plugins/forms.js +0 -21
- package/plugins/icon-offset.js +0 -29
- package/plugins/icon-size.js +0 -39
- package/plugins/icon-to-edge.js +0 -101
- package/plugins/misc.js +0 -112
- package/plugins/size.js +0 -154
- package/plugins/spacing.js +0 -84
- package/plugins/text-to-leading.js +0 -61
- package/plugins/transitions.js +0 -15
- package/plugins/typography.js +0 -523
- package/plugins/variants.js +0 -9
- package/tailwind.config.js +0 -490
package/index.mjs
CHANGED
|
@@ -8859,13 +8859,13 @@ var Ms = /* @__PURE__ */ new Set(), Ns = ({ variant: e = "default", label: t, pr
|
|
|
8859
8859
|
...x,
|
|
8860
8860
|
"aria-labelledby": s ? S : void 0,
|
|
8861
8861
|
type: "button",
|
|
8862
|
-
className: V("group relative block appearance-none", "rounded-400 outline-hidden", "*:select-none", { [V("before:absolute before:inset-x-3 before:-top-2 before:content-['']", "before:h-6 before:w-[calc(100%-24px)]", "before:
|
|
8862
|
+
className: V("group relative block appearance-none", "rounded-400 outline-hidden", "*:select-none", { [V("before:absolute before:inset-x-3 before:-top-2 before:content-['']", "before:h-6 before:w-[calc(100%-24px)]", "before:bg-misc-stack-layer-2 before:rounded-[inherit]", "before:transition-opacity before:duration-800", "after:absolute after:inset-x-1.5 after:-top-1 after:content-['']", "after:h-6 after:w-[calc(100%-12px)]", "after:bg-misc-stack-layer-1 after:rounded-[inherit]", "after:transition-opacity after:duration-800", {
|
|
8863
8863
|
"before:opacity-0 after:opacity-0": j,
|
|
8864
8864
|
"before:opacity-100 after:opacity-100": !j
|
|
8865
8865
|
})]: e === "stack" }, x.className),
|
|
8866
8866
|
disabled: A,
|
|
8867
8867
|
children: /* @__PURE__ */ E("div", {
|
|
8868
|
-
className: H("relative z-1 overflow-hidden", "flex items-center justify-center", "rounded-500 bg-surface-high", "group-focus-visible:ring-accent-alpha-5 group-focus-visible:misc-border-size-focus-ring", "interaction-transition transition-all", "after:
|
|
8868
|
+
className: H("relative z-1 overflow-hidden", "flex items-center justify-center", "rounded-500 bg-surface-high", "group-focus-visible:ring-accent-alpha-5 group-focus-visible:misc-border-size-focus-ring", "interaction-transition transition-all", "after:border-misc-border after:misc-border-size-default after:absolute after:inset-0 after:rounded-[inherit] after:content-['']", "group-focus-active:after:bg-misc-visual-down group-hover:after:bg-misc-visual-hover group-focus-visible:after:bg-misc-visual-hover", "after:interaction-transition after:transition-all", {
|
|
8869
8869
|
"h-[160px] max-w-[360px] min-w-[40px]": o === "height",
|
|
8870
8870
|
"h-auto w-full": o === "width"
|
|
8871
8871
|
}, y),
|
|
@@ -31967,7 +31967,7 @@ var DW = ({ variant: e = "default", title: t, image: n, cta: r, className: i })
|
|
|
31967
31967
|
...i,
|
|
31968
31968
|
className: V("group flex flex-col gap-3 outline-hidden", r),
|
|
31969
31969
|
children: [/* @__PURE__ */ T("figure", {
|
|
31970
|
-
className: V("rounded-500 relative block aspect-video", "after:
|
|
31970
|
+
className: V("rounded-500 relative block aspect-video", "after:border-misc-border after:absolute after:inset-0 after:rounded-[inherit] after:border after:content-['']", "group-focus-visible:ring-misc-focus-indicator group-focus-visible:misc-border-size-focus-ring", "[&_img]:block [&_img]:size-full [&_img]:overflow-hidden [&_img]:rounded-[inherit] [&_img]:object-cover"),
|
|
31971
31971
|
children: n
|
|
31972
31972
|
}), /* @__PURE__ */ T("h5", {
|
|
31973
31973
|
className: "component-semi-strong-600 text-content-primary",
|
|
@@ -32555,7 +32555,7 @@ var MW = /* @__PURE__ */ xt((() => {
|
|
|
32555
32555
|
}), XW = ({ image: e, cardLink: t, categoryLink: n, direction: r = "vertical", title: i, description: a, authorName: s, authorAvatar: c, border: l = !0, ...u }) => {
|
|
32556
32556
|
let d = b(() => t ? o(t, { className: V("rounded-500 absolute h-full w-full outline-hidden", "interaction-transition focus-visible:ring-misc-focus-indicator transition-all focus-visible:ring focus-visible:outline-hidden") }) : null, [t]), f = b(() => n ? o(n, { className: UW({ direction: r }) }) : null, [n, r]);
|
|
32557
32557
|
return /* @__PURE__ */ E("div", {
|
|
32558
|
-
className: V("@container", "relative flex-1", "rounded-500 bg-surface-high", "after:
|
|
32558
|
+
className: V("@container", "relative flex-1", "rounded-500 bg-surface-high", "after:pointer-events-none after:absolute after:top-0 after:left-0 after:h-full after:w-full after:rounded-[inherit] after:content-['']", { "after:border-misc-border after:border": l }),
|
|
32559
32559
|
...u,
|
|
32560
32560
|
children: [d, /* @__PURE__ */ E("div", {
|
|
32561
32561
|
className: BW({ direction: r }),
|
|
@@ -32633,7 +32633,7 @@ var $W = ({ title: e, subtitle: t, image: n, cta: r, className: i, onClick: a, o
|
|
|
32633
32633
|
})]
|
|
32634
32634
|
}),
|
|
32635
32635
|
!!n && /* @__PURE__ */ T("figure", {
|
|
32636
|
-
className: "aspect-4/3 h-[60px] w-[80px] flex-shrink-0",
|
|
32636
|
+
className: "aspect-[4/3] h-[60px] w-[80px] flex-shrink-0",
|
|
32637
32637
|
children: n
|
|
32638
32638
|
}),
|
|
32639
32639
|
!!o && /* @__PURE__ */ T(Kn, {
|
|
@@ -45471,15 +45471,15 @@ var oue = U([
|
|
|
45471
45471
|
"rounded-500 interaction-transition box-border flex h-10 w-10 outline-hidden transition-all",
|
|
45472
45472
|
"bg-surface-default",
|
|
45473
45473
|
"before:absolute before:content-['']",
|
|
45474
|
-
"before:
|
|
45474
|
+
"before:pointer-events-none before:rounded-[inherit]",
|
|
45475
45475
|
"before:bg-misc-visual-down before:opacity-0",
|
|
45476
45476
|
"active:before:opacity-100",
|
|
45477
45477
|
"before:interaction-transition before:transition-opacity",
|
|
45478
45478
|
"after:absolute after:inset-0 after:content-['']",
|
|
45479
|
-
"after:
|
|
45479
|
+
"after:pointer-events-none after:rounded-[inherit]",
|
|
45480
45480
|
"after:interaction-transition after:transition-colors",
|
|
45481
45481
|
"focus-visible:ring-accent-alpha-5 focus-visible:misc-border-size-focus-ring",
|
|
45482
|
-
"[&>img]:
|
|
45482
|
+
"[&>img]:h-full [&>img]:w-full [&>img]:rounded-[inherit] [&>img]:object-cover"
|
|
45483
45483
|
], {
|
|
45484
45484
|
variants: { selected: {
|
|
45485
45485
|
true: ["after:misc-border-size-selection after:misc-shadow-selection after:-inset-px after:border-black"],
|
|
@@ -48695,7 +48695,7 @@ var f8 = l(({ className: e, placeholder: t, search: n, onOpenChange: r, children
|
|
|
48695
48695
|
className: u,
|
|
48696
48696
|
side: f,
|
|
48697
48697
|
children: /* @__PURE__ */ E(uq, {
|
|
48698
|
-
className: V("w-radix-select-trigger-width p-0!", "h-max max-h-[min(524px,var(--radix-select-content-available-height))]", "border-misc-border border"),
|
|
48698
|
+
className: V("w-(--radix-select-trigger-width) p-0!", "h-max max-h-[min(524px,var(--radix-select-content-available-height))]", "border-misc-border border"),
|
|
48699
48699
|
style: { minHeight: l },
|
|
48700
48700
|
children: [
|
|
48701
48701
|
o && /* @__PURE__ */ T("div", {
|
|
@@ -53467,7 +53467,7 @@ var Qme = ({ title: e, date: t, className: n }) => /* @__PURE__ */ E("div", {
|
|
|
53467
53467
|
children: /* @__PURE__ */ T("div", {
|
|
53468
53468
|
className: "flex items-center justify-center",
|
|
53469
53469
|
children: /* @__PURE__ */ E("div", {
|
|
53470
|
-
className: "sm:max-w-mdlg
|
|
53470
|
+
className: "sm:max-w-mdlg flex w-full max-w-xs flex-wrap items-center justify-center gap-x-12 gap-y-6 lg:max-w-[45rem]",
|
|
53471
53471
|
children: [
|
|
53472
53472
|
/* @__PURE__ */ T("div", {
|
|
53473
53473
|
className: "order-1",
|
|
@@ -53840,7 +53840,7 @@ var ohe = ({ titleBlock: e, children: t, ...n }) => /* @__PURE__ */ E("div", {
|
|
|
53840
53840
|
"max-w-sm sm:max-w-lg"
|
|
53841
53841
|
], { variants: { wide: {
|
|
53842
53842
|
true: "lg:max-w-[1200px]",
|
|
53843
|
-
false: "lg:max-w-
|
|
53843
|
+
false: "lg:max-w-[67rem]"
|
|
53844
53844
|
} } }), bhe = U("mx-auto grid grid-cols-1 gap-4", { variants: { invertOrder: {
|
|
53845
53845
|
true: "lg:-order-1 lg:pr-16",
|
|
53846
53846
|
false: "lg:pl-16"
|
|
@@ -55657,7 +55657,7 @@ var Fge = ({ title: e, children: t, cta: n, image: r, ...i }) => {
|
|
|
55657
55657
|
...r,
|
|
55658
55658
|
children: [!!n && /* @__PURE__ */ E("div", {
|
|
55659
55659
|
className: "rounded-200 relative flex size-10 shrink-0 overflow-hidden [&>img]:h-full [&>img]:w-full [&>img]:object-cover",
|
|
55660
|
-
children: [n, /* @__PURE__ */ T("div", { className: "
|
|
55660
|
+
children: [n, /* @__PURE__ */ T("div", { className: "ring-misc-border pointer-events-none absolute inset-0 rounded-[inherit] ring-1 ring-inset" })]
|
|
55661
55661
|
}), /* @__PURE__ */ T("span", {
|
|
55662
55662
|
className: "component-semi-strong-600 truncate",
|
|
55663
55663
|
children: t
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@photoroom/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.119",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Photoroom design system components",
|
|
6
6
|
"sideEffects": [
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
"types": "./index.lib.d.ts",
|
|
15
15
|
"import": "./index.mjs"
|
|
16
16
|
},
|
|
17
|
-
"./styles.css": "./
|
|
18
|
-
"./
|
|
17
|
+
"./styles.css": "./index.css",
|
|
18
|
+
"./theme.css": "./theme.css",
|
|
19
|
+
"./colors.css": "./colors.css",
|
|
20
|
+
"./animations.css": "./animations.css"
|
|
19
21
|
},
|
|
20
22
|
"files": [
|
|
21
23
|
"**/*.mjs",
|
|
22
24
|
"**/*.d.ts",
|
|
23
25
|
"**/*.d.ts.map",
|
|
24
26
|
"**/*.css",
|
|
25
|
-
"tailwind.config.js",
|
|
26
|
-
"plugins/**",
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"publishConfig": {
|