@popmenu/common-ui 0.22.0 → 0.25.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/build/components/TabPanel/TabPanel.d.ts +3 -0
- package/build/components/TabPanel/TabPanelProps.d.ts +3 -0
- package/build/components/TabPanel/index.d.ts +2 -0
- package/build/components/Typography/Typography.d.ts +2 -2
- package/build/components/Typography/TypographyProps.d.ts +4 -0
- package/build/components/Typography/TypographyStyles.d.ts +2 -2
- package/build/components/Typography/index.d.ts +1 -1
- package/build/components/index.d.ts +1 -0
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/useTabs/index.d.ts +1 -0
- package/build/hooks/useTabs/useTabs.d.ts +3 -0
- package/build/hooks/useTabs/useTabsOptions.d.ts +3 -0
- package/build/hooks/useTabs/useTabsResult.d.ts +21 -0
- package/build/index.es.js +93 -59
- package/build/index.es.js.map +1 -1
- package/build/index.js +93 -58
- package/build/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TypographyProps } from '
|
|
3
|
-
export declare const Typography: React.ForwardRefExoticComponent<Pick<TypographyProps
|
|
2
|
+
import { TypographyProps } from './TypographyProps';
|
|
3
|
+
export declare const Typography: React.ForwardRefExoticComponent<Pick<TypographyProps, "className" | "style" | "classes" | "innerRef" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "noWrap" | "gutterBottom" | "paragraph" | "weight" | "align" | "display" | "variant" | "variantMapping"> & React.RefAttributes<HTMLParagraphElement | HTMLHeadingElement | HTMLSpanElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TypographyProps } from '
|
|
2
|
-
export declare const useTypographyStyles: (props: TypographyProps
|
|
1
|
+
import { TypographyProps } from './TypographyProps';
|
|
2
|
+
export declare const useTypographyStyles: (props: TypographyProps) => import("@material-ui/styles").ClassNameMap<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Typography as default } from './Typography';
|
|
2
|
-
export { TypographyProps } from '
|
|
2
|
+
export { TypographyProps } from './TypographyProps';
|
|
@@ -65,6 +65,7 @@ export { default as SplitInput, SplitInputProps } from './SplitInput';
|
|
|
65
65
|
export { default as Switch, SwitchProps } from './Switch';
|
|
66
66
|
export { default as Tab, TabProps } from './Tab';
|
|
67
67
|
export { default as Tabs, TabsProps } from './Tabs';
|
|
68
|
+
export { TabPanel, TabPanelProps } from './TabPanel';
|
|
68
69
|
export { default as TextField, TextFieldProps } from './TextField';
|
|
69
70
|
export { default as ThemeProvider, ThemeProviderProps } from './ThemeProvider';
|
|
70
71
|
export { default as ToggleButton, ToggleButtonProps } from './ToggleButton';
|
package/build/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useTabs } from './useTabs';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare type PreConfiguredTabProps = {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
'aria-controls': string;
|
|
6
|
+
};
|
|
7
|
+
declare type PreConfiguredPanelProps = {
|
|
8
|
+
id: string;
|
|
9
|
+
role: string;
|
|
10
|
+
show: boolean;
|
|
11
|
+
'aria-labelledby': string;
|
|
12
|
+
};
|
|
13
|
+
export declare type UseTabResult = [PreConfiguredTabProps, PreConfiguredPanelProps];
|
|
14
|
+
export interface UseTabsResult {
|
|
15
|
+
TabsProps: {
|
|
16
|
+
onChange: (event: any, value: string) => void;
|
|
17
|
+
value: string;
|
|
18
|
+
};
|
|
19
|
+
useTab: (baseTabId: string) => UseTabResult;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
package/build/index.es.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export { default as Alert } from '@material-ui/lab/Alert';
|
|
2
|
-
import { makeStyles, Paper as Paper$1, useTheme, Box, Popper, Grow, Slider, Link as Link$1, TextField as TextField$1 } from '@material-ui/core';
|
|
2
|
+
import { makeStyles, Typography as Typography$1, Paper as Paper$1, useTheme, Box, Popper, Grow, Slider, Link as Link$1, TextField as TextField$1 } from '@material-ui/core';
|
|
3
3
|
export { Accordion, AccordionActions, AccordionDetails, AccordionSummary, Box, Breadcrumbs, ButtonBase, ClickAwayListener, Fab, GridList, Hidden, Modal, Popover, Popper, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper, ThemeProvider, Toolbar, alpha, createTheme, darken, decomposeColor, getLuminance, hexToRgb, lighten, makeStyles, recomposeColor, rgbToHex } from '@material-ui/core';
|
|
4
4
|
export { default as AppBar } from '@material-ui/core/AppBar';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { createElement, forwardRef, useRef, useState, useReducer, useEffect, useMemo } from 'react';
|
|
7
7
|
import MuiIconButton from '@material-ui/core/IconButton';
|
|
8
|
-
import MuiTypography from '@material-ui/core/Typography';
|
|
9
8
|
import { makeStyles as makeStyles$1, useTheme as useTheme$1 } from '@material-ui/core/styles';
|
|
10
9
|
export { ServerStyleSheets } from '@material-ui/core/styles';
|
|
11
10
|
import MuiAvatar from '@material-ui/core/Avatar';
|
|
@@ -90,12 +89,12 @@ function __rest(s, e) {
|
|
|
90
89
|
return t;
|
|
91
90
|
}
|
|
92
91
|
|
|
93
|
-
var _path$
|
|
92
|
+
var _path$3N;
|
|
94
93
|
|
|
95
|
-
function _extends$
|
|
94
|
+
function _extends$42() { _extends$42 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$42.apply(this, arguments); }
|
|
96
95
|
|
|
97
96
|
function SvgMinusCircle(props) {
|
|
98
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
97
|
+
return /*#__PURE__*/React.createElement("svg", _extends$42({
|
|
99
98
|
viewBox: "0 0 16 16",
|
|
100
99
|
strokeLinecap: "round",
|
|
101
100
|
strokeLinejoin: "round",
|
|
@@ -103,17 +102,17 @@ function SvgMinusCircle(props) {
|
|
|
103
102
|
width: "1em",
|
|
104
103
|
height: "1em",
|
|
105
104
|
fill: "none"
|
|
106
|
-
}, props), _path$
|
|
105
|
+
}, props), _path$3N || (_path$3N = /*#__PURE__*/React.createElement("path", {
|
|
107
106
|
d: "M8 14.667A6.667 6.667 0 108 1.333a6.667 6.667 0 000 13.334zM5.333 8h5.334"
|
|
108
107
|
})));
|
|
109
108
|
}
|
|
110
109
|
|
|
111
|
-
var _path$
|
|
110
|
+
var _path$3F;
|
|
112
111
|
|
|
113
|
-
function _extends$
|
|
112
|
+
function _extends$3W() { _extends$3W = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3W.apply(this, arguments); }
|
|
114
113
|
|
|
115
114
|
function SvgPlusCircle(props) {
|
|
116
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
115
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3W({
|
|
117
116
|
viewBox: "0 0 16 16",
|
|
118
117
|
strokeLinecap: "round",
|
|
119
118
|
strokeLinejoin: "round",
|
|
@@ -121,17 +120,17 @@ function SvgPlusCircle(props) {
|
|
|
121
120
|
width: "1em",
|
|
122
121
|
height: "1em",
|
|
123
122
|
fill: "none"
|
|
124
|
-
}, props), _path$
|
|
123
|
+
}, props), _path$3F || (_path$3F = /*#__PURE__*/React.createElement("path", {
|
|
125
124
|
d: "M8 14.667A6.667 6.667 0 108 1.333a6.667 6.667 0 000 13.334zm0-9.334v5.334M5.333 8h5.334"
|
|
126
125
|
})));
|
|
127
126
|
}
|
|
128
127
|
|
|
129
|
-
var _path$
|
|
128
|
+
var _path$3l;
|
|
130
129
|
|
|
131
|
-
function _extends$
|
|
130
|
+
function _extends$3C() { _extends$3C = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3C.apply(this, arguments); }
|
|
132
131
|
|
|
133
132
|
function SvgUser(props) {
|
|
134
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
133
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3C({
|
|
135
134
|
viewBox: "0 0 16 16",
|
|
136
135
|
strokeLinecap: "round",
|
|
137
136
|
strokeLinejoin: "round",
|
|
@@ -139,17 +138,17 @@ function SvgUser(props) {
|
|
|
139
138
|
width: "1em",
|
|
140
139
|
height: "1em",
|
|
141
140
|
fill: "none"
|
|
142
|
-
}, props), _path$
|
|
141
|
+
}, props), _path$3l || (_path$3l = /*#__PURE__*/React.createElement("path", {
|
|
143
142
|
d: "M13.333 14v-1.333A2.667 2.667 0 0010.667 10H5.333a2.667 2.667 0 00-2.666 2.667V14M8 7.333A2.667 2.667 0 108 2a2.667 2.667 0 000 5.333z"
|
|
144
143
|
})));
|
|
145
144
|
}
|
|
146
145
|
|
|
147
|
-
var _path$
|
|
146
|
+
var _path$1g;
|
|
148
147
|
|
|
149
|
-
function _extends$
|
|
148
|
+
function _extends$1q() { _extends$1q = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1q.apply(this, arguments); }
|
|
150
149
|
|
|
151
150
|
function SvgPause(props) {
|
|
152
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
151
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1q({
|
|
153
152
|
viewBox: "0 0 16 16",
|
|
154
153
|
strokeLinecap: "round",
|
|
155
154
|
strokeLinejoin: "round",
|
|
@@ -157,17 +156,17 @@ function SvgPause(props) {
|
|
|
157
156
|
width: "1em",
|
|
158
157
|
height: "1em",
|
|
159
158
|
fill: "none"
|
|
160
|
-
}, props), _path$
|
|
159
|
+
}, props), _path$1g || (_path$1g = /*#__PURE__*/React.createElement("path", {
|
|
161
160
|
d: "M6.667 2.667H4v10.666h2.667V2.667zm5.333 0H9.333v10.666H12V2.667z"
|
|
162
161
|
})));
|
|
163
162
|
}
|
|
164
163
|
|
|
165
|
-
var _path$
|
|
164
|
+
var _path$1e;
|
|
166
165
|
|
|
167
|
-
function _extends$
|
|
166
|
+
function _extends$1o() { _extends$1o = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1o.apply(this, arguments); }
|
|
168
167
|
|
|
169
168
|
function SvgPlay(props) {
|
|
170
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
169
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1o({
|
|
171
170
|
viewBox: "0 0 16 16",
|
|
172
171
|
strokeLinecap: "round",
|
|
173
172
|
strokeLinejoin: "round",
|
|
@@ -175,17 +174,17 @@ function SvgPlay(props) {
|
|
|
175
174
|
width: "1em",
|
|
176
175
|
height: "1em",
|
|
177
176
|
fill: "none"
|
|
178
|
-
}, props), _path$
|
|
177
|
+
}, props), _path$1e || (_path$1e = /*#__PURE__*/React.createElement("path", {
|
|
179
178
|
d: "M3.333 2l9.334 6-9.334 6V2z"
|
|
180
179
|
})));
|
|
181
180
|
}
|
|
182
181
|
|
|
183
|
-
var _path$
|
|
182
|
+
var _path$11;
|
|
184
183
|
|
|
185
|
-
function _extends$
|
|
184
|
+
function _extends$1b() { _extends$1b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1b.apply(this, arguments); }
|
|
186
185
|
|
|
187
186
|
function SvgVolumeDown(props) {
|
|
188
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
187
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1b({
|
|
189
188
|
viewBox: "0 0 16 16",
|
|
190
189
|
strokeLinecap: "round",
|
|
191
190
|
strokeLinejoin: "round",
|
|
@@ -193,17 +192,17 @@ function SvgVolumeDown(props) {
|
|
|
193
192
|
width: "1em",
|
|
194
193
|
height: "1em",
|
|
195
194
|
fill: "none"
|
|
196
|
-
}, props), _path$
|
|
195
|
+
}, props), _path$11 || (_path$11 = /*#__PURE__*/React.createElement("path", {
|
|
197
196
|
d: "M8.999 3.333L5.665 6H3v4h2.666L9 12.667V3.333zm3.026 2.307a3.333 3.333 0 010 4.713"
|
|
198
197
|
})));
|
|
199
198
|
}
|
|
200
199
|
|
|
201
|
-
var _path
|
|
200
|
+
var _path$10;
|
|
202
201
|
|
|
203
|
-
function _extends$
|
|
202
|
+
function _extends$1a() { _extends$1a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1a.apply(this, arguments); }
|
|
204
203
|
|
|
205
204
|
function SvgVolumeMute(props) {
|
|
206
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
205
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1a({
|
|
207
206
|
viewBox: "0 0 16 16",
|
|
208
207
|
strokeLinecap: "round",
|
|
209
208
|
strokeLinejoin: "round",
|
|
@@ -211,17 +210,17 @@ function SvgVolumeMute(props) {
|
|
|
211
210
|
width: "1em",
|
|
212
211
|
height: "1em",
|
|
213
212
|
fill: "none"
|
|
214
|
-
}, props), _path
|
|
213
|
+
}, props), _path$10 || (_path$10 = /*#__PURE__*/React.createElement("path", {
|
|
215
214
|
d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333z"
|
|
216
215
|
})));
|
|
217
216
|
}
|
|
218
217
|
|
|
219
|
-
var _path
|
|
218
|
+
var _path$$;
|
|
220
219
|
|
|
221
|
-
function _extends$
|
|
220
|
+
function _extends$19() { _extends$19 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$19.apply(this, arguments); }
|
|
222
221
|
|
|
223
222
|
function SvgVolumeOff(props) {
|
|
224
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
223
|
+
return /*#__PURE__*/React.createElement("svg", _extends$19({
|
|
225
224
|
viewBox: "0 0 16 16",
|
|
226
225
|
strokeLinecap: "round",
|
|
227
226
|
strokeLinejoin: "round",
|
|
@@ -229,17 +228,17 @@ function SvgVolumeOff(props) {
|
|
|
229
228
|
width: "1em",
|
|
230
229
|
height: "1em",
|
|
231
230
|
fill: "none"
|
|
232
|
-
}, props), _path
|
|
231
|
+
}, props), _path$$ || (_path$$ = /*#__PURE__*/React.createElement("path", {
|
|
233
232
|
d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333zm8 2.667l-4 4m0-4l4 4"
|
|
234
233
|
})));
|
|
235
234
|
}
|
|
236
235
|
|
|
237
|
-
var _path$
|
|
236
|
+
var _path$_;
|
|
238
237
|
|
|
239
|
-
function _extends$
|
|
238
|
+
function _extends$18() { _extends$18 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$18.apply(this, arguments); }
|
|
240
239
|
|
|
241
240
|
function SvgVolumeUp(props) {
|
|
242
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
241
|
+
return /*#__PURE__*/React.createElement("svg", _extends$18({
|
|
243
242
|
viewBox: "0 0 16 16",
|
|
244
243
|
strokeLinecap: "round",
|
|
245
244
|
strokeLinejoin: "round",
|
|
@@ -247,7 +246,7 @@ function SvgVolumeUp(props) {
|
|
|
247
246
|
width: "1em",
|
|
248
247
|
height: "1em",
|
|
249
248
|
fill: "none"
|
|
250
|
-
}, props), _path$
|
|
249
|
+
}, props), _path$_ || (_path$_ = /*#__PURE__*/React.createElement("path", {
|
|
251
250
|
d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333zm5.38-.046a6.667 6.667 0 010 9.426M10.36 5.64a3.333 3.333 0 010 4.713"
|
|
252
251
|
})));
|
|
253
252
|
}
|
|
@@ -374,29 +373,29 @@ IconButton.defaultProps = {
|
|
|
374
373
|
color: 'secondary',
|
|
375
374
|
};
|
|
376
375
|
|
|
377
|
-
var useTypographyStyles = makeStyles$1(function () {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
});
|
|
376
|
+
var useTypographyStyles = makeStyles$1(function () { return ({
|
|
377
|
+
root: function (_a) {
|
|
378
|
+
var _b;
|
|
379
|
+
var weight = _a.weight;
|
|
380
|
+
return (__assign((_b = {}, _b["& ." + iconStaticClassName] = {
|
|
381
|
+
position: 'relative',
|
|
382
|
+
top: '0.125em',
|
|
383
|
+
padding: '0 0.125em',
|
|
384
|
+
boxSizing: 'content-box',
|
|
385
|
+
}, _b), (weight && { fontWeight: (weight === 'semi-bold' && 600) || (weight === 'bold' && 700) || 400 })));
|
|
386
|
+
},
|
|
387
|
+
caption: {
|
|
388
|
+
display: 'inline',
|
|
389
|
+
},
|
|
390
|
+
overline: {
|
|
391
|
+
display: 'inline',
|
|
392
|
+
},
|
|
393
|
+
}); });
|
|
396
394
|
|
|
397
395
|
var Typography = forwardRef(function (props, ref) {
|
|
396
|
+
props.weight; var restProps = __rest(props, ["weight"]);
|
|
398
397
|
var classes = useTypographyStyles(props);
|
|
399
|
-
return React__default.createElement(
|
|
398
|
+
return React__default.createElement(Typography$1, __assign({ ref: ref, classes: classes }, restProps));
|
|
400
399
|
});
|
|
401
400
|
Typography.displayName = 'Typography';
|
|
402
401
|
|
|
@@ -967,6 +966,11 @@ var Switch = forwardRef(function (props, ref) {
|
|
|
967
966
|
});
|
|
968
967
|
Switch.displayName = 'Switch';
|
|
969
968
|
|
|
969
|
+
var TabPanel = function (props) {
|
|
970
|
+
var children = props.children, show = props.show;
|
|
971
|
+
return show ? React__default.createElement(Box, null, children) : null;
|
|
972
|
+
};
|
|
973
|
+
|
|
970
974
|
var useToggleButtonStyles = makeStyles$1(function (theme) { return ({
|
|
971
975
|
root: {
|
|
972
976
|
color: theme.palette.text.primary,
|
|
@@ -1082,5 +1086,35 @@ var useCollapsibleText = function () {
|
|
|
1082
1086
|
};
|
|
1083
1087
|
};
|
|
1084
1088
|
|
|
1085
|
-
|
|
1089
|
+
var useTabs = function (options) {
|
|
1090
|
+
var initialTab = options.initialTab;
|
|
1091
|
+
var genTabId = function (id) { return ("tab-" + id).toLowerCase().replace(/ /g, '-'); };
|
|
1092
|
+
var genPanelId = function (id) { return ("tab-panel-" + id).toLowerCase().replace(/ /g, '-'); };
|
|
1093
|
+
var _a = useState(genTabId(initialTab)), activeTab = _a[0], setActiveTab = _a[1];
|
|
1094
|
+
var handleChange = function (_, nextTab) { return setActiveTab(nextTab); };
|
|
1095
|
+
var TabsProps = { onChange: handleChange, value: activeTab };
|
|
1096
|
+
var useTab = function (baseId) {
|
|
1097
|
+
var tabId = genTabId(baseId);
|
|
1098
|
+
var tabPanelId = genPanelId(baseId);
|
|
1099
|
+
var tabProps = {
|
|
1100
|
+
id: tabId,
|
|
1101
|
+
label: baseId,
|
|
1102
|
+
value: tabId,
|
|
1103
|
+
'aria-controls': tabPanelId,
|
|
1104
|
+
};
|
|
1105
|
+
var panelProps = {
|
|
1106
|
+
id: tabPanelId,
|
|
1107
|
+
role: 'tabpanel',
|
|
1108
|
+
show: activeTab === tabId,
|
|
1109
|
+
'aria-labelledby': tabId,
|
|
1110
|
+
};
|
|
1111
|
+
return [tabProps, panelProps];
|
|
1112
|
+
};
|
|
1113
|
+
return {
|
|
1114
|
+
TabsProps: TabsProps,
|
|
1115
|
+
useTab: useTab,
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
export { AudioPlayer, Avatar, Button, Checkbox, CollapsibleText, Divider, Icon, IconButton, Link, NumberField, Paper, PaperContent, Radio, SplitInput, Switch, TabPanel, ToggleButton, ToggleButtonGroup, Tooltip, Typography, useCollapsibleText, useTabs };
|
|
1086
1120
|
//# sourceMappingURL=index.es.js.map
|