@ezpg/app-ui 0.16.0 → 0.17.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 +12 -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-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 +14 -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/tool-row.js +63 -0
- package/lib/module/blocks/detail-editor/tool-row.js.map +1 -0
- package/lib/module/blocks/index.js +1 -0
- package/lib/module/blocks/index.js.map +1 -1
- 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 +1 -1
- package/lib/module/components/list-row/list-row.js.map +1 -1
- 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 +2 -0
- package/lib/module/index.js.map +1 -1
- 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/parts.js +1 -1
- package/lib/module/theme/base.js +4 -4
- 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-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 +12 -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 +8 -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/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 +1 -0
- package/lib/typescript/src/blocks/index.d.ts.map +1 -1
- 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/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 +2 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- 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/theme/base.d.ts +4 -4
- package/package.json +1 -1
- 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-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 +51 -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/tool-row.tsx +66 -0
- package/src/blocks/index.tsx +1 -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 +1 -1
- package/src/components/slider/index.ts +1 -0
- package/src/components/slider/slider.tsx +142 -0
- package/src/index.tsx +2 -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/parts.tsx +1 -1
- package/src/theme/base.ts +4 -4
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useRef, useState } from 'react';
|
|
4
|
+
import { ScrollView, Text as RNText, View } from 'react-native';
|
|
5
|
+
import Sortable from 'react-native-sortables';
|
|
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
const W = 54;
|
|
11
|
+
const H = 70;
|
|
12
|
+
const useStyles = makeStyles(t => ({
|
|
13
|
+
row: {
|
|
14
|
+
paddingHorizontal: t.space[3],
|
|
15
|
+
paddingVertical: t.space[2],
|
|
16
|
+
flexDirection: 'row',
|
|
17
|
+
gap: t.space[2],
|
|
18
|
+
alignItems: 'center'
|
|
19
|
+
},
|
|
20
|
+
chip: {
|
|
21
|
+
width: W,
|
|
22
|
+
height: H,
|
|
23
|
+
overflow: 'hidden',
|
|
24
|
+
borderRadius: t.radius.md,
|
|
25
|
+
borderWidth: 1,
|
|
26
|
+
borderColor: t.colors.border,
|
|
27
|
+
backgroundColor: t.colors.surface
|
|
28
|
+
},
|
|
29
|
+
on: {
|
|
30
|
+
borderWidth: 2.5,
|
|
31
|
+
borderColor: t.colors.primary
|
|
32
|
+
},
|
|
33
|
+
num: {
|
|
34
|
+
position: 'absolute',
|
|
35
|
+
left: t.space[1],
|
|
36
|
+
top: t.space[1],
|
|
37
|
+
minWidth: t.space[4] + 2,
|
|
38
|
+
height: t.space[4] + 2,
|
|
39
|
+
borderRadius: t.radius.full,
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
justifyContent: 'center'
|
|
42
|
+
},
|
|
43
|
+
numText: {
|
|
44
|
+
fontSize: t.typography.caption.fontSize - 1,
|
|
45
|
+
fontWeight: '700',
|
|
46
|
+
color: t.colors.primaryForeground
|
|
47
|
+
},
|
|
48
|
+
add: {
|
|
49
|
+
width: W,
|
|
50
|
+
height: H,
|
|
51
|
+
borderRadius: t.radius.md,
|
|
52
|
+
borderWidth: 1,
|
|
53
|
+
borderStyle: 'dashed',
|
|
54
|
+
borderColor: t.colors.input,
|
|
55
|
+
alignItems: 'center',
|
|
56
|
+
justifyContent: 'center'
|
|
57
|
+
},
|
|
58
|
+
plus: {
|
|
59
|
+
fontSize: t.typography.title.fontSize,
|
|
60
|
+
color: t.colors.mutedForeground
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
export function BlockStrip({
|
|
64
|
+
items,
|
|
65
|
+
value,
|
|
66
|
+
onValueChange,
|
|
67
|
+
onReorder,
|
|
68
|
+
onAdd
|
|
69
|
+
}) {
|
|
70
|
+
const t = useTheme();
|
|
71
|
+
const s = useStyles();
|
|
72
|
+
const scroller = useRef(null);
|
|
73
|
+
const offset = useRef(0);
|
|
74
|
+
const [width, setWidth] = useState(0);
|
|
75
|
+
const picked = items.findIndex(item => item.key === value);
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
if (picked < 0 || width <= 0) return;
|
|
78
|
+
const edge = t.space[3];
|
|
79
|
+
const left = edge + picked * (W + t.space[2]);
|
|
80
|
+
const right = left + W;
|
|
81
|
+
const now = offset.current;
|
|
82
|
+
const next = left - edge < now ? left - edge : right + edge > now + width ? right + edge - width : now;
|
|
83
|
+
if (next !== now) {
|
|
84
|
+
scroller.current?.scrollTo({
|
|
85
|
+
x: Math.max(0, next),
|
|
86
|
+
animated: true
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}, [picked, width, t]);
|
|
90
|
+
return /*#__PURE__*/_jsxs(ScrollView, {
|
|
91
|
+
ref: scroller,
|
|
92
|
+
horizontal: true,
|
|
93
|
+
showsHorizontalScrollIndicator: false,
|
|
94
|
+
contentContainerStyle: s.row,
|
|
95
|
+
scrollEventThrottle: 16,
|
|
96
|
+
onScroll: e => {
|
|
97
|
+
offset.current = e.nativeEvent.contentOffset.x;
|
|
98
|
+
},
|
|
99
|
+
onLayout: e => setWidth(e.nativeEvent.layout.width),
|
|
100
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
101
|
+
style: {
|
|
102
|
+
width: items.length * (W + t.space[2]) - t.space[2]
|
|
103
|
+
},
|
|
104
|
+
children: /*#__PURE__*/_jsx(Sortable.Grid, {
|
|
105
|
+
data: [...items],
|
|
106
|
+
keyExtractor: item => item.key,
|
|
107
|
+
rows: 1,
|
|
108
|
+
rowHeight: H,
|
|
109
|
+
columnGap: t.space[2],
|
|
110
|
+
activeItemScale: 1.12,
|
|
111
|
+
inactiveItemOpacity: 1,
|
|
112
|
+
onDragEnd: ({
|
|
113
|
+
data
|
|
114
|
+
}) => onReorder(data.map(item => item.key)),
|
|
115
|
+
renderItem: ({
|
|
116
|
+
item,
|
|
117
|
+
index
|
|
118
|
+
}) => {
|
|
119
|
+
const on = item.key === value;
|
|
120
|
+
return /*#__PURE__*/_jsxs(PressableBase, {
|
|
121
|
+
onPress: () => onValueChange(item.key),
|
|
122
|
+
accessibilityLabel: `블록 ${index + 1}`,
|
|
123
|
+
accessibilityState: {
|
|
124
|
+
selected: on
|
|
125
|
+
},
|
|
126
|
+
pressedStyle: {},
|
|
127
|
+
style: [s.chip, on && s.on],
|
|
128
|
+
children: [item.thumb, /*#__PURE__*/_jsx(View, {
|
|
129
|
+
style: [s.num, {
|
|
130
|
+
backgroundColor: on ? t.colors.primary : t.colors.foreground
|
|
131
|
+
}],
|
|
132
|
+
children: /*#__PURE__*/_jsx(RNText, {
|
|
133
|
+
style: s.numText,
|
|
134
|
+
children: index + 1
|
|
135
|
+
})
|
|
136
|
+
})]
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
})
|
|
140
|
+
}), onAdd ? /*#__PURE__*/_jsx(PressableBase, {
|
|
141
|
+
onPress: onAdd,
|
|
142
|
+
accessibilityLabel: "\uBE14\uB85D \uCD94\uAC00",
|
|
143
|
+
style: s.add,
|
|
144
|
+
children: /*#__PURE__*/_jsx(RNText, {
|
|
145
|
+
style: s.plus,
|
|
146
|
+
children: "+"
|
|
147
|
+
})
|
|
148
|
+
}) : null]
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
//# sourceMappingURL=block-strip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useRef","useState","ScrollView","Text","RNText","View","Sortable","PressableBase","useTheme","makeStyles","jsx","_jsx","jsxs","_jsxs","W","H","useStyles","t","row","paddingHorizontal","space","paddingVertical","flexDirection","gap","alignItems","chip","width","height","overflow","borderRadius","radius","md","borderWidth","borderColor","colors","border","backgroundColor","surface","on","primary","num","position","left","top","minWidth","full","justifyContent","numText","fontSize","typography","caption","fontWeight","color","primaryForeground","add","borderStyle","input","plus","title","mutedForeground","BlockStrip","items","value","onValueChange","onReorder","onAdd","s","scroller","offset","setWidth","picked","findIndex","item","key","edge","right","now","current","next","scrollTo","x","Math","max","animated","ref","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","scrollEventThrottle","onScroll","e","nativeEvent","contentOffset","onLayout","layout","children","style","length","Grid","data","keyExtractor","rows","rowHeight","columnGap","activeItemScale","inactiveItemOpacity","onDragEnd","map","renderItem","index","onPress","accessibilityLabel","accessibilityState","selected","pressedStyle","thumb","foreground"],"sourceRoot":"../../../src","sources":["sortable/block-strip.tsx"],"mappings":";;AAAA,SACEA,SAAS,EACTC,MAAM,EACNC,QAAQ,QAGH,OAAO;AACd,SAASC,UAAU,EAAEC,IAAI,IAAIC,MAAM,EAAEC,IAAI,QAAQ,cAAc;AAC/D,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,SAASC,aAAa,QAAQ,+BAA4B;AAC1D,SAASC,QAAQ,QAAQ,4BAAyB;AAClD,SAASC,UAAU,QAAQ,oBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA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B,QAAA,eAEFpF,IAAA,CAACP,MAAM;gBAAC4F,KAAK,EAAE9B,CAAC,CAACnB,OAAQ;gBAAAgD,QAAA,EAAEc,KAAK,GAAG;cAAC,CAAS;YAAC,CAC1C,CAAC;UAAA,CACM,CAAC;QAEpB;MAAE,CACH;IAAC,CACE,CAAC,EACN5C,KAAK,gBACJtD,IAAA,CAACJ,aAAa;MACZuG,OAAO,EAAE7C,KAAM;MACf8C,kBAAkB,EAAC,2BAAO;MAC1Bf,KAAK,EAAE9B,CAAC,CAACZ,GAAI;MAAAyC,QAAA,eAEbpF,IAAA,CAACP,MAAM;QAAC4F,KAAK,EAAE9B,CAAC,CAACT,IAAK;QAAAsC,QAAA,EAAC;MAAC,CAAQ;IAAC,CACpB,CAAC,GACd,IAAI;EAAA,CACE,CAAC;AAEjB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["moveItem","SortableGrid","SortableHandle","SortableList"],"sourceRoot":"../../../src","sources":["sortable/index.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,WAAQ;AACjC,SACEC,YAAY,EACZC,cAAc,QAGT,oBAAiB;AACxB,SAASC,YAAY,QAAgC,oBAAiB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["moveItem","SortableGrid","SortableHandle","SortableList","BlockStrip"],"sourceRoot":"../../../src","sources":["sortable/index.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,WAAQ;AACjC,SACEC,YAAY,EACZC,cAAc,QAGT,oBAAiB;AACxB,SAASC,YAAY,QAAgC,oBAAiB;AACtE,SACEC,UAAU,QAGL,kBAAe","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,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,MAA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CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,WAAW,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC;AAEvE,eAAO,MAAM,cAAc,EAAE,SAAS,YAAY,EAQjD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CACrC,UAAU,EACV,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAsB7B,CAAC;AAKF,wBAAgB,cAAc,CAAC,IAAI,SAAI,GAAG,MAAM,CAE/C;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,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,12 @@
|
|
|
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
|
+
//# 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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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 LayoutPicker({ value, onValueChange, labels, }: LayoutPickerProps): import("react").JSX.Element;
|
|
8
|
+
//# 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;AA0GF,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 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';
|
|
@@ -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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
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import { TAB_ICONS } from '../../internal/tab-icon-pairs.js';
|
|
3
|
+
import type { Theme } from '../../types/index.js';
|
|
4
|
+
export type FloatingTabIcon = keyof typeof TAB_ICONS;
|
|
5
|
+
export type FloatingTabBarItem<K extends string> = {
|
|
6
|
+
key: K;
|
|
7
|
+
label: string;
|
|
8
|
+
icon: FloatingTabIcon;
|
|
9
|
+
badge?: string;
|
|
10
|
+
};
|
|
11
|
+
export type FloatingTabBarProps<K extends string> = {
|
|
12
|
+
items: readonly FloatingTabBarItem<K>[];
|
|
13
|
+
value: K;
|
|
14
|
+
onValueChange: (key: K) => void;
|
|
15
|
+
bottomInset?: number;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
};
|
|
18
|
+
export declare function floatingTabBarSpace(t: Theme, bottomInset?: number): number;
|
|
19
|
+
export declare function FloatingTabBar<K extends string>({ items, value, onValueChange, bottomInset, style, }: FloatingTabBarProps<K>): import("react").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=floating-tab-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floating-tab-bar.d.ts","sourceRoot":"","sources":["../../../../../src/components/floating-tab-bar/floating-tab-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3E,OAAO,EAAE,SAAS,EAAE,MAAM,kCAA+B,CAAC;AAE1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAa,CAAC;AAGzC,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,SAAS,CAAC;AAErD,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,MAAM,IAAI;IACjD,GAAG,EAAE,CAAC,CAAC;IACP,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAAI;IAClD,KAAK,EAAE,SAAS,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;IACxC,KAAK,EAAE,CAAC,CAAC;IACT,aAAa,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAMF,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,SAAI,UAE5D;AAsCD,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,EAC/C,KAAK,EACL,KAAK,EACL,aAAa,EACb,WAAe,EACf,KAAK,GACN,EAAE,mBAAmB,CAAC,CAAC,CAAC,+BA8CxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/floating-tab-bar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,eAAe,GACrB,MAAM,uBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,aAAU,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
export type SliderProps = {
|
|
3
|
+
value: number;
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
onChange: (value: number) => void;
|
|
7
|
+
onSlidingStart?: () => void;
|
|
8
|
+
startLabel?: string;
|
|
9
|
+
endLabel?: string;
|
|
10
|
+
accessibilityLabel: string;
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
};
|
|
13
|
+
export declare function Slider({ value, min, max, onChange, onSlidingStart, startLabel, endLabel, accessibilityLabel, style, }: SliderProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/slider.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AA4BF,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,GAAO,EACP,GAAO,EACP,QAAQ,EACR,cAAc,EACd,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,KAAK,GACN,EAAE,WAAW,+BAkFb"}
|
|
@@ -19,6 +19,7 @@ export * from './components/divider/index.js';
|
|
|
19
19
|
export * from './components/empty-state/index.js';
|
|
20
20
|
export * from './components/field/index.js';
|
|
21
21
|
export * from './components/field-group/index.js';
|
|
22
|
+
export * from './components/floating-tab-bar/index.js';
|
|
22
23
|
export * from './components/list-row/index.js';
|
|
23
24
|
export * from './components/photo/index.js';
|
|
24
25
|
export * from './components/price/index.js';
|
|
@@ -26,6 +27,7 @@ export * from './components/progress-bar/index.js';
|
|
|
26
27
|
export * from './components/search-field/index.js';
|
|
27
28
|
export * from './components/status-steps/index.js';
|
|
28
29
|
export * from './components/step-slider/index.js';
|
|
30
|
+
export * from './components/slider/index.js';
|
|
29
31
|
export * from './components/stepper/index.js';
|
|
30
32
|
export * from './components/progress-circle/index.js';
|
|
31
33
|
export * from './components/result-mark/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAsB,CAAC;AAClE,OAAO,EACL,aAAa,EACb,QAAQ,EACR,KAAK,kBAAkB,GACxB,MAAM,2BAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAgB,CAAC;AAC5C,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,8BAA2B,CAAC;AACnC,YAAY,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,oBAAiB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAiB,CAAC;AAC7C,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,EACX,SAAS,EACT,UAAU,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,UAAU,EACV,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,UAAU,EACV,aAAa,EACb,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,GACZ,MAAM,sBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAe,CAAC;AAE9D,cAAc,8BAAqB,CAAC;AACpC,cAAc,8BAAqB,CAAC;AACpC,cAA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