@ftdata/ui 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DateRangePicker/constants/index.d.ts +477 -0
- package/dist/components/DateRangePicker/constants/index.js +22 -0
- package/dist/components/DateRangePicker/helpers/createFormatDate.d.ts +2 -0
- package/dist/components/DateRangePicker/helpers/createFormatDate.js +9 -0
- package/dist/components/DateRangePicker/index.d.ts +26 -0
- package/dist/components/DateRangePicker/index.js +90 -0
- package/dist/components/DateRangePicker/styles.d.ts +16 -0
- package/dist/components/DateRangePicker/styles.js +147 -0
- package/dist/components/DateRangePicker/types/dataRange.d.ts +3 -0
- package/dist/components/DateRangePicker/types/dataRange.js +0 -0
- package/dist/components/Modal/Button/index.d.ts +50 -0
- package/dist/components/Modal/Button/index.js +105 -0
- package/dist/components/Modal/Button/modifiers/color.d.ts +9 -0
- package/dist/components/Modal/Button/modifiers/color.js +96 -0
- package/dist/components/Modal/Button/modifiers/size.d.ts +5 -0
- package/dist/components/Modal/Button/modifiers/size.js +22 -0
- package/dist/components/Modal/Button/styles.d.ts +20 -0
- package/dist/components/Modal/Button/styles.js +105 -0
- package/dist/components/Modal/index.d.ts +13 -9
- package/dist/components/Modal/index.js +12 -6
- package/dist/components/Modal/styles.d.ts +1 -1
- package/dist/components/Modal/styles.js +5 -6
- package/dist/components/MultiSelect/components/Badge/styles.js +0 -3
- package/dist/components/MultiSelect/index.js +2 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/style/rsuite.css +3192 -0
- package/package.json +4 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import styled_components, { css, keyframes } from "styled-components";
|
|
2
2
|
import { COLOR_NEUTRAL_DARKER, COLOR_NEUTRAL_DAY, COLOR_NEUTRAL_DUSK } from "@ftdata/f-tokens";
|
|
3
3
|
const SIZES = {
|
|
4
|
-
small:
|
|
5
|
-
medium:
|
|
6
|
-
large:
|
|
4
|
+
small: "31.5rem",
|
|
5
|
+
medium: "42.5rem",
|
|
6
|
+
large: "53.5rem"
|
|
7
7
|
};
|
|
8
8
|
const slideIn = keyframes`
|
|
9
9
|
from {
|
|
@@ -25,7 +25,7 @@ const fadeOut = keyframes`
|
|
|
25
25
|
`;
|
|
26
26
|
const getSize = (size)=>{
|
|
27
27
|
if (!size) return;
|
|
28
|
-
if (
|
|
28
|
+
if ("object" == typeof size) return css`
|
|
29
29
|
height: ${size.height};
|
|
30
30
|
width: ${size.width};
|
|
31
31
|
`;
|
|
@@ -34,10 +34,9 @@ const getSize = (size)=>{
|
|
|
34
34
|
`;
|
|
35
35
|
};
|
|
36
36
|
const ModalOverlay = styled_components.div`
|
|
37
|
-
background-color: ${COLOR_NEUTRAL_DUSK};
|
|
37
|
+
background-color: ${COLOR_NEUTRAL_DUSK + 52};
|
|
38
38
|
position: fixed;
|
|
39
39
|
height: 100vh;
|
|
40
|
-
opacity: 0.32;
|
|
41
40
|
right: 0;
|
|
42
41
|
top: 0;
|
|
43
42
|
width: 100vw;
|
|
@@ -39,11 +39,8 @@ const BadgeContainer = styled_components.div`
|
|
|
39
39
|
color: ${COLOR_NEUTRAL_DUSK};
|
|
40
40
|
font-size: 0.875rem;
|
|
41
41
|
line-height: 1rem;
|
|
42
|
-
max-width: 7.75rem;
|
|
43
42
|
white-space: nowrap;
|
|
44
|
-
overflow: hidden;
|
|
45
43
|
font-weight: 500;
|
|
46
|
-
text-overflow: ellipsis;
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
button {
|
|
@@ -156,7 +156,8 @@ function MultiSelect({ label, sublabel, helpText, helpIcon, feedback, disabled,
|
|
|
156
156
|
}),
|
|
157
157
|
"alt" === variant && /*#__PURE__*/ jsx(RotateButton, {
|
|
158
158
|
rotate: showList,
|
|
159
|
-
onClick: toggleList
|
|
159
|
+
onClick: toggleList,
|
|
160
|
+
disabled: disabled
|
|
160
161
|
}),
|
|
161
162
|
maxItems && /*#__PURE__*/ jsx(MaxItemsIndicator, {
|
|
162
163
|
children: /*#__PURE__*/ jsxs("span", {
|
package/dist/index.d.ts
CHANGED
|
@@ -25,4 +25,6 @@ export { Input } from "./components/Input";
|
|
|
25
25
|
export { default as IconButton } from "./components/IconButton";
|
|
26
26
|
export { default as Modal } from "./components/Modal";
|
|
27
27
|
export { ModalOverlay } from "./components/Modal/styles";
|
|
28
|
-
export type {
|
|
28
|
+
export type { ModalActions, ModalProps, ModalSizeCustom, ModalSizes, } from "./components/Modal";
|
|
29
|
+
export { default as DateRangePicker } from "./components/DateRangePicker";
|
|
30
|
+
export type { DateRange, DateRangePickerProps, } from "./components/DateRangePicker";
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,7 @@ import { Input } from "./components/Input/index.js";
|
|
|
19
19
|
import IconButton from "./components/IconButton/index.js";
|
|
20
20
|
import Modal from "./components/Modal/index.js";
|
|
21
21
|
import { ModalOverlay } from "./components/Modal/styles.js";
|
|
22
|
+
import DateRangePicker from "./components/DateRangePicker/index.js";
|
|
22
23
|
export * from "./components/Grid/index.js";
|
|
23
24
|
export * from "./components/Text/index.js";
|
|
24
|
-
export { Avatar, Breadcrumb, Button, Checkbox, Collapse, DoubleList, EmptyState, IconButton, Input, Loading, Menu, Modal, ModalOverlay, MultiSelect, Radio, Select, StateAlert, Switch, TextArea, Tooltips, UserMenu, useLoading };
|
|
25
|
+
export { Avatar, Breadcrumb, Button, Checkbox, Collapse, DateRangePicker, DoubleList, EmptyState, IconButton, Input, Loading, Menu, Modal, ModalOverlay, MultiSelect, Radio, Select, StateAlert, Switch, TextArea, Tooltips, UserMenu, useLoading };
|