slice-machine-ui 1.26.1-beta.1 → 1.26.1-beta.10
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/components/AppLayout/index.tsx +2 -2
- package/components/Forms/RenameVariationModal/RenameVariationModal.module.css +5 -0
- package/components/Forms/RenameVariationModal/RenameVariationModal.tsx +1 -1
- package/components/Navigation/index.module.css +3 -0
- package/components/Navigation/index.tsx +1 -1
- package/lib/builders/SliceBuilder/FieldZones/index.tsx +93 -28
- package/lib/builders/SliceBuilder/index.tsx +5 -1
- package/lib/builders/common/Zone/components/EmptyState/index.tsx +1 -1
- package/out/404.html +1 -1
- package/out/_next/static/chunks/318-77a29f41c3a027e3.js +1 -0
- package/out/_next/static/chunks/382-aacd61be9adba45a.js +1 -0
- package/out/_next/static/chunks/{727-2c302be2def92786.js → 727-d0d6a29f0793bde2.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-756c037ed6c707e9.js → _app-f7ec0d037993439e.js} +1 -1
- package/out/_next/static/chunks/pages/{changelog-5c9ac93faf0df06b.js → changelog-055db8139a22a592.js} +1 -1
- package/out/_next/static/chunks/pages/changes-f43ad4ab5e00f9b9.js +1 -0
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-d1a4a07e6b600fa6.js → [customTypeId]-89ccb93ce7409ad0.js} +1 -1
- package/out/_next/static/chunks/pages/{labs-6f5925cd6cdcee9e.js → labs-73a12d2fe0233fb9.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-a724ff12ef322020.js → [pageTypeId]-dbf86fe3a94dc892.js} +1 -1
- package/out/_next/static/chunks/pages/{settings-f0620e5b727cda03.js → settings-417f1d5c1e558c88.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-a8933b0ef10806cd.js +1 -0
- package/out/_next/static/chunks/pages/slices-3c9b08adf578b020.js +1 -0
- package/out/_next/static/css/{838fd8bb5a7c32b0.css → 0e0d6c4ec6bf7373.css} +1 -1
- package/out/_next/static/css/{b22c0750c14cc089.css → 27f2b9b9c9f65885.css} +1 -1
- package/out/_next/static/css/{72465cc1225f28a2.css → 6e65ff596e3b465e.css} +1 -1
- package/out/_next/static/css/{21654235130d0806.css → fa4e416634515cbb.css} +1 -1
- package/out/_next/static/{dLmvq3LL0BsWu15laiKoK → w56F6n1XbyP8jyJHeri22}/_buildManifest.js +1 -1
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +5 -3
- package/pages/changes.tsx +4 -1
- package/pages/slices.tsx +4 -1
- package/src/components/Breadcrumb/Breadcrumb.module.css +11 -0
- package/src/components/Breadcrumb/Breadcrumb.module.css.d.ts +6 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +34 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +43 -25
- package/src/components/Breadcrumb/index.ts +1 -1
- package/src/components/CodeBlock/CodeBlock.module.css +46 -0
- package/src/components/CodeBlock/CodeBlock.module.css.d.ts +10 -0
- package/src/components/CodeBlock/CodeBlock.tsx +1 -1
- package/src/components/ContentTabs/ContentTabs.module.css +60 -0
- package/src/components/ContentTabs/ContentTabs.module.css.d.ts +12 -0
- package/src/components/ContentTabs/ContentTabs.tsx +1 -1
- package/src/components/Count/Count.module.css +19 -0
- package/src/components/Count/Count.module.css.d.ts +6 -0
- package/src/components/{Counter/Counter.stories.tsx → Count/Count.stories.tsx} +3 -3
- package/src/components/{Counter/Counter.tsx → Count/Count.tsx} +2 -2
- package/src/components/Count/index.ts +1 -0
- package/src/components/HoverCard/HoverCard.module.css +79 -0
- package/src/components/HoverCard/HoverCard.module.css.d.ts +13 -0
- package/src/components/HoverCard/HoverCard.tsx +1 -1
- package/src/components/TextLink/TextLink.module.css +58 -0
- package/src/components/TextLink/TextLink.module.css.d.ts +11 -0
- package/src/components/TextLink/TextLink.tsx +4 -4
- package/src/domain/__tests__/slice.test.ts +41 -0
- package/src/domain/slice.ts +25 -0
- package/src/features/customTypes/__tests__/CustomTypeBuilderPage.test.tsx +5 -6
- package/src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage.tsx +9 -4
- package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +11 -12
- package/src/features/inAppGuide/InAppGuideDialog.tsx +2 -2
- package/src/features/labs/labsList/LabsPage.tsx +4 -1
- package/src/features/settings/SettingsPage.tsx +4 -1
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +1 -1
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +1 -1
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.module.css +14 -0
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.module.css.d.ts +6 -0
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceMergeWithIdenticalDialog.tsx +2 -5
- package/src/features/slices/sliceBuilder/useGroupsInSlicesExperiment.ts +8 -0
- package/test/__setup__.ts +3 -0
- package/components/Forms/RenameVariationModal/RenameVariationModal.css.ts +0 -7
- package/components/Navigation/index.css.ts +0 -5
- package/out/_next/static/chunks/318-d6f1200138628ec3.js +0 -1
- package/out/_next/static/chunks/904-c9221a5cb09524e8.js +0 -1
- package/out/_next/static/chunks/pages/changes-3e4989e09fd412a8.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-8d7043e6638d65cd.js +0 -1
- package/out/_next/static/chunks/pages/slices-77cff50b1df13579.js +0 -1
- package/src/components/Breadcrumb/Breadcrumb.css.ts +0 -5
- package/src/components/Breadcrumb/Breadcrumb.stories.ts +0 -32
- package/src/components/CodeBlock/CodeBlock.css.ts +0 -37
- package/src/components/ContentTabs/ContentTabs.css.ts +0 -49
- package/src/components/Counter/Counter.css.ts +0 -26
- package/src/components/Counter/index.ts +0 -1
- package/src/components/HoverCard/HoverCard.css.ts +0 -105
- package/src/components/TextLink/TextLink.css.ts +0 -65
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.css.ts +0 -15
- /package/out/_next/static/{dLmvq3LL0BsWu15laiKoK → w56F6n1XbyP8jyJHeri22}/_ssgManifest.js +0 -0
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { style } from "@vanilla-extract/css";
|
|
2
|
-
import { colors, sprinkles } from "@prismicio/editor-ui";
|
|
3
|
-
|
|
4
|
-
export const root = sprinkles({
|
|
5
|
-
all: "unset",
|
|
6
|
-
display: "revert",
|
|
7
|
-
borderWidth: 1,
|
|
8
|
-
borderRadius: 6,
|
|
9
|
-
borderStyle: "solid",
|
|
10
|
-
borderColor: colors.grey6,
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export const header = sprinkles({
|
|
14
|
-
all: "unset",
|
|
15
|
-
display: "flex",
|
|
16
|
-
alignItems: "center",
|
|
17
|
-
justifyContent: "space-between",
|
|
18
|
-
borderTopRightRadius: 4,
|
|
19
|
-
borderTopLeftRadius: 4,
|
|
20
|
-
borderBottomStyle: "solid",
|
|
21
|
-
borderBottomWidth: 1,
|
|
22
|
-
backgroundColor: colors.grey2,
|
|
23
|
-
borderBottomColor: colors.grey6,
|
|
24
|
-
paddingBlock: 4,
|
|
25
|
-
paddingRight: 4,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
export const fileInfo = sprinkles({
|
|
29
|
-
all: "unset",
|
|
30
|
-
display: "flex",
|
|
31
|
-
justifyContent: "space-between",
|
|
32
|
-
alignItems: "center",
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
export const fileName = style({
|
|
36
|
-
lineHeight: "32px",
|
|
37
|
-
});
|
|
@@ -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,26 +0,0 @@
|
|
|
1
|
-
import { colors, sprinkles } from "@prismicio/editor-ui";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
|
|
4
|
-
export const root = sprinkles({
|
|
5
|
-
all: "unset",
|
|
6
|
-
display: "inline-flex",
|
|
7
|
-
alignItems: "center",
|
|
8
|
-
position: "relative",
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export const count = style([
|
|
12
|
-
sprinkles({
|
|
13
|
-
all: "unset",
|
|
14
|
-
display: "revert",
|
|
15
|
-
color: colors.grey1,
|
|
16
|
-
fontFamily: "body",
|
|
17
|
-
position: "absolute",
|
|
18
|
-
}),
|
|
19
|
-
{
|
|
20
|
-
fontSize: "9px",
|
|
21
|
-
fontWeight: 500,
|
|
22
|
-
left: "50%",
|
|
23
|
-
top: "50%",
|
|
24
|
-
transform: "translate(-50%, -50%)",
|
|
25
|
-
},
|
|
26
|
-
]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Counter } from "./Counter";
|
|
@@ -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
|
-
});
|
|
File without changes
|