@antscorp/antsomi-ui 1.3.3-beta.8 → 1.3.3-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/0173b5993573afa04880.woff +0 -0
- package/dist/0dfb9214dfd945cd7290.png +1 -0
- package/dist/2883cad25a2b4e87ce5f.eot +0 -0
- package/dist/4f54a37971347e3d7122.png +1 -0
- package/dist/574b7bee0563a9fe9a29.png +1 -0
- package/dist/6b586356e837581204dc.svg +1 -0
- package/dist/72eec5c1c786b45a667f.ttf +0 -0
- package/dist/bc6bf11c6f5e6743aa4c.png +1 -0
- package/dist/dbc405edd6e0806efbc9.svg +1 -0
- package/dist/e32f09119052a55cce3c.png +1 -0
- package/dist/e3851b9384a984c6fdb5.png +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +69 -0
- package/dist/main.css +168 -0
- package/dist/public/icons/2d496b55d85a9545d7311c073af442bb.png +0 -0
- package/dist/public/icons/2fbb4e0927d18e3f8e5c6511ab88d5b3.png +0 -0
- package/dist/public/icons/725a52bd91a3ce534b10833df510e5fa.png +0 -0
- package/dist/public/icons/7d037e0b378e87a82804443636cd0e13.svg +346 -0
- package/dist/public/icons/90553767e0a05b9585a54797cfd9ce51.png +0 -0
- package/dist/public/icons/bb64e23a1ff390a416d765ee556096ab.svg +87 -0
- package/dist/public/icons/d327b24e9c5d8f486f08d253aab58ce6.png +0 -0
- package/dist/public/icons/f1cf266d0a0a53ce07f2dbb859869b7a.png +0 -0
- package/dist/public/icons/placeholder-image.png +0 -0
- package/dist/public/icons/transparent.svg +1 -0
- package/es/components/atoms/Input/Input.d.ts +3 -11
- package/es/components/atoms/Input/Input.js +0 -3
- package/es/components/atoms/Slider/index.d.ts +2 -1
- package/es/components/atoms/Slider/index.js +7 -14
- package/es/components/atoms/SliderV2/index.d.ts +5 -0
- package/es/components/atoms/SliderV2/index.js +23 -0
- package/es/components/atoms/Spin/Spin.d.ts +2 -1
- package/es/components/atoms/index.d.ts +1 -1
- package/es/components/atoms/index.js +1 -1
- package/es/components/common/ConfigProvider/GlobalStyle.js +1 -38
- package/es/components/icons/ArrowGrowIcon.d.ts +2 -1
- package/es/components/icons/AudioRecordIcon.d.ts +2 -1
- package/es/components/icons/BugIcon.d.ts +2 -1
- package/es/components/icons/CameraIcon.d.ts +2 -1
- package/es/components/icons/CaptureIcon.d.ts +2 -1
- package/es/components/icons/CheckSlimIcon.d.ts +2 -1
- package/es/components/icons/CloseIcon.d.ts +2 -1
- package/es/components/icons/CommentIcon.d.ts +2 -1
- package/es/components/icons/EventIcon.d.ts +2 -1
- package/es/components/icons/FreeDrawIcon.d.ts +2 -1
- package/es/components/icons/GPTIcon.d.ts +2 -1
- package/es/components/icons/GPTIconV2.d.ts +2 -1
- package/es/components/icons/GPTIconV3.d.ts +2 -1
- package/es/components/icons/HighlightIcon.d.ts +2 -1
- package/es/components/icons/IdeaIcon.d.ts +2 -1
- package/es/components/icons/InvisibleIcon.d.ts +2 -1
- package/es/components/icons/MuteIcon.d.ts +2 -1
- package/es/components/icons/OpenUrlIcon.d.ts +2 -1
- package/es/components/icons/PauseIcon.d.ts +2 -1
- package/es/components/icons/PlaneIcon.d.ts +2 -1
- package/es/components/icons/RequestIcon.d.ts +2 -1
- package/es/components/icons/StopRecordIcon.d.ts +2 -1
- package/es/components/icons/UserIcon.d.ts +2 -1
- package/es/components/icons/VerticalDotsIcon.d.ts +2 -1
- package/es/components/icons/WarningIcon.d.ts +2 -1
- package/es/components/molecules/CaptureScreen/CaptureScreen.d.ts +2 -1
- package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +2 -1
- package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +2 -1
- package/es/components/molecules/Collapse/Collapse.d.ts +3 -3
- package/es/components/molecules/Collapse/Collapse.js +0 -9
- package/es/components/molecules/Modal/styled.d.ts +1 -1
- package/es/components/molecules/Select/Select.d.ts +0 -3
- package/es/components/molecules/Select/Select.js +2 -23
- package/es/components/molecules/Select/Test.d.ts +2 -1
- package/es/components/molecules/TreeSelect/TreeSelect.d.ts +1 -1
- package/es/components/molecules/UploadImage/MediaIcon.d.ts +2 -1
- package/es/components/molecules/index.d.ts +0 -1
- package/es/components/molecules/index.js +0 -1
- package/es/constants/storybook.d.ts +2 -1
- package/es/constants/theme.js +3 -25
- package/es/test.d.ts +2 -1
- package/es/test.js +50 -141
- package/package.json +1 -1
- package/es/components/atoms/Flex/Flex.d.ts +0 -2
- package/es/components/atoms/Flex/Flex.js +0 -1
- package/es/components/atoms/Flex/index.d.ts +0 -1
- package/es/components/atoms/Flex/index.js +0 -1
- package/es/components/molecules/Form/Form.d.ts +0 -1
- package/es/components/molecules/Form/Form.js +0 -1
- package/es/components/molecules/Form/index.d.ts +0 -1
- package/es/components/molecules/Form/index.js +0 -1
package/es/constants/theme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
1
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
2
2
|
// Types
|
|
3
3
|
import { theme } from 'antd';
|
|
4
4
|
// Variables
|
|
@@ -64,7 +64,6 @@ export const THEME = {
|
|
|
64
64
|
accent2: '#dddddd',
|
|
65
65
|
accent3: '#d2d2d2',
|
|
66
66
|
accent5: '#999999',
|
|
67
|
-
gray5: '#d9d9d9',
|
|
68
67
|
gold1,
|
|
69
68
|
gold6,
|
|
70
69
|
},
|
|
@@ -129,9 +128,7 @@ THEME.components = {
|
|
|
129
128
|
controlHeight: 31,
|
|
130
129
|
},
|
|
131
130
|
Divider: {
|
|
132
|
-
marginLG:
|
|
133
|
-
marginXL: 15,
|
|
134
|
-
colorSplit: (_r = THEME.token) === null || _r === void 0 ? void 0 : _r.accent3,
|
|
131
|
+
marginLG: 10,
|
|
135
132
|
},
|
|
136
133
|
Checkbox: {
|
|
137
134
|
controlInteractiveSize: 18,
|
|
@@ -144,25 +141,6 @@ THEME.components = {
|
|
|
144
141
|
},
|
|
145
142
|
Tabs: {
|
|
146
143
|
colorPrimary: '#1F5FAC',
|
|
147
|
-
|
|
148
|
-
horizontalItemGutter: 0,
|
|
149
|
-
lineWidthBold: 3,
|
|
150
|
-
titleFontSize: 14,
|
|
151
|
-
titleFontSizeLG: 14,
|
|
152
|
-
titleFontSizeSM: 14,
|
|
153
|
-
horizontalMargin: '0px',
|
|
154
|
-
},
|
|
155
|
-
Collapse: {
|
|
156
|
-
headerBg: '#FFF',
|
|
157
|
-
borderRadiusLG: 0,
|
|
158
|
-
headerPadding: '15px 10px',
|
|
159
|
-
},
|
|
160
|
-
Switch: {
|
|
161
|
-
colorTextQuaternary: (_s = THEME.token) === null || _s === void 0 ? void 0 : _s.bw0,
|
|
162
|
-
colorTextTertiary: (_t = THEME.token) === null || _t === void 0 ? void 0 : _t.bw0,
|
|
163
|
-
handleSize: 12,
|
|
164
|
-
handleSizeSM: 7,
|
|
165
|
-
trackMinWidth: 30,
|
|
166
|
-
handleBg: (_u = THEME.token) === null || _u === void 0 ? void 0 : _u.colorPrimary,
|
|
144
|
+
margin: 20,
|
|
167
145
|
},
|
|
168
146
|
};
|
package/es/test.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import '@antscorp/icons/main.css';
|
|
2
3
|
export declare const BACKGROUND_COLOR_STYLE: {
|
|
3
4
|
SOLID: {
|
|
@@ -10,4 +11,4 @@ export declare const BACKGROUND_COLOR_STYLE: {
|
|
|
10
11
|
};
|
|
11
12
|
};
|
|
12
13
|
export declare const customColors: string[];
|
|
13
|
-
export declare const App: () => JSX.Element;
|
|
14
|
+
export declare const App: () => React.JSX.Element;
|
package/es/test.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { createRoot } from 'react-dom/client';
|
|
4
4
|
import '@antscorp/icons/main.css';
|
|
5
|
-
import { ConfigProvider, GradientSetting,
|
|
5
|
+
import { ConfigProvider, EdgeSetting, GradientSetting, IconSelection, PositionSetting, SettingWrapper,
|
|
6
|
+
// Slider,
|
|
7
|
+
SliderWithInputNumber, Space, UploadImage, } from './components';
|
|
6
8
|
// import { Slider } from 'antd';
|
|
7
9
|
import { Slider } from '@antscorp/antsomi-ui/es/components/atoms/Slider';
|
|
8
10
|
import { Rate } from './components/atoms/Rate';
|
|
@@ -84,147 +86,54 @@ export const App = () => {
|
|
|
84
86
|
// );
|
|
85
87
|
// ---------------------------- Test Helps End ------------------------------
|
|
86
88
|
// ------------------------ Media template components test start -------------------------
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
// <GradientSetting />
|
|
135
|
-
// </SettingWrapper>
|
|
136
|
-
// <SliderWithInputNumber
|
|
137
|
-
// label="Size (px)"
|
|
138
|
-
// labelStyling={{ marginTop: 10 }}
|
|
139
|
-
// min={0}
|
|
140
|
-
// max={100}
|
|
141
|
-
// value={sliderValue}
|
|
142
|
-
// onAfterChange={handleChangeSlider}
|
|
143
|
-
// />
|
|
144
|
-
// <EdgeSetting
|
|
145
|
-
// label="Notification Spacing"
|
|
146
|
-
// unit="px"
|
|
147
|
-
// linked={false}
|
|
148
|
-
// values={edge}
|
|
149
|
-
// // edgeLabels={[t(translations.column.title), t(translations.row.title)]}
|
|
150
|
-
// onChange={({ values, linked, unit }) => {
|
|
151
|
-
// setEdge(values);
|
|
152
|
-
// // onUpdateSettings({
|
|
153
|
-
// // gapX: values[0] + unit,
|
|
154
|
-
// // gapY: values[1] + unit,
|
|
155
|
-
// // gapSuffix: unit,
|
|
156
|
-
// // linkedGapInput: linked,
|
|
157
|
-
// // });
|
|
158
|
-
// }}
|
|
159
|
-
// />
|
|
160
|
-
// <PositionSetting
|
|
161
|
-
// settings={{ linkedPositionInput: false, positionSuffix: 'px' }}
|
|
162
|
-
// styles={{ top: '10px', right: '20px', bottom: '30', left: '40' }}
|
|
163
|
-
// onChange={() => {}}
|
|
164
|
-
// />
|
|
165
|
-
// </Space>
|
|
166
|
-
// <Space size={10} direction="vertical">
|
|
167
|
-
// <SettingWrapper vertical label="Background Image" containerStyle={{ gap: '20px' }}>
|
|
168
|
-
// <UploadImage
|
|
169
|
-
// domainMedia="https://sandbox-media-template.antsomi.com"
|
|
170
|
-
// slug="cdp/api/v1"
|
|
171
|
-
// labelButtonSelect="Select Toggle from Computor"
|
|
172
|
-
// labelHeadingModal="Toggle Selection"
|
|
173
|
-
// searchPlaceholder="Search toggle"
|
|
174
|
-
// paramConfigs={{
|
|
175
|
-
// token: '5474r2x214z294b423a4y474d4j5q274p4g494f4k5p5',
|
|
176
|
-
// userId: '1600084695',
|
|
177
|
-
// accountId: '1600084695',
|
|
178
|
-
// }}
|
|
179
|
-
// // title="Background Image"
|
|
180
|
-
// selectedImage={{
|
|
181
|
-
// url: 'https://th.bing.com/th?id=OSK.8664d1b5838c79a3d74a3e97739978b5&w=148&h=148&c=7&o=6&dpr=2&pid=SANGAM',
|
|
182
|
-
// }}
|
|
183
|
-
// onChangeImage={image =>
|
|
184
|
-
// // onChangeSettings('backgroundImageObj', {
|
|
185
|
-
// // name: image.name,
|
|
186
|
-
// // previewUrl: image.url,
|
|
187
|
-
// // })
|
|
188
|
-
// {}
|
|
189
|
-
// }
|
|
190
|
-
// onRemoveImage={() => {
|
|
191
|
-
// // onChangeSettings('backgroundImageObj', {
|
|
192
|
-
// // name: '',
|
|
193
|
-
// // previewUrl: '',
|
|
194
|
-
// // });
|
|
195
|
-
// }}
|
|
196
|
-
// />
|
|
197
|
-
// </SettingWrapper>
|
|
198
|
-
// <SettingWrapper vertical label="Icon">
|
|
199
|
-
// <IconSelection
|
|
200
|
-
// isOpen={false}
|
|
201
|
-
// labelHeadingModal="Toggle Selection"
|
|
202
|
-
// searchPlaceholder="Search for toggle..."
|
|
203
|
-
// icon={icon}
|
|
204
|
-
// onChange={handleSetIcon}
|
|
205
|
-
// iconTypes={['cus', 'font-awesome']}
|
|
206
|
-
// onChangeSvg={value => {
|
|
207
|
-
// console.log('onChangeSvg', value);
|
|
208
|
-
// }}
|
|
209
|
-
// />
|
|
210
|
-
// </SettingWrapper>
|
|
211
|
-
// </Space>
|
|
212
|
-
// </div>
|
|
213
|
-
// </ConfigProvider>
|
|
214
|
-
// );
|
|
89
|
+
return (React.createElement(ConfigProvider, null,
|
|
90
|
+
React.createElement("div", { style: {
|
|
91
|
+
width: 500,
|
|
92
|
+
height: 1000,
|
|
93
|
+
border: '1px solid black',
|
|
94
|
+
margin: '0 auto',
|
|
95
|
+
padding: 12,
|
|
96
|
+
borderRadius: '10px',
|
|
97
|
+
marginTop: 12,
|
|
98
|
+
} },
|
|
99
|
+
React.createElement("h2", { style: { textAlign: 'center' } }, "Test component of media template"),
|
|
100
|
+
React.createElement(Space, { size: 20, direction: "vertical" },
|
|
101
|
+
React.createElement(SettingWrapper, { vertical: true, label: "Color Setting" },
|
|
102
|
+
React.createElement(GradientSetting, null)),
|
|
103
|
+
React.createElement(SliderWithInputNumber, { label: "Size (px)", labelStyling: { marginTop: 10 }, min: 0, max: 100, value: sliderValue, onAfterChange: handleChangeSlider }),
|
|
104
|
+
React.createElement(EdgeSetting, { label: "Notification Spacing", unit: "px", linked: false, values: edge,
|
|
105
|
+
// edgeLabels={[t(translations.column.title), t(translations.row.title)]}
|
|
106
|
+
onChange: ({ values, linked, unit }) => {
|
|
107
|
+
setEdge(values);
|
|
108
|
+
// onUpdateSettings({
|
|
109
|
+
// gapX: values[0] + unit,
|
|
110
|
+
// gapY: values[1] + unit,
|
|
111
|
+
// gapSuffix: unit,
|
|
112
|
+
// linkedGapInput: linked,
|
|
113
|
+
// });
|
|
114
|
+
} }),
|
|
115
|
+
React.createElement(PositionSetting, { settings: { linkedPositionInput: false, positionSuffix: 'px' }, styles: { top: '10px', right: '20px', bottom: '30', left: '40' }, onChange: () => { } })),
|
|
116
|
+
React.createElement(Space, { size: 10, direction: "vertical" },
|
|
117
|
+
React.createElement(SettingWrapper, { vertical: true, label: "Background Image", containerStyle: { gap: '20px' } },
|
|
118
|
+
React.createElement(UploadImage, { domainMedia: "https://sandbox-media-template.antsomi.com", slug: "cdp/api/v1", labelButtonSelect: "Select Toggle from Computor", labelHeadingModal: "Toggle Selection", searchPlaceholder: "Search toggle", paramConfigs: {
|
|
119
|
+
token: '5474r2x214z294b423a4y474d4j5q274p4g494f4k5p5',
|
|
120
|
+
userId: '1600084695',
|
|
121
|
+
accountId: '1600084695',
|
|
122
|
+
},
|
|
123
|
+
// title="Background Image"
|
|
124
|
+
selectedImage: {
|
|
125
|
+
url: 'https://th.bing.com/th?id=OSK.8664d1b5838c79a3d74a3e97739978b5&w=148&h=148&c=7&o=6&dpr=2&pid=SANGAM',
|
|
126
|
+
}, onChangeImage: image => { }, onRemoveImage: () => {
|
|
127
|
+
// onChangeSettings('backgroundImageObj', {
|
|
128
|
+
// name: '',
|
|
129
|
+
// previewUrl: '',
|
|
130
|
+
// });
|
|
131
|
+
} })),
|
|
132
|
+
React.createElement(SettingWrapper, { vertical: true, label: "Icon" },
|
|
133
|
+
React.createElement(IconSelection, { isOpen: false, labelHeadingModal: "Toggle Selection", searchPlaceholder: "Search for toggle...", icon: icon, onChange: handleSetIcon, iconTypes: ['cus', 'font-awesome'], onChangeSvg: value => {
|
|
134
|
+
console.log('onChangeSvg', value);
|
|
135
|
+
} }))))));
|
|
215
136
|
// ------------------------ Media template components test end -------------------------
|
|
216
|
-
return (React.createElement(Tabs, { items: [
|
|
217
|
-
{
|
|
218
|
-
key: '1',
|
|
219
|
-
label: 'Tab 1',
|
|
220
|
-
children: React.createElement("div", null, "hello"),
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
key: '2',
|
|
224
|
-
label: 'Tab 2',
|
|
225
|
-
children: React.createElement("div", null, "hello 2"),
|
|
226
|
-
},
|
|
227
|
-
] }));
|
|
228
137
|
return (React.createElement("div", { style: { width: '500px', margin: '32px' } },
|
|
229
138
|
React.createElement(GradientSetting, { onChange: e => console.log('gradient change') }),
|
|
230
139
|
React.createElement("br", null),
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Flex } from 'antd';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Flex';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Flex';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Form } from 'antd';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Form } from 'antd';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Form } from './Form';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Form } from './Form';
|