@photoroom/ui 0.1.118 → 0.1.120

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 (36) hide show
  1. package/README.md +12 -1
  2. package/animations.css +13 -0
  3. package/colors.css +445 -0
  4. package/components/content/Folder/Folder.d.ts +26 -0
  5. package/components/content/Folder/Folder.d.ts.map +1 -0
  6. package/components/content/Folder/Folder.figma.d.ts +2 -0
  7. package/components/content/Folder/Folder.figma.d.ts.map +1 -0
  8. package/components/content/Folder/index.d.ts +2 -0
  9. package/components/content/Folder/index.d.ts.map +1 -0
  10. package/components/index.d.ts +2 -0
  11. package/components/index.d.ts.map +1 -1
  12. package/components/input/OptionSelectionListItem/OptionSelectionListItem.d.ts +41 -0
  13. package/components/input/OptionSelectionListItem/OptionSelectionListItem.d.ts.map +1 -0
  14. package/components/input/OptionSelectionListItem/index.d.ts +2 -0
  15. package/components/input/OptionSelectionListItem/index.d.ts.map +1 -0
  16. package/index.css +1 -1
  17. package/index.lib.d.ts +1 -0
  18. package/index.lib.d.ts.map +1 -1
  19. package/index.mjs +4690 -4677
  20. package/package.json +5 -5
  21. package/theme.css +1420 -0
  22. package/plugins/backgrounds.js +0 -43
  23. package/plugins/colors.js +0 -435
  24. package/plugins/content-to-edge.js +0 -104
  25. package/plugins/forms.js +0 -21
  26. package/plugins/icon-offset.js +0 -29
  27. package/plugins/icon-size.js +0 -39
  28. package/plugins/icon-to-edge.js +0 -101
  29. package/plugins/misc.js +0 -112
  30. package/plugins/size.js +0 -154
  31. package/plugins/spacing.js +0 -84
  32. package/plugins/text-to-leading.js +0 -61
  33. package/plugins/transitions.js +0 -15
  34. package/plugins/typography.js +0 -523
  35. package/plugins/variants.js +0 -9
  36. package/tailwind.config.js +0 -490
