@via-profit/ui-kit 0.1.8 → 0.2.1-alpha.3
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/Accordion/index.d.ts +4 -4
- package/Autocomplete/AutocompleteContainer.d.ts +34 -7
- package/Autocomplete/AutocompleteContainer.js +28 -24
- package/Autocomplete/AutocompleteItem.d.ts +1 -1
- package/Autocomplete/AutocompleteTextField.d.ts +3 -0
- package/Autocomplete/AutocompleteTextField.js +63 -1
- package/Autocomplete/OverrideMenuList.d.ts +4 -0
- package/Autocomplete/OverrideMenuList.js +39 -0
- package/Autocomplete/context.d.ts +9 -1
- package/Autocomplete/context.js +15 -1
- package/Autocomplete/index.js +9 -10
- package/Autocomplete2/Autocomplete2.d.ts +12 -0
- package/Autocomplete2/Autocomplete2.js +83 -0
- package/Autocomplete2/Autocomplete2TextField.d.ts +7 -0
- package/Autocomplete2/Autocomplete2TextField.js +39 -0
- package/Autocomplete2/index.d.ts +2 -0
- package/Autocomplete2/index.js +7 -0
- package/Avatar/AvatarBase.d.ts +4 -4
- package/Avatar/index.js +1 -1
- package/Badge/BadgeBase.d.ts +4 -4
- package/Badge/BadgeDeleteButton.js +6 -6
- package/Badge/BadgeOutlined.js +2 -2
- package/Badge/BadgeStandard.js +1 -1
- package/Button/ButtonBase.d.ts +3 -3
- package/Button/ButtonOutlined.js +1 -1
- package/Button/ButtonPlain.js +1 -1
- package/Button/ButtonStandard.js +4 -11
- package/Calendar/CalendarCell.js +22 -4
- package/Calendar/CalendarComponent.d.ts +226 -0
- package/Calendar/CalendarComponent.js +572 -0
- package/Calendar/CalendarControlButton.js +16 -9
- package/Calendar/CalendarDayBadge.js +1 -1
- package/Calendar/CalendarEmptyCell.d.ts +2 -2
- package/Calendar/CalendarEmptyCell.js +8 -3
- package/Calendar/CalendarHeading.js +2 -1
- package/Calendar/CalendarMonthCell.js +0 -5
- package/Calendar/CalendarSubheading.js +3 -2
- package/Calendar/CalendarWeekDayCell.d.ts +10 -0
- package/Calendar/CalendarWeekDayCell.js +32 -0
- package/Calendar/CalendarWeekDayWeekNumber.d.ts +7 -0
- package/Calendar/CalendarWeekDayWeekNumber.js +38 -0
- package/Calendar/CalendarWeekRow.d.ts +2 -2
- package/Calendar/CalendarWeekRow.js +2 -1
- package/Calendar/CalendarWeekRowButton.d.ts +13 -0
- package/Calendar/CalendarWeekRowButton.js +31 -0
- package/Calendar/CalendarYearCell.js +5 -5
- package/Calendar/CalendarYearsSelector.d.ts +39 -1
- package/Calendar/CalendarYearsSelector.js +52 -16
- package/Calendar/IconChevronDown.d.ts +3 -0
- package/Calendar/IconChevronDown.js +31 -0
- package/Calendar/index.d.ts +7 -220
- package/Calendar/index.js +19 -274
- package/Calendar/use-calendar.d.ts +1 -1
- package/Calendar/use-calendar.js +102 -155
- package/Color/Color.d.ts +138 -0
- package/Color/Color.js +324 -0
- package/Color/ColorGenerator.d.ts +29 -0
- package/Color/ColorGenerator.js +141 -0
- package/Color/ColorParser.d.ts +20 -0
- package/Color/ColorParser.js +284 -0
- package/Color/index.d.ts +4 -122
- package/Color/index.js +18 -473
- package/DatePicker/index.d.ts +2 -17
- package/DatePicker/index.js +47 -61
- package/DatePicker/useDatePickerFormat.js +5 -5
- package/ErrorBoundary/Fallback.d.ts +3 -0
- package/ErrorBoundary/Fallback.js +51 -0
- package/ErrorBoundary/RenderError.d.ts +6 -0
- package/ErrorBoundary/RenderError.js +80 -0
- package/ErrorBoundary/index.d.ts +7 -11
- package/ErrorBoundary/index.js +4 -51
- package/Highlighted/index.d.ts +3 -3
- package/LoadingIndicator/Spinner.d.ts +5 -3
- package/LoadingIndicator/Spinner.js +61 -32
- package/LoadingIndicator/index.d.ts +3 -3
- package/LoadingIndicator/index.js +15 -2
- package/MaskedField/index.d.ts +1 -1
- package/MaskedField/index.js +11 -10
- package/Menu/AutoHeightWrapper.d.ts +6 -0
- package/Menu/AutoHeightWrapper.js +43 -0
- package/Menu/MeasuredItem.d.ts +10 -0
- package/Menu/MeasuredItem.js +51 -0
- package/Menu/MenuContainer.d.ts +53 -20
- package/Menu/MenuContainer.js +18 -11
- package/Menu/MenuItem.d.ts +24 -7
- package/Menu/MenuItem.js +13 -6
- package/Menu/MenuList.d.ts +4 -2
- package/Menu/MenuList.js +26 -6
- package/Menu/VirtualizedItem.d.ts +22 -0
- package/Menu/VirtualizedItem.js +69 -0
- package/Menu/VirtualizedList.d.ts +18 -0
- package/Menu/VirtualizedList.js +28 -0
- package/Menu/VirtualizedListComponent.d.ts +20 -0
- package/Menu/VirtualizedListComponent.js +305 -0
- package/Menu/index.d.ts +3 -1
- package/Menu/index.js +4 -7
- package/Modal/BaseModal/RenderModal.d.ts +3 -3
- package/Modal/BaseModal/index.d.ts +3 -3
- package/Modal/ConfirmBox/index.d.ts +5 -5
- package/Modal/Drawer/index.d.ts +5 -5
- package/Modal/MessageBox/index.d.ts +5 -5
- package/Popper/Popper.d.ts +148 -0
- package/Popper/Popper.js +113 -0
- package/Popper/PopperContainer.d.ts +2 -0
- package/Popper/PopperContainer.js +3 -6
- package/Popper/index.d.ts +5 -22
- package/Popper/index.js +18 -264
- package/Popper/usePopprer.d.ts +110 -0
- package/Popper/usePopprer.js +505 -0
- package/Selectbox/SelectboxButton.d.ts +5 -0
- package/Selectbox/SelectboxButton.js +48 -8
- package/Selectbox/SelectboxButtonWrapper.d.ts +2 -0
- package/Selectbox/SelectboxButtonWrapper.js +1 -17
- package/Selectbox/SelectboxMenu.d.ts +12 -0
- package/Selectbox/SelectboxMenu.js +50 -0
- package/Selectbox/index.d.ts +13 -13
- package/Selectbox/index.js +115 -97
- package/Surface/index.d.ts +5 -5
- package/Surface/index.js +1 -1
- package/Swiper/Swiper.d.ts +44 -0
- package/Swiper/Swiper.js +139 -0
- package/Swiper/SwiperContainer.d.ts +7 -0
- package/Swiper/SwiperContainer.js +14 -0
- package/Swiper/SwiperSlide.d.ts +7 -0
- package/Swiper/SwiperSlide.js +55 -0
- package/Swiper/SwiperTrack.d.ts +14 -0
- package/Swiper/SwiperTrack.js +58 -0
- package/Swiper/SwiperWrapper.d.ts +14 -0
- package/Swiper/SwiperWrapper.js +60 -0
- package/Swiper/index.d.ts +7 -0
- package/Swiper/index.js +26 -0
- package/Switch/SwitchDot.js +1 -1
- package/Switch/SwitchTrack.js +1 -1
- package/Switch/index.d.ts +8 -8
- package/TextArea/index.d.ts +7 -7
- package/TextField/TextFieldContainer.d.ts +2 -2
- package/TextField/TextFieldContainer.js +5 -3
- package/TextField/TextFieldErrorText.d.ts +2 -2
- package/TextField/TextFieldErrorText.js +5 -4
- package/TextField/TextFieldIconWrapper.d.ts +3 -3
- package/TextField/TextFieldIconWrapper.js +5 -3
- package/TextField/TextFieldInput.d.ts +2 -2
- package/TextField/TextFieldInput.js +6 -4
- package/TextField/TextFieldInputWrapper.d.ts +2 -2
- package/TextField/TextFieldInputWrapper.js +5 -3
- package/TextField/TextFieldLabel.d.ts +2 -2
- package/TextField/TextFieldLabel.js +5 -3
- package/TextField/TextFieldLabelAsterisk.d.ts +2 -2
- package/TextField/TextFieldLabelAsterisk.js +5 -3
- package/TextField/index.d.ts +15 -8
- package/TextField/index.js +49 -22
- package/ThemeProvider/createTheme.js +2 -2
- package/package.json +1 -1
- package/Calendar/reducer.d.ts +0 -14
- package/Calendar/reducer.js +0 -26
- /package/Calendar/{IconChevronRight.d.ts → CalendarIconNext.d.ts} +0 -0
- /package/Calendar/{IconChevronRight.js → CalendarIconNext.js} +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.SwiperSlide = void 0;
|
|
41
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
|
+
const React = __importStar(require("react"));
|
|
43
|
+
const StyledSlide = styled_1.default.div `
|
|
44
|
+
flex: 0 0 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
`;
|
|
51
|
+
exports.SwiperSlide = React.forwardRef((props, ref) => {
|
|
52
|
+
const { children } = props, restProps = __rest(props, ["children"]);
|
|
53
|
+
return (React.createElement(StyledSlide, Object.assign({}, restProps, { ref: ref }), children));
|
|
54
|
+
});
|
|
55
|
+
exports.SwiperSlide.displayName = 'SwiperSlide';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type SwiperTrackProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
readonly children: React.ReactNode;
|
|
4
|
+
readonly index: number;
|
|
5
|
+
readonly offset: number;
|
|
6
|
+
readonly dragging: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const SwiperTrack: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
9
|
+
readonly children: React.ReactNode;
|
|
10
|
+
readonly index: number;
|
|
11
|
+
readonly offset: number;
|
|
12
|
+
readonly dragging: boolean;
|
|
13
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export default SwiperTrack;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.SwiperTrack = void 0;
|
|
41
|
+
const React = __importStar(require("react"));
|
|
42
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
43
|
+
const StyledTrack = styled_1.default.div `
|
|
44
|
+
display: flex;
|
|
45
|
+
height: 100%;
|
|
46
|
+
transition: ${p => (p.$dragging ? 'none' : 'transform 0.3s ease')};
|
|
47
|
+
will-change: transform;
|
|
48
|
+
transform: ${({ $index, $offset }) => {
|
|
49
|
+
const trackX = `translateX(calc(${-($index * 100)}% + ${$offset}px))`;
|
|
50
|
+
return trackX;
|
|
51
|
+
}};
|
|
52
|
+
`;
|
|
53
|
+
exports.SwiperTrack = React.forwardRef((props, ref) => {
|
|
54
|
+
const { children, index, offset, dragging } = props, restProps = __rest(props, ["children", "index", "offset", "dragging"]);
|
|
55
|
+
return (React.createElement(StyledTrack, Object.assign({ "$dragging": dragging, "$index": index, "$offset": offset }, restProps, { ref: ref }), children));
|
|
56
|
+
});
|
|
57
|
+
exports.SwiperTrack.displayName = 'SwiperTrack';
|
|
58
|
+
exports.default = exports.SwiperTrack;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type SwiperWrapperProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
readonly draggable: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const StyledWrapper: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
$draggable: boolean;
|
|
10
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
declare const SwiperWrapper: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
12
|
+
readonly draggable: boolean;
|
|
13
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export default SwiperWrapper;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.StyledWrapper = void 0;
|
|
41
|
+
const React = __importStar(require("react"));
|
|
42
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
43
|
+
const react_1 = require("@emotion/react");
|
|
44
|
+
exports.StyledWrapper = styled_1.default.div `
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
user-select: none;
|
|
49
|
+
|
|
50
|
+
${({ $draggable }) => $draggable &&
|
|
51
|
+
(0, react_1.css) `
|
|
52
|
+
touch-action: pan-y;
|
|
53
|
+
`};
|
|
54
|
+
`;
|
|
55
|
+
const SwiperWrapper = React.forwardRef((props, ref) => {
|
|
56
|
+
const { children, draggable } = props, restProps = __rest(props, ["children", "draggable"]);
|
|
57
|
+
return (React.createElement(exports.StyledWrapper, Object.assign({}, restProps, { ref: ref, "$draggable": draggable }), children));
|
|
58
|
+
});
|
|
59
|
+
SwiperWrapper.displayName = 'SwiperWrapper';
|
|
60
|
+
exports.default = SwiperWrapper;
|
package/Swiper/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
const Swiper_1 = __importDefault(require("./Swiper"));
|
|
21
|
+
__exportStar(require("./Swiper"), exports);
|
|
22
|
+
__exportStar(require("./SwiperContainer"), exports);
|
|
23
|
+
__exportStar(require("./SwiperSlide"), exports);
|
|
24
|
+
__exportStar(require("./SwiperTrack"), exports);
|
|
25
|
+
__exportStar(require("./SwiperWrapper"), exports);
|
|
26
|
+
exports.default = Swiper_1.default;
|
package/Switch/SwitchDot.js
CHANGED
package/Switch/SwitchTrack.js
CHANGED
package/Switch/index.d.ts
CHANGED
|
@@ -58,35 +58,35 @@ export interface SwitchOverrides {
|
|
|
58
58
|
/**
|
|
59
59
|
* Element container
|
|
60
60
|
*/
|
|
61
|
-
readonly Container?: React.
|
|
61
|
+
readonly Container?: React.ComponentType<SwitchContainerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
62
62
|
/**
|
|
63
63
|
* Element toggle
|
|
64
64
|
*/
|
|
65
|
-
readonly ToggleWrapper?: React.
|
|
65
|
+
readonly ToggleWrapper?: React.ComponentType<SwitchToggleWrapperProps & React.RefAttributes<HTMLSpanElement>>;
|
|
66
66
|
/**
|
|
67
67
|
* text wrapper
|
|
68
68
|
*/
|
|
69
|
-
readonly TextWrapper?: React.
|
|
69
|
+
readonly TextWrapper?: React.ComponentType<SwitchTextWrapperProps & React.RefAttributes<HTMLSpanElement>>;
|
|
70
70
|
/**
|
|
71
71
|
* Dot wrapper
|
|
72
72
|
*/
|
|
73
|
-
readonly Dot?: React.
|
|
73
|
+
readonly Dot?: React.ComponentType<SwitchDotProps & React.RefAttributes<HTMLSpanElement>>;
|
|
74
74
|
/**
|
|
75
75
|
* Toggle track wrapper
|
|
76
76
|
*/
|
|
77
|
-
readonly Track?: React.
|
|
77
|
+
readonly Track?: React.ComponentType<SwitchTrackProps & React.RefAttributes<HTMLSpanElement>>;
|
|
78
78
|
/**
|
|
79
79
|
* error text wrapper
|
|
80
80
|
*/
|
|
81
|
-
readonly ErrorText?: React.
|
|
81
|
+
readonly ErrorText?: React.ComponentType<SwitchErrorTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
82
82
|
/**
|
|
83
83
|
* error text wrapper
|
|
84
84
|
*/
|
|
85
|
-
readonly Asterisk?: React.
|
|
85
|
+
readonly Asterisk?: React.ComponentType<SwitchAsteriskProps & React.RefAttributes<HTMLSpanElement>>;
|
|
86
86
|
/**
|
|
87
87
|
* the main cwitch wrapper
|
|
88
88
|
*/
|
|
89
|
-
readonly Wrapper?: React.
|
|
89
|
+
readonly Wrapper?: React.ComponentType<SwitchWrapperProps & React.RefAttributes<HTMLSpanElement>>;
|
|
90
90
|
}
|
|
91
91
|
declare const _default: React.ForwardRefExoticComponent<Omit<SwitchToggleWrapperProps, "onChange" | "disabled" | "checked"> & {
|
|
92
92
|
/**
|
package/TextArea/index.d.ts
CHANGED
|
@@ -50,31 +50,31 @@ export interface TextAreaOverrides {
|
|
|
50
50
|
/**
|
|
51
51
|
* Native `input` component
|
|
52
52
|
*/
|
|
53
|
-
readonly Input?: React.
|
|
53
|
+
readonly Input?: React.ComponentType<TextAreaInputProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
54
54
|
/**
|
|
55
55
|
* Component for display error text
|
|
56
56
|
*/
|
|
57
|
-
readonly ErrorText?: React.
|
|
57
|
+
readonly ErrorText?: React.ComponentType<TextFieldErrorTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
58
58
|
/**
|
|
59
59
|
* Icons wrapper component
|
|
60
60
|
*/
|
|
61
|
-
readonly IconWrapper?: React.
|
|
61
|
+
readonly IconWrapper?: React.ComponentType<TextAreaIconWrapperProps & React.RefAttributes<HTMLDivElement>>;
|
|
62
62
|
/**
|
|
63
63
|
* input field wrapper component
|
|
64
64
|
*/
|
|
65
|
-
readonly InputWrapper?: React.
|
|
65
|
+
readonly InputWrapper?: React.ComponentType<TextFieldInputWrapperProps & React.RefAttributes<HTMLDivElement>>;
|
|
66
66
|
/**
|
|
67
67
|
* label component
|
|
68
68
|
*/
|
|
69
|
-
readonly Label?: React.
|
|
69
|
+
readonly Label?: React.ComponentType<TextFieldLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
70
70
|
/**
|
|
71
71
|
* label asterisk component
|
|
72
72
|
*/
|
|
73
|
-
readonly Asterisk?: React.
|
|
73
|
+
readonly Asterisk?: React.ComponentType<TextFieldLabelAsteriskProps & React.RefAttributes<HTMLSpanElement>>;
|
|
74
74
|
/**
|
|
75
75
|
* label component
|
|
76
76
|
*/
|
|
77
|
-
readonly Container?: React.
|
|
77
|
+
readonly Container?: React.ComponentType<TextFieldContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
78
78
|
}
|
|
79
79
|
declare const _default: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
80
80
|
export default _default;
|
|
@@ -4,5 +4,5 @@ export interface TextFieldContainerProps extends React.InputHTMLAttributes<HTMLD
|
|
|
4
4
|
readonly focused?: boolean;
|
|
5
5
|
readonly error?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const
|
|
8
|
-
export default
|
|
7
|
+
export declare const TextFieldContainer: React.ForwardRefExoticComponent<TextFieldContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export default TextFieldContainer;
|
|
@@ -37,6 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.TextFieldContainer = void 0;
|
|
40
41
|
const React = __importStar(require("react"));
|
|
41
42
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
43
|
const StyledTextFieldContainer = styled_1.default.div `
|
|
@@ -46,8 +47,9 @@ const StyledTextFieldContainer = styled_1.default.div `
|
|
|
46
47
|
max-width: ${({ $fullWidth }) => ($fullWidth ? '100%' : '16em')};
|
|
47
48
|
vertical-align: top;
|
|
48
49
|
`;
|
|
49
|
-
|
|
50
|
+
exports.TextFieldContainer = React.forwardRef((props, ref) => {
|
|
50
51
|
const { children, fullWidth, focused, error } = props, nativeProps = __rest(props, ["children", "fullWidth", "focused", "error"]);
|
|
51
52
|
return (React.createElement(StyledTextFieldContainer, Object.assign({}, nativeProps, { "$fullWidth": fullWidth, "$focused": focused, "$error": error, ref: ref }), children));
|
|
52
|
-
};
|
|
53
|
-
exports.
|
|
53
|
+
});
|
|
54
|
+
exports.TextFieldContainer.displayName = 'TextFieldContainer';
|
|
55
|
+
exports.default = exports.TextFieldContainer;
|
|
@@ -2,5 +2,5 @@ import * as React from 'react';
|
|
|
2
2
|
export interface TextFieldErrorTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
readonly error?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare const
|
|
6
|
-
export default
|
|
5
|
+
export declare const TextFieldErrorText: React.ForwardRefExoticComponent<TextFieldErrorTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export default TextFieldErrorText;
|
|
@@ -37,12 +37,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.TextFieldErrorText = void 0;
|
|
40
41
|
const React = __importStar(require("react"));
|
|
41
42
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
43
|
const NoSSR_1 = __importDefault(require("../NoSSR"));
|
|
43
44
|
const ErrorTextContainer = styled_1.default.div `
|
|
44
45
|
margin-left: 0.5em;
|
|
45
|
-
max-height: 0;
|
|
46
46
|
max-height: ${({ $maxHeight }) => typeof $maxHeight === 'number' ? `${$maxHeight}px` : $maxHeight};
|
|
47
47
|
transition: max-height 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
|
|
48
48
|
overflow: hidden;
|
|
@@ -54,7 +54,7 @@ const ErrorTextInner = styled_1.default.div `
|
|
|
54
54
|
opacity: ${({ $error }) => ($error ? 1 : 0)};
|
|
55
55
|
transition: all 240ms 240ms ease-out;
|
|
56
56
|
`;
|
|
57
|
-
|
|
57
|
+
exports.TextFieldErrorText = React.forwardRef((props, ref) => {
|
|
58
58
|
const { children, error } = props, nativeProps = __rest(props, ["children", "error"]);
|
|
59
59
|
const innerRef = React.useRef(null);
|
|
60
60
|
const [maxHeight, setMaxHeight] = React.useState('initial');
|
|
@@ -72,5 +72,6 @@ const TextFieldErrorText = (props, ref) => {
|
|
|
72
72
|
}, [children]);
|
|
73
73
|
return (React.createElement(ErrorTextContainer, Object.assign({}, nativeProps, { "$maxHeight": error ? maxHeight : 0, ref: ref }),
|
|
74
74
|
React.createElement(ErrorTextInner, { ref: innerRef, "$error": Boolean(error) }, children ? React.createElement(NoSSR_1.default, null, children) : React.createElement(React.Fragment, null, "\u00A0"))));
|
|
75
|
-
};
|
|
76
|
-
exports.
|
|
75
|
+
});
|
|
76
|
+
exports.TextFieldErrorText.displayName = 'TextFieldErrorText';
|
|
77
|
+
exports.default = exports.TextFieldErrorText;
|
|
@@ -7,12 +7,12 @@ export type TextFieldIconWrapperProps = React.InputHTMLAttributes<HTMLDivElement
|
|
|
7
7
|
readonly error?: boolean;
|
|
8
8
|
readonly focused?: boolean;
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
10
|
+
export declare const TextFieldIconWrapper: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLDivElement> & {
|
|
11
11
|
/**
|
|
12
12
|
* Icon position
|
|
13
13
|
*/
|
|
14
|
-
readonly position:
|
|
14
|
+
readonly position: 'start' | 'end';
|
|
15
15
|
readonly error?: boolean | undefined;
|
|
16
16
|
readonly focused?: boolean | undefined;
|
|
17
17
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
export default
|
|
18
|
+
export default TextFieldIconWrapper;
|
|
@@ -37,6 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.TextFieldIconWrapper = void 0;
|
|
40
41
|
const React = __importStar(require("react"));
|
|
41
42
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
43
|
const react_1 = require("@emotion/react");
|
|
@@ -66,8 +67,9 @@ const IconWrapper = styled_1.default.div `
|
|
|
66
67
|
box-shadow: none;
|
|
67
68
|
}
|
|
68
69
|
`;
|
|
69
|
-
|
|
70
|
+
exports.TextFieldIconWrapper = React.forwardRef((props, ref) => {
|
|
70
71
|
const { children, position, focused, error } = props, nativeProps = __rest(props, ["children", "position", "focused", "error"]);
|
|
71
72
|
return (React.createElement(IconWrapper, Object.assign({}, nativeProps, { "$position": position, "$error": error, "$focused": focused, ref: ref }), children));
|
|
72
|
-
};
|
|
73
|
-
exports.
|
|
73
|
+
});
|
|
74
|
+
exports.TextFieldIconWrapper.displayName = 'TextFieldIconWrapper';
|
|
75
|
+
exports.default = exports.TextFieldIconWrapper;
|
|
@@ -3,5 +3,5 @@ export interface TextFieldInputProps extends React.InputHTMLAttributes<HTMLInput
|
|
|
3
3
|
readonly hasStartIcon: boolean;
|
|
4
4
|
readonly hasEndIcon: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
6
|
+
export declare const TextFieldInput: React.ForwardRefExoticComponent<TextFieldInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
7
|
+
export default TextFieldInput;
|
|
@@ -37,6 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.TextFieldInput = void 0;
|
|
40
41
|
const React = __importStar(require("react"));
|
|
41
42
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
43
|
const react_1 = require("@emotion/react");
|
|
@@ -64,8 +65,9 @@ const Input = styled_1.default.input `
|
|
|
64
65
|
font-style: italic;
|
|
65
66
|
}
|
|
66
67
|
`;
|
|
67
|
-
|
|
68
|
+
exports.TextFieldInput = React.forwardRef((props, ref) => {
|
|
68
69
|
const { hasEndIcon, hasStartIcon } = props, nativeProps = __rest(props, ["hasEndIcon", "hasStartIcon"]);
|
|
69
|
-
return React.createElement(Input, Object.assign({}, nativeProps, { "$hasEndIcon": hasEndIcon, "$hasStartIcon": hasStartIcon, ref: ref }));
|
|
70
|
-
};
|
|
71
|
-
exports.
|
|
70
|
+
return (React.createElement(Input, Object.assign({}, nativeProps, { "$hasEndIcon": hasEndIcon, "$hasStartIcon": hasStartIcon, ref: ref })));
|
|
71
|
+
});
|
|
72
|
+
exports.TextFieldInput.displayName = 'TextFieldInput';
|
|
73
|
+
exports.default = exports.TextFieldInput;
|
|
@@ -5,10 +5,10 @@ export type TextFieldInputWrapperProps = React.HTMLAttributes<HTMLDivElement> &
|
|
|
5
5
|
readonly readOnly?: boolean;
|
|
6
6
|
readonly focused?: boolean;
|
|
7
7
|
};
|
|
8
|
-
declare const
|
|
8
|
+
export declare const TextFieldInputWrapper: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
9
9
|
readonly error?: boolean | undefined;
|
|
10
10
|
readonly fullWidth?: boolean | undefined;
|
|
11
11
|
readonly readOnly?: boolean | undefined;
|
|
12
12
|
readonly focused?: boolean | undefined;
|
|
13
13
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export default
|
|
14
|
+
export default TextFieldInputWrapper;
|
|
@@ -37,6 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.TextFieldInputWrapper = void 0;
|
|
40
41
|
const React = __importStar(require("react"));
|
|
41
42
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
43
|
const react_1 = require("@emotion/react");
|
|
@@ -69,8 +70,9 @@ const Wrapper = styled_1.default.div `
|
|
|
69
70
|
}
|
|
70
71
|
`}
|
|
71
72
|
`;
|
|
72
|
-
|
|
73
|
+
exports.TextFieldInputWrapper = React.forwardRef((props, ref) => {
|
|
73
74
|
const { focused, error, readOnly, fullWidth, children } = props, nativeProps = __rest(props, ["focused", "error", "readOnly", "fullWidth", "children"]);
|
|
74
75
|
return (React.createElement(Wrapper, Object.assign({}, nativeProps, { "$error": error, "$focused": focused, "$readOnly": readOnly, "$fullWidth": Boolean(fullWidth), ref: ref }), children));
|
|
75
|
-
};
|
|
76
|
-
exports.
|
|
76
|
+
});
|
|
77
|
+
exports.TextFieldInputWrapper.displayName = 'TextFieldInputWrapper';
|
|
78
|
+
exports.default = exports.TextFieldInputWrapper;
|
|
@@ -3,5 +3,5 @@ export interface TextFieldLabelProps extends React.LabelHTMLAttributes<HTMLLabel
|
|
|
3
3
|
readonly error?: boolean;
|
|
4
4
|
readonly focused?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
6
|
+
export declare const TextFieldLabel: React.ForwardRefExoticComponent<TextFieldLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
7
|
+
export default TextFieldLabel;
|
|
@@ -37,14 +37,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.TextFieldLabel = void 0;
|
|
40
41
|
const React = __importStar(require("react"));
|
|
41
42
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
43
|
const Label = styled_1.default.label `
|
|
43
44
|
font-size: 0.8em;
|
|
44
45
|
margin-bottom: 0.2em;
|
|
45
46
|
`;
|
|
46
|
-
|
|
47
|
+
exports.TextFieldLabel = React.forwardRef((props, ref) => {
|
|
47
48
|
const { children, error, focused } = props, nativeProps = __rest(props, ["children", "error", "focused"]);
|
|
48
49
|
return (React.createElement(Label, Object.assign({}, nativeProps, { "$error": error, "$focused": focused, ref: ref }), children));
|
|
49
|
-
};
|
|
50
|
-
exports.
|
|
50
|
+
});
|
|
51
|
+
exports.TextFieldLabel.displayName = 'TextFieldLabel';
|
|
52
|
+
exports.default = exports.TextFieldLabel;
|
|
@@ -9,5 +9,5 @@ export interface TextFieldLabelAsteriskProps extends React.HTMLAttributes<HTMLSp
|
|
|
9
9
|
*/
|
|
10
10
|
readonly focused?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
13
|
-
export default
|
|
12
|
+
export declare const TextFieldLabelAsterisk: React.ForwardRefExoticComponent<TextFieldLabelAsteriskProps & React.RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
export default TextFieldLabelAsterisk;
|
|
@@ -37,6 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.TextFieldLabelAsterisk = void 0;
|
|
40
41
|
const React = __importStar(require("react"));
|
|
41
42
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
43
|
const Asterisk = styled_1.default.span `
|
|
@@ -44,8 +45,9 @@ const Asterisk = styled_1.default.span `
|
|
|
44
45
|
margin-left: 0.2em;
|
|
45
46
|
color: ${({ theme }) => theme.color.error.toString()};
|
|
46
47
|
`;
|
|
47
|
-
|
|
48
|
+
exports.TextFieldLabelAsterisk = React.forwardRef((props, ref) => {
|
|
48
49
|
const { children, error, focused } = props, nativeProps = __rest(props, ["children", "error", "focused"]);
|
|
49
50
|
return (React.createElement(Asterisk, Object.assign({}, nativeProps, { "$error": error, "$focused": focused, ref: ref }), children));
|
|
50
|
-
};
|
|
51
|
-
exports.
|
|
51
|
+
});
|
|
52
|
+
exports.TextFieldLabelAsterisk.displayName = 'TextFieldLabelAsterisk';
|
|
53
|
+
exports.default = exports.TextFieldLabelAsterisk;
|