slice-machine-ui 1.26.1-beta.7 → 1.26.1-beta.9

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 (65) hide show
  1. package/components/Forms/RenameVariationModal/RenameVariationModal.module.css +5 -0
  2. package/components/Forms/RenameVariationModal/RenameVariationModal.tsx +1 -1
  3. package/components/Navigation/index.module.css +3 -0
  4. package/components/Navigation/index.tsx +1 -1
  5. package/lib/builders/SliceBuilder/FieldZones/index.tsx +93 -28
  6. package/lib/builders/common/Zone/components/EmptyState/index.tsx +1 -1
  7. package/out/404.html +1 -1
  8. package/out/_next/static/chunks/318-77a29f41c3a027e3.js +1 -0
  9. package/out/_next/static/chunks/{727-7536690b0938f88f.js → 727-d0d6a29f0793bde2.js} +1 -1
  10. package/out/_next/static/chunks/869-868567cc5e32452f.js +1 -0
  11. package/out/_next/static/chunks/pages/{_app-30f2287baca70a97.js → _app-59bc66a6d9d39383.js} +1 -1
  12. package/out/_next/static/chunks/pages/{changelog-4cee9fbfd4fdfc70.js → changelog-055db8139a22a592.js} +1 -1
  13. package/out/_next/static/chunks/pages/changes-f43ad4ab5e00f9b9.js +1 -0
  14. package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-d1a4a07e6b600fa6.js → [customTypeId]-ad5936d95fafff44.js} +1 -1
  15. package/out/_next/static/chunks/pages/{labs-566a982a3e954547.js → labs-73a12d2fe0233fb9.js} +1 -1
  16. package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-a724ff12ef322020.js → [pageTypeId]-5ccb44e013a3b002.js} +1 -1
  17. package/out/_next/static/chunks/pages/{settings-6c2777758905c784.js → settings-417f1d5c1e558c88.js} +1 -1
  18. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-a8933b0ef10806cd.js +1 -0
  19. package/out/_next/static/chunks/pages/{slices-a633527fee62b6cd.js → slices-3c9b08adf578b020.js} +1 -1
  20. package/out/_next/static/css/{838fd8bb5a7c32b0.css → 0e0d6c4ec6bf7373.css} +1 -1
  21. package/out/_next/static/css/{b22c0750c14cc089.css → 27f2b9b9c9f65885.css} +1 -1
  22. package/out/_next/static/css/{72465cc1225f28a2.css → 57a7e5eb58b45860.css} +1 -1
  23. package/out/_next/static/css/{82840c077aa9a9d5.css → fa4e416634515cbb.css} +1 -1
  24. package/out/_next/static/{SeCJEnBCgA3-t7xVTefII → p-7eJUu7gNSRAriJWjZOw}/_buildManifest.js +1 -1
  25. package/out/changelog.html +1 -1
  26. package/out/changes.html +1 -1
  27. package/out/custom-types/[customTypeId].html +1 -1
  28. package/out/custom-types.html +1 -1
  29. package/out/index.html +1 -1
  30. package/out/labs.html +1 -1
  31. package/out/page-types/[pageTypeId].html +1 -1
  32. package/out/settings.html +1 -1
  33. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  34. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  35. package/out/slices.html +1 -1
  36. package/package.json +5 -3
  37. package/src/components/ContentTabs/ContentTabs.module.css +60 -0
  38. package/src/components/ContentTabs/ContentTabs.module.css.d.ts +12 -0
  39. package/src/components/ContentTabs/ContentTabs.tsx +1 -1
  40. package/src/components/HoverCard/HoverCard.module.css +79 -0
  41. package/src/components/HoverCard/HoverCard.module.css.d.ts +13 -0
  42. package/src/components/HoverCard/HoverCard.tsx +1 -1
  43. package/src/components/TextLink/TextLink.module.css +58 -0
  44. package/src/components/TextLink/TextLink.module.css.d.ts +11 -0
  45. package/src/components/TextLink/TextLink.tsx +4 -4
  46. package/src/domain/__tests__/slice.test.ts +41 -0
  47. package/src/domain/slice.ts +25 -0
  48. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +1 -1
  49. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +1 -1
  50. package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.module.css +14 -0
  51. package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.module.css.d.ts +6 -0
  52. package/src/features/slices/convertLegacySlice/ConvertLegacySliceMergeWithIdenticalDialog.tsx +2 -5
  53. package/src/features/slices/sliceBuilder/useGroupsInSlicesExperiment.ts +8 -0
  54. package/test/__setup__.ts +3 -0
  55. package/components/Forms/RenameVariationModal/RenameVariationModal.css.ts +0 -7
  56. package/components/Navigation/index.css.ts +0 -5
  57. package/out/_next/static/chunks/318-d6f1200138628ec3.js +0 -1
  58. package/out/_next/static/chunks/904-cac58924044acc83.js +0 -1
  59. package/out/_next/static/chunks/pages/changes-b1d7cb1c845848ee.js +0 -1
  60. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-24acc6726cb20b65.js +0 -1
  61. package/src/components/ContentTabs/ContentTabs.css.ts +0 -49
  62. package/src/components/HoverCard/HoverCard.css.ts +0 -105
  63. package/src/components/TextLink/TextLink.css.ts +0 -65
  64. package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.css.ts +0 -15
  65. /package/out/_next/static/{SeCJEnBCgA3-t7xVTefII → p-7eJUu7gNSRAriJWjZOw}/_ssgManifest.js +0 -0