@@ -1,101 +0,0 @@
1
- // oxlint-disable-next-line typescript/no-require-imports
2
- const plugin = require("tailwindcss/plugin");
3
-
4
- module.exports = plugin(({ addUtilities }) => {
5
- /**
6
- * Icon to edge
7
- * https://www.figma.com/file/cHgANa7dtzDDGXk7dKuAOQ/Design-system?type=design&node-id=16204-13067&mode=dev
8
- */
9
- addUtilities({
10
- // Default
11
- ...["pl", "pr", "py"].reduce((acc, prefix) => {
12
- return {
13
- ...acc,
14
- [`.icon-to-edge-${prefix}-200`]: {
15
- [`@apply ${prefix}-[4px]`]: {},
16
- },
17
- [`.icon-to-edge-${prefix}-250`]: {
18
- [`@apply ${prefix}-[5px]`]: {},
19
- },
20
- [`.icon-to-edge-${prefix}-300`]: {
21
- [`@apply ${prefix}-[6px]`]: {},
22
- },
23
- [`.icon-to-edge-${prefix}-350`]: {
24
- [`@apply ${prefix}-[6px]`]: {},
25
- },
26
- [`.icon-to-edge-${prefix}-400`]: {
27
- [`@apply ${prefix}-[8px]`]: {},
28
- },
29
- [`.icon-to-edge-${prefix}-450`]: {
30
- [`@apply ${prefix}-[9px]`]: {},
31
- },
32
- [`.icon-to-edge-${prefix}-500`]: {
33
- [`@apply ${prefix}-[10px]`]: {},
34
- },
35
- [`.icon-to-edge-${prefix}-550`]: {
36
- [`@apply ${prefix}-[11px]`]: {},
37
- },
38
- [`.icon-to-edge-${prefix}-600`]: {
39
- [`@apply ${prefix}-[12px]`]: {},
40
- },
41
- [`.icon-to-edge-${prefix}-650`]: {
42
- [`@apply ${prefix}-[13px]`]: {},
43
- },
44
- [`.icon-to-edge-${prefix}-700`]: {
45
- [`@apply ${prefix}-[14px]`]: {},
46
- },
47
- [`.icon-to-edge-${prefix}-750`]: {
48
- [`@apply ${prefix}-[15px]`]: {},
49
- },
50
- [`.icon-to-edge-${prefix}-800`]: {
51
- [`@apply ${prefix}-[16px]`]: {},
52
- },
53
- };
54
- }, {}),
55
- // Spacious
56
- ...["pl", "pr"].reduce((acc, prefix) => {
57
- return {
58
- ...acc,
59
- [`.icon-to-edge-spacious-${prefix}-200`]: {
60
- [`@apply ${prefix}-[5px]`]: {},
61
- },
62
- [`.icon-to-edge-spacious-${prefix}-250`]: {
63
- [`@apply ${prefix}-[7px]`]: {},
64
- },
65
- [`.icon-to-edge-spacious-${prefix}-300`]: {
66
- [`@apply ${prefix}-[9px]`]: {},
67
- },
68
- [`.icon-to-edge-spacious-${prefix}-350`]: {
69
- [`@apply ${prefix}-[9px]`]: {},
70
- },
71
- [`.icon-to-edge-spacious-${prefix}-400`]: {
72
- [`@apply ${prefix}-[11px]`]: {},
73
- },
74
- [`.icon-to-edge-spacious-${prefix}-450`]: {
75
- [`@apply ${prefix}-[12px]`]: {},
76
- },
77
- [`.icon-to-edge-spacious-${prefix}-500`]: {
78
- [`@apply ${prefix}-[14px]`]: {},
79
- },
80
- [`.icon-to-edge-spacious-${prefix}-550`]: {
81
- [`@apply ${prefix}-[16px]`]: {},
82
- },
83
- [`.icon-to-edge-spacious-${prefix}-600`]: {
84
- [`@apply ${prefix}-[17px]`]: {},
85
- },
86
- [`.icon-to-edge-spacious-${prefix}-650`]: {
87
- [`@apply ${prefix}-[18px]`]: {},
88
- },
89
- [`.icon-to-edge-spacious-${prefix}-700`]: {
90
- [`@apply ${prefix}-[19px]`]: {},
91
- },
92
- [`.icon-to-edge-spacious-${prefix}-750`]: {
93
- [`@apply ${prefix}-[21px]`]: {},
94
- },
95
- [`.icon-to-edge-spacious-${prefix}-800`]: {
96
- [`@apply ${prefix}-[23px]`]: {},
97
- },
98
- };
99
- }, {}),
100
- });
101
- });
package/plugins/misc.js DELETED
@@ -1,112 +0,0 @@
1
- // oxlint-disable-next-line typescript/no-require-imports
2
- const plugin = require("tailwindcss/plugin");
3
-
4
- // https://www.figma.com/file/cHgANa7dtzDDGXk7dKuAOQ/Design-system?type=design&node-id=20464-7406&mode=dev
5
- module.exports = plugin(({ addComponents, addUtilities }) => {
6
- // Scrollbar utilities
7
- addComponents({
8
- ".scrollbar-none": {
9
- "scrollbar-width": "none",
10
- "&::-webkit-scrollbar": {
11
- display: "none",
12
- },
13
- },
14
- });
15
-
16
- // Dropdown utilities
17
- addUtilities({
18
- ".misc-hairline-spacing": {
19
- "@apply gap-0.5": {},
20
- },
21
- ".misc-dropdown-padding": {
22
- "@apply p-1": {},
23
- },
24
- ".misc-dropdown-padding-spacious": {
25
- "@apply p-4": {},
26
- },
27
- ".misc-dropdown-rounding": {
28
- "@apply rounded-500": {},
29
- },
30
- ".misc-dropdown-inner-rounding": {
31
- "@apply rounded-300": {},
32
- },
33
- });
34
-
35
- // Dialog utilities
36
- addUtilities({
37
- ".misc-dialog-rounding": {
38
- "@apply rounded-500": {},
39
- },
40
- ".misc-dialog-overlay": {
41
- "background-color": "rgba(0,0,0,25%)",
42
- },
43
- });
44
-
45
- // Border/ring utilities
46
- addUtilities({
47
- ".misc-border-size-hairline": {
48
- "@apply border-0.5": {},
49
- },
50
- ".misc-border-size-default": {
51
- "@apply border": {},
52
- },
53
- ".misc-border-size-selection": {
54
- "@apply border-2": {},
55
- },
56
- ".misc-border-size-focus-ring": {
57
- "@apply ring-3": {},
58
- },
59
- // Outer border using box-shadow so it doesn't affect the element's bounding box.
60
- // Use this instead of `border border-misc-border` on floating/elevated UI elements
61
- // (pills, menus, popovers) to keep the layout size exact and render the correct
62
- // semi-transparent misc-border token.
63
- ".misc-outer-border": {
64
- "@apply ring-1 ring-misc-border": {},
65
- },
66
- });
67
-
68
- // Shadow utilities
69
- addUtilities({
70
- ".misc-shadow-selection": {
71
- "@apply shadow-[inset_0_0_0_1px_var(--color-white)]": {},
72
- },
73
- });
74
-
75
- // Color picker utilities (overrides for react-colorful).
76
- // !important is needed because react-colorful injects unlayered <style>,
77
- // which beats anything inside @layer utilities regardless of specificity.
78
- addUtilities({
79
- ".misc-color-picker": {
80
- ".react-colorful": {
81
- display: "flex !important",
82
- width: "100% !important",
83
- flexDirection: "column !important",
84
- gap: "0.75rem !important",
85
- },
86
- ".react-colorful__saturation": {
87
- height: "10rem !important",
88
- width: "100% !important",
89
- borderRadius: "8px !important",
90
- border: "0 !important",
91
- },
92
- ".react-colorful__hue": {
93
- height: "1rem !important",
94
- borderRadius: "9999px !important",
95
- },
96
- ".react-colorful__pointer": {
97
- height: "1rem !important",
98
- width: "1rem !important",
99
- },
100
- },
101
- });
102
-
103
- // Magic gradient on HeroBlock
104
- addUtilities({
105
- ".text-hero-magic": {
106
- "background-image": "linear-gradient(to bottom right, #410CD9, #F68EFE)",
107
- "background-clip": "text",
108
- "-webkit-background-clip": "text",
109
- color: "transparent",
110
- },
111
- });
112
- });
package/plugins/size.js DELETED
@@ -1,154 +0,0 @@
1
- // oxlint-disable-next-line typescript/no-require-imports
2
- const plugin = require("tailwindcss/plugin");
3
-
4
- module.exports = plugin(({ addUtilities }) => {
5
- /**
6
- * Size
7
- * https://www.figma.com/file/cHgANa7dtzDDGXk7dKuAOQ/Design-system?type=design&node-id=16712-19165&mode=dev
8
- */
9
- addUtilities({
10
- // Width & Height
11
- ".size-150": {
12
- "@apply h-3": {},
13
- "@apply w-3": {},
14
- },
15
- ".size-200": {
16
- "@apply h-4": {},
17
- "@apply w-4": {},
18
- },
19
- ".size-250": {
20
- "@apply h-5": {},
21
- "@apply w-5": {},
22
- },
23
- ".size-300": {
24
- "@apply h-6": {},
25
- "@apply w-6": {},
26
- },
27
- ".size-350": {
28
- "@apply h-7": {},
29
- "@apply w-7": {},
30
- },
31
- ".size-400": {
32
- "@apply h-8": {},
33
- "@apply w-8": {},
34
- },
35
- ".size-450": {
36
- "@apply h-9": {},
37
- "@apply w-9": {},
38
- },
39
- ".size-500": {
40
- "@apply h-10": {},
41
- "@apply w-10": {},
42
- },
43
- ".size-550": {
44
- "@apply h-11": {},
45
- "@apply w-11": {},
46
- },
47
- ".size-600": {
48
- "@apply h-12": {},
49
- "@apply w-12": {},
50
- },
51
- ".size-650": {
52
- "@apply h-[52px]": {}, // h-13 does not exist. https://tailwindcss.com/docs/height
53
- "@apply w-[52px]": {}, // w-13 does not exist. https://tailwindcss.com/docs/width
54
- },
55
- ".size-700": {
56
- "@apply h-14": {},
57
- "@apply w-14": {},
58
- },
59
- ".size-750": {
60
- "@apply h-[60px]": {}, // h-15 does not exist. https://tailwindcss.com/docs/height
61
- "@apply w-[60px]": {}, // w-15 does not exist. https://tailwindcss.com/docs/width
62
- },
63
- ".size-800": {
64
- "@apply h-16": {},
65
- "@apply w-16": {},
66
- },
67
- // Width
68
- ".size-w-150": {
69
- "@apply w-3": {},
70
- },
71
- ".size-w-200": {
72
- "@apply w-4": {},
73
- },
74
- ".size-w-250": {
75
- "@apply w-5": {},
76
- },
77
- ".size-w-300": {
78
- "@apply w-6": {},
79
- },
80
- ".size-w-350": {
81
- "@apply w-7": {},
82
- },
83
- ".size-w-400": {
84
- "@apply w-8": {},
85
- },
86
- ".size-w-450": {
87
- "@apply w-9": {},
88
- },
89
- ".size-w-500": {
90
- "@apply w-10": {},
91
- },
92
- ".size-w-550": {
93
- "@apply w-11": {},
94
- },
95
- ".size-w-600": {
96
- "@apply w-12": {},
97
- },
98
- ".size-w-650": {
99
- "@apply w-[52px]": {}, // w-13 does not exist. https://tailwindcss.com/docs/width
100
- },
101
- ".size-w-700": {
102
- "@apply w-14": {},
103
- },
104
- ".size-w-750": {
105
- "@apply w-[60px]": {}, // w-15 does not exist. https://tailwindcss.com/docs/width
106
- },
107
- ".size-w-800": {
108
- "@apply w-16": {},
109
- },
110
- // Height
111
- ".size-h-150": {
112
- "@apply h-3": {},
113
- },
114
- ".size-h-200": {
115
- "@apply h-4": {},
116
- },
117
- ".size-h-250": {
118
- "@apply h-5": {},
119
- },
120
- ".size-h-300": {
121
- "@apply h-6": {},
122
- },
123
- ".size-h-350": {
124
- "@apply h-7": {},
125
- },
126
- ".size-h-400": {
127
- "@apply h-8": {},
128
- },
129
- ".size-h-450": {
130
- "@apply h-9": {},
131
- },
132
- ".size-h-500": {
133
- "@apply h-10": {},
134
- },
135
- ".size-h-550": {
136
- "@apply h-11": {},
137
- },
138
- ".size-h-600": {
139
- "@apply h-12": {},
140
- },
141
- ".size-h-650": {
142
- "@apply h-[52px]": {}, // h-13 does not exist. https://tailwindcss.com/docs/width
143
- },
144
- ".size-h-700": {
145
- "@apply h-14": {},
146
- },
147
- ".size-h-750": {
148
- "@apply h-[60px]": {}, // h-15 does not exist. https://tailwindcss.com/docs/width
149
- },
150
- ".size-h-800": {
151
- "@apply h-16": {},
152
- },
153
- });
154
- });
@@ -1,84 +0,0 @@
1
- // oxlint-disable-next-line typescript/no-require-imports
2
- const plugin = require("tailwindcss/plugin");
3
-
4
- module.exports = plugin(({ addUtilities }) => {
5
- addUtilities({
6
- /**
7
- * External paddings
8
- * https://www.figma.com/file/5G9xtfAPMEgTJoLQbAg1KR/Website?node-id=7043-23918&t=Lt0OG56xEr6Z3xzr-4
9
- */
10
- ...["pt", "pb", "py"].reduce((acc, prefix) => {
11
- return {
12
- ...acc,
13
- [`.${prefix}-e400`]: {
14
- [`@apply ${prefix}-10`]: {},
15
- [`@apply sm:${prefix}-12`]: {},
16
- [`@apply lg:${prefix}-16`]: {},
17
- },
18
- [`.${prefix}-e500`]: {
19
- [`@apply ${prefix}-10`]: {},
20
- [`@apply sm:${prefix}-16`]: {},
21
- [`@apply lg:${prefix}-20`]: {},
22
- },
23
- [`.${prefix}-e600`]: {
24
- [`@apply ${prefix}-12`]: {},
25
- [`@apply sm:${prefix}-20`]: {},
26
- [`@apply lg:${prefix}-24`]: {},
27
- },
28
- [`.${prefix}-e700`]: {
29
- [`@apply ${prefix}-14`]: {},
30
- [`@apply sm:${prefix}-24`]: {},
31
- [`@apply lg:${prefix}-28`]: {},
32
- },
33
- [`.${prefix}-e800`]: {
34
- [`@apply ${prefix}-16`]: {},
35
- [`@apply sm:${prefix}-28`]: {},
36
- [`@apply lg:${prefix}-32`]: {},
37
- },
38
- [`.${prefix}-e900`]: {
39
- [`@apply ${prefix}-18`]: {},
40
- [`@apply sm:${prefix}-32`]: {},
41
- [`@apply lg:${prefix}-36`]: {},
42
- },
43
- [`.${prefix}-e1000`]: {
44
- [`@apply ${prefix}-20`]: {},
45
- [`@apply sm:${prefix}-36`]: {},
46
- [`@apply lg:${prefix}-40`]: {},
47
- },
48
- };
49
- }, {}),
50
- /**
51
- * Internal paddings
52
- * https://www.figma.com/file/5G9xtfAPMEgTJoLQbAg1KR/Website?node-id=7050-26673&t=Lt0OG56xEr6Z3xzr-4
53
- */
54
- ...["pt", "pb", "py", "gap"].reduce((acc, prefix) => {
55
- return {
56
- ...acc,
57
- [`.${prefix}-i200`]: {
58
- [`@apply ${prefix}-8`]: {},
59
- },
60
- [`.${prefix}-i300`]: {
61
- [`@apply ${prefix}-10`]: {},
62
- },
63
- [`.${prefix}-i400`]: {
64
- [`@apply ${prefix}-12`]: {},
65
- },
66
- [`.${prefix}-i500`]: {
67
- [`@apply ${prefix}-12`]: {},
68
- [`@apply sm:${prefix}-14`]: {},
69
- [`@apply lg:${prefix}-16`]: {},
70
- },
71
- [`.${prefix}-i600`]: {
72
- [`@apply ${prefix}-12`]: {},
73
- [`@apply sm:${prefix}-16`]: {},
74
- [`@apply lg:${prefix}-20`]: {},
75
- },
76
- [`.${prefix}-i1000`]: {
77
- [`@apply ${prefix}-24`]: {},
78
- [`@apply sm:${prefix}-28`]: {},
79
- [`@apply lg:${prefix}-32`]: {},
80
- },
81
- };
82
- }, {}),
83
- });
84
- });
@@ -1,61 +0,0 @@
1
- // oxlint-disable-next-line typescript/no-require-imports
2
- const plugin = require("tailwindcss/plugin");
3
-
4
- module.exports = plugin(({ addUtilities }) => {
5
- /**
6
- * Text to leading
7
- * https://www.figma.com/file/cHgANa7dtzDDGXk7dKuAOQ/Design-system?type=design&node-id=11366-12592&t=kZrq6Rbq3zAyydf4-4
8
- */
9
- addUtilities({
10
- // Default
11
- ".text-to-leading-300": {
12
- "@apply ml-[6px]": {},
13
- },
14
- ".text-to-leading-400": {
15
- "@apply ml-[7px]": {},
16
- },
17
- ".text-to-leading-500": {
18
- "@apply ml-[8px]": {},
19
- },
20
- ".text-to-leading-600": {
21
- "@apply ml-[10px]": {},
22
- },
23
- ".text-to-leading-700": {
24
- "@apply ml-[12px]": {},
25
- },
26
-
27
- // Compact
28
- ".text-to-leading-compact-300": {
29
- "@apply ml-[3px]": {},
30
- },
31
- ".text-to-leading-compact-400": {
32
- "@apply ml-[3.3px]": {},
33
- },
34
- ".text-to-leading-compact-500": {
35
- "@apply ml-[4px]": {},
36
- },
37
- ".text-to-leading-compact-600": {
38
- "@apply ml-[5px]": {},
39
- },
40
- ".text-to-leading-compact-700": {
41
- "@apply ml-[6px]": {},
42
- },
43
-
44
- // Spacious
45
- ".text-to-leading-spacious-300": {
46
- "@apply ml-[8px]": {},
47
- },
48
- ".text-to-leading-spacious-400": {
49
- "@apply ml-[10px]": {},
50
- },
51
- ".text-to-leading-spacious-500": {
52
- "@apply ml-[12px]": {},
53
- },
54
- ".text-to-leading-spacious-600": {
55
- "@apply ml-[14px]": {},
56
- },
57
- ".text-to-leading-spacious-700": {
58
- "@apply ml-[17px]": {},
59
- },
60
- });
61
- });
@@ -1,15 +0,0 @@
1
- // oxlint-disable-next-line typescript/no-require-imports
2
- const plugin = require("tailwindcss/plugin");
3
-
4
- /**
5
- * Interaction Transition
6
- * https://www.figma.com/design/cHgANa7dtzDDGXk7dKuAOQ/Prism?node-id=62868-23303&m=dev
7
- */
8
- module.exports = plugin(({ addUtilities }) => {
9
- addUtilities({
10
- ".interaction-transition": {
11
- "transition-timing-function": "cubic-bezier(0.2, 1, 0.4, 1)",
12
- "transition-duration": "200ms",
13
- },
14
- });
15
- });