@lanaco/lnc-react-ui 4.0.2 → 4.0.5
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/Accordion.cjs +1 -1
- package/dist/Accordion.js +55 -50
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +15 -15
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +11 -11
- package/dist/ActionsToolbar.cjs +2 -2
- package/dist/ActionsToolbar.js +16 -16
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +23 -23
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.js +18 -21
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +21 -14
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +28 -28
- package/dist/Button.cjs +2 -2
- package/dist/Button.js +21 -22
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +10 -6
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +6 -6
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +9 -9
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +20 -20
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +58 -58
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +8 -8
- package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
- package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +35 -35
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +491 -491
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +43 -43
- package/dist/DetailsView.cjs +4 -4
- package/dist/DetailsView.js +40 -40
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +33 -33
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +165 -165
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +31 -31
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +47 -47
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +39 -39
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +23 -23
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +36 -36
- package/dist/DropdownMenu.cjs +7 -1
- package/dist/DropdownMenu.js +192 -10
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +4 -4
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +24 -24
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +14 -14
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +30 -30
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +16 -16
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +5 -5
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +8 -9
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +31 -31
- package/dist/Grid.cjs +2 -3
- package/dist/Grid.js +38 -10
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +29 -9
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -7
- package/dist/Icon.cjs +2 -2
- package/dist/Icon.js +35 -13
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +51 -52
- package/dist/Kanban.cjs +12 -12
- package/dist/Kanban.js +891 -879
- package/dist/KanbanActionsToolbar.cjs +2 -2
- package/dist/KanbanActionsToolbar.js +28 -28
- package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
- package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +5 -5
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +40 -40
- package/dist/KanbanHeader.cjs +2 -2
- package/dist/KanbanHeader.js +46 -46
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +27 -27
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +9 -9
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +39 -39
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +42 -42
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +6 -6
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +6 -6
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +40 -40
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +45 -45
- package/dist/Notification.cjs +1 -83
- package/dist/Notification.js +3 -1077
- package/dist/NotificationContainer.cjs +37 -0
- package/dist/NotificationContainer.js +162 -0
- package/dist/NotificationMessage.cjs +47 -0
- package/dist/NotificationMessage.js +133 -0
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +17 -17
- package/dist/PageLayout.cjs +1 -1
- package/dist/PageLayout.js +32 -32
- package/dist/Pagination.cjs +12 -0
- package/dist/Pagination.js +248 -0
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +33 -33
- package/dist/Popover.cjs +1 -0
- package/dist/Popover.js +36 -0
- package/dist/PopoverClose.cjs +1 -0
- package/dist/PopoverClose.js +15 -0
- package/dist/PopoverContent.cjs +10 -0
- package/dist/PopoverContent.js +68 -0
- package/dist/PopoverContext.cjs +1 -0
- package/dist/PopoverContext.js +5 -0
- package/dist/PopoverDescription.cjs +1 -0
- package/dist/PopoverDescription.js +16 -0
- package/dist/PopoverHeading.cjs +1 -0
- package/dist/PopoverHeading.js +16 -0
- package/dist/PopoverTrigger.cjs +1 -0
- package/dist/PopoverTrigger.js +38 -0
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +35 -24
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +13 -13
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +10 -10
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +27 -27
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +77 -77
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +9 -9
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +13 -13
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +25 -20
- package/dist/Surface.cjs +2 -2
- package/dist/Surface.js +14 -15
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +18 -18
- package/dist/TabItem.cjs +26 -0
- package/dist/TabItem.js +210 -0
- package/dist/Table.cjs +20 -20
- package/dist/Table.js +13 -12
- package/dist/TableView.cjs +8 -1
- package/dist/TableView.js +238 -9
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +33 -27
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +35 -35
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +24 -24
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +85 -85
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +13 -13
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +4 -5
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +57 -57
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +11 -11
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +29 -29
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
- package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
- package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
- package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
- package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
- package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
- package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
- package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
- package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
- package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
- package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
- package/dist/index-BIlhCoy2.cjs +20 -0
- package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
- package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
- package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
- package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
- package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
- package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
- package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
- package/dist/index-DAOBjHnD.cjs +1 -0
- package/dist/index-DBXXH_TD.cjs +1 -0
- package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
- package/dist/index-DaiUAQVF.cjs +1 -0
- package/dist/index.cjs +1 -26
- package/dist/index.js +180 -376
- package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
- package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
- package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
- package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
- package/dist/style.css +1 -5
- package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
- package/dist/usePopover.cjs +1 -0
- package/dist/usePopover.js +44 -0
- package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
- package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
- package/package.json +17 -5
- package/vite.config.js +16 -0
- package/custom-addons/ThemeSelector.js +0 -111
- package/custom-addons/register.js +0 -16
- package/custom-addons/theme-selector.css +0 -17
- package/dist/DropdownMenu-B6qr13ik.cjs +0 -19
- package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
- package/dist/KanbanCard-ConTmu3w.cjs +0 -30
- package/dist/TableView-Cj5_fbSR.js +0 -481
- package/dist/TableView-D8ex512p.cjs +0 -19
- package/dist/index-BjdOz5Ok.cjs +0 -1
- package/dist/index-DXnSjbfJ.cjs +0 -20
- package/dist/index-Dzkd2i4n.cjs +0 -1
- package/dist/index-P-naJISQ.cjs +0 -1
package/dist/ProgressBar.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
2
|
-
import
|
|
3
|
-
import { P as r } from "./index-
|
|
4
|
-
import { n as s } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
6
|
-
import { u
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as l, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b } from "react";
|
|
3
|
+
import { P as r } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as s } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { a, g as h } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
|
+
const f = s.div`
|
|
8
8
|
width: 100%;
|
|
9
9
|
position: relative;
|
|
10
10
|
background-color: ${(e) => a(
|
|
@@ -31,13 +31,13 @@ const h = s.div`
|
|
|
31
31
|
border-radius: ${(e) => e.progressPercentage == 100 ? "5px" : "5px 0px 0px 5px"};
|
|
32
32
|
transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
|
|
33
33
|
`, y = s.label`
|
|
34
|
-
${(e) =>
|
|
34
|
+
${(e) => h(e.theme, "Progress", e.size, "enabled")};
|
|
35
35
|
position: absolute;
|
|
36
36
|
top: 50%;
|
|
37
37
|
left: 50%;
|
|
38
38
|
transform: translate(-50%, -50%);
|
|
39
39
|
color: ${(e) => a(e.theme, "Progress", e.color, "enabled", "text")};
|
|
40
|
-
`, x =
|
|
40
|
+
`, x = b((e, w) => {
|
|
41
41
|
const {
|
|
42
42
|
id: $ = "",
|
|
43
43
|
showLabel: t = !1,
|
|
@@ -49,21 +49,32 @@ const h = s.div`
|
|
|
49
49
|
size: i = "small",
|
|
50
50
|
color: m = "primary",
|
|
51
51
|
...d
|
|
52
|
-
} = e, o =
|
|
53
|
-
return /* @__PURE__ */ l(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
52
|
+
} = e, o = u();
|
|
53
|
+
return /* @__PURE__ */ l(
|
|
54
|
+
f,
|
|
55
|
+
{
|
|
56
|
+
style: g,
|
|
57
|
+
className: "lnc-ui-progress " + c,
|
|
58
|
+
theme: o,
|
|
59
|
+
size: i,
|
|
60
|
+
showLabel: t,
|
|
61
|
+
...d,
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ p(
|
|
64
|
+
P,
|
|
65
|
+
{
|
|
66
|
+
progressPercentage: n,
|
|
67
|
+
theme: o,
|
|
68
|
+
color: m
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
t && /* @__PURE__ */ l(y, { theme: o, size: i, children: [
|
|
72
|
+
n,
|
|
73
|
+
"%"
|
|
74
|
+
] })
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
);
|
|
67
78
|
});
|
|
68
79
|
x.propTypes = {
|
|
69
80
|
id: r.string,
|
package/dist/RadioGroup.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const p=require("react/jsx-runtime"),n=require("react"),I=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),e=require("./index-
|
|
1
|
+
"use strict";const p=require("react/jsx-runtime"),n=require("react"),I=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),e=require("./index-BIlhCoy2.cjs"),O=require("./RadioInput.cjs"),R=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),_=I.newStyled.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-direction: ${s=>s.inline===!0?"row":"column"};
|
|
4
4
|
gap: 1.5rem;
|
package/dist/RadioGroup.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import P,
|
|
3
|
-
import { n as
|
|
4
|
-
import { P as e } from "./index-
|
|
2
|
+
import { forwardRef as P, useState as j, useEffect as z } from "react";
|
|
3
|
+
import { n as R } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
5
5
|
import T from "./RadioInput.js";
|
|
6
|
-
import { u as k } from "./emotion-element-5486c51c.browser.esm-
|
|
7
|
-
const N =
|
|
6
|
+
import { u as k } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
|
+
const N = R.div`
|
|
8
8
|
display: inline-flex;
|
|
9
9
|
flex-direction: ${(r) => r.inline === !0 ? "row" : "column"};
|
|
10
10
|
gap: 1.5rem;
|
|
11
11
|
width: fit-content;
|
|
12
12
|
box-sizing: border-box;
|
|
13
|
-
`, S = P
|
|
13
|
+
`, S = P((r, s) => {
|
|
14
14
|
const {
|
|
15
15
|
id: t = "",
|
|
16
|
-
name:
|
|
16
|
+
name: m,
|
|
17
17
|
value: o = null,
|
|
18
|
-
disabled:
|
|
18
|
+
disabled: d = !1,
|
|
19
19
|
readOnly: p = !1,
|
|
20
20
|
items: u = [],
|
|
21
21
|
mapId: V = "id",
|
|
22
|
-
mapValue:
|
|
22
|
+
mapValue: E = "value",
|
|
23
23
|
radioProps: c,
|
|
24
24
|
inline: f = !0,
|
|
25
25
|
//----------------
|
|
@@ -33,15 +33,15 @@ const N = z.div`
|
|
|
33
33
|
...v
|
|
34
34
|
} = r;
|
|
35
35
|
var x = k();
|
|
36
|
-
const [C, w] =
|
|
37
|
-
|
|
36
|
+
const [C, w] = j(null);
|
|
37
|
+
z(() => {
|
|
38
38
|
o !== C && w(o);
|
|
39
39
|
}, [o]);
|
|
40
40
|
var I = {
|
|
41
41
|
color: h,
|
|
42
42
|
theme: x,
|
|
43
43
|
size: b,
|
|
44
|
-
disabled:
|
|
44
|
+
disabled: d,
|
|
45
45
|
readOnly: p
|
|
46
46
|
};
|
|
47
47
|
const O = (a, i) => {
|
|
@@ -64,7 +64,7 @@ const N = z.div`
|
|
|
64
64
|
value: a.value,
|
|
65
65
|
...c,
|
|
66
66
|
onChange: O,
|
|
67
|
-
name:
|
|
67
|
+
name: m
|
|
68
68
|
},
|
|
69
69
|
i
|
|
70
70
|
))
|
package/dist/RadioInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./index-BIlhCoy2.cjs"),o=require("./utils-DTAPpJXU.cjs"),O=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),j=e=>e=="left"?"row-reverse":"row",q=m.newStyled.label`
|
|
2
2
|
min-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
|
|
3
3
|
max-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
|
|
4
4
|
width: 100%;
|
package/dist/RadioInput.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as b, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import P,
|
|
3
|
-
import { n as g } from "./emotion-styled.browser.esm-
|
|
4
|
-
import { P as i } from "./index-
|
|
5
|
-
import { f,
|
|
6
|
-
import { u as F } from "./emotion-element-5486c51c.browser.esm-
|
|
2
|
+
import { forwardRef as P, useState as j } from "react";
|
|
3
|
+
import { n as g } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { P as i } from "./index-BYnWp42a.js";
|
|
5
|
+
import { d as f, g as N, e as T, a as t } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u as F } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
7
|
const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
8
8
|
min-height: ${(e) => f(e.theme, e.size)};
|
|
9
9
|
max-height: ${(e) => f(e.theme, e.size)};
|
|
@@ -208,11 +208,11 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
208
208
|
overflow: hidden;
|
|
209
209
|
text-overflow: ellipsis;
|
|
210
210
|
color: ${(e) => t(e.theme, "Radio", e.color, "enabled", "text")};
|
|
211
|
-
`, K = P
|
|
211
|
+
`, K = P((e, y) => {
|
|
212
212
|
const {
|
|
213
213
|
wrapperRef: w,
|
|
214
|
-
className:
|
|
215
|
-
style:
|
|
214
|
+
className: k = "",
|
|
215
|
+
style: R = {},
|
|
216
216
|
color: $ = "primary",
|
|
217
217
|
innerColor: v = "white",
|
|
218
218
|
size: x = "small",
|
|
@@ -241,8 +241,8 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
241
241
|
{
|
|
242
242
|
...u,
|
|
243
243
|
ref: w,
|
|
244
|
-
className:
|
|
245
|
-
style:
|
|
244
|
+
className: k,
|
|
245
|
+
style: R,
|
|
246
246
|
tabIndex: -1,
|
|
247
247
|
readOnly: s,
|
|
248
248
|
focused: B,
|
package/dist/RangeSlider.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),y=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),n=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),y=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),n=require("./index-BIlhCoy2.cjs"),o=require("react"),a=require("./utils-DTAPpJXU.cjs"),_=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),F=require("./useUpdateEffect-BtMgpgIV.cjs"),L=({theme:e,size:i})=>{var c=a.getSizeValueWithUnits(e,i);return`
|
|
2
2
|
min-height: ${c};
|
|
3
3
|
max-height: ${c};
|
|
4
4
|
`},b={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},W=y.newStyled.div`
|
package/dist/RangeSlider.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as O, jsx as t, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import { n as x } from "./emotion-styled.browser.esm-
|
|
3
|
-
import { P as n } from "./index-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
9
|
-
var u =
|
|
2
|
+
import { n as x } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
3
|
+
import { P as n } from "./index-BYnWp42a.js";
|
|
4
|
+
import { forwardRef as X, useRef as q, useState as v, useCallback as A, useEffect as M } from "react";
|
|
5
|
+
import { b as D, a as o, g as G, d as H } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u as J } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
|
+
import { u as K } from "./useUpdateEffect-CuYWz7EA.js";
|
|
8
|
+
const Q = ({ theme: e, size: i }) => {
|
|
9
|
+
var u = H(e, i);
|
|
10
10
|
return `
|
|
11
11
|
min-height: ${u};
|
|
12
12
|
max-height: ${u};
|
|
@@ -15,9 +15,9 @@ const K = ({ theme: e, size: i }) => {
|
|
|
15
15
|
small: "0.875rem",
|
|
16
16
|
medium: "1.125rem",
|
|
17
17
|
large: "1.375rem"
|
|
18
|
-
},
|
|
18
|
+
}, Y = x.div`
|
|
19
19
|
position: relative;
|
|
20
|
-
${(e) =>
|
|
20
|
+
${(e) => Q(e)};
|
|
21
21
|
display: inline-flex;
|
|
22
22
|
align-items: center;
|
|
23
23
|
`, T = x.input`
|
|
@@ -31,7 +31,7 @@ const K = ({ theme: e, size: i }) => {
|
|
|
31
31
|
background: ${(e) => e.rangeBackground};
|
|
32
32
|
transition: background 450ms ease-in;
|
|
33
33
|
-webkit-appearance: none;
|
|
34
|
-
border-radius: ${(e) =>
|
|
34
|
+
border-radius: ${(e) => D(e.theme, "regular")};
|
|
35
35
|
&::-webkit-slider-thumb {
|
|
36
36
|
-webkit-appearance: none; /* Override default look */
|
|
37
37
|
appearance: none;
|
|
@@ -62,12 +62,12 @@ const K = ({ theme: e, size: i }) => {
|
|
|
62
62
|
cursor: pointer; /* Cursor on hover */
|
|
63
63
|
border: none;
|
|
64
64
|
}
|
|
65
|
-
`,
|
|
65
|
+
`, Z = x.div`
|
|
66
66
|
display: flex;
|
|
67
67
|
flex-direction: column;
|
|
68
68
|
align-items: center;
|
|
69
69
|
position: absolute;
|
|
70
|
-
${(e) =>
|
|
70
|
+
${(e) => G(e.theme, "Range", e.size, "enabled")};
|
|
71
71
|
left: ${(e) => `calc(${e.inputValue + "%"} + (${8 - e.inputValue * 0.15}px))`};
|
|
72
72
|
top: ${(e) => "calc(-" + g[e.size] + ")"};
|
|
73
73
|
transform: translateX(-50%);
|
|
@@ -107,7 +107,7 @@ const K = ({ theme: e, size: i }) => {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`, _ = X((e, i) => {
|
|
111
111
|
const {
|
|
112
112
|
defaultValue: u,
|
|
113
113
|
value: d = null,
|
|
@@ -123,8 +123,8 @@ const K = ({ theme: e, size: i }) => {
|
|
|
123
123
|
size: B = "small",
|
|
124
124
|
className: E = "",
|
|
125
125
|
style: j = {},
|
|
126
|
-
...
|
|
127
|
-
} = e,
|
|
126
|
+
...y
|
|
127
|
+
} = e, C = q(), m = J(), b = { theme: m, size: B, color: s, className: E, style: j }, R = o(
|
|
128
128
|
m,
|
|
129
129
|
"Range",
|
|
130
130
|
s,
|
|
@@ -138,11 +138,11 @@ const K = ({ theme: e, size: i }) => {
|
|
|
138
138
|
l ? "disabled" : "enabled",
|
|
139
139
|
"background"
|
|
140
140
|
)
|
|
141
|
-
), [z, U] = v(), [L, p] = v(), f =
|
|
141
|
+
), [z, U] = v(), [L, p] = v(), f = A(
|
|
142
142
|
(a) => Math.round((a - c) / (h - c) * 100),
|
|
143
143
|
[c, h]
|
|
144
144
|
), [r, I] = v(d || u);
|
|
145
|
-
|
|
145
|
+
K(() => {
|
|
146
146
|
I(d);
|
|
147
147
|
}, [d]), M(() => {
|
|
148
148
|
P(r || 0);
|
|
@@ -163,20 +163,20 @@ const K = ({ theme: e, size: i }) => {
|
|
|
163
163
|
U(
|
|
164
164
|
`linear-gradient(to right, ${S} 0%, ${S} ${f(
|
|
165
165
|
a
|
|
166
|
-
)}%, ${
|
|
166
|
+
)}%, ${R} ${f(a)}%, ${R} 100%)`
|
|
167
167
|
);
|
|
168
168
|
}, N = (a) => {
|
|
169
169
|
I(a.target.value), k && k(a);
|
|
170
170
|
};
|
|
171
|
-
return /* @__PURE__ */ O(
|
|
172
|
-
L && r && /* @__PURE__ */ t(W, { children: /* @__PURE__ */ O(
|
|
171
|
+
return /* @__PURE__ */ O(Y, { ...b, children: [
|
|
172
|
+
L && r && /* @__PURE__ */ t(W, { children: /* @__PURE__ */ O(Z, { ...b, inputValue: f(r), children: [
|
|
173
173
|
/* @__PURE__ */ t("div", { className: "text-content", children: r }),
|
|
174
174
|
/* @__PURE__ */ t("div", { className: "arrow", children: /* @__PURE__ */ t("div", { className: "outer", children: /* @__PURE__ */ t("div", { className: "inner" }) }) })
|
|
175
175
|
] }) }),
|
|
176
176
|
d == null || d == "undefined" ? /* @__PURE__ */ t(
|
|
177
177
|
T,
|
|
178
178
|
{
|
|
179
|
-
ref: i ||
|
|
179
|
+
ref: i || C,
|
|
180
180
|
id: "fader",
|
|
181
181
|
type: "range",
|
|
182
182
|
min: c,
|
|
@@ -194,12 +194,12 @@ const K = ({ theme: e, size: i }) => {
|
|
|
194
194
|
onInput: V,
|
|
195
195
|
onChange: N,
|
|
196
196
|
...b,
|
|
197
|
-
...
|
|
197
|
+
...y
|
|
198
198
|
}
|
|
199
199
|
) : /* @__PURE__ */ t(
|
|
200
200
|
T,
|
|
201
201
|
{
|
|
202
|
-
ref: i ||
|
|
202
|
+
ref: i || C,
|
|
203
203
|
id: "fader",
|
|
204
204
|
type: "range",
|
|
205
205
|
min: c,
|
|
@@ -217,12 +217,12 @@ const K = ({ theme: e, size: i }) => {
|
|
|
217
217
|
onInput: V,
|
|
218
218
|
onChange: N,
|
|
219
219
|
...b,
|
|
220
|
-
...
|
|
220
|
+
...y
|
|
221
221
|
}
|
|
222
222
|
)
|
|
223
223
|
] });
|
|
224
224
|
});
|
|
225
|
-
|
|
225
|
+
_.propTypes = {
|
|
226
226
|
value: n.number,
|
|
227
227
|
defaultValue: n.number,
|
|
228
228
|
min: n.number,
|
|
@@ -249,5 +249,5 @@ Z.propTypes = {
|
|
|
249
249
|
])
|
|
250
250
|
};
|
|
251
251
|
export {
|
|
252
|
-
|
|
252
|
+
_ as default
|
|
253
253
|
};
|
package/dist/SearchBar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const h=require("react/jsx-runtime"),d=require("react"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),p=require("./index-
|
|
1
|
+
"use strict";const h=require("react/jsx-runtime"),d=require("react"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),p=require("./index-BIlhCoy2.cjs"),oe=require("./Chip.cjs"),se=require("./emotion-react.browser.esm-D7h2t2Bz.cjs"),ae=require("./ThemeProvider.cjs"),_=require("./objectWithoutPropertiesLoose-Bz3hwpmU.cjs"),j=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),B=require("./setPrototypeOf-4aSEnBDm.cjs"),D=require("./index-Ct1N7fF4.cjs"),le=se.keyframes`
|
|
2
2
|
from {
|
|
3
3
|
opacity: 0;
|
|
4
4
|
}
|