@@ -1,49 +0,0 @@
1
- import { colors, sprinkles, vars } from "@prismicio/editor-ui";
2
- import { style } from "@vanilla-extract/css";
3
-
4
- const flex = sprinkles({ all: "unset", display: "flex" });
5
-
6
- const column = style([flex, sprinkles({ flexDirection: "column" })]);
7
-
8
- const row = style([flex, sprinkles({ flexDirection: "row" })]);
9
-
10
- export const root = style([
11
- column,
12
- sprinkles({ backgroundColor: colors.grey1, minHeight: 0 }),
13
- ]);
14
-
15
- export const list = style([
16
- row,
17
- sprinkles({
18
- borderBottomColor: colors.grey5,
19
- borderBottomStyle: "solid",
20
- borderBottomWidth: 1,
21
- paddingInline: 16,
22
- }),
23
- ]);
24
-
25
- export const trigger = style([
26
- column,
27
- sprinkles({ color: colors.grey11, cursor: "pointer", paddingBlock: 8 }),
28
- {
29
- selectors: {
30
- "&:not(:last-child)": { marginRight: vars.space[16] },
31
- '&[data-state="active"]': {
32
- boxShadow: "inset 0 -1px 0 0 currentColor, 0 1px 0 0 currentColor",
33
- color: vars.color.purpleLight9,
34
- },
35
- },
36
- },
37
- ]);
38
-
39
- export const triggerText = style({
40
- lineHeight: "32px",
41
- });
42
-
43
- export const content = style([
44
- column,
45
- sprinkles({ minHeight: 0, outline: "none" }),
46
- { flex: 1, selectors: { '&[data-state="inactive"]': { display: "none" } } },
47
- ]);
48
-
49
- export const scrollArea = sprinkles({ padding: 16 });
@@ -1,105 +0,0 @@
1
- import { colors, sprinkles, vars } from "@prismicio/editor-ui";
2
- import { style } from "@vanilla-extract/css";
3
-
4
- const block = style([
5
- sprinkles({
6
- all: "unset",
7
- boxSizing: "border-box",
8
- fontFamily: "body",
9
- }),
10
- ]);
11
-
12
- const blockWithDisplayRevert = style([
13
- block,
14
- sprinkles({
15
- display: "revert",
16
- }),
17
- ]);
18
-
19
- export const root = style([
20
- blockWithDisplayRevert,
21
- {
22
- width: "288px",
23
- },
24
- ]);
25
-
26
- export const title = style([
27
- block,
28
- sprinkles({
29
- alignItems: "center",
30
- borderBottomStyle: "solid",
31
- borderColor: colors.grey6,
32
- borderWidth: 1,
33
- color: colors.grey12,
34
- display: "flex",
35
- justifyContent: "space-between",
36
- marginBottom: 16,
37
- paddingBottom: 4,
38
- paddingLeft: 16,
39
- paddingRight: 6,
40
- paddingTop: 4,
41
- }),
42
- {
43
- fontSize: "12px",
44
- fontWeight: "500",
45
- lineHeight: "16px",
46
- },
47
- ]);
48
-
49
- export const titleCloseIcon = style([
50
- block,
51
- sprinkles({
52
- color: colors.grey11,
53
- display: "flex",
54
- padding: 4,
55
- }),
56
- {
57
- ":hover": { cursor: vars.cursor.pointer },
58
- },
59
- ]);
60
-
61
- export const mediaContainer = style([
62
- block,
63
- sprinkles({
64
- display: "flex",
65
- marginBottom: 8,
66
- paddingInline: 16,
67
- }),
68
- ]);
69
-
70
- export const media = style([
71
- blockWithDisplayRevert,
72
- sprinkles({
73
- borderColor: colors.grey6,
74
- borderRadius: 6,
75
- borderStyle: "solid",
76
- borderWidth: 1,
77
- overflow: "hidden",
78
- width: "100%",
79
- }),
80
- {
81
- height: "146px",
82
- },
83
- ]);
84
-
85
- export const description = style([
86
- blockWithDisplayRevert,
87
- sprinkles({
88
- color: colors.grey11,
89
- marginBottom: 16,
90
- paddingInline: 16,
91
- }),
92
- {
93
- fontSize: "12px",
94
- fontWeight: "400",
95
- lineHeight: "20px",
96
- },
97
- ]);
98
-
99
- export const closeButtonContainer = style([
100
- blockWithDisplayRevert,
101
- sprinkles({
102
- paddingBottom: 16,
103
- paddingInline: 16,
104
- }),
105
- ]);
@@ -1,65 +0,0 @@
1
- import { style, styleVariants } from "@vanilla-extract/css";
2
-
3
- import { colors, selectors, sprinkles } from "@prismicio/editor-ui";
4
-
5
- export const root = style([
6
- sprinkles({
7
- all: "unset",
8
- cursor: "pointer",
9
- display: "flex",
10
- alignItems: "center",
11
- }),
12
- {
13
- ":focus-visible": {
14
- outline: "none",
15
- textDecorationLine: "underline",
16
- },
17
- },
18
- ]);
19
-
20
- export const colorVariant = {
21
- primary: sprinkles({
22
- color: {
23
- ...colors.purple9,
24
- ...selectors.hover(colors.purple8),
25
- ...selectors.active(colors.purple9),
26
- },
27
- }),
28
- secondary: sprinkles({
29
- color: {
30
- ...colors.indigo11,
31
- ...selectors.hover(colors.indigo10),
32
- ...selectors.active(colors.indigo11),
33
- },
34
- }),
35
- };
36
-
37
- /* TODO move paddingLeft to iconVariant style objects */
38
- export const endIcon = sprinkles({
39
- paddingLeft: 4,
40
- });
41
-
42
- export const iconVariant = styleVariants({
43
- normal: [
44
- {
45
- fontSize: "1.2rem",
46
- width: "18px",
47
- height: "18px",
48
- },
49
- ],
50
- smallBold: [
51
- {
52
- fontSize: "1rem",
53
- width: "16px",
54
- height: "16px",
55
- },
56
- ],
57
- inherit: [
58
- sprinkles({ fontFamily: "inherit" }),
59
- {
60
- fontSize: "inherit",
61
- width: "inherit",
62
- height: "inherit",
63
- },
64
- ],
65
- });
@@ -1,15 +0,0 @@
1
- import { sprinkles } from "@prismicio/editor-ui";
2
-
3
- export const scrollArea = sprinkles({
4
- height: "100%",
5
- display: "flex",
6
- gap: 8,
7
- paddingInline: 16,
8
- paddingBlock: 16,
9
- });
10
-
11
- export const label = sprinkles({
12
- display: "inline-flex",
13
- alignItems: "center",
14
- gap: 4,
15
- });