@ezpg/app-ui 0.16.0 → 0.18.0
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/CHANGELOG.md +21 -0
- package/lib/module/blocks/cover-photos/cover-photos.js +165 -0
- package/lib/module/blocks/cover-photos/cover-photos.js.map +1 -0
- package/lib/module/blocks/cover-photos/index.js +4 -0
- package/lib/module/blocks/cover-photos/index.js.map +1 -0
- package/lib/module/blocks/detail-editor/compare-slider.js +117 -0
- package/lib/module/blocks/detail-editor/compare-slider.js.map +1 -0
- package/lib/module/blocks/detail-editor/detail-canvas.js +339 -0
- package/lib/module/blocks/detail-editor/detail-canvas.js.map +1 -0
- package/lib/module/blocks/detail-editor/detail-composer.js +254 -0
- package/lib/module/blocks/detail-editor/detail-composer.js.map +1 -0
- package/lib/module/blocks/detail-editor/detail-editor-template.js +102 -0
- package/lib/module/blocks/detail-editor/detail-editor-template.js.map +1 -0
- package/lib/module/blocks/detail-editor/detail-types.js +64 -0
- package/lib/module/blocks/detail-editor/detail-types.js.map +1 -0
- package/lib/module/blocks/detail-editor/draft-preview.js +39 -0
- package/lib/module/blocks/detail-editor/draft-preview.js.map +1 -0
- package/lib/module/blocks/detail-editor/draft-strip.js +97 -0
- package/lib/module/blocks/detail-editor/draft-strip.js.map +1 -0
- package/lib/module/blocks/detail-editor/editor-bar.js +96 -0
- package/lib/module/blocks/detail-editor/editor-bar.js.map +1 -0
- package/lib/module/blocks/detail-editor/focus-context.js +5 -0
- package/lib/module/blocks/detail-editor/focus-context.js.map +1 -0
- package/lib/module/blocks/detail-editor/font-picker.js +74 -0
- package/lib/module/blocks/detail-editor/font-picker.js.map +1 -0
- package/lib/module/blocks/detail-editor/index.js +16 -0
- package/lib/module/blocks/detail-editor/index.js.map +1 -0
- package/lib/module/blocks/detail-editor/layout-picker.js +173 -0
- package/lib/module/blocks/detail-editor/layout-picker.js.map +1 -0
- package/lib/module/blocks/detail-editor/photo-tray.js +144 -0
- package/lib/module/blocks/detail-editor/photo-tray.js.map +1 -0
- package/lib/module/blocks/detail-editor/structure-picker.js +75 -0
- package/lib/module/blocks/detail-editor/structure-picker.js.map +1 -0
- package/lib/module/blocks/detail-editor/tool-row.js +63 -0
- package/lib/module/blocks/detail-editor/tool-row.js.map +1 -0
- package/lib/module/blocks/index.js +3 -0
- package/lib/module/blocks/index.js.map +1 -1
- package/lib/module/blocks/slider-list/index.js +4 -0
- package/lib/module/blocks/slider-list/index.js.map +1 -0
- package/lib/module/blocks/slider-list/slider-list.js +45 -0
- package/lib/module/blocks/slider-list/slider-list.js.map +1 -0
- package/lib/module/blocks/task-tiles/task-tiles.js +1 -1
- package/lib/module/blocks/task-tiles/task-tiles.js.map +1 -1
- package/lib/module/charts/mini-bars.js +1 -1
- package/lib/module/charts/mini-bars.js.map +1 -1
- package/lib/module/components/button/button.js +10 -3
- package/lib/module/components/button/button.js.map +1 -1
- package/lib/module/components/floating-tab-bar/floating-tab-bar.js +103 -0
- package/lib/module/components/floating-tab-bar/floating-tab-bar.js.map +1 -0
- package/lib/module/components/floating-tab-bar/index.js +4 -0
- package/lib/module/components/floating-tab-bar/index.js.map +1 -0
- package/lib/module/components/list-row/list-row.js +9 -3
- package/lib/module/components/list-row/list-row.js.map +1 -1
- package/lib/module/components/section-tabs/index.js +4 -0
- package/lib/module/components/section-tabs/index.js.map +1 -0
- package/lib/module/components/section-tabs/section-tabs.js +73 -0
- package/lib/module/components/section-tabs/section-tabs.js.map +1 -0
- package/lib/module/components/slider/index.js +4 -0
- package/lib/module/components/slider/index.js.map +1 -0
- package/lib/module/components/slider/slider.js +151 -0
- package/lib/module/components/slider/slider.js.map +1 -0
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/flush-row.js +5 -0
- package/lib/module/internal/flush-row.js.map +1 -0
- package/lib/module/internal/pressable-base.js +3 -2
- package/lib/module/internal/pressable-base.js.map +1 -1
- package/lib/module/internal/tab-icon-pairs.js +25 -0
- package/lib/module/internal/tab-icon-pairs.js.map +1 -0
- package/lib/module/sortable/block-strip.js +151 -0
- package/lib/module/sortable/block-strip.js.map +1 -0
- package/lib/module/sortable/index.js +1 -0
- package/lib/module/sortable/index.js.map +1 -1
- package/lib/module/templates/index.js +1 -0
- package/lib/module/templates/index.js.map +1 -1
- package/lib/module/templates/parts.js +42 -2
- package/lib/module/templates/parts.js.map +1 -1
- package/lib/module/templates/sheet-form-template.js +174 -0
- package/lib/module/templates/sheet-form-template.js.map +1 -0
- package/lib/module/theme/base.js +4 -4
- package/lib/typescript/src/blocks/cover-photos/cover-photos.d.ts +16 -0
- package/lib/typescript/src/blocks/cover-photos/cover-photos.d.ts.map +1 -0
- package/lib/typescript/src/blocks/cover-photos/index.d.ts +2 -0
- package/lib/typescript/src/blocks/cover-photos/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/compare-slider.d.ts +8 -0
- package/lib/typescript/src/blocks/detail-editor/compare-slider.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/detail-canvas.d.ts +13 -0
- package/lib/typescript/src/blocks/detail-editor/detail-canvas.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/detail-composer.d.ts +25 -0
- package/lib/typescript/src/blocks/detail-editor/detail-composer.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/detail-editor-template.d.ts +13 -0
- package/lib/typescript/src/blocks/detail-editor/detail-editor-template.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/detail-types.d.ts +55 -0
- package/lib/typescript/src/blocks/detail-editor/detail-types.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/draft-preview.d.ts +8 -0
- package/lib/typescript/src/blocks/detail-editor/draft-preview.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/draft-strip.d.ts +16 -0
- package/lib/typescript/src/blocks/detail-editor/draft-strip.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/editor-bar.d.ts +18 -0
- package/lib/typescript/src/blocks/detail-editor/editor-bar.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/focus-context.d.ts +6 -0
- package/lib/typescript/src/blocks/detail-editor/focus-context.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/font-picker.d.ts +8 -0
- package/lib/typescript/src/blocks/detail-editor/font-picker.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/index.d.ts +14 -0
- package/lib/typescript/src/blocks/detail-editor/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/layout-picker.d.ts +11 -0
- package/lib/typescript/src/blocks/detail-editor/layout-picker.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/photo-tray.d.ts +15 -0
- package/lib/typescript/src/blocks/detail-editor/photo-tray.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/structure-picker.d.ts +13 -0
- package/lib/typescript/src/blocks/detail-editor/structure-picker.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/tool-row.d.ts +13 -0
- package/lib/typescript/src/blocks/detail-editor/tool-row.d.ts.map +1 -0
- package/lib/typescript/src/blocks/index.d.ts +3 -0
- package/lib/typescript/src/blocks/index.d.ts.map +1 -1
- package/lib/typescript/src/blocks/slider-list/index.d.ts +2 -0
- package/lib/typescript/src/blocks/slider-list/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/slider-list/slider-list.d.ts +17 -0
- package/lib/typescript/src/blocks/slider-list/slider-list.d.ts.map +1 -0
- package/lib/typescript/src/components/button/button.d.ts.map +1 -1
- package/lib/typescript/src/components/floating-tab-bar/floating-tab-bar.d.ts +20 -0
- package/lib/typescript/src/components/floating-tab-bar/floating-tab-bar.d.ts.map +1 -0
- package/lib/typescript/src/components/floating-tab-bar/index.d.ts +2 -0
- package/lib/typescript/src/components/floating-tab-bar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/list-row/list-row.d.ts.map +1 -1
- package/lib/typescript/src/components/section-tabs/index.d.ts +2 -0
- package/lib/typescript/src/components/section-tabs/index.d.ts.map +1 -0
- package/lib/typescript/src/components/section-tabs/section-tabs.d.ts +14 -0
- package/lib/typescript/src/components/section-tabs/section-tabs.d.ts.map +1 -0
- package/lib/typescript/src/components/slider/index.d.ts +2 -0
- package/lib/typescript/src/components/slider/index.d.ts.map +1 -0
- package/lib/typescript/src/components/slider/slider.d.ts +14 -0
- package/lib/typescript/src/components/slider/slider.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/internal/flush-row.d.ts +2 -0
- package/lib/typescript/src/internal/flush-row.d.ts.map +1 -0
- package/lib/typescript/src/internal/pressable-base.d.ts +2 -1
- package/lib/typescript/src/internal/pressable-base.d.ts.map +1 -1
- package/lib/typescript/src/internal/tab-icon-pairs.d.ts +23 -0
- package/lib/typescript/src/internal/tab-icon-pairs.d.ts.map +1 -0
- package/lib/typescript/src/sortable/block-strip.d.ts +14 -0
- package/lib/typescript/src/sortable/block-strip.d.ts.map +1 -0
- package/lib/typescript/src/sortable/index.d.ts +1 -0
- package/lib/typescript/src/sortable/index.d.ts.map +1 -1
- package/lib/typescript/src/templates/index.d.ts +2 -0
- package/lib/typescript/src/templates/index.d.ts.map +1 -1
- package/lib/typescript/src/templates/parts.d.ts +2 -1
- package/lib/typescript/src/templates/parts.d.ts.map +1 -1
- package/lib/typescript/src/templates/sheet-form-template.d.ts +31 -0
- package/lib/typescript/src/templates/sheet-form-template.d.ts.map +1 -0
- package/lib/typescript/src/theme/base.d.ts +4 -4
- package/package.json +1 -1
- package/src/blocks/cover-photos/cover-photos.tsx +176 -0
- package/src/blocks/cover-photos/index.ts +5 -0
- package/src/blocks/detail-editor/compare-slider.tsx +112 -0
- package/src/blocks/detail-editor/detail-canvas.tsx +369 -0
- package/src/blocks/detail-editor/detail-composer.tsx +261 -0
- package/src/blocks/detail-editor/detail-editor-template.tsx +109 -0
- package/src/blocks/detail-editor/detail-types.ts +113 -0
- package/src/blocks/detail-editor/draft-preview.tsx +34 -0
- package/src/blocks/detail-editor/draft-strip.tsx +102 -0
- package/src/blocks/detail-editor/editor-bar.tsx +116 -0
- package/src/blocks/detail-editor/focus-context.ts +7 -0
- package/src/blocks/detail-editor/font-picker.tsx +75 -0
- package/src/blocks/detail-editor/index.ts +57 -0
- package/src/blocks/detail-editor/layout-picker.tsx +158 -0
- package/src/blocks/detail-editor/photo-tray.tsx +140 -0
- package/src/blocks/detail-editor/structure-picker.tsx +75 -0
- package/src/blocks/detail-editor/tool-row.tsx +66 -0
- package/src/blocks/index.tsx +3 -0
- package/src/blocks/slider-list/index.ts +5 -0
- package/src/blocks/slider-list/slider-list.tsx +57 -0
- package/src/blocks/task-tiles/task-tiles.tsx +1 -1
- package/src/charts/mini-bars.tsx +1 -1
- package/src/components/button/button.tsx +10 -3
- package/src/components/floating-tab-bar/floating-tab-bar.tsx +121 -0
- package/src/components/floating-tab-bar/index.ts +7 -0
- package/src/components/list-row/list-row.tsx +7 -1
- package/src/components/section-tabs/index.ts +5 -0
- package/src/components/section-tabs/section-tabs.tsx +87 -0
- package/src/components/slider/index.ts +1 -0
- package/src/components/slider/slider.tsx +142 -0
- package/src/index.tsx +3 -0
- package/src/internal/flush-row.ts +3 -0
- package/src/internal/pressable-base.tsx +3 -1
- package/src/internal/tab-icon-pairs.ts +22 -0
- package/src/sortable/block-strip.tsx +168 -0
- package/src/sortable/index.ts +5 -0
- package/src/templates/index.ts +5 -0
- package/src/templates/parts.tsx +46 -1
- package/src/templates/sheet-form-template.tsx +190 -0
- package/src/theme/base.ts +4 -4
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { KeyboardAvoidingView, ScrollView, View } from 'react-native';
|
|
4
|
+
import { Text } from "../components/text/text.js";
|
|
5
|
+
import { ChevronGlyph } from "../internal/glyphs.js";
|
|
6
|
+
import { PressableBase } from "../internal/pressable-base.js";
|
|
7
|
+
import { useTheme } from "../theme/theme-provider.js";
|
|
8
|
+
import { makeStyles } from "../utils/styles.js";
|
|
9
|
+
import { FlushRowContext } from "../internal/flush-row.js";
|
|
10
|
+
import { BottomBar } from "./parts.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const useStyles = makeStyles(t => ({
|
|
13
|
+
root: {
|
|
14
|
+
flex: 1,
|
|
15
|
+
backgroundColor: t.colors.background
|
|
16
|
+
},
|
|
17
|
+
header: {
|
|
18
|
+
height: t.headerHeight,
|
|
19
|
+
flexDirection: 'row',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
paddingHorizontal: t.space[1],
|
|
22
|
+
backgroundColor: t.colors.surface
|
|
23
|
+
},
|
|
24
|
+
side: {
|
|
25
|
+
minWidth: t.minTouchSize * 2,
|
|
26
|
+
height: t.minTouchSize,
|
|
27
|
+
justifyContent: 'center'
|
|
28
|
+
},
|
|
29
|
+
end: {
|
|
30
|
+
alignItems: 'flex-end',
|
|
31
|
+
paddingHorizontal: t.space[3]
|
|
32
|
+
},
|
|
33
|
+
back: {
|
|
34
|
+
width: t.minTouchSize,
|
|
35
|
+
height: t.minTouchSize,
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
justifyContent: 'center',
|
|
38
|
+
transform: [{
|
|
39
|
+
scaleX: -1
|
|
40
|
+
}]
|
|
41
|
+
},
|
|
42
|
+
title: {
|
|
43
|
+
flex: 1,
|
|
44
|
+
textAlign: 'center',
|
|
45
|
+
fontSize: t.typography.title.fontSize,
|
|
46
|
+
lineHeight: t.typography.title.lineHeight
|
|
47
|
+
},
|
|
48
|
+
body: {
|
|
49
|
+
padding: t.space[3],
|
|
50
|
+
gap: t.space[3]
|
|
51
|
+
},
|
|
52
|
+
block: {
|
|
53
|
+
padding: t.space[4],
|
|
54
|
+
gap: t.space[3],
|
|
55
|
+
borderRadius: t.radius.lg,
|
|
56
|
+
backgroundColor: t.colors.surface
|
|
57
|
+
},
|
|
58
|
+
head: {
|
|
59
|
+
flexDirection: 'row',
|
|
60
|
+
alignItems: 'center',
|
|
61
|
+
justifyContent: 'space-between',
|
|
62
|
+
gap: t.space[2]
|
|
63
|
+
},
|
|
64
|
+
lead: {
|
|
65
|
+
flexDirection: 'row',
|
|
66
|
+
alignItems: 'center',
|
|
67
|
+
gap: t.space[1]
|
|
68
|
+
},
|
|
69
|
+
blockTitle: {
|
|
70
|
+
fontSize: t.typography.title.fontSize,
|
|
71
|
+
lineHeight: t.typography.title.lineHeight
|
|
72
|
+
}
|
|
73
|
+
}));
|
|
74
|
+
export function SheetBlock({
|
|
75
|
+
title,
|
|
76
|
+
aside,
|
|
77
|
+
lead,
|
|
78
|
+
onLayout,
|
|
79
|
+
children
|
|
80
|
+
}) {
|
|
81
|
+
const s = useStyles();
|
|
82
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
83
|
+
onLayout: onLayout,
|
|
84
|
+
style: s.block,
|
|
85
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
86
|
+
style: s.head,
|
|
87
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
88
|
+
style: s.lead,
|
|
89
|
+
children: [lead, /*#__PURE__*/_jsx(Text, {
|
|
90
|
+
weight: "bold",
|
|
91
|
+
accessibilityRole: "header",
|
|
92
|
+
style: s.blockTitle,
|
|
93
|
+
children: title
|
|
94
|
+
})]
|
|
95
|
+
}), aside]
|
|
96
|
+
}), /*#__PURE__*/_jsx(FlushRowContext.Provider, {
|
|
97
|
+
value: true,
|
|
98
|
+
children: children
|
|
99
|
+
})]
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
export function SheetFormTemplate({
|
|
103
|
+
title,
|
|
104
|
+
onBack,
|
|
105
|
+
backLabel = '뒤로',
|
|
106
|
+
action,
|
|
107
|
+
tabs,
|
|
108
|
+
primaryAction,
|
|
109
|
+
secondaryAction,
|
|
110
|
+
topInset = 0,
|
|
111
|
+
bottomInset = 0,
|
|
112
|
+
scrollRef,
|
|
113
|
+
onScrollY,
|
|
114
|
+
children
|
|
115
|
+
}) {
|
|
116
|
+
const t = useTheme();
|
|
117
|
+
const s = useStyles();
|
|
118
|
+
return /*#__PURE__*/_jsxs(KeyboardAvoidingView, {
|
|
119
|
+
behavior: "padding",
|
|
120
|
+
style: s.root,
|
|
121
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
122
|
+
style: {
|
|
123
|
+
paddingTop: topInset,
|
|
124
|
+
backgroundColor: t.colors.surface
|
|
125
|
+
},
|
|
126
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
127
|
+
style: s.header,
|
|
128
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
129
|
+
style: s.side,
|
|
130
|
+
children: onBack ? /*#__PURE__*/_jsx(PressableBase, {
|
|
131
|
+
accessibilityLabel: backLabel,
|
|
132
|
+
onPress: onBack,
|
|
133
|
+
style: s.back,
|
|
134
|
+
children: /*#__PURE__*/_jsx(ChevronGlyph, {
|
|
135
|
+
color: t.colors.foreground,
|
|
136
|
+
size: 24
|
|
137
|
+
})
|
|
138
|
+
}) : null
|
|
139
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
140
|
+
weight: "bold",
|
|
141
|
+
numberOfLines: 1,
|
|
142
|
+
accessibilityRole: "header",
|
|
143
|
+
style: s.title,
|
|
144
|
+
children: title
|
|
145
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
146
|
+
style: [s.side, s.end],
|
|
147
|
+
children: action ? /*#__PURE__*/_jsx(PressableBase, {
|
|
148
|
+
accessibilityRole: "button",
|
|
149
|
+
disabled: action.disabled,
|
|
150
|
+
onPress: action.onPress,
|
|
151
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
152
|
+
weight: "medium",
|
|
153
|
+
tone: action.disabled ? 'muted' : undefined,
|
|
154
|
+
children: action.label
|
|
155
|
+
})
|
|
156
|
+
}) : null
|
|
157
|
+
})]
|
|
158
|
+
})
|
|
159
|
+
}), tabs, /*#__PURE__*/_jsx(ScrollView, {
|
|
160
|
+
ref: scrollRef,
|
|
161
|
+
contentContainerStyle: s.body,
|
|
162
|
+
keyboardShouldPersistTaps: "handled",
|
|
163
|
+
scrollEventThrottle: 32,
|
|
164
|
+
onScroll: onScrollY ? event => onScrollY(event.nativeEvent.contentOffset.y) : undefined,
|
|
165
|
+
children: children
|
|
166
|
+
}), /*#__PURE__*/_jsx(BottomBar, {
|
|
167
|
+
split: true,
|
|
168
|
+
primaryAction: primaryAction,
|
|
169
|
+
secondaryAction: secondaryAction,
|
|
170
|
+
bottomInset: bottomInset
|
|
171
|
+
})]
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
//# sourceMappingURL=sheet-form-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["KeyboardAvoidingView","ScrollView","View","Text","ChevronGlyph","PressableBase","useTheme","makeStyles","FlushRowContext","BottomBar","jsx","_jsx","jsxs","_jsxs","useStyles","t","root","flex","backgroundColor","colors","background","header","height","headerHeight","flexDirection","alignItems","paddingHorizontal","space","surface","side","minWidth","minTouchSize","justifyContent","end","back","width","transform","scaleX","title","textAlign","fontSize","typography","lineHeight","body","padding","gap","block","borderRadius","radius","lg","head","lead","blockTitle","SheetBlock","aside","onLayout","children","s","style","weight","accessibilityRole","Provider","value","SheetFormTemplate","onBack","backLabel","action","tabs","primaryAction","secondaryAction","topInset","bottomInset","scrollRef","onScrollY","behavior","paddingTop","accessibilityLabel","onPress","color","foreground","size","numberOfLines","disabled","tone","undefined","label","ref","contentContainerStyle","keyboardShouldPersistTaps","scrollEventThrottle","onScroll","event","nativeEvent","contentOffset","y","split"],"sourceRoot":"../../../src","sources":["templates/sheet-form-template.tsx"],"mappings":";;AACA,SACEA,oBAAoB,EACpBC,UAAU,EACVC,IAAI,QAEC,cAAc;AACrB,SAASC,IAAI,QAAQ,4BAAyB;AAC9C,SAASC,YAAY,QAAQ,uBAAoB;AACjD,SAASC,aAAa,QAAQ,+BAA4B;AAC1D,SAASC,QAAQ,Q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AAQ,CACC,CAAC,eACb7C,IAAA,CAACF,SAAS;MACRsF,KAAK;MACL3B,aAAa,EAAEA,aAAc;MAC7BC,eAAe,EAAEA,eAAgB;MACjCE,WAAW,EAAEA;IAAY,CAC1B,CAAC;EAAA,CACkB,CAAC;AAE3B","ignoreList":[]}
|
package/lib/module/theme/base.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export const semantic = {
|
|
4
4
|
light: {
|
|
5
|
-
background: '#
|
|
5
|
+
background: '#f4f4f5',
|
|
6
6
|
surface: '#ffffff',
|
|
7
7
|
foreground: '#1a1a1a',
|
|
8
8
|
muted: '#f0f0f0',
|
|
@@ -10,10 +10,10 @@ export const semantic = {
|
|
|
10
10
|
border: '#e3e3e3',
|
|
11
11
|
input: '#c7c7c7',
|
|
12
12
|
ring: '#a3a3a3',
|
|
13
|
-
primary: '#
|
|
14
|
-
primaryForeground: '#
|
|
13
|
+
primary: '#c54211',
|
|
14
|
+
primaryForeground: '#ffffff',
|
|
15
15
|
primaryTint: '#fdf0ea',
|
|
16
|
-
primaryContainer: '#
|
|
16
|
+
primaryContainer: '#f6d3c3',
|
|
17
17
|
primaryEdge: '#ed6431',
|
|
18
18
|
point: '#1a1a1a',
|
|
19
19
|
danger: '#b91c1c',
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
export type CoverPhoto = {
|
|
3
|
+
id: string;
|
|
4
|
+
uri: string;
|
|
5
|
+
status?: 'uploading' | 'failed';
|
|
6
|
+
};
|
|
7
|
+
export type CoverPhotosProps = {
|
|
8
|
+
photos: readonly CoverPhoto[];
|
|
9
|
+
max?: number;
|
|
10
|
+
onAdd?: () => void;
|
|
11
|
+
onPress?: (id: string) => void;
|
|
12
|
+
onRetry?: (id: string) => void;
|
|
13
|
+
style?: StyleProp<ViewStyle>;
|
|
14
|
+
};
|
|
15
|
+
export declare function CoverPhotos({ photos, max, onAdd, onPress, onRetry, style, }: CoverPhotosProps): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=cover-photos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cover-photos.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/cover-photos/cover-photos.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAQtB,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AA8CF,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,GAAQ,EACR,KAAK,EACL,OAAO,EACP,OAAO,EACP,KAAK,GACN,EAAE,gBAAgB,+BA+FlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/cover-photos/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,gBAAgB,GACtB,MAAM,mBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type CompareSliderProps = {
|
|
2
|
+
before: string;
|
|
3
|
+
after: string;
|
|
4
|
+
aspectRatio?: number;
|
|
5
|
+
label?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function CompareSlider({ before, after, aspectRatio, label, }: CompareSliderProps): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=compare-slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-slider.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/compare-slider.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAwCF,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,KAAK,EACL,WAAmB,EACnB,KAAgB,GACjB,EAAE,kBAAkB,+BAmDpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TextStyle } from 'react-native';
|
|
2
|
+
import { type DetailDocValue, type DetailLayer, type DetailSelection } from './detail-types.js';
|
|
3
|
+
export type DetailCanvasProps = {
|
|
4
|
+
doc: DetailDocValue;
|
|
5
|
+
selection?: DetailSelection;
|
|
6
|
+
onSelect?: (selection: DetailSelection) => void;
|
|
7
|
+
scale?: number;
|
|
8
|
+
ink?: string;
|
|
9
|
+
paper?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function textStyleOf(layer: DetailLayer, scale: number, ink: string, paper?: string): TextStyle;
|
|
12
|
+
export declare function DetailCanvas({ doc, selection, onSelect, scale, ink, paper, }: DetailCanvasProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=detail-canvas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detail-canvas.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/detail-canvas.tsx"],"names":[],"mappings":"AAUA,OAAO,EAKL,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAKtB,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,eAAe,EACrB,MAAM,mBAAgB,CAAC;AAExB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,cAAc,CAAC;IACpB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,eAAe,KAAK,IAAI,CAAC;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAwGF,wBAAgB,WAAW,CACzB,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,KAAK,CAAC,EAAE,MAAM,GACb,SAAS,CAuCX;AAUD,wBAAgB,YAAY,CAAC,EAC3B,GAAG,EACH,SAAS,EACT,QAAQ,EACR,KAAS,EACT,GAAG,EACH,KAAK,GACN,EAAE,iBAAiB,+BAkKnB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type ComposerAttachment = {
|
|
2
|
+
key: string;
|
|
3
|
+
kind: 'image' | 'link';
|
|
4
|
+
uri?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
reference?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type ComposerSource = 'library' | 'camera' | 'capture' | 'link';
|
|
9
|
+
export type DetailComposerProps = {
|
|
10
|
+
value: string;
|
|
11
|
+
onChangeText: (text: string) => void;
|
|
12
|
+
placeholder: string;
|
|
13
|
+
onSend: () => void;
|
|
14
|
+
sending?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
attachments?: readonly ComposerAttachment[];
|
|
17
|
+
onRemove?: (key: string) => void;
|
|
18
|
+
onAttach?: (source: ComposerSource) => void;
|
|
19
|
+
menuOpen?: boolean;
|
|
20
|
+
onMenuOpenChange?: (open: boolean) => void;
|
|
21
|
+
suggestions?: readonly string[];
|
|
22
|
+
onSuggestion?: (text: string) => void;
|
|
23
|
+
};
|
|
24
|
+
export declare function DetailComposer({ value, onChangeText, placeholder, onSend, sending, disabled, attachments, onRemove, onAttach, menuOpen, onMenuOpenChange, suggestions, onSuggestion, }: DetailComposerProps): import("react").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=detail-composer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detail-composer.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/detail-composer.tsx"],"names":[],"mappings":"AAeA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAEvE,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AA2EF,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,YAAY,EACZ,WAAW,EACX,MAAM,EACN,OAAO,EACP,QAAQ,EACR,WAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,WAAgB,EAChB,YAAY,GACb,EAAE,mBAAmB,+BAoIrB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export type DetailEditorTemplateProps = {
|
|
3
|
+
bar: ReactNode;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
bottom?: ReactNode;
|
|
6
|
+
bottomInset?: number;
|
|
7
|
+
wide?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function DetailEditorTemplate({ bar, children, bottom, bottomInset, wide, }: DetailEditorTemplateProps): import("react").JSX.Element;
|
|
10
|
+
export declare function EditorPanel({ children }: {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=detail-editor-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detail-editor-template.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/detail-editor-template.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAMf,MAAM,MAAM,yBAAyB,GAAG;IACtC,GAAG,EAAE,SAAS,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAeF,wBAAgB,oBAAoB,CAAC,EACnC,GAAG,EACH,QAAQ,EACR,MAAM,EACN,WAAe,EACf,IAAI,GACL,EAAE,yBAAyB,+BAgE3B;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAGhE"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type DetailFont = 'gothic' | 'serif' | 'display' | 'hand';
|
|
2
|
+
export type DetailWeight = 'regular' | 'bold' | 'heavy';
|
|
3
|
+
export type DetailEffect = 'none' | 'shadow' | 'outline' | 'band';
|
|
4
|
+
export type DetailLayout = 'text' | 'image' | 'image_top' | 'text_top' | 'side' | 'two_images' | 'card';
|
|
5
|
+
export type DetailTextStyle = {
|
|
6
|
+
font?: DetailFont;
|
|
7
|
+
size?: number;
|
|
8
|
+
weight?: DetailWeight;
|
|
9
|
+
color?: string;
|
|
10
|
+
align?: 'left' | 'center' | 'right';
|
|
11
|
+
effect?: DetailEffect;
|
|
12
|
+
line?: number;
|
|
13
|
+
tracking?: number;
|
|
14
|
+
};
|
|
15
|
+
export type DetailLayer = {
|
|
16
|
+
id: string;
|
|
17
|
+
type: 'text' | 'image';
|
|
18
|
+
text?: string | null;
|
|
19
|
+
url?: string | null;
|
|
20
|
+
asset_id?: string | null;
|
|
21
|
+
style?: DetailTextStyle | null;
|
|
22
|
+
hidden?: boolean;
|
|
23
|
+
};
|
|
24
|
+
export type DetailBlock = {
|
|
25
|
+
id: string;
|
|
26
|
+
layout: DetailLayout;
|
|
27
|
+
background?: {
|
|
28
|
+
color?: string | null;
|
|
29
|
+
url?: string | null;
|
|
30
|
+
asset_id?: string | null;
|
|
31
|
+
};
|
|
32
|
+
space_top?: number;
|
|
33
|
+
space_bottom?: number;
|
|
34
|
+
layers: DetailLayer[];
|
|
35
|
+
};
|
|
36
|
+
export type DetailDocValue = {
|
|
37
|
+
version?: number;
|
|
38
|
+
background?: string | null;
|
|
39
|
+
blocks: DetailBlock[];
|
|
40
|
+
};
|
|
41
|
+
export type DetailSelection = {
|
|
42
|
+
block: string;
|
|
43
|
+
layer?: string;
|
|
44
|
+
} | null;
|
|
45
|
+
export declare const DETAIL_LAYOUTS: readonly DetailLayout[];
|
|
46
|
+
export declare const DETAIL_FONT_FAMILY: Record<DetailFont, Record<DetailWeight, string>>;
|
|
47
|
+
export declare function detailFontSize(size?: number): number;
|
|
48
|
+
export declare function detailLineHeight(line?: number): number;
|
|
49
|
+
export declare function detailTracking(tracking?: number): number;
|
|
50
|
+
export declare function detailBlockSpace(space?: number): number;
|
|
51
|
+
export declare const DETAIL_COLORS: readonly {
|
|
52
|
+
value: string;
|
|
53
|
+
label: string;
|
|
54
|
+
}[];
|
|
55
|
+
//# sourceMappingURL=detail-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detail-types.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/detail-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AACjE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAClE,MAAM,MAAM,YAAY,GACtB,MAAM,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,CAAC;AAE/E,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,M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AAED,wBAAgB,gBAAgB,CAAC,IAAI,SAAI,GAAG,MAAM,CAEjD;AAED,wBAAgB,cAAc,CAAC,QAAQ,SAAI,GAAG,MAAM,CAEnD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,SAAI,GAAG,MAAM,CAElD;AAED,eAAO,MAAM,aAAa,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EASpE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type DraftPreviewProps = {
|
|
3
|
+
height: number;
|
|
4
|
+
width: number;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare function DraftPreview({ height, width, children }: DraftPreviewProps): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=draft-preview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft-preview.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/draft-preview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAkBF,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAO1E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type DraftStripItem = {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
thumb: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export type DraftStripProps = {
|
|
8
|
+
items: readonly DraftStripItem[];
|
|
9
|
+
value: string;
|
|
10
|
+
onValueChange: (key: string) => void;
|
|
11
|
+
onMore?: () => void;
|
|
12
|
+
moreLabel?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function DraftStrip({ items, value, onValueChange, onMore, moreLabel, }: DraftStripProps): import("react").JSX.Element;
|
|
15
|
+
export declare const DRAFT_THUMB_WIDTH = 64;
|
|
16
|
+
//# sourceMappingURL=draft-strip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft-strip.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/draft-strip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,MAAM,MAAM,cAAc,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;AAE9E,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AA8BF,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,KAAK,EACL,aAAa,EACb,MAAM,EACN,SAAmB,GACpB,EAAE,eAAe,+BA+CjB;AAED,eAAO,MAAM,iBAAiB,KAAI,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type EditorBarProps = {
|
|
2
|
+
topInset?: number;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
onUndo?: () => void;
|
|
5
|
+
onRedo?: () => void;
|
|
6
|
+
onLayers?: () => void;
|
|
7
|
+
onPreview?: () => void;
|
|
8
|
+
layersOn?: boolean;
|
|
9
|
+
previewOn?: boolean;
|
|
10
|
+
action: {
|
|
11
|
+
label: string;
|
|
12
|
+
onPress: () => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare function EditorBar({ topInset, onClose, onUndo, onRedo, onLayers, onPreview, layersOn, previewOn, action, }: EditorBarProps): import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=editor-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-bar.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/editor-bar.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;CACH,CAAC;AA8BF,wBAAgB,SAAS,CAAC,EACxB,QAAY,EACZ,OAAO,EACP,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,SAAS,EACT,MAAM,GACP,EAAE,cAAc,+BA+ChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus-context.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/focus-context.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,eAAO,MAAM,kBAAkB,kCACrB,eAAe,GAAG,IAAI,KAAK,IAAI,SAClC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type DetailFont } from './detail-types.js';
|
|
2
|
+
export type FontPickerProps = {
|
|
3
|
+
value: DetailFont;
|
|
4
|
+
onValueChange: (font: DetailFont) => void;
|
|
5
|
+
sample: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function FontPicker({ value, onValueChange, sample }: FontPickerProps): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=font-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-picker.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/font-picker.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,mBAAgB,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,UAAU,CAAC;IAClB,aAAa,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAyBF,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,eAAe,+BAsC3E"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { DetailCanvas, textStyleOf, type DetailCanvasProps, } from './detail-canvas.js';
|
|
2
|
+
export { DetailComposer, type ComposerAttachment, type ComposerSource, type DetailComposerProps, } from './detail-composer.js';
|
|
3
|
+
export { DetailEditorTemplate, EditorPanel, type DetailEditorTemplateProps, } from './detail-editor-template.js';
|
|
4
|
+
export { DETAIL_COLORS, DETAIL_FONT_FAMILY, DETAIL_LAYOUTS, detailBlockSpace, detailFontSize, detailLineHeight, detailTracking, type DetailBlock, type DetailDocValue, type DetailEffect, type DetailFont, type DetailLayer, type DetailLayout, type DetailSelection, type DetailTextStyle, type DetailWeight, } from './detail-types.js';
|
|
5
|
+
export { DRAFT_THUMB_WIDTH, DraftStrip, type DraftStripItem, type DraftStripProps, } from './draft-strip.js';
|
|
6
|
+
export { EditorBar, type EditorBarProps } from './editor-bar.js';
|
|
7
|
+
export { FontPicker, type FontPickerProps } from './font-picker.js';
|
|
8
|
+
export { LayoutPicker, type LayoutPickerProps } from './layout-picker.js';
|
|
9
|
+
export { ToolRow, type ToolRowItem } from './tool-row.js';
|
|
10
|
+
export { CompareSlider, type CompareSliderProps } from './compare-slider.js';
|
|
11
|
+
export { PhotoTray, type PhotoTrayProps, type TrayPhoto, type TraySource, } from './photo-tray.js';
|
|
12
|
+
export { StructurePicker, type StructureOption, type StructurePickerProps, } from './structure-picker.js';
|
|
13
|
+
export { DraftPreview, type DraftPreviewProps } from './draft-preview.js';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,KAAK,iBAAiB,GACvB,MAAM,oBAAiB,CAAC;AACzB,OAAO,EACL,cAAc,EACd,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,mBAAmB,GACzB,MAAM,sBAAmB,CAAC;AAC3B,OAAO,EACL,oBAAoB,EACpB,WAAW,EACX,KAAK,yBAAyB,GAC/B,MAAM,6BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,YAAY,GAClB,MAAM,mBAAgB,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,eAAe,GACrB,MAAM,kBAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAc,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAe,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAiB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,eAAY,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAkB,CAAC;AAC1E,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,UAAU,GAChB,MAAM,iBAAc,CAAC;AACtB,OAAO,EACL,eAAe,EACf,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B,MAAM,uBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAiB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type DetailLayout } from './detail-types.js';
|
|
2
|
+
export type LayoutPickerProps = {
|
|
3
|
+
value: DetailLayout;
|
|
4
|
+
onValueChange: (layout: DetailLayout) => void;
|
|
5
|
+
labels?: Partial<Record<DetailLayout, string>>;
|
|
6
|
+
};
|
|
7
|
+
export declare function Diagram({ layout }: {
|
|
8
|
+
layout: DetailLayout;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export declare function LayoutPicker({ value, onValueChange, labels, }: LayoutPickerProps): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=layout-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-picker.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/layout-picker.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,mBAAgB,CAAC;AAEnE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,YAAY,CAAC;IACpB,aAAa,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC9C,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;CAChD,CAAC;AA8CF,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,+BA0D3D;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,aAAa,EACb,MAAM,GACP,EAAE,iBAAiB,+BAoCnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type TrayPhoto = {
|
|
2
|
+
key: string;
|
|
3
|
+
uri: string;
|
|
4
|
+
reference?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type TraySource = 'camera' | 'library' | 'capture';
|
|
7
|
+
export type PhotoTrayProps = {
|
|
8
|
+
photos: readonly TrayPhoto[];
|
|
9
|
+
onRemove: (key: string) => void;
|
|
10
|
+
onAdd: (source: TraySource) => void;
|
|
11
|
+
mainLabel?: string;
|
|
12
|
+
referenceLabel?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function PhotoTray({ photos, onRemove, onAdd, mainLabel, referenceLabel, }: PhotoTrayProps): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=photo-tray.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"photo-tray.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/photo-tray.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,SAAS,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAC1E,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,SAAS,SAAS,EAAE,CAAC;IAC7B,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,KAAK,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAqDF,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,QAAQ,EACR,KAAK,EACL,SAAgB,EAChB,cAAqB,GACtB,EAAE,cAAc,+BA0DhB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DetailLayout } from './detail-types.js';
|
|
2
|
+
export type StructureOption<T extends string> = {
|
|
3
|
+
value: T;
|
|
4
|
+
label: string;
|
|
5
|
+
layouts: readonly DetailLayout[];
|
|
6
|
+
};
|
|
7
|
+
export type StructurePickerProps<T extends string> = {
|
|
8
|
+
items: readonly StructureOption<T>[];
|
|
9
|
+
value: T;
|
|
10
|
+
onValueChange: (value: T) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function StructurePicker<T extends string>({ items, value, onValueChange, }: StructurePickerProps<T>): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=structure-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structure-picker.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/structure-picker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAgB,CAAC;AAGnD,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI;IAC9C,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI;IACnD,KAAK,EAAE,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IACrC,KAAK,EAAE,CAAC,CAAC;IACT,aAAa,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CACnC,CAAC;AAmBF,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,EAChD,KAAK,EACL,KAAK,EACL,aAAa,GACd,EAAE,oBAAoB,CAAC,CAAC,CAAC,+BAkCzB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type IconSlot } from '../../internal/icon.js';
|
|
2
|
+
export type ToolRowItem = {
|
|
3
|
+
key: string;
|
|
4
|
+
icon: IconSlot;
|
|
5
|
+
label: string;
|
|
6
|
+
onPress: () => void;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function ToolRow({ items }: {
|
|
11
|
+
items: readonly ToolRowItem[];
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=tool-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-row.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-editor/tool-row.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,wBAAqB,CAAC;AAKhE,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAoBF,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,SAAS,WAAW,EAAE,CAAA;CAAE,+BA+BnE"}
|
|
@@ -7,6 +7,7 @@ export * from './invite-card/index.js';
|
|
|
7
7
|
export * from './color-swatch-picker/index.js';
|
|
8
8
|
export * from './copy-variant-picker/index.js';
|
|
9
9
|
export * from './credit-wallet/index.js';
|
|
10
|
+
export * from './detail-editor/index.js';
|
|
10
11
|
export * from './generation-progress/index.js';
|
|
11
12
|
export * from './invoice-row/index.js';
|
|
12
13
|
export * from './logo-candidate-grid/index.js';
|
|
@@ -32,6 +33,8 @@ export * from './product-tile/index.js';
|
|
|
32
33
|
export * from './quick-actions/index.js';
|
|
33
34
|
export * from './action-grid/index.js';
|
|
34
35
|
export * from './site-summary/index.js';
|
|
36
|
+
export * from './cover-photos/index.js';
|
|
37
|
+
export * from './slider-list/index.js';
|
|
35
38
|
export * from './scan-modal/index.js';
|
|
36
39
|
export * from './summary-cards/index.js';
|
|
37
40
|
export * from './request-card/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/index.tsx"],"names":[],"mappings":"AAAA,cAAc,+BAAsB,CAAC;AACrC,cAAc,2BAAkB,CAAC;AACjC,cAAc,sBAAa,CAAC;AAC5B,cAAc,uBAAc,CAAC;AAC7B,cAAc,yBAAgB,CAAC;AAC/B,cAAc,wBAAe,CAAC;AAC9B,cAAc,gCAAuB,CAAC;AACtC,cAAc,gCAAuB,CAAC;AACtC,cAAc,0BAAiB,CAAC;AAChC,cAAc,gCAAuB,CAAC;AACtC,cAAc,wBAAe,CAAC;AAC9B,cAAc,gCAAuB,CAAC;AACtC,cAAc,0BAAiB,CAAC;AAChC,cAAc,uBAAc,CAAC;AAC7B,cAAc,sBAAa,CAAC;AAC5B,cAAc,+BAAsB,CAAC;AACrC,cAAc,wBAAe,CAAC;AAC9B,cAAc,uBAAc,CAAC;AAC7B,cAAc,0BAAiB,CAAC;AAChC,cAAc,iCAAwB,CAAC;AACvC,cAAc,kCAAyB,CAAC;AACxC,cAAc,+BAAsB,CAAC;AACrC,cA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,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAmB,CAAC;AACjE,cAAc,sBAAa,CAAC;AAC5B,cAAc,wBAAe,CAAC;AAC9B,cAAc,uBAAc,CAAC;AAC7B,cAAc,sBAAa,CAAC;AAC5B,cAAc,yBAAgB,CAAC;AAC/B,cAAc,0BAAiB,CAAC;AAChC,cAAc,wBAAe,CAAC;AAC9B,cAAc,yBAAgB,CAAC;AAC/B,cAAc,yBAAgB,CAAC;AAC/B,cAAc,wBAAe,CAAC;AAC9B,cAAc,uBAAc,CAAC;AAC7B,cAAc,0BAAiB,CAAC;AAChC,cAAc,yBAAgB,CAAC;AAC/B,cAAc,uBAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/slider-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,eAAe,GACrB,MAAM,kBAAe,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
export type SliderListItem = {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
startLabel: string;
|
|
6
|
+
endLabel: string;
|
|
7
|
+
};
|
|
8
|
+
export type SliderListProps = {
|
|
9
|
+
items: readonly SliderListItem[];
|
|
10
|
+
values: Readonly<Record<string, number>>;
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
onChange: (key: string, value: number) => void;
|
|
14
|
+
style?: StyleProp<ViewStyle>;
|
|
15
|
+
};
|
|
16
|
+
export declare function SliderList({ items, values, min, max, onChange, style, }: SliderListProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=slider-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider-list.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/slider-list/slider-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMpE,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;IACjC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAMF,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,MAAM,EACN,GAAO,EACP,GAAO,EACP,QAAQ,EACR,KAAK,GACN,EAAE,eAAe,+BAuBjB"}
|