@ray-js/components 1.4.0-alpha.4 → 1.4.0-alpha.6
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/lib/Camera/Camera.d.ts +2 -1
- package/lib/Camera/Camera.wechat.d.ts +2 -1
- package/lib/CheckboxGroup/props.d.ts +1 -1
- package/lib/CoverView/CoverView.wechat.d.ts +2 -1
- package/lib/CoverView/props.d.ts +1 -1
- package/lib/Form/props.d.ts +1 -1
- package/lib/Icon/props.d.ts +1 -1
- package/lib/Iframe/Iframe.d.ts +2 -1
- package/lib/Iframe/Iframe.wechat.d.ts +2 -1
- package/lib/Input/props.d.ts +9 -1
- package/lib/IpcPlayer/IpcPlayer.d.ts +2 -1
- package/lib/IpcPlayer/IpcPlayer.wechat.d.ts +2 -1
- package/lib/NativeVideo/NativeVideo.d.ts +2 -1
- package/lib/NativeVideo/NativeVideo.wechat.d.ts +2 -1
- package/lib/PageContainer/PageContainer.thing.d.ts +2 -1
- package/lib/PageContainer/PageContainer.wechat.d.ts +2 -1
- package/lib/PageContainer/props.d.ts +2 -2
- package/lib/RadioGroup/props.d.ts +1 -1
- package/lib/Swiper/Swiper.d.ts +1 -1
- package/lib/Swiper/Swiper.thing.d.ts +1 -1
- package/lib/Swiper/Swiper.wechat.d.ts +1 -1
- package/lib/Swiper/props.d.ts +1 -1
- package/lib/Textarea/props.d.ts +1 -1
- package/lib/types/event.d.ts +1 -1
- package/package.json +10 -10
- package/LICENSE.md +0 -9
package/lib/Camera/Camera.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { BaseProps } from '../types';
|
2
2
|
import { CheckboxProps } from '../Checkbox/props';
|
3
|
-
export
|
3
|
+
export type CheckboxGroupOption = CheckboxProps & {
|
4
4
|
label: string;
|
5
5
|
};
|
6
6
|
export interface CheckboxGroupProps extends BaseProps {
|
package/lib/CoverView/props.d.ts
CHANGED
package/lib/Form/props.d.ts
CHANGED
package/lib/Icon/props.d.ts
CHANGED
@@ -20,4 +20,4 @@ export interface IconProps extends BaseProps {
|
|
20
20
|
color?: string;
|
21
21
|
}
|
22
22
|
export declare const defaultIconProps: IconProps;
|
23
|
-
export
|
23
|
+
export type IconFontName = 'icon-warning' | 'icon-right' | 'icon-up' | 'icon-down' | 'icon-right-copy' | 'icon-right-copy1' | 'icon-a-cloudsunboltfill' | 'icon-a-cloudhailfill' | 'icon-a-cloudrainfill' | 'icon-deskclock' | 'icon-a-cloudsleetfill' | 'icon-a-arrowtrianglecapsulepath' | 'icon-a-cloudfogfill' | 'icon-a-clouddrizzlefill' | 'icon-a-cloudsunrainfill' | 'icon-a-crownfill' | 'icon-a-deskclockfill' | 'icon-a-envelopeopenfill' | 'icon-a-desktopcomputerandarrowdown' | 'icon-a-ferryfill' | 'icon-a-dropfill' | 'icon-a-cloudmoonfill' | 'icon-a-icloudandarrowdownfill' | 'icon-a-heartfill' | 'icon-a-icloudcirclefill' | 'icon-a-giftfill' | 'icon-a-handpointupleftfill' | 'icon-icon' | 'icon-a-exclamationmarkicloudfill' | 'icon-a-facesmilingfill' | 'icon-a-cloudsunfill' | 'icon-a-figurewalk' | 'icon-a-envelopebadge' | 'icon-a-locationnorthfill' | 'icon-a-minussquarefill' | 'icon-a-icloudslashfill' | 'icon-a-lockicloudfill' | 'icon-a-flamefill' | 'icon-left' | 'icon-a-linkicloudfill' | 'icon-a-micfill' | 'icon-icon-2' | 'icon-a-latch2casefill' | 'icon-a-exclamationmarkbubblefill' | 'icon-a-pausefill' | 'icon-a-paintbrushfill' | 'icon-a-moonfill' | 'icon-a-keyicloudfill' | 'icon-a-messagefill' | 'icon-a-envelopefill' | 'icon-a-moonstarsfill' | 'icon-a-icloudandarrowupfill' | 'icon-checkmark-3' | 'icon-a-locationcirclefill' | 'icon-a-forwardendaltfill' | 'icon-a-clockfill' | 'icon-bonjour' | 'icon-a-icloudcircle' | 'icon-a-leaffill' | 'icon-a-paintbrushpointedfill' | 'icon-a-cloudsnowfill' | 'icon-a-playfill' | 'icon-a-plussquarefill' | 'icon-a-minuscirclefill' | 'icon-a-personicloudfill' | 'icon-a-phonefill' | 'icon-a-pawprintfill' | 'icon-plus' | 'icon-a-scribblevariable' | 'icon-a-phoneandwaveformfill' | 'icon-a-phonedownfill' | 'icon-a-pluscirclefill' | 'icon-a-repeat1' | 'icon-a-printerfillandpaperfill' | 'icon-a-scrollfill' | 'icon-snow' | 'icon-a-speakerwave1fill' | 'icon-scissors' | 'icon-a-playrectanglefill' | 'icon-a-globeamericasfill' | 'icon-a-dotradiowavesleftandright' | 'icon-minus' | 'icon-a-stopfill' | 'icon-a-suitcasefill' | 'icon-a-sunrisefill' | 'icon-a-thermometersunfill' | 'icon-a-trainsidefrontcar' | 'icon-a-speakerwave3fill' | 'icon-a-cloudheavyrainfill' | 'icon-a-eyedropperhalffull' | 'icon-a-sunminfill' | 'icon-a-sunsetfill' | 'icon-a-timersquare' | 'icon-stopwatch' | 'icon-thermometer' | 'icon-repeat' | 'icon-a-stopwatchfill' | 'icon-a-sunmaxfill' | 'icon-a-icloudfill' | 'icon-a-tramfill' | 'icon-tornado' | 'icon-a-videoslashfill' | 'icon-personalhotspot' | 'icon-a-thermometersnowflake' | 'icon-a-sunhazefill' | 'icon-a-videofill' | 'icon-sparkles' | 'icon-a-facemaskfill' | 'icon-a-wave3backwardcirclefill' | 'icon-a-wave3leftcirclefill' | 'icon-a-wandandstarsinverse' | 'icon-a-wave3rightcirclefill' | 'icon-xmark' | 'icon-a-wave3right' | 'icon-a-waveformandmic' | 'icon-a-wifiexclamationmark' | 'icon-wifi' | 'icon-a-xmarkicloudfill' | 'icon-wind' | 'icon-timer' | 'icon-a-wrenchandscrewdriverfill' | 'icon-a-wave3forwardcirclefill' | 'icon-a-lockfill' | 'icon-a-wifislash' | 'icon-a-windsnow' | 'icon-a-wave3forward' | 'icon-cancel' | 'icon-a-arrowbackward' | 'icon-a-arrowdown' | 'icon-alarm' | 'icon-a-alarmfill' | 'icon-a-airplanedeparture' | 'icon-a-arrowlefttolinealt' | 'icon-a-arrowforward' | 'icon-airplane' | 'icon-a-arrow2squarepath' | 'icon-a-antennaradiowavesleftandright' | 'icon-a-arrowshapeturnuprightfill' | 'icon-a-arrowcounterclockwise' | 'icon-a-arrowturndownleft' | 'icon-a-arrowturnupleft' | 'icon-a-airplanearrival' | 'icon-a-boltfill' | 'icon-a-arrowturnrightup' | 'icon-a-arrowcounterclockwiseicloudfill' | 'icon-a-bellfill' | 'icon-a-arrowupanddownandarrowleftandright' | 'icon-a-beddoublefill' | 'icon-a-arrowshapeturnupleft2fill' | 'icon-a-arrowtrianglerightfillandlineverticalandarr' | 'icon-a-bolthorizontalicloudfill' | 'icon-a-boltheartfill' | 'icon-a-arrowupleftanddownrightandarrowuprightan' | 'icon-a-arrowclockwiseicloudfill' | 'icon-a-arrowupbackwardandarrowdownforward' | 'icon-a-arrowturndownright' | 'icon-bold' | 'icon-a-arrowleftarrowright' | 'icon-a-bolthorizontalfill' | 'icon-checkmark' | 'icon-a-arrowrighttolinealt' | 'icon-a-bubblerightfill' | 'icon-checkmark-2' | 'icon-clock' | 'icon-a-carfill' | 'icon-a-backwardendaltfill' | 'icon-checkmark-4' | 'icon-a-chevronright2' | 'icon-a-cloudboltrainfill' | 'icon-a-bolthorizontalcirclefill' | 'icon-a-chevronleft2' | 'icon-a-chevroncompactdown' | 'icon-a-briefcasefill' | 'icon-a-arrowturnupright' | 'icon-a-cloudboltfill' | 'icon-a-cloudfill' | 'icon-a-bubbleleftandbubblerightfill' | 'icon-a-bellbadgefill' | 'icon-checkmark-1' | 'icon-a-cloudmoonrainfill' | 'icon-a-chevroncompactright' | 'icon-a-crossfill' | 'icon-a-busfill' | 'icon-a-arrowturnleftup' | 'icon-a-cloudmoonboltfill' | 'icon-a-arrowtriangleleftfillandlineverticalandarro' | 'icon-a-checkmarkicloudfill';
|
package/lib/Iframe/Iframe.d.ts
CHANGED
package/lib/Input/props.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { BaseProps } from '../types';
|
2
2
|
import { GenericEvent as WxEvent } from '@ray-core/wechat';
|
3
|
-
export
|
3
|
+
export type InputType = 'text' | 'number' | 'digit' | 'idcard';
|
4
4
|
export interface InputProps extends BaseProps {
|
5
5
|
/**
|
6
6
|
* @description.en content
|
@@ -50,6 +50,14 @@ export interface InputProps extends BaseProps {
|
|
50
50
|
* @default done
|
51
51
|
*/
|
52
52
|
confirmType?: 'send' | 'search' | 'next' | 'go' | 'done';
|
53
|
+
/**
|
54
|
+
* @description 输入框内容左侧内容缩进,仅在涂鸦小程序有效
|
55
|
+
*/
|
56
|
+
indentStart?: string | number;
|
57
|
+
/**
|
58
|
+
* @description 输入框内容右侧内容缩进,仅在涂鸦小程序有效
|
59
|
+
*/
|
60
|
+
indentEnd?: string | number;
|
53
61
|
/**
|
54
62
|
* @description.en Input events
|
55
63
|
* @description.zh 输入事件
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { BaseProps } from '../types';
|
2
2
|
import * as React from 'react';
|
3
3
|
import { BaseEvent } from '@ray-js/adapter/esm/types/component';
|
4
|
-
export
|
4
|
+
export type PageContainerEventType = {
|
5
5
|
type: string;
|
6
6
|
value?: any;
|
7
7
|
origin: BaseEvent;
|
8
8
|
};
|
9
|
-
export
|
9
|
+
export type PageContainerProps = BaseProps & {
|
10
10
|
/** 文本是否可选 */
|
11
11
|
show?: boolean;
|
12
12
|
duration?: number;
|
package/lib/Swiper/Swiper.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { SwiperProps } from './props';
|
3
|
-
declare function Swiper<I, C extends React.FC>(props: SwiperProps<I>): JSX.Element;
|
3
|
+
declare function Swiper<I, C extends React.FC>(props: SwiperProps<I>): React.JSX.Element;
|
4
4
|
declare namespace Swiper {
|
5
5
|
var defaultProps: Partial<SwiperProps<any>>;
|
6
6
|
}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { SwiperProps } from './props';
|
3
|
-
declare function Swiper<I, C extends React.FC>(props: SwiperProps<I>): JSX.Element;
|
3
|
+
declare function Swiper<I, C extends React.FC>(props: SwiperProps<I>): React.JSX.Element;
|
4
4
|
export default Swiper;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { SwiperProps } from './props';
|
3
|
-
declare function Swiper<I, C extends React.FC>(props: SwiperProps<I>): JSX.Element;
|
3
|
+
declare function Swiper<I, C extends React.FC>(props: SwiperProps<I>): React.JSX.Element;
|
4
4
|
declare namespace Swiper {
|
5
5
|
var defaultProps: Partial<SwiperProps<any>>;
|
6
6
|
}
|
package/lib/Swiper/props.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { BaseProps } from '../types';
|
3
3
|
import { GenericEvent as WxEvent } from '@ray-core/wechat';
|
4
|
-
export
|
4
|
+
export type SwiperProps<I> = BaseProps & {
|
5
5
|
/**
|
6
6
|
* @description.en Whether to display panel points
|
7
7
|
* @description.zh 是否显示面板指示点
|
package/lib/Textarea/props.d.ts
CHANGED
package/lib/types/event.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/components",
|
3
|
-
"version": "1.4.0-alpha.
|
3
|
+
"version": "1.4.0-alpha.6",
|
4
4
|
"description": "Ray basic components",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -24,20 +24,20 @@
|
|
24
24
|
"watch": "ray start --type=component"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@ray-core/macro": "^0.3.
|
28
|
-
"@ray-core/wechat": "^0.3.
|
29
|
-
"@ray-js/adapter": "^1.4.0-alpha.
|
30
|
-
"@ray-js/framework-shared": "^1.4.0-alpha.
|
31
|
-
"ahooks": "^3.7.
|
32
|
-
"clsx": "^1.
|
33
|
-
"core-js": "^3.
|
27
|
+
"@ray-core/macro": "^0.3.6",
|
28
|
+
"@ray-core/wechat": "^0.3.6",
|
29
|
+
"@ray-js/adapter": "^1.4.0-alpha.6",
|
30
|
+
"@ray-js/framework-shared": "^1.4.0-alpha.6",
|
31
|
+
"ahooks": "^3.7.8",
|
32
|
+
"clsx": "^1.2.1",
|
33
|
+
"core-js": "^3.32.0",
|
34
34
|
"hooks": "^0.3.2",
|
35
35
|
"param-case": "^3.0.4",
|
36
36
|
"react": "^17.0.2",
|
37
37
|
"style-to-object": "^0.3.0"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@ray-js/cli": "^1.4.0-alpha.
|
40
|
+
"@ray-js/cli": "^1.4.0-alpha.6"
|
41
41
|
},
|
42
42
|
"maintainers": [
|
43
43
|
{
|
@@ -45,6 +45,6 @@
|
|
45
45
|
"email": "tuyafe@tuya.com"
|
46
46
|
}
|
47
47
|
],
|
48
|
-
"gitHead": "
|
48
|
+
"gitHead": "14cb935df10f020e714b44bb41d4899646db751c",
|
49
49
|
"repository": {}
|
50
50
|
}
|
package/LICENSE.md
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
Copyright © 2014-2022 Tuya.inc
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6
|
-
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8
|
-
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|