@100mslive/roomkit-react 0.1.20-alpha.1 → 0.2.1-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +27 -2
- package/dist/{HLSView-PJLISGG4.js → HLSView-GKCGIZ5F.js} +2 -2
- package/dist/Input/Input.d.ts +3 -3
- package/dist/Prebuilt/components/Chat/ChatActions.d.ts +2 -1
- package/dist/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.d.ts +6 -0
- package/dist/Prebuilt/components/Polls/CreateQuestions/QuestionForm.d.ts +22 -0
- package/dist/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.d.ts +11 -0
- package/dist/Prebuilt/components/Polls/Voting/StandardVoting.d.ts +5 -0
- package/dist/Prebuilt/components/Polls/Voting/TimedVoting.d.ts +5 -0
- package/dist/Prebuilt/components/Polls/Voting/Voting.d.ts +5 -0
- package/dist/Prebuilt/components/Polls/common/Line.d.ts +2 -0
- package/dist/Prebuilt/components/Polls/common/OptionInputWithDelete.d.ts +8 -0
- package/dist/Prebuilt/components/Polls/common/StatusIndicator.d.ts +4 -0
- package/dist/Prebuilt/components/Polls/common/VoteCount.d.ts +4 -0
- package/dist/Prebuilt/components/Polls/common/VoteProgress.d.ts +6 -0
- package/dist/Prebuilt/components/Polls/common/VoterList.d.ts +4 -0
- package/dist/Prebuilt/components/TileMenu/utils.d.ts +5 -0
- package/dist/Prebuilt/components/hooks/usePinnedBy.d.ts +1 -0
- package/dist/Prebuilt/components/hooks/{useSetPinnedMessages.d.ts → usePinnedMessages.d.ts} +6 -1
- package/dist/TextArea/TextArea.d.ts +441 -0
- package/dist/TextArea/index.d.ts +1 -0
- package/dist/Toast/Toast.d.ts +1 -1
- package/dist/{chunk-QENB2CO7.js → chunk-FTOP3RHP.js} +2778 -2714
- package/dist/chunk-FTOP3RHP.js.map +7 -0
- package/dist/index.cjs.js +3011 -2940
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/meta.cjs.json +477 -390
- package/dist/meta.esbuild.json +487 -398
- package/package.json +7 -8
- package/src/Button/Button.tsx +4 -4
- package/src/Input/Input.tsx +1 -1
- package/src/Prebuilt/App.tsx +2 -0
- package/src/Prebuilt/components/Chat/ChatActions.tsx +25 -8
- package/src/Prebuilt/components/Chat/ChatBody.tsx +64 -21
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -0
- package/src/Prebuilt/components/Chat/PinnedMessage.tsx +2 -2
- package/src/Prebuilt/components/Header/AdditionalRoomState.jsx +1 -38
- package/src/Prebuilt/components/Header/StreamActions.tsx +1 -1
- package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx +11 -1
- package/src/Prebuilt/components/Polls/CreateQuestions/{DeleteQuestionModal.jsx → DeleteQuestionModal.tsx} +9 -1
- package/src/Prebuilt/components/Polls/CreateQuestions/{QuestionForm.jsx → QuestionForm.tsx} +71 -30
- package/src/Prebuilt/components/Polls/CreateQuestions/{SavedQuestion.jsx → SavedQuestion.tsx} +24 -15
- package/src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx +1 -1
- package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +61 -80
- package/src/Prebuilt/components/Polls/Voting/{StandardVoting.jsx → StandardVoting.tsx} +3 -7
- package/src/Prebuilt/components/Polls/Voting/{TimedVoting.jsx → TimedVoting.tsx} +4 -7
- package/src/Prebuilt/components/Polls/Voting/{Voting.jsx → Voting.tsx} +4 -3
- package/src/Prebuilt/components/Polls/common/Line.tsx +4 -0
- package/src/Prebuilt/components/Polls/common/{OptionInputWithDelete.jsx → OptionInputWithDelete.tsx} +14 -2
- package/src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx +1 -1
- package/src/Prebuilt/components/Polls/common/{StatusIndicator.jsx → StatusIndicator.tsx} +1 -2
- package/src/Prebuilt/components/Polls/common/{VoteCount.jsx → VoteCount.tsx} +1 -2
- package/src/Prebuilt/components/Polls/common/{VoteProgress.jsx → VoteProgress.tsx} +3 -2
- package/src/Prebuilt/components/Polls/common/{VoterList.jsx → VoterList.tsx} +1 -1
- package/src/Prebuilt/components/TileMenu/TileMenu.jsx +3 -1
- package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +15 -3
- package/src/Prebuilt/components/TileMenu/utils.ts +7 -0
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +7 -3
- package/src/Prebuilt/components/VideoTile.jsx +2 -4
- package/src/Prebuilt/components/hooks/usePinnedBy.tsx +22 -0
- package/src/Prebuilt/components/hooks/{useSetPinnedMessages.ts → usePinnedMessages.ts} +2 -2
- package/src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx +1 -4
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +0 -1
- package/src/TextArea/TextArea.tsx +30 -0
- package/src/TextArea/index.tsx +1 -0
- package/src/TileMenu/StyledMenuTile.tsx +1 -0
- package/src/index.ts +1 -0
- package/src/store/StorybookSDK.ts +3 -1
- package/dist/Prebuilt/plugins/whiteboard/ToggleWhiteboard.d.ts +0 -5
- package/dist/chunk-QENB2CO7.js.map +0 -7
- package/src/Prebuilt/components/Polls/common/Votes.jsx +0 -72
- package/src/Prebuilt/layouts/WhiteboardView.jsx +0 -40
- package/src/Prebuilt/plugins/whiteboard/PusherCommunicationProvider.js +0 -110
- package/src/Prebuilt/plugins/whiteboard/README.md +0 -29
- package/src/Prebuilt/plugins/whiteboard/ToggleWhiteboard.tsx +0 -37
- package/src/Prebuilt/plugins/whiteboard/Whiteboard.css +0 -12
- package/src/Prebuilt/plugins/whiteboard/Whiteboard.jsx +0 -11
- package/src/Prebuilt/plugins/whiteboard/WhiteboardEvents.js +0 -8
- package/src/Prebuilt/plugins/whiteboard/index.js +0 -3
- package/src/Prebuilt/plugins/whiteboard/useMultiplayerState.js +0 -212
- package/src/Prebuilt/plugins/whiteboard/useWhiteboardMetadata.js +0 -47
- /package/dist/{HLSView-PJLISGG4.js.map → HLSView-GKCGIZ5F.js.map} +0 -0
package/README.md
CHANGED
@@ -6,14 +6,39 @@
|
|
6
6
|
|
7
7
|
```
|
8
8
|
// npm
|
9
|
-
npm install @100mslive/roomkit-react --save
|
9
|
+
npm install @100mslive/roomkit-react@latest --save
|
10
10
|
|
11
11
|
// yarn
|
12
|
-
yarn add @100mslive/roomkit-react
|
12
|
+
yarn add @100mslive/roomkit-react@latest
|
13
13
|
```
|
14
14
|
|
15
15
|
## Usage
|
16
16
|
|
17
|
+
#### Using room code
|
18
|
+
|
19
|
+
```jsx
|
20
|
+
import { HMSPrebuilt } from '@100mslive/roomkit-react'
|
21
|
+
|
22
|
+
export default App() {
|
23
|
+
return (
|
24
|
+
<HMSPrebuilt roomCode={<room-code>} />
|
25
|
+
);
|
26
|
+
}
|
17
27
|
```
|
28
|
+
|
29
|
+
#### Using authToken
|
30
|
+
|
31
|
+
```jsx
|
18
32
|
import { HMSPrebuilt } from '@100mslive/roomkit-react'
|
33
|
+
|
34
|
+
export default App() {
|
35
|
+
return (
|
36
|
+
<HMSPrebuilt authToken={<auth-token>} />
|
37
|
+
);
|
38
|
+
}
|
19
39
|
```
|
40
|
+
|
41
|
+
For additional props, refer the [docs](https://www.100ms.live/docs/javascript/v2/quickstart/prebuilt-quickstart#props-for-hmsprebuilt)
|
42
|
+
|
43
|
+
|
44
|
+
Prebuilt customisations are available on [100ms dashboard](https://dashboard.100ms.live)
|
@@ -23,7 +23,7 @@ import {
|
|
23
23
|
styled,
|
24
24
|
usePollViewToggle,
|
25
25
|
useTheme
|
26
|
-
} from "./chunk-
|
26
|
+
} from "./chunk-FTOP3RHP.js";
|
27
27
|
|
28
28
|
// src/Prebuilt/layouts/HLSView.jsx
|
29
29
|
init_define_process_env();
|
@@ -969,4 +969,4 @@ var HLSView_default = HLSView;
|
|
969
969
|
export {
|
970
970
|
HLSView_default as default
|
971
971
|
};
|
972
|
-
//# sourceMappingURL=HLSView-
|
972
|
+
//# sourceMappingURL=HLSView-GKCGIZ5F.js.map
|
package/dist/Input/Input.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { CSS } from '@stitches/react';
|
3
3
|
export declare const Input: import("@stitches/react/types/styled-component").StyledComponent<"input", {
|
4
|
-
|
4
|
+
error?: boolean | "true" | undefined;
|
5
5
|
}, {
|
6
6
|
allowMotion: string;
|
7
7
|
sm: string;
|
@@ -1331,8 +1331,8 @@ export declare const PasswordInput: {
|
|
1331
1331
|
}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
1332
1332
|
Input: React.FC<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
1333
1333
|
ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
|
1334
|
-
}, "
|
1335
|
-
|
1334
|
+
}, "css" | "error"> & import("@stitches/react/types/styled-component").TransformProps<{
|
1335
|
+
error?: boolean | "true" | undefined;
|
1336
1336
|
}, {
|
1337
1337
|
allowMotion: string;
|
1338
1338
|
sm: string;
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { HMSMessage } from '@100mslive/react-sdk';
|
3
|
-
export declare const ChatActions: ({ showPinAction, onReply, showReply, message, sentByLocalPeer, isMobile, openSheet, setOpenSheet, }: {
|
3
|
+
export declare const ChatActions: ({ showPinAction, onReply, onReplyGroup, showReply, message, sentByLocalPeer, isMobile, openSheet, setOpenSheet, }: {
|
4
4
|
showPinAction: boolean;
|
5
5
|
onReply: () => void;
|
6
|
+
onReplyGroup: () => void;
|
6
7
|
showReply: boolean;
|
7
8
|
message: HMSMessage;
|
8
9
|
sentByLocalPeer: boolean;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { HMSPollQuestionCreateParams, HMSPollQuestionOptionCreateParams } from '@100mslive/react-sdk';
|
3
|
+
export declare const QuestionForm: ({ question, index, length, onSave, removeQuestion, isQuiz, }: {
|
4
|
+
question: HMSPollQuestionCreateParams & {
|
5
|
+
draftID: number;
|
6
|
+
};
|
7
|
+
index: number;
|
8
|
+
length: number;
|
9
|
+
onSave: (optionParams: HMSPollQuestionCreateParams & {
|
10
|
+
draftID: number;
|
11
|
+
saved: boolean;
|
12
|
+
}) => void;
|
13
|
+
removeQuestion: () => void;
|
14
|
+
isQuiz: boolean;
|
15
|
+
}) => React.JSX.Element;
|
16
|
+
export declare const isValidQuestion: ({ text, type, options, weight, isQuiz, }: {
|
17
|
+
text: string;
|
18
|
+
type: string;
|
19
|
+
options: HMSPollQuestionOptionCreateParams[];
|
20
|
+
weight: number;
|
21
|
+
isQuiz?: boolean | undefined;
|
22
|
+
}) => boolean;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { HMSPollQuestion } from '@100mslive/react-sdk';
|
3
|
+
export declare const SavedQuestion: ({ question, index, length, convertToDraft, removeQuestion, }: {
|
4
|
+
question: HMSPollQuestion & {
|
5
|
+
draftID: number;
|
6
|
+
};
|
7
|
+
index: number;
|
8
|
+
length: number;
|
9
|
+
convertToDraft: (draftID: number) => void;
|
10
|
+
removeQuestion: (draftID: number) => void;
|
11
|
+
}) => React.JSX.Element;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { HMSPollQuestionOption } from '@100mslive/react-sdk';
|
3
|
+
export declare const OptionInputWithDelete: ({ index, option, handleOptionTextChange, removeOption, }: {
|
4
|
+
index: number;
|
5
|
+
option: HMSPollQuestionOption;
|
6
|
+
handleOptionTextChange: (index: number, value: string) => void;
|
7
|
+
removeOption: (index: number) => void;
|
8
|
+
}) => React.JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const usePinnedBy: (messageId: string) => string;
|
@@ -1,8 +1,13 @@
|
|
1
1
|
import { HMSMessage } from '@100mslive/react-sdk';
|
2
|
+
export declare type PinnedMessage = {
|
3
|
+
text: string;
|
4
|
+
id: string;
|
5
|
+
pinnedBy: string;
|
6
|
+
};
|
2
7
|
/**
|
3
8
|
* set pinned chat message by updating the session store
|
4
9
|
*/
|
5
|
-
export declare const
|
10
|
+
export declare const usePinnedMessages: () => {
|
6
11
|
setPinnedMessages: (message: HMSMessage, pinnedBy: string) => Promise<void>;
|
7
12
|
removePinnedMessage: (indexToRemove: number) => Promise<void>;
|
8
13
|
unpinBlacklistedMessages: (blacklistedMessageIDSet: Set<string>) => Promise<void>;
|
@@ -0,0 +1,441 @@
|
|
1
|
+
export declare const TextArea: import("@stitches/react/types/styled-component").StyledComponent<"textarea", {
|
2
|
+
error?: boolean | "true" | undefined;
|
3
|
+
}, {
|
4
|
+
allowMotion: string;
|
5
|
+
sm: string;
|
6
|
+
md: string;
|
7
|
+
lg: string;
|
8
|
+
xl: string;
|
9
|
+
'2xl': string;
|
10
|
+
ls: string;
|
11
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
12
|
+
allowMotion: string;
|
13
|
+
sm: string;
|
14
|
+
md: string;
|
15
|
+
lg: string;
|
16
|
+
xl: string;
|
17
|
+
'2xl': string;
|
18
|
+
ls: string;
|
19
|
+
}, {
|
20
|
+
colors: {
|
21
|
+
primary_default: string;
|
22
|
+
primary_bright: string;
|
23
|
+
primary_dim: string;
|
24
|
+
primary_disabled: string;
|
25
|
+
on_primary_high: string;
|
26
|
+
on_primary_medium: string;
|
27
|
+
on_primary_low: string;
|
28
|
+
secondary_default: string;
|
29
|
+
secondary_bright: string;
|
30
|
+
secondary_dim: string;
|
31
|
+
secondary_disabled: string;
|
32
|
+
on_secondary_high: string;
|
33
|
+
on_secondary_medium: string;
|
34
|
+
on_secondary_low: string;
|
35
|
+
background_default: string;
|
36
|
+
background_dim: string;
|
37
|
+
surface_default: string;
|
38
|
+
surface_bright: string;
|
39
|
+
surface_brighter: string;
|
40
|
+
surface_dim: string;
|
41
|
+
on_surface_high: string;
|
42
|
+
on_surface_medium: string;
|
43
|
+
on_surface_low: string;
|
44
|
+
border_default: string;
|
45
|
+
border_bright: string;
|
46
|
+
alert_success: string;
|
47
|
+
alert_warning: string;
|
48
|
+
alert_error_default: string;
|
49
|
+
alert_error_bright: string;
|
50
|
+
alert_error_brighter: string;
|
51
|
+
alert_error_dim: string;
|
52
|
+
};
|
53
|
+
shadows: {
|
54
|
+
sm: string;
|
55
|
+
md: string;
|
56
|
+
};
|
57
|
+
fonts: {
|
58
|
+
sans: string;
|
59
|
+
};
|
60
|
+
fontSizes: {
|
61
|
+
h1: string;
|
62
|
+
h2: string;
|
63
|
+
h3: string;
|
64
|
+
h4: string;
|
65
|
+
h5: string;
|
66
|
+
h6: string;
|
67
|
+
tiny: string;
|
68
|
+
xs: string;
|
69
|
+
sm: string;
|
70
|
+
md: string;
|
71
|
+
lg: string;
|
72
|
+
};
|
73
|
+
fontWeights: {
|
74
|
+
semiBold: number;
|
75
|
+
medium: number;
|
76
|
+
regular: number;
|
77
|
+
};
|
78
|
+
lineHeights: {
|
79
|
+
h1: string;
|
80
|
+
h2: string;
|
81
|
+
h3: string;
|
82
|
+
h4: string;
|
83
|
+
h5: string;
|
84
|
+
h6: string;
|
85
|
+
tiny: string;
|
86
|
+
xs: string;
|
87
|
+
sm: string;
|
88
|
+
md: string;
|
89
|
+
};
|
90
|
+
radii: {
|
91
|
+
'0': string;
|
92
|
+
'1': string;
|
93
|
+
'2': string;
|
94
|
+
'3': string;
|
95
|
+
'4': string;
|
96
|
+
round: string;
|
97
|
+
};
|
98
|
+
space: {
|
99
|
+
0: string;
|
100
|
+
xs: string;
|
101
|
+
sm: string;
|
102
|
+
md: string;
|
103
|
+
lg: string;
|
104
|
+
xl: string;
|
105
|
+
px: string;
|
106
|
+
1: string;
|
107
|
+
2: string;
|
108
|
+
3: string;
|
109
|
+
4: string;
|
110
|
+
5: string;
|
111
|
+
6: string;
|
112
|
+
7: string;
|
113
|
+
8: string;
|
114
|
+
9: string;
|
115
|
+
10: string;
|
116
|
+
11: string;
|
117
|
+
12: string;
|
118
|
+
13: string;
|
119
|
+
14: string;
|
120
|
+
15: string;
|
121
|
+
16: string;
|
122
|
+
17: string;
|
123
|
+
18: string;
|
124
|
+
19: string;
|
125
|
+
20: string;
|
126
|
+
24: string;
|
127
|
+
28: string;
|
128
|
+
32: string;
|
129
|
+
36: string;
|
130
|
+
40: string;
|
131
|
+
44: string;
|
132
|
+
48: string;
|
133
|
+
52: string;
|
134
|
+
56: string;
|
135
|
+
60: string;
|
136
|
+
64: string;
|
137
|
+
72: string;
|
138
|
+
80: string;
|
139
|
+
96: string;
|
140
|
+
100: string;
|
141
|
+
};
|
142
|
+
borderWidths: {
|
143
|
+
light: string;
|
144
|
+
normal: string;
|
145
|
+
bold: string;
|
146
|
+
extrabold: string;
|
147
|
+
black: string;
|
148
|
+
};
|
149
|
+
}, {
|
150
|
+
width: string;
|
151
|
+
height: string;
|
152
|
+
minWidth: string;
|
153
|
+
maxWidth: string;
|
154
|
+
minHeight: string;
|
155
|
+
maxHeight: string;
|
156
|
+
flexBasis: string;
|
157
|
+
gridTemplateColumns: string;
|
158
|
+
gridTemplateRows: string;
|
159
|
+
blockSize: string;
|
160
|
+
minBlockSize: string;
|
161
|
+
maxBlockSize: string;
|
162
|
+
inlineSize: string;
|
163
|
+
minInlineSize: string;
|
164
|
+
maxInlineSize: string;
|
165
|
+
gap: "space";
|
166
|
+
gridGap: "space";
|
167
|
+
columnGap: "space";
|
168
|
+
gridColumnGap: "space";
|
169
|
+
rowGap: "space";
|
170
|
+
gridRowGap: "space";
|
171
|
+
inset: "space";
|
172
|
+
insetBlock: "space";
|
173
|
+
insetBlockEnd: "space";
|
174
|
+
insetBlockStart: "space";
|
175
|
+
insetInline: "space";
|
176
|
+
insetInlineEnd: "space";
|
177
|
+
insetInlineStart: "space";
|
178
|
+
margin: "space";
|
179
|
+
marginTop: "space";
|
180
|
+
marginRight: "space";
|
181
|
+
marginBottom: "space";
|
182
|
+
marginLeft: "space";
|
183
|
+
marginBlock: "space";
|
184
|
+
marginBlockEnd: "space";
|
185
|
+
marginBlockStart: "space";
|
186
|
+
marginInline: "space";
|
187
|
+
marginInlineEnd: "space";
|
188
|
+
marginInlineStart: "space";
|
189
|
+
padding: "space";
|
190
|
+
paddingTop: "space";
|
191
|
+
paddingRight: "space";
|
192
|
+
paddingBottom: "space";
|
193
|
+
paddingLeft: "space";
|
194
|
+
paddingBlock: "space";
|
195
|
+
paddingBlockEnd: "space";
|
196
|
+
paddingBlockStart: "space";
|
197
|
+
paddingInline: "space";
|
198
|
+
paddingInlineEnd: "space";
|
199
|
+
paddingInlineStart: "space";
|
200
|
+
scrollMargin: "space";
|
201
|
+
scrollMarginTop: "space";
|
202
|
+
scrollMarginRight: "space";
|
203
|
+
scrollMarginBottom: "space";
|
204
|
+
scrollMarginLeft: "space";
|
205
|
+
scrollMarginBlock: "space";
|
206
|
+
scrollMarginBlockEnd: "space";
|
207
|
+
scrollMarginBlockStart: "space";
|
208
|
+
scrollMarginInline: "space";
|
209
|
+
scrollMarginInlineEnd: "space";
|
210
|
+
scrollMarginInlineStart: "space";
|
211
|
+
scrollPadding: "space";
|
212
|
+
scrollPaddingTop: "space";
|
213
|
+
scrollPaddingRight: "space";
|
214
|
+
scrollPaddingBottom: "space";
|
215
|
+
scrollPaddingLeft: "space";
|
216
|
+
scrollPaddingBlock: "space";
|
217
|
+
scrollPaddingBlockEnd: "space";
|
218
|
+
scrollPaddingBlockStart: "space";
|
219
|
+
scrollPaddingInline: "space";
|
220
|
+
scrollPaddingInlineEnd: "space";
|
221
|
+
scrollPaddingInlineStart: "space";
|
222
|
+
top: "space";
|
223
|
+
right: "space";
|
224
|
+
bottom: "space";
|
225
|
+
left: "space";
|
226
|
+
fontSize: "fontSizes";
|
227
|
+
background: "colors";
|
228
|
+
backgroundColor: "colors";
|
229
|
+
backgroundImage: "colors";
|
230
|
+
borderImage: "colors";
|
231
|
+
border: "colors";
|
232
|
+
borderBlock: "colors";
|
233
|
+
borderBlockEnd: "colors";
|
234
|
+
borderBlockStart: "colors";
|
235
|
+
borderBottom: "colors";
|
236
|
+
borderBottomColor: "colors";
|
237
|
+
borderColor: "colors";
|
238
|
+
borderInline: "colors";
|
239
|
+
borderInlineEnd: "colors";
|
240
|
+
borderInlineStart: "colors";
|
241
|
+
borderLeft: "colors";
|
242
|
+
borderLeftColor: "colors";
|
243
|
+
borderRight: "colors";
|
244
|
+
borderRightColor: "colors";
|
245
|
+
borderTop: "colors";
|
246
|
+
borderTopColor: "colors";
|
247
|
+
caretColor: "colors";
|
248
|
+
color: "colors";
|
249
|
+
columnRuleColor: "colors";
|
250
|
+
outline: "colors";
|
251
|
+
outlineColor: "colors";
|
252
|
+
fill: "colors";
|
253
|
+
stroke: "colors";
|
254
|
+
textDecorationColor: "colors";
|
255
|
+
fontFamily: "fonts";
|
256
|
+
fontWeight: "fontWeights";
|
257
|
+
lineHeight: "lineHeights";
|
258
|
+
letterSpacing: "letterSpacings";
|
259
|
+
borderWidth: "borderWidths";
|
260
|
+
borderTopWidth: "borderWidths";
|
261
|
+
borderLeftWidth: "borderWidths";
|
262
|
+
borderRightWidth: "borderWidths";
|
263
|
+
borderBottomWidth: "borderWidths";
|
264
|
+
borderStyle: "borderStyles";
|
265
|
+
borderTopStyle: "borderStyles";
|
266
|
+
borderLeftStyle: "borderStyles";
|
267
|
+
borderRightStyle: "borderStyles";
|
268
|
+
borderBottomStyle: "borderStyles";
|
269
|
+
borderRadius: "radii";
|
270
|
+
borderTopLeftRadius: "radii";
|
271
|
+
borderTopRightRadius: "radii";
|
272
|
+
borderBottomRightRadius: "radii";
|
273
|
+
borderBottomLeftRadius: "radii";
|
274
|
+
boxShadow: "shadows";
|
275
|
+
textShadow: "shadows";
|
276
|
+
transition: "transitions";
|
277
|
+
zIndex: "zIndices";
|
278
|
+
}, {
|
279
|
+
bg: (value: {
|
280
|
+
readonly [$$PropertyValue]: "backgroundColor";
|
281
|
+
}) => {
|
282
|
+
backgroundColor: {
|
283
|
+
readonly [$$PropertyValue]: "backgroundColor";
|
284
|
+
};
|
285
|
+
};
|
286
|
+
c: (value: {
|
287
|
+
readonly [$$PropertyValue]: "color";
|
288
|
+
}) => {
|
289
|
+
color: {
|
290
|
+
readonly [$$PropertyValue]: "color";
|
291
|
+
};
|
292
|
+
};
|
293
|
+
r: (value: {
|
294
|
+
readonly [$$ScaleValue]: "radii";
|
295
|
+
}) => {
|
296
|
+
borderRadius: {
|
297
|
+
readonly [$$ScaleValue]: "radii";
|
298
|
+
};
|
299
|
+
};
|
300
|
+
fs: (value: string | number | {
|
301
|
+
readonly [$$PropertyValue]: "fontSize";
|
302
|
+
}) => {
|
303
|
+
fontSize: string | number | {
|
304
|
+
readonly [$$PropertyValue]: "fontSize";
|
305
|
+
};
|
306
|
+
};
|
307
|
+
size: (value: string | number | {
|
308
|
+
readonly [$$ScaleValue]: "space";
|
309
|
+
}) => {
|
310
|
+
height: string | number | {
|
311
|
+
readonly [$$ScaleValue]: "space";
|
312
|
+
};
|
313
|
+
width: string | number | {
|
314
|
+
readonly [$$ScaleValue]: "space";
|
315
|
+
};
|
316
|
+
};
|
317
|
+
w: (value: string | number | {
|
318
|
+
readonly [$$ScaleValue]: "space";
|
319
|
+
}) => {
|
320
|
+
width: string | number | {
|
321
|
+
readonly [$$ScaleValue]: "space";
|
322
|
+
};
|
323
|
+
};
|
324
|
+
h: (value: string | number | {
|
325
|
+
readonly [$$ScaleValue]: "space";
|
326
|
+
}) => {
|
327
|
+
height: string | number | {
|
328
|
+
readonly [$$ScaleValue]: "space";
|
329
|
+
};
|
330
|
+
};
|
331
|
+
p: (value: string | number | {
|
332
|
+
readonly [$$ScaleValue]: "space";
|
333
|
+
}) => {
|
334
|
+
padding: string | number | {
|
335
|
+
readonly [$$ScaleValue]: "space";
|
336
|
+
};
|
337
|
+
};
|
338
|
+
pt: (value: string | number | {
|
339
|
+
readonly [$$ScaleValue]: "space";
|
340
|
+
}) => {
|
341
|
+
paddingTop: string | number | {
|
342
|
+
readonly [$$ScaleValue]: "space";
|
343
|
+
};
|
344
|
+
};
|
345
|
+
pr: (value: string | number | {
|
346
|
+
readonly [$$ScaleValue]: "space";
|
347
|
+
}) => {
|
348
|
+
paddingRight: string | number | {
|
349
|
+
readonly [$$ScaleValue]: "space";
|
350
|
+
};
|
351
|
+
};
|
352
|
+
pb: (value: string | number | {
|
353
|
+
readonly [$$ScaleValue]: "space";
|
354
|
+
}) => {
|
355
|
+
paddingBottom: string | number | {
|
356
|
+
readonly [$$ScaleValue]: "space";
|
357
|
+
};
|
358
|
+
};
|
359
|
+
pl: (value: string | number | {
|
360
|
+
readonly [$$ScaleValue]: "space";
|
361
|
+
}) => {
|
362
|
+
paddingLeft: string | number | {
|
363
|
+
readonly [$$ScaleValue]: "space";
|
364
|
+
};
|
365
|
+
};
|
366
|
+
px: (value: string | number | {
|
367
|
+
readonly [$$ScaleValue]: "space";
|
368
|
+
}) => {
|
369
|
+
paddingLeft: string | number | {
|
370
|
+
readonly [$$ScaleValue]: "space";
|
371
|
+
};
|
372
|
+
paddingRight: string | number | {
|
373
|
+
readonly [$$ScaleValue]: "space";
|
374
|
+
};
|
375
|
+
};
|
376
|
+
py: (value: string | number | {
|
377
|
+
readonly [$$ScaleValue]: "space";
|
378
|
+
}) => {
|
379
|
+
paddingTop: string | number | {
|
380
|
+
readonly [$$ScaleValue]: "space";
|
381
|
+
};
|
382
|
+
paddingBottom: string | number | {
|
383
|
+
readonly [$$ScaleValue]: "space";
|
384
|
+
};
|
385
|
+
};
|
386
|
+
m: (value: string | number | {
|
387
|
+
readonly [$$ScaleValue]: "space";
|
388
|
+
}) => {
|
389
|
+
margin: string | number | {
|
390
|
+
readonly [$$ScaleValue]: "space";
|
391
|
+
};
|
392
|
+
};
|
393
|
+
mt: (value: string | number | {
|
394
|
+
readonly [$$ScaleValue]: "space";
|
395
|
+
}) => {
|
396
|
+
marginTop: string | number | {
|
397
|
+
readonly [$$ScaleValue]: "space";
|
398
|
+
};
|
399
|
+
};
|
400
|
+
mr: (value: string | number | {
|
401
|
+
readonly [$$ScaleValue]: "space";
|
402
|
+
}) => {
|
403
|
+
marginRight: string | number | {
|
404
|
+
readonly [$$ScaleValue]: "space";
|
405
|
+
};
|
406
|
+
};
|
407
|
+
mb: (value: string | number | {
|
408
|
+
readonly [$$ScaleValue]: "space";
|
409
|
+
}) => {
|
410
|
+
marginBottom: string | number | {
|
411
|
+
readonly [$$ScaleValue]: "space";
|
412
|
+
};
|
413
|
+
};
|
414
|
+
ml: (value: string | number | {
|
415
|
+
readonly [$$ScaleValue]: "space";
|
416
|
+
}) => {
|
417
|
+
marginLeft: string | number | {
|
418
|
+
readonly [$$ScaleValue]: "space";
|
419
|
+
};
|
420
|
+
};
|
421
|
+
mx: (value: string | number | {
|
422
|
+
readonly [$$ScaleValue]: "space";
|
423
|
+
}) => {
|
424
|
+
marginLeft: string | number | {
|
425
|
+
readonly [$$ScaleValue]: "space";
|
426
|
+
};
|
427
|
+
marginRight: string | number | {
|
428
|
+
readonly [$$ScaleValue]: "space";
|
429
|
+
};
|
430
|
+
};
|
431
|
+
my: (value: string | number | {
|
432
|
+
readonly [$$ScaleValue]: "space";
|
433
|
+
}) => {
|
434
|
+
marginTop: string | number | {
|
435
|
+
readonly [$$ScaleValue]: "space";
|
436
|
+
};
|
437
|
+
marginBottom: string | number | {
|
438
|
+
readonly [$$ScaleValue]: "space";
|
439
|
+
};
|
440
|
+
};
|
441
|
+
}>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { TextArea } from './TextArea';
|
package/dist/Toast/Toast.d.ts
CHANGED
@@ -451,7 +451,7 @@ interface HMSToastProps extends ToastProps {
|
|
451
451
|
export declare const Toast: {
|
452
452
|
Provider: React.FC<ToastPrimitives.ToastProviderProps>;
|
453
453
|
Root: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLLIElement>>, {
|
454
|
-
variant?: "standard" | "
|
454
|
+
variant?: "standard" | "error" | "warning" | "success" | undefined;
|
455
455
|
}, {
|
456
456
|
allowMotion: string;
|
457
457
|
sm: string;
